@font-face {
    font-family: 'Inter';
    font-display: swap;
    src: url('../muNif-fonts/muNif-inter.woff2') format("woff2");
}

/* --- БАЗОВЫЕ СТИЛИ --- */
* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: #FAFAFC;
    color: #0A0A0A;
    overflow-x: hidden;
}

h1,
h2,
h3,
p {
    margin: 0;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

section {
    padding: 80px 16px;
}

/* --- HEADER --- */
.site-header {
    padding: 40px 16px;
    width: 100%;
    background-color: #FAFAFC;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 154px;
}


.nav-wrapper {
    width: 100%;
    max-width: 740px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FAFAFC;
    box-shadow: 0px 7px 12.2px 0px #00000026;
    border-radius: 30px;
    padding: 22px 10px;
}

.nav-list {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #0A0A0A;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #666666;
}

/* --- HERO SECTION --- */
.hero-sec {
    text-align: center;
    padding-top: 10px;
    padding-bottom: 0px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 58px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 20px;
}

.hero-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-size: 20px;
    color: #0A0A0A;
    margin-bottom: 20px;
}

.btn-primary {
    background-color: #0A0A0A;
    color: #FFFFFF;
    padding: 19px 40px;
    border-radius: 30px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 500;
    display: inline-block;
    transition: opacity 0.3s ease;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.btn-primary:hover {
    opacity: 0.8;
}

.hero-img {
    margin: 50px auto 0;
    display: block;
}

/* --- STATS SECTION --- */
.stats-box {
    background-color: #F5F5F5;
    border-radius: 60px;
    display: flex;
    justify-content: space-around;
    padding: 20px 60px;
    align-items: center;
}


.stats-sec {
    padding: 50px 16px !important;
}

.stat-item {
    text-align: center;
    flex: 1;
    border-right: 1px solid #0A0A0A;
}

.stat-item:last-child {
    border-right: none;
}

.stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0A0A0A;
    text-transform: uppercase;
}

/* --- GLOBAL TWO COLUMN GRID --- */
.two-col-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 100px;
}

.section-title {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.section-subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #0A0A0A;
}

/* --- ABOUT SECTION --- */
.about-content-item {
    margin-bottom: 20px;
}

.about-content-item:last-child {
    margin-bottom: 0;
}

.item-heading {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.item-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
}

/* --- SERVICES SECTION --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 120px;
}

.services-grid-ss {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
}

/* --- CASES SECTION --- */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 100px;
}

.case-main {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    max-width: 200px;
}

.case-sub-grid {
    display: flex;
    flex-direction: column;
    gap: 100px;
}

.case-heading-large {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #0A0A0A;
}

.case-link {
    display: inline-flex;
    align-items: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #949494;
    text-decoration: none;
    margin-top: 10px;
    font-weight: 700;
}

.case-link:hover {
    color: #0A0A0A;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* --- REVIEWS SECTION --- */
.reviews-sec .col-right {
    overflow: hidden;
    /* Hide scrollbar wrapper */
}

.reviews-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scrollbar-width: none;
    /* Firefox */
}

.reviews-slider::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.review-card {
    background-color: #F5F5F5;
    border-radius: 30px;
    padding: 20px;
    max-width: 280px;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-author {
    font-family: 'Inter', sans-serif;
    font-weight: 200;
    font-size: 14px;
    color: #0A0A0A;
    font-style: italic;
}

.review-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
}

/* --- CTA SECTION --- */
.cta-box {
    background-color: #F5F5F5;
    border-radius: 40px;
    padding: 20px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.cta-heading {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0A;
    text-transform: uppercase;
}

.cta-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
}

/* --- FOOTER --- */
.site-footer {
    background-color: #F5F5F5;
    padding: 40px 16px;
}

.footer-grid {
    display: flex;
    gap: 80px;
    margin-bottom: 30px;
}

.foot-r {
    width: 100%;
    display: flex;
    justify-content: space-between;
}

