/* Общие стили и сброс */
:root {
    --primary-color: #FFD700;
    /* Золотой/Желтый для акцентов и кнопок */
    --secondary-color: #FFFFFF;
    /* Белый для текста и элементов */
    --bg-dark: #1a1a1a;
    /* Темный фон сайта */
    --text-light: #f0f0f0;
    /* Светлый текст на темном фоне */
    --text-dark: #333;
    /* Темный текст на светлом фоне (если потребуется) */
    --accent-blue: #007bff;
    /* Для ссылок/акцентов */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Плавная прокрутка */
}

body {
    font-family: 'Arial', sans-serif;
    /* Базовый шрифт */
    line-height: 1.6;
    background-color: var(--bg-dark);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    /* Сглаживание шрифтов для лучшей читаемости */
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    /* Минимальная высота для футера внизу */
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    /* Заставляет main занимать все доступное пространство */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

h1,
h2,
h3 {
    color: var(--primary-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8em;
}

h2 {
    font-size: 2.2em;
}

h3 {
    font-size: 1.8em;
}

p {
    margin-bottom: 15px;
}

.keyword {
    color: var(--primary-color);
    /* Выделение ключевых слов */
    font-weight: bold;
}

/* Header */
.main-header {
    background-color: #000;
    padding: 15px 0;
    border-bottom: 3px solid var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo img {
    max-height: 40px;
    width: auto;
}

.menu-toggle {
    display: none;
    /* Скрыть на десктопе */
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 2em;
    cursor: pointer;
    padding: 5px;
    position: relative;
    /* Для icon-bar */
    width: 200px;
    height: 30px;
}

/* Иконка гамбургера */
.menu-toggle .icon-bar {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 4px 0;
    transition: all 0.3s ease-in-out;
}

.menu-toggle.active .icon-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active .icon-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active .icon-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}


.nav-list {
    list-style: none;
    display: flex;
}

.nav-list li {
    margin-left: 25px;
}

.nav-list a {
    font-weight: bold;
    font-size: 1.1em;
    padding: 5px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    left: 0;
    bottom: -5px;
    transition: width 0.3s ease-in-out;
}

.nav-list a:hover::after,
.nav-list a.active::after {
    /* Можно добавить класс active для текущей страницы */
    width: 100%;
}


/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), url('../img/slot-oyna-betandreas-76.webp') no-repeat center center/cover;
    /* Использование одного из ваших изображений */
    text-align: center;
    padding: 80px 20px;
    color: var(--secondary-color);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-section h1 {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--primary-color);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-section p {
    font-size: 1.3em;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-cta {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: bold;
    text-transform: uppercase;
    transition: all 0.3s ease;
    margin: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    text-align: center;
}

.primary-btn {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    border: 2px solid var(--primary-color);
}

.primary-btn:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
    border-color: var(--secondary-color);
    transform: translateY(-3px);
}

.secondary-btn {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.secondary-btn:hover {
    background-color: var(--primary-color);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.small-btn {
    padding: 8px 15px;
    font-size: 0.9em;
    margin: 5px;
}

.large-btn {
    padding: 18px 35px;
    font-size: 1.2em;
}

/* Section Common Styles */
section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5em;
    color: var(--primary-color);
}

/* FAQ Section */
.faq-section {
    background-color: #222;
    padding: 60px 0;
}

.faq-list {
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    background-color: #333;
    margin-bottom: 20px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.faq-question {
    padding: 20px;
    background-color: #444;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 1.4em;
    margin-bottom: 0;
    position: relative;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5em;
    transition: transform 0.3s ease-in-out;
}

.faq-question.active::after {
    content: '-';
    transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-out, padding 0.5s ease-out;
    background-color: #333;
    color: var(--text-light);
}

.faq-answer p {
    padding-bottom: 20px;
    margin-bottom: 0;
    font-size: 1em;
    line-height: 1.7;
}

.faq-answer.open {
    max-height: 1000px;
    /* Достаточно большое значение для 1000 символов */
    padding: 20px;
}

/* Games Showcase Section */
.games-showcase {
    background-color: var(--bg-dark);
    padding-bottom: 60px;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    justify-content: center;
    align-items: stretch;
    /* Чтобы карточки были одной высоты */
    margin-bottom: 40px;
}

.game-card {
    background-color: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
    text-align: center;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.6);
}

.game-card img {
    width: 100%;
    height: 180px;
    /* Фиксированная высота для изображений слотов */
    object-fit: cover;
    /* Обрезка, чтобы изображение заполняло контейнер */
    border-bottom: 3px solid var(--primary-color);
    margin-bottom: 15px;
}

.game-card h3 {
    color: var(--secondary-color);
    font-size: 1.4em;
    margin-bottom: 15px;
    padding: 0 15px;
}

/* Info Section */
.info-section {
    background-color: #222;
    padding: 60px 0;
    text-align: center;
}

.info-section p {
    max-width: 900px;
    margin: 0 auto 20px auto;
    font-size: 1.1em;
    line-height: 1.7;
}

.info-section .btn-cta {
    margin-top: 30px;
}


/* Footer */
.main-footer {
    background-color: #000;
    color: var(--text-light);
    text-align: center;
    padding: 25px 0;
    font-size: 0.9em;
    border-top: 3px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}

.footer-links a {
    margin: 0 10px;
    color: var(--primary-color);
    font-weight: bold;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.age-restriction {
    margin-top: 15px;
    font-size: 1.2em;
    font-weight: bold;
    color: #ff0000;
    /* Красный для внимания */
    border: 2px solid #ff0000;
    display: inline-block;
    padding: 5px 10px;
    border-radius: 5px;
}

/* Вспомогательные классы */
.text-center {
    text-align: center;
}

.mt-30 {
    margin-top: 30px;
}

/* Адаптивность (Mobile-First) */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        z-index: 1001;
        /* Поверх навигации */
    }

    .main-nav {
        position: relative;
        /* Для позиционирования nav-list */
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background-color: #000;
        position: absolute;
        top: 100%;
        /* Под хедером */
        left: 0;
        z-index: 1000;
        padding: 15px 0;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    .nav-list a {
        padding: 10px 0;
    }

    .nav-list a::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .hero-section {
        padding: 60px 15px;
    }

    .hero-section h1 {
        font-size: 2.2em;
    }

    .hero-section p {
        font-size: 1.1em;
    }

    .btn-cta {
        display: block;
        width: 90%;
        margin: 10px auto;
    }

    section {
        padding: 40px 0;
    }

    .section-title {
        font-size: 2em;
    }

    .faq-question {
        font-size: 1.2em;
        padding: 15px;
    }

    .faq-answer {
        padding: 0 15px;
    }

    .faq-answer.open {
        padding: 15px;
    }

    .faq-answer p {
        font-size: 0.95em;
    }

    .game-grid {
        grid-template-columns: 1fr;
        /* Одна колонка на мобильных */
    }

    .game-card {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 1.8em;
    }

    .hero-section p {
        font-size: 0.95em;
    }

    .section-title {
        font-size: 1.8em;
    }
}

/* Video Container Styling */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    /* İki cərgə üçün bükülməyə icazə verir */
    gap: 20px;
    /* Video blokları arasında boşluq */
    justify-content: center;
    /* Ortaya hizala */
}

.video-item {
    flex: 1 1 calc(50% - 20px);
    /* Hər elementin genişliyi (50% - gap) */
    min-width: 300px;
    /* Mobil üçün minimum genişlik */
    box-sizing: border-box;
    background-color: #262626;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.video-item video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    display: block;
    margin-bottom: 10px;
}

.video-item p {
    font-size: 0.9em;
    line-height: 1.6;
    text-align: left;
}

/* Responsive design for smaller screens */
@media (max-width: 768px) {
    .video-item {
        flex: 1 1 100%;
        /* Mobil cihazlarda hər element 100% en */
    }