/* Кольори як на рекламному постері */
:root {
    --bg: #0b0b0b;
    --bg-card: #171512;
    --lime: #dbfa05;
    --orange: #f3722d;
    --brown: #441c0f;
    --white: #ffffff;
    --grey: #a9a49e;
    --font-title: 'Oswald', 'Arial Narrow', sans-serif;
    --font-text: 'Manrope', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.5;
    color: var(--white);
    background-color: var(--bg);
    overflow-x: hidden;
}

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

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 16px;
}

.accent {
    color: var(--lime);
}

section {
    padding: 48px 0;
}

.section-title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 34px;
    line-height: 1.1;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-text {
    font-size: 17px;
    color: var(--grey);
    margin-bottom: 24px;
}

.section-text b {
    color: var(--white);
}

.btn {
    display: inline-block;
    padding: 18px 44px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 20px;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--bg);
    background-color: var(--lime);
    border: none;
    border-radius: 100px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(219, 250, 5, 0.35);
}

.btn--pulse {
    animation: pulse 2.2s ease-out infinite;
}

/* Шапка */
.header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 20px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo__img {
    width: 36px;
}

.logo__text {
    display: flex;
    flex-direction: column;
}

.logo__name {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 2px;
    line-height: 1;
}

.logo__sub {
    font-size: 10px;
}

/* 1. Хук */
.hero {
    position: relative;
    padding: 104px 0 56px;
    overflow: hidden;
    isolation: isolate;
}

/* Фото повільно наближається */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -2;
    background: url('../img/gym-functional.jpg') right center / cover no-repeat;
    animation: slow-zoom 18s ease-in-out infinite alternate;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(11, 11, 11, 0.95) 0%, rgba(11, 11, 11, 0.65) 55%, rgba(11, 11, 11, 0.35) 100%),
        linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 11, 0) 35%);
}

.hero__hook {
    display: inline-block;
    padding: 8px 14px;
    margin-bottom: 18px;
    font-size: 15px;
    border-left: 4px solid var(--lime);
    background-color: rgba(255, 255, 255, 0.08);
}

.hero__hook b {
    color: var(--lime);
}

.hero__title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 60px;
    line-height: 1.05;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.hero__price {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 36px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero__price .accent {
    font-size: 68px;
}

.hero__text {
    max-width: 360px;
    font-size: 18px;
    margin-bottom: 24px;
}

/* Бонус: картка з рамкою, що світиться і обертається */
.bonus {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding: 14px 22px 14px 14px;
    margin-bottom: 20px;
    border-radius: 22px;
    overflow: hidden;
    isolation: isolate;
}

.bonus::before {
    content: '';
    position: absolute;
    inset: -150%;
    z-index: -2;
    background: conic-gradient(from 0deg, transparent 0 60%, var(--orange) 75%, var(--lime) 90%, transparent 100%);
    animation: spin 4s linear infinite;
}

.bonus::after {
    content: '';
    position: absolute;
    inset: 2px;
    z-index: -1;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(40, 30, 20, 0.95), rgba(15, 15, 15, 0.95));
}

.bonus__icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 28px;
    color: var(--bg);
    background: radial-gradient(circle at 30% 30%, #f4ff7a, var(--lime) 55%, #9fc000);
    border-radius: 18px;
    box-shadow: 0 0 24px rgba(243, 114, 45, 0.55);
    animation: glow 2.4s ease-in-out infinite alternate;
}

.bonus__label {
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
}

.bonus__title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.bonus__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bonus__tag {
    padding: 2px 10px;
    font-size: 12px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 100px;
}

/* 2. Що входить */
.include__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
}

.include__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    align-content: start;
}

.include__list + .include__list {
    grid-template-columns: 1fr;
}

.include__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 17px;
    font-weight: 700;
    border-radius: 16px;
}

.include__item::before {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    font-size: 13px;
}

.include__item--yes {
    color: var(--bg);
    background-color: var(--lime);
}

.include__item--yes::before {
    content: '✓';
    color: var(--lime);
    background-color: var(--bg);
}

.include__item--no {
    color: var(--grey);
    background-color: var(--bg-card);
    text-decoration: line-through;
}

.include__item--no::before {
    content: '✕';
    color: var(--grey);
    border: 1px solid var(--grey);
}

/* 3. Зал — стрічка фото, що повільно їде */
.gallery-wrap {
    overflow: hidden;
}

