/* index2 — Ecosystem First: продукт, схема, технологичность */
:root {
  --bg: #f5f4ff;
  --surface: #ffffff;
  --text: #13102a;
  --muted: #5c5678;
  --line: #e0dcf5;
  --accent: #4338ca;
  --accent-2: #6366f1;
  --glow: rgba(99, 102, 241, 0.12);
  --radius: 16px;
  --font: "Inter", system-ui, sans-serif;
  /* Тема (08.10): все цветовые акценты — через переменные; переопределяются в [data-theme] ниже */
  --accent-ink: #ffffff;           /* текст на сплошном --accent (бейджи, номера шагов) */
  --btn-1: #4338ca;                /* основная кнопка: градиент и текст */
  --btn-2: #312e81;
  --btn-ink: #ffffff;
  --btn-shadow: rgba(67, 56, 202, 0.35);
  --header-bg: rgba(245, 244, 255, 0.9);
  --tint-bg: var(--surface);
  --card-bg: #fafaff;
  --card-shadow: rgba(67, 56, 202, 0.1);
  --card-border-h: rgba(99, 102, 241, 0.35);
  --soft-1: #f3f0ff;
  --soft-2: #e8e6ff;
  --soft-3: #ddd6fe;
  --arrow: #c4b5fd;
  --hl: #ecfdf5;                   /* выделенная строка таблицы цен */
  --cta-1: #312e81;                /* CTA-плашка, белый текст */
  --cta-2: #4338ca;
  --footer-1: #1e1b4b;
  --footer-2: #0f0d1f;
  --footer-text: #a5a3c9;
  --footer-link: #e0dffd;
  --footer-head: #f5f3ff;
  --footer-muted: #8f8cb0;
  --video-bg: #0f0d1f;
  --hero-ov: 19, 16, 42;           /* RGB-тройка затемнения hero: rgba(var(--hero-ov), a) */
  --hero-tag: #c7d2fe;
  --hero-check: #a5b4fc;
  --hero-btn-1: #4f46e5;
  --hero-btn-2: #4338ca;
  --hero-btn-ink: #ffffff;
  --hero-btn-shadow: rgba(79, 70, 229, 0.45);
  --logo-from: #13102a;            /* градиент логотипа (как в исходном PNG: слева тёмный, справа светлый) */
  --logo-to: #6366f1;
}

/* ===== Цветовые темы разделов (08.10) =====
   brand (по умолчанию, фиолетовый): главная, О нас, Как это работает, Экосистема
   doctors — зелёный медицинский (бывш. /for-doctors/, теперь — карточки/блоки про Pro), partners — песочный (FitStatus Online, /partners/),
   club — оранжевый (/club/), studio — воздушный розовый (/studio/).
   Ставится на <body data-theme="…"> или на отдельный блок/карточку. Цвета внутри SVG и картинок не трогаем. */
