/* Sovira — «свет в тумане»: живое сияние на первом экране, плавающие мысли вокруг сферы,
   бегущие фразы, бенто-сетка возможностей, тёмная комната для дыхания.
   Дневной режим — утренний туман, ночной — глубокий вечер (по часам посетителя). */
:root {
  --bg: #EEF2EF;
  --bg-2: #E3EAE6;
  --surface: #FBFCFB;
  --glass: rgba(255, 255, 255, .62);
  --ink: #142221;
  --muted: #4A5A58;
  --line: #CBD6D2;
  --accent: #2A6869;
  --accent-2: #6C7FC4;
  --on-accent: #FFFFFF;
  --warm: #B0653A;
  --tint: #D7E7E3;
  --aur-1: #9ED3C6;
  --aur-2: #B7C4F0;
  --aur-3: #F3D7B8;
  --display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 26px;
  --wrap: 1200px;
  --header-h: 68px;
  color-scheme: light;
}
html[data-time="night"] {
  --bg: #0C161D;
  --bg-2: #101E26;
  --surface: #14232C;
  --glass: rgba(22, 38, 48, .62);
  --ink: #E5EDEB;
  --muted: #A3B2AF;
  --line: #263842;
  --accent: #8BCAC1;
  --accent-2: #A3B0EE;
  --on-accent: #0B1718;
  --warm: #E6B488;
  --tint: #18302F;
  --aur-1: #1F5A55;
  --aur-2: #2C3D72;
  --aur-3: #5A4026;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: var(--header-h);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color .8s ease, color .8s ease;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}

a { color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(52px, 7.4vw, 104px); line-height: .98; }
h2 { font-size: clamp(38px, 4.8vw, 64px); line-height: 1.02; }
h3 { font-size: 27px; line-height: 1.15; font-weight: 600; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
p { margin: 0; }
.lead { font-size: 19px; color: var(--muted); max-width: 34em; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.5; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; position: relative; }
.section--tinted { background: var(--bg-2); transition: background-color .8s ease; }
.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 680px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.kicker::before { content: ""; width: 22px; height: 1px; background: currentColor; }
@media (max-width: 700px) { .section { padding: 80px 0; } .section-head { margin-bottom: 36px; } }

/* кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer;
  transition: transform .25s ease, box-shadow .3s ease, background-color .3s ease, border-color .3s ease, color .3s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -12px var(--accent); }
.btn--primary:hover { box-shadow: 0 16px 36px -12px var(--accent); }
.btn--ghost { background: var(--glass); color: var(--ink); border-color: var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { border-color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* ===== шапка: закреплена всегда, на телефоне — с меню ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--bg);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .8s;
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); }
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 27px; font-weight: 600; letter-spacing: .01em; flex: none; }
.logo svg { width: 28px; height: 28px; color: var(--accent); }
.nav { display: flex; gap: 26px; flex: 1; font-size: 15px; font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 0; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; flex: none; }
.icon-btn svg { width: 19px; height: 19px; }
.header .btn { min-height: 44px; padding: 0 22px; font-size: 15px; }
.burger { display: none; }
.mnav { display: none; }
@media (max-width: 1020px) {
  :root { --header-h: 62px; }
  .nav, .header__actions .icon-btn[data-time-toggle] { display: none; }
  .burger { display: inline-flex; }
  .header .btn { padding: 0 18px; min-height: 42px; }
  .logo { font-size: 24px; }
  .mnav {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; left: 12px; right: 12px; top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 8px); z-index: 59;
    padding: 10px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line);
    box-shadow: 0 24px 60px -20px rgba(0,0,0,.35);
    transform-origin: top center; transition: opacity .2s ease, transform .2s ease;
  }
  .mnav[hidden] { display: flex; opacity: 0; transform: translateY(-8px) scale(.98); pointer-events: none; visibility: hidden; }
  .mnav a, .mnav button { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border-radius: 12px; border: 0; background: transparent; color: var(--ink); font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
  .mnav a:hover, .mnav button:hover { background: var(--bg-2); }
  .mnav__sep { height: 1px; background: var(--line); margin: 4px 8px; }
}

/* ===== первый экран ===== */
.hero { position: relative; overflow: hidden; padding: 48px 0 110px; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% -10%; z-index: -1; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .75; will-change: transform; }
.aurora span:nth-child(1) { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: -8%; top: 0; background: var(--aur-1); animation: drift1 28s ease-in-out infinite; }
.aurora span:nth-child(2) { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; right: -6%; top: 8%; background: var(--aur-2); animation: drift2 34s ease-in-out infinite; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; left: 30%; bottom: -10%; background: var(--aur-3); opacity: .55; animation: drift3 31s ease-in-out infinite; }
@keyframes drift1 { 50% { transform: translate(8vw, 6vh) scale(1.12); } }
@keyframes drift2 { 50% { transform: translate(-9vw, 4vh) scale(.92); } }
@keyframes drift3 { 50% { transform: translate(5vw, -8vh) scale(1.1); } }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; background: linear-gradient(to bottom, transparent, var(--bg)); }

.hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 32px; align-items: center; }
.hero__copy { display: flex; flex-direction: column; gap: 26px; }
.eyebrow { display: inline-flex; align-self: flex-start; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-size: 14px; font-weight: 600; color: var(--muted); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--tint); animation: pulse 2.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.moods { display: flex; flex-direction: column; gap: 12px; }
.moods__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.moods__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--glass); color: var(--ink); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: background-color .3s, border-color .3s, color .3s, transform .2s;
}
.chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.reply {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 22px 22px 22px 6px;
  background: var(--surface); border: 1px solid var(--line); max-width: 540px; box-shadow: 0 20px 50px -30px rgba(0,0,0,.35);
}
.reply[hidden] { display: none; }
.reply__dot { flex: none; width: 28px; height: 28px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tint), var(--accent)); margin-top: 1px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footnote { font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 520px; }
.footnote strong { color: var(--ink); font-weight: 700; }

