@font-face {
    font-family: Poppins;
    src: url('../fonts/poppins-bold.woff2');
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url('../fonts/poppins-semibold.woff2');
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: Poppins;
    src: url('../fonts/poppins-regular.woff2');
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: Candal;
    src: url('../fonts/candal-regular.woff2');
    font-display: swap;
}

/* ===== Переменные ===== */
:root {
    --container-width: 1240px;
    --container-step: 20px;
    --container-step-tablet: 18px;
    --container-step-mobile: 16px;
    --container: calc(var(--container-width) + (var(--container-step) * 2));
    --font-family: 'Poppins', sans-serif;
    --second-family: 'Candal', sans-serif;
}

/* ===== Базовые ===== */
body {
    margin: 0;
    background: #131a21;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 var(--container-step);
    display: flex;
    flex-direction: column;
    gap: 40px;
    flex-wrap: wrap;
    box-sizing: border-box;
}

@media (max-width: 991px) {
    .container {
        padding: 0 var(--container-step-tablet);
        gap: 30px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 var(--container-step-mobile);
        gap: 20px;
    }
}

h1 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 44px;
    line-height: 120%;
    color: #fff4ed;
    margin: 0px;
}

@media (max-width: 991px) {
    h1 {
        font-size: 35px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 26px;
    }
}

h2 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 38px;
    line-height: 120%;
    color: #fff4ed;
    margin: 0px;
}

@media (max-width: 991px) {
    h2 {
        font-size: 29px;
    }
}

@media (max-width: 600px) {
    h2 {
        font-size: 20px;
    }
}

h3 {
    font-family: var(--second-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 120%;
    color: #fff4ed;
    margin: 0px;
    margin-bottom: 14px;
}

@media (max-width: 991px) {
    h3 {
        font-size: 19px;
    }
}

@media (max-width: 600px) {
    h3 {
        font-size: 18px;
    }
}

p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: rgba(255, 244, 237, 0.8);
    margin: 0px;
}

@media (max-width: 991px) {
    p {
        font-size: 15px;
    }
}

@media (max-width: 600px) {
    p {
        font-size: 14px;
    }
}

ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    margin: 0px;
    padding: 0px;
}

a {
    text-decoration: none;
    color: unset;
}

section {
    padding: 40px 0px;
}

@media (max-width: 600px) {
    section {
        padding: 20px 0px;
    }
}

