:root {
      --bordeaux: #7b1832;
      --bordeaux-soft: #f7eef1;
      --anthracite: #23262b;
      --ink: #16181b;
      --muted: #626872;
      --line: #e7e1de;
      --paper: #ffffff;
      --stone: #f5f3f0;
      --warm: #c9a36a;
      --radius: 8px;
      --max: 980px;
    }

    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      color: var(--ink);
      background: var(--paper);
      line-height: 1.65;
    }

    body.text-large {
      font-size: 17px;
    }

    body.text-large .nav-links,
    body.text-large .lead,
    body.text-large p,
    body.text-large li,
    body.text-large .footer-inner {
      font-size: 1.03em;
    }

    body.theme-dark {
      color: #f3f0ea;
      background: #111317;
    }

    body.theme-dark .topbar,
    body.theme-dark .section-card {
      border-color: rgba(255, 255, 255, .12);
      background: #171a20;
      color: #f3f0ea;
    }

    body.theme-dark main {
      background: linear-gradient(180deg, #171a20, #111317 260px);
    }

    body.theme-dark h1,
    body.theme-dark h2,
    body.theme-dark .nav-links a,
    body.theme-dark .nav-dropdown-menu a {
      color: #f3f0ea;
    }

    body.theme-dark p,
    body.theme-dark ul,
    body.theme-dark .lead,
    body.theme-dark .footer-inner {
      color: rgba(243, 240, 234, .78);
    }

    body.theme-dark .nav-dropdown-menu {
      border-color: rgba(255, 255, 255, .12);
      background: #171a20;
    }

    body.theme-dark .nav-links a:hover,
    body.theme-dark .nav-links a:focus-visible,
    body.theme-dark .nav-dropdown-menu a:hover,
    body.theme-dark .nav-dropdown-menu a:focus-visible {
      background: rgba(123, 24, 50, .28);
      color: #fff;
    }

    body.theme-dark .footer {
      background: #090a0d;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    a:focus-visible,
    button:focus-visible {
      outline: 3px solid rgba(201, 163, 106, .78);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      left: 16px;
      top: 12px;
      z-index: 10;
      transform: translateY(-140%);
      background: var(--paper);
      color: var(--anthracite);
      padding: 10px 14px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
    }

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

    .topbar {
      border-bottom: 1px solid rgba(35, 38, 43, .1);
      background: rgba(255, 255, 255, .98);
      box-shadow: 0 8px 28px rgba(22, 24, 27, .08);
    }

    .nav {
      width: min(1180px, calc(100% - 32px));
      min-height: 92px;
      margin: 0 auto;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
    }

    .brand img {
      width: 190px;
      height: auto;
      display: block;
    }

    .nav-links {
      display: flex;
      gap: 8px;
      align-items: center;
      font-size: 14px;
      font-weight: 800;
    }

    .nav-links a {
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      padding: 0 12px;
      border-radius: var(--radius);
      color: rgba(35, 38, 43, .76);
    }

    .nav-links a:hover {
      color: var(--bordeaux);
      background: var(--bordeaux-soft);
    }

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

    .nav-dropdown::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: 100%;
      height: 12px;
    }

    .nav-trigger {
      gap: 6px;
    }

    .nav-chevron {
      width: 14px;
      height: 14px;
      transition: transform .18s ease;
    }

    .nav-dropdown-menu {
      position: absolute;
      top: calc(100% + 8px);
      left: 0;
      z-index: 45;
      width: 292px;
      display: grid;
      gap: 4px;
      padding: 10px;
      border: 1px solid rgba(35, 38, 43, .12);
      border-radius: var(--radius);
      background: rgba(255, 255, 255, .98);
      box-shadow: 0 20px 50px rgba(22, 24, 27, .16);
      opacity: 0;
      pointer-events: none;
      transform: translateY(-6px);
      visibility: hidden;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .nav-dropdown-menu a {
      min-height: 38px;
      justify-content: flex-start;
      padding: 0 10px;
      color: var(--anthracite);
      font-size: 13px;
      font-weight: 780;
    }

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

    .nav-dropdown:hover .nav-chevron,
    .nav-dropdown:focus-within .nav-chevron {
      transform: rotate(180deg);
    }

    main {
      background: linear-gradient(180deg, var(--stone), #fff 260px);
    }

    .page-hero,
    .content {
      width: min(var(--max), calc(100% - 32px));
      margin: 0 auto;
    }

    .page-hero {
      padding: 72px 0 34px;
    }

    .kicker {
      margin: 0 0 12px;
      color: var(--bordeaux);
      font-size: 13px;
      font-weight: 900;
      text-transform: uppercase;
    }

    h1 {
      margin: 0;
      max-width: 760px;
      color: var(--anthracite);
      font-size: clamp(38px, 7vw, 72px);
      line-height: 1;
      letter-spacing: 0;
    }

    .lead {
      max-width: 720px;
      margin: 22px 0 0;
      color: var(--muted);
      font-size: 18px;
    }

    .content {
      display: grid;
      gap: 18px;
      padding: 0 0 86px;
    }

    .section-card {
      padding: 26px;
      border: 1px solid var(--line);
      border-radius: var(--radius);
      background: var(--paper);
      box-shadow: 0 18px 48px rgba(22, 24, 27, .08);
    }

    h2 {
      margin: 0 0 14px;
      color: var(--anthracite);
      font-size: 24px;
      line-height: 1.2;
    }

    p,
    ul {
      margin: 0 0 14px;
      color: var(--muted);
    }

    ul {
      padding-left: 20px;
    }

    li + li {
      margin-top: 6px;
    }

    .content a {
      color: var(--bordeaux);
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .footer {
      background: var(--anthracite);
      color: #fff;
      padding: 42px 0 28px;
    }

    .footer .container {
      width: min(1180px, calc(100% - 32px));
      margin: 0 auto;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: minmax(280px, 1.45fr) minmax(230px, .85fr) minmax(170px, .6fr) minmax(190px, .65fr);
      gap: 30px 42px;
      align-items: start;
    }

    .footer-brand {
      max-width: 560px;
    }

    .footer .brand {
      width: fit-content;
      min-width: 0;
      padding: 0;
      background: transparent;
    }

    .footer .brand-logo {
      width: 206px;
      height: auto;
      display: block;
    }

    .footer p,
    .footer a,
    .footer li {
      color: rgba(255, 255, 255, .72);
      font-size: 14px;
    }

    .footer h3 {
      color: #fff;
      font-size: 14px;
      text-transform: uppercase;
      margin: 0 0 12px;
    }

    .footer ul {
      list-style: none;
      padding: 0;
      margin: 0;
      display: grid;
      gap: 7px;
    }

    .footer a {
      text-decoration: none;
    }

    .footer a:hover,
    .footer a:focus-visible {
      color: #fff;
      text-decoration: underline;
      text-underline-offset: 3px;
    }

    .legal-note {
      max-width: 620px;
    }

    .footer-bottom {
      margin-top: 36px;
      padding-top: 18px;
      border-top: 1px solid rgba(255, 255, 255, .12);
      display: flex;
      justify-content: space-between;
      gap: 18px;
      color: rgba(255, 255, 255, .58);
      font-size: 13px;
    }

    .back-to-top {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 20;
      width: 50px;
      height: 50px;
      display: grid;
      place-items: center;
      border: 1px solid rgba(255, 255, 255, .24);
      border-radius: var(--radius);
      background: var(--bordeaux);
      color: #fff;
      box-shadow: 0 18px 42px rgba(22, 24, 27, .24);
      cursor: pointer;
      opacity: 0;
      visibility: hidden;
      transform: translateY(14px);
      transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
    }

    .back-to-top.is-visible {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .back-to-top:hover,
    .back-to-top:focus-visible {
      background: #541020;
    }

    .back-to-top svg {
      width: 22px;
      height: 22px;
      stroke-width: 2.4;
    }

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

      .footer-grid > :first-child {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 680px) {
      .nav {
        min-height: 78px;
      }

      .brand img {
        width: 142px;
      }

      .nav-links {
        gap: 2px;
        font-size: 13px;
      }

      .nav-dropdown-menu {
        left: auto;
        right: 0;
        width: min(292px, calc(100vw - 32px));
      }

      .back-to-top {
        right: 16px;
        bottom: 16px;
        width: 46px;
        height: 46px;
      }

      .nav-links a {
        padding: 0 8px;
      }

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

      .footer-bottom {
        flex-direction: column;
      }

      .page-hero {
        padding-top: 48px;
      }

      .section-card {
        padding: 20px;
      }
    }
