/* ===== Переменные темы ===== */
:root {
    --site-bg: #000000;
    --text: #ffffff;
    --gold: #cca354;
    --card-bg: #101113;
}

/* ===== Шрифт Ammar ===== */
@font-face {
    font-family: "Ammar";
    src: url("/static/fonts/Ammar-Regular.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* ===== База страницы ===== */
html, body {
    margin: 0;
    overflow-x: hidden;
    padding: 0;
    max-width: 100%;
    background: var(--site-bg);
    color: var(--text);
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ===== Секция ===== */
.hero-simple {

    padding: 48px 16px 72px;
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    background:
            linear-gradient(135deg,
            rgba(204,163,84,0.18) 0%,
            rgba(16,17,19,1) 48%,
            rgba(16,17,19,1) 100%);
    position: relative;
    isolation: isolate;
    overflow: hidden;
}
.hero-simple__container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.hero-simple__title {
    color: var(--gold, #cca354);
    margin: 0 0 24px 0;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    font-size: clamp(28px, 4.8vw, 56px);
}


.hero-simple__media-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: clamp(12px, 2.5vw, 24px);
    margin-block: 8px 0;
}

.hero-simple__achievements {
    display: none;
    gap: 12px;
    max-width: 280px;
    justify-self: stretch;
}

.hero-simple__badge {
    padding: 21px 24px;
    border-radius: 20px;
    font-size: clamp(20px, 2.1vw, 21px);


    background: linear-gradient(180deg, rgba(204,163,84,0.16), rgba(204,163,84,0.06));
    border: 1px solid rgba(204,163,84,0.35);
    color: #eae6dc;
    line-height: 1.4;
    box-shadow: 0 8px 24px rgba(0,0,0,0.35);
    text-align: left;
}


@media (min-width: 992px) {
    .hero-simple__achievements {
        display: grid;
        grid-auto-rows: 1fr;
    }
    .hero-simple__achievements--left { justify-self: end; }
    .hero-simple__achievements--right { justify-self: start; }
}


.hero-simple__media {
    display: flex;
    justify-content: center;
}

.hero-simple__img {
    display: block;
    width: min(560px, 92vw);
    height: auto;
    filter: drop-shadow(0 8px 20px rgba(0,0,0,0.5));
}


.hero-simple__card {
    position: relative;
    max-width: 780px;
    margin: clamp(-40px, -6vw, -72px) auto 0;
    background: var(--card-bg, #101113);
    border: 1px solid rgba(204, 163, 84, 0.35);
    border-radius: 14px;
    padding: clamp(16px, 3vw, 24px) clamp(16px, 4vw, 28px);
    z-index: 2;
    box-shadow: 0 8px 24px rgba(0,0,0,0.45);
}

.hero-simple__card p {
    margin: 0;
    line-height: 1.6;
    font-size: clamp(16px, 2.8vw, 22px);
    color: #e9e9ea;
}
.hero-simple__card-title{
    margin: 0 0 12px;
    color: var(--gold, #cca354);
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -0.01em;
    font-size: clamp(18px, 2.6vw, 24px);
}


/* ===== HERO-STARS (увеличенный блок и видео) ===== */
.hero-stars {
    position: relative;
    /* больше вертикальные отступы */
    padding: clamp(20px, 3vw, 40px) 8px;
    /* выше сама секция */
    min-height: clamp(640px, 78vh, 1000px);
    isolation: isolate;
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}


.hero-stars__grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: clamp(24px, 5.6vw, 56px);
    align-items: center;
}

.hero-stars__title {
    margin: 0 0 18px;
    color: var(--gold, #cca354);
    font-weight: 400;
    line-height: 1.12;
    letter-spacing: -0.01em;
    font-size: clamp(32px, 5.2vw, 64px); /* было до 56px */
}

.hero-stars__subtitle {
    margin: 0;
    color: #e9e9ea;
    font-size: clamp(20px, 2.4vw, 24px);
    line-height: 1.45;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    opacity: 0.96;
}


.hero-stars .hero-stars__media {
    justify-self: center;
    width: 100%;
    max-width: 480px;
}

.hero-stars__slider {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 20px 48px rgba(0,0,0,0.55);
    outline: 1px solid rgba(204, 163, 84, 0.34);
    background: #000;
}

.hero-stars__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.02);
    transition: opacity .6s ease, transform .6s ease;
    will-change: opacity, transform;
    pointer-events: none;
}
.hero-stars__slide.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}


@media (max-width: 768px) {
    .hero-stars .hero-stars__media { max-width: 100%; }
}


.hero-stars__caption {
    margin-top: 14px;
    color: #f2f2f2;
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.35;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(16, 17, 19, 0.74);
    border: 1px solid rgba(204, 163, 84, 0.42);
    border-radius: 12px;
    padding: 10px 12px;
    backdrop-filter: blur(2px);
}


@media (min-width: 1440px) {
    .hero-stars__media { max-width: 1080px; } /* было 840px */
}
@media (min-width: 1800px) {
    .hero-stars__media { max-width: 1280px; }
}


@media (max-width: 768px) {
    .hero-stars__grid { grid-template-columns: 1fr; }
    .hero-stars__media {
        justify-self: stretch;
        max-width: 100%;
    }
}

/* ===== REVIEWS (scoped) ===== */
/* ===== REVIEWS (полная стилизация; аватарки всегда снизу) ===== */
.reviews {
    --gold: #cca354;
    --card: #876c39;
    --gap: 24px;
    --visible: 3;
    padding: 56px 16px 72px;
    position: relative;
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #fbf7ef;
}

.reviews * { box-sizing: border-box; }


.reviews__head {
    max-width: 1100px;
    margin: 0 auto 28px;
    text-align: center;
}
.reviews__title {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.15;
    font-size: clamp(30px, 5.2vw, 50px);
}
.reviews__lead {
    margin: 0;
    opacity: .85;
    color: #e9e9ea;
    font-size: clamp(15px, 2.1vw, 19px);
}


.reviews__viewport {
    max-width: 1280px;
    margin: 0 auto;
    overflow: hidden;
    padding-inline: 2px;
}
.reviews__track {
    display: flex;
    align-items: stretch;
    gap: var(--gap);
    transform: translateX(0);
    will-change: transform;
    transition: transform .5s ease;
    scroll-behavior: smooth;
    touch-action: pan-y;
}

/* Карточка отзыва */
.review-card {
    flex: 0 0 calc((100% - (var(--gap) * (var(--visible) - 1))) / var(--visible));
    display: flex;
    flex-direction: column;
    background: var(--card);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: 24px 24px 20px;
    color: #fbf7ef;
    box-shadow: 0 16px 34px rgba(0,0,0,.36);
    position: relative;
    min-height: clamp(280px, 30vw, 360px);
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.review-card__text {
    margin: 0 0 20px;
    line-height: 1.7;
    font-size: clamp(40px, 2.2vw, 18px);
}


.review-card__footer {
    margin-top: auto;
    border-top: 1px solid rgba(0,0,0,.18);
    padding-top: 14px;
}


.review-card__person {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 14px;
    align-items: center;
}

.review-card__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--gold);
    box-shadow: 0 6px 14px rgba(0,0,0,.35);
    background: #000;
    flex-shrink: 0;
}

.review-card__name {
    font-weight: 700;
    color: #fff;
    margin-bottom: 4px;
    font-size: clamp(15px, 2vw, 18px);
}

.review-card__role {
    opacity: .92;
    color: #f5e9d0;
    font-size: clamp(14px, 1.9vw, 16px);
}


.reviews__controls {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 10px;
    max-width: 1280px;
    margin: 20px auto 0;
}

.reviews__arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--gold);
    background: rgba(135,108,57,.25);
    color: #fff;
    cursor: pointer;
    transition: transform .15s ease, filter .2s ease;
}
.reviews__arrow:hover { filter: brightness(1.08); transform: translateY(-1px); }

