/* Дополнительные стили: навигация в шапке + внутренние страницы.
   Подключается ПОСЛЕ style.min.css на всех страницах. */

/* Обёртки-ссылки баннеров должны быть блочными на всю ширину,
   иначе Swiper/баннер считает ширину неверно и «разъезжается». */
.promo > a,
.page > a {
    display: block;
    width: 100%;
}

/* Высота .promo (380px / 300px на мобиле) задаётся в style.min.css.
   Пробрасываем её через блочную ссылку-обёртку, иначе слайды схлопываются. */
.promo > a {
    height: 100%;
}

/* Плитки категорий теперь ведут на отдельные страницы:
   ссылка заполняет плитку, сохраняя исходную раскладку (иконка + текст). */
.categories__wrapper__item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    column-gap: 10px;
    width: 100%;
    height: 100%;
    color: inherit;
}

/* Ссылки в меню футера */
.footer__head__item__menu--pages {
    margin-bottom: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__head__item__menu--pages .footer__head__item__menu__item {
    font-weight: 600;
}

.footer__head__item__menu--legal .footer__head__item__menu__item {
    font-size: 13px;
    opacity: 0.85;
}

.footer__head__item__menu a {
    color: inherit;
    text-decoration: none;
}

.footer__head__item__menu a:hover .footer__head__item__menu__item {
    background-color: #252536;
}

@media (max-width: 680px) {
    .footer__head__item__menu {
        flex-direction: column;
        align-items: center;
        row-gap: 5px;
        text-align: center;
    }

    .footer__head__item__menu a {
        max-width: 100%;
    }

    .footer__head__item__menu__item {
        white-space: normal;
        line-height: 1.4;
    }
}

/* ===== Навигация в шапке ===== */
/* Логотип + меню слева, блок login/register справа.
   position: sticky вместо fixed — шапка не налезает на баннер,
   а занимает своё место в потоке и закрепляется сверху при прокрутке. */
.header {
    position: -webkit-sticky;
    position: sticky;
    justify-content: flex-start;
    padding-left: 16px;
    padding-right: 16px;
    column-gap: 0;
}

.header__actions {
    margin-left: auto;
}

.header__wrapper__logo {
    width: 170px;
}

.header__nav {
    display: flex;
    align-items: center;
    column-gap: 4px;
    margin-left: 20px;
}

.header__nav a {
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 14px;
    border-radius: 50px;
    transition: all .2s;
    white-space: nowrap;
}

.header__nav a:hover {
    background-color: rgba(255, 255, 255, .08);
    color: #e8ce3a;
}

.header__nav a.is-active {
    color: #e8ce3a;
}

/* CTA внутри меню — виден только в мобильной панели */
.header__nav__cta {
    display: none;
}

.header__burger {
    display: none;
    width: 34px;
    height: 34px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    row-gap: 5px;
}

.header__burger span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: #e8ce3a;
    border-radius: 3px;
    transition: all .25s;
}

/* ===== Внутренняя страница ===== */
.page {
    padding-top: 0;
}

/* Статичный баннер (как промо на главной, но без слайдера) */
.page-banner {
    width: 100%;
    height: 380px;
    position: relative;
}

