/* Палитра «Хвойный лес» из приложения: migno/migno/DesignSystem/Tokens+Color.swift.
   Светлых плоскостей нет намеренно, как и в продукте: у аудитории светобоязнь. */
:root {
  --bg: #0A1310;
  --bg-2: #0E1915;
  --surface: rgba(20, 32, 27, .62);
  --surface-solid: #121D18;
  --ink: #CFDACF;
  --muted: #8A9B90;
  --hair: rgba(207, 218, 207, .10);
  --hair-2: rgba(207, 218, 207, .16);
  --accent: #4E7A63;
  --accent-soft: #152420;
  --btn: #2C463A;
  --btn-hover: #355445;
  --on-btn: #CBDBCF;
  --warn-bg: #1E1D12;
  --warn-bd: rgba(170, 150, 80, .24);
  --paper: #DCD8CD;
  --on-paper: #25231F;
  --alert: #A96742;

  /* Шкала боли, ступени из Tokens+Intensity.swift */
  --s4: #87894A; --s4-on: #EAEBDA;
  --s7: #A96742; --s7-on: #F5E3D5;
  --s2: #4F7B4E; --s2-on: #E4EFE4;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --sp-25: 2px; --sp-50: 4px; --sp-75: 8px; --sp-100: 12px; --sp-200: 16px;
  --sp-300: 24px; --sp-400: 32px; --sp-500: 40px; --sp-600: 48px;
  --sp-700: 64px; --sp-800: 80px; --sp-900: 96px;
  --max: 1152px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 16px;
  line-height: 24px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3, .heading-2, .heading-3 { text-wrap: balance; }
p, li { text-wrap: pretty; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* ===== Текстовые стили (Tailwind scale) ===== */
.heading-1 { font-size: 60px; line-height: 60px; font-weight: 600; letter-spacing: -.03em; }
.heading-2 { font-size: 48px; line-height: 48px; font-weight: 600; letter-spacing: -.025em; }
.heading-3 { font-size: 36px; line-height: 40px; font-weight: 600; letter-spacing: -.02em; }
.heading-4 { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; }
.heading-5 { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.01em; }
.heading-6 { font-size: 20px; line-height: 28px; font-weight: 600; }
.title-1 { font-size: 20px; line-height: 28px; font-weight: 500; }
.title-2 { font-size: 18px; line-height: 28px; font-weight: 500; }
.title-4 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-lead { font-size: 18px; line-height: 28px; font-weight: 400; }
.body-1 { font-size: 16px; line-height: 24px; font-weight: 600; }
.body-2 { font-size: 16px; line-height: 24px; font-weight: 500; }
.body-3 { font-size: 16px; line-height: 24px; font-weight: 400; }
.body-5 { font-size: 14px; line-height: 20px; font-weight: 500; }
.body-6 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-1 { font-size: 14px; line-height: 20px; font-weight: 500; }
.caption-2 { font-size: 14px; line-height: 20px; font-weight: 400; }
.caption-3 { font-size: 12px; line-height: 16px; font-weight: 600; }
.caption-4 { font-size: 12px; line-height: 16px; font-weight: 500; }
.caption-5 { font-size: 12px; line-height: 16px; font-weight: 400; }
.up { text-transform: uppercase; letter-spacing: .06em; }
.muted { color: var(--muted); }
.accent-t { color: #7FA38E; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-inline: auto; }

.eyebrow {
  font-size: 12px; line-height: 16px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .08em;
  color: #7FA38E;
  margin-bottom: var(--sp-200);
}

.skip {
  position: absolute; left: var(--sp-200); top: -64px; z-index: 100;
  background: var(--btn); color: var(--on-btn); padding: var(--sp-75) var(--sp-100); border-radius: 8px;
  transition: transform .3s var(--ease);
}
.skip:focus { transform: translateY(80px); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-75);
  background: var(--btn); color: var(--on-btn);
  font-size: 16px; line-height: 24px; font-weight: 600;
  padding: var(--sp-100) var(--sp-300);
  border-radius: 9999px;
  border: 1px solid rgba(203, 219, 207, .08);
  transition: background-color .3s var(--ease), transform .5s var(--ease);
}
.btn:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn-sm { font-size: 14px; line-height: 20px; padding: var(--sp-75) var(--sp-200); }
.btn-lg { font-size: 18px; line-height: 28px; padding: var(--sp-100) var(--sp-300); width: 100%; }
.btn-ghost { background: transparent; border-color: var(--hair-2); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }

.btn-store {
  display: inline-flex; align-items: center; gap: var(--sp-100);
  background: var(--btn); color: var(--on-btn);
  padding: var(--sp-100) var(--sp-300) var(--sp-100) var(--sp-200);
  border-radius: 16px;
  border: 1px solid rgba(203, 219, 207, .10);
  font-size: 20px; line-height: 24px; font-weight: 600; letter-spacing: -.01em;
  transition: background-color .3s var(--ease), transform .5s var(--ease);
}
.btn-store small { display: block; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 0; opacity: .8; }
.btn-store span { text-align: left; }
.btn-store:hover { background: var(--btn-hover); transform: translateY(-2px); }
.btn-store:active { transform: scale(.98); }

/* ===== Навигация ===== */
.nav-wrap { position: fixed; top: var(--sp-200); left: 0; right: 0; z-index: 50; display: flex; justify-content: center; padding-inline: var(--sp-200); pointer-events: none; }
.nav {
  pointer-events: auto;
  display: flex; align-items: center; gap: var(--sp-300);
  padding: var(--sp-75) var(--sp-75) var(--sp-75) var(--sp-200);
  background: rgba(14, 25, 21, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--hair);
  border-radius: 9999px;
}
.brand { display: inline-flex; align-items: center; gap: var(--sp-75); font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.brand img { border-radius: 8px; flex: none; }
.nav-links { display: flex; gap: var(--sp-50); }
.nav-links a {
  display: block; padding: var(--sp-75) var(--sp-100); border-radius: 9999px;
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); background: rgba(207, 218, 207, .06); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; border-radius: 9999px; background: var(--btn); position: relative; cursor: pointer; }
.menu-btn span { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--on-btn); transition: transform .5s var(--ease); }
.menu-btn span:first-child { transform: translateY(-4px); }
.menu-btn span:last-child { transform: translateY(4px); }
.menu-btn[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu {
  pointer-events: auto;
  position: fixed; inset: 0; z-index: -1;
  background: rgba(10, 19, 16, .94);
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  padding: 112px var(--sp-300) var(--sp-400);
}
.mobile-menu ul { display: flex; flex-direction: column; gap: var(--sp-75); }
.mobile-menu a:not(.btn) { display: block; font-size: 30px; line-height: 36px; font-weight: 600; padding: var(--sp-75) 0; }
.mobile-menu li { opacity: 0; transform: translateY(24px); }
.mobile-menu.open li { animation: menuIn .5s var(--ease) forwards; }
.mobile-menu li:last-child { margin-top: var(--sp-300); }
@keyframes menuIn { to { opacity: 1; transform: none; } }

/* ===== Hero ===== */
.hero {
  max-width: var(--max); margin: 0 auto;
  padding: 128px var(--sp-300) 0;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero-title {
  max-width: 880px;
  /* Градиент только на тексте заголовка: ink → muted, как B5, но в палитре приложения */
  background: linear-gradient(90deg, #E4EEE4 0%, #9FB0A5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { max-width: 680px; margin-top: var(--sp-300); color: var(--muted); }
.hero-cta { margin-top: var(--sp-500); display: flex; flex-direction: column; align-items: center; gap: var(--sp-100); }

.hero-visual { position: relative; width: 100%; max-width: 960px; margin-top: var(--sp-600); height: 600px; }
.phone {
  background: #060C0A;
  border: 1px solid var(--hair-2);
  border-radius: 48px;
  padding: 8px;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 0 0 6px rgba(207, 218, 207, .03);
}
.phone img { border-radius: 40px; width: 100%; }
.phone-hero {
  width: 320px; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}

.float {
  position: absolute;
  background: var(--surface-solid);
  border: 1px solid var(--hair-2);
  border-radius: 20px;
  padding: var(--sp-200);
  text-align: left;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .40);
  display: flex; flex-direction: column; gap: var(--sp-50);
  animation: drift 8s var(--ease) infinite alternate;
}
.float span { color: inherit; }
.metric { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; }
.f1 { left: 6%; top: 96px; flex-direction: row; align-items: center; gap: var(--sp-100); transform: rotate(-6deg); }
.f1 div { display: flex; flex-direction: column; }
.f1 .caption-5 { color: var(--muted); }
.f2 { right: 4%; top: 40px; background: var(--s4); color: var(--s4-on); border-color: transparent; transform: rotate(5deg); animation-delay: -2s; }
.f3 { left: 0; top: 300px; width: 260px; transform: rotate(4deg); animation-delay: -4s; }
.f3 .up { color: var(--muted); }
.f4 { right: 2%; top: 300px; background: var(--s7); color: var(--s7-on); border-color: transparent; transform: rotate(-5deg); animation-delay: -6s; }
.badge {
  width: 48px; height: 48px; border-radius: 12px;
  display: grid; place-items: center;
  font-size: 24px; line-height: 32px; font-weight: 600;
}
.s7 { background: var(--s7); color: var(--s7-on); }
.trow { display: grid; grid-template-columns: 96px 1fr 32px; align-items: center; gap: var(--sp-75); margin-top: var(--sp-50); }
.trow i { height: 6px; border-radius: 9999px; background: rgba(207, 218, 207, .10); position: relative; overflow: hidden; }
.trow i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); background: #A2543D; border-radius: inherit; }
.trow span:last-child { text-align: right; }
@keyframes drift { to { translate: 0 -8px; } }

/* ===== Факты ===== */
.facts {
  max-width: var(--max); margin: var(--sp-700) auto 0; padding: 0 var(--sp-300);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-200);
}
.facts > div { border: 1px solid var(--hair); border-radius: 20px; padding: var(--sp-300); display: flex; flex-direction: column; gap: var(--sp-50); background: var(--surface); }
.facts .caption-2 { color: var(--muted); }

/* ===== Секции ===== */
.section { max-width: var(--max); margin: 0 auto; padding: var(--sp-900) var(--sp-300) 0; }
.section-head { text-align: center; margin-bottom: var(--sp-600); }
.section-head .body-3 { margin-top: var(--sp-200); }
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: 24px;
  padding: var(--sp-300);
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-700); align-items: center; }
.split h2 { margin-bottom: var(--sp-200); }

