/* ==========================================================================
   1. ГЛОБАЛЬНЫЕ И БАЗОВЫЕ СТИЛИ
   ========================================================================== */
   body { 
    font-family: 'Segoe UI', sans-serif; 
    background: #0a0a0a; 
    color: #e2e8f0; 
    margin: 0; 
    padding: 0; 
}

html {
    overflow-y: scroll;
}

.container { 
    max-width: 80%; 
    margin: 0 auto; 
    padding: 0; 
    box-sizing: border-box; 
}

/* Элегантная черта-разделитель со свечением */
.designer-divider { 
    width: 180px; 
    height: 1px; 
    background: linear-gradient(to right, transparent, #cca362, transparent); 
    box-shadow: 0 0 8px rgba(204, 163, 98, 0.5); 
    margin-top: -20px;     
    margin-bottom: 40px;  
    margin-inline: auto;  
}

/* ==========================================================================
   2. ШАПКА САЙТА И ГЛАВНОЕ МЕНЮ (ТАБЫ)
   ========================================================================== */
.header-banner { 
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.4) 70%, #0a0a0a 93%, #0a0a0a 100%), url('../img/system/banner.jpg') no-repeat center 40%/cover; 
    height: 380px; 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    justify-content: space-between; 
    text-align: center;
    position: relative;
    transition: height 0.4s cubic-bezier(0.25, 1, 0.5, 1), padding 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: height;
}

.top-brand-container { 
    width: 80%; 
    margin: 0 auto; 
    padding: 0; 
    box-sizing: border-box; 
    align-self: flex-start;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-brand-line { 
    color: rgba(255, 255, 255, 0.8); 
    font-size: 0.9rem; 
    font-weight: 700; 
    letter-spacing: 3px; 
    padding: 35px 0 0 0;
    text-transform: uppercase;
    text-align: left;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5);
}

.banner-content { 
    margin-top: 20px; 
    margin-bottom: auto; 
    padding: 0 20px; 
    max-width: 800px; 
    transition: all 0.4s ease;
}

.banner-badge { 
    font-size: 0.95rem; 
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 3px; 
    font-weight: bold; 
    display: inline-block; 
    margin-bottom: 8px; 
    transition: opacity 0.3s ease, transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.5); /* добавляем тень */
}

.main-golden-title {
    font-size: 3.8rem;
    margin: 0;
    letter-spacing: 2px;
    font-weight: 800; 
    background: linear-gradient(135deg, #f5ecd7 0%, #e0be8b 60%, #b89356 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 3px 2px rgba(0, 0, 0, 0.9))
            drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.8));
    transition: font-size 0.4s cubic-bezier(0.25, 1, 0.5, 1), margin 0.4s ease;
}

.banner-desc { 
    font-size: 1.25rem; 
    color: #cbd5e0; 
    margin-top: 12px; 
    line-height: 1.6;
    font-weight: 400; 
    text-shadow: 
    0px 2px 0px rgba(0, 0, 0, 0.9),
    0px 6px 15px rgba(0, 0, 0, 0.8),
    0px 0px 40px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Кнопка авторизации в правом верхнем углу */
.header-auth-btn {
    background: #11141a; 
    border: 1px solid #cca362; 
    color: #f5ecd7; 
    padding: 6px 14px;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    align-self: flex-end; /* Выравниваем кнопку по нижней линии текста логотипа */
    margin-bottom: -10px;   /* Микро-подгонка по высоте, чтобы визуально кнопка и текст стояли на одной базовой линии */
}

.header-auth-btn:hover {
    background: #1a1f29;
    border-color: #e0be8b;
    color: #fff;
    box-shadow: 0 0 12px rgba(224, 190, 139, 0.3);
}

.header-auth-btn i {
    font-size: 0.9rem;
    color: #e0be8b; /* Иконка горит золотом */
}

/* Логика сжатия шапки при скролле */
.header-banner.minimized {
    height: 150px; 
}
.header-banner.minimized .banner-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin-top: -15px;
    margin-bottom: auto;
    padding: 0 20px;
}
.header-banner.minimized .banner-badge,
.header-banner.minimized .banner-desc {
    display: none; 
}
.header-banner.minimized .main-golden-title {
    font-size: 2.2rem; 
    margin: 0;
    padding: 0;
    line-height: 1.2;
}
.header-banner.minimized .top-brand-line {
    padding-top: 20px;
}

/* Навигационные вкладки */
.tabs-menu-container { 
    width: 80%; 
    margin: -60px auto 0 auto;
    position: sticky; /* Включаем эффект прилипания */
    top: 0;           /* Меню зафиксируется у самого верха экрана */
    z-index: 999;     /* Поднимаем слой, чтобы контент прокручивался ПОД кнопками */
    box-sizing: border-box;
}

.tabs-menu { 
    display: flex; 
    background: #111;
    border: 1px solid #2d3748;
    border-radius: 10px; /* Делаем скругление со всех сторон красивым парящим блоком */
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.7);
    border-bottom: 1px solid #2d3748; /* Возвращаем нижнюю рамку */
    width: calc(100% + 14px);
    margin-left: -7px;
}

.tab-btn { 
    flex: 1; 
    padding: 20px; 
    background: rgba(26, 32, 44, 0.4); 
    border: none; 
    color: #718096; 
    font-size: 1.05rem; 
    cursor: pointer; 
    transition: 0.3s; 
    font-weight: 600; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    white-space: nowrap; 
}

.tab-btn:hover { 
    background: #1a202c; 
    color: #fff; 
}

.tab-btn.active { 
    background: #232a3a; 
    color: #fff; 
    border-bottom: 4px solid #3182ce; 
    padding-bottom: 16px; 
}

/* Контейнеры основного содержимого вкладок */
.tab-content { 
    display: none; 
    background: #111; 
    padding: 45px 45px 45px 45px;
    border-radius: 0 0 10px 10px; 
    border: 1px solid #2d3748; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.8); 
    border-top: none; 
    box-sizing: border-box;
}
.tab-content.active { 
    display: block; 
}

.title-container-center { 
    text-align: center; 
    width: 100%; 
}

