/* Дизайн-система: чёрный + белый + алый, курсивная антиква против тонкого гротеска. */
:root {
  --ink: #0E0E0E;
  --graphite: #1A1A1A;
  --paper: #F2F2F2;
  --white: #FFFFFF;
  --red: #C8102E;
  --red-deep: #8E0B20;
  --muted-light: #6B6B6B;
  --muted-dark: #9A9A9A;
  --line-light: rgba(0, 0, 0, .12);
  --line-dark: rgba(255, 255, 255, .14);
  --spotlight: radial-gradient(circle at 50% 58%, #2A2A2A 0%, #0E0E0E 62%);

  --font-accent: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --font-sans: "Montserrat", "Manrope", Arial, sans-serif;
  --font-num: "Oswald", "Arial Narrow", sans-serif;

  --fs-display: clamp(44px, 7vw, 112px);
  --fs-h2-scene: clamp(30px, 4vw, 56px);
  --fs-h2: clamp(26px, 2.8vw, 40px);
  --fs-h3: clamp(18px, 1.6vw, 24px);
  --fs-lead: clamp(18px, 1.4vw, 22px);
  --fs-body: clamp(16px, 1.1vw, 18px);
  --fs-caption: 13px;
  --fs-overline: 12px;

  --container: 1280px;
  --gutter: clamp(24px, 5vw, 80px);
  --section-y: clamp(64px, 10vw, 160px);
  --radius: 2px;
  --header-h: 72px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --dur-ui: 300ms;
  --dur-scene: 900ms;

  /* значения по умолчанию — светлая секция */
  --muted: var(--muted-light);
  --line: var(--line-light);
  --accent-word: var(--red);
  --fg: var(--ink);
  --bg: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: text-decoration-color var(--dur-ui) var(--ease); }
a:hover { text-decoration-color: var(--red); }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--white); color: var(--ink); padding: 12px 16px; }
.skip-link:focus { top: 12px; }

/* ---------- секции ---------- */
.section { padding: var(--section-y) var(--gutter); }
.section--tight { padding-top: clamp(40px, 6vw, 88px); padding-bottom: clamp(40px, 6vw, 88px); }
.section--dark  { background: var(--ink);   color: var(--white); --fg: var(--white); --bg: var(--ink); --muted: var(--muted-dark);  --line: var(--line-dark);  --accent-word: var(--white); }
.section--light { background: var(--paper); color: var(--ink);   --fg: var(--ink); --bg: var(--paper); --muted: var(--muted-light); --line: var(--line-light); --accent-word: var(--red); }
.section--white { background: var(--white); color: var(--ink);   --fg: var(--ink); --bg: var(--white); --muted: var(--muted-light); --line: var(--line-light); --accent-word: var(--red); }
.section--red   { background: var(--red-deep); color: var(--white); --fg: var(--white); --bg: var(--red-deep); --muted: rgba(255,255,255,.75); --line: var(--line-dark); --accent-word: var(--white); }
.section--spotlight { background: var(--spotlight); }
.container { max-width: var(--container); margin: 0 auto; }
.narrow { max-width: 720px; }

