/* =============================================================================
   БАЗОВЫЕ СТИЛИ И СБРОС
   ============================================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #2c3e50;
    line-height: 1.6;
}

body.age-disclaimer-open {
    overflow: hidden;
}

/* Контейнер */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* Кастомный скролл-бар */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.8);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: #6c757d;
    font-size: 1.2rem;
    width: 100%;
}

.breadcrumbs {
    margin-bottom: 30px;
    font-size: 0.9rem;
    color: #6c757d;
}

.breadcrumbs a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumbs a:hover {
    color: #e91e63;
}

.breadcrumbs span {
    margin: 0 10px;
    color: #adb5bd;
}

.current-page {
    color: #e91e63;
}

/* =============================================================================
   ВОЗРАСТНОЙ ДИСКЛЕЙМЕР
   ============================================================================= */

.age-disclaimer-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.98);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.age-disclaimer-modal.show {
    display: flex;
    opacity: 1;
}

.age-disclaimer-modal.hidden {
    opacity: 0;
    pointer-events: none;
}

.age-disclaimer-content {
    background: #fff;
    padding: 40px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 3px solid #ff6b6b;
}

.age-disclaimer-logo h2 {
    font-size: 60px;
    margin: 0 0 20px 0;
    color: #ff6b6b;
}

.age-disclaimer-text h3 {
    color: #333;
    font-size: 28px;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.age-disclaimer-text p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin: 0 0 15px 0;
}

.age-disclaimer-buttons {
    display: flex;
    gap: 20px;
    margin: 30px 0 20px 0;
    flex-wrap: wrap;
    justify-content: center;
}

.age-btn {
    padding: 15px 25px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 180px;
}

.age-btn-yes {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
}