.reviews__dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    min-height: 10px;
}
.reviews__dots button {
    width: 36px;
    height: 6px;
    border-radius: 999px;
    border: 1px solid var(--gold);
    background: rgba(135,108,57,.35);
    cursor: pointer;
    transition: all .25s ease;
}
.reviews__dots button[aria-current="true"] {
    background: var(--gold);
    filter: drop-shadow(0 2px 6px rgba(204,163,84,.45));
}


@media (max-width: 1200px) {
    .reviews { --gap: 22px; }
}
@media (max-width: 992px) {
    .reviews { --visible: 2; --gap: 18px; }
    .review-card { min-height: clamp(260px, 36vw, 340px); }
}
@media (max-width: 640px) {
    .reviews { --visible: 1; --gap: 14px; }
    .reviews__viewport { padding-inline: 12px; }
    .reviews__controls {
        grid-template-columns: auto 1fr auto;
        max-width: 100%;
        width: 100%;
        padding-inline: 8px;
        box-sizing: border-box;
    }

    .reviews__arrow {
        width: 36px;
        height: 36px;
        flex-shrink: 0;
    }

    .reviews__dots {
        justify-content: center;
        gap: 8px;
        overflow: hidden;
        flex-wrap: nowrap;
    }

    .reviews__dots button {
        width: 28px;
        height: 5px;
    }

    .review-card {
        flex: 0 0 100%;
        min-height: 280px;
    }
    .review-card__text { font-size: 16px; line-height: 1.75; }
    .review-card__name { font-size: 16.5px; }
    .review-card__role { font-size: 15px; }
}
/* ===== ABOUT (звёздный фон через .starmap, укрупнённая типографика, единые размеры) ===== */
.about {
    --gold: #cca354;
    --card-bg: #101113;
    --text: #ffffff;
    --muted: #e9e9ea;

    --card-img-w: 220px;
    --card-img-h: 160px;

    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    padding: clamp(12px, 2vw, 25px) 4px;
    color: var(--text);
    position: relative;
    isolation: isolate;
}

