/* Сайт-витрина Dentobot. Свой CSS без фреймворков (решение №2 плана сайта).
   Оформление v3 (2026-09-13): тёмная шапка и первый экран, золотой акцент, глубина и движение —
   владелец попросил «динамики и элитности». Палитры переключаются атрибутом data-theme.
   Движение везде отключается при prefers-reduced-motion. */

:root,
[data-theme="teal"] {
  --primary: #0d7d73;
  --primary-dark: #0a5f58;
  --primary-bright: #2dd4bf;
  --primary-soft: #d7f5ef;
  --accent: #d9a441;          /* приглушённое золото: акцент, а не предупреждение */
  --accent-soft: #f6ecd8;
  --dark: #05302c;            /* подложка шапки, первого экрана и подвала */
  --dark-2: #0a4d46;
  --ink: #0b1220;
  --muted: #55627a;
  --line: rgba(11, 18, 32, .09);
  --bg: #f6f7f9;
  --card: #ffffff;
}
[data-theme="blue"] {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-bright: #60a5fa;
  --primary-soft: #dbeafe;
  --accent: #d9a441;
  --dark: #0b1b3a;
  --dark-2: #17306b;
}
[data-theme="graphite"] {
  --primary: #1f2937;
  --primary-dark: #111827;
  --primary-bright: #9ca3af;
  --primary-soft: #e5e7eb;
  --accent: #d9a441;
  --dark: #11151c;
  --dark-2: #232a35;
}

:root {
  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, .05);
  --shadow: 0 2px 4px rgba(11, 18, 32, .04), 0 14px 30px -16px rgba(11, 18, 32, .28);
  --shadow-lg: 0 30px 70px -30px rgba(5, 48, 44, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--primary); }
img, svg { max-width: 100%; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); letter-spacing: -0.035em; line-height: 1.04; }
h2 { font-size: clamp(1.5rem, 3vw, 2.15rem); margin-top: 0; }
h3 { font-size: 1.08rem; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .92rem; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 780px; }

/* шапка: тёмная, липкая, со стеклом */
.header {
  background: var(--dark);  /* запасной вариант для старых браузеров */
  background: color-mix(in srgb, var(--dark) 92%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  position: sticky;
  top: 0;
  z-index: 20;
  transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.header.scrolled { box-shadow: 0 18px 40px -28px rgba(0, 0, 0, .9); }
.header .container { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.24rem; color: #fff; text-decoration: none; letter-spacing: -0.02em; }
.logo svg { width: 36px; height: 36px; color: var(--primary-bright); transition: transform .35s var(--ease); }
.logo:hover svg { transform: translateY(-2px) rotate(-4deg); }
.nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav a { color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 500; font-size: .98rem; position: relative; transition: color .2s; }
.nav a:hover, .nav a.active { color: #fff; }
.nav > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.nav > a:not(.btn):hover::after, .nav > a.active::after { transform: scaleX(1); }
.nav a.btn { color: var(--dark); background: #fff; border-color: #fff; }
.nav a.btn:hover { color: var(--dark); background: var(--accent); border-color: var(--accent); }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid rgba(255, 255, 255, .25); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 1.2rem; }

/* кнопки */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 12px; font-weight: 600;
  text-decoration: none; border: 1px solid var(--primary); background: var(--primary);
  color: #fff; cursor: pointer; font-size: 1rem; font-family: inherit;
  box-shadow: 0 12px 24px -16px var(--primary);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 18px 30px -18px var(--primary); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--primary); box-shadow: none; }
.btn-outline:hover { background: var(--primary-soft); color: var(--primary-dark); }
.btn-sm { padding: 9px 16px; font-size: .95rem; border-radius: 10px; }

/* секции */
.section { padding: 72px 0; }
.section-alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero { padding: 84px 0 64px; background: linear-gradient(180deg, #fff, var(--bg) 70%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.18fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.22rem; color: var(--muted); max-width: 580px; }
/* на внутренних страницах заголовки длиннее — им крупный кегль главной не идёт */
.hero:not(.hero-dark) h1 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; color: var(--primary-dark);
  font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }

/* тёмный первый экран главной */
.hero-dark {
  background: var(--dark);  /* запасной вариант: без градиентов, но читаемо */
  background:
    radial-gradient(900px 420px at 12% -10%, color-mix(in srgb, var(--dark-2) 85%, transparent), transparent 62%),
    radial-gradient(700px 380px at 88% 0%, color-mix(in srgb, var(--primary) 42%, transparent), transparent 60%),
    linear-gradient(165deg, var(--dark), color-mix(in srgb, var(--dark) 75%, #000));
  color: #fff;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero-dark::before {
  content: ""; position: absolute; width: 680px; height: 680px; left: -180px; top: -320px;
  background: radial-gradient(circle, rgba(45, 212, 191, .18), transparent 62%);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-bright) 20%, transparent), transparent 62%);
  filter: blur(10px); pointer-events: none; animation: hero-glow 22s ease-in-out infinite;
}
@keyframes hero-glow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .55; }
  50% { transform: translate3d(120px, 60px, 0) scale(1.15); opacity: .85; }
}
.hero-dark > .container { position: relative; z-index: 1; }
.hero-dark::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: .55;
}
.hero-dark h1 { color: #fff; }
.hero-dark .lead { color: rgba(255, 255, 255, .74); }
.hero-dark .eyebrow { color: var(--accent); }
.hero-dark .muted { color: rgba(255, 255, 255, .72); }
.hero-dark .btn { background: #fff; border-color: #fff; color: var(--dark); box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .9); }
.hero-dark .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.hero-dark .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .38); box-shadow: none; }
.hero-dark .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }

