/* ================================================
   MyPulso Landing — styles.css
   Dark theme, Coral accent, Mobile-first
   ================================================ */

:root {
  --lp-bg: #0D1117;
  --lp-bg-elev: #161B22;
  --lp-bg-hover: #1C2333;
  --lp-text: #F0F6FC;
  --lp-text-dim: rgba(240, 246, 252, 0.7);
  --lp-text-muted: rgba(240, 246, 252, 0.5);
  --lp-border: rgba(255, 255, 255, 0.1);
  --lp-border-strong: rgba(255, 255, 255, 0.2);
  --lp-header-bg: rgba(13, 17, 23, 0.85);
  --lp-accent: #FF6B5A;
  --lp-accent-hover: #FF8575;
  --lp-text-grey: #9CA3AF;
  --lp-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

html.light {
  --lp-bg: #FFFFFF;
  --lp-bg-elev: #F8FAFC;
  --lp-bg-hover: #F1F5F9;
  --lp-text: #0F172A;
  --lp-text-dim: rgba(15, 23, 42, 0.7);
  --lp-text-muted: rgba(15, 23, 42, 0.5);
  --lp-border: rgba(15, 23, 42, 0.1);
  --lp-border-strong: rgba(15, 23, 42, 0.2);
  --lp-header-bg: rgba(255, 255, 255, 0.9);
  --lp-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  --lp-text-grey: #4B5563;
  --lp-accent: #D9442F;
  --lp-accent-hover: #C23A27;
}

/* ================================================
   Единая типографическая шкала лендингов (волна 21, №1).

   Д. Жуков: «Шрифты, отступы, размер шрифтов должен быть одинаковым… на всех
   лендингах и во всех местах». До этого у каждой страницы был свой набор
   кеглей: H1 — 64/56/48/40/38/42 px, кнопки — 15/16/17 px и разные поля,
   надзаголовок — плашка 17 px на главной, 13 px капсом на /for-trainers.
   Теперь элементы одной роли берут размеры только отсюда — и на главной
   (landing.ts), и на страницах из layout.ts (/for-clients, /for-trainers,
   /pricing, /clubs, /help, гео-страницы). Таблица «до/после» —
   docs/tester-feedback/assets/wave21/after/typography-audit.md.
   Телефон — значения ниже, от 768 px — переопределения в @media.
   ================================================ */
:root {
  --mp-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

  /* Надзаголовок над H1: текст акцентным цветом, без рамки и заливки. */
  --mp-eyebrow-size: 16px;
  --mp-eyebrow-weight: 600;
  --mp-eyebrow-lh: 1.35;
  --mp-eyebrow-color: #FF8474;
  --mp-eyebrow-gap: 12px;

  --mp-h1-size: 32px;
  --mp-h1-lh: 1.12;
  --mp-h1-ls: -0.02em;

  /* Второй размер H1 — служебные страницы (/pricing, /help и статьи
     центра помощи): там заголовок называет раздел, а не продаёт, и 60 px
     лендинга на десктопе слишком громко. Межстрочный и трекинг — как у H1. */
  --mp-h1-page-size: 28px;

  /* Подзаголовок первого экрана. */
  --mp-lead-size: 16px;
  --mp-lead-lh: 1.5;

  --mp-h2-size: 26px;
  --mp-h2-lh: 1.2;
  --mp-h2-ls: -0.01em;

  /* Подзаголовок секции (под H2). */
  --mp-sub-size: 16px;
  --mp-sub-lh: 1.6;

  --mp-card-title-size: 18px;
  --mp-card-title-weight: 700;
  --mp-card-title-lh: 1.3;
  --mp-card-text-size: 15px;
  --mp-card-text-lh: 1.6;

  /* Кнопки: основная и вторичная одной высоты (у вторичной 2 px рамки
     входят в высоту). */
  --mp-btn-size: 16px;
  --mp-btn-weight: 700;
  --mp-btn-lh: 1.25;
  --mp-btn-h: 52px;
  --mp-btn-px: 28px;
  --mp-btn-radius: 14px;

  /* Текстовая ссылка рядом с кнопками («Войти в кабинет»): тот же кегль,
     что у кнопок, зона касания 44 px. */
  --mp-link-size: 16px;
  --mp-link-weight: 600;

  /* FAQ: строки ниже в ~1,5 раза (волна 21, №2), зона нажатия ≥ 44 px. */
  --mp-faq-q-size: 17px;
  --mp-faq-q-weight: 500;
  --mp-faq-q-lh: 1.4;
  --mp-faq-q-py: 14px;
  --mp-faq-q-min-h: 52px;
  --mp-faq-a-size: 15px;
  --mp-faq-a-lh: 1.65;
}

@media (min-width: 768px) {
  :root {
    --mp-eyebrow-size: 18px;
    --mp-eyebrow-gap: 16px;
    --mp-h1-size: clamp(40px, 4.6vw, 60px);
    --mp-h1-lh: 1.1;
    --mp-h1-page-size: clamp(34px, 3.4vw, 44px);
    --mp-lead-size: 19px;
    --mp-lead-lh: 1.55;
    --mp-h2-size: clamp(30px, 3.2vw, 40px);
    --mp-sub-size: 18px;
    --mp-card-title-size: 20px;
    --mp-btn-px: 36px;
    --mp-faq-q-size: 18px;
    --mp-faq-a-size: 16px;
  }
}

html.light {
  --mp-eyebrow-color: #D9442F;
}

/* Общие классы ролей — для страниц, которые не используют .lp-*. */
.mp-eyebrow,
.lp-overline {
  display: block;
  font-family: var(--mp-font);
  font-size: var(--mp-eyebrow-size);
  font-weight: var(--mp-eyebrow-weight);
  line-height: var(--mp-eyebrow-lh);
  letter-spacing: 0;
  text-transform: none;
  color: var(--mp-eyebrow-color);
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  margin: 0 0 var(--mp-eyebrow-gap);
  text-wrap: balance;
}

.mp-text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
  font-family: var(--mp-font);
  font-size: var(--mp-link-size);
  font-weight: var(--mp-link-weight);
  line-height: var(--mp-btn-lh);
  color: var(--lp-text-dim);
  text-decoration: none;
}
.mp-text-link:hover {
  color: var(--lp-text);
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--lp-text);
  background: var(--lp-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font: inherit;
  cursor: pointer;
}

/* Поля формы по умолчанию не наследуют шрифт страницы (Arial, у textarea —
   моноширинный). Размер задают классы форм, семейство — общее. */
input,
select,
textarea {
  font-family: inherit;
}

