/* Calmely — дизайн-система. Тёмная спокойная палитра: глубокий синий, бирюза, мягкий коралл. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("fonts/Inter-Regular.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("fonts/Inter-Medium.woff") format("woff"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("fonts/Inter-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 600; font-display: swap; src: url("fonts/InterDisplay-SemiBold.woff") format("woff"); }
@font-face { font-family: "Inter Display"; font-weight: 700; font-display: swap; src: url("fonts/InterDisplay-Bold.woff") format("woff"); }

:root {
  --bg: #0c1726;
  --bg-2: #0f1b2d;
  --surface: #13233a;
  --surface-2: #182c47;
  --surface-3: #1e3655;
  --line: rgba(139, 165, 181, .16);
  --line-2: rgba(139, 165, 181, .28);
  --text: #eaf2f6;
  --text-2: #b8c9d4;
  --muted: #8ba5b5;
  --accent: #4ecdc4;
  --accent-2: #7fe3dc;
  --accent-ink: #062a2a;
  --accent-soft: rgba(78, 205, 196, .12);
  --coral: #ff9c97;
  --coral-soft: rgba(255, 156, 151, .12);
  --danger: #ff7a73;
  --warn: #f5c26b;
  --ok: #6fd9a0;
  --lilac: #a9a5ff;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .55);
  --shadow-sm: 0 8px 24px -12px rgba(0, 0, 0, .5);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-d: "Inter Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --header-h: 72px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(78, 205, 196, .13), transparent 60%),
    radial-gradient(700px 520px at -10% 30%, rgba(169, 165, 255, .08), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(255, 156, 151, .07), transparent 60%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-2); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--font-d); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 5vw, 58px); font-weight: 700; letter-spacing: -.035em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); }
h3 { font-size: 20px; letter-spacing: -.01em; }
h4 { font-size: 16px; letter-spacing: 0; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.text-2 { color: var(--text-2); }
.hidden { display: none !important; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
::selection { background: rgba(78, 205, 196, .35); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 48px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 600 12px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--text-2); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.mt-0 { margin-top: 0 !important; } .mt-8 { margin-top: 8px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-40 { margin-top: 40px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; }
.grow { flex: 1; min-width: 0; }

/* иконки */
.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 26px; height: 26px; }