.orb-wrap { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 600px; justify-self: center; }
.orb-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.orb-caption { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.orb-phase { color: var(--accent); font-weight: 800; display: inline-block; min-width: 3.6em; text-align: left; }
.thought {
  position: absolute; z-index: 2; padding: 10px 16px; border-radius: 18px 18px 18px 6px;
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; box-shadow: 0 14px 40px -24px rgba(0,0,0,.4);
  animation: float 9s ease-in-out infinite;
}
.thought--1 { left: -2%; top: 16%; animation-delay: -1s; }
.thought--2 { right: -4%; top: 34%; border-radius: 18px 18px 6px 18px; animation-delay: -4s; }
.thought--3 { left: 4%; bottom: 16%; animation-delay: -6.5s; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) { .orb-caption { display: none; } }
@media (max-width: 900px) {
  .hero { padding-top: 20px; padding-bottom: 72px; }
  .hero__grid { grid-template-columns: 1fr; gap: 8px; }
  .orb-wrap { order: -1; max-width: 360px; }
  .thought { font-size: 12.5px; padding: 8px 12px; }
  .thought--1 { left: 0; } .thought--2 { right: 0; } .thought--3 { display: none; }
  .aurora span { filter: blur(60px); }
}

/* ===== бегущие фразы ===== */
.phrases { padding: 72px 0 84px; overflow: hidden; }
.phrases__head { text-align: center; margin-bottom: 36px; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 0 24px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee + .marquee { margin-top: 14px; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; flex: none; animation: scrollX 60s linear infinite; }
.marquee--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-100%); } }
.phrase { flex: none; padding: 14px 22px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-family: var(--display); font-size: 24px; font-style: italic; white-space: nowrap; }
.phrase--accent { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* ===== бенто ===== */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 260px; transition: transform .3s ease, box-shadow .3s ease; }
.tile:hover { transform: translateY(-3px); box-shadow: 0 30px 60px -40px rgba(0,0,0,.45); }
.tile--a { grid-column: span 4; }
.tile--b { grid-column: span 2; }
.tile--c { grid-column: span 2; }
.tile--d { grid-column: span 2; }
.tile--e { grid-column: span 2; }
.tile--f { grid-column: span 6; flex-direction: row; align-items: center; gap: 32px; min-height: 0; background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.tile--f p { opacity: .85; }
.tile__visual { margin-top: auto; }
.tile .muted { font-size: 16px; }
.tile__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--tint); color: var(--accent); display: grid; place-items: center; }
.tile__icon svg { width: 24px; height: 24px; }
@media (max-width: 960px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile--a, .tile--f { grid-column: span 2; }
  .tile--b, .tile--c, .tile--d, .tile--e { grid-column: span 1; }
  .tile--f { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .tile--a, .tile--b, .tile--c, .tile--d, .tile--e, .tile--f { grid-column: span 1; }
  .tile { min-height: 0; }
}

/* мини-диалог с заметкой */
.mini-dialog { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.mini-thread { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 92%; padding: 12px 16px; border-radius: 18px; font-size: 15px; line-height: 1.5; }
.bubble--me { align-self: flex-end; background: var(--tint); border-bottom-right-radius: 6px; }
.bubble--ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.note { padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--warm); font-size: 14px; line-height: 1.5; color: var(--muted); transform: rotate(1.2deg); background: color-mix(in srgb, var(--warm) 6%, transparent); }
.note b { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--warm); margin-bottom: 4px; }
@media (max-width: 640px) { .mini-dialog { grid-template-columns: 1fr; } .note { transform: none; } }