/* === Focus styles (accessibility) === */
:focus-visible {
  outline: 2px solid #FF6B5A;
  outline-offset: 2px;
}

/* === Container === */
.lp-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .lp-container {
    padding: 0 40px;
  }
}

/* === Typography === */
.lp-h1 {
  font-family: var(--mp-font);
  font-size: var(--mp-h1-size);
  font-weight: 700;
  line-height: var(--mp-h1-lh);
  letter-spacing: var(--mp-h1-ls);
  color: var(--lp-text);
}

.lp-h2 {
  font-family: var(--mp-font);
  font-size: var(--mp-h2-size);
  font-weight: 700;
  line-height: var(--mp-h2-lh);
  letter-spacing: var(--mp-h2-ls);
  color: var(--lp-text);
  text-align: center;
  margin-bottom: 16px;
}

/* .lp-overline — см. «Общие классы ролей» выше (надзаголовок). */

.lp-section-sub {
  font-family: var(--mp-font);
  font-size: var(--mp-sub-size);
  color: var(--lp-text-dim);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  line-height: var(--mp-sub-lh);
}

/* === Scroll Reveal === */
.lp-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.lp-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   HEADER
   ================================================ */
.lp-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: var(--lp-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #21262D;
}

.lp-nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

@media (min-width: 768px) {
  .lp-nav {
    padding: 0 40px;
  }
}

/* Узкий десктоп (960–1400 px): пункты меню, «Партнёрам», вход и переключатели
   не помещались в 1120 px и уезжали за край, переключатель темы был обрезан. */
@media (min-width: 960px) and (max-width: 1400px) {
  .lp-nav { max-width: 1360px; padding: 0 24px; gap: 14px; }
  .lp-nav-links { gap: 20px; }
  .lp-nav-actions { gap: 10px; }
  .lp-nav-utility { margin-left: 4px; padding-left: 8px; }
}

/* Logo */
.lp-logo {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.lp-logo-my {
  color: #FF6B5A;
}

.lp-logo-pulso {
  color: var(--lp-text);
}

.lp-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.lp-footer-brand .lp-logo-img {
  height: 32px;
}

/* Nav links */
.lp-nav-links {
  display: none;
  gap: 32px;
}

@media (min-width: 960px) {
  .lp-nav-links {
    display: flex;
  }
}

.lp-nav-links a {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-grey);
  transition: color 0.15s ease;
  white-space: nowrap;
}

.lp-nav-links a:hover {
  color: var(--lp-text);
}

/* Nav actions */
.lp-nav-actions {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 960px) {
  .lp-nav-actions {
    display: flex;
  }
}

.lp-nav-login {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--lp-text-grey);
  transition: color 0.15s ease;
}

.lp-nav-login:hover {
  color: var(--lp-text);
}

/* Subtle "Я тренер" link — маленькая кнопка для перехода на /coach/ */
.lp-nav-link-subtle {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-text-grey);
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.lp-nav-link-subtle:hover {
  color: #FF6B5A;
  background: rgba(255, 107, 90, 0.08);
}

.lp-cta-inline-link {
  color: #FF6B5A;
  text-decoration: underline;
  text-decoration-color: rgba(255, 107, 90, 0.4);
  text-underline-offset: 3px;
}

.lp-cta-inline-link:hover {
  color: #FF8A7A;
  text-decoration-color: #FF8A7A;
}

.lp-nav-btn {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FF6B5A;
  border: 1.5px solid #FF6B5A;
  padding: 8px 20px;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}

.lp-nav-btn:hover {
  background: rgba(255, 107, 90, 0.1);
}

/* Кнопка «Скачать» — главный короткий путь в приложение, поэтому она
   заливная и заметнее соседних кнопок-обводок. Пульсирующее кольцо
   привлекает взгляд, но гаснет через несколько секунд, чтобы не мельтешить,
   и не запускается вовсе при prefers-reduced-motion. */
.lp-nav-download {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #FF6B5A 0%, #E8452F 100%);
  border: 0;
  padding: 9px 18px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(232, 69, 47, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lp-nav-download::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 13px;
  border: 2px solid rgba(255, 107, 90, 0.55);
  opacity: 0;
  pointer-events: none;
  animation: lp-dl-ring 2.1s ease-out 3;
}

@keyframes lp-dl-ring {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.16); opacity: 0; }
  100% { transform: scale(1.16); opacity: 0; }
}

.lp-nav-download:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(232, 69, 47, 0.45);
}

.lp-nav-download:active {
  transform: translateY(0);
}

.lp-nav-download--wide {
  justify-content: center;
  width: 100%;
  padding: 13px 18px;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .lp-nav-download::after { animation: none; }
  .lp-nav-download { transition: none; }
}

/* Пре-MVP: заглушка «Скоро» вместо кнопки «Скачать».
   Форма и размеры те же (шапка не разъезжается), но без заливки, свечения,
   пульсирующего кольца и hover-подъёма — плашка читается как статус, а не
   как призыв к действию. Убрать вместе с флагом APP_DOWNLOADS_ENABLED. */
.lp-nav-download--soon {
  background: transparent;
  color: var(--lp-text-dim);
  border: 1px dashed var(--lp-border-strong);
  box-shadow: none;
  cursor: default;
  font-weight: 600;
}

.lp-nav-download--soon::after { content: none; }

.lp-nav-download--soon:hover {
  transform: none;
  box-shadow: none;
}

/* То же самое в футере: пункт списка ссылок, но не ссылка —
   повторяет геометрию .lp-footer-col a, только приглушённый. */
.lp-footer-soon {
  color: #6B7280;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  cursor: default;
}

/* Burger */
.lp-burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 960px) {
  .lp-burger {
    display: none;
  }
}

.lp-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--lp-text);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.lp-burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.lp-burger.open span:nth-child(2) {
  opacity: 0;
}

.lp-burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.lp-mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--lp-bg);
  z-index: 99;
  display: flex;
  flex-direction: column;
  padding: 24px 20px;
  /* Нижний отступ с учётом системной панели браузера: без него последние
     пункты меню прятались за ней на телефонах. */
  padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px));
  gap: 0;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  /* Меню длиннее экрана — оно должно прокручиваться. Без этого на телефоне
     нижние пункты были физически недостижимы. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.lp-mobile-menu.open {
  transform: translateX(0);
}

@media (min-width: 960px) {
  .lp-mobile-menu {
    display: none !important;
  }
}

.lp-mobile-menu a {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--lp-text);
  padding: 14px 0;
  border-bottom: 1px solid #21262D;
  flex: 0 0 auto;
}

/* Кнопка «Скачать» в мобильном меню — не пункт списка: без разделителя,
   всегда на виду в самом верху. */