/* Настройка начальных Заголовков (текст) для всех вкладок */
.tab-title { 
    font-size: 1.6rem; 
    margin-top: 0; 
    margin-bottom: 50px; 
    font-weight: 700; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    display: inline-block;
    background: linear-gradient(135deg, #f5ecd7 0%, #e0be8b 60%, #b89356 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0px 4px 8px rgba(0, 0, 0, 0.85)); 
}

/* ==========================================================================
   3. ВКЛАДКА: О ПРОЕКТЕ (ПРИВЕТСТВИЕ И СЕТКА ПЛИТОК)
   ========================================================================== */

/* Настройка Заголовка Приветствия внутри поля приветствия */
.intro-heading-matched { 
    font-size: 1.9rem; 
    margin-top: 0; 
    margin-bottom: 18px; 
    font-weight: 700; 
    letter-spacing: 0.5px; 
    color: rgb(250, 242, 225, 0.95); 
    position: relative;
    z-index: 2;
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.9),
        0 4px 12px rgba(0,0,0,0.8),
        0 8px 24px rgba(0,0,0,0.6);
}

.intro-text-prominent { 
    color: rgb(230, 238, 248, 1); 
    font-size: 1.15rem; 
    line-height: 1.75; 
    margin: 0; 
    font-weight: 400;
    position: relative;
    z-index: 2;
    filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 1)) drop-shadow(0px 0px 6px rgba(0, 0, 0, 0.8));
}

.tab-intro { 
    position: relative; 
    text-align: center; 
    padding: 130px 50px 70px 50px; 
    border-radius: 8px; 
    border: 1px solid #2d3748; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
    box-sizing: border-box;
    overflow: hidden;   
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.tab-intro::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1; 
    background: linear-gradient(to bottom, rgba(7, 7, 7, 0.2) 0%, rgba(7, 7, 7, 0.6) 40%, rgba(7, 7, 7, 0.9) 100%), 
                url('../img/system/welcome-bg.jpg') no-repeat center 90%/cover;
    transition: transform 0.5s ease, filter 0.5s ease;
}

.tab-intro:hover {
    border-color: #3182ce; 
}
.tab-intro:hover::before {
    transform: scale(1.02);
    filter: brightness(1.1) contrast(1.0); 
}

/* Мини-разделитель между абзацами в приветствии */
.divider-mini {
    position: relative;
    z-index: 2;
    width: 120px;
    height: 1px;
    margin: 8px auto;
    border: none;
    background: linear-gradient(to right, transparent, #cca362, transparent);
    box-shadow: 0 0 8px rgba(204, 163, 98, 0.4);
}

/* ===== ЗАГОЛОВОК С ЛИНИЯМИ ПО БОКАМ ===== */
.title-with-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 70px 0 70px 0;
    width: 100%;
}

.title-line {
    flex: 1 1 0;
    max-width: 25%; 
    height: 1px;
    background: linear-gradient(to right, transparent, #cca362, transparent);
    box-shadow: 0 0 8px rgba(204, 163, 98, 0.5);
}

/* Сетка преимуществ */
.feature-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 30px; 
}

.feature-card { 
    position: relative; 
    height: 400px; 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #2d3748; 
    display: flex; 
    align-items: flex-end; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.5); 
    transition: border-color 0.4s; 
}
.feature-card:hover { 
    border-color: #3182ce; 
}

.f-vertical { grid-row: span 2; height: 830px; } 
.f-horizontal { grid-column: span 2; }

.card-bg { 
    position: absolute; 
    top: 0; left: 0; width: 100%; height: 100%; 
    z-index: 1; 
    filter: brightness(1.0) contrast(0.99); 
    transition: transform 0.5s ease, filter 0.5s ease; 
}
.feature-card:hover .card-bg { 
    transform: scale(1.04); 
    filter: brightness(1.2) contrast(0.99); 
}

.f-card-1 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.1) 20%, rgba(7,7,7,0.5) 70%, rgba(7,7,7,0.9) 90%), url('../img/features/1.jpg') no-repeat center 40%/cover; }
.f-card-2 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.0) 20%, rgba(7,7,7,0.4) 70%, rgba(7,7,7,0.9) 90%), url('../img/features/2.jpg') no-repeat center/cover; }
.f-card-3 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.1) 20%, rgba(7,7,7,0.4) 70%, rgba(7,7,7,0.8) 90%), url('../img/features/3.jpg') no-repeat center 70%/cover; }
.f-card-4 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.1) 20%, rgba(7,7,7,0.5) 70%, rgba(7,7,7,0.8) 90%), url('../img/features/4.jpg') no-repeat center 70%/cover; }
.f-card-5 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.1) 20%, rgba(7,7,7,0.4) 70%, rgba(7,7,7,0.9) 90%), url('../img/features/5.jpg') no-repeat center 70%/cover; }
.f-card-6 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.1) 20%, rgba(7,7,7,0.4) 70%, rgba(7,7,7,0.9) 90%), url('../img/features/6.jpg') no-repeat center 75%/cover; }
.f-card-7 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.0) 20%, rgba(7,7,7,0.3) 70%, rgba(7,7,7,0.8) 90%), url('../img/features/7.jpg') no-repeat center/cover; }
.f-card-8 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.0) 20%, rgba(7,7,7,0.3) 70%, rgba(7,7,7,0.9) 90%), url('../img/features/8.jpg') no-repeat center/cover; }
.f-card-9 .card-bg { background: linear-gradient(to bottom, rgba(7,7,7,0.0) 20%, rgba(7,7,7,0.1) 70%, rgba(7,7,7,0.3) 90%), url('../img/features/9.jpg') no-repeat center/cover; }

.feature-text { 
    padding: 25px; 
    width: 100%; 
    box-sizing: border-box; 
    position: relative; 
    z-index: 2; 
}
.feature-text h3 { 
    margin: 0 0 12px 0; 
    font-size: 1.35rem; 
    font-weight: 700; 
    letter-spacing: 0.5px;
    color: rgb(250, 242, 225, 0.95);
    text-shadow: 
        0 2px 4px rgba(0,0,0,0.9),
        0 4px 12px rgba(0,0,0,0.8),
        0 8px 24px rgba(0,0,0,0.6);
}
.feature-text p { 
    margin: 0; 
    font-size: 1.0rem; 
    color: rgb(220, 230, 240, 1); 
    line-height: 1.55; 
    text-shadow: 1px 1px 5px #000; 
}

.feature-text h3 i,
.intro-heading-matched i {
    color: #e0be8b;          /* золотой цвет, как у акцентов */
    margin-right: 12px;      /* отступ от текста */
    font-size: 1.1rem;       /* чуть крупнее, чтобы выделялись */
    width: 1.4rem;           /* фиксированная ширина для выравнивания */
    text-align: center;
    display: inline-block;
}