.age-btn-yes:hover {
    background: linear-gradient(135deg, #45a049, #3d8b40);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
}

.age-btn-no {
    background: linear-gradient(135deg, #f44336, #da190b);
    color: white;
}

.age-btn-no:hover {
    background: linear-gradient(135deg, #da190b, #c1170a);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(244, 67, 54, 0.4);
}

.age-disclaimer-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.age-disclaimer-footer small {
    color: #999;
    font-size: 12px;
}

/* =============================================================================
   ХЕДЕР И НАВИГАЦИЯ
   ============================================================================= */

.sticky-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    max-height: 60px;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1400px;
    max-height: 60px;
    margin: 0 auto;
    padding: 4px 30px;
}

.logo-section .logo {
    width: 100px;
    height: 80px;
    object-fit: contain;
}

.main-navigation {
    display: flex;
    gap: 20px;
}

.main-navigation a {
    color: #495057;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 6px 10px;
    transition: all 0.3s ease;
}

.main-navigation a:hover {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.main-navigation a.active {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    border-radius: 5px;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-input {
    padding: 6px 10px;
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 25px;
    color: #495057;
    width: 160px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.search-input:focus {
    outline: none;
    background: white;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-input::placeholder {
    color: rgba(73, 80, 87, 0.6);
}

.lang-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    transition: background 0.3s ease;
}

.lang-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
}

.lang-toggle img {
    width: 20px;
    height: 20px;
}

/* =============================================================================
   БАННЕРЫ
   ============================================================================= */

.hero-banner {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
}

.banner-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    color: inherit;
}

.banner-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease;
    filter: brightness(0.9);
}

.banner-link:hover .banner-image {
    filter: brightness(1);
}

/* =============================================================================
   КАРУСЕЛИ И СЛАЙДЕРЫ
   ============================================================================= */

/* Основная карусель игр */
.games-carousel {
    margin: 80px 0;
    padding: 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
}

.gameSwiper {
    cursor: grab;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
    -webkit-tap-highlight-color: transparent;
}

.gameSwiper:active {
    cursor: grabbing;
}

.swiper-slide {
    width: 736px !important;
    height: 344px !important;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
    flex-shrink: 0;
    position: relative;
    opacity: 0.6 !important;
    transform: scale(0.8) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.swiper-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.swiper-slide-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

.swiper-slide-active::before {
    opacity: 0;
}

.swiper-slide-prev,
.swiper-slide-next {
    opacity: 0.8 !important;
    transform: scale(0.9) !important;
}

.swiper-slide-prev::before,
.swiper-slide-next::before {
    opacity: 0.2;
}

.swiper-slide-duplicate {
    opacity: 0.6 !important;
    transform: scale(0.8) !important;
}

.swiper-slide-duplicate-active {
    opacity: 1 !important;
    transform: scale(1) !important;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.2);
}

.swiper-slide-duplicate-active::before {
    opacity: 0;
}

.swiper-slide-duplicate-prev,
.swiper-slide-duplicate-next {
    opacity: 0.8 !important;
    transform: scale(0.9) !important;
}

.swiper-slide-duplicate-prev::before,
.swiper-slide-duplicate-next::before {
    opacity: 0.2;
}

.swiper-slide:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.swiper-slide-active:hover {
    box-shadow: 0 25px 45px rgba(233, 30, 99, 0.3);
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    position: relative;
    z-index: 1;
}

/* Кнопки навигации карусели */
.swiper-button-next,
.swiper-button-prev {
    color: #e91e63;
    background: rgba(255, 255, 255, 0.9);
    width: 56px;
    height: 56px;
    margin-top: -28px;
    transition: all 0.3s ease;
    z-index: 30;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.swiper-button-next {
    right: 24px;
}

.swiper-button-prev {
    left: 24px;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 16px;
    font-weight: bold;
}

/* Карусель скриншотов */
.screenshots-section {
    width: 100%;
    overflow: hidden;
    background: none;
    padding: 0;
    margin: 0;
}

.screenshots-section h3 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.screenshots-carousel {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
    background: none;
    padding: 0;
    cursor: grab;
}

.screenshotsSwiper {
    width: 100%;
    height: 350px;
    overflow: hidden;
    padding: 0;
    box-shadow: none;
    border: none;
    margin: 0;
    background: none;
    margin-top: 60px;
    cursor: grab;
}

.screenshotsSwiper .swiper-slide,
.screenshotsSwiper .swiper-slide-active,
.screenshotsSwiper .swiper-slide-prev,
.screenshotsSwiper .swiper-slide-next,
.screenshotsSwiper .swiper-slide-duplicate,
.screenshotsSwiper .swiper-slide-duplicate-active,
.screenshotsSwiper .swiper-slide-duplicate-prev,
.screenshotsSwiper .swiper-slide-duplicate-next {
    width: 500px !important;
    height: 280px !important;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    position: relative;
    opacity: 1 !important;
    transform: scale(1) !important;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.screenshotsSwiper .swiper-slide:hover {
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.2);
}

.screenshotsSwiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    border: none;
    position: relative;
    z-index: 1;
}

.screenshots-next,
.screenshots-prev {
    color: #e91e63;
    background: rgba(255, 255, 255, 0.9);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.screenshots-next:hover,
.screenshots-prev:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.3);
}

.screenshots-next:after,
.screenshots-prev:after {
    font-size: 14px;
    font-weight: bold;
}

/* =============================================================================
   СЕТКИ ИГР И КАРТОЧКИ
   ============================================================================= */

.games-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    padding: 40px 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.game-card {
    width: 350px;
    height: 500px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.game-card-logo {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 125px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
    z-index: 5;
    overflow: visible !important;
}

.game-card-logo img {
    width: 125px;
    height: 70px;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.game-card:hover .game-card-logo {
    opacity: 1;
    transform: scale(1);
}

.game-card:hover {
    box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15);
    border-color: rgba(233, 30, 99, 0.3);
    z-index: 10;
}

.game-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
}

/* =============================================================================
   СТРАНИЦЫ И СЕКЦИИ
   ============================================================================= */

/* Общие стили страниц */
.games-page,
.game-page,
.about-page,
.patches-page {
    min-height: 100vh;
    padding: 40px 0;
    background: #f8f9fa;
}

/* ✅ СТРАНИЦА "О НАС" - НЕДОСТАЮЩИЕ СТИЛИ */

.about-content {
    display: flex;
    flex-direction: column;
    gap: 60px;
    margin-top: 20px;
}

.about-section {
    padding: 80px 0;
    background: white;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.about-text h2 {
    color: #e91e63;
    font-size: 2rem;
    margin-bottom: 20px;
    text-align: center;
}

.about-text p {
    color: #495057;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Секция команды */
.team-section {
    background: white;
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.team-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.team-grid {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
}

.team-member {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 400px;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.member-avatar {
    margin-bottom: 20px;
}

.member-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 4px solid rgba(233, 30, 99, 0.1);
}

.team-member h3 {
    color: #e91e63;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.team-member p {
    color: #495057;
    line-height: 1.6;
    font-size: 1rem;
}

/* Секция принципов */
.principles-section {
    background: white;
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.principles-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.principle {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.principle:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
}

.principle h3 {
    color: #e91e63;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.principle p {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Секция контактов */
.contact-section {
    background: white;
    padding: 80px 0;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.contact-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 30px;
    text-align: center;
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

.contact-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.contact-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.1);
    border-color: rgba(233, 30, 99, 0.2);
}

.contact-item h3 {
    color: #e91e63;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.contact-item p {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.contact-item a {
    color: #e91e63;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ad1457;
    text-decoration: underline;
}

.contact-item .social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.contact-item .social-link {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.contact-item .social-link:hover {
    background: #e91e63;
    color: white;
    transform: translateY(-1px);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-header p {
    color: #6c757d;
    font-size: 1.1rem;
}

/* Структура страницы игры */
.game-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 20px;
    width: calc(100% + 280px);
}

.game-top-section {
    display: grid;
    grid-template-columns: 400px 1fr;
    gap: 40px;
    align-items: start;
    overflow: hidden;
}

.game-bottom-section {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    width: 100%;
}

.game-banner-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-banner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-title-overlay h1 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    color: white;
}

/* Информация об игре */
.game-description-left {
    background: white;
    padding: 35px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    height: fit-content;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.game-description-left h3 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.game-description-left p {
    line-height: 1.7;
    color: #495057;
    font-size: 1rem;
    text-align: justify;
}

.game-info-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.game-details {
    background: white;
    padding: 30px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.game-details h3 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.game-specs h4 {
    color: #2c3e50;
    margin: 15px 0 10px 0;
    font-size: 1rem;
}

.platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.platform-tag {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    padding: 8px 15px;
    font-size: 0.9rem;
    color: #495057;
}

.genre-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 8px 15px;
    font-size: 0.8rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.2);
}

.release-date {
    color: #6c757d;
    font-size: 0.9rem;
}

/* Секции контента */
.patches-section,
.about-section {
    padding: 80px 0;
    background: white;
    margin: 40px 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.patches-section h2,
.about-section h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: #2c3e50;
}

.patches-content,
.about-content {
    text-align: center;
    color: #495057;
    font-size: 1.1rem;
}

/* =============================================================================
   ФИЛЬТРЫ И ПОИСК
   ============================================================================= */

/* Основная структура фильтров */
.games-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    margin-top: 20px;
}

.filters-sidebar {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 50px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    /* ✅ ДОБАВЛЯЕМ МИНИМАЛЬНУЮ ШИРИНУ */
    min-width: 250px;
    width: 100%;
}

.filters-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filters-header h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin: 0;
}

.clear-filters {
    background: #e91e63;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.clear-filters:hover {
    background: #ad1457;
    transform: translateY(-1px);
}

.filter-group {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-group h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin: 0;
    padding: 15px 20px 10px;
    font-weight: 600;
}

.filter-options {
    padding: 0 20px 15px;
    max-height: 200px;
    overflow-y: auto;
}

.categories-scroll {
    padding: 0 20px 15px;
    max-height: 300px;
    overflow-y: auto;
}

.categories-scroll::-webkit-scrollbar {
    width: 6px;
}

.categories-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb {
    background: rgba(233, 30, 99, 0.3);
    border-radius: 3px;
}

.categories-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(233, 30, 99, 0.5);
}

/* Кастомные чекбоксы */
.filter-checkbox {
    display: flex;
    align-items: center;
    padding: 8px 0;
    cursor: pointer;
    font-size: 0.9rem;
    color: #495057;
    transition: color 0.3s ease;
    position: relative;
}

.filter-checkbox:hover {
    color: #e91e63;
}

.category-name {
    flex: 1;
    margin-right: 8px;
}

.category-count {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    background: rgba(108, 117, 125, 0.1);
    padding: 2px 6px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

.filter-checkbox:hover .category-count {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
}

.filter-checkbox input[type="checkbox"]:checked+.checkmark+.category-name+.category-count {
    color: #e91e63;
    background: rgba(233, 30, 99, 0.2);
    font-weight: 600;
}

.filter-checkbox input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #dee2e6;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.filter-checkbox:hover .checkmark {
    border-color: #e91e63;
}

.filter-checkbox input[type="checkbox"]:checked+.checkmark {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    border-color: #e91e63;
}

.filter-checkbox input[type="checkbox"]:checked+.checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Выбранные фильтры */
.selected-filters {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(233, 30, 99, 0.02);
    /* ✅ ИСПРАВЛЯЕМ ПЕРЕПОЛНЕНИЕ */
    max-width: 100%;
    overflow: hidden;
}

/* ✅ ИСПРАВЛЯЕМ СЧЕТЧИК ФИЛЬТРОВ */
.selected-count {
    font-size: 0.9rem;
    color: #e91e63;
    font-weight: 600;
    margin-bottom: 10px;
    /* ✅ ПРЕДОТВРАЩАЕМ ПЕРЕПОЛНЕНИЕ */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ✅ ИСПРАВЛЯЕМ ТЕГИ ФИЛЬТРОВ */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    /* ✅ ИСПРАВЛЯЕМ ПЕРЕПОЛНЕНИЕ */
    max-width: 100%;
    overflow: hidden;
    max-height: 150px;
    overflow-y: auto;
}

.selected-tag {
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    /* ✅ ОГРАНИЧИВАЕМ МАКСИМАЛЬНУЮ ШИРИНУ */
    max-width: calc(100% - 10px);
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    flex-shrink: 0;
}

.selected-tag .remove {
    cursor: pointer;
    font-weight: bold;
    padding: 0 2px;
    flex-shrink: 0;
    /* Не сжимать кнопку удаления */
}

.selected-tag .remove:hover {
    color: #ad1457;
}

/* Контент с играми */
.games-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.games-content .games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 0;
    max-width: none;
    margin: 0;
}

.games-content .game-card {
    width: 100%;
    height: 450px;
}

.games-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.games-counter {
    font-size: 1rem;
    color: #495057;
    font-weight: 500;
}

.games-sort select {
    padding: 8px 12px;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background: white;
    color: #495057;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.games-sort select:focus {
    outline: none;
    border-color: #e91e63;
}

/* Дополнительные фильтры */
.filters-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.filters-section h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.3rem;
}