.lp-mobile-menu .lp-nav-download--top {
  margin-bottom: 8px;
  border-bottom: 0;
  padding: 14px 18px;
  font-size: 16px;
}

.lp-mobile-menu-actions {
  margin-top: 24px;
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lp-mobile-menu-actions .lp-nav-login {
  font-size: 16px;
  text-align: center;
  padding: 12px;
}

.lp-mobile-menu-actions .lp-nav-btn {
  font-size: 16px;
  text-align: center;
  padding: 14px 24px;
}

/* ================================================
   HERO
   ================================================ */
.lp-hero {
  position: relative;
  padding: 140px 0 64px;
  text-align: center;
  overflow: hidden;
}

@media (min-width: 768px) {
  .lp-hero {
    padding: 160px 0 80px;
  }
}

.lp-hero-bg {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(255, 107, 90, 0.15) 0%, rgba(255, 107, 90, 0.03) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.lp-hero .lp-container {
  position: relative;
  z-index: 1;
}

.lp-hero .lp-overline {
  text-align: center;
}

.lp-hero .lp-h1 {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 24px;
}

.lp-hero-sub {
  font-family: var(--mp-font);
  font-size: var(--mp-lead-size);
  color: var(--lp-text-dim);
  line-height: var(--mp-lead-lh);
  max-width: 600px;
  margin: 0 auto 40px;
  text-align: center;
}

.lp-hero-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .lp-hero-cta {
    flex-direction: row;
    justify-content: center;
  }
}

/* === Развилка первого экрана: «Я тренер» / «Ищу тренера» ===
   Два пути одинакового размера. Тренер — основа продукта, идёт первым
   (заливка акцентом); клиент — карточка того же размера с акцентной
   рамкой, чтобы ни один путь не доминировал. */
.lp-paths {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 16px;
}

@media (min-width: 560px) {
  .lp-paths {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.lp-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 88px;
  padding: 16px 20px;
  border: 2px solid #FF6B5A;
  border-radius: 16px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  text-align: center;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.lp-path:hover {
  transform: translateY(-2px);
}

.lp-path-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.lp-path-title::after {
  content: " \2192";
}

.lp-path-hint {
  font-size: 14px;
  line-height: 1.4;
}

.lp-path--trainer {
  background: #FF6B5A;
  color: #FFFFFF;
}

.lp-path--trainer:hover {
  background: #E8594A;
  border-color: #E8594A;
}

.lp-path--trainer .lp-path-hint {
  color: rgba(255, 255, 255, 0.9);
}

.lp-path--client {
  background: var(--lp-bg-elev);
  color: var(--lp-text);
}

.lp-path--client:hover {
  background: rgba(255, 107, 90, 0.1);
}

.lp-path--client .lp-path-hint {
  color: var(--lp-text-dim);
}

/* === CTA Buttons === */
/* Ширина кнопки не должна зависеть от длины подписи: «Стать тренером
   на MyPulso» — 25 знаков, и вместе с полями 44 px она не помещалась ни
   в 320, ни в 360 точек, уводя всю страницу вбок. `nowrap` не давал
   подписи перенестись, а фиксированные поля — ужаться.
   Поля теперь текучие (на широком экране те же 44 px, на узком — 20),
   перенос разрешён, ширина ограничена родителем. */
.lp-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mp-font);
  font-weight: var(--mp-btn-weight);
  font-size: var(--mp-btn-size);
  line-height: var(--mp-btn-lh);
  min-height: var(--mp-btn-h);
  border-radius: var(--mp-btn-radius);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none;
  white-space: normal;
  text-align: center;
  max-width: 100%;
}

.lp-cta-primary {
  background: #FF6B5A;
  color: #FFFFFF;
  /* Высоту задаёт min-height в .lp-cta; поля по вертикали — на случай
     подписи в две строки. */
  padding: 12px clamp(20px, 5vw, var(--mp-btn-px));
  border: none;
  box-shadow: 0 4px 24px rgba(255, 107, 90, 0.3);
}

.lp-cta-primary:hover {
  background: #E8594A;
  transform: translateY(-3px);
  box-shadow: 0 8px 32px rgba(255, 107, 90, 0.4);
}

.lp-cta-secondary {
  background: transparent;
  color: #FF6B5A;
  padding: 10px calc(clamp(20px, 5vw, var(--mp-btn-px)) - 2px);
  border: 2px solid #FF6B5A;
}

.lp-cta-secondary:hover {
  background: rgba(255, 107, 90, 0.1);
  transform: translateY(-3px);
}

/* Micro copy */
.lp-cta-micro {
  color: var(--lp-text-grey);
  font-size: 14px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  margin-top: 12px;
  text-align: center;
}

/* === Value strip === */
.lp-value-strip {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 48px;
  flex-wrap: wrap;
}

.lp-value-strip-item {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--lp-text-grey);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
}

.lp-value-strip-item strong {
  color: var(--lp-text);
}

@media (max-width: 640px) {
  .lp-value-strip {
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }
}

/* ================================================
   SECTIONS (generic)
   ================================================ */
.lp-section {
  padding: 64px 0;
}

@media (min-width: 768px) {
  .lp-section {
    padding: 96px 0;
  }
}

/* ================================================
   SOCIAL PROOF (числа)
   ================================================ */
.lp-section-proof {
  padding: 48px 0;
  border-bottom: 1px solid #21262D;
}

@media (min-width: 768px) {
  .lp-section-proof {
    padding: 64px 0;
  }
}

.lp-social-proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}

@media (min-width: 768px) {
  .lp-social-proof {
    grid-template-columns: repeat(4, 1fr);
  }
}

.lp-proof-number {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: #FF6B5A;
  line-height: 1;
}

@media (min-width: 768px) {
  .lp-proof-number {
    font-size: 48px;
  }
}

.lp-proof-label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  color: var(--lp-text-grey);
  margin-top: 8px;
}

@media (min-width: 768px) {
  .lp-proof-label {
    font-size: 15px;
  }
}

/* ================================================
   STEPS (3 шага)
   ================================================ */
.lp-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .lp-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 64px;
  }
}

.lp-step {
  background: var(--lp-bg-elev);
  border: 1px solid #21262D;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-step:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lp-step-num {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #FF6B5A;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.lp-step-icon {
  margin-bottom: 20px;
}

.lp-step-icon svg {
  margin: 0 auto;
}

.lp-step-title {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 12px;
}

.lp-step-desc {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-text-grey);
  line-height: 1.7;
}

