:root {
  --night: #171a1f;
  --night-soft: #242931;
  --milk: #f7f3eb;
  --paper: #fffdf8;
  --ink: #202328;
  --graphite: #60646a;
  --gold: #a98b58;
  --terracotta: #b15f45;
  --line: rgba(32, 35, 40, .14);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Manrope", "Noto Sans", sans-serif;
  --page: min(1240px, calc(100vw - 96px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--milk); font-family: var(--sans); font-size: 16px; line-height: 1.65; }
a { color: inherit; }
svg { display: block; }

.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; transform: translateY(-180%); padding: 8px 12px; color: var(--milk); background: var(--night); text-decoration: none; }
.skip-link:focus { transform: translateY(0); }
.topbar { position: absolute; z-index: 10; top: 0; left: 0; width: 100%; min-height: 92px; padding: max(20px, env(safe-area-inset-top)) max(28px, env(safe-area-inset-right)) 24px max(28px, env(safe-area-inset-left)); display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; color: rgba(255, 253, 248, .94); }
.telegram-link, .muted-icon, .language-link { display: inline-grid; width: 34px; height: 34px; place-items: center; }
.telegram-link { justify-self: start; color: rgba(255, 253, 248, .98); }
.telegram-link svg { width: 20px; height: 20px; fill: currentColor; }
.telegram-link.is-pending { opacity: .45; pointer-events: none; }
.brand-logo { display: block; width: 152px; height: 152px; line-height: 0; }
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.topbar-right { display: flex; justify-self: end; align-items: center; gap: 11px; }
.muted-icon { color: rgba(255, 255, 255, 1); }
.muted-icon svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; }
.x-icon { font-size: 14px; font-weight: 500; }
.language-link { width: auto; height: auto; margin-left: 5px; padding: 5px 0 5px 10px; border-left: 1px solid rgba(255, 253, 248, .54); color: rgba(255, 253, 248, .98); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-decoration: none; }

