/* Шрифты */
@font-face {
    font-family: inter;
    font-weight: 400;
    font-style: normal;
    src: url('/fonts-maxaffil/Inter-Regular-maxaffil.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: inter;
    font-weight: 600;
    font-style: normal;
    src: url('/fonts-maxaffil/Inter-SemiBold-maxaffil.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: inter;
    font-weight: 700;
    font-style: normal;
    src: url('/fonts-maxaffil/Inter-Bold-maxaffil.woff2') format('woff2');
    font-display: swap;
}

@font-face {
    font-family: inter;
    font-weight: 900;
    font-style: normal;
    src: url('/fonts-maxaffil/Inter-Black-maxaffil.woff2') format('woff2');
    font-display: swap;
}

/* Переменные */
:root {
    --font-inter: inter, sans-serif, serif;
    --primary-color: #ffffff;
    --secondary-color: #1D40C0;
    --green: #14CC20;
    --btn-border-color: #789FC3;
    --btn-shadow: #2C00F2;
    --body-bg: #080808;
    --particles-js-bg: #0f0b14;
}

/* Сброс стилей */
*,
*::before,
*::after {
    box-sizing: border-box;
}

h1,
h2,
h3,
p,
ul,
ol,
button,
body {
    margin: 0;
    padding: 0;
}

li {
    list-style: none;
}

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

a {
    color: var(--primary-color);
    text-decoration: none;
}

input,
textarea,
button {
    background: none;
    border: none;
    outline: none;
}

a,
button,
div[class],
input,
textarea,
select {
    -webkit-tap-highlight-color: transparent;
}

a:focus,
button:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: none;
}

body {
    background-color: var(--body-bg);
    color: var(--primary-color);
    font-family: var(--font-inter);
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    height: 100vh;
}

/* Общие стили____________________ */
/* Страница */
.page-maxaffil {
    position: relative;
    z-index: 1;
}

/* Контейнер */
.container-maxaffil {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Дата обновления */
.date-of-update-maxaffil {
    font-weight: 700;
}

/* Основной стиль кнопки */
.button-maxaffil {
    border-radius: 100px;
    border: 4px solid #789FC3;
    background-color: #1D40C0;
    box-shadow: 0 0 10px 0 #2C00F2;
    color: var(--primary-color);
    text-align: center;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
    width: 100%;
    padding: 10px;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.button-maxaffil>svg {
    flex-shrink: 0;
}

/* Анимация кнопки */
.button__glare-maxaffil {
    opacity: 0.8;
    position: absolute;
    top: -100px;
    left: -100px;
    display: block;
    background-color: var(--primary-color);
    width: 40px;
    height: 300px;
    transition: all 0.1s;
    transform: rotate(45deg);
    animation-delay: 0.05s;
    animation-timing-function: ease-in-out;
    animation-name: slide;
    animation-duration: 4s;
    animation-iteration-count: infinite;
}

@keyframes slide {
    0% {
        transform: translateX(0) rotate(45deg);
    }

    30%,
    100% {
        transform: translateX(450px) rotate(45deg);
    }
}

/* ---- particles.js container ---- */
canvas {
    display: block;
    vertical-align: bottom;
}

#particles-js {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    background-color: var(--particles-js-bg);
}

/* Header_____________________________ */
.header-maxaffil {
    background-color: #1D40C0;
    padding: 5px 0;
    font-size: 11px;
    text-align: center;
}

@media screen and (max-width: 600px) {
    .header-maxaffil {
        font-size: 10px;
    }
}

/* Home page_____________________________ */
.home-main-maxaffil {
    padding: 55px 0 100px;
    position: relative;
}

.home-main__content-maxaffil {
    max-width: 738px;
    position: relative;
    z-index: 2;
}

.home-main__content-maxaffil>h1 {
    font-size: 32px;
    font-weight: 900;
}

.home-main__content-maxaffil>h1,
.home-main__content-maxaffil>p {
    margin-bottom: 20px;
}

.home-main__badges-list-maxaffil {
    display: flex;
    align-items: center;
    gap: 10px;
}

.home-main__badges-list-maxaffil>li {
    border-radius: 100px;
    border: 1px solid #464646;
    background-color: #212121;
    padding: 10px;
    text-align: center;
    font-size: 13px;
    display: flex;
    justify-content: center;
    align-items: center;
    align-self: stretch;
    gap: 5px;
}

#container {
    width: 377px;
    height: 387px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 10px;
    left: 60%;
}

.casino-chips-img-maxaffil {
    position: absolute;
    top: 0;
}

@media screen and (max-width: 1024px) {
    #container {
        display: none;
    }
}