.compare { display: flex; flex-direction: column; gap: var(--sp-200); }
.compare .card { display: flex; flex-direction: column; gap: var(--sp-100); }
.compare-a { background: transparent; border-style: dashed; }
.compare-a .body-2 { color: var(--muted); }
.compare-b { background: var(--accent-soft); border-color: rgba(78, 122, 99, .35); }
.stat-list { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-200); }
.stat-list li { display: flex; flex-direction: column; }
.stat-list b { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -.02em; }
.stat-list span { font-size: 14px; line-height: 20px; color: var(--muted); }

/* ===== Бенто ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(0, auto);
  gap: var(--sp-200);
}
.tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--hair); border-radius: 32px;
  padding: var(--sp-400);
  display: flex; flex-direction: column; gap: var(--sp-200);
}
.tile-copy { display: flex; flex-direction: column; gap: var(--sp-75); }
.tile-cal { grid-column: span 3; grid-row: span 2; }
.tile-pills { grid-column: span 3; background: var(--warn-bg); border-color: var(--warn-bd); justify-content: space-between; }
.tile-evening { grid-column: span 3; background: var(--s2); color: var(--s2-on); border-color: transparent; justify-content: space-between; }
.tile-evening .muted { color: rgba(228, 239, 228, .8); }
.tile-pressure { grid-column: span 2; background: var(--s4); color: var(--s4-on); border-color: transparent; justify-content: space-between; }
.tile-trig, .tile-days { grid-column: span 2; }
.tile-pressure, .tile-trig, .tile-days { height: 460px; }

/* Телефон «утоплен» в плитку: нижняя часть уходит за край */
.phone-crop { width: min(240px, 100%); margin: auto auto -200px; }
.tile-cal .phone-crop { width: min(340px, 100%); margin-bottom: -120px; }