/* мини-переключатели памяти */
.toggles { display: flex; flex-direction: column; gap: 8px; }
.tgl { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.tgl i { flex: none; width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; }
.tgl i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .3s; }
.tgl.on i { background: var(--accent); }
.tgl.on i::after { left: 19px; }

/* голосовая волна */
.wave { display: flex; align-items: center; gap: 4px; height: 56px; }
.wave span { flex: 1; max-width: 6px; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: center; animation: wave 1.4s ease-in-out infinite; }
.wave span:nth-child(3n) { animation-delay: -.3s; } .wave span:nth-child(3n+1) { animation-delay: -.7s; } .wave span:nth-child(4n) { animation-delay: -1.1s; }
@keyframes wave { 0%, 100% { transform: scaleY(.25); } 50% { transform: scaleY(1); } }

/* папки */
.folders { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
.folders div { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.folders div.sub { margin-left: 18px; font-weight: 500; color: var(--muted); }
.folders svg { width: 16px; height: 16px; color: var(--accent); flex: none; }

/* ===== телефон + шаги ===== */
.how { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.phone {
  justify-self: center; width: min(100%, 330px); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 48px;
  background: #0F1A1F; box-shadow: 0 50px 90px -40px rgba(0,0,0,.55), inset 0 0 0 2px #2B3A40;
  position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; width: 92px; height: 24px; transform: translateX(-50%); border-radius: 14px; background: #0F1A1F; z-index: 2; }
.phone__screen { height: 100%; border-radius: 38px; overflow: hidden; background: var(--bg); display: flex; flex-direction: column; }
.phone__top { padding: 52px 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.phone__top i { width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tint), var(--accent)); }
.phone__top b { font-family: var(--display); font-size: 20px; }
.phone__top small { display: block; font-size: 11px; color: var(--accent); font-weight: 700; }
.phone__body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.phone__body .bubble { font-size: 13px; padding: 10px 12px; }
.typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 100% { opacity: .25; } 40% { opacity: 1; } }
.phone__input { margin: 0 12px 16px; padding: 12px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--muted); }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__num { font-family: var(--display); font-size: 64px; line-height: .9; font-style: italic; color: var(--warm); }
.step h3 { margin-bottom: 6px; }
@media (max-width: 900px) { .how { grid-template-columns: 1fr; gap: 48px; } .phone { width: min(100%, 290px); } .step { grid-template-columns: 64px minmax(0, 1fr); } .step__num { font-size: 50px; } }

/* ===== отпустить мысль ===== */
.release { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.release__form { display: flex; flex-direction: column; gap: 14px; }
.paper {
  position: relative; min-height: 230px; padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 30px 70px -45px rgba(0,0,0,.5);
  background-image: repeating-linear-gradient(to bottom, transparent 0, transparent 31px, color-mix(in srgb, var(--line) 70%, transparent) 31px, color-mix(in srgb, var(--line) 70%, transparent) 32px);
  background-position: 0 14px;
}
.paper textarea {
  width: 100%; min-height: 160px; resize: vertical; border: 0; outline: none; background: transparent;
  font-family: var(--display); font-style: italic; font-size: 24px; line-height: 32px; color: var(--ink);
}
.paper textarea::placeholder { color: var(--muted); opacity: .8; }
.released { position: absolute; inset: 26px 28px; font-family: var(--display); font-style: italic; font-size: 24px; line-height: 32px; pointer-events: none; overflow: visible; white-space: pre-wrap; word-break: break-word; }
.released span { display: inline-block; transition: transform 2.8s cubic-bezier(.2,.6,.2,1) var(--delay), opacity 2.4s ease var(--delay), filter 2.4s ease var(--delay); }
.released.go span { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); opacity: 0; filter: blur(6px); }
.release__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.release__msg { min-height: 1.6em; color: var(--accent); font-weight: 700; }
@media (max-width: 900px) { .release { grid-template-columns: 1fr; gap: 28px; } }

/* ===== комната дыхания: всегда тёмная ===== */
.breath-room { position: relative; overflow: hidden; padding: 120px 0; background: #0B151B; color: #E6EEEC; isolation: isolate; }
.breath-room .lead, .breath-room .muted { color: #A8B8B5; }
.breath-room .kicker { color: #8FD0C6; }
.breath-room .btn--primary { background: #8FD0C6; color: #0B1718; box-shadow: 0 10px 40px -10px rgba(143,208,198,.6); }
.breath-room::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 72% 50%, rgba(80,160,150,.28), transparent 70%), radial-gradient(40% 50% at 20% 20%, rgba(110,120,200,.18), transparent 70%); }
.stars { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff8, transparent), radial-gradient(1px 1px at 34% 70%, #fff6, transparent), radial-gradient(1.5px 1.5px at 58% 14%, #fff7, transparent), radial-gradient(1px 1px at 80% 82%, #fff5, transparent), radial-gradient(1px 1px at 90% 30%, #fff6, transparent), radial-gradient(1.5px 1.5px at 46% 46%, #fff4, transparent), radial-gradient(1px 1px at 6% 86%, #fff5, transparent); animation: twinkle 7s ease-in-out infinite; }
@keyframes twinkle { 50% { opacity: .45; } }
.breath { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.breath__copy { display: flex; flex-direction: column; gap: 20px; }
.breath__stage { position: relative; width: min(100%, 440px); aspect-ratio: 1 / 1; justify-self: center; display: grid; place-items: center; }
.breath__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255,255,255,.18); }
.breath__ring--2 { inset: 9%; border-style: solid; border-color: rgba(143,208,198,.16); }
.breath__core, .breath__glow { position: absolute; border-radius: 50%; transform: scale(.72); transition-property: transform; transition-timing-function: cubic-bezier(.45,0,.55,1); }
.breath__glow { width: 92%; height: 92%; background: radial-gradient(circle, rgba(143,208,198,.35) 0%, transparent 68%); }
.breath__core { width: 60%; height: 60%; background: radial-gradient(circle at 36% 32%, #CDEFE8, #4E9C93 70%, #2E6D68); box-shadow: 0 0 80px rgba(143,208,198,.45); }
.breath__label { position: relative; display: flex; flex-direction: column; align-items: center; color: #0B1718; }
.breath__phase { font-family: var(--display); font-size: 30px; font-weight: 600; }
.breath__count { font-size: 46px; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.breath__status { font-size: 15px; color: #A8B8B5; }
@media (max-width: 900px) { .breath { grid-template-columns: 1fr; } .breath-room { padding: 84px 0; } }

/* ===== цены ===== */
.prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.price { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.price--main { border: 0; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--accent), var(--accent-2), var(--warm)) border-box; border: 2px solid transparent; box-shadow: 0 40px 80px -50px var(--accent); transform: translateY(-10px); }
.price__badge { position: absolute; top: -13px; left: 30px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.price__name { font-weight: 700; color: var(--muted); }
.price__value { font-family: var(--display); font-size: 54px; line-height: 1; font-weight: 600; }
.price__unit { color: var(--muted); }
.price ul { list-style: none; padding: 0; margin: 10px 0 18px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.price li { display: flex; gap: 10px; align-items: flex-start; }
.price li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--tint); box-shadow: inset 0 0 0 4px var(--tint), inset 0 0 0 8px var(--accent); }
.price .btn { margin-top: auto; }
@media (max-width: 900px) { .prices { grid-template-columns: 1fr; } .price--main { transform: none; } }

/* ===== вопросы ===== */
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: 20px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 22px; font-weight: 400; color: var(--accent); transition: transform .3s, background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--tint); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } }

/* ===== финальный экран ===== */
.closing { position: relative; overflow: hidden; border-radius: 36px; padding: 80px 56px; isolation: isolate; background: var(--surface); border: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; }
.closing .aurora { inset: -40%; opacity: .7; }
.closing h2 { max-width: 13em; }
@media (max-width: 700px) { .closing { padding: 48px 26px; border-radius: 28px; } }

/* ===== подвал ===== */
.footer { padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); }
.footer__row { display: flex; flex-wrap: wrap; gap: 24px 48px; justify-content: space-between; align-items: center; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 15px; font-weight: 600; }
.footer__links a { color: var(--muted); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__legal { margin-top: 28px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); max-width: 820px; }

/* ===== документы ===== */
.doc { padding: 56px 0 96px; }
.doc__layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.doc__toc { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.doc__toc a { color: var(--muted); text-decoration: none; padding: 4px 0; }
.doc__toc a:hover { color: var(--ink); }
.doc__body { max-width: 720px; }
.doc__body h1 { font-size: clamp(40px, 5vw, 60px); margin-bottom: 12px; }
.doc__body h2 { font-size: 30px; margin: 44px 0 14px; }
.doc__body p + p { margin-top: 12px; }
.doc__body ol, .doc__body ul { padding-left: 22px; margin: 10px 0 0; display: flex; flex-direction: column; gap: 8px; }
.callout { margin: 28px 0 8px; padding: 20px 22px; border-radius: 16px; background: var(--tint); }
@media (max-width: 860px) { .doc__layout { grid-template-columns: 1fr; } .doc__toc { position: static; } }

/* ===== заглушка чата ===== */
.soon { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding: 48px 24px; }
.soon__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; max-width: 520px; }
.soon__orb { width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tint), var(--accent)); box-shadow: 0 0 60px color-mix(in srgb, var(--accent) 30%, transparent); transform: scale(.85); animation: soonBreath 10s cubic-bezier(.45,0,.55,1) infinite; will-change: transform; }
@keyframes soonBreath { 0% { transform: scale(.85); } 40% { transform: scale(1); } 100% { transform: scale(.85); } }

/* ===== мобильная доводка (большинство посетителей с телефона и из Telegram) ===== */
html { -webkit-tap-highlight-color: transparent; }
a, button, summary, .chip { touch-action: manipulation; }
.logo { min-height: 44px; }
.soon { min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); }

