/* CityFarm — shared stylesheet. Values are parity-locked to the original build
   (css/styles.css in website_clean); architecture per DECISIONS.md D-004:
   @layer cascade, tokens once, breakpoints 1100 / 960 / 768 / 430 only. */

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/Nunito-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+20AC;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Italic-latin.woff2") format("woff2-variations"),
       url("/assets/fonts/Nunito-Italic-latin.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+20AC;
}

/* Cyrillic subsets — downloaded only on pages that use them (/ru/). */
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-cyrillic.woff2") format("woff2-variations"),
       url("/assets/fonts/Nunito-cyrillic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0301, U+2116;
}

@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/Nunito-Italic-cyrillic.woff2") format("woff2-variations"),
       url("/assets/fonts/Nunito-Italic-cyrillic.woff2") format("woff2");
  font-weight: 200 1000;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0301, U+2116;
}

@font-face {
  font-family: "Verona Serial";
  src: url("/assets/fonts/verona_serial-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Verona Serial";
  src: url("/assets/fonts/verona_serial-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Verona Serial";
  src: url("/assets/fonts/verona_serial-xbold.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Verona Serial";
  src: url("/assets/fonts/verona_serial-heavy.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Verona Serial has no Cyrillic glyphs — on /ru/ pages Cyrillic display text
 * falls through to Vollkorn (interim candidate pending user pick, D-036);
 * Latin brand words (CityFarm, Growly, Fresh) keep rendering in Verona. */
@font-face {
  font-family: "Vollkorn";
  src: url("/assets/fonts/Vollkorn-cyrillic.woff2") format("woff2-variations"),
       url("/assets/fonts/Vollkorn-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0301, U+2116;
}

@font-face {
  font-family: "Vollkorn";
  src: url("/assets/fonts/Vollkorn-Italic-cyrillic.woff2") format("woff2-variations"),
       url("/assets/fonts/Vollkorn-Italic-cyrillic.woff2") format("woff2");
  font-weight: 400 900;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0400-04FF, U+0301, U+2116;
}

@layer tokens, base, chrome, components, pages, utilities;

@layer tokens {
  :root {
    /* Brand palette — BRAND.md §1 (brandbook p.14–15; production-derived shades flagged there) */
    --cream: #fcfaf6;
    --warm-cream: #f9f0c9;
    --surface: #ffffff;
    /* Accessible brand variants: each clears 4.5:1 against white, cream and
       warm cream while staying inside the brand's green family. */
    --green: #267850;
    --green-hover: #1e6b48;
    --green-deep: #1e6b48;
    --green-tint: #7cc198;
    --text: #34312e;
    --text-soft: #5c5a56;
    --muted: rgba(52, 49, 46, 0.68);
    --muted-strong: rgba(52, 49, 46, 0.82);
    --green-rgb: 38, 120, 80;
    --green-deep-rgb: 30, 107, 72;
    --line: rgba(var(--green-rgb), 0.16);
    --magenta: #b93473;
    --sky: #33727c;
    --orange: #b84425;

    /* Shape & layout */
    --radius-lg: 40px;
    --radius-md: 32px;
    --radius-sm: 24px;
    --container: 1232px;
    /* Second, wider container track: 7 templates share this exact 1280px
       max-width (UI-02). Kept as its own token rather than merged into
       --container - unifying the two values would visibly resize one
       side or the other. */
    --container-wide: 1280px;

    /* Motion */
    --cf-ease: cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Type scale (Major Third 1.25, root 16px) */
    --fs-40: 2.5rem;
    --fs-56: 3.5rem;

    /* Fonts */
    --font-body: "Nunito", Arial, sans-serif;
    --font-display: "Verona Serial", Georgia, serif;
  }

  /* Cyrillic display fallback (Verona has no Cyrillic) — per-glyph fallthrough. */
  html[lang="ru"] {
    --font-display: "Verona Serial", "Vollkorn", Georgia, serif;
  }
}

@layer base {
  * {
    box-sizing: border-box;
  }

  html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
  }

  body {
    margin: 0;
    background: var(--cream);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }

  body.nav-open {
    overflow: hidden;
  }

  html:has(dialog[open]) {
    overflow: hidden;
  }

  a {
    color: inherit;
  }

  img {
    display: block;
    max-width: 100%;
  }

  button,
  input {
    font: inherit;
  }

  :focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
    border-radius: 2px;
  }

  ::selection {
    background: var(--green);
    color: var(--warm-cream);
    text-shadow: none;
  }
}

@layer chrome {
  .skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000000;
    transform: translateY(-160%);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--green);
    color: var(--warm-cream);
    font-weight: 800;
    text-decoration: none;
    transition: transform 180ms var(--cf-ease);
  }

  .skip-link:focus {
    transform: translateY(0);
  }

  /* ── Header ─────────────────────────────────────────────────────────── */

  .site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--cream);
    border-bottom: 1px solid #eee;
    transition: box-shadow 220ms var(--cf-ease), border-color 220ms var(--cf-ease);
  }

  .site-header.is-scrolled {
    box-shadow: 0 6px 20px rgba(var(--green-rgb), 0.06);
  }

  .site-nav {
    width: 100%;
    max-width: var(--container-wide);
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
  }

  .site-logo {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    width: fit-content;
    text-decoration: none;
  }

  .site-logo img {
    height: 32px;
    width: auto;
  }

  .desktop-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
  }

  .nav-link,
  .nav-dropdown-toggle {
    border: 0;
    background: transparent;
    color: #404040;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-decoration: none;
    cursor: pointer;
    padding: 25px 11px;
    transition: color 180ms var(--cf-ease);
  }

  .nav-link:hover,
  .nav-link:focus-visible,
  .nav-dropdown-toggle:hover,
  .nav-dropdown-toggle:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
    outline: none;
  }

  .nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
  }

  .desktop-menu .nav-dropdown-toggle::after {
    content: "";
    display: block;
    width: 5px;
    height: 5px;
    margin-left: 6px;
    margin-bottom: -3px;
    border-left: 1.9px solid #404040;
    border-top: 1.9px solid #404040;
    transform: translateY(-60%) rotate(-135deg);
    transition: transform 0.18s ease, border-color 0.18s ease;
  }

  .desktop-menu .nav-item.is-open .nav-dropdown-toggle::after,
  .desktop-menu .nav-item:hover .nav-dropdown-toggle::after,
  .desktop-menu .nav-item:focus-within .nav-dropdown-toggle::after {
    transform: rotate(45deg);
  }

  .nav-item {
    position: relative;
  }

  .produce-dropdown {
    position: fixed;
    top: 70px;
    left: 0;
    z-index: 20;
    width: 100vw;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    padding: 0;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: var(--cream);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  .nav-item.is-open .produce-dropdown,
  .nav-item:hover .produce-dropdown,
  .nav-item:focus-within .produce-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: scaleY(1);
  }

  .nav-item.is-open .nav-dropdown-toggle {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
  }

  .produce-dropdown a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 18px 32px 22px;
    color: #404040;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    text-align: center;
    text-decoration: none;
    transition: color 160ms var(--cf-ease);
  }

  .produce-dropdown a:hover,
  .produce-dropdown a:focus-visible {
    color: #404040;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
    outline: none;
  }

  .produce-dropdown__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .produce-dropdown__icon img {
    width: auto;
    height: 56px;
    display: block;
  }

  .nav-item--lang {
    position: relative;
  }

  .lang-dropdown {
    position: absolute;
    top: calc(100% - 14px);
    left: auto;
    right: -14px;
    z-index: 20;
    min-width: 60px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 6px;
    border: 1px solid #eee;
    border-radius: 12px;
    background: var(--cream);
    box-shadow: 0 14px 32px -18px rgba(var(--green-rgb), 0.28);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-4px);
    transition: transform 0.18s ease, opacity 0.18s ease, visibility 0.18s ease;
  }

  .nav-item--lang.is-open .lang-dropdown,
  .nav-item--lang:hover .lang-dropdown,
  .nav-item--lang:focus-within .lang-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .lang-dropdown a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    color: #404040;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: color 160ms var(--cf-ease);
  }

  .lang-dropdown a:hover,
  .lang-dropdown a:focus-visible {
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
    outline: none;
  }

  [data-lang][aria-disabled="true"] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
  }

  .nav-actions {
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 20px;
  }

  .lang-switcher-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
  }

  .lang-switcher__globe {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .lang-switcher__globe img {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  .lang-switcher__current {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: 0.02em;
    color: #404040;
  }

  .nav-cta {
    padding: 10px 20px;
    margin-left: 12px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.01em;
    transition: background-color 180ms var(--cf-ease);
  }

  .nav-cta:hover,
  .nav-cta:focus-visible {
    background: var(--green-hover);
  }

  /* ── Mobile nav ─────────────────────────────────────────────────────── */

  .nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
  }

  .nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    margin: 5px 0;
    background: var(--text);
  }

  .mobile-nav {
    position: fixed;
    inset: 0;
    z-index: 60;
    background: rgba(var(--green-rgb), 0.55);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    will-change: opacity, visibility;
    transition: opacity 180ms var(--cf-ease), visibility 180ms var(--cf-ease);
  }

  .mobile-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .mobile-nav__panel {
    width: min(360px, 88vw);
    min-height: 100%;
    max-height: 100vh;
    overflow-y: auto;
    padding: 22px 24px 32px;
    background: var(--cream);
    transform: translateX(-100%);
    will-change: transform;
    transition: transform 220ms var(--cf-ease);
  }

  .mobile-nav.is-open .mobile-nav__panel {
    transform: translateX(0);
  }

  .mobile-nav__close {
    width: 44px;
    height: 44px;
    margin: 0 0 18px auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    color: var(--green);
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-nav a,
  .mobile-nav__dropdown-toggle {
    width: 100%;
    display: block;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(52, 49, 46, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav__dropdown {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px 12px;
  }

  .mobile-nav__dropdown.is-open {
    display: flex;
  }

  .mobile-nav__dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 0;
    padding: 12px 0;
    color: var(--text);
  }

  .mobile-nav__lang-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 16px 0;
    border: 0;
    border-bottom: 1px solid rgba(52, 49, 46, 0.08);
    background: transparent;
    color: var(--text);
    font-size: 18px;
    font-weight: 800;
    text-align: left;
    cursor: pointer;
  }

  .mobile-nav__lang-toggle .lang-switcher__current {
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
  }

  .mobile-nav__lang-dropdown {
    display: none;
    flex-direction: column;
    gap: 0;
    padding: 4px 0 8px 12px;
  }

  .mobile-nav__lang-dropdown.is-open {
    display: flex;
  }

  .mobile-nav__lang-dropdown a {
    display: block;
    padding: 12px 0;
    border-bottom: 0;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
  }

  .mobile-nav .mobile-nav__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    background: var(--green);
    color: #fff;
    border: 0;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color 180ms var(--cf-ease);
  }

  .mobile-nav .mobile-nav__cta:hover,
  .mobile-nav .mobile-nav__cta:focus-visible {
    background: var(--green-hover);
  }

  /* ── Footer ─────────────────────────────────────────────────────────── */

  .site-footer {
    background: var(--green-deep);
    color: var(--warm-cream);
  }

  .site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 72px 24px 32px;
  }

  .site-footer__newsletter {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 40px;
    align-items: center;
    padding-bottom: 56px;
    margin-bottom: 56px;
    border-bottom: 1px solid rgba(249, 240, 201, 0.18);
  }

  .site-footer__newsletter-copy {
    max-width: 36rem;
  }

  .site-footer__newsletter-title {
    margin: 0 0 10px;
    color: var(--warm-cream);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 30px;
    line-height: 1.15;
    letter-spacing: -0.01em;
  }

  .site-footer__newsletter-title em {
    font-style: italic;
    font-weight: 700;
  }

  .site-footer__newsletter-copy p {
    margin: 0;
    color: rgba(249, 240, 201, 0.88);
    font-size: 15px;
    line-height: 1.55;
  }

  .site-footer__newsletter-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    padding: 6px;
    background: rgba(249, 240, 201, 0.08);
    border: 1px solid rgba(249, 240, 201, 0.22);
    border-radius: 999px;
    transition: border-color 180ms var(--cf-ease), background-color 180ms var(--cf-ease);
  }

  .site-footer__newsletter-form:focus-within {
    border-color: rgba(249, 240, 201, 0.55);
    background: rgba(249, 240, 201, 0.12);
  }

  .site-footer__newsletter-form input {
    border: 0;
    background: transparent;
    color: var(--warm-cream);
    font-size: 15px;
    padding: 12px 18px;
    outline: none;
    min-width: 0;
  }

  .site-footer__newsletter-form input:focus-visible {
    box-shadow: 0 0 0 2px var(--warm-cream);
    border-radius: 8px;
  }

  .site-footer__newsletter-form input::placeholder {
    color: rgba(249, 240, 201, 0.97);
  }

  .site-footer__newsletter-form button {
    border: 0;
    border-radius: 999px;
    padding: 12px 22px;
    background: var(--warm-cream);
    color: var(--green-deep);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background-color 180ms var(--cf-ease), transform 180ms var(--cf-ease);
  }

  .site-footer__newsletter-form button:hover,
  .site-footer__newsletter-form button:focus-visible {
    background: #fff;
    outline: none;
  }

  .site-footer__newsletter-form.is-submitted button {
    background: var(--green);
    color: var(--warm-cream);
  }

  .site-footer__newsletter-modal-link {
    margin: 10px 0 0;
  }

  .site-footer__newsletter-modal-link .link-cta {
    background: transparent;
    border: 0;
    padding: 0;
    min-height: 24px;
    display: inline-flex;
    align-items: center;
    color: var(--warm-cream);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
  }

  .site-footer__newsletter-modal-link .link-cta:hover,
  .site-footer__newsletter-modal-link .link-cta:focus-visible {
    color: #fff;
  }

  .site-footer__menus {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr 1.2fr 1fr 1fr;
    gap: 44px;
  }

  .site-footer h2 {
    margin: 0 0 18px;
    color: var(--warm-cream);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .site-footer a {
    display: flex;
    align-items: center;
    min-height: 24px;
    width: fit-content;
    margin: 0 0 12px;
    color: rgba(249, 240, 201, 0.88);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 180ms var(--cf-ease);
  }

  .site-footer a:hover,
  .site-footer a:focus-visible {
    color: var(--warm-cream);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
  }

  .social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }

  .social-links a {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background: rgba(249, 240, 201, 0.1);
    border-radius: 50%;
    color: var(--warm-cream);
    transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease), transform 180ms var(--cf-ease);
  }

  .social-links a:hover,
  .social-links a:focus-visible {
    background: var(--warm-cream);
    color: var(--green-deep);
    text-decoration: none;
    transform: translateY(-2px);
  }

  .social-links svg {
    width: 18px;
    height: 18px;
    display: block;
  }

  .site-footer__legal {
    margin-top: 64px;
    padding-top: 24px;
    border-top: 1px solid rgba(249, 240, 201, 0.18);
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 24px;
    color: rgba(249, 240, 201, 0.88);
    font-size: 13px;
  }

  .site-footer__legal p {
    margin: 0;
  }

  .site-footer__legal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
  }

  .site-footer__legal-links a {
    display: flex;
    align-items: center;
    min-height: 24px;
    margin: 0;
    font-size: 13px;
    color: rgba(249, 240, 201, 0.88);
  }

  .site-footer__legal-lang {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    letter-spacing: 0.04em;
  }

  .site-footer__legal-lang a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 24px;
    min-width: 24px;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: rgba(249, 240, 201, 0.88);
    letter-spacing: 0.04em;
  }

  .site-footer__legal-lang a.is-active {
    color: var(--warm-cream);
  }

  .site-footer__legal-lang a:hover,
  .site-footer__legal-lang a:focus-visible {
    color: var(--warm-cream);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
  }

  .site-footer__legal-lang span {
    color: rgba(249, 240, 201, 0.88);
  }

  /* ── Newsletter modal (native <dialog>) ─────────────────────────────── */

  .cf-modal {
    width: 100%;
    max-width: 880px;
    margin: auto;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: visible;
  }

  .cf-modal::backdrop {
    background: rgba(var(--green-rgb), 0.55);
    backdrop-filter: blur(4px);
  }

  .cf-modal[open] {
    animation: modal-fade 280ms var(--cf-ease);
  }

  .cf-modal[open]::backdrop {
    animation: modal-fade 280ms var(--cf-ease);
  }

  .cf-modal__dialog {
    position: relative;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border-radius: var(--radius-md);
    background: var(--cream);
    box-shadow: 0 30px 80px rgba(var(--green-rgb), 0.32);
    will-change: transform, opacity;
    animation: modal-rise 320ms var(--cf-ease);
  }

  .cf-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    color: var(--green);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
  }

  .cf-modal__close:hover,
  .cf-modal__close:focus-visible {
    background: var(--green);
    color: var(--warm-cream);
    outline: none;
  }

  .cf-modal__media {
    background: var(--green);
    overflow: hidden;
  }

  .cf-modal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .cf-modal__copy {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .cf-modal__eyebrow {
    margin: 0 0 12px;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .cf-modal__title {
    margin: 0 0 14px;
    color: var(--green);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    font-size: 30px;
    line-height: 1.18;
  }

  .cf-modal__body {
    margin: 0 0 24px;
    color: rgba(52, 49, 46, 0.78);
    font-size: 15px;
  }

  .cf-modal__form {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
  }

  .cf-modal__form input {
    min-width: 0;
    flex: 1 1 auto;
    padding: 14px 18px;
    border: 1.5px solid rgba(var(--green-rgb), 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--green);
    font-size: 14px;
    outline: none;
  }

  .cf-modal__form input:focus {
    border-color: var(--green);
  }

  .cf-modal__form button {
    padding: 14px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .cf-modal__form button:hover,
  .cf-modal__form button:focus-visible {
    background: var(--green-hover);
  }

  .cf-modal__fineprint {
    margin: 0;
    color: rgba(52, 49, 46, 0.55);
    font-size: 12px;
    line-height: 1.5;
  }

  @keyframes modal-fade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes modal-rise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@layer components {
  /* Eyebrows — the .section-head .section-eyebrow form must out-specify
     .section-head p (0-1-1) or head-eyebrows go gray/16px (original had it too) */
  .eyebrow,
  .section-eyebrow,
  .section-head .section-eyebrow {
    margin: 0 0 12px;
    color: var(--green-deep);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
  }

  .eyebrow span {
    margin-right: 6px;
    letter-spacing: 0;
  }

  /* Section head */
  .section-head {
    max-width: 760px;
    margin: 0 auto 72px;
    text-align: center;
  }

  .section-head h2 {
    margin: 0 0 24px;
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: 0;
    font-size: var(--fs-40);
    line-height: 1.18;
  }

  .section-head h2 em {
    font-style: italic;
    font-weight: 400;
    color: var(--green);
  }

  .section-head p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
  }

  .section-head__more {
    display: inline-block;
    margin-top: 18px;
    color: var(--green);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 160ms var(--cf-ease);
  }

  .section-head__more:hover,
  .section-head__more:focus-visible {
    color: var(--green-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
  }

  .section-head__more:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--green);
    border-radius: 6px;
  }

  /* Pill CTA base */
  .cta-pill,
  .nav-cta,
  .hero__cta,
  .plan-card__cta,
  .growly__cta,
  .final-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
  }

  /* Plan cards (home + /abonament/) */
  .plans__grid {
    max-width: var(--container);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    align-items: stretch;
    gap: 16px;
  }

  .plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 32px 32px 36px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 24px;
    transition: transform 300ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 300ms cubic-bezier(0.25, 1, 0.5, 1), border-color 300ms var(--cf-ease);
  }

  .plan-card:hover {
    transform: translateY(-6px);
    border-color: rgba(var(--green-deep-rgb), 0.15);
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.02),
      0 20px 25px -5px rgba(var(--green-deep-rgb), 0.06),
      0 10px 10px -5px rgba(var(--green-deep-rgb), 0.02);
  }

  .plan-card--featured {
    isolation: isolate;
    background: var(--warm-cream);
    border: 0;
    box-shadow: 0 4px 12px rgba(var(--green-deep-rgb), 0.02);
  }

  .plan-card--featured:hover {
    box-shadow:
      0 4px 6px -1px rgba(0, 0, 0, 0.02),
      0 24px 30px -5px rgba(var(--green-deep-rgb), 0.08),
      0 12px 12px -5px rgba(var(--green-deep-rgb), 0.03);
  }

  .plan-card--featured::before {
    content: "";
    position: absolute;
    inset: -12px 0;
    background: var(--warm-cream);
    border-radius: 24px;
    z-index: -1;
    pointer-events: none;
  }

  .plan-card__tag {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 2;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(var(--green-deep-rgb), 0.12);
  }

  .plan-card__tag--soft {
    background: var(--warm-cream);
    color: var(--green-deep);
  }

  .plan-card__tag--magenta {
    background: var(--magenta);
    color: #fff;
  }

  .plan-card__tag--sky {
    background: var(--sky);
    color: #fff;
  }

  .plan-card--featured .plan-card__tag--soft {
    background: #fff;
    color: var(--green-deep);
  }

  .plan-card__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    margin: 0 0 24px;
    border-radius: 16px;
    background: transparent;
    overflow: hidden;
  }

  .plan-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
  }

  .plan-card__title {
    margin: 0 0 12px;
    color: var(--green-deep);
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 400;
    font-size: 44px;
    line-height: 1;
  }

  .plan-card__tagline {
    margin: 0 0 28px;
    min-height: 3em;
    color: var(--text);
    font-size: 17px;
    line-height: 1.4;
  }

  .plan-card__rule {
    margin: 0 0 28px;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .plan-card__price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 32px;
  }

  .plan-card__price strong {
    color: var(--green-deep);
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 40px;
    line-height: 1;
  }

  .plan-card__price span {
    color: var(--text-soft);
    font-weight: 400;
    font-size: 16px;
  }

  .plan-card__list {
    list-style: none;
    margin: 0 0 auto;
    padding: 0;
    color: var(--text);
    font-size: 16px;
    line-height: 1.55;
  }

  .plan-card__list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 6px;
  }

  .plan-card__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.4em;
    width: 14px;
    height: 13px;
    background: url("/assets/images/brand/heart-V.png") no-repeat center / contain;
  }

  .plan-card__cta {
    align-self: flex-start;
    margin-top: 40px;
    padding: 14px 26px;
    border: 1px solid var(--green-deep);
    background: transparent;
    color: var(--green-deep);
    font-size: 15px;
    transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease), border-color 180ms var(--cf-ease);
  }

  .plan-card__cta:hover,
  .plan-card__cta:focus-visible {
    background: var(--green-deep);
    color: #fff;
    outline: none;
  }

  /* Same UI-01 defect as the --primary variant: on its own the background swap
     is a ~1.2:1 indicator. Reuse the sitewide double-ring pattern (SC 1.4.11).
     Kept off :hover so only keyboard focus draws the ring. */
  .plan-card__cta:focus-visible {
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--green-deep);
  }

  .plan-card__cta--primary {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
  }

  .plan-card__cta--primary:hover,
  .plan-card__cta--primary:focus-visible {
    border-color: var(--green-hover);
    background: var(--green-hover);
    color: #fff;
  }

  .plan-card__cta--primary:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--cream), 0 0 0 6px var(--green-deep);
  }

  /* FAQ (native <details>) — home + /abonament/ */
  .faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid rgba(var(--green-deep-rgb), 0.12);
  }

  .faq__item {
    border: 0;
    border-bottom: 1px solid rgba(var(--green-deep-rgb), 0.12);
    border-radius: 0;
    background: transparent;
    transition: background-color 200ms var(--cf-ease);
  }

  .faq__item summary {
    position: relative;
    padding: 22px 48px 22px 4px;
    color: var(--green-deep);
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: 0;
    list-style: none;
    cursor: pointer;
  }

  .faq__item summary::-webkit-details-marker {
    display: none;
  }

  .faq__item summary::before,
  .faq__item summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 4px;
    width: 13px;
    height: 1.5px;
    background: var(--green-deep);
    opacity: 0.6;
    transition: transform 220ms var(--cf-ease), opacity 220ms var(--cf-ease), background-color 200ms var(--cf-ease);
  }

  .faq__item summary::before {
    transform: translateY(-50%);
  }

  .faq__item summary::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .faq__item[open] summary::after {
    transform: translateY(-50%) rotate(0);
    opacity: 0;
  }

  .faq__item summary:hover,
  .faq__item summary:focus-visible {
    color: var(--green);
    outline: none;
  }

  .faq__item summary:hover::before,
  .faq__item summary:hover::after,
  .faq__item summary:focus-visible::before,
  .faq__item summary:focus-visible::after {
    background: var(--green);
    opacity: 1;
  }

  .faq__item p {
    margin: 0;
    padding: 0 48px 24px 4px;
    color: rgba(52, 49, 46, 0.72);
    font-size: 15px;
    line-height: 1.65;
    max-width: 60ch;
  }

  /* Final CTA — home + variants on product pages */
  .final-cta {
    padding: 120px 24px 220px;
    background: var(--cream);
  }

  .final-cta__inner {
    position: relative;
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .final-cta__logo {
    display: block;
    width: 96px;
    height: 96px;
    margin-bottom: 24px;
    transition: transform 0.6s var(--cf-ease);
  }

  .final-cta:hover .final-cta__logo {
    transform: rotate(15deg) scale(1.05);
  }

  .final-cta h2,
  .final-cta p,
  .final-cta a {
    position: relative;
    z-index: 1;
  }

  .final-cta h2 {
    margin: 0 0 16px;
    color: var(--green-deep);
    font-family: var(--font-display);
    font-size: var(--fs-56);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0;
  }

  .final-cta p {
    margin: 0 0 36px;
    color: var(--text);
    font-size: 18px;
  }

  .final-cta a {
    padding: 20px 40px;
    background: var(--green);
    color: #fff;
    font-size: 17px;
    transition: transform 180ms var(--cf-ease), background-color 180ms var(--cf-ease), box-shadow 180ms var(--cf-ease);
  }

  .final-cta a:hover,
  .final-cta a:focus-visible {
    transform: translateY(-3px);
    background: var(--green-hover);
    box-shadow: 0 8px 24px rgba(var(--green-rgb), 0.16);
    outline: none;
  }

  /* Form error/success (injected by JS) */
  .cf-form__error {
    font-size: 13px;
    color: var(--magenta);
    margin: 8px 0 0;
    line-height: 1.4;
  }

  .cf-form__error:empty {
    display: none;
  }

  .cf-form__success {
    font-size: 13px;
    color: var(--green-deep);
    margin: 0;
  }
}

