/* Сайт novison.ru, «ночь → рассвет»: страница темнеет к звёздам сверху и светлеет к футеру.
   Анимации — static/site.js (GSAP + Lenis). Без JS и при «уменьшить движение» всё видно сразу. */
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/onest-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Onest'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(fonts/onest-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/lora-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/lora-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/lora-cyrillic-italic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Lora'; font-style: italic; font-weight: 400 700; font-display: swap; src: url(fonts/lora-latin-italic.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

@property --angle { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

:root {
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
  --font-body: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --night-0: #070a1c;
  --night-1: #0c1130;
  --night-2: #161b45;
  --night-3: #2a2558;
  --text: #eef0fb;
  --muted: #a6acd2;
  --faint: #6f76a3;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .045);
  --card-strong: rgba(255, 255, 255, .075);

  --lamp: #ffc97a;
  --lamp-deep: #f3a85b;
  --lamp-ink: #2b1a06;
  --lavender: #aeb6ff;
  --dawn-1: #f6a184;
  --dawn-2: #ffd8a6;

  --radius: 22px;
  --wrap: 1120px;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font: 400 17px/1.6 var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(120, 110, 255, .22), transparent 60%),
    radial-gradient(900px 600px at -10% 20%, rgba(70, 120, 255, .12), transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 30%, var(--night-2) 70%, var(--night-3) 100%);
  background-color: var(--night-1);
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: rgba(255, 201, 122, .35); }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* Звёзды. Без JS — узор static/img/stars.svg, с JS — canvas: мерцание, параллакс и падающие звёзды */
.sky { position: absolute; inset: 0 0 auto 0; height: 1600px; pointer-events: none; z-index: 0; overflow: hidden; }
.sky::before, .sky::after {
  content: ""; position: absolute; inset: 0;
  background: url(img/stars.svg) repeat;
  background-size: 600px 600px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 100%);
}
.sky::after { background-position: 300px 170px; opacity: .55; animation: twinkle 6s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .15; } to { opacity: .7; } }
.stars { display: none; position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.has-stars .stars { display: block; }
.has-stars .sky { display: none; }

/* Тёплый свет лампы за курсором (только мышь) */
.glow {
  position: fixed; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; z-index: 0;
  border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 201, 122, .07), rgba(174, 182, 255, .035) 55%, transparent);
  transition: opacity .6s;
}
.glow.on { opacity: 1; }

main, header, footer { position: relative; z-index: 1; }

