/* Media Fortis — style.css
   Layers: reset → tokens → base → layout → components → pages → utilities */
@layer reset, tokens, base, layout, components, pages, utilities;

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-ext-wght-normal.341687eeeb6a.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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: "Plus Jakarta Sans";
  src: url("../fonts/plus-jakarta-sans-latin-wght-normal.7660bd9909fb.woff2") format("woff2-variations");
  font-weight: 200 800; font-style: normal; font-display: swap;
  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;
}


@layer reset {
  *, *::before, *::after { box-sizing: border-box; }
  * { margin: 0; }
  html { -webkit-text-size-adjust: 100%; }
  img, svg { display: block; max-width: 100%; height: auto; }
  input, button, select, textarea { font: inherit; color: inherit; }
  ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
  [hidden] { display: none !important; }
}

@layer tokens {
  :root {
    --blue-600: #1A6AFF; --blue-700: #0F55D9; --blue-500: #3B82F6; --blue-100: #E3EDFF; --blue-50: #F2F6FF;
    --ink-950: #0B0D12; --ink-800: #1A1D25; --grey-600: #5B6270; --grey-300: #C9CFDA;
    --surface-0: #FFFFFF; --surface-50: #F7F8FA; --line: #E6E9EF; --green-600: #12A150;
    --amber-50: #FFF8E6; --amber-200: #FFD27A; --amber-300: #E0B74F; --amber-700: #8A5A00; --amber-800: #6B5A2A; --red-600: #C62828; --red-50: #FDECEC; --ink-700: #2A2E38; --grey-hero: #6F7378;

    --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);   /* 16–17px, never below 16 */
    --fs-small: 1rem;
    --fs-h4: clamp(1.125rem, 1.05rem + 0.3vw, 1.3rem);
    --fs-h3: clamp(1.25rem, 1.12rem + 0.55vw, 1.6rem);
    --fs-h2: clamp(1.8rem, 1.4rem + 1.8vw, 3rem);
    --fs-hero: clamp(2.4rem, 5.4vw, 4.2rem);

    --sp-1: .25rem; --sp-2: .5rem; --sp-3: .75rem; --sp-4: 1rem; --sp-5: 1.5rem; --sp-6: 2rem;
    --sp-7: clamp(2.5rem, 2rem + 2vw, 3.5rem); --sp-8: clamp(3.5rem, 2.5rem + 4vw, 6rem); --sp-9: clamp(5rem, 3.5rem + 6vw, 9rem);

    --r-sm: 10px; --r-md: 16px; --r-lg: 20px; --r-xl: 24px; --r-pill: 999px;
    --shadow-sm: 0 1px 2px rgb(11 13 18 / .04), 0 2px 8px rgb(11 13 18 / .04);
    --shadow-md: 0 2px 6px rgb(11 13 18 / .05), 0 12px 32px rgb(11 13 18 / .07);
    --shadow-glass: 0 20px 60px rgb(11 13 18 / .25);
    --container: 1200px; --gutter: clamp(1rem, 4vw, 2rem);
    --header-h: 76px;
    --focus: 0 0 0 3px var(--surface-0), 0 0 0 5px var(--blue-600);
    color-scheme: light;
  }
}

@layer base {
  html { scroll-padding-top: calc(var(--header-h) + 1rem); }
  body { font-family: var(--font); font-size: var(--fs-body); line-height: 1.7; color: var(--grey-600); background: var(--surface-0); font-feature-settings: "ss01"; -webkit-font-smoothing: antialiased; }
  h1, h2, h3, h4 { color: var(--ink-950); font-weight: 500; line-height: 1.15; letter-spacing: -0.02em; text-wrap: balance; }
  h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); } h4 { font-size: var(--fs-h4); }
  p { text-wrap: pretty; }
  a { color: var(--blue-700); text-underline-offset: .2em; }
  a:hover { text-decoration-thickness: 2px; }
  strong { color: var(--ink-950); font-weight: 600; }
  :focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
  [id] { scroll-margin-top: calc(var(--header-h) + 1rem); }
  .num, [data-out] { font-variant-numeric: tabular-nums; }
  ::selection { background: var(--blue-100); color: var(--ink-950); }
}

@layer layout {
  .container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
  .section { padding-block: var(--sp-8); }
  .section--tint { background: var(--surface-50); }
  .section-head { max-width: 46rem; margin-bottom: var(--sp-6); }
  .section-head p { margin-top: var(--sp-3); }
  .eyebrow { display: inline-block; font-size: .875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-700); margin-bottom: var(--sp-3); }
  .grid-2 { display: grid; gap: var(--sp-6); grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); align-items: start; }
  .grid-3 { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
  .stack > * + * { margin-top: var(--sp-4); }
  .prose { max-width: 44rem; }
  .prose > * + * { margin-top: var(--sp-4); }
  .prose h2 { margin-top: var(--sp-7); font-size: var(--fs-h3); }
  .prose h3 { margin-top: var(--sp-6); font-size: var(--fs-h4); }
  .prose ul, .prose ol { padding-left: 1.25rem; }
  .prose li + li { margin-top: var(--sp-2); }
}