.page-banner img {
    -o-object-fit: cover;
    object-fit: cover;
    -o-object-position: 50% 50%;
    object-position: 50% 50%;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.page-banner .container {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: linear-gradient(270.09deg, rgba(6, 16, 79, 0) .07%, rgba(6, 16, 79, .9) 25.04%, rgba(6, 16, 79, .9) 74.96%, rgba(6, 16, 79, 0) 99.93%);
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-banner .container__text {
    -webkit-text-fill-color: transparent;
    background: linear-gradient(180deg, #fff176, #ffc40f 50%, #f5b401 50.01%, #ffee5b);
    -webkit-background-clip: text;
    background-clip: text;
    filter: drop-shadow(1px 1px rgba(0, 5, 52, .5));
    font-size: 26px;
    font-weight: 700;
    line-height: 34px;
    text-transform: uppercase;
    text-align: center;
    padding: 0 16px;
}

@media (max-width: 910px) {
    .page-banner {
        height: 300px;
    }

    .page-banner .container__text {
        font-size: 18px;
    }
}

.page-hero {
    position: relative;
    background: url(../img/noise.842fbbbae5bd6f37b0268590b6f121ec.png) repeat,
        linear-gradient(180deg, #1a1a2e 0%, #101226 100%);
    box-shadow: inset 0 5px 25px 0 rgba(0, 0, 0, .4);
    padding: 40px 16px 36px;
    text-align: center;
}

.page-hero h1 {
    color: #fff;
    font-size: 30px;
    margin: 0 0 10px;
    line-height: 1.25;
}

.page-hero h1 span {
    color: #e8ce3a;
}

.page-hero p {
    color: #aab;
    font-size: 15px;
    max-width: 700px;
    margin: 0 auto;
}

.breadcrumbs {
    max-width: 900px;
    margin: 0 auto 14px;
    color: #646a87;
    font-size: 13px;
    text-align: left;
}

.breadcrumbs a {
    color: #646a87;
}

.breadcrumbs a:hover {
    color: #e8ce3a;
}

.content {
    background: url(../img/noise.842fbbbae5bd6f37b0268590b6f121ec.png) repeat, #101226;
    box-shadow: 0 0 30px 0 rgba(0, 0, 0, .5);
    position: relative;
    padding: 24px 0 40px;
    overflow: hidden;
}

.content::after {
    content: "";
    position: absolute;
    background: url(../icons/back_games_wided.227796c41fd586631e9dc8c7af874e66.svg) repeat-y;
    background-size: 100%;
    height: 100%;
    width: 100%;
    left: 0;
    top: 0;
    z-index: 1;
    pointer-events: none;
}

.content__inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    color: #fff;
    position: relative;
    z-index: 100;
}

.content__inner h2 {
    font-size: 22px;
    margin: 28px 0 12px;
    color: #fff;
}

.content__inner h3 {
    font-size: 17px;
    margin: 20px 0 8px;
    color: #e8ce3a;
}

.content__inner p {
    font-size: 15px;
    line-height: 1.7;
    color: #cfd2e0;
    margin: 0 0 14px;
}

.content__inner ul {
    color: #cfd2e0;
    font-size: 15px;
    line-height: 1.7;
    padding-left: 20px;
    margin: 0 0 16px;
}

.content__inner ul li {
    margin-bottom: 6px;
}

/* Таблицы */
.info-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
}

.info-table th {
    padding: 10px;
    border: 1px solid #333;
    color: #e8ce3a;
    background-color: #1a1a2e;
    text-align: center;
}

.info-table td {
    padding: 8px;
    border: 1px solid #333;
    color: #fff;
    font-size: 14px;
}

.info-table td.muted {
    color: #aaa;
}

/* CTA-кнопка */
.cta-wrap {
    text-align: center;
    margin: 26px 0;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50px;
    background-color: #fe284a;
    box-shadow: 0 3px 0 0 #871628, 0 4px 4px 0 #000;
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 15px;
    padding: 12px 40px;
    transition: all .3s;
}

.cta-btn:hover {
    color: #fff;
    box-shadow: 0 3px 0 0 #871628, 0 4px 4px 0 #000, inset 0 15px 15px -3px rgba(255, 255, 255, .4);
}

/* Карточки (бонусы, VIP-уровни, шаги) */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin: 18px 0;
}

.cards--2x2 {
    grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 680px) {
    .cards--2x2 {
        grid-template-columns: 1fr;
    }
}

.card {
    background: #1a1a2e;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 18px 18px 20px;
}

.card__badge {
    display: inline-block;
    background: #fe284a;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 50px;
    margin-bottom: 10px;
}

.card h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 17px;
}

.card p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: #cfd2e0;
}

.card .big {
    color: #e8ce3a;
    font-size: 22px;
    font-weight: 800;
    display: block;
    margin-bottom: 6px;
}

/* Пошаговый список */
.steps {
    counter-reset: step;
    list-style: none;
    padding: 0;
    margin: 18px 0;
}

.steps li {
    position: relative;
    padding: 4px 0 16px 52px;
    color: #cfd2e0;
    font-size: 15px;
    line-height: 1.6;
}

.steps li::before {
    counter-increment: step;
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    width: 36px;
    height: 36px;
    background: #fe284a;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.steps li strong {
    color: #fff;
}

/* FAQ внутри страниц переиспользует .faq-section с index */

/* Текст с обтеканием картинки в .vavada__text (главная) и .content__inner (внутренние).
   Один блок текста + float: строки идут слева от картинки,
   ниже картинки — на всю ширину. */
.vavada__text .content-float::after,
.content__inner .content-float::after {
    content: "";
    display: table;
    clear: both;
}

.vavada__text .content-float__img,
.content__inner .content-float__img {
    display: block;
    width: 42%;
    max-width: 460px;
    height: auto;
    border-radius: 10px;
}