@layer utilities {
  .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;
  }

  .cf-honeypot {
    position: absolute;
    left: -10000px;
    height: 0;
    width: 0;
  }
}

/* ── Responsive: chrome + shared components (breakpoints: 1100/960/768/430) ── */

@layer chrome {
  @media (max-width: 1100px) {
    .site-nav {
      max-width: var(--container);
      min-height: 70px;
      padding: 0 24px;
      grid-template-columns: 140px 1fr 190px;
      gap: 18px;
    }

    .nav-cta {
      padding: 10px 20px;
      font-size: 14px;
      line-height: 14px;
    }
  }

  @media (max-width: 960px) {
    .site-nav {
      min-height: 68px;
      grid-template-columns: 44px 1fr 44px;
      padding: 0 21px;
    }

    .nav-toggle {
      display: block;
    }

    .site-logo {
      justify-self: center;
    }

    .site-logo img {
      height: 35px;
    }

    .desktop-menu,
    .nav-actions {
      display: none;
    }

    .site-footer__menus {
      grid-template-columns: repeat(2, 1fr);
    }

    .site-footer__legal {
      grid-template-columns: 1fr;
    }
  }

  @media (max-width: 768px) {
    .site-footer__newsletter {
      grid-template-columns: 1fr;
      gap: 24px;
      padding-bottom: 40px;
      margin-bottom: 40px;
    }

    .site-footer__newsletter-title {
      font-size: 26px;
    }

    .site-footer__menus {
      grid-template-columns: 1fr;
      gap: 28px;
    }

    .cf-modal__dialog {
      max-width: 420px;
      grid-template-columns: 1fr;
    }

    .cf-modal__media {
      aspect-ratio: 16 / 10;
    }

    .cf-modal__copy {
      padding: 32px 28px;
    }

    .cf-modal__title {
      font-size: 24px;
    }

    .cf-modal__form {
      flex-direction: column;
    }

    .cf-modal__form button {
      width: 100%;
    }
  }

  @media (max-width: 430px) {
    .site-footer__newsletter-form {
      grid-template-columns: 1fr;
      border-radius: 24px;
      padding: 10px;
      gap: 10px;
    }

    .site-footer__newsletter-form input {
      padding: 12px 14px;
    }

    .site-footer__newsletter-form button {
      width: 100%;
    }
  }
}

