/* DentScore — сайт продукта.
   Палитра — токены приложения (web-hygienist/src/styles.css): белый и
   бледно-голубой фон, графит #0A1F2E в тексте, тил #0A9C88 и мята #11C2A8 в
   акцентах. Тёмных блоков нет (решение Уали 2026-09-19: «цвета у нас белые
   и зелёные»): сайт выглядит как само приложение. Живость — не в цвете, а в
   реакции на курсор: поле точек под героем, свет за мышью, наклон карточек
   и «магнитные» кнопки (main.js). */

:root {
  --ink: #0a1f2e;
  --ink-2: #40586a;
  --ink-3: #6c8291;
  --page: #ffffff;
  --surface: #ffffff;
  --tint: #eaf3f8;
  --tint-2: #f4f8fb;
  --hairline: #dce6eb;
  --primary: #0a9c88;
  --primary-strong: #087564;
  --primary-tint: #dff5f0;
  --accent: #11c2a8;
  --accent-soft: rgba(17, 194, 168, 0.16);
  --good: #067360;
  --warn: #ed9b0e;
  --bad: #ff6f61;

  --font-display: "Bricolage Grotesque", ui-sans-serif, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 2px 8px rgba(10, 31, 46, 0.07);
  --shadow-float: 0 24px 60px rgba(10, 31, 46, 0.14), 0 2px 6px rgba(10, 31, 46, 0.06);
  --wrap: 1180px;

  /* положение курсора, ставит main.js */
  --mx: 50%;
  --my: 40%;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

/* ---------------------------------------------------------------- типографика */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-strong);
  margin-bottom: 14px;
}
.h2 {
  font-size: clamp(30px, 4.2vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  max-width: 18ch;
}
.lead {
  margin-top: 16px;
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 58ch;
}

/* ---------------------------------------------------------------- кнопки */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-pill);
  font: 600 15px/1 var(--font-body);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  will-change: transform;
}
.btn:active { transform: translateY(1px) !important; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(10, 156, 136, 0.28); }
.btn--primary:hover { background: var(--primary-strong); box-shadow: 0 10px 26px rgba(10, 156, 136, 0.34); }
.btn--ghost { background: rgba(255, 255, 255, 0.7); color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--ink-3); background: #fff; }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16px; }
.btn--block { width: 100%; }

