/* ============================================================
   DIPLOMAGIYA — OPERATION FINEST HOUR
   1940s War Rooms × Retro-futurist Space Agency
   ============================================================ */

:root {
  --ink: #070b12;          /* deep space navy-black */
  --ink-2: #0c1320;        /* raised panel */
  --ink-3: #131c2e;        /* borders on dark */
  --bone: #ece4d2;         /* aged document paper */
  --bone-dim: #b9b09a;     /* paper, faded */
  --red: #cf3a2a;          /* imperial poster red */
  --red-bright: #e8503c;
  --brass: #c9a35c;        /* medal brass */
  --line: rgba(236, 228, 210, 0.14);

  --serif: "Playfair Display", Georgia, serif;
  --serif-text: "Lora", Georgia, serif;
  --mono: "IBM Plex Mono", "Courier New", monospace;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  /* No CSS smooth-scroll: it fights GSAP ScrollTrigger pinning (causes jumps).
     Smooth in-page navigation is handled in JS (initSmoothAnchors). */
  color-scheme: dark;
}

body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--serif-text);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#situation,
#briefing,
#flightplan,
#crew,
#protocol,
#clearance,
#practics,
#transmissions,
#finale,
#faq {
  scroll-margin-top: calc(4.75rem + env(safe-area-inset-top, 0px));
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--red-bright);
  outline-offset: 3px;
}

.btn:focus-visible {
  outline-color: var(--bone);
}

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

.mono {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.14em;
}

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

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: var(--gutter);
  z-index: 400;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--bone);
  outline-offset: 2px;
}

a,
button,
.btn {
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(232, 80, 60, 0.2);
}

em { font-style: italic; }

/* ============ GRAIN ============ */
.grain {
  position: fixed; inset: -100%;
  pointer-events: none; z-index: 200;
  opacity: 0.22;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.72' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.16'/%3E%3C/svg%3E");
  animation: grain-shift 0.9s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 3%); }
  50% { transform: translate(3%, -2%); }
  75% { transform: translate(-3%, -3%); }
  100% { transform: translate(2%, 2%); }
}

/* ============ PRELOADER ============ */
.preloader {
  position: fixed; inset: 0; z-index: 250;
  display: flex; align-items: center; justify-content: center;
}
.preloader__shutter {
  position: absolute; inset: 0;
  background: var(--ink-2);
}
.preloader__shutter--2 { background: var(--red); transform: scaleY(0); }
.preloader__inner {
  position: relative; z-index: 2;
  width: min(92vw, 70rem); height: 80vh;
  display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid var(--line);
  padding: clamp(1rem, 3vw, 2.5rem);
}
.preloader__top, .preloader__bottom {
  display: flex; justify-content: space-between;
  color: var(--bone-dim);
}
.preloader__center { text-align: center; }
.preloader__count {
  font-family: var(--serif);
  font-size: clamp(5rem, 18vw, 14rem);
  line-height: 0.95;
  color: var(--bone);
  font-variant-numeric: tabular-nums;
}
.preloader__quote { margin-top: 1.5rem; color: var(--red-bright); }
.preloader__bar {
  position: relative; height: 1px; background: var(--line);
  margin: 1.5rem 0;
}
.preloader__bar span {
  position: absolute; inset: 0; transform-origin: left;
  background: var(--red); transform: scaleX(0); display: block;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--gutter);
  padding-top: calc(1.1rem + env(safe-area-inset-top, 0px));
  background: rgba(7, 11, 18, 0.58);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: border-color 0.35s var(--ease-out), background 0.35s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(7, 11, 18, 0.72);
  border-bottom-color: var(--line);
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; font-size: 1.05rem; }
.nav__name {
  font-family: var(--serif);
  font-size: 1em; letter-spacing: 0.22em;
}
.nav__mark {
  width: 2.75em;
  height: 2.75em;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  gap: clamp(0.9rem, 1.4vw, 1.6rem);
  font-size: 0.62rem;
}
@media (max-width: 1180px) {
  .nav__links a:nth-child(1),
  .nav__links a:nth-child(4),
  .nav__links a:nth-child(5),
  .nav__links a:nth-child(7) { display: none; }
}
.nav__links a, .nav__cta { position: relative; padding: 0.2rem 0; }
.nav__links a::after, .nav__cta::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--bone);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease-out);
}
.nav__links a:hover::after, .nav__cta:hover::after {
  transform: scaleX(1); transform-origin: left;
}
.nav__toggle {
  display: none;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--bone);
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  letter-spacing: 0.14em;
}
.nav__toggle-bar {
  display: block;
  width: 1.1rem;
  height: 1px;
  background: currentColor;
  box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}