.about__wrap {
    max-width: 1240px;
    margin: 0 auto;
}

.about__head {
    text-align: center;
    margin-bottom: clamp(28px, 4.5vw, 48px);
}
.about__title {
    margin: 0 0 12px;
    color: var(--gold);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.08;
    font-size: clamp(38px, 6.2vw, 74px);
}
.about__lead {
    margin: 0;
    color: var(--muted);
    font-size: clamp(20px, 2.6vw, 24px);
    opacity: .96;
}


.about__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: clamp(16px, 3vw, 28px);
    margin-top: clamp(18px, 3.2vw, 28px);
}

.about-card {
    background: var(--card-bg);
    border: 1px solid var(--gold);
    border-radius: 16px;
    padding: clamp(18px, 2.6vw, 26px);
    box-shadow: 0 16px 36px rgba(0,0,0,.45);

    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    min-height: unset;
    height: auto;
    overflow: hidden;
}

.about-card__img {
    width: var(--card-img-w);
    height: var(--card-img-h);
    object-fit: contain;
    display: block;
    margin: 0 auto clamp(14px, 2.2vw, 18px);
    filter: drop-shadow(0 10px 20px rgba(0,0,0,.45));
}


.about-card__title {
    margin: 0 0 10px;
    color: var(--gold);
    font-weight: 600;
    font-size: clamp(20px, 2.8vw, 24px);
    line-height: 1.18;
}
.about-card__text {
    margin: 0;
    color: var(--muted);
    font-size: clamp(16px, 2.3vw, 18px);
    line-height: 1.65;
}


.about__figure {
    margin: clamp(22px, 4.4vw, 40px) auto 0;
    max-width: 100%;
    text-align: center;
}
.about__image {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    max-height: clamp(300px, 38vh, 440px);
    border-radius: 16px;
    border: 1px solid rgba(204,163,84,.35);
    box-shadow: 0 18px 42px rgba(0,0,0,.5);
    background: #000;
}
.about__caption {
    margin-top: 12px;
    color: var(--muted);
    font-size: clamp(30px, 3.2vw, 24px);
    line-height: 1.5;
    opacity: .95;
}


@media (min-width: 992px) {
    .about__wrap { max-width: 1320px; }


    .about {
        --card-img-w: 260px;
        --card-img-h: 190px;
    }

    .about__grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 28px;
    }


    .about-card { padding: 28px; }


    .about__image { max-height: clamp(320px, 40vh, 480px); }
}


@media (max-width: 991.98px) {
    .hero-simple__img { transform: translateX(16px); }
    .about__grid { grid-template-columns: 1fr; }
    .about-card__img { margin-bottom: 16px; }
}
/* ===== VIP (без звёзд, золотисто-чёрный фон, PNG в углу) ===== */
.vip {

    background: #000000;
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding: clamp(56px, 7vw, 120px) 16px;
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #fff;
}


.vip__bg {
    position: absolute;
    z-index: 1;
    top: -6%;
    right: -4%;
    width: clamp(260px, 42vw, 820px);
    height: auto;
    object-fit: contain;
    opacity: 0.16;
    pointer-events: none;
    filter: drop-shadow(0 24px 60px rgba(0,0,0,.45));
}