/* эффекты наведения только там, где есть мышь: на телефоне они «залипают» после касания */
@media (hover: none) {
  .btn:hover, .chip:hover, .tile:hover { transform: none; box-shadow: none; }
  .btn--primary:hover { box-shadow: 0 10px 30px -12px var(--accent); }
  .chip:hover { border-color: var(--line); }
  .chip[aria-pressed="true"]:hover { border-color: var(--accent); }
}
/* лёгкий отклик на нажатие вместо наведения */
.btn:active, .chip:active { transform: scale(.97); }

@media (max-width: 900px) {
  /* размытие под стеклом дорого для слабых телефонов: оставляем только в шапке */
  .chip, .eyebrow, .btn--ghost, .thought { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .chip, .btn--ghost, .thought, .eyebrow { background: var(--surface); }
  .orb-wrap { max-width: 300px; }
  .hero__copy { gap: 22px; }

  /* «Как это работает»: сначала заголовок и шаги, потом макет телефона */
  .how .phone { order: 2; width: min(100%, 250px); }

  /* дыхание: текст → круг → кнопка, чтобы круг был виден после нажатия */
  .breath { gap: 20px; }
  .breath__copy { display: contents; }
  .breath__stage { order: 1; width: min(100%, 320px); margin: 12px 0; }
  .breath__ctrl { order: 2; }
  .breath__status { order: 3; }
}
@media (max-width: 380px) {
  .header .btn { padding: 0 14px; font-size: 14px; }
  .logo { font-size: 22px; gap: 8px; }
  .wrap { padding: 0 18px; }
  .phrase { font-size: 20px; padding: 12px 18px; }
  .tile { padding: 22px; }
  .closing { padding: 40px 22px; }
}
/* вырезы и закруглённые углы экрана (айфоны, полноэкранный режим Telegram) */
.wrap { padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
@media (max-width: 380px) { .wrap { padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); } }
@media (max-width: 900px) {
  .thought--1 { top: 6%; left: 0; }
  .thought--2 { top: auto; bottom: 12%; right: 0; }
  .price--main { order: -1; margin-top: 14px; }
}
@media (max-width: 860px) { .doc__toc { display: none; } .doc { padding-top: 32px; } }

/* ===== дневник настроения и итог разговора ===== */
.tile--g, .tile--h { grid-column: span 3; }
@media (max-width: 960px) { .tile--g, .tile--h { grid-column: span 2; } }
@media (max-width: 560px) { .tile--g, .tile--h { grid-column: span 1; } }
.mood-chart { width: 100%; height: auto; display: block; }
.mood-chart .grid { stroke: var(--line); stroke-width: 1; }
.mood-chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.mood-chart .area { fill: var(--accent); opacity: .12; }
.mood-chart .dot { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
.mood-chart .dot--last { fill: var(--accent); }
.mood-chart text { fill: var(--muted); font-family: var(--body); font-size: 12px; font-weight: 600; }
.mood-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); font-size: 14px; line-height: 1.5; }
.mood-note i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--tint), var(--accent)); }
.summary { padding: 18px 20px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.summary__title { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.summary ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.summary li { display: flex; gap: 10px; line-height: 1.45; }
.summary li::before { content: ""; flex: none; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.summary__step { padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 700; }
.summary__step span { color: var(--warm); }

/* ===== скидка на первое пополнение ===== */
.promo {
  position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px;
  margin: 0 0 36px; padding: 24px 28px; border-radius: var(--radius); isolation: isolate;
  background: linear-gradient(120deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2)));
  color: var(--on-accent); box-shadow: 0 30px 60px -40px var(--accent);
}
.promo::after { content: ""; position: absolute; z-index: -1; right: -60px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.14); }
.promo__value { font-family: var(--display); font-size: clamp(56px, 9vw, 84px); line-height: .9; font-weight: 600; letter-spacing: -.02em; }
.promo__text { flex: 1 1 260px; display: flex; flex-direction: column; gap: 4px; }
.promo__text b { font-size: 21px; }
.promo__text span { opacity: .85; font-size: 15px; }
.price__deal { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--warm) 14%, transparent); color: var(--warm); font-size: 13px; font-weight: 800; }