.gallery {
    display: flex;
    gap: 12px;
    width: max-content;
    /* відступ = gap, щоб зсув на -50% був рівно на половину стрічки */
    padding-right: 12px;
    animation: gallery-move 40s linear infinite;
}

.gallery:hover {
    animation-play-state: paused;
}

.gallery__img {
    width: 300px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
}

/* Плашка «Оплата частинами» на першому екрані */
.pay-chip {
    display: flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    padding: 8px 8px 8px 10px;
    margin-bottom: 20px;
    font-size: 15px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 100px;
    backdrop-filter: blur(8px);
}

.pay-chip b {
    color: var(--lime);
}

.pay-chip__icon {
    width: 26px;
    height: 26px;
}

.pay-chip__bank {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: 800;
    color: var(--white);
    background-color: #3aa935;
    border-radius: 100px;
}

/* 4. Зручна оплата */
.payment__grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
}

.payment__card {
    padding: 24px;
    background-color: var(--bg-card);
    border-radius: 24px;
}

.payment__card--accent {
    position: relative;
    color: var(--bg);
    background-color: var(--lime);
    overflow: hidden;
}

/* Легкий відблиск, що пробігає по картці */
.payment__card--accent::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: -40%;
    width: 30%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    transform: skewX(-20deg);
    animation: shine 4s ease-in-out infinite;
}

.payment__title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 36px;
    line-height: 1.1;
    text-transform: uppercase;
}

.payment__text {
    color: var(--grey);
}

.payment__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.payment__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    padding: 6px;
    background-color: var(--white);
    border-radius: 16px;
}

.payment__bank {
    font-weight: 700;
}

.payment__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.payment__list li {
    padding: 6px 14px 6px 12px;
    font-weight: 700;
    background-color: rgba(11, 11, 11, 0.08);
    border-radius: 100px;
}

.payment__list li::before {
    content: '✓ ';
}

/* 5. Цифри */
.facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.fact {
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
}

.fact__num {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 40px;
    line-height: 1.1;
    color: var(--lime);
    white-space: nowrap;
}

.fact__text {
    font-size: 15px;
    color: var(--grey);
}

/* 6. Форма */
.order__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.form,
.form-success {
    padding: 28px;
    background-color: var(--bg-card);
    border: 2px solid var(--lime);
    border-radius: 24px;
    box-shadow: 0 0 60px rgba(219, 250, 5, 0.12);
}

.form {
    display: grid;
    gap: 14px;
}

.form__trap {
    display: none;
}

.form__field {
    display: grid;
    gap: 6px;
}

.form__label {
    font-size: 14px;
    color: var(--grey);
}