/* ================================================
   TRAINERS SECTION
   ================================================ */
.lp-trainers-section {
  background: linear-gradient(135deg, rgba(255, 107, 90, 0.05) 0%, rgba(255, 107, 90, 0.02) 100%);
  border: 1px solid rgba(255, 107, 90, 0.1);
  border-radius: 16px;
  padding: 48px 20px;
}

@media (min-width: 768px) {
  .lp-trainers-section {
    border-radius: 24px;
    padding: 80px 40px;
  }
}

.lp-trainer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 40px;
}

@media (min-width: 640px) {
  .lp-trainer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .lp-trainer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-trainer-card {
  background: rgba(22, 27, 34, 0.7);
  border: 1px solid #21262D;
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-trainer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lp-trainer-card-icon {
  margin-bottom: 16px;
}

.lp-trainer-card h3 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}

.lp-trainer-card p {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-text-grey);
  line-height: 1.7;
}

.lp-trainer-cta {
  text-align: center;
  margin-top: 48px;
}

.lp-urgency {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #FF6B5A;
  margin-top: 16px;
}

/* ================================================
   WHY MYPULSO (6 карточек)
   ================================================ */
.lp-why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 640px) {
  .lp-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .lp-why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.lp-why-card {
  background: var(--lp-bg-elev);
  border: 1px solid #21262D;
  border-radius: 16px;
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lp-why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.lp-why-icon {
  margin-bottom: 16px;
}

.lp-why-card h3 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--lp-text);
  margin-bottom: 8px;
}

.lp-why-card p {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-text-grey);
  line-height: 1.7;
}

/* ================================================
   DIRECTIONS (направления)
   ================================================ */
.lp-directions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 40px;
}

.lp-dir-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--lp-bg-elev);
  border: 1px solid #21262D;
  border-radius: 100px;
  padding: 12px 24px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--lp-text);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  min-height: 44px;
}

.lp-dir-tag:hover {
  background: var(--lp-bg-hover);
  border-color: #FF6B5A;
  transform: translateY(-2px);
}

.lp-dir-emoji {
  font-size: 18px;
}

.lp-directions-sub {
  text-align: center;
  color: var(--lp-text-grey);
  font-size: 15px;
  margin-top: 24px;
}

.lp-directions-sub a {
  color: #FF6B5A;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-directions-sub a:hover {
  color: #FF8474;
}

/* ================================================
   FAQ
   ================================================ */
.lp-faq {
  max-width: 800px;
  margin: 40px auto 0;
}

/* Одна строка FAQ на всех лендингах (волна 21, №1–2). Три реализации
   раскрытия — кнопка + .active (главная), <details> (тарифы,
   /for-trainers, гео-страницы) и кнопка + .open (центр помощи) — выглядят
   одинаково: линия-разделитель, вопрос 17/18 px, «+» акцентным цветом.
   Строка ниже прежней примерно в 1,5 раза (75 → 52 px), но не ниже 44 px
   зоны нажатия. */
.lp-faq-item,
.mp-faq-item {
  border-bottom: 1px solid var(--lp-border);
}

.lp-faq-question,
.mp-faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-height: var(--mp-faq-q-min-h);
  padding: var(--mp-faq-q-py) 0;
  background: none;
  border: none;
  color: var(--lp-text);
  font-family: var(--mp-font);
  font-size: var(--mp-faq-q-size);
  font-weight: var(--mp-faq-q-weight);
  line-height: var(--mp-faq-q-lh);
  cursor: pointer;
  text-align: start;
  list-style: none;
  gap: 16px;
}

.lp-faq-question::-webkit-details-marker,
.mp-faq-q::-webkit-details-marker {
  display: none;
}

.lp-faq-question::after,
.mp-faq-q::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: #FF6B5A;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  line-height: 1;
}

.lp-faq-item.active .lp-faq-question::after,
details[open] > .lp-faq-question::after,
details[open] > .mp-faq-q::after,
.mp-faq-item.open .mp-faq-q::after {
  transform: rotate(45deg);
}

.lp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.lp-faq-item.active .lp-faq-answer {
  max-height: 400px;
  padding-bottom: 16px;
}

details[open] > .lp-faq-answer {
  max-height: none;
  padding-bottom: 16px;
}

.lp-faq-answer p,
.mp-faq-a {
  color: var(--lp-text-dim);
  font-family: var(--mp-font);
  font-size: var(--mp-faq-a-size);
  line-height: var(--mp-faq-a-lh);
}

details > .mp-faq-a {
  padding: 0 0 16px;
}

/* ================================================
   FINAL CTA
   ================================================ */
.lp-final-cta {
  position: relative;
  overflow: hidden;
}

.lp-final-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 107, 90, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.lp-final-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 640px) {
  .lp-final-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.lp-final-card {
  background: var(--lp-bg-elev);
  border: 1px solid #21262D;
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.lp-final-card--trainer {
  border-color: rgba(255, 107, 90, 0.2);
  background: linear-gradient(135deg, rgba(255, 107, 90, 0.05) 0%, var(--lp-bg-elev) 100%);
}

.lp-final-card h3 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--lp-text);
}

.lp-final-card p {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-text-grey);
  line-height: 1.6;
  margin-bottom: 8px;
}

.lp-final-card .lp-cta {
  width: 100%;
}

.lp-final-card .lp-cta-micro {
  margin-top: 8px;
  font-size: 13px;
}

/* ================================================
   FOOTER
   ================================================ */
.lp-footer {
  background: #0A0E14;
  border-top: 1px solid #21262D;
  padding: 48px 20px 24px;
  /* iPad Safari (волна 20 №10): подвал на скриншоте тестировщика был
     отрисован только до одной горизонтали, ниже — пустой фон. В WebKit
     Playwright (1280×960) не воспроизводится: это недорисованные плитки
     корневого слоя при инерционной прокрутке. Свой композитный слой подвал
     рисует целиком одним буфером, а не плитками вместе со страницей. */
  position: relative;
  transform: translateZ(0);
}

@media (min-width: 768px) {
  .lp-footer {
    padding: 64px 40px 32px;
  }
}

.lp-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .lp-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .lp-footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
  }
}

.lp-footer-brand {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 22px;
  font-weight: 700;
}

.lp-footer-slogan {
  color: var(--lp-text-grey);
  font-size: 14px;
  margin-top: 8px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.6;
}