.pills { background: rgba(0, 0, 0, .18); border: 1px solid var(--warn-bd); border-radius: 16px; padding: var(--sp-200); }
.pills-head { display: flex; align-items: baseline; gap: var(--sp-75); margin-bottom: var(--sp-100); }
.pills-head b { color: var(--alert); }
.pills-head span { color: var(--muted); }
.pills-bar { display: grid; grid-template-columns: repeat(30, 1fr); gap: 2px; height: 24px; }
.pills-bar i { border-radius: 2px; background: rgba(207, 218, 207, .08); }
.pills-bar i.on { background: #A2543D; }

.pressure { background: rgba(0, 0, 0, .14); border-radius: 16px; padding: var(--sp-200); display: flex; flex-direction: column; gap: var(--sp-50); }
.tile-pressure .body-6 { color: rgba(234, 235, 218, .85); }

.notif {
  background: rgba(10, 19, 16, .55);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-radius: 20px; padding: var(--sp-100) var(--sp-200) var(--sp-200);
  color: var(--ink);
}
.notif-top { display: flex; align-items: center; gap: var(--sp-75); margin-bottom: var(--sp-50); }
.notif-top img { border-radius: 4px; }
.notif-top .muted { margin-left: auto; }
.notif-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-75); margin-top: var(--sp-100); }
.notif-actions span { background: rgba(207, 218, 207, .08); border-radius: 12px; padding: var(--sp-75); text-align: center; }