.nav.is-open { mix-blend-mode: normal; }
@media (max-width: 760px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; }
}

/* ============ MOBILE NAV DRAWER ============ */
.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}
.nav-drawer.is-open {
  pointer-events: auto;
}
.nav-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: none;
  background: rgba(7, 11, 18, 0.72);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  cursor: pointer;
}
.nav-drawer.is-open .nav-drawer__backdrop {
  opacity: 1;
}
.nav-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(88vw, 20rem);
  height: 100%;
  padding: calc(1.25rem + env(safe-area-inset-top, 0px)) 1.5rem calc(1.5rem + env(safe-area-inset-bottom, 0px));
  background: var(--ink-2);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out);
}
.nav-drawer.is-open .nav-drawer__panel {
  transform: translateX(0);
}
.nav-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.nav-drawer__title { color: var(--bone-dim); }
.nav-drawer__close {
  border: none;
  background: transparent;
  color: var(--bone);
  cursor: pointer;
  letter-spacing: 0.12em;
  padding: 0.25rem;
}
.nav-drawer__link {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--bone);
  letter-spacing: 0.14em;
}
.nav-drawer__link:hover { color: var(--red-bright); }
.nav-drawer__cta {
  margin-top: auto;
  padding: 1rem 1.2rem;
  border: 1px solid var(--red);
  text-align: center;
  color: var(--bone);
  letter-spacing: 0.14em;
}
.nav-drawer__cta:hover { background: var(--red); }
body.nav-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .nav-drawer__backdrop,
  .nav-drawer__panel { transition: none; }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
}
#space {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
/* readability scrim: dark room on the left, moon visible on the right */
.hero::before {
  content: "";
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(97deg, rgba(7, 11, 18, 0.62) 28%, rgba(7, 11, 18, 0.18) 50%, rgba(7, 11, 18, 0) 68%),
    linear-gradient(to top, rgba(7, 11, 18, 0.62) 0%, rgba(7, 11, 18, 0) 18%),
    linear-gradient(to bottom, rgba(7, 11, 18, 0.32) 0%, rgba(7, 11, 18, 0) 14%);
}
@media (max-width: 760px) {
  .hero::before {
    background:
      linear-gradient(to top, rgba(7, 11, 18, 0.68) 26%, rgba(7, 11, 18, 0.2) 55%, rgba(7, 11, 18, 0.04) 75%),
      linear-gradient(to bottom, rgba(7, 11, 18, 0.34) 0%, rgba(7, 11, 18, 0) 16%);
  }
}
.hero__frame { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hero__corner { position: absolute; color: var(--bone-dim); opacity: 0; }
.hero__corner[data-corner="tl"] { top: 4.5rem; left: var(--gutter); }
.hero__corner[data-corner="tr"] { top: 4.5rem; right: var(--gutter); }
.hero__corner[data-corner="bl"] { bottom: 1.5rem; left: var(--gutter); }
.hero__corner[data-corner="br"] { bottom: 1.5rem; right: var(--gutter); }
@media (max-width: 760px) {
  .hero__corner[data-corner="tr"], .hero__corner[data-corner="bl"] { display: none; }
}

.hero__content {
  position: relative; z-index: 4;
  padding: 0 var(--gutter);
  width: 100%;
}
.hero__kicker {
  color: var(--bone-dim);
  margin-bottom: clamp(1.2rem, 3vh, 2.5rem);
  opacity: 0;
}
.blink { color: var(--red-bright); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3rem, 11vw, 10.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.hero__line { display: block; overflow: hidden; }
.hero__line > span { display: inline-block; transform: translateY(110%); }
.hero__line--accent { color: var(--red-bright); }
.hero__line--accent em {
  font-style: italic; text-transform: lowercase;
  letter-spacing: 0.01em;
}

.hero__sub {
  margin-top: clamp(1.6rem, 4vh, 3rem);
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 2.5rem; flex-wrap: wrap;
  opacity: 0;
}
.hero__sub p {
  max-width: 34rem;
  color: var(--bone-dim);
  font-size: 1.05rem;
}
.hero__sub p em { color: var(--bone); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; flex-direction: column; gap: 0.3rem;
  padding: 1.1rem 1.8rem;
  border: 1px solid var(--bone);
  position: relative;
  overflow: hidden;
  transition: color 0.45s var(--ease-out);
  isolation: isolate;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  transform: translateY(101%);
  transition: transform 0.45s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn__label {
  font-family: var(--serif);
  font-size: 1.05rem; letter-spacing: 0.12em;
}
.btn__meta { color: var(--bone-dim); transition: color 0.45s; }
.btn:hover .btn__meta { color: var(--bone); }
.btn__price-now { color: var(--red-bright); }
.btn__price-old {
  text-decoration: line-through;
  text-decoration-color: var(--red);
  opacity: 0.65;
}
.btn__price-save {
  color: var(--red-bright);
  margin-left: 0.15em;
}
.btn:hover .btn__price-now,
.btn:hover .btn__price-save { color: var(--bone); }
.btn:hover .btn__price-old { opacity: 0.85; }
.btn--primary { border-color: var(--red); }
.btn--ink {
  border-color: var(--ink); color: var(--ink);
}
.btn--ink .btn__meta { color: rgba(7, 11, 18, 0.55); }
.btn--ink:hover { color: var(--bone); }
.btn--ink:hover .btn__meta { color: var(--bone); }
.btn--xl { padding: 1.5rem 2.6rem; }
.btn--xl .btn__label { font-size: 1.35rem; }

/* ============ MARQUEE ============ */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  overflow: hidden;
  background: var(--ink-2);
  position: relative; z-index: 5;
}
.marquee__track {
  display: flex; white-space: nowrap;
  will-change: transform;
}
.marquee__track span {
  font-family: var(--mono);
  font-size: 0.8rem; letter-spacing: 0.22em;
  color: var(--bone-dim);
}

/* ============ SECTION HEADS ============ */
.section-head {
  display: flex; align-items: baseline; gap: 1.2rem;
  padding: 0 var(--gutter);
  margin-bottom: clamp(2.5rem, 7vh, 5rem);
  color: var(--bone-dim);
}
.section-head__num {
  font-size: clamp(2.2rem, 6vw, 5rem);
  line-height: 1;
  color: var(--red-bright);
}
.section-head__rule {
  flex: 1; height: 1px; background: var(--line);
  align-self: center;
  transform: scaleX(0); transform-origin: left;
}
.section-head--light { color: rgba(7, 11, 18, 0.6); }
.section-head--light .section-head__rule { background: rgba(7, 11, 18, 0.2); }
@media (max-width: 640px) { .section-head__file { display: none; } }

/* ============ 01 ЯКЩО ВИ ============ */
.situation { padding: clamp(6rem, 14vh, 10rem) 0 clamp(4rem, 10vh, 8rem); }
.pain__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pain {
  padding: clamp(1.8rem, 3vw, 2.8rem) var(--gutter);
  border-right: 1px solid var(--line);
  transition: background 0.4s;
}
.pain:last-child { border-right: none; }
.pain:hover { background: var(--ink-2); }
.pain__code { color: var(--red-bright); display: block; margin-bottom: 1rem; }
.pain p { color: var(--bone-dim); font-size: 0.98rem; }
@media (max-width: 980px) {
  .pain__grid { grid-template-columns: 1fr 1fr; }
  .pain:nth-child(2) { border-right: none; }
  .pain:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .pain__grid { grid-template-columns: 1fr; }
  .pain { border-right: none; border-bottom: 1px solid var(--line); }
  .pain:last-child { border-bottom: none; }
}
.situation__punch {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 6vw, 5rem);
  text-align: center;
  margin-top: clamp(3.5rem, 9vh, 6rem);
  padding: 0 var(--gutter);
}
.situation__punch em { color: var(--red-bright); }

/* ============ 02 БРИФІНГ ============ */
.briefing { padding: clamp(6rem, 14vh, 11rem) 0; }
.briefing__grid {
  display: grid;
  grid-template-columns: minmax(16rem, 2fr) 3fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 var(--gutter);
  align-items: start;
}
@media (max-width: 900px) {
  .briefing__grid { grid-template-columns: 1fr; }
  .briefing__grid .archive { max-width: 24rem; }
}
.briefing__modules {
  list-style: none;
  margin-top: 2.5rem;
  display: grid; gap: 0.55rem;
  color: var(--bone-dim);
}
.manifesto { max-width: 56rem; }
.manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.2vw, 2.6rem);
  line-height: 1.32;
  color: var(--bone);
}
.manifesto__text .w { opacity: 0.13; transition: none; }
.manifesto__cite {
  display: block; margin-top: 2.2rem;
  color: var(--red-bright);
}