/* ---------- типографика ---------- */
.display, .h2-scene {
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: .98;
  letter-spacing: -.01em;
  text-transform: lowercase;
  margin: 0;
}
.display  { font-size: var(--fs-display); }
.h2-scene { font-size: var(--fs-h2-scene); }
.display em, .h2-scene em {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  color: var(--accent-word);
}
.h2 { font-family: var(--font-accent); font-style: italic; font-weight: 400; font-size: var(--fs-h2); line-height: 1.1; margin: 0 0 24px; }
.h3 { font-weight: 400; font-size: var(--fs-h3); line-height: 1.3; margin: 0 0 12px; }
.lead { font-weight: 300; font-size: var(--fs-lead); line-height: 1.5; margin: 0 0 24px; }
.caption { font-size: var(--fs-caption); line-height: 1.5; color: var(--muted); }
.num { font-family: var(--font-num); font-weight: 500; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
p { margin: 0 0 16px; }
.measure { max-width: 68ch; }

.overline {
  display: flex; align-items: center; gap: 16px;
  font-weight: 500; font-size: var(--fs-overline);
  letter-spacing: .12em; text-transform: uppercase;
  margin: 0 0 24px;
}
.overline .rule { flex: 0 0 56px; height: 1px; background: currentColor; opacity: .4; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px;
  border-radius: var(--radius);
  font: 500 14px/1 var(--font-sans);
  letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--dur-ui) var(--ease), color var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.btn--primary { background: var(--red); color: var(--white); border: 0; }
.btn--primary:hover { background: var(--red-deep); }
.btn--primary .arrow { transition: transform var(--dur-ui) var(--ease); }
.btn--primary:hover .arrow { transform: translateX(4px); }
.btn--primary:focus-visible { outline-color: var(--white); }
.section--light .btn--primary:focus-visible, .section--white .btn--primary:focus-visible { outline-color: var(--ink); }
.btn--ghost { background: transparent; color: var(--fg); border: 1px solid currentColor; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
/* основная кнопка на красной секции */
.btn--on-red { background: var(--white); color: var(--ink); border: 0; }
.btn--on-red:hover { background: var(--paper); }
.btn--on-red .arrow { transition: transform var(--dur-ui) var(--ease); }
.btn--on-red:hover .arrow { transform: translateX(4px); }
.btn--on-red:focus-visible { outline-color: var(--white); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; min-height: 44px; cursor: pointer; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.link-btn:hover { text-decoration-color: var(--red); }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  padding: 0 var(--gutter);
  background: var(--paper); color: var(--ink);
  --fg: var(--ink); --bg: var(--paper);
  border-bottom: 1px solid var(--line-light);
  transition: background var(--dur-ui) var(--ease), border-color var(--dur-ui) var(--ease);
}
.header--over {
  position: fixed; left: 0; right: 0;
  background: transparent; color: var(--white);
  --fg: var(--white); --bg: var(--ink);
  border-bottom-color: transparent;
}
.header--over.is-solid { background: var(--ink); border-bottom-color: var(--line-dark); }
.header__inner { width: 100%; max-width: var(--container); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { font-family: var(--font-accent); font-style: italic; font-size: clamp(22px, 2vw, 28px); text-decoration: none; white-space: nowrap; line-height: 1; }
.nav { display: flex; align-items: center; gap: 32px; }
.nav a:not(.btn) { font-weight: 500; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; padding: 12px 0; border-bottom: 1px solid transparent; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.nav .btn { min-height: 44px; padding: 0 20px; font-size: 13px; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; cursor: pointer; position: relative; color: inherit; }
.burger span { position: absolute; left: 10px; right: 10px; height: 1px; background: currentColor; transition: transform var(--dur-ui) var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 26px; }
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink); color: var(--white);
  padding: 96px 24px 40px;
  display: flex; flex-direction: column; gap: 8px;
}
.menu a { font-family: var(--font-accent); font-style: italic; font-size: clamp(32px, 9vw, 40px); text-decoration: none; line-height: 1.3; }
.menu .close { position: absolute; top: 8px; right: 16px; }
.menu .close span:first-child { transform: translateY(4px) rotate(45deg); }
.menu .close span:last-child { transform: translateY(-4px) rotate(-45deg); }


/* ---------- подвал ---------- */
.footer { background: var(--ink); color: var(--white); padding: clamp(56px, 8vw, 120px) var(--gutter) 32px; --muted: var(--muted-dark); --line: var(--line-dark); }
.footer__grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: end; }
.footer__mark { font-family: var(--font-accent); font-style: italic; font-size: clamp(48px, 6vw, 80px); line-height: 1; margin: 0; }
.footer__links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 48px; font-size: 14px; }
.footer__links a { color: var(--muted-dark); text-decoration: none; padding: 6px 0; }
.footer__links a:hover { color: var(--white); }
.footer__sources { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-size: 13px; color: var(--muted-dark); display: grid; gap: 6px; }
.footer__legal { margin-top: 24px; font-size: 13px; color: var(--muted-dark); }

/* ---------- сетки ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  :root { --header-h: 60px; --gutter: 16px; }
  .nav { display: none; }
  .burger { display: block; }
  .grid-2, .grid-4 { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__links { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- отступы (CSP запрещает inline-стили) ---------- */
.mt-s { margin-top: 12px; }
.mt-m { margin-top: 24px; }
.mt-l { margin-top: 40px; }
.mt-xl { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.gap-wide { gap: 48px 64px; }
.split--end { align-items: end; }
