

    :root {
      color-scheme: light dark;
      --bg: #f7f0ea;
      --bg-soft: #f3e7de;
      --surface: rgba(255, 251, 247, 0.8);
      --surface-strong: rgba(255, 249, 244, 0.95);
      --surface-inverse: #201615;
      --text: #231917;
      --text-soft: #5b4640;
      --primary: #8f2d2b;
      --primary-2: #b6514e;
      --primary-3: #d8a170;
      --line: rgba(79, 45, 39, 0.16);
      --shadow: 0 20px 60px rgba(46, 22, 21, 0.15);
      --shadow-strong: 0 30px 90px rgba(46, 22, 21, 0.22);
      --radius-s: 16px;
      --radius-m: 24px;
      --radius-l: 36px;
      --max: 1280px;
      --header-h: 84px;
      --focus: #0b57d0;
    }

    html[data-theme="dark"] {
      --bg: #120e0d;
      --bg-soft: #1a1413;
      --surface: rgba(31, 23, 21, 0.82);
      --surface-strong: rgba(35, 26, 24, 0.95);
      --surface-inverse: #f7efe8;
      --text: #f6eee8;
      --text-soft: #cfbeb5;
      --primary: #d7655f;
      --primary-2: #ef8f77;
      --primary-3: #efb46d;
      --line: rgba(255, 232, 220, 0.12);
      --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
      --shadow-strong: 0 36px 110px rgba(0, 0, 0, 0.48);
      --focus: #8db8ff;
    }

    @media (prefers-color-scheme: dark) {
      html:not([data-theme="light"]) {
        --bg: #120e0d;
        --bg-soft: #1a1413;
        --surface: rgba(31, 23, 21, 0.82);
        --surface-strong: rgba(35, 26, 24, 0.95);
        --surface-inverse: #f7efe8;
        --text: #f6eee8;
        --text-soft: #cfbeb5;
        --primary: #d7655f;
        --primary-2: #ef8f77;
        --primary-3: #efb46d;
        --line: rgba(255, 232, 220, 0.12);
        --shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
        --shadow-strong: 0 36px 110px rgba(0, 0, 0, 0.48);
        --focus: #8db8ff;
      }
    }

    *,
    *::before,
    *::after {
      box-sizing: border-box;
    }

    html {
      scroll-behavior: smooth;
    }

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

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

    body {
      margin: 0;
      min-width: 320px;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, "Helvetica Neue", Arial, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at top left, rgba(214, 126, 93, 0.22), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(143, 45, 43, 0.16), transparent 22%),
        radial-gradient(circle at 50% 100%, rgba(216, 161, 112, 0.12), transparent 24%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 45%, var(--bg) 100%);
      line-height: 1.6;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

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

    a {
      color: inherit;
      text-decoration-thickness: 0.08em;
      text-underline-offset: 0.16em;
    }

    a:hover {
      text-decoration-thickness: 0.12em;
    }

    button,
    a,
    input,
    select,
    textarea {
      font: inherit;
    }

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

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    .skip-link {
      position: absolute;
      left: 1rem;
      top: -4rem;
      z-index: 1000;
      background: var(--surface-inverse);
      color: var(--bg);
      padding: 0.9rem 1.1rem;
      border-radius: 999px;
      text-decoration: none;
      transition: top 0.2s ease;
    }

    .skip-link:focus {
      top: 1rem;
    }

    .container {
      width: min(calc(100% - 2rem), var(--max));
      margin-inline: auto;
    }

    .glass {
      background: var(--surface);
      backdrop-filter: blur(16px) saturate(120%);
      -webkit-backdrop-filter: blur(16px) saturate(120%);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.5rem 0.9rem;
      border-radius: 999px;
      background: rgba(143, 45, 43, 0.08);
      color: var(--primary);
      font-size: 0.82rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .eyebrow img {
      width: 18px;
      height: 18px;
      object-fit: contain;
      opacity: 0.9;
    }

    .section {
      position: relative;
      padding: 5rem 0;
      isolation: isolate;
    }

    .section-title {
      margin: 0 0 0.8rem;
      font-size: clamp(1.9rem, 3vw, 3.4rem);
      line-height: 1.05;
      letter-spacing: -0.03em;
    }

    .section-intro {
      max-width: 72ch;
      margin: 0 0 2rem;
      color: var(--text-soft);
      font-size: 1.05rem;
    }

    .topbar {
      position: sticky;
      top: 0;
      z-index: 50;
      backdrop-filter: blur(18px) saturate(140%);
      -webkit-backdrop-filter: blur(18px) saturate(140%);
      background: color-mix(in srgb, var(--bg) 72%, transparent);
      border-bottom: 1px solid var(--line);
    }

    .topbar__inner {
      min-height: var(--header-h);
      display: grid;
      grid-template-columns: auto 1fr auto;
      align-items: center;
      gap: 1rem;
      padding: 0.8rem 0;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 0.9rem;
      text-decoration: none;
    }

    .brand__mark {
      width: 56px;
      height: 56px;
      border-radius: 18px;
      overflow: hidden;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      box-shadow: var(--shadow);
      flex: none;
    }

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

    .brand__text {
      display: grid;
      gap: 0.1rem;
    }

    .brand__name {
      font-weight: 800;
      letter-spacing: -0.02em;
      font-size: 1.03rem;
    }

    .brand__tag {
      font-size: 0.86rem;
      color: var(--text-soft);
    }

    .nav {
      justify-self: center;
    }

    .nav ul {
      display: flex;
      flex-wrap: wrap;
      justify-content: center;
      gap: 0.4rem;
      list-style: none;
      padding: 0;
      margin: 0;
    }

    .nav a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      min-height: 44px;
      padding: 0.75rem 1rem;
      border-radius: 999px;
      text-decoration: none;
      color: var(--text-soft);
      transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
    }

    .nav a:hover,
    .nav a[aria-current="page"] {
      background: rgba(143, 45, 43, 0.08);
      color: var(--text);
      transform: translateY(-1px);
    }

    .topbar__actions {
      display: flex;
      align-items: center;
      gap: 0.6rem;
    }

    .theme-toggle,
    .btn,
    .btn-secondary {
      min-height: 48px;
      border-radius: 999px;
      border: 1px solid transparent;
      cursor: pointer;
      transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
    }

    .theme-toggle {
      width: 48px;
      display: inline-grid;
      place-items: center;
      background: var(--surface);
      color: var(--text);
      border-color: var(--line);
      box-shadow: var(--shadow);
    }

    .theme-toggle:hover,
    .btn:hover,
    .btn-secondary:hover {
      transform: translateY(-2px);
    }

    .btn,
    .btn-secondary {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.7rem;
      padding: 0.6rem 1.3rem;
      text-decoration: none;
      font-weight: 800;
      letter-spacing: 0.01em;
      box-shadow: var(--shadow);
    }

    .btn {
      background: linear-gradient(135deg, var(--primary), var(--primary-2));
      color: #fffaf7;
    }

    .btn:hover {
      box-shadow: var(--shadow-strong);
    }

    .btn-secondary {
      background: var(--surface);
      color: var(--text);
      border-color: var(--line);
    }

    .btn img,
    .btn-secondary img {
      width: 18px;
      height: 18px;
      object-fit: contain;
    }

    .hero {
      padding-top: clamp(2rem, 5vw, 4rem);
      padding-bottom: 4rem;
    }

    .hero__grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 2rem;
      align-items: center;
    }

    .hero__content {
      position: relative;
      padding: clamp(1.25rem, 3vw, 2rem);
      border-radius: var(--radius-l);
      overflow: hidden;
    }

    .hero__content::before,
    .hero__content::after {
      content: "";
      position: absolute;
      inset: auto;
      border-radius: 999px;
      filter: blur(30px);
      opacity: 0.5;
      pointer-events: none;
    }

    .hero__content::before {
      width: 180px;
      height: 180px;
      top: -40px;
      right: -20px;
      background: rgba(214, 126, 93, 0.26);
    }

    .hero__content::after {
      width: 160px;
      height: 160px;
      bottom: -40px;
      left: -30px;
      background: rgba(143, 45, 43, 0.2);
    }

    .hero h1 {
      margin: 1rem 0 1rem;
      font-size: clamp(2.8rem, 6vw, 5.8rem);
      line-height: 0.95;
      letter-spacing: -0.05em;
      max-width: 11ch;
    }

    .hero__lede {
      max-width: 60ch;
      margin: 0 0 1.5rem;
      font-size: 1.1rem;
      color: var(--text-soft);
    }

    .hero__actions {
      display: flex;
      flex-wrap: wrap;
      gap: 0.9rem;
      margin-bottom: 1.5rem;
    }

    .hero__facts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0.9rem;
      margin: 1.4rem 0 0;
    }

    .fact {
      position: relative;
      padding: 1rem 1rem 1rem 1.05rem;
      border-radius: var(--radius-m);
      background: rgba(255, 255, 255, 0.3);
      border: 1px solid var(--line);
      overflow: hidden;
    }

    .fact strong {
      display: block;
      font-size: 0.95rem;
      margin-bottom: 0.2rem;
    }

    .fact span {
      display: block;
      color: var(--text-soft);
      font-size: 0.94rem;
    }

    .fact img {
      position: absolute;
      right: 0.8rem;
      bottom: 0.8rem;
      width: 34px;
      height: 34px;
      opacity: 0.12;
      pointer-events: none;
    }

    .hero__visual {
      position: relative;
      min-height: 640px;
      display: grid;
      align-items: end;
    }

    .floating-icon {
      position: absolute;
      width: clamp(58px, 7vw, 120px);
      opacity: 0.16;
      z-index: 0;
      pointer-events: none;
      filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.16));
    }

    .floating-icon--1 { top: 2%; left: 0%; transform: rotate(-10deg); }
    .floating-icon--2 { top: 8%; right: 6%; transform: rotate(8deg); }
    .floating-icon--3 { bottom: 26%; left: 6%; transform: rotate(-14deg); }
    .floating-icon--4 { bottom: 10%; right: 0%; transform: rotate(10deg); }

    .photo-stack {
      position: relative;
      min-height: 100%;
      z-index: 1;
    }

    .photo-card {
      position: absolute;
      overflow: hidden;
      border-radius: 30px;
      border: 1px solid var(--line);
      box-shadow: var(--shadow-strong);
      background: var(--surface-strong);
    }

    .photo-card img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .photo-card--main {
      inset: 0 12% 0 0;
      transform: translateY(0) rotate(-2deg);
    }

    .photo-card--secondary {
      width: 42%;
      height: 34%;
      right: 0;
      top: 8%;
      transform: rotate(5deg);
    }

    .photo-card--tertiary {
      width: 44%;
      height: 28%;
      right: 6%;
      bottom: 3%;
      transform: rotate(-4deg);
    }

    .stamp {
      position: absolute;
      left: 2rem;
      bottom: 2rem;
      z-index: 2;
      padding: 1rem 1.1rem;
      border-radius: 22px;
      background: rgba(24, 16, 15, 0.72);
      color: #fff5f0;
      border: 1px solid rgba(255, 255, 255, 0.12);
      backdrop-filter: blur(16px);
      max-width: 280px;
    }

    .stamp strong {
      display: block;
      margin-bottom: 0.2rem;
      font-size: 1rem;
    }

    .stamp span {
      display: block;
      color: rgba(255, 245, 240, 0.82);
      font-size: 0.95rem;
    }

    .mini-gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1rem;
      margin-top: 2rem;
    }

    .mini-gallery figure,
    .gallery-grid figure,
    .feature-visual,
    .story-visual,
    .event-visual,
    .contact-visual {
      margin: 0;
      overflow: hidden;
      border-radius: 26px;
      border: 1px solid var(--line);
      background: var(--surface-strong);
      box-shadow: var(--shadow);
    }

    .mini-gallery img,
    .gallery-grid img,
    .feature-visual img,
    .story-visual img,
    .event-visual img,
    .contact-visual img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      transition: transform 0.5s ease;
    }

    .mini-gallery figure:hover img,
    .gallery-grid figure:hover img,
    .feature-visual:hover img,
    .story-visual:hover img,
    .event-visual:hover img,
    .contact-visual:hover img {
      transform: scale(1.035);
    }

    .info-band {
      padding-top: 1rem;
    }

    .info-band__card {
      position: relative;
      padding: 1.3rem;
      border-radius: var(--radius-l);
      overflow: hidden;
    }

    .address-grid {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1.5rem;
      align-items: center;
    }

    .address-grid h2 {
      margin: 0 0 0.8rem;
      font-size: clamp(1.7rem, 2.6vw, 2.6rem);
      line-height: 1.05;
    }

    .address-grid p {
      margin: 0.3rem 0;
      color: var(--text-soft);
    }

    .address-badges {
      display: flex;
      flex-wrap: wrap;
      gap: 0.7rem;
      margin-top: 1rem;
    }

    .badge {
      display: inline-flex;
      align-items: center;
      gap: 0.55rem;
      padding: 0.7rem 0.9rem;
      border-radius: 999px;
      background: rgba(143, 45, 43, 0.08);
      border: 1px solid var(--line);
      color: var(--text);
      font-weight: 600;
    }

    .badge img {
      width: 18px;
      height: 18px;
      opacity: 0.9;
      object-fit: contain;
    }

    .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 1.25rem;
      margin-top: 2rem;
    }

    .feature {
      display: grid;
      grid-template-rows: 220px auto;
      border-radius: var(--radius-l);
      overflow: hidden;
      border: 1px solid var(--line);
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    .feature__body {
      position: relative;
      padding: 1.35rem 1.35rem 1.45rem;
    }

    .feature__body h3 {
      margin: 0 0 0.7rem;
      font-size: 1.4rem;
      line-height: 1.1;
      letter-spacing: -0.02em;
    }

    .feature__body p {
      margin: 0;
      color: var(--text-soft);
    }

    .feature__icon {
      position: absolute;
      right: 1.1rem;
      bottom: 1rem;
      width: 62px;
      height: 62px;
      opacity: 0.16;
    }

    .pill-row {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1rem;
      margin-top: 1.4rem;
    }

    .pill {
      padding: 1.1rem 1rem;
      border-radius: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      text-align: center;
      font-weight: 700;
    }

    .story-grid,
    .duo-grid,
    .event-grid,
    .contact-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: 1.5rem;
      align-items: start;
    }

    .story-list,
    .duo-list,
    .event-list,
    .contact-stack {
      display: grid;
      gap: 1rem;
    }

    .story-item,
    .duo-item,
    .event-item,
    .contact-card,
    .access-card {
      position: relative;
      padding: 1.2rem 1.2rem 1.25rem;
      border-radius: 24px;
      background: var(--surface);
      border: 1px solid var(--line);
      box-shadow: var(--shadow);
      overflow: hidden;
    }

    .story-item h3,
    .duo-item h3,
    .event-item h3,
    .contact-card h3,
    .access-card h3 {
      margin: 0 0 0.55rem;
      font-size: 1.18rem;
      line-height: 1.15;
      letter-spacing: -0.02em;
    }

    .story-item p,
    .duo-item p,
    .event-item p,
    .contact-card p,
    .access-card p,
    .access-card li {
      margin: 0;
      color: var(--text-soft);
    }

    .region-tags {
      display: flex;
      flex-wrap: wrap;
      gap: 0.65rem;
      margin-top: 0.9rem;
    }

    .region-tags span {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.6rem 0.85rem;
      border-radius: 999px;
      background: rgba(143, 45, 43, 0.08);
      border: 1px solid var(--line);
      font-weight: 700;
    }

    .region-tags img {
      width: 16px;
      height: 16px;
      object-fit: contain;
    }

    .highlight-list {
      margin: 1rem 0 0;
      padding-left: 1.15rem;
      color: var(--text-soft);
    }

    .highlight-list li + li {
      margin-top: 0.45rem;
    }

    .event-panel {
      position: relative;
      padding: 1.5rem;
      border-radius: 32px;
      overflow: hidden;
    }

    .event-panel::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(135deg, rgba(143, 45, 43, 0.14), transparent 56%),
        radial-gradient(circle at 100% 0, rgba(216, 161, 112, 0.22), transparent 28%);
      pointer-events: none;
    }

    .event-grid {
      position: relative;
      z-index: 1;
    }

    .event-panel .btn-secondary {
      background: rgba(255, 255, 255, 0.58);
    }

    html[data-theme="dark"] .event-panel .btn-secondary,
    @media (prefers-color-scheme: dark) {
      html:not([data-theme="light"]) .event-panel .btn-secondary {
        background: rgba(19, 14, 13, 0.6);
      }
    }

    .gallery-grid {
      display: grid;
      grid-template-columns: 1.25fr 0.75fr 0.95fr 1.05fr;
      grid-auto-rows: 210px;
      gap: 1rem;
    }

    .gallery-grid .tall {
      grid-row: span 2;
    }

    .gallery-grid .wide {
      grid-column: span 2;
    }

    .gallery-grid figcaption {
      position: absolute;
      inset: auto 0 0 0;
      padding: 1rem;
      background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.68));
      color: #fff9f6;
      font-size: 0.95rem;
    }

    .gallery-grid figure {
      position: relative;
      min-height: 0;
    }

    .table-wrap {
      overflow-x: auto;
      border-radius: 24px;
      border: 1px solid var(--line);
      background: var(--surface);
      box-shadow: var(--shadow);
    }

    table {
      width: 100%;
      border-collapse: collapse;
      min-width: 680px;
    }

    caption {
      text-align: left;
      padding: 1rem 1rem 0;
      font-weight: 800;
    }

    th,
    td {
      padding: 1rem;
      text-align: left;
      border-bottom: 1px solid var(--line);
    }

    thead th {
      font-size: 0.95rem;
      color: var(--text);
      background: rgba(143, 45, 43, 0.08);
    }

    tbody tr:nth-child(even) {
      background: rgba(143, 45, 43, 0.03);
    }

    .contact-card a,
    .access-card a {
      color: var(--primary);
      font-weight: 700;
    }

    .contact-note {
      margin-top: 1rem;
      color: var(--text-soft);
      font-size: 0.95rem;
    }

    .footer {
      padding: 2rem 0 3rem;
      border-top: 1px solid var(--line);
    }

    .footer__inner {
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 1rem;
      align-items: center;
    }

    .footer p {
      margin: 0;
      color: var(--text-soft);
    }

    .legal-links {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
    }

    .legal-links a {
      color: var(--text-soft);
    }

    .ornament-cluster {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      overflow: hidden;
    }

    .ornament-cluster img {
      position: absolute;
      width: clamp(80px, 9vw, 150px);
      opacity: 0.08;
      filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.14));
    }

    .ornament-cluster img:nth-child(1) { top: 10%; left: -1%; transform: rotate(-8deg); }
    .ornament-cluster img:nth-child(2) { top: 38%; right: -2%; transform: rotate(12deg); }
    .ornament-cluster img:nth-child(3) { bottom: 8%; left: 8%; transform: rotate(-18deg); }

    @media (max-width: 1080px) {
      .hero__grid,
      .story-grid,
      .duo-grid,
      .event-grid,
      .contact-grid,
      .address-grid {
        grid-template-columns: 1fr;
      }

      .hero__visual {
        min-height: 520px;
      }

      .feature-grid,
      .pill-row {
        grid-template-columns: 1fr 1fr;
      }

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

      .gallery-grid .wide {
        grid-column: span 2;
      }
    }

    @media (max-width: 820px) {
      .topbar__inner {
        grid-template-columns: 1fr;
      }

      .nav {
        justify-self: stretch;
        order: 3;
      }

      .topbar__actions {
        justify-self: end;
      }

      .feature-grid,
      .pill-row,
      .mini-gallery,
      .hero__facts {
        grid-template-columns: 1fr;
      }

      .hero__visual {
        min-height: 440px;
      }

      .photo-card--main {
        inset: 0 8% 0 0;
      }

      .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
      }

      .gallery-grid .wide,
      .gallery-grid .tall {
        grid-column: auto;
        grid-row: auto;
      }

      .footer__inner {
        grid-template-columns: 1fr;
      }
    }

    @media (max-width: 640px) {
      .container {
        width: min(calc(100% - 1.1rem), var(--max));
      }

      .hero h1 {
        max-width: none;
      }

      .topbar__actions {
        width: 100%;
        justify-content: space-between;
      }

      .btn,
      .btn-secondary {
        flex: 1 1 auto;
      }

      .hero__actions {
        flex-direction: column;
      }

      .stamp {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
        max-width: none;
      }
    }

    /* =========================
   MOBILE HEADER — TERROIRS
   Replace / adapt your current header styles
   ========================= */

