@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/onest-cyrillic-ext-400-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/onest-cyrillic-400-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/onest-latin-ext-400-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/onest-latin-400-normal.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:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/onest-cyrillic-ext-500-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/onest-cyrillic-500-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/onest-latin-ext-500-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/onest-latin-500-normal.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:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/onest-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/onest-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/onest-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/onest-latin-600-normal.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:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/onest-cyrillic-ext-700-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/onest-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/onest-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Onest';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/onest-latin-700-normal.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:'Playfair';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfair-cyrillic-ext-600-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Playfair';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfair-cyrillic-600-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfair-latin-ext-600-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/playfair-latin-600-normal.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:'Playfair';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-cyrillic-ext-700-normal.woff2) format('woff2');unicode-range:U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F}
@font-face{font-family:'Playfair';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-cyrillic-700-normal.woff2) format('woff2');unicode-range:U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116}
@font-face{font-family:'Playfair';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-latin-ext-700-normal.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Playfair';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/playfair-latin-700-normal.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}
/* Landing jazam.kz in the Apple style — docs/design/landing-apple.html, docs/design.md §15 (tokens, type scale,
   motion rules, accessibility). Motion: only transform / opacity; one property family per element (transform
   OR translate/scale/rotate, never both — a CSS minifier may merge them); reduced motion → short cross-fades. */

/* ===================== tokens (§15.2) ===================== */
:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: #1d1d1f;
  --text-2: #636366;
  --hairline: rgba(0, 0, 0, 0.08);
  --gold: #c9a24a;
  --gold-2: #e9d49a;
  --gold-text: #7a5b12;
  --on-gold: #1d1d1f;
  --scene: #0b1630;
  --scene-2: #14254a;
  --scene-text: #f5f5f7;
  --scene-text-2: #a1a1a6;
  --material: rgba(245, 245, 247, 0.72);
  --material-border: rgba(0, 0, 0, 0.06);
  --pop-bg: rgba(255, 255, 255, 0.86);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 48px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 30px 80px rgba(11, 22, 48, 0.28);
  --edge: rgba(0, 0, 0, 0.07);
  --test: #f2d98a;
  --warn: #955a06;
  --warn-soft: #fbf0da;
  --focus: var(--gold);
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 28px;
  --r-xl: 36px;
  --r-pill: 980px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --t-press: 120ms;
  --t-ui: 200ms;
  --t-reveal: 800ms;
  --stagger: 70ms;
  --font: 'Onest', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-brand: 'Playfair', Georgia, serif;
  color-scheme: light;
}
/* dark theme — graphite; the scenes stay navy */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #101114;
    --bg-alt: #16171b;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --text-2: #a1a1a6;
    --hairline: rgba(255, 255, 255, 0.1);
    --gold-text: #e9d49a;
    --material: rgba(16, 17, 20, 0.72);
    --material-border: rgba(255, 255, 255, 0.08);
    --pop-bg: rgba(28, 28, 30, 0.86);
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5);
    --edge: rgba(0, 0, 0, 0.45);
    --warn: #e6a640;
    --warn-soft: #33260d;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --bg: #101114;
  --bg-alt: #16171b;
  --surface: #1c1c1e;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --hairline: rgba(255, 255, 255, 0.1);
  --gold-text: #e9d49a;
  --material: rgba(16, 17, 20, 0.72);
  --material-border: rgba(255, 255, 255, 0.08);
  --pop-bg: rgba(28, 28, 30, 0.86);
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.35), 0 18px 48px rgba(0, 0, 0, 0.5);
  --edge: rgba(0, 0, 0, 0.45);
  --warn: #e6a640;
  --warn-soft: #33260d;
  color-scheme: dark;
}

/* ===================== base ===================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  /* phones: no system tap flash, no font inflation in landscape; no sideways bounce / «back» swipe from the page */
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overscroll-behavior-x: none;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.47 var(--font);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
  border: none;
  background: none;
  cursor: pointer;
}
ol,
ul {
  list-style: none;
}
/* pressable controls behave like app buttons: no text selection or callout on long press, no double-tap zoom */
button,
summary,
.btn,
.pill,
.poster,
.menu-btn,
.area-btn,
.area-unsure,
.map {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  touch-action: manipulation;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
svg.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
svg.i.s {
  width: 16px;
  height: 16px;
}
svg.fill {
  fill: currentColor;
  stroke: none;
}
.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}
.wide {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}
.stub {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 5px;
  border: 1px dashed currentColor;
  font: 700 10px/1 var(--font);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.8;
  vertical-align: 3px;
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 100;
  background: var(--surface);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
}
.skip:focus {
  top: 8px;
}
.d-only {
  display: none;
}
@media (min-width: 1069px) {
  .d-only {
    display: inline;
  }
  .m-only {
    display: none;
  }
}