.vavada__text .content-float__img--right,
.content__inner .content-float__img--right,
.vavada__text .content-float__img:not(.content-float__img--left),
.content__inner .content-float__img:not(.content-float__img--left) {
    float: right;
    margin: 4px 0 16px 24px;
}

.vavada__text .content-float__img--left,
.content__inner .content-float__img--left {
    float: left;
    margin: 4px 24px 16px 0;
}

.vavada__text .content-float__text,
.content__inner .content-float__text {
    margin: 0 0 1rem;
    line-height: 1.7;
}

.vavada__text .content-float__text {
    font-size: 15px;
    color: #fff;
}

@media (max-width: 768px) {
    .vavada__text .content-float__img,
    .content__inner .content-float__img {
        float: none;
        width: 100%;
        max-width: none;
        margin: 0 0 16px;
    }
}

/* На узких экранах прячем горизонтальное меню в бургер,
   чтобы шапка (логотип + кнопки входа) всегда помещалась. */
@media (max-width: 1024px) {
    .header__burger {
        display: flex;
    }

    /* Меню превращается в выезжающую панель справа */
    .header__nav {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 72%;
        max-width: 300px;
        margin-left: 0;
        background-color: rgba(20, 20, 33, .98);
        flex-direction: column;
        align-items: stretch;
        row-gap: 4px;
        padding: 70px 16px 16px;
        z-index: 10001;
        box-shadow: -4px 0 20px rgba(0, 0, 0, .5);
    }

    .header__nav.is-open {
        display: flex;
    }

    .header__nav a {
        width: 100%;
        font-size: 15px;
        padding: 12px 14px;
    }

    .header__nav__cta {
        display: block;
        margin-top: 12px;
        text-align: center;
        background-color: #fe284a;
        color: #fff;
        font-weight: 700;
        border-radius: 50px;
        box-shadow: 0 3px 0 0 #871628, 0 4px 4px 0 #000;
    }

    .header__nav__cta:hover {
        background-color: #fe284a;
        color: #fff;
    }

    /* Бургер в самый правый край */
    .header__burger {
        margin-left: 12px;
    }
}

@media (max-width: 680px) {
    /* Шапка: логотип слева, бургер справа, блок входа скрыт */
    .header {
        flex-direction: row !important;
        justify-content: space-between;
        align-items: center;
        padding: 8px 16px;
        row-gap: 0;
    }

    .header__wrapper__logo {
        width: 150px;
    }

    .header__actions {
        display: none;
    }

    .header__burger {
        margin-left: 0;
    }

    .page-hero h1 {
        font-size: 23px;
    }

    .page-banner {
        height: 300px;
    }

    .page-banner .container__text {
        font-size: 16px;
        line-height: 24px;
    }
}

/* ===== Переключатель языков ===== */
.lang-switcher {
    position: relative;
    margin-left: 14px;
    z-index: 10002;
    flex-shrink: 0;
}

.lang-switcher__current {
    display: inline-flex;
    align-items: center;
    column-gap: 7px;
    background-color: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 50px;
    padding: 6px 12px;
    cursor: pointer;
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    transition: all .2s;
    white-space: nowrap;
}

.lang-switcher__current:hover {
    background-color: rgba(255, 255, 255, .14);
    color: #e8ce3a;
}

.lang-switcher__flag {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-switcher__caret {
    width: 10px;
    height: 10px;
    fill: currentColor;
    transition: transform .2s;
}

.lang-switcher.is-open .lang-switcher__caret {
    transform: rotate(180deg);
}

.lang-switcher__label {
    text-transform: uppercase;
}

.lang-switcher__menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    max-height: 70vh;
    overflow-y: auto;
    background-color: #14141f;
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, .5);
}

.lang-switcher.is-open .lang-switcher__menu {
    display: block;
}

.lang-switcher__item {
    display: flex;
    align-items: center;
    column-gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    color: #cfd2e0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.lang-switcher__item:hover {
    background-color: rgba(255, 255, 255, .08);
    color: #fff;
}

.lang-switcher__item.is-active {
    color: #e8ce3a;
    background-color: rgba(232, 206, 58, .12);
}

.lang-switcher__item img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

@media (max-width: 1024px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 8px;
    }
}

@media (max-width: 680px) {
    .lang-switcher {
        margin-left: auto;
        margin-right: 10px;
    }

    .lang-switcher__label {
        display: none;
    }

    .lang-switcher__current {
        padding: 6px 10px;
    }
}