/* ==========================================================================
   3.1. КАРТОЧКИ НОВОСТЕЙ (ДЛЯ ПРАВОЙ КОЛОНКИ)
   ========================================================================== */
   .news-mini-card {
    background: #1a1a1a;
    border: 1px solid #2d3748;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    transition: all 0.2s ease;
    cursor: pointer;
}
.news-mini-card:hover {
    border-color: #e0be8b;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.7), inset 2px 0 0 #e0be8b;
    transform: translateX(1px);
}
.news-mini-card:last-child {
    margin-bottom: 0;
}

/* Золотой градиент для заголовков */
.gold-heading {
    background: linear-gradient(135deg, #d4c4ac 0%, #e0be8b 60%, #b89356 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    opacity: 0.95;   /* уменьшает яркость всего элемента */
}

/* ==========================================================================
   4. ПОДВКЛАДКИ ВНУТРИ ВКЛАДКИ "ВЫБОР СБОРКИ"
   ========================================================================== */
   .game-subtabs {
    display: flex;
    justify-content: center;
    gap: 8px;                     /* чуть больше расстояние между кнопками */
    margin-bottom: 35px;          /* отступ снизу до карточек */
    background: transparent;
    padding: 0;
}

.game-subtab {
    background: #1a202c;
    border: 1px solid #2d3748;    /* полная рамка */
    color: #a0aec0;
    padding: 12px 48px;           /* увеличенные отступы для высоты и ширины */
    border-radius: 8px;          /* скругление со всех сторон */
    font-size: 1.05rem;          /* почти как основные вкладки */
    font-weight: 600;
    text-transform: none; /*uppercase;*/
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.25s ease;
    border-bottom: 2px solid transparent; /* уберём нижнюю границу, т.к. она не нужна */
    flex: 0 1 auto;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-subtab:hover {
    background: #232a3a;
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    transform: translateY(-2px);
}

.game-subtab.active {
    background: #232a3a;
    color: #e0be8b;
    border-color: #e0be8b;       /* золотая рамка у активной */
    box-shadow: 0 0 16px rgba(224, 190, 139, 0.2);
}

.game-container {
    display: none;
    animation: fadeInModal 0.3s ease;
}

.game-container.active {
    display: block;
}

/* ==========================================================================
   4.1 ВКЛАДКА: ВЫБОР СБОРКИ
   ========================================================================== */
.versions-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-top: 20px;
    align-items: start;
}

.version-card { 
    position: relative;
    background: #1a1a1a;
    border: 1px solid #2d3748; 
    border-radius: 8px; 
    overflow: hidden; 
    box-shadow: 0 10px 25px rgba(0,0,0,0.5); 
    display: flex; 
    flex-direction: column; 
    transition: border-color 0.4s ease, box-shadow 0.4s ease; /* ДОБАВЛЕНО: box-shadow и ease */
    height: auto; 
}
.version-card:hover { 
    border-color: #3182ce; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.7), 0 0 20px rgba(49,130,206,0.15); /* ДОБАВЛЕНО: усиление тени и свечение */
}

.version-img-header { 
    width: 100%; 
    height: 300px; 
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}
.version-img-header::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.2) 50%, rgba(10, 10, 10, 0.6) 75%, #1a1a1a 100%) !important;
}

/* Анимация фона внутри карточки */
.version-img-header > div {
    transition: transform 0.5s ease, filter 0.5s ease;
}
.version-card:hover .version-img-header > div {
    transform: scale(1.04);
    filter: brightness(1.15) contrast(0.95);
}

.v-img-ae { 
    background: url('../img/versions/main/ae-bg.jpg') no-repeat center/cover;
    height: 100%; width: 100%;
}
.v-img-se { 
    background: url('../img/versions/main/se-bg.jpg') no-repeat center/cover;
    height: 100%; width: 100%;
}
.v-img-ob { 
    background: url('../img/versions/main/ob-bg.jpg') no-repeat center/cover;
    height: 100%; width: 100%;
}
.v-img-fa { 
    background: url('../img/versions/main/fa-bg.jpg') no-repeat center/cover;
    height: 100%; width: 100%;
}

/* Переопределение для подвкладок «Скачать» */
.side-content .v-img-ae {
    background: url('../img/versions/banners/ae-bg_b.jpg') no-repeat center/cover;
}
.side-content .v-img-se {
    background: url('../img/versions/banners/se-bg_b.jpg') no-repeat center/cover;
}
.side-content .v-img-ob {
    background: url('../img/versions/banners/ob-bg_b.jpg') no-repeat center/cover;
}
.side-content .v-img-fa {
    background: url('../img/versions/banners/fa-bg_b.jpg') no-repeat center/cover;
}

.version-content { 
    padding: 30px; 
    box-sizing: border-box; 
    display: flex; 
    flex-direction: column; 
    background: #1a1a1a;
    position: relative; 
    z-index: 3;
    flex: 1; 
}

.version-card h3 { 
    margin: 0 0 6px 0; 
    font-size: 1.55rem; 
    line-height: 1.3;
    color: #ffffff;
}

