/* ═══════════════════════════════════════════════════════════════
   AstraLaika — First in orbit · "Stellar Plan" edition
   Soviet constructivism × Asimov retro-futurism, kept modern and
   corporate: cream paper, black ink, cosmic red, one gold accent.
   Signature glyph: the five-pointed star ★.
   ═══════════════════════════════════════════════════════════════ */

/* ── Self-hosted typefaces (SIL OFL) — no Google Fonts request ── */
@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/anton-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ptmono-400-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "PT Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ptmono-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Serif";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ptserif-400i-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../assets/fonts/ptserif-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "PT Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../assets/fonts/ptserif-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Design tokens ────────────────────────────────────────────── */
:root {
  --paper: #F3EDE0;
  --paper-2: #EAE2CF;
  --card: #FBF7EC;
  --ink: #16130E;
  --ink-soft: #57503F;
  --faded: #B4AA93;
  --red: #C8321E;
  --red-dark: #9E2412;
  --gold: #C89B3C;
  --line: rgba(22, 19, 14, 0.16);

  --font-d: "Anton", "Arial Black", system-ui, sans-serif;
  --font-b: "PT Serif", Georgia, serif;
  --font-m: "PT Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 68px;
  --pad: clamp(20px, 4.5vw, 64px);
}

/* ── Base ─────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--red); color: var(--paper); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-d);
  font-weight: 400;                 /* Anton is single-weight */
  text-transform: uppercase;
  line-height: 1.02;
  letter-spacing: 0.01em;
}

.mono {
  font-family: var(--font-m);
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ── Stamp preloader ──────────────────────────────────────────── */
.stamp-loader {
  position: fixed; inset: 0;
  z-index: 3000;
  display: grid; place-items: center;
  background: var(--paper);
  transition: opacity 0.45s var(--ease), visibility 0.45s;
}
.stamp-loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.stamp-mark {
  font-family: var(--font-d);
  font-size: clamp(26px, 6vw, 54px);
  color: var(--red);
  border: 4px solid var(--red);
  padding: 10px 26px;
  transform: rotate(-4deg);
  animation: stamp-slam 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}
@keyframes stamp-slam {
  from { transform: rotate(-11deg) scale(2); opacity: 0; }
  to { transform: rotate(-4deg) scale(1); opacity: 1; }
}

/* ── Top bar ──────────────────────────────────────────────────── */
.bar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--bar-h);
  display: flex; align-items: center; gap: 22px;
  padding: 0 var(--pad);
  background: var(--paper);
  border-top: 6px solid var(--red);
  border-bottom: 3px solid var(--ink);
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand-name { font-family: var(--font-d); font-size: 18px; letter-spacing: 0.05em; }

/* Brand logo: Laika in her helmet (assets/logo.svg, cosmic red) */
.logo-slot {
  display: grid; place-items: center;
  width: 40px; height: 40px;
}
.logo-slot img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s var(--ease); }
.brand:hover .logo-slot img { transform: rotate(-10deg) scale(1.1); }

.bar-nav { display: flex; margin-left: auto; }
.bar-nav a { padding: 8px 12px; border-bottom: 3px solid transparent; transition: border-color 0.15s, color 0.15s; }
.bar-nav a:hover { border-bottom-color: var(--red); color: var(--red-dark); }

/* Language dropdown (opens downward) */
.lang { position: relative; }
.lang-current {
  padding: 7px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border: 2px solid var(--ink);
  background: var(--card);
  transition: background 0.15s, color 0.15s;
}
.lang-current:hover, .lang.is-open .lang-current { background: var(--ink); color: var(--paper); }
.lang-menu {
  position: absolute;
  top: calc(100% + 8px); right: 0;
  min-width: 200px;
  max-height: min(62vh, 460px);
  overflow-y: auto;
  background: var(--card);
  border: 2px solid var(--ink);
  box-shadow: 6px 6px 0 rgba(22, 19, 14, 0.16);
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 1200;
}
.lang.is-open .lang-menu { opacity: 1; transform: translateY(0); visibility: visible; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.08em;
  border-bottom: 1px solid var(--line);
  transition: background 0.12s;
}
.lang-menu button:last-child { border-bottom: 0; }
.lang-menu button:hover { background: var(--paper-2); }
.lang-menu button[aria-selected="true"] { color: var(--red); }
.lang-menu button[aria-selected="true"]::before { content: "★ "; }

