:root {
    --adm-bg-dark: #090212;
    --adm-bg-header: #140524;
    --adm-bg-card: #1b0930;
    --adm-bg-card-hover: #260e42;
    --adm-text-primary: #ffffff;
    --adm-text-secondary: #9c8dae;
    
    /* Фирменный желтый/золотой цвет Адмирал Х вместо оранжевого */
    --adm-color-brand-yellow: #ffcc00;
    --adm-color-brand-yellow-light: #ffea70;
    
    /* Градиенты для кнопок и активных элементов */
    --adm-gradient-primary: linear-gradient(135deg, #ffea33 0%, #ffb300 100%);
    --adm-gradient-primary-hover: linear-gradient(135deg, #fff366 0%, #ffcc00 100%);
    
    /* Использование быстрого системного шрифта без подключения сторонних сервисов */
    --adm-font-family: Tahoma, sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--adm-bg-dark);
    color: var(--adm-text-primary);
    font-family: var(--adm-font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Шапка сайта */
.adm-header-wrapper {
    background-color: var(--adm-bg-header);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 2px solid #230b3d;
}

.adm-header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
}

.adm-brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #fff;
    font-weight: 800;
    font-size: 24px;
}

.adm-brand-logo img {
    max-width: 185px;
    width: 100%;
    height: auto;
    display: block;
}

.adm-brand-logo span {
    color: var(--adm-color-brand-yellow);
    margin-left: 4px;
}

.adm-nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
}

.adm-nav-link {
    color: var(--adm-text-secondary);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.adm-nav-link:hover {
    color: #fff;
}

.adm-app-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.adm-app-btn {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 6px;
    border-radius: 6px;
    transition: background 0.3s;
    color: #fff;
}

.adm-app-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

.adm-app-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.adm-auth-group {
    display: flex;
    gap: 10px;
}

.adm-btn {
    border: none;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s, filter 0.2s;
}

.adm-btn:hover {
    transform: translateY(-1px);
}

.adm-btn-primary {
    background: var(--adm-gradient-primary);
    color: #000;
    padding: 10px 20px;
}

.adm-btn-primary:hover {
    background: var(--adm-gradient-primary-hover);
}

.adm-btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.adm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Баннер с фоновым изображением, градиентным фильтром и выравниванием вправо */
.adm-hero-section {
    background: radial-gradient(circle at center, rgba(9, 2, 18, 0.3) 0%, rgba(9, 2, 18, 0.5) 100%), 
                url('/img/hero-bg.webp') no-repeat center center;
    background-size: cover;
    padding: 70px 20px;
    border-bottom: 1px solid #1c0830;
    display: flex;
    justify-content: center;
    align-items: center;
}

.adm-hero-box {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end; /* Сдвиг элементов управления (заголовка, текста, кнопки) вправо */
    text-align: right;     /* Выравнивание строк текста по правому краю */
}

.adm-hero-box h1 {
    font-size: clamp(28px, 5vw, 48px);
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.2;
    max-width: 600px;       /* Ограничение ширины блока текста, чтобы он не заходил на графику слева */
    width: 100%;
}

.adm-hero-box h1 span {
    color: var(--adm-color-brand-yellow);
}

.adm-hero-desc {
    font-size: 18px;
    color: var(--adm-text-secondary);
    margin-bottom: 30px;
    max-width: 600px;       /* Ограничение ширины описания */
    width: 100%;
}

.hero-btn {
    padding: 15px 40px;
    font-size: 18px;
    border-radius: 8px;
}

/* Сетка категорий (вместо горизонтальной прокрутки) */
.adm-categories-wrap {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.adm-categories-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.adm-category-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--adm-bg-card);
    padding: 12px 16px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--adm-text-secondary);
    font-weight: 600;
    transition: background 0.3s, color 0.3s;
}

.adm-category-item:hover, .adm-category-item.active {
    background: var(--adm-color-brand-yellow);
    color: #000;
}

.adm-category-item svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Сетка игровых карточек */
.adm-slots-section {
    max-width: 1200px;
    margin: 0 auto 50px auto;
    padding: 0 20px;
}

.adm-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.adm-slot-card {
    background-color: var(--adm-bg-card);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s, background-color 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
}

.adm-slot-card:hover {
    transform: translateY(-5px);
    background-color: var(--adm-bg-card-hover);
}

.adm-slot-img-box {
    position: relative;
    width: 100%;
    padding-top: 67.21%; /* Соответствует точным пропорциям картинок 244х164px */
    background-color: #0f031e;
}

.adm-slot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.adm-slot-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(9, 2, 18, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.adm-slot-card:hover .adm-slot-overlay {
    opacity: 1;
}

.adm-slot-meta {
    padding: 15px;
    text-align: center;
}

.adm-slot-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}

.adm-slot-provider {
    font-size: 12px;
    color: var(--adm-text-secondary);
}

