/* Кира — веб. Светлый минимализм в духе Framer / enterprise-лендингов.
   Шрифт: General Sans. Монохром: чёрный/белый/серый + акцент только на ссылках. */
:root {
  --font: "General Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --bg: #ffffff;
  --bg-2: #f6f6f8;
  --ink: #0b0b0d;
  --ink-soft: #56585e;
  --ink-faint: #8b8d94;
  --line: rgba(0, 0, 0, 0.09);
  --line-2: rgba(0, 0, 0, 0.05);

  --accent: #0a84ff;

  --shadow-sm: 0 6px 22px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 18px 44px rgba(0, 0, 0, 0.09);
  --shadow-lg: 0 40px 90px rgba(0, 0, 0, 0.13);

  --radius: 20px;
  --maxw: 720px;
  --nav-h: 64px;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.006em;
}
body.locked { overflow: hidden; }
a { color: inherit; }
.ambient { display: none; }

/* Светлое стекло (для плавающих панелей) */
.glass {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: var(--shadow-sm);
}

/* ─────────── Шапка ─────────── */
.nav {
  position: fixed; z-index: 40;
  top: max(10px, env(safe-area-inset-top));
  left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100vw - 24px));
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
}
.nav.hidden { transform: translate(-50%, calc(-100% - 20px)); opacity: 0; }
.nav-pill { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 8px 8px 8px 20px; border-radius: 16px; }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand-text { font-weight: 600; font-size: 19px; letter-spacing: -0.02em; color: var(--ink); }
.brand-logo { height: 74px; width: auto; display: block; margin: -15px -8px -15px -12px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a, .nav-link-btn {
  font: inherit; font-size: 15px; font-weight: 500; color: var(--ink-soft);
  text-decoration: none; background: none; border: none; cursor: pointer;
  padding: 8px 13px; border-radius: 10px; transition: color 0.2s, background 0.2s;
}
.nav-links a:hover, .nav-link-btn:hover { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-cta {
  font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; color: #fff;
  background: var(--ink); border: none; padding: 10px 20px; border-radius: 12px;
  transition: transform 0.15s ease, background 0.2s;
}
.nav-cta:hover { transform: translateY(-1px); background: #000; }

/* Язык */
.lang { position: relative; }
.lang-btn {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.04); border: 1px solid var(--line); border-radius: 12px;
  padding: 9px 12px; display: flex; align-items: center; gap: 4px;
}
.lang-btn:hover { color: var(--ink); }
.lang-flag { font-size: 16px; line-height: 1; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 200px; padding: 6px;
  border-radius: 14px; display: none; flex-direction: column; z-index: 50;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md);
}
.lang-menu.open { display: flex; }
.lang-menu button {
  font: inherit; font-size: 15px; text-align: left; cursor: pointer; color: var(--ink);
  background: none; border: none; padding: 10px 12px; border-radius: 9px;
  display: flex; align-items: center; gap: 10px;
}
.lang-menu button:hover { background: var(--bg-2); }
.lang-menu .lang-name { flex: 1; }
.lang-menu .lang-check { flex: 0 0 auto; color: var(--accent, #2563eb); opacity: 0; visibility: hidden; }
.lang-menu button.active { background: var(--bg-2); font-weight: 600; }
.lang-menu button.active .lang-check { opacity: 1; visibility: visible; }

/* ─────────── Герой ─────────── */
.hero { padding: calc(var(--nav-h) + 76px) 20px 40px; text-align: center; }
.hero-inner { max-width: 940px; margin: 0 auto; }
.hero-eyebrow { font-size: 15px; font-weight: 500; color: var(--ink-soft); margin: 0 0 22px; }
.hero-title { font-size: clamp(46px, 8.6vw, 88px); line-height: 0.96; letter-spacing: -0.035em; font-weight: 600; margin: 0 auto 22px; max-width: 12ch; }
.hero-sub { max-width: 600px; margin: 0 auto 34px; font-size: clamp(16px, 2.1vw, 20px); line-height: 1.5; color: var(--ink-soft); }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn {
  font: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; border-radius: 999px; padding: 12px 24px; line-height: 1.2;
  transition: transform 0.15s ease, background 0.2s, box-shadow 0.2s;
}
.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16); }
.btn-dark:hover { transform: translateY(-1px); background: #000; }
.btn-soft { background: #f0f0f2; color: var(--ink); }
.btn-soft:hover { background: #e6e6ea; }
.btn-lg { font-size: 17px; padding: 16px 34px; }

.hero-visual {
  margin: 56px auto 0; max-width: 960px; padding: 9px; border-radius: 26px;
  background: linear-gradient(180deg, #f3f3f5 0%, #e8e8ec 100%);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.hero-visual img { display: block; width: 100%; height: auto; border-radius: 17px; }

/* ─────────── С чего начать ─────────── */
.ways { max-width: 1080px; margin: 0 auto; padding: 88px 20px 20px; scroll-margin-top: 90px; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); text-align: center; margin: 0 0 26px; }
.ways-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.way {
  font: inherit; text-align: left; cursor: pointer; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px; min-height: 168px;
  transition: transform 0.16s ease, border-color 0.2s, box-shadow 0.2s;
}
.way:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, 0.18); box-shadow: var(--shadow-md); }
.way-l { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.way-d { font-size: 14.5px; color: var(--ink-soft); line-height: 1.45; flex: 1; }
.way-arrow { color: var(--ink-faint); display: flex; transition: color 0.2s, transform 0.2s; }
.way:hover .way-arrow { color: var(--ink); transform: translateX(3px); }

/* ─────────── Доктор / видео ─────────── */
.doctor { max-width: 640px; margin: 0 auto; padding: 96px 20px; scroll-margin-top: 90px; }
.doctor-video { margin-top: 60px; }
.eyebrow-left { text-align: left; margin-bottom: 16px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #0b0b0d; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.video-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: radial-gradient(circle at 50% 38%, #232327, #0b0b0d); }
.video-play {
  width: 74px; height: 74px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.22); cursor: pointer; color: #fff;
  background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: grid; place-items: center; transition: transform 0.15s ease, background 0.2s;
}
.video-play:hover { transform: scale(1.06); background: rgba(255, 255, 255, 0.2); }
.video-play svg { margin-left: 4px; }
.video-cap { color: rgba(255, 255, 255, 0.78); font-size: 14px; font-weight: 500; }
.doctor-photo {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  object-fit: cover; object-position: center 12%; border-radius: 20px;
  margin-bottom: 26px; background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.doctor-card h3 { font-size: clamp(24px, 3.2vw, 30px); font-weight: 600; letter-spacing: -0.02em; margin: 0 0 6px; }
.doctor-role { font-size: 15px; color: var(--ink-soft); font-weight: 500; margin: 0 0 20px; }
.doctor-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.doctor-facts li { position: relative; padding-left: 28px; font-size: 15.5px; line-height: 1.45; color: var(--ink-soft); }
.doctor-facts li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

/* ─────────── Что вы получаете ─────────── */
.benefits { max-width: 1000px; margin: 0 auto; padding: 20px 20px; text-align: center; scroll-margin-top: 90px; }
.sec-h { font-size: clamp(30px, 4.6vw, 48px); font-weight: 600; letter-spacing: -0.03em; margin: 0 0 40px; }
.benefits-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; text-align: left; }
.benefit {
  font-size: 16px; font-weight: 500; line-height: 1.35; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 15px; padding: 20px 22px;
  transition: border-color 0.2s;
}
.benefit:hover { border-color: rgba(0, 0, 0, 0.16); }
.benefits-quote { max-width: 640px; margin: 48px auto 34px; font-size: clamp(20px, 2.6vw, 27px); line-height: 1.42; font-weight: 600; letter-spacing: -0.02em; }

.btn-primary {
  font: inherit; font-weight: 600; cursor: pointer; color: #fff; background: var(--ink);
  border: none; border-radius: 999px; padding: 15px 30px; box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, background 0.2s;
}
.btn-primary:hover { transform: translateY(-1px); background: #000; }

/* ─────────── Legal / Footer ─────────── */
.legal { max-width: 820px; margin: 40px auto 0; padding: 0 20px; scroll-margin-top: 90px; }
.legal p { font-size: 13px; line-height: 1.6; color: var(--ink-faint); background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; }
.footer { max-width: 1000px; margin: 56px auto 0; padding: 44px 20px 64px; border-top: 1px solid var(--line); text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 22px; }
.footer-links a { font-size: 14px; color: var(--ink-faint); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
.footer-sos { font-size: 14px; color: var(--ink-soft); margin: 0 0 8px; }
.footer-copy { font-size: 13px; color: var(--ink-faint); margin: 0; }

/* ─────────── Мобильный таб-бар ─────────── */
.tabbar {
  position: fixed; left: 14px; right: 14px; bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 45; display: none; gap: 6px; padding: 7px; border-radius: 22px;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
}
.tabbar.hidden { transform: translateY(calc(100% + 24px)); opacity: 0; pointer-events: none; }
.tabbar-item {
  flex: 1; font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; color: var(--ink-faint);
  background: none; border: none; border-radius: 15px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: color 0.2s, background 0.2s;
}
.tabbar-item.active { color: var(--ink); background: rgba(0, 0, 0, 0.06); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04); }

/* ─────────── Онбординг (sheet) ─────────── */
.sheet { position: fixed; inset: 0; z-index: 60; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.32); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.sheet.open { display: flex; animation: fade 0.2s ease; }
.sheet-card { position: relative; width: 100%; max-width: 460px; border-radius: 26px; padding: 32px 26px 26px; animation: pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.sheet-close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; border: none; cursor: pointer; background: var(--bg-2); color: var(--ink-soft); font-size: 15px; line-height: 1; display: grid; place-items: center; }
.sheet-close:hover { background: #ececef; color: var(--ink); }
.ob-progress { display: flex; gap: 6px; justify-content: center; margin-bottom: 24px; }
.ob-progress i { width: 26px; height: 4px; border-radius: 4px; background: var(--line); transition: background 0.25s; }
.ob-progress i.active { background: var(--ink); }
.ob-q { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-align: center; margin: 0 0 6px; }
.ob-hint { font-size: 14.5px; color: var(--ink-faint); text-align: center; margin: 0 0 24px; }
.ob-options { display: flex; flex-direction: column; gap: 10px; }
.ob-opt {
  font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; text-align: left; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; transition: transform 0.12s ease, border-color 0.2s, background 0.2s;
}
.ob-opt:hover { transform: translateY(-1px); border-color: rgba(0, 0, 0, 0.22); background: var(--bg-2); }
.ob-opt .chev { color: var(--ink-faint); }
.ob-field { display: flex; flex-direction: column; gap: 14px; }
.ob-input { font: inherit; font-size: 17px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; outline: none; transition: border-color 0.2s; }
.ob-input::placeholder { color: var(--ink-faint); }
.ob-input:focus { border-color: var(--ink); }
.ob-next { font: inherit; font-size: 17px; font-weight: 600; cursor: pointer; color: #fff; background: var(--ink); border: none; border-radius: 14px; padding: 16px; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16); transition: transform 0.15s ease, background 0.2s; }
.ob-next:hover { transform: translateY(-1px); background: #000; }
.ob-skip { display: block; margin: 16px auto 0; font: inherit; font-size: 14.5px; font-weight: 500; color: var(--ink-faint); background: none; border: none; cursor: pointer; }
.ob-skip:hover { color: var(--ink-soft); text-decoration: underline; }

/* ─────────── Чат ─────────── */
.chat-wrap { position: fixed; inset: 0; z-index: 55; display: none; background: #f7f7f8; }
.chat-wrap.open { display: flex; animation: fade 0.22s ease; }

/* Боковая панель */
.chat-side { flex: none; width: 284px; display: flex; flex-direction: column; padding: 14px 12px; background: #fff; border-right: 1px solid var(--line); }
.side-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 4px 12px; }
.chat-logo { height: 36px; width: auto; margin: -6px 0; }
.side-close { display: none; width: 34px; height: 34px; border-radius: 9px; border: none; background: none; cursor: pointer; color: var(--ink-soft); place-items: center; }
.side-close:hover { background: var(--bg-2); }
.side-new { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: #fff; background: var(--ink); border: none; border-radius: 12px; padding: 12px; cursor: pointer; transition: background 0.2s; }
.side-new:hover { background: #000; }
.side-list { flex: 1; overflow-y: auto; margin-top: 14px; display: flex; flex-direction: column; gap: 2px; }
.chat-item { display: flex; align-items: center; gap: 8px; border-radius: 10px; padding: 10px 12px; cursor: pointer; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.chat-item:hover { background: var(--bg-2); }
.chat-item.active { background: var(--bg-2); color: var(--ink); }
.chat-item-t { flex: 1; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-item-del { opacity: 0; font-size: 12px; color: var(--ink-faint); cursor: pointer; padding: 2px 5px; border-radius: 6px; transition: opacity 0.15s, background 0.2s; }
.chat-item:hover .chat-item-del { opacity: 1; }
.chat-item-del:hover { background: rgba(0, 0, 0, 0.06); color: var(--ink); }
.side-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--ink-faint); }
.side-status { display: flex; align-items: center; gap: 7px; }
.side-foot a { color: var(--ink-soft); text-decoration: none; white-space: nowrap; }
.side-foot a:hover { color: var(--ink); }
.chat-backdrop { display: none; }

/* Основная область */
.chat-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.chat-head { flex: none; height: 56px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-bottom: 1px solid var(--line); background: rgba(247, 247, 248, 0.82); backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%); }
.chat-menu, .chat-newtop { display: none; width: 38px; height: 38px; border-radius: 10px; border: none; background: none; cursor: pointer; color: var(--ink); place-items: center; flex: none; }
.chat-menu:hover, .chat-newtop:hover { background: rgba(0, 0, 0, 0.05); }
.chat-title { flex: 1; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center; }

.seg { position: relative; display: flex; background: rgba(0, 0, 0, 0.05); border: 1px solid var(--line-2); border-radius: 11px; padding: 3px; }
.seg-btn { position: relative; z-index: 1; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-soft); background: none; border: none; padding: 7px 14px; border-radius: 8px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.seg-btn.active { color: var(--ink); background: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.seg-thumb { display: none; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #c7c7cc; flex: none; }
.status-dot.online { background: #35c759; box-shadow: 0 0 0 3px rgba(53, 199, 89, 0.16); }
.status-dot.demo { background: #ff9f0a; box-shadow: 0 0 0 3px rgba(255, 159, 10, 0.16); }

.chat-scroll { flex: 1; overflow-y: auto; padding: 22px 16px 8px; background-image: radial-gradient(rgba(10, 10, 15, 0.05) 1px, transparent 1.3px); background-size: 22px 22px; }
.messages { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: rise 0.32s cubic-bezier(0.22, 1, 0.36, 1); }
.msg.user { flex-direction: row-reverse; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 600; font-size: 13px; margin-top: 2px; }
.avatar.kira { background: var(--ink); color: #fff; }
.avatar.user { background: var(--bg-2); color: var(--ink-soft); border: 1px solid var(--line); }
.bubble { font-size: 15.5px; line-height: 1.62; max-width: 100%; color: var(--ink); }
.msg.kira .bubble a { color: var(--accent); font-weight: 500; text-decoration: none; border-bottom: 1px solid rgba(10, 132, 255, 0.35); }
.msg.user .bubble { background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 18px 18px 6px 18px; }
.bubble p { margin: 0 0 10px; } .bubble p:last-child { margin-bottom: 0; }
.typing { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-faint); animation: blink 1.3s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.18s; } .typing span:nth-child(3) { animation-delay: 0.36s; }

.composer { flex: none; padding: 8px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #f7f7f8 68%, transparent); }
.chips { max-width: var(--maxw); margin: 0 auto 12px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chip { font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; color: var(--ink-soft); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 9px 15px; transition: transform 0.14s ease, border-color 0.2s, color 0.2s; }
.chip:hover { transform: translateY(-1px); border-color: rgba(0, 0, 0, 0.2); color: var(--ink); }
.chip-accent { color: var(--accent); border-color: rgba(10, 132, 255, 0.35); font-weight: 600; }
.chip-accent:hover { border-color: var(--accent); color: var(--accent); }
.stream-cursor { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: text-bottom; background: var(--accent); animation: cursor-blink 0.85s step-end infinite; }
@keyframes cursor-blink { 50% { opacity: 0; } }
.composer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; gap: 6px; border-radius: 24px; padding: 12px 14px 10px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md); transition: border-color 0.2s, box-shadow 0.2s; }
.composer-inner:focus-within { border-color: rgba(0, 0, 0, 0.22); box-shadow: 0 10px 34px rgba(0, 0, 0, 0.10); }
.composer-input { width: 100%; border: none; outline: none; resize: none; background: transparent; color: var(--ink); font: inherit; font-size: 16px; line-height: 1.5; max-height: 168px; padding: 4px 4px 2px; }
.composer-input::placeholder { color: var(--ink-faint); }
.composer-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.composer-row-sale { justify-content: flex-end; }
.sale-mode-label {
  margin-right: auto;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
}
.send-btn { flex: none; width: 40px; height: 40px; border: none; border-radius: 13px; cursor: pointer; color: #fff; background: var(--ink); display: grid; place-items: center; transition: transform 0.15s ease, opacity 0.2s, background 0.2s; }
.send-btn:hover:not(:disabled) { transform: translateY(-1px) scale(1.03); background: #000; }
.send-btn:disabled { opacity: 0.35; cursor: default; }
.composer-note { max-width: var(--maxw); margin: 12px auto 0; text-align: center; font-size: 12px; color: var(--ink-faint); }

/* ─────────── Модалка подписки ─────────── */
.modal { position: fixed; inset: 0; z-index: 65; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(0, 0, 0, 0.36); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.open { display: flex; animation: fade 0.2s ease; }
.modal-card { position: relative; width: 100%; max-width: 440px; border-radius: 26px; padding: 34px 28px; text-align: center; animation: pop 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.price-badge { display: inline-block; font-size: 13px; font-weight: 600; color: #1a7f37; background: rgba(53, 199, 89, 0.12); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px; }
.modal-h { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 8px; }
.price { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin-bottom: 24px; }
.price b { font-size: 46px; font-weight: 600; letter-spacing: -0.03em; }
.price span { font-size: 16px; color: var(--ink-faint); }
.modal-list { list-style: none; padding: 0; margin: 0 0 26px; text-align: left; display: flex; flex-direction: column; gap: 12px; }
.modal-list li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.modal-list li::before { content: ""; position: absolute; left: 5px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.modal-card .btn-primary { width: 100%; }
.modal-legal { font-size: 12px; line-height: 1.5; color: var(--ink-faint); margin: 16px 0 0; }

/* ─────────── Анимации ─────────── */
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ─────────── Планшет ─────────── */
@media (max-width: 900px) {
  .ways-grid { grid-template-columns: 1fr; }
  .way { min-height: 0; flex-direction: row; align-items: center; }
  .way-d { display: none; }
  .doctor { padding: 64px 20px; }
  .doctor-video { margin-top: 44px; }
  .ways { padding-top: 64px; }

  /* Чат: сайдбар превращается в выезжающую шторку */
  .chat-side { position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw); z-index: 61; transform: translateX(-100%); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
  .chat-side.open { transform: none; }
  .chat-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, 0.42); z-index: 60; animation: fade 0.2s ease; }
  .side-close { display: grid; }
  .chat-menu, .chat-newtop { display: grid; }
}

/* ─────────── Мобайл ─────────── */
@media (max-width: 640px) {
  :root { --nav-h: 56px; }
  .nav { width: calc(100vw - 20px); }
  .nav-pill { padding: 7px 7px 7px 16px; }
  .nav-links { display: none; }
  .brand-text { font-size: 18px; }
  .brand-logo { height: 62px; margin: -13px -6px -13px -10px; }

  .hero { padding: calc(var(--nav-h) + 52px) 18px 24px; }
  .hero-visual { margin-top: 40px; padding: 6px; border-radius: 20px; }
  .hero-cta { gap: 10px; }
  .hero-cta .btn { padding: 12px 20px; font-size: 15px; }

  /* На мобиле 1 колонка — показываем описание снова */
  .ways-grid { grid-template-columns: 1fr; }
  .way { flex-direction: column; align-items: flex-start; min-height: 0; }
  .way-d { display: block; }

  .benefits-grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 120px; }
  .footer-links { gap: 8px 14px; }

  .tabbar { display: flex; }
  body.locked .tabbar { display: none; }

  /* ── Онбординг и модалка подписки → bottom sheet ── */
  .sheet { align-items: flex-end; padding: 0; }
  .sheet-card {
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 32px 22px calc(28px + env(safe-area-inset-bottom));
    animation: slide-up 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .modal { align-items: flex-end; padding: 0; }
  .modal-card {
    max-width: 100%;
    border-radius: 28px 28px 0 0;
    padding: 30px 22px calc(26px + env(safe-area-inset-bottom));
    animation: slide-up 0.34s cubic-bezier(0.22, 1, 0.36, 1);
  }

  /* ── Чат на мобиле ── */
  .chat-head { height: 54px; padding: 0 8px; }
  .chat-scroll { padding: 14px 10px 6px; }
  .composer { padding: 6px 10px calc(12px + env(safe-area-inset-bottom)); }
  .composer-inner { border-radius: 20px; padding: 10px 12px 8px; }
  .composer-note { font-size: 11.5px; margin-top: 8px; }

  /* Сег на мобиле — сжать, чтобы не выходило за ширину */
  .seg { flex: 0 1 auto; max-width: 220px; }
  .seg-btn { padding: 6px 10px; font-size: 12px; }

  .ob-q { font-size: 22px; }
}

@keyframes slide-up { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 380px) { .hero-title { font-size: 40px; } }