.v-tag { 
    font-size: 1.1rem; 
    display: block; 
    margin-top: 4px; 
    font-weight: 400; 
}
.text-purple { color: #d6bcfa; }
.text-blue { color: #90cdf4; }

.v-desc { 
    color: #cbd5e0; 
    line-height: 1.65; 
    font-size: 1.05rem; 
    margin: 12px 0 20px 0;
}

.v-list { 
    padding-left: 20px; 
    color: #cbd5e0; 
    line-height: 1.7; 
    font-size: 1.02rem; 
    margin: 0;
}
.v-list li { 
    margin-bottom: 14px; 
}
.v-list li:last-child {
    margin-bottom: 0; 
}
.v-list strong { 
    color: #ffffff;
}

/* ===== ПОЛЕ ДОКУМЕНТАЦИИ ===== */
.kb-section {
    list-style: none;
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.15);
}
  
.kb-title {
    color: #e0be8b;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}
  
.kb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 15px;
}
  
.kb-link {
    color: #c2c9d6;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.88rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}
  
.kb-link:hover {
    background: rgba(224, 190, 139, 0.15);
    color: #fff;
    border-color: #e0be8b;
}
  
.kb-link i {
    margin-right: 6px;
    color: #e0be8b;
}

/* ===== АККОРДЕОНЫ ВНУТРИ КАРТОЧЕК ===== */
.accordion {
    margin-top: 20px;
    border: 1px solid #2d3748;
    border-radius: 6px;
    background: #111;
    overflow: hidden;
}

.accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #1a202c;
    cursor: pointer;
    user-select: none;
    transition: background 0.2s ease;
}
.accordion-header:hover {
    background: #232a3a;
}
.accordion-header span {
    font-weight: 600;
    color: #f0e6d2;
    font-size: 1rem;
}
.accordion-header i {
    color: #e0be8b;
    transition: transform 0.3s ease;
    font-size: 1rem;
}
.accordion-header.active i {
    transform: rotate(180deg);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    padding: 0 16px;
    background: #151515;
}
.accordion-content.active {
    max-height: 1000px; /* достаточно для любого списка */
    padding: 16px;
}

/* Стили для списков внутри аккордеона — переиспользуем .v-list */
.accordion-content .v-list {
    margin: 0;
    padding-left: 20px;
    color: #cbd5e0;
    line-height: 1.7;
    font-size: 1.02rem;
}
.accordion-content .v-list li {
    margin-bottom: 12px;
}
.accordion-content .v-list li:last-child {
    margin-bottom: 0;
}
.accordion-content .v-list strong {
    color: #ffffff;
}

/* Увеличиваем отступ сверху у заголовков внутри аккордеона */
.accordion-content h5 {
    margin-top: 20px;
    margin-bottom: 6px;
    color: #e0be8b;
    font-size: 1rem;
}

/* ==========================================================================
   5. ВКЛАДКА: СКАЧАТЬ (ЛАУНЧЕР-СТИЛЬ С ОБЪЕМНЫМИ КНОПКАМИ)
   ========================================================================== */
.side-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.side-menu {
    width: 22%; /* Чуть расширили, чтобы кнопки выглядели солиднее */
    display: flex;
    flex-direction: column;
    gap: 8px; /* Увеличили зазор между кнопками, раз они теперь объемные */
    background: transparent; 
    padding: 0;
    border: none;
    box-sizing: border-box;
}

.side-btn {
    text-align: left;
    padding: 14px 18px;
    /* Мягкий градиент сверху вниз для создания объема */
    background: linear-gradient(180deg, #1d222b 0%, #161a22 100%) !important;
    /* Элегантная рамка: сверху чуть светлее (блик), снизу темнее (тень) */
    border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-left: 1px solid rgba(255, 255, 255, 0.03) !important;
    border-right: 1px solid rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.5) !important;
    
    color: #a0aec0 !important; /* Сделали текст читаемым и контрастным */
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    border-radius: 5px;
    position: relative;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2); /* Легкая тень под кнопкой */
    transition: all 0.2s ease;
}

/* Эффект при наведении — кнопка «приподнимается» к источнику света */
.side-btn:hover {
    background: linear-gradient(180deg, #242b37 0%, #1a202a 100%) !important;
    color: #fff !important;
    border-top-color: rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.35);
    transform: translateX(6px);   /* ← добавляем смещение вправо */
}

/* Активное состояние — кнопка горит благородным золотом */
.side-btn.active {
    /* Делаем внутренний фон чуть теплее и глубже */
    background: linear-gradient(180deg, #1f1a15 0%, #16120e 100%) !important;
    color: #e0be8b !important; /* Фирменное золото */
    
    /* Тонкая интерактивная рамка цвета золота с полупрозрачностью */
    border: 1px solid rgba(224, 190, 139, 0.4) !important;
    
    /* Мягкое внешнее и внутреннее золотистое свечение, которое дает статус «Активна» */
    box-shadow: 
        0 0 12px rgba(224, 190, 139, 0.1), 
        inset 0 0 8px rgba(224, 190, 139, 0.05) !important;
}

/* Изящная вертикальная полоса слева у активной кнопки */
.side-btn.active::before {
    content: '';
    position: absolute;
    left: -1px; /* Сдвигаем на 1px, чтобы она идеально перекрыла левую рамку */
    top: -1px;  /* Растягиваем на всю высоту с учетом рамки */
    height: calc(100% + 2px); 
    width: 3px;
    background: linear-gradient(to bottom, #cca362, #e0be8b);
    border-radius: 5px 0 0 5px;
    box-shadow: 3px 0 10px rgba(224, 190, 139, 0.5);
    z-index: 2;
}

.side-content {
    width: 78%; /* Скорректировали под ширину меню */
    background: #1a1a1a;
    padding: 35px;
    border-radius: 8px;
    border: 1px solid #2d3748;
    min-height: 250px;
    box-sizing: border-box;
    overflow: hidden; 
}

/* Фикс для бесшовного растягивания скриншотов */
.side-content .version-img-header {
    height: 160px;
    width: calc(100% + 70px);
    margin: -35px -35px 25px -35px !important;
    box-sizing: border-box;
}

.sub-tab-content {
    display: none;
}
.sub-tab-content.active {
    display: block;
    animation: fadeInModal 0.25s ease;
}

.download-section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    color: #f0e6d2;
}

.download-notice {
    color: #cbd5e0;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

/* Новые элементы правого окна (Инфо-бэйджи, Панель шагов, Пароль) */
.download-info-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
}

.info-badge {
    background: #232a3a;
    border: 1px solid #2d3748;
    color: #cbd5e0;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}
.info-badge i {
    color: #e0be8b;
    margin-right: 6px;
}
.info-badge.badge-warning {
    border-color: #9c4221;
    background: #4a2011;
}
.info-badge.badge-warning i {
    color: #f6ad55;
}

.install-steps-block {
    background: #111;
    border: 1px solid #2d3748;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}
.install-steps-block h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #f0e6d2;
}
.install-steps-block h4 i {
    color: #e0be8b;
    margin-right: 8px;
}

.password-alert {
    margin-top: 15px;
    padding: 12px 15px;
    background: #1a202c;
    border-left: 4px solid #cca362;
    border-radius: 0 4px 4px 0;
    font-weight: 600;
}
.password-alert i {
    color: #e0be8b;
    margin-right: 6px;
}
.password-code {
    color: #fff;
    background: #2d3748;
    padding: 2px 8px;
    border-radius: 3px;
    font-family: monospace;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.password-copy-btn i {
    color: #e0be8b; /* золотой, как у основной сборки */
}

.password-reveal-btn,
[id$="-password-toggle"] {
    transition: all 0.1s ease-in-out;
}

.password-reveal-btn:hover,
[id$="-password-toggle"]:hover {
    color: #eac88a !important;
    text-shadow: 0 0 10px rgba(224, 190, 139, 0.7);
    transform: scale(1.05);
}

.password-reveal-btn:active,
[id$="-password-toggle"]:active {
    transform: scale(0.95);
}

.author-warning-box {
    background: rgba(156, 66, 33, 0.1);
    border: 1px dashed #9c4221;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.author-warning-box i {
    color: #f6ad55;
    margin-right: 6px;
}

.download-footer-links {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #2d3748;
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: #a0aec0;
}
.download-footer-links i {
    margin-right: 6px;
}
.forum-link {
    color: #e0be8b; /* Наше фирменное золото */
    text-decoration: none;
    font-weight: bold;
}
.forum-link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   11. ВНЕШНИЕ ССЫЛКИ И КНОПКИ В НАВИГАЦИИ
   ========================================================================== */
   .tab-btn.tab-link-external {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #e0be8b;
}
.tab-btn.tab-link-external:hover {
    color: #fff;
    background: #1a202c;
}

/* ==========================================================================
   12. СТИЛИ ВКЛАДКИ «МЕДИА» (ГАЛЕРЕЯ)
   ========================================================================== */
   .media-filters-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin: 0 auto 30px auto;
    width: fit-content;
    max-width: 100%;
    background: #1a1a1a;
    border: 1px solid #2d3748;
    padding: 14px 24px;
    border-radius: 8px;
    box-sizing: border-box;
}

.media-filter-group {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    width: auto;
}

.filter-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #e0be8b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-right: 6px;
}

.media-filter-btn {
    background: #111318;
    border: 1px solid #2d3748;
    color: #a0aec0;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
}

.media-filter-btn:hover {
    color: #fff;
    border-color: #e0be8b;
}

.media-filter-btn.active {
    background: #e0be8b;
    color: #0b0c0e;
    border-color: #e0be8b;
    font-weight: 700;
}

/* Сетка карточек */
.media-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
    gap: 20px !important;
    width: 100%;
    box-sizing: border-box;
}