/* ===================== type scale: tracking and leading by size (§15.2) ===================== */
.t-hero {
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.t-display {
  font-weight: 700;
  font-size: 36px;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.t-title {
  font-weight: 700;
  font-size: 28px;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.t-headline {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.012em;
}
.t-lead {
  font-weight: 500;
  font-size: 19px;
  line-height: 1.42;
  letter-spacing: -0.005em;
  color: var(--text-2);
}
.t-eyebrow {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--gold-text);
}
.t-caption {
  font-size: 13px;
  line-height: 1.4;
  letter-spacing: 0.005em;
  color: var(--text-2);
}
.t-micro {
  font-size: 12px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: var(--text-2);
}
.g {
  color: var(--gold-text);
}

/* ===================== mode bar ===================== */
.modebar {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 8px;
  justify-content: center;
  padding: 6px 16px;
  background: var(--test);
  color: #1d1d1f;
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(0, 0, 0, 0.06) 0 8px,
    transparent 8px 16px
  );
  font: 700 12px/1.35 var(--font);
  letter-spacing: 0.01em;
  text-align: center;
}
.modebar span {
  font-weight: 500;
}

/* ===================== header: material + scroll edge ===================== */
.head {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
}
.head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 14px;
  pointer-events: none;
  background: linear-gradient(to bottom, var(--edge), transparent);
  opacity: 0;
  transition: opacity var(--t-ui) var(--ease);
}
.head.scrolled::after {
  opacity: 1;
}
.head-in {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  margin-right: auto;
}
.mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-2));
  display: grid;
  place-items: center;
  color: #0e1b36;
  font: 700 18px/1 var(--font-brand);
  padding-bottom: 2px;
  flex: none;
}
.brand b {
  font: 600 17px/1.1 var(--font-brand);
  letter-spacing: 0.005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.links {
  display: none;
  gap: 26px;
  font-size: 13px;
  letter-spacing: 0.005em;
  color: var(--text-2);
}
.links a {
  transition: color var(--t-ui) var(--ease);
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  /* a 44 px touch target that looks like a 32 px capsule: the transparent border is part of the button */
  height: 44px;
  padding: 0 14px;
  border: 6px solid transparent;
  background-clip: padding-box;
  border-radius: var(--r-pill);
  background-color: var(--gold);
  color: var(--on-gold);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.005em;
  white-space: nowrap;
  position: relative;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-ui) var(--ease);
}
.pill:active {
  transform: scale(0.96);
}
.menu-btn {
  width: 44px;
  height: 44px;
  margin-right: -6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  position: relative;
}
.drawer {
  background: var(--surface);
  border-top: 1px solid var(--hairline);
  box-shadow: var(--shadow-2);
}
.drawer-in {
  display: grid;
  padding-top: 8px;
  padding-bottom: 16px;
}
.drawer-in a:not(.btn) {
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 600;
  border-bottom: 1px solid var(--hairline);
}
.drawer-in .btn {
  margin-top: 14px;
}

/* ===================== buttons ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  font: 600 17px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color var(--t-ui) var(--ease);
}
.btn:active {
  transform: scale(0.97);
}
.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}
.more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 500 17px/1.3 var(--font);
  color: var(--gold-text);
  position: relative;
}
.more::after {
  content: '›';
  font-size: 1.25em;
  line-height: 0.8;
  transition: transform var(--t-ui) var(--ease-out);
}
.scene .more {
  color: var(--gold-2);
}
/* invisible 44 px touch zone for links inside running text (mobile-native) */
.yt-notice a,
.terms a,
.kv a,
.area-note a {
  position: relative;
}
.yt-notice a::before,
.terms a::before,
.kv a::before,
.more::before {
  content: '';
  position: absolute;
  inset: calc((100% - 44px) / 2) -4px;
}