.lp-footer-heading {
  color: var(--lp-text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
}

.lp-footer-col a {
  color: var(--lp-text-grey);
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  display: block;
  padding: 4px 0;
  transition: color 0.15s ease;
}

.lp-footer-col a:hover {
  color: #FF6B5A;
}

/* Телефон: ссылки футера столбиком шли с шагом 30 px — мельче
   рекомендуемой зоны касания 44 px. */
@media (max-width: 768px) {
  .lp-footer-col a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0;
  }
}

.lp-footer-bottom {
  border-top: 1px solid #21262D;
  margin-top: 48px;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  color: #6E7681;
  font-size: 13px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.lp-footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.lp-footer-legal a {
  color: #6E7681;
  font-size: 13px;
  transition: color 0.15s ease;
}

.lp-footer-legal a:hover {
  color: #FF6B5A;
}

@media (max-width: 640px) {
  .lp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .lp-footer-legal {
    justify-content: center;
  }
}

/* ================================================
   GRADIENT DIVIDERS
   ================================================ */
.lp-section + .lp-section {
  border-top: 1px solid transparent;
  background-image: linear-gradient(var(--lp-bg), var(--lp-bg)), linear-gradient(90deg, transparent 0%, #30363D 50%, transparent 100%);
  background-origin: padding-box, border-box;
  background-clip: padding-box, border-box;
}

/* ================================================
   PREFERS REDUCED MOTION
   ================================================ */
/* ================================================
   BETA SIGNUP FORM
   ================================================ */
.lp-beta-form-wrap {
  max-width: 600px;
  margin: 40px auto 0;
  background: var(--lp-bg-elev);
  border: 1px solid #21262D;
  border-radius: 16px;
  padding: 32px 24px;
}

@media (min-width: 768px) {
  .lp-beta-form-wrap {
    padding: 40px 36px;
  }
}

.lp-beta-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

@media (min-width: 520px) {
  .lp-beta-row {
    grid-template-columns: 1fr 1fr;
  }
}

.lp-beta-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.lp-beta-field label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-text-grey);
  letter-spacing: 0.01em;
}

.lp-beta-field input,
.lp-beta-field select {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 15px;
  color: var(--lp-text);
  background: var(--lp-bg);
  border: 1px solid #30363D;
  border-radius: 10px;
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 44px;
  -webkit-appearance: none;
}

.lp-beta-field input::placeholder {
  color: #484F58;
}

.lp-beta-field input:focus,
.lp-beta-field select:focus {
  border-color: #FF6B5A;
  box-shadow: 0 0 0 3px rgba(255, 107, 90, 0.15);
  outline: none;
}

.lp-beta-field select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.lp-beta-field--spec {
  margin-bottom: 16px;
}

.lp-beta-consent {
  margin-bottom: 20px;
}

.lp-beta-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  color: var(--lp-text-grey);
  line-height: 1.5;
}

.lp-beta-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: #FF6B5A;
  cursor: pointer;
}

.lp-beta-consent a {
  color: #FF6B5A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lp-beta-consent a:hover {
  color: #FF8474;
}

.lp-beta-submit {
  width: 100%;
  padding: 16px;
  font-size: 16px;
  border: none;
}

.lp-beta-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

.lp-beta-status {
  margin-top: 16px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  text-align: center;
  min-height: 20px;
}

.lp-beta-status--success {
  color: #3FB950;
}

.lp-beta-status--error {
  color: #F85149;
}

/* ================================================
   COOKIE CONSENT BANNER
   ================================================ */
.cc-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--lp-bg-elev);
  border-top: 1px solid #21262D;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.4);
}

.cc-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 768px) {
  .cc-main {
    flex-direction: row;
    align-items: center;
    padding: 20px 40px;
  }
}

.cc-text {
  flex: 1;
}

.cc-text p {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  color: var(--lp-text-grey);
  line-height: 1.6;
  margin: 0;
}

.cc-text a {
  color: #FF6B5A;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cc-text a:hover {
  color: #FF8474;
}

.cc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.cc-btn {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  min-height: 40px;
}

.cc-btn--accept {
  background: #FF6B5A;
  color: #FFFFFF;
}

.cc-btn--accept:hover {
  background: #E8594A;
}

.cc-btn--necessary {
  background: #21262D;
  color: var(--lp-text);
}

.cc-btn--necessary:hover {
  background: #30363D;
}

.cc-btn--settings {
  background: transparent;
  color: var(--lp-text-grey);
  border: 1px solid #30363D;
}

.cc-btn--settings:hover {
  border-color: #484F58;
  color: var(--lp-text);
}

.cc-details {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
}

@media (min-width: 768px) {
  .cc-details {
    padding: 0 40px 20px;
  }
}

.cc-category {
  padding: 10px 0;
  border-bottom: 1px solid #21262D;
}

.cc-category:last-of-type {
  border-bottom: none;
}

.cc-category label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  color: var(--lp-text-grey);
  line-height: 1.6;
  cursor: pointer;
}

.cc-category input[type="checkbox"] {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #FF6B5A;
  cursor: pointer;
}

.cc-category strong {
  color: var(--lp-text);
}

.cc-details-actions {
  padding-top: 12px;
}

/* ================================================
   PREFERS REDUCED MOTION
   ================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .lp-reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== Language Switcher (landing + SSR pages) ========== */