.media-card {
    background: #1a1a1a;
    border: 1px solid #2d3748;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.media-card:hover {
    transform: translateY(-4px);
    border-color: #e0be8b;
}

/* Контейнер обложки */
.media-thumb-container {
    position: relative;
    height: 190px;
    width: 100%;
    background: #111318;
    overflow: hidden;
    cursor: pointer;
}

.media-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.media-card:hover .media-thumb {
    transform: scale(1.05);
}

.media-play-overlay,
.media-zoom-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.85;
    transition: opacity 0.3s ease, background 0.3s ease;
    color: #e0be8b;
    font-size: 2.5rem;
}

.media-play-overlay.vk-color {
    color: #0077ff;
}

.media-card:hover .media-play-overlay,
.media-card:hover .media-zoom-overlay {
    opacity: 1;
    background: rgba(0, 0, 0, 0.1);
    color: #fff;
}

.media-thumb-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Lightbox Modal */
.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    margin: auto;
    position: relative;
    text-align: center;
}

#lightbox-img {
    max-width: 100%;
    max-height: 80vh;
    border: 2px solid #e0be8b;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
}

/* Lightbox навигация */
#lightbox-modal .lightbox-content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

#lightbox-img {
    max-width: 90%;
    max-height: 80vh;
    border: 2px solid #e0be8b;
    border-radius: 6px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    transition: opacity 0.3s ease;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    border: none;
    color: #fff;
    font-size: 2rem;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s ease;
    z-index: 10;
}
.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.85);
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    background: rgba(0, 0, 0, 0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    z-index: 10;
}

@media (max-width: 768px) {
    .filter-label {
        width: 100%;
        text-align: center;
        margin-bottom: 2px;
    }
}

/* ==========================================================================
   13. СТИЛИ ВКЛАДКИ «ЗАЛ СЛАВЫ / ДОНАТ»
   ========================================================================== */
.fame-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.fame-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fame-card {
    display: flex;
    align-items: center;
    background: #151820;
    border: 1px solid #2d3748;
    padding: 14px 18px;
    border-radius: 6px;
}

.fame-rank {
    font-weight: 800;
    font-size: 1.1rem;
    width: 35px;
    color: #a0aec0;
}

.fame-user {
    flex: 1;
}