.footer-heading {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.footer-text {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.footer-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    list-style: disc;
    padding-left: 15px;
}

.footer-link {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #0A0A0A;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #0A0A0A;
}

.footer-bottom {
    text-align: center;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
}

/* --- АДАПТИВ (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .two-col-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: 1fr 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stats-box {
        flex-wrap: wrap;
        border-radius: 40px;
        gap: 30px 0;
        padding: 40px 10px;
    }

    .stat-item {
        border-right: none;
        min-width: 45%;
    }

    .footer-grid {
        flex-wrap: wrap;
        gap: 20px;
    }

    .foot-r {
        flex-wrap: wrap;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 40px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .cases-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }


    .header-inner {
        justify-content: space-between !important;
    }


    .services-grid {
        gap: 30px 30px;
    }

    .services-grid-ss {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        gap: 10px;
    }
}




/* --- SECTION: CASES PORTFOLIO --- */
.portfolio-cases {
    padding: 0px 16px;
    background-color: #FAFAFC;
}

.cases-title {
    font-family: 'Inter', sans-serif;
    font-size: 58px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.cases-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #0A0A0A;
    margin-bottom: 30px;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.portfolio-item img {
    width: 100%;
    padding-bottom: 20px;
}

.portfolio-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0A0A0A;
}

/* --- SECTION: THE BEST PROJECT --- */
.best-project {
    padding: 80px 16px;
    background-color: #FAFAFC;
}

.project-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 100px;
}

.project-title {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.project-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #0A0A0A;
    font-weight: 400;
}

.project-desc {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
    margin-bottom: 20px;
}

.project-desc:last-child {
    margin-bottom: 0;
}

/* --- SECTION: ARENA OF HONOR --- */
.arena-honor {
    padding: 80px 16px;
    background-color: #FAFAFC;
}

.arena-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 100px;
    align-items: start;
}

.arena-title {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.arena-list {
    list-style: disc;
    padding-left: 20px;
}

.arena-list li {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    color: #0A0A0A;
    margin-bottom: 10px;
}

.arena-right img {
    width: 100%;
}

/* --- SECTION: DISCLAIMER BANNER --- */
.disclaimer-banner {
    padding: 80px 16px;
    background-color: #FAFAFC;
}

.disclaimer-inner {
    background-color: #F5F5F5;
    /* Светло-серый фон плашки */
    border-radius: 40px;
    padding: 20px 20px;
    text-align: center;
}

.disclaimer-title {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #0A0A0A;
    margin-bottom: 30px;
    text-transform: uppercase;
}

.disclaimer-text {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #0A0A0A;
}

.disclaimer-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 30px;
}

.age-limit {
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #0A0A0A;
}

/* --- АДАПТИВ (MEDIA QUERIES) --- */
@media (max-width: 992px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .arena-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .project-title {
        font-size: 32px;
    }
}

@media (max-width: 600px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}



/* --- POLICY PAGES (Cookie, Privacy, Terms, etc.) --- */
.policy-sec {
    padding: 80px 16px;
    background-color: #FAFAFC;
}

/* Сетка: слева заголовок 300px, справа контент */
.policy-grid {
    display: flex;
    gap: 100px;
}

.policy-main-title {
    font-family: 'Inter', sans-serif;
    font-size: 44px;
    font-weight: 700;
    color: #0A0A0A;
}

.policy-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
    /* Расстояние между блоками текста */
}

.policy-date {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #0A0A0A;
}

.policy-block {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.policy-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #0A0A0A;
    text-transform: uppercase;
}

.policy-text {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0A0A0A;
}

.policy-list {
    list-style: disc;
    padding-left: 20px;
}

