/* docking-simulator.com — «лоция и марина».
   Вода — тёмные секции (.sea), палуба — светлые (.deck), сигнальный жёлтый —
   только действие (кнопки, «бесплатно», трек лодки). Шрифты — ParaType:
   PT Serif (заголовки), PT Sans (текст, он же шрифт приложения), PT Mono
   (подписи-«приборы»). Цвета воды и дерева — из Palette приложения. */

@font-face { font-family: "PT Sans"; src: url(fonts/pt-sans-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/pt-sans-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Sans"; src: url(fonts/pt-sans-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url(fonts/pt-serif-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "PT Serif"; src: url(fonts/pt-serif-400i.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "PT Mono"; src: url(fonts/pt-mono-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --sea-950: #061826;
  --sea-900: #0a2536;
  --sea-800: #0d3352;
  --sea-700: #17476b;
  --sea-600: #266185;
  --crest: #99c9e0;
  --foam: #ebf7ff;
  --signal: #ffd52e;
  --signal-deep: #f2b705;
  --teak: #a87642;
  --teak-light: #ca9c62;
  --stream: #5ee0c8;
  --port: #eb4d38;

  /* палуба: светлая тема */
  --deck-bg: #f1ede3;
  --deck-bg-2: #e8e2d4;
  --card: #faf8f3;
  --ink: #10212d;
  --ink-2: #44525c;
  --rule: #d6cfbf;
  --accent-ink: #17476b;
  --shadow: 0 1px 0 #fff8 inset, 0 18px 40px -24px #0d335255;

  --serif: "PT Serif", Georgia, "Times New Roman", serif;
  --sans: "PT Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "PT Mono", ui-monospace, Menlo, monospace;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --overlap: clamp(70px, 12vw, 150px);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --deck-bg: #0e1d28;
    --deck-bg-2: #122634;
    --card: #142b3a;
    --ink: #e6eef3;
    --ink-2: #a9bcc8;
    --rule: #24404f;
    --accent-ink: #99c9e0;
    --shadow: 0 18px 40px -24px #000a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --deck-bg: #0e1d28;
  --deck-bg-2: #122634;
  --card: #142b3a;
  --ink: #e6eef3;
  --ink-2: #a9bcc8;
  --rule: #24404f;
  --accent-ink: #99c9e0;
  --shadow: 0 18px 40px -24px #000a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--deck-bg); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans); overflow-x: hidden;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { text-decoration-color: var(--signal-deep); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: #111; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.muted { color: var(--ink-2); }

/* ------------------------------------------------ кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 700 1rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-signal { background: var(--signal); color: #1b1500; box-shadow: 0 8px 22px -10px #ffd52e99; }
.btn-signal:hover { background: #ffe066; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.linkish { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }

/* ------------------------------------------------ шапка */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; color: var(--foam);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.site-header.is-solid, .site-header.is-doc {
  background: color-mix(in srgb, var(--sea-950) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #ffffff14;
}
.header-row { display: flex; align-items: center; gap: 20px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 400 .74rem/1.15 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.brand .logo-mark { width: 38px; height: 38px; flex: none; border-radius: 10px; box-shadow: 0 0 0 1px #ffffff26; }
.nav-anchors { display: none; gap: 26px; margin-left: auto; font-size: .98rem; }
.nav-anchors a { text-decoration: none; opacity: .86; }
.nav-anchors a:hover { opacity: 1; text-decoration: underline; }
.header-tools { display: flex; align-items: center; gap: 10px; margin-left: auto; }
@media (min-width: 900px) {
  .nav-anchors { display: flex; }
  .header-tools { margin-left: 18px; }
}

.langs { position: relative; }
.langs summary {
  list-style: none; display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid #ffffff40; cursor: pointer; font: 400 .8rem var(--mono);
}
.langs summary::-webkit-details-marker { display: none; }
.langs summary img { border-radius: 3px; width: 22px; height: auto; }
.langs ul {
  position: absolute; right: 0; top: calc(100% + 8px); list-style: none; min-width: 190px;
  background: var(--sea-900); border: 1px solid #ffffff1f; border-radius: 14px; padding: 6px;
  box-shadow: 0 24px 50px -20px #000c;
}
.langs li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; text-decoration: none; }
.langs li a:hover, .langs li a[aria-current] { background: #ffffff12; }
.langs li a[aria-current]::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); margin-left: auto; }
.langs li img { width: 24px; border-radius: 3px; }
@media (max-width: 420px) {
  .brand span { display: none; }
  .header-tools .btn { padding: 0 14px; }
}

/* ------------------------------------------------ hero */
.hero {
  position: relative; color: var(--foam); background: var(--sea-900);
  padding: calc(68px + clamp(40px, 8vw, 96px)) 0 0; isolation: isolate; z-index: 2;
}
.scene { position: absolute; left: 0; top: 0; width: 100%; height: min(100%, max(640px, 100svh)); z-index: -2; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, #061826cc 0%, #06182600 30%),
    linear-gradient(90deg, #061826f2 0%, #061826d0 38%, #0618264d 64%, #06182600 82%),
    linear-gradient(0deg, #061826 0%, #06182600 26%);
}
@media (max-width: 899px) {
  .hero::before { background: linear-gradient(180deg, #061826cc 0%, #061826b8 50%, #061826 100%); }
}
.hero-grid { position: relative; }
.hero-copy { max-width: 640px; }
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px;
  font: 400 .8rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow { color: var(--signal); }
.eyebrow::before, .kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; opacity: .8; }
.hero h1 {
  font: 700 clamp(2.25rem, 1.3rem + 3.9vw, 4.3rem)/1.03 var(--serif);
  letter-spacing: -.015em; margin-bottom: 22px;
}
.hero-lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: #cfe0ea; max-width: 34em; margin-bottom: 28px; }
.cta-note { font: 400 .8rem/1.4 var(--mono); color: #a6c2d2; margin: 14px 0 0; letter-spacing: .02em; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; font-size: .95rem; color: #dbe8ef; }
.trust li { display: inline-flex; align-items: center; gap: 8px; }
.trust li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%231b1500' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* бейджи магазинов */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 11px; flex: 0 1 auto; min-width: 176px; height: 58px; padding: 0 18px 0 14px;
  border-radius: 14px; background: #05090c; color: #fff; text-decoration: none;
  border: 1px solid #ffffff38; box-shadow: 0 14px 30px -18px #000;
  transition: transform .15s ease, border-color .2s, box-shadow .2s;
}
a.store-badge:hover { transform: translateY(-2px); border-color: var(--signal); box-shadow: 0 18px 34px -16px #000; }
.store-badge svg { width: 28px; height: 28px; flex: none; }
.badge-text { display: flex; flex-direction: column; line-height: 1.05; }
.badge-text small { font: 400 .72rem/1.2 var(--sans); opacity: .82; letter-spacing: .01em; }
.badge-text b { font: 700 1.24rem/1.1 var(--sans); letter-spacing: -.01em; }
.store-badge.is-soon { cursor: default; border-style: dashed; }
.store-badge.is-soon small { color: var(--signal); opacity: 1; font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .64rem; }

/* телефон с кадром */
.phone-wrap { display: flex; justify-content: flex-end; margin-top: clamp(40px, 7vw, 72px); margin-bottom: calc(-1 * var(--overlap)); position: relative; z-index: 2; }
.phone {
  width: min(780px, 100%); aspect-ratio: 1170 / 540; padding: clamp(8px, 1.2vw, 14px);
  border-radius: clamp(26px, 3.4vw, 44px); background: linear-gradient(145deg, #2a3138, #0b0e11 40%, #1a1f24);
  box-shadow: 0 0 0 1px #ffffff1a, 0 50px 90px -40px #000, 0 30px 60px -30px #0d3352;
  transform: rotate(-2.5deg); position: relative;
}
.phone::before { /* камера в «чёлке» landscape */
  content: ""; position: absolute; left: clamp(12px, 1.6vw, 20px); top: 50%; width: 6px; height: 22%;
  transform: translateY(-50%); border-radius: 6px; background: #000; z-index: 1;
}
.phone-screen { width: 100%; height: 100%; border-radius: clamp(18px, 2.5vw, 32px); overflow: hidden; background: var(--sea-800); }
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .phone-wrap { justify-content: center; }
  .phone { transform: none; }
}

/* сцена: швартовка кормой (Med mooring) */
.scene .sail-in {
  transform-box: view-box; transform-origin: 0 0;
  animation: sail-in 20s cubic-bezier(.45, .05, .55, .95) infinite;
}
.scene .walk { opacity: 0; animation: walk 20s linear infinite; }
.scene .track { opacity: 0; animation: track 20s linear infinite; }
.scene .track-back { opacity: 0; animation: track-back 20s linear infinite; }
.scene .lines path { fill: none; stroke: #ca9c62; stroke-width: 4; stroke-linecap: round; }
.scene .lines { opacity: 0; animation: lines 20s linear infinite; }
.scene .forces { animation: breathe 6s ease-in-out infinite; }
@keyframes sail-in {
  0%   { transform: translate(-160px, 660px) rotate(78deg); opacity: 0; }
  4%   { transform: translate(-60px, 640px) rotate(79deg); opacity: 1; }
  20%  { transform: translate(300px, 592px) rotate(84deg); }
  33%  { transform: translate(620px, 562px) rotate(90deg); }
  41%  { transform: translate(800px, 574px) rotate(112deg); }
  47%  { transform: translate(890px, 622px) rotate(150deg); }
  52%  { transform: translate(924px, 684px) rotate(180deg); }
  56%  { transform: translate(925px, 686px) rotate(180deg); }
  63%  { transform: translate(919px, 560px) rotate(187deg); }
  70%  { transform: translate(924px, 410px) rotate(182deg); }
  77%  { transform: translate(925px, 228px) rotate(180deg); }
  94%  { transform: translate(925px, 228px) rotate(180deg); opacity: 1; }
  100% { transform: translate(925px, 228px) rotate(180deg); opacity: 0; }
}
@keyframes walk { 0%, 57% { opacity: 0; } 60%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes track { 0% { opacity: 0; } 8%, 88% { opacity: .75; } 96%, 100% { opacity: 0; } }
@keyframes track-back { 0%, 55% { opacity: 0; } 62%, 88% { opacity: .75; } 96%, 100% { opacity: 0; } }
@keyframes lines { 0%, 78% { opacity: 0; } 82%, 92% { opacity: 1; } 98%, 100% { opacity: 0; } }
@keyframes breathe { 50% { opacity: .65; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scene .sail-in { animation: none; transform: translate(925px, 228px) rotate(180deg); }
  .scene .walk, .scene .track, .scene .forces { animation: none; }
  .scene .track-back, .scene .lines { animation: none; opacity: .8; }
}

/* ------------------------------------------------ секции */
section { position: relative; }
.deck { background: var(--deck-bg); color: var(--ink); }
.sea { background: var(--sea-900); color: var(--foam); }
.sea .lead { color: #bcd2de; }
.deck .kicker { color: var(--teak); }
.sea .kicker { color: var(--signal); }
section h2 { font: 700 clamp(1.85rem, 1.2rem + 2.4vw, 3.05rem)/1.08 var(--serif); letter-spacing: -.01em; margin-bottom: 18px; max-width: 22em; }
.lead { font-size: 1.14rem; color: var(--ink-2); max-width: 40em; margin-bottom: 0; }
.stats, .pain, .practice, .how, .audience, .pricing, .faq { padding: clamp(64px, 9vw, 120px) 0; }
.physics, .gallery, .final { padding: clamp(72px, 10vw, 128px) 0; }
.sea::before { /* сетка карты */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#99c9e00d 1px, transparent 1px), linear-gradient(90deg, #99c9e00d 1px, transparent 1px);
  background-size: 64px 64px; mask-image: linear-gradient(180deg, transparent, #000 20%, #000 80%, transparent);
}
.sea > .wrap, .sea > .shots { position: relative; }

/* цифры */
.stats { padding-top: calc(var(--overlap) + clamp(40px, 6vw, 72px)); border-bottom: 1px solid var(--rule); }
.stat-row { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
.stat-row li { border-top: 2px solid var(--ink); padding-top: 14px; }
.stat-row b { display: block; font: 700 clamp(2.6rem, 2rem + 2.4vw, 4rem)/1 var(--serif); color: var(--accent-ink); }
.stat-row span { display: block; margin-top: 8px; color: var(--ink-2); font-size: .98rem; max-width: 14em; }
@media (min-width: 760px) { .stat-row { grid-template-columns: repeat(4, 1fr); } }

/* боль */
.pain-grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .pain-grid { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } }
.pain-copy p { font-size: 1.12rem; }
.pain blockquote {
  margin: 30px 0 0; padding: 22px 0 0; border-top: 1px solid var(--rule);
  font: italic 400 clamp(1.4rem, 1.1rem + 1.2vw, 2rem)/1.25 var(--serif); color: var(--accent-ink);
}
.pain blockquote::before { content: "“"; display: block; font: 700 4rem/0.6 var(--serif); color: var(--signal-deep); margin-bottom: 6px; }

/* тренировки */
.practice { background: var(--deck-bg-2); }
.ex-grid { list-style: none; display: grid; gap: 14px; margin-top: 44px; counter-reset: ex; }
@media (min-width: 640px) { .ex-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .ex-grid { grid-template-columns: repeat(3, 1fr); } }
.ex {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 20px 20px 18px; box-shadow: var(--shadow); transition: transform .2s ease, border-color .2s;
}
.ex:hover { transform: translateY(-3px); border-color: var(--teak-light); }
.ex-no { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font: 400 .82rem var(--mono); color: var(--teak); }
.ex-no span { margin-right: auto; letter-spacing: .08em; }
.ex h3 { font: 700 1.14rem/1.25 var(--sans); margin-bottom: 6px; }
.ex p:last-child { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.5; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 400 .68rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.tag-free { background: var(--signal); color: #1b1500; }
.tag-lab { background: var(--sea-700); color: var(--foam); }

/* физика */
.phys-grid { list-style: none; display: grid; gap: 1px; margin-top: 48px; background: #ffffff14; border: 1px solid #ffffff14; border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .phys-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .phys-grid { grid-template-columns: repeat(4, 1fr); } }
.phys-grid li { background: var(--sea-900); padding: 26px 24px 24px; }
.phys-grid li:hover { background: #0e2c42; }
.ph-icon { width: 46px; height: 46px; margin-bottom: 18px; fill: none; stroke: var(--signal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.phys-grid h3 { font: 700 1.14rem/1.25 var(--sans); margin-bottom: 8px; }
.phys-grid p { margin: 0; color: #b6cbd7; font-size: .98rem; line-height: 1.55; }
.phys-grid li:last-child { background: linear-gradient(135deg, #17476b, #0d3352); }
@media (min-width: 640px) { .phys-grid li:last-child { grid-column: span 2; } }

/* как работает */
.steps { list-style: none; display: grid; gap: 34px; margin-top: 48px; counter-reset: s; }
@media (min-width: 860px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; }
  .steps li { position: relative; }
  .steps li:not(:last-child)::after {
    content: ""; position: absolute; top: 34px; left: 96px; right: -30px; height: 0;
    border-top: 3px dotted var(--teak-light);
  }
}
.step-no { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; margin-bottom: 20px;
  border: 2px solid var(--ink); font: 400 1.2rem var(--mono); background: var(--deck-bg); position: relative; z-index: 1; }
.steps h3 { font: 700 1.3rem/1.2 var(--serif); margin-bottom: 8px; }
.steps p { color: var(--ink-2); margin: 0; }

/* галерея */
.shots {
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-top: 44px;
  padding: 4px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 24px;
  scrollbar-width: thin; scrollbar-color: var(--sea-600) transparent;
}
.shots:focus-visible { outline-offset: -3px; }
.shot { margin: 0; flex: 0 0 min(720px, 86vw); scroll-snap-align: center; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 18px; box-shadow: 0 0 0 1px #ffffff1c, 0 30px 60px -30px #000; background: var(--sea-800); }
.shot figcaption { margin-top: 14px; font: 400 .88rem/1.45 var(--mono); color: #b6cbd7; max-width: 44em; }

/* кому */
.aud-grid { list-style: none; display: grid; gap: 16px; margin-top: 44px; }
@media (min-width: 860px) { .aud-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.aud-grid li { padding: 26px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); border-top: 4px solid var(--teak); }
.aud-grid h3 { font: 700 1.3rem/1.2 var(--serif); margin-bottom: 10px; }
.aud-grid p { margin: 0; color: var(--ink-2); }

/* цены */
.pricing { background: var(--deck-bg-2); }
.price-grid { display: grid; gap: 18px; margin-top: 44px; }
@media (min-width: 860px) { .price-grid { grid-template-columns: 1fr 1.25fr; gap: 24px; align-items: stretch; } }
.price-card { border-radius: 22px; padding: 30px 28px; background: var(--card); border: 1px solid var(--rule); box-shadow: var(--shadow); }
.price-card h3 { font: 400 .86rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--teak); margin-bottom: 10px; }
.price-big { font: 700 3.4rem/1 var(--serif); margin-bottom: 22px; }
.price-card.is-full { background: linear-gradient(160deg, var(--sea-700), var(--sea-900) 70%); color: var(--foam); border: 1px solid #ffd52e66; }
.price-card.is-full h3 { color: var(--signal); }
.checks { list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: baseline; }
.checks li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 3px; background: var(--teak); transform: translateY(-1px) rotate(45deg); }
.is-full .checks li::before { background: var(--signal); }
.plans { list-style: none; display: grid; gap: 10px; margin-bottom: 24px; }
@media (min-width: 520px) { .plans { grid-template-columns: repeat(3, 1fr); } }
.plan { position: relative; border: 1px solid #ffffff2e; border-radius: 14px; padding: 16px 14px 14px; display: flex; flex-direction: column; gap: 4px; }
.plan .amount { font: 700 1.7rem/1.1 var(--serif); }
.plan .amount-store { font: 400 .95rem/1.25 var(--sans); opacity: .9; }
.plan span { font-size: .9rem; color: #c1d5e0; }
.plan .tag { position: absolute; top: -10px; right: 10px; }
.plan.is-best { border-color: var(--signal); background: #ffd52e12; }
.price-note { margin-top: 18px; color: var(--ink-2); font-size: .92rem; max-width: 52em; }

/* faq */
.faq-wrap { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 64px; } .faq-wrap > div:first-child { position: sticky; top: 100px; align-self: start; } }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 0; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary h3 { font: 700 1.14rem/1.35 var(--sans); }
.qa summary::after {
  content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink-2);
  background: linear-gradient(var(--ink), var(--ink)) center/12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center/2px 12px no-repeat;
  transition: transform .25s ease;
}
.qa[open] summary::after { transform: rotate(45deg); }
.qa > div { padding: 0 0 22px; color: var(--ink-2); max-width: 44em; }
.qa > div p { margin: 0; }

/* финал */
.final { text-align: center; overflow: hidden; }
.final::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #26618566, transparent 60%); pointer-events: none;
}
.final-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 112px; height: 112px; border-radius: 26px; margin-bottom: 28px; box-shadow: 0 0 0 1px #ffffff26, 0 30px 60px -20px #000; }
.final h2 { max-width: 16em; margin-left: auto; margin-right: auto; }
.final .lead { margin: 0 auto 30px; }
.final .badges { justify-content: center; }

/* ------------------------------------------------ подвал */
.site-footer { background: var(--sea-950); color: #c3d4de; padding: 64px 0 28px; font-size: .96rem; }
.footer-grid { display: grid; gap: 34px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-footer .brand { color: var(--foam); margin-bottom: 14px; }
.foot-h { font: 400 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--signal); margin-bottom: 14px; }
.foot-list { list-style: none; display: grid; gap: 8px; }
.foot-list a, .site-footer p a { text-decoration: none; }
.foot-list a:hover, .site-footer p a:hover { text-decoration: underline; }
.foot-langs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; }
.foot-langs a { text-decoration: none; opacity: .85; }
.foot-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid #ffffff14; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: .85rem; color: #8ea6b4; }
.foot-bottom p { margin: 0; }

/* ------------------------------------------------ плашки */
.cookie, .langbar {
  position: fixed; z-index: 60; left: 12px; right: 12px; bottom: 12px; max-width: 560px;
  background: var(--sea-900); color: var(--foam); border: 1px solid #ffffff24; border-radius: 18px;
  padding: 16px 18px; box-shadow: 0 30px 60px -20px #000c; font-size: .93rem;
}
.cookie p, .langbar p { margin: 0 0 12px; }
.cookie a { color: var(--signal); }
.cookie-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.langbar { bottom: auto; top: 80px; left: auto; right: 12px; max-width: 380px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.langbar[hidden], .cookie[hidden] { display: none; }
.langbar p { margin: 0; flex: 1 1 100%; }
@media (min-width: 700px) { .cookie { left: 24px; bottom: 24px; } }

/* ------------------------------------------------ документы */
.docpage { background: var(--deck-bg); }
.doc { padding-top: calc(68px + 44px); padding-bottom: 80px; }
.crumbs { font: 400 .8rem var(--mono); color: var(--ink-2); margin-bottom: 26px; letter-spacing: .02em; }
.crumbs a { color: var(--teak); }
.doc h1 { font: 700 clamp(2rem, 1.4rem + 2.4vw, 3.2rem)/1.08 var(--serif); letter-spacing: -.01em; max-width: 20em; }
.effective { margin: 14px 0 0; font: 400 .85rem var(--mono); color: var(--ink-2); }
.prevails { margin-top: 10px; font-size: .92rem; color: var(--ink-2); font-style: italic; }
.doc-grid { display: grid; gap: 30px; margin-top: 40px; }
@media (min-width: 980px) { .doc-grid { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }
.toc ol { list-style: none; position: sticky; top: 96px; display: grid; gap: 4px; font-size: .9rem; border-left: 2px solid var(--rule); padding-left: 14px; }
.toc a { text-decoration: none; color: var(--ink-2); display: block; padding: 3px 0; }
.toc a:hover { color: var(--ink); }
@media (max-width: 979px) { .toc { display: none; } }
.prose { max-width: 46em; }
.prose h2 { font: 700 1.45rem/1.25 var(--serif); margin: 2.1em 0 .6em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font: 700 1.12rem/1.3 var(--sans); margin: 1.6em 0 .5em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .35em 0; }
.prose li ul { margin: .35em 0; }
.prose a { color: var(--accent-ink); }
.prose code { font: .88em var(--mono); background: var(--deck-bg-2); padding: .1em .35em; border-radius: 5px; }
.prose hr { border: 0; border-top: 1px solid var(--rule); margin: 44px 0 24px; }
.summary { margin: 0 0 28px; padding: 18px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--signal-deep); }
.summary p { margin: 0; }
.table { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--rule); border-radius: 12px; }
.table table { border-collapse: collapse; width: 100%; font-size: .93rem; }
.table th, .table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.table th { background: var(--deck-bg-2); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }
@media (max-width: 700px) {
  .table { border: 0; }
  .table thead { display: none; }
  .table tr { display: block; border: 1px solid var(--rule); border-radius: 12px; margin-bottom: 12px; padding: 6px 0; }
  .table td { display: block; border: 0; padding: 6px 14px; }
  .table td::before { content: attr(data-h); display: block; font: 400 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--teak); }
}
.requisites { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; padding: 18px 22px; border-radius: 14px; background: var(--card); border: 1px solid var(--rule); margin: 0 0 1em; }
.requisites dt { color: var(--ink-2); font-size: .9rem; }
.requisites dd { margin: 0; }
@media (max-width: 520px) { .requisites { grid-template-columns: 1fr; } .requisites dd { margin-bottom: 8px; } }
.fill { color: var(--ink-2); font-style: italic; }
.other-h { font: 400 .8rem var(--mono) !important; text-transform: uppercase; letter-spacing: .12em; color: var(--teak); margin-top: 34px !important; }
.other-docs { list-style: none !important; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* 404 */
.notfound { min-height: 100svh; display: grid; align-items: center; padding: 120px 0 80px; }
.notfound h1 { font: 700 clamp(2.4rem, 1.4rem + 4vw, 4.4rem)/1.05 var(--serif); margin-bottom: 18px; }
.notfound .lead { margin-bottom: 28px; }

/* ------------------------------------------------ появление */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-copy > * { animation: rise .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-copy > :nth-child(2) { animation-delay: .08s; }
.js .hero-copy > :nth-child(3) { animation-delay: .16s; }
.js .hero-copy > :nth-child(4) { animation-delay: .24s; }
.js .hero-copy > :nth-child(n+5) { animation-delay: .32s; }
.js .phone { animation: phone-in 1.2s .2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
@keyframes phone-in { from { opacity: 0; transform: translateY(60px) rotate(-6deg); } }
@media (max-width: 899px) { @keyframes phone-in { from { opacity: 0; transform: translateY(40px); } } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal, .js .hero-copy > *, .js .phone { opacity: 1; transform: none; animation: none; transition: none; }
}

@media (max-width: 520px) {
  .badges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .store-badge { min-width: 0; height: 54px; padding: 0 12px; gap: 9px; }
  .store-badge svg { width: 24px; height: 24px; }
  .badge-text b { font-size: 1.08rem; }
}