.category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-btn {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    color: #495057;
}

.filter-btn:hover {
    border-color: #e91e63;
    background: rgba(233, 30, 99, 0.1);
    color: #e91e63;
}

.filter-btn.active {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    border-color: #e91e63;
    color: white;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

/* Панель поиска патчей */
.patches-search-panel {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 40px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.search-panel-content h3 {
    color: #e91e63;
    margin-bottom: 20px;
    text-align: center;
    font-size: 1.3rem;
}

.search-panel-input {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.patches-search {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.patches-search:focus {
    outline: none;
    border-color: #e91e63;
    box-shadow: 0 0 0 3px rgba(233, 30, 99, 0.1);
}

.search-hint {
    text-align: center;
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 10px;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e91e63;
    border-top: none;
    border-radius: 0 0 15px 15px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 100;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-result-item:hover {
    background: rgba(233, 30, 99, 0.05);
}

.search-result-item img {
    width: 50px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.result-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 1rem;
}

.result-info p {
    color: #6c757d;
    font-size: 0.85rem;
}

.result-info mark {
    background: rgba(233, 30, 99, 0.2);
    padding: 2px 4px;
    border-radius: 3px;
}

.no-search-results {
    padding: 20px;
    text-align: center;
    color: #6c757d;
}

/* Стили для страницы патчей */
.games-patches .games-grid {
    /* Используем те же стили что и на главной */
}

.games-patches .game-card {
    /* Наследуем размеры с главной страницы */
    position: relative;
}

.games-patches .game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(233, 30, 99, 0.2);
}

/* =============================================================================
   КНОПКИ И ЭЛЕМЕНТЫ УПРАВЛЕНИЯ
   ============================================================================= */

.game-buttons {
    display: flex;
    gap: 30px;
    margin-top: 15px;
    justify-content: center;
    background: none;
    padding: 0;
}

.steam-button-new,
.patch-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 30px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 180px;
    max-width: 180px;
    height: 60px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.steam-button-new {
    background: linear-gradient(135deg, #4285f4, #1e88e5);
    color: white;
}

.steam-button-new:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(66, 133, 244, 0.4);
}

.steam-button-new img {
    width: 24px;
    height: 24px;
}

.patch-button {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
}

.patch-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.4);
}

.patch-button.patch-available {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    cursor: pointer;
}

.patch-button.patch-available:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(233, 30, 99, 0.4);
}

.patch-button.patch-unavailable {
    background: linear-gradient(135deg, #6c757d, #495057);
    color: #adb5bd;
    cursor: not-allowed;
    opacity: 0.7;
}

.patch-button.patch-unavailable:hover {
    transform: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    opacity: 0.8;
}

/* =============================================================================
   МОДАЛЬНЫЕ ОКНА
   ============================================================================= */

/* Модальное окно патчей */
.patch-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    backdrop-filter: blur(5px);
}

.patch-modal-content {
    background: white;
    padding: 40px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    cursor: default;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.patch-modal h3 {
    color: #e91e63;
    margin-bottom: 20px;
    font-size: 1.5rem;
    text-align: center;
}

.patch-modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: #e91e63;
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.patch-modal-close:hover {
    background: #ad1457;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.patch-modal .patch-item {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.patch-modal .patch-item:hover {
    border-color: #e91e63;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(233, 30, 99, 0.1);
}

.patch-modal .patch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.patch-modal .patch-type {
    font-weight: bold;
    color: #e91e63;
    font-size: 1rem;
}

.patch-modal .patch-download {
    background: linear-gradient(135deg, #e91e63, #ad1457);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(233, 30, 99, 0.3);
}

.patch-modal .patch-download:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(233, 30, 99, 0.4);
}

.patch-modal .patch-note {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.4;
}

.patch-modal .patch-warning {
    background: rgba(233, 30, 99, 0.1);
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 15px;
}

.patch-modal .patch-warning p {
    color: #e91e63;
    font-size: 0.85rem;
    margin: 0;
    text-align: center;
    font-weight: 600;
}

/* Модальное окно скриншотов */
.screenshot-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    cursor: pointer;
}

.modal-content {
    position: relative;
    max-width: 95vw;
    max-height: 95vh;
    cursor: default;
    z-index: 10;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    color: #000;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 11;
}

.modal-close:hover {
    background: #fff;
    transform: scale(1.1);
}

/* =============================================================================
   ФУТЕР
   ============================================================================= */

.site-footer {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.1);
    padding: 30px 0 15px;
    margin-top: 50px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 20px;
}

