/* ============================================================
   FitnessKatrin — основной стиль
   Тёмная премиум-тема, акцент: коралл/розовый
   ============================================================ */

:root {
  /* Цвета */
  --bg: #0A0A0C;
  --bg-elev: #131318;
  --bg-elev-2: #1B1B22;
  --bg-glass: rgba(19, 19, 24, 0.72);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #F4EFE7;
  --text-dim: #A09C94;
  --text-mute: #6E6B66;

  --accent: #FF6B7A;          /* основной акцент — коралл */
  --accent-2: #FFB199;        /* светлый коралл */
  --accent-glow: rgba(255, 107, 122, 0.45);
  --gold: #E8C788;             /* для бейджей и цифр */

  --grad-accent: linear-gradient(135deg, #FF6B7A 0%, #FF9E7A 50%, #FFCB8E 100%);
  --grad-dark: linear-gradient(180deg, #0A0A0C 0%, #131318 100%);

  /* Радиусы */
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-xl: 40px;

  /* Тени */
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 10px 40px var(--accent-glow);

  /* Сетка */
  --container: 1200px;
  --gap: clamp(16px, 2.5vw, 28px);
  --section-py: clamp(72px, 10vw, 140px);

  /* Типографика */
  --f-display: 'Onest', 'Unbounded', system-ui, -apple-system, sans-serif;
  --f-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Масштаб заголовков (меняется из админки) */
  --h1-scale: 0.88;
  --h2-scale: 0.88;
  --h3-scale: 0.92;

  /* Текстура фона */
  --texture-opacity: 0.05;
  --texture-spacing: 6px;
  --texture-on: 1;
}

/* Сброс и база */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent); }
input, select, textarea { font: inherit; color: inherit; }
html, body { overflow-x: clip; }

/* Фоновый «шум» и градиентная подсветка */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(255, 107, 122, 0.15), transparent 60%),
    radial-gradient(800px 500px at -10% 30%, rgba(255, 158, 122, 0.10), transparent 60%),
    var(--bg);
  pointer-events: none;
}

/* Текстура «в полоску» — тонкие диагональные линии, только на чёрном фоне.
   Включается из админки: style.texture + style.textureOpacity.
   Лежит слоем ПОД контентом (z-index:-1), поэтому на блоках со своим
   светлым фоном (--bg-elev) текстуры не видно — остаётся контраст. */
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: calc(var(--texture-opacity) * var(--texture-on));
  background-image: repeating-linear-gradient(
    -45deg,
    rgba(255, 255, 255, 0.85) 0,
    rgba(255, 255, 255, 0.85) 1px,
    transparent 1px,
    transparent var(--texture-spacing)
  );
  background-size: calc(var(--texture-spacing) * 2.5) calc(var(--texture-spacing) * 2.5);
}

h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0; word-wrap: break-word; overflow-wrap: anywhere; }
h1 { font-size: calc(clamp(34px, 5.6vw, 76px) * var(--h1-scale)); }
h2 { font-size: calc(clamp(26px, 4vw, 52px) * var(--h2-scale)); }
h3 { font-size: calc(clamp(20px, 2.4vw, 28px) * var(--h3-scale)); }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