/* SEO Контент */
.adm-seo-block {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.adm-seo-block h2 {
    font-size: 26px;
    margin-top: 30px;
    margin-bottom: 15px;
    color: #fff;
    border-left: 4px solid var(--adm-color-brand-yellow);
    padding-left: 15px;
}

.adm-seo-block p {
    margin-bottom: 15px;
    color: var(--adm-text-secondary);
    font-size: 15px;
    text-align: justify;
}

.adm-pros-cons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

@media (max-width: 768px) {
    .adm-pros-cons-grid {
        grid-template-columns: 1fr;
    }
}

.adm-list-box {
    background: var(--adm-bg-card);
    padding: 25px;
    border-radius: 10px;
}

.adm-list-box h3 {
    margin-bottom: 15px;
    color: var(--adm-color-brand-yellow-light);
}

.adm-list-box ul {
    list-style-type: none;
}

.adm-list-box li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 20px;
    color: var(--adm-text-secondary);
}

.adm-list-box li::before {
    content: "•";
    color: var(--adm-color-brand-yellow);
    font-size: 20px;
    position: absolute;
    left: 0;
    top: -2px;
}

/* Таблица */
.adm-data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
    background: var(--adm-bg-card);
    border-radius: 10px;
    overflow: hidden;
}

.adm-data-table th, .adm-data-table td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid #230c3e;
}

.adm-data-table th {
    background-color: #200839;
    color: #fff;
    font-weight: 700;
}

.adm-data-table tr:hover {
    background-color: var(--adm-bg-card-hover);
}

/* FAQ */
.adm-faq-section {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.adm-faq-section h2 {
    font-size: 26px;
    margin-bottom: 25px;
    text-align: center;
}

.adm-faq-item {
    background: var(--adm-bg-card);
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.adm-faq-item summary {
    padding: 18px 24px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    user-select: none;
    transition: background 0.3s;
}

.adm-faq-item summary:hover {
    background: var(--adm-bg-card-hover);
}

.adm-faq-item p {
    padding: 18px 24px;
    border-top: 1px solid #230c3e;
    color: var(--adm-text-secondary);
    font-size: 14px;
}

/* Подвал */
.adm-footer-wrapper {
    background: #06010d;
    border-top: 2px solid #1c0830;
    padding: 50px 20px 30px 20px;
    margin-top: 60px;
}

.adm-footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.adm-footer-col h4 {
    font-size: 16px;
    margin-bottom: 20px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.adm-footer-menu {
    list-style: none;
}

.adm-footer-menu li {
    margin-bottom: 12px;
}

.adm-footer-link {
    color: var(--adm-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.adm-footer-link:hover {
    color: #fff;
}

.adm-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid #1c0830;
    padding-top: 30px;
    text-align: center;
    color: var(--adm-text-secondary);
    font-size: 13px;
}

/* Серая кнопка Наверх */
.adm-scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: -60px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #444444; /* Серый цвет */
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    transition: right 0.3s ease, transform 0.2s, background-color 0.3s;
    z-index: 1000;
}

.adm-scroll-top-btn.visible {
    right: 30px;
}

.adm-scroll-top-btn:hover {
    background: #5a5a5a; /* Более светлый серый при наведении */
    transform: scale(1.05);
}

.adm-scroll-top-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Адаптивность */
@media (max-width: 992px) {
    .adm-nav-menu, .adm-app-icons {
        display: none;
    }
    .adm-categories-row {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Мобильная адаптация для баннера */
@media (max-width: 768px) {
    .adm-hero-section {
        /* Увеличение затемнения на экранах телефонов для лучшего контраста */
        background: radial-gradient(circle at center, rgba(9, 2, 18, 0.55) 0%, rgba(9, 2, 18, 0.75) 100%), 
                    url('/img/hero-bg.webp') no-repeat left center;
        background-size: cover;
        padding: 50px 15px;
    }
    .adm-hero-box {
        align-items: center; /* Центрирование контента на телефонах */
        text-align: center;   /* Выравнивание по центру */
    }
    .adm-hero-box h1,
    .adm-hero-desc {
        max-width: 100%;      /* Задействование всей ширины экрана */
    }
}

/* Специфические стили для экранов смартфонов (шириной менее 480px) */
@media (max-width: 480px) {
    .adm-header-container {
        padding: 10px 8px;    /* Сокращаем паддинги для экономии места по бокам */
    }
    
    .adm-brand-logo img {
        max-width: 125px;     /* Пропорционально уменьшаем размер логотипа */
    }
    
    .adm-auth-group {
        gap: 6px;             /* Сужаем расстояние между кнопками авторизации */
    }
    
    .adm-btn {
        padding: 8px 12px;    /* Оптимизируем паддинги кнопок, чтобы избежать переноса строки */
        font-size: 13px;      /* Подбираем читаемый компактный размер текста */
    }
    
    .adm-categories-row {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки взамен прокрутки */
        gap: 8px;             /* Уменьшаем зазоры между плитками категорий */
    }
    
    .adm-category-item {
        padding: 10px 8px;    /* Уменьшаем паддинги элементов меню */
        font-size: 13px;      /* Слегка снижаем размер шрифта для мобильных */
    }
}