.policy-list li {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0A0A0A;
    margin-bottom: 5px;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

.policy-link {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #0A0A0A;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.policy-link:hover {
    color: #666666;
}

/* --- АДАПТИВ ДЛЯ ТЕКСТОВЫХ СТРАНИЦ --- */
@media (max-width: 768px) {
    .policy-grid {
        flex-direction: column;
        /* На телефоне заголовок сверху, текст снизу */
        gap: 30px;
    }

    .policy-main-title {
        font-size: 32px;
    }
}


/* Базовые стили для шапки */
.header-inner {
    display: flex;
    align-items: center;
    position: relative;
}

/* Скрываем кнопку бургера на десктопе */
.burger-menu {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    /* Убрал лишний паддинг, чтобы SVG стояла ровно */
    z-index: 100;
}

/* Убедимся, что десктопное меню выглядит как строка */
.nav-list {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* --- АДАПТИВ (Планшеты и мобильные) --- */
@media (max-width: 768px) {

    /* Показываем бургер */
    .burger-menu {
        display: block;
    }

    /* Прячем обычное меню и делаем его выпадающим */
    .nav-wrapper {
        position: absolute;
        top: 100%;
        /* Выпадает сразу под шапкой */
        left: 0;
        width: 100%;
        background-color: #fff;
        /* Цвет фона меню (убедитесь, что он не прозрачный!) */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);

        /* ВАЖНО: чтобы меню перекрывало контент сайта, а не пряталось под ним */
        z-index: 99;

        /* Скрыто по умолчанию */
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
    }

    /* Класс, который JS добавляет при клике */
    .nav-wrapper.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    /* Перестраиваем список ссылок в колонку для мобильных */
    .nav-list {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .site-header {
        padding: 12px 16px;
        width: 100%;
        background-color: #FAFAFC;
    }

    section {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 32px;
    }

    .stats-box {
        flex-wrap: wrap;
        flex-direction: column;
        border-radius: 40px;
        gap: 30px 0;
        padding: 20px 10px;
    }

    .stat-num {
        font-size: 24px;
    }

    .stat-item:not(:last-child) {
        padding-bottom: 10px;
        border-bottom: 1px solid #0A0A0A;
    }

    .section-title {
        font-size: 24px;
    }

    .col-left img {
        width: 32px;
    }

    .cta-box {
        padding: 20px;
    }

    .cta-heading {
        font-size: 16px;
    }

    .cases-title {
        font-size: 32px;
    }

    .project-title {
        font-size: 24px;
    }

    .best-project {
        padding: 40px 16px;
    }

    .arena-title {
        font-size: 24px;
    }

    .disclaimer-banner {
        padding: 40px 16px;
    }

    .arena-honor {
        padding: 20px;
        background-color: #FAFAFC;
    }

    .disclaimer-inner {
        border-radius: 20px;
        padding: 20px;
        text-align: left;
    }

    .disclaimer-title {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .disclaimer-logos {
        margin-top: 20px;
        gap: 27px;
    }

    .policy-sec {
        padding: 40px 16px;
    }
}


/* Настройки секции с игрой (правая колонка) */
.demo-section {
    flex: 1;
    /* Игра занимает все оставшееся место (55%) */
    display: flex;
    align-items: center;
    /* Центрируем игру по вертикали относительно зеленого блока */
    justify-content: center;
}

/* --- Контейнер самой игры (адаптивный 16:9) --- */
.block-game {
    position: relative;
    width: 100%;
    /* Ограничитель, чтобы игра не становилась гигантской на больших экранах */
    margin: 0 auto;
    padding-bottom: 75%;
    /* Пропорция 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    /* Немного скруглим углы для красоты */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    /* Легкая тень, чтобы выделить игру */
}

.ga-i {
    background-color: #e87329;
    border-radius: 10px;
    padding: 3px;
}

.block-game iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    /* Убираем стандартную рамку iframe */
}

/* --- Адаптивность для мобильных устройств --- */
@media (max-width: 992px) {
    .substitute-row-bottom {
        flex-direction: column;
        /* Перестраиваем в одну колонку на мобильных */
        gap: 20px;
    }

    .substitute-green-box {
        flex: none;
        width: 100%;
        /* На мобилках блок на всю ширину */
    }

    .demo-section {
        width: 100%;
    }
}