/* ═══════════════════════════════════════════
     RESET & TOKENS
  ═══════════════════════════════════════════ */
  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

  :root {
    --anthracite: #141412;
    --anthracite-mid: #1e1d1a;
    --anthracite-soft: #2a2925;
    --cedar: #b07d52;
    --cedar-light: #c9976a;
    --cedar-pale: #d4a97a;
    --linen: #f5f0ea;
    --linen-warm: #ede6dc;
    --white: #fafaf8;
    --muted: rgba(245,240,234,0.45);
    --muted-2: rgba(245,240,234,0.2);

    --font-serif: 'Cormorant Garamond', Georgia, serif;
    --font-sans: 'DM Sans', system-ui, sans-serif;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-inout: cubic-bezier(0.76, 0, 0.24, 1);

    --gutter: clamp(1.25rem, 4vw, 3rem);
    --max: 1440px;
    --radius: 3px;
  }

  /* ═══════════════════════════════════════════
     LIGHT MODE
  ═══════════════════════════════════════════ */
  body.light-mode {
    --anthracite:     #e8e0d4;           /* teplý pergamen — žádná čistá bílá */
    --anthracite-mid: #dfd7ca;           /* karty — o stupeň tmavší než pozadí */
    --anthracite-soft:#d4cbbe;           /* hover karet */
    --cedar:          #8c5d2a;           /* tmavší cedar pro kontrast na světlém */
    --cedar-light:    #a87040;
    --cedar-pale:     #724a1e;
    --linen:          #1e1c18;           /* skoro černý text */
    --linen-warm:     #332f28;
    --white:          #141210;
    --muted:          rgba(30,28,24,0.52);
    --muted-2:        rgba(30,28,24,0.16);
  }

  /* Stíny bento karet v light mode */
  body.light-mode .bento-card {
    box-shadow: 0 2px 16px rgba(176,125,82,0.08);
  }

  /* Mřížka v light mode — tmavé linky místo světlých */
  body.light-mode .hero-grid-lines {
    background-image:
      linear-gradient(rgba(30,28,24,0.08) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30,28,24,0.08) 1px, transparent 1px);
  }

  /* Globální mřížka přes celou stránku v light mode — přímo na body */
  body.light-mode {
    background-image:
      linear-gradient(rgba(30,28,24,0.07) 1px, transparent 1px),
      linear-gradient(90deg, rgba(30,28,24,0.07) 1px, transparent 1px);
    background-size: 80px 80px;
    background-attachment: fixed;
  }

  /* Nav v light mode — světlé pozadí */
  body.light-mode nav.scrolled {
    background: rgba(232,224,212,0.93);
    border-bottom-color: rgba(140,93,42,0.2);
  }

  /* Plynulý přechod všech barev (0.4s) */
  body {
    transition:
      background-color 0.4s var(--ease-inout),
      color           0.4s var(--ease-inout);
  }

  /* ═══════════════════════════════════════════
     PLOVOUCÍ PŘEPÍNAČ REŽIMU — SUN / MOON
  ═══════════════════════════════════════════ */
  .floating-mode-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 500;

    width:  3.2rem;
    height: 3.2rem;
    border-radius: 50%;

    background: var(--anthracite-mid);
    border: 1px solid rgba(176,125,82,0.4);

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: auto;
    user-select: none;
    overflow: hidden;

    box-shadow:
      0 4px 24px rgba(0,0,0,0.22),
      0 1px 4px  rgba(0,0,0,0.12);

    transition:
      background   0.4s var(--ease-inout),
      border-color 0.4s var(--ease-inout),
      box-shadow   0.35s var(--ease-out),
      transform    0.35s var(--ease-out);
  }

  .floating-mode-toggle:hover {
    border-color: var(--cedar);
    transform: scale(1.1);
    box-shadow:
      0 8px 32px rgba(176,125,82,0.28),
      0 2px 8px  rgba(0,0,0,0.14);
  }

  .floating-mode-toggle:active {
    transform: scale(0.95);
  }

  /* Wrapper — oba ikony nad sebou, animujeme posun */
  .fmt-icons {
    position: relative;
    width: 1.4rem;
    height: 1.4rem;
  }

  .fmt-sun,
  .fmt-moon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
      opacity   0.4s var(--ease-out),
      transform 0.5s var(--ease-out);
  }

  /* SVG ikony */
  .fmt-sun svg,
  .fmt-moon svg {
    width:  1.3rem;
    height: 1.3rem;
    stroke: var(--cedar);
    fill:   none;
    stroke-width: 1.5;
    stroke-linecap: round;
    transition: stroke 0.4s;
  }

  /* Dark mode — vidí se měsíc, sluníčko schované dole */
  .fmt-moon {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
  .fmt-sun {
    opacity: 0;
    transform: translateY(8px) rotate(-45deg);
  }

  /* Light mode — vidí se sluníčko, měsíc letí nahoru pryč */
  body.light-mode .fmt-moon {
    opacity: 0;
    transform: translateY(-8px) rotate(45deg);
  }
  body.light-mode .fmt-sun {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }

  /* Sluníčko v light mode se pomalu otáčí */
  body.light-mode .fmt-sun {
    animation: sun-spin 12s linear infinite;
  }

  @keyframes sun-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
  }

  /* Light mode stín */
  body.light-mode .floating-mode-toggle {
    box-shadow:
      0 4px 20px rgba(176,125,82,0.18),
      0 1px 4px  rgba(176,125,82,0.08);
  }

  body.light-mode .floating-mode-toggle:hover {
    box-shadow:
      0 8px 32px rgba(176,125,82,0.32),
      0 2px 8px  rgba(176,125,82,0.12);
  }

  /* Mobilní varianta — trochu menší */
  @media (max-width: 768px) {
    .floating-mode-toggle {
      bottom: 1.25rem;
      right:  1.25rem;
      width:  2.8rem;
      height: 2.8rem;
    }
  }

  /* ═══════════════════════════════════════════
     OBRÁZKY ČLÁNKŮ V LIGHT MODE
  ═══════════════════════════════════════════ */
  body.light-mode .article-featured img,
  body.light-mode .article-item img,
  body.light-mode .article-thumb,
  body.light-mode .article-img,
  body.light-mode .bento-card img {
    filter: brightness(0.82) contrast(1.05) saturate(0.72);
    transition: filter 0.4s var(--ease-inout);
  }

  body.light-mode .article-featured img:hover,
  body.light-mode .article-item:hover img,
  body.light-mode .bento-card:hover img {
    filter: brightness(0.78) contrast(1.08) saturate(0.78);
  }

  /* ═══════════════════════════════════════════
     LIGHT MODE — KONTRAST UPGRADE
     (všechny hardcoded rgba(176,125,82,x) přegradovány
      na tmavší cedar rgba(140,93,42,x) a zvýšené opacity)
  ═══════════════════════════════════════════ */

  /* Silnější sekundární text */
  body.light-mode {
    --muted:   rgba(30,28,24,0.68);
    --muted-2: rgba(30,28,24,0.32);
  }

  /* Nav CTA tlačítko — viditelný rámeček */
  body.light-mode .nav-cta {
    border-color: rgba(140,93,42,0.55);
  }

  /* Partner badge */
  body.light-mode .partner-badge {
    color: var(--cedar);
    border-color: rgba(140,93,42,0.38);
  }
  body.light-mode .partner-badge:hover {
    border-color: rgba(140,93,42,0.65);
  }

  /* Bento mřížka — viditelné mezery mezi kartami */
  body.light-mode .bento {
    background: rgba(140,93,42,0.22);
    border-color: rgba(140,93,42,0.22);
  }

  /* Bento karta — číslo indexu */
  body.light-mode .bento-number {
    color: rgba(140,93,42,0.55);
  }

  /* Bento karta — obrázek pozadí o trochu výraznější */
  body.light-mode .bento-card .bento-img-bg,
  body.light-mode .bento-card .bento-card-img {
    opacity: 0.22;
  }

  /* Section divider — viditelná dělicí čára */
  body.light-mode .section-divider {
    background: linear-gradient(90deg,
      transparent,
      rgba(140,93,42,0.38) 30%,
      rgba(140,93,42,0.38) 70%,
      transparent);
  }

  /* Hero — outline text viditelný na světlém bg */
  body.light-mode .hero-title .outline {
    -webkit-text-stroke-color: rgba(140,93,42,0.65);
  }

  /* Hero — svislý cedar nápis */
  body.light-mode .hero-cedar-accent {
    color: rgba(140,93,42,0.38);
  }

  /* Articles — oddělovače položek */
  body.light-mode .article-item {
    border-bottom-color: rgba(140,93,42,0.2);
  }
  body.light-mode .article-item::before {
    background: rgba(140,93,42,0.06);
  }
  body.light-mode .articles-layout {
    border-top-color: rgba(140,93,42,0.22);
  }
  body.light-mode .article-featured {
    border-right-color: rgba(140,93,42,0.22);
  }
  body.light-mode .article-featured-cat {
    color: rgba(140,93,42,0.72);
  }
  body.light-mode .article-index {
    color: rgba(140,93,42,0.52);
  }
  body.light-mode .article-cat {
    color: rgba(140,93,42,0.68);
  }
  body.light-mode .article-meta {
    color: rgba(140,93,42,0.55);
  }
  body.light-mode .article-cta {
    border-bottom-color: rgba(140,93,42,0.45);
  }

  /* Newsletter form — rámeček + placeholder */
  body.light-mode .newsletter-form {
    border-color: rgba(140,93,42,0.42);
    background: rgba(140,93,42,0.04);
  }
  body.light-mode .newsletter-form:focus-within {
    border-color: rgba(140,93,42,0.7);
  }
  body.light-mode .newsletter-form input::placeholder {
    color: rgba(140,93,42,0.5);
  }
  body.light-mode .newsletter-form input { border-bottom-color: rgba(140,93,42,0.2); }

  /* Heritage sekce */
  body.light-mode #heritage {
    border-top-color: rgba(140,93,42,0.22);
    border-bottom-color: rgba(140,93,42,0.22);
  }
  body.light-mode .heritage-year {
    color: rgba(140,93,42,0.22);
  }

  /* Footer */
  body.light-mode footer {
    border-top-color: rgba(140,93,42,0.22);
  }
  body.light-mode .footer-top {
    border-bottom-color: rgba(140,93,42,0.18);
  }
  body.light-mode .footer-bottom {
    color: rgba(140,93,42,0.55);
  }
  body.light-mode .footer-bottom a {
    color: rgba(140,93,42,0.68);
  }
  body.light-mode .footer-legal-link {
    color: rgba(140,93,42,0.62);
  }

  /* Cookie — secondary tlačítko + modal rámeček */
  body.light-mode .cookie-btn--secondary {
    border-color: rgba(140,93,42,0.38);
    color: var(--linen);
  }
  body.light-mode .cookie-btn--secondary:hover {
    border-color: rgba(140,93,42,0.65);
    color: var(--white);
  }
  body.light-mode .cookie-modal {
    border-color: rgba(140,93,42,0.32);
  }
  body.light-mode .cookie-option {
    border-bottom-color: rgba(140,93,42,0.16);
  }
  body.light-mode .cookie-text a {
    border-bottom-color: rgba(140,93,42,0.4);
  }

  /* Zachování původní třídy .mode-toggle (nav varianta) */
  .mode-toggle {
    background: none;
    border: 1px solid var(--cedar);
    color: var(--cedar);
    padding: 5px 10px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-left: 20px;
    transition: background 0.4s, color 0.4s;
  }

  .mode-toggle:hover {
    background: rgba(176,125,82,0.1);
  }

  html { scroll-behavior: smooth; }

  body {
    background: var(--anthracite);
    color: var(--linen);
    font-family: var(--font-sans);
    font-weight: 300;
    line-height: 1.6;
    overflow-x: hidden;
  }

  /* ═══════════════════════════════════════════
     NOISE TEXTURE OVERLAY
  ═══════════════════════════════════════════ */
  body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='https://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9990;
    opacity: 0.4;
  }

  /* ═══════════════════════════════════════════
     SCROLLBAR
  ═══════════════════════════════════════════ */
  ::-webkit-scrollbar { width: 3px; }
  ::-webkit-scrollbar-track { background: var(--anthracite); }
  ::-webkit-scrollbar-thumb { background: var(--cedar); border-radius: 2px; }

  /* ═══════════════════════════════════════════
     UTILITY
  ═══════════════════════════════════════════ */
  .container {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 var(--gutter);
  }

  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
  .reveal-left {
    opacity: 0;
    transform: translateX(-32px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  }
  .reveal-left.visible { opacity: 1; transform: translateX(0); }

  .cedar { color: var(--cedar); }
  .serif { font-family: var(--font-serif); }

  /* ═══════════════════════════════════════════
     NAVIGATION
  ═══════════════════════════════════════════ */
  nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1.5rem var(--gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
  }

  nav.scrolled {
    background: rgba(20,20,18,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem var(--gutter);
    border-bottom: 1px solid rgba(176,125,82,0.12);
  }

  .nav-logo {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: var(--linen);
    text-decoration: none;
  }

  .nav-logo span {
    color: var(--cedar);
    font-style: italic;
  }

  .nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
  }

  .nav-links a {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s;
    position: relative;
  }

  .nav-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--cedar);
    transition: width 0.3s var(--ease-out);
  }

  .nav-links a:hover { color: var(--linen); }
  .nav-links a:hover::after { width: 100%; }

  .nav-cta {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cedar) !important;
    border: 1px solid rgba(176,125,82,0.4);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    transition: background 0.25s, color 0.25s, border-color 0.25s !important;
  }

  .nav-cta:hover {
    background: var(--cedar) !important;
    color: var(--anthracite) !important;
    border-color: var(--cedar) !important;
  }

  .nav-cta::after { display: none !important; }

  .hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: auto;
    padding: 4px;
    background: none;
    border: none;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
  }
  .hamburger span {
    display: block;
    width: 24px;
    height: 1px;
    background: var(--linen);
    transition: transform 0.3s, opacity 0.3s;
  }

  /* Hamburger → X animace */
  .hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* ═══════════════════════════════════════════
     PROGRESS BAR
  ═══════════════════════════════════════════ */
  #progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cedar), var(--cedar-light));
    z-index: 200;
    width: 0%;
    transition: width 0.1s linear;
  }

  /* ═══════════════════════════════════════════
     HERO
  ═══════════════════════════════════════════ */
  #hero {
    min-height: 100svh;
    display: grid;
    grid-template-rows: 1fr auto;
    padding-top: 6rem;
    position: relative;
    overflow: hidden;
  }

  .hero-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 80% 60% at 70% 50%, rgba(176,125,82,0.07) 0%, transparent 60%),
      radial-gradient(ellipse 40% 80% at 10% 80%, rgba(176,125,82,0.04) 0%, transparent 50%);
  }

  .hero-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
      linear-gradient(rgba(245,240,234,0.02) 1px, transparent 1px),
      linear-gradient(90deg, rgba(245,240,234,0.02) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cedar);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeSlideUp 0.8s 0.3s var(--ease-out) forwards;
  }

  .hero-eyebrow::before {
    content: '';
    display: block;
    width: 40px;
    height: 1px;
    background: var(--cedar);
    opacity: 0.6;
  }

  .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3.5rem, 9vw, 9rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--linen);
    margin-bottom: 0.15em;
    opacity: 0;
    animation: fadeSlideUp 1s 0.5s var(--ease-out) forwards;
  }

  .hero-title em {
    font-style: italic;
    color: var(--cedar-pale);
  }

  .hero-title-line2 {
    display: flex;
    align-items: baseline;
    gap: 0.25em;
    flex-wrap: wrap;
  }

  .hero-title .outline {
    -webkit-text-stroke: 1px rgba(176,125,82,0.5);
    color: transparent;
  }

  .hero-body-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 4rem;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeSlideUp 0.9s 0.9s var(--ease-out) forwards;
  }

  .hero-claim {
    max-width: 360px;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--muted);
    font-weight: 300;
  }

  .hero-claim strong {
    color: var(--linen);
    font-weight: 400;
  }

  .hero-stats {
    display: flex;
    gap: 3rem;
  }

  .hero-stat-num {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 300;
    color: var(--cedar);
    line-height: 1;
    display: block;
  }

  .hero-stat-label {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.3rem;
  }

  .hero-scroll-hint {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeIn 1s 1.4s forwards;
  }

  .hero-scroll-line {
    width: 60px;
    height: 1px;
    background: var(--muted-2);
    position: relative;
    overflow: hidden;
  }

  .hero-scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--cedar);
    animation: slideRight 2s 1.8s var(--ease-out) infinite;
  }

  .hero-scroll-text {
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
  }

  /* Floating cedar accent */
  .hero-cedar-accent {
    position: absolute;
    right: var(--gutter);
    top: 50%;
    transform: translateY(-50%);
    writing-mode: vertical-rl;
    font-size: 0.6rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: rgba(176,125,82,0.25);
    user-select: none;
    opacity: 0;
    animation: fadeIn 1.2s 1.6s forwards;
  }

  /* ═══════════════════════════════════════════
     DIVIDER
  ═══════════════════════════════════════════ */
  .section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(176,125,82,0.2) 30%, rgba(176,125,82,0.2) 70%, transparent);
    margin: 0 var(--gutter);
  }

  /* ═══════════════════════════════════════════
     INTRO STATEMENT
  ═══════════════════════════════════════════ */
  #intro {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
  }

  .intro-text {
    font-family: var(--font-serif);
    font-size: clamp(1.5rem, 3.2vw, 2.8rem);
    font-weight: 300;
    line-height: 1.4;
    color: var(--linen);
    max-width: 900px;
  }

  .intro-text em {
    font-style: italic;
    color: var(--cedar-pale);
  }

  .intro-sub {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
  }

  .intro-sub p {
    font-size: 0.85rem;
    color: var(--muted);
    max-width: 400px;
    line-height: 1.8;
  }

  .partners-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
  }

  .partner-badge {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(176,125,82,0.6);
    border: 1px solid rgba(176,125,82,0.2);
    padding: 0.4rem 0.9rem;
    border-radius: 2px;
    transition: border-color 0.3s, color 0.3s;
  }

  .partner-badge:hover {
    border-color: rgba(176,125,82,0.6);
    color: var(--cedar);
  }

  /* ═══════════════════════════════════════════
     BENTO GRID — CATEGORIES
  ═══════════════════════════════════════════ */
  #categories {
    padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
    max-width: var(--max);
    margin: 0 auto;
  }

  .section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .section-label {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cedar);
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .section-label::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--cedar);
    opacity: 0.6;
  }

  .section-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 300;
    color: var(--linen);
    letter-spacing: -0.01em;
    line-height: 1.1;
  }

  .section-title em { font-style: italic; color: var(--cedar-pale); }

  .view-all {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cedar);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.3s;
  }

  .view-all::after { content: '→'; transition: transform 0.3s; }
  .view-all:hover { gap: 0.8rem; }
  .view-all:hover::after { transform: translateX(4px); }

  /* BENTO GRID */
  .bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto;
    gap: 1px;
    background: rgba(176,125,82,0.08);
    border: 1px solid rgba(176,125,82,0.08);
    border-radius: 4px;
    overflow: hidden;
  }

  .bento-card {
    background: var(--anthracite-mid);
    padding: clamp(1.5rem, 3vw, 2.5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 260px;
    position: relative;
    overflow: hidden;
    transition: background 0.4s;
    text-decoration: none;
    color: inherit;
  }

  .bento-card:hover { background: var(--anthracite-soft); }

  .bento-card::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--cedar), var(--cedar-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out);
  }

  .bento-card:hover::before { transform: scaleX(1); }

  /* BENTO LAYOUT — class-based (featured + 2× side zaplní 2 řádky bez mezer) */
  .bento-card.bento-featured { grid-column: span 7; grid-row: span 2; min-height: 460px; }
  .bento-card.bento-side     { grid-column: span 5; min-height: 230px; }
  .bento-card.bento-wide     { grid-column: span 12; min-height: 160px; }
  .bento-card.bento-half     { grid-column: span 6; min-height: 200px; }
  .bento-card.bento-third    { grid-column: span 4; min-height: 200px; }

  /* Obrázek na pozadí bento karty (LCP featured) */
  .bento-card .bento-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.18;
    z-index: 1;
    transition: opacity 0.4s;
  }
  .bento-card:hover .bento-img-bg { opacity: 0.28; }

  /* Obrázek pro sekundární karty */
  .bento-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.18;
    z-index: 1;
    transition: opacity 0.4s;
  }
  .bento-card:hover .bento-card-img { opacity: 0.28; }

  .bento-number {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    color: rgba(176,125,82,0.4);
    font-weight: 300;
  }

  .bento-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    display: block;
    filter: grayscale(0.3);
    transition: transform 0.4s var(--ease-out);
  }

  .bento-card:hover .bento-icon { transform: scale(1.1) rotate(-3deg); }

  .bento-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    line-height: 1.2;
    color: var(--linen);
    margin-bottom: 0.75rem;
  }

  .bento-desc {
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }

  .bento-tag {
    font-size: 0.6rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--cedar);
    background: rgba(176,125,82,0.1);
    padding: 0.3rem 0.7rem;
    border-radius: 2px;
    display: inline-block;
    align-self: flex-start;
  }

  /* Featured card — větší titulek */
  .bento-card.bento-featured .bento-title {
    font-size: clamp(2rem, 3.5vw, 3.2rem);
  }

  .bento-card.bento-featured .bento-bg {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(ellipse 70% 70% at 80% 80%, rgba(176,125,82,0.08) 0%, transparent 60%);
  }

  /* ═══════════════════════════════════════════
     ARTICLE FEED
  ═══════════════════════════════════════════ */
  #articles {
    padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem);
    max-width: var(--max);
    margin: 0 auto;
  }

  .articles-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid rgba(176,125,82,0.12);
    align-items: start;
    isolation: isolate;
  }

  /* Right column — wraps all article items */
  .articles-right {
    display: flex;
    flex-direction: column;
  }

  /* Featured article */
  .article-featured {
    grid-column: 1;
    grid-row: 1 / span 6;
    padding: 3rem 3rem 3rem 0;
    border-right: 1px solid rgba(176,125,82,0.12);
    position: sticky;
    top: 5rem;
    align-self: start;
    will-change: transform;
  }

  .article-featured-label {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cedar);
    margin-bottom: 2rem;
  }

  .article-featured-cat {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(176,125,82,0.6);
    margin-bottom: 1.25rem;
  }

  .article-featured-title {
    font-family: var(--font-serif);
    font-size: clamp(1.8rem, 2.8vw, 2.8rem);
    font-weight: 300;
    line-height: 1.15;
    color: var(--linen);
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    text-decoration: none;
    display: block;
    transition: color 0.25s;
  }

  .article-featured-title:hover { color: var(--cedar-pale); }

  .article-featured-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .article-featured-excerpt {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 2rem;
  }

  .article-cta {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--cedar);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    border-bottom: 1px solid rgba(176,125,82,0.3);
    padding-bottom: 0.2rem;
    transition: gap 0.3s, border-color 0.3s;
  }

  .article-cta:hover { gap: 1rem; border-color: var(--cedar); }
  .article-cta::after { content: '→'; }

  /* Article list items */
  .article-item {
    padding: 2rem 0 2rem 3rem;
    border-bottom: 1px solid rgba(176,125,82,0.08);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.5rem;
    align-items: start;
    text-decoration: none;
    transition: background 0.3s;
    position: relative;
  }

  .article-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: rgba(176,125,82,0.04);
    transition: width 0.4s var(--ease-out);
  }

  .article-item:hover::before { width: 100%; }

  .article-index {
    font-family: var(--font-serif);
    font-size: 0.7rem;
    color: rgba(176,125,82,0.35);
    font-weight: 300;
    margin-top: 0.2rem;
    min-width: 1.5rem;
  }

  .article-cat {
    font-size: 0.58rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(176,125,82,0.55);
    margin-bottom: 0.4rem;
  }

  .article-title {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    font-weight: 300;
    color: var(--linen);
    line-height: 1.3;
    margin-bottom: 0.5rem;
    transition: color 0.25s;
  }

  .article-item:hover .article-title { color: var(--cedar-pale); }

  .article-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.65rem;
    color: rgba(176,125,82,0.4);
  }

  .meta-dot::before { content: '·'; margin-right: 1rem; }

  /* ═══════════════════════════════════════════
     HERITAGE STRIP
  ═══════════════════════════════════════════ */
  #heritage {
    padding: clamp(4rem, 8vw, 7rem) var(--gutter);
    background: var(--anthracite-mid);
    border-top: 1px solid rgba(176,125,82,0.1);
    border-bottom: 1px solid rgba(176,125,82,0.1);
  }

  .heritage-inner {
    max-width: var(--max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
    align-items: center;
  }

  .heritage-left {
    grid-column: 1 / 2;
  }

  .heritage-year {
    font-family: var(--font-serif);
    font-size: clamp(4rem, 8vw, 7rem);
    font-weight: 300;
    color: rgba(176,125,82,0.18);
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: -0.2em;
  }

  .heritage-title {
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 300;
    color: var(--linen);
    line-height: 1.2;
  }

  .heritage-title em { font-style: italic; color: var(--cedar-pale); }

  .heritage-mid {
    grid-column: 2 / 3;
  }

  .heritage-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.9;
  }

  .heritage-desc strong {
    color: var(--linen);
    font-weight: 400;
  }

  .heritage-right {
    grid-column: 3 / 4;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
  }

  .heritage-partner {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
  }

  .heritage-partner-dot {
    width: 4px;
    height: 4px;
    background: var(--cedar);
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ═══════════════════════════════════════════
     CTA NEWSLETTER
  ═══════════════════════════════════════════ */
  #newsletter {
    padding: clamp(5rem, 10vw, 9rem) var(--gutter);
    max-width: var(--max);
    margin: 0 auto;
    text-align: center;
  }

  .newsletter-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cedar);
    margin-bottom: 1.5rem;
  }

  .newsletter-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 300;
    color: var(--linen);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }

  .newsletter-title em { font-style: italic; color: var(--cedar-pale); }

  .newsletter-sub {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 3rem;
  }

  .newsletter-form {
    display: flex;
    max-width: 480px;
    margin: 0 auto;
    gap: 0;
    border: 1px solid rgba(176,125,82,0.25);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color 0.3s;
  }

  .newsletter-form:focus-within { border-color: rgba(176,125,82,0.6); }

  .newsletter-form input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0.9rem 1.25rem;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    color: var(--linen);
    outline: none;
    font-weight: 300;
  }

  .newsletter-form input::placeholder { color: rgba(176,125,82,0.35); }

  .newsletter-form button {
    background: var(--cedar);
    border: none;
    padding: 0.9rem 1.5rem;
    font-family: var(--font-sans);
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--anthracite);
    cursor: auto;
    font-weight: 500;
    transition: background 0.25s;
  }

  .newsletter-form button:hover { background: var(--cedar-light); }

  /* ═══════════════════════════════════════════
     FOOTER
  ═══════════════════════════════════════════ */
  footer {
    background: var(--anthracite-mid);
    border-top: 1px solid rgba(176,125,82,0.1);
    padding: 3rem var(--gutter) 2rem;
  }

  .footer-inner {
    max-width: var(--max);
    margin: 0 auto;
  }

  .footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(176,125,82,0.08);
  }

  .footer-brand {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--linen);
    margin-bottom: 1rem;
  }

  .footer-brand span { color: var(--cedar); font-style: italic; }

  .footer-tagline {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 240px;
  }

  .footer-col-title {
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--cedar);
    margin-bottom: 1.25rem;
  }

  .footer-links { list-style: none; }

  .footer-links li { margin-bottom: 0.6rem; }

  .footer-links a {
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    transition: color 0.25s;
  }

  .footer-links a:hover { color: var(--linen); }

  .footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.65rem;
    color: rgba(176,125,82,0.3);
    flex-wrap: wrap;
    gap: 1rem;
  }

  .footer-bottom a { color: rgba(176,125,82,0.5); text-decoration: none; }
  .footer-bottom a:hover { color: var(--cedar); }

  .footer-legal-link {
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(176,125,82,0.45);
    text-decoration: none;
    transition: color 0.25s;
  }
  .footer-legal-link:hover { color: var(--cedar); }

  /* ═══════════════════════════════════════════
     KEYFRAMES
  ═══════════════════════════════════════════ */
  @keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes slideRight {
    0%   { left: -100%; }
    50%  { left: 100%; }
    100% { left: 100%; }
  }

  @keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
  }

  /* ═══════════════════════════════════════════
     MOBILE MENU
  ═══════════════════════════════════════════ */
  .mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(20,20,18,0.97);
    backdrop-filter: blur(20px);
    z-index: 99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
  }

  body.light-mode .mobile-menu {
    background: rgba(232,224,212,0.98);
  }

  .mobile-menu.open { transform: translateX(0); }

  .mobile-menu a {
    font-family: var(--font-serif);
    font-size: 2rem;
    font-weight: 300;
    color: var(--linen);
    text-decoration: none;
    transition: color 0.25s;
  }

  .mobile-menu a:hover { color: var(--cedar); }

  /* ═══════════════════════════════════════════
     RESPONSIVE
  ═══════════════════════════════════════════ */
  @media (max-width: 1024px) {
    .bento-card.bento-featured { grid-column: span 12; min-height: 320px; grid-row: span 1; }
    .bento-card.bento-side     { grid-column: span 6; }
    .bento-card.bento-wide     { grid-column: span 12; }
    .bento-card.bento-half     { grid-column: span 6; }
    .bento-card.bento-third    { grid-column: span 6; }

    .heritage-inner { grid-template-columns: 1fr 1fr; }
    .heritage-right { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: center; }

    .articles-layout { grid-template-columns: 1fr; }
    .article-featured {
      grid-row: auto;
      padding: 0 0 2.5rem 0;
      border-right: none;
      border-bottom: 1px solid rgba(176,125,82,0.12);
      position: relative;
      top: 0;
    }
    .article-item { padding-left: 0; }
    .articles-right { border-top: none; }
  }

  @media (max-width: 768px) {
    .nav-links { display: none; }
    .hamburger { display: flex; }

    .hero-stats { gap: 2rem; flex-wrap: wrap; }
    .hero-cedar-accent { display: none; }

    .bento-card.bento-featured { min-height: 260px; }
    .bento-card.bento-side,
    .bento-card.bento-half,
    .bento-card.bento-third { grid-column: span 12; }

    .heritage-inner { grid-template-columns: 1fr; gap: 2rem; }
    .heritage-left, .heritage-mid, .heritage-right { grid-column: 1; }

    .footer-top { grid-template-columns: 1fr 1fr; }
    .footer-top > div:first-child { grid-column: 1 / -1; }

    .newsletter-form { flex-direction: column; border-radius: 3px; }
    .newsletter-form input { border-bottom: 1px solid rgba(176,125,82,0.15); }
    .newsletter-form button { width: 100%; }

    #articles, #categories { padding-left: var(--gutter); padding-right: var(--gutter); }

    /* Oprava prázdného sloupce vedle featured článku na mobilu */
    .articles-layout {
      grid-template-columns: 1fr;
      display: flex;
      flex-direction: column;
    }

    .article-featured {
      grid-column: 1;
      grid-row: auto;
      width: 100%;
      padding: 0 0 2.5rem 0;
      border-right: none;
      border-bottom: 1px solid rgba(176,125,82,0.12);
      position: relative;
      top: 0;
    }

    .articles-right {
      width: 100%;
    }

    .article-item {
      padding-left: 0;
    }
  }

  @media (max-width: 480px) {
    .hero-body-row { flex-direction: column; align-items: flex-start; }
    .footer-top { grid-template-columns: 1fr; }
    .bento-card.bento-wide { flex-direction: column; }
    .hero-stats { gap: 1.5rem; }
    .intro-sub { flex-direction: column; gap: 1.5rem; }
    .partners-row { flex-wrap: wrap; }
    .section-header { flex-direction: column; align-items: flex-start; }
  }

  /* ═══════════════════════════════════════════
     PERFORMANCE — reduce motion & paint hints
  ═══════════════════════════════════════════ */
  .bento-card,
  .article-item,
  nav {
    will-change: transform;
  }

  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
      animation-duration: 0.01ms !important;
      transition-duration: 0.01ms !important;
    }
    .reveal, .reveal-left {
      opacity: 1;
      transform: none;
    }
    .hero-eyebrow, .hero-title, .hero-body-row, .hero-scroll-hint, .hero-cedar-accent {
      opacity: 1;
      animation: none;
    }
  }

  #categories, #heritage {
    content-visibility: auto;
    contain-intrinsic-size: 0 600px;
  }

  /* Selection */
  ::selection {
    background: rgba(176,125,82,0.25);
    color: var(--linen);
  }

  /* ═══════════════════════════════════════════
     ZPĚT NAHORU TLAČÍTKO
  ═══════════════════════════════════════════ */
  .back-to-top {
    position: fixed;
    bottom: 6rem;
    right: 2rem;
    z-index: 500;
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 50%;
    background: var(--anthracite-mid);
    border: 1px solid rgba(176,125,82,0.25);
    color: var(--cedar);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: auto;
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition:
      opacity 0.35s var(--ease-out),
      transform 0.35s var(--ease-out),
      border-color 0.3s,
      box-shadow 0.3s;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  }

  .back-to-top svg {
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--cedar);
    transition: stroke 0.3s;
  }

  .back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .back-to-top:hover {
    border-color: var(--cedar);
    box-shadow: 0 8px 28px rgba(176,125,82,0.22);
    transform: translateY(-2px);
  }

  @media (max-width: 768px) {
    .back-to-top {
      bottom: 5rem;
      right: 1.25rem;
      width: 2.8rem;
      height: 2.8rem;
    }
  }

  /* ═══════════════════════════════════════════
     COOKIE BANNER
  ═══════════════════════════════════════════ */
  /* Banner je na začátku skrytý (odhalí se po 800 ms JS timeoutem) */
  .cookie-banner.pre-hidden {
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
  }

  .cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 800;
    max-width: 520px;
    background: var(--anthracite-mid);
    border: 1px solid rgba(176,125,82,0.2);
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    box-shadow:
      0 12px 40px rgba(0,0,0,0.35),
      0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(0);
    opacity: 1;
    transition:
      opacity 0.4s var(--ease-out),
      transform 0.4s var(--ease-out);
  }

  .cookie-banner.hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
  }

  .cookie-inner {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  .cookie-title {
    font-family: var(--font-serif);
    font-size: 1rem;
    font-weight: 400;
    color: var(--linen);
    margin-bottom: 0.4rem;
  }

  .cookie-text p {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.7;
  }

  .cookie-text a {
    color: var(--cedar);
    text-decoration: none;
    border-bottom: 1px solid rgba(176,125,82,0.3);
    transition: border-color 0.25s;
  }

  .cookie-text a:hover {
    border-color: var(--cedar);
  }

  .cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
  }

  .cookie-btn {
    font-family: var(--font-sans);
    font-size: 0.65rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 0.55rem 1.1rem;
    border-radius: var(--radius);
    cursor: auto;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    white-space: nowrap;
    font-weight: 400;
  }

  .cookie-btn--primary {
    background: var(--cedar);
    color: var(--anthracite);
    border: 1px solid var(--cedar);
  }

  .cookie-btn--primary:hover {
    background: var(--cedar-light);
    border-color: var(--cedar-light);
  }

  .cookie-btn--secondary {
    background: transparent;
    color: var(--muted);
    border: 1px solid rgba(176,125,82,0.2);
  }

  .cookie-btn--secondary:hover {
    border-color: rgba(176,125,82,0.5);
    color: var(--linen);
  }

  /* Light mode variant */
  body.light-mode .cookie-banner {
    box-shadow:
      0 12px 40px rgba(176,125,82,0.12),
      0 2px 8px rgba(0,0,0,0.08);
  }

  @media (max-width: 600px) {
    .cookie-banner {
      left: 1rem;
      right: 1rem;
      bottom: 1rem;
      max-width: none;
    }
    .cookie-actions {
      flex-direction: column;
    }
    .cookie-btn {
      text-align: center;
    }
  }

  /* ═══════════════════════════════════════════
     COOKIE MODAL
  ═══════════════════════════════════════════ */
  .cookie-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(20,20,18,0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease-out);
  }

  .cookie-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
  }

  .cookie-modal {
    background: var(--anthracite-mid);
    border: 1px solid rgba(176,125,82,0.2);
    border-radius: 4px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s var(--ease-out);
  }

  .cookie-modal-overlay.open .cookie-modal {
    transform: translateY(0);
  }

  .cookie-modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1rem;
    cursor: auto;
    transition: color 0.25s;
    line-height: 1;
  }

  .cookie-modal-close:hover {
    color: var(--linen);
  }

  .cookie-modal-title {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--linen);
    margin-bottom: 0.5rem;
  }

  .cookie-modal-sub {
    font-size: 0.75rem;
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 2rem;
  }

  .cookie-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(176,125,82,0.08);
  }

  .cookie-option:last-of-type {
    border-bottom: none;
  }

  .cookie-option-name {
    font-size: 0.8rem;
    color: var(--linen);
    font-weight: 400;
    margin-bottom: 0.2rem;
  }

  .cookie-option-desc {
    font-size: 0.7rem;
    color: var(--muted);
    line-height: 1.6;
  }

  /* Toggle switch */
  .cookie-toggle {
    position: relative;
    width: 2.6rem;
    height: 1.4rem;
    border-radius: 1rem;
    background: rgba(176,125,82,0.15);
    border: 1px solid rgba(176,125,82,0.25);
    flex-shrink: 0;
    cursor: auto;
    transition: background 0.3s, border-color 0.3s;
    display: block;
  }

  .cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
  }

  .cookie-toggle-knob {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(176,125,82,0.5);
    transition: transform 0.3s var(--ease-out), background 0.3s;
  }

  .cookie-toggle input:checked ~ .cookie-toggle-knob {
    transform: translateX(18px);
    background: var(--cedar);
  }

  .cookie-toggle:has(input:checked) {
    background: rgba(176,125,82,0.2);
    border-color: rgba(176,125,82,0.5);
  }

  .cookie-toggle--locked {
    cursor: not-allowed;
    opacity: 0.6;
  }

  .cookie-toggle--locked .cookie-toggle-knob {
    transform: translateX(18px);
    background: var(--cedar);
  }

  .cookie-modal-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: flex-end;
  }