/* Токены и типографика — в одной системе с главной (index.html) */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-ink: #1e3a8a;
  --primary-light: #eff6ff;
  --primary-hover: #1d4ed8;
  --primary-ring: rgba(37, 99, 235, 0.4);
  --accent: #0d9f6e; /* скидка / ✓ */
  --cta-warm: #ea580c;
  --cta-warm-hover: #c2410c;
  --ink: #0f172a;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --surface: #ffffff;
  --bg: #f8fafc;
  --page-grad: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  --page-radial: radial-gradient(ellipse 100% 52% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 50%);
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 12px 40px rgba(15, 23, 42, 0.1);
  --radius: 12px;
  /* Вертикальные ритмы как на главной: section { padding: var(--section-y) 0; } */
  --section-y: clamp(3rem, 5vw, 5.5rem);
  --section-y-tight: clamp(2.5rem, 4.5vw, 4.5rem);
  /* Совместимость с существующими селекторами */
  --text-main: var(--ink);
  --text-muted: var(--muted);
  --text-light: var(--faint);
  --border: var(--line);
  --bg-light: var(--bg);
  --footer-bg: #0f172a;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  line-height: 1.6;
  color: var(--ink);
  background-color: var(--bg);
  background-image: var(--page-radial), var(--page-grad);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }
main { position: relative; z-index: 1; overflow-x: clip; }
@supports not (overflow: clip) { main { overflow-x: hidden; } }
/* Базовый вертикальный ритм внутренних страниц — как на главной */
main > section { padding: var(--section-y) 0; }
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
  padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
}
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
a, button { transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
}
a.btn.btn-primary, .btn.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 8px var(--primary-ring);
}
a.btn.btn-primary:hover, .btn.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); }
a.btn.btn-outline, .btn.btn-outline {
  background: rgba(255, 255, 255, 0.6);
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
a.btn.btn-outline:hover, .btn.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: #fff;
  transform: translateY(-1px);
}
.microcopy { display: block; margin-top: 10px; font-size: 0.85rem; color: var(--muted); text-align: center; }

header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
header.site-header .container.nav { min-height: 4rem; display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; }
.logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo span { color: var(--primary); }
.nav-links {
  display: flex;
  gap: 8px 16px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(100%, 52rem);
}
.nav-links a:not([class^="btn"]):not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 0.9rem; padding: 6px 0; }
.nav-links a:not([class^="btn"]):not(.btn):hover { color: var(--ink); }
.burger {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer; color: var(--ink);
}
.burger svg { display: block; }
.mobile-menu {
  position: fixed;
  top: 64px;
  right: 0;
  width: 100%;
  max-width: 320px;
  height: calc(100vh - 64px);
  background: var(--surface);
  box-shadow: -4px 0 20px rgba(15, 23, 42, 0.08);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 99;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.mobile-menu a.btn-primary,
.mobile-menu a.btn.btn-primary,
.mobile-menu a.btn.btn-primary:hover,
.mobile-menu a.btn--warm,
.mobile-menu a.btn.btn--warm,
.mobile-menu a.btn.btn--warm:hover {
  color: #fff;
  border-bottom-color: transparent;
}
.mobile-overlay { position: fixed; inset: 0; top: 64px; background: rgba(15, 23, 42, 0.35); opacity: 0; visibility: hidden; transition: 0.25s ease; z-index: 98; }
.mobile-overlay.is-open { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  .nav-links a:not([class^="btn"]):not(.btn) { display: none; }
  .nav-links .btn, .nav-links a.btn { display: none; }
  .burger { display: inline-flex; }
  header.site-header .container.nav { min-height: 4rem; }
  .mobile-menu { top: 4rem; height: calc(100vh - 4rem); }
  .mobile-overlay { top: 4rem; }
}

.seo-hero {
  position: relative;
  padding: var(--section-y) 0;
  text-align: center;
  background: transparent;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.seo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 95% 50% at 50% 0%, rgba(37, 99, 235, 0.1), transparent 55%);
  pointer-events: none;
  z-index: 0;
}
.seo-hero .container { position: relative; z-index: 1; }
/* Плашка запуска — как .hero__tag на главной */
.seo-hero__tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0 auto 14px;
  padding: 0.42rem 0.7rem;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.seo-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto 1.25rem;
  max-width: 44rem;
}
.seo-hero-badge {
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.seo-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.6vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink);
  max-width: 920px;
  margin: 0 auto 18px;
  letter-spacing: -0.03em;
}
.seo-h1-accent { color: var(--primary); }
@supports (text-wrap: balance) {
  .seo-hero h1,
  .seo-visual__title,
  .seo-band__title,
  .seo-main h2,
  .seo-strip-cta h2,
  .final-cta h2 {
    text-wrap: balance;
  }
}
.seo-hero .seo-lead {
  font-family: var(--font);
  font-size: clamp(1rem, 2.1vw, 1.12rem);
  font-weight: 400;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 auto 32px;
  line-height: 1.6;
}
.seo-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.seo-cta-gutter {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
}