.content_div {
    display: flex;
    gap: 40px;
    padding: 40px;
    box-sizing: border-box;
    width: 100%;
    background: linear-gradient(180deg, #190909 0%, #47190d 100%);
    border-radius: 30px;
    align-items: center;
    position: relative;
}

.bg {
    background: linear-gradient(
            0deg,
            rgba(50, 17, 11, 0.6),
            rgba(50, 17, 11, 0.6)
        ),
        url('../images/main_bg.webp') no-repeat center;
    background-size: cover;
    width: 100%;
}

.btn {
    border-radius: 10px;
    padding: 12px 0px;
    max-width: 246px;
    background: linear-gradient(
        90deg,
        #ffbf22 0%,
        #ffdf7f 50.97%,
        #ffbf22 100%
    );
    font-family: var(--font-family);
    font-weight: 600;
    font-size: 16px;
    line-height: 150%;
    color: #250d0a;
    width: 100%;
    display: flex;
    justify-content: center;
}

header {
    backdrop-filter: blur(10px);
    background: linear-gradient(180deg, #190909 0%, #47190d 100%);
    padding: 14px 0px;
}

header .container {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.nav-list {
    flex-direction: row;
    gap: 40px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: rgba(255, 244, 237, 0.8);
}

.nav-link .active {
    font-weight: 700;
}

.hero {
    padding-top: 100px;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 24px;
    max-width: 773px;
    width: 67%;
}

.hero-image {
    position: absolute;
    bottom: 0px;
    right: 43px;
}

.feature-text {
    display: flex;
    flex-direction: column;
    align-items: start;
    gap: 20px;
    flex: 1;
}

.feature-logo {
    min-width: 0px;
    flex: 1;
    max-width: 452px;
    width: 100%;
}

.content_div.about-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content_div.contact-content {
    flex-direction: column;
    align-items: center;
}

.contact-form {
    max-width: 804px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.contact-form h2 {
    text-align: center;
}

.contact-email {
    display: flex;
    align-items: center;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff4ed;
    gap: 12px;
}

.form-fields {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 16px;
}

label {
    width: 100%;
    display: flex;
    flex-direction: column;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff4ed;
    gap: 8px;
}

input {
    border-radius: 10px;
    padding: 14px 16px;
    box-sizing: border-box;
    width: 100%;
    background: rgba(120, 80, 65, 0.6);
    border: 0px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: rgba(255, 244, 237, 0.8);
}

textarea {
    border-radius: 10px;
    padding: 14px 16px;
    box-sizing: border-box;
    width: 100%;
    background: rgba(120, 80, 65, 0.6);
    border: 0px;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: #fff4ed;
}

img.contact-image {
    max-width: 804px;
    width: 100%;
}

.site-footer {
    background: linear-gradient(180deg, #190909 0%, #47190d 100%);
    padding: 40px 0px;
}

.footer-info {
    display: flex;
    gap: 24px;
    align-items: center;
}

.footer-info p {
    color: #fff4ed;
}

.footer-policies {
    display: flex;
    gap: 20px;
}

.cookie-policy {
    flex: 1;
}

.age-check {
    flex: 1;
}

.responsible-gaming {
    width: 100%;
}

.responsible-gaming h3 {
    margin-bottom: 16px;
}

.responsible-gaming-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}

.responsible-gaming-logos a {
    display: flex;
    align-items: center;
    transition: opacity 0.3s ease;
}

.responsible-gaming-logos a:hover {
    opacity: 0.8;
}

.responsible-gaming-logos img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
}

@media screen and (max-width: 600px) {
    .responsible-gaming-logos {
        gap: 16px;
        justify-content: center;
    }
    
    .responsible-gaming-logos img {
        max-height: 40px;
    }
}

.footer-nav-list {
    flex-direction: row;
    justify-content: space-between;
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff4ed;
    flex-wrap: wrap;
    gap: 14px;
}

.footer-copy {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    text-align: center;
    color: #fff4ed;
}

@media screen and (max-width: 991px) {
    .hero {
        padding-top: 40px;
    }

    .hero-text {
        width: 100%;
        max-width: none;
    }

    .content_div.hero-content {
        flex-direction: column;
        align-items: center;
        position: relative;
        padding-bottom: 0px;
        gap: 14px;
    }

    .hero-image {
        position: static;
        width: 100%;
        max-width: 400px;
    }

    .feature-logo {
        max-width: 100%;
    }

    .nav-list {
        gap: 20px;
        font-size: 14px;
    }

    .content_div {
        padding: 20px;
        gap: 20px;
    }
}

@media screen and (max-width: 600px) {
    .btn {
        max-width: unset;
    }

    .feature-content {
        flex-direction: column;
    }

    .footer-info {
        flex-direction: column;
        gap: 14px;
    }

    .footer-policies {
        flex-direction: column;
    }

    .footer-nav-list {
        justify-content: center;
    }

    .bg {
        background: linear-gradient(
                0deg,
                rgba(50, 17, 11, 0.6),
                rgba(50, 17, 11, 0.6)
            ),
            url('../images/main_bg.webp') no-repeat center;
        background-size: cover;
        width: 100%;
    }
}

@media screen and (max-width: 490px) {
    .footer-nav-list {
        flex-direction: column;
    }
}

.terms .content_div {
    flex-direction: column;
    align-items: start;
}

.terms h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.terms h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.bg-terms {
    background: linear-gradient(
            0deg,
            rgba(50, 17, 11, 0.6),
            rgba(50, 17, 11, 0.6)
        ),
        url('../images/main_bg.webp') no-repeat center;
    background-size: cover;
    width: 100%;
}

.terms.terms.policy .content_div {
    gap: 0px;
}
.terms.policy h1 {
    font-size: 38px;
    margin-bottom: 20px;
}

.terms.policy h2 {
    font-size: 20px;
    margin-bottom: 20px;
}

.terms.policy p {
    margin-bottom: 30px;
}

.terms.policy ul {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 16px;
    line-height: 150%;
    color: rgba(255, 244, 237, 0.8);
    margin: 0px;
    list-style: inside;
    margin-bottom: 20px;
}

@media screen and (max-width: 600px) {
    .bg-terms {
        background: linear-gradient(
                0deg,
                rgba(50, 17, 11, 0.6),
                rgba(50, 17, 11, 0.6)
            ),
            url('../images/main_bg.webp') no-repeat center;
        background-size: cover;
        width: 100%;
    }
}

/* ===== Попапы ===== */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(180deg, #190909 0%, #47190d 100%);
    border-radius: 30px;
    padding: 50px 40px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
    position: relative;
    transform: scale(0.85) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease;
    opacity: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 244, 237, 0.1);
}

.popup-overlay.active .popup-content {
    transform: scale(1) translateY(0);
    opacity: 1;
}

.popup-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cookie-icon {
    font-size: 64px;
    line-height: 1;
}

.popup-content h2,
.popup-content h3 {
    margin: 0;
    text-align: center;
}

.popup-content p {
    text-align: center;
    margin: 0;
}

.popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 400px;
    margin-top: 8px;
}

.popup-buttons .btn {
    max-width: 100%;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.popup-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 191, 34, 0.3);
}

.popup-buttons .btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: rgba(120, 80, 65, 0.6);
    color: rgba(255, 244, 237, 0.8);
    border: 1px solid rgba(255, 244, 237, 0.3);
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-secondary:hover {
    background: rgba(120, 80, 65, 0.8);
    border-color: rgba(255, 244, 237, 0.5);
}

.age-popup {
    max-width: 520px;
}

.cookie-popup {
    max-width: 580px;
}

.popup-content h2 {
    font-size: 32px;
    margin-bottom: 8px;
}

.popup-content h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.popup-content p {
    font-size: 16px;
    line-height: 160%;
    max-width: 480px;
}

@media screen and (max-width: 600px) {
    .popup-content {
        padding: 30px 20px;
        gap: 20px;
        max-width: 95%;
    }

    .popup-icon {
        width: 60px;
        height: 60px;
    }

    .cookie-icon {
        font-size: 48px;
    }

    .popup-buttons {
        gap: 12px;
    }
    
    .popup-content h2 {
        font-size: 24px;
    }
    
    .popup-content h3 {
        font-size: 20px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
    
    .age-popup {
        max-width: 95%;
    }
    
    .cookie-popup {
        max-width: 95%;
    }
}
