@font-face {
    font-family: 'Roboto';
    font-display: swap;
    src: url('../eliSpo-fonts/eliSpo-roboto.woff2') format("woff2");
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #11161A;
    color: #FFFFFF;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: #FFFFFF;
    transition: color 0.3s ease;
}


ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ================= LAYOUT ================= */
.container {
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
}

section {
    padding: 60px 16px;
}


.text-center {
    text-align: center;
}

.text-gray {
    color: #A0A5AA;
}

.text-light {
    color: #D0D5DA;
}

.btn {
    display: inline-block;
    padding: 15px 50px;
    border: 2px solid #2595DF;
    border-radius: 100px;
    background-color: transparent;
    color: #FFFFFF;
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    width: auto;
}

.btn.full-width {
    width: 100%;
}

.btn:hover {
    background-color: rgba(13, 129, 214, 0.2);
}

/* ================= FORMS ================= */
.form-group {
    margin-bottom: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.form-col {
    flex: 1;
    min-width: 150px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 12px;
    background-color: #2A3036;
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #A0A5AA;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    accent-color: #0d81d6;
}

.checkbox-label {
    font-size: 14px;
}

.success-msg {
    display: none;
    color: #4CAF50;
    font-size: 14px;
    text-align: center;
    margin-top: 15px;
}

.success-msg.show {
    display: block;
}

/* ================= HEADER ================= */
.header {
    background-color: #11161A;
    padding: 10px 16px;
}

.header-container {
    display: flex;
    gap: 100px;
    align-items: center;
}

.nav-top {
    width: 100%;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-text {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 2px;
}

.nav-list {
    width: 100%;
    justify-content: space-between;
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 13px;
    color: #FFFFFF;
    position: relative;
}

.nav-link:hover {
    color: #307ff7;
}


.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.burger-line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #FFFFFF;
    margin: 5px 0;
    transition: 0.3s;
}

/* ================= HERO SECTION ================= */
.hero-section {
    background: linear-gradient(rgba(17, 22, 26, 0.7), rgba(17, 22, 26, 0.7)), url('../eliSpo-img/eliSpo-hero.webp') center/cover no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 604px;
}

.cont-hero {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: center;
}

.hero-subtitle {
    font-family: Roboto;
    font-weight: 500;
    font-style: Medium;
    font-size: 36px;
    text-align: center;
    color: #FFFFFF;
}

.hero-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 64px;
    text-align: center;
    color: #FFFFFF;
}

.hero-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
}

/* ================= ABOUT SECTION ================= */
.section-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 36px;
    text-align: center;
    color: #FFFFFF;
    padding-bottom: 20px;
}

.section-subtitle {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.about-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
    padding-bottom: 20px;
}


.features-grid {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.feature-card {
    background: #222A31;
    border-radius: 20px;
    border: 1px solid #51525B;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-card:hover {
    background: radial-gradient(67.13% 70.35% at 31.44% 25%, #205178 0%, #222A31 100%)
        /* warning: gradient uses a rotation that is not supported by CSS and may not behave as expected */
    ;
    border: 1px solid #2595DF;
}

.feature-icon {
    font-size: 48px;
}

.feature-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
}

.feature-text {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
}

/* ================= GAMES SECTION ================= */

.games-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
    padding-bottom: 20px;
}

.games-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.game-card {
    background-color: #222A31;
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    max-width: 373px;
}

.game-image {
    width: 100%;
    height: 200px;
}

.game-content {
    padding: 15px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.game-rating {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
}

.game-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
}

.game-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
    text-align: left;
}

.game-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.game-tag {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 15px;
    color: #FFFFFF;
    padding: 5px 15px;
    border-radius: 100px;
    background: #434A50;
}

/* ================= FAQ SECTION ================= */
.faq-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.faq-card {
    background-color: #222A31;
    border: 1px solid #51525B;
    border-radius: 20px;
    padding: 20px;
    width: 100%;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
}

.faq-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
    text-align: left;
}

.faq-divider {
    width: 100%;
    height: 1px;
    background-color: #FFFFFF33;
}

.faq-text {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
    text-align: left;
}

/* ================= CONTACT SECTION ================= */

.contact-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    text-align: center;
    color: #FFFFFF;
    padding-bottom: 20px;
}

.contact-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
}

.contact-form-container {
    width: 100%;
    max-width: 767px;
}

.contact-info-card {
    background-color: #222A31;
    border: 1px solid #51525B;
    border-radius: 20px;
    flex: 1;
    padding: 20px;
}

.info-item {
    margin-bottom: 25px;
}

.info-item.last {
    margin-bottom: 0;
}

.info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.info-icon {
    font-size: 18px;
}

.info-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
}

.info-text {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
}

.info-divider {
    height: 1px;
    background-color: #FFFFFF33;
    margin-bottom: 15px;
}

.map-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    height: 400px;
    background-color: #2A3036;
    /* fallback */
}