/* ===================== 1. hero + video scene ===================== */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 0 0;
  overflow: hidden;
}
.hero .glow {
  position: absolute;
  left: 50%;
  top: -180px;
  width: 900px;
  height: 600px;
  margin-left: -450px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201, 162, 74, 0.2), transparent);
  pointer-events: none;
  transform: translateY(var(--glow-y, 0px));
  will-change: transform;
}
.hero h1 {
  position: relative;
  margin: 10px auto 0;
  max-width: 20ch;
}
.hero h1 .g {
  display: block;
}
.hero .t-lead {
  max-width: 32ch;
  margin: 16px auto 0;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  align-items: center;
  margin-top: 26px;
}
.hero-cta .more {
  min-height: 44px;
}
.hero-note {
  margin-top: 14px;
}
.stage {
  margin-top: 36px;
  padding: 0 12px 44px;
}
.film {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  border-radius: var(--r-l);
  overflow: hidden;
  background: var(--scene);
  box-shadow: var(--shadow-3);
  transform-origin: 50% 0;
  transform: scale(var(--film-s, 1));
  will-change: transform;
  aspect-ratio: 16 / 9;
  color: #fff;
  text-align: left;
}
.js .film {
  --film-s: 0.94;
}
.film > .poster,
.film.soon {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
  color: #fff;
  text-align: left;
}
.film .art,
.poster-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film .art {
  background:
    radial-gradient(90% 80% at 75% 20%, rgba(233, 212, 154, 0.32), transparent 60%),
    radial-gradient(70% 70% at 10% 90%, rgba(47, 93, 186, 0.45), transparent 60%),
    linear-gradient(160deg, #14254a, #0b1630);
}
.film .ill {
  position: absolute;
  right: 19%;
  top: 14%;
  width: 19%;
  color: rgba(233, 212, 154, 0.55);
}
.film .cap {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}
.film .cap b {
  display: block;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 18ch;
}
.film .cap span span {
  display: block;
  font-size: 12px;
  color: var(--scene-text-2);
  margin-top: 4px;
}
.play {
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition:
    transform var(--t-ui) var(--ease-out),
    background-color var(--t-ui) var(--ease);
}
.play svg {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}
.poster:active .play {
  transform: scale(0.96);
}
.film .dur {
  position: absolute;
  right: 14px;
  top: 12px;
  font: 600 12px/1 var(--font);
  background: rgba(0, 0, 0, 0.4);
  padding: 5px 8px;
  border-radius: 8px;
}
.player {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.thumbs {
  max-width: 1120px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-m);
  overflow: hidden;
  background: linear-gradient(160deg, #14254a, #0b1630);
  color: #fff;
  box-shadow: var(--shadow-1);
}
.thumb > .poster,
.thumb.soon {
  position: absolute;
  inset: 0;
  text-align: left;
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: inherit;
  transition: transform var(--t-ui) var(--ease-out);
}
.thumb > .poster:active {
  transform: scale(0.98);
}
.thumb b {
  position: relative;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.thumb .t-sub,
.thumb.soon span {
  position: relative;
  font-size: 12px;
  color: var(--scene-text-2);
  margin-top: 4px;
}
.thumb .play {
  width: 36px;
  height: 36px;
  position: absolute;
  left: 14px;
  top: 14px;
}
.thumb .play svg {
  width: 14px;
  height: 14px;
}
.thumb.soon {
  background: var(--surface);
  color: var(--text);
  border: 1px dashed var(--hairline);
  box-shadow: none;
  position: relative;
}
.thumb.soon span {
  color: var(--text-2);
}
.vfail {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  padding: 16px;
  background: var(--scene);
  color: var(--scene-text);
  font-size: 14px;
}
.vfail .watch {
  justify-self: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gold);
  font-weight: 600;
}
.yt-notice {
  max-width: 760px;
  margin: 16px auto 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-2);
}
.yt-notice a {
  color: var(--gold-text);
  font-weight: 600;
}
.yt-notice label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  cursor: pointer;
  color: var(--text);
}
.yt-notice input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}
.yt-short,
.yt-notice.collapsed .yt-full,
.yt-notice.collapsed label {
  display: none;
}
.yt-notice.collapsed .yt-short {
  display: block;
}

/* ===================== sections + scroll reveal ===================== */
.sec {
  padding: 80px 0;
}
.sec.alt {
  background: var(--bg-alt);
}
.sec-h {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 40px;
}
.sec-h .t-display {
  margin-top: 6px;
}
.sec-h .t-lead {
  margin-top: 12px;
}
.rv {
  transition:
    opacity var(--t-reveal) var(--ease-out),
    transform var(--t-reveal) var(--ease-out);
}
.rv.d1 {
  transition-delay: calc(1 * var(--stagger));
}
.rv.d2 {
  transition-delay: calc(2 * var(--stagger));
}
.rv.d3 {
  transition-delay: calc(3 * var(--stagger));
}
.rv.d4 {
  transition-delay: calc(4 * var(--stagger));
}
.js .rv:not(.in) {
  opacity: 0;
  transform: translateY(28px);
}

/* ===================== 2. consultations ===================== */
.formats {
  display: grid;
  gap: 14px;
}
.fmt {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  display: grid;
  gap: 8px;
  align-content: start;
}
.sec.alt .fmt {
  background: var(--bg);
}
.fmt .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--gold-text);
  margin-bottom: 6px;
}
.fmt .price {
  font-weight: 700;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 6px 0 4px;
}
.fmt p {
  font-size: 15px;
  line-height: 1.45;
  color: var(--text-2);
}
.fmt p b {
  color: var(--text);
  font-weight: 600;
}
.terms {
  margin: 22px auto 0;
  max-width: 760px;
  text-align: center;
}
.terms p {
  font-size: 15px;
  color: var(--text-2);
}
.terms .more {
  font-size: 15px;
}
.disclaimer {
  margin: 14px auto 0;
  max-width: 760px;
  text-align: center;
  font-size: 13px;
  color: var(--text-2);
}