@media screen and (max-width: 600px) {
    .home-main-maxaffil {
        padding: 10px 0 20px;
    }

    .home-main__content-maxaffil>h1 {
        text-align: center;
        font-size: 20px;
        font-weight: 900;
    }

    .home-main__content-maxaffil>p {
        display: none;
    }

    .home-main__badges-list-maxaffil>li {
        border-radius: 5px;
        padding: 10px;
        font-size: 10px;
    }
}

@media screen and (max-width: 330px) {
    .home-main__badges-list-maxaffil {
        flex-wrap: wrap;
    }

    .home-main__badges-list-maxaffil>li {
        min-width: 102px;
        flex: 1 1 0;
    }
}

/* Casino list */
.casino-list-maxaffil {
    margin-top: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    position: relative;
    z-index: 2;
}

.casino-list__card-maxaffil {
    border-radius: 10px;
    border: 1px solid #3D3D3D;
    background: radial-gradient(74.76% 74.76% at 50% 25.24%, #060F21 0%, #0E0E0E 100%);
    text-align: center;
    padding: 20px 16px;
    width: 270px;
    position: relative;
}

.casino-list__card-badge-maxaffil {
    border-radius: 100px;
    background-color: #B61B20;
    box-shadow: 0 0 22.9px 0 rgba(182, 27, 32, 0.80);
    padding: 5px 10px;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: -12.175px;
    right: 20px;
    left: 20px;
}

.casino-list__card-wrapper-maxaffil {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.casino-list__card-logo-maxaffil {
    border-radius: 5px;
    background: #101726;
    display: flex;
    height: 99px;
    padding: 29.825px 7px 29.175px 8px;
    justify-content: center;
    align-items: center;
    align-self: stretch;
}

.casino-list__card-bonus-maxaffil {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.casino-list__card-details-maxaffil {
    text-align: center;
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 7px 31px;
    margin: 0 auto;
}

.casino-list__card-details-maxaffil>li:nth-child(1),
.casino-list__card-details-maxaffil>li:nth-child(2) {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 5px;
}

.casino-list__card-details-maxaffil>li:nth-child(2) {
    color: #14CC20;
}

.casino-list__card-details-maxaffil>li:nth-child(3),
.casino-list__card-details-maxaffil>li:nth-child(4) {
    font-size: 12px;
}

.casino-list__card-services-maxaffil {
    display: flex;
    gap: 5px;
}

.casino-list__card-services-maxaffil>li>img {
    width: 35px;
    height: 35px;
}

.casino-list__card-review-maxaffil {
    margin: 0 auto;
    color: var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    cursor: pointer;
}

/* How section */
.how-maxaffil {
    padding-bottom: 90px;
}

.how-maxaffil>.container-maxaffil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.how__card-maxaffil {
    border-radius: 10px;
    background-color: #0E0E0F;
    width: 100%;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.how__card-maxaffil>h2 {
    font-size: 24px;
    font-weight: 900;
}

.how__card-maxaffil>ul {
    padding-left: 10px;
}

.how__card-maxaffil>ul>li {
    list-style-type: disc;
}

@media screen and (max-width: 800px) {
    .how-maxaffil>.container-maxaffil {
        grid-template-columns: 1fr;
    }

    .how__img-maxaffil>picture img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 600px) {
    .how-maxaffil {
        padding-bottom: 50px;
    }
}

/* Slider section */
.slider-section-maxaffil {
    padding-bottom: 90px;
}

.slider-section-maxaffil>.container-maxaffil>h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 20px;
}

.slider__slide-maxaffil {
    width: 355px !important;
    height: 100%;
    border-radius: 10px;
    border: 1px solid #1D40C0;
    background-color: #0E0E0F;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.slider__rating-maxaffil {
    width: 100%;
}

.slider__rating-maxaffil,
.slider__rating-maxaffil>span {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 5px;
}

.slider__controls-maxaffil {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.slider__wrapper-maxaffil {
    margin-bottom: 20px;
}

.slider__pagination-maxaffil {
    display: flex;
    justify-content: center;
}

.slider__wrapper_grid-maxaffil {
    display: grid;
    grid-template: auto / repeat(2, 1fr);
    gap: 40px;
}

.slider__controls_n-maxaffil {
    display: none;
}

.slider__wrapper_grid-maxaffil .slider__slide-maxaffil {
    width: 100%;
}

@media (max-width: 991px) {
    .slider__wrapper_grid-maxaffil .slider__slide-maxaffil {
        width: 400px;
    }

    .slider__wrapper_grid-maxaffil {
        display: flex;
        gap: 0;
    }

    .slider__controls_n-maxaffil {
        display: flex;
    }
}

@media (max-width: 600px) {
    .slider-section-maxaffil {
        padding-bottom: 68px;
    }

    .slider__slide-maxaffil {
        width: 312px !important;
    }
}

/* Your-opinion section */
.your-opinion-maxaffil {
    padding-bottom: 90px;
}

.your-opinion-maxaffil>.container-maxaffil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    gap: 20px;
}

.your-opinion__card-maxaffil {
    border-radius: 10px;
    border: 1px solid #1D40C0;
    background-color: #0E0E0F;
    width: 100%;
    padding: 20px;
    display: grid;
    gap: 20px;
}

.your-opinion__card-maxaffil>h2 {
    font-size: 24px;
    font-weight: 900;
}

.your-opinion__card-maxaffil>button {
    max-width: 346px;
}

@media screen and (max-width: 800px) {
    .your-opinion-maxaffil>.container-maxaffil {
        grid-template-columns: 1fr;
    }

    .your-opinion__img-maxaffil>picture>img {
        width: 100%;
        height: 100%;
    }
}

@media screen and (max-width: 600px) {
    .your-opinion-maxaffil {
        padding-bottom: 50px;
    }
}

/* Player-history section */
.player-history-maxaffil {
    padding-bottom: 90px;
}

.player-history__block-maxaffil {
    border-radius: 10px;
    border: 1px solid #1D40C0;
    background-color: #0E0E0F;
    padding: 20px;
    display: grid;
    gap: 20px;
}

.player-history__block-maxaffil>h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 900;
}

.player-history__list-info-maxaffil>li>span,
.player-history__text-group-maxaffil>p:first-child {
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    .player-history-maxaffil {
        padding-bottom: 40px;
    }
}

/* Legal page_____________________________ */
.legal-maxaffil {
    padding: 90px 0;
}

.legal-maxaffil>.container-maxaffil,
.legal__head-maxaffil,
.legal__body-maxaffil {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.legal__head-maxaffil {
    text-align: center;
}

.legal__head-maxaffil>h1 {
    font-size: 24px;
    font-weight: 900;
}

.legal__body-maxaffil>h2 {
    font-size: 20px;
    font-weight: 700;
}

.legal__body-maxaffil>ul {
    padding-left: 20px;
    list-style-type: disc;
}

.legal__body-maxaffil>ul>li {
    list-style-type: disc;
}

@media screen and (max-width: 600px) {
    .legal-maxaffil {
        padding: 30px 0;
    }
}

/* Footer_____________________________ */
.footer-maxaffil {
    border-top: 1px solid #1D40C0;
    background-color: #0E0E0F;
    padding: 100px 0;
}

.footer__disclaimer-maxaffil,
.footer__logos-maxaffil {
    margin-bottom: 40px;
}

.footer__disclaimer-maxaffil {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 20px;
}

.footer__disclaimer-item-maxaffil {
    width: 100%;
}

.footer__disclaimer-item-maxaffil>h2 {
    font-size: 20px;
    font-weight: 900;
}

.footer__logos-maxaffil,
.footer__nav-list-maxaffil {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.footer__logos-maxaffil {
    gap: 25px;
}

.footer__nav-list-maxaffil {
    gap: 40px 75px;
}

.footer__nav-list-maxaffil>li>a {
    color: #7391FF;
    font-size: 16px;
    font-weight: 700;
    border-bottom: 1.5px solid #7391FF;
}

.footer__age-limit-maxaffil {
    color: #7391FF;
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
    font-size: 36px;
    font-weight: 700;
}

@media screen and (max-width: 600px) {
    .footer__disclaimer-maxaffil {
        grid-template-columns: 1fr;
    }

    .footer__logos-maxaffil {
        gap: 40px;
    }

    .footer__nav-list-maxaffil {
        flex-direction: column;
    }
}



/* Popup_____________________________ */
.popup-button-maxaffil {
    width: 100%;
    border-radius: 100px;
    border: 2px solid #1D40C0;
    color: var(--primary-color);
    font-size: 20px;
    font-weight: 700;
    padding: 15px;
    cursor: pointer;
    transition: background-color .2s linear;
}

@media screen and (hover: hover) {
    .popup-button-maxaffil:hover {
        background-color: #1D40C0;
    }
}

.overlay-maxaffil {
    overflow-y: scroll;
    position: fixed;
    inset: 0;
    background-color: rgba(61, 61, 61, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 100;
}

.overlay--hidden-maxaffil {
    display: none;
}

.popup-maxaffil {
    border-radius: 30px;
    background-color: #0E0E0F;
    width: 100%;
    max-width: 816px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

.popup-form-maxaffil {
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
}

/* Ошибка валидации */
.popup-error-maxaffil {
    border: 2px solid #E53935 !important;
}

.popup--hidden-maxaffil {
    display: none;
}

.popup__close-maxaffil {
    width: 100%;
    text-align: right;
    margin-bottom: 25px;
    cursor: pointer;
}

.popup__title-maxaffil {
    text-align: center;
    margin: 0 auto;
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.popup__text-maxaffil {
    color: var(--primary-color);
    font-size: 14px;
    max-width: 674px;
    text-align: center;
    margin: 0 auto;
}

.popup__input-maxaffil,
.popup__textarea-maxaffil {
    width: 100%;
    padding: 24px;
    font-weight: 700;
    border-radius: 5px;
    background-color: #5D5D5D;
    color: rgba(255, 255, 255, 0.8);
}

.popup__input-maxaffil::placeholder,
.popup__textarea-maxaffil::placeholder {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.select__item-maxaffil:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.60);
}

.popup__textarea-maxaffil {
    resize: none;
    height: 100px;
}

/* Кастомный select */
.select-maxaffil {
    width: 100%;
    position: relative;
}

.select__trigger-wrapper-maxaffil {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 24px;
    border-radius: 5px 5px 0 0;
    background: #3B3B3B;
}

.select__trigger-maxaffil {
    width: 100%;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 700;
}

.select__list-maxaffil {
    /* position: absolute;
    top: 100%;
    left: 0; */
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
    width: 100%;
    background: #4a4a4a;
    border-radius: 0 0 5px 5px;
    overflow: hidden;
}

/* .select__list--hidden-maxaffil {
    display: none;
} */

.select__item-maxaffil {
    cursor: pointer;
}

.select__item-maxaffil>span {
    display: block;
    padding: 24px;
}

@media (hover: hover) {
    .select__item-maxaffil:hover {
        background: #5a5a5a;
    }
}

/* Кастомный чекбокс */
.popup__checkbox-maxaffil {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary-color);
}

.popup__checkbox-text-maxaffil {
    cursor: pointer;
}

.popup__checkbox-text-maxaffil a {
    color: #1D40C0;
    border-bottom: 1px solid #1D40C0;
}

/* input скрыт */
.hidden-checkbox-maxaffil {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkbox-maxaffil {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    background-color: var(--primary-color);
    transition: all 0.2s ease;
}

.hidden-checkbox-maxaffil:checked+.custom-checkbox-maxaffil {
    background-color: #4CAF50;
    /* Зеленый фон при выборе */
    border-color: #4CAF50;
}

.custom-checkbox-maxaffil::after {
    content: '';
    display: block;
    width: 8px;
    height: 5px;
    border-bottom: 2px solid var(--primary-color);
    border-left: 2px solid var(--primary-color);
    transform: rotate(-45deg) scale(0);
    /* Скрыта по умолчанию */
    transition: transform 0.2s ease;
    margin-top: 2px;
    margin-left: 2px;
}

.hidden-checkbox-maxaffil:checked+.custom-checkbox-maxaffil::after {
    transform: rotate(-45deg) scale(1);
    /* Показываем галочку */
}

@media screen and (max-width: 600px) {
    .popup-maxaffil {
        padding: 40px 16px;
    }
}