/* === Шапка === */
.top {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(7, 10, 28, .55);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.top.scrolled { border-bottom-color: var(--line); background: rgba(7, 10, 28, .78); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 500 22px/1 var(--font-head); letter-spacing: .02em; }
.logo .mark { width: 32px; height: 32px; overflow: visible; filter: drop-shadow(0 0 10px rgba(255, 201, 122, .35)); }
.mark-moon { transform-origin: 17px 17px; transition: transform .8s var(--ease-out); }
.mark-spark { transform-box: fill-box; transform-origin: center; animation: spark 4s ease-in-out infinite; }
.logo:hover .mark-moon { transform: rotate(14deg); }
@keyframes spark { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.55) rotate(45deg); opacity: .6; } }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { position: relative; text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--lamp);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* === Кнопки === */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), box-shadow .25s ease, background .2s;
  cursor: pointer; border: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-lamp {
  color: var(--lamp-ink);
  background: linear-gradient(180deg, #ffd796, var(--lamp) 55%, var(--lamp-deep));
  box-shadow: 0 10px 30px -8px rgba(255, 190, 110, .55), inset 0 1px 0 rgba(255, 255, 255, .6);
}
/* Блик пробегает по кнопке раз в несколько секунд */
.btn-lamp::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .7) 50%, transparent 70%);
  transform: translateX(-130%); animation: shine 5.5s var(--ease-out) infinite;
}
@keyframes shine { 0%, 60% { transform: translateX(-130%); } 85%, 100% { transform: translateX(130%); } }
.btn-lamp:hover { box-shadow: 0 16px 44px -8px rgba(255, 190, 110, .8), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { color: var(--text); background: var(--card-strong); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .11); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn svg { width: 20px; height: 20px; }
.btn-magnet { will-change: transform; }

/* === Первый экран === */
.hero { position: relative; padding: 72px 0 64px; overflow-x: clip; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--lavender);
}
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 74px); line-height: 1.04; margin: 18px 0 22px; }
h1 em, h2 em { font-style: italic; color: var(--lamp); font-weight: 500; }
h1 em { text-shadow: 0 0 40px rgba(255, 201, 122, .35); }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 560px; margin: 0 0 34px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-notes { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes .ico { width: 18px; height: 18px; color: var(--lamp); }

/* Луна за правым краем телефона: плавает, ореол дышит, искры мерцают. Появление и уход при прокрутке — site.js */
.moon {
  position: absolute; z-index: -1; pointer-events: none;
  top: -110px; right: clamp(-190px, calc((100vw - var(--wrap)) / -2 - 40px), -110px);
  width: 330px; height: 330px;
}
.moon-art { width: 100%; height: 100%; overflow: visible; animation: float 9s ease-in-out infinite; }
.moon-body { filter: drop-shadow(0 0 18px rgba(255, 214, 150, .55)); }
.moon-line { opacity: 0; }
.moon-halo { transform-box: fill-box; transform-origin: center; animation: breathe 7s ease-in-out infinite; }
.moon-spark { transform-box: fill-box; transform-origin: center; animation: spark 3.6s ease-in-out infinite; }
.moon-spark.s2 { animation-delay: -1.2s; animation-duration: 4.4s; }
.moon-spark.s3 { animation-delay: -2.4s; animation-duration: 5.2s; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(3deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: .85; } 50% { transform: scale(1.08); opacity: 1; } }

/* === Телефон с перепиской === */
.phone-stage { position: relative; z-index: 1; justify-self: center; width: min(100%, 360px); perspective: 1400px; }
.phone {
  position: relative; width: 100%;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2f55, #10132c);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08), inset 0 1px 0 rgba(255, 255, 255, .12);
  transform-style: preserve-3d; will-change: transform;
}
.phone::after {
  content: ""; position: absolute; inset: -60px -40px; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 140, 255, .35), transparent);
  filter: blur(10px);
  animation: breathe 8s ease-in-out infinite;
}
.screen { border-radius: 34px; overflow: hidden; background: #0e1621; }
.tg-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #17212b; border-bottom: 1px solid rgba(255, 255, 255, .04); }
.tg-ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, #3b3f8c, #1b1e4a); }
.tg-ava svg { width: 26px; height: 26px; }
.tg-name { font-weight: 600; font-size: 15px; line-height: 1.2; }
.tg-sub { font-size: 13px; color: #7f91a4; transition: color .3s; }
.tg-sub.typing-now { color: #6ab3f3; }
.tg-chat {
  padding: 16px 12px 18px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; font-size: 14px; line-height: 1.45;
  background: radial-gradient(400px 300px at 80% 0%, rgba(90, 80, 200, .18), transparent 70%), #0e1621;
  overflow: hidden;
}
.bubble { align-self: flex-start; max-width: 92%; padding: 9px 12px 8px; border-radius: 16px 16px 16px 6px; background: #182533; white-space: pre-line; transform-origin: 0 100%; }
.bubble time { display: block; text-align: right; font-size: 11px; color: #6d8299; margin-top: 2px; }
.kb { align-self: flex-start; width: 92%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.kb span { position: relative; overflow: hidden; padding: 8px 4px; border-radius: 10px; text-align: center; font-size: 13px; background: rgba(43, 82, 120, .55); color: #dbe7f3; transition: background .3s, box-shadow .3s; }
.kb span.on { background: #3e74a8; color: #fff; box-shadow: 0 0 0 2px rgba(255, 201, 122, .6); }
.kb .ripple { position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px; border-radius: 50%; background: rgba(255, 255, 255, .45); pointer-events: none; }
.typing { display: none; align-self: flex-start; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 6px; background: #182533; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #7f91a4; animation: dot 1.1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* === Бегущая строка с темами ночей === */
.marquee {
  position: relative; z-index: 1; overflow: hidden; padding: 20px 0;
  border-block: 1px solid var(--line); background: rgba(255, 255, 255, .02);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }
.marquee span { font: italic 400 24px/1 var(--font-head); color: var(--muted); white-space: nowrap; }
.mq-spark {
  width: 12px; height: 12px; flex: none; background: var(--lamp); opacity: .8;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 4.1 5.9 4.6 10 5C5.9 5.4 5.4 5.9 5 10C4.6 5.9 4.1 5.4 0 5C4.1 4.6 4.6 4.1 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M5 0C5.4 4.1 5.9 4.6 10 5C5.9 5.4 5.4 5.9 5 10C4.6 5.9 4.1 5.4 0 5C4.1 4.6 4.6 4.1 5 0Z'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* === Секции === */
section { padding: 96px 0; }
.section-head { max-width: 720px; margin: 0 0 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.1; margin: 14px 0 16px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* Карточки: под курсором — мягкий свет внутри и светящаяся кромка */
.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; padding: 28px; border-radius: var(--radius);
  background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  transition: transform .5s var(--ease-out), box-shadow .4s;
}
.card::before, .card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s; }
.card::before { z-index: -1; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(255, 201, 122, .09), transparent 45%); }
.card::after {
  padding: 1px;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 214, 150, .7), transparent 50%);
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card:hover { transform: translateY(-4px); }
.card h3 { font-size: 22px; line-height: 1.25; margin: 0 0 10px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.icon {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
  margin-bottom: 20px; color: var(--lavender);
  background: linear-gradient(150deg, rgba(174, 182, 255, .18), rgba(174, 182, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(174, 182, 255, .18);
  transition: transform .5s var(--ease-out), color .3s;
}
.icon .ico { width: 26px; height: 26px; }
.card:hover .icon { transform: rotate(-6deg) scale(1.06); color: var(--lamp); }
.steps .icon { color: var(--lamp); }
.note { margin: 0; color: var(--muted); font-size: 17px; }
.note strong { color: var(--text); font-weight: 600; }

/* Шаги: вечер → утро → 15-й день */
.step-tag { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--lamp); margin-bottom: 8px; }

/* Эффективность сна */
.eff { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; margin-top: 22px; }
.eff:hover { transform: none; }
.card .eff-formula { font: 500 clamp(22px, 2.6vw, 30px)/1.3 var(--font-head); color: var(--text); margin: 0 0 16px; }
.eff-formula b { color: var(--lamp); font-weight: 600; }
.bar { display: flex; height: 44px; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: rgba(255, 255, 255, .03); }
.bar span { display: block; height: 100%; transform-origin: 0 50%; }
.bar .lat { background: repeating-linear-gradient(135deg, rgba(174, 182, 255, .45) 0 6px, rgba(174, 182, 255, .2) 6px 12px); }
.bar .sleep { background: linear-gradient(180deg, #6a6fe0, #4a4fc0); }
.bar .awake { background: repeating-linear-gradient(135deg, rgba(255, 201, 122, .7) 0 6px, rgba(255, 201, 122, .35) 6px 12px); }
.bar-scale { display: flex; justify-content: space-between; color: var(--faint); font-size: 13px; margin-top: 8px; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 18px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 7px; vertical-align: -1px; }
.eff-result { display: flex; align-items: baseline; gap: 14px; margin-top: 22px; }
.eff-result strong { font: 600 60px/1 var(--font-head); color: var(--lamp); font-variant-numeric: tabular-nums; text-shadow: 0 0 30px rgba(255, 201, 122, .35); }
.eff-result span { color: var(--muted); }

/* Программа: луна растёт от серпа в 1-ю ночь до полной в 14-ю */
.week h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 24px; margin-bottom: 18px; }
.week h3 small { font: 500 14px var(--font-body); color: var(--faint); }
.nights { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nights li { display: grid; grid-template-columns: 22px 64px 1fr; gap: 12px; align-items: center; padding: 11px 14px; border-radius: 14px; transition: background .3s, transform .4s var(--ease-out); }
.nights li:hover { background: rgba(255, 255, 255, .05); transform: translateX(4px); }
.nights b { font: 600 14px/1.6 var(--font-body); color: var(--lavender); white-space: nowrap; }
.nights span { color: var(--text); font-size: 16px; }
.phase { width: 22px; height: 22px; overflow: visible; }
.phase-disc { fill: rgba(174, 182, 255, .08); stroke: rgba(174, 182, 255, .22); stroke-width: .8; }
.phase-lit { fill: #ffd696; filter: drop-shadow(0 0 3px rgba(255, 201, 122, .6)); }
.nights li:hover .phase { transform: scale(1.15); transition: transform .3s; }

/* Факты с источниками */
.fact strong { display: block; font: 500 46px/1 var(--font-head); color: var(--lamp); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.fact p { color: var(--text); }
.fact cite { display: block; margin-top: 14px; font-style: normal; font-size: 13px; color: var(--faint); }

/* Тарифы */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 440px)); justify-content: center; gap: 22px; }
.plan { display: flex; flex-direction: column; padding: 34px; }
.plan.featured {
  background: linear-gradient(160deg, rgba(255, 201, 122, .12), rgba(174, 182, 255, .06) 60%), var(--card);
  box-shadow: inset 0 0 0 1px rgba(255, 201, 122, .25), 0 30px 60px -30px rgba(255, 190, 110, .35);
}
/* Вокруг выбранного тарифа медленно бежит световая кромка */
.plan.featured::after {
  opacity: 1;
  background: conic-gradient(from var(--angle), transparent 0 62%, rgba(255, 214, 150, .95) 75%, transparent 88%);
  animation: orbit 6s linear infinite;
}
@keyframes orbit { to { --angle: 360deg; } }
.badge {
  position: absolute; top: -13px; left: 34px; padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--lamp-ink); background: var(--lamp);
  box-shadow: 0 6px 20px -6px rgba(255, 190, 110, .8);
}
.plan h3 { font-size: 26px; margin: 0 0 6px; }
.price { font: 600 48px/1.1 var(--font-head); margin: 10px 0 24px; }
.ticks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 32px; color: var(--muted); }
.ticks li strong { color: var(--text); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(174, 182, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23aeb6ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat;
}
.plan.featured .ticks li::before { background-color: rgba(255, 201, 122, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.6 2.5L14 7.5' fill='none' stroke='%23ffc97a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.plan .btn { width: 100%; }
.fine { text-align: center; color: var(--faint); font-size: 14px; margin: 26px auto 0; max-width: 640px; }
.fine a { color: var(--muted); }

/* Кому лучше начать с врача */
.honest {
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; padding: 44px;
  background: linear-gradient(150deg, rgba(246, 161, 132, .1), rgba(255, 255, 255, .03)), var(--card);
  box-shadow: inset 0 0 0 1px rgba(246, 161, 132, .25);
}
.honest:hover { transform: none; }
.honest h2 { font-size: clamp(28px, 3.4vw, 40px); margin-top: 0; }
.honest p { color: var(--muted); margin: 0; }
.flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.flags li { position: relative; padding-left: 26px; }
.flags li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--dawn-1); box-shadow: 0 0 12px var(--dawn-1); }

/* Вопросы */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); transition: background .3s, box-shadow .3s; }
.faq details:hover { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.faq details[open] { background: var(--card-strong); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .4s var(--ease-out), margin .4s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq-body { overflow: hidden; }
.faq-body p { margin: 0; padding: 0 24px 22px; color: var(--muted); }
.faq a { color: var(--lavender); }

/* Рассвет: солнце поднимается, пока секция въезжает в экран */
.dawn {
  position: relative; overflow: hidden; padding: 120px 0 130px; text-align: center;
  background: linear-gradient(180deg, transparent 0%, rgba(246, 161, 132, .16) 45%, rgba(255, 216, 166, .3) 100%);
}
.dawn::before {
  content: ""; position: absolute; left: 50%; bottom: -380px; width: 900px; height: 600px; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 210, 150, .65), rgba(246, 161, 132, .2) 60%, transparent);
  pointer-events: none;
}
.sun {
  position: absolute; left: 50%; bottom: -150px; width: 300px; height: 300px; margin-left: -150px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6e0 0%, #ffd896 38%, rgba(255, 190, 120, .5) 56%, transparent 71%);
  filter: blur(1px);
}
.dawn .wrap { position: relative; }
.dawn h2 { font-size: clamp(36px, 5vw, 62px); }
.dawn p { color: var(--text); opacity: .85; font-size: 19px; margin: 0 auto 34px; max-width: 560px; }

/* Подвал */
.foot { padding: 48px 0 40px; background: #1b1838; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 32px; }
.foot a { color: var(--text); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot p { margin: 12px 0 0; }
/* Мелкая строка внизу: дисклеймер, © и документы */
.fine-print { padding-top: 24px; border-top: 1px solid var(--line); color: var(--faint); font-size: 13px; line-height: 1.6; }
.fine-print p { margin: 0; }
.legal-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 8px; }
.foot .legal-links a { color: var(--faint); transition: color .2s; }
.foot .legal-links a:hover { color: var(--muted); }

/* Кнопка внизу экрана на телефоне */
.dock {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 30;
  display: none; transform: translateY(140%); transition: transform .45s var(--ease-out);
}
.dock.show { transform: none; }
.dock .btn { width: 100%; box-shadow: 0 16px 40px -10px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .6); }

/* Стартовые состояния анимаций: только когда site.js точно отработает (класс .anim ставит base.html) */
.anim [data-intro], .anim [data-intro-phone], .anim .reveal, .anim .moon { opacity: 0; }
.anim [data-split] { visibility: hidden; }

/* === Документы === */
.doc-page { padding: 40px 0 80px; }
.doc {
  max-width: 860px; margin: 0 auto; padding: clamp(28px, 5vw, 64px);
  border-radius: 28px; background: #f8f6f1; color: #23233a;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
  font-size: 16px; line-height: 1.7;
}
.doc h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; margin: 0 0 18px; color: #1a1a33; }
.doc h2 { font-size: 22px; margin: 36px 0 12px; color: #1a1a33; }
.doc p { margin: 0 0 12px; }
.doc a { color: #4a4fc0; }
.doc table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; font-size: 15px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e2dfd6; }
.doc th { font-weight: 600; background: #efece4; }
.doc ul, .doc ol { padding-left: 22px; }
.doc-back { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--muted); text-decoration: none; font-size: 15px; }
.doc-back:hover { color: var(--text); }
.doc-nav { max-width: 860px; margin: 22px auto 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* === Адаптив === */
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .hero { padding-top: 48px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .eff, .honest { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .moon { width: 260px; height: 260px; top: -90px; right: -120px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .top .btn { margin-left: auto; }
  section { padding: 68px 0; }
  .grid-4, .grid-2, .plans { grid-template-columns: 1fr; }
  .card { padding: 24px; }
  .plan { padding: 28px; }
  .cta-row .btn { width: 100%; }
  .dock { display: block; }
  .foot { padding-bottom: 100px; }
  .nights li { grid-template-columns: 22px 56px 1fr; gap: 10px; padding: 10px 6px; }
  .phone-stage { margin-top: 64px; }
  .moon { width: 170px; height: 170px; top: -128px; right: 6px; }
  .phone::after { inset: -40px 0; }
  .marquee span { font-size: 20px; }
  .card:hover { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .btn, .dock, .card, .nights li { transition: none; }
}

/* Плашка не-боевого стенда (STAND≠prod) */
.stand { position: relative; z-index: 25; padding: 8px 16px; text-align: center; font: 600 14px/1.4 var(--font-body); color: #2b1a06; background: repeating-linear-gradient(135deg, #ffc97a 0 14px, #ffb35c 14px 28px); }