/* ---------------------------------------------------------- шапка */
#site-header { min-height: var(--header-h); }
.header { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: rgba(12, 23, 38, .72); border-bottom: 1px solid var(--line); }
.header .wrap { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font: 700 21px/1 var(--font-d); letter-spacing: -.03em; }
.logo:hover { color: var(--text); }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #2f9fbf 60%, var(--lilac)); box-shadow: 0 6px 20px -6px rgba(78, 205, 196, .6); }
.logo-mark svg { width: 20px; height: 20px; stroke: #062a2a; stroke-width: 2.2; fill: none; }
.logo small { font: 500 11px/1 var(--font); color: var(--muted); letter-spacing: .02em; margin-left: 2px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav a { color: var(--text-2); font-weight: 500; font-size: 15px; padding: 9px 13px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav a.active { color: var(--text); background: rgba(78, 205, 196, .1); }
.nav a.sos { color: var(--coral); }
.nav a.sos:hover { background: var(--coral-soft); }
.header-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.badge-dot { min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #3a0f0d; font: 600 11px/18px var(--font); text-align: center; }
.burger { display: none; }
.mobile-nav { display: none; }

/* ---------------------------------------------------------- кнопки */
.btn { --b: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px;
  border-radius: 13px; border: 1px solid transparent; background: var(--b); color: var(--text); font: 600 15px/1 var(--font);
  cursor: pointer; transition: transform .15s ease, background .2s, border-color .2s, box-shadow .2s, color .2s; white-space: nowrap; text-decoration: none; }
.btn:hover { color: var(--text); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled], .btn.is-loading { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: linear-gradient(180deg, #5ad8cf, var(--accent)); color: var(--accent-ink); box-shadow: 0 10px 28px -12px rgba(78, 205, 196, .75), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-primary:hover { color: var(--accent-ink); box-shadow: 0 14px 34px -12px rgba(78, 205, 196, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: rgba(78, 205, 196, .5); background: var(--accent-soft); }
.btn-soft { background: var(--accent-soft); color: var(--accent-2); }
.btn-soft:hover { background: rgba(78, 205, 196, .2); color: var(--accent-2); }
.btn-coral { background: var(--coral); color: #3a0f0d; }
.btn-coral:hover { color: #3a0f0d; background: #ffb0ac; }
.btn-danger { background: rgba(255, 122, 115, .12); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 122, 115, .2); color: var(--danger); }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-xs { height: 30px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 15px; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.link-btn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0; }
.link-btn:hover { color: var(--accent-2); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------- карточки */
.card { background: linear-gradient(180deg, rgba(30, 54, 85, .55), rgba(19, 35, 58, .7)); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; position: relative; }
.card-flat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.card-hover { transition: transform .2s ease, border-color .2s, box-shadow .2s; }
.card-hover:hover { transform: translateY(-3px); border-color: rgba(78, 205, 196, .35); box-shadow: var(--shadow); }
a.card { color: inherit; display: block; }
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.ico-box { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 18px; }
.ico-box.coral { background: var(--coral-soft); color: var(--coral); }
.ico-box.lilac { background: rgba(169, 165, 255, .12); color: var(--lilac); }
.ico-box.ok { background: rgba(111, 217, 160, .12); color: var(--ok); }

.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 8px; font: 500 12.5px/1 var(--font);
  background: rgba(255, 255, 255, .05); color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; }
.tag.accent { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(78, 205, 196, .25); }
.tag.coral { background: var(--coral-soft); color: var(--coral); border-color: rgba(255, 156, 151, .25); }
.tag.ok { background: rgba(111, 217, 160, .1); color: var(--ok); border-color: rgba(111, 217, 160, .25); }
.tag.warn { background: rgba(245, 194, 107, .1); color: var(--warn); border-color: rgba(245, 194, 107, .25); }
.tag.danger { background: rgba(255, 122, 115, .1); color: var(--danger); border-color: rgba(255, 122, 115, .25); }
.tag .i { width: 14px; height: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 15px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 14px/1 var(--font); cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 6px; }
.chip:hover { color: var(--text); border-color: rgba(78, 205, 196, .45); }
.chip.on { background: var(--accent-soft); color: var(--accent-2); border-color: rgba(78, 205, 196, .5); }

/* ---------------------------------------------------------- формы */
.field { display: block; margin-bottom: 16px; }
.field > span, .label { display: block; font: 500 14px/1.3 var(--font); color: var(--text-2); margin-bottom: 8px; }
.hint, .field .hint { display: block; font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.input, select.input, textarea.input {
  width: 100%; height: 48px; padding: 0 15px; border-radius: 13px; border: 1px solid var(--line-2); background: rgba(8, 16, 28, .55);
  color: var(--text); font: 400 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background .2s; appearance: none; -webkit-appearance: none; }
textarea.input { height: auto; min-height: 120px; padding: 13px 15px; resize: vertical; line-height: 1.55; }
select.input { padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
select.input option { background: var(--surface); color: var(--text); }
.input::placeholder { color: rgba(139, 165, 181, .65); }
.input:hover { border-color: rgba(139, 165, 181, .42); }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(78, 205, 196, .14); background: rgba(8, 16, 28, .75); }
.input.code { letter-spacing: .5em; font: 600 22px/1 var(--font); text-align: center; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--text-2); line-height: 1.5; margin-bottom: 14px; }
.check input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border-radius: 6px; border: 1.5px solid var(--line-2); background: rgba(8, 16, 28, .55); cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--accent); border-color: var(--accent); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: .2s; margin: 0; flex: none; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--text-2); transition: .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { left: 21px; background: var(--accent-ink); }
.form-error { color: var(--danger); font-size: 14px; min-height: 0; margin: -4px 0 14px; }
.form-error:empty { display: none; }
.seg { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(8, 16, 28, .55); border: 1px solid var(--line); gap: 4px; }
.seg button { height: 38px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 14px/1 var(--font); cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.seg button.on { background: var(--surface-3); color: var(--text); box-shadow: var(--shadow-sm); }
.seg.full { display: flex; }
.seg.full button { flex: 1; justify-content: center; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.pw-meter i { display: block; height: 100%; width: 0; background: var(--danger); transition: width .25s, background .25s; }

/* ---------------------------------------------------------- герой главной */
.hero { padding: 72px 0 40px; position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--accent-2), var(--accent) 40%, var(--lilac)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 36px; color: var(--muted); font-size: 14px; }
.hero-note span { display: inline-flex; align-items: center; gap: 8px; }
.hero-note .i { color: var(--accent); width: 18px; height: 18px; }
.hero-visual { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin-left: auto; width: 100%; }
.orb { position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(127, 227, 220, .9), rgba(78, 205, 196, .55) 30%, rgba(47, 159, 191, .35) 55%, rgba(169, 165, 255, .15) 75%, transparent 76%);
  filter: blur(.5px); animation: breathe 9s ease-in-out infinite; box-shadow: 0 0 120px 10px rgba(78, 205, 196, .25); }
.orb::after { content: ""; position: absolute; inset: -8%; border-radius: 50%; border: 1px solid rgba(127, 227, 220, .25); animation: ring 9s ease-in-out infinite; }
.orb-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(139, 165, 181, .18); animation: rotate 60s linear infinite; }
@keyframes breathe { 0%, 100% { transform: scale(.86); } 45% { transform: scale(1); } 60% { transform: scale(1); } }
@keyframes ring { 0%, 100% { transform: scale(.95); opacity: .3; } 50% { transform: scale(1.06); opacity: .8; } }
@keyframes rotate { to { transform: rotate(360deg); } }
.breath-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: var(--accent-ink); font: 600 17px/1.3 var(--font-d); pointer-events: none; }
.breath-label small { display: block; font: 500 12px var(--font); opacity: .75; margin-top: 4px; }
.float-card { position: absolute; background: rgba(19, 35, 58, .86); border: 1px solid var(--line-2); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; gap: 11px; align-items: center; font-size: 13.5px; max-width: 250px; animation: floaty 7s ease-in-out infinite; }
.float-card b { display: block; font-weight: 600; color: var(--text); font-size: 14px; }
.float-card span { color: var(--muted); }
.float-card .ico-box { width: 38px; height: 38px; margin: 0; border-radius: 11px; flex: none; }
.fc-1 { top: 6%; left: -6%; }
.fc-2 { bottom: 16%; right: -4%; animation-delay: -2.5s; }
.fc-3 { bottom: 0; left: 8%; animation-delay: -4.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(19, 35, 58, .4); }
.trust .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-item { padding: 26px 22px; display: flex; gap: 14px; align-items: flex-start; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item .i { color: var(--accent); margin-top: 2px; }
.trust-item b { display: block; font-weight: 600; font-size: 15px; }
.trust-item span { color: var(--muted); font-size: 13.5px; line-height: 1.45; display: block; margin-top: 3px; }

.steps { counter-reset: step; }
.step { position: relative; padding-top: 58px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; left: 0; font: 700 34px/1 var(--font-d); color: transparent; -webkit-text-stroke: 1px rgba(78, 205, 196, .55); }
.step h3 { font-size: 18px; }
.step p { color: var(--text-2); font-size: 15px; }

.feature-big { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li { display: flex; gap: 12px; padding: 10px 0; color: var(--text-2); }
.feature-list li .i { color: var(--accent); flex: none; margin-top: 3px; }
.chat-demo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; box-shadow: var(--shadow); }
.chat-demo .bubble { max-width: 86%; }

.cta-band { border-radius: var(--r-xl); padding: 56px; background: radial-gradient(600px 300px at 90% 0, rgba(78, 205, 196, .25), transparent 60%), linear-gradient(135deg, #17324f, #13233a); border: 1px solid var(--line-2); position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; bottom: -150px; border-radius: 50%; border: 1px solid rgba(78, 205, 196, .25); }

/* блок кризисной помощи */
.sos-box { border-radius: var(--r-lg); padding: 26px 28px; background: linear-gradient(135deg, rgba(255, 156, 151, .14), rgba(255, 156, 151, .04)); border: 1px solid rgba(255, 156, 151, .3); }
.sos-box h3 { color: var(--coral); display: flex; gap: 10px; align-items: center; }
.phones { display: grid; gap: 10px; margin-top: 14px; }
.phone-row { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 13px; background: rgba(8, 16, 28, .35); border: 1px solid var(--line); color: var(--text); }
.phone-row:hover { color: var(--text); border-color: rgba(255, 156, 151, .45); }
.phone-row .num { font: 700 18px/1 var(--font-d); letter-spacing: .01em; white-space: nowrap; color: var(--coral); min-width: 148px; }
.phone-row .what { font-size: 14px; line-height: 1.35; }
.phone-row .what span { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------------------------------------------------------- страницы */
.page-head { padding: 56px 0 28px; }
.page-head h1 { font-size: clamp(32px, 4vw, 46px); }
.page-head .lead { margin-bottom: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 24px; }
.search { position: relative; flex: 1; min-width: 220px; }
.search .i { position: absolute; left: 15px; top: 14px; color: var(--muted); }
.search .input { padding-left: 44px; }
.empty { text-align: center; padding: 56px 24px; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .i { width: 36px; height: 36px; color: var(--accent); margin-bottom: 12px; }
.empty h3 { color: var(--text); }
.skeleton { background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--r-lg); min-height: 180px; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* специалисты */
.spec-card { display: flex; flex-direction: column; gap: 14px; }
.spec-top { display: flex; gap: 14px; align-items: center; }
.avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font: 700 19px/1 var(--font-d); color: #062a2a; flex: none; letter-spacing: -.02em; }
.avatar.lg { width: 88px; height: 88px; border-radius: 26px; font-size: 30px; }
.avatar.sm { width: 38px; height: 38px; border-radius: 12px; font-size: 14px; }
.av-0 { background: linear-gradient(140deg, #7fe3dc, #4ecdc4); } .av-1 { background: linear-gradient(140deg, #c9c6ff, #a9a5ff); }
.av-2 { background: linear-gradient(140deg, #ffc4c0, #ff9c97); } .av-3 { background: linear-gradient(140deg, #ffe0a3, #f5c26b); }
.av-4 { background: linear-gradient(140deg, #a6f0c6, #6fd9a0); } .av-5 { background: linear-gradient(140deg, #a9d8ff, #6cb6f2); }
.spec-name { font: 600 17px/1.25 var(--font-d); }
.spec-kind { color: var(--muted); font-size: 14px; }
.spec-meta { display: flex; gap: 16px; flex-wrap: wrap; color: var(--text-2); font-size: 14px; }
.spec-meta span { display: inline-flex; gap: 6px; align-items: center; }
.spec-meta .i { width: 16px; height: 16px; color: var(--muted); }
.spec-foot { margin-top: auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; padding-top: 16px; border-top: 1px solid var(--line); }
.price { font: 600 15px/1.2 var(--font); }
.price small { display: block; color: var(--muted); font-weight: 400; font-size: 12.5px; }
.profile-head { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.profile-grid { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; margin-top: 28px; }
.sticky { position: sticky; top: calc(var(--header-h) + 20px); }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.day-btn { flex: none; width: 64px; padding: 10px 0; border-radius: 13px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); cursor: pointer; text-align: center; font: 500 12px/1.3 var(--font); }
.day-btn b { display: block; font: 600 18px/1.2 var(--font-d); color: var(--text); }
.day-btn.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); }
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.time-btn { height: 42px; border-radius: 11px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 14px/1 var(--font); cursor: pointer; }
.time-btn:hover { border-color: rgba(78, 205, 196, .5); }
.time-btn.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.time-btn.trial::after { content: "•"; color: var(--accent); margin-left: 4px; }
.time-btn.on.trial::after { color: var(--accent-ink); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.verify-badge { display: inline-flex; gap: 6px; align-items: center; color: var(--ok); font-size: 13.5px; font-weight: 500; }

/* ---------------------------------------------------------- чат */
.chat-shell { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch; height: calc(100vh - var(--header-h) - 150px); min-height: 560px; }
.chat-side { display: flex; flex-direction: column; gap: 14px; overflow: auto; }
.chat-main { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; min-height: 0; }
.chat-head { padding: 16px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; min-height: 72px; }
.chat-head h3 { margin: 0; font-size: 16px; }
.chat-head .sub { color: var(--muted); font-size: 13px; }
.chat-body { flex: 1; overflow-y: auto; padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.chat-foot { padding: 14px; border-top: 1px solid var(--line); background: rgba(8, 16, 28, .3); }
.composer { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { min-height: 50px; max-height: 180px; height: 50px; resize: none; border-radius: 15px; padding: 14px 16px; }
.composer .btn { height: 50px; width: 50px; padding: 0; border-radius: 15px; flex: none; }
.bubble { max-width: min(680px, 82%); padding: 12px 16px; border-radius: 18px; line-height: 1.55; font-size: 15px; white-space: pre-wrap; word-wrap: break-word; overflow-wrap: anywhere; position: relative; }
.bubble.them { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 6px; align-self: flex-start; }
.bubble.me { background: linear-gradient(180deg, #2a6d78, #235d6a); border-bottom-right-radius: 6px; align-self: flex-end; color: #f0fbfa; }
.bubble.system { align-self: center; background: transparent; color: var(--muted); font-size: 13px; text-align: center; padding: 4px 12px; max-width: 90%; }
.bubble.offer { border-color: rgba(78, 205, 196, .45); background: linear-gradient(180deg, rgba(78, 205, 196, .12), rgba(78, 205, 196, .05)); }
.bubble .meta { display: block; font-size: 11.5px; color: var(--muted); margin-top: 6px; white-space: normal; }
.bubble.me .meta { color: rgba(240, 251, 250, .65); text-align: right; }
.bubble .who { display: block; font-size: 12px; font-weight: 600; color: var(--accent-2); margin-bottom: 4px; white-space: normal; }
.bubble-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; white-space: normal; }
.bubble.crisis { border-color: rgba(255, 156, 151, .45); background: linear-gradient(180deg, rgba(255, 156, 151, .12), rgba(255, 156, 151, .04)); }
.typing { display: inline-flex; gap: 5px; padding: 16px 18px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.prompts { display: flex; flex-wrap: wrap; gap: 8px; }
.prompt { border: 1px solid var(--line-2); background: rgba(8, 16, 28, .35); color: var(--text-2); padding: 9px 13px; border-radius: 12px; font: 500 13.5px/1.35 var(--font); cursor: pointer; text-align: left; }
.prompt:hover { border-color: rgba(78, 205, 196, .45); color: var(--text); }
.chat-welcome { margin: auto; text-align: center; max-width: 520px; padding: 20px; }
.chat-welcome .orb-mini { width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7fe3dc, #4ecdc4 40%, #2f9fbf 70%, transparent 72%); animation: breathe 9s ease-in-out infinite; box-shadow: 0 0 60px rgba(78, 205, 196, .35); }
.guide-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; white-space: normal; }
.guide-links a { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; padding: 6px 10px; border-radius: 9px; background: rgba(78, 205, 196, .1); }

.thread-list { display: flex; flex-direction: column; gap: 6px; }
.thread-item { display: block; width: 100%; text-align: left; padding: 13px 14px; border-radius: 14px; border: 1px solid transparent; background: transparent; color: var(--text); cursor: pointer; font: inherit; }
.thread-item:hover { background: rgba(255, 255, 255, .03); border-color: var(--line); }
.thread-item.on { background: var(--surface-2); border-color: rgba(78, 205, 196, .35); }
.thread-item .t { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; }
.thread-item .t span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thread-item .s { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.thread-item .u { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: none; }
.side-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.side-tabs button { height: 32px; padding: 0 11px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font: 600 13px/1 var(--font); cursor: pointer; }
.side-tabs button.on { background: var(--surface-3); color: var(--text); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft); border: 1px solid rgba(78, 205, 196, .22); font-size: 14px; color: var(--text-2); line-height: 1.5; }
.notice .i { color: var(--accent); margin-top: 1px; }
.notice.coral { background: var(--coral-soft); border-color: rgba(255, 156, 151, .25); }
.notice.coral .i { color: var(--coral); }
.notice.warn { background: rgba(245, 194, 107, .08); border-color: rgba(245, 194, 107, .25); }
.notice.warn .i { color: var(--warn); }

/* ---------------------------------------------------------- библиотека и статьи */
.guide-card { display: flex; flex-direction: column; min-height: 230px; }
.guide-card .cover { height: 96px; margin: -26px -26px 20px; border-radius: var(--r-lg) var(--r-lg) 0 0; position: relative; overflow: hidden; }
.cover.c-anxiety { background: linear-gradient(135deg, #1f5a64, #2f9fbf); } .cover.c-mood { background: linear-gradient(135deg, #4b4590, #7a6fd0); }
.cover.c-sleep { background: linear-gradient(135deg, #1d2d5c, #39518f); } .cover.c-stress { background: linear-gradient(135deg, #6e3a48, #c7716f); }
.cover.c-relations { background: linear-gradient(135deg, #5a3a6e, #b06fa7); } .cover.c-body { background: linear-gradient(135deg, #2c5f45, #4fae7c); }
.cover.c-treatment { background: linear-gradient(135deg, #24455f, #4ecdc4); } .cover.c-support { background: linear-gradient(135deg, #6a5326, #d4a24e); }
.cover::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -30px; top: -40px; background: rgba(255, 255, 255, .12); }
.cover .i { position: absolute; left: 22px; bottom: 18px; width: 28px; height: 28px; color: rgba(255, 255, 255, .9); }
.guide-card h3 { font-size: 18px; }
.guide-card p { color: var(--text-2); font-size: 14.5px; }
.guide-card .foot { margin-top: auto; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 13px; }
.article { max-width: 760px; margin: 0 auto; }
.article-body { font-size: 17.5px; line-height: 1.75; color: #dbe7ee; }
.article-body h2 { font-size: 25px; margin: 1.8em 0 .6em; }
.article-body ul, .article-body ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.article-body li { margin: .35em 0; }
.article-body li::marker { color: var(--accent); }
.article-body blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 16px; background: var(--accent-soft); border-left: 3px solid var(--accent); color: var(--text); font-size: 16px; }
.article-body strong { color: var(--text); font-weight: 600; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden; background: #000; margin: 0 0 28px; border: 1px solid var(--line); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-meta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 14px; margin: 18px 0 32px; }
.moderated { display: flex; gap: 12px; align-items: center; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(19, 35, 58, .5); margin-top: 40px; font-size: 14px; color: var(--text-2); }
.moderated .i { color: var(--ok); }

/* ---------------------------------------------------------- аккаунт */
.auth-wrap { max-width: 480px; margin: 0 auto; }
.auth-card { padding: 32px; }
.divider { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 13px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.gos-btn { background: #fff; color: #0d4cd3; border-color: #fff; }
.gos-btn:hover { color: #0d4cd3; background: #eef3ff; }
.gos-btn .gos-logo { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, #0d4cd3, #e4022d); display: grid; place-items: center; color: #fff; font: 700 11px/1 var(--font); }
.gos-btn[disabled] { opacity: .65; }
.acc-grid { display: grid; grid-template-columns: 250px 1fr; gap: 28px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 4px; }
.acc-nav button { display: flex; gap: 11px; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; border: 0; background: transparent; color: var(--text-2); font: 500 15px/1 var(--font); cursor: pointer; text-align: left; }
.acc-nav button:hover { color: var(--text); background: rgba(255, 255, 255, .03); }
.acc-nav button.on { background: var(--surface-2); color: var(--text); }
.acc-nav button .i { color: var(--muted); }
.acc-nav button.on .i { color: var(--accent); }
.acc-section h2 { font-size: 26px; }
.codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 16px 0; }
.codes code { padding: 10px; border-radius: 10px; background: rgba(8, 16, 28, .55); border: 1px solid var(--line); font: 600 15px/1 ui-monospace, Menlo, Consolas, monospace; text-align: center; letter-spacing: .06em; }
.qr { background: #fff; border-radius: 14px; padding: 10px; display: inline-block; line-height: 0; }
.qr svg { width: 180px; height: 180px; }
.list { display: flex; flex-direction: column; }
.list-row { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.status-steps { display: flex; gap: 0; margin: 18px 0; }
.status-steps div { flex: 1; text-align: center; font-size: 13px; color: var(--muted); position: relative; padding-top: 30px; }
.status-steps div::before { content: ""; position: absolute; top: 6px; left: 50%; transform: translateX(-50%); width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--line-2); z-index: 1; }
.status-steps div::after { content: ""; position: absolute; top: 12px; left: 50%; width: 100%; height: 2px; background: var(--line-2); }
.status-steps div:last-child::after { display: none; }
.status-steps div.done { color: var(--text); }
.status-steps div.done::before { background: var(--accent); border-color: var(--accent); }
.status-steps div.done::after { background: var(--accent); }

/* ---------------------------------------------------------- таблицы */
.table-wrap { overflow-x: auto; border-radius: var(--r); border: 1px solid var(--line); }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(8, 16, 28, .3); }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }

/* ---------------------------------------------------------- модалки и уведомления */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(4, 10, 18, .7); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .2s ease; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 40px); overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-xl); padding: 30px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .8); animation: pop .25s cubic-bezier(.2, .9, .3, 1.2); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 22px; flex: 1; }
.modal-close { width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .05); color: var(--text-2); cursor: pointer; display: grid; place-items: center; flex: none; }
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
#toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 14.5px; display: flex; gap: 10px; align-items: flex-start; animation: pop .25s ease; }
.toast .i { color: var(--accent); }
.toast.err .i { color: var(--danger); }

/* ---------------------------------------------------------- подвал */
.footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 56px 0 34px; background: rgba(8, 16, 28, .35); font-size: 14.5px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-family: var(--font); font-weight: 600; margin-bottom: 14px; }
.footer a { color: var(--text-2); display: block; padding: 4px 0; }
.footer a:hover { color: var(--text); }
.footer-note { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-sos { color: var(--coral) !important; }

/* ---------------------------------------------------------- админка */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.kpi .k { color: var(--muted); font-size: 13px; display: flex; gap: 8px; align-items: center; }
.kpi .v { font: 700 30px/1.15 var(--font-d); margin-top: 8px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .d { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.kpi.alert .v { color: var(--coral); }
.chart-card { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); position: relative; }
.chart-card h3 { font-size: 15.5px; margin: 0; font-family: var(--font); font-weight: 600; }
.chart-card .sub { color: var(--muted); font-size: 13px; }
.chart { position: relative; margin-top: 16px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-l { stroke: rgba(139, 165, 181, .14); stroke-width: 1; }
.chart .axis-t { fill: var(--muted); font: 500 14px var(--font); }
.chart .bar { fill: var(--accent); }
.chart .bar.coral { fill: var(--coral); }
.chart .bar:hover, .chart .hit:hover + .bar { fill: var(--accent-2); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .line.coral { stroke: var(--coral); }
.chart .area { fill: rgba(78, 205, 196, .1); }
.chart .area.coral { fill: rgba(255, 156, 151, .1); }
.chart .dot { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.chart .dot.coral { fill: var(--coral); }
.chart .xhair { stroke: var(--line-2); stroke-width: 1; }
.chart .val-t { fill: var(--text-2); font: 600 15px var(--font); }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--surface-3); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 11px; font-size: 12.5px; white-space: nowrap; box-shadow: var(--shadow-sm); transform: translate(-50%, calc(-100% - 10px)); }
.tip b { font-size: 14px; display: block; font-variant-numeric: tabular-nums; }
.hbars { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.hbar { display: grid; grid-template-columns: minmax(170px, 48%) 1fr 48px; gap: 12px; align-items: center; font-size: 13.5px; }
.hbar .lbl { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .trk { height: 12px; border-radius: 4px; background: rgba(139, 165, 181, .08); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 0 4px 4px 0; background: var(--coral); }
.hbar .n { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-toggle { position: absolute; top: 18px; right: 18px; }

/* ---------------------------------------------------------- адаптив */
.nav a .i { display: none; }
@media (max-width: 1180px) {
  .nav a { padding: 9px 8px; font-size: 14.5px; }
  .header-right .btn-ghost.hide-m { display: none; }
}
@media (max-width: 960px) {
  .nav, .header-right .hide-m { display: none; }
  .burger { display: inline-flex; }
  .mobile-nav.open { display: block; position: fixed; inset: var(--header-h) 0 0; z-index: 49; background: rgba(12, 23, 38, .98); padding: 18px 20px 40px; overflow: auto; }
  .mobile-nav a { display: flex; gap: 12px; align-items: center; color: var(--text); font-size: 18px; font-weight: 500; padding: 15px 6px; border-bottom: 1px solid var(--line); }
  .mobile-nav a.sos { color: var(--coral); }
  .hero-grid, .feature-big, .profile-grid, .acc-grid, .admin-shell { grid-template-columns: 1fr; }
  .hero-visual { max-width: 400px; margin: 10px auto 0; }
  .g3, .g4, .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust .wrap { grid-template-columns: repeat(2, 1fr); }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .chat-shell { grid-template-columns: 1fr; height: auto; }
  .chat-main { height: calc(100vh - var(--header-h) - 40px); min-height: 520px; }
  .chat-shell.has-thread .chat-side { display: none; }
  .chat-shell:not(.has-thread) .chat-main.thread-view { display: none; }
  .acc-nav { flex-direction: row; overflow-x: auto; padding-bottom: 4px; }
  .acc-nav button { flex: none; }
  .sticky { position: static; }
  .section { padding: 64px 0; }
  .cta-band { padding: 36px 26px; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .trust .wrap { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
  .fc-1 { left: 0; } .fc-2 { right: 0; } .fc-3 { display: none; }
  .card { padding: 20px; }
  .guide-card .cover { margin: -20px -20px 18px; }
  .auth-card { padding: 22px; }
  .modal { padding: 22px; }
  .phone-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .phone-row .num { min-width: 0; }
  .bubble { max-width: 92%; }
  .times { grid-template-columns: repeat(2, 1fr); }
  .codes { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 1fr 40px; }
  .hbar .trk { grid-column: 1 / -1; grid-row: 2; }
  .header-right .btn-primary { padding: 0 14px; }
  .chat-body { padding: 18px 14px; }
}
.footer-note a { display: inline; padding: 0; }
.toolbar select.input { width: auto; min-width: 220px; }
.center .hero-cta { justify-content: center; }
.center .ico-box { margin: 0 auto 18px; }
.hide-d { display: none !important; }
@media (max-width: 960px) { .hide-d { display: inline-flex !important; } }
.btn.burger { display: none; } @media (max-width: 960px) { .btn.burger { display: inline-flex; } }
.breath-label > div { max-width: 52%; }
@media (max-width: 640px) {
  .hero-cta .btn { width: 100%; }
  .breath-label { font-size: 15px; }
  .breath-label small { display: none; }
  .fc-2 { bottom: 6%; }
}
.page-head.compact { padding: 32px 0 20px; }
.grid > *, .profile-grid > *, .acc-grid > *, .admin-shell > *, .chat-shell > * { min-width: 0; }
.tag { white-space: normal; height: auto; min-height: 26px; padding: 4px 10px; line-height: 1.3; }
@media (max-width: 640px) {
  .chat-head .sub { display: none; }
  .chat-head .btn-sm { padding: 0 10px; }
  .profile-head { gap: 16px; }
  .profile-head h1 { font-size: 28px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dd { margin-bottom: 10px; }
}
.thread-item .t .tag { flex: none; }