/* ── Buttons: notched constructivist plates ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-d);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 13px 26px;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
  transition: transform 0.12s var(--ease), box-shadow 0.12s var(--ease), background 0.15s;
}
.btn-red { background: var(--red); color: var(--paper); }
.btn-red:hover { background: var(--red-dark); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn-line { border: 2px solid var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--paper); transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--red); }
.btn:active { transform: translate(0, 0); box-shadow: none; }
.bar-cta { flex-shrink: 0; }

.burger { display: none; padding: 8px 14px; border: 2px solid var(--ink); font-weight: 700; }
.burger:hover, .burger.is-open { background: var(--ink); color: var(--paper); }

/* Fullscreen menu (mobile) */
.menu-overlay {
  position: fixed; inset: calc(var(--bar-h)) 0 0 0;
  z-index: 900;
  background: var(--paper);
  padding: 26px var(--pad);
  transform: translateY(-103%);
  transition: transform 0.35s var(--ease);
  visibility: hidden;
}
.menu-overlay.is-open { transform: translateY(0); visibility: visible; }
.menu-overlay nav { display: flex; flex-direction: column; }
.menu-overlay a {
  font-family: var(--font-d);
  font-size: clamp(30px, 8.5vw, 50px);
  text-transform: uppercase;
  padding: 16px 4px;
  border-bottom: 2px solid var(--ink);
}
.menu-overlay a:hover { color: var(--red); }
.menu-note { margin-top: 26px; color: var(--ink-soft); }

/* ── Scroll reveals ───────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 0.09s);
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--bar-h) + clamp(36px, 8vh, 90px)) var(--pad) 0;
  overflow: hidden;
}
#chart { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Poster sunburst: soft red rays from the lower-left corner */
.hero-rays {
  position: absolute; inset: 0;
  pointer-events: none;
  background: repeating-conic-gradient(from -12deg at -4% 104%,
    rgba(200, 50, 30, 0.055) 0 3.4deg, transparent 3.4deg 8deg);
}

.hero-inner { position: relative; z-index: 2; flex: 1; max-width: 1180px; margin: 0 auto; width: 100%; }
.hero-kicker { color: var(--ink-soft); margin-bottom: clamp(20px, 4vh, 40px); }

.hero-title { font-size: clamp(58px, 12.5vw, 180px); }
.hero-title .red { color: var(--red); }
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.hero-title .line-inner { display: inline-block; transform: translateY(112%); }
body.is-ready .hero-title .line-inner { animation: rise 0.9s var(--ease) forwards; }
body.is-ready .hero-title .line:nth-child(2) .line-inner { animation-delay: 0.12s; }
@keyframes rise { to { transform: translateY(0); } }

.hero-sub {
  max-width: 540px;
  margin-top: 28px;
  font-size: clamp(16.5px, 2vw, 19px);
  color: var(--ink-soft);
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 38px 0 60px; }
.hero .reveal { transition-delay: calc(0.45s + var(--i, 0) * 0.12s); }
.hero .hero-sub { --i: 1; }
.hero .hero-cta { --i: 2; }

/* Bulletin strip: black band with key figures */
.bulletin {
  position: relative; z-index: 2;
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(16px, 3.5vw, 44px);
  margin: auto calc(-1 * var(--pad)) 0;
  padding: 15px var(--pad);
  background: var(--ink);
  color: var(--paper);
}
.bulletin-star { color: var(--red); margin-left: auto; animation: star-spin 9s linear infinite; }
@keyframes star-spin { to { transform: rotate(360deg); } }