/* ===================== 3. practice areas: the explanation comes out of its card ===================== */
.areas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.area {
  position: relative;
  display: flex;
  flex-direction: column;
}
.area-btn {
  width: 100%;
  flex: 1;
  min-height: 118px;
  background: var(--surface);
  border-radius: var(--r-m);
  box-shadow: var(--shadow-1);
  padding: 18px 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition:
    transform var(--t-ui) var(--ease-out),
    box-shadow var(--t-ui) var(--ease-out);
}
.area-btn:active {
  transform: scale(0.98);
}
.area .ic,
.area-unsure .ic {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--bg);
  display: grid;
  place-items: center;
  color: var(--gold-text);
  flex: none;
}
.area-btn b {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.area .hint {
  font-size: 12px;
  color: var(--text-2);
  display: flex;
  gap: 4px;
  align-items: center;
}
.pop {
  margin-top: 8px;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--pop-bg);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--material-border);
  box-shadow: var(--shadow-2);
  text-align: left;
}
.pop p,
.pop li {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.pop ul {
  margin-top: 6px;
  display: grid;
  gap: 4px;
}
.pop li::before {
  content: '· ';
  color: var(--gold-text);
}
.pop .note {
  margin-top: 6px;
  color: var(--text-2);
}
.pop .more {
  margin-top: 6px;
  min-height: 44px;
  font-weight: 600;
  font-size: 14px;
}
/* with JS: a popover under the card (≥ 735 px) or an in-grid expansion (phones) */
.js .area .pop {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  margin-top: 0;
  opacity: 0;
  transform: translateY(-6px) scale(0.96);
  transform-origin: 50% 0;
  pointer-events: none;
  /* hidden = not focusable (Tab never lands in an invisible popover); hides after the fade-out */
  visibility: hidden;
  transition:
    opacity var(--t-ui) var(--ease-out),
    transform 280ms var(--ease-out),
    visibility 0s linear 280ms;
}
/* hover bridge: the pointer can cross the 8 px gap to the link */
.js .area .pop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
/* the card with an open explanation sits above its neighbours (the next row comes later in the DOM) */
.js .area.open,
.js .area:focus-within {
  z-index: 30;
}
.js .area.open .pop {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
  transition-delay: 0s;
}
.area-unsure {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 64px;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-m);
}
.area-unsure b {
  display: block;
  font-weight: 600;
}
.area-unsure .more {
  margin-left: auto;
  font-size: 15px;
  white-space: nowrap;
}
.areas-note {
  text-align: center;
  margin: 22px auto 0;
  max-width: 720px;
}
@media (max-width: 734px) {
  .areas {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .area-btn {
    flex-direction: row;
    align-items: center;
    min-height: 64px;
    padding: 12px 14px;
  }
  .area-btn b {
    flex: 1;
  }
  .js .area .pop {
    position: static;
    margin-top: 8px;
    display: none;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition: none;
  }
  .js .area.open .pop {
    display: block;
    animation: popIn 280ms var(--ease-out);
  }
  .area-unsure .more {
    display: none;
  }
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(-6px) scale(0.98);
  }
}

