@font-face {
    font-family: "Mulish";
    font-weight: 500;
    font-display: swap;
    src: local(Mulish-Medium),
        url(../fonts/Mulish-Medium.ttf) format('truetype');
}

@font-face {
    font-family: "Mulish";
    font-weight: 600;
    font-display: swap;
    src: local(Mulish-SemiBold),
        url(../fonts/Mulish-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: "Mulish";
    font-weight: 700;
    font-display: swap;
    src: local(Mulish-Bold), url(../fonts/Mulish-Bold.ttf) format('truetype');
}

:root {
    --firstСolor: #FFFFFF;
    --secondaryСolor: #000211;
    --thirdColor: #1A1F37;
    --fourColor: #F7F7F7;
    --fiveColor: #000000;
    --sixColor: ;
    --sevenColor: ;
    --eighthColor: ;
    --nineColor: ;

    --primary-font: "Mulish", Arial, sans-serif;

    --transition-duration: .3s ease-out;
}

body {
    font-family: var(--primary-font);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--secondaryСolor);
    background-color: var(--firstСolor);
    overflow-x: hidden;
}

.main {
    background: #f2f4f6;
    background: linear-gradient(180deg, #f6f7f9 0%, #eef0f3 100%);
    min-height: 50vh;
}
.wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    row-gap: clamp(2rem, 1.4416rem + 2.0779vw, 3rem);
}
@media (max-width: 768px) {
    .wrapper {
        padding: 0 16px;
    }
}
@media (max-width: 480px) {
    .wrapper {
        padding: 0 12px;
    }
}

.h2__title,
.h3__title {
    font-family: var(--primary-font);
    font-weight: 700;
}

h3 {font-size:18px;}

.h2__title {
    font-size: 26px;
    padding-bottom: 12px;
    padding-top: 10px;
    color: var(--secondaryСolor);
}

.h3__title {
    color: var(--secondaryСolor);
}

/* header */

.btn__main-menu,
.btn__reg {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 10px;
    padding: 8px 20px;
    border-radius: 4px;
}

.nav-menu__burger-desc .btn__main-menu,
.nav-menu__burger-desc .btn__reg {
    padding: 8px 20px;
}

.btn__main-menu {
    background-color: #d3302f;
    color: #fff;
    display: flex;
    align-items: center;
}

.btn__main-menu:hover {
    background: rgb(99, 0, 82);
}

.btn__main-menu:active {
    background: #c04d0a;
}

.btn__reg {
    background-color: #292925;
    color: #FFFFFF;
    font-size: 10px;
}


.header__logo {
    line-height: normal;
}