/* ── Ticker ───────────────────────────────────────────────────── */
.ticker {
  overflow: hidden;
  background: var(--red);
  color: var(--paper);
  border-bottom: 3px solid var(--ink);
  padding: 10px 0;
}
.ticker-track { display: flex; width: max-content; animation: ticker 28s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { font-size: 13px; letter-spacing: 0.18em; white-space: nowrap; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ── Sections ─────────────────────────────────────────────────── */
.section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(80px, 12vh, 150px) var(--pad);
}
.section-head { margin-bottom: clamp(36px, 6vh, 60px); }
.section-tag { display: inline-flex; align-items: center; gap: 12px; color: var(--ink-soft); margin-bottom: 18px; }
.section-tag b { background: var(--red); color: var(--paper); padding: 3px 9px; font-weight: 400; }
.section-head h2 { font-size: clamp(32px, 5.4vw, 68px); max-width: 22ch; }
.section-sub { max-width: 600px; margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; }

/* ── Directives (who we are) ──────────────────────────────────── */
.directives {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.directive {
  background: var(--card);
  border: 2px solid var(--ink);
  border-left: 8px solid var(--red);
  padding: 26px 24px 28px;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
              opacity 0.7s var(--ease);
}
.directive:hover { transform: translateY(-5px); box-shadow: 8px 8px 0 rgba(22, 19, 14, 0.14); }
.directive-label { color: var(--red); margin-bottom: 14px; }
.directive h3 { font-size: 22px; margin-bottom: 12px; }
.directive-body { color: var(--ink-soft); font-size: 15px; }

.open-note { margin-top: 36px; color: var(--ink-soft); text-align: center; }
.open-note a { color: var(--red); border-bottom: 2px solid var(--red); margin-left: 8px; }
.open-note a:hover { background: var(--red); color: var(--paper); }

/* ── The Catalogue: stamp-sheet carousel ──────────────────────── */
.catalogue {
  max-width: none;
  background:
    repeating-linear-gradient(45deg, transparent 0 30px, rgba(22, 19, 14, 0.028) 30px 31px),
    var(--paper-2);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.catalogue .section-head { max-width: 1180px; margin-left: auto; margin-right: auto; }

.sheet {
  position: relative;
  height: 540px;
  outline: none;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.sheet:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.sheet-stage { position: absolute; inset: 0; perspective: 1200px; }

/* Postage-stamp product card */
.stamp {
  position: absolute;
  top: 50%; left: 50%;
  width: min(340px, 80vw);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 14px;
  box-shadow: 0 14px 34px rgba(22, 19, 14, 0.16);
  will-change: transform, opacity;
}
/* Perforation: punched dots along the top and bottom edges */
.stamp::before, .stamp::after {
  content: "";
  position: absolute; left: 6px; right: 6px;
  height: 12px;
  background-image: radial-gradient(circle 4.5px at 8px 6px, var(--paper-2) 4.4px, transparent 4.6px);
  background-size: 17px 12px;
  background-repeat: repeat-x;
}
.stamp::before { top: -6px; }
.stamp::after { bottom: -6px; }

.stamp-in { border: 2px solid var(--ink); display: flex; flex-direction: column; height: 100%; background: var(--card); }
.stamp.is-front[data-live] { cursor: pointer; }
.stamp.is-front[data-live]:hover .stamp-in { border-color: var(--red); }
.stamp.is-front.is-secret { cursor: not-allowed; }

.stamp-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 14px;
  border-bottom: 2px solid var(--ink);
}
.stamp-num { color: var(--ink-soft); }
/* Rubber-stamp status mark */
.rubber {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 2px 8px;
  border: 2px solid;
  transform: rotate(-6deg);
}
.rubber.live { color: var(--red); border-color: var(--red); }
.rubber.secret { color: var(--paper); background: var(--red); border-color: var(--red-dark); font-weight: 700; }

.stamp-media {
  position: relative;
  height: 175px;
  display: grid; place-items: center;
  border-bottom: 2px solid var(--ink);
  overflow: hidden;
}
.stamp-media.live { background: var(--red); }
.stamp-media img { width: 104px; height: 104px; }
/* Forming star: pulsing glyph behind the classified stamp */
.stamp-embryo {
  font-size: 66px;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2.5px var(--ink);
  animation: embryo-pulse 3.4s ease-in-out infinite;
}
@keyframes embryo-pulse {
  0%, 100% { transform: scale(0.92) rotate(0deg); opacity: 0.7; }
  50% { transform: scale(1.08) rotate(18deg); opacity: 1; }
}

/* Classified file (TOP-SECRET, USSR style): red-hatched field,
   double-framed diagonal stamp, ACCESS DENIED flash on click */
.stamp-media.secret {
  background:
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(200, 50, 30, 0.06) 10px 20px),
    var(--paper-2);
}
.stamp-media.secret .stamp-embryo { -webkit-text-stroke: 2.5px var(--red); opacity: 0.35; animation: none; }
.stamp-secret {
  position: absolute;
  text-align: center;
  color: var(--red);
  border: 4px double var(--red);
  padding: 8px 18px;
  transform: rotate(-12deg);
  background: rgba(251, 247, 236, 0.72);
}
.stamp-secret b {
  display: block;
  font-family: var(--font-d);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.1em;
  line-height: 1;
}
.stamp-secret i {
  display: block;
  margin-top: 5px;
  font-family: var(--font-m);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.3em;
  white-space: nowrap;
}
.stamp-denied {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(158, 36, 18, 0.93);
  color: var(--paper);
  text-align: center;
  line-height: 2;
  opacity: 0;
  pointer-events: none;
}

.stamp-body { padding: 16px 16px 14px; flex: 1; }
.stamp-body h3 { font-size: 24px; margin-bottom: 8px; }
.stamp-body p { color: var(--ink-soft); font-size: 14px; min-height: 66px; }
.stamp-tags { margin-top: 10px; color: var(--faded); font-size: 11px; }

.stamp-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 16px;
  border-top: 2px solid var(--ink);
}
.stamp-link { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red); font-weight: 700; }
.stamp-soon { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.stamp-foot .star { color: var(--red); }

.sheet-ui {
  display: flex; align-items: center; justify-content: center;
  gap: 22px;
  margin-top: 26px;
}
.sheet-arrow {
  width: 48px; height: 48px;
  border: 2px solid var(--ink);
  background: var(--card);
  font-size: 17px;
  display: grid; place-items: center;
  transition: background 0.15s, color 0.15s;
}
.sheet-arrow:hover { background: var(--ink); color: var(--paper); }
.sheet-dots { display: flex; gap: 10px; }
.sheet-dots button {
  width: 10px; height: 10px;
  padding: 0;
  border: 2px solid var(--ink);
  background: transparent;
  transition: background 0.15s, transform 0.2s var(--ease);
}
.sheet-dots button.is-active { background: var(--red); border-color: var(--red); transform: rotate(45deg) scale(1.15); }
.sheet-hint { text-align: center; margin-top: 16px; color: var(--faded); }

/* ── The Plan (studio) ────────────────────────────────────────── */
.manifesto-wrap {
  border-left: 8px solid var(--red);
  padding-left: clamp(20px, 3.5vw, 40px);
  margin-bottom: clamp(70px, 11vh, 120px);
}
.manifesto {
  font-family: var(--font-b);
  font-style: italic;
  font-size: clamp(22px, 3.4vw, 38px);
  line-height: 1.45;
  max-width: 1000px;
}
.manifesto .w { color: var(--faded); transition: color 0.3s ease; }
.manifesto .w.lit { color: var(--ink); }
.manifesto .w.hot { color: var(--red); }
.manifesto-cite { display: block; margin-top: 18px; color: var(--ink-soft); font-style: normal; }

.plan {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
  padding-top: 56px;
}
.plan-arrow {
  position: absolute;
  top: 18px; left: 0; right: 0;
  width: 100%; height: 60px;
}
.plan-arrow path { stroke: var(--red); stroke-width: 3; }
.plan-num {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-d);
  font-size: 15px;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
}
.plan-num i { font-style: normal; color: var(--red); font-size: 12px; }
.plan-step h3 { font-size: 22px; margin: 18px 0 10px; }
.plan-step p { color: var(--ink-soft); font-size: 15px; }