/* ===================== 4. how it works — dark sticky scene ===================== */
.scene {
  background: var(--scene);
  color: var(--scene-text);
}
.scene .t-eyebrow {
  color: var(--gold-2);
}
.scene .t-lead,
.scene .t-caption {
  color: var(--scene-text-2);
}
.story {
  display: grid;
  gap: 40px;
}
.phone-col {
  display: none;
}
.device {
  width: 300px;
  border-radius: 44px;
  padding: 10px;
  background: #05080f;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    var(--shadow-3);
}
.device .screen {
  border-radius: 34px;
  background: #f5f5f7;
  color: #1d1d1f;
  padding: 46px 14px 18px;
  min-height: 560px;
  position: relative;
  overflow: hidden;
}
.device .island {
  position: absolute;
  left: 50%;
  top: 12px;
  width: 92px;
  height: 26px;
  margin-left: -46px;
  border-radius: 14px;
  background: #05080f;
}
.device .appbar {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 12px;
}
.device .appbar .mark {
  width: 22px;
  height: 22px;
  font-size: 14px;
  border-radius: 6px;
}
.case {
  background: #fff;
  color: #1d1d1f;
  border-radius: 18px;
  padding: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.05),
    0 6px 20px rgba(0, 0, 0, 0.06);
}
.case .cid {
  font-size: 11px;
  color: #636366;
  font-weight: 600;
}
.case h4 {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 2px 0 10px;
  line-height: 1.25;
}
.status {
  position: relative;
  height: 24px;
}
.status span {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  filter: blur(3px);
  transform: translateY(4px);
  transition:
    opacity 300ms var(--ease-out),
    filter 300ms var(--ease-out),
    transform 300ms var(--ease-out);
}
.status span::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.status span.on,
[data-step='1'] .status .s-new,
[data-step='2'] .status .s-active,
[data-step='3'] .status .s-wait {
  opacity: 1;
  filter: none;
  transform: none;
}
.s-new {
  background: #e4ecfa;
  color: #2f5dba;
}
.s-active {
  background: #f6efd9;
  color: #7a5b12;
}
.s-wait {
  background: #fbf0da;
  color: #955a06;
}
.bars {
  display: flex;
  gap: 4px;
  margin: 12px 0 6px;
}
.bars i {
  flex: 1;
  height: 5px;
  border-radius: 5px;
  background: #e7e2d6;
  overflow: hidden;
  position: relative;
}
.bars i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #c9a24a, #e9d49a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 600ms var(--ease-out);
}
[data-step='1'] .bars i:nth-child(1)::after,
[data-step='2'] .bars i:nth-child(-n + 2)::after,
[data-step='3'] .bars i:nth-child(-n + 2)::after {
  transform: scaleX(1);
}
.stg {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: #636366;
  font-weight: 600;
}
.msgs {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}
.msg {
  font-size: 12.5px;
  line-height: 1.4;
  padding: 9px 11px;
  border-radius: 14px;
  max-width: 88%;
  opacity: 0;
  transform: translateY(8px) scale(0.98);
  transition:
    opacity 400ms var(--ease-out),
    transform 400ms var(--ease-out);
}
.msg.them {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.msg.me {
  background: #0e1b36;
  color: #fff;
  justify-self: end;
}
.msg.sys {
  background: #ecedf1;
  color: #636366;
  justify-self: center;
  text-align: center;
  font-size: 11.5px;
}
[data-step='1'] .m1,
[data-step='2'] .m1,
[data-step='2'] .m2,
[data-step='3'] .m1,
[data-step='3'] .m2,
[data-step='3'] .m3,
[data-step='3'] .m4 {
  opacity: 1;
  transform: none;
}
.next {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fbf0da;
  color: #955a06;
  font-size: 12.5px;
  font-weight: 700;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 400ms var(--ease-out) 200ms,
    transform 400ms var(--ease-out) 200ms;
}
.next p {
  color: #1d1d1f;
  font-weight: 500;
}
.next.on,
[data-step='3'] .next {
  opacity: 1;
  transform: none;
}
.steps {
  display: grid;
  gap: 28px;
}
.step {
  padding: 24px;
  border-radius: var(--r-l);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.step .n {
  font-weight: 700;
  font-size: 15px;
  color: var(--gold-2);
  letter-spacing: 0.01em;
}
.step h3 {
  margin: 8px 0;
}
.step p {
  color: var(--scene-text-2);
  font-size: 17px;
}
.step .mini {
  margin-top: 18px;
}
.step .mini .case {
  max-width: 340px;
}

/* ===================== 5. lawyers ===================== */
.lawyers {
  display: grid;
  gap: 14px;
}
.lawyer {
  background: var(--surface);
  border-radius: var(--r-l);
  padding: 24px;
  box-shadow: var(--shadow-1);
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.ava {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 600 24px/1 var(--font);
  letter-spacing: -0.01em;
  color: #0e1b36;
  background: linear-gradient(145deg, var(--gold-2), var(--gold));
  object-fit: cover;
}
.lawyer h3 {
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
}
.lawyer .st {
  font-size: 15px;
  margin-top: 4px;
  line-height: 1.4;
}
.lawyer .lic {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}
.tag {
  font-size: 12px;
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--bg);
  color: var(--text);
}
.lang {
  font-size: 13px;
  color: var(--text-2);
  margin-top: 10px;
}

/* ===================== 6. privacy — graphite scene ===================== */
.private {
  background: #1d1d1f;
  color: #f5f5f7;
}
.private .t-eyebrow {
  color: var(--gold-2);
}
.pv {
  display: grid;
  gap: 36px;
  margin-top: 16px;
}
.pv h3 {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pv p {
  color: #a1a1a6;
  margin-top: 10px;
  font-size: 17px;
  max-width: 36ch;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .private {
    background: #000;
  }
}
:root[data-theme='dark'] .private {
  background: #000;
}

/* ===================== 7. FAQ ===================== */
.faq {
  max-width: 820px;
  margin: 0 auto;
  border-top: 1px solid var(--hairline);
}
.faq details {
  border-bottom: 1px solid var(--hairline);
}
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  min-height: 44px;
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary i {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 300ms var(--ease-out);
}
.faq summary i::before {
  content: '+';
  font-style: normal;
  font-weight: 500;
  color: var(--gold-text);
  font-size: 18px;
  line-height: 1;
}
.faq details[open] summary i {
  transform: rotate(45deg);
}
.faq p {
  padding: 0 44px 22px 0;
  color: var(--text-2);
}

/* ===================== 8. requisites and contacts ===================== */
.about {
  display: grid;
  gap: 14px;
  align-items: start;
}
.card {
  background: var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-1);
  padding: 8px 22px;
}
.kv {
  display: grid;
  gap: 2px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 15px;
}
.kv:last-child {
  border-bottom: 0;
}
.kv > span {
  font-size: 13px;
  color: var(--text-2);
}
.kv b {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.kv a {
  color: var(--gold-text);
  font-weight: 600;
}
.kv small {
  display: block;
  font-size: 13px;
  color: var(--text-2);
  margin-top: 2px;
}
.map {
  display: block;
  border-radius: var(--r-l);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: var(--surface);
}
.map-img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
  position: relative;
  background:
    linear-gradient(90deg, transparent 46%, rgba(255, 255, 255, 0.95) 46% 49%, transparent 49%),
    linear-gradient(0deg, transparent 58%, rgba(255, 255, 255, 0.95) 58% 61%, transparent 61%),
    linear-gradient(28deg, transparent 30%, rgba(255, 255, 255, 0.7) 30% 32%, transparent 32%),
    linear-gradient(160deg, #e8e6e0, #dde6da);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) span.map-img {
    filter: brightness(0.42) saturate(0.7);
  }
}
:root[data-theme='dark'] span.map-img {
  filter: brightness(0.42) saturate(0.7);
}
.map-img .pin {
  position: absolute;
  left: 48%;
  top: 42%;
  width: 38px;
  height: 38px;
  margin: -38px 0 0 -19px;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  background: #0e1b36;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.3);
}
.map-img .pin::after {
  content: '';
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
}
.map-cap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-size: 15px;
  min-height: 52px;
}
.map-cap b {
  font-weight: 500;
}
.map-cap span {
  color: var(--gold-text);
  font-weight: 600;
  white-space: nowrap;
}

/* ===================== 9. final + footer ===================== */
.final {
  text-align: center;
  padding: 96px 0;
}
.final .t-lead {
  margin: 14px auto 0;
  max-width: 34ch;
}
.final .hero-cta {
  margin-top: 28px;
}
.foot {
  background: var(--bg);
  border-top: 1px solid var(--hairline);
  padding: 28px 0 calc(40px + env(safe-area-inset-bottom, 0px));
  font-size: 12px;
  line-height: 1.55;
  color: var(--text-2);
}
.foot .cols {
  display: grid;
  gap: 20px;
}
.foot .cols b {
  color: var(--text);
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}
.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
  margin-top: 18px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.foot nav a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.foot .legal {
  margin-top: 8px;
}

/* ===================== bottom capsule (phones, after the first screen) ===================== */
.dock {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--r-pill);
  background: var(--material);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--material-border);
  box-shadow: var(--shadow-2);
  /* arrives from below and leaves downwards; hidden = not focusable */
  transform: translateY(calc(100% + 24px + env(safe-area-inset-bottom, 0px)));
  visibility: hidden;
  transition:
    transform 400ms var(--ease-out),
    visibility 0s linear 400ms;
}
.dock[hidden] {
  display: none;
}
.dock.show {
  transform: none;
  visibility: visible;
  transition:
    transform 400ms var(--ease-out),
    visibility 0s linear 0s;
}
.dock span {
  font-size: 13px;
  color: var(--text-2);
  flex: 1;
  min-width: 0;
}
.dock .btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 15px;
}
@media (max-width: 1068px) {
  /* room for the capsule so it never covers the footer */
  body:has(.dock) {
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
}

/* ===================== legal pages ===================== */
.doc {
  max-width: 820px;
  padding-top: 24px;
  padding-bottom: 48px;
}
.doc h1 {
  font-weight: 700;
  font-size: 32px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 10px 0 8px;
  overflow-wrap: anywhere;
}
.doc h2 {
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.012em;
  margin: 26px 0 8px;
}
.doc h3,
.doc h4 {
  font-size: 17px;
  font-weight: 600;
  margin: 18px 0 6px;
}
.doc p,
.doc li {
  font-size: 16px;
  margin: 6px 0;
  overflow-wrap: anywhere;
}
.doc ul {
  padding-left: 20px;
  list-style: disc;
}
.doc ol {
  padding-left: 20px;
  list-style: decimal;
}
.doc a {
  color: var(--gold-text);
  font-weight: 600;
}
.doc blockquote {
  margin: 12px 0;
  padding: 10px 14px;
  border-left: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 12px 12px 0;
}
.doc-back a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 600;
  font-size: 15px;
}
.doc-meta {
  color: var(--text-2);
  font-size: 13px;
}
.doc-demo,
.doc-pending {
  margin: 14px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--warn-soft);
  color: var(--warn);
  font-weight: 600;
  font-size: 14px;
}
.doc-pending p {
  color: var(--text);
  font-weight: 500;
}
.doc-section {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 80px;
}
.doc-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--text-2);
}
.doc-foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.doc-foot a {
  color: var(--text);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.stub-page {
  max-width: 640px;
  margin: 15vh auto;
  padding: 0 16px;
  display: grid;
  gap: 14px;
  text-align: center;
}
.stub-page h1 {
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
}

/* ===================== language switch (ru ⇄ kk, a plain link) ===================== */
.lang-switch {
  /* a 44 px touch target around a visible 32 px capsule (like .pill) */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  flex: none;
}
.lang-switch span {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 11px;
  border: 1.5px solid var(--text-2);
  border-radius: var(--r-pill);
  color: var(--text);
  font: 600 13px/1 var(--font);
  letter-spacing: 0.01em;
}

/* ===================== area pages and 404 ===================== */
.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0 6px;
  list-style: none;
  padding: 0;
  font-size: 14px;
  color: var(--text-2);
}
.doc .crumbs li {
  font-size: 14px;
  margin: 0;
}
.crumbs li + li::before {
  content: '›';
  margin-right: 6px;
}
.doc .crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--gold-text);
}
.crumbs [aria-current] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.area-head {
  padding: 8px 0 8px;
}
.area-head .ic {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  color: var(--gold-text);
}
.doc .area-head h1 {
  margin-top: 16px;
}
.doc .area-lead {
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
  margin-top: 10px;
}
.doc .area-note,
.doc .area-hint {
  color: var(--text-2);
  font-size: 14px;
}
.area-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-top: 22px;
}
.doc .area-cta a.btn {
  color: var(--on-gold);
  /* long labels («Подать заявку по этому направлению») wrap instead of widening the page */
  white-space: normal;
  text-align: center;
  max-width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;
  line-height: 1.2;
}
.doc .area-cta .more {
  min-height: 44px;
  font-weight: 500;
}
.doc .area-micro {
  color: var(--text-2);
  font-size: 13px;
  margin-top: 10px;
}
.area-steps li {
  margin: 8px 0;
}
.area-steps b {
  font-weight: 600;
}
.doc .area-disclaimer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--text-2);
}
.area-cta-end {
  margin-top: 16px;
}
.area-other {
  margin-top: 40px;
  padding-top: 8px;
  border-top: 1px solid var(--hairline);
}
.area-other ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0 24px;
}
.doc .area-other li {
  margin: 0;
}
.doc .area-other a {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-weight: 500;
  color: var(--text);
}
.area-page .lawyers {
  margin-top: 12px;
}
.pop .area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}
.about.no-map {
  grid-template-columns: 1fr;
  max-width: 760px;
}
.nf {
  text-align: center;
  padding: 10vh 0 6vh;
}
.nf .area-cta {
  justify-content: center;
}
.nf-code {
  font: 700 88px/1 var(--font-brand);
  color: var(--gold);
  letter-spacing: -0.02em;
}
.doc .nf p {
  color: var(--text-2);
  max-width: 44ch;
  margin: 10px auto 0;
}
@media (min-width: 735px) {
  .area-other ul {
    grid-template-columns: 1fr 1fr;
  }
  .doc .area-head h1 {
    font-size: 44px;
  }
}