.lang-switcher { position: relative; display: inline-block; }
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid var(--lp-border-strong);
  border-radius: 10px;
  color: var(--lp-text-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  transition: border-color .15s, color .15s, background .15s;
}
.lang-toggle:hover { border-color: #FF6B5A; color: #fff; }
.lang-toggle[aria-expanded="true"] { border-color: #FF6B5A; color: #fff; }
.lang-toggle .lang-current-flag { font-size: 14px; line-height: 1; }
.lang-toggle .lang-current-code { font-variant: tabular-nums; letter-spacing: .02em; }
.lang-toggle .lang-chevron { opacity: .7; transition: transform .15s; }
.lang-toggle[aria-expanded="true"] .lang-chevron { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 200px;
  max-height: 360px;
  overflow-y: auto;
  padding: 6px;
  margin: 0;
  list-style: none;
  background: var(--lp-bg-elev);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .4);
  z-index: 1000;
}
.lang-switcher--footer .lang-menu { top: auto; bottom: calc(100% + 6px); }
.lang-menu[hidden] { display: none; }

.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--lp-text-dim);
  text-decoration: none;
  font-size: 13px;
  transition: background .12s, color .12s;
}
.lang-item:hover { background: var(--lp-bg-hover); color: var(--lp-text); }
.lang-item--active { background: rgba(255, 107, 90, 0.15); color: #FF6B5A; }
.lang-item .lang-flag { font-size: 18px; line-height: 1; flex-shrink: 0; }
.lang-item .lang-names { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lang-item .lang-native { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; font-size: 14px; }
.lang-item .lang-english { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; opacity: .55; }
.lang-item .lang-code { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 10px; opacity: .55; letter-spacing: .05em; }
.lang-item .lang-check { flex-shrink: 0; color: #FF6B5A; }

/* === Переключатель языка в мобильном меню-«бургере» (07.10.2026) ===
   На телефоне шапочный переключатель скрыт вместе с .lp-nav-actions / .nav,
   поэтому в меню — свой вариант: кнопка во всю ширину с флагом и названием,
   список раскрывается в потоке (не выпадашкой), меню прокручивается целиком.
   Селекторы через .lp-mobile-menu — сильнее общих .lang-menu и
   `.lp-mobile-menu a`, десктопную шапку и футер не задевают. */
.lp-mobile-lang {
  flex: 0 0 auto;
  padding: 14px 0;
  border-bottom: 1px solid #21262D;
}
.lp-mobile-menu .lang-switcher--mobile { display: block; width: 100%; }
.lp-mobile-menu .lang-switcher--mobile .lang-toggle {
  width: 100%;
  min-height: 48px;
  justify-content: flex-start;
  gap: 10px;
  padding: 10px 14px;
  font-size: 16px;
  color: var(--lp-text);
  border: 1px solid var(--lp-border-strong);
  border-radius: 12px;
}
.lp-mobile-menu .lang-switcher--mobile .lang-current-flag { font-size: 20px; }
.lp-mobile-menu .lang-switcher--mobile .lang-current-name {
  flex: 1;
  min-width: 0;
  text-align: start;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lp-mobile-menu .lang-switcher--mobile .lang-current-code { font-size: 12px; opacity: .6; }
.lp-mobile-menu .lang-switcher--mobile .lang-menu {
  position: static;
  width: 100%;
  min-width: 0;
  max-height: none;
  overflow: visible;
  margin-top: 8px;
  box-shadow: none;
}
.lp-mobile-menu .lang-switcher--mobile .lang-menu[hidden] { display: none; }
.lp-mobile-menu .lang-switcher--mobile .lang-item {
  min-height: 48px;
  padding: 10px 12px;
  border-bottom: 0;
  font-size: 15px;
  font-weight: 400;
  color: var(--lp-text-dim);
}
.lp-mobile-menu .lang-switcher--mobile .lang-item--active { color: #FF6B5A; }

/* === Theme-aware logos === */
.lp-logo-img--light { display: none; }
html.light .lp-logo-img--dark { display: none; }
html.light .lp-logo-img--light { display: block; }
/* Подвал тёмный при любой теме: в светлой теме там пропадали логотип
   и заголовки колонок (тёмное на тёмном). */
html.light .lp-footer .lp-logo-img--dark { display: block; }
html.light .lp-footer .lp-logo-img--light { display: none; }
html.light .lp-footer .lp-footer-heading { color: #F0F6FC; }
/* Подвал тёмный при любой теме: серый текст в нём остаётся светлым. */
html.light .lp-footer { --lp-text-grey: #9CA3AF; }

/* === Nav utility group (lang + theme at far right) === */
.lp-nav-utility {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid var(--lp-border);
}
.lp-nav-utility .lang-toggle {
  border: none;
  background: transparent;
  padding: 6px 8px;
  gap: 4px;
}
.lp-nav-utility .lang-toggle:hover { background: var(--lp-bg-hover); border: none; color: var(--lp-text); }
.lp-nav-utility .lang-toggle[aria-expanded="true"] { background: var(--lp-bg-hover); border: none; }
.lp-nav-utility .lang-current-code { display: none; }
.lp-nav-utility .lang-toggle .lang-current-flag { font-size: 18px; }
.lp-nav-utility .theme-toggle {
  width: 36px;
  height: 36px;
}
.lp-nav-utility .theme-toggle:hover { background: var(--lp-bg-hover); color: var(--lp-text); }

@media (max-width: 768px) {
  .lp-nav-utility { margin-left: 0; padding-left: 0; border-left: none; }
}

/* Переключатель темы виден и на телефоне (блок действий там свёрнут в бургер).
   Прижат вправо, вплотную к кнопке меню: без margin-left:auto
   justify-content:space-between ставил его посередине между логотипом и бургером. */
.lp-nav-utility--theme { margin-left: auto; margin-right: -16px; padding-left: 0; border-left: none; }
@media (min-width: 960px) {
  .lp-nav-utility--theme { margin-left: 0; margin-right: 0; }
}

/* === Theme toggle (sun/moon) === */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--lp-border);
  border-radius: 50%;
  color: var(--lp-text-dim);
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: #FF6B5A;
  color: var(--lp-text);
}
.theme-toggle .theme-toggle-sun { display: none; }
.theme-toggle .theme-toggle-moon { display: block; }
html.light .theme-toggle .theme-toggle-sun { display: block; }
html.light .theme-toggle .theme-toggle-moon { display: none; }

@media (max-width: 768px) {
  .lang-toggle { padding: 5px 8px; font-size: 12px; }
  .lang-menu { min-width: 180px; max-height: 300px; }
}

/* === Бейджи сторов (08.10.2026, замечание Д. Жукова) ===
   Вид официальных бейджей App Store / Google Play: чёрная плашка, тонкая
   серая рамка, логотип и две строки. Чёрные в обеих темах — так их
   узнают. Радиус чуть мягче официального, под карточки сайта.
   Разметка: src/shared/store-badges.ts (SSR). */
.mp-store-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.mp-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  min-width: 150px;
  padding: 0 14px 0 12px;
  box-sizing: border-box;
  background: #000;
  color: #fff;
  border: 1px solid #A6A6A6;
  border-radius: 10px;
  text-decoration: none;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  text-align: start;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.mp-store-badge:hover {
  border-color: #fff;
  transform: translateY(-1px);
}

.mp-store-badge:focus-visible {
  outline: 2px solid #FF6B5A;
  outline-offset: 2px;
}

.mp-store-badge__logo {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.mp-store-badge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  white-space: nowrap;
}

.mp-store-badge__small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #fff;
}

.mp-store-badge__name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
}

.mp-store-badge--compact {
  height: 38px;
  min-width: 0;
  padding: 0 10px 0 8px;
  gap: 6px;
  border-radius: 8px;
}

.mp-store-badge--compact .mp-store-badge__logo {
  width: 18px;
  height: 18px;
}

.mp-store-badge--compact .mp-store-badge__small {
  font-size: 8.5px;
}

.mp-store-badge--compact .mp-store-badge__name {
  font-size: 14px;
}

/* Сетка из двух колонок (App Store, Google Play, RuStore). Ячейки равной ширины,
   бейдж растягивается на ячейку; шрифт чуть меньше, чтобы «Google Play»
   помещались в 360 px. */
.mp-store-badges--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 8px;
  width: 100%;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}

.mp-store-badges--grid .mp-store-badge {
  width: 100%;
  min-width: 0;
  padding: 0 10px;
  gap: 7px;
  justify-content: center;
}

.mp-store-badges--grid .mp-store-badge__logo {
  width: 22px;
  height: 22px;
}

.mp-store-badges--grid .mp-store-badge__name {
  font-size: 16px;
}

.mp-store-badges--grid .mp-store-badge--compact {
  padding: 0 8px;
  gap: 6px;
}

.mp-store-badges--grid .mp-store-badge--compact .mp-store-badge__logo {
  width: 18px;
  height: 18px;
}

.mp-store-badges--grid .mp-store-badge--compact .mp-store-badge__name {
  font-size: 14px;
}

/* Три бейджа в двух колонках: третий — по центру второй строки. */
.mp-store-badges--grid > .mp-store-badge:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 4px);
}