@layer components {
  @media (max-width: 1100px) and (min-width: 769px) {
    .plans__grid {
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
    }
    .plan-card { padding: 28px 20px 28px; }
    .plan-card__title { font-size: 36px; }
    .plan-card__tag { font-size: 10px; padding: 0 14px; height: 28px; letter-spacing: 0.1em; }
    .plan-card__tagline { font-size: 16px; margin-bottom: 24px; }
    .plan-card__rule { margin-bottom: 24px; }
    .plan-card__price strong { font-size: 36px; }
    .plan-card__price { margin-bottom: 28px; }
    .plan-card__list { font-size: 15px; line-height: 1.85; }
    .plan-card__cta { padding: 12px 22px; font-size: 14px; margin-top: 32px; }
    .plan-card--featured::before { inset: -8px 0; }
  }

  @media (max-width: 768px) {
    .eyebrow,
    .section-eyebrow,
    .section-head .section-eyebrow {
      margin: 0 0 10px;
      font-size: 11px;
      letter-spacing: 0.16em;
    }

    .section-head h2 {
      font-size: 30px;
    }

    .plans__grid {
      grid-template-columns: 1fr;
      margin-top: 0;
      gap: 16px;
    }
    .plan-card { padding: 32px 24px 32px; }
    .plan-card__title { font-size: 38px; }
    .plan-card__tag { font-size: 11px; padding: 0 16px; height: 30px; letter-spacing: 0.1em; }
    .plan-card__tagline { font-size: 16px; margin-bottom: 24px; min-height: 0; }
    .plan-card__rule { margin-bottom: 24px; }
    .plan-card__price strong { font-size: 38px; }
    .plan-card__price { margin-bottom: 28px; }
    .plan-card__list { font-size: 16px; line-height: 1.85; }
    .plan-card__cta { padding: 14px 26px; font-size: 15px; margin-top: 32px; }
    .plan-card--featured {
      order: -1;
      padding: 32px 24px 32px;
    }
    .plan-card--featured::before { inset: 0; }

    .final-cta {
      padding: 80px 16px 140px;
    }

    .final-cta__inner {
      min-height: auto;
      padding: 0;
    }

    .final-cta__logo {
      width: 80px;
      height: 80px;
      margin-bottom: 16px;
    }

    .final-cta h2 {
      font-size: 36px;
    }

    .final-cta p {
      margin-bottom: 28px;
      font-size: 16px;
    }

    .final-cta a {
      padding: 16px 28px;
      font-size: 15px;
    }
  }
}

