@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap");

/* ДокДа — врач в чате. Mobile-first, светлая медицинская тема */
:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-card: #ffffff;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-dim: #475569;
  --muted: #94a3b8;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --danger: #ef4444;
  --danger-soft: #fef2f2;
  --radius: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;
  --header-h: 60px;
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08);
  --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea { font-family: inherit; }
button { cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.02em; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}
.skip-link:focus { left: 12px; top: 12px; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 18px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}
.logo-mark svg { width: 30px; height: 30px; display: block; }
.logo-word { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; white-space: nowrap; }
.logo-word i { font-style: normal; color: var(--success); }

.nav-desktop {
  display: none;
  align-items: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
}
.nav-desktop a:hover { color: var(--accent); }
@media (min-width: 900px) {
  .nav-desktop { display: flex; }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-success {
  background: var(--success);
  color: #fff;
  box-shadow: 0 6px 18px rgba(16, 185, 129, 0.28);
}
.btn-success:hover { background: #059669; }
.btn-ghost {
  background: var(--bg-soft);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 15px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  color: var(--text);
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}
@media (min-width: 900px) {
  .menu-toggle { display: none; }
}
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 18px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a:not(.btn) {
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 0;
}
.mobile-drawer .btn { margin-top: 2px; }

/* Hero — центрированная раскладка */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  padding: 26px 0 24px;
}
.hero + .section { padding-top: 28px; }
@media (min-width: 1024px) {
  .hero {
    padding: 32px 0 24px;
  }
}
.hero-intro { max-width: 660px; }
.hero-intro h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 12px 0 16px;
}
.hero-intro h1 em { font-style: normal; color: var(--accent); }
.hero-intro .lead {
  font-size: 1.14rem;
  font-weight: 400;
  color: var(--text-dim);
  max-width: 580px;
  margin: 0 auto;
}
.hero-chat-wrap { width: 100%; max-width: 760px; }
.hero .chat { height: min(62vh, 580px); min-height: 440px; }
.hero .link-cluster { margin-top: 2px; }

/* Chat */
.chat {
  display: flex;
  flex-direction: column;
  text-align: left;
  background: var(--bg);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 24px;
  box-shadow: 0 32px 64px -24px rgba(37, 99, 235, 0.30), 0 14px 32px rgba(15, 23, 42, 0.10);
  overflow: hidden;
  height: 70vh;
  min-height: 460px;
}
@media (min-width: 1024px) {
  .chat {
    height: min(78vh, 640px);
  }
}
.chat-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #3b74ff 0%, #2563eb 45%, #1d4ed8 100%);
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}
.chat-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 150% at 0% 0%, rgba(255, 255, 255, 0.25), transparent 55%);
  pointer-events: none;
}
.chat-header > * { position: relative; z-index: 1; }
.chat-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 4px 12px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  line-height: 1;
}
.chat-head-text { line-height: 1.2; }
.chat-title { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -0.01em; }
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  opacity: 0.92;
}
.chat-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  animation: status-pulse 2s infinite;
}
@keyframes status-pulse {
  0% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}