.hero { position: relative; display: grid; min-height: 100vh; min-height: 100svh; overflow: hidden; place-items: center; color: var(--milk); background: var(--night); }
.hero-media, .hero-shade { position: absolute; inset: 0; }
.hero-media { background: linear-gradient(126deg, #111319 0%, #202731 49%, #2c2930 100%); }
.hero-media video { width: 100%; height: 100%; object-fit: cover; }
.hero-shade { background: linear-gradient(180deg, rgba(8, 10, 13, .36) 0%, rgba(8, 10, 13, .08) 42%, rgba(8, 10, 13, .64) 100%); }
.hero-content { position: relative; z-index: 1; width: min(920px, calc(100% - 48px)); padding: 208px 0 88px; text-align: center; }
.project-name { display: inline-block; margin: 0 0 30px; color: rgba(255, 253, 248, .95); font-size: clamp(24px, 4vw, 52px); font-weight: 700; letter-spacing: .24em; line-height: 1; text-transform: uppercase; text-shadow: 0 8px 26px rgba(0, 0, 0, .28); }
.section-label { margin: 0 0 21px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .18em; line-height: 1.3; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.02; letter-spacing: -.035em; }
h1 { max-width: 780px; margin: 0 auto 25px; font-size: clamp(46px, 5.7vw, 84px); }
.hero-deck { max-width: 500px; margin: 0 auto 36px; color: rgba(255, 253, 248, .78); font-size: clamp(16px, 1.6vw, 20px); }
.about-button { display: inline-flex; min-height: 45px; align-items: center; padding: 10px 18px; border: 1px solid rgba(255, 253, 248, .63); color: var(--milk); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-decoration: none; transition: color .2s ease, background .2s ease; }
.about-button:hover, .about-button:focus-visible { color: var(--night); background: var(--milk); }

.section { padding: 138px 0; }
.reading-column { width: min(760px, var(--page)); margin: auto; }
.wide-column { width: var(--page); }
h2 { margin-bottom: 37px; font-size: clamp(38px, 4.7vw, 70px); }
.body-copy { max-width: 690px; color: #3e4248; font-size: 18px; }
.body-copy p + p { margin-top: 1.32em; }
.project-section { background: var(--paper); }
.why-section { background: #ece6dc; }
.why-section h2 { color: var(--terracotta); }
.closing-lines { margin-top: 2em !important; color: var(--ink); font-family: var(--serif); font-size: 30px; line-height: 1.12; }

.caravan-section { color: var(--milk); background: var(--night); }
.caravan-section .section-label { color: var(--gold); }
.caravan-section h2 { max-width: 860px; }
.caravan-section .body-copy { color: rgba(255, 253, 248, .77); }
.intro-copy { margin-bottom: 48px; }
.film-player { position: relative; aspect-ratio: 16 / 9; overflow: hidden; margin-bottom: 48px; background: #050608; }
.film-player::after { position: absolute; inset: 0; content: ""; border: 1px solid rgba(255, 253, 248, .12); pointer-events: none; }
.film-player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #050608; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid rgba(255, 253, 248, .23); }
.media-grid article { min-height: 202px; padding: 24px 25px 24px 0; border-bottom: 1px solid rgba(255, 253, 248, .23); }
.media-grid article + article { padding-left: 25px; border-left: 1px solid rgba(255, 253, 248, .23); }
.media-grid h3 { margin-bottom: 12px; color: var(--gold); font-size: 26px; }
.media-grid p { margin: 0; color: rgba(255, 253, 248, .7); font-size: 14px; line-height: 1.58; }
.media-closing { max-width: 830px; margin: 49px 0 0; font-family: var(--serif); font-size: clamp(25px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.025em; }

.site-footer { padding: 30px max(28px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(255, 253, 248, .58); background: #111318; font-size: 11px; letter-spacing: .055em; }
.site-footer p { margin: 0; }

@media (max-width: 860px) {
  :root { --page: calc(100vw - 56px); }
  .section { padding: 96px 0; }
  .media-grid { grid-template-columns: 1fr 1fr; }
  .media-grid article:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 580px) {
  :root { --page: calc(100vw - 40px); }
  body { font-size: 16px; }
  .topbar { min-height: 64px; padding: max(14px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 12px max(12px, env(safe-area-inset-left)); }
  .brand-logo { width: 78px; height: 78px; }
  .topbar-right { gap: 3px; }
  .muted-icon { width: 24px; height: 24px; }
  .muted-icon svg { width: 15px; height: 15px; }
  .telegram-link { width: 24px; height: 24px; }
  .language-link { margin-left: 2px; padding-left: 6px; }
  .hero-content { width: calc(100% - 40px); padding: 132px 0 max(44px, env(safe-area-inset-bottom)); text-align: left; }
  .project-name { margin: 0 0 18px; font-size: clamp(18px, 6.8vw, 36px); letter-spacing: .18em; }
  h1 { margin-left: 0; font-size: clamp(40px, 11.8vw, 54px); }
  .hero-deck { margin-left: 0; font-size: 16px; }
  .section { padding: 74px 0; }
  h2 { margin-bottom: 28px; font-size: clamp(35px, 10.4vw, 50px); }
  .body-copy { font-size: 16px; }
  .closing-lines { font-size: 26px; }
  .intro-copy { margin-bottom: 32px; }
  .film-player { margin-bottom: 35px; }
  .media-grid { grid-template-columns: 1fr; }
  .media-grid article, .media-grid article + article, .media-grid article:nth-child(3) { min-height: 0; padding: 22px 0; border-left: 0; }
  .media-grid h3 { font-size: 25px; }
  .media-closing { margin-top: 36px; font-size: 28px; }
  .site-footer { padding: 25px 20px max(25px, env(safe-area-inset-bottom)); align-items: flex-start; flex-direction: column; gap: 5px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