@layer utilities {
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
      animation-duration: 1ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 1ms !important;
    }
  }

  /* iOS Safari zooms the viewport on focus for any text input under 16px
     (MOBILE-03). Layered last so it wins over every page's own component
     rules without touching their desktop sizes. Excludes control types
     whose rendering doesn't depend on font-size. */
  @media (max-width: 768px) {
    input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="submit"]):not([type="button"]):not([type="file"]):not([type="image"]):not([type="color"]):not([type="hidden"]),
    select,
    textarea {
      font-size: 16px;
    }
  }

  /* Print (EDGE-06): legal pages, journal articles and the order
     confirmation printed with full site chrome - nav, footer, sticky CTAs,
     the consent banner and the newsletter dialog all included. None of
     that belongs on paper, so it's hidden and the page reflows as plain
     black-on-white text. !important because print only ever needs to win
     against screen-only positioning/color, never against another print
     rule, so there's nothing for it to fight within this same media type. */
  @media print {
    .site-header,
    .mobile-nav,
    .produce-dropdown,
    .lang-dropdown,
    .skip-link,
    .cf-consent,
    .cf-modal,
    .site-footer,
    .jart-progress,
    .pdp-toast,
    .pdp-bottom-bar,
    .pdp-bottom-backdrop,
    .payc__sticky-cta,
    .legal-doc__totop {
      display: none !important;
    }

    * {
      box-shadow: none !important;
      text-shadow: none !important;
    }

    html,
    body {
      background: #fff !important;
      color: #000 !important;
    }

    a {
      color: #000 !important;
      text-decoration: underline;
    }

    /* Legal pages: the link target survives onto paper next to its text. */
    .legal-doc__body a[href]::after {
      content: " (" attr(href) ")";
      font-size: 0.85em;
      font-weight: 400;
    }
  }
}

