/* Сэм — ночной разговор: глубокий тёмный фон, живое сияние цвета режима,
   стеклянные карточки и светящиеся электронные глаза. */
@property --tint { syntax: "<color>"; inherits: true; initial-value: #5EC8C0; }
@property --angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

:root {
  --bg: #07080D;
  --surface: rgba(20, 23, 35, 0.66);
  --surface-solid: #131622;
  --surface-2: rgba(255, 255, 255, 0.07);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #F3F4F9;
  --ink-2: #BABED0;
  --muted: #878CA6;
  --accent: #FF5E9C;
  --accent-2: #FFA15E;
  --accent-ink: #1C0912;
  --danger: #FF4D5E;
  --good: #3DCB86;
  --tint: #5EC8C0;
  --f-display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --f-body: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 24px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  color-scheme: dark;
  transition: --tint 1.2s var(--ease);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2 { text-wrap: balance; }
button { font: inherit; color: inherit; -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 2px solid color-mix(in oklab, var(--tint) 70%, white); outline-offset: 3px; }

/* ---------- живой фон ---------- */
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; view-transition-name: bg; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; will-change: transform; }
.b1 { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: radial-gradient(circle, color-mix(in oklab, var(--tint) 70%, transparent), transparent 65%); animation: drift1 26s ease-in-out infinite alternate; }
.b2 { width: 60vmax; height: 60vmax; right: -28vmax; top: 20vh; background: radial-gradient(circle, color-mix(in oklab, var(--accent) 45%, transparent), transparent 65%); opacity: 0.32; animation: drift2 32s ease-in-out infinite alternate; }
.b3 { width: 55vmax; height: 55vmax; left: 10vw; bottom: -38vmax; background: radial-gradient(circle, color-mix(in oklab, var(--tint) 40%, #3B4BFF 40%), transparent 65%); opacity: 0.35; animation: drift3 38s ease-in-out infinite alternate; }
@keyframes drift1 { to { transform: translate(18vw, 14vh) scale(1.15); } }
@keyframes drift2 { to { transform: translate(-16vw, -10vh) scale(0.9); } }
@keyframes drift3 { to { transform: translate(-10vw, -16vh) scale(1.2); } }
.grain {
  position: absolute; inset: -50%; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(1%, 3%); } }

#app {
  position: relative; z-index: 1;
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding-top: max(16px, env(safe-area-inset-top, 0px));
  padding-bottom: max(22px, env(safe-area-inset-bottom, 0px));
  padding-left: max(18px, env(safe-area-inset-left, 0px));
  padding-right: max(18px, env(safe-area-inset-right, 0px));
}
.screen { display: flex; flex-direction: column; gap: 18px; min-height: calc(100dvh - 40px); }

/* переходы между экранами */
::view-transition-old(root) { animation: vt-out 0.32s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.55s var(--ease) both; }
::view-transition-group(bg) { animation: none; }
::view-transition-group(face) { animation-duration: 0.75s; animation-timing-function: cubic-bezier(0.2, 0.9, 0.1, 1); }
@keyframes vt-out { to { opacity: 0; transform: scale(0.97); filter: blur(8px); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.03) translateY(10px); filter: blur(10px); } }
.screen.enter { animation: vt-in 0.55s var(--ease) both; }

/* появление элементов по очереди */
.reveal { animation: rise 0.9s var(--ease) both; animation-delay: calc(var(--d, 0) * 90ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(6px); } }

/* ---------- кнопки ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 999px;
  padding: 13px 22px; font-weight: 600; cursor: pointer; overflow: hidden;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform 0.25s var(--spring), border-color 0.2s, background 0.2s, box-shadow 0.3s;
}
.btn:hover { border-color: color-mix(in oklab, var(--ink) 40%, transparent); }
.btn:active { transform: scale(0.96); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary {
  border: 0; color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent));
  background-size: 200% 100%;
  box-shadow: 0 14px 40px -14px color-mix(in oklab, var(--accent) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  animation: sheen-pan 6s linear infinite;
}
.btn-primary::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  animation: sheen 3.6s var(--ease) infinite 1.2s;
}
@keyframes sheen { 0% { transform: translateX(-120%); } 40%, 100% { transform: translateX(120%); } }
@keyframes sheen-pan { to { background-position: -200% 0; } }
.btn-xl { width: 100%; padding: 18px 24px; font-size: 17.5px; }
.btn-wide { width: 100%; }
.btn-xl svg { transition: transform 0.3s var(--spring); }
.btn-xl:hover svg { transform: translateX(4px); }
.link { background: none; border: 0; padding: 6px 0; color: color-mix(in oklab, var(--accent) 80%, white); font-weight: 600; cursor: pointer; }
.link-back { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px;
  padding: 7px 13px; font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  font-variant-numeric: tabular-nums; backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  transition: transform 0.25s var(--spring), border-color 0.2s;
}
.chip:active { transform: scale(0.95); }
.chip-static { cursor: default; }
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.chip-install { border-color: color-mix(in oklab, var(--accent) 50%, transparent); color: color-mix(in oklab, var(--accent) 75%, white); }
.icon-btn {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink-2);
}
.icon-btn .ico-sound-off { display: none; }
.icon-btn[aria-pressed="false"] .ico-sound-on { display: none; }
.icon-btn[aria-pressed="false"] .ico-sound-off { display: block; }
.glass {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
}
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.fine-left { font-size: 13.5px; color: var(--ink-2); }
.lead { color: var(--ink-2); font-size: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in oklab, var(--tint) 70%, white); }
.hero-title { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 7vw, 34px); line-height: 1.1; letter-spacing: -0.02em; }
.screen-title { font-family: var(--f-display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.section-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* ---------- лицо Сэма: стеклянный визор с глазами ---------- */
.face {
  --c: var(--tint);
  position: relative; isolation: isolate; overflow: hidden;
  width: 100%; aspect-ratio: 16 / 10.5; border-radius: 34% / 48%;
  background:
    radial-gradient(120% 90% at 50% 0%, color-mix(in oklab, var(--c) 16%, transparent), transparent 60%),
    radial-gradient(90% 80% at 50% 110%, color-mix(in oklab, var(--c) 10%, transparent), transparent 70%),
    linear-gradient(180deg, #0D1019, #06070C);
  border: 1px solid color-mix(in oklab, var(--c) 22%, rgba(255, 255, 255, 0.08));
  box-shadow:
    0 30px 80px -30px color-mix(in oklab, var(--c) 55%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -20px 60px rgba(0, 0, 0, 0.6);
  view-transition-name: none;
}
.face::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px);
  mix-blend-mode: overlay;
}
.face-glare {
  position: absolute; z-index: 3; pointer-events: none; inset: 0; border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 28%, transparent 40%);
}
.eyes-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.face-xl { max-width: 380px; margin: 4vh auto 0; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.face-mini { width: 132px; flex: none; border-radius: 32% / 46%; }
.face-call { max-width: 430px; margin: 0 auto; view-transition-name: face; }
.face-progress { position: absolute; z-index: 4; left: 14%; right: 14%; bottom: 9%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.face-progress span { position: absolute; inset: 0; transform-origin: left; background: linear-gradient(90deg, color-mix(in oklab, var(--c) 50%, transparent), var(--c)); box-shadow: 0 0 12px var(--c); transition: transform 0.3s linear, background 0.4s; }
.face-call.low .face-progress span { background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 14px var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .face-xl, .blob, .grain, .btn-primary, .btn-primary::after { animation: none !important; }
}

/* ---------- первый запуск ---------- */
.screen-welcome { justify-content: center; gap: 26px; text-align: center; }
.welcome-copy { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.brand { font-family: var(--f-display); font-weight: 800; font-size: clamp(64px, 20vw, 96px); line-height: 0.95; letter-spacing: -0.04em; display: flex; justify-content: center; }
.brand .ch {
  display: inline-block; background: linear-gradient(180deg, #FFFFFF, color-mix(in oklab, var(--tint) 60%, white));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: letter 1s var(--spring) both; animation-delay: calc(var(--i) * 90ms + 250ms);
}
@keyframes letter { from { opacity: 0; transform: translateY(40%) rotate(8deg) scale(0.8); filter: blur(8px); } }
.brand-sub { font-family: var(--f-display); font-weight: 400; font-size: 17px; color: var(--ink-2); letter-spacing: 0.01em; }
.screen-welcome .lead { max-width: 30em; margin-top: 8px; }
.welcome-actions { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
.communication { display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
details.communication { display: block; }
.communication summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.communication summary span { display: block; margin: 4px 0 0 18px; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.communication[open] > p, .communication[open] > .communication-fields { margin-top: 12px; }
.communication h3 { font-size: 16px; font-weight: 600; }
.communication-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.communication-fields label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 13px; }
.communication-fields select { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg); color: var(--ink); font: inherit; }
.communication-fields select:disabled { opacity: 0.6; }
.pill-note { display: inline-flex; align-self: center; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 color-mix(in oklab, var(--good) 70%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* переключатель 18+ */
.switch-row { display: flex; align-items: center; gap: 14px; text-align: left; font-size: 15px; color: var(--ink-2); cursor: pointer; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.switch-input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; flex: none; width: 50px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.3s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4); transition: transform 0.35s var(--spring); }
.switch-input:checked + .switch { background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.switch-input:checked + .switch .switch-thumb { transform: translateX(20px); }
.switch-input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- главный экран ---------- */
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 42px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; }
.logo-orb { width: 24px; height: 16px; border-radius: 40% / 50%; background: #0B0D15; border: 1px solid color-mix(in oklab, var(--tint) 35%, transparent); position: relative; box-shadow: 0 0 16px -4px var(--tint); }
.logo-orb::before, .logo-orb::after { content: ""; position: absolute; top: 4px; width: 5px; height: 7px; border-radius: 2px; background: var(--tint); box-shadow: 0 0 6px var(--tint); animation: logo-blink 5s infinite; }
.logo-orb::before { left: 5px; }
.logo-orb::after { right: 5px; }
@keyframes logo-blink { 0%, 94%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.1); } }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.hello { display: flex; flex-direction: column; gap: 8px; animation: rise 0.8s var(--ease) both; }

.hero-card {
  --c: var(--tint);
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center;
  padding: 20px; border-radius: 28px; cursor: pointer; text-align: left; width: 100%;
  background:
    radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--c) 30%, transparent), transparent 55%),
    linear-gradient(160deg, color-mix(in oklab, var(--c) 12%, var(--surface-solid)), var(--surface-solid));
  border: 1px solid color-mix(in oklab, var(--c) 35%, var(--line));
  box-shadow: 0 30px 70px -35px color-mix(in oklab, var(--c) 80%, transparent);
  animation: rise 0.8s var(--ease) both 0.08s;
  transition: transform 0.35s var(--spring), box-shadow 0.35s;
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card:active { transform: scale(0.98); }
.hero-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hero-name { font-family: var(--f-display); font-weight: 600; font-size: 26px; line-height: 1.05; }
.hero-tag { color: var(--ink-2); font-size: 14.5px; line-height: 1.4; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; align-self: flex-start; font-weight: 700; font-size: 14.5px; padding: 10px 16px; border-radius: 999px; color: var(--accent-ink); background: linear-gradient(120deg, color-mix(in oklab, var(--c) 80%, white), var(--c)); box-shadow: 0 10px 26px -10px var(--c); }
.hero-cta svg { transition: transform 0.3s var(--spring); }
.hero-card:hover .hero-cta svg { transform: translateX(3px); }

.modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 350px) { .modes { grid-template-columns: minmax(0, 1fr); } }
.mode-card {
  --c: var(--tint);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 8px; text-align: left; min-width: 0; min-height: 158px;
  padding: 16px; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(165deg, color-mix(in oklab, var(--c) 13%, rgba(20, 23, 35, 0.75)), rgba(13, 15, 24, 0.78));
  border: 1px solid color-mix(in oklab, var(--c) 20%, var(--line));
  backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2);
  animation: rise 0.75s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + 160ms);
  transition: transform 0.35s var(--spring), border-color 0.3s, box-shadow 0.35s;
}
.mode-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.35s;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 0%), color-mix(in oklab, var(--c) 32%, transparent), transparent 62%);
}
.mode-card:hover::before, .mode-card.lit::before { opacity: 1; }
.mode-card:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--c) 45%, var(--line)); box-shadow: 0 22px 46px -22px color-mix(in oklab, var(--c) 70%, transparent); }
.mode-card:active { transform: scale(0.965); }
.mode-icon {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: var(--c);
  background: color-mix(in oklab, var(--c) 15%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--c) 32%, transparent), 0 0 24px -8px var(--c);
  transition: transform 0.4s var(--spring);
}
.mode-icon svg { width: 25px; height: 25px; }
.mode-card:hover .mode-icon { transform: rotate(-6deg) scale(1.08); }
.mode-name { font-family: var(--f-display); font-weight: 600; font-size: 16.5px; line-height: 1.2; margin-top: 4px; }
.mode-tag { font-size: 13.5px; color: var(--ink-2); line-height: 1.35; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.badge { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; border: 1px solid var(--line-strong); color: var(--ink-2); border-radius: 999px; padding: 2px 8px; }
.mode-card.locked .mode-icon, .mode-card.locked .mode-name, .mode-card.locked .mode-tag { opacity: 0.45; }
.lock { position: absolute; top: 14px; right: 14px; color: var(--muted); }
.friend-pick { display: flex; flex-direction: column; gap: 7px; margin-top: auto; }
.friend-pick .btn { padding: 8px 12px; font-size: 14px; width: 100%; }

/* «Приём у психолога Сэма» — сразу под главной карточкой, одна строка-кнопка */
.promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px; align-items: center; text-align: left;
  padding: 12px 14px 12px 12px; border-radius: 20px; cursor: pointer; width: 100%; min-height: 64px;
  border: 1px solid color-mix(in oklab, var(--accent) 32%, var(--line));
  background: linear-gradient(110deg, color-mix(in oklab, var(--accent) 16%, rgba(20, 23, 35, 0.8)), rgba(13, 15, 24, 0.8) 75%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise 0.8s var(--ease) both 0.16s;
  transition: transform 0.3s var(--spring), border-color 0.25s, box-shadow 0.3s;
}
.promo:hover { border-color: color-mix(in oklab, var(--accent) 55%, var(--line)); box-shadow: 0 18px 40px -22px var(--accent); }
.promo:hover .promo-chev { transform: translateX(3px); }
.promo:active { transform: scale(0.98); }
.promo-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--accent); background: color-mix(in oklab, var(--accent) 16%, transparent); }
.promo-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.promo-text b { font-weight: 700; font-size: 15.5px; line-height: 1.25; }
.promo-text span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.promo-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.promo-price b { font-family: var(--f-display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.promo-price small { font-size: 11px; color: var(--muted); }
.promo-chev { color: var(--muted); transition: transform 0.3s var(--spring); }
@media (max-width: 430px) {
  .promo { grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; padding-right: 12px; }
  .promo-chev { display: none; }
  .promo-ico { width: 36px; height: 36px; border-radius: 12px; }
  .promo-text b { font-size: 15px; }
  .promo-text span { font-size: 12px; }
}

.adult-row { display: flex; justify-content: center; gap: 10px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.adult-confirm { padding: 16px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--ink-2); animation: rise 0.4s var(--ease) both; }

/* ---------- разговор ---------- */
.screen-call { gap: 14px; }
.call-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 42px; }
.call-mode { display: flex; align-items: center; gap: 10px; font-family: var(--f-display); font-weight: 600; font-size: 18px; }
.call-mode-icon { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: var(--tint); background: color-mix(in oklab, var(--tint) 16%, transparent); }
.call-mode-icon svg { width: 19px; height: 19px; }
.chip-timer.low { border-color: var(--accent); color: color-mix(in oklab, var(--accent) 70%, white); animation: beat 1s ease-in-out infinite; }
@keyframes beat { 50% { transform: scale(1.06); } }
.call-stage { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 22px; min-height: 300px; }
.call-status { display: flex; justify-content: center; align-items: baseline; gap: 6px; color: var(--ink-2); font-size: 15.5px; min-height: 1.5em; }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; animation: dot 1.2s infinite; }
.dots i:nth-child(2) { animation-delay: 0.15s; }
.dots i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot { 0%, 80%, 100% { opacity: 0.2; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.call-status.speaking .dots, .call-status.idle .dots { display: none; }
.subs { display: flex; flex-direction: column; gap: 10px; max-height: 26vh; overflow-y: auto; padding: 4px 2px; font-size: 15.5px; line-height: 1.45; mask-image: linear-gradient(180deg, transparent, #000 22%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%); }
.subs:empty { display: none; }
.line { color: var(--ink-2); animation: rise 0.45s var(--ease) both; }
.line b { font-weight: 700; color: var(--muted); margin-right: 6px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; }
.line.sam { color: var(--ink); }
.line.sam b { color: var(--tint); }
.call-hint { margin-top: -4px; }
.call-intent { display: flex; flex-direction: column; gap: 8px; }
.intent-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.intent-choice { min-height: 52px; padding: 9px 7px; border-radius: 15px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); font: inherit; font-size: 12.5px; line-height: 1.35; cursor: pointer; }
.intent-choice[aria-pressed="true"] { color: var(--ink); border-color: var(--tint); background: color-mix(in oklab, var(--tint) 14%, var(--surface)); }
.intent-choice:disabled { cursor: default; opacity: 0.55; }
.voice-note { font-size: 11.5px; }
.call-controls { display: flex; justify-content: center; gap: 34px; padding: 6px 0 2px; }
.round { display: flex; flex-direction: column; align-items: center; gap: 8px; background: none; border: 0; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.round-ico { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-strong); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); color: var(--ink); transition: transform 0.3s var(--spring), background 0.25s, box-shadow 0.3s; }
.round:active .round-ico { transform: scale(0.9); }
.round .ico-mic-off { display: none; }
.round[aria-pressed="true"] .round-ico { background: var(--ink); color: var(--bg); }
.round[aria-pressed="true"] .ico-mic { display: none; }
.round[aria-pressed="true"] .ico-mic-off { display: block; }
.round-end .round-ico { background: linear-gradient(140deg, #FF6A72, var(--danger)); border: 0; color: #fff; box-shadow: 0 14px 34px -10px var(--danger); }

/* На невысоком экране место для кнопок важнее размера лица и числа субтитров. */
@media (max-height: 700px) {
  .screen-call {
    min-height: calc(100dvh - max(16px, env(safe-area-inset-top, 0px)) - max(22px, env(safe-area-inset-bottom, 0px)));
    gap: 8px;
  }
  .screen-call .call-stage { min-height: 185px; gap: 10px; }
  .screen-call .face-call { max-width: 230px; }
  .screen-call .subs { max-height: 12dvh; min-height: 0; gap: 6px; font-size: 14px; }
  .screen-call .call-controls {
    position: sticky; bottom: env(safe-area-inset-bottom, 0px); z-index: 5; flex-shrink: 0;
    padding: 8px 0 4px;
    background: linear-gradient(transparent, var(--bg) 24%);
  }
}

/* ---------- тарифы ---------- */
.tiers { display: flex; flex-direction: column; gap: 12px; }
.tier {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center;
  padding: 18px 18px 16px; border-radius: 24px;
  background: linear-gradient(165deg, rgba(26, 29, 44, 0.85), rgba(14, 16, 25, 0.85));
  border: 1px solid var(--line);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  animation: rise 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms + 120ms);
}
.tier.hit {
  border: 1.5px solid transparent;
  background:
    linear-gradient(165deg, #1C1A2A, #100F19) padding-box,
    conic-gradient(from var(--angle), var(--accent), var(--accent-2), #7C9CFF, var(--accent)) border-box;
  animation: rise 0.7s var(--ease) both, spin 5s linear infinite;
  animation-delay: calc(var(--i, 0) * 80ms + 120ms), 0s;
  box-shadow: 0 26px 60px -28px var(--accent);
}
@keyframes spin { to { --angle: 360deg; } }
.tier.hit::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-120%);
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, 0.08) 50%, transparent 65%);
  animation: sheen 4.2s var(--ease) infinite 1s;
}
.tier.ticket {
  border: 1px dashed color-mix(in oklab, var(--tint) 50%, transparent);
  background: linear-gradient(120deg, color-mix(in oklab, var(--tint) 14%, rgba(14, 16, 25, 0.85)), rgba(14, 16, 25, 0.85));
}
.tier-name { font-family: var(--f-display); font-weight: 600; font-size: 20px; display: flex; gap: 8px; align-items: center; }
.tier-hit { font-family: var(--f-body); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; background: linear-gradient(120deg, var(--accent), var(--accent-2)); color: var(--accent-ink); border-radius: 999px; padding: 3px 9px; }
.tier-price { font-family: var(--f-display); font-weight: 800; font-size: 24px; text-align: right; white-space: nowrap; letter-spacing: -0.02em; }
.tier-min { color: var(--ink-2); font-size: 14px; }
.tier-per { color: var(--muted); font-size: 13px; text-align: right; }
.tier-note { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.tier .btn { grid-column: 1 / -1; margin-top: 12px; }

/* ---------- установка на iPhone ---------- */
.screen-install { gap: 20px; padding-bottom: 70px; }
.install-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-top: 2vh; }
.install-icon { width: 72px; height: 72px; border-radius: 18px; box-shadow: 0 16px 40px -12px var(--tint); animation: rise 0.8s var(--ease) both; }
.install-browser { padding: 16px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--ink-2); animation: rise 0.6s var(--ease) both; }
.steps li:nth-child(1) { animation-delay: 0.3s; }
.steps li:nth-child(2) { animation-delay: 0.4s; }
.steps li:nth-child(3) { animation-delay: 0.5s; }
.steps li:nth-child(4) { animation-delay: 0.6s; }
.steps b { color: var(--ink); }
.step-n { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; font-family: var(--f-display); font-weight: 700; color: var(--tint); background: color-mix(in oklab, var(--tint) 15%, transparent); }
.inline-ico { vertical-align: -3px; color: #4DA3FF; }
.install-arrow {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 5;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12.5px; color: var(--ink-2);
  animation: bob 1.4s ease-in-out infinite;
}
.install-arrow svg { color: #4DA3FF; filter: drop-shadow(0 0 8px #4DA3FF); }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* анимированный телефон-подсказка */
.phone-demo { display: grid; place-items: center; padding: 6px 0; }
.pd-screen {
  --t: 9s;
  position: relative; width: 196px; height: 380px; border-radius: 34px; overflow: hidden;
  background: #0B0D14; border: 6px solid #1E2130; box-shadow: 0 30px 70px -30px var(--tint), inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.pd-page { position: absolute; inset: 0; padding: 30px 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.pd-orb { width: 90px; height: 56px; border-radius: 40% / 50%; background: #06070C; border: 1px solid color-mix(in oklab, var(--tint) 40%, transparent); box-shadow: 0 0 30px -6px var(--tint); position: relative; }
.pd-orb::before, .pd-orb::after { content: ""; position: absolute; top: 14px; width: 18px; height: 26px; border-radius: 7px; background: var(--tint); box-shadow: 0 0 12px var(--tint); }
.pd-orb::before { left: 20px; }
.pd-orb::after { right: 20px; }
.pd-line { height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.pd-w70 { width: 70%; }
.pd-w45 { width: 45%; }
.pd-card { width: 100%; height: 46px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); }
.pd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 12px; background: rgba(30, 33, 46, 0.95); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.pd-url { flex: 1; height: 22px; border-radius: 8px; background: rgba(255, 255, 255, 0.1); }
.pd-share { color: #4DA3FF; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; animation: pd-share var(--t) infinite; }
@keyframes pd-share { 0%, 8% { background: transparent; } 11%, 15% { background: rgba(77, 163, 255, 0.25); } 18%, 100% { background: transparent; } }
.pd-sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 210px; padding: 10px 10px 0; border-radius: 18px 18px 0 0; background: #23263A; transform: translateY(105%); display: flex; flex-direction: column; gap: 6px; animation: pd-sheet var(--t) var(--ease) infinite; }
@keyframes pd-sheet { 0%, 16% { transform: translateY(105%); } 24%, 46% { transform: translateY(0); } 54%, 100% { transform: translateY(105%); } }
.pd-grab { align-self: center; width: 34px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.2); margin-bottom: 4px; }
.pd-row { height: 36px; border-radius: 10px; background: rgba(255, 255, 255, 0.06); display: flex; align-items: center; gap: 8px; padding: 0 10px; font-size: 11.5px; color: var(--ink); white-space: nowrap; }
.pd-row i { width: 60%; height: 7px; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.pd-row-home { animation: pd-row var(--t) infinite; }
@keyframes pd-row { 0%, 34% { background: rgba(255, 255, 255, 0.06); } 38%, 46% { background: rgba(77, 163, 255, 0.35); } 50%, 100% { background: rgba(255, 255, 255, 0.06); } }
.pd-home { position: absolute; inset: 0; padding: 36px 16px; background: linear-gradient(160deg, #2A1F45, #0F2733); opacity: 0; animation: pd-home var(--t) var(--ease) infinite; }
@keyframes pd-home { 0%, 52% { opacity: 0; } 58%, 94% { opacity: 1; } 100% { opacity: 0; } }
.pd-apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px 12px; }
.pd-apps i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, 0.16); }
.pd-sam { display: flex; flex-direction: column; align-items: center; gap: 3px; animation: pd-pop var(--t) var(--spring) infinite; }
.pd-sam b { width: 100%; aspect-ratio: 1; border-radius: 10px; background: #0B0D15 url("/icon.svg") center / cover; box-shadow: 0 0 16px var(--tint); }
.pd-sam small { font-size: 8px; color: #fff; }
@keyframes pd-pop { 0%, 60% { transform: scale(0); } 66% { transform: scale(1.25); } 70%, 100% { transform: scale(1); } }
.pd-finger { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.7); left: 140px; top: 230px; opacity: 0; animation: pd-finger var(--t) var(--ease) infinite; }
@keyframes pd-finger {
  0% { left: 140px; top: 230px; opacity: 0; transform: scale(1); }
  4% { opacity: 1; }
  10% { left: 168px; top: 346px; transform: scale(1); }
  12% { transform: scale(0.75); }
  15% { transform: scale(1); }
  28% { left: 168px; top: 346px; }
  36% { left: 98px; top: 296px; transform: scale(1); }
  39% { transform: scale(0.75); }
  42% { transform: scale(1); opacity: 1; }
  48%, 100% { opacity: 0; left: 98px; top: 296px; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-sheet, .pd-home, .pd-sam, .pd-finger, .pd-row-home, .pd-share, .install-arrow { animation: none !important; }
  .pd-home { opacity: 1; }
}

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 20;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  max-width: min(520px, calc(100vw - 32px));
  background: rgba(243, 244, 249, 0.96); color: #0B0C12; border-radius: 16px; padding: 13px 18px; font-size: 15px; font-weight: 600;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  animation: toast-in 0.45s var(--spring) both;
}
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 20px) scale(0.95); } }

/* ---------- вход ---------- */
.login-box { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.gsi-wrap { display: flex; justify-content: center; min-height: 44px; }
.dev-login { display: flex; flex-direction: column; gap: 10px; }
.dev-login input {
  font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: 16px; padding: 14px 16px; width: 100%; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.dev-login input:focus { outline: none; border-color: color-mix(in oklab, var(--tint) 60%, transparent); box-shadow: 0 0 0 4px color-mix(in oklab, var(--tint) 18%, transparent); }

/* ---------- аватар ---------- */
.avatar {
  width: 38px; height: 38px; flex: none; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  border: 1px solid color-mix(in oklab, var(--tint) 40%, var(--line-strong)); cursor: pointer;
  background: linear-gradient(140deg, color-mix(in oklab, var(--tint) 40%, #151824), #151824);
  font-family: var(--f-display); font-weight: 700; font-size: 15px; color: var(--ink); padding: 0;
  transition: transform 0.25s var(--spring);
}
.avatar:active { transform: scale(0.92); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-lg { width: 72px; height: 72px; font-size: 28px; cursor: default; box-shadow: 0 16px 40px -16px var(--tint); }

/* ---------- личная карточка ---------- */
.profile { display: flex; align-items: center; gap: 16px; animation: rise 0.7s var(--ease) both; }
.profile-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.profile-text .hero-title { overflow-wrap: anywhere; }
.balance-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: end;
  text-align: left; width: 100%; padding: 20px; border-radius: 26px; cursor: pointer; border: 1px solid color-mix(in oklab, var(--tint) 35%, var(--line));
  background: radial-gradient(120% 140% at 100% 0%, color-mix(in oklab, var(--tint) 28%, transparent), transparent 55%), linear-gradient(160deg, #151a26, #0e1019);
  animation: rise 0.7s var(--ease) both 0.08s; transition: transform 0.3s var(--spring);
}
.balance-card:active { transform: scale(0.98); }
.balance-label { grid-column: 1 / -1; font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.balance-value { display: flex; align-items: baseline; gap: 8px; }
.balance-value b { font-family: var(--f-display); font-weight: 800; font-size: 44px; line-height: 1; letter-spacing: -0.03em; }
.balance-value span { color: var(--ink-2); }
.balance-sub { grid-column: 1; font-size: 13.5px; color: var(--ink-2); }
.balance-cta { grid-column: 2; grid-row: 2 / span 2; align-self: center; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 999px; color: var(--accent-ink); background: linear-gradient(120deg, var(--accent), var(--accent-2)); }
.stat-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; animation: rise 0.7s var(--ease) both 0.16s; }
.stat-box { display: flex; flex-direction: column; gap: 2px; padding: 14px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.stat-box b { font-family: var(--f-display); font-weight: 700; font-size: 22px; }
.stat-box span { font-size: 12.5px; color: var(--muted); line-height: 1.3; }
.list { display: flex; flex-direction: column; gap: 10px; }
.empty { font-size: 14px; color: var(--muted); padding: 14px 16px; border-radius: 18px; border: 1px dashed var(--line-strong); }
.item {
  --c: var(--tint);
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left; width: 100%;
  padding: 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); cursor: pointer;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise 0.55s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms);
  transition: transform 0.3s var(--spring), border-color 0.25s;
}
.item:hover { border-color: color-mix(in oklab, var(--c) 40%, var(--line)); }
.item:active { transform: scale(0.98); }
.item-ico { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in oklab, var(--c) 15%, transparent); }
.item-ico svg { width: 21px; height: 21px; }
.item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.item-title { font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.item-sub { font-size: 13px; color: var(--muted); }
.item-end { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.item.done .item-title { text-decoration: line-through; text-decoration-color: color-mix(in oklab, var(--good) 70%, transparent); color: var(--ink-2); }
.check {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; padding: 0; cursor: pointer;
  border: 2px solid var(--line-strong); background: transparent; color: transparent; transition: all 0.3s var(--spring);
}
.check[aria-pressed="true"] { background: var(--good); border-color: var(--good); color: #062014; transform: scale(1.05); }
.check svg { width: 16px; height: 16px; }
.hw-steps { grid-column: 1 / -1; margin: 4px 0 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.settings { display: flex; flex-direction: column; gap: 10px; }
.row-center { justify-content: center; }
.btn-danger { background: color-mix(in oklab, var(--danger) 85%, black); border-color: var(--danger); color: #fff; }

/* ---------- итоги сеанса ---------- */
.summary-head { display: flex; align-items: center; gap: 16px; animation: rise 0.7s var(--ease) both; }
.face-summary { width: 112px; }
.summary-head-text { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.summary-body { display: flex; flex-direction: column; gap: 12px; }
.sum-card { padding: 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; animation: rise 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.sum-card p { color: var(--ink); font-size: 15.5px; line-height: 1.55; }
.sum-card .label-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sum-label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: color-mix(in oklab, var(--tint) 70%, white); }
.sum-card h3 { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.insights li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 15px; color: var(--ink-2); }
.insights li::before { content: ""; width: 8px; height: 8px; margin: 7px 0 0 6px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 10px var(--tint); }
.sum-card.hw { border-color: color-mix(in oklab, var(--accent) 35%, var(--line)); background: linear-gradient(160deg, color-mix(in oklab, var(--accent) 10%, rgba(20, 23, 35, 0.75)), rgba(13, 15, 24, 0.78)); }
.sum-card.hw .sum-label { color: color-mix(in oklab, var(--accent) 75%, white); }
.sum-card.hw ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
.sum-card.crisis { border-color: color-mix(in oklab, var(--danger) 55%, transparent); background: color-mix(in oklab, var(--danger) 12%, rgba(13, 15, 24, 0.85)); }
.sum-card.crisis .sum-label { color: #FF8A94; }
.pending { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 10px; text-align: center; color: var(--ink-2); }
.bar-loader { width: 160px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; position: relative; }
.bar-loader::after { content: ""; position: absolute; inset: 0; width: 40%; border-radius: 4px; background: var(--tint); box-shadow: 0 0 12px var(--tint); animation: load 1.2s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

/* ---------- тест ---------- */
.screen-test { gap: 16px; }
.test-progress { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.test-progress span { display: block; height: 100%; width: 0; border-radius: 4px; background: linear-gradient(90deg, color-mix(in oklab, var(--tint) 60%, transparent), var(--tint)); box-shadow: 0 0 12px var(--tint); transition: width 0.5s var(--ease); }
.test-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.q { display: flex; flex-direction: column; gap: 14px; animation: q-in 0.45s var(--ease) both; }
.q.back { animation-name: q-in-back; }
@keyframes q-in { from { opacity: 0; transform: translateX(40px); filter: blur(6px); } }
@keyframes q-in-back { from { opacity: 0; transform: translateX(-40px); filter: blur(6px); } }
.q-hint { font-size: 14px; color: var(--muted); }
.q-text { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 5.6vw, 25px); line-height: 1.25; }
.opts { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 16px 18px; border-radius: 18px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--line-strong); font-size: 16px; font-weight: 500;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  animation: rise 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + 80ms);
  transition: transform 0.25s var(--spring), border-color 0.2s, background 0.2s;
}
.opt:hover { border-color: color-mix(in oklab, var(--tint) 55%, transparent); }
.opt:active { transform: scale(0.98); }
.opt.sel { background: color-mix(in oklab, var(--tint) 22%, var(--surface)); border-color: var(--tint); }
.opt-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: all 0.25s var(--spring); }
.opt.sel .opt-dot { border-color: var(--tint); background: var(--tint); box-shadow: 0 0 0 4px color-mix(in oklab, var(--tint) 25%, transparent); }
.result { display: flex; flex-direction: column; gap: 14px; animation: rise 0.6s var(--ease) both; }
.score { display: flex; align-items: baseline; gap: 8px; }
.score b { font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; }
.score span { color: var(--muted); font-size: 18px; }
.scale { display: flex; gap: 3px; height: 12px; }
.scale i { flex: 1; border-radius: 6px; background: rgba(255, 255, 255, 0.08); }
.scale i.on { background: var(--tint); box-shadow: 0 0 14px var(--tint); }
.scale-labels { display: flex; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--muted); }
.scale-wrap { display: flex; flex-direction: column; gap: 6px; }
.q-fine { text-align: left; margin-top: 4px; }
.sub-score { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.score-sm b { font-size: 44px; }
.sub-label { font-weight: 600; font-size: 15.5px; }
.change { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.change-better { color: var(--good); }
.change-worse { color: #FF8A94; }
.sum-card .explain { color: var(--ink-2); font-size: 14.5px; }
.next-actions { display: flex; flex-direction: column; gap: 8px; }
.next-opt {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%; text-align: left; cursor: pointer;
  padding: 13px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink);
  transition: transform 0.25s var(--spring), border-color 0.2s, background 0.2s;
}
.next-opt:hover { border-color: color-mix(in oklab, var(--tint) 55%, transparent); }
.next-opt:active { transform: scale(0.98); }
.next-opt[aria-expanded="true"] { border-color: var(--tint); background: color-mix(in oklab, var(--tint) 14%, var(--surface)); }
.next-opt.urgent { border-color: color-mix(in oklab, var(--danger) 60%, transparent); background: color-mix(in oklab, var(--danger) 12%, var(--surface)); }
.next-title { font-weight: 600; font-size: 15.5px; }
.next-sub { font-size: 13px; color: var(--muted); }
.next-panel { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.ex-wrap { display: flex; flex-direction: column; gap: 8px; }
.ex-body { display: flex; flex-direction: column; gap: 10px; padding: 0 6px 6px; }
.ex-body .hw-steps { margin: 0; }
.who-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; color: var(--ink-2); }
.who-list b { color: var(--ink); font-weight: 600; }
.result-fine { display: flex; flex-direction: column; gap: 6px; }

/* ---------- вход в дыхательные практики на главном ---------- */
.breath-entry {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  width: 100%; min-height: 64px; padding: 12px 14px 12px 12px; border-radius: 20px; cursor: pointer;
  border: 1px solid color-mix(in oklab, #7C9CFF 32%, var(--line));
  background: linear-gradient(110deg, color-mix(in oklab, #7C9CFF 16%, rgba(20, 23, 35, 0.8)), rgba(13, 15, 24, 0.8) 75%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise 0.8s var(--ease) both 0.22s;
  transition: transform 0.3s var(--spring), border-color 0.25s;
}
.breath-entry:hover { border-color: color-mix(in oklab, #7C9CFF 60%, var(--line)); }
.breath-entry:active { transform: scale(0.98); }
.breath-entry-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #9FB6FF; background: color-mix(in oklab, #7C9CFF 18%, transparent); }
.breath-entry-ico svg { animation: wind 3.2s ease-in-out infinite; }
@keyframes wind { 50% { transform: translateX(2px); } }
.breath-entry-tag { font-size: 11.5px; font-weight: 700; white-space: nowrap; padding: 4px 9px; border-radius: 999px; color: #0B1430; background: linear-gradient(120deg, #9FB6FF, #7C9CFF); }
@media (max-width: 430px) { .breath-entry-ico { width: 36px; height: 36px; border-radius: 12px; } }

/* ---------- ритуалы дня ---------- */
.ritual-entry { --r: #F7C58A; border-color: color-mix(in oklab, var(--r) 32%, var(--line)); background: linear-gradient(110deg, color-mix(in oklab, var(--r) 14%, rgba(20, 23, 35, 0.8)), rgba(13, 15, 24, 0.8) 75%); animation-delay: 0.28s; }
.ritual-entry:hover { border-color: color-mix(in oklab, var(--r) 60%, var(--line)); }
.ritual-entry .breath-entry-ico { color: var(--r); background: color-mix(in oklab, var(--r) 16%, transparent); }
.ritual-entry .breath-entry-ico svg { animation: none; }
.ritual-entry .breath-entry-tag { color: #2A1A06; background: linear-gradient(120deg, #FBD9AA, var(--r)); }
.rituals { display: flex; flex-direction: column; gap: 14px; }
.ritual-card {
  --r: #F7C58A;
  display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: 24px;
  border: 1px solid color-mix(in oklab, var(--r) 30%, var(--line));
  background: radial-gradient(120% 120% at 100% 0%, color-mix(in oklab, var(--r) 16%, transparent), transparent 60%), var(--surface);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); animation: rise 0.6s var(--ease) both;
}
.ritual-evening { --r: #B3A1F7; animation-delay: 0.08s; }
.ritual-top { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; }
.ritual-ico { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: var(--r); background: color-mix(in oklab, var(--r) 16%, transparent); }
.ritual-text h3 { font-family: var(--f-display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.ritual-text p { color: var(--ink-2); font-size: 14.5px; margin-top: 4px; }
.ritual-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ritual-actions .btn { flex: 1 1 180px; }
.ritual-remind { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ritual-switch { display: flex; align-items: center; gap: 12px; color: var(--ink-2); font-size: 15px; cursor: pointer; }
.ritual-time { min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; font-variant-numeric: tabular-nums; color-scheme: dark; }
.ritual-time:disabled, .ritual-switch:has(input:disabled) { opacity: 0.6; }
.ritual-status { min-height: 1.4em; }
.ritual-pacer { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0; }

/* ---------- «Мне плохо сейчас» ---------- */
.calm-entry {
  --c: #7FD6C2;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-align: left;
  width: 100%; padding: 12px 14px 12px 12px; border-radius: 20px; cursor: pointer;
  border: 1px solid color-mix(in oklab, var(--c) 40%, var(--line));
  background: linear-gradient(110deg, color-mix(in oklab, var(--c) 14%, rgba(20, 23, 35, 0.85)), rgba(13, 15, 24, 0.85) 80%);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: rise 0.7s var(--ease) both 0.12s; transition: transform 0.3s var(--spring), border-color 0.25s;
}
.calm-entry:hover { border-color: color-mix(in oklab, var(--c) 70%, var(--line)); }
.calm-entry:active { transform: scale(0.98); }
.calm-entry-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--c); background: color-mix(in oklab, var(--c) 16%, transparent); }
.calm-entry-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.calm-entry-text b { font-weight: 700; font-size: 15.5px; }
.calm-entry-text span { font-size: 12.5px; color: var(--muted); }
.calm-link { align-self: center; font-size: 14.5px; color: #9EE6D6; }
.screen-calm { --tint: #7FD6C2; }
.calm-sos { color: #fff; border-color: color-mix(in oklab, var(--danger) 60%, transparent); background: color-mix(in oklab, var(--danger) 22%, var(--surface)); text-decoration: none; }
.calm { display: flex; flex-direction: column; gap: 16px; }
.calm-run { align-items: center; text-align: center; padding-top: 4vh; gap: 22px; }
.calm-orb {
  width: min(56vw, 220px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--tint) 70%, white), color-mix(in oklab, var(--tint) 45%, transparent) 55%, transparent 72%);
  position: relative; isolation: isolate;
  transform: scale(0.82); transition: transform 4s cubic-bezier(0.45, 0, 0.55, 1), opacity 1s;
  animation: calm-float 7s ease-in-out infinite;
}
.calm-orb::before { content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--tint) 30%, transparent) 30%, transparent 68%); }
.calm-orb[data-breath="in"] { transform: scale(1.08); transition-duration: 4s; }
.calm-orb[data-breath="out"] { transform: scale(0.7); transition-duration: 6s; }
@keyframes calm-float { 50% { translate: 0 -6px; } }
.calm-phrase { font-family: var(--f-display); font-weight: 500; font-size: clamp(20px, 5.4vw, 26px); line-height: 1.3; max-width: 30ch; min-height: 3.9em; }
.calm-progress { width: min(100%, 320px); height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.calm-progress span { display: block; height: 100%; width: 0; background: var(--tint); box-shadow: 0 0 12px var(--tint); transition: width 1.2s var(--ease); }
.calm-voice-note { max-width: 32ch; }
.calm-check { gap: 18px; padding-top: 4vh; }
.calm-choices { display: flex; flex-direction: column; gap: 10px; }
.calm-urgent { border-color: color-mix(in oklab, var(--danger) 55%, transparent); background: color-mix(in oklab, var(--danger) 14%, var(--surface)); }
.calm-section { display: flex; flex-direction: column; gap: 8px; }
.calm-line {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none;
  transition: transform 0.25s var(--spring), border-color 0.2s;
}
a.calm-line:active { transform: scale(0.98); }
a.calm-line:hover { border-color: color-mix(in oklab, var(--tint) 60%, transparent); }
.calm-line.urgent { border-color: color-mix(in oklab, var(--danger) 55%, transparent); background: color-mix(in oklab, var(--danger) 12%, var(--surface)); }
.calm-line-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.calm-line-text b { font-weight: 600; font-size: 15.5px; overflow-wrap: anywhere; }
.calm-line-text span { font-size: 13px; color: var(--muted); }
.calm-line-phone { font-family: var(--f-display); font-weight: 600; font-size: 15px; white-space: nowrap; color: var(--tint); font-variant-numeric: tabular-nums; }
.calm-line.urgent .calm-line-phone { color: #FF8A94; }
.calm-abroad { align-self: flex-start; font-size: 14px; }
.calm-plan-item { display: flex; flex-direction: column; gap: 2px; }
.calm-plan-item b { font-size: 14px; color: var(--ink); }
.calm-plan-item p { white-space: pre-line; color: var(--ink-2); font-size: 14.5px; }
.calm-form { display: flex; flex-direction: column; gap: 16px; }
.calm-field { display: flex; flex-direction: column; gap: 6px; }
.calm-field label { font-weight: 600; font-size: 15px; }
.calm-field small { color: var(--muted); font-size: 13px; }
.calm-field textarea, .calm-contact input {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--ink); font: inherit; resize: vertical;
}
.calm-contacts { display: flex; flex-direction: column; gap: 8px; }
.calm-contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.calm-field .link { align-self: flex-start; }
.btn-ghost-danger { color: #FF8A94; border-color: color-mix(in oklab, var(--danger) 45%, transparent); background: transparent; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) {
  .calm-orb, .calm-orb[data-breath] { animation: none; transition: none; transform: none; }
}

/* ---------- преимущества тарифов ---------- */
.perks { padding: 16px 18px; border-radius: 22px; border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 12%, rgba(20, 23, 35, 0.8)), rgba(13, 15, 24, 0.8)); display: flex; flex-direction: column; gap: 10px; animation: rise 0.6s var(--ease) both 0.06s; }
.perk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.perk-list li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; }
.perk-ico { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--accent); background: color-mix(in oklab, var(--accent) 15%, transparent); }

/* ---------- значки замка и «бесплатно» в списках ---------- */
.tag-free, .tag-lock { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.tag-free { color: #062014; background: var(--good); }
.tag-lock { color: var(--ink-2); border: 1px solid var(--line-strong); }
.tag-lock svg { width: 12px; height: 12px; }
.item.locked .item-ico, .item.locked .item-title { opacity: 0.6; }
.rhythm-mini { font-family: var(--f-display); font-weight: 600; font-size: 12px; color: var(--c); letter-spacing: 0.04em; }

/* ---------- дыхательное упражнение ---------- */
.screen-breath { gap: 14px; }
.breath-stage { display: grid; place-items: center; padding: 6px 0; }
.breath-face-wrap { position: relative; width: min(78vw, 330px); display: grid; place-items: center; }
.face-breath { --c: var(--tint); width: 100%; transform: scale(var(--b, 1)); transition: transform var(--bd, 0.6s) cubic-bezier(0.45, 0, 0.55, 1); }
.burst { position: absolute; inset: 0; pointer-events: none; }
.burst i { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; background: var(--tint); box-shadow: 0 0 12px var(--tint); opacity: 0; animation: burst 1.1s var(--ease) forwards; animation-delay: var(--dl, 0s); }
@keyframes burst { 0% { opacity: 1; transform: translate(-50%, -50%) scale(0.6); } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1); } }
.breath-pane { display: flex; flex-direction: column; gap: 14px; animation: rise 0.55s var(--ease) both; }
.rhythm { display: flex; flex-wrap: wrap; gap: 8px; }
.rhythm span { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); }
.rhythm b { font-family: var(--f-display); font-weight: 700; color: var(--tint); font-size: 15px; }
.breath-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink-2); font-size: 15px; }
.dur-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.dur-pick button { flex: 1; min-width: 80px; padding: 11px 12px; border-radius: 14px; cursor: pointer; font-weight: 600; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line-strong); transition: all 0.25s var(--spring); }
.dur-pick button[aria-checked="true"] { background: color-mix(in oklab, var(--tint) 22%, var(--surface)); border-color: var(--tint); }
.caution { color: var(--muted); font-size: 12.5px; }
.phase-label { text-align: center; font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 6.5vw, 28px); line-height: 1.15; min-height: 1.2em; }
.phase-label.swap { animation: phase-in 0.45s var(--ease) both; }
@keyframes phase-in { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.phase-count { text-align: center; font-family: var(--f-display); font-weight: 800; font-size: 64px; line-height: 1; letter-spacing: -0.04em; color: var(--tint); text-shadow: 0 0 30px color-mix(in oklab, var(--tint) 55%, transparent); font-variant-numeric: tabular-nums; }
.phase-scale { display: flex; gap: 6px; height: 14px; }
.phase-scale i { flex: 1; border-radius: 7px; background: rgba(255, 255, 255, 0.08); transition: background 0.3s, box-shadow 0.3s, transform 0.3s var(--spring); }
.phase-scale i.on { background: var(--tint); box-shadow: 0 0 14px var(--tint); transform: scaleY(1.15); }
.phase-scale.out i.on { background: color-mix(in oklab, var(--tint) 55%, white); }
.phase-line { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.phase-line span { display: block; height: 100%; width: 0; background: var(--tint); }
.cycle-info { text-align: center; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Вход в пять миров Сэма. Иллюстрация остаётся лёгкой и без загрузки изображений. */
.journeys-entry {
  position: relative; isolation: isolate; display: flex; align-items: center; width: 100%; min-height: 200px;
  padding: 24px; text-align: left; border: 1px solid rgba(181, 173, 244, .25); border-radius: 27px; overflow: hidden;
  background: radial-gradient(ellipse at 90% 20%, #3a2c5144, transparent 65%), linear-gradient(125deg, #172c2b, #181923 65%);
  box-shadow: inset 0 1px rgba(255,255,255,.05), 0 14px 36px #0002; cursor: pointer;
  transition: border-color .25s, transform .25s;
}
.journeys-entry:hover { border-color: #b5adf488; transform: translateY(-2px); }
.journeys-entry-copy { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.journeys-entry-kicker { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: #b6d9d4; }
.journeys-entry-copy > b { font-family: var(--f-display); font-size: clamp(18px, 4.6vw, 23px); font-weight: 600; line-height: 1.42; letter-spacing: -.04em; }
.journeys-entry-copy > span:not(.journeys-entry-kicker) { font-size: 12px; color: #c6c9d4; }
.journeys-entry-copy .journeys-entry-link { margin-top: 9px; font-weight: 600; color: #d9caff !important; display: flex; align-items: center; gap: 16px; }
.journeys-entry-link > span { font-size: 20px; line-height: .7; }
.journeys-entry-art { position: absolute; width: 44%; max-width: 210px; right: -4px; bottom: 5px; opacity: .82; transform: rotate(-9deg); }
.journeys-entry-art svg { display: block; width: 100%; filter: drop-shadow(0 0 12px #a7c8ff44); }
.card-journeys { justify-content: space-between; border-radius: 18px; min-height: 52px; background: linear-gradient(120deg, #21373080, #30233a80); }
@media (max-width: 360px) {
  .journeys-entry { padding: 20px; min-height: 192px; }
  .journeys-entry-art { width: 37%; right: -12px; opacity: .5; }
  .journeys-entry-copy > span:not(.journeys-entry-kicker) { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .journeys-entry { transition: none; } .journeys-entry:hover { transform: none; } }