/* Стор, где приложения ещё нет (решение владельца 08.10.2026): бейдж
   виден, но приглушён, не ссылка и без hover; в углу плашка «Скоро»
   (единая подпись, 12.11.2026).
   Разметка — <span class="mp-store-badge mp-store-badge--soon">, без
   data-store-badge, поэтому аналитика кликов по нему не шлёт событий.
   Когда в download-links.ts появится ссылка, бейдж станет обычным. */
.mp-store-badge--soon {
  position: relative;
  cursor: default;
  border-color: #3A3A3A;
  -webkit-user-select: none;
  user-select: none;
}

.mp-store-badge--soon:hover {
  border-color: #3A3A3A;
  transform: none;
}

.mp-store-badge--soon .mp-store-badge__logo,
.mp-store-badge--soon .mp-store-badge__text {
  opacity: 0.45;
}

.mp-store-badge__soon {
  position: absolute;
  top: -11px;
  right: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #FF6B5A;
  color: #fff;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 15px;
  letter-spacing: 0.02em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--lp-bg, #0D1117);
}

[dir="rtl"] .mp-store-badge__soon {
  right: auto;
  left: 6px;
}

@media (prefers-reduced-motion: reduce) {
  .mp-store-badge { transition: none; }
  .mp-store-badge:hover { transform: none; }
}

/* Главная: строка «Приложение для тренеров» под карточкой пути.
   Только на телефоне — на компьютере ставить приложение некуда. */
.lp-path-cell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.lp-path-cell > .lp-path {
  flex: 1;
}

.lp-path-apps {
  display: none;
}

@media (max-width: 767px) {
  .lp-path-apps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }
}

.lp-path-apps-label {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-text-dim);
}

.lp-path-apps .mp-store-badges:not(.mp-store-badges--grid) {
  gap: 6px;
}

/* Плашке «Скоро» нужен запас сверху над первой строкой сетки. */
.lp-path-apps .mp-store-badges--grid {
  margin-top: 4px;
}

/* Стор устройства первым: на Android Google Play раньше App Store.
   data-device ставят главная и /for-clients до отрисовки бейджей. */
html[data-device="android"] .mp-devfirst [data-store="google_play"] {
  order: -1;
}

/* ================================================
   ФИНАЛЬНЫЙ БЛОК ЛЕНДИНГОВ (src/shared/final-cta.ts)
   Волна 20 №8–9: один вид на всех страницах — по образцу карточки
   первого экрана (QR + сетка сторов), без кнопок, дублирующих шапку.
   Тренерский — светлая карточка, клиентский — тёмная (решение владельца
   08.10.2026: роли различаются цветом, фон страницы тёмный).
   ================================================ */
.mp-final {
  padding: 56px 20px;
}

.mp-final-card {
  display: flex;
  align-items: center;
  gap: 32px;
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 36px;
  border-radius: 20px;
  text-align: start;
  font-family:
    "Inter",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
}

.mp-final-qr {
  display: block;
  flex-shrink: 0;
  width: 152px;
  height: 152px;
  padding: 6px;
  background: #ffffff;
  border-radius: 12px;
}

.mp-final-qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mp-final-body {
  flex: 1;
  min-width: 0;
}

.mp-final-title {
  font-size: var(--mp-h2-size);
  font-weight: 700;
  line-height: var(--mp-h2-lh);
  letter-spacing: var(--mp-h2-ls);
  margin: 0 0 8px;
}

.mp-final-sub {
  font-size: var(--mp-sub-size);
  line-height: var(--mp-sub-lh);
  margin: 0 0 18px;
  max-width: 520px;
}

.mp-final-app {
  font-size: 14px;
  line-height: 1.4;
  margin: 0 0 16px;
}

.mp-final-hint {
  font-weight: 400;
}

.mp-final .mp-store-badges--grid {
  width: 340px;
  max-width: 100%;
  margin: 0;
}

/* Кнопка только там, где шапка свёрнута в бургер (< 960 px). */
.mp-final-btn {
  display: none;
}

/* Тренер: белая карточка при любой теме. */
.mp-final--coach .mp-final-card {
  background: #ffffff;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

html.light .mp-final--coach .mp-final-card {
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.1);
}

.mp-final--coach .mp-final-title {
  color: #0f172a;
}
.mp-final--coach .mp-final-sub {
  color: #475569;
}
.mp-final--coach .mp-final-app {
  color: #0f172a;
}
.mp-final--coach .mp-final-hint {
  color: #64748b;
}
.mp-final--coach .mp-final-qr {
  border: 1px solid #e2e8f0;
}
.mp-final--coach .mp-store-badge__soon {
  box-shadow: 0 0 0 2px #ffffff;
}