/* ============ ARCHIVE PHOTOS ============ */
.archive {
  position: relative;
  border: 1px solid var(--line);
  background: var(--ink-2);
  padding: 0.9rem;
}
.archive::before {
  content: "★";
  position: absolute; top: -0.8rem; right: 1.4rem;
  color: var(--red-bright);
  background: var(--ink);
  padding: 0 0.5rem;
  font-size: 0.9rem;
  z-index: 2;
}
.archive__imgwrap {
  overflow: hidden;
  position: relative;
}
.archive__imgwrap::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(207, 58, 42, 0.16), transparent 45%, rgba(7, 11, 18, 0.45));
  mix-blend-mode: multiply;
  pointer-events: none;
}
.archive img {
  display: block;
  width: 100%; height: auto;
  filter: grayscale(1) contrast(1.08) brightness(0.92) sepia(0.18);
  transform: scale(1.04);
  transition: transform 1.2s var(--ease-out), filter 0.8s;
}
.archive:hover img { transform: scale(1.0); filter: grayscale(0.85) contrast(1.1) brightness(1) sepia(0.12); }
.archive__cap {
  display: flex; flex-direction: column; gap: 0.55rem;
  padding: 1rem 0.3rem 0.4rem;
  color: var(--bone-dim);
}
.archive__quote { color: var(--brass); line-height: 1.7; }
.archive--tall { align-self: start; }
.archive--landscape .archive__imgwrap { aspect-ratio: 4 / 3; }
.archive--landscape img { height: 100%; width: 100%; object-fit: cover; }