/* ===================== hover: only for a mouse ===================== */
@media (hover: hover) and (pointer: fine) {
  .links a:hover {
    color: var(--text);
  }
  .pill:hover,
  .btn-gold:hover {
    background-color: #d3ae58;
  }
  .more:hover::after {
    transform: translateX(3px);
  }
  .poster:hover .play {
    transform: scale(1.06);
    background-color: rgba(201, 162, 74, 0.85);
  }
  .area-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-2);
  }
  .js .area:hover {
    z-index: 30;
  }
  /* after Esc («dismissed») the hover/focus popover stays closed until focus leaves or the pointer returns */
  .js .area:not(.dismissed):hover .pop,
  .js .area:not(.dismissed):focus-within .pop {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
  @media (prefers-reduced-motion: reduce) {
    .area-btn:hover,
    .poster:hover .play {
      transform: none;
    }
  }
  .drawer-in a:not(.btn):hover,
  .foot nav a:hover,
  .doc-foot a:hover {
    color: var(--gold-text);
  }
}
@media (hover: none), (pointer: coarse) {
  /* keyboard users on touch devices still get the popover from focus */
  .js .area:not(.dismissed):focus-within .area-btn:focus-visible + .pop {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    transition-delay: 0s;
  }
}

/* ===================== layout: ≥ 735 px and ≥ 1069 px ===================== */
@media (min-width: 735px) {
  .t-hero {
    font-size: 64px;
    line-height: 1.04;
    letter-spacing: -0.032em;
  }
  .t-display {
    font-size: 48px;
    line-height: 1.06;
    letter-spacing: -0.028em;
  }
  .t-title {
    font-size: 32px;
  }
  .t-lead {
    font-size: 21px;
  }
  .formats {
    grid-template-columns: repeat(3, 1fr);
  }
  .areas {
    grid-template-columns: repeat(3, 1fr);
  }
  .lawyers {
    grid-template-columns: 1fr 1fr;
  }
  .pv {
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
  }
  .about {
    grid-template-columns: 1.3fr 1fr;
  }
  .foot .cols {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .thumbs {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .film .cap {
    left: 28px;
    right: 28px;
    bottom: 24px;
  }
  .film .cap b {
    font-size: 24px;
  }
  .play {
    width: 60px;
    height: 60px;
  }
}
@media (min-width: 1069px) {
  .links {
    display: flex;
  }
  .menu-btn,
  .drawer,
  .dock {
    display: none;
  }
  .wrap,
  .wide {
    padding: 0 22px;
  }
  .t-hero {
    font-size: 96px;
    line-height: 1.02;
    letter-spacing: -0.035em;
  }
  .t-display {
    font-size: 64px;
    line-height: 1.05;
    letter-spacing: -0.03em;
  }
  .t-title {
    font-size: 40px;
    line-height: 1.1;
  }
  .t-headline {
    font-size: 24px;
  }
  .hero {
    padding: 72px 0 0;
  }
  .stage {
    margin-top: 52px;
    padding: 0 22px 64px;
  }
  .film .cap {
    left: 40px;
    right: 40px;
    bottom: 36px;
  }
  .film .cap b {
    font-size: 32px;
  }
  .film .cap span span {
    font-size: 13px;
  }
  .play {
    width: 76px;
    height: 76px;
  }
  .play svg {
    width: 28px;
    height: 28px;
  }
  .film .dur {
    right: 18px;
    top: 16px;
  }
  .sec {
    padding: 120px 0;
  }
  .areas {
    grid-template-columns: repeat(5, 1fr);
  }
  .story {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
  }
  .phone-col {
    display: block;
    position: sticky;
    top: 96px;
    justify-self: center;
  }
  .steps {
    gap: 0;
  }
  .step {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: 0;
    padding: 0 0 0 8px;
    opacity: 0.35;
    transition: opacity 500ms var(--ease-out);
  }
  .step.cur {
    opacity: 1;
  }
  .step .mini {
    display: none;
  }
  .step p {
    font-size: 21px;
    max-width: 28ch;
  }
  .final {
    padding: 140px 0;
  }
  .doc h1 {
    font-size: 40px;
  }
}
/* short landscape phones: the scene keeps the headline in view */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding-top: 24px;
  }
  .hero .t-hero {
    font-size: 40px;
  }
  .hero .t-lead {
    font-size: 17px;
    max-width: 48ch;
  }
  .hero-cta {
    margin-top: 16px;
  }
  .stage {
    margin-top: 20px;
  }
  .film {
    max-width: 70vh;
    max-width: calc(16 / 9 * 70vh);
  }
}