/* ===== Слоган ===== */
.tagline { max-width: var(--max); margin: 0 auto; padding: 160px var(--sp-300) var(--sp-700); display: flex; justify-content: center; }
.tagline-text { max-width: 760px; text-align: center; font-size: 60px; line-height: 60px; }
.tagline-text .w { color: rgba(207, 218, 207, .28); transition: color .6s var(--ease); }
.tagline-text .w.on { color: var(--ink); }

/* ===== Шаги ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-200); counter-reset: s; }
.steps .card { display: flex; flex-direction: column; gap: var(--sp-75); padding: var(--sp-400); }
.step-n {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--btn); color: var(--on-btn); font-weight: 600; margin-bottom: var(--sp-200);
}

/* ===== Отчёт ===== */
.checks { display: flex; flex-direction: column; gap: var(--sp-75); margin-top: var(--sp-300); }
.checks li { position: relative; padding-left: var(--sp-400); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 9999px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.checks li::after {
  content: ""; position: absolute; left: 5px; top: 6px; width: 6px; height: 4px;
  border-left: 1.5px solid #9FC2AE; border-bottom: 1.5px solid #9FC2AE; transform: rotate(-45deg);
}

.paper {
  background: var(--paper); color: var(--on-paper);
  border-radius: 16px; padding: var(--sp-400);
  display: flex; flex-direction: column; gap: var(--sp-100);
  box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
  transform: rotate(1.5deg);
}
.paper .caption-3 { color: #6C675C; margin-top: var(--sp-100); }
.paper-head { display: flex; flex-direction: column; border-bottom: 1px solid rgba(37, 35, 31, .14); padding-bottom: var(--sp-100); }
.paper-head .caption-5, .paper-stats .caption-5, .paper-row .caption-5, .paper-note { color: #6C675C; }
.paper-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-100); }
.paper-stats div { display: flex; flex-direction: column; }
.paper-strip { display: grid; grid-template-columns: repeat(90, 1fr); gap: 1px; height: 24px; }
.paper-strip i { background: rgba(37, 35, 31, .08); border-radius: 1px; }
.paper-row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-200); border-bottom: 1px solid rgba(37, 35, 31, .10); padding-bottom: var(--sp-75); }
.midas { border: 0; margin-top: var(--sp-75); }
.paper-note { margin-top: var(--sp-100); }

/* ===== Тёмная тема как продукт ===== */
.scale { display: grid; grid-template-columns: repeat(11, 1fr); gap: var(--sp-75); max-width: 880px; margin: 0 auto; }
.scale span {
  aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center;
  background: var(--c); color: var(--o); font-size: 20px; line-height: 28px; font-weight: 600;
  transition: transform .5s var(--ease);
}
.scale span:hover { transform: translateY(-4px); }
.scale-legend { display: flex; justify-content: space-between; max-width: 880px; margin: var(--sp-100) auto 0; }