@layer components {
  /* Skip link */
  .skip { position: absolute; left: 1rem; top: -100px; z-index: 1000; background: var(--ink-950); color: var(--surface-0); padding: .75rem 1rem; border-radius: var(--r-sm); }
  .skip:focus { top: 1rem; }

  /* ---------- Buttons ---------- */
  .btn { display: inline-flex; align-items: center; justify-content: center; gap: .6rem; min-height: 48px; padding: .6rem 1.4rem; border-radius: var(--r-pill); border: 1px solid transparent; font-weight: 600; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
  .btn--primary { background: var(--blue-600); color: var(--surface-0); }
  .btn--primary:hover { background: var(--blue-700); }
  .btn--ghost { background: var(--surface-0); color: var(--ink-950); border-color: var(--line); }
  .btn--ghost:hover { border-color: var(--grey-300); }
  .btn--dark { background: var(--ink-950); color: var(--surface-0); padding-right: .4rem; }
  .btn--dark:hover { background: var(--ink-800); }
  .btn--block { width: 100%; }
  .arrow-badge { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--blue-600); color: var(--surface-0); font-size: 1.1rem; transition: transform .25s ease; flex: none; }
  .arrow-badge--sm { width: 28px; height: 28px; font-size: .9rem; }
  .btn:hover .arrow-badge, a:hover > .arrow-badge, .pcard:hover .arrow-badge { transform: translateX(3px); }

  /* ---------- Header: transparent over the hero, floating white pill after scroll ---------- */
  /* On scroll the bar eases into a soft "cloud": the container narrows, white fills in, blur and a wide diffuse shadow fade up. */
  .site-header { --nav-ease: cubic-bezier(.22, 1, .36, 1); position: fixed; inset: 0 0 auto; z-index: 100; padding-top: 14px; color: var(--ink-950); transition: padding .6s var(--nav-ease), color .5s ease; }
  .site-header .container { width: min(100% - 2 * var(--gutter), 1280px); transition: width .6s var(--nav-ease); }
  .site-header.is-solid .container { width: min(100% - 2 * var(--gutter), 1180px); }
  .navbar { display: flex; align-items: center; gap: var(--sp-4); height: 64px; padding: 0 .5rem 0 1.25rem; border-radius: var(--r-pill);
    background: rgb(255 255 255 / .94); border: 1px solid rgb(255 255 255 / .7);
    box-shadow: 0 1px 2px rgb(11 13 18 / .04), 0 10px 30px -6px rgb(11 13 18 / .10), 0 28px 60px -18px rgb(26 106 255 / .16);
    transition: background-color .6s var(--nav-ease), border-color .6s var(--nav-ease), box-shadow .6s var(--nav-ease), padding .6s var(--nav-ease), backdrop-filter .6s var(--nav-ease), height .6s var(--nav-ease); }
  @supports (backdrop-filter: blur(1px)) { .navbar { background: rgb(255 255 255 / .86); backdrop-filter: blur(18px) saturate(1.5); } }
  .site-header.is-solid { padding-top: 12px; }
  .site-header.is-solid .navbar { animation: nav-in .6s var(--nav-ease) both; }
  @keyframes nav-in { from { transform: translateY(-6px) scale(.985); } to { transform: none; } }
  .logo, .nav-toggle { transition: color .5s ease, background-color .5s ease, border-color .5s ease; }
  .nav-actions .btn { transition: background-color .5s ease, color .5s ease, border-color .5s ease, transform .2s, box-shadow .2s; }

  /* Transparent state — only on pages with a photo hero, before scrolling */
  .has-hero .site-header:not(.is-solid):not(.menu-open) { padding-top: 26px; color: var(--surface-0); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .navbar { height: 72px; background: rgb(255 255 255 / 0); border-color: rgb(255 255 255 / 0); box-shadow: 0 0 0 rgb(11 13 18 / 0), 0 0 0 rgb(11 13 18 / 0), 0 0 0 rgb(26 106 255 / 0); backdrop-filter: blur(0) saturate(1); padding-inline: 0; }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav a,
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav-dd > button { color: rgb(255 255 255 / .92); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav a:hover,
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav-dd > button:hover { background: rgb(255 255 255 / .12); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav a[aria-current="page"] { background: rgb(255 255 255 / .14); color: var(--surface-0); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .btn--ghost { background: transparent; color: var(--surface-0); border-color: rgb(255 255 255 / .55); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .btn--ghost:hover { background: rgb(255 255 255 / .12); }
  .has-hero .site-header:not(.is-solid):not(.menu-open) .nav-toggle { background: transparent; color: var(--surface-0); border-color: rgb(255 255 255 / .55); }

  .logo { display: inline-flex; align-items: center; color: inherit; text-decoration: none; flex: none; }
  .logo svg { height: 38px; width: auto; }
  .nav { margin-inline: auto; }
  .nav > ul { display: flex; gap: 0; list-style: none; padding: 0; align-items: center; }
  .nav a, .nav-dd > button { white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; min-height: 44px; padding: 0 .75rem; border-radius: var(--r-pill); color: var(--ink-800); text-decoration: none; font-size: 1rem; font-weight: 500; background: none; border: 0; cursor: pointer; transition: background-color .2s, color .5s ease; }
  .nav a:hover, .nav-dd > button:hover { background: var(--surface-50); }
  .nav a.is-active, .nav a[aria-current="page"] { color: var(--blue-700); background: var(--blue-50); }
  .nav-dd { position: relative; }
  .nav-dd > button svg { transition: transform .2s; }
  .nav-dd.is-open > button svg { transform: rotate(180deg); }
  .nav-dd__menu { position: absolute; top: calc(100% + 10px); left: 50%; translate: -50% 0; width: 340px; padding: .5rem; list-style: none; background: var(--surface-0); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-md); display: none; }
  .nav-dd.is-open .nav-dd__menu { display: block; }
  .nav-dd__menu a { display: flex; width: 100%; border-radius: var(--r-sm); padding: .5rem .75rem; min-height: 44px; color: var(--ink-800) !important; }
  .nav-actions { display: flex; gap: .5rem; flex: none; }
  .nav-actions .btn { min-height: 44px; padding-inline: 1.15rem; font-weight: 500; }
  .nav-toggle { display: none; margin-left: auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface-0); color: var(--ink-950); cursor: pointer; place-items: center; }
  @media (max-width: 1300px) { .nav-actions .btn--ghost { display: none; } }
  @media (max-width: 1100px) {
    .nav-toggle { display: grid; }
    .nav, .nav-actions { display: none; }
    .menu-open .navbar { border-radius: var(--r-lg); height: auto; flex-wrap: wrap; padding: .6rem .6rem 1rem 1.25rem; background: var(--surface-0); }
    .menu-open .nav, .menu-open .nav-actions { display: block; width: 100%; }
    .menu-open .nav > ul { flex-direction: column; align-items: stretch; }
    .menu-open .nav-dd__menu { position: static; translate: none; width: auto; box-shadow: none; border: 0; padding: 0 0 0 1rem; }
    .menu-open .nav-actions { display: flex; flex-direction: column; margin-top: .5rem; }
    .menu-open .nav-actions .btn { display: flex; }
  }

  /* ---------- Hero — full-bleed photo, headline top-left, glass card, text + black pill bottom-right ---------- */
  .hero { position: relative; isolation: isolate; height: clamp(640px, 62vw, 900px); max-height: max(640px, 100svh); color: var(--surface-0); overflow: hidden; background: var(--grey-hero); }
  .hero__img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
  /* No filter on the photo itself (keeps it crisp) — legibility comes from gradients behind the text: headline top-left, copy along the bottom */
  .hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
      linear-gradient(100deg, rgb(28 25 22 / .55) 0%, rgb(28 25 22 / .25) 38%, transparent 60%),
      linear-gradient(180deg, rgb(28 25 22 / .25) 0%, transparent 22%, transparent 58%, rgb(28 25 22 / .6) 100%); }
  .hero__inner { position: relative; height: 100%; width: min(100% - 2 * var(--gutter), 1280px); margin-inline: auto; }
  .hero__title { position: absolute; left: 0; top: calc(var(--header-h) + clamp(2rem, 5vw, 4.5rem)); margin: 0;
    color: var(--surface-0); font-size: clamp(2.6rem, 4vw, 4rem); font-weight: 500; line-height: 1.06; letter-spacing: -0.035em; }
  .hero__title .line { display: block; }
  .hero__aside { position: absolute; right: 0; bottom: 12%; display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 4rem); }
  .hero__aside p { max-width: 15.5rem; color: rgb(255 255 255 / .9); font-size: 1rem; line-height: 1.45; }
  .hero .btn--dark { padding: .35rem .35rem .35rem 1.25rem; min-height: 50px; font-weight: 500; }
  .hero__legal { position: absolute; left: 0; bottom: 4.5%; max-width: 27%; font-size: 1rem; line-height: 1.45; color: rgb(255 255 255 / .88); }
  .hero__legal strong { color: var(--surface-0); }
  .hero__legal a { color: var(--surface-0); }
  @media (max-width: 1100px) { .hero__aside { flex-direction: column; align-items: flex-start; gap: 1rem; } }
  @media (max-width: 900px) {
    .hero { height: auto; max-height: none; padding: calc(var(--header-h) + 3rem) 0 2rem; }
    .hero__inner { height: auto; display: grid; gap: 1.75rem; }
    .hero__title, .hero__aside, .hero__legal { position: static; }
    .hero__aside { align-items: flex-start; }
    .hero__legal { max-width: none; }
  }

  /* ---------- Generic glass (used only as fallback) ---------- */
  .glass { position: relative; border-radius: var(--r-lg); padding: 1.25rem; color: var(--ink-950); background: var(--surface-0); border: 1px solid var(--line); }

  /* ---------- Calculator ---------- */
  .calc { display: grid; gap: .85rem; }
  .field { display: grid; gap: .35rem; }
  .field > label, .field__label { font-weight: 600; color: var(--ink-950); font-size: 1rem; }
  .field__row { display: grid; grid-template-columns: 1fr 7.5rem; gap: .75rem; align-items: center; }
  .input, .select, .textarea { width: 100%; min-height: 48px; padding: .6rem .85rem; border: 1px solid var(--grey-300); border-radius: 12px; background: var(--surface-0); color: var(--ink-950); font-size: 1rem; font-variant-numeric: tabular-nums; }
  .input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--blue-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue-600) 25%, transparent); border-radius: 12px; }
  .input-unit { position: relative; }
  .input-unit .input { padding-right: 2.4rem; }
  .input-unit span { position: absolute; right: .85rem; top: 50%; translate: 0 -50%; color: var(--grey-600); pointer-events: none; }
  .field__hint { font-size: 1rem; line-height: 1.45; color: var(--grey-600); }
  input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; }
  input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--blue-100); }
  input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--blue-100); }
  input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%; background: var(--blue-600); border: 3px solid var(--surface-0); box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
  input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-600); border: 3px solid var(--surface-0); box-shadow: 0 1px 4px rgb(0 0 0 / .3); }
  input[type="range"]:focus-visible { box-shadow: none; }
  input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus); }
  input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: var(--focus); }
  .calc__out { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .9rem; border-radius: 14px; background: var(--blue-50); border: 1px solid var(--blue-100); }
  .calc__out div { display: grid; }
  .calc__out dt { font-size: 1rem; color: var(--grey-600); line-height: 1.3; }
  .calc__out dd { font-weight: 700; color: var(--ink-950); font-size: 1.1rem; font-variant-numeric: tabular-nums; }
  .calc__out .calc__main { grid-column: 1 / -1; }
  .calc__out .calc__main dd { font-size: 1.9rem; color: var(--blue-700); letter-spacing: -0.02em; line-height: 1.15; }
  .calc__disclaimer { font-size: 1rem; line-height: 1.45; color: var(--ink-800); border-left: 3px solid var(--blue-600); padding-left: .75rem; }
  .calc__warn { font-weight: 700; color: var(--ink-950); font-size: 1rem; }

  /* ---------- Trust strip ---------- */
  .trust { border-bottom: 1px solid var(--line); background: var(--surface-0); }
  .trust ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; justify-content: center; list-style: none; padding: 1.1rem 0; margin: 0; }
  .trust li { display: inline-flex; align-items: center; gap: .5rem; color: var(--ink-800); font-weight: 500; }
  .trust svg { color: var(--blue-600); flex: none; }

  /* ---------- Narrow container (reference proportions) ---------- */
  .container--narrow { width: min(100% - 2 * var(--gutter), 1040px); margin-inline: auto; }

  /* ---------- Centred statement ---------- */
  .statement { text-align: center; padding-block: clamp(4rem, 7vw, 6.5rem) clamp(2.25rem, 3.5vw, 3rem); }
  .statement h2 { font-size: clamp(2rem, 3.3vw, 3rem); font-weight: 500; line-height: 1.16; letter-spacing: -0.035em; color: var(--ink-950); }
  .statement h2 span { display: block; }
  .statement p { max-width: 34rem; margin: 1rem auto 0; font-size: 1rem; line-height: 1.55; color: var(--grey-600); }

  /* ---------- Big blue panel with isometric tiles ---------- */
  .bluepanel { position: relative; overflow: hidden; isolation: isolate; border-radius: var(--r-xl); background: var(--blue-600); color: var(--surface-0);
    height: clamp(400px, 33vw, 460px); display: flex; align-items: flex-end; padding: clamp(1.5rem, 3vw, 2.25rem); }
  .bluepanel__text { position: relative; z-index: 2; max-width: 24rem; }
  .bluepanel h2 { color: var(--surface-0); font-size: clamp(1.6rem, 2.3vw, 2.15rem); font-weight: 500; line-height: 1.15; letter-spacing: -0.025em; }
  .bluepanel h2 span { display: block; }
  .bluepanel p { color: rgb(255 255 255 / .9); font-size: 1rem; line-height: 1.5; margin-top: .9rem; }
  .bluepanel::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 75% at 0% 100%, var(--blue-600) 38%, transparent 62%); }
  .iso { position: absolute; z-index: 0; left: 30%; top: -62%; width: 1060px; display: grid; grid-template-columns: repeat(5, 200px); grid-auto-rows: 140px; gap: 34px;
    transform: rotateX(48deg) rotateZ(32deg); transform-origin: 0 0; pointer-events: none; }
  .iso__tile { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem; border-radius: 20px; background: var(--surface-0); color: var(--ink-950);
    font-weight: 800; font-size: 1.55rem; letter-spacing: -0.03em; line-height: 1.05; text-align: center; box-shadow: 0 12px 0 rgb(8 40 120 / .16); }
  .iso__tile svg { width: 34px; height: 34px; flex: none; }
  .iso__tile--blue { background: rgb(255 255 255 / .2); color: var(--surface-0); box-shadow: none; border: 1px solid rgb(255 255 255 / .18); }
  .iso__tile--hero { background: color-mix(in srgb, var(--surface-0) 28%, var(--blue-600)); color: var(--surface-0); box-shadow: 0 12px 0 rgb(8 40 120 / .2); }
  .iso__tile--hero svg { width: 60px; height: 60px; }
  .iso__tile--sm { font-size: 1.3rem; gap: .4rem; } /* long single words (Dokumentacija, Refinanciranje) — would overflow the 200px tile at the default size */
  .iso__tile--ghost { background: transparent; border: 1.5px dashed rgb(255 255 255 / .38); box-shadow: none; }
  @media (max-width: 760px) {
    .bluepanel { height: 520px; }
    .iso { left: 4%; top: -48%; transform: rotateX(48deg) rotateZ(32deg) scale(.7); }
  }

  /* ---------- Feature cards (reference row: title, grey text, device graphic) ---------- */
  .features { display: grid; gap: 1rem; grid-template-columns: repeat(3, 1fr); margin-top: 1rem; }
  @media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
  .fcard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; padding: 1.5rem 1.5rem 0; background: var(--surface-0); overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; }
  .fcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
  .fcard h3 { font-size: clamp(1.15rem, 1.05rem + .35vw, 1.3rem); font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; }
  .fcard h3 span { display: block; }
  .fcard p { margin-top: .6rem; font-size: 1rem; line-height: 1.5; }
  .fcard__art { position: relative; height: 210px; margin-top: 1.5rem; display: flex; justify-content: center; align-items: flex-start; overflow: hidden; }
  /* 1 — dark device */
  .dev-dark { width: 132px; height: 240px; margin-top: 6px; border-radius: 16px 16px 0 0; padding: 1.1rem .9rem; color: var(--surface-0);
    background: linear-gradient(180deg, var(--ink-950) 0%, var(--ink-800) 55%, var(--ink-700) 100%); box-shadow: 0 -2px 0 rgb(255 255 255 / .06) inset; display: grid; align-content: start; gap: .55rem; font-size: .9rem; line-height: 1.2; }
  .dev-dark .ok { display: flex; align-items: center; gap: .4rem; }
  .dev-dark .ok i { width: 16px; height: 16px; border-radius: 50%; background: var(--blue-600); display: grid; place-items: center; flex: none; }
  .dev-dark .big { font-size: 1.35rem; font-weight: 700; letter-spacing: -0.02em; margin-top: .25rem; }
  /* 2 — paper slip inside scan corners */
  .scan { position: relative; width: 190px; height: 230px; margin-top: 10px; }
  .scan::before, .scan::after { content: ""; position: absolute; width: 18px; height: 18px; border: 1.5px solid var(--grey-300); }
  .scan::before { top: 0; left: 0; border-right: 0; border-bottom: 0; border-radius: 4px 0 0 0; }
  .scan::after { top: 0; right: 0; border-left: 0; border-bottom: 0; border-radius: 0 4px 0 0; }
  .slip { position: absolute; left: 32px; top: 18px; width: 128px; height: 240px; padding: .7rem .6rem; background: var(--surface-0); border: 1px solid var(--line); box-shadow: var(--shadow-md);
    transform: rotate(-8deg); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; line-height: 1.55; color: var(--ink-800); text-align: left; white-space: nowrap; overflow: hidden; }
  .slip b { display: block; text-align: center; font-size: .7rem; letter-spacing: .06em; margin-bottom: .3rem; }
  .slip hr { border: 0; border-top: 1px dashed var(--grey-300); margin: .35rem 0; }
  /* 3 — phone */
  .phone { width: 168px; height: 260px; margin-top: 8px; border: 7px solid var(--ink-950); border-bottom: 0; border-radius: 30px 30px 0 0; background: var(--surface-0); padding: .5rem .75rem; position: relative; text-align: left; }
  .phone::before { content: ""; position: absolute; top: 6px; left: 50%; translate: -50% 0; width: 54px; height: 16px; border-radius: 10px; background: var(--ink-950); }
  .phone .bar { display: flex; justify-content: space-between; font-size: .62rem; font-weight: 700; color: var(--ink-950); }
  .phone .ttl { font-size: .72rem; font-weight: 700; text-align: center; color: var(--ink-950); margin-top: .9rem; }
  .phone .lbl { font-size: .6rem; text-align: center; color: var(--grey-600); margin-top: .5rem; }
  .phone .val { font-size: 1.1rem; text-align: center; font-weight: 700; color: var(--ink-950); }
  .phone ul { list-style: none; padding: 0; margin-top: .55rem; display: grid; gap: .3rem; font-size: .62rem; color: var(--ink-800); }
  .phone li { display: flex; align-items: center; gap: .35rem; }
  .phone li i { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--blue-600); flex: none; }
  .phone li i.on { background: var(--blue-600); }

  /* ---------- Section language for the rest of the homepage ---------- */
  .section-head--center { text-align: center; margin-inline: auto; max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
  .section-head--center h2 { font-size: clamp(1.9rem, 3vw, 2.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
  .section-head--center p { font-size: 1rem; line-height: 1.55; margin-top: .9rem; }
  .panel-tint { background: var(--surface-50); border-radius: var(--r-xl); padding: clamp(1.5rem, 4vw, 3.5rem); }
  /* Home page licences teaser — short summary, full details live on licencije.html */
  .lic-teaser { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
  .lic-teaser h2 { font-size: clamp(1.7rem, 2.6vw, 2.3rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.15; }
  .lic-teaser p { margin-top: .75rem; max-width: 36rem; color: var(--grey-600); }
  .lic-teaser__list { list-style: none; padding: 0; margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; }
  .lic-teaser__list li { display: flex; align-items: center; gap: .55rem; font-weight: 600; color: var(--ink-950); }
  .lic-teaser__ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--blue-600); color: var(--surface-0); flex: none; }
  .lic-teaser__ic svg { width: 12px; height: 12px; }
  .lic-teaser .btn--dark { flex: none; padding: .35rem .35rem .35rem 1.25rem; min-height: 50px; }
  @media (max-width: 760px) { .lic-teaser { flex-direction: column; align-items: flex-start; } }
  .trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; padding: 0; margin-top: 1.25rem; }
  .trust-row li { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface-0); color: var(--ink-800); font-weight: 500; }
  .trust-row svg { color: var(--blue-600); }

  /* ---------- Product cards (container queries) ---------- */
  .pgrid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
  .pcard-wrap { container-type: inline-size; }
  .pcard { position: relative; height: 100%; display: flex; flex-direction: column; gap: .6rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-0); transition: transform .25s, box-shadow .25s, border-color .25s; }
  .pcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
  .pcard:has(a:focus-visible) { box-shadow: var(--focus); }
  .pcard__title { font-size: 1.2rem; font-weight: 500; letter-spacing: -0.02em; }
  .pcard__title a { color: inherit; text-decoration: none; }
  .pcard__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
  .pcard__title a:focus-visible { box-shadow: none; }
  .pcard__who { flex: 1; }
  .pcard__more { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--blue-700); }
  .pcard__tag { align-self: start; font-size: .875rem; font-weight: 600; padding: .15rem .6rem; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-700); }
  @container (min-width: 30rem) { .pcard { flex-direction: row; align-items: center; gap: 1.5rem; } .pcard__more { flex: none; } }

  /* ---------- Steps ---------- */
  .steps { counter-reset: step; display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); list-style: none; padding: 0; }
  .steps li { counter-increment: step; padding: 1.5rem; border-radius: 18px; background: var(--surface-0); border: 1px solid var(--line); }
  .steps li::before { content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-600); color: var(--surface-0); font-weight: 700; margin-bottom: .9rem; }
  .steps h3 { font-size: 1.15rem; margin-bottom: .35rem; }

  /* ---------- Representative example box ---------- */
  .rp { border: 1px solid var(--grey-300); border-radius: 18px; padding: 1.4rem; background: var(--surface-0); }
  .rp__label { display: inline-block; font-size: .875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--ink-950); color: var(--surface-0); padding: .25rem .7rem; border-radius: 6px; margin-bottom: .75rem; }
  .rp h3 { font-size: 1.2rem; margin-bottom: .5rem; }
  .rp__warn { font-size: 1.05rem; padding: .6rem .8rem; background: var(--amber-50); border-radius: 10px; margin: .5rem 0 1rem; color: var(--ink-950); }
  .rp__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: .5rem 1.25rem; }
  .rp__grid div { padding: .5rem 0; border-bottom: 1px solid var(--line); }
  .rp__grid dt { font-size: 1rem; color: var(--grey-600); }
  .rp__grid dd { font-weight: 700; color: var(--ink-950); font-variant-numeric: tabular-nums; font-size: 1.1rem; }
  .rp__grid dd small { font-weight: 500; color: var(--grey-600); font-size: 1rem; }
  .rp__total { grid-column: 1 / -1; }
  .rp__total dd { font-size: 1.35rem; color: var(--blue-700); }
  .rp__fees, .rp__note { margin-top: .75rem; font-size: 1rem; }
  .ph { display: inline-block; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85em; font-weight: 600; background: var(--amber-50); color: var(--amber-700); border: 1px dashed var(--amber-300); border-radius: 6px; padding: 0 .35rem; line-height: 1.5; word-break: break-all; }

  /* ---------- Remuneration / disclosure callout ---------- */
  .disclosure { display: grid; grid-template-columns: auto 1fr; gap: 1rem 1.25rem; align-items: start; padding: 1.5rem; border-radius: var(--r-lg); background: var(--blue-50); border: 1px solid var(--blue-100); }
  .disclosure h2, .disclosure h3 { font-size: var(--fs-h4); }
  .disclosure dl { display: grid; gap: .5rem; margin-top: .75rem; }
  .disclosure dt { font-weight: 600; color: var(--ink-950); }
  @media (max-width: 560px) { .disclosure { grid-template-columns: 1fr; } }

  /* ---------- Comparison table ---------- */
  .compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-0); overflow: hidden; }
  .compare th, .compare td { text-align: left; vertical-align: top; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
  .compare thead th { background: var(--surface-50); color: var(--ink-950); }
  .compare thead th:last-child { background: var(--blue-50); color: var(--blue-700); }
  .compare tr:last-child td, .compare tr:last-child th { border-bottom: 0; }
  .compare tbody th { color: var(--ink-950); font-weight: 600; width: 26%; }
  .table-scroll { overflow-x: auto; }

  /* ---------- Licences ---------- */
  .lic { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
  .lic__item { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-0); }
  .lic__item h3 { font-size: 1.1rem; margin: .75rem 0 .35rem; }
  .lic__item p + p { margin-top: .35rem; }
  .lic__verify { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; margin-top: .75rem; }
  .badge-ok { display: inline-flex; align-items: center; gap: .35rem; font-size: .875rem; font-weight: 700; color: var(--green-600); background: color-mix(in srgb, var(--green-600) 10%, white); padding: .15rem .55rem; border-radius: var(--r-pill); }

  /* ---------- Accordion (native details) ---------- */
  .faq { display: grid; gap: .6rem; max-width: 52rem; }
  .faq details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-0); }
  .faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.1rem 1.25rem; font-weight: 600; color: var(--ink-950); min-height: 56px; border-radius: var(--r-md); }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50); color: var(--blue-700); font-size: 1.25rem; flex: none; transition: transform .2s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq-wide { display: grid; justify-items: center; }
  .faq-wide .faq { width: min(100%, 80vw); max-width: none; }
  .faq details > div { padding: 0 1.25rem 1.25rem; }
  .faq details > div > * + * { margin-top: .6rem; }

  /* ---------- Contact + form ---------- */
  .contact-list { list-style: none; padding: 0; display: grid; gap: .9rem; }
  .contact-list li { display: flex; gap: .85rem; align-items: start; }
  .contact-list a { font-weight: 600; color: var(--ink-950); }
  .contact-list .big { font-size: 1.35rem; font-weight: 700; color: var(--ink-950); text-decoration: none; font-variant-numeric: tabular-nums; }
  .contact-list .big:hover { color: var(--blue-700); }
  .msg-btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
  #map { height: 300px; border-radius: var(--r-md); border: 1px solid var(--line); margin-top: 1.5rem; background: var(--surface-50); z-index: 0; }
  .form-card { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface-0); box-shadow: var(--shadow-sm); }
  .form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
  .form-grid .full { grid-column: 1 / -1; }
  @media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
  .req { color: var(--red-600); }
  .err { display: flex; gap: .4rem; align-items: center; color: var(--red-600); font-weight: 600; font-size: 1rem; min-height: 0; }
  .err:empty { display: none; }
  [aria-invalid="true"] { border-color: var(--red-600) !important; border-width: 2px; }
  .field:has([aria-invalid="true"]) > label { color: var(--red-600); }
  .check { display: flex; gap: .7rem; align-items: start; }
  .check input { width: 22px; height: 22px; margin-top: .25rem; accent-color: var(--blue-600); flex: none; }
  .form-note { padding: .85rem 1rem; border-radius: 12px; background: var(--amber-50); color: var(--ink-950); font-size: 1rem; }
  .form-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
  .form-submit p { font-size: 1rem; }
  .form-privacy { font-size: .875rem; color: var(--grey-600); margin: 0; }
  .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .success { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .5rem; padding: clamp(2rem, 4vw, 3rem) 1.5rem; text-align: center; border-radius: var(--r-lg); background: color-mix(in srgb, var(--green-600) 6%, white); border: 1px solid color-mix(in srgb, var(--green-600) 25%, white); }
  .success[hidden] { display: none; }
  .success:focus { outline: none; }
  .success__icon { display: grid; place-items: center; width: 60px; height: 60px; margin-bottom: .75rem; border-radius: 50%; background: var(--green-600); color: #fff; box-shadow: 0 0 0 8px color-mix(in srgb, var(--green-600) 14%, transparent), 0 10px 24px -8px color-mix(in srgb, var(--green-600) 60%, transparent); animation: success-pop .45s cubic-bezier(.2, .9, .3, 1.3) both; }
  .success h3 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.55rem); letter-spacing: -0.01em; }
  .success p { margin: 0; max-width: 44ch; color: var(--grey-600); }
  .success__call { margin-top: .5rem !important; padding-top: 1rem; border-top: 1px solid color-mix(in srgb, var(--green-600) 20%, white); font-size: .95rem; }
  .success__call a { font-weight: 700; color: var(--ink-950); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
  .success__call a:hover { color: var(--blue-700); }
  @keyframes success-pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
  @media (prefers-reduced-motion: reduce) { .success__icon { animation: none; } }
  .form-card:has(#f-privola:checked) .btn--primary { box-shadow: 0 6px 20px color-mix(in srgb, var(--blue-600) 35%, transparent); }

  /* ---------- Modeli kredita (home page) — six offer cards, the "Najpopularniji" one in brand blue ---------- */
  .models { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: stretch; }
  .model { display: flex; flex-direction: column; padding: 1.75rem; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface-0);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
  .model:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
  .model__tag { align-self: flex-start; padding: .35rem .75rem; border-radius: var(--r-pill); background: var(--blue-50); color: var(--blue-700); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
  .model__amount { margin: 1.1rem 0 .2rem; font-size: clamp(2.1rem, 3.2vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; font-variant-numeric: tabular-nums; color: var(--ink-950); }
  .model__amount--text { font-size: clamp(1.6rem, 2.4vw, 2rem); }
  .model__rate { color: var(--grey-600); font-size: 1rem; }
  .model__rate b { color: var(--ink-950); font-size: 1.2rem; font-weight: 700; font-variant-numeric: tabular-nums; }
  .model__list { list-style: none; display: grid; gap: .65rem; margin: 1.35rem 0 1.6rem; padding: 1.35rem 0 0; border-top: 1px solid var(--line); }
  .model__list li { display: flex; gap: .65rem; align-items: start; font-size: 1rem; line-height: 1.4; }
  .model__check { display: grid; place-items: center; width: 22px; height: 22px; margin-top: .05rem; border-radius: 50%; background: var(--blue-50); color: var(--blue-600); flex: none; }
  .model__check svg { width: 12px; height: 12px; }
  .model .btn { margin-top: auto; }
  .model--featured { background: var(--blue-600); border-color: transparent; color: var(--surface-0); box-shadow: 0 28px 60px -24px rgb(26 106 255 / .6); }
  .model--featured:hover { border-color: transparent; box-shadow: 0 32px 70px -24px rgb(26 106 255 / .7); }
  .model--featured .model__tag { background: rgb(255 255 255 / .18); color: var(--surface-0); }
  .model--featured .model__amount, .model--featured .model__rate b { color: var(--surface-0); }
  .model--featured .model__rate { color: rgb(255 255 255 / .8); }
  .model--featured .model__list { border-top-color: rgb(255 255 255 / .22); }
  .model--featured .model__check { background: rgb(255 255 255 / .2); color: var(--surface-0); }
  .btn--light { background: var(--surface-0); color: var(--blue-700); }
  .btn--light:hover { background: var(--blue-50); }
  .models__note { margin-top: 1.25rem; font-size: .95rem; line-height: 1.5; color: var(--grey-600); }
  .models__note + .models__note { margin-top: .5rem; }
  @media (max-width: 1000px) { .models { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 640px) { .models { grid-template-columns: 1fr; } }

  /* ---------- Quick enquiry under the hero (home page) — white card overlapping the hero's bottom edge ---------- */
  .quick { position: relative; z-index: 2; width: min(100% - 2 * var(--gutter), 1180px); margin: -64px auto 0; }
  .hero:has(+ .quick) .hero__aside { bottom: calc(12% + 48px); }
  .hero:has(+ .quick) .hero__legal { bottom: calc(4.5% + 56px); }
  .quick__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start;
    padding: clamp(1.5rem, 3.2vw, 2.5rem); border-radius: var(--r-xl); background: var(--surface-0); border: 1px solid var(--line);
    box-shadow: 0 1px 2px rgb(11 13 18 / .04), 0 18px 50px -12px rgb(11 13 18 / .14), 0 40px 80px -30px rgb(26 106 255 / .2); }
  .quick__intro h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .75rem; }
  .quick__intro p { color: var(--grey-600); }
  .quick__call { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
  .quick__call a { font-weight: 700; color: var(--ink-950); text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .quick__call a:hover { color: var(--blue-700); }
  .quick__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: start; }
  .quick__wide { grid-column: span 2; }
  .quick__grid .check label { font-size: .95rem; line-height: 1.45; color: var(--grey-600); }
  .quick__grid .check strong { color: var(--ink-950); }
  .quick__submit { align-self: end; }
  .quick__card:has(#f-privola:checked) .btn--primary { box-shadow: 0 6px 20px color-mix(in srgb, var(--blue-600) 35%, transparent); }
  /* Takes the form's place in the second column once the enquiry is sent. */
  .quick__success { grid-column: 2; align-self: stretch; min-height: 280px; }
  @media (max-width: 1000px) { .quick__card { grid-template-columns: 1fr; } .quick__success { grid-column: auto; } }
  @media (max-width: 900px) { .quick { margin-top: 1.5rem; } }
  @media (max-width: 640px) { .quick__grid { grid-template-columns: 1fr; } .quick__wide { grid-column: auto; } }

  /* "Kako do nas" at the bottom of the home page: details left, map fills the right column */
  .visit { align-items: stretch; }
  .visit .gmap { display: block; width: 100%; height: 100%; min-height: 380px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-50); }
  .visit #map.gmap { height: 100%; margin-top: 0; }

  /* ---------- Media ---------- */
  .media { border-radius: var(--r-lg); overflow: hidden; background: var(--surface-50); }
  .media img { width: 100%; height: 100%; object-fit: cover; }
  .media--tall { aspect-ratio: 4 / 5; }
  .media--wide { aspect-ratio: 16 / 10; }
  .photo-strip { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); margin-top: var(--sp-6); }
  .photo-strip figure { border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 3; }
  .photo-strip img { width: 100%; height: 100%; object-fit: cover; }

  /* ---------- Page header (inner pages) ---------- */
  /* O nama — built from the home page pieces: centred head, pcards, light panel */
  .about-h1 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
  .about-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .about-cards .pcard { flex-direction: column; align-items: flex-start; gap: .6rem; }
  .about-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--blue-50); color: var(--blue-700); }
  .about-contact { margin-bottom: clamp(1.5rem, 3vw, 2rem); }
  .about-contact .lic-teaser__ic svg { width: 13px; height: 13px; }
  .about-contact .lic-teaser__list a { color: var(--ink-950); text-decoration: none; }
  .about-contact .lic-teaser__list a:hover { color: var(--blue-700); }
  .about-contact__docs { display: grid; gap: .6rem; flex: none; }
  .about-contact__docs .btn--dark { padding: .35rem .35rem .35rem 1.25rem; min-height: 50px; justify-content: space-between; }
  @media (max-width: 1000px) { .about-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
  @media (max-width: 600px) { .about-cards { grid-template-columns: 1fr; } .about-contact__docs .btn { white-space: normal; } }
  .section--first { padding-top: calc(var(--header-h) + 4rem); } /* page without a page-hero: clear the fixed header */
  .page-hero { padding: calc(var(--header-h) + 5rem) 0 var(--sp-7); background: var(--surface-50); border-bottom: 1px solid var(--line); }
  .page-hero h1 { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 3.4rem); letter-spacing: -0.035em; font-weight: 500; max-width: 22ch; }
  .page-hero p.lead { max-width: 42rem; margin-top: 1rem; font-size: 1.125rem; }
  .crumbs { font-size: 1rem; margin-bottom: 1rem; }
  .crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; padding: 0; }
  .crumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--grey-300); }
  .product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: var(--sp-7); align-items: start; }
  .product-layout > *, .grid-2 > *, .hero__grid > * { min-width: 0; }
  .product-layout aside { position: sticky; top: calc(var(--header-h) + 1rem); display: grid; gap: 1rem; }
  @media (max-width: 960px) { .product-layout { grid-template-columns: 1fr; } .product-layout aside { position: static; } }
  .checklist { list-style: none; padding: 0; display: grid; gap: .5rem; }
  .checklist label { display: flex; gap: .7rem; align-items: start; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
  .checklist input { width: 22px; height: 22px; margin-top: .2rem; accent-color: var(--blue-600); flex: none; }
  .checklist label:has(input:checked) { background: var(--blue-50); border-color: var(--blue-100); }
  .checklist label:has(input:checked) span { text-decoration: line-through; text-decoration-color: var(--grey-300); }
  .bullets { padding-left: 1.2rem; display: grid; gap: .4rem; }
  .callout { padding: 1.25rem 1.4rem; border-radius: var(--r-md); border-left: 4px solid var(--blue-600); background: var(--blue-50); }
  .callout--calm { border-left-color: var(--green-600); background: color-mix(in srgb, var(--green-600) 7%, white); }
  .callout > * + * { margin-top: .5rem; }
  .data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
  .data-table th, .data-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: right; }
  .data-table th:first-child, .data-table td:first-child { text-align: left; }
  .data-table thead th { color: var(--ink-950); background: var(--surface-50); }
  .data-table--text th, .data-table--text td { text-align: left; vertical-align: top; }

  /* ---------- Team placeholder ---------- */
  .team-ph { display: grid; place-items: center; aspect-ratio: 4 / 5; border-radius: var(--r-lg); background: repeating-linear-gradient(135deg, var(--surface-50) 0 12px, var(--surface-0) 12px 24px); border: 1px dashed var(--grey-300); color: var(--grey-600); text-align: center; padding: 1rem; }
  .team-photo { margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-50); box-shadow: var(--shadow-md); }
  .team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

  /* ---------- Footer ---------- */
  .site-footer { background: var(--ink-950); color: var(--grey-300); padding: var(--sp-8) 0 7rem; margin-top: 0; }
  .site-footer a { color: var(--surface-0); text-decoration: none; }
  .site-footer a:hover { text-decoration: underline; }
  .site-footer h2 { color: var(--surface-0); font-size: 1rem; letter-spacing: .02em; margin-bottom: 1rem; }
  .footer-cols { display: grid; gap: var(--sp-6); grid-template-columns: 1.4fr repeat(3, 1fr); }
  @media (max-width: 860px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
  @media (max-width: 520px) { .footer-cols { grid-template-columns: 1fr; } }
  .footer-cols ul { list-style: none; padding: 0; display: grid; gap: .45rem; }
  .footer-cols .logo { color: var(--surface-0); margin-bottom: 1rem; }
  .footer-legal { border-top: 1px solid var(--ink-700); margin-top: var(--sp-7); padding-top: var(--sp-5); font-size: 1rem; line-height: 1.6; display: grid; gap: .75rem; }
  .legal-bar { border-top: 1px solid var(--ink-700); margin-top: var(--sp-5); padding-top: var(--sp-5); font-size: .875rem; line-height: 1.6; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 2rem; }
  .legal-bar__data { margin: 0; }
  .legal-bar__links { display: flex; flex-wrap: wrap; gap: .3rem 0; list-style: none; padding: 0; margin: 0; }
  .legal-bar__links li + li::before { content: "·"; margin: 0 .6rem; color: var(--grey-300); opacity: .6; }
  @media (max-width: 767px) {
    .legal-bar { flex-direction: column; align-items: center; text-align: center; }
    .legal-bar__links { justify-content: center; gap: .4rem 1.25rem; }
    .legal-bar__links li + li::before { content: none; }
  }
  .footer-warn { color: var(--surface-0); font-weight: 700; }
  .site-footer .ph { background: var(--ink-700); color: var(--amber-200); border-color: var(--amber-800); }

  /* ---------- Map placeholder (map loads only on click) ---------- */
  .map-consent { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .75rem; height: 100%; padding: 1.25rem; text-align: center; font-size: .9rem; color: var(--grey-600); }
  .map-consent p { max-width: 34ch; margin: 0; }

  /* ---------- Sticky mobile bar ---------- */
  .mobile-bar { display: none; }
  @media (max-width: 767px) {
    .mobile-bar { position: fixed; z-index: 150; inset: auto 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: var(--surface-0); border-top: 1px solid var(--line); }
    .mobile-bar .btn { width: 100%; }
  }

  .load-error { padding: .75rem 1rem; border-radius: 10px; background: var(--red-50); color: var(--red-600); font-weight: 600; margin-bottom: 1rem; }
}

@layer pages {
  .split-media { display: grid; gap: var(--sp-7); grid-template-columns: 1fr 1fr; align-items: center; }
  @media (max-width: 860px) { .split-media { grid-template-columns: 1fr; } }
  .why-list { display: grid; gap: 1rem; margin-top: 1.25rem; }
  .why-list div { display: grid; grid-template-columns: auto 1fr; gap: .9rem; }
  .why-list strong { display: block; }
}

@layer utilities {
  .h4 { font-size: var(--fs-h4); }
  .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .center { text-align: center; }
  .mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); } .mt-6 { margin-top: var(--sp-6); }
  .muted { color: var(--grey-600); }
  .ink { color: var(--ink-950); }
}

/* CSS scroll-driven reveal for browsers that support it and when GSAP isn't running */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    html:not(.js-motion) [data-reveal] { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
  }
}
@keyframes rise { from { opacity: 0; translate: 0 20px; } to { opacity: 1; translate: 0 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  :root { --grey-600: #3A404C; --line: #9AA3B2; }
  .hero::before { background: rgb(15 17 22 / .78); }
}
@media print { .site-header, .mobile-bar, #map { display: none !important; } .hero { color: var(--ink-950); } }