.stats {
  margin-top: clamp(4rem, 10vh, 7rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.8rem) var(--gutter);
  border-right: 1px solid var(--line);
  transition: background 0.4s;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--ink-2); }
.stat__num {
  display: block;
  font-family: var(--serif);
  font-size: clamp(3rem, 6.5vw, 5.5rem);
  line-height: 1;
  color: var(--bone);
}
.stat__num sup {
  font-size: 0.32em; vertical-align: super;
  color: var(--red-bright); margin-left: 0.1em;
}
.stat__label { display: block; margin-top: 0.8rem; color: var(--bone-dim); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ============ 03 ПРОГРАМА — horizontal mission runway ============ */
.flightplan {
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fp__stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.25rem, 3.5vh, 2.5rem);
  padding: clamp(2.5rem, 7vh, 5rem) 0;
  overflow: hidden;
}
/* Full viewport only while pinning, so the horizontal scroll feels deliberate. */
.fp__stage.is-pinned {
  height: 100vh;
  height: 100svh;
  padding: clamp(1.5rem, 4vh, 3rem) 0;
}
/* Cards already fit: compact, centered, no progress meta. */
.flightplan.is-static .fp__viewport {
  display: flex;
  justify-content: center;
}
.flightplan.is-static .fp__meta { display: none; }
.fp__stage .section-head {
  margin: 0;
}
.fp__meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 var(--gutter);
  color: var(--bone-dim);
}
.fp__counter { color: var(--red-bright); min-width: 4.5rem; }
.fp__progress {
  flex: 1;
  height: 1px;
  background: var(--line);
  overflow: hidden;
}
.fp__progress-bar {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--red-bright);
  transform: scaleX(0);
  transform-origin: left;
}
.fp__hint { margin-left: auto; opacity: 0.55; }
.fp__viewport {
  flex: 0 0 auto;
  width: 100%;
  overflow: hidden;
}
.fp__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  width: max-content;
  height: auto;
  gap: clamp(0.85rem, 1.8vw, 1.25rem);
  padding: 0 var(--gutter);
  will-change: transform;
}
.fp__panel {
  position: relative;
  flex: 0 0 auto;
  width: min(84vw, 24rem);
  height: auto;
  min-height: clamp(17rem, 38vh, 21rem);
  padding: clamp(1.25rem, 2vw, 1.6rem);
  border: 1px solid var(--line);
  background: linear-gradient(155deg, rgba(19, 28, 46, 0.95) 0%, var(--ink) 55%);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, filter;
  transition: border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.fp__panel::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  opacity: 0.35;
  transform: scaleX(0.4);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.fp__panel.is-active {
  border-color: rgba(201, 163, 92, 0.45);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
}
.fp__panel.is-active::before {
  opacity: 1;
  transform: scaleX(1);
}
.fp__panel--final { border-color: rgba(207, 58, 42, 0.55); }
.fp__panel--final.is-active {
  border-color: var(--red-bright);
  box-shadow: 0 18px 48px rgba(207, 58, 42, 0.12);
}
.fp__panel--final::before {
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}
.fp__phase { color: var(--red-bright); margin-bottom: 0.85rem; }
.fp__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.85rem, 3.8vw, 2.65rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 0.85rem;
}
.fp__desc {
  color: var(--bone-dim);
  font-size: 0.98rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.fp__list {
  margin-top: auto;
  padding-top: 0.85rem;
  list-style: none;
  color: var(--bone-dim);
  display: grid;
  gap: 0.35rem;
  font-size: 0.72rem;
}
.fp__index {
  position: absolute;
  right: -0.04em;
  bottom: -0.15em;
  font-family: var(--serif);
  font-size: clamp(4.5rem, 12vw, 7.5rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(236, 228, 210, 0.14);
  pointer-events: none;
  transition: -webkit-text-stroke-color 0.35s;
}
.fp__panel.is-active .fp__index { -webkit-text-stroke-color: rgba(201, 163, 92, 0.28); }
.fp__panel--final .fp__index { -webkit-text-stroke-color: rgba(207, 58, 42, 0.3); }
.fp__panel--final.is-active .fp__index { -webkit-text-stroke-color: rgba(207, 58, 42, 0.55); }

/* Mobile / tablet: native horizontal scroll-snap rail — no pin, no scroll-jacking. */
@media (max-width: 899px) {
  .fp__stage {
    height: auto;
    justify-content: flex-start;
    padding: clamp(3rem, 9vh, 5rem) 0;
    overflow: visible;
  }
  .fp__viewport {
    flex: none;
    height: auto;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }
  .fp__viewport::-webkit-scrollbar { display: none; }
  .fp__track {
    height: auto;
    align-items: stretch;
  }
  .fp__panel {
    width: min(84vw, 22rem);
    height: auto;
    min-height: clamp(24rem, 64vh, 30rem);
    scroll-snap-align: center;
  }
  /* Drag/scroll handles activeness on mobile; keep cards readable. */
  .fp__panel { transform: none !important; filter: none !important; }
  .fp__panel.is-active { transform: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .fp__stage { height: auto; justify-content: flex-start; }
  .fp__viewport {
    height: auto;
    overflow: visible;
    scroll-snap-type: none;
    max-height: none;
    flex: none;
  }
  .fp__track {
    flex-direction: column;
    width: auto;
    height: auto;
    transform: none !important;
    will-change: auto;
  }
  .fp__panel {
    width: auto;
    height: auto;
  }
  .fp__desc { -webkit-line-clamp: unset; display: block; }
  .fp__meta { display: none; }
}

/* ============ 03 CREW ============ */
.crew { padding: clamp(6rem, 14vh, 11rem) 0; }
.crew__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.9rem, 4.4vw, 3.6rem);
  line-height: 1.22;
  padding: 0 var(--gutter);
  max-width: 68rem;
  margin-bottom: clamp(3rem, 8vh, 6rem);
}
.crew__heading em { color: var(--red-bright); }
.crew__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.crew__card {
  padding: clamp(1.8rem, 3vw, 2.8rem) var(--gutter);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background 0.4s;
}
.crew__card:last-child { border-right: none; }
.crew__card:hover { background: var(--ink-2); }
.crew__card::after {
  content: "→ ПРИДАТНИЙ ДО СЛУЖБИ";
  font-family: var(--mono);
  font-size: 0.65rem; letter-spacing: 0.18em;
  color: var(--red-bright);
  position: absolute; left: var(--gutter); bottom: 1.1rem;
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.35s, transform 0.35s var(--ease-out);
}
.crew__card:hover::after { opacity: 1; transform: translateX(0); }
.crew__code { color: var(--red-bright); }
.crew__role {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.4rem, 2vw, 1.8rem);
  letter-spacing: 0.04em;
  margin: 1rem 0 0.9rem;
}
.crew__card p { color: var(--bone-dim); font-size: 0.95rem; padding-bottom: 2.2rem; }
@media (max-width: 980px) { .crew__grid { grid-template-columns: 1fr; } .crew__card { border-right: none; } }