.header {
    background-color: var(--fourColor);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header__control {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: clamp(0.25rem, -0.059rem + 1.412vw, 1rem) 0;
    margin-right: 20px;
}

.control-mob {
    display: none;
}

.nav-menu__burger-desc {
    display: flex;
    align-items: center;

}

.header__control-btn {
    display: flex;
    gap: 8px;
}

.burger__button-mob,
.btn__link-mob {
    display: none;
}

.burger-menu {
    max-width: 100%;
    width: 100%;
}

.nav-menu__name {
    display: none;
    font-size: 16px;
    color: #FFFFFF;
}

.nav-menu__desc {
    display: flex;
    gap: 15px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-menu__desc li {
    display: inline-block;
}

.nav-menu__desc.desktop>.nav-menu__link {
    display: flex;
    align-items: center;
    gap: 4px;
}

.header__nav-menu {
    display: flex;
    gap: 8px;
    margin-left: 24px;
    margin-right: auto;
}

.nav-menu__link {
    font-size: 12px;
}

.header-lang {
    cursor: pointer;
}

.header-lang .choose-lang-list {
    position: absolute;
    background-color: #ECEDEE;
    visibility: hidden;
    z-index: 1000;
}

.header-lang .choose-lang-list {
    border-radius: 8px;
    top: 32px;
    right: 6px;
}

.header-lang .choose-lang-list.show {
    visibility: visible;
}

.header-lang .choose-lang-button {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-lang .choose-lang-button span {
    display: none;
}

.header-lang .flag-lang {
    width: 24px;
    height: 24px;
}

.burger__button-mob {
    width: 24px;
    height: 24px;
    margin-right: 8px;
}

.close-menu-btn {
    display: none;
    padding: 12px;
}

.header__social{
    display: none;
}

.social__btn{
    padding: 8px 16px;
    display: flex;
    gap: 8px;
    align-items: center;
    justify-content: space-between;
    background: rgb(243,243,243);
    background: radial-gradient(circle, rgba(243,243,243,1) 0%, rgba(223,223,223,1) 100%);
    border-radius: 4px;
    width: 156px;
}

.social__btn-img{
    height: 23px;
    width: auto;
}

.social__btn-title{
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-right: auto;
}

.social__btn-name{
    font-weight: 500px;
    font-size: 8px;
    color: var(--fiveColor);
}

.social__btn-desc{
    font-size: 10px;
}

.social__btn-arrow{
    display: flex;
    align-items: center;
}

.social__btn-arrow svg{
    transform: rotate(270deg);
}

/* Background blocks CSS */
.text-block__content,
.articles__block,
.content-info__inner,
.faq-item,
.review-item {
    background: rgb(243,243,243);
    background: linear-gradient(0deg, rgba(243,243,243,1) 0%, rgba(251,251,251,1) 100%);
}

.articles__header-wrapper,
.faq-item__box {
    background: rgb(243,243,243);
    background: linear-gradient(0deg, rgba(243,243,243,1) 0%, rgba(251,251,251,1) 100%);
}

/* // Background blocks CSS */




/* Text block */

.text-block__content {
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
}

.text-block__content p {
    margin: 6px 0;
    display: inline-block;
}

.text-block__content-button {
    font-family: var(--primary-font);
    font-weight: 700;
    color: #1A1F37;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
}

.text-block__content-hidden {
    display: none;
}

.inline-display {
    display: inline;
}

.toggle-icon {
    transition: transform .3s ease-out;
}

.rotate--90 {
    margin-left: 4px;
    transform: rotate(180deg);
}

/* Text block */

/* Articles block  */

.articles__block {
    border-radius: 12px;
}


.articles__header-wrapper {
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}
@media (max-width: 480px) {
    .articles__block .articles__header-wrapper {
        padding: 14px 12px;
    }
    .articles-item-title {
        font-size: 0.95rem;
    }
}

.articles__header-wrapper img {
    transform: rotate(180deg);
}

.articles__header-wrapper img.open {
    transform: rotate(0deg);
}

.articles__items-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height .5s ease-in-out;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}

.articles__items-wrapper.show {
    max-height: 1000px;
}

.articles-item {
    display: flex;
    flex: 0 0 50%;
    align-items: center;
    padding: 12px;
    border-radius: 4px;
}

.articles-item__image {
    border-radius: 4px;
    background-color: #d3302f;
    padding: 4px;
    margin-right: 8px;
}

.articles-item:hover {
    background: #fcdfe4;
}

/* Articles block  */

/* Text noblock  */

.text-noblock__content {
    padding: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
}

.text-noblock__content p,
.content-info__text-p {
    margin: 6px 0;
    display: inline-block;
}

.btn__link-content,
.btn__link-content2,
.footer-soc {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: clamp(0.625rem, 0.464rem + 0.714vw, 1rem);
    color: #FFF;
    padding: clamp(0.5rem, 0.294rem + 0.941vw, 1rem) clamp(1.563rem, 1.176rem + 1.765vw, 2.5rem);
    border-radius: 4px;
    margin: clamp(1rem, 0.786rem + 0.952vw, 1.5rem) auto 0;
    background: #d3302f;
}

.btn__link-content:hover,
.btn__link-content2:hover {
    background: rgb(87, 91, 168);
}

.btn__link-content:active,
.btn__link-content2:active {
    background: rgb(32, 41, 211);
}

.h2__main-title {
    color: var(--secondaryСolor);
    margin-top:25px;
}

/* Text noblock  */

/* Content info  */
.content-info__inner {
    border-radius: 12px;
    font-size: 14px;
}

.content-info__row {
    display: flex;
    margin: 0 16px;
}

.content-info__block-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.content-info__name-title {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 14px;
}

.content-info__name,
.content-info__desc {
    padding: 10px 3px;
    flex: 0 0 50%;
}

.content-info__text-list {
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.content-info__text-item {
    list-style: auto;
    margin-left: 30px;
}

/* Content info  */

/* FAQ Review*/

.faq-content,
.review-content {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.faq-item,
.review-item {
    cursor: pointer;
    border-radius: 12px;
}

.faq-item-header-wrapper,
.review-item-header-wrapper {
    transition: opacity .3s ease-out;
    padding: 16px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 12px;
}

.faq-item__title {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 16px;
}

.faq-item-content,
.review-item-content {
    padding: 12px 16px 16px;
}

.faq-item-content-hidden.open,
.review-item-content-hidden.open {
    display: block;
}

.faq-item-content-hidden,
.review-item-content-hidden {
    display: none;
}

.rotate-180 {
    transform: rotate(180deg);
}

.faq-content {
    row-gap: 12px;
}

.faq-pagination,
.review-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
}

.faq-pagination-prev-button:disabled,
.faq-pagination-next-button:disabled,
.review-pagination-prev-button:disabled,
.review-pagination-next-button:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.faq-pagination-prev-button,
.faq-pagination-next-button,
.review-pagination-prev-button,
.review-pagination-next-button {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #F7F7F7;
    -webkit-box-shadow: 0px 0px 10px 2px rgba(167, 167, 167, 0.3);
    -moz-box-shadow: 0px 0px 10px 2px rgba(167, 167, 167, 0.3);
    box-shadow: 0px 0px 10px 2px rgba(167, 167, 167, 0.3);
}

.faq-pagination-prev-button img,
.review-pagination-prev-button img {
    z-index: 2;
    transform: rotate(90deg);
}

.faq-pagination-next-button img,
.review-pagination-next-button img {
    z-index: 2;
    transform: rotate(270deg);
}

.faq-pagination-label,
.review-pagination-label {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 16px;
    width: 90px;
    text-align: center;
    line-height: 20px;
    letter-spacing: 0;
    color: #737588;
}

.block-title__user {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.review-item__title,
.review-item__data {
    color: #080D25;
}

.review-item__title {
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: 16px;
}

.review-item__data {
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 14px;
}

.review-content {
    row-gap: 8px;
}

.review-item__item {
    padding: 24px 16px;
}

.review-item__top-title,
.review-item__rating-list,
.review-item__block-title {
    display: flex;
}

.review-item__top-title {
    margin-bottom: 16px;
    align-items: center;
    justify-content: space-between;
}

.review-item__block-title {
    gap: 8px;
}

.review-item__btn-more {
    margin-top: 16px;
}

/* Blocks: Содержание, Описание, FAQ, Отзывы (front/casino/archive) — фон секций */
.blocks-toc-section,
.blocks-description-section,
.blocks-faq-section,
.blocks-ask-question-section,
.blocks-reviews-section,
.review-form-block,
.slot-form-block,
.slots-slider-section,
.text-block__content {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    border: 1px solid rgba(0,0,0,.05);
}
@media (max-width: 768px) {
    .blocks-toc-section,
    .blocks-description-section,
    .blocks-faq-section,
    .blocks-ask-question-section,
    .blocks-reviews-section,
    .review-form-block,
    .slot-form-block,
    .slots-slider-section,
    .text-block__content {
        padding: 18px 16px;
        border-radius: 10px;
    }
    .blocks-toc-section__heading,
    .h2__main-title,
    .h2__title {
        font-size: 1.2rem;
    }
}
@media (max-width: 480px) {
    .blocks-toc-section,
    .blocks-description-section,
    .blocks-faq-section,
    .blocks-ask-question-section,
    .blocks-reviews-section,
    .review-form-block,
    .slot-form-block,
    .slots-slider-section,
    .text-block__content {
        padding: 16px 12px;
    }
}
.blocks-toc-section {
    margin-top: 2rem;
    margin-bottom: 1.5rem;
}
.blocks-toc-section__heading {
    margin-bottom: 12px;
    font-size: 1.25rem;
}
.blocks-description-section {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
}
.blocks-description-text {
    margin-top: 8px;
}
.blocks-casino-rating {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    background: transparent;
    padding: 0;
    box-shadow: none;
    border: none;
}
.blocks-casino-rating .h2__title {
    margin-bottom: 1rem;
}
.front-description-block {
    margin-top: 1rem;
}
.front-demo-block {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

/* FAQ: improved visual (thefunkyloft-style) */
.faq,
.blocks-faq-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.faq .h2__title,
.blocks-faq-section .h2__title {
    margin-bottom: 1.25rem;
    color: var(--thirdColor, #1A1F37);
}
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.faq-item {
    background: #f5f5f5;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    transition: box-shadow .2s ease;
}
.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.faq-item-header-wrapper,
.faq-item__box {
    background: #f5f5f5;
    padding: 16px 20px;
    min-height: 24px;
}
.faq-item__title {
    font-size: 1rem;
    font-weight: 600;
    color: #1A1F37;
    margin: 0;
    padding-right: 28px;
}
.faq-item-content,
.faq-item-content-hidden {
    padding: 0 20px 16px;
    color: #333;
    line-height: 1.5;
}
@media (max-width: 768px) {
    .faq-item-header-wrapper,
    .faq-item__box {
        padding: 14px 16px;
    }
    .faq-item__title {
        font-size: 0.95rem;
        padding-right: 32px;
    }
    .faq-item-content,
    .faq-item-content-hidden {
        padding: 0 16px 14px;
    }
}
@media (max-width: 480px) {
    .faq .h2__title,
    .blocks-faq-section .h2__title {
        font-size: 1.1rem;
    }
}

/* Отзывы: improved cards (thefunkyloft-style) */
.review,
.blocks-reviews-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
}
.review .h2__title,
.blocks-reviews-section .h2__title {
    margin-bottom: 1.25rem;
    color: var(--thirdColor, #1A1F37);
}
.review-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-item,
.review-item__item {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
    border: 1px solid rgba(0,0,0,.06);
    transition: box-shadow .2s ease;
}
.review-item:hover,
.review-item__item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
}
.review-item__top-title {
    margin-bottom: 12px;
}
.review-item__rating-img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
}
.review-item-content {
    color: #333;
    line-height: 1.5;
    font-size: 15px;
}
@media (max-width: 768px) {
    .review-item,
    .review-item__item {
        padding: 16px;
    }
    .review-item__top-title {
        flex-wrap: wrap;
        gap: 8px;
    }
    .review-item__title {
        font-size: 0.95rem;
    }
}
@media (max-width: 480px) {
    .review .h2__title,
    .blocks-reviews-section .h2__title {
        font-size: 1.1rem;
    }
}

/* Form block under reviews */
.review-form-block {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 24px;
    background: #f9f9f9;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.06);
}
.review-form-block .h2__title {
    margin-bottom: 1rem;
    color: var(--thirdColor, #1A1F37);
}

/* Форма отзыва и форма «Задать вопрос» — общий визуал */
.slot-form-block,
.blocks-ask-question-section {
    margin-top: 2rem;
    margin-bottom: 2rem;
    padding: 28px 24px;
    background: #fff;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,.08);
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.slot-form-block .h2__title,
.blocks-ask-question-section .h2__title {
    margin-bottom: 1.25rem;
    color: var(--thirdColor, #1A1F37);
    font-size: 1.25rem;
}
.slot-submit-review-form,
.slot-submit-faq-form {
    display: block;
    margin: 0;
}
.slot-submit-review-form {
    max-width: 560px;
}
.slot-submit-faq-form {
    width: 90%;
    max-width: 100%;
}
.slot-submit-faq-form .slot-form-field {
    display: block;
    width: 100%;
}
.slot-submit-faq-form .slot-form-field textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 160px;
    box-sizing: border-box;
}
.slot-submit-faq-form .slot-form-submit {
    display: block;
    width: 100%;
    margin-top: 1.5rem;
    padding-top: 0;
}
.slot-submit-faq-form .slot-form-submit input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}
.slot-form-row {
    margin-bottom: 1.25rem;
}
.slot-form-row--inline {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem 1.5rem;
    align-items: end;
}
.slot-form-field {
    margin: 0 0 1.25rem;
}
.slot-form-field--rating {
    margin-bottom: 0;
}
.slot-form-field label,
.slot-submit-review-form label,
.slot-submit-faq-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
    color: #1A1F37;
}
.slot-submit-review-form input[type="text"],
.slot-submit-review-form select,
.slot-submit-review-form textarea,
.slot-submit-faq-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    font-family: var(--primary-font);
    font-size: 15px;
    line-height: 1.4;
    color: #1A1F37;
    background: #fafafa;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.slot-submit-review-form input[type="text"]::placeholder,
.slot-submit-review-form textarea::placeholder,
.slot-submit-faq-form textarea::placeholder {
    color: #888;
}
.slot-submit-review-form input[type="text"]:focus,
.slot-submit-review-form select:focus,
.slot-submit-review-form textarea:focus,
.slot-submit-faq-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: #d3302f;
    box-shadow: 0 0 0 2px rgba(211, 48, 47, .15);
}
.slot-submit-review-form textarea,
.slot-submit-faq-form textarea {
    min-height: 120px;
    resize: vertical;
}
/* Оценка звёздами (1–5) */
.slot-rating-stars {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.slot-star {
    cursor: pointer;
    margin: 0;
}
.slot-star input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.slot-star span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #666;
    background: #f0f0f0;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: background .2s ease, border-color .2s ease, color .2s ease;
}
.slot-star:hover span {
    background: #ffe0e0;
    border-color: #d3302f;
    color: #d3302f;
}
.slot-star input:focus-visible + span {
    box-shadow: 0 0 0 2px rgba(211, 48, 47, .35);
}
.slot-star input:checked + span {
    background: #d3302f;
    border-color: #d3302f;
    color: #fff;
}
.slot-form-submit {
    display: block;
    margin: 0;
    padding-top: 0.25rem;
}
.slot-submit-review-form .slot-form-submit {
    margin-top: 1.5rem;
    width: 100%;
}
.slot-submit-review-form .slot-form-submit input[type="submit"] {
    display: block;
    width: 100%;
    max-width: 280px;
}
.slot-submit-review-form input[type="submit"],
.slot-submit-faq-form input[type="submit"] {
    padding: 12px 28px;
    font-family: var(--primary-font);
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    background: #d3302f;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background .2s ease, transform .1s ease;
}
.slot-submit-review-form input[type="submit"]:hover,
.slot-submit-faq-form input[type="submit"]:hover {
    background: #b82827;
}
.slot-submit-review-form input[type="submit"]:active,
.slot-submit-faq-form input[type="submit"]:active {
    transform: scale(0.98);
}
.slot-form-message {
    margin: 0 0 1rem;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
}
.slot-form-success {
    background: #e8f5e9;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, .3);
}
.slot-form-block--review .slot-submit-review-form .slot-form-submit:last-child,
.slot-form-block--review .slot-submit-review-form .slot-form-field:last-of-type,
.slot-submit-faq-form .slot-form-submit:last-child {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .slot-form-row--inline {
        grid-template-columns: 1fr;
    }
    .slot-form-field--rating {
        margin-bottom: 1.25rem;
    }
}
@media (max-width: 480px) {
    .slot-submit-faq-form {
        width: 100%;
    }
    .slot-submit-review-form .slot-form-submit input[type="submit"],
    .slot-submit-faq-form .slot-form-submit input[type="submit"] {
        max-width: 100%;
    }
}

/* FAQ Review*/

/* Footer */



.footer {
    padding: 44px 0;
}

.footer-top,
.footer-bottom{
    padding: 0 24px;
    border-top: 1px solid #F4F4F4;
}

.footer__menu-list,
.footer__control{
    margin-top: 32px;
}

.footer__menu-list{
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
}

.footer__control{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.footer__mob-list,
.footer__social-list{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-bottom{
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
}

.footer-bottom__column{
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

@media(max-width:660px) {
    .footer__menu-list {
        gap: 10px;
    }

    .footer-bottom{
        flex-direction: column;
    }
}


/* Footer */

/* Swiper */

.swiper-pagination {
    padding-top: 16px;
    position: relative !important;
}

.swiper-pagination-bullet-active {
    background-color: #4D8AB9 !important;
}

/* Swiper */

/* 404 */
.nopage {
    padding: clamp(0.625rem, -1.8589rem + 11.0396vw, 8.125rem) 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nopage__text-block {
    max-width: 682px;
    display: flex;
    flex-direction: column;
    flex: 2;
}

.nopage__image {
    padding: 24px 0;
    flex: 1;
}

.nopage__title {
    font-family: var(--primary-font);
    font-weight: 600;
    font-size: 24px;
    color: #000211;
}

.nopage__404{
    font-weight: 700;
    font-size: clamp(7.5rem, 4.7078rem + 10.3896vw, 12.5rem);
    color: #d3302f;
    line-height: 1;
}

.nopage__desc {
    font-family: var(--primary-font);
    font-weight: 500;
    font-size: 16px;
    color: #000211;
    padding: 16px 0;
}

.nopage__img {
    width: 100%;
}

.nopage__text-block .btn__link-content2{
    margin: 0;
    margin-right: auto;
}

@media(max-width:500px) {
    .nopage{
        flex-direction: column;
        text-align: center;
    }
    .nopage__text-block .btn__link-content2{
        margin-right: auto;
        margin-left: auto;
    }
}

/* 404 */

/* Стили для новой таблицы казино - перенесены из index.html */
.casino-rating-table {
    width: 100%;
    border-collapse: separate; /* Используем separate для border-radius на tr */
    border-spacing: 0;
    margin-top: 20px;
    margin-bottom: 20px;
    font-family: var(--primary-font, "Mulish", Arial, sans-serif);
}

.casino-rating-table tr {
    background-color: #fff;
    border-radius: 8px; /* Закругление для строк */
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    margin-bottom: 10px; /* Отступ между строками, если border-collapse: separate */
    display: flex; /* Для выравнивания элементов в строке */
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #EFEFEF; /* Граница для каждой строки */
}
 .casino-rating-table tr:first-child { /* Убираем верхнюю границу у первой строки, если она не нужна */
    border-top: 1px solid #EFEFEF;
}


.casino-rating-table td {
    padding: 10px;
    vertical-align: middle;
    border: none; /* Убираем стандартные границы ячеек */
}

.casino-rating-table .rank-cell {
    background-color: #E8526F;
    color: white;
    font-weight: bold;
    text-align: center;
    border-radius: 4px;
    padding: 8px 12px;
    margin-right: 15px; /* Отступ справа от номера */
    min-width: 40px; /* Минимальная ширина для номера */
    display: inline-block; /* Чтобы padding и text-align работали как надо */
    line-height: 1.2;
}

.casino-rating-table .logo-cell img {
    max-height: 40px; /* Максимальная высота логотипа */
    width: auto; /* Автоматическая ширина для сохранения пропорций */
    display: block;
}
 .casino-rating-table .logo-cell {
    width: 150px; /* Фиксированная ширина для лого */
}


.casino-rating-table .rating-cell {
    color: #FFC107; /* Цвет звезд */
    font-size: 20px; /* Размер звезд */
    white-space: nowrap; /* Предотвращаем перенос звезд */
    width: 120px; /* Примерная ширина для звезд */
}
 .casino-rating-table .rating-cell span { /* Для каждой звезды */
    margin-right: 2px;
}


.casino-rating-table .bonus-cell {
    background-color: #E6F4EA; /* Светло-зеленый фон */
    color: #3C763D; /* Темно-зеленый текст */
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 12px;
    text-align: center;
    margin-left: auto; /* Сдвигаем бонус вправо, если есть место */
    margin-right: 15px;
    white-space: nowrap;
}
 .casino-rating-table .bonus-cell-placeholder { /* Для строк без бонуса */
    min-width: 100px; /* Примерная ширина, чтобы выровнять кнопки */
    margin-left: auto;
    margin-right: 15px;
}


.casino-rating-table .action-cell {
    text-align: right;
    margin-left: auto; /* Кнопка всегда справа */
}

.casino-rating-table .action-cell .btn-casino {
    background-color: #d3302f;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    white-space: nowrap;
    transition: background-color 0.3s ease;
}

.casino-rating-table .action-cell .btn-casino:hover {
    background-color: #D9203E; /* Более темный оттенок при наведении */
}

/* Адаптивность для таблицы казино - перенесена из index.html */
@media (max-width: 768px) {
    .casino-rating-table tr {
        flex-wrap: wrap; /* Разрешаем перенос элементов */
        padding: 10px;
    }
    .casino-rating-table .rank-cell {
        margin-right: 10px;
        padding: 6px 10px;
         font-size: 14px;
    }
    .casino-rating-table .logo-cell {
        width: auto; /* Автоматическая ширина для лого на мобильных */
        margin-bottom: 5px; /* Небольшой отступ снизу */
        flex-basis: calc(60% - 50px); /* Занимает часть строки минус номер */
    }
     .casino-rating-table .logo-cell img {
        max-height: 30px;
    }
    .casino-rating-table .rating-cell {
        font-size: 18px;
        width: auto;
        margin-bottom: 5px;
         flex-basis: calc(40% - 10px);
         text-align: right;
    }
    .casino-rating-table .bonus-cell,
    .casino-rating-table .bonus-cell-placeholder {
        flex-basis: 100%; /* Бонус или плейсхолдер на всю ширину */
        margin-left: 0;
        margin-right: 0;
        margin-top: 5px;
        margin-bottom: 10px;
        text-align: center;
    }
    .casino-rating-table .action-cell {
         flex-basis: 100%; /* Кнопка на всю ширину */
         text-align: center; /* Центрируем кнопку */
         margin-left: 0;
    }
    .casino-rating-table .action-cell .btn-casino {
        width: 100%;
        padding: 12px;
    }
}
 @media (max-width: 480px) {
    .casino-rating-table .logo-cell {
         flex-basis: calc(100% - 60px); /* Логотип занимает больше места */
         margin-bottom: 8px;
    }
    .casino-rating-table .rating-cell {
         flex-basis: 100%;
         text-align: left; /* Звезды слева под лого */
         margin-bottom: 8px;
    }
}
/* Конец стилей для таблицы казино */


@media(max-width:1025px) {

    .header__logo,
    .header__control {
        padding-right: 8px;
    }

    .wrapper {
        padding: 0 8px;
    }

    .burger-menu.active {
        transition: .5s;
        left: 0;
    }

    .footer-first__list,
    .footer-fourth__list {
        flex-wrap: wrap;
        white-space: nowrap;
    }
}

@media(max-width:870px) {
    .header__control {
        order: 1
    }

    .header__nav-menu {
        order: 2;
        margin: 0;
    }

    .burger__button-mob {
        order: 3;
    }

    .header-lang {
        order: 4;
    }

    .control-mob {
        display: block;
        margin-left: auto !important;
    }

    .header__nav-menu {
        padding-top: 32px;
    }

    .nav-menu__name {
        display: block;
    }

    .header__nav-menu {
        gap: 32px;
    }

    .burger__button-mob {
        display: block;
        margin-left: 8px;
    }

    .nav-menu__desc {
        flex-direction: column;
        row-gap: 16px;
    }

    .header-lang .choose-lang-button span {
        display: block;
    }

    .header__inner {
        flex-wrap: wrap;
    }

    .burger-menu {
        max-width: 100%;
        width: 100%;
        display: flex;
        justify-content: flex-end;
        backdrop-filter: blur(10px);
        position: fixed;
        right: 0;
        top: 0;
        bottom: 0;
        left: 100%;
        z-index: 999;
        transition: .5s;
    }

    .nav-menu__burger-mob {
        max-width: 300px;
        width: 100%;
        background: var(--firstСolor);
        height: 100vh;
        border-radius: 16px 0 0 16px;
        padding: 28px 24px;
    }

    .nav-menu__burger-mob,
    .header__nav-menu {
        display: flex;
        flex-direction: column;
    }

    .nav-menu__burger-desc {
        align-items: normal;
    }

    .header__control {
        margin: 0;
        padding: 0;
    }

    .close-menu-btn {
        margin-left: auto;
        display: block;
    }

    .header-lang .choose-lang-list {
        position: absolute;
        flex-direction: column;
        border-radius: 8px;
        top: 40px;
        right: 0;
    }

    .header-lang {
        margin-top: 32px;
        margin-right: auto;
        display: inline-block;
        border-radius: 4px;
        padding: 10px 8px;
        background-color: #F3F3F3;
        font-size: 12px;
    }

    .header__logo {
        padding: 17px 0 17px 8px;
    }

    .header__social{
        display: flex;
        flex-direction: column;
        gap: 8px;
        order: 4;
        margin-top: 32px;
    }

    .articles__items-wrapper {
        flex-direction: column;
    }

    .footer__info {
        width: 100%;
    }

    .footer__first {
        flex-direction: column;
        gap: 20px;
    }

    .footer-menu {
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer__social {
        flex-direction: column;
    }

}

@media(max-width:500px) {
    .header__inner {
        padding: 0;
    }

    .header__control-btn {
        gap: 5px;
    }

    .logo__img {
        width: 100px;
    }

    .footer-social__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn__main-menu,
    .btn__reg {
        padding: 3px 10px;
    }

    .footer-applications__list {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-soc{
        padding: 8px 20px;
    }

    .info__unner{
        flex-direction: column;
        align-items: flex-start;
    }
}

/* banner */

.banner{
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: clamp(2rem, 1.4416rem + 2.0779vw, 3rem);;
}

.banner-swiper .swiper-slide,
.banner-content__link{
    max-width: 1200px;
    height: clamp(8.375rem, 1.8831rem + 24.1558vw, 20rem);
    border-radius: 16px;
    overflow: hidden;
}

.banner__img,
.categories__cart-img,
.banner-content__img{
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.banner-swiper-pagination{
    position: absolute;
    text-align: center;
    z-index: 10;
}

.banner-swiper .swiper-pagination-bullet{
    width: clamp(3.5rem, 3.2208rem + 1.039vw, 4rem);
    height: clamp(0.25rem, 0.1104rem + 0.5195vw, 0.5rem);
    background-color: #292925;
    border-radius: 28px;
    opacity: 1;
}

.banner-swiper .swiper-pagination-bullet-active{
    background-color: #d3302f!important;
}



@media(max-width:1025px) {

    .banner{
        padding: 0 8px;
    }

}

/* categories */

.categories__cart{
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.categories__cart-name{
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-weight: 500;
    color: var(--firstСolor);
    font-size: 28px;
}

.categories-swiper-button-next,
.betting-swiper-button-next{
    width: 32px;
    height: 32px;
    background-color: rgba(159, 159, 189, 0.56);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    top: 46%;
    margin-top: 0;
}

.categories-swiper-button-next::after,
.betting-swiper-button-next::after{
    content: 'next';
    font-size: 10px;
    color: var(--firstСolor);
}

/* betting */

.betting__cart{
    padding: 13px;
    border-radius: 8px;
    overflow: hidden;
    background-image: url(../img/betting/Soccer.webp);
    background-size: cover;
    background-position: center;
    color:var(--firstСolor);
    font-weight: 500;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.betting__cart-top{
    display: flex;
    align-items: center;
    gap: 8px;
}

.betting__cart-sep{
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #8A8AAE;
}

.betting__cart-logo-name,
.betting__cart-control-name{
    color: #8A8AAE;
}

.betting__cart-content{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.betting__cart-block-text{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.betting__cart-control{
    display: flex;
    justify-content: center;
    gap: 4px;
    border-radius: 4px;
    text-align: center;
}

.betting__cart-control-column{

    padding: 5px 9px;
    flex: 1;
    background-color: rgba(35, 29, 52, 0.4);
}

.betting__cart-control-name {
    color: #8A8AAE;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100px;
    text-align: center;
    margin: 0 auto;
}

.block {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFF;
  border-radius: 8px;
  padding: 10px;
  height: 90px;
  margin: 10px 0;
  border:1px solid #CFCFCF;
}
.block-first {
  border:2px solid #d3302f;
}
.block__item {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.block__item-left {
  flex-direction: column;
}
.block__rank {
  background: #EF233B;
  color: white;
  font-size: 18px;
  font-weight: bold;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.block__logo {
  height: 100%;
  width: 125px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.block__logo img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}
.block__stars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  color: #f4c042;
  font-size: 18px;
  margin: 0 0 0 40px;
}
.block__star { /* В файле нет отдельных стилей для .block__star, если нужны — можно добавить. */ }
.block__bonus {
  white-space: pre-wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: rgba(46, 224, 103, 0.13);
  color: #058821;
  padding: 10px 30px;
  border-radius: 80px;
  font-size: 14px;
}
.block__button {
  white-space: nowrap;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  background: #d3302f;
  color: white !important;
  padding: 10px 40px;
  border-radius: 60px;
  font-weight: bold;
  text-decoration: none !important;
  transition: all .3s ease;
}
.block__button:hover {
  background: #e84162;
}
/* Адаптивные стили */
@media(max-width: 1100px) {
  .block__stars {
    margin: 0 0 0 auto;
  }
}
@media(max-width: 992px) {
  .block {
    flex-direction: column;
    height: auto;
    gap: 10px;
  }
  .block__stars {
    gap: 5px;
  }
  .block__item {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .block__logo {
    width: 100px;
    height: 55px;
    min-width: 0;
  }
  .block__logo img {
    max-height: 55px;
    max-width: 100px;
  }
  .block__rank {
    height: 55px;
    width: 20px;
  }
  .block__bonus {
    width: 100%;
    max-height: 46px;
    line-height: 16px;
    text-align: center;
    padding: 4px;
  }
  .block__button {
    width: 100%;
    padding: 10px 4px;
  }
  .block__item-left {
    flex-direction: column;
  }
}
/* Рейтинг казино — узкие экраны: без обрезки звёзд, удобная кнопка */
@media (max-width: 768px) {
  .block {
    padding: 12px 10px;
    margin: 10px 0;
    min-width: 0;
    overflow: hidden;
  }
  .block__item {
    flex-wrap: wrap;
    gap: 8px;
  }
  .block__rank {
    width: 36px;
    height: 36px;
    min-height: 36px;
    font-size: 16px;
  }
  .block__logo {
    width: 80px;
    height: 44px;
    min-width: 0;
  }
  .block__logo img {
    max-height: 44px;
    max-width: 80px;
  }
  .block__stars {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin: 4px 0 0;
    gap: 4px;
    min-width: 0;
  }
  .block__stars .block__star {
    flex-shrink: 0;
  }
  .block__stars .block__star img {
    width: 24px;
    height: 24px;
  }
  .block__button {
    width: 100%;
    padding: 12px 16px;
    margin-top: 4px;
    border-radius: 8px;
  }
}
@media (max-width: 480px) {
  .blocks-casino-rating .h2__title,
  .block + .block {
    margin-top: 0.5rem;
  }
  .block__stars .block__star img {
    width: 22px;
    height: 22px;
  }
}
.iframe-casino-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #18181a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
}
.iframe-casino-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}

/* Адаптив для мобильных */
@media (max-width: 700px) {
  .iframe-casino-wrapper {
    max-width: 100vw;
    border-radius: 8px;
    aspect-ratio: 4/5;
    min-height: 320px;
  }
}

.iframe-casino-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 32px auto;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #18181a;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.iframe-casino-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: transparent;
}
.aviator-cover {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 2;
  background: #111;
}
.aviator-cover__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
}
.aviator-cover__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.aviator-cover__btn {
  padding: 12px 36px;
  font-size: 19px;
  border: none;
  border-radius: 8px;
  margin: 0;
  cursor: pointer;
  font-weight: 700;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: background .2s;
  display: block;
  width: 260px;
  max-width: 100%;
  text-align: center;
}
.aviator-cover__btn--demo {
  background: #FFF;
  color: #222;
  text-decoration: none;
}
.aviator-cover__btn--demo:hover {background: #d9203e;}
.aviator-cover__btn--casino {
    background: #d3302f;
    color: #fff;
}
.aviator-cover__btn--casino:hover {background: #f7c200;}

@media (max-width: 700px) {
  .iframe-casino-wrapper {
    max-width: 100vw;
    border-radius: 8px;
    aspect-ratio: 4/5;
    min-height: 320px;
  }
  .aviator-cover__btn {font-size: 15px; padding: 10px 10px; width: 95vw;}
}


.text-block-content ul, .text-block-second-content ul {
    padding-left: 25px;
    list-style-type: disc;
    margin-bottom: 15px;
}

.text-block-content ul, .text-block-second-content ul {
    padding-left: 25px;
    list-style-type: disc;
    margin-bottom: 15px;
}


.text-block-content ul li::marker, .text-block-second-content ul li::marker {
    color: black;
}

.text-block-second-content h3 {
    margin-top: 20px;
    margin-bottom: 5px;
}

.articles__items-wrapper .articles-item-title {
    margin-left: 40px;
    position: relative;
}

.articles__items-wrapper .articles-item-title:before {
    content: '';
    background-image: url('../img/icons/zap_icon.svg');
    background-color: #d3302f;
    width: 20px;
    height: 20px;
    position: absolute;
    background-repeat: no-repeat;
    margin-left: -32px;
    margin-top: 2px;
    background-position: center;
    border-radius: 5px;
}
table {border-collapse: collapse; margin: 0 auto; text-align: center; min-width: 600px;margin-top:10px;margin-bottom:10px;}
ul {margin-top:10px;margin-bottom:10px;}
ol {margin-top:10px;margin-bottom:10px;}