/* Интерфейс — как на главной */
.seo-visual {
  padding: var(--section-y) 0;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.seo-visual__head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 2.5rem;
}
.seo-visual__title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 10px;
  line-height: 1.3;
}
.seo-visual__lead {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}
.seo-shot {
  max-width: 1040px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(37, 99, 235, 0.1), 0 4px 16px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  background: #f1f5f9;
  line-height: 0;
}
.seo-shot figcaption {
  padding: 14px 16px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: left;
}
.seo-shot figcaption strong {
  color: var(--text-main);
  font-weight: 600;
}
.seo-shot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  object-position: center top;
}
.seo-shot video {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(52vh, 560px);
  object-fit: contain;
  object-position: center top;
  background: #f1f5f9;
}
.seo-shot--compact {
  max-width: 760px;
}
.seo-shot--mobile {
  max-width: 640px;
  background: #f8fafc;
}
.seo-shot--mobile img {
  width: auto;
  max-width: 100%;
  max-height: min(78vh, 760px);
  margin: 0 auto;
}
.seo-shot--with-gap {
  margin-bottom: 2rem;
}
.seo-screen-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(min(86vw, 300px), 1fr);
  gap: 18px;
  margin: 2rem 0 0;
  padding: 2px 2px 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}
.seo-screen-gallery--static {
  grid-auto-flow: initial;
  grid-auto-columns: initial;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: visible;
  padding: 0;
  scroll-snap-type: none;
}
.seo-screen-gallery--quad {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.seo-screen-card {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  scroll-snap-align: start;
}
.seo-screen-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  background: #f1f5f9;
}
.seo-screen-card--mobile img {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}
.seo-screen-card__body {
  padding: 14px 16px 16px;
}
.seo-screen-card__title {
  margin: 0 0 6px;
  font-family: var(--font-display);
  color: var(--text-main);
  font-size: 1rem;
  line-height: 1.3;
}
.seo-screen-card__text {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.seo-mini-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}
.seo-mini-list li {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  box-shadow: var(--shadow);
}
.seo-mini-list strong {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--text-main);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
}
.seo-shot-block {
  margin-top: 2rem;
}
.seo-shot-block__title {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  color: var(--text-main);
  font-size: clamp(1.1rem, 2.4vw, 1.35rem);
  line-height: 1.3;
}
.seo-shot--placeholder {
  min-height: clamp(220px, 36vw, 420px);
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
}
.seo-placeholder {
  max-width: 520px;
}
.seo-placeholder__eyebrow {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.seo-placeholder h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 3vw, 1.5rem);
  line-height: 1.25;
  color: var(--text-main);
}
.seo-placeholder p {
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
@media (max-width: 640px) {
  .seo-shot img,
  .seo-shot video { max-height: min(44vh, 400px); }
  .seo-shot--mobile img { max-height: min(70vh, 680px); }
  .seo-screen-gallery--static,
  .seo-screen-gallery--quad { grid-template-columns: 1fr; }
  .seo-mini-list { grid-template-columns: 1fr; }
}

/* Секции воронки */
section#pricing {
  scroll-margin-top: 20px;
}
.seo-band {
  padding: var(--section-y) 0;
}
.seo-band--muted {
  background: var(--bg-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.seo-band__title {
  font-family: var(--font-display);
  text-align: center;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
  line-height: 1.25;
}
.seo-band__lead {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2.75rem;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}

.seo-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
@media (min-width: 560px) {
  .seo-benefits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .seo-benefits-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.seo-benefit {
  background: #fff;
  padding: 22px 18px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: center;
}
.seo-benefit:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(37, 99, 235, 0.25);
}
.seo-benefit__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 52px;
  margin: 0 auto 10px;
}
.seo-benefit__icon img {
  display: block;
  max-width: 50px;
  max-height: 49px;
  width: auto;
  height: auto;
}
.seo-benefit h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 8px;
  line-height: 1.3;
}
.seo-benefit p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}
.seo-benefit a { color: var(--primary); font-weight: 600; text-decoration: none; }
.seo-benefit a:hover { text-decoration: underline; }