/* Клиент: тёмная карточка с акцентной рамкой — как блок «Ищете тренера?». */
.mp-final--client .mp-final-card {
  background:
    radial-gradient(
      ellipse at 0% 0%,
      rgba(255, 107, 90, 0.18),
      transparent 60%
    ),
    linear-gradient(135deg, #1a2b4a 0%, #05070b 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 107, 90, 0.55);
  box-shadow:
    0 0 0 4px rgba(255, 107, 90, 0.08),
    0 18px 48px rgba(0, 0, 0, 0.45);
}

.mp-final--client .mp-final-title {
  color: #ffffff;
}
.mp-final--client .mp-final-sub {
  color: #e6edf3;
}
.mp-final--client .mp-final-app {
  color: #ffffff;
}
.mp-final--client .mp-final-hint {
  color: #c9d1d9;
}
.mp-final--client .mp-store-badge__soon {
  box-shadow: 0 0 0 2px #10192a;
}

@media (max-width: 959px) {
  .mp-final-btn {
    display: flex;
    width: 100%;
    max-width: 340px;
    margin-top: 20px;
  }
}

/* Телефон: QR не нужен (камеру на свой же экран не наведёшь), всё по центру. */
@media (max-width: 767px) {
  .mp-final {
    padding: 36px 16px;
  }

  .mp-final-card {
    flex-direction: column;
    gap: 0;
    padding: 24px 16px;
    border-radius: 16px;
    text-align: center;
  }

  .mp-final-qr,
  .mp-final-hint {
    display: none;
  }

  .mp-final-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .mp-final .mp-store-badges--grid {
    width: 100%;
    margin: 0 auto;
  }

  .mp-final-btn {
    margin-left: auto;
    margin-right: auto;
  }
}

/* ================================================
   Промо партнёрской программы (shared/partner-promo-block.ts):
   компактная плашка, цифра-якорь, одна кнопка. Контраст текста и кнопки
   не ниже 4,5:1 в обеих темах (кнопка в тёмной теме — тёмный текст на коралловом).
   ================================================ */
.mp-pp-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 20px;
}

.mp-pp {
  --mp-pp-bg: linear-gradient(135deg, rgba(255, 107, 90, 0.18), rgba(255, 107, 90, 0.06));
  --mp-pp-border: rgba(255, 107, 90, 0.4);
  --mp-pp-text: #F0F6FC;
  --mp-pp-dim: rgba(240, 246, 252, 0.84);
  --mp-pp-num: #FF8474;
  --mp-pp-btn-bg: #FF6B5A;
  --mp-pp-btn-text: #0D1117;
  --mp-pp-btn-hover: #FF8474;
  background: var(--mp-pp-bg);
  border: 1px solid var(--mp-pp-border);
  border-radius: 16px;
  color: var(--mp-pp-text);
}

html.light .mp-pp {
  --mp-pp-bg: linear-gradient(135deg, #FDECE8, #FFF6F4);
  --mp-pp-border: #F1B8AE;
  --mp-pp-text: #0F172A;
  --mp-pp-dim: rgba(15, 23, 42, 0.8);
  --mp-pp-num: #B8341F;
  --mp-pp-btn-bg: #B8341F;
  --mp-pp-btn-text: #FFFFFF;
  --mp-pp-btn-hover: #9E2B19;
}

.mp-pp__inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
}

.mp-pp__num {
  margin: 0;
  font-size: 36px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--mp-pp-num);
}

.mp-pp__title {
  margin: 0;
  font-family: inherit;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--mp-pp-text);
  text-wrap: balance;
}

.mp-pp__sub {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 1.4;
  color: var(--mp-pp-dim);
}

.mp-pp__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 12px;
  background: var(--mp-pp-btn-bg);
  color: var(--mp-pp-btn-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s ease;
}

.mp-pp__btn:hover {
  background: var(--mp-pp-btn-hover);
}

.mp-pp__btn:focus-visible {
  outline: 2px solid var(--mp-pp-text);
  outline-offset: 2px;
}

.mp-pp__note {
  margin: 0;
  padding: 0 16px 12px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--mp-pp-dim);
}

@media (min-width: 768px) {
  .mp-pp-wrap {
    padding: 8px 40px;
  }

  .mp-pp__inner {
    flex-direction: row;
    align-items: center;
    gap: 28px;
    padding: 22px 32px;
  }

  .mp-pp__num {
    min-width: 128px;
    font-size: 56px;
  }

  .mp-pp__num--max {
    min-width: 200px;
    font-size: 48px;
    white-space: nowrap;
  }

  .mp-pp__text {
    flex: 1;
  }

  .mp-pp__title {
    font-size: 22px;
  }

  .mp-pp__sub {
    font-size: 15px;
  }

  .mp-pp__btn {
    flex-shrink: 0;
  }

  .mp-pp__note {
    padding: 0 32px 16px;
  }
}

/* ================================================
   Партнёрам: кнопка в шапке и компактная плашка под первым экраном (12.11.2026)
   ================================================ */
.mp-pp-nav {
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  min-height: 36px;
  padding: 0 14px;
  border: 1.5px solid #FF6B5A;
  border-radius: 999px;
  background: transparent;
  color: #FF8474 !important;
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s ease, color 0.15s ease;
}
.mp-pp-nav:hover { background: rgba(255, 107, 90, 0.14); }
.mp-pp-nav:focus-visible { outline: 2px solid #FF8474; outline-offset: 2px; }
html.light .mp-pp-nav { border-color: #B8341F; color: #B8341F !important; }
html.light .mp-pp-nav:hover { background: #FDECE8; }
.mp-pp-nav--desktop { display: none; }
@media (min-width: 960px) {
  .mp-pp-nav--desktop { display: inline-flex; }
}
.lp-mobile-menu a.mp-pp-nav--mobile {
  justify-content: center;
  min-height: 48px;
  margin-bottom: 8px;
  padding: 0 18px;
  border: 1.5px solid #FF6B5A;
  font-size: 16px;
  color: #FF8474;
}
html.light .lp-mobile-menu a.mp-pp-nav--mobile { border-color: #B8341F; color: #B8341F; }

/* Плашка сразу после первого экрана: ниже по высоте и тише основного CTA */
.mp-pp-wrap--top { padding-top: 12px; padding-bottom: 4px; }
.mp-pp-wrap--top .mp-pp__inner { gap: 6px 14px; padding: 12px 14px; }
.mp-pp-wrap--top .mp-pp__num { font-size: 26px; }
.mp-pp-wrap--top .mp-pp__title { font-size: 16px; }
.mp-pp-wrap--top .mp-pp__sub { margin-top: 2px; font-size: 13px; }
.mp-pp-wrap--top .mp-pp__btn { min-height: 40px; font-size: 15px; }
@media (min-width: 768px) {
  .mp-pp-wrap--top { padding-top: 14px; }
  .mp-pp-wrap--top .mp-pp__inner { gap: 24px; padding: 12px 24px; }
  .mp-pp-wrap--top .mp-pp__num { min-width: 0; font-size: 34px; }
  .mp-pp-wrap--top .mp-pp__num--max { min-width: 0; font-size: 34px; }
  .mp-pp-wrap--top .mp-pp__title { font-size: 17px; }
  .mp-pp-wrap--top .mp-pp__sub { font-size: 14px; }
}