[data-theme="doctors"] {
  --logo-from: #0f2a0b; --logo-to: #347b23;
  --bg: #f3f8f1; --text: #12210e; --muted: #4f6148; --line: #d5e6cf;
  --accent: #2f6f1f; --accent-2: #3a7d28; --glow: rgba(52, 123, 35, 0.12);
  --btn-1: #347b23; --btn-2: #245a17; --btn-ink: #ffffff; --btn-shadow: rgba(52, 123, 35, 0.32);
  --header-bg: rgba(243, 248, 241, 0.92); --card-bg: #f9fcf8;
  --card-shadow: rgba(52, 123, 35, 0.12); --card-border-h: rgba(52, 123, 35, 0.35);
  --soft-1: #eaf4e6; --soft-2: #dcecd5; --soft-3: #c9e2bf; --arrow: #9cc98c; --hl: #eaf4e6;
  --cta-1: #1c4612; --cta-2: #2f6f1f;
  --footer-1: #16341a; --footer-2: #0a1d0f; --footer-text: #a9c4a6; --footer-link: #e3f1df; --footer-head: #f2f9f0; --footer-muted: #86a283;
  --video-bg: #0a1d0f;
  --hero-ov: 10, 30, 14; --hero-tag: #bfe3b3; --hero-check: #9cd68a;
  --hero-btn-1: #347b23; --hero-btn-2: #245a17; --hero-btn-ink: #ffffff; --hero-btn-shadow: rgba(52, 123, 35, 0.45);
}
[data-theme="partners"] {
  --logo-from: #3a250b; --logo-to: #b7791f;
  --bg: #fdf6ec; --text: #2a1d0c; --muted: #6e5a40; --line: #f0dcc0;
  --accent: #8a5a12; --accent-2: #9a5b0b; --glow: rgba(233, 169, 79, 0.16);
  --btn-1: #f3b766; --btn-2: #e39a3b; --btn-ink: #2a1608; --btn-shadow: rgba(217, 143, 43, 0.35);
  --header-bg: rgba(253, 246, 236, 0.92); --tint-bg: #fffbf5; --card-bg: #fffaf3;
  --card-shadow: rgba(160, 98, 26, 0.12); --card-border-h: rgba(217, 143, 43, 0.45);
  --soft-1: #fdeedd; --soft-2: #fde1b9; --soft-3: #f6cf94; --arrow: #e9b46a; --hl: #fdeedd;
  --cta-1: #4e300a; --cta-2: #7d5011;
  --footer-1: #3a250b; --footer-2: #1e1305; --footer-text: #d2bfa3; --footer-link: #fbe8cc; --footer-head: #fff6e8; --footer-muted: #a8957a;
  --video-bg: #1e1305;
  --hero-ov: 40, 26, 8; --hero-tag: #fde1b9; --hero-check: #f6c27a;
  --hero-btn-1: #f3b766; --hero-btn-2: #e39a3b; --hero-btn-ink: #2a1608; --hero-btn-shadow: rgba(217, 143, 43, 0.45);
}
[data-theme="club"] {
  --logo-from: #2a1405; --logo-to: #d2550b;
  --bg: #fff8ef; --text: #1f1408; --muted: #6b5640; --line: #f3dcb8;
  --accent: #b4470a; --accent-2: #c2410c; --glow: rgba(242, 157, 43, 0.14);
  --btn-1: #f6a43a; --btn-2: #ec8a1c; --btn-ink: #1a140c; --btn-shadow: rgba(236, 138, 28, 0.38);
  --header-bg: rgba(255, 248, 239, 0.92); --card-bg: #fffbf6;
  --card-shadow: rgba(194, 65, 12, 0.12); --card-border-h: rgba(236, 138, 28, 0.45);
  --soft-1: #ffefd9; --soft-2: #ffe2bd; --soft-3: #fdcf95; --arrow: #f7b46a; --hl: #ffefd9;
  --cta-1: #7c2d12; --cta-2: #b4470a;
  --footer-1: #2e1b0a; --footer-2: #160c04; --footer-text: #cdb59a; --footer-link: #ffe8cc; --footer-head: #fff4e6; --footer-muted: #a38c73;
  --video-bg: #160c04;
  --hero-ov: 28, 15, 5; --hero-tag: #fdba74; --hero-check: #fdba74;
  --hero-btn-1: #f6a43a; --hero-btn-2: #ec8a1c; --hero-btn-ink: #1a140c; --hero-btn-shadow: rgba(236, 138, 28, 0.5);
}
[data-theme="studio"] {
  --logo-from: #3b0a24; --logo-to: #db2777;
  --bg: #fff5f8; --text: #2a1020; --muted: #6e4a5c; --line: #f8d7e3;
  --accent: #be185d; --accent-2: #c0266b; --glow: rgba(236, 72, 153, 0.12);
  --btn-1: #db2777; --btn-2: #be185d; --btn-ink: #ffffff; --btn-shadow: rgba(219, 39, 119, 0.35);
  --header-bg: rgba(255, 245, 248, 0.92); --card-bg: #fffafc;
  --card-shadow: rgba(190, 24, 93, 0.12); --card-border-h: rgba(236, 72, 153, 0.4);
  --soft-1: #ffeaf2; --soft-2: #fcdbe8; --soft-3: #f9c4d9; --arrow: #f4a3c4; --hl: #ffeaf2;
  --cta-1: #831843; --cta-2: #be185d;
  --footer-1: #4a1530; --footer-2: #2a0b1b; --footer-text: #e0b7ca; --footer-link: #ffe4ef; --footer-head: #fff3f8; --footer-muted: #b98ea2;
  --video-bg: #2a0b1b;
  --hero-ov: 52, 14, 36; --hero-tag: #fbcfe8; --hero-check: #f9a8d4;
  --hero-btn-1: #db2777; --hero-btn-2: #be185d; --hero-btn-ink: #ffffff; --hero-btn-shadow: rgba(219, 39, 119, 0.5);
}
/* Кнопка «Пройти онлайн-тест» — фирменный светло-зелёный online.fitstatus.ru на всех страницах */
/* 08.10, 17:17: цвет как у кнопок online.fitstatus.ru («пройти чек-ап бесплатно»): фон #8BDC18, у них белый текст (1,7:1),
   у нас — их тёмный текст #1D1D1B (9,9:1, WCAG AA). Рамки у них нет — рамка в цвет фона, чтобы высота совпадала с «Вход в облако». */