.footer-section h3,
.footer-section h4 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.footer-section p {
    color: #495057;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #495057;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: #e91e63;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: #6c757d;
}

.social-links {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.social-link {
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.1);
    transition: background 0.3s ease;
    text-decoration: none;
    color: #495057;
    font-size: 0.9rem;
}

.social-link:hover {
    background: #e91e63;
    color: #fff;
}

/* Стили для переключателя языков */
.language-selector {
    position: relative;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(233, 30, 99, 0.2);
    border-radius: 25px;
    padding: 8px 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.lang-toggle:hover {
    background: rgba(255, 255, 255, 1);
    border-color: #e91e63;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(233, 30, 99, 0.2);
}

/* ✅ ПРАВИЛЬНЫЕ РАЗМЕРЫ ФЛАГОВ */
.lang-toggle img {
    width: 24px;
    height: 18px;
    /* Пропорция 4:3 */
    border-radius: 3px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    object-fit: cover;
}

.lang-toggle:hover img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.language-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border: 2px solid rgba(233, 30, 99, 0.3);
    border-radius: 15px;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.language-menu[style*="block"] {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.lang-option:last-child {
    margin-bottom: 0;
}

.lang-option:hover {
    background: rgba(233, 30, 99, 0.1);
    transform: translateX(3px);
}

/* ✅ ФЛАГИ В ВЫПАДАЮЩЕМ МЕНЮ */
.lang-option img {
    width: 28px;
    height: 21px;
    /* Пропорция 4:3 */
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    object-fit: cover;
    flex-shrink: 0;
}

.lang-option:hover img {
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(233, 30, 99, 0.4);
}

/* 📱 АДАПТИВНОСТЬ */
@media (max-width: 768px) {
    .lang-toggle {
        padding: 6px 10px;
        gap: 6px;
    }

    .lang-toggle img {
        width: 20px;
        height: 15px;
    }

    .language-menu {
        right: -10px;
        min-width: 150px;
        padding: 8px;
    }

    .lang-option {
        padding: 10px 12px;
        font-size: 0.8rem;
    }

    .lang-option img {
        width: 24px;
        height: 18px;
    }
}

@media (max-width: 576px) {
    .lang-toggle img {
        width: 18px;
        height: 14px;
    }

    .lang-option img {
        width: 20px;
        height: 15px;
    }
}



/* =============================================================================
   АДАПТИВНОСТЬ И МЕДИА-ЗАПРОСЫ
   ============================================================================= */

/* Большие планшеты */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .game-top-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .game-bottom-section {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .swiper-slide {
        width: 500px !important;
        height: 280px !important;
    }

    .screenshotsSwiper .swiper-slide {
        width: 320px !important;
        height: 180px !important;
    }
}

/* Средние планшеты */
@media (max-width: 1024px) {
    .games-layout {
        grid-template-columns: 250px 1fr;
        gap: 20px;
    }

    .filters-sidebar {
        top: 70px;
    }
}

/* Маленькие планшеты */
@media (max-width: 992px) {
    .hero-banner {
        height: 300px;
    }

    .swiper-slide {
        width: 450px !important;
        height: 253px !important;
    }

    .screenshotsSwiper .swiper-slide {
        width: 280px !important;
        height: 157px !important;
    }

    .games-carousel {
        margin: 50px 0;
    }
}

/* Большие мобильные устройства */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    /* Хедер */
    .sticky-header {
        max-height: none;
        height: auto;
        padding: 5px 0;
    }

    .header-content {
        flex-direction: column;
        gap: 8px;
        padding: 8px 15px;
        text-align: center;
        min-height: auto;
        max-height: none;
    }

    .logo-section .logo {
        width: 50px;
        height: 25px;
    }

    .main-navigation {
        gap: 5px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .main-navigation a {
        font-size: 0.7rem;
        padding: 4px 8px;
    }

    .header-controls {
        gap: 8px;
        flex-direction: row;
        width: auto;
        justify-content: center;
    }

    .search-input {
        width: 150px;
        max-width: 150px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }

    .lang-toggle {
        align-self: center;
        padding: 4px;
    }

    .lang-toggle img {
        width: 16px;
        height: 16px;
    }

    /* Баннеры и карусели */
    .hero-banner {
        height: 200px;
    }

    .games-carousel {
        margin: 20px 0;
    }

    .gameSwiper {
        height: 180px;
        padding: 0 10px;
    }

    .swiper-slide {
        width: 250px !important;
        height: 140px !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 30px;
        height: 30px;
        margin-top: -15px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 10px;
    }

    /* Игры */
    .games-grid {
        flex-direction: column;
        align-items: center;
        gap: 12px;
        padding: 15px 0;
    }

    .game-card {
        width: 85% !important;
        max-width: 280px !important;
        height: 200px !important;
    }

    .game-card-logo {
        width: 40px;
        height: 25px;
        top: 4px;
        right: 4px;
    }

    .game-card-logo img {
        width: 40px;
        height: 25px;
    }

    /* Фильтры */
    .games-layout {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .filters-sidebar {
        position: static;
        max-height: none;
        order: 2;
    }

    .games-content {
        order: 1;
    }

    .games-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .games-sort {
        align-self: stretch;
    }

    .games-sort select {
        width: 100%;
    }

    .filters-section {
        padding: 20px;
    }

    .category-filters {
        justify-content: center;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .page-header h1 {
        font-size: 2rem;
    }

    /* Скриншоты */
    .screenshotsSwiper {
        height: 160px;
    }

    .screenshotsSwiper .swiper-slide {
        width: 200px !important;
        height: 112px !important;
    }

    .screenshots-next,
    .screenshots-prev {
        width: 25px;
        height: 25px;
    }

    .screenshots-next:after,
    .screenshots-prev:after {
        font-size: 8px;
    }

    /* Кнопки */
    .game-buttons {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    .steam-button-new,
    .patch-button {
        width: 90%;
        max-width: 200px;
        min-width: auto;
        height: 40px;
        font-size: 0.85rem;
    }

    /* Контент */
    .game-description-left,
    .game-details {
        padding: 15px;
    }

    .game-description-left h3,
    .game-details h3 {
        font-size: 1.1rem;
    }

    .patches-section,
    .about-section {
        padding: 30px 0;
        margin: 15px 0;
    }

    .patches-section h2,
    .about-section h2 {
        font-size: 1.6rem;
    }

    /* Футер */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Модальные окна */
    .patch-modal-content {
        padding: 15px;
        margin: 10px;
    }

    .age-disclaimer-content {
        padding: 20px;
        margin: 10px;
    }

    .age-disclaimer-logo h2 {
        font-size: 35px;
    }

    .age-disclaimer-text h3 {
        font-size: 18px;
    }

    .age-disclaimer-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .age-btn {
        min-width: auto;
        width: 100%;
        padding: 10px 15px;
    }

    /* About page адаптивность */
    .about-content {
        gap: 40px;
    }

    .about-section,
    .team-section,
    .principles-section,
    .contact-section {
        padding: 40px 0;
        margin: 20px 0;
        border-radius: 15px;
    }

    .about-text h2,
    .team-section h2,
    .principles-section h2,
    .contact-section h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .about-text p {
        font-size: 1rem;
        padding: 0 15px;
    }

    .principles-grid,
    .contact-info {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 15px;
    }

    .team-member {
        padding: 20px;
        margin: 0 15px;
    }

    .member-avatar img {
        width: 80px;
        height: 80px;
    }

    .principle,
    .contact-item {
        padding: 20px;
    }

    /* В блок @media (max-width: 576px) добавьте: */

    .about-text h2,
    .team-section h2,
    .principles-section h2,
    .contact-section h2 {
        font-size: 1.3rem;
    }

    .about-text p {
        font-size: 0.95rem;
    }

    .principles-grid,
    .contact-info {
        padding: 0 10px;
    }

    .team-member {
        margin: 0 10px;
        padding: 15px;
    }

    .member-avatar img {
        width: 60px;
        height: 60px;
    }
}

/* Маленькие мобильные устройства */
@media (max-width: 576px) {
    .container {
        padding: 0 8px;
    }

    .header-content {
        gap: 5px;
        padding: 5px 8px;
    }

    .logo-section .logo {
        width: 40px;
        height: 20px;
    }

    .main-navigation a {
        font-size: 0.65rem;
        padding: 3px 6px;
    }

    .search-input {
        width: 120px;
        max-width: 120px;
        padding: 4px 8px;
        font-size: 0.75rem;
    }

    .lang-toggle img {
        width: 14px;
        height: 14px;
    }

    .hero-banner {
        height: 150px;
    }

    .swiper-slide {
        width: 200px !important;
        height: 112px !important;
    }

    .swiper-button-next,
    .swiper-button-prev {
        width: 25px;
        height: 25px;
        margin-top: -12px;
    }

    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 8px;
    }

    .games-grid {
        gap: 8px;
        padding: 10px 0;
    }

    .game-card {
        width: 95% !important;
        max-width: none !important;
        height: 160px !important;
    }

    .screenshotsSwiper .swiper-slide {
        width: 150px !important;
        height: 84px !important;
    }

    .steam-button-new,
    .patch-button {
        max-width: 160px;
        height: 35px;
        font-size: 0.8rem;
        padding: 8px 12px;
    }

    .filters-sidebar {
        border-radius: 8px;
        margin-bottom: 15px;
    }

    .filter-options,
    .categories-scroll {
        max-height: 150px;
    }

    .games-header {
        padding: 15px;
    }

    .category-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .age-disclaimer-content {
        padding: 15px;
        margin: 5px;
    }

    .age-disclaimer-logo h2 {
        font-size: 28px;
    }

    .age-disclaimer-text h3 {
        font-size: 16px;
    }

    .age-disclaimer-text p {
        font-size: 12px;
    }

    .age-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* Очень маленькие экраны */
@media (max-width: 320px) {
    .container {
        padding: 0 5px;
    }

    .header-content {
        padding: 3px 5px;
    }

    .logo-section .logo {
        width: 35px;
        height: 18px;
    }

    .search-input {
        width: 100px;
        max-width: 100px;
        font-size: 0.7rem;
    }

    .hero-banner {
        height: 120px;
    }

    .swiper-slide {
        width: 160px !important;
        height: 90px !important;
    }

    .game-card {
        height: 140px !important;
    }

    .screenshotsSwiper .swiper-slide {
        width: 120px !important;
        height: 67px !important;
    }

    .steam-button-new,
    .patch-button {
        max-width: 120px;
        height: 30px;
        font-size: 0.7rem;
        padding: 6px 10px;
    }

    .age-disclaimer-content {
        padding: 10px;
        margin: 2px;
    }
}