body {
    background-color: #f3f4f6;
    padding-top: 188px;
    padding-left: 132px;
    padding-right: 132px;
    font-family: sans-serif;
    max-width: 100%;
    overflow-x: hidden;
    
}

@media (max-width: 900px) {
    body {
        padding-top: 168px;
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 600px) {
    body {
        padding-top: 114px;
        padding-left: 4px;
        padding-right: 4px;
    }
}


/* Хедер сайта */
.site-header {
    background: #fff;
    width: 100%;
    top: 0px;
    left: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    position: fixed;
}

/* Контейнер хедера: распределяет логотип слева и меню справа */
.header-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* распределение: логотип слева, меню справа */
}

/* Блок для логотипа */
.header-logo-wrap {
    display: flex;
    align-items: center;
}

/* Логотип */
.site-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}
.site-logo__image {
    display: block;
    max-width: 160px;
    height: auto;
    min-height: 50px; /* или другое фиксированное значение */
}
/* .site-logo__fallback {
    color: #466183;
    font-size: 20px;
    font-weight: 600;
} */
/* .site-logo__image, 
.site-logo__fallback {
  border: 2px dashed red;
} */

.header-menu-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    position: relative;
}

/* Бургер-меню всегда видно */
.burger-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    z-index: 1200;
}

/* .burger-menu svg {
    transition: transform 0.3s ease;
}

.burger-menu:hover svg {
    transform: scale(1.1);
} */

/* .burger-menu span {
    display: block;
    height: 4px;
    width: 28px;
    background: #466183;
    border-radius: 2px;
    transition: 0.3s;
} */

/* Меню скрыто по умолчанию, открывается по клику */
.header-menu {
    display: none;
    flex-direction: column;
    gap: 0;
    background: #fff;
    position: absolute;
    top: 1px;
    /* right: 32px; */
    left: auto;
    min-width: 220px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    padding: 16px 0;
    z-index: 1100;
}
.header-menu.open {
    display: flex;
}
.header-menu-link {
    padding: 12px 24px;
    font-size: 18px;
    border-radius: 0;
    color: #466183;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.header-menu-link:last-child {
    border-bottom: none;
}
.header-menu-link:hover {
    background: #e5e7eb;
    color: #2d3a4b;
}

/* Анимация бургера */
/* .burger-menu.active svg {
    transform: rotate(180deg);
} */
/* .burger-menu.active span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.burger-menu.active span:nth-child(2) {
    opacity: 0;
}
.burger-menu.active span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
} */

/* Адаптивность */
@media (max-width: 900px) {
    .header-inner {
        /* flex-direction: column;
        align-items: flex-start; */
        height: auto;
        padding: 12px;
        gap: 8px;
    }
.header-logo-wrap {
    display: flex;
    align-items: center;
    flex: 0 0 auto; /* предотвращает сжатие до 0 */
}
    .header-menu-wrap {
        width: 100%;
        justify-content: flex-end;
    }
    .header-menu {
        top: 88px;
        right: 12px;
        min-width: 180px;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 8px;
    }
    .site-logo img {
        max-width: 160px;
    }
    .header-menu {
        top: 64px;
        right: 8px;
        min-width: 140px;
    }
    .header-menu-link {
        font-size: 16px;
        padding: 10px 16px;
    }
}

/* Кнопки фильтрации */
.filter-buttons {
    display: flex;
    gap: 12px;
    margin-bottom: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.filter-btn {
    background: #fff;
    color: #466183;
    border: 2px solid #e5e7eb;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.filter-btn:hover {
    background: #f3f4f6;
    border-color: #466183;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(70,97,131,0.15);
}

.filter-btn.active {
    background: #466183;
    color: #fff;
    border-color: #466183;
    box-shadow: 0 4px 16px rgba(70,97,131,0.25);
}

@media (max-width: 600px) {
    .filter-buttons {
        gap: 8px;
        margin-bottom: 24px;
    }
    
    .filter-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
}


/* Стили для карточек */

.cards-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* На устройствах шириной от 480px – 1 карточки в ряд */
@media (min-width: 480px) {
    .cards-container {
        grid-template-columns: repeat(1, 1fr);
    }
}

/* На устройствах шириной от 768px – 2 карточки в ряд */
@media (min-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* На устройствах шириной от 1024px – 3 карточки в ряд */
@media (min-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* На устройствах шириной от 1280px – 4 карточки в ряд */
@media (min-width: 1280px) {
    .cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
}

.card {
    max-width: 384px;
    margin-left: auto;
    margin-right: auto;
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    overflow: hidden;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
}

.card-image-container {
    position: relative;
}

.card-image {
    position: relative;
    overflow: hidden;
}

.card-image__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gradient-overlay {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(to top, black, transparent, transparent);
    opacity: 0.5;
}

.image-text-content {
    position: absolute;
    inset: 0;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.image-text-content h2 {
    font-size: 30px;
    font-weight: bold;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 8px;
}

.image-text-content p {
    font-size: 18px;
    color: #ffffff;
    opacity: 0.8;
}

.card-body {
    padding: 0 24px 24px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: #466183;
    margin-bottom: 8px;
}

.card-body p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 0;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.btn {
    background-color: #466183;
    color: #ffffff;
    padding-top: 8px;
    padding-bottom: 8px;
    padding-left: 24px;
    padding-right: 24px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.15s ease-in-out;
    display: flex;
    align-items: center;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #466183;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    transform: scale(1.05);
}

.card-footer span {
    font-size: 14px;
    color: #6b7280;
}

/* Стили для футера */
.container-footer {
    width: 100vw;
    max-width: 100vw;
    margin: 82px 0 0 0;
    padding: 24px 24px 24px 0;
    background: #fff;
    border-radius: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    box-sizing: border-box;
    position: relative;
    left: 50%;
    right: 50%;
    transform: translateX(-50%);
}

.agreement {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    gap: 16px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

.user_agreement {
    text-align: left;
}

.user_agreement a {
    color: #466183;
    text-decoration: none;
    transition: color 0.2s;
}

.user_agreement a:hover {
    color: #2d3a4b;
}

.wifly {
    text-align: right;
}

.wifly a {
    color: #466183;
    text-decoration: none;
    transition: color 0.2s;
}

.wifly a:hover {
    color: #2d3a4b;
}

@media (max-width: 700px) {
    .container-footer {
        padding: 0 0 16px 0;
    }
    .agreement {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        font-size: 14px;
        padding: 0 8px;
    }
    .wifly {
        text-align: left;
        width: 100%;
    }
}

.single-game__iframe {
    width: 100%;
    max-width: 1000px;
    height: 70vh;
    min-height: 400px;
    display: block;
    margin: 32px auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.10);
    background: #fff;
    border: none;
}
@media (max-width: 900px) {
    .single-game__iframe {
        max-width: 100%;
        height: 50vh;
        min-height: 240px;
        margin: 16px 0;
        border-radius: 8px;
    }
}

.single-game__back-wrap {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 0 auto;
    display: flex;
    justify-content: flex-start;
}

.single-game__back-btn {
    width: 48px;
    height: 48px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
    padding: 0;
    margin-bottom: 16px;
}
.single-game__back-btn:hover {
    background: #f3f4f6;
    box-shadow: 0 4px 16px rgba(70,97,131,0.10);
}
.single-game__back-btn svg {
    display: block;
}