/* ==========================================================================
   COTEC Magyarország – site styles
   ========================================================================== */

@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --brand-light: #9cb8e2;
  --brand: #1c4b8d;
  --brand-600: #163d74;
  --brand-800: #0f2a52;
  --brand-50: #eef3fb;
  --brand-100: #dde8f6;
  --accent: #f5a524;
  --accent-600: #de8f10;
  --ink: #0f1b2d;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #dfe6ef;
  --bg: #ffffff;
  --bg-soft: #f4f7fb;
  --dark: #0b1424;
  --success: #1f8a4c;
  --danger: #c0392b;
  --fam: var(--brand);

  --font-head: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 1px 3px rgba(15, 27, 45, .06);
  --shadow: 0 6px 24px -8px rgba(15, 27, 45, .18);
  --shadow-lg: 0 24px 60px -20px rgba(15, 27, 45, .35);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --header-h: 76px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font-body); font-size: 1rem; line-height: 1.65; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 3vw, 2.3rem); }
h3, .h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-2); }
.rounded { border-radius: var(--radius); }
.shadow { box-shadow: var(--shadow-lg); }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.section { padding-block: var(--section); }
.section--soft { background: var(--bg-soft); }
.section--tight-top { padding-top: clamp(22px, 2.6vw, 34px); }
.section--dark { background: var(--dark); color: #c9d4e5; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--brand { background: linear-gradient(135deg, var(--brand-800), var(--brand) 60%, #3a6db5); color: #dbe6f6; }
.section--brand h2, .section--brand h3 { color: #fff; }
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 72px); align-items: center; grid-template-columns: 1fr; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; } }

/* ---------- Typography helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: .45em; margin: 0 0 .9rem; font-family: var(--font-head); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); text-decoration: none; }
.eyebrow--light { color: var(--brand-light); }
.eyebrow--fam { color: var(--fam); }
.section-head { display: grid; gap: .25rem; margin-bottom: clamp(24px, 4vw, 44px); max-width: 780px; }
.section-head h2 { margin: 0; }
.section-head__lead { margin: .5rem 0 0; font-size: 1.1rem; color: var(--muted); }
.section-head .link-arrow { margin-top: .6rem; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
@media (min-width: 900px) {
  .section-head:has(.link-arrow):not(.section-head--center) { max-width: none; grid-template-columns: 1fr auto; align-items: end; column-gap: 32px; }
  .section-head:has(.link-arrow):not(.section-head--center) .eyebrow,
  .section-head:has(.link-arrow):not(.section-head--center) h2,
  .section-head:has(.link-arrow):not(.section-head--center) .section-head__lead { grid-column: 1; }
  .section-head:has(.link-arrow):not(.section-head--center) .link-arrow { grid-column: 2; grid-row: 1 / span 3; align-self: end; margin: 0; }
}
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-family: var(--font-head); color: var(--brand); text-decoration: none; }
.link-arrow .ic { transition: transform .2s; }
a:hover .link-arrow .ic, .link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow--light { color: #fff; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .72em 1.25em; border: 2px solid transparent; border-radius: 999px; font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn--lg { padding: .95em 1.6em; font-size: 1.05rem; }
.btn--sm { padding: .45em .95em; font-size: .88rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-600); color: #fff; }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(245, 165, 36, .9); }
.btn--accent:hover { background: var(--accent-600); color: var(--ink); }
.btn--outline { border-color: var(--brand); color: var(--brand); background: transparent; }
.btn--outline:hover { background: var(--brand); color: #fff; }
.btn--light { background: #fff; color: var(--brand); }
.btn--muted { background: #DDE3EC; color: #2C3A4D; }
.btn--muted:hover { background: #EEF2F8; color: #16233A; }
.btn--light:hover { background: var(--brand-50); color: var(--brand-600); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(4px); }
.btn--ghost-light:hover { border-color: #fff; background: rgba(255, 255, 255, .14); color: #fff; }
.btn--text { background: none; border: 0; padding-inline: .2em; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6rem; }
.btn-row--center { justify-content: center; }

/* ---------- Topbar & header ---------- */
.topbar { background: var(--dark); color: #aab8cc; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: #dbe4f0; text-decoration: none; display: inline-flex; align-items: center; gap: .4em; }
.topbar a:hover { color: #fff; }
.topbar__contact { display: flex; gap: 20px; }
.topbar__claim { display: inline-flex; align-items: center; gap: .45em; }
@media (max-width: 760px) { .topbar__claim { display: none; } .topbar__inner { justify-content: center; } }
@media (max-width: 420px) { .topbar__contact a:last-child { display: none; } }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .97); border-bottom: 1px solid transparent; transition: box-shadow .2s, border-color .2s; }
.site-header.is-scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header__inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }

.brand__text { display: grid; line-height: 1.05; }
.brand__text strong { font-family: var(--font-head); font-weight: 800; font-size: 1.45rem; letter-spacing: .04em; color: var(--brand); }
.brand__text small { font-size: .72rem; color: var(--muted); letter-spacing: .02em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: #9fb0c8; }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.site-nav__list { list-style: none; display: flex; align-items: center; gap: 2px; }
.site-nav__list > li { position: relative; display: flex; align-items: center; }
.site-nav__list > li > a { display: block; padding: 10px 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 700; font-size: .95rem; color: var(--ink); text-decoration: none; }
.site-nav__list > li > a:hover, .site-nav__list > li.is-active > a { color: var(--brand); background: var(--brand-50); }
.sub-toggle { display: none; }
.nav-toggle { display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic { width: 24px; height: 24px; }
.nav-toggle__close { display: none; }
.nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: block; }

.mega { position: absolute; top: calc(100% + 10px); left: -20px; width: min(640px, 80vw); padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s ease; }
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.has-sub:hover .mega, .has-sub:focus-within .mega { opacity: 1; visibility: visible; transform: none; }
.mega__grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega__grid a { display: flex; gap: 12px; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink-2); }
.mega__grid a:hover { background: var(--bg-soft); }
.mega__grid strong { display: block; color: var(--ink); font-family: var(--font-head); font-size: .95rem; }
.mega__grid small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.35; }
.mega__icon { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.mega__icon--fam { background: color-mix(in srgb, var(--fam) 14%, white); color: var(--fam); }
.mega__cta { display: flex; align-items: center; gap: .5em; margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: var(--brand-50); font-weight: 700; font-size: .9rem; text-decoration: none; }
.mega__cta .ic:last-child { margin-left: auto; }

@media (min-width: 1101px) { .site-header { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); } }
@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: var(--nav-top, 112px) 0 0 0; margin: 0; flex-direction: column; align-items: stretch; gap: 16px; padding: 16px var(--gutter) 120px; background: #fff; overflow-y: auto; transform: translateX(100%); transition: transform .25s ease; }
  .nav-open .site-nav { transform: none; }
  .site-nav__list { flex-direction: column; align-items: stretch; }
  .site-nav__list > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .site-nav__list > li > a { flex: 1; padding: 14px 4px; font-size: 1.08rem; background: none !important; }
  .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .sub-toggle[aria-expanded="true"] .ic { transform: rotate(180deg); }
  .mega { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 12px; display: none; }
  .has-sub.is-open .mega { display: block; }
  .has-sub:hover .mega { display: none; }
  .has-sub.is-open:hover .mega { display: block; }
  .mega__grid { grid-template-columns: 1fr; }
  .site-nav__cta { justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: .85rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding-block: 10px; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; color: #b8c3d3; margin-right: 4px; }
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--brand); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Hero (home) ---------- */
.hero { position: relative; overflow: hidden; background: var(--dark); color: #cfdaea; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .38; filter: saturate(.7); }
.hero__media::after { content: ""; position: absolute; inset: 0; background: radial-gradient(90% 90% at 85% 20%, rgba(28, 75, 141, .55), transparent 60%), linear-gradient(90deg, rgba(11, 20, 36, .97) 0%, rgba(11, 20, 36, .88) 45%, rgba(11, 20, 36, .55) 100%); }
.hero__inner { display: grid; gap: 48px; align-items: center; padding-block: clamp(64px, 10vw, 128px); }
@media (min-width: 1000px) { .hero__inner { grid-template-columns: 1.25fr 1fr; } }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5.4vw, 4.1rem); }
.hero h1 span { display: block; color: var(--brand-light); font-size: .62em; margin-top: .25em; letter-spacing: -.01em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 620px; color: #c6d2e4; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__facts li { display: grid; }
.hero__facts strong { font-family: var(--font-head); font-size: 2rem; color: #fff; line-height: 1; }
.hero__facts span { font-size: .85rem; color: #9fb0c8; }
.hero__cards { position: relative; height: 460px; display: none; }
@media (min-width: 1000px) { .hero__cards { display: block; } }
.hero__card { position: absolute; margin: 0; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 4px solid rgba(255, 255, 255, .9); background: #fff; }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card span { position: absolute; left: 12px; bottom: 12px; padding: 5px 12px; border-radius: 999px; background: rgba(11, 20, 36, .8); color: #fff; font-size: .78rem; font-weight: 600; }
.hero__card--1 span { left: auto; right: 12px; }
.hero__card--1 { width: 62%; height: 58%; right: 0; top: 0; animation: float 7s ease-in-out infinite; }
.hero__card--2 { width: 52%; height: 44%; left: 0; top: 30%; animation: float 8s ease-in-out -2s infinite; }
.hero__card--3 { width: 56%; height: 40%; right: 6%; bottom: 0; animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .hero__card { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Page hero ---------- */
.page-hero { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(135deg, var(--brand-800), var(--brand) 70%); color: #d6e1f1; padding-block: clamp(48px, 7vw, 88px); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 32px 32px; mask-image: linear-gradient(90deg, transparent, #000 70%); }
.page-hero[style*="--fam"] { background: linear-gradient(135deg, var(--brand-800), color-mix(in srgb, var(--fam) 70%, var(--brand-800))); }
.page-hero--image { background: var(--dark); }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.page-hero--image::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 20, 36, .95), rgba(11, 20, 36, .6)); }
.page-hero h1 { color: #fff; max-width: 900px; }
.page-hero .eyebrow { color: var(--brand-light); }
.page-hero__lead { font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 760px; margin: 0; }
.case-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6rem 0 0; }
.case-meta div { padding: 10px 16px; border-radius: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); }
.case-meta dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--brand-light); font-weight: 700; }
.case-meta dd { margin: 0; color: #fff; font-weight: 600; }

/* ---------- Cards ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(18px, 2.4vw, 26px); box-shadow: var(--shadow-sm); }
.card + .card { margin-top: 16px; }
.card--lg { padding: clamp(22px, 3.5vw, 40px); }
.card--brand { background: linear-gradient(145deg, var(--brand), var(--brand-800)); color: #dbe6f6; border: 0; }
.card--brand h2, .card--brand h3, .card--brand .card__title { color: #fff; }
.card--brand a:not(.btn) { color: #fff; }
.card__title { display: flex; align-items: center; gap: .5em; font-size: 1.05rem; margin: 0 0 .9rem; }
.card__title:not(:first-child) { margin-top: 1.4rem; }
.card__title .ic { color: var(--fam); }
.card--brand .card__title .ic { color: var(--accent); }

.solution-card { display: flex; flex-direction: column; gap: 6px; padding: 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: transform .2s, box-shadow .2s, border-color .2s; }
.solution-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-light); color: var(--ink-2); }
.solution-card h3 { margin: 10px 0 2px; }
.solution-card p { flex: 1; font-size: .95rem; }
.solution-card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand-50), var(--brand-100)); color: var(--brand); }
.solution-card__icon .ic { width: 26px; height: 26px; }

.solution-wide { display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: box-shadow .2s, transform .2s; }
.solution-wide:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink-2); }
@media (min-width: 620px) { .solution-wide { grid-template-columns: 220px 1fr; } }
.solution-wide__media img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.solution-wide__body { padding: 24px; }
.solution-wide__body h2 { font-size: 1.35rem; margin: 12px 0 6px; }

.pillars { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.pillar h3 { margin: 14px 0 6px; font-size: 1.35rem; }
.pillar p { margin: 0; }
.pillar__icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px var(--brand); }
.pillar__icon .ic { width: 28px; height: 28px; }
.pillar__icon--light { background: rgba(255, 255, 255, .14); box-shadow: none; }

.family-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); border-top: 4px solid var(--fam); transition: transform .2s, box-shadow .2s; }
.family-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink-2); }
.family-card__media { aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.family-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.family-card:hover .family-card__media img { transform: scale(1.05); }
.family-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.family-card__body p { flex: 1; font-size: .93rem; }
.family-card__name { display: inline-flex; align-items: center; gap: .4em; color: var(--fam); font-weight: 800; font-family: var(--font-head); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; }
.family-card h3 { margin: 6px 0 8px; }

.product-card { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s, border-color .2s; }
.product-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--fam); }
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--fam) 40%, white); }
.product-card__link { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px 26px; text-decoration: none; color: var(--ink-2); }
.product-card__link:hover { color: var(--ink-2); }
.product-card__family { display: inline-flex; align-items: center; gap: .4em; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--fam); }
.product-card__title { margin: 8px 0 6px; font-size: 1.25rem; }
.product-card__text { flex: 1; font-size: .93rem; margin-bottom: 14px; }
.product-card__more { display: inline-flex; align-items: center; gap: .4em; margin-top: 14px; font-weight: 700; font-family: var(--font-head); color: var(--brand); font-size: .92rem; }

.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .76rem; font-weight: 600; color: var(--ink-2); }
.tag--flag { background: color-mix(in srgb, var(--fam) 10%, white); border-color: color-mix(in srgb, var(--fam) 25%, white); color: color-mix(in srgb, var(--fam) 80%, black); }

.case-card { border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.case-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: var(--ink-2); }
.case-card__link:hover { color: var(--ink-2); }
.case-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.case-card:hover .case-card__media img { transform: scale(1.05); }
.case-card__badge, .case-card__ba { position: absolute; top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.case-card__badge { left: 12px; background: #fff; color: var(--ink); }
.case-card__ba { right: 12px; background: var(--accent); color: var(--ink); display: inline-flex; gap: .35em; align-items: center; }
.case-card__body { padding: 18px 20px 22px; }
.case-card__type { font-size: .78rem; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.case-card h3 { margin-bottom: 8px; }
.case-card__body p:last-child { font-size: .92rem; margin: 0; }

.industry-tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; text-decoration: none; }
.industry-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.industry-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(11, 20, 36, .88)); }
.industry-tile:hover img { transform: scale(1.06); }
.industry-tile__label { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; display: flex; gap: .5em; align-items: center; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; }
.industry-tile__label .ic { color: var(--accent); }

.industry-card { display: grid; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: box-shadow .2s, transform .2s; }
.industry-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink-2); }
@media (min-width: 620px) { .industry-card { grid-template-columns: 200px 1fr; } }
.industry-card__media img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.industry-card__body { padding: 22px; }
.industry-card__body h2 { font-size: 1.3rem; display: flex; gap: .45em; align-items: center; }
.industry-card__body h2 .ic { color: var(--brand); }
.dash-list { list-style: none; margin-bottom: 14px; font-size: .92rem; }
.dash-list li { padding-left: 16px; position: relative; }
.dash-list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 2px; background: var(--accent); }

.article-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: transform .2s, box-shadow .2s; }
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: var(--ink-2); }
.article-card img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.article-card__body { padding: 20px; }
.article-card__meta { display: flex; align-items: center; gap: .4em; font-size: .8rem; color: var(--muted); margin-bottom: 6px; }
.article-card__body h2 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); margin: 0 0 .5rem; }
.article-card--row { flex-direction: row; }
.article-card--row img { width: 38%; aspect-ratio: auto; }

.download-card { display: grid; grid-template-columns: 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink-2); transition: box-shadow .2s; }
.download-card:hover { box-shadow: var(--shadow); color: var(--ink-2); }
@media (min-width: 620px) { .download-card { grid-template-columns: 200px 1fr; } }
.download-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; }
.download-card > div { padding: 24px; }

/* ---------- Lists ---------- */
.checklist { list-style: none; display: grid; gap: 10px; }
.checklist li { display: flex; gap: .6em; align-items: flex-start; }
.checklist .ic { color: var(--success); margin-top: .2em; }
.checklist--light .ic { color: var(--accent); }
.checklist--sm { font-size: .92rem; gap: 6px; }
.checklist + .btn, .checklist + .btn-row { margin-top: 1.7rem; }
.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-list li { padding: 6px 12px; border-radius: 10px; background: var(--bg-soft); border: 1px solid var(--line); font-size: .88rem; font-weight: 500; }
.link-list { list-style: none; display: grid; gap: 2px; }
.link-list a { display: flex; flex-wrap: wrap; align-items: center; gap: .5em; padding: 10px 12px; margin-inline: -12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 600; }
.link-list a:hover { background: var(--bg-soft); }
.link-list a .ic { color: var(--brand); }
.link-list small { flex-basis: 100%; font-weight: 400; color: var(--muted); font-size: .84rem; }
.steps-mini { margin: 1.2rem 0 1.8rem; padding-left: 1.2rem; display: grid; gap: 6px; color: #e2eaf6; }
.steps { counter-reset: step; list-style: none; display: grid; gap: 14px; margin: 1rem 0 1.6rem; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 64px; background: var(--bg-soft); border-radius: 12px; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-family: var(--font-head); }

/* ---------- Prose ---------- */
.prose > * + * { margin-top: 0; }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); display: flex; gap: .45em; align-items: center; margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose h2 .ic { color: var(--brand); }
.prose h3 { margin-top: 1.8em; }
.prose ul:not([class]), .prose ol:not([class]) { padding-left: 1.3rem; margin-bottom: 1.2em; display: grid; gap: .45em; }
.prose--article { font-size: 1.07rem; }
.pullquote { margin: 2rem 0; padding: 18px 24px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-family: var(--font-head); font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.result-box { margin-top: 2rem; padding: 22px 24px; border-radius: var(--radius); background: color-mix(in srgb, var(--success) 8%, white); border: 1px solid color-mix(in srgb, var(--success) 25%, white); }
.result-box h2 { margin-top: 0; }
.case-main > h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin-top: 1.8em; }
.result-box h2 .ic { color: var(--success); }
.result-box p:last-child { margin: 0; }
.notice { display: flex; gap: 14px; align-items: flex-start; margin-top: 32px; padding: 18px 20px; border-radius: var(--radius); background: var(--brand-50); border: 1px solid var(--brand-100); }
.notice > .ic { color: var(--brand); width: 24px; height: 24px; }
/* ---------- Legal pages (imprint, privacy policy, terms) ---------- */
.legal { font-size: .97rem; }
.legal h1 { margin-bottom: .3em; }
.legal__meta { margin: 0 0 1.4em; font-size: .88rem; color: var(--muted); }
.legal h3 { font-size: 1.05rem; margin-top: 1.5em; }
.legal p { margin: 0 0 .9em; }
.legal blockquote { margin: 1.2em 0; padding: 14px 18px; border-left: 3px solid var(--brand-light); border-radius: 0 10px 10px 0; background: var(--brand-50); }
.legal blockquote p:last-child { margin-bottom: 0; }
.legal__footnote { margin-top: 2.2em; padding-top: 1.2em; border-top: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.legal-table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: .93rem; }
.legal-table th, .legal-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal-table th[scope="row"] { width: 38%; font-weight: 600; background: var(--bg-soft); color: var(--ink); }
.legal-table thead th { background: var(--bg-soft); font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal-table--cols th[scope="row"] { width: auto; }
.legal-missing { padding: 1px 7px; border-radius: 6px; background: #fdecec; color: #9b1c1c; font-size: .85rem; font-weight: 600; }
@media (max-width: 560px) {
  .legal-table th[scope="row"] { width: 45%; }
  .legal-table th, .legal-table td { padding: 7px 9px; }
}
.notice-inline { display: inline-flex; gap: .5em; align-items: center; padding: 6px 12px; border-radius: 8px; background: #fff4de; color: #8a5a00; font-size: .9rem; }

/* ---------- Split / feature sections ---------- */
.split__copy .btn { margin-top: .6rem; }

/* ---------- Before / after ---------- */
.ba { margin: 0 0 28px; }
.ba__stage { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-lg); --pos: 50%; user-select: none; touch-action: pan-y; }
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; margin-left: -1.5px; background: #fff; pointer-events: none; }
.ba__handle span { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); box-shadow: var(--shadow); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + .ba__handle, .ba__stage:focus-within .ba__handle span { outline: 3px solid var(--accent); }
.ba__tag { position: absolute; top: 14px; padding: 4px 12px; border-radius: 999px; background: rgba(11, 20, 36, .78); color: #fff; font-size: .78rem; font-weight: 700; pointer-events: none; }
.ba__tag--before { left: 14px; }
.ba__tag--after { right: 14px; background: var(--accent); color: var(--ink); }
.ba figcaption { margin-top: 10px; font-size: .88rem; color: var(--muted); }
.section--dark .ba figcaption { color: #8fa0b8; }

/* ---------- Process & timeline ---------- */
.process { list-style: none; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: none; }
.process li { position: relative; padding: 26px 22px; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
.process h3 { margin: 14px 0 6px; }
.process p { margin: 0; font-size: .95rem; }
.process__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent); color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; }
.timeline { list-style: none; max-width: 820px; margin-inline: auto; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--brand-100); }
.timeline li { position: relative; display: grid; gap: 4px 28px; padding: 0 0 28px 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--brand); }
@media (min-width: 700px) { .timeline li { grid-template-columns: 140px 1fr; } }
.timeline__year { font-family: var(--font-head); font-weight: 800; color: var(--brand); font-size: 1.1rem; }
.timeline h3 { margin: 0 0 4px; }
.timeline p { margin: 0; }

/* ---------- Founder ---------- */
.founder { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 860px) { .founder { grid-template-columns: 360px 1fr; } }
.founder__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }
.founder__quote { margin: 0; position: relative; }
.founder__quote p { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.75rem); line-height: 1.4; color: #fff; font-weight: 600; letter-spacing: -.01em; }
.founder__quote footer { display: grid; margin: 1.2rem 0 1.6rem; }
.founder__quote footer strong { color: #fff; font-size: 1.1rem; }
.founder__quote footer span { color: var(--brand-light); font-size: .92rem; }
.founder__mark { width: 48px; height: 48px; color: var(--accent); margin-bottom: 12px; }
.founder--page { align-items: start; }

/* ---------- Family & product pages ---------- */
.family-block + .family-block { padding-top: 0; }
.family-block__head { display: grid; gap: 24px; align-items: center; margin-bottom: 28px; padding: 22px; border-radius: var(--radius-lg); background: linear-gradient(90deg, color-mix(in srgb, var(--fam) 10%, white), var(--bg-soft)); }
@media (min-width: 700px) { .family-block__head { grid-template-columns: 240px 1fr; } }
.family-block__head img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.family-block__head h2 { margin-bottom: .3em; }

.product-hero { padding-block: clamp(36px, 6vw, 72px); background: linear-gradient(180deg, color-mix(in srgb, var(--fam) 9%, white), #fff); }
.product-hero__inner { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .product-hero__inner { grid-template-columns: 1fr 1.1fr; } }
.product-hero__media { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-lg); border-bottom: 6px solid var(--fam); }
.product-hero__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.product-hero h1 { margin-bottom: .25em; }
.product-hero__lead { font-size: 1.15rem; }
.keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 1.4rem 0 0; }
.keyfacts div { padding: 12px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.keyfacts dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.keyfacts dd { margin: 2px 0 0; font-family: var(--font-head); font-weight: 800; color: var(--ink); font-size: 1.05rem; }
.product-layout, .case-layout { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 980px) { .product-layout, .case-layout { grid-template-columns: 1fr 380px; } .product-aside, .case-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.spec-table { width: 100%; border-collapse: collapse; font-size: .92rem; margin-bottom: 12px; }
.spec-table th, .spec-table td { padding: 9px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { font-weight: 500; color: var(--muted); padding-right: 12px; }
.spec-table td { font-weight: 700; color: var(--ink); }
.case-main__image { width: 100%; margin-bottom: 28px; box-shadow: var(--shadow); }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); }
.gallery__item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--bg-soft); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s, opacity .3s; }
.gallery__item:hover img { transform: scale(1.05); opacity: .9; }

/* ---------- Filters, chips, tables ---------- */
.filters { display: grid; gap: 12px; margin-bottom: 28px; }
.filters__group, .chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filters__search { width: 100%; max-width: 440px; padding: 11px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: .88rem; font-weight: 600; transition: .15s; }
.chip:hover span { border-color: var(--brand-light); }
.chip input:checked + span { background: var(--fam); border-color: var(--fam); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chip--check input:checked + span { background: var(--ink); border-color: var(--ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 900px; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare-table thead th { position: sticky; top: 0; background: var(--bg-soft); font-family: var(--font-head); font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink); white-space: nowrap; }
.compare-table thead button { display: inline-flex; align-items: center; gap: .3em; border: 0; background: none; padding: 0; font: inherit; text-transform: inherit; cursor: pointer; color: inherit; }
.compare-table thead button .ic { opacity: .35; transition: transform .2s; }
.compare-table thead button[data-dir] .ic { opacity: 1; }
.compare-table thead button[data-dir="desc"] .ic { transform: rotate(180deg); }
.compare-table tbody th { border-left: 4px solid var(--fam); min-width: 190px; }
.compare-table tbody th a { font-family: var(--font-head); font-weight: 800; text-decoration: none; }
.compare-table tbody th small { display: block; font-weight: 400; color: var(--muted); }
.compare-table tbody tr:hover { background: var(--bg-soft); }
.datasheet-table { min-width: 640px; }
.datasheet-table td { white-space: nowrap; }
.empty { padding: 32px; text-align: center; color: var(--muted); }

/* ---------- Wizard ---------- */
.wizard { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 44px); box-shadow: var(--shadow); }
.wizard__progress { list-style: none; display: flex; gap: 6px; margin-bottom: 28px; }
.wizard__progress li { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.wizard__progress li::before { content: ""; height: 5px; border-radius: 5px; background: var(--line); }
.wizard__progress li.is-done::before, .wizard__progress li.is-current::before { background: var(--brand); }
.wizard__progress li span { display: none; }
@media (max-width: 640px) { .wizard__progress li { font-size: 0; } }
.wizard__step { border: 0; margin: 0; padding: 0; min-width: 0; }
.wizard__step legend { font-family: var(--font-head); font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--ink); margin-bottom: 18px; padding: 0; }
.wizard__count { display: inline-block; margin-right: .4em; padding: 2px 10px; border-radius: 999px; background: var(--brand-50); color: var(--brand); font-size: .9rem; vertical-align: middle; }
.choice-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.choice { cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice__box { display: grid; gap: 4px; height: 100%; padding: 18px; border-radius: var(--radius); border: 2px solid var(--line); transition: .15s; }
.choice__box strong { font-family: var(--font-head); color: var(--ink); }
.choice__box small { color: var(--muted); line-height: 1.4; }
.choice__icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-soft); color: var(--brand); margin-bottom: 6px; }
.choice:hover .choice__box { border-color: var(--brand-light); }
.choice input:checked + .choice__box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px var(--brand-100); }
.choice input:checked + .choice__box .choice__icon { background: var(--brand); color: #fff; }
.choice input:focus-visible + .choice__box { outline: 3px solid var(--accent); outline-offset: 2px; }
.wizard__nav { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; }
.result-list { display: grid; gap: 14px; margin: 18px 0; }
.result-item { display: grid; gap: 14px; grid-template-columns: 56px 1fr; align-items: start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); border-left: 5px solid var(--fam); }
.result-item__rank { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--fam) 12%, white); color: var(--fam); font-family: var(--font-head); font-weight: 800; font-size: 1.4rem; }
.result-item h3 { margin: 0 0 4px; }
.result-item p { margin: 0 0 8px; font-size: .94rem; }
.result-item__why { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.result-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.result-item--top { box-shadow: var(--shadow); }
.result-item--top .result-item__rank { background: var(--fam); color: #fff; }

/* ---------- Forms ---------- */
.contact-layout { display: grid; gap: 28px; align-items: start; }
@media (min-width: 980px) { .contact-layout { grid-template-columns: 1fr 360px; } .contact-aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font-weight: 700; font-size: .9rem; color: var(--ink); padding: 0; margin-bottom: 4px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__error { margin: 0; color: var(--danger); font-size: .85rem; font-weight: 600; }
/* ---------- Workshop registration: session picker ---------- */
.ws-pick { display: grid; gap: 10px; }
@media (min-width: 620px) { .ws-pick { grid-template-columns: 1fr 1fr; } }
.ws-pick__item { position: relative; cursor: pointer; }
.ws-pick__item input { position: absolute; opacity: 0; pointer-events: none; }
.ws-pick__item > span { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.ws-pick__item strong { font-family: var(--font-head); font-size: 1.05rem; color: var(--ink); }
.ws-pick__item small { font-size: .86rem; }
.ws-pick__item:hover > span { border-color: var(--brand-light); }
.ws-pick__item input:checked + span { border-color: var(--brand); background: var(--brand-50); box-shadow: inset 0 0 0 1px var(--brand); }
.ws-pick__item input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.field__hint { display: flex; gap: .5em; align-items: flex-start; margin: 0; font-size: .84rem; color: var(--muted); }
.field__hint .ic { flex: none; width: 15px; height: 15px; margin-top: .15em; color: var(--brand-light); }
.form__privacy { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); font-size: .82rem; line-height: 1.6; color: var(--muted); }
.form__privacy p { margin: 0 0 .6em; }
.form__privacy p:last-child { margin-bottom: 0; }
.field--check label { display: flex; gap: .6em; align-items: flex-start; font-size: .92rem; }
.field--check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.dropzone { position: relative; display: grid; justify-items: center; gap: 4px; padding: 26px; border: 2px dashed #b8c6da; border-radius: var(--radius); background: var(--bg-soft); text-align: center; cursor: pointer; transition: .15s; }
.dropzone .ic { width: 30px; height: 30px; color: var(--brand); }
.dropzone small { color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone.is-over, .dropzone:hover { border-color: var(--brand); background: var(--brand-50); }
.file-list { list-style: none; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--bg-soft); font-size: .88rem; }
.file-list img { width: 42px; height: 42px; object-fit: cover; border-radius: 6px; }
.file-list .file-size { margin-left: auto; color: var(--muted); }
.alert { display: flex; gap: .6em; align-items: center; padding: 12px 16px; border-radius: 10px; font-weight: 600; }
.alert--error { background: #fdecea; color: var(--danger); }
.alert--warn { background: #fff4de; color: #8a5a00; }
.legal-todo { margin-bottom: 1.6em; font-size: .88rem; }
.legal-todo code { font-size: .92em; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-person { display: flex; gap: .5em; align-items: center; }
.contact-big { display: flex; gap: .5em; align-items: center; margin: 8px 0; font-family: var(--font-head); font-size: 1.2rem; font-weight: 800; text-decoration: none; word-break: break-all; }
.big-icon { display: inline-grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: color-mix(in srgb, var(--success) 12%, white); color: var(--success); margin-bottom: 18px; }
.big-icon .ic { width: 44px; height: 44px; }
.big-icon--muted { background: var(--brand-50); color: var(--brand); }

/* ---------- Article ---------- */
.article__head { padding-block: clamp(40px, 6vw, 72px) 28px; background: var(--bg-soft); }
.article__head .page-hero__lead { color: var(--ink-2); }
.article__image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin: -8px 0 36px; box-shadow: var(--shadow); }
.article { padding-bottom: var(--section); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--brand-800), var(--brand)); color: #d7e3f4; padding-block: clamp(44px, 6vw, 72px); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(156, 184, 226, .35), transparent 70%); }
.cta-band__inner { position: relative; z-index: 1; display: grid; gap: 24px; align-items: center; }
@media (min-width: 960px) { .cta-band__inner { grid-template-columns: 1fr auto; } }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band__note { max-width: 720px; margin: 18px auto 0; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.18); font-size: .82rem; line-height: 1.6; color: rgba(255,255,255,.72); text-align: center; }
.cta-band__note a { color: #fff; }
.cta-band p { margin: 0; max-width: 680px; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #9fb0c8; padding-top: clamp(48px, 6vw, 72px); font-size: .93rem; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); padding-bottom: 48px; }
@media (min-width: 1000px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.site-footer__brand p { margin-top: 16px; }
.site-footer__legal { font-size: .82rem; color: #7788a0; }
.site-footer__title { color: #fff; font-size: .82rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 16px; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a { color: #cdd8e8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer a.btn--muted { color: #2C3A4D; }
.site-footer a.btn--muted:hover { color: #16233A; }
.site-footer__contact { list-style: none; display: grid; gap: 10px; margin-bottom: 18px; }
.site-footer__contact li { display: flex; gap: .6em; align-items: flex-start; }
.site-footer__contact .ic { color: var(--brand-light); margin-top: .25em; }
.card--brand .site-footer__contact .ic { color: var(--accent); }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-block: 18px; font-size: .84rem; }
.site-footer__bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer__bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Mobile CTA ---------- */
.mobile-cta { display: none; }
@media (max-width: 760px) {
  .mobile-cta { position: fixed; z-index: 90; left: 12px; right: 12px; bottom: 12px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(11, 20, 36, .92); backdrop-filter: blur(8px); box-shadow: var(--shadow-lg); }
  .mobile-cta a { display: flex; justify-content: center; align-items: center; gap: .5em; padding: 12px; border-radius: 12px; font-weight: 700; font-family: var(--font-head); text-decoration: none; }
  .mobile-cta__call { background: rgba(255, 255, 255, .1); color: #fff; }
  .mobile-cta__quote { background: var(--accent); color: var(--ink); }
  .site-footer { padding-bottom: 84px; }
  .nav-open .mobile-cta { display: none; }
}

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 56px 16px; background: rgba(5, 10, 20, .92); }
.lightbox img { max-height: 100%; max-width: min(1200px, 100%); width: auto; border-radius: 10px; }
.lightbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Print ---------- */
@media print {
  .topbar, .site-header, .site-footer, .mobile-cta, .cta-band, .breadcrumbs, .btn { display: none !important; }
  .page-hero, .hero { background: none !important; color: #000; }
  .page-hero h1 { color: #000; }
}

/* ---------- Fixes ---------- */
.grid > .card + .card { margin-top: 0; }
.prose .eyebrow + h2 { margin-top: 0; }

/* ---------- Workshop ---------- */
.event-card .btn { margin-top: 8px; }
.event-card .small { margin: 10px 0 0; text-align: center; }
.event-facts { display: grid; gap: 12px; margin: 0 0 16px; }
.event-facts div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.event-facts dt { display: flex; align-items: center; gap: .45em; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.event-facts dt .ic { color: var(--brand); }
.event-facts dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; color: var(--ink); }
.use-grid { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.use-tile { padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.use-tile h3 { margin: 12px 0 4px; font-size: 1.02rem; }
.use-tile p { margin: 0; font-size: .9rem; }
.use-tile__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: #fff; }
.stat-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 36px; padding: 24px; border-radius: var(--radius-lg); background: var(--dark); text-align: center; }
.stat-row strong { display: block; font-family: var(--font-head); font-size: 2.2rem; line-height: 1; color: #fff; }
.stat-row span { color: #9fb0c8; font-size: .9rem; }
.site-nav__list > li.nav-highlight > a { color: var(--accent-600); }
.site-nav__list > li.nav-highlight > a::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 6px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
@media (min-width: 1101px) and (max-width: 1260px) { .site-nav__list > li > a { padding-inline: 8px; font-size: .9rem; } .brand__text small { display: none; } }
.ws-intro { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(32px, 5vw, 56px); }
@media (min-width: 900px) { .ws-intro { grid-template-columns: 1fr 340px; } }
.ws-flyer { display: block; justify-self: center; max-width: 340px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); transform: rotate(2deg); transition: transform .3s; }
.ws-flyer:hover { transform: rotate(0) scale(1.02); }
.ws-sessions { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.ws-session { display: grid; grid-template-columns: 96px 1fr; gap: 20px; padding: 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-sm); border-top: 5px solid var(--brand-light); }
.ws-session__date { display: grid; align-content: start; justify-items: center; padding: 12px 6px; border-radius: 16px; background: var(--brand); color: #fff; text-align: center; line-height: 1.1; }
.ws-session__month { text-transform: uppercase; font-size: .8rem; font-weight: 700; letter-spacing: .1em; color: var(--brand-light); }
.ws-session__day { font-family: var(--font-head); font-size: 2.6rem; font-weight: 800; }
.ws-session__time { margin-top: 4px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--ink); font-weight: 700; font-size: .85rem; }
.ws-session h3 { font-size: 1.6rem; margin-bottom: 10px; }
.ws-session .eyebrow { margin-bottom: 4px; }
.ws-session__facts { list-style: none; display: grid; gap: 6px; font-size: .95rem; }
.ws-session__facts li { display: flex; gap: .5em; align-items: flex-start; }
.ws-session__facts .ic { color: var(--brand); margin-top: .2em; }
.ws-session .btn-row { margin-top: 16px; }
@media (max-width: 480px) { .ws-session { grid-template-columns: 1fr; } .ws-session__date { grid-auto-flow: column; justify-content: start; gap: 10px; align-items: center; } .ws-session__day { font-size: 1.6rem; } .ws-session__time { margin: 0; } }
.ws-promo { background: linear-gradient(90deg, var(--brand-50), #fff4de); border-bottom: 1px solid var(--line); }
.ws-promo__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding-block: 16px; }
.ws-promo__badge { display: inline-flex; align-items: center; gap: .4em; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.ws-promo__text { margin: 0; flex: 1; min-width: 240px; color: var(--ink); }
.founder__creds { margin: 1.4rem 0 0; }
.founder__creds li { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-600); font-weight: 600; }

/* ---------- Projects / references ---------- */
.project-list { list-style: none; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.project { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.project__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.project__period { margin: 0 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--accent-600); }
.project h3 { margin: 0 0 2px; font-size: 1.05rem; }
.project__place { display: flex; align-items: center; gap: .35em; margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.project__body > p:last-child { margin: 0; font-size: .93rem; }
.notice--important { background: #fff4de; border-color: #f5d28f; }
.notice--important > .ic { color: var(--accent-600); }
.notice--important p { margin: 0; color: var(--ink); }
.clients-strip { border-block: 1px solid var(--line); background: #fff; }
.clients-strip__inner { display: flex; align-items: center; gap: 24px; padding-block: 15px; }
.clients-strip__label { flex: none; margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clients-strip__link { flex: none; }
/* names run as one continuous line (ticker) so they never stack into a tall block */
.clients-strip__viewport { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); mask-image: linear-gradient(90deg, transparent, #000 22px, #000 calc(100% - 22px), transparent); }
.clients-strip__track { display: flex; width: max-content; animation: clients-scroll 40s linear infinite; }
.clients-strip__inner:hover .clients-strip__track, .clients-strip__viewport:focus-within .clients-strip__track { animation-play-state: paused; }
.clients-strip__list { list-style: none; display: flex; flex-wrap: nowrap; width: max-content; }
.clients-strip__list li { display: flex; align-items: center; white-space: nowrap; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #5b6b82; letter-spacing: -.01em; }
.clients-strip__list li::before { content: ""; flex: none; width: 4px; height: 4px; margin: 0 16px; border-radius: 50%; background: var(--brand-light); }
@keyframes clients-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 860px) {
  .clients-strip__inner { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 14px; padding-block: 13px; }
  .clients-strip__label { grid-column: 1; font-size: .68rem; }
  .clients-strip__link { grid-column: 2; grid-row: 1; font-size: .9rem; }
  .clients-strip__viewport { grid-column: 1 / -1; grid-row: 2; margin-top: 3px; }
  .clients-strip__track { animation-duration: 34s; }
  .clients-strip__list li { font-size: .95rem; }
  .clients-strip__list li::before { margin: 0 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .clients-strip__track { animation: none; }
  .clients-strip__viewport { overflow-x: auto; scrollbar-width: none; }
  .clients-strip__viewport::-webkit-scrollbar { display: none; }
  .clients-strip__list--clone { display: none; }
}

/* ---------- Brand lockup (interim, until the Hungarian logo SVG arrives) ---------- */
.brand img { width: auto; height: 46px; }
.brand--light img { height: 52px; }
@media (max-width: 420px) { .brand img { height: 38px; } }

/* ---------- Split filter rows (category = segmented control, problem = tags) ----------
   NB: the filter tags use .ftag, NOT .tag – .tag (line ~309) is the small pill on cards,
   reusing it here made the labels render as nested pills. */
.filters--split { display: grid; gap: 0; margin-bottom: 28px; }
.filter-row { display: grid; justify-items: start; gap: 8px; padding: 14px 0; }
.filter-row:first-child { padding-top: 0; }
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-row > .ftag-set, .filter-row > .filters__search { justify-self: stretch; }
.filter-row__label { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-soft); }
.seg__item { cursor: pointer; }
.seg__item input { position: absolute; opacity: 0; pointer-events: none; }
.seg__item span { display: inline-flex; align-items: center; gap: .4em; padding: 7px 14px; border-radius: 9px; font-size: .875rem; line-height: 1.35; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s; }
.seg__item:hover span { background: #fff; }
.seg__item input:checked + span { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(15, 27, 45, .22); }
.seg__item input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.seg .count { font-size: .75rem; font-weight: 500; opacity: .65; }
.seg__item input:checked + span .count { opacity: .8; }
.ftag-set { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ftag { cursor: pointer; }
.ftag input { position: absolute; opacity: 0; pointer-events: none; }
.ftag span { display: inline-flex; align-items: center; gap: .45em; padding: 7px 13px; border: 1px dashed #c3cede; border-radius: 10px; background: #fff; font-size: .845rem; font-weight: 600; line-height: 1.35; color: var(--ink-2); transition: border-color .15s, background .15s, color .15s; }
.ftag:hover span { border-color: var(--brand-light); }
.ftag input:checked + span { border-style: solid; border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.ftag input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.ftag__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-light); flex: none; }
.ftag input:checked + span .ftag__dot { background: var(--accent); }
.filters--split .filters__search { max-width: 380px; }
@media (max-width: 640px) {
  /* on phones both groups become one swipeable row instead of 5-6 wrapped lines */
  .filter-row { gap: 6px; }
  .filter-row > .seg, .filter-row > .ftag-set { width: 100%; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .filter-row > .seg::-webkit-scrollbar, .filter-row > .ftag-set::-webkit-scrollbar { display: none; }
  .filter-row > .seg, .filter-row > .ftag-set { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
  .seg__item, .ftag { flex: none; scroll-snap-align: start; }
  .ftag-set { padding-right: 20px; }
}