.btn.btn--online {
  background: #8bdc18;
  color: #1d1d1b;
  border: 1px solid #8bdc18;
  border-radius: 999px;            /* у них «таблетка»: шапка 32 px / радиус 16 px; большая кнопка 74 px / ~32 px */
}
.btn.btn--online:hover {
  background: #7fcc12;
  border-color: #7fcc12;
  color: #1d1d1b;
  text-decoration: none;
}
.page-hero__jump {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: var(--accent-ink);
  z-index: 100;
}
.skip:focus {
  left: 0;
}

.wrap {
  width: min(1160px, 100% - 2rem);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
  text-decoration: none;
}
.logo__img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: min(13rem, 42vw);
}
.logo:hover .logo__img {
  opacity: 0.88;
}
/* 08.10: логотип в цвете темы. Форма — из исходного PNG (маска по альфа-каналу), цвет — градиент из --logo-from/--logo-to.
   Картинка остаётся в разметке (alt, размеры), но прозрачная; без поддержки mask показывается исходный PNG. */
@supports ((-webkit-mask-image: none) or (mask-image: none)) {
  .logo:has(.logo__img) { position: relative; }
  .logo:has(.logo__img)::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--logo-from) 0%, var(--logo-to) 100%);
    -webkit-mask: url("/img/fitstatus-logo-lp.png") center / contain no-repeat;
    mask: url("/img/fitstatus-logo-lp.png") center / contain no-repeat;
    pointer-events: none;
  }
  .logo:has(.logo__img) .logo__img { opacity: 0; }
  .logo:has(.logo__img):hover::before { opacity: 0.88; }
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.86rem;
}
.nav a {
  color: var(--muted);
  font-weight: 500;
}
.nav a:hover {
  color: var(--accent);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.15rem;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.btn--primary {
  background: linear-gradient(135deg, var(--btn-1) 0%, var(--btn-2) 100%);
  color: var(--btn-ink);
  box-shadow: 0 4px 16px var(--btn-shadow);
}
.btn--primary:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--btn-shadow);
}
.btn--ghost {
  background: var(--surface);
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.btn--ghost:hover {
  border-color: var(--accent-2);
  text-decoration: none;
}

.eco-hero {
  display: grid;
  gap: 2rem;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem;
  align-items: start;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .eco-hero {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 2.5rem 3rem;
  }
}
.eco-hero__text h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.eco-hero__text .tagline {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0 0 0.5rem;
}
.eco-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.5rem;
  max-width: 36ch;
}
.eco-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  margin-bottom: 0.75rem;
}
.eco-hero__mini {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  max-width: 34ch;
}

.eco-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding: 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(19, 16, 42, 0.08);
}
@media (min-width: 900px) {
  .eco-grid {
    padding: 1.5rem;
  }
}
.eco-tile {
  position: relative;
  padding: 0.9rem 0.85rem;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--glow), transparent 60%);
  border: 1px solid var(--line);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: default;
  animation: floatIn 0.6s ease both;
}
.eco-tile:nth-child(1) {
  animation-delay: 0.05s;
}
.eco-tile:nth-child(2) {
  animation-delay: 0.1s;
}
.eco-tile:nth-child(3) {
  animation-delay: 0.15s;
}
.eco-tile:nth-child(4) {
  animation-delay: 0.2s;
}
@media (hover: hover) and (min-width: 700px) {
  .eco-tile:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px var(--card-shadow);
  }
}
.eco-tile h3 {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.8rem;
  line-height: 1.2;
  font-weight: 700;
}
.eco-tile p {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.4;
}
.eco-tile svg {
  width: 32px;
  height: 32px;
  color: var(--accent-2);
}

.eco-legend {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0.5rem 0 0;
  font-weight: 600;
  grid-column: 1 / -1;
}
@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