/* ── Sub-page primitives — compact hero, breadcrumb, CTA rows, grids, forms ── */

@layer tokens {
  :root {
    --focus-ring-green-soft: 0 0 0 3px rgba(var(--green-rgb), 0.18);
  }
}

@layer components {
  .page-hero--compact {
    background: var(--cream);
    padding: 48px 0 220px;
  }

  .page-hero__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
  }

  .page-hero--compact .breadcrumb {
    margin-bottom: 0;
  }

  .page-hero--compact .eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
  }

  .page-hero--compact h1 {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(40px, 4vw + 16px, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--green);
  }

  .page-hero--compact h1 em {
    font-style: italic;
    color: var(--green-deep);
  }

  /* Shared with /abonament/, /gaseste-ne/, /jurnal/, the legal-doc family
     (retur/termeni/confidentialitate) - was copy-pasted byte-identically
     into 4 separate page stylesheets (UI-02); consolidated to one rule so
     they can't drift again. povestea-noastra keeps its own bigger variant
     (story.css) since that one already rendered a different size. */
  .plans-hero-title {
    margin: 0 0 16px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: clamp(32px, 3vw + 16px, 48px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: var(--green-deep);
  }

  .plans-hero-title em {
    font-style: italic;
    font-weight: 400;
    color: var(--green);
  }

  .page-hero__sub {
    max-width: 540px;
    margin: 0;
    font-family: var(--font-display);
    font-style: italic;
    font-size: 20px;
    line-height: 1.45;
    color: var(--text-soft);
  }

  .breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    letter-spacing: 0.02em;
    color: var(--muted-strong);
  }

  .breadcrumb a {
    display: flex;
    align-items: center;
    min-height: 24px;
    color: var(--muted-strong);
    text-decoration: none;
    transition: color 160ms var(--cf-ease);
  }

  .breadcrumb a:hover,
  .breadcrumb a:focus-visible {
    color: var(--green-deep);
    text-decoration: underline;
    text-underline-offset: 4px;
    outline: none;
  }

  .breadcrumb [aria-current="page"] {
    color: var(--green-deep);
    font-weight: 600;
  }

  .breadcrumb__sep {
    color: rgba(52, 49, 46, 0.32);
  }

  .cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
  }

  .cta-row a,
  .cta-row button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: 999px;
    border: 0;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 180ms var(--cf-ease), color 180ms var(--cf-ease);
  }

  .cta-row .cta--primary {
    background: var(--green);
    color: #fff;
  }

  .cta-row .cta--primary:hover,
  .cta-row .cta--primary:focus-visible {
    background: var(--green-hover);
    outline: none;
  }

  .cta-row .cta--secondary {
    /* -1px top/bottom compensates for the 1px border .cta--primary doesn't
       have, so both buttons are the same natural height (UI-05) - without
       this, .cta-row's default align-items: stretch silently grows
       .cta--primary by 2px on every page where a secondary sits next to it. */
    padding-top: 13px;
    padding-bottom: 13px;
    background: transparent;
    color: var(--green-deep);
    border: 1px solid var(--green);
  }

  .cta-row .cta--secondary:hover,
  .cta-row .cta--secondary:focus-visible {
    background: rgba(var(--green-rgb), 0.08);
    outline: none;
  }

  .cards-3-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: stretch;
  }

  .cards-3-grid > * {
    display: flex;
    flex-direction: column;
  }

  .sticky-sidebar-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }

  .sticky-sidebar-layout > .sticky-sidebar-layout__sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
  }

  .subpage-section {
    padding: 72px 24px;
  }

  .subpage-section--cream {
    background: var(--cream);
  }

  .subpage-section.faq {
    padding-bottom: 100px;
  }

  /* Forms — labels above inputs, brand focus + error states */
  .cf-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .cf-form__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .cf-form__label {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--green-deep);
  }

  .cf-form__hint {
    font-size: 13px;
    line-height: 1.4;
    color: var(--text-soft);
    margin: -2px 0 0;
  }

  .cf-form__input,
  .cf-form__select,
  .cf-form__textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 16px;
    border: 1.5px solid rgba(var(--green-rgb), 0.32);
    border-radius: 12px;
    background: #fff;
    color: var(--text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 160ms var(--cf-ease), box-shadow 160ms var(--cf-ease), background-color 160ms var(--cf-ease);
  }

  .cf-form__textarea {
    min-height: 120px;
    resize: vertical;
  }

  .cf-form__input::placeholder,
  .cf-form__textarea::placeholder {
    color: rgba(52, 49, 46, 0.42);
  }

  .cf-form__input:hover,
  .cf-form__select:hover,
  .cf-form__textarea:hover {
    border-color: var(--green);
  }

  .cf-form__input:focus-visible,
  .cf-form__select:focus-visible,
  .cf-form__textarea:focus-visible {
    outline: none;
    border-color: var(--green);
    box-shadow: var(--focus-ring-green-soft);
  }

  .cf-form__input[aria-invalid="true"],
  .cf-form__select[aria-invalid="true"],
  .cf-form__textarea[aria-invalid="true"] {
    border-color: var(--magenta);
    background: rgba(214, 77, 142, 0.04);
  }

  /* Radio cards — sector pickers, payment-method pickers */
  .cf-form__radio-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
  }

  .cf-form__radio-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid rgba(var(--green-rgb), 0.32);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 160ms var(--cf-ease), background-color 160ms var(--cf-ease), transform 160ms var(--cf-ease);
    font-size: 14px;
    font-weight: 600;
    color: var(--green-deep);
  }

  .cf-form__radio-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    inset: 0;
    cursor: pointer;
  }

  .cf-form__radio-card__dot {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2px solid rgba(var(--green-rgb), 0.42);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 160ms var(--cf-ease);
  }

  .cf-form__radio-card__dot::after {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green);
    transform: scale(0);
    transition: transform 160ms var(--cf-ease);
  }

  .cf-form__radio-card:hover {
    border-color: var(--green);
    transform: translateY(-1px);
  }

  .cf-form__radio-card:has(input:focus-visible) {
    border-color: var(--green);
    box-shadow: var(--focus-ring-green-soft);
  }

  .cf-form__radio-card:has(input:checked) {
    border-color: var(--green);
    background: rgba(var(--green-rgb), 0.06);
  }

  .cf-form__radio-card:has(input:checked) .cf-form__radio-card__dot {
    border-color: var(--green);
  }

  .cf-form__radio-card:has(input:checked) .cf-form__radio-card__dot::after {
    transform: scale(1);
  }

  @media (max-width: 960px) {
    .cards-3-grid {
      grid-template-columns: repeat(2, 1fr);
      gap: 24px;
    }

    .sticky-sidebar-layout {
      grid-template-columns: 1fr;
      gap: 32px;
    }

    .sticky-sidebar-layout > .sticky-sidebar-layout__sidebar {
      position: static;
      top: auto;
    }
  }

  @media (max-width: 768px) {
    .cards-3-grid {
      grid-template-columns: 1fr;
      gap: 20px;
    }
  }
}