:root {
  --header-bg: rgba(247, 240, 234, 0.72);
  --header-bg-strong: rgba(255, 250, 246, 0.88);
  --header-border: rgba(84, 49, 42, 0.12);
  --header-shadow: 0 18px 40px rgba(60, 31, 27, 0.08);
  --header-shadow-soft: 0 10px 24px rgba(60, 31, 27, 0.06);

  --brand-text: #231917;
  --brand-muted: #6f5a54;

  --accent: #8f2d2b;
  --accent-2: #c4544b;
  --accent-contrast: #fff8f5;

  --chip-bg: rgba(143, 45, 43, 0.06);
  --chip-border: rgba(143, 45, 43, 0.12);
  --chip-text: #5f4640;

  --btn-ring: #0b57d0;
  --radius-xs: 14px;
  --radius-sm: 18px;
  --radius-md: 24px;
  --radius-lg: 32px;

  --header-max: 760px;
}

html[data-theme="dark"] {
  --header-bg: rgba(18, 14, 13, 0.72);
  --header-bg-strong: rgba(28, 21, 20, 0.9);
  --header-border: rgba(255, 237, 227, 0.1);
  --header-shadow: 0 22px 44px rgba(0, 0, 0, 0.28);
  --header-shadow-soft: 0 10px 26px rgba(0, 0, 0, 0.22);

  --brand-text: #f6eee8;
  --brand-muted: #ccb9b1;

  --accent: #c94d49;
  --accent-2: #df7664;
  --accent-contrast: #fff8f5;

  --chip-bg: rgba(255, 255, 255, 0.05);
  --chip-border: rgba(255, 255, 255, 0.1);
  --chip-text: #dcc9c1;
}

