/* ═══════════════════════════════════════════════════════════
   LogoPeD — лендинг CRM для логопеда/дефектолога/нейропсихолога
   Офлайн: системные шрифты, без внешних зависимостей
   ═══════════════════════════════════════════════════════════ */

:root {
  --ink: #16302e;
  --ink-soft: #4d6663;
  --ink-faint: #7d938f;
  --bg: #f6faf9;
  --white: #ffffff;
  --primary: #0e7c6b;
  --primary-dark: #0a5c50;
  --primary-deep: #083f37;
  --primary-soft: #e2f2ee;
  --accent: #f59e0b;
  --accent-soft: #fdf1dc;
  --line: #e0ebe8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(22, 48, 46, 0.08);
  --shadow-lg: 0 24px 60px rgba(22, 48, 46, 0.16);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 820px; }

/* ─────────── Кнопки ─────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 12px;
  border: 1.5px solid transparent;
  font: 600 16px/1.2 var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 16px 32px; font-size: 17px; border-radius: 14px; }

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(14, 124, 107, 0.28);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.btn-light:hover { background: var(--primary-soft); }

/* ─────────── Шапка ─────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(246, 250, 249, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 4px 20px rgba(22, 48, 46, 0.06);
}
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
}
.logo-mark { width: 34px; height: 34px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.1;
  display: flex;
  flex-direction: column;
}
.logo-text small {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.main-nav a {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: color 0.2s;
}
.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.header-actions .btn { padding: 10px 20px; font-size: 15px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─────────── Hero ─────────── */
.hero {
  padding: 72px 0 88px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14, 124, 107, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(245, 158, 11, 0.10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.badge {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
}
.badge-light { background: rgba(255, 255, 255, 0.14); color: #d9f2ec; }

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 20px;
}
.hero .lead {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.hero-note {
  font-size: 14px;
  color: var(--ink-faint);
  font-weight: 500;
}

/* ── Мокап дашборда ── */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% -6% 6%;
  background: linear-gradient(135deg, rgba(14, 124, 107, 0.16), rgba(245, 158, 11, 0.12));
  border-radius: 28px;
  transform: rotate(2deg);
  z-index: 0;
}

.mock-dashboard {
  position: relative;
  z-index: 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-topbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdfc;
}
.mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #e3e9e7; }
.mock-dot:first-child { background: #f2b8b8; }
.mock-dot:nth-child(2) { background: #f5d9a8; }
.mock-dot:nth-child(3) { background: #bfe3d8; }
.mock-title {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-faint);
}

.mock-body {
  display: grid;
  grid-template-columns: 44px 1fr 168px;
  min-height: 300px;
}
.mock-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 16px 0;
  border-right: 1px solid var(--line);
  background: #fbfdfc;
}
.mock-side-item {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: var(--primary-soft);
}
.mock-side-item.active { background: var(--primary); }

.mock-main { padding: 14px 16px; }
.mock-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}
.mock-day {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-faint);
  text-align: center;
  padding-bottom: 2px;
}
.mock-cell {
  height: 44px;
  border-radius: 6px;
  background: #f2f7f5;
  position: relative;
}
.mock-block {
  position: absolute;
  inset: 4px;
  border-radius: 5px;
}
.b-teal { background: var(--primary); opacity: 0.85; }
.b-amber { background: var(--accent); opacity: 0.8; }
.b-soft { background: #bcd9d1; }

.mock-conflict {
  margin-top: 10px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #9a6206;
  background: var(--accent-soft);
  border: 1px solid #f3ddb0;
  padding: 4px 10px;
  border-radius: 999px;
}

.mock-card {
  border-left: 1px solid var(--line);
  padding: 16px 14px;
  background: #fbfdfc;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-card-head { display: flex; align-items: center; gap: 8px; }
.mock-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.mock-name { font-size: 12px; font-weight: 700; line-height: 1.3; }
.mock-tag {
  align-self: flex-start;
  font-size: 10px;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-soft);
  padding: 3px 8px;
  border-radius: 999px;
}
.mock-tag.tag-soft { background: var(--accent-soft); color: #9a6206; }
.mock-video {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.mock-video-label {
  height: 40px;
  border-radius: 6px;
  background: #eef4f2;
  border: 1px dashed #c8d8d3;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ink-faint);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ─────────── Цифры ─────────── */
.stats {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.1;
}
.stat-label { font-size: 14px; color: var(--ink-soft); }

/* ─────────── Секции ─────────── */
.section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin: 0 auto 52px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 14px;
}
.section-sub { font-size: 17px; color: var(--ink-soft); }

/* ── Боли ── */
.pains-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pain-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}
.pain-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.pain-icon svg { width: 24px; height: 24px; }
.pain-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.pain-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Шаги ── */
.steps { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 30px 28px;
  border-radius: var(--radius);
  background: var(--bg);
  border: 1px solid var(--line);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 18px;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--ink-soft); }

/* ── Возможности ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c4ded7;
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-soft);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; }
.feature-card > p { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 14px; }
.feature-list {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}
.feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary-soft);
}
.feature-list li::after {
  content: "";
  position: absolute;
  left: 3.5px;
  top: 9.5px;
  width: 5px;
  height: 3px;
  border-left: 1.5px solid var(--primary);
  border-bottom: 1.5px solid var(--primary);
  transform: rotate(-45deg);
}

/* ── Telegram ── */
.telegram {
  background:
    radial-gradient(800px 500px at 110% 0%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(150deg, var(--primary-deep), var(--primary-dark) 60%, #0d6a5c);
  color: #fff;
}
.tg-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 64px;
  align-items: center;
}
.telegram h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  margin-bottom: 18px;
}
.tg-lead { font-size: 17.5px; color: #cfe8e2; margin-bottom: 26px; max-width: 480px; }
.tg-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 34px; }
.tg-list li {
  position: relative;
  padding-left: 34px;
  font-size: 15.5px;
  color: #e6f4f0;
}
.tg-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #9fe8d8;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Телефон ── */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px;
  background: #0b1f1c;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 110px;
  height: 22px;
  background: #0b1f1c;
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: #f4f8f7;
  border-radius: 30px;
  overflow: hidden;
}
.phone-header {
  padding: 34px 18px 14px;
  background: var(--primary);
  color: #fff;
}
.phone-logo { font-size: 16px; font-weight: 800; display: block; }
.phone-sub { font-size: 11.5px; color: #fff; }
.phone-body { padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.phone-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 4px 14px rgba(22, 48, 46, 0.07);
}
.phone-card-title {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.phone-slots { display: flex; gap: 8px; }
.slot {
  flex: 1;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #eef4f2;
  border-radius: 9px;
  padding: 8px 0;
}
.slot-active { background: var(--primary); color: #fff; }
.phone-text { font-size: 12px; color: var(--ink-soft); line-height: 1.45; margin-bottom: 10px; }
.phone-btn {
  display: block;
  text-align: center;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12.5px;
  font-weight: 800;
  border-radius: 9px;
  padding: 9px 0;
}
.phone-bar {
  height: 8px;
  border-radius: 99px;
  background: #e4eeeb;
  overflow: hidden;
  margin-bottom: 8px;
}
.phone-bar span {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), #34b39a);
}

/* ── Бесплатные инструменты ── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.tool-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.tool-icon svg { width: 24px; height: 24px; }
.tool-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.tool-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Кому подходит ── */
.audience { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.aud-card {
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.aud-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.aud-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-soft);
}
.aud-card ul { display: flex; flex-direction: column; gap: 9px; }
.aud-card li {
  position: relative;
  padding-left: 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.aud-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--primary);
  opacity: 0.75;
}

/* ── Тарифы ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.price-card--free {
  border: 2px solid var(--primary);
  background: linear-gradient(180deg, var(--primary-soft) 0%, var(--white) 42%);
}
.price-flag {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  background: var(--primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}
.price-card h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.price-sub {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.price-value {
  margin: 16px 0 20px;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}
.price-value span {
  margin-left: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
}
.price-card ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 26px;
}
.price-card li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 14.5px;
}
.price-card li .k { color: var(--ink-soft); }
.price-card li .v { font-weight: 700; text-align: right; }
.price-card li .v small { font-weight: 500; color: var(--ink-soft); }
.price-card .btn { margin-top: auto; width: 100%; }
.pricing-note {
  max-width: 640px;
  margin: 30px auto 0;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}

/* ── FAQ ── */
.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: #b9d8d0; }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-size: 16.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-icon {
  position: relative;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform 0.25s;
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-item p {
  padding: 0 24px 22px;
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 680px;
}

/* ── Финальный CTA ── */
.cta-final {
  padding: 96px 0;
  background:
    radial-gradient(700px 400px at 15% 0%, rgba(255, 255, 255, 0.10), transparent 55%),
    linear-gradient(135deg, var(--primary-dark), var(--primary-deep));
  color: #fff;
  text-align: center;
}
.cta-inner { max-width: 640px; }
.cta-inner h2 {
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.cta-inner > p {
  font-size: 17.5px;
  color: #cfe8e2;
  margin-bottom: 32px;
}
.cta-note { margin-top: 18px; font-size: 14px; color: #9cc7be; }

/* ─────────── Подвал ─────────── */
.site-footer {
  background: #0d211e;
  color: #b9cdc8;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.logo-footer { color: #4fd1b5; margin-bottom: 16px; }
.logo-footer .logo-text { color: #fff; }
.footer-brand p { font-size: 14px; max-width: 280px; line-height: 1.55; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h3 {
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #7fa39c;
  margin-bottom: 6px;
}
.footer-col a {
  font-size: 14.5px;
  transition: color 0.2s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 13.5px;
  color: #7fa39c;
}
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════════
   Подстраницы: hero, хлебные крошки, «кому подходит», «смотрите также», блог
   ═══════════════════════════════════════════════════════════ */
.page-hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(14, 124, 107, 0.14), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(245, 158, 11, 0.10), transparent 60%),
    var(--bg);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--ink-faint);
  margin-bottom: 26px;
}
.breadcrumbs a { font-weight: 600; transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { opacity: 0.5; }
.breadcrumbs .current { color: var(--ink-soft); font-weight: 600; }

.page-hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin-bottom: 18px;
}
.page-hero .lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 760px;
  margin-bottom: 30px;
}
.page-hero .hero-cta { margin-bottom: 0; }

/* сетка возможностей в 3 колонки (подстраницы) */
.features-grid-3 { grid-template-columns: repeat(3, 1fr); }

/* шаги в 4 колонки (онлайн-запись) */
.steps-grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ── «Кому подходит» ── */
.who-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}
.who-text h2 {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 18px;
}
.who-text p {
  font-size: 16px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.who-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 30px;
  box-shadow: var(--shadow);
}
.who-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 20px;
}
.who-card ul { display: flex; flex-direction: column; gap: 14px; }
.who-card li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.who-card li::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.who-card .who-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
  font-size: 14px;
  color: var(--ink-faint);
}