.seo-feature-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  max-width: 920px;
  margin: 0 auto;
}
@media (min-width: 760px) {
  .seo-feature-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-feature-list__item {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.seo-feature-list__item h3 {
  margin: 0;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.02rem;
  line-height: 1.3;
}
.seo-feature-list__item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.seo-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .seo-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.seo-steps--quad {
  grid-template-columns: 1fr;
  max-width: 1000px;
}
@media (min-width: 640px) {
  .seo-steps--quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.seo-step {
  position: relative;
  padding: 22px 18px 22px 54px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.seo-step__num {
  position: absolute;
  left: 14px;
  top: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.seo-step h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 8px;
}
.seo-step p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 400;
}
.seo-step a { color: var(--primary); font-weight: 600; text-decoration: none; }
.seo-step a:hover { text-decoration: underline; }

.seo-strip-cta {
  text-align: center;
  padding: clamp(2.5rem, 5vw, 3rem) clamp(1.25rem, 4vw, 1.5rem);
  border-radius: 20px;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary) 38%, #3b82f6 68%, #60a5fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  box-shadow: 0 10px 36px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.seo-strip-cta h2 {
  color: #fff;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.3;
}
.seo-strip-cta p {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 auto 20px;
  max-width: 480px;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}
.seo-strip-cta .btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}
.seo-strip-cta .btn-primary:hover {
  background: #f8fafc;
  color: var(--primary-hover);
}

.seo-compare {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
@media (min-width: 720px) {
  .seo-compare { grid-template-columns: 1fr 1fr; }
}
.seo-compare__col {
  padding: 26px 22px 28px;
  text-align: left;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.seo-compare__col--bad {
  background: linear-gradient(180deg, #fef2f2 0%, #fff5f5 100%);
  border-bottom: 1px solid #fecaca;
}
@media (min-width: 720px) {
  .seo-compare__col--bad {
    border-bottom: none;
    border-right: 1px solid #fecaca;
  }
}
.seo-compare__col--good {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
}
.seo-compare__label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  color: #991b1b;
  /* Одинаковая «полка» под подписи в двух колонках — заголовки h3 совпадают по вертикали */
  min-height: 4.5em;
  line-height: 1.35;
  flex-shrink: 0;
}
.seo-compare__col--good .seo-compare__label {
  color: var(--primary);
}
.seo-compare__col h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  margin: 0 0 12px;
  flex-shrink: 0;
}
.seo-compare__col ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  flex: 1;
  align-self: stretch;
}
.seo-compare__col li { margin-bottom: 8px; }
.seo-compare__col a { color: var(--primary); font-weight: 600; text-decoration: none; }
.seo-compare__col a:hover { text-decoration: underline; }

/* Тарифы — как на главной */
.seo-band .pricing-wrapper {
  text-align: center;
  width: 100%;
  max-width: min(1280px, calc(100vw - 40px));
  margin: 0 auto;
}
.seo-band .pricing-wrapper .seo-band__title {
  margin-bottom: 10px;
}
.pricing-note {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 520px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-weight: 400;
}
.toggle-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  padding: 5px;
  margin-bottom: 28px;
  background: #eef2f7;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.toggle-btn {
  flex: 1 1 auto;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  padding: 10px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.toggle-btn:hover:not(.active) {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.55);
}
.toggle-btn.active {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.06);
}
.toggle-btn__save {
  color: var(--accent);
  font-weight: 700;
}
.toggle-btn.active .toggle-btn__save {
  color: #0d9f6e;
}
@media (max-width: 420px) {
  .toggle-switch {
    width: 100%;
    max-width: 360px;
  }
  .toggle-btn {
    padding: 9px 12px;
    font-size: 0.85rem;
  }
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
section#pricing[data-active-segment="coach"] .pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
section#pricing[data-active-segment="school"] .pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 24px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
  transition: 0.2s;
  text-align: center;
}
.pricing-grid .price-card[hidden] { display: none !important; }
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.price-card.popular {
  border: 2px solid var(--primary);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.12);
}
.popular-badge {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.01em;
  text-transform: none;
  white-space: nowrap;
  background: #fff;
  color: var(--primary);
  border: 1px solid rgba(37, 99, 235, 0.35);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.1);
}
.price-card h3 {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-main);
}
.price {
  font-size: clamp(1.9rem, 2.5vw, 2.25rem);
  font-weight: 700;
  margin: 16px 0 6px;
  color: var(--text-main);
}
.price-period {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 400;
}
.price-features {
  list-style: none;
  margin: 16px 0;
  text-align: left;
  padding: 0 10px;
}
.price-features li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 0.88rem;
  color: var(--text-muted);
}
.price-features li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: bold;
}
.price-card .btn {
  margin-top: auto;
  min-height: 44px;
  white-space: nowrap;
  text-align: center;
}
@media (max-width: 980px) {
  .price-card .btn {
    white-space: normal;
  }
}
.cancel-note {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 8px;
}
@media (max-width: 980px) {
  section#pricing[data-active-segment="coach"] .pricing-grid,
  section#pricing[data-active-segment="school"] .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
    margin-left: 0;
    margin-right: 0;
    gap: 16px;
  }
}
@media (max-width: 768px) {
  section#pricing[data-active-segment="coach"] .pricing-grid,
  section#pricing[data-active-segment="school"] .pricing-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
  .price-card.popular {
    transform: none;
  }
}
.seo-faq {
  max-width: 720px;
  margin: 0 auto;
}
.seo-faq details {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 10px;
  background: #fff;
}
.seo-faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-main);
  font-size: 0.95rem;
}
.seo-faq details[open] summary {
  margin-bottom: 10px;
}
.seo-faq__a {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
  margin: 0;
}
.seo-faq__a a { color: var(--primary); font-weight: 600; text-decoration: none; }
.seo-faq__a a:hover { text-decoration: underline; }
.seo-faq__more {
  text-align: center;
  margin-top: 1.75rem;
}
.seo-faq__more a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.seo-faq__more a:hover { text-decoration: underline; }