.m-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 10px 10px 12px;
  /*! backdrop-filter: blur(20px) saturate(135%); */
  /*! -webkit-backdrop-filter: blur(20px) saturate(135%); */
  /*! background:
    linear-gradient(180deg, var(--header-bg-strong), var(--header-bg)),
    radial-gradient(circle at top right, rgba(196, 84, 75, 0.1), transparent 35%); */
  /*! border-bottom: 1px solid var(--header-border); */
}

.m-header::after {
  /*! content: ""; */
  position: absolute;
  inset: auto 16px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--header-border), transparent);
  pointer-events: none;
}

.m-header__inner {
  width: min(100%, var(--header-max));
  margin: 0 auto;
}

.m-header__panel {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent),
    var(--header-bg);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow);
  overflow: hidden;
    backdrop-filter: blur(20px) saturate(135%);
  -webkit-backdrop-filter: blur(20px) saturate(135%);
  background: linear-gradient(180deg, var(--header-bg-strong), var(--header-bg)), radial-gradient(circle at top right, rgba(196, 84, 75, 0.1), transparent 35%);

}

html[data-theme="dark"] .m-header__panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent),
    var(--header-bg);
}

.m-header__panel::before,
.m-header__panel::after {
  /*! content: ""; */
  position: absolute;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.55;
  pointer-events: none;
}