.vip__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}


.vip__title {
    margin: 0 0 14px;
    color: #cca354;
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.08;
    font-size: clamp(36px, 6vw, 72px);
}


.vip__lead {
    margin: 0 auto;
    max-width: 900px;
    font-size: clamp(18px, 2.6vw, 24px);
    line-height: 1.6;
    color: #f0efe9;
}
@media (max-width: 768px) {
    .vip {
        display: grid;

        grid-template-rows: auto auto;
        justify-items: center;
        overflow-x: hidden;
    }

    .vip__inner {
        grid-row: 1;
        z-index: 2;
        text-align: center;
    }

    .vip__bg {
        grid-row: 2;
        position: static;
        top: auto;
        right: auto;
        width: clamp(240px, 80vw, 560px);
        height: auto;
        opacity: 0.22;
        pointer-events: none;
        filter: drop-shadow(0 16px 36px rgba(0,0,0,.35));
        margin-top: 16px;
        z-index: 1;
    }
}

/* ===== CTA-FINAL (градиент, крупные кнопки, свечение при наведении) ===== */
.cta-final {
    background: linear-gradient(135deg,
    rgba(204,163,84,0.18) 0%,
    rgba(16,17,19,1) 48%,
    rgba(16,17,19,1) 100%);
    padding: clamp(48px, 7vw, 110px) 16px;
    color: #fff;
    position: relative;
    overflow: hidden;
    font-family: "Ammar", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.cta-final__inner {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cta-final__title {
    margin: 0 0 clamp(20px, 3vw, 28px);
    color: var(--gold, #cca354);
    font-weight: 400;
    letter-spacing: -0.01em;
    line-height: 1.08;
    font-size: clamp(28px, 5.4vw, 56px);
}


.cta-final__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(8px, 1.6vw, 12px);
    justify-items: center;
}


.btn {
    --btn-pad-y: clamp(12px, 2.2vw, 18px);
    --btn-pad-x: clamp(18px, 3.6vw, 28px);

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: var(--btn-pad-y) var(--btn-pad-x);
    min-width: min(480px, 100%);
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.15);

    font-size: clamp(16px, 2.4vw, 22px);
    line-height: 1;
    color: #fff;
    cursor: pointer;
    user-select: none;
    text-align: center;

    box-shadow: 0 12px 28px rgba(0,0,0,.45);
    transition:
            transform .15s ease,
            filter .2s ease,
            box-shadow .25s ease,
            background .25s ease;
}
.btn:focus-visible {
    outline: 2px solid rgba(204,163,84,.7);
    outline-offset: 2px;
}


.btn--green {
    background: linear-gradient(180deg, #2ea44f, #22863a);
    border-color: rgba(46,164,79,.35);
}
.btn--green:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    /* зелёное свечение */
    box-shadow:
            0 14px 34px rgba(0,0,0,.5),
            0 0 18px rgba(46,164,79,.45),
            0 0 34px rgba(46,164,79,.35);
}
.btn__icon {
    display: inline-block;
    animation: slideRight 1.1s ease-in-out infinite;
}
@keyframes slideRight {
    0%, 100% { transform: translateX(0); }
    50%      { transform: translateX(6px); }
}


.btn--red {
    background: linear-gradient(180deg, #d93025, #b1271a);
    border-color: rgba(217,48,37,.35);
    position: relative;
}
.btn--red:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    /* красное свечение */
    box-shadow:
            0 14px 34px rgba(0,0,0,.5),
            0 0 18px rgba(217,48,37,.45),
            0 0 34px rgba(217,48,37,.35);
}
/* мигающая точка справа */
.btn__blink {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #fff;
    margin-left: 4px;
    animation: blink 1s steps(2, jump-none) infinite;
    box-shadow: 0 0 0 0 rgba(255,255,255,.6);
}
@keyframes blink {
    0%   { opacity: 0.25; transform: scale(0.9); }
    50%  { opacity: 1;    transform: scale(1); }
    100% { opacity: 0.25; transform: scale(0.9); }
}


@media (min-width: 768px) {
    .cta-final__buttons {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: max-content;
        column-gap: clamp(10px, 1.6vw, 14px);
        justify-content: center;
    }
    .btn {
        min-width: clamp(220px, 28vw, 360px);
    }
}