/* ===== Утилиты ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-py) 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 107, 122, 0.08);
  margin-bottom: 24px;
}
.section-title { margin-bottom: 18px; }
.section-sub { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--grad-accent);
  color: #0A0A0C;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); color: #0A0A0C; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-arrow { transition: transform 0.2s ease; }
.btn:hover .btn-arrow { transform: translateX(3px); }
.btn-block { width: 100%; justify-content: center; }

/* ===== Header ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 14px 0;
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, padding 0.3s ease;
}
.header.is-scrolled { border-bottom-color: var(--line); padding: 10px 0; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.header__logo { display: flex; align-items: center; }
.header__logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a {
  font-size: 14px;
  color: var(--text-dim);
  position: relative;
  padding: 6px 0;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s ease;
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.header__cta { display: flex; align-items: center; gap: 12px; }

/* Бургер */
.burger {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  align-items: center; justify-content: center;
  position: relative;
  z-index: 101;
}
.burger span {
  position: relative; width: 18px; height: 1.5px; background: var(--text);
  display: block;
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 1.5px; background: var(--text);
  transition: transform 0.25s ease, top 0.25s ease;
}
.burger span::before { top: -6px; }
.burger span::after  { top:  6px; }
.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 90;
  padding: 100px 24px 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu a {
  font-family: var(--f-display);
  font-size: 26px; padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.mobile-menu a.is-active { color: var(--accent); }
.mobile-menu__cta { margin-top: 24px; }

/* ===== Hero ===== */
.hero { padding-top: 140px; padding-bottom: 80px; position: relative; overflow: hidden; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.hero__title { margin: 18px 0 22px; }
.hero__title .accent {
  background: var(--grad-accent);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__sub { color: var(--text-dim); font-size: clamp(16px, 1.6vw, 19px); max-width: 540px; margin-bottom: 36px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__trust {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 44px; padding-top: 32px;
  border-top: 1px solid var(--line);
}
.hero__trust-item { display: flex; align-items: center; gap: 10px; color: var(--text-dim); font-size: 14px; }
.hero__trust-item strong { color: var(--text); font-family: var(--f-display); font-size: 20px; font-weight: 500; }
.hero__trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__visual { position: relative; width: 100%; max-width: 460px; margin: 0 auto; }
.hero__photo {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(10,10,12,0.5) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero__chip {
  position: absolute;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line-strong);
  padding: 14px 18px;
  border-radius: var(--r-md);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  z-index: 2;
}
.hero__chip--1 { top: 28px; left: -28px; }
.hero__chip--2 { bottom: 36px; right: -28px; }
.hero__chip--3 { top: 118px; left: -28px; }
.hero__chip--4 { bottom: 126px; right: -28px; }
.hero__chip-ico {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--grad-accent);
  display: grid; place-items: center; color: #0A0A0C; flex-shrink: 0;
}
.hero__chip-text small { display: block; color: var(--text-dim); font-size: 12px; }
.hero__chip-text strong { display: block; font-weight: 600; }

/* ===== Список преимуществ (6 плиток) ===== */
.benefits { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.benefits__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
}
.benefit {
  background: var(--bg-elev);
  padding: 36px 32px;
  transition: background 0.2s ease;
}
.benefit:hover { background: var(--bg-elev-2); }
.benefit__ico {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(255,107,122,0.12);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.benefit h3 { font-family: var(--f-body); font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.benefit p  { color: var(--text-dim); font-size: 14px; }

/* ===== Обо мне ===== */
.about__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.about__media { position: relative; aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,12,0.6) 100%);
}
.about__body h2 { margin-bottom: 22px; }
.about__text { color: var(--text-dim); font-size: 16px; line-height: 1.75; }
.about__text p + p { margin-top: 14px; }
.about__edu {
  margin-top: 28px; padding: 22px 24px;
  background: var(--bg-elev); border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.about__edu h4 { font-family: var(--f-body); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 12px; font-weight: 600; }
.about__edu ul li { font-size: 14px; color: var(--text-dim); padding: 4px 0 4px 22px; position: relative; }
.about__edu ul li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.about__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.stat {
  padding: 24px 18px; text-align: center;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
}
.stat__num { font-family: var(--f-display); font-size: clamp(28px, 3.6vw, 44px); color: var(--gold); line-height: 1; }
.stat__num sup { color: var(--accent); font-size: 0.6em; }
.stat__lbl { color: var(--text-dim); font-size: 13px; margin-top: 8px; }

/* ===== Услуги ===== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.service {
  padding: 32px 28px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  display: flex; flex-direction: column;
  min-height: 220px;
}
.service:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--bg-elev-2); }
.service__ico {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,107,122,0.18), rgba(255,158,122,0.08));
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.service h3 { font-family: var(--f-body); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.service p  { color: var(--text-dim); font-size: 14.5px; line-height: 1.6; }

/* ===== Этапы ===== */
.steps { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}
.steps__grid::before {
  content: ""; position: absolute;
  top: 30px; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  z-index: 0;
}
.step { position: relative; z-index: 1; }
.step__num {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--f-display);
  font-size: 22px;
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.step__tag { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-family: var(--f-body); font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p  { color: var(--text-dim); font-size: 14px; }

/* ===== Услуги: цена, плашка «Хит», подсветка ===== */
.services__grid { --price-font-size: 24px; }
.service { position: relative; padding-top: 34px; }
.service h3 { margin-bottom: 14px; }
.service__ico { margin-bottom: 14px; }
.service__price {
  font-family: var(--f-display);
  font-size: var(--price-font-size);
  line-height: 1.15;
  color: var(--accent);
  margin-bottom: 12px;
}
.service__price:empty { display: none; }
.service__hit {
  position: absolute; top: -12px; right: 24px;
  background: var(--grad-accent);
  color: #0A0A0C;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  z-index: 1;
}
.service--featured {
  border-color: rgba(255,107,122,0.40);
  background: linear-gradient(180deg, rgba(255,107,122,0.10), transparent), var(--bg-elev);
  box-shadow: 0 0 0 1px rgba(255,107,122,0.18), 0 22px 50px rgba(0,0,0,0.40);
}

/* ===== Гайды (витрина) ===== */
.guides__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.guides__head .section-head { margin-bottom: 0; }
.guides__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
}
.guide {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.guide:hover { transform: translateY(-4px); border-color: var(--accent); }
/* Обложка обрезается сама по ширине карточки: ширина картинки не фиксирована,
   каждая подгоняется под свою колонку. */
.guide__cover {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  overflow: hidden;
}
.guide__cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.4s ease;
}
.guide:hover .guide__cover img { transform: scale(1.03); }

/* Плашки — в теле карточки, чтобы не наезжать на картинку */
.guide__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.guide__pill {
  display: inline-block;
  background: rgba(255,107,122,0.12);
  border: 1px solid rgba(255,107,122,0.32);
  color: var(--accent);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600;
}
.guide__pill--new { background: var(--accent); border-color: var(--accent); color: #14100F; }
.guide__pill--free { background: var(--accent); border-color: var(--accent); color: #14100F; font-weight: 700; }
.guide__body { padding: 28px 26px; display: flex; flex-direction: column; flex: 1; }
.guide__type { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 8px; }
.guide h3 { font-family: var(--f-body); font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.guide p { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; flex: 1; }

/* ===== Отзывы ===== */
.reviews__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  /* Ряд растёт по самому длинному тексту: все карточки в ряду
     вытягиваются до самой высокой (grid сам равняет по строке). */
  grid-auto-rows: minmax(220px, auto);
  align-items: stretch;
}
.review {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  transition: transform 0.3s ease;
  height: 100%;
}
.review:hover { transform: scale(1.02); }
/* Скриншот просто заполняет карточку — её высоту задаёт сосед с текстом */
.review--shot { min-height: 220px; }
.review--shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review--text {
  padding: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
}
.review--text p { color: var(--text); font-size: 15px; line-height: 1.55; }
.review--text cite { color: var(--accent); font-style: normal; font-weight: 600; font-size: 14px; display: block; margin-top: 16px; }
.review--text cite small { color: var(--text-dim); font-weight: 400; display: block; font-size: 12px; margin-top: 2px; }
.review--tall { grid-row: span 2; }

/* ===== FAQ ===== */
/* Заголовок слева — вопросы справа */
.faq__wrap { display: grid; grid-template-columns: minmax(230px, 0.85fr) 1.5fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__side { position: sticky; top: 104px; }
.faq__side .section-title { margin-bottom: 0; }
.faq__sub { margin-top: 16px; color: var(--text-dim); font-size: 15px; line-height: 1.7; max-width: 380px; }
.faq__list { display: flex; flex-direction: column; gap: 12px; }
@media (max-width: 900px) {
  .faq__wrap { grid-template-columns: 1fr; gap: 28px; }
  .faq__side { position: static; }
  .faq__side .section-title { margin-bottom: 10px; }
}
.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq__item.is-open { border-color: var(--accent); }
.faq__q {
  width: 100%;
  text-align: left;
  padding: 22px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}
.faq__q::after {
  content: "";
  width: 14px; height: 14px;
  border-right: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq__item.is-open .faq__q::after { transform: rotate(-135deg); }
.faq__a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--text-dim); font-size: 15px; line-height: 1.7;
  padding: 0 24px;
}
.faq__item.is-open .faq__a { max-height: 900px; padding: 0 24px 22px; }

/* ссылки внутри текстов (вопросы/ответы и т.п.) */
a.link, .faq__a a, .faq__q a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: color .18s ease, opacity .18s ease;
}
a.link:hover, .faq__a a:hover, .faq__q a:hover { opacity: .78; }
a.link { font-weight: 600; white-space: normal; overflow-wrap: anywhere; }

/* ===== Контакты ===== */
.contacts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contacts h2 { margin-bottom: 22px; }
.contacts__text { color: var(--text-dim); font-size: 17px; line-height: 1.7; margin-bottom: 32px; }
.contact-list { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.contact {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 20px;
  background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.contact:hover { border-color: var(--accent); transform: translateX(4px); color: var(--text); }
.contact__ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,107,122,0.12);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact__txt small { display: block; color: var(--text-dim); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 2px; }
.contact__txt strong { display: block; font-size: 15px; font-weight: 600; }
.socials { display: flex; gap: 12px; }
.social {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bg-elev); border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--text-dim);
  transition: all 0.2s ease;
}
.social:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* Форма */
.form {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
}
.form h3 { font-family: var(--f-body); font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.form__sub { color: var(--text-dim); font-size: 14.5px; margin-bottom: 26px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.field { display: block; position: relative; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  padding: 16px 18px;
  color: var(--text);
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 15px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-mute); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23A09C94' d='M6 8L0 0h12z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; padding-right: 42px; }
.field select option { background: var(--bg); }
.form__hint { color: var(--text-mute); font-size: 12.5px; margin-top: 12px; line-height: 1.5; }

/* ===== Footer ===== */
.footer { padding: 60px 0 32px; border-top: 1px solid var(--line); background: var(--bg-elev); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer h4 { font-family: var(--f-body); font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mute); margin-bottom: 16px; font-weight: 600; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { color: var(--text-dim); font-size: 14px; }
.footer ul a:hover { color: var(--text); }
.footer__note { color: var(--text-dim); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer__socials { margin-top: 24px; }
.footer__socials-label {
  display: block; font-family: var(--f-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 14px;
}
.footer__bottom { padding-top: 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-mute); font-size: 13px; }
.footer__build { color: var(--text-mute); opacity: .55; font-size: 12px; letter-spacing: .04em; }

/* ===== Анимации ===== */
/* Контент виден по умолчанию (для SEO, no-JS, скриншотеров).
   Когда JS загружается, он добавляет .js-reveal — после этого элементы
   прячутся и анимируются появлением через IntersectionObserver. */
.js-reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js-reveal.is-in { opacity: 1; transform: none; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,122,0.4); }
  50%      { box-shadow: 0 0 0 16px rgba(255,107,122,0); }
}

/* Skip link */
.skip {
  position: absolute; top: -100px; left: 0;
  background: var(--accent); color: #0A0A0C;
  padding: 12px 20px; z-index: 200; font-weight: 600;
}
.skip:focus { top: 0; }

/* ===== Адаптив ===== */
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 460px; margin: 0 auto; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 460px; margin: 0 auto; }
  .benefits__grid { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .steps__grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .steps__grid::before { display: none; }
  .guides__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .header__cta { gap: 8px; }
  .header__cta .btn { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 120px; }
  .hero__title { font-size: clamp(28px, 8.6vw, 44px); line-height: 1.08; }
  .hero__chip--1 { left: 12px; top: 16px; }
  .hero__chip--2 { right: 12px; bottom: 16px; }
  .benefits__grid { grid-template-columns: 1fr; }
  .services__grid { grid-template-columns: 1fr; }
  .steps__grid { grid-template-columns: 1fr; }
  .guides__grid { grid-template-columns: 1fr; }
  .reviews__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(180px, auto); }
  .form__row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .form { padding: 24px; }
  .container { padding: 0 18px; }
  .price, .guide, .service, .benefit { padding: 24px 22px; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { justify-content: center; }
  .stat { padding: 18px 12px; }
  .stat__num { font-size: clamp(24px, 7vw, 36px); }
}
@media (max-width: 480px) {
  .reviews__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__trust { gap: 18px; }
}

/* ===== Плашка «Бесплатно» на гайде ===== */

/* ===== Мобильная липкая кнопка (конверсия) ===== */
.sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(16,16,18,0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 40px rgba(0,0,0,0.55);
  transform: translateY(140%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  opacity: 0;
  pointer-events: none;
}
.sticky-cta.is-visible {
  transform: none;
  opacity: 1;
  pointer-events: auto;
}
.sticky-cta__btn {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 14px; font-weight: 600;
  white-space: nowrap;
}
.sticky-cta__btn--primary { background: var(--accent); color: #14100F; }
.sticky-cta__btn--tg {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 14px 16px;
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  body { padding-bottom: 84px; }
}

/* ===== QR-блок: на всю ширину под контактами, перед подвалом ===== */
.qrs-block {
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.qrs__head { margin-bottom: 18px; text-align: center; }
.qrs__title {
  font-family: var(--f-body);
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-mute); margin-bottom: 8px;
}
.qrs__sub { color: var(--text-dim); font-size: 14px; line-height: 1.6; }

.qrs { display: grid; gap: 14px; }
.qrs--column, .qrs--row { grid-template-columns: 1fr; }          /* один под другим */
.qrs--side   { grid-template-columns: repeat(2, minmax(0, 1fr)); } /* вместе слева/справа */
.qrs--grid4  { grid-template-columns: repeat(4, minmax(0, 1fr)); } /* 4 в одну линию */
.qrs--grid3  { grid-template-columns: repeat(3, minmax(0, 1fr)); } /* 3 в одну линию */
/* В одну линию карточки компактнее: код сверху, подпись снизу */
.qrs--grid4 .qr, .qrs--grid3 .qr { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
.qrs--grid4 .qr__img, .qrs--grid3 .qr__img { width: 100%; max-width: 148px; height: auto; aspect-ratio: 1 / 1; }
.qrs--grid4 .qr__label, .qrs--grid3 .qr__label { justify-content: center; }
.qrs--grid4 .qr__txt strong, .qrs--grid3 .qr__txt strong { font-size: 14px; }
.qrs--grid4 .qr__txt small, .qrs--grid3 .qr__txt small { font-size: 12px; }
@media (max-width: 1100px) {
  .qrs--grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .qrs--grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Тёмный QR: белые модули на прозрачном фоне — подложка остаётся тёмной.
   Светлый QR: обычный чёрно-белый код, поэтому под ним белая подложка. */
.qrs--light .qr__img { background: #fff; }

.qr {
  display: flex; align-items: center; gap: 16px; min-width: 0;
  padding: 16px;
  background: linear-gradient(160deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.qr:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,107,122,0.22);
}
.qr__img {
  position: relative; flex: 0 0 auto;
  width: 88px; height: 88px; border-radius: 14px;
  background: rgba(255,255,255,0.05);
  display: grid; place-items: center; overflow: hidden;
}
.qr__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.qr__txt { min-width: 0; line-height: 1.35; }
.qr__label {
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--text-mute); margin-bottom: 4px;
}
.qr__label svg { color: var(--accent); flex: 0 0 auto; }
.qr__txt strong { display: block; font-size: 15px; font-weight: 600; color: var(--text); }
.qr__txt small { display: block; font-size: 13px; color: var(--text-dim); margin-top: 3px; }
@media (max-width: 640px) {
  .qrs--side { grid-template-columns: 1fr; }
  .qrs--grid4, .qrs--grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qr { padding: 13px; gap: 13px; }
  .qrs--side .qr__img, .qrs--column .qr__img, .qrs--row .qr__img { width: 74px; height: 74px; }
}

/* ===== Выделенная (фирменная) карточка гайда ===== */
.guide--feat {
  border-color: rgba(255,107,122,0.35);
  box-shadow: 0 0 0 1px rgba(255,107,122,0.18), 0 22px 50px rgba(0,0,0,0.4);
  position: relative;
}

/* ============================================================
   ИКОНКИ: любой PNG (белый контур на прозрачном фоне)
   автоматически окрашивается в цвет сайта и подгоняется
   под размер. Задаётся через --icon / --icon-size / --icon-color.
   ============================================================ */
.icon {
  display: inline-block;
  width: var(--icon-size, 22px);
  height: var(--icon-size, 22px);
  flex-shrink: 0;
  background-color: var(--icon-color, var(--accent));
  -webkit-mask-image: var(--icon);
          mask-image: var(--icon);
  -webkit-mask-size: var(--icon-fit, contain);
          mask-size: var(--icon-fit, contain);
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
}

/* ===== Логотип: высота задаётся из content.js ===== */
.header__logo img { height: var(--logo-h, 32px); width: auto; }

/* ===== Фото на первом экране: масштаб и позиция кропа ===== */
.hero__photo img {
  transform: scale(var(--hero-scale, 1));
  object-position: var(--hero-pos-x, 50%) var(--hero-pos-y, 30%);
  transform-origin: center center;
}

/* ===== «Образование» — ярче ===== */
.about__edu--strong {
  border-color: rgba(255,107,122,0.35);
  background: linear-gradient(135deg, rgba(255,107,122,0.10), rgba(255,158,122,0.04)), var(--bg-elev);
  box-shadow: 0 0 0 1px rgba(255,107,122,0.10);
}
.about__edu--strong h4 { color: var(--accent); font-size: 14px; letter-spacing: 0.2em; }

/* ===== Результаты (до / после) ===== */
.results__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.result {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.result:hover { transform: translateY(-4px); border-color: var(--accent); }
.result__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.result__pair figure { margin: 0; position: relative; background: var(--bg); }
.result__pair img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.result__pair figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: var(--bg-glass);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line-strong);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.result__single img { width: 100%; aspect-ratio: 4/5; object-fit: cover; display: block; }
.result__body { padding: 22px 24px; }
.result__body h3 { font-family: var(--f-body); font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.result__metrics { display: flex; gap: 20px; flex-wrap: wrap; }
.result__metric strong { display: block; font-family: var(--f-display); font-size: 22px; color: var(--gold); line-height: 1; }
.result__metric span { font-size: 12px; color: var(--text-dim); }

/* ===== Видео ===== */
.videos__filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.chip {
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--text-dim);
  font-size: 14px; font-weight: 600;
  transition: all 0.2s ease;
}
.chip:hover { border-color: var(--accent); color: var(--text); }
.chip.is-active { background: var(--accent); border-color: var(--accent); color: #0A0A0C; }

.videos__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.vcard {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.vcard:hover { transform: translateY(-4px); border-color: var(--accent); }
.vcard.is-hidden { display: none; }
.vcard__frame {
  position: relative;
  aspect-ratio: 9/16;
  background: linear-gradient(160deg, var(--bg-elev-2), #101014);
  display: grid; place-items: center;
}
.vcard__play {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad-accent);
  color: #0A0A0C;
  display: grid; place-items: center;
  box-shadow: var(--shadow-glow);
  transition: transform 0.2s ease;
}
.vcard__play:hover { transform: scale(1.08); }
.vcard__iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vcard__meta { padding: 16px 18px; }
.vcard__tag {
  display: inline-block;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.vcard__meta h3 { font-family: var(--f-body); font-size: 15px; font-weight: 600; line-height: 1.35; }

/* ===== Виджет ВКонтакте вместо формы ===== */
.vk {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  display: flex; flex-direction: column; gap: 16px;
  min-height: 320px;
}
.vk__head {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-dim);
}
.vk__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(255,107,122,0.18); }
.vk-frame { width: 100%; border: 0; border-radius: var(--r-md); display: block; flex: 1; min-height: 420px; }
/* Официальный виджет VK Open API кладёт свой iframe сюда */
.vk-box { flex: 1; min-height: 320px; display: flex; }
.vk-box iframe { width: 100% !important; max-width: 100%; border: 0; border-radius: var(--r-md); flex: 1; display: block; }
.vk-fallback {
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  padding: 28px;
  background: linear-gradient(135deg, var(--bg-elev-2), var(--bg-elev));
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.vk-fallback__ico { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,107,122,0.12); color: var(--accent); display: grid; place-items: center; }
.vk-fallback__txt strong { display: block; font-size: 17px; margin-bottom: 4px; }
.vk-fallback__txt span { color: var(--text-dim); font-size: 14px; }

/* ===== Адаптив для новых блоков ===== */
@media (max-width: 1024px) {
  .results__grid { grid-template-columns: repeat(2, 1fr); }
  .videos__grid  { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .results__grid { grid-template-columns: 1fr; }
  .videos__grid  { grid-template-columns: repeat(2, 1fr); }
  .vk { padding: 16px; }
}
@media (max-width: 480px) {
  .videos__grid { grid-template-columns: 1fr; }
}

/* ================================================================
   Иконки из пакета (штриховые, цвет = акцент сайта)
   ================================================================ */
.icon-svg { display: inline-flex; align-items: center; justify-content: center; color: var(--accent); flex: none; }
.icon-svg svg { display: block; width: 100%; height: 100%; }
.benefit__ico .icon-svg,
.service__ico .icon-svg { width: 26px; height: 26px; }
.contact__ico .icon-svg,
.social .icon-svg { width: 22px; height: 22px; }

/* ===== Кнопка «Подписаться» под виджетом ВКонтакте ===== */
.vk__subscribe { justify-content: center; margin-top: 2px; }

/* ================================================================
   Лайтбокс: клик по скриншоту отзыва / фото «до-после»
   ================================================================ */
body.is-locked { overflow: hidden; }

.review--shot,
.result__zoomable { cursor: zoom-in; }

.review__zoom {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(10, 10, 12, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(6px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.review--shot:hover .review__zoom,
.review--shot:focus-visible .review__zoom { opacity: 1; transform: translateY(0); }

.result__zoomable { position: relative; }
.result__pair figure { overflow: hidden; }

.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  opacity: 0; transition: opacity .2s ease;
}
/* ВАЖНО: [hidden] { display:none } перебивается display:grid выше по специфичности,
   поэтому закрытый лайтбокс оставался невидимой плиткой на весь экран и
   перехватывал все клики — второй скрин не открывался. */
.lightbox[hidden] { display: none; }
.lightbox { pointer-events: none; }
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lightbox__backdrop {
  position: absolute; inset: 0;
  background: rgba(6, 6, 8, 0.92);
  backdrop-filter: blur(4px);
}
.lightbox__figure {
  position: relative; margin: 0;
  max-width: min(1200px, 94vw); max-height: 92vh;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  transform: scale(.97); transition: transform .22s ease;
}
.lightbox.is-open .lightbox__figure { transform: scale(1); }
.lightbox__img {
  max-width: 100%; max-height: 84vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: var(--r-md);
  background: #0e0e12;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.lightbox__cap {
  color: var(--text-dim); font-size: 13px; text-align: center;
  max-width: 60ch;
}
.lightbox__count {
  font-size: 12px; color: var(--text-mute); letter-spacing: .08em;
}
.lightbox__close,
.lightbox__nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  background: rgba(20, 20, 24, .72);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 107, 122, .9); border-color: transparent; }
.lightbox__close { top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; }
.lightbox__nav--prev { left: 14px; }
.lightbox__nav--next { right: 14px; }
.lightbox.is-single .lightbox__nav { display: none; }

@media (max-width: 720px) {
  .lightbox__img { max-height: 72vh; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav--prev { left: 6px; }
  .lightbox__nav--next { right: 6px; }
  .review__zoom { opacity: 1; transform: none; }
}