.m-header__panel::before {
  width: 120px;
  height: 120px;
  top: -46px;
  right: -28px;
  background: rgba(196, 84, 75, 0.14);
}

.m-header__panel::after {
  width: 86px;
  height: 86px;
  bottom: -36px;
  left: -10px;
  background: rgba(143, 45, 43, 0.08);
}

.m-header__top {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.m-brand {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-decoration: none;
  min-width: 0;
}

.m-brand__logo {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--header-border);
  box-shadow: var(--header-shadow-soft);
  flex-shrink: 0;
}

html[data-theme="dark"] .m-brand__logo {
  background: rgba(255, 255, 255, 0.06);
}

.m-brand__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.m-brand__text {
  min-width: 0;
}

.m-brand__name {
  display: block;
  margin: 0;
  color: var(--brand-text);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-brand__tag {
  display: block;
  margin-top: 4px;
  color: var(--brand-muted);
  font-size: 0.88rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.m-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m-icon-btn {
  width: 46px;
  height: 46px;
  display: inline-grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid var(--header-border);
  background: rgba(255, 255, 255, 0.48);
  color: var(--brand-text);
  box-shadow: var(--header-shadow-soft);
  text-decoration: none;
  flex: 0 0 auto;
}

html[data-theme="dark"] .m-icon-btn {
  background: rgba(255, 255, 255, 0.05);
}

.m-icon-btn svg,
.m-icon-btn img {
  width: 18px;
  height: 18px;
}

.m-cta {
  position: relative;
  z-index: 1;
  margin-top: 0px;
}

.m-cta__btn {
  position: relative;
  min-height: 56px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--accent-contrast);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow:
    0 16px 34px rgba(143, 45, 43, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.m-cta__btn::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.m-cta__btn svg,
.m-cta__btn img {
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
}

.m-nav {
  position: relative;
  z-index: 1;
  margin-top: 12px;
}

.m-nav__scroll {
  display: grid;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 1px 4px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  grid-template-columns: 1fr 10fr 1fr;
}

.m-nav__scroll::-webkit-scrollbar {
  display: none;
}

.m-nav__link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.m-nav__link.is-active,
.m-nav__link[aria-current="page"] {
  color: var(--brand-text);
  background: rgba(143, 45, 43, 0.12);
  border-color: rgba(143, 45, 43, 0.18);
}

.m-nav__link:hover,
.m-nav__link:active {
  transform: translateY(-1px);
}

.m-header a,
.m-header button {
  transition:
    transform 180ms ease,
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease,
    color 180ms ease;
}

.m-header a:active,
.m-header button:active {
  transform: scale(0.985);
}

.m-header a:focus-visible,
.m-header button:focus-visible {
  outline: 3px solid var(--btn-ring);
  outline-offset: 3px;
}
.topbar{
    display:none;
}
@media (min-width: 821px) {
  .m-header {
    display: none;
  }
  .topbar{
    display: block;
  }
}

@media (max-width: 420px) {
  .m-header {
    padding: 8px 8px 10px;
  }

  .m-header__panel {
    padding: 8px;
    border-radius: 24px;
  }

  .m-brand {
    grid-template-columns: 50px minmax(0, 1fr);
    gap: 10px;
  }

  .m-brand__logo {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .m-brand__name {
    font-size: 0.98rem;
  }

  .m-brand__tag {
    font-size: 0.82rem;
  }

  .m-icon-btn {
    width: 42px;
    height: 32px;
    border-radius: 14px;
  }

  .m-cta__btn {
    min-height: 42px;
    font-size: 0.96rem;
    border-radius: 18px;
  }

  .m-nav__link {
    min-height: 9px;
    padding: 0 13px;
    font-size: 0.9rem;
    height: 32px;
  }
}