section {
  padding: 2.75rem 0 3.5rem;
  scroll-margin-top: 4rem;
}
section.tint {
  background: var(--tint-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset;
}
.section__title {
  font-size: 1.45rem;
  font-weight: 800;
  text-align: center;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.section__subtitle {
  text-align: center;
  color: var(--muted);
  max-width: 38rem;
  margin: 0 auto 2.25rem;
  font-size: 0.95rem;
  line-height: 1.55;
}

.grid-4 {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1.35rem;
  box-shadow: 0 2px 12px rgba(19, 16, 42, 0.04);
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.tint .card {
  background: #fff;
}
.card:hover {
  box-shadow: 0 8px 28px var(--card-shadow);
  border-color: var(--card-border-h);
  transform: translateY(-2px);
}
.card__icon {
  width: 40px;
  height: 40px;
  margin-bottom: 0.65rem;
  color: var(--accent-2);
}
.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}
.card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.flow {
  display: grid;
  gap: 0.9rem;
  counter-reset: step;
  grid-template-columns: 1fr;
}
@media (min-width: 850px) {
  .flow {
    grid-template-columns: repeat(4, 1fr);
  }
}
.flow__item {
  text-align: center;
  padding: 1.1rem 0.65rem;
  background: linear-gradient(180deg, #fff 0%, var(--soft-1) 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.flow__item::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 1px;
  height: 0;
  display: none;
}
@media (min-width: 850px) {
  .flow__item:not(:last-child)::after {
    content: "→";
    right: -0.4rem;
    top: 45%;
    color: var(--arrow);
    width: 1.5rem;
    text-align: center;
    position: absolute;
  }
}
.flow__item::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 0.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.8rem;
  border-radius: 8px;
}
.flow__item h3 {
  margin: 0 0 0.4rem;
  font-size: 0.9rem;
  line-height: 1.2;
  font-weight: 700;
}
.flow__item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.segments {
  --seg-bg: #fff;
}
.segments .card {
  text-align: left;
  background: var(--seg-bg);
  border-left: 3px solid var(--accent-2);
}
.segments h3 {
  color: var(--text);
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}
.segments p {
  font-size: 0.88rem;
  margin: 0;
}

.products {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .products {
    grid-template-columns: repeat(3, 1fr);
  }
}
.product-card {
  display: block;
  padding: 1.4rem 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.2s;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px var(--card-shadow);
  border-color: var(--card-border-h);
  text-decoration: none;
}
.product-card:hover::before {
  opacity: 1;
}
.product-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}
.product-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.45;
}
.product-card__arrow {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
}

.quote {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto;
  padding: 0 0.5rem;
}
.quote blockquote {
  margin: 0 0 0.9rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--text);
  border: none;
  padding: 0;
  font-style: normal;
  font-weight: 500;
}
.quote figcaption {
  font-size: 0.88rem;
  color: var(--muted);
}
.quote__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 1.4rem;
}
.quote__logos img {
  max-height: 30px;
  width: auto;
  display: block;
  filter: grayscale(0.25) opacity(0.95);
}
.quote__logos .logo-placeholder {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.concept-tag {
  text-align: center;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
}

.site-footer {
  background: linear-gradient(180deg, var(--footer-1) 0%, var(--footer-2) 100%);
  color: var(--footer-text);
  padding: 2.4rem 0 1.75rem;
  margin-top: 0;
  font-size: 0.86rem;
}
.site-footer a {
  color: var(--footer-link);
  font-weight: 500;
}
.site-footer a:hover {
  color: #fff;
}
.site-footer__grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.site-footer__col h4 {
  margin: 0 0 0.45rem;
  color: var(--footer-head);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.site-footer p {
  margin: 0;
  line-height: 1.55;
}
.site-footer__cta {
  margin-top: 1.4rem;
  text-align: center;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.78rem;
  color: var(--footer-muted);
}

.form {
  max-width: 24rem;
  margin: 1rem auto 0;
  text-align: left;
}
.form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--text);
}
.form input,
.form select,
.form textarea {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.55rem 0.65rem;
  font-family: var(--font);
  font-size: 0.88rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.form textarea {
  resize: vertical;
  min-height: 5rem;
}
.form button[type="submit"] {
  width: 100%;
}
.form [data-form-status] {
  min-height: 1.4rem;
  font-size: 0.84rem;
  color: var(--accent);
  margin-top: 0.45rem;
}

body.modal-open {
  overflow: hidden;
}
[data-modal] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(15, 16, 42, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  backdrop-filter: blur(2px);
}
[data-modal].is-open {
  opacity: 1;
  pointer-events: auto;
}
[data-modal-dialog] {
  background: var(--surface);
  width: min(100%, 420px);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  position: relative;
}
[data-modal] h2 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}
[data-modal] .btn-close {
  position: absolute;
  top: 0.6rem;
  right: 0.65rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}
[data-modal] .section__subtitle {
  margin-bottom: 0.8rem;
}