.crew__wide {
  margin: 0 var(--gutter);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  border: 1px solid var(--brass);
  padding: clamp(1.8rem, 3vw, 2.8rem);
  background: linear-gradient(120deg, rgba(201, 163, 92, 0.07), transparent 60%);
}
.crew__role--wide { color: var(--brass); margin-bottom: 1.4rem; }
.crew__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem 2.5rem;
  color: var(--bone-dim);
}
.crew__list .mono { color: var(--brass); margin-right: 0.6rem; }
@media (max-width: 760px) { .crew__list { grid-template-columns: 1fr; } }

/* ============ 05 ПРОТОКОЛ ============ */
.protocol {
  padding: clamp(6rem, 14vh, 11rem) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.protocol__grid {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 var(--gutter);
  align-items: start;
}
@media (max-width: 900px) {
  .protocol__grid { grid-template-columns: 1fr; }
  .protocol__grid .archive { max-width: 28rem; }
}
.protocol .archive { background: var(--ink); }
.protocol__rows { display: grid; }
.protocol__row {
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-out);
}
.protocol__row:first-child { padding-top: 0; }
.protocol__row:hover { padding-left: 0.8rem; }
.protocol__key { color: var(--red-bright); padding-top: 0.45rem; }
.protocol__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  margin-bottom: 0.5rem;
}
.protocol__row p { color: var(--bone-dim); font-size: 0.97rem; }
@media (max-width: 560px) {
  .protocol__row { grid-template-columns: 1fr; gap: 0.5rem; }
}