/* картинка-диалог в первом экране */
.chat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); max-width: 430px; margin-left: auto; }
.hero-dark .chat {
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .14);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg);
  color: #fff;
}
.chat .msg { max-width: 86%; padding: 11px 15px; border-radius: 16px; margin-bottom: 10px; font-size: .95rem; width: fit-content; }
.chat .bot { background: var(--bg); border: 1px solid var(--line); }
.chat .user { background: var(--primary); color: #fff; margin-left: auto; }
.chat .ok { background: var(--primary-soft); border: 1px solid var(--primary); }
.hero-dark .chat .bot { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .92); }
.hero-dark .chat .user { background: var(--primary-bright); color: #04231f; border: 0; }
.hero-dark .chat .ok { background: rgba(255, 255, 255, .12); background: color-mix(in srgb, var(--primary-bright) 18%, transparent); border-color: color-mix(in srgb, var(--primary-bright) 55%, transparent); color: #fff; }
.hero-dark .chat-head { border-bottom-color: rgba(255, 255, 255, .12); }
.hero-dark .online { color: rgba(255, 255, 255, .6); }

/* «печатает…» — три точки */
.chat .typing { display: flex; gap: 5px; align-items: center; padding: 14px 16px; }
.chat .typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .45; animation: typing 1.2s infinite; }
.chat .typing i:nth-child(2) { animation-delay: .18s; }
.chat .typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-4px); opacity: .9; } }

/* Диалог играет как в мессенджере: окно фиксированной высоты, сообщения появляются по одному
   и подталкивают старые вверх (site.js прокручивает ленту). Класс chat-play ставит скрипт —
   без него и при «уменьшить движение» окно обычной высоты, все сообщения видны. */
.js .chat-play { display: flex; flex-direction: column; height: 600px; }
.js .chat-play .chat-body { flex: 1 1 auto; min-height: 0; overflow: hidden; scroll-behavior: smooth; }
.js .chat-play .msg:not(.shown) { display: none; }
.js .chat-play .msg.shown { animation: msg-in .45s var(--ease) both; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* сетки карточек и шагов */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--primary); border-color: color-mix(in srgb, var(--primary) 28%, transparent); }
.card h3 { margin-top: 0; }
.step { position: relative; padding-top: 12px; }
.step .num {
  display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center;
  border-radius: 12px; background: linear-gradient(145deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; margin-bottom: 14px; box-shadow: 0 10px 18px -12px var(--primary);
}
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding-left: 32px; position: relative; margin-bottom: 12px; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.x-list li::before { content: "✕"; color: #b91c1c; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .78rem; font-weight: 600; letter-spacing: .02em; }
.badge-soon { background: var(--accent-soft); color: #7a5312; }

/* Три момента, где теряется пациент: лента времени вместо трёх одинаковых карточек */
.moments { list-style: none; margin: 10px 0 0; padding: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.moments::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line); }
.moments li { position: relative; }
.moments li::before {
  content: ""; position: absolute; left: 0; top: -40px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft);
}
.moment-when { display: block; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .02em; margin-bottom: 8px; }
.moments h3 { margin-bottom: 8px; }
.moments p { margin: 0; }

/* Что делает ассистент: список со значками, без коробок */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px 44px; margin-top: 10px; }
.feature { display: grid; grid-template-columns: 46px 1fr; gap: 18px; align-items: start; }
.feature .ic { width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--primary-soft); color: var(--primary-dark); }
.feature h3 { margin: 5px 0 6px; }
.feature p { margin: 0; }