/* ── «Смотрите также» ── */
.see-also {
  padding: 72px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}
.see-also h2 {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
}
.see-also-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.see-also-card {
  display: block;
  padding: 26px 24px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.see-also-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.see-also-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.35; }
.see-also-card p { font-size: 14px; color: var(--ink-soft); margin-bottom: 14px; }
.see-also-card .arrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 14px;
}

/* ── Блог ── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: #c4ded7;
}
.blog-tag {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 12px;
}
.blog-card h3 {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
}
.blog-card p {
  font-size: 14.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.blog-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
}
.blog-link:hover { color: var(--primary-dark); }

/* ── Статья блога ── */
.container-article { max-width: 880px; }
.article-meta {
  font-size: 14px;
  color: var(--ink-faint);
  margin-top: -16px;
}
.article-section { padding: 48px 0 40px; }
.article h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 40px 0 14px;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
}
.article p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.article ul,
.article ol {
  margin: 0 0 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.article li {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
}
.article a { color: var(--primary); font-weight: 600; }
.article a:hover { color: var(--primary-dark); }
.article table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 22px;
  font-size: 15px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.article th,
.article td {
  border-bottom: 1px solid var(--line);
  padding: 11px 14px;
  text-align: left;
  vertical-align: top;
}
.article tr:last-child td { border-bottom: none; }
.article th {
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-weight: 700;
}
.tip {
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.tip strong { color: var(--primary-dark); }

/* ─────────── Анимации появления (только при включённом JS) ─────────── */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════ Страницы бесплатных инструментов ═══════════ */
.tool-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px;
}
.tstep { margin-bottom: 30px; }
.tstep:last-of-type { margin-bottom: 0; }
.tstep__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tstep__num {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff;
  font-size: 15px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.tstep__title { font-size: 19px; font-weight: 800; }
.tgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tfield { margin-bottom: 16px; }
.tfield:last-child { margin-bottom: 0; }
.tfield label { display: block; font-weight: 700; font-size: 14.5px; margin-bottom: 7px; }
.tfield label .opt { color: var(--ink-faint); font-weight: 600; font-size: 12.5px; }
.tfield label .req { color: #dc2626; }
.tinput, .tselect, .ttextarea {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 15px; color: var(--ink); background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.tinput:focus, .tselect:focus, .ttextarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.15);
}
.ttextarea { resize: vertical; min-height: 74px; }
.tselect {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237d938f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 38px;
}

/* ── Карточки выбора (документ / диагноз / журнал) ── */
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-card {
  position: relative;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; background: var(--white);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}
.pick-card:hover { border-color: var(--primary); }
.pick-card.is-active {
  border-color: var(--primary); background: var(--primary-soft);
  box-shadow: 0 0 0 3px rgba(14, 124, 107, 0.15);
}
.pick-card input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card__title { font-size: 15px; font-weight: 800; color: var(--primary-dark); }
.pick-card__desc { font-size: 13px; color: var(--ink-soft); margin-top: 4px; }
.pick-card__abbr { font-size: 19px; font-weight: 800; color: var(--primary-dark); }
.pick-card__name { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }

/* ── Предпросмотр ИОМ ── */
.tpreview {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; margin-top: 14px; display: none;
}
.tpreview.is-visible { display: block; }
.tpreview__title { font-weight: 800; font-size: 14.5px; margin-bottom: 8px; }
.tpreview__stage { font-size: 14px; color: var(--ink); padding: 5px 0; border-bottom: 1px dashed var(--line); }
.tpreview__stage:last-of-type { border-bottom: none; }
.tpreview__stage b { color: var(--primary-dark); }
.tpreview__goal { font-size: 13.5px; color: var(--ink-soft); margin-top: 8px; }

/* ── Действия и ошибки ── */
.tactions { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.tbtn-row { display: flex; gap: 12px; }
.tbtn-row .btn { flex: 1; }
.tnote { font-size: 13.5px; color: var(--ink-faint); text-align: center; }
.terror {
  display: none; background: #fef2f2; border: 1px solid #fecaca; color: #991b1b;
  border-radius: var(--radius-sm); padding: 12px 16px;
  font-size: 14.5px; font-weight: 600; margin-bottom: 16px;
}
.terror.is-visible { display: block; }

/* ── Панель звуков (речевая карта) ── */
.snd-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.snd-legend .key { display: inline-flex; align-items: center; gap: 6px; }
.snd-legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid; display: inline-block; }
.snd-group { margin-bottom: 10px; }
.snd-group:last-child { margin-bottom: 0; }
.snd-label { font-size: 12.5px; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 6px; }
.snd-row { display: flex; flex-wrap: wrap; gap: 6px; }
.snd {
  min-width: 42px; padding: 7px 8px; border-radius: 8px; border: 1.5px solid;
  font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
}
.snd:hover { transform: translateY(-1px); box-shadow: 0 2px 6px rgba(22, 48, 46, 0.12); }
.snd[data-status="норма"]       { background: #dcfce7; color: #15803d; border-color: #16a34a; }
.snd[data-status="искажён"]     { background: #fef3c7; color: #92400e; border-color: #d97706; }
.snd[data-status="отсутствует"] { background: #fee2e2; color: #991b1b; border-color: #ef4444; }

@media (max-width: 640px) {
  .tool-card { padding: 22px 18px; }
  .tgrid2, .pick-grid { grid-template-columns: 1fr; }
  .tbtn-row { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ─────────── Адаптив ─────────── */
@media (max-width: 1100px) {
  .main-nav { gap: 16px; }
  .main-nav a { font-size: 14px; }
}

@media (max-width: 960px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(22, 48, 46, 0.12);
    padding: 8px 24px 16px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-visual { max-width: 640px; margin: 0 auto; width: 100%; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .pains-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .see-also-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }

  .tg-inner { grid-template-columns: 1fr; gap: 56px; }
  .tg-copy { text-align: center; }
  .tg-lead { margin-left: auto; margin-right: auto; }
  .tg-list { text-align: left; max-width: 440px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 64px; }
  .header-actions .btn { display: none; }

  .steps-grid { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 36px 1fr; }
  .mock-card { display: none; }

  .features-grid-3,
  .steps-grid-4,
  .see-also-grid,
  .blog-grid { grid-template-columns: 1fr; }
  .who-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat-num { font-size: 28px; }
  .pains-grid,
  .features-grid,
  .tools-grid,
  .audience-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .phone { width: 270px; }
  .mock-grid { grid-template-columns: repeat(7, 1fr); }
  .mock-cell { height: 34px; }
}

/* ═══════════ SEO-секции (генератор) ═══════════ */
.seo-extra { padding: 72px 0; background: var(--bg); border-top: 1px solid var(--line); }
.seo-p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 16px; max-width: 860px; }
.seo-extra .section-head { margin-bottom: 22px; }
.seo-extra h3 { font-size: 18px; font-weight: 700; margin: 28px 0 12px; }
.seo-extra p { font-size: 15.5px; color: var(--ink-soft); margin-bottom: 12px; max-width: 860px; }
.seo-extra ul { display: flex; flex-direction: column; gap: 9px; margin-bottom: 16px; max-width: 860px; }
.seo-extra li { font-size: 15px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.seo-extra li::before { content: ""; position: absolute; left: 0; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.seo-faq { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.kw-cloud { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 4px; }
.kw-cloud summary { cursor: pointer; font-size: 17px; font-weight: 700; color: var(--ink); padding: 16px 0; list-style: none; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.kw-cloud summary::-webkit-details-marker { display: none; }
.kw-cloud summary::before { content: "▸"; font-size: 14px; color: var(--primary); transition: transform 0.2s ease; }
.kw-cloud[open] > summary::before { transform: rotate(90deg); }
.kw-count { font-size: 12.5px; font-weight: 600; color: var(--primary-dark); background: var(--primary-soft); padding: 3px 11px; border-radius: 999px; }
.kw-cloud ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 16px; padding: 0; list-style: none; }
.kw-cloud li { font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; color: var(--ink-soft); }