/* ============ 07 МИ ПРАКТИКИ ============ */
.practics { padding: clamp(6rem, 14vh, 11rem) 0; }
.practics__grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 var(--gutter);
  align-items: start;
}
@media (max-width: 900px) {
  .practics__grid { grid-template-columns: 1fr; }
  .practics__grid .archive { max-width: 24rem; order: -1; }
}
.practics__heading {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 1.1;
  margin-bottom: 1.6rem;
}
.practics__heading em { color: var(--red-bright); }
.practics__intro {
  color: var(--bone-dim);
  max-width: 38rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.practics__items { display: grid; }
.practics__item {
  padding: clamp(1.4rem, 2.5vw, 2rem) 0;
  border-top: 1px solid var(--line);
  transition: padding-left 0.4s var(--ease-out);
}
.practics__item:hover { padding-left: 0.8rem; }
.practics__title { color: var(--brass); margin-bottom: 0.7rem; font-size: 0.75rem; }
.practics__item p { color: var(--bone-dim); font-size: 0.97rem; max-width: 36rem; }

@media (max-width: 760px) {
  .situation__punch,
  .practics__item:first-child {
    display: none;
  }

  .shift__grid { margin-top: 2.5rem; }
}

/* ============ 08 ДЕПЕШІ ============ */
.transmissions {
  padding: clamp(6rem, 14vh, 11rem) 0;
  background: var(--ink-2);
  border-top: 1px solid var(--line);
}
.dispatch__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: 0 var(--gutter);
}
@media (max-width: 980px) { .dispatch__grid { grid-template-columns: 1fr; max-width: 44rem; } }
.dispatch {
  border: 1px solid var(--line);
  background: var(--ink);
  padding: clamp(1.6rem, 3vw, 2.4rem);
  display: flex; flex-direction: column;
  position: relative;
  transition: border-color 0.4s, transform 0.4s var(--ease-out);
}
.dispatch:hover { border-color: var(--brass); transform: translateY(-4px); }
.dispatch::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: repeating-linear-gradient(90deg, var(--red) 0 14px, transparent 14px 28px);
  opacity: 0.7;
}
.dispatch__head { color: var(--bone-dim); margin-bottom: 1.3rem; }
.dispatch p {
  font-size: 0.99rem;
  line-height: 1.7;
  color: var(--bone);
  font-style: italic;
}
.dispatch__sign {
  margin-top: auto;
  padding-top: 1.6rem;
  color: var(--brass);
}