/* ---------------------------------------------------------------- шапка */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__row { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav__logo img { height: 30px; width: auto; }
.nav__links { display: flex; gap: 22px; margin-left: auto; }
.nav__links a { color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav__links a:hover { color: var(--primary-strong); }
.nav__cta { min-height: 40px; }
.nav__burger {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  background: none; border: 0; padding: 10px; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px;
}
.nav__burger span { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
.nav__sheet { display: none; }
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__sheet {
    display: flex; flex-direction: column;
    padding: 6px 16px 18px;
    border-top: 1px solid var(--hairline);
    background: rgba(255, 255, 255, 0.98);
  }
  .nav__sheet a { color: var(--ink); text-decoration: none; padding: 12px 0; font-size: 17px; border-bottom: 1px solid var(--hairline); }
  .nav__sheet a:last-child { border-bottom: 0; }
  .nav:not(.is-open) .nav__sheet { display: none; }
}

/* ---------------------------------------------------------------- герой */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 520px at 80% 10%, rgba(17, 194, 168, 0.16), transparent 62%),
    radial-gradient(700px 500px at 6% 92%, rgba(10, 156, 136, 0.10), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--tint-2) 100%);
  padding: 72px 0 40px;
}
/* поле точек — canvas, точки тянутся к курсору и загораются мятой (main.js) */
.hero__dots { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
/* свет за курсором — тот самый приём с Antigravity, только на белом */
.hero__light {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px 420px at var(--mx) var(--my), rgba(17, 194, 168, 0.20), transparent 62%);
  opacity: 0; transition: opacity 0.5s ease;
}
.hero.is-live .hero__light { opacity: 1; }
.hero__glow {
  position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; opacity: 0.9;
  animation: drift 14s ease-in-out infinite alternate;
}
.hero__glow--a { width: 520px; height: 520px; right: -120px; top: -160px; background: rgba(17, 194, 168, 0.18); }
.hero__glow--b { width: 420px; height: 420px; left: -160px; bottom: -80px; background: rgba(43, 108, 176, 0.10); animation-delay: -6s; }
@keyframes drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(30px, 40px, 0); } }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
.hero__title {
  font-size: clamp(38px, 5.6vw, 68px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
/* слова заголовка поднимаются по очереди — один раз, при загрузке */
.hero__title .w { display: inline-block; }
html.js .hero__title .w { opacity: 0; transform: translateY(0.5em); animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; animation-delay: calc(var(--i) * 70ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__title .hl { color: var(--primary); }
.hero__lead { margin-top: 22px; font-size: clamp(16px, 1.5vw, 19px); color: var(--ink-2); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__facts { display: grid; gap: 8px; margin-top: 34px; color: var(--ink-2); font-size: 15px; }
.hero__facts li { padding-left: 18px; position: relative; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero__facts strong { color: var(--ink); font-weight: 600; }

/* сцена с плавающими окнами */
.hero__stage { position: relative; min-height: 560px; perspective: 1200px; }
.float {
  position: absolute;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(10, 31, 46, 0.08);
  border-radius: var(--radius);
  box-shadow: var(--shadow-float);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px;
  will-change: transform;
  animation: floaty 9s ease-in-out infinite;
  transition: box-shadow 0.25s ease;
}
.float:hover { box-shadow: 0 30px 70px rgba(10, 31, 46, 0.18), 0 0 0 4px var(--accent-soft); }
.float--index { left: 0; top: 0; width: 312px; display: flex; gap: 16px; align-items: center; animation-delay: -1s; }
.float--photos { right: 0; top: 76px; width: 256px; animation-delay: -4s; }
.float--wa { left: 0; top: 248px; width: 300px; animation-delay: -6s; }
.float--chart { right: 0; top: 334px; width: 236px; animation-delay: -2s; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .float, .hero__glow { animation: none; } }

.float__title { font-size: 13px; color: var(--ink-2); margin-bottom: 8px; font-weight: 500; }
.float__cap { font-size: 12.5px; color: var(--ink-3); margin-top: 10px; line-height: 1.4; }

.ring { position: relative; width: 120px; height: 120px; flex: 0 0 auto; }
.ring__svg { width: 120px; height: 120px; transform: rotate(-90deg); }
.ring__track { fill: none; stroke: var(--tint); stroke-width: 12; }
.ring__value {
  fill: none; stroke: var(--primary); stroke-width: 12; stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: calc(314 - 314 * var(--pct) / 100);
  animation: ring 1.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes ring { from { stroke-dashoffset: 314; } }
.ring__label { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring__num { font: 700 30px/1 var(--font-display); color: var(--ink); }
.ring__num small { font-size: 16px; margin-left: 1px; }
.ring__cap { font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.index-meta { display: grid; gap: 8px; font-size: 12px; flex: 1; min-width: 0; }
.index-meta__row span { white-space: nowrap; }
.index-meta__row { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--ink-2); }
.index-meta__row b { color: var(--ink); font-weight: 600; }
.index-meta__row--good b { color: var(--primary); }
.pill { padding: 2px 9px; border-radius: var(--radius-pill); font-size: 12px; font-weight: 600; }
.pill--good { background: var(--primary-tint); color: var(--good) !important; }

.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo {
  position: relative; aspect-ratio: 1 / 1.1; border-radius: 10px; overflow: hidden;
  background: linear-gradient(180deg, #2a3f52 0%, #1a2c3c 100%);
}
.photo__tag { position: absolute; left: 4px; top: 4px; font-size: 9px; letter-spacing: -0.01em; padding: 2px 5px; max-width: calc(100% - 10px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; background: rgba(0, 0, 0, 0.35); border-radius: 6px; }
.photo__teeth {
  position: absolute; left: 12%; right: 12%; bottom: 18%; height: 34%;
  border-radius: 48% 48% 40% 40% / 60% 60% 40% 40%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.92) 0 14%, rgba(150,170,190,0.55) 14% 16%);
  box-shadow: inset 0 -6px 10px rgba(0,0,0,0.15);
}
.photo--stained .photo__teeth {
  background:
    radial-gradient(circle at 30% 80%, rgba(233, 74, 140, 0.85) 0 9%, transparent 10%),
    radial-gradient(circle at 62% 84%, rgba(233, 74, 140, 0.8) 0 8%, transparent 9%),
    radial-gradient(circle at 80% 78%, rgba(233, 74, 140, 0.7) 0 6%, transparent 7%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.9) 0 14%, rgba(150,170,190,0.55) 14% 16%);
}
.photo--clean .photo__teeth { background: repeating-linear-gradient(90deg, #ffffff 0 14%, rgba(150,170,190,0.5) 14% 16%); }

.spark { width: 100%; height: auto; overflow: visible; }
.spark__line { fill: none; stroke: var(--primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1.6s 0.3s ease-out forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.spark__dots circle { fill: #fff; stroke: var(--primary); stroke-width: 2; }
.spark__dot--now { fill: var(--accent) !important; stroke: var(--accent) !important; }
.spark__labels text { font: 600 9.5px var(--font-body); fill: var(--ink-3); }

.wa { font-size: 13px; }
.wa__head { display: flex; align-items: center; gap: 8px; color: var(--ink-3); font-size: 12px; margin-bottom: 10px; }
.wa__dot { width: 8px; height: 8px; border-radius: 50%; background: #25d366; }
.wa__bubble { background: #dcf8c6; color: #123b1f; padding: 10px 12px; border-radius: 12px 12px 12px 4px; line-height: 1.45; }
.wa__card { display: flex; gap: 10px; align-items: center; margin-top: 8px; background: var(--tint); border-radius: 12px; padding: 10px; }
.wa__thumb { width: 42px; height: 42px; border-radius: 8px; flex: 0 0 auto; background: linear-gradient(135deg, var(--accent), var(--primary-strong)); }
.wa__card b { display: block; font-size: 13px; }
.wa__card span { font-size: 12px; color: var(--ink-3); }

.hero__strip { margin-top: 56px; position: relative; }
.strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.strip__item { background: rgba(255, 255, 255, 0.9); padding: 20px 22px; display: grid; gap: 6px; }
.strip__item b { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.strip__item span { font-size: 14px; color: var(--ink-2); line-height: 1.45; }

@media (max-width: 1000px) {
  .hero { padding-top: 48px; }
  .hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .hero__stage { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; perspective: none; }
  .float { position: static; width: auto !important; animation: none; transform: none !important; }
  .strip { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .hero__stage { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
}

/* ---------------------------------------------------------------- секции */
.section { padding: 88px 0; position: relative; }
.section--tint { background: var(--tint); }
.section--contact {
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(17, 194, 168, 0.18), transparent 65%),
    var(--tint-2);
  text-align: center;
  overflow: hidden;
}
@media (max-width: 700px) { .section { padding: 60px 0; } }

.cards { display: grid; gap: 18px; margin-top: 40px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--tight { gap: 14px; }
@media (max-width: 960px) { .cards--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards--3 { grid-template-columns: 1fr; } }

/* карточки: свет под курсором (--x/--y ставит main.js) и наклон к нему */
.card, .tile, .step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card::before, .tile::before, .step::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(260px 260px at var(--x, 50%) var(--y, 50%), rgba(17, 194, 168, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover::before, .tile:hover::before, .step:hover::before { opacity: 1; }
.card:hover, .tile:hover, .step:hover { border-color: rgba(17, 194, 168, 0.45); box-shadow: 0 18px 40px rgba(10, 31, 46, 0.12); }
.card > *, .tile > *, .step > * { position: relative; z-index: 1; }

.card { padding: 22px; display: grid; gap: 10px; align-content: start; }
.card h3 { font-size: 20px; font-weight: 600; }
.card p { color: var(--ink-2); font-size: 15px; }
.card--flat { box-shadow: none; background: var(--tint-2); }
.card--flat h3 { color: var(--primary-strong); }

/* иллюстрации карточек — тем же языком, что в приложении */
.card__art {
  height: 132px; border-radius: var(--radius-sm); background: var(--tint);
  display: flex; align-items: center; justify-content: center; gap: 10px; position: relative; overflow: hidden;
  margin-bottom: 6px;
}
.card__art em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-size: 12px; color: var(--ink-3); }
.art--index svg { width: 92px; height: 92px; transform: rotate(-90deg); }
.art-ring__track { fill: none; stroke: #ffffff; stroke-width: 11; }
.art-ring__value { fill: none; stroke: var(--primary); stroke-width: 11; stroke-linecap: round; stroke-dasharray: 289; stroke-dashoffset: calc(289 - 289 * var(--pct) / 100); }
.art--index span { position: absolute; font: 700 24px var(--font-display); color: var(--ink); }
.shade { width: 44px; height: 56px; border-radius: 8px; display: grid; place-items: center; font: 600 15px var(--font-display); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10,31,46,0.08); }
.shade--a3 { background: #e9d2a6; }
.shade--a1 { background: #f8f1df; }
.art-arrow { width: 40px; height: 20px; }
.art-arrow path { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sx { display: grid; grid-template-columns: repeat(3, 40px); gap: 6px; }
.sx i { height: 30px; border-radius: 8px; background: #ffffff; display: grid; place-items: center; font: 600 13px var(--font-body); font-style: normal; color: var(--ink-2); }
.sx--warn { background: #fcf0da !important; color: #8a5a00 !important; }
.sx--bad { background: #ffece9 !important; color: #ce3b2c !important; }
.arch { width: 170px; height: auto; }
.arch__curve { fill: none; stroke: var(--hairline); stroke-width: 2; }
.arch__teeth rect { fill: #ffffff; stroke: rgba(10,31,46,0.12); }
.arch__teeth .t--plan { fill: var(--ink); stroke: var(--ink); }
.arch__teeth .t--q { fill: none; stroke: var(--ink-3); stroke-dasharray: 3 2; }
.brushes { display: flex; gap: 12px; align-items: flex-end; }
.brushes i { width: 18px; height: 54px; border-radius: 9px 9px 4px 4px; background: linear-gradient(180deg, var(--c) 0 62%, #d7dee3 62%); box-shadow: inset 0 0 0 1px rgba(10,31,46,0.08); }
.brushes i:nth-child(2) { height: 46px; } .brushes i:nth-child(3) { height: 60px; } .brushes i:nth-child(4) { height: 40px; } .brushes i:nth-child(5) { height: 50px; }
.enamel { display: flex; gap: 10px; }
.enamel i { width: 70px; height: 62px; border-radius: 14px 14px 10px 10px; background: #fff; box-shadow: inset 0 0 0 1px rgba(10,31,46,0.08); position: relative; }
.enamel__before::after, .enamel__after::after { content: ""; position: absolute; inset: 40% 30% 30% 30%; border-radius: 50%; background: rgba(255,255,255,0.95); box-shadow: 0 0 0 6px rgba(255,255,255,0.9), 0 0 0 7px rgba(180,190,200,0.7); }
.enamel__after::after { opacity: 0.25; }

/* двухколоночные разделы */
.split { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.split--reverse .split__copy { order: 2; }
.checks { display: grid; gap: 14px; margin-top: 26px; }
.checks li { position: relative; padding-left: 30px; color: var(--ink-2); font-size: 15px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--primary-tint); }
.checks li::after { content: ""; position: absolute; left: 6px; top: 9px; width: 6px; height: 3px; border-left: 2px solid var(--primary-strong); border-bottom: 2px solid var(--primary-strong); transform: rotate(-45deg); }
.checks li b { color: var(--ink); font-weight: 600; }

.split__shot { margin: 0; perspective: 1400px; }
.browser {
  border-radius: 14px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(10, 31, 46, 0.18); border: 1px solid rgba(10,31,46,0.10);
  transition: transform 0.35s ease, box-shadow 0.35s ease; will-change: transform;
}
.browser:hover { box-shadow: 0 36px 80px rgba(10, 31, 46, 0.22), 0 0 0 4px var(--accent-soft); }
.browser__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--tint); border-bottom: 1px solid var(--hairline); }
.browser__bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(10,31,46,0.14); }
.browser__bar span { margin-left: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--font-body); }
.browser img { width: 100%; height: auto; background: #fff; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 28px; }
  .split--reverse .split__copy { order: 0; }
}

/* плитки пациента */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 36px; }
.tile { padding: 20px; display: grid; gap: 6px; }
.tile b { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.tile span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tiles { grid-template-columns: 1fr; } }

/* переезд */
.migrate { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.migrate__steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.step { padding: 18px; display: grid; gap: 4px; }
.step i { font: 700 14px var(--font-display); font-style: normal; color: var(--primary-strong); background: var(--primary-tint); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 6px; }
.step b { font-family: var(--font-display); font-size: 17px; }
.step span { color: var(--ink-2); font-size: 14px; }
@media (max-width: 900px) { .migrate { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .migrate__steps { grid-template-columns: 1fr; } }

/* цена — единственный насыщенно-зелёный блок на странице */
.price { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.price__card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--primary) 0%, var(--primary-strong) 100%);
  color: #fff;
  border-radius: 24px; padding: 34px; text-align: center;
  box-shadow: 0 30px 70px rgba(10, 156, 136, 0.30);
}
.price__card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(300px 300px at var(--x, 70%) var(--y, 20%), rgba(255, 255, 255, 0.22), transparent 65%);
}
.price__card > * { position: relative; }
.price__num { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.price__num span { font: 700 clamp(34px, 4.6vw, 48px)/1.05 var(--font-display); letter-spacing: -0.02em; }
.price__num small { font-size: 20px; color: rgba(255, 255, 255, 0.8); font-weight: 500; }
.price__per { margin: 8px 0 24px; color: rgba(255, 255, 255, 0.82); }
.price__card .btn--primary { background: #fff; color: var(--primary-strong); box-shadow: 0 8px 22px rgba(0, 0, 0, 0.16); }
.price__card .btn--primary:hover { background: #f1fbf8; }
.price__note { margin-top: 16px; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); line-height: 1.5; }
@media (max-width: 900px) { .price { grid-template-columns: 1fr; gap: 32px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.qa { border-top: 1px solid var(--hairline); padding: 4px 0; }
.qa:last-child { border-bottom: 1px solid var(--hairline); }
.qa summary { cursor: pointer; list-style: none; padding: 16px 0; font: 600 18px var(--font-display); display: flex; justify-content: space-between; gap: 16px; transition: color 0.15s; }
.qa summary:hover { color: var(--primary-strong); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; color: var(--primary-strong); font-weight: 600; font-size: 22px; line-height: 1; transition: transform 0.2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { color: var(--ink-2); padding-bottom: 18px; max-width: 60ch; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* контакты */
.contact .h2 { margin-inline: auto; }
.contact .lead { margin-inline: auto; }
.contact__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact__mail { margin-top: 18px; }
.contact__mail a { color: var(--ink-2); }
.contact__mail a:empty { display: none; }

.footer { background: #fff; color: var(--ink-3); border-top: 1px solid var(--hairline); padding: 28px 0; font-size: 13.5px; }
.footer__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer img { height: 26px; width: auto; opacity: 0.9; }

/* появление при прокрутке */
html.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html.js .hero__title .w { opacity: 1; transform: none; animation: none; }
  .hero__light { display: none; }
}

/* ================================================================ ТЕЛЕФОН
   Большинство заходов — с телефона (Уали, 2026-09-19), поэтому это не
   «ужатый ПК», а своя раскладка: окна героя и модули — ленты со свайпом,
   снимки приложения панорамируются пальцем, карточки МЦС раскрываются
   тапом, плитки в две колонки, главная кнопка липнет к низу экрана.
   Десктоп от этого блока не меняется: всё под max-width: 700px. */

.browser__pan { overflow: hidden; }
.browser__hint { display: none; }
.m-cta { display: none; }
.rail-dots { display: none; }

@media (max-width: 700px) {
  .section { padding: 48px 0; }
  .h2 { font-size: 30px; max-width: none; }
  .lead { font-size: 16px; margin-top: 12px; }
  .eyebrow { margin-bottom: 10px; }

  /* герой: заголовок, кнопка, лента окон */
  .hero { padding: 36px 0 28px; }
  .hero__title { font-size: 40px; max-width: none; }
  .hero__lead { margin-top: 16px; font-size: 16px; }
  .hero__actions { margin-top: 22px; }
  .hero__facts { margin-top: 22px; font-size: 14.5px; }
  .hero__grid { gap: 26px; }
  .hero__strip { margin-top: 28px; }
  .strip__item { padding: 16px 18px; }
  .strip__item b { font-size: 16px; }
  .strip__item span { font-size: 13.5px; }

  /* лента — общий приём для окон героя и карточек модулей */
  .rail, .hero__stage {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: 16px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* лента выходит за поля страницы, чтобы следующая карточка выглядывала */
    margin-inline: -16px;
    padding: 6px 16px 18px;
  }
  .rail::-webkit-scrollbar, .hero__stage::-webkit-scrollbar { display: none; }
  .rail > *, .hero__stage > * { flex: 0 0 82%; scroll-snap-align: start; min-width: 0; }
  .hero__stage { min-height: 0; align-items: stretch; }
  .float { position: static; width: auto !important; animation: none; transform: none !important; display: block; }
  .float--index { display: flex; }
  .float--index .ring { width: 104px; height: 104px; }
  .float--index .ring__svg { width: 104px; height: 104px; }
  .rail .card { margin-top: 0; }
  .cards.rail { margin-top: 24px; }
  .card__art { height: 112px; }
  .card h3 { font-size: 18px; }
  .card p { font-size: 14.5px; }

  /* подсказка «листайте»: точки под лентой рисует main.js */
  .rail-dots { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
  .rail-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--hairline); transition: background 0.2s, transform 0.2s; }
  .rail-dots i.is-on { background: var(--primary); transform: scale(1.3); }

  /* двухколоночные разделы: текст короче, списки плотнее.
     minmax(0, 1fr), а не 1fr: снимок шириной 820px внутри иначе растягивает
     колонку и вместе с ней всю страницу — текст справа уезжал за экран. */
  .split { gap: 22px; grid-template-columns: minmax(0, 1fr); }
  .split__shot { min-width: 0; max-width: 100%; }
  /* clip, а не hidden: hidden делает body прокручиваемым контейнером и
     ломает липкую шапку (поймано снимком — шапка исчезла). */
  html, body { overflow-x: clip; }
  .checks { gap: 10px; margin-top: 18px; }
  .checks li { font-size: 14.5px; padding-left: 28px; }

  /* снимок приложения: не ужимать до нечитаемого, а дать пролистать */
  .browser__pan { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .browser__pan::-webkit-scrollbar { display: none; }
  .browser__pan img { width: 820px; max-width: none; }
  .browser__hint { display: block; text-align: center; font-size: 12.5px; color: var(--ink-3); margin-top: 10px; }
  .browser:hover { transform: none !important; }

  /* плитки пациента — две колонки, коротко */
  .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
  .tile { padding: 14px; gap: 4px; }
  .tile b { font-size: 15px; line-height: 1.25; }
  .tile span { font-size: 12.5px; line-height: 1.4; }

  /* карточки МЦС — заголовок и две строки, остальное по тапу */
  .cards--tight { gap: 10px; margin-top: 22px; }
  .card--flat { padding: 16px 18px; gap: 6px; cursor: pointer; }
  .card--flat h3 { font-size: 17px; padding-right: 24px; position: relative; }
  .card--flat h3::after {
    content: ""; position: absolute; right: 2px; top: 6px; width: 9px; height: 9px;
    border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
    transform: rotate(45deg); transition: transform 0.2s;
  }
  .card--flat.is-open h3::after { transform: rotate(-135deg); top: 10px; }
  .card--flat p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 14px; }
  .card--flat.is-open p { -webkit-line-clamp: unset; display: block; }

  /* переезд — шаги в две колонки */
  .migrate { gap: 22px; }
  .migrate__steps { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; }
  .step { padding: 14px; }
  .step b { font-size: 15px; }
  .step span { font-size: 12.5px; }

  /* цена */
  .price { gap: 22px; }
  .price__card { padding: 26px 20px; }

  /* FAQ */
  .qa summary { font-size: 16px; padding: 14px 0; }
  .qa p { font-size: 15px; }

  /* липкая кнопка внизу: появляется, когда герой ушёл, прячется у контактов */
  .m-cta {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--hairline);
    transform: translateY(110%); transition: transform 0.3s ease;
  }
  .m-cta.is-on { transform: none; }
  body.has-mcta { padding-bottom: 72px; }
  .footer { padding-bottom: 28px; }
}


/* ============================================================== ГЕРОЙ: ОКНА СИСТЕМЫ
   Первый экран — про систему целиком, а не про гигиену (замечание Уали
   2026-09-21). Окна: журнал, документы с ЭЦП, индекс налёта (маленьким —
   одна фишка из шести), бот записи в WhatsApp. Все нарисованы CSS, не
   снимками: снимок стареет с первым же релизом, а форма — нет. */
.hero__facts--wide { max-width: 56ch; }
.hero__facts--wide li { font-size: 14.5px; line-height: 1.45; }

/* Сцена 552px в ширину: журнал 300 + документ 240 = 540, иначе документ
   ложился на правую колонку журнала (замерено: наложение 24px). */
.float--journal { left: 0; top: 0; width: 300px; animation-delay: -1s; }
.float--doc { right: 0; top: 0; width: 240px; animation-delay: -4s; }
.float--index-small { left: 0; top: 304px; width: 300px; animation-delay: -2s; }
.float--index-small .ring, .float--index-small .ring__svg { width: 96px; height: 96px; }
.float--index-small .ring__num { font-size: 24px; }
.float--wa { left: auto; right: 0; top: 190px; width: 240px; animation-delay: -6s; }

/* Мини-журнал: две колонки, карточки светофором статусов приложения —
   жёлтый ожидает, белый подтверждён, зелёный обслужен; запись бота с
   монограммой «Б», как в настоящем журнале. */
.mj { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mj__col { display: grid; gap: 5px; align-content: start; }
.mj__head { font-size: 12px; font-weight: 600; color: var(--ink); padding: 0 2px 4px; border-bottom: 1px solid var(--hairline); }
.mj__head small { display: block; font-size: 10.5px; font-weight: 500; color: var(--ink-3); }
.mj__slot { font-size: 11px; font-weight: 600; line-height: 1.25; padding: 6px 7px; border-radius: 8px; border: 1px solid transparent; color: var(--ink); }
.mj__slot small { display: block; font-size: 10px; font-weight: 500; color: var(--ink-2); margin-top: 1px; }
.mj__slot--done { background: #e6f4ea; border-color: #bfe3c8; }
.mj__slot--ok { background: #fff; border-color: var(--hairline); }
.mj__slot--wait { background: #fdf3d8; border-color: #f2dd9c; }
.mj__slot--bot { background: #fff; border-color: var(--hairline); }
.mj__slot--free { background: transparent; border: 1px dashed var(--hairline); color: var(--ink-3); font-weight: 500; }

/* Документы: строка = документ, слева его состояние. */
.doc { display: grid; gap: 10px; }
.doc__row { display: flex; gap: 10px; align-items: center; }
.doc__row b { display: block; font-size: 13px; }
.doc__row span { display: block; font-size: 11.5px; color: var(--ink-3); }
.doc__row--muted b { color: var(--ink-2); }
.doc__ok, .doc__pending { width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto; position: relative; }
.doc__ok { background: var(--primary); }
.doc__ok::after { content: ""; position: absolute; left: 7px; top: 5px; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.doc__pending { border: 2px solid var(--hairline); background: #fff; }

/* Бот: входящие реплики пациента — серые справа, ответы бота — зелёные. */
.wa__bubble + .wa__bubble { margin-top: 6px; }
.wa__bubble--in { background: var(--tint); color: var(--ink); border-radius: 12px 12px 4px 12px; margin-left: 28px; }

@media (max-width: 1000px) {
  .float--journal { grid-column: 1 / -1; }
}

/* ---- Где теряют деньги (2026-09-26, питч «три дыры») ----
   Число — главное в карточке, поэтому оно крупное и одного цвета на всех
   трёх: это три равные потери, а не рейтинг. Источник подписан мелко у
   каждой — без него цифра читалась бы рекламой. */
.losses { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.loss {
  position: relative;
  display: grid; gap: 10px; align-content: start;
  padding: 26px 24px 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.loss__num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 5vw, 60px); line-height: 1; letter-spacing: -0.03em;
  color: var(--primary-strong);
  font-variant-numeric: tabular-nums;
}
.loss__num small { font-size: 0.5em; margin-left: 2px; }
.loss__what { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.3; }
.loss__why { color: var(--ink-2); font-size: 15px; }
.loss__fix { font-size: 15px; padding-top: 12px; border-top: 1px solid var(--hairline); }
.loss__fix b { color: var(--primary-strong); }
.loss__src { color: var(--ink-3); font-size: 12px; }
@media (max-width: 900px) { .losses { grid-template-columns: 1fr; } }

/* ---- Результат пилота ---- */
.proof { display: grid; grid-template-columns: 5fr 6fr; gap: 48px; align-items: center; }
.proof__figs { display: grid; grid-template-columns: max-content 1fr; column-gap: 18px; row-gap: 16px; align-items: baseline; margin-top: 28px; }
/* Одна сетка на все строки: ширину колонки чисел задаёт самое широкое
   («313 тыс ₸»), и подписи встают ровно, не наезжая на него. */
.proof__figs div { display: contents; }
.proof__figs b small { font-size: 0.5em; font-weight: 600; }
.proof__figs b {
  font-family: var(--font-display); font-weight: 700; font-size: 40px; line-height: 1;
  letter-spacing: -0.02em; text-align: right; font-variant-numeric: tabular-nums;
}
.proof__figs div:first-child b { color: var(--primary); }
.proof__figs span { color: var(--ink-2); font-size: 15px; }
.proof__note { margin-top: 22px; color: var(--ink-3); font-size: 13px; max-width: 520px; }
.proof__chart {
  margin: 0; padding: 22px 22px 18px;
  background: var(--surface); border: 1px solid var(--hairline);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.proof__chart figcaption { font-weight: 600; font-size: 15px; margin-bottom: 12px; }
.proof__chart svg { width: 100%; height: auto; overflow: visible; }
.proof__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 10px; color: var(--ink-2); font-size: 13px; }
.proof__legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--primary); vertical-align: -1px; margin-right: 6px; }
.proof__legend i.is-sun { opacity: 0.45; }
@media (max-width: 900px) {
  .proof { grid-template-columns: 1fr; gap: 28px; }
  .proof__figs b { font-size: 32px; }
}

.nav__links a { white-space: nowrap; }