/* ── Contact (subcontracting channel) ─────────────────────────── */
.contact { text-align: center; }
.contact-title { font-size: clamp(38px, 7vw, 92px); margin: 14px 0 12px; }
.contact-sub { max-width: 560px; margin: 0 auto 42px; color: var(--ink-soft); }

.telegram {
  position: relative;
  display: inline-grid;
  gap: 8px;
  text-align: left;
  background: var(--ink);
  color: var(--paper);
  border-top: 8px solid var(--red);
  padding: clamp(26px, 4.5vw, 46px) clamp(28px, 6vw, 76px) clamp(28px, 4.5vw, 48px);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
  max-width: 100%;
  transition: background 0.2s;
}
.telegram:hover { background: var(--red-dark); }
.telegram-label { color: var(--gold); }
.telegram-mail {
  font-family: var(--font-d);
  font-size: clamp(22px, 5vw, 60px);
  line-height: 1.05;
  word-break: break-all;
}
.telegram-star {
  position: absolute;
  top: 16px; right: 18px;
  color: var(--red);
  transition: transform 0.4s var(--ease), color 0.2s;
}
.telegram:hover .telegram-star { transform: rotate(72deg) scale(1.3); color: var(--paper); }

.contact-meta {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 28px;
  color: var(--ink-soft);
  --i: 1;
}

