/* =============== */
/* MOBILE-FIRST UI */
/* =============== */

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    background: #050711;
    color: #f5f5f7;
    line-height: 1.6;
    padding-bottom: calc(72px + env(safe-area-inset-bottom)); /* місце під sticky CTA */
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Typography helpers */

.section__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.muted { color: #9ca3af; }
.small { font-size: 13px; }

.badge {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 13px;
    background: rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.12);
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    border-radius: 999px;
    padding: 14px 18px;
    font-weight: 700;
    font-size: 16px;
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
    user-select: none;
}

.btn--primary {
    background: linear-gradient(135deg, #4b6bff, #a855f7);
    color: #fff;
    box-shadow: 0 10px 26px rgba(88, 101, 242, 0.45);
}

.btn--primary:active { transform: translateY(1px); filter: brightness(0.98); }

.btn--block { width: 100%; }

/* Sections */

.section { padding: 44px 0; }

.section--alt {
    background: radial-gradient(circle at top left, rgba(148,163,184,0.07), transparent 60%);
}

.section--highlight {
    background:
            radial-gradient(circle at top, rgba(56, 189, 248, 0.14), transparent 60%),
            linear-gradient(to bottom, #050711, #050712);
}

/* HERO */

.hero {
    position: relative;
    min-height: 86vh;
    padding: calc(44px + env(safe-area-inset-top)) 0 28px;
    overflow: hidden;
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: contrast(1.1) brightness(0.62);
    z-index: -2;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 15% 10%, rgba(88, 101, 242, 0.55), transparent 55%),
            radial-gradient(circle at 85% 90%, rgba(168, 85, 247, 0.55), transparent 55%),
            linear-gradient(to bottom, rgba(5,7,17,0.15), rgba(5,7,17,0.75));
    z-index: -1;
}

.hero__content { max-width: 640px; }

.hero__title {
    margin: 0 0 10px;
    font-size: 30px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.hero__subtitle {
    margin: 0 0 16px;
    font-size: 15px;
    color: #e5e7eb;
}

.hero__cta { margin-top: 16px; }

/* Lists */

.bullets {
    list-style: none;
    padding: 0;
    margin: 12px 0 0;
    display: grid;
    gap: 8px;
}

.bullets li {
    position: relative;
    padding-left: 18px;
    font-size: 14px;
    color: #e5e7eb;
}

.bullets li::before {
    content: "•";
    position: absolute;
    left: 0;
    top: 0;
    color: #a855f7;
}

.bullets--check li::before { content: "✔"; color: #4ade80; }

.list {
    margin: 12px 0 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: #d1d5db;
    font-size: 15px;
}

/* Cards */

.stack { display: grid; gap: 14px; }

.card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(15,23,42,0.75);
}

.card--border {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(148,163,184,0.34);
}

.card__title { margin: 0 0 8px; font-size: 16px; }
.card__text { margin: 0; font-size: 14px; color: #d1d5db; }

/* Author */

.author {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.author__avatar {
    width: 100%;
    max-width: 220px;
    height: 220px;
    border-radius: 18px;
    border: 1px dashed rgba(148,163,184,0.7);
    background: rgba(15,23,42,0.7);
    display: grid;
    place-items: center;
    color: #9ca3af;
    font-size: 14px;
}

.author__text p { margin: 0 0 10px; }

.author__avatar {
    width: 220px;           /* або 100% якщо адаптивно */
    height: 220px;
    border-radius: 18px;
    overflow: hidden;       /* 🔥 КЛЮЧОВЕ */
}

.author__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;      /* 🔥 */
    display: block;
}


/* FAQ */

.faq { display: grid; gap: 10px; margin-top: 14px; }

.faq__item {
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    padding: 12px 14px;
}

.faq__question {
    list-style: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
}

.faq__question::-webkit-details-marker { display: none; }

.faq__answer {
    margin: 10px 0 0;
    font-size: 14px;
    color: #d1d5db;
}

/* BUY */

.buy { margin-top: 14px; display: grid; gap: 12px; }

.buy__box {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 16px;
    padding: 16px;
}

.buy__price {
    margin-bottom: 14px;
}

.buy__price-old {
    font-size: 26px;
    font-weight: 400;
    color: #dbdee3;
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
    text-decoration-color: rgba(248, 113, 113, 0.9);
    margin-bottom: 4px;
}

.buy__price-main {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.buy__price-sub {
    margin-top: 6px;
    font-size: 13px;
}

.price-badge {
    display: inline-block;
    margin-bottom: 6px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ef4444, #f97316);

    /* Таймер у прайсі */
    .price-timer {
        margin-top: 10px;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(2, 6, 23, 0.55);
        border: 1px solid rgba(148, 163, 184, 0.25);
    }

    .price-timer__label {
        font-size: 12px;
        color: #9ca3af;
        margin-bottom: 6px;
    }

    .price-timer__time {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0.06em;
        font-variant-numeric: tabular-nums;
    }

}


/* Footer */

.footer {
    border-top: 1px solid rgba(31, 41, 55, 1);
    padding: 18px 0 calc(18px + env(safe-area-inset-bottom));
    background: #020617;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer__link {
    font-size: 13px;
    color: #9ca3af;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

/* Sticky Mobile CTA */

.mobile-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(5, 7, 17, 0.86);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(148,163,184,0.18);
    z-index: 1000;
}

/* ===== Блок: Відгуки (скріни) ===== */

#reviews .muted {
    color: #9ca3af;
}

/* Карусель */
.reviews-carousel {
    margin-top: 16px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
}

.reviews-viewport {
    overflow: hidden;
}

.reviews-track {
    display: flex;
    transition: transform 0.35s ease;
}

.review-slide {
    min-width: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.review-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

/* Карточка зі скріном */
.review-card {
    background: rgba(15, 23, 42, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.8);
}

.review-card img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* Кнопки */
.reviews-btn {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background: rgba(15, 23, 42, 0.9);
    color: #e5e7eb;
    font-size: 22px;
    cursor: pointer;
}

.reviews-btn:active {
    transform: translateY(1px);
}

/* Точки */
.reviews-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
}

.reviews-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.6);
    border: none;
    cursor: pointer;
}

.reviews-dot.is-active {
    width: 20px;
    background: linear-gradient(135deg, #4b6bff, #a855f7);
}

/* Mobile UX */
@media (max-width: 600px) {
    .reviews-carousel {
        grid-template-columns: minmax(0, 1fr);
    }

    .reviews-btn {
        display: none;
    }
}


/* ===== Блок: Як проходить навчання ===== */

#learning .section__title {
    margin: 0 0 12px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

#learning .muted {
    color: #9ca3af;
}

/* Сетка карточек (mobile-first) */
#learning .stack {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

/* Карточка */
#learning .card {
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
}