/* ── Consent banner (js/consent.js; confidentialitate §9 — D-034) ── */
@layer components {
  .cf-consent {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 70;
    max-width: 400px;
    padding: 20px 22px;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
    box-shadow: 0 12px 40px rgba(52, 49, 46, 0.14);
  }

  .cf-consent__title {
    margin: 0 0 6px;
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.2;
    color: var(--green-deep);
  }

  .cf-consent__body {
    margin: 0 0 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-soft);
  }

  .cf-consent__body a {
    color: var(--green-deep);
    text-decoration: underline;
  }

  .cf-consent__custom {
    display: grid;
    gap: 8px;
    margin: 0 0 14px;
  }

  .cf-consent__custom[hidden] {
    display: none;
  }

  .cf-consent__custom label {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 14px;
    color: var(--text);
  }

  .cf-consent__custom input {
    accent-color: var(--green);
  }

  /* Accept și Refuz — identice vizual (confidentialitate §9: același nivel, un click). */
  .cf-consent__actions {
    display: flex;
    gap: 8px;
  }

  .cf-consent__btn {
    flex: 1 1 0;
    padding: 12px 16px;
    border: 0;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
  }

  .cf-consent__btn:hover,
  .cf-consent__btn:focus-visible {
    background: var(--green-hover);
  }

  .cf-consent__link {
    margin-top: 2px;
    padding: 0 6px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: var(--text-soft);
    text-decoration: underline;
    cursor: pointer;
  }

  .site-footer__legal-links button {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-body);
    font-size: 13px;
    color: rgba(249, 240, 201, 0.88);
    text-decoration: underline;
    cursor: pointer;
  }

  @media (max-width: 430px) {
    .cf-consent {
      left: 8px;
      right: 8px;
      bottom: 8px;
      max-width: none;
      padding: 10px 12px;
    }
    .cf-consent__title { font-size: 16px; margin-bottom: 3px; }
    .cf-consent__body { margin-bottom: 8px; font-size: 12.5px; line-height: 1.4; }
    .cf-consent__actions { gap: 6px; }
    .cf-consent__btn { padding: 8px 14px; font-size: 13px; }
    .cf-consent__link { min-height: 24px; margin-top: 0; font-size: 12px; }
  }
}

/* a11y: skip-link target moves focus without ringing the whole <main>;
   give the nav controls a visible focus indicator (were text-decoration/color only). */
#main:focus { outline: none; }
.nav-link:focus-visible,
.nav-dropdown-toggle:focus-visible,
.nav-toggle:focus-visible,
.error-hero__languages a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}