/* ── Footer ───────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: var(--paper);
  border-top: 6px solid var(--red);
  padding: 40px var(--pad) 26px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
}
.footer .logo-slot { width: 34px; height: 34px; }
.footer .brand-name { font-size: 15px; }
.footer-links { display: flex; gap: 2px 20px; flex-wrap: wrap; margin-left: auto; }
.footer-links a { opacity: 0.75; transition: opacity 0.2s, color 0.2s; }
.footer-links a:hover { opacity: 1; color: #E9B0A5; }
.footer-note { max-width: 1180px; margin: 20px auto 0; opacity: 0.55; }

/* ── Legal pages ──────────────────────────────────────────────── */
.legal-page {
  max-width: 840px;
  margin: 0 auto;
  padding: calc(var(--bar-h) + 54px) var(--pad) 90px;
}
.legal-page h1 { font-size: clamp(32px, 5.5vw, 58px); margin: 12px 0 22px; }
.legal-page h2 {
  font-size: 18px;
  margin: 44px 0 14px;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--paper);
  display: inline-block;
}
.legal-page p, .legal-page dd, .legal-page li { color: var(--ink-soft); font-size: 15.5px; }
.legal-page a { color: var(--red); border-bottom: 1px solid var(--red); }
.legal-page ul { padding-left: 20px; display: grid; gap: 12px; margin-top: 12px; }
.legal-page strong { color: var(--ink); }
.legal-page section { border-top: 2px solid var(--ink); margin-top: 32px; }
.legal-intro { margin-bottom: 8px; }
.legal-langs { margin: 4px 0 24px; color: var(--faded); }

.legal-list { display: grid; grid-template-columns: 235px 1fr; gap: 12px 20px; margin-top: 16px; }
.legal-list dt { font-family: var(--font-m); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); padding-top: 3px; }
.legal-list em { font-style: italic; opacity: 0.6; font-size: 13px; }
@media (max-width: 640px) {
  .legal-list { grid-template-columns: 1fr; gap: 3px; }
  .legal-list dd { margin-bottom: 14px; }
}

/* Empty zone still to be filled in (missing legal information) */
.fill-me {
  display: inline-block;
  font-family: var(--font-m);
  font-size: 0.85em;
  padding: 2px 8px;
  border: 2px dashed var(--red);
  background: rgba(200, 50, 30, 0.07);
  color: var(--red-dark);
}

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .bar-nav { display: none; }
}
@media (max-width: 780px) {
  .bar-cta { display: none; }
  .burger { display: block; margin-left: auto; }
  .lang { margin-left: auto; }
  .burger { margin-left: 0; }
  .plan { grid-template-columns: 1fr; gap: 38px; padding-top: 10px; }
  .plan-arrow { display: none; }
  .sheet { height: 520px; }
  .stamp-body p { min-height: 0; }
  .telegram-star { display: none; }
}

/* ── Reduced motion ───────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal, .hero-title .line-inner { opacity: 1; transform: none; }
  .manifesto .w { color: var(--ink); }
  .stamp-loader { display: none; }
}