/* ============ 04 CLEARANCE ============ */
.clearance {
  background: var(--bone);
  color: var(--ink);
  padding: clamp(6rem, 14vh, 11rem) 0;
  position: relative;
}
.clearance::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(7,11,18,0.06) 1px, transparent 1px);
  background-size: 22px 22px;
  pointer-events: none;
}
.clearance__lede {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.8rem);
  text-align: center;
  margin: 0 auto clamp(2.5rem, 7vh, 4.5rem);
  padding: 0 var(--gutter);
  max-width: 50rem;
}
.clearance__lede em { color: var(--red); }
.ticket-float {
  position: relative;
  margin: 0 var(--gutter);
  max-width: 64rem;
  margin-inline: auto;
  width: calc(100% - 2 * var(--gutter));
  animation: ticket-float 5.5s ease-in-out infinite;
}
@keyframes ticket-float {
  0%, 100% { transform: translateY(0) rotate(-0.2deg); }
  50% { transform: translateY(-5px) rotate(0.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ticket-float { animation: none; }
}
.ticket-wrap {
  will-change: transform;
  transform-style: preserve-3d;
}
.ticket {
  position: relative;
  display: flex;
  border: 2px solid var(--ink);
  background: var(--bone);
  box-shadow: 10px 10px 0 rgba(7, 11, 18, 0.9);
  transition: box-shadow 0.35s ease, transform 0.2s ease;
}
.ticket--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.ticket--link:hover,
.ticket--link:focus-visible {
  box-shadow: 12px 12px 0 rgba(7, 11, 18, 0.9);
}
.ticket--link:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 5px;
}
.ticket--link:active {
  box-shadow: 6px 6px 0 rgba(7, 11, 18, 0.85);
  transform: translate(3px, 3px);
}
.ticket__cta {
  display: block;
  width: min(100%, 22rem);
  min-height: 3.25rem;
}
.ticket__main { flex: 1; padding: clamp(1.8rem, 4vw, 3.5rem); }
.ticket__op { color: var(--red); display: block; margin-bottom: 1.6rem; }
.ticket__price { display: flex; align-items: baseline; gap: 1.4rem; flex-wrap: wrap; }
.ticket__old { text-decoration: line-through; color: rgba(7, 11, 18, 0.45); font-size: 1rem; }
.ticket__now {
  font-family: var(--serif);
  font-size: clamp(3.6rem, 8vw, 6.5rem);
  line-height: 1;
}
.ticket__now small { font-size: 0.45em; }
.ticket__save { color: var(--red); }
.ticket__list {
  list-style: none;
  margin: 2.2rem 0;
  display: grid; gap: 0.7rem;
  font-size: 1.02rem;
}
.ticket__list .mono { color: var(--red); margin-right: 0.5rem; }
.ticket__fine { margin-top: 1.4rem; color: rgba(7, 11, 18, 0.5); }
.ticket__legal {
  margin-top: 1rem;
  color: rgba(7, 11, 18, 0.55);
  line-height: 1.7;
  max-width: 36rem;
}
.ticket__legal--below {
  margin-top: 1.25rem;
  padding: 0 clamp(1.8rem, 4vw, 3.5rem);
  max-width: none;
}
.ticket__legal-link {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.25s;
}
.ticket__legal-link:hover {
  color: var(--ink);
}
.ticket__legal-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.ticket__paylabel {
  margin-top: 1.15rem;
  padding: 0 clamp(1.8rem, 4vw, 3.5rem);
  color: rgba(7, 11, 18, 0.38);
  font-size: 0.56rem;
  letter-spacing: 0.2em;
}
.ticket__paymarks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.45rem;
  padding: 0 clamp(1.8rem, 4vw, 3.5rem);
}
.ticket__paychip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.85rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid rgba(7, 11, 18, 0.14);
  background: rgba(255, 255, 255, 0.28);
  color: rgba(7, 11, 18, 0.62);
  font-size: 0.56rem;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.ticket__paychip--wfp {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.6rem;
  font-weight: 500;
  color: #1d4ed8;
  border-color: rgba(29, 78, 216, 0.22);
}
.ticket__paychip--visa {
  font-family: var(--serif);
  font-size: 0.78rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: none;
  color: #1a1f71;
  border-color: rgba(26, 31, 113, 0.18);
}
.ticket__paychip--mc {
  padding-inline: 0.55rem;
}
.ticket__mc {
  display: block;
  width: 2rem;
  height: auto;
}
.ticket__stub {
  width: clamp(7rem, 14vw, 10rem);
  border-left: 2px dashed var(--ink);
  display: flex; flex-direction: column;
  align-items: center; justify-content: space-between;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--red);
  color: var(--bone);
}
.ticket__stub-v {
  font-family: var(--serif);
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1;
}
.ticket__barcode {
  width: 70%; height: 3.2rem;
  background: repeating-linear-gradient(90deg, var(--bone) 0 2px, transparent 2px 5px, var(--bone) 5px 6px, transparent 6px 10px);
}
@media (max-width: 640px) {
  .ticket { flex-direction: column; }
  .ticket__stub {
    width: 100%; border-left: none; border-top: 2px dashed var(--ink);
    flex-direction: row; padding: 1.2rem;
  }
  .ticket__barcode { width: 6rem; height: 2.4rem; }
}