.form__input {
    width: 100%;
    padding: 16px 18px;
    font: inherit;
    font-size: 18px;
    color: var(--white);
    background-color: var(--bg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    outline: none;
    transition: border-color 0.2s;
}

.form__input:focus {
    border-color: var(--lime);
}

.form__input.is-invalid {
    border-color: var(--orange);
    animation: shake 0.3s;
}

.form__error {
    min-height: 1.5em;
    font-size: 14px;
    color: var(--orange);
}

.form__btn {
    width: 100%;
}

.form__btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.form__policy {
    font-size: 12px;
    color: var(--grey);
    text-align: center;
}

.form-success {
    text-align: center;
}

.form-success__title {
    font-family: var(--font-title);
    font-weight: 700;
    font-size: 40px;
    color: var(--lime);
    text-transform: uppercase;
}

/* 7. Питання */
.faq__item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq__question {
    position: relative;
    padding: 16px 40px 16px 0;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 10px;
    font-size: 28px;
    color: var(--lime);
    transition: transform 0.3s;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
}

.faq__answer {
    padding-bottom: 16px;
    color: var(--grey);
}

/* Підвал */
.footer {
    padding: 28px 0 96px;
    font-size: 14px;
    color: var(--grey);
    background-color: #000;
}

.footer__title {
    font-weight: 700;
    color: var(--white);
}

/* Кнопка внизу екрана (тільки на телефоні) */
.sticky-cta {
    display: none;
}

/* ---------- Анімації ---------- */

/* Перший екран зʼявляється по черзі */
.js .appear {
    opacity: 0;
    animation: fade-up 0.7s ease-out forwards;
}

.js .appear:nth-child(2) { animation-delay: 0.1s; }
.js .appear:nth-child(3) { animation-delay: 0.2s; }
.js .appear:nth-child(4) { animation-delay: 0.35s; }
.js .appear:nth-child(5) { animation-delay: 0.5s; }
.js .appear:nth-child(6) { animation-delay: 0.6s; }
.js .appear:nth-child(7) { animation-delay: 0.7s; }

/* Решта блоків — при прокрутці */
.js .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js .reveal.is-visible {
    opacity: 1;
    transform: none;
}

.include__item.reveal:nth-child(2) { transition-delay: 0.08s; }
.include__item.reveal:nth-child(3) { transition-delay: 0.16s; }
.include__item.reveal:nth-child(4) { transition-delay: 0.24s; }
.fact.reveal:nth-child(2) { transition-delay: 0.1s; }
.fact.reveal:nth-child(3) { transition-delay: 0.2s; }
.fact.reveal:nth-child(4) { transition-delay: 0.3s; }
.payment__card.reveal:nth-child(2) { transition-delay: 0.1s; }

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes slow-zoom {
    from { transform: scale(1); }
    to { transform: scale(1.12); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes glow {
    from { box-shadow: 0 0 14px rgba(243, 114, 45, 0.35); }
    to { box-shadow: 0 0 32px rgba(243, 114, 45, 0.8); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(219, 250, 5, 0.55); }
    70% { box-shadow: 0 0 0 18px rgba(219, 250, 5, 0); }
    100% { box-shadow: 0 0 0 0 rgba(219, 250, 5, 0); }
}

@keyframes gallery-move {
    to { transform: translateX(-50%); }
}

@keyframes shine {
    0%, 60% { left: -40%; }
    100% { left: 130%; }
}

@keyframes shake {
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Якщо в системі вимкнені анімації — не рухаємо нічого */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js .appear,
    .js .reveal {
        opacity: 1;
        transform: none;
    }

    .gallery-wrap {
        overflow-x: auto;
    }
}

/* ---------- Планшет ---------- */
@media (max-width: 900px) {
    .include__grid,
    .order__inner {
        grid-template-columns: 1fr;
    }

    .order__inner {
        gap: 8px;
    }

    .facts {
        grid-template-columns: 1fr 1fr;
    }
}

/* ---------- Телефон ---------- */
@media (max-width: 600px) {
    section {
        padding: 36px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .hero {
        padding: 88px 0 36px;
    }

    .hero::before {
        background-position: center;
    }

    .hero::after {
        background: linear-gradient(0deg, var(--bg) 0%, rgba(11, 11, 11, 0.6) 45%, rgba(11, 11, 11, 0.85) 100%);
    }

    .hero__hook {
        font-size: 14px;
    }

    .hero__title {
        font-size: 38px;
    }

    .hero__price {
        font-size: 26px;
    }

    .hero__price .accent {
        font-size: 56px;
    }

    .hero__price-unit {
        display: block;
    }

    .hero__text {
        font-size: 16px;
    }

    .bonus {
        display: flex;
    }

    .bonus__icon {
        width: 56px;
        height: 56px;
        font-size: 24px;
    }

    .bonus__title {
        font-size: 20px;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .include__list {
        grid-template-columns: 1fr;
    }

    .pay-chip {
        font-size: 14px;
    }

    .payment__grid {
        grid-template-columns: 1fr;
    }

    .payment__card {
        padding: 20px;
    }

    .payment__title {
        font-size: 28px;
    }

    .include__list + .include__list {
        grid-template-columns: 1fr 1fr;
    }

    .include__item {
        padding: 12px 14px;
        font-size: 16px;
    }

    .gallery__img {
        width: 220px;
        height: 150px;
    }

    .fact {
        padding: 16px;
    }

    .fact__num {
        font-size: 30px;
    }

    .form,
    .form-success {
        padding: 22px;
    }

    .sticky-cta {
        display: block;
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 20;
        padding: 16px;
        font-family: var(--font-title);
        font-weight: 700;
        font-size: 18px;
        text-transform: uppercase;
        text-align: center;
        text-decoration: none;
        color: var(--bg);
        background-color: var(--lime);
        border-radius: 100px;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
        transition: opacity 0.3s, transform 0.3s;
    }

    .sticky-cta.is-hidden {
        opacity: 0;
        transform: translateY(120%);
        pointer-events: none;
    }
}