.fame-name {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.fame-role {
    font-size: 0.78rem;
    color: #a0aec0;
}

.fame-amount {
    font-weight: 700;
    color: #e0be8b;
    font-size: 1.05rem;
}

/* Топ-3 стили */
.fame-gold { border-color: #cca362; background: linear-gradient(90deg, rgba(204, 163, 98, 0.15) 0%, #151820 100%); }
.fame-gold .fame-rank { color: #cca362; }
.fame-silver { border-color: #a0aec0; background: linear-gradient(90deg, rgba(160, 174, 192, 0.12) 0%, #151820 100%); }
.fame-silver .fame-rank { color: #a0aec0; }
.fame-bronze { border-color: #b87333; background: linear-gradient(90deg, rgba(184, 115, 51, 0.12) 0%, #151820 100%); }
.fame-bronze .fame-rank { color: #b87333; }

/* Шкала цели */
.goal-box {
    background: #151820;
    border: 1px solid #2d3748;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.goal-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 600;
    color: #f0e6d2;
    margin-bottom: 10px;
}

.goal-bar-bg {
    height: 12px;
    background: #2d3748;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 8px;
}

.goal-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #cca362 0%, #e0be8b 100%);
}

.goal-footer {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #a0aec0;
}

/* Донат бокс */
.donate-box {
    background: #151820;
    border: 1px solid #2d3748;
    padding: 20px;
    border-radius: 8px;
}

.donate-methods {
    display: flex;
    gap: 12px;
    margin: 20px 0;
}

.btn-donate-da { background: #ff7f00; color: #fff; font-size: 0.88rem; padding: 12px; }
.btn-donate-da:hover { background: #e06f00; }
.btn-donate-boosty { background: #f15f2c; color: #fff; font-size: 0.88rem; padding: 12px; }
.btn-donate-boosty:hover { background: #d44e1f; }

.crypto-wallet-block {
    background: #0b0c0e;
    padding: 12px;
    border-radius: 6px;
    border: 1px dashed #2d3748;
}

.crypto-title {
    font-size: 0.82rem;
    color: #a0aec0;
    margin-bottom: 6px;
}

.crypto-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.crypto-row code {
    color: #e0be8b;
    font-family: monospace;
    font-size: 0.85rem;
}

.crypto-row button {
    background: none;
    border: none;
    color: #a0aec0;
    cursor: pointer;
}
.crypto-row button:hover { color: #fff; }

@media(max-width: 992px) {
    .fame-layout {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. ЕДИНАЯ СИСТЕМА КНОПОК САЙТА (.btn)
   ========================================================================== */
.btn { 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px; /* Идеальный чистый отступ между иконкой и текстом */
    
    width: 100%; 
    padding: 18px; 
    text-align: center; 
    border-radius: 6px; 
    font-weight: bold; 
    cursor: pointer; 
    border: none; 
    font-size: 1rem; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: all 0.25s ease; 
    box-sizing: border-box;    
    text-decoration: none !important; /* Полностью убираем любые подчеркивания */
}

/* Общие дефолтные типы кнопок сайта */
.btn-primary { background: #2f855a; color: white; }
.btn-primary:hover { background: #38a169; }
.btn-primary:disabled { background: #4a4a4a; color: #888; cursor: not-allowed; }

.btn-secondary { background: #2b6cb0; color: white; }
.btn-secondary:hover { background: #3182ce; }

.btn-vip { background: #9f7aea; color: white; }
.btn-vip:hover { background: #b794f4; }

/* Кастомная панель кнопок для скачивания (Вкладка Центр загрузки) */
.download-actions-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 25px;
}

.mirror-buttons-row.triple-row {
    display: flex;
    gap: 12px;
}

/* Точечная перегрузка геометрии кнопок для зеркал */
.mirror-buttons-row.triple-row .btn {
    padding: 14px 10px !important;
    font-size: 0.9rem !important;
    font-weight: 600;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.mirror-notice {
    display: block;
    text-align: center;
    color: #718096;
    margin-top: 8px;
    font-size: 0.85rem;
}

/* Стили конкретных зеркал */
.btn-s3-primary {
    flex: 2; 
    background: linear-gradient(180deg, #1e4620 0%, #0f2d12 100%);
    border: 1px solid #2d5a30 !important;
    color: #f0e6d2 !important;
}
.btn-s3-primary:hover {
    background: linear-gradient(180deg, #27592b 0%, #153d19 100%);
    border-color: #cca362 !important;
    color: #fff !important;
    box-shadow: 0 0 12px rgba(204, 163, 98, 0.25);
    transform: translateY(-1px);
}

.btn-torrent-dark {
    flex: 1;
    background: linear-gradient(180deg, #232d3b 0%, #151b24 100%);
    border: 1px solid #364457 !important;
    color: #a0aec0 !important;
}
.btn-torrent-dark:hover {
    background: linear-gradient(180deg, #2d3b4e 0%, #1a222e 100%);
    border-color: #4a617c !important;
    color: #fff !important;
    transform: translateY(-1px);
}

.btn-yandex-dark {
    flex: 1;
    background: linear-gradient(180deg, #4d1c1c 0%, #2d1111 100%);
    border: 1px solid #6b2d2d !important;
    color: #a0aec0 !important;
}
.btn-yandex-dark:hover {
    background: linear-gradient(180deg, #632525 0%, #3d1717 100%);
    border-color: #943939 !important;
    color: #fff !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   7. ВКЛАДКА: ПОДПИСКА (ТАРИФЫ)
   ========================================================================== */
.pricing-grid { 
    display: flex; 
    gap: 30px; 
    margin-top: 25px; 
}

.price-card { 
    flex: 1; 
    background: #1a202c; 
    border: 1px solid #2d3748; 
    border-radius: 8px; 
    padding: 40px; 
    text-align: center; 
    display: flex; 
    flex-direction: column; 
    justify-content: space-between; 
}
.price-card.vip { 
    border-color: #9f7aea; 
    background: #231c2e; 
    box-shadow: 0 0 25px rgba(159,122,234,0.15); 
}

.price-card h3 { 
    font-size: 1.8rem; 
    margin: 0; 
    color: #fff; 
}
.price-card .cost { 
    font-size: 3rem; 
    font-weight: bold; 
    color: #fff; 
    margin: 20px 0; 
}
.price-card .cost span { 
    font-size: 1.1rem; 
    color: #718096; 
}

.price-features { 
    list-style: none; 
    padding: 0; 
    margin: 0 0 30px 0; 
    text-align: left; 
    line-height: 2; 
    color: #cbd5e0; 
}
.price-features li::before { 
    content: "✓ "; 
    color: #48bb78; 
    font-weight: bold; 
    margin-right: 8px; 
}
.price-card.vip .price-features li::before { 
    color: #9f7aea; 
}

.support-text {
    text-align: center; 
    color: #cbd5e0; 
    font-size: 1.1rem; 
    max-width: 800px; 
    margin: 0 auto;
    line-height: 1.7;
}

/* ==========================================================================
   8. МОДАЛЬНЫЕ ОКНА
   ========================================================================== */
.custom-modal {
    display: none; 
    position: fixed;
    z-index: 9999; 
    left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px); 
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(26, 32, 42, 0.9);
    border: 1px solid #2d3748;
    padding: 35px;
    border-radius: 8px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: fadeInModal 0.3s ease; 
}

.modal-close {
    position: absolute;
    right: 20px; top: 15px;
    color: #718096;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.modal-close:hover { 
    color: #fff; 
}

.modal-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.5rem;
    color: #fff;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.modal-text {
    color: #cbd5e0;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 25px;
}

.modal-btn {
    margin-top: 5px;
}

@keyframes fadeInModal {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   8.1. СТИЛИ ДЛЯ ПОЛЯ ПОДТВЕРЖДЕНИЯ EMAIL (В МОДАЛКЕ АВТОРИЗАЦИИ)
   ========================================================================== */
   .input-default {
    border-color: #2d3748 !important;
    background: #111 !important;
}
.input-valid {
    border-color: #48bb78 !important; /* зелёный */
    background: #112211 !important;
}
.input-invalid {
    border-color: #e53e3e !important; /* красный */
    background: #221111 !important;
}

/* ==========================================================================
   8.2. МОДАЛЬНОЕ ОКНО ОПЛАТЫ
   ========================================================================== */
.payment-modal-content {
    max-width: 480px;
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Оформление карточек-кнопок оплаты */
.btn-payment {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 1rem;
    text-transform: none;
    letter-spacing: 0;
    transition: all 0.25s ease;
    border: 1px solid #2d3748;
    background: #151820;
    color: #f0e6d2;
}

/* Основной акцент — РФ (Автопродление) */
.btn-payment.btn-rf {
    background: linear-gradient(135deg, #1e4620 0%, #0f2d12 100%);
    border: 1px solid #2d5a30; /* убрали золотую рамку */
    box-shadow: none; /* убрали свечение */
}

/* Активная РФ — добавляем золотую рамку и усиливаем фон */
.btn-payment.btn-rf.active {
    border-color: #cca362 !important;
    box-shadow: 0 0 25px rgba(204, 163, 98, 0.5) !important;
    background: linear-gradient(135deg, #2d6a2d 0%, #1a4a1a 100%) !important;
}

/* Активные зарубежные — усиливаем фон */
.btn-payment.btn-foreign.active {
    background: #2a4a6a !important; /* ярче, чем стандартный #1a202c */
}

.btn-payment.btn-rf:hover {
    background: linear-gradient(135deg, #27592b 0%, #153d19 100%);
    border-color: #e0be8b;
    box-shadow: 0 0 20px rgba(224, 190, 139, 0.4);
    transform: translateY(-2px);
}

/* Кнопки зарубежных карт */
.btn-payment.btn-foreign {
    background: #1a202c;
}

.btn-payment.btn-foreign:hover {
    background: #232a3a;
    border-color: #3182ce;
    color: #fff;
    transform: translateY(-1px);
}

.btn-payment-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-payment-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.btn-payment-sub {
    font-size: 0.75rem;
    color: #e0be8b;
    margin-top: 3px;
    font-weight: normal;
}

.btn-payment-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
}

.btn-payment-price small {
    font-size: 0.8rem;
    font-weight: normal;
    color: #a0aec0;
}

/* Разделитель способов оплаты */
.payment-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 10px 0 4px 0;
    color: #718096;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.payment-divider::before,
.payment-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #2d3748;
}

.payment-divider span {
    padding: 0 10px;
}

.btn-payment.active {
    border-color: #e0be8b !important;
    box-shadow: 0 0 20px rgba(224, 190, 139, 0.4);
    background: #1e2a2e !important;
}

/* Модалки с юридическими документами и авторизацией — поверх модалки оплаты */
#auth-modal,
#legal-modal,
#news-modal {
    z-index: 10000 !important;
}

.btn-primary:disabled {
    background: #4a4a4a !important;
    color: #888 !important;
    cursor: not-allowed !important;
    opacity: 0.5 !important;
    pointer-events: none;
}

/* ==========================================================================
   9. КАСТОМНОЕ МОДАЛЬНОЕ ОКНО НОВОСТЕЙ (независимый класс)
   ========================================================================== */
   .news-modal-content {
    background: rgba(28, 34, 38, 0.8);
    border: 1px solid #2d3748;
    padding: 35px;
    border-radius: 8px;
    width: 80%;
    max-width: 1200px;
    max-height: 90vh;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    text-align: left;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
    animation: fadeInModal 0.3s ease;
    /* Убираем все свойства, которые могли бы конфликтовать с общими */
}

/* Кнопка Закрыть внутри новостного окна */
.news-modal-content .btn-secondary {
    background: hsl(220, 37%, 45%);
    border: 1px solid #2d3748;
    color: #fff;
}
.news-modal-content .btn-secondary:hover {
    background: hsl(220, 45%, 55%);
}

/* Тело новостей (скролл) */
#news-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 10px;
    color: #cbd5e0;
    line-height: 1.7;
    white-space: pre-wrap;
}

/* Скролл для тела новостей (оставляем как есть) */
#news-modal-body::-webkit-scrollbar {
    width: 8px;
}
#news-modal-body::-webkit-scrollbar-track {
    background: #1a1a1a;
}
#news-modal-body::-webkit-scrollbar-thumb {
    background: #e0be8b;
    border-radius: 4px;
}
#news-modal-body::-webkit-scrollbar-thumb:hover {
    background: #cca362;
}
#news-modal-body {
    scrollbar-width: thin;
    scrollbar-color: #e0be8b #1a1a1a;
}

/* ==========================================================================
   10. АДАПТИВНОСТЬ И МЕДИА-ЗАПРОСЫ (СТРОГО ОТ БОЛЬШОГО К МЕНЬШЕМУ)
   ========================================================================== */

/* --- Мониторы 2K и шире --- */
@media(min-width: 2049px) {
    .top-brand-container, 
    .tabs-menu-container, 
    .container { 
        max-width: 65%; 
    }
}

/* --- Ноутбуки (1440px) --- */
@media(max-width: 1440px) {
    .versions-grid { 
        grid-template-columns: 1fr; 
        gap: 25px; 
    }
    .feature-grid { 
        grid-template-columns: repeat(2, 1fr) !important; 
        gap: 16px; 
    }
    .feature-card { 
        height: 280px !important; 
    }
    .f-vertical { 
        grid-row: auto !important; 
        height: 280px !important; 
    }
    .f-horizontal { 
        grid-column: auto !important; 
    }
}

/* --- Планшеты (992px) --- */
@media(max-width: 992px) {
    .side-layout {
        flex-direction: column;
    }
    .side-menu, 
    .side-content {
        width: 100%;
    }
}

/* --- Мобильные устройства (768px) --- */
@media(max-width: 768px) {
    .container { 
        max-width: 100%; 
        padding: 0 10px; 
    }
    
    /* 1. ШАПКА НА ПЕРВОЙ ВКЛАДКЕ (АККУРАТНАЯ И КОМПАКТНАЯ) */
    .header-banner { 
        height: auto !important; 
        min-height: 220px; 
        padding-bottom: 15px;
        box-sizing: border-box;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    .top-brand-container { 
        width: 100%; 
        padding: 0 15px; 
    }
    .top-brand-line { 
        padding: 15px 0 0 0; 
        font-size: 0.7rem; 
        letter-spacing: 2px;
    }
    .banner-content { 
        padding: 0 15px; 
        margin: 35px auto 0 auto; 
    }
    .banner-badge { 
        font-size: 0.65rem; 
        letter-spacing: 2px;
    }
    .main-golden-title { 
        font-size: 2.0rem; 
        margin: 5px 0 !important;
    }
    .banner-desc { 
        display: block !important; 
        font-size: 0.85rem; 
        margin-top: 5px;
        line-height: 1.4;
    }

    /* Корректировка отступа кнопки входа на мобилках */
    .header-auth-btn {
        margin-top: 15px; /* Синхронно с новым padding-top у .top-brand-line */
        padding: 5px 10px;
        font-size: 0.75rem;
    }
    
    /* 2. ШАПКА НА ОСТАЛЬНЫХ ВКЛАДКАХ (РАБОТАЕТ НА УМЕНЬШЕНИЕ) */
    .header-banner.minimized {
        height: 120px !important; 
        min-height: 120px !important;
    }
    
    .header-banner.minimized .top-brand-line {
        padding-top: 10px !important;
    }
    
    .header-banner.minimized .banner-content {
        margin-top: 30px !important; 
    }
    
    .header-banner.minimized .main-golden-title {
        font-size: 1.5rem !important; 
        margin: 0 !important;
        line-height: 1.2;
    }
    
    .header-banner.minimized .banner-badge,
    .header-banner.minimized .banner-desc {
        display: none !important;
    }

    /* 3. НАВИГАЦИОННЫЕ ВКЛАДКИ */
    .tabs-menu-container { 
        width: 100%;
        padding: 0;
        margin: 0 auto; 
        position: sticky;
        top: 0;
        z-index: 999;
    }

    .tabs-menu { 
        flex-wrap: wrap; 
        border-radius: 0; 
        gap: 2px;
        padding: 4px;
        justify-content: center;
        width: 100%;
        margin-left: 0;
        box-sizing: border-box;
    }
    
    .tab-btn { 
        flex: 1 1 30%; 
        padding: 12px 8px; 
        font-size: 0.75rem;
        text-align: center;
        letter-spacing: 0.5px;
    }
    
    .tab-btn.active { 
        padding-bottom: 9px; 
        border-bottom-width: 3px;
    }
    
    .tab-content { 
        padding: 25px 15px 20px 15px; 
        border-radius: 0;
    }

    .tab-intro { 
        padding: 40px 15px 30px 15px; 
    }
    .intro-heading-matched { 
        font-size: 1.4rem; 
        margin-bottom: 12px;
    }
    .intro-text-prominent { 
        font-size: 0.92rem; 
        line-height: 1.6; 
    }
    
    .designer-divider { 
        width: 100px; 
        margin-top: 30px;
        margin-bottom: 20px;
    }
    .tab-title { 
        font-size: 1.3rem; 
        margin-bottom: 20px; 
    }
    
    .feature-grid { 
        grid-template-columns: 1fr !important;
        gap: 12px; 
    }
    .feature-card { 
        height: auto !important;
        min-height: 180px;
    }
    .f-vertical { 
        height: auto !important; 
        min-height: 180px;
    }
    .feature-text { 
        padding: 20px; 
    }
    .feature-text h3 { 
        font-size: 1.05rem; 
        margin: 0 0 8px 0;
    }
    .feature-text p { 
        font-size: 0.85rem; 
        line-height: 1.5; 
    }
    
    .version-img-header { 
        height: 180px; 
    }
    .version-content { 
        padding: 18px 15px; 
    }
    .version-card h3 { 
        font-size: 1.15rem; 
    }
    .v-tag { 
        font-size: 0.9rem; 
        margin-top: 2px;
    }
    .v-desc { 
        font-size: 0.88rem; 
        margin: 8px 0 15px 0;
    }
    .v-list { 
        font-size: 0.85rem; 
        padding-left: 15px;
    }
    .v-list li { 
        margin-bottom: 10px; 
    }
    
    .pricing-grid { 
        flex-direction: column; 
    }
    
    /* Кнопки скачивания на мобильных устройствах */
    .mirror-buttons-row.triple-row {
        flex-direction: column;
        gap: 10px;
    }
    .mirror-buttons-row.triple-row .btn {
        flex: none;
        width: 100%;
    }

    /* Поднимаем кнопку входа на мобилках */
    .header-auth-btn {
        margin-top: -20px !important;   /* сдвигаем вверх */
        padding: 4px 10px !important;   /* чуть уменьшаем размер, чтобы не перекрывала */
        font-size: 0.75rem !important;  /* делаем шрифт компактнее */
    }
    
    /* Дополнительная адаптивность для футера иконок в скачивании */
    .download-footer-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .patch-row {
        flex-wrap: wrap;
    }
    .patch-row > div {
        flex: 1 1 100% !important;
        padding-right: 0 !important;
    }
    .patch-row .right-col {
        align-items: flex-start !important;
    }

    /* ===== ИСПРАВЛЕНИЕ БЛОКА "ПРИВЕТСТВИЕ + НОВОСТИ" ===== */
    #about > div[style*="display: flex"] {
        display: block !important;
        gap: 0 !important;
    }
    #about > div[style*="display: flex"] > div {
        max-width: 100% !important;
        flex: none !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    #about > div[style*="display: flex"] > div:last-child {
        margin-top: 24px !important;
    }
    #about > div[style*="display: flex"] > div:last-child > div {
        max-height: none !important;
        height: auto !important;
        min-height: auto !important;
    }
    .tab-intro {
        padding: 30px 15px !important;
        min-height: auto !important;
    }
    .intro-heading-matched {
        font-size: 1.4rem !important;
    }
    .intro-text-prominent {
        font-size: 0.92rem !important;
        line-height: 1.6 !important;
    }
    /* ========== */
    .game-subtab {
        padding: 10px 24px;
        font-size: 0.9rem;
    }
    .game-subtabs {
        gap: 6px;
        margin-bottom: 20px;
    }
}

/* --- Экстремально маленькие экраны (480px) --- */
@media(max-width: 480px) {
    .tab-btn { 
        font-size: 0.65rem !important; 
        padding: 8px 8px !important;
        min-width: 28%;
    }
    .main-golden-title { 
        font-size: 1.6rem; 
    }
    .banner-desc { 
        font-size: 0.85rem; 
    }
    .tab-title { 
        font-size: 1.1rem; 
    }
    .feature-text h3 { 
        font-size: 0.95rem; 
    }
    .feature-text p { 
        font-size: 0.8rem; 
    }
    .version-card h3 { 
        font-size: 1rem; 
    }
}