/* ===================== accessibility: three system settings (§15.5) ===================== */
/* reduced motion — not «nothing» but short cross-fades */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-delay: 0ms !important;
  }
  .js .rv:not(.in) {
    transform: none;
  }
  .rv {
    transition: opacity 200ms ease !important;
  }
  .film,
  .js .film,
  .hero .glow {
    transform: none;
  }
  .js .area .pop {
    transform: none !important;
    transition:
      opacity 150ms ease,
      visibility 0s !important;
  }
  .status span,
  .msg,
  .next {
    transform: none !important;
    filter: none !important;
    transition: opacity 200ms ease !important;
  }
  .bars i::after {
    transition: none !important;
  }
  .step {
    transition: opacity 200ms ease !important;
  }
  .btn:active,
  .pill:active,
  .thumb > .poster:active,
  .poster:active .play,
  .area-btn:active {
    transform: none !important;
  }
  .more::after,
  .faq summary i {
    transition: none !important;
  }
  .dock,
  .dock.show {
    transform: none;
    opacity: 0;
    transition:
      opacity 200ms ease,
      visibility 0s linear 200ms !important;
  }
  .dock.show {
    opacity: 1;
    transition:
      opacity 200ms ease,
      visibility 0s linear 0s !important;
  }
}
/* reduced transparency — solid materials */
@media (prefers-reduced-transparency: reduce) {
  .head,
  .dock,
  .pop,
  .play {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .head,
  .dock {
    background: var(--bg);
  }
  .pop {
    background: var(--surface);
  }
  .play {
    background: rgba(11, 22, 48, 0.85);
  }
}
/* more contrast — solid materials with borders, darker secondary text, borders instead of shadows */
@media (prefers-contrast: more) {
  :root {
    --text-2: #3a3a3c;
    --hairline: rgba(0, 0, 0, 0.35);
    --material: var(--bg);
    --material-border: rgba(0, 0, 0, 0.35);
  }
  :root[data-theme='dark'] {
    --text-2: #d1d1d6;
    --hairline: rgba(255, 255, 255, 0.45);
    --material-border: rgba(255, 255, 255, 0.45);
  }
  .head,
  .dock,
  .pop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: var(--surface);
    border: 1px solid var(--hairline);
  }
  .head {
    border-width: 0 0 1px;
  }
  .fmt,
  .area-btn,
  .lawyer,
  .card,
  .map,
  .thumb {
    box-shadow: none;
    border: 1px solid var(--hairline);
  }
}
@media (prefers-contrast: more) and (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --text-2: #d1d1d6;
    --hairline: rgba(255, 255, 255, 0.45);
    --material-border: rgba(255, 255, 255, 0.45);
  }
}

/* «Как это работает» without the portal mock-up (CTA mode contact): plain step cards at every width */
.steps-plain {
  max-width: 760px;
}
@media (min-width: 735px) {
  .steps-plain {
    gap: 20px;
  }
  .steps-plain .step,
  .steps-plain .step.cur {
    min-height: 0;
    display: block;
    padding: 24px;
    opacity: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }
  .steps-plain .step p {
    max-width: none;
  }
}