/* Из чего складывается цена: одна панель, три колонки через тонкие линии */
.pricing-model { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.pricing-model > div { padding: 26px 28px; }
.pricing-model > div + div { border-left: 1px solid var(--line); }
.pricing-model h3 { margin-top: 0; }
.pricing-model p { margin: 0; }

/* Снимки кабинета чуть под углом, выпрямляются под курсором */
.shot { transform: perspective(1400px) rotateX(2.5deg); transform-origin: 50% 0; transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
@media (hover: hover) and (pointer: fine) { .shot:hover { transform: none; box-shadow: var(--shadow-lg); } }

/* Таблица «чем отличается»: колонка Dentobot подсвечена */
.table th:nth-child(3), .table td:nth-child(3) { background: rgba(13, 125, 115, .06); background: color-mix(in srgb, var(--primary) 7%, transparent); }
.table th:nth-child(3) { color: var(--primary-dark); }
.table td:nth-child(3) { font-weight: 500; }

/* FAQ */
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; transition: color .2s; }
summary:hover { color: var(--primary); }
summary::after { content: "+"; color: var(--primary); font-weight: 700; transition: transform .25s var(--ease); }
details[open] summary::after { content: "−"; }
details p { margin: 10px 0 0; color: var(--muted); }

/* форма */
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .95rem; }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  padding: 12px 14px; border: 1px solid #d3dae4; border-radius: 12px; font: inherit; background: #fff; width: 100%;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field-check { flex-direction: row; align-items: center; gap: 10px; }
.field-check label { font-weight: 500; }
.errorlist { list-style: none; padding: 0; margin: 0 0 6px; color: #b91c1c; font-size: .9rem; }
.alert { padding: 13px 16px; border-radius: 12px; margin-bottom: 16px; background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-success { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.hp { position: absolute; left: -9999px; }

/* таблица */
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.table th, .table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table th { background: var(--bg); font-size: .88rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.table tbody tr { transition: background .2s; }
.table tbody tr:hover { background: var(--bg); background: color-mix(in srgb, var(--primary) 4%, transparent); }
.table-wrap { overflow-x: auto; }

/* подвал: тёмный, в пару к шапке */
.footer { padding: 44px 0; color: rgba(255, 255, 255, .6); font-size: .92rem; background: var(--dark); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer .container { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.footer strong { color: #fff; }
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
.footer a:hover { color: var(--accent); }

/* Крупная цитата клиента и кейс первой клиники */
.proof { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.quote { margin: 0; max-width: 860px; }
.quote blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.45; letter-spacing: -0.015em; font-weight: 500;
}
/* кавычка — свой значок: типографской «„“» в шрифте Onest нет, вместо неё рисуется квадрат */
.quote-mark { width: 42px; height: 42px; color: var(--accent); opacity: .7; display: block; margin-bottom: 10px; }
.quote figcaption { display: flex; align-items: center; gap: 16px; margin: 22px 0 0; }
.quote figcaption > span { display: flex; flex-direction: column; }
.quote-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 2px solid var(--card); box-shadow: var(--shadow); }
.case { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; margin-bottom: 40px; }
.case h3 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.case-metrics { display: grid; gap: 14px; }
.case-metrics > div {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px;
  display: flex; flex-direction: column; gap: 2px;
}
.case-metrics b { font-size: 1.6rem; letter-spacing: -0.03em; color: var(--primary); font-variant-numeric: tabular-nums; }

/* Калькулятор потерь */
.calc-section { background: linear-gradient(180deg, var(--accent-soft), var(--card) 65%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.calc { display: grid; grid-template-columns: 1.15fr .85fr; gap: 32px; margin-top: 28px; align-items: start; }
.calc-controls { display: grid; gap: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.calc-field { display: grid; gap: 10px; }
.calc-field > span:first-child { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-weight: 600; font-size: .96rem; }
.calc-field b { font-size: 1.15rem; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-hint { color: var(--muted); font-size: .85rem; }
.calc input[type="range"] { width: 100%; height: 6px; appearance: none; -webkit-appearance: none; background: var(--primary-soft); border-radius: 999px; outline: none; }
.calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--primary); border: 4px solid #fff; box-shadow: 0 4px 12px -4px var(--primary); cursor: pointer;
}
.calc input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--primary);
  border: 4px solid #fff; box-shadow: 0 4px 12px -4px var(--primary); cursor: pointer;
}
.calc-result { background: var(--dark); color: #fff; border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-lg); }
.calc-label { color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; }
.calc-big { font-size: clamp(2.2rem, 4vw, 3rem); font-weight: 700; letter-spacing: -0.03em; margin: 6px 0 4px; color: var(--accent); font-variant-numeric: tabular-nums; }
.calc-sub { color: rgba(255, 255, 255, .75); font-size: .95rem; }
.calc-rows { margin: 20px 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.calc-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .75); font-size: .95rem; }
.calc-rows b { color: #fff; font-variant-numeric: tabular-nums; }
.calc-result .btn { background: #fff; border-color: #fff; color: var(--dark); width: 100%; text-align: center; }
.calc-result .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.calc-note { color: rgba(255, 255, 255, .55); font-size: .82rem; margin: 16px 0 0; }

/* Снимки кабинета: продукт на экране, а не обещания */
.shots { display: grid; gap: 28px; margin-top: 28px; }
.shot { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.shot img { display: block; width: 100%; height: auto; }
.shot-bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
.shot-bar span { width: 10px; height: 10px; border-radius: 50%; background: #d3dae4; }
.shot-bar b { margin-left: 10px; font-weight: 500; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.shot figcaption { padding: 16px 20px; color: var(--muted); font-size: .93rem; }

/* Тёмная секция «Пока клиника спит»: смысловая пауза в середине страницы */
.night {
  background: var(--dark);
  background:
    radial-gradient(700px 340px at 80% 0%, color-mix(in srgb, var(--primary) 32%, transparent), transparent 60%),
    linear-gradient(160deg, var(--dark), color-mix(in srgb, var(--dark) 78%, #000));
  color: #fff;
}
.night h2 { color: #fff; }
.night .muted { color: rgba(255, 255, 255, .72); max-width: 640px; }
.night .eyebrow { color: var(--accent); }
.night .eyebrow .ic { width: 18px; height: 18px; color: var(--accent); }
.night .eyebrow::before { display: none; }
.night-grid { display: grid; grid-template-columns: 1fr 190px 1fr; gap: 24px; align-items: center; margin-top: 28px; }
.night-mascot { display: flex; align-items: center; justify-content: center; }
.night-mascot .mascot { max-width: 170px; }
.night-chat, .night-schedule {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}
.night-time { position: relative; color: rgba(255, 255, 255, .5); font-size: .82rem; margin-bottom: 10px; letter-spacing: .08em; }
.night-time .t-morning { position: absolute; left: 0; top: 0; opacity: 0; }
.night .msg { max-width: 88%; padding: 11px 15px; border-radius: 16px; margin-bottom: 10px; font-size: .95rem; width: fit-content; }
.night .msg.user { background: var(--primary-bright); color: #04231f; margin-left: auto; }
.night .msg.bot { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .12); }
.night .msg.ok { background: rgba(255, 255, 255, .12); background: color-mix(in srgb, var(--primary-bright) 20%, transparent); border: 1px solid color-mix(in srgb, var(--primary-bright) 55%, transparent); }
.night-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .6); font-size: .88rem; }
.sched-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.sched-head .small { color: rgba(255, 255, 255, .55); }
.sched-row { display: flex; gap: 16px; padding: 11px 12px; border-radius: 12px; align-items: flex-start; }
.sched-row .muted { color: rgba(255, 255, 255, .5); }
.sched-time { color: rgba(255, 255, 255, .7); font-variant-numeric: tabular-nums; min-width: 48px; }
.sched-row.is-new { position: relative; }
.sched-row.is-new::before {
  content: ""; position: absolute; inset: 0; border-radius: 12px; pointer-events: none;
  background: rgba(255, 255, 255, .1);
  background: color-mix(in srgb, var(--primary-bright) 16%, transparent);
  border: 1px solid rgba(255, 255, 255, .3);
  border: 1px solid color-mix(in srgb, var(--primary-bright) 55%, transparent);
}
.sched-row.is-new > * { position: relative; }
.sched-row.is-new .small { color: rgba(255, 255, 255, .75); }
.sched-row.is-new .slot-free { position: absolute; left: 64px; top: 11px; opacity: 0; }  /* «свободно» до записи */
.sched-row.is-new .slot-new .small { display: block; max-height: 44px; overflow: hidden; }  /* вторая строчка раскрывается при записи */


/* Сценка «Пока клиника спит»: ролик 18 с на чистом CSS. Разметка — конечный кадр,
   ключевые кадры прячут и показывают части по общей шкале. JS только ставит на паузу
   вне экрана (.is-paused). При «уменьшить движение» всё выключено (см. хвост файла). */
.night { position: relative; overflow: hidden; }
.night > .container { position: relative; z-index: 1; }
.night-dawn {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(160deg, #0a5f58, #0d7d73);
  background: linear-gradient(160deg, var(--primary-dark), var(--primary) 70%, color-mix(in srgb, var(--primary) 70%, var(--accent)));
  animation: night-dawn 18s linear infinite;
}
.night-grid { animation: night-fade 18s linear infinite; }
.night .n-step-1 { animation: n-step-1 18s linear infinite; }
.night .n-step-2 { animation: n-step-2 18s linear infinite; }
.night .n-step-3 { animation: n-step-3 18s linear infinite; }
.night .n-step-4 { animation: n-step-4 18s linear infinite; }
.night .n-step-5 { animation: n-step-5 18s linear infinite; }
.night .n-step-6 { animation: n-step-6 18s linear infinite; }
.night-time .t-night { display: inline-block; animation: night-t-night 18s linear infinite; }
.night-time .t-morning { animation: night-t-morning 18s linear infinite; }
.sched-row.is-new::before { animation: night-row 18s linear infinite; }
.sched-row.is-new .slot-new { animation: night-slot-new 18s linear infinite; }
.sched-row.is-new .slot-free { animation: night-slot-free 18s linear infinite; }
.night .sched-row.is-new .slot-new .small { animation: night-slot-small 18s linear infinite; }
.night-mascot .mascot-eyes { animation: night-eyes 18s linear infinite; }
.night-mascot .mascot-eye-open { animation: night-eye-open 18s linear infinite; }
.night-mascot .mascot-eye-wink { animation: night-eye-wink 18s linear infinite; }
.night-mascot .mascot-mouth-smile { animation: night-smile 18s linear infinite; }
.night-mascot .mascot-mouth-open { animation: night-talk 18s linear infinite, mascot-talk .3s ease-in-out infinite alternate; }
.night-mascot .mascot-neon, .night-mascot .mascot-mic { animation: night-neon 18s linear infinite; }
.night-mascot .mascot-floor { animation: night-floor 18s linear infinite, mascot-floor 4s ease-in-out infinite; }
.night.is-paused .night-dawn, .night.is-paused .night-grid, .night.is-paused .night-grid *, .night.is-paused .night-grid *::before { animation-play-state: paused; }
@keyframes night-fade { 0% { opacity: 0; } 2.22%, 96.67% { opacity: 1; } 100% { opacity: 0; } }
@keyframes night-chat-m { 0%, 80% { opacity: 1; } 82.78%, 100% { opacity: 0; } }
@keyframes night-sched-m { 0%, 81.67% { opacity: 0; transform: translateY(10px); } 84.44%, 100% { opacity: 1; transform: none; } }
@keyframes night-dawn { 0%, 83.33% { opacity: 0; } 92.22%, 96.11% { opacity: 1; } 100% { opacity: 0; } }
@keyframes n-step-1 { 0%, 13.89% { opacity: 0; transform: translateY(8px); } 16.11%, 100% { opacity: 1; transform: none; } }
@keyframes n-step-2 { 0%, 50.00% { opacity: 0; transform: translateY(8px); } 52.22%, 100% { opacity: 1; transform: none; } }
@keyframes n-step-3 { 0%, 58.33% { opacity: 0; transform: translateY(8px); } 60.56%, 100% { opacity: 1; transform: none; } }
@keyframes n-step-4 { 0%, 72.22% { opacity: 0; transform: translateY(8px); } 74.44%, 100% { opacity: 1; transform: none; } }
@keyframes n-step-5 { 0%, 78.89% { opacity: 0; transform: translateY(8px); } 81.11%, 100% { opacity: 1; transform: none; } }
@keyframes n-step-6 { 0%, 87.78% { opacity: 0; transform: translateY(8px); } 90.00%, 100% { opacity: 1; transform: none; } }
@keyframes night-t-night { 0%, 84.44% { opacity: 1; } 87.22%, 100% { opacity: 0; } }
@keyframes night-t-morning { 0%, 84.44% { opacity: 0; } 87.22%, 100% { opacity: 1; } }
@keyframes night-row { 0%, 75.00% { opacity: 0; } 77.22%, 100% { opacity: 1; } }
@keyframes night-slot-new { 0%, 75.00% { opacity: 0; transform: translateX(14px); } 77.78%, 100% { opacity: 1; transform: none; } }
@keyframes night-slot-small { 0%, 75.00% { max-height: 0; } 77.78%, 100% { max-height: 44px; } }
@keyframes night-slot-free { 0%, 74.44% { opacity: 1; } 75.56%, 100% { opacity: 0; } }
@keyframes night-eyes { 0%, 33.33% { transform: scaleY(.12); } 35.56%, 60.00%, 61.67%, 100% { transform: scaleY(1); } 60.83% { transform: scaleY(.08); } }
@keyframes night-eye-open { 0.00% { opacity: 1; } 74.72% { opacity: 1; } 75.00% { opacity: 0; } 78.89% { opacity: 0; } 79.17% { opacity: 1; } 100.00% { opacity: 1; } }
@keyframes night-eye-wink { 0.00% { opacity: 0; } 74.72% { opacity: 0; } 75.00% { opacity: 1; } 78.89% { opacity: 1; } 79.17% { opacity: 0; } 100.00% { opacity: 0; } }
@keyframes night-smile { 0.00% { opacity: 1; } 35.56% { opacity: 1; } 36.11% { opacity: 0; } 48.89% { opacity: 0; } 49.44% { opacity: 1; } 66.67% { opacity: 1; } 67.22% { opacity: 0; } 71.67% { opacity: 0; } 72.22% { opacity: 1; } 100.00% { opacity: 1; } }
@keyframes night-talk { 0.00% { opacity: 0; } 35.56% { opacity: 0; } 36.11% { opacity: 1; } 48.89% { opacity: 1; } 49.44% { opacity: 0; } 66.67% { opacity: 0; } 67.22% { opacity: 1; } 71.67% { opacity: 1; } 72.22% { opacity: 0; } 100.00% { opacity: 0; } }
@keyframes night-neon { 0%, 33.33% { opacity: .12; } 36.11%, 100% { opacity: 1; } }
@keyframes night-floor { 0%, 33.33% { opacity: .08; } 36.11%, 100% { opacity: .4; } }

/* Строка метрик под первым экраном */
.metrics-bar { background: var(--card); border-bottom: 1px solid var(--line); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 24px; }
.metrics > div { display: flex; gap: 12px; align-items: center; font-size: .95rem; color: var(--muted); }
.metrics b { color: var(--ink); font-weight: 700; }

/* Значки: один спрайт, цвет наследуется от текста */
.ic { width: 24px; height: 24px; flex: none; color: var(--primary); }

/* Ссылка «перейти к содержимому» — видна только с клавиатуры */
.skip { position: absolute; left: -9999px; top: 0; z-index: 50; }
.skip:focus { left: 12px; top: 12px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow); }

/* Видимая обводка при работе с клавиатуры */
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Четыре причины не бояться */
.trust { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.trust li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; color: var(--muted); }
.trust strong { color: var(--ink); font-weight: 600; }

/* Кто за этим стоит / предложение пилота */
.founder { display: flex; gap: 28px; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.founder-photo { border-radius: 20px; object-fit: cover; }
.founder-words { font-size: 1.15rem; line-height: 1.5; margin-bottom: 12px; }
.founder-name { margin: 0 0 4px; }
.pilot {
  background: linear-gradient(140deg, var(--accent-soft), var(--card) 70%);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow);
}
.pilot h3 { font-size: 1.5rem; margin-bottom: 10px; }
.pilot .muted { max-width: 620px; }

/* Подвал */
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; align-items: start; }
.footer .logo { font-size: 1.1rem; margin-bottom: 10px; }
.footer .logo svg { width: 30px; height: 30px; }
.footer-brand p { color: rgba(255, 255, 255, .6); margin-bottom: 16px; max-width: 320px; }
.footer-brand .btn { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; box-shadow: none; }
.footer-brand .btn:hover { background: var(--accent); border-color: var(--accent); color: var(--dark); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 4px; font-size: .78rem; text-transform: uppercase; letter-spacing: .14em; color: rgba(255, 255, 255, .45); font-weight: 600; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; color: rgba(255, 255, 255, .5); }

/* превью айдентики */
.brand-variant { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; background: var(--card); }
.brand-marks { display: inline-flex; align-items: center; gap: 22px; padding: 10px 18px 10px 12px; border-radius: 14px; background: var(--dark); margin-bottom: 12px; }
.brand-marks .logo svg { width: 36px; height: 36px; }
.swatches { display: flex; gap: 10px; margin: 12px 0; }
.swatch { width: 44px; height: 44px; border-radius: 12px; border: 1px solid rgba(0, 0, 0, .08); }

/* Живая проба на главной */
.demo { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; max-width: 640px; box-shadow: var(--shadow); }
.demo-chat { display: flex; flex-direction: column; gap: 8px; max-height: 320px; overflow-y: auto; margin-bottom: 14px; }
.demo-choices { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; align-items: center; }
.demo-note { margin: 12px 0 0; }

/* Тарифы */
.card-best { border-color: var(--primary); box-shadow: var(--shadow); }
.price { font-size: 1.9rem; font-weight: 700; margin: 10px 0 6px; letter-spacing: -0.03em; }

/* Хлебные крошки */
.crumbs { padding: 16px 0 0; font-size: .85rem; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--primary); }

/* Образ ассистента — персонаж №3 (2026-09-15): парит, моргает, подмигивает, неон дышит.
   Состояния ставит site.js: .is-talking — говорит (пока в диалоге «печатает…»), .is-asleep —
   дремлет (сценка «пока клиника спит»). Всё движение — transform и opacity. */
.mascot { width: 100%; max-width: 280px; height: auto; display: block; margin: 0 auto; --mascot-neon: var(--primary-bright); }
.with-mascot .mascot, .hero:not(.hero-dark) .mascot { --mascot-neon: var(--primary); --mascot-floor: var(--ink); --mascot-floor-opacity: .1; }  /* на светлом фоне неон темнее */
.mascot-float { animation: mascot-float 4s ease-in-out infinite; }
.mascot-floor { transform-box: fill-box; transform-origin: center; opacity: var(--mascot-floor-opacity, .4); animation: mascot-floor 4s ease-in-out infinite; }
.mascot-head { transform-box: fill-box; transform-origin: 50% 62%; transition: transform .7s var(--ease); }
.mascot-pupils { transition: transform .35s var(--ease); }
.mascot-eyes { transform-box: fill-box; transform-origin: center; animation: mascot-blink 5.2s ease-in-out infinite; transition: transform .45s var(--ease); }
.mascot-eye-open { animation: mascot-wink-open 9s ease-in-out infinite; }
.mascot-eye-wink { opacity: 0; animation: mascot-wink-shut 9s ease-in-out infinite; }
.mascot-neon { animation: mascot-neon 3s ease-in-out infinite; transition: opacity .5s; }
.mascot-mic { animation: mascot-mic 2.4s ease-in-out infinite; transition: opacity .5s; }
.mascot-mouth-open { opacity: 0; transform-box: fill-box; transform-origin: center; }
.mascot.is-talking .mascot-mouth-smile { opacity: 0; }
.mascot.is-talking .mascot-mouth-open { opacity: 1; animation: mascot-talk .3s ease-in-out infinite alternate; }
.mascot.is-talking .mascot-mic { animation: none; opacity: 1; }
.mascot.is-asleep .mascot-eyes { animation: none; transform: scaleY(.12); }
.mascot.is-asleep .mascot-eye-open, .mascot.is-asleep .mascot-eye-wink { animation: none; }
.mascot.is-asleep .mascot-neon, .mascot.is-asleep .mascot-mic { animation: none; opacity: .18; }
.mascot.is-asleep .mascot-floor { animation: none; opacity: .12; }
@keyframes mascot-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
@keyframes mascot-floor { 0%, 100% { transform: scale(1); } 50% { transform: scale(.82); } }
@keyframes mascot-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
@keyframes mascot-wink-open { 0%, 70%, 80%, 100% { opacity: 1; } 72%, 78% { opacity: 0; } }
@keyframes mascot-wink-shut { 0%, 70%, 80%, 100% { opacity: 0; } 72%, 78% { opacity: 1; } }
@keyframes mascot-neon { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes mascot-mic { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes mascot-talk { from { transform: scaleY(.35); } to { transform: scaleY(1); } }

/* Аватар ассистента в шапке диалога */
.avatar { width: 44px; height: 44px; flex: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.chat-head b { display: block; font-size: .95rem; }
.online { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 6px; }
.online::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); } 70% { box-shadow: 0 0 0 7px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* Сцена первого экрана: персонаж стоит рядом с окном диалога, чуть заходя на него,
   за ним — неоновое пятно. Диалог — его реплики. */
.hero-stage { position: relative; display: flex; align-items: center; justify-content: flex-end; }
.hero-stage::before {
  content: ""; position: absolute; left: -60px; top: 50%; margin-top: -180px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .26), transparent 64%);
  background: radial-gradient(circle, color-mix(in srgb, var(--primary-bright) 28%, transparent), transparent 64%);
  filter: blur(18px); pointer-events: none;
}
.hero-mascot { position: relative; z-index: 2; width: 200px; flex: none; margin: 0 -40px 0 0; }
.hero-mascot .mascot { max-width: none; margin: 0; }
.hero-stage .chat { position: relative; z-index: 1; flex: 1 1 auto; max-width: 400px; margin-left: 0; }

/* Карточка «запись в расписании» в конце диалога: то, чем ассистент отличается от чат-бота */
.chat .sched-card {
  display: flex; align-items: center; gap: 12px; width: 100%; max-width: 100%;
  padding: 12px 14px; border-radius: 14px; margin-top: 14px;
  background: var(--card); border: 1px solid var(--primary); font-size: .9rem;
}
.chat .sched-card .ic { color: var(--primary); }
.chat .sched-card b { display: block; }
.chat .sched-card span:not(.sched-check) { display: block; color: var(--muted); font-size: .84rem; }
.chat .sched-check {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%; flex: none;
  background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .85rem;
}
.hero-dark .chat .sched-card {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .35);
  border-color: color-mix(in srgb, var(--primary-bright) 55%, transparent);
  color: #fff;
}
.hero-dark .chat .sched-card .ic { color: var(--primary-bright); }
.hero-dark .chat .sched-card span:not(.sched-check) { color: rgba(255, 255, 255, .7); }
.hero-dark .chat .sched-check { background: var(--primary-bright); color: #04231f; }
.js .chat-play .sched-card.shown { animation: card-in .6s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }

/* Текст первого экрана появляется по очереди: надзаголовок, заголовок, текст, кнопки */
.js .hero-copy > * { opacity: 0; transform: translateY(14px); }
.js .hero-copy.in > * { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .hero-copy.in > :nth-child(2) { transition-delay: 80ms; }
.js .hero-copy.in > :nth-child(3) { transition-delay: 160ms; }
.js .hero-copy.in > :nth-child(4) { transition-delay: 240ms; }
.js .hero-copy.in > :nth-child(5) { transition-delay: 320ms; }

/* Блок «картинка слева, текст справа» */
.with-mascot { display: grid; grid-template-columns: 220px 1fr; gap: 32px; align-items: center; }

/* Появление блоков при прокрутке: включается только если работает JavaScript */
.js .reveal { opacity: 0; transform: translateY(20px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mascot-float, .mascot-floor, .mascot-eyes, .mascot-eye-open, .mascot-eye-wink, .mascot-neon,
  .mascot-mic, .mascot-mouth-open, .online::before, .chat .typing i,
  .hero-dark::before { animation: none; }
  .mascot-eye-wink, .mascot.is-talking .mascot-mouth-open { opacity: 0; }
  .mascot-eye-open, .mascot.is-talking .mascot-mouth-smile { opacity: 1; }
  .mascot-head, .mascot-pupils, .mascot-eyes { transition: none; transform: none; }
  /* правила сценки точнее общих, поэтому здесь !important: иначе ролик не остановить */
  .night-dawn, .night-grid, .night-grid *, .night-grid *::before { animation: none !important; }
  .js .reveal, .js .chat-play .msg, .js .hero-copy > * { opacity: 1; transform: none; transition: none; }
  .js .chat-play { height: auto; }
  .js .chat-play .msg { display: block; animation: none; }
  .js .chat-play .sched-card { display: flex; }
  .card:hover, .btn:hover, .logo:hover svg, .shot { transform: none; transition: none; }
}

@media (max-width: 860px) {
  .hero-grid, .grid, .grid-2, .grid-4, .form-row, .with-mascot,
  .trust, .footer-grid, .features, .pricing-model { grid-template-columns: 1fr; }
  .moments { grid-template-columns: 1fr; padding-top: 0; gap: 24px; }
  .moments::before { display: none; }
  .moments li { padding-left: 28px; }
  .moments li::before { top: 4px; }
  .pricing-model > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .shot { transform: none; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 14px; padding: 18px 0; }
  .night-grid, .calc, .case { grid-template-columns: 1fr; }
  /* сценка на телефоне: персонаж маленький у заголовка, переписка и расписание занимают одно
     место и сменяют друг друга в момент записи (14,4–15,2 с); конечный кадр — расписание */
  .only-wide { display: none; }
  .night .container { position: relative; }
  .night .container > h2, .night .container > .muted { padding-right: 112px; }
  .night-mascot { position: absolute; top: 14px; right: 24px; width: 96px; }
  .night-mascot .mascot { max-width: 96px; }
  .night-grid { align-items: stretch; gap: 0; }
  .night-chat, .night-schedule { grid-area: 1 / 1; }
  .night-chat { opacity: 0; animation: night-chat-m 18s linear infinite; }
  .night-schedule { animation: night-sched-m 18s linear infinite; }
  .night-chat .night-note { display: none; }
  .night .msg { font-size: .9rem; padding: 9px 13px; }
  .night-note { font-size: .84rem; }
  .founder { flex-direction: column; text-align: left; align-items: flex-start; }
  .chat { margin: 0 auto; }
  .with-mascot .mascot { max-width: 180px; margin-bottom: 8px; }
  /* на телефоне заголовок первый; персонаж стоит на окне диалога, небольшой */
  .hero-stage { flex-direction: column; align-items: center; }
  .hero-stage::before { left: 50%; top: -40px; margin-top: 0; width: 240px; height: 240px; margin-left: -120px; }
  .hero-mascot { width: 128px; margin: 0 0 -6px; }
  .hero-stage .chat { width: 100%; max-width: 100%; }
  .js .chat-play { height: 520px; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    align-items: flex-start; background: var(--dark); border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: 18px 24px; gap: 16px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: inline-block; }
  .header .container { position: relative; }
  .section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
}

/* Длинный юридический текст (политика): мельче основного, с воздухом между разделами,
   чтобы документ читался как документ и не спорил с остальными страницами. */
.legal { color: var(--muted); font-size: .92rem; line-height: 1.62; margin-top: 32px; }
.legal h2 { font-size: 1.22rem; margin: 34px 0 12px; color: var(--ink); }
.legal h3 { font-size: 1rem; margin: 22px 0 8px; color: var(--ink); }
.legal p { margin: 0 0 10px; }
.legal ul { margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }

/* Полоса про cookie: не перекрывает чтение, закрывается одним нажатием и больше не приходит. */
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
  display: none; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 26px 60px -34px rgba(5, 48, 44, .75); padding: 13px 18px;
  font-size: .88rem; color: var(--muted); }
.cookie-note.show { display: flex; }
.cookie-note p { margin: 0; max-width: 760px; }
.cookie-switch { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 14px 0 18px; }
@media (max-width: 640px) { .cookie-note { padding: 14px; font-size: .84rem; } }
