/* Точная копия главной страницы конструктора.
   Вёрстка своя, внешний вид повторяет оригинал: тёмно-синий фон,
   лаймовый акцент, полноэкранный первый экран, карточки тренировок. */

/* ─────────────────────────── шапка ─────────────────────────── */

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 40;
    background: var(--navy);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 88px;
}

.logo {
    font: 700 20px/1.2 "Golos Text", sans-serif;
    letter-spacing: .02em;
    text-transform: uppercase;
    text-decoration: none;
}

.logo span { color: var(--lime-light); }

/* Меню строкой. На узких экранах пять пунктов в строку не помещаются —
   там оно уезжает под кнопку, поэтому бургер никуда не делся. */
.nav-inline { display: none; }

.nav-inline ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-inline a {
    display: block;
    padding: 6px 0;
    font-size: 15px;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

.nav-inline a:hover { color: var(--lime-light); border-bottom-color: var(--lime-light); }

.burger {
    width: 46px; height: 46px;
    display: grid;
    place-content: center;
    gap: 7px;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.burger span {
    display: block;
    width: 34px; height: 3px;
    background: var(--paper);
    border-radius: 2px;
    transition: transform .25s, opacity .2s;
}

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

.nav {
    position: fixed;
    inset: 88px 0 auto;
    background: var(--navy);
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 8px 0 28px;
}

.nav ul { list-style: none; margin: 0; padding: 0; }

.nav a {
    display: block;
    padding: 14px 24px;
    font-size: 19px;
    text-decoration: none;
    max-width: var(--container);
    margin: 0 auto;
}

.nav a:hover { color: var(--lime-light); }

/* ───────────────────────── первый экран ───────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    padding: 120px 0 60px;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background: url(../img/hero.jpg) center / cover no-repeat;
}

.hero__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, .45), rgba(0, 0, 0, .15));
}

.hero .container { position: relative; }

.hero__title {
    font-size: clamp(30px, 4.4vw, 54px);
    margin-bottom: .8em;
    max-width: 22ch;   /* уже — и «Бэтмен мама фитнес» рвётся на две строки */
}

.hero__title span { color: var(--lime-light); }

/* ───────────────────────── кнопки ───────────────────────── */

.btn {
    display: inline-block;
    padding: 18px 42px;
    font: 400 18px/1.2 "Golos Text", sans-serif;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    border: 2px solid var(--lime-light);
    color: var(--paper);
    background: none;
    cursor: pointer;
    transition: background .18s, color .18s;
}

.btn:hover { background: var(--lime-light); color: var(--ink); }

.btn_solid {
    background: var(--lime);
    border-color: var(--lime);
    color: var(--paper);
}

.btn_solid:hover { background: var(--lime-light); color: var(--ink); }

.btn_wide { display: block; width: 100%; }

/* ───────────────────────── секции ───────────────────────── */

.section { padding: 84px 0; }

.section_paper { background: var(--paper); color: var(--ink); }

.section__heading {
    font-style: italic;
    font-size: clamp(26px, 3.2vw, 40px);
    margin-bottom: .9em;
}

.cta-band { padding: 44px 0; }

.cta-band__pair {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-band__pair .btn { min-width: 260px; }

/* ───────────────────────── о тренере ───────────────────────── */

/* Заголовок раздела набран h4 (32 px), а не h2 — так было в конструкторе,
   отсюда ощущение, что раздел «чуть мельче» остальных. Текст 16 px. */
.trainer .section__heading { font-size: clamp(22px, 2.4vw, 32px); }

.trainer__lines { max-width: 62ch; margin-bottom: 34px; font-size: 16px; line-height: 1.5; }

.trainer__lines p { margin: 0; }

.trainer__photo { margin-bottom: 22px; }

.trainer__name { font-size: clamp(24px, 3vw, 34px); margin-bottom: .15em; }

.trainer__name em { font-style: italic; }

.trainer__subtitle { color: var(--muted); margin: 0; }

.trainer__subtitle a { text-decoration: underline; text-underline-offset: 3px; }

/* ─────────────────────── карточки тренировок ─────────────────────── */

.workouts { display: grid; gap: 34px; }

.card {
    background: var(--paper);
    color: var(--ink);
    border-radius: 4px;
    overflow: hidden;
}

.card__media { position: relative; }

.card__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.card__title {
    position: absolute;
    left: 28px;
    bottom: 14px;
    margin: 0;
    font-family: "Condensed", "Golos Text", sans-serif;
    font-size: clamp(34px, 4.6vw, 54px);
    text-transform: none;
    color: var(--paper);
    text-shadow: 0 2px 18px rgba(0, 0, 0, .45);
}

.card__body { padding: 26px 28px 30px; }

.card__body p { margin: 0; }

/* ─────────────────────── о тренировках (светлая) ─────────────────────── */

.about__grid { display: grid; gap: 40px; align-items: start; }

.schedule { list-style: none; margin: 0 0 26px; padding: 0; }

.schedule li {
    display: flex;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid #eceff3;
}

.schedule b { flex: none; width: 34px; color: #5b6b7c; font-weight: 700; }

.highlight {
    margin: 0 0 14px;
    padding: 16px 20px;
    background: #f2f7ec;
    border-left: 4px solid var(--lime);
    border-radius: 0 8px 8px 0;
    font-weight: 700;
    line-height: 1.45;
}

.included { list-style: none; margin: 0 0 24px; padding: 0; }

.included li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 9px;
}

.included li::before {
    content: "";
    position: absolute;
    left: 4px; top: .62em;
    width: 10px; height: 10px;
    background: var(--lime);
    border-radius: 50%;
}

.note { display: flex; gap: 12px; margin-bottom: 14px; }

.note span:first-child { flex: none; }

.about__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.about__buttons .btn { border-color: var(--lime); color: var(--ink); }

.about__buttons .btn:hover { background: var(--lime); color: var(--paper); }

/* ───────────────────────── присоединяйся ───────────────────────── */

.join__photo { margin-bottom: 30px; }

.join__text { max-width: 74ch; }

/* ───────────────────────── отзывы ───────────────────────── */

.reviews {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.reviews img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 4px; }

/* ───────────────────────── видео ───────────────────────── */

.video__text { max-width: 74ch; margin-bottom: 34px; }

.videos { display: grid; gap: 22px; }

.video-frame { border-radius: 6px; }

/* ───────────────────────── подвал ───────────────────────── */

/* ─────────────────────────── подвал ───────────────────────────
   Повторяет конструктор. Слева монолит одним кеглем: название, ИНН, ОГРН
   и две правовые ссылки идут подряд с одинаковым межстрочным, без отбивок
   и без выделения. Ссылки того же цвета, просто прозрачнее — в оригинале
   это `sb-link` с opacity .64 и подчёркиванием в один пиксель.
   Меню справа в одну строку, за ним кнопка в рамке. */

.footer { padding: 40px 0 48px; background: var(--navy-deep); }

.footer__inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
}

/* Кегль и межстрочный оригинала: 14 / 20 px */
.footer__legal {
    font-size: 14px;
    line-height: 20px;
}

/* Каждая строка — своя, но интервал ровно один и тот же для всех шести */
.footer__legal span,
.footer__legal a { display: block; }

.footer__legal a {
    color: inherit;
    opacity: .64;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: .2em;
    transition: opacity .3s;
}

.footer__legal a:hover { opacity: 1; }

.footer__nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.footer__nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.footer__nav a { text-decoration: none; }

.footer__nav a:hover { color: var(--lime-light); }

/* Кнопка в рамке — в оригинале граница белая на 56 % */
.footer__write {
    display: inline-block;
    padding: 12px 26px;
    border: 1px solid var(--muted);
    border-radius: 999px;
    text-decoration: none;
    font-size: 16px;
    white-space: nowrap;
}

.footer__write:hover { border-color: var(--lime-light); color: var(--lime-light); }

/* Оригинал уменьшал эти два абзаца на мобильном, и мы перенесли только
   десктопный кегль — из-за чего строки «О тренере» стали переноситься,
   а реквизиты в подвале занимать лишнее место. Значения сняты
   с конструктора: sb-font-p3 → 14/20, sb-font-p4 → 12/16 ниже 960 px. */
@media (max-width: 959px) {
    .trainer__lines { font-size: 14px; line-height: 20px; }
    .footer__legal  { font-size: 12px; line-height: 16px; }
}

/* ───────────────────────── наверх ───────────────────────── */

.to-top {
    position: fixed;
    right: 20px; bottom: 20px;
    z-index: 30;
    width: 54px; height: 54px;
    display: grid;
    place-content: center;
    background: rgba(255, 255, 255, .92);
    color: var(--ink);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s, visibility .2s;
}

.to-top[data-visible] { opacity: 1; visibility: visible; }

/* ───────────────────────── широкие экраны ───────────────────────── */

@media (min-width: 760px) {
    .workouts { grid-template-columns: repeat(2, 1fr); }
    .videos   { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1080px) {
    .nav-inline { display: block; }
    .burger { display: none; }
}

@media (min-width: 1000px) {
    .header__inner { min-height: 96px; }
    .nav { inset: 96px 0 auto; }
    /* Пропорции оригинала: текст 8 колонок из 12, пустая колонка, фото 3.
       Отсюда фотография узкая и прижата к правому краю. */
    .trainer {
        display: grid;
        grid-template-columns: 8fr 1fr 3fr;
        gap: 0;
        align-items: start;
    }

    .trainer__main { grid-column: 1; }
    .trainer > div:last-child { grid-column: 3; }
    .trainer__photo { max-width: 100%; }
    .about__grid { grid-template-columns: 1.1fr .9fr; gap: 60px; }
    .join { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
    .join__photo { margin: 0; }

}


/* Сдвиг раздела «О тренере» вправо.

   В конструкторе слева от заголовка стоит пустая колонка 192 px плюс
   отступ 48 px — из-за неё весь текст уезжает вправо на 240 px.
   Появляется она только с 1360 px: ниже блок складывается в столбик
   и сдвига нет. Воспроизводим ровно это. */
.trainer__main { display: block; }

.trainer__gutter { display: none; }

@media (min-width: 1360px) {
    .trainer__main { display: flex; }
    .trainer__gutter { display: block; flex: none; width: 192px; margin-right: 48px; }
    .trainer__body { flex-grow: 1; min-width: 0; }
}


/* ─────────────────────── текстовые страницы ───────────────────────
   Оферта, политика, заморозка, контакты. Узкая колонка и крупный
   межстрочный: эти тексты длинные и их читают подряд, а не сканируют. */

.doc {
    padding: 130px 0 80px;   /* шапка зафиксирована, отсюда верхний отступ */
}

.doc .container { max-width: 760px; }

.doc h1 {
    font-size: clamp(28px, 4vw, 42px);
    margin-bottom: .8em;
}

.doc h2 {
    font-size: clamp(19px, 2.2vw, 23px);
    margin: 1.9em 0 .6em;
}

.doc p { line-height: 1.65; }

.doc ul, .doc ol { padding-left: 22px; line-height: 1.65; }

.doc li { margin-bottom: .55em; }

.doc a { color: var(--lime-light); }

.doc__note {
    padding: 16px 20px;
    background: rgba(255, 255, 255, .06);
    border-left: 3px solid var(--lime);
    border-radius: 0 10px 10px 0;
}


/* ─────────────────── страницы результата оплаты ───────────────────
   Своя на каждый тариф: на ней кнопка к боту с параметром, по которому
   он выдаёт доступ на нужный срок. */

.result {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: 140px 20px 80px;
    text-align: center;
}

.result__box { max-width: 620px; }

.result__mark {
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 38px;
    color: #fff;
}

.result__mark_ok   { background: #2e9b4f; }
.result__mark_fail { background: #c0392b; }

.result h1 { font-size: clamp(24px, 3.4vw, 36px); margin-bottom: .7em; }

.result h2 { font-size: 20px; margin: 1.6em 0 .5em; }

.result p { line-height: 1.6; }

.result a { color: var(--lime-light); }

.result__contacts {
    list-style: none;
    margin: 0 0 1.4em;
    padding: 0;
    display: grid;
    gap: 8px;
}

.cta__btn {
    display: inline-block;
    padding: 15px 30px;
    font-size: 17px;
    color: var(--paper);
    text-decoration: none;
    background: var(--lime);
    border: 2px solid var(--lime);
    border-radius: 999px;
}

.cta__btn:hover { background: var(--lime-light); border-color: var(--lime-light); color: var(--ink); }

/* Второстепенное действие: та же форма, но без заливки */
.cta__btn_ghost {
    background: none;
    border-color: var(--muted);
    color: var(--paper);
}

.cta__btn_ghost:hover { background: none; border-color: var(--lime-light); color: var(--lime-light); }