/* ===== Приватность ===== */
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-200); }
.grid4 .card { display: flex; flex-direction: column; gap: var(--sp-75); }
.grid4 .ph { font-size: 28px; color: #7FA38E; margin-bottom: var(--sp-200); }

/* ===== Тарифы ===== */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-200); max-width: 880px; margin: 0 auto var(--sp-300); }
.plan { display: flex; flex-direction: column; gap: var(--sp-100); padding: var(--sp-400); border-radius: 32px; }
.plan .checks { margin: var(--sp-200) 0 var(--sp-300); flex: 1; }
.plan-price { display: flex; align-items: baseline; gap: var(--sp-75); flex-wrap: wrap; }
.plan-pro { background: var(--accent-soft); border-color: rgba(78, 122, 99, .45); }
.pill { display: inline-block; vertical-align: middle; margin-left: var(--sp-75); padding: var(--sp-50) var(--sp-75); border-radius: 9999px; background: var(--btn); color: var(--on-btn); }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: var(--sp-75); }
details { background: var(--surface); border: 1px solid var(--hair); border-radius: 20px; padding: 0 var(--sp-300); transition: background-color .3s var(--ease); }
details[open] { background: var(--accent-soft); }
summary { list-style: none; cursor: pointer; padding: var(--sp-200) 0; display: flex; justify-content: space-between; align-items: center; gap: var(--sp-200); }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 24px; line-height: 24px; color: var(--muted); transition: transform .5s var(--ease); flex: none; }
details[open] summary::after { transform: rotate(45deg); }
details p { padding-bottom: var(--sp-300); }

/* ===== Финальный CTA ===== */
.final {
  max-width: var(--max); margin: var(--sp-900) auto 0; padding: var(--sp-900) var(--sp-300);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-300);
  border-top: 1px solid var(--hair);
}
.final img { border-radius: 16px; }

/* ===== Футер ===== */
.footer { max-width: var(--max); margin: 0 auto; padding: var(--sp-500) var(--sp-300) var(--sp-600); border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: var(--sp-200); }
.footer-top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: var(--sp-200); }
.footer-top ul { display: flex; gap: var(--sp-300); flex-wrap: wrap; }
.footer-top ul a { font-size: 14px; line-height: 20px; color: var(--muted); transition: color .3s var(--ease); }
.footer-top ul a:hover { color: var(--ink); }

/* ===== Появление при скролле ===== */
.js .reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile-cal, .tile-pills, .tile-pressure, .tile-trig, .tile-evening, .tile-days { grid-column: span 1; grid-row: auto; }
  .tile-cal { grid-column: span 2; height: 560px; }
  .grid4 { grid-template-columns: repeat(2, 1fr); }
  .f3 { left: -2%; } .f4 { right: -2%; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }
  .nav { gap: var(--sp-400); }
  .heading-1 { font-size: 48px; line-height: 48px; }
  .heading-2, .tagline-text { font-size: 36px; line-height: 40px; }
  .split { grid-template-columns: 1fr; gap: var(--sp-500); }
  .steps { grid-template-columns: 1fr; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .paper { transform: none; }
  .hero-visual { height: 560px; }
  .float { transform: scale(.85) !important; }
  .f1 { left: -4%; top: 24px; } .f2 { right: -4%; top: 120px; }
  .f3 { left: -6%; top: 360px; } .f4 { right: -4%; top: 400px; }
}