.chat-login {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}
.chat-login:hover { background: rgba(255, 255, 255, 0.26); border-color: #fff; }
.chat-login:active { transform: scale(0.96); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.header-login { display: none; }
@media (min-width: 560px) { .header-login { display: inline-flex; } }

.auth-switch {
  display: block;
  width: 100%;
  margin-top: 4px;
  background: none;
  border: 0;
  color: var(--accent);
  font: inherit;
  font-weight: 600;
  font-size: 0.85rem;
  text-align: center;
  cursor: pointer;
  padding: 4px;
}
.auth-switch:hover { text-decoration: underline; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
  background: linear-gradient(180deg, #fbfcfe 0%, #f3f6fb 100%);
  display: flex;
  flex-direction: column;
  gap: 14px;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 7px; }
.chat-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; }

.msg {
  display: flex;
  gap: 9px;
  max-width: 88%;
  animation: msg-in 0.3s ease;
}
@keyframes msg-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.msg-bot { align-self: flex-start; }
.msg-user { align-self: flex-end; flex-direction: row-reverse; }
.msg-avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.32);
}
.msg-avatar svg { width: 18px; height: 18px; }
.msg-user .msg-avatar {
  background: linear-gradient(135deg, #34d399, #10b981);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.32);
}
.msg-bubble {
  padding: 12px 15px;
  border-radius: 16px;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}
.msg-bot .msg-bubble { border-top-left-radius: 5px; }
.msg-user .msg-bubble {
  background: linear-gradient(135deg, #3b74ff, #2563eb);
  color: #fff;
  border-color: transparent;
  border-top-right-radius: 5px;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.30);
}
.msg-bubble strong { font-weight: 700; }
.msg-bubble ul { margin: 6px 0 2px; padding-left: 18px; }
.msg-bubble li { margin-bottom: 4px; }
.msg-bubble .msg-file {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.msg-verified {
  display: block;
  margin-top: 9px;
  padding: 8px 11px;
  border-radius: 9px;
  background: var(--success-soft);
  color: #065f46;
  font-size: 0.8rem;
  line-height: 1.45;
}
.msg-verified a { color: var(--success); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.msg-user .msg-verified { display: none; }

.msg-disclaimer {
  display: block;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px dashed var(--border);
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--muted);
}
.msg-user .msg-disclaimer { display: none; }

.msg-norm { color: var(--success); font-weight: 700; }
.msg-warn { color: var(--danger); font-weight: 700; }

/* Capture / action buttons inside chat */
.msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.msg-actions .btn { padding: 9px 16px; font-size: 0.85rem; }

.chat-inline-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-inline-form input {
  width: 100%;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
}
.chat-inline-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Typing indicator */
.typing .msg-bubble {
  display: inline-flex;
  gap: 4px;
  padding: 14px 16px;
}
.typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: typing 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Chat input — единый composer в духе ChatGPT */
.chat-input {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
}
.chat-suggest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chat-suggest.hidden { display: none; }
.suggest-chip {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition: border-color 0.2s, color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.suggest-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.16);
  transform: translateY(-1px);
}
.suggest-chip:active { transform: scale(0.97); }

.composer {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  padding: 6px 6px 6px 8px;
  border: 1.5px solid var(--border);
  border-radius: 26px;
  background: var(--bg-soft);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.composer:focus-within {
  border-color: var(--accent);
  background: var(--bg);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.composer-btn {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.composer-btn svg { width: 20px; height: 20px; }
.composer-attach { color: var(--text-dim); background: transparent; }
.composer-attach:hover { color: var(--accent); background: var(--accent-soft); }
.composer-send {
  background: linear-gradient(135deg, #3b74ff, #1d4ed8);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.38);
}
.composer-send:hover { box-shadow: 0 8px 20px rgba(37, 99, 235, 0.48); transform: translateY(-1px); }
.composer-send:active { transform: scale(0.94); }
.composer-send:disabled {
  background: var(--border-strong);
  color: #fff;
  cursor: default;
  box-shadow: none;
  transform: none;
}

.chat-textarea {
  flex: 1;
  resize: none;
  max-height: 140px;
  min-height: 40px;
  padding: 9px 4px;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  line-height: 1.45;
}
.chat-textarea:focus { outline: none; }
.chat-textarea::placeholder { color: var(--muted); }

.composer-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin: 0;
}

.chat.dragover .chat-body {
  outline: 2px dashed var(--accent);
  outline-offset: -8px;
  background: var(--accent-soft);
}
.chat-drop-hint {
  position: absolute;
  inset: 0;
  display: none;
}

/* Sections */
.section {
  padding: 52px 0;
}
.section-alt { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 36px;
}
.section-eyebrow {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.section-head h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.section-head .sub {
  color: var(--text-dim);
  font-size: 1rem;
}
.section-head .sub a, .sub a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Trust block */
.trust-grid {
  display: grid;
  gap: 18px;
}
@media (min-width: 768px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); }
}
.trust-card {
  padding: 26px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.trust-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}
.trust-ico {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust-ico svg { width: 26px; height: 26px; }
.trust-ico.green { background: var(--success-soft); color: var(--success); }
.trust-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 8px; }
.trust-card p { font-size: 0.92rem; color: var(--text-dim); }

/* How it works (steps) */
.steps-grid {
  display: grid;
  gap: 18px;
  counter-reset: step;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-card {
  position: relative;
  padding: 26px 22px 22px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card h3 { font-size: 1.02rem; font-weight: 800; margin-bottom: 8px; }
.step-card p { font-size: 0.92rem; color: var(--text-dim); }

/* Pricing */
.pricing-grid { display: grid; gap: 18px; max-width: 980px; margin: 0 auto; }
@media (min-width: 820px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
}
.price-card {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.price-card--pro { border: 1.5px solid var(--accent); box-shadow: 0 16px 42px rgba(37, 99, 235, 0.16); }
@media (min-width: 820px) { .price-card--pro { transform: translateY(-8px); } }
.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 5px 13px;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.18rem; font-weight: 800; margin-bottom: 4px; }
.price-amount {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin: 10px 0 2px;
}
.price-amount span { font-family: var(--font); font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.price-period { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.price-card ul { list-style: none; margin: 0 0 22px; padding: 0; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.price-card li { position: relative; padding-left: 26px; font-size: 0.92rem; color: var(--text-dim); }
.price-card li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 3px;
  width: 6px;
  height: 11px;
  border: solid var(--success);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.price-form { margin-top: auto; }
.price-form input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text);
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.price-form input::placeholder { color: var(--muted); }
.price-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* Наши врачи */
.doctors-grid { display: grid; gap: 18px; }
@media (min-width: 640px) { .doctors-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .doctors-grid { grid-template-columns: repeat(4, 1fr); } }
.doctor-card {
  padding: 26px 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.doctor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.doctor-ava {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #60a5fa);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: 0.02em;
}
.doctor-card:nth-child(2) .doctor-ava { background: linear-gradient(135deg, #10b981, #34d399); }
.doctor-card:nth-child(3) .doctor-ava { background: linear-gradient(135deg, #6366f1, #818cf8); }
.doctor-card:nth-child(4) .doctor-ava { background: linear-gradient(135deg, #0ea5e9, #38bdf8); }
.doctor-card h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.doctor-spec { font-size: 0.82rem; color: var(--accent); font-weight: 700; margin-bottom: 12px; }
.doctor-quote { font-size: 0.88rem; color: var(--text-dim); line-height: 1.5; }

/* SEO-текст */
.seo-text { padding-top: 8px; }
.seo-text h2 { font-size: 1.45rem; margin-bottom: 16px; }
.seo-text h3 { font-size: 1.1rem; margin: 26px 0 12px; }
.seo-text p { color: var(--text-dim); font-size: 0.95rem; line-height: 1.7; margin-bottom: 14px; max-width: 860px; }
.seo-text a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.seo-text .seo-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.seo-text .seo-links a { font-size: 0.92rem; font-weight: 600; }

/* FAQ */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-btn {
  width: 100%;
  text-align: left;
  padding: 17px 18px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-btn::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s;
}
.faq-item.open .faq-btn::after { transform: rotate(45deg); }
.faq-panel {
  display: none;
  padding: 0 18px 18px;
  color: var(--text-dim);
  font-size: 0.95rem;
  line-height: 1.6;
}
.faq-panel a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.faq-item.open .faq-panel { display: block; }

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 56px 0;
  background: linear-gradient(160deg, var(--accent-soft), var(--success-soft));
}
.final-cta h2 {
  font-size: clamp(1.4rem, 3.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.final-cta .sub {
  color: var(--text-dim);
  margin-bottom: 24px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 28px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  gap: 26px;
}
@media (min-width: 640px) {
  .footer-grid { grid-template-columns: 1.3fr 1fr; }
}
.footer-about {
  font-size: 0.9rem;
  color: var(--text-dim);
  max-width: 340px;
  margin-top: 12px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.footer-links a:hover { color: var(--accent); }
.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.footer-copy a { text-decoration: underline; text-underline-offset: 3px; }
.footer-copy a:hover { color: var(--accent); }

.micro {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 10px;
}
.link-cluster {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.7;
}
.link-cluster a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.link-cluster a:hover { color: var(--accent-hover); }
.center { text-align: center; margin-left: auto; margin-right: auto; }