/* ============ FINALE ============ */
.finale {
  padding: clamp(8rem, 20vh, 16rem) var(--gutter);
  text-align: center;
  position: relative;
}
.finale__kicker { color: var(--bone-dim); margin-bottom: 2rem; }
.finale__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 8.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin-bottom: clamp(2.5rem, 6vh, 4.5rem);
}
.finale__line { display: block; overflow: hidden; }
.finale__line > span { display: inline-block; transform: translateY(110%); }
.finale__line--accent { color: var(--red-bright); }
.finale__line--accent em { text-transform: none; }
.finale__sub {
  color: var(--bone-dim);
  font-size: 1.1rem;
  margin: -1.5rem 0 clamp(2.5rem, 6vh, 4.5rem);
}

/* ============ FOOTER ============ */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem var(--gutter);
}
.footer__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; flex-wrap: wrap;
}
.footer__row--bottom {
  margin-top: 2.5rem;
  color: var(--bone-dim);
  font-size: 0.62rem;
}
.footer__contact {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.8rem;
  color: var(--bone-dim);
}
.footer__contact a {
  transition: color 0.25s;
}
.footer__contact a:hover { color: var(--red-bright); }
.footer__sep {
  color: rgba(236, 228, 210, 0.28);
  user-select: none;
}
.footer__credit {
  margin: 1.75rem 0 0;
  text-align: center;
  color: rgba(236, 228, 210, 0.35);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
}
.footer__credit a {
  color: rgba(236, 228, 210, 0.5);
  transition: color 0.25s;
}
.footer__credit a:hover { color: var(--red-bright); }

/* ============ STICKY MOBILE CTA ============ */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 0.9rem var(--gutter) calc(0.9rem + env(safe-area-inset-bottom, 0px));
  background: rgba(7, 11, 18, 0.96);
  border-top: 1px solid var(--line);
  color: var(--bone);
  letter-spacing: 0.14em;
  transform: translateY(110%);
  transition: transform 0.35s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta:hover { color: var(--red-bright); }
@media (max-width: 760px) {
  .sticky-cta { display: flex; }
  body.has-sticky-cta { padding-bottom: calc(3.5rem + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 640px) {
  .footer__row--bottom { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .grain, .blink { animation: none; }
  .marquee__track { transform: none !important; }
  .hero__line > span, .finale__line > span { transform: none; }
  .hero__kicker, .hero__sub, .hero__corner, .nav { opacity: 1; }
  .manifesto__text .w { opacity: 1; }
}