/* ——— Inner pages ——— */
.page-hero {
  padding: clamp(2rem, 5vw, 3.5rem) 0 1.5rem;
}
.page-hero h1 {
  font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
  max-width: 22ch;
}
.page-hero__lead {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0 0 1.25rem;
  max-width: 52ch;
}
.page-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}
.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
}
.breadcrumb a {
  color: var(--muted);
}
.nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 700;
}

.split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
  .split--40-60 {
    grid-template-columns: 0.9fr 1.1fr;
  }
}
.feature-img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: 0 12px 40px rgba(19, 16, 42, 0.1);
  display: block;
}
.feature-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.feature-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: 0.55rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 2px;
  background: var(--accent-2);
}

.data-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 0.35rem;
  padding: 1.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1.5rem;
}
.data-flow__node {
  padding: 0.65rem 0.85rem;
  background: linear-gradient(160deg, var(--glow), #fff);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-align: center;
  min-width: 5.5rem;
}
.data-flow__arrow {
  color: var(--arrow);
  font-weight: 700;
  font-size: 1.1rem;
}

.mode-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 600px) {
  .mode-cards {
    grid-template-columns: 1fr 1fr;
  }
}
.mode-card {
  padding: 1.35rem;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mode-card:hover {
  border-color: var(--accent-2);
  box-shadow: 0 8px 28px var(--card-shadow);
}
.mode-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}
.mode-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--video-bg);
  box-shadow: 0 12px 40px rgba(19, 16, 42, 0.12);
}
.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 700px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}
.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  transition: transform 0.2s;
}
.gallery img:hover {
  transform: scale(1.02);
}

.steps-3 {
  display: grid;
  gap: 1rem;
  counter-reset: s3;
}
@media (min-width: 750px) {
  .steps-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.step-card {
  padding: 1.25rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}
.step-card::before {
  counter-increment: s3;
  content: counter(s3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 8px;
}
.step-card h3 {
  margin: 0 0 0.4rem;
  font-size: 0.95rem;
}
.step-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.reasons {
  display: grid;
  gap: 1rem;
}
@media (min-width: 700px) {
  .reasons {
    grid-template-columns: repeat(2, 1fr);
  }
}
.reason-card {
  display: flex;
  gap: 1rem;
  padding: 1.2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
}
.reason-card__num {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: 8px;
}
.reason-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.reason-card p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.protocol-preview {
  position: relative;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 16px 48px rgba(19, 16, 42, 0.12);
}
.protocol-preview__inner {
  padding: 2rem 1.5rem;
  background: linear-gradient(135deg, var(--soft-2) 0%, var(--bg) 50%, var(--soft-3) 100%);
  min-height: 14rem;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}
.protocol-preview__label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent);
  background: rgba(255, 255, 255, 0.55);
}

.bonus-box {
  padding: 1rem 1.15rem;
  background: linear-gradient(135deg, var(--glow), #fff);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  font-size: 0.92rem;
  margin: 1.5rem 0 0;
}

.quote--left {
  text-align: left;
  max-width: none;
  margin: 0 0 1.5rem;
}
.cases .card {
  height: 100%;
}

.form--wide {
  max-width: 32rem;
  margin: 0;
}
.form-section {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.cta-band {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: linear-gradient(135deg, var(--cta-1) 0%, var(--cta-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  color: #fff;
}
.cta-band p {
  margin: 0 0 1.25rem;
  opacity: 0.9;
  max-width: 36rem;
  margin-inline: auto;
}
.cta-band .btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.cta-band .btn--primary {
  background: #fff;
  color: var(--accent);
  box-shadow: none;
}

.quote__logos img.partner-logo {
  max-height: 40px;
  filter: none;
}

.hero__bullets {
  margin: 0 0 1.25rem;
  padding: 0;
  list-style: none;
}
.hero__bullets li {
  position: relative;
  padding-left: 1.2rem;
  margin-bottom: 0.45rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.hero__bullets li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.site-footer__social {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.site-footer__social a {
  font-size: 0.8rem;
  opacity: 0.85;
}

.policy-text {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 42rem;
  line-height: 1.6;
}
.policy-text h2 {
  font-size: 1.1rem;
  color: var(--text);
  margin: 1.5rem 0 0.5rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .card:hover,
  .product-card:hover,
  .btn--primary:hover,
  .eco-tile {
    animation: none;
    transform: none;
  }
  .gallery img:hover {
    transform: none;
  }
}

/* 08.10: шапка на телефоне — короткие подписи кнопок, чтобы шапка не занимала треть экрана */
.lbl-short { display: none; }
@media (max-width: 599px) {
  .site-header .btn { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
  .site-header .lbl-full { display: none; }
  .site-header .lbl-short { display: inline; }
}