@media (max-width: 560px) {
  .hero { padding-top: 128px; }
  .heading-1 { font-size: 36px; line-height: 40px; }
  .heading-2, .tagline-text { font-size: 30px; line-height: 36px; }
  .heading-3 { font-size: 30px; line-height: 36px; }
  .body-lead { font-size: 16px; line-height: 24px; }
  .hero-title br { display: none; }
  .bento { grid-template-columns: 1fr; }
  .tile-cal { grid-column: span 1; }
  .tile { padding: var(--sp-300); border-radius: 24px; }
  .tile-pressure { height: auto; gap: var(--sp-300); }
  .grid4 { grid-template-columns: 1fr; }
  .section { padding-top: var(--sp-800); }
  .tagline { padding: var(--sp-900) var(--sp-300); }
  .phone-hero { width: 264px; }
  .hero-visual { height: 520px; margin-top: var(--sp-600); }
  .float { padding: var(--sp-100); border-radius: 16px; }
  .f1, .f3 { display: none; }
  .f2 { right: -2%; top: 200px; } .f4 { right: auto; left: -2%; top: 340px; }
  .scale { gap: var(--sp-50); }
  .scale span { border-radius: 8px; font-size: 14px; line-height: 20px; }
  .paper { padding: var(--sp-300); }
  .paper-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-list b { font-size: 24px; line-height: 32px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float { animation: none; }
  .js .reveal { transform: none; transition: opacity .3s linear; }
  .mobile-menu li { transform: none; }
  .tagline-text .w { transition: none; }
}

/* ===== Документы: приватность, условия, поддержка ===== */
.doc { max-width: 760px; margin: 0 auto; padding: 136px var(--sp-300) var(--sp-800); }
.doc-nav .lang {
  font-size: 14px; line-height: 20px; font-weight: 500; color: var(--muted);
  padding: var(--sp-75) var(--sp-100); border-radius: 9999px; border: 1px solid var(--hair-2);
  transition: color .3s var(--ease), background-color .3s var(--ease);
}
.doc-nav .lang:hover { color: var(--ink); background: rgba(207, 218, 207, .06); }
.doc-links a[aria-current="page"] { color: var(--ink); background: rgba(207, 218, 207, .06); }
.lang-short { display: none; }

.legal { color: var(--ink); }
.legal h1 { margin-bottom: var(--sp-75); }
.legal h2 { margin: var(--sp-500) 0 var(--sp-100); }
.legal p, .legal li { font-size: 16px; line-height: 28px; color: #B9C6BC; }
.legal p + p { margin-top: var(--sp-200); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: #9FC2AE; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .3s var(--ease); }
.legal a:hover { color: var(--ink); }
.legal ul { margin: var(--sp-200) 0; display: flex; flex-direction: column; gap: var(--sp-75); }
.legal ul li { position: relative; padding-left: var(--sp-300); }
.legal ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 6px; height: 6px; border-radius: 9999px; background: var(--accent); }
.legal .last-updated { font-size: 14px; line-height: 20px; color: var(--muted); }
.legal .last-updated strong { color: var(--muted); font-weight: 500; }
.legal .summary, .legal .medical-note {
  margin: var(--sp-400) 0; padding: var(--sp-300);
  border-radius: 20px; border: 1px solid rgba(78, 122, 99, .35); background: var(--accent-soft);
}
.legal .summary p { color: var(--ink); }
.legal .medical-note { border-color: var(--warn-bd); background: var(--warn-bg); font-size: 14px; line-height: 20px; color: var(--muted); margin-top: var(--sp-600); }

.legal .doc-list { gap: 0; margin-top: var(--sp-300); }
.legal .doc-list li { padding: var(--sp-200) 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: var(--sp-50); }
.legal .doc-list li:last-child { border-bottom: 1px solid var(--hair); }
.legal .doc-list li::before { display: none; }
.legal .doc-list a { font-size: 18px; line-height: 28px; font-weight: 500; color: var(--ink); text-decoration: none; }
.legal .doc-list a:hover { color: #9FC2AE; }
.legal .doc-desc { font-size: 14px; line-height: 20px; color: var(--muted); }

@media (max-width: 860px) {
  .doc-nav .doc-links { display: flex; }
  .doc-nav { gap: var(--sp-100); }
}
@media (max-width: 560px) {
  .doc { padding-top: 112px; }
  .doc-nav { padding: var(--sp-50) var(--sp-50) var(--sp-50) var(--sp-100); gap: var(--sp-75); max-width: 100%; }
  .doc-nav .brand span { display: none; }
  .doc-links { gap: 0; min-width: 0; }
  .doc-nav .lang { flex: none; }
  .doc-links a { padding: var(--sp-75) var(--sp-75); font-size: 12px; line-height: 16px; }
  .doc-nav .lang { font-size: 12px; line-height: 16px; padding: var(--sp-75); }
  .lang-full { display: none; }
  .lang-short { display: inline; }
}