/* Иконка с эмодзи */
#learning .icon {
    width: 40px;
    height: 40px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(2, 6, 23, 0.5);
    border: 1px solid rgba(148, 163, 184, 0.22);
    margin-bottom: 10px;
    font-size: 18px;
}

/* Заголовок и текст */
#learning .card__title {
    margin: 0 0 8px;
    font-size: 16px;
}

#learning .card__text {
    margin: 0;
    font-size: 14px;
    color: #d1d5db;
}

/* Адаптив: на планшете и выше — 2 колонки */
@media (min-width: 768px) {
    #learning .section__title {
        font-size: 32px;
    }

    #learning .stack {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

/* На десктопе — 3 колонки */
@media (min-width: 1024px) {
    #learning .stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}


/* ===================== */
/* TABLET / DESKTOP LAYER */
/* ===================== */

@media (min-width: 768px) {
    body { padding-bottom: 0; }            /* на більших екранах sticky CTA можна ховати */
    .mobile-cta { display: none; }

    .section { padding: 72px 0; }
    .section__title { font-size: 32px; }

    .hero { min-height: 92vh; padding: 72px 0 56px; }
    .hero__title { font-size: 46px; }
    .hero__subtitle { font-size: 18px; max-width: 560px; }

    .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

    .author {
        grid-template-columns: 260px minmax(0, 1fr);
        align-items: start;
        gap: 22px;
    }

    .footer__inner {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    /* Reviews: кнопки показуємо на tablet+ */
    .carousel {
        position: relative;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
    }

    .carousel__btn {
        display: inline-flex;
        width: 44px;
        height: 44px;
        border-radius: 999px;
        border: 1px solid rgba(148,163,184,0.5);
        background: rgba(15,23,42,0.9);
        color: #e5e7eb;
        font-size: 24px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
    }

    .review {
        grid-template-columns: 180px minmax(0, 1fr);
        align-items: center;
        gap: 18px;
    }

    .review__photo img { height: 180px; }
}

@media (min-width: 1024px) {
    .stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