.map-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ================= FOOTER ================= */
.footer {
    padding: 70px 16px 70px 16px;
}

.footer-top {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-bottom: 60px;
    margin-top: 60px;
}

.footer-age {
    font-size: 24px;
    font-weight: bold;
}



.footer-main {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 60px 0px;
    justify-content: space-between;
}

.footer-newsletter {
    width: 100%;
    max-width: 570px;
}

.newsletter-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
    padding-bottom: 10px;
}

.newsletter-desc {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
    padding-bottom: 15px;
}

.newsletter-form {
    display: flex;
    flex-direction: column;
}

.footer-links {
    flex: 1;
    min-width: 200px;
}

.footer-links-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-links-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 60px;
    padding-top: 60px;
}

.footer-divider {
    height: 1px;
    background-color: #FFFFFF33;
}

.legal-item {
    flex: 1;
    min-width: 300px;
}

.legal-title {
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.legal-text {
    font-family: Roboto;
    font-weight: 400;
    font-style: Regular;
    font-size: 15px;
    color: #FFFFFF;
}

.footer-bottom {
    text-align: center;
    font-family: Roboto;
    font-weight: 700;
    font-style: Bold;
    font-size: 20px;
    text-align: center;
    color: #FFFFFF;
}

/* ================= MEDIA QUERIES ================= */
@media (max-width: 768px) {
    .nav-list {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background-color: #161C22;
        padding: 20px;
        z-index: 100;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    }

    .nav-list.active {
        display: flex;
    }

    .burger-menu {
        display: block;
    }
}


/* ================= LEGAL SECTION (PRIVACY POLICY, TERMS, ETC.) ================= */
.legal-section {
    padding: 60px 16px;
    background-color: #11161A;
    min-height: 60vh;
}


.legal-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 20px;
    line-height: 1.3;
}

.legal-date {
    font-size: 14px;
    color: #D0D5DA;
    margin-bottom: 20px;
    font-weight: bold;
}

.legal-subtitle {
    font-size: 20px;
    font-weight: bold;
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-text {
    font-size: 14px;
    color: #D0D5DA;
    line-height: 1.6;
    margin-bottom: 15px;
}

.legal-list {
    margin-left: 20px;
    margin-bottom: 15px;
    list-style-type: disc;
}

.legal-list li {
    font-size: 14px;
    color: #D0D5DA;
    line-height: 1.6;
    margin-bottom: 5px;
}

/* Адаптив для заголовка */
@media (max-width: 768px) {
    .legal-title {
        font-size: 26px;
    }

    .nav-top {
        width: auto;
    }

    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
    }
}


@media (max-width: 992px) {
    .header-container {
        gap: 20px;
    }

    .features-grid {
        display: flex;
        justify-content: space-between;
        gap: 20px;
        flex-direction: column;
    }

    .game-card {
        max-width: 100%;
    }

}

/* Базовые стили для десктопа (у вас они, скорее всего, уже есть, например Grid) */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* === АДАПТИВ: ПРЕВРАЩАЕМ В СЛАЙДЕР === */
@media (max-width: 768px) {
    .faq-card {
        max-width: 100%;
    }

    .games-grid {
        display: flex;
        /* Меняем сетку на flex для выстраивания в ряд */
        flex-wrap: nowrap;
        /* Запрещаем перенос на новую строку */
        overflow-x: auto;
        /* Включаем горизонтальную прокрутку */
        gap: 20px;
        /* Расстояние между карточками */

        /* Включаем магнитную прокрутку (Scroll Snap) */
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        /* Плавный скролл на iOS */


    }

    .game-content {
        justify-content: space-between;
    }

    /* Скрываем стандартный ползунок прокрутки для красоты (как в приложениях) */
    .games-grid::-webkit-scrollbar {
        display: none;
    }

    .games-grid {
        -ms-overflow-style: none;
        /* IE и Edge */
        scrollbar-width: none;
        /* Firefox */
    }

    .game-card {
        /* 
           Главный секрет: карточка занимает 85% ширины экрана. 
           Оставшиеся 15% позволяют показать "кусочек" следующей карточки, 
           как на вашем скриншоте.
        */
        flex: 0 0 100%;
        max-width: 374px;
        /* Ограничитель, чтобы на планшетах не было слишком широко */

        /* Точка примагничивания - левый край карточки */
        scroll-snap-align: center;
        /* или 'start', если хотите выравнивание по левому краю */
    }

    .hero-section {
        background: linear-gradient(rgba(17, 22, 26, 0.7), rgba(17, 22, 26, 0.7)), url(../eliSpo-img/eliSpo-hero.webp) center / cover no-repeat;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 774px;
    }
}

/* --- Небольшие стили для самой карточки (чтобы было похоже на скриншот) --- */
.game-card {
    background: #25282f;
    /* Темный фон */
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.game-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.game-content {
    padding: 16px;
}