.seo-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
}
@media (min-width: 720px) {
  .seo-contact-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.seo-contact-card {
  padding: 22px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--shadow);
  text-align: center;
}
.seo-contact-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-family: var(--font-display);
  font-size: 1.02rem;
}
.seo-contact-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}
.seo-contact-card a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
}
.seo-contact-card a:hover { text-decoration: underline; }

.seo-main {
  padding-top: var(--section-y);
  padding-bottom: var(--section-y);
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}
.seo-main h2 {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  margin: 0 0 14px;
  color: var(--text-main);
  text-align: center;
  line-height: 1.3;
}
.seo-main h2:first-of-type { margin-top: 0; }
.seo-main p {
  margin-bottom: 14px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-muted);
  max-width: 640px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}
.seo-main ul {
  margin: 0 auto 16px;
  padding-left: 1.2rem;
  color: var(--text-muted);
  max-width: 640px;
  text-align: left;
  font-size: 0.92rem;
  line-height: 1.5;
  font-weight: 400;
}
.seo-main li { margin-bottom: 8px; }
.seo-main a { color: var(--primary); font-weight: 500; }
.seo-main strong { color: var(--text-main); }

.container--before-final-cta { padding-top: var(--section-y); }
.final-cta {
  text-align: center;
  background: linear-gradient(140deg, var(--primary) 0%, var(--primary) 40%, #3b82f6 68%, #60a5fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  padding: clamp(2.75rem, 5vw, 3.25rem) clamp(1.5rem, 4vw, 1.75rem);
  margin-bottom: var(--section-y);
  box-shadow: 0 10px 36px rgba(37, 99, 235, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  color: #fff;
}
.final-cta h2 { margin-bottom: 14px; font-size: 1.5rem; color: #fff; line-height: 1.3; }
.final-cta p { margin-bottom: 22px; color: rgba(255, 255, 255, 0.92); max-width: 520px; margin-left: auto; margin-right: auto; font-size: 0.98rem; }
.final-cta .btn-primary { background: #fff; color: var(--primary); box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1); }
.final-cta .btn-primary:hover { background: #f8fafc; color: var(--primary-hover); }
.final-cta .microcopy { color: rgba(255, 255, 255, 0.85); }
.final-cta .microcopy a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }

footer.site-footer {
  background: var(--footer-bg);
  color: #94a3b8;
  padding: var(--section-y) 0 2rem;
  text-align: left;
}
.footer-tagline {
  max-width: none;
  margin: 0 0 32px;
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: nowrap;
  color: #94a3b8;
}
.footer-tagline strong { color: #e2e8f0; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px 28px;
  padding-bottom: 8px;
}
.footer-heading {
  margin: 0 0 12px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.9;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid #1e293b;
  font-size: 0.82rem;
  text-align: center;
  color: #64748b;
}
.footer-bottom p { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 8px; margin: 0; }

/* Как index.html: на узких экранах секции чуть плотнее (--section-y-tight) */
@media (max-width: 600px) {
  main > section { padding: var(--section-y-tight) 0; }
  .seo-hero,
  .seo-visual,
  .seo-band {
    padding: var(--section-y-tight) 0;
  }
  .seo-main,
  .seo-cta-gutter {
    padding-top: var(--section-y-tight);
    padding-bottom: var(--section-y-tight);
  }
  .container--before-final-cta {
    padding: var(--section-y-tight) max(1.25rem, env(safe-area-inset-left, 0px)) 0 max(1.25rem, env(safe-area-inset-right, 0px));
  }
  .final-cta {
    margin-bottom: var(--section-y-tight);
    padding: 2rem 1.1rem 2.15rem;
    border-radius: 22px;
  }
  footer.site-footer {
    padding: var(--section-y-tight) 0 1.75rem;
  }
}

@media (max-width: 960px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-col:nth-child(4) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col:nth-child(4) { grid-column: auto; }
}
@media (max-width: 720px) {
  .footer-tagline { white-space: normal; }
}