/* ===== друзья и подарок ===== */
.share { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.share__card { position: relative; overflow: hidden; padding: 32px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.share__card .btn { align-self: flex-start; margin-top: 6px; }
.friends { display: flex; align-items: center; justify-content: center; gap: 0; padding: 18px 0 8px; }
.friends__orb { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-size: 26px; font-weight: 600; color: #fff; }
.friends__orb--a { background: radial-gradient(circle at 35% 30%, #CFEDE6, #2A6869); }
.friends__orb--b { background: radial-gradient(circle at 35% 30%, #DCE2FA, #5A6BB4); }
.friends__link { width: 90px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); position: relative; }
.friends__link::after { content: "+10"; position: absolute; left: 50%; top: -30px; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--tint); color: var(--accent); font-size: 13px; font-weight: 800; }
.gift {
  position: relative; aspect-ratio: 1.7 / 1; max-width: 360px; width: 100%; margin: 8px auto 4px; padding: 20px 22px; border-radius: 20px; overflow: hidden; color: #F4FAF8;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.25), transparent 50%), linear-gradient(135deg, #2A6869, #3E5C8F 60%, #8C5A3C);
  box-shadow: 0 30px 50px -30px rgba(20,40,40,.7); display: flex; flex-direction: column; justify-content: space-between; transform: rotate(-2deg);
}
.gift::before { content: ""; position: absolute; top: 0; bottom: 0; left: 64%; width: 18px; background: rgba(255,255,255,.18); }
.gift__top { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-size: 22px; font-weight: 600; position: relative; }
.gift__top small { font-family: var(--body); font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; opacity: .85; }
.gift__main { position: relative; font-family: var(--display); font-style: italic; font-size: 26px; line-height: 1.1; max-width: 60%; }
.gift__bottom { position: relative; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
@media (max-width: 860px) { .share { grid-template-columns: 1fr; } .share__card { padding: 26px 22px; } }

/* ===== статьи ===== */
.articles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.acard { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: border-color .3s, transform .3s; }
@media (hover: hover) { .acard:hover { border-color: var(--accent); transform: translateY(-3px); } }
.acard__art { height: 120px; border-radius: 16px; margin-bottom: 4px; position: relative; overflow: hidden; }
.acard__art--sleep { background: radial-gradient(circle at 70% 35%, #F3E2BE 0 18px, transparent 19px), linear-gradient(160deg, #1D3350, #3C4F82); }
.acard__art--calm { background: radial-gradient(circle at 50% 55%, rgba(255,255,255,.7) 0 26px, transparent 27px), radial-gradient(circle at 50% 55%, rgba(255,255,255,.3) 0 46px, transparent 47px), linear-gradient(160deg, #7EC1B5, #2A6869); }
.acard__art--burn { background: linear-gradient(0deg, #E9B98F 0 28%, transparent 28%), radial-gradient(circle at 50% 100%, #F6D6A8 0 50px, transparent 51px), linear-gradient(170deg, #C48F72, #6F4E62); }
.acard__meta { font-size: 13px; font-weight: 700; color: var(--accent); }
.acard h3 { font-size: 25px; }
.acard p { color: var(--muted); font-size: 15px; }
.acard__more { margin-top: auto; font-weight: 800; font-size: 15px; color: var(--accent); }
@media (max-width: 900px) { .articles { grid-template-columns: 1fr; } .acard__art { height: 96px; } }

/* страница статьи */
.article { padding: 48px 0 96px; }
.article__body { max-width: 700px; margin: 0 auto; }
.article__crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.article__crumbs a { color: var(--accent); text-decoration: none; }
.article__body h1 { font-size: clamp(38px, 6vw, 60px); line-height: 1.02; margin-bottom: 18px; }
.article__lead { font-size: 20px; color: var(--muted); margin-bottom: 8px; }
.article__body h2 { font-size: clamp(28px, 4vw, 36px); margin: 44px 0 14px; }
.article__body p { margin-top: 14px; }
.article__body ul, .article__body ol { padding-left: 22px; margin: 14px 0 0; display: flex; flex-direction: column; gap: 10px; }
.article__cta { margin: 48px 0 0; padding: 28px; border-radius: var(--radius); background: var(--tint); display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.article__cta h2 { margin: 0; font-size: 30px; }
.article__warn { margin-top: 32px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.gift { min-height: 200px; }
.gift__main { font-size: clamp(20px, 5.6vw, 26px); }
@media (max-width: 400px) { .gift { aspect-ratio: auto; min-height: 196px; gap: 14px; } }

.friends__link--pct::after { content: "до 40%"; }
