/*
Theme Name: Casino Review Theme
Author: Вы
Description: Тема по ТЗ №9
Version: 1.1
*/

:root {
    --bg-color: #EEF1F5;       /* [cite: 17] */
    --card-bg: #FFFFFF;        /* [cite: 18] */
    --text-main: #1A1A1A;      /* [cite: 22] */
    --btn-color: #2F54BE;      /* [cite: 20] */
    --accent-green: #16A34A;   /* [cite: 21] */
}

body {
    background-color: var(--bg-color);
    font-family: 'Exo 2', sans-serif;
    color: var(--text-main);
    margin: 0;
    padding-bottom: 0; /* Убрал отступ, чтобы футер прижался */
}

p {
    font-size: 16px;
}

h1 {
  
    
}

h2 {
    font-size: 40px;
   
}

h3 {
    font-size: 32px;
   
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- ШАПКА --- */
.site-header {
    background: linear-gradient(to right, #363B41, #8C98A7);
    color: #fff;
    padding: 5px 0;
    margin-bottom: 40px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { font-weight: bold; color: #fff; text-decoration: none; }

.logo img {
    height: 5vh;
}
.top-link { color: #fff; text-decoration: none; font-size: 16px; font-weight: bold; }

/* --- ЗАГОЛОВОК H1 --- */
.hero-section {
    text-align: left;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 15px;
    color: #1A1A1A;
   
}
.hero-desc {
    font-size: 16px; /* Текст описания тоже уменьшаем */ 
}


@media (max-width: 910px) {

.container {
    max-width: 710px;
    margin: 0 auto;
    padding: 0 15px;
}

.hero-section {
    text-align: left;
    margin-bottom: 30px;
}

.hero-section h1 {
    font-size: 48px;
    
    margin-bottom: 10px;
  
   
}

h2 {
    font-size: 40px;
   
}

h3 {
    font-size: 32px;
    
}
}

@media (max-width: 600px) {


.hero-section {
    text-align: left;
    margin-bottom: 20px;
}


.hero-section h1 {
    font-size: 36px;
    
    margin-bottom: 10px;
  
   
}

h2 {
    font-size: 40px;
   
}

h3 {
    font-size: 32px;
    
}
}




/* --- СЕТКА КАРТОЧЕК --- */
.casino-grid {
    display: grid;
    /* ИСПРАВЛЕНО: Строго 4 колонки на ПК  */
    grid-template-columns: repeat(4, 1fr); 
    gap: 20px;
    margin-bottom: 60px;
}

/* Карточка */
.casino-card {
    background: var(--card-bg); /* [cite: 18] */
    border-radius: 8px;
    overflow: hidden;
    position: relative; 
    padding: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08); /* Чуть больше тень */
    display: flex;
    flex-direction: column;
    text-align: center;
    transition: transform 0.2s;
    height: 100%;
    box-sizing: border-box;

    text-decoration: none; 
    color: inherit; 
    cursor: pointer;
}



.casino-card:hover {
    transform: translateY(-5px); /* Легкая анимация при наведении */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.casino-card:active {
     /* Чуть ниже чем при ховере */
    box-shadow: 0 5px 10px rgba(0,0,0,0.1);
    transition: 0.1s;
}

.casino-card:hover .btn-play {
    background-color: #2544A0; 
}

.casino-card:active .btn-play {
    background-color: #1F367F; 
}

/* Зеленый кружок с номером */
.card-badge {
    position: absolute;
    top: 0px;
    left: 0px;
    background: var(--accent-green);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    z-index: 10;
}

/* Логотип на черном фоне */
.card-logo-area {
    background: #000; /*  */
    padding: auto;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 8px;
    margin: 0;
    width: 100%; 
    box-sizing: border-box;
    
}
.card-logo-area img {
    
    width: 100%;
    
    object-fit: cover;
}

/* Тело карточки */
.card-body {
   height: 100%;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Заголовок казино */
.card-body h3 {
    margin: 10px 0 5px;
    font-weight: 600;
    font-size: 24px;
    color: #000;
}

/* Звезды */
.stars {
  display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px; /* Расстояние между звездочками */
    margin-bottom: 12px;
}

.icon-star {
    width: 18px;  /* Размер звездочки */
    height: 18px;
    display: block;
}

.rating-num {
    color: #000;
    
    margin-left: 8px;
    letter-spacing: normal;
}

.card-ui-icon {
    width: 16px; /* Размер иконки */
    height: 16px;
    margin-right: 6px; /* Отступ до текста */
    object-fit: contain;
    vertical-align: middle; /* Выравнивание по центру строки */
    position: relative;
    top: -1px; /* Микро-коррекция высоты */
}

/* Описание */
.card-text {
    
    padding: 0 15px;
    margin-bottom: 10px;
   
   line-height: 1.4;
}

.card-text p {
   
    margin: 0;
   
}

/* Характеристики (Депозит, Бонус) */
.card-features {
    margin-top: auto;
    margin-bottom: 15px;
    font-size: 16px;
    text-align: left;
    margin-top: auto; 
    border-radius: 4px;
}
.feature-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
	margin-bottom: -2vh;
  font-weight: 600;
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row span {
  flex-shrink: 0;
    display: flex;
    align-items: center; /* Центрируем иконку и текст по вертикали */
    font-weight: 600;
}
.feature-row b { color: #000; font-weight: 500;}

.bonus {
    
    margin-left: 50px;
}
/* Кнопка */
.btn-play {
    position: relative;
    z-index: 6;
    display: block;
    background-color: var(--btn-color); /* [cite: 20] */
    color: #FFFFFF; /* [cite: 22] */
    text-decoration: none;
    padding: 12px 0;
    border-radius: 4px;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    transition: background 0.3s;
    /* [cite: 14] Эффект наведения */
}
.btn-play:hover {
    background-color: #1e3a8a; 
}

/* --- ФУТЕР (СТРОГО ПО МАКЕТУ) --- */
.site-footer {
    background: linear-gradient(to right, #363B41, #8C98A7);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
}

/* Контейнер внутри футера - выстраиваем этажи вертикально */
.footer-content {
    display: flex;
    flex-direction: column;
    gap: 30px; /* Отступ между этажами (между лого и иконками) */
}

/* 1. ВЕРХНИЙ ЭТАЖ */
.footer-top {
    display: flex;
    justify-content: space-between; /* МАГИЯ: Лого влево, Текст вправо */
    align-items: center;
    padding-bottom: 10px;
   
}

/* Логотип */
.footer-logo img {
    height: 60px; /* Размер логотипа */
    width: auto;
    display: block;
}

/* Текст справа ("Рейтинг онлайн казино") */
.footer-text-link {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase; /* Если на макете капс */
    opacity: 0.9;
    transition: opacity 0.2s;
}
.footer-text-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* 2. СРЕДНИЙ ЭТАЖ (ИКОНКИ) */
.footer-icons {
    display: flex;
    justify-content: center; /* Центрируем иконки */
    gap: 40px; /* Расстояние между иконками */
    align-items: center;
}

.footer-icon-img {
  
    width: auto;
    /* Если иконки черные, этот фильтр сделает их белыми: */
   
    opacity: 1;
    
}
.footer-icon-img:hover {
    opacity: 1;
}

/* 3. НИЖНИЙ ЭТАЖ (КОПИРАЙТ) */
.footer-copyright {
    text-align: center;
    font-size: 12px;
    opacity: 0.5;
    margin-top: 10px;
}
.footer-copyright p {
    margin: 0;
}

/* АДАПТИВ (Для мобильных) */
@media (max-width: 600px) {
    .footer-top {
        flex-direction: column; /* На телефоне ставим лого над текстом */
        gap: 15px;
    }
    .footer-icons {
        gap: 20px; /* Уменьшаем отступы иконок */
        flex-wrap: wrap;
        flex-direction: column;
    }
}

/* --- ИНФОРМАЦИОННЫЙ БЛОК (Стили текста как на макете) --- */
.info-section {
    background: #EEF1F5; /* Фон страницы, чтобы текст был на нем, или белый, если это блок */
    padding: 20px 0;
    margin-bottom: 40px;
}

/* Общий контейнер текста */
.text-block, .criteria-block {
    margin-bottom: 20px;
}

.criteria-block h2 {
    font-weight: 600;
}

.text-block h3 {
    font-weight: 600;
}

.text-block h2 {
    font-weight: 600;
}

/* Заголовки H2 (Рейтинг проверенных...) */
.content-wrapper h2 {
   
  
  
    margin-top: 5px;
    margin-bottom: 0 !important;
  
}

/* Заголовки H3 (Главные критерии, Как выбрать) */
.content-wrapper h3 {
  
 
    margin-top: 25px;
    margin-bottom: 10px;
   
}

/* Основной текст (Параграфы) - Делаем аккуратным и мелким */
.content-wrapper p, 
.visible-part,
.seo-part {
     /* Уменьшаем с 14px до 13px */
   
  
    margin-bottom: 12px;
}

/* Подзаголовок "Главные критерии..." */
.criteria-intro {
    
    font-weight: 600;
    margin-top: 0 !important;
    margin-bottom: 15px;
}

/* СПИСКИ (Галочки) - Делаем компактнее */
.check-list-wrapper ul {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px 0;
}
.check-list-wrapper ul li {
    position: relative;
    padding-left: 25px; /* Меньше отступ */
    margin-bottom: 8px; /* Плотнее друг к другу */
    font-size: 16px;    /* Текст в списке еще чуть мельче */
    line-height: 1.6;
    color: #374151;
    font-weight: 500;
}
/* Сама галочка */
.check-list-wrapper ul li::before {
    content: "✔";
    position: absolute;
    left: 1px;
    top: 5px;
    width: 16px;       /* Меньше кружок */
    height: 16px;
    background-color: #16A34A;
    color: #fff;
    border-radius: 50%;
    font-size: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ЗЕЛЕНАЯ ПЛАШКА (Цитата) */
.green-quote-box {
    background-color: #16A34A;
    color: #fff;
    padding: 12px 20px;
    border-radius: 6px;
    margin: 25px 0;
    font-weight: bold;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 6px rgba(22, 163, 74, 0.2);
}

.quote-content {
    font-size: 24px;
}

.quote-icon {
    font-size: 24px;
    opacity: 0.8;
    line-height: 1;
}


.seo-section {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.seo-section h2 {
    color: #1A1A1A;
    font-size: 40px;
    margin-top: 0;
    margin-bottom: 25px;
}

/* Оформление текста (когда он виден) */
.seo-content {
    line-height: 1.6;
    color: #424040;
}
.seo-content p { margin-bottom: 15px; }
.seo-content ul { list-style: none; padding: 0; margin-bottom: 20px; }
.seo-content li { 
    position: relative; 
    padding-left: 30px; 
    margin-bottom: 10px; 
}
.seo-content li::before {
    content: "✔";
    position: absolute;
    left: 0; top: 0;
    color: #fff;
    background: var(--accent-green);
    width: 20px; height: 20px;
    border-radius: 50%;
    font-size: 12px;
    display: flex; align-items: center; justify-content: center;
}

/* Цитата (Зеленый блок) */
.seo-content blockquote {
    background-color: var(--accent-green);
    color: #fff;
    margin: 30px 0;
    padding: 20px 25px;
    border-radius: 8px;
    font-weight: bold;
    border: none;
    display: flex; align-items: center; gap: 15px;
}
.seo-content blockquote::before {
    content: "❞";
    font-size: 40px;
    line-height: 1;
    opacity: 0.8;
}

/* --- МАГИЯ СКРЫТИЯ (SEO Hide) --- */
/* Если в админке стоит галочка, применяется этот класс */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
    /* Текст есть в коде, но занимает 1 пиксель и невидим глазу */
}


/* Класс для скрытия SEO-части от глаз пользователя */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.rating-table-section {
    margin-bottom: 50px;
}
.section-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 25px;
    color: #1A1A1A;
}

.casino-table {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    overflow: hidden;
}

/* Строки и колонки */
.table-header, .table-row {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
}
.table-header {
    background: #f8f9fa;
    font-weight: bold;
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.table-row:last-child { border-bottom: none; }
.table-row:hover { background-color: #fcfcfc; }

/* Ширина колонок */
.col-num { 
    width: 50px; 
    text-align: center; 
    flex-shrink: 0; 
}

/* 2. Казино (Лого + Имя) - фиксированная */
.col-casino { 
    width: 220px; /* Достаточно места для лого и имени */
    display: flex; 
    align-items: center; 
    gap: 15px; 
    flex-shrink: 0;
}

/* 3. Рейтинг - фиксированная */
.col-rating { 
    width: 140px; 
    text-align: center; 
    flex-shrink: 0; 
}

/* 4. ИНФО (Текст таблицы) - РЕЗИНОВАЯ */
/* Это поле займет всё свободное место, как на макете */
.col-info { 
    flex-grow: 1; 
    padding: 0 15px;
    font-size: 14px; 
    color: #444; 
    line-height: 1.4;
    text-align: left; /* Текст слева, как на скрине */
}

/* 5. Кнопка - фиксированная справа */
.col-btn { 
    width: 140px; 
    text-align: right; 
    flex-shrink: 0; 
}

/* Элементы внутри */
.rank-circle {
    background: #eee;
    color: #555;
    width: 24px; height: 24px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    font-weight: bold;
    margin: 0 auto;
}
.t-logo {
    width: 40px; height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #000;
    flex-shrink: 0;
}
.t-logo img { width: 100%; height: 100%; object-fit: cover; }
.t-name { font-weight: bold; font-size: 15px; color: #1A1A1A; }
.rating-val { font-weight: bold; color: #333; margin-left: 5px; }

/* Кнопка в таблице */
.table-btn {
    display: inline-block;
    padding: 10px 25px;
    background-color: var(--btn-color); /* */
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.2s;
}
.table-btn:hover { opacity: 0.9; }

/* Адаптив таблицы (Мобильный) */
@media (max-width: 768px) {
   .table-header { display: none; } /* Прячем шапку */
    
    .table-row {
        flex-wrap: wrap; 
        padding: 15px;
        gap: 10px;
    }
    
    .col-num { display: none; } /* Прячем номер */
    .col-casino { width: 100%; margin-bottom: 5px; } 
    .col-rating { width: auto; }
    
    /* На телефоне текст описания делаем на всю ширину */
    .col-info { 
        width: 100%; 
        padding: 5px 0; 
        font-size: 13px;
        color: #666;
    }
    
    .col-btn { width: 100%; text-align: center; margin-top: 10px; }
    .table-btn { display: block; width: 100%; box-sizing: border-box; }
}
/* --- АДАПТИВНОСТЬ --- */
@media (max-width: 900px) {
    .casino-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на планшете */
    }
}

@media (max-width: 600px) {
    .casino-grid {
        grid-template-columns: 1fr; /* 1 колонка на мобильном [cite: 34] */
    }
   
}

/* --- ТАБЛИЦА (ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ БАГОВ) --- */

/* --- ТАБЛИЦА (КВАДРАТНЫЙ СЕРЫЙ СКРОЛЛ) --- */

.rating-table-section {
    margin-bottom: 50px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.casino-table-strict {
    display: block;
    width: 100%;
    background: transparent; /* Фон контейнера прозрачный для "отрыва" скролла */
    
    /* ВКЛЮЧАЕМ СКРОЛЛ */
    overflow-x: auto;
    overflow-y: hidden;
    
    /* ОТСТУП СНИЗУ (Чтобы скролл был визуально оторван от таблицы) */
    padding-bottom: 25px;
    
    /* Убираем тени и скругления с контейнера */
    box-shadow: none;
    border-radius: 0;
}

/* === СТИЛИЗАЦИЯ СКРОЛЛБАРА (КВАДРАТНЫЙ И СЕРЫЙ) === */

/* Сам скроллбар */
.casino-table-strict::-webkit-scrollbar {
    height: 5px; /* Высота */
    cursor: pointer;
}

/* Дорожка (Фон скролла) */
.casino-table-strict::-webkit-scrollbar-track {
    background: #E2E8F0; /* Светло-серый фон дорожки */
    border-radius: 0;    /* КВАДРАТНАЯ */
    margin: 0;
}

/* Бегунок (То, что двигаем) */
.casino-table-strict::-webkit-scrollbar-thumb {
    background: #64748B; /* ТЕМНО-СЕРЫЙ ЦВЕТ (как просили) */
    border-radius: 0;    /* КВАДРАТНЫЙ */
    border: none;        /* Без обводок */
    cursor: pointer;
}

/* Цвет бегунка при наведении */
.casino-table-strict::-webkit-scrollbar-thumb:hover {
    background: #475569; /* Чуть темнее при наведении */
}

/* === СТРОКИ И ШАПКА === */

/* Общие правила для строк и шапки */
.st-row, .st-header {
    display: flex;
    align-items: center;
    
    /* РАСТЯГИВАЕМ ФОН */
    width: max-content;  /* Растягиваем на всю длину контента */
    min-width: 100%;     /* Но не меньше ширины экрана */
    
    box-sizing: border-box;
}

/* --- ХЕДЕР ТАБЛИЦЫ (ТЕМНЫЙ ФОН) --- */
.st-header {
    background-color: #4A5568 !important; /* ТЕМНО-СЕРЫЙ ФОН (НЕ БЕЛЫЙ!) */
    color: #fff;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    position: relative;
    z-index: 20;
}

/* --- ОБЫЧНАЯ СТРОКА --- */
.st-row {
    background: #fff; /* Белый фон только у контента */
    border-bottom: 1px solid #E2E8F0;
    position: relative;
}

/* Убираем скругления у строк (делаем все квадратным, как просили) */
.st-row:first-child { border-radius: 0; }
.st-row:last-child {
    border-bottom: none;
    border-radius: 0;
    /* Тень под таблицей */
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* ЯЧЕЙКИ */
.st-col {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    height: 100%;
    font-size: 14px;
    flex-shrink: 0;
}

/* === НОМЕР (ЛИПКИЙ СЛЕВА) === */
.st-num {
    width: 60px;
    background-color: #4A5568; /* Темный фон у номера */
    color: #fff;
    font-weight: bold;
    justify-content: center;
    border-right: 1px solid rgba(255,255,255,0.1);
    
    /* Липкое позиционирование */
    position: sticky;
    left: 0;
    z-index: 5; 
}

/* Линии разделители номера */
.st-row:not(:last-child) .st-num {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Шапка номера (Темная, выше всех) */
.st-header .st-num {
    background-color: #4A5568; /* Гарантируем темный фон */
    border-bottom: none;
    z-index: 25;
}

/* --- ШИРИНА КОЛОНОК --- */
.st-name { width: 250px; font-weight: bold; }
.st-name a { color: inherit; text-decoration: none; }
.st-bonus { width: 350px; }
.st-license { width: 200px; }
.st-time { width: 300px; flex-grow: 1; padding-right: 20px; }

/* Гарантируем видимость всех колонок */
@media (max-width: 910px) {
    .st-license, .st-time, .st-bonus {
        display: flex !important;
    }
}

.faq-section {
    margin-bottom: 60px;
}
.faq-section h2 {
    font-size: 40px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 20px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Отступ между вопросами */
}

.faq-item {
    background: #FFFFFF; /* Белый фон плашки */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Легкая тень */
}

.faq-question {
    padding: 15px 20px;
   
  
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.faq-question:hover {
  
}

.faq-plus {
    font-size: 18px;
    color: #1A1A1A;
    font-weight: bold;
}

.faq-answer {
    display: none; /* Скрыто по умолчанию */
    padding: 0 20px 20px 20px;
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    border-top: 1px solid #f0f0f0;
    padding-top: 15px;
}

/* --- АВТОР (СТРОГО ПО МАКЕТУ: ФОТО СЛЕВА ВСЕГДА) --- */
.author-section {
    margin-bottom: 60px;
    width: 100%;
}

.author-section h2 {
    font-size: 40px;
    color: #1A1A1A;
    margin-bottom: 20px;
    font-weight: 600;
}

.author-card {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    
    /* ГЛАВНОЕ: Всегда в ряд */
    display: flex;
    flex-direction: row !important; 
    align-items: flex-start; /* Прижимаем к верху */
    gap: 25px;
    width: 100%;
    box-sizing: border-box;
    text-align: left; /* Текст всегда слева */
}

/* Фото */
.author-img {
    flex-shrink: 0; /* Запрещаем сжимать фото */
    width: 100px;
    height: 114px; /* Квадрат, как на макете */
    border-radius: 12px; /* Чуть скругленные углы (не круг) */
    overflow: hidden;
    object-fit: cover;
}

.author-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Текстовая часть */
.author-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.author-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Имя и роль строго слева */
    gap: 5px;
    margin-bottom: 10px;
}

.a-name {
    margin: 0;
  
    font-weight: 600;
   
}

.a-role {
   font-family: 'Manrope', sans-serif;
    color: #6B7280;
    font-weight: 400;
}

.a-bio {
    font-size: 16px;
   
}

/* АДАПТИВ (ТОЛЬКО РАЗМЕРЫ, СТРУКТУРА ОСТАЕТСЯ ГОРИЗОНТАЛЬНОЙ) */
@media (max-width: 600px) {
    .author-card {
        padding: 15px; /* Чуть меньше отступы */
        gap: 15px;
    }

    .author-img {
        width: 100px; /* Чуть уменьшаем фото, чтобы влез текст */
        height: 114px;
    }

   
}

/* --- МОБИЛЬНОЕ МЕНЮ (ИСПРАВЛЕННОЕ) --- */

/* Скрываем бургер на ПК */
.hamburger-btn { display: none; }
.mobile-menu-overlay { display: none; }

/* --- МОБИЛЬНАЯ ВЕРСИЯ (<= 910px) --- */
@media (max-width: 910px) {

    /* 1. ХЕДЕР */
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 60px; /* Чуть компактнее для мобильных */
        padding: 0;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        background: linear-gradient(to right, #363B41, #8C98A7); /* Вернем фон, если он пропадал */
    }

    /* Выравниваем элементы в одну строку */
    .header-inner {
        display: flex;
       
        align-items: center;
        height: 100%;
        width: 100%;
        padding: 0 15px; /* Отступы по краям экрана */
        box-sizing: border-box;
    }

    /* Компенсация контента */
    body {
        padding-top: 30px; 
    }

    .logo {
        margin-right: auto; /* !!! ЭТО ГЛАВНОЕ: Логотип съедает всё место справа */
        display: flex; align-items: center;
    }

    /* Логотип уменьшаем, чтобы всё влезло */
    .logo img {
        height: 25px; 
        width: auto;
    }

    /* 2. ССЫЛКА "ЛУЧШИЕ КАЗИНО" (ТЕПЕРЬ ВИДНА) */
    .top-link {
        display: block !important; /* Принудительно показываем */
        font-size: 13px; /* Уменьшаем шрифт, чтобы влезло */
        white-space: nowrap; /* Запрещаем перенос текста на новую строку */
        margin-right: 20px;
        margin: 0 10px; /* Отступы от лого и бургера */
    }

    /* Скрываем класс desktop-only, если он где-то остался в других местах, но для ссылки мы его убрали в HTML */
    .desktop-only {
        /* display: none;  <-- УДАЛИТЕ ИЛИ ЗАКОММЕНТИРУЙТЕ ЭТУ СТРОКУ, если класс еще висит на ссылке */
    }

    /* 3. БУРГЕР */
    .hamburger-btn {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        width: 24px; /* Чуть меньше */
        height: 18px;
        cursor: pointer;
        flex-shrink: 0; /* Чтобы его не сжимало */
    }
    
    .hamburger-btn span {
        display: block;
        height: 2px;
        width: 100%;
        background-color: #2F54BE;
        border-radius: 2px;
    }

    /* --- МЕНЮ (Остальное без изменений) --- */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 60px; /* Отступ под высоту хедера */
        left: 0;
        width: 100%;
        z-index: 9998;
        background: transparent; 
    }

    .mobile-menu-overlay.open { display: block; }

    .mobile-menu-container {
        width: 100%; /* На всю ширину или как хотите */
        max-width: 400px; /* Ограничение */
        margin: 0 auto; /* Центр, если ширина не 100% */
        background: #fff;
        border-bottom: 2px solid #2F54BE;
        box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    }
    /* Если вы хотите меню на всю ширину без отступов: */
    /* .mobile-menu-container { width: 100%; margin: 0; border-radius: 0; } */

    .mob-menu-header {
        background-color: #2F54BE;
        color: #fff;
        padding: 15px 20px;
        font-weight: bold;
        font-size: 16px;
    }

    .mob-menu-list { list-style: none; padding: 0; margin: 0; }
    .mob-menu-list li { border-bottom: 1px solid #F3F4F6; }
    
    .mob-menu-list a {
        display: block;
        padding: 15px 20px;
        color: #1A1A1A;
        text-decoration: none;
        font-weight: 500;
        background: #fff;
    }
    
    .mob-menu-list a:hover {
        background-color: #F3F4F6;
        color: #2F54BE;
    }
}

/* --- СТРАНИЦА 404 (ФИНАЛ) --- */

.error-page-wrapper {
    min-height: 60vh;
    display: flex;
    /* ПО УМОЛЧАНИЮ (ДЕСКТОП > 910px): В РЯД */
    flex-direction: row; 
    justify-content: center;
    align-items: center;
    gap: 60px; /* Отступ между картинкой и текстом */
    padding: 60px 0;
}

/* 1. Картинка 404 */
.error-visual-single {
    flex-shrink: 0; /* Чтобы картинка не сжималась */
}

.img-404 {
    max-width: 500px; /* Размер картинки на десктопе */
    width: 100%;
    height: auto;
    display: block;
}

/* 2. Текстовый блок */
.error-text-content {
    text-align: left; /* На десктопе текст слева */
    max-width: 480px;
}

.error-text-content h1 {
    font-size: 48px; /* Крупный заголовок */
    font-weight: 700;
    color: #1A1A1A;
    margin: 0 0 20px 0;
    line-height: 1.1;
}

.error-desc {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Кнопка */
.btn-404 {
    display: inline-block;
    background-color: #2F54BE;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
    padding: 15px 40px;
    border-radius: 6px;
    font-size: 16px;
    transition: background 0.2s;
}
.btn-404:hover {
    background-color: #2544A0;
}

.btn-404:active {
    background-color: #1F367F;
}


/* --- АДАПТИВ (ПЛАНШЕТ <= 910px) --- */
@media (max-width: 910px) {
    .error-page-wrapper {
        /* ПЕРЕКЛЮЧАЕМ В КОЛОНКУ */
        flex-direction: column; 
        text-align: center; /* Центрируем текст */
        gap: 40px;
        padding: 40px 0;
    }

    .error-text-content {
        text-align: center; /* Текст по центру */
        max-width: 100%;
        padding: 0 20px;
    }

    .img-404 {
        max-width: 400px; /* Чуть меньше картинка */
    }

    .error-text-content h1 {
        font-size: 36px;
    }
}

/* --- АДАПТИВ (МОБИЛЬНЫЙ <= 600px) --- */
@media (max-width: 600px) {
    .img-404 {
        max-width: 280px; /* Маленькая картинка */
    }

    .error-text-content h1 {
        font-size: 28px;
    }
    
    .btn-404 {
        width: 100%; /* Кнопка во всю ширину */
        box-sizing: border-box;
        text-align: center;
    }
}


/* =======================================================
   ФИНАЛЬНЫЕ СТИЛИ ДЛЯ ТАБЛИЦЫ (СИМУЛЯЦИЯ СТАРОГО ДИЗАЙНА)
   ======================================================= */

/* 1. Сброс настроек редактора */
.seo-editor-content table {
    width: 100%;
    min-width: 900px !important; /* Принудительно расширяем для скролла */
    border-collapse: collapse !important;
    border: none !important;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 2. ШАПКА ТАБЛИЦЫ (Первая строка всегда темная) */
.seo-editor-content table tr:first-child {
    background-color: #2D3748 !important;
    color: #ffffff !important;
    font-weight: bold;
  
    font-size: 13px;
}

/* Ячейки первой строки */
.seo-editor-content table tr:first-child td,
.seo-editor-content table tr:first-child th {
    background-color: #2D3748 !important;
    color: #ffffff !important;
    padding: 18px 20px !important;
    border: none !important;
    text-align: left;
}

/* 3. ОБЫЧНЫЕ СТРОКИ */
.seo-editor-content table td {
    padding: 16px 20px !important;
    border: 1px solid #EDF2F7 !important; /* Тонкие границы */
    border-left: none !important;
    border-right: none !important;
    color: #1A202C;
    font-size: 15px;
    vertical-align: middle;
}

/* 4. ПЕРВАЯ КОЛОНКА (Номер) - Серая и по центру */
.seo-editor-content table tr:not(:first-child) td:first-child {
    background-color: #F7FAFC !important; /* Светло-серый фон */
    color: #718096 !important;
    font-weight: bold;
    text-align: center !important;
   
    border-right: 1px solid #E2E8F0 !important;
}

/* Исправляем первую ячейку в шапке (чтобы не была светлой) */
.seo-editor-content table tr:first-child td:first-child {
    background-color: #262f3e !important;
    color: #fff !important;
    border-right: 1px solid #4A5568 !important;
    width: 60px;
    text-align: center !important;
}

/* 5. Ссылки внутри таблицы */
.seo-editor-content table a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 700;
}
.seo-editor-content table a:hover {
    color: #E53E3E;
    text-decoration: underline;
}

/* Убираем лишние отступы от пустых параграфов, которые любит добавлять WP */
.seo-editor-content p:empty {
    display: none;
}

/* =======================================================
   ВАШ ОРИГИНАЛЬНЫЙ СТИЛЬ (ТЕМНО-СЕРАЯ ШАПКА + СЕРЫЙ СТОЛБИК)
   ======================================================= */

/* 1. КОНТЕЙНЕР СО СКРОЛЛОМ (КВАДРАТНЫЙ СЕРЫЙ БЕГУНОК) */
.casino-table-strict {
    display: block;
    width: 100% !important;
    overflow-x: auto;
    padding-bottom: 25px; /* Ваш оригинальный отступ под скролл */
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

/* Настройки скроллбара (из вашего кода) */
.casino-table-strict::-webkit-scrollbar { height: 5px; cursor: pointer; }
.casino-table-strict::-webkit-scrollbar-track { background: #E2E8F0; border-radius: 0; margin: 0; }
.casino-table-strict::-webkit-scrollbar-thumb { background: #64748B; border-radius: 0; border: none; cursor: pointer; }
.casino-table-strict::-webkit-scrollbar-thumb:hover { background: #475569; }


/* 2. СБРОС И НАСТРОЙКА ТАБЛИЦЫ */
.casino-table-strict table {
    width: 100% !important;
    min-width: 900px !important; /* Чтобы работал скролл */
    border-collapse: collapse !important;
    border: none !important;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 3. ШАПКА ТАБЛИЦЫ (ТЕМНО-СЕРАЯ #2D3748) */
.casino-table-strict table tr:first-child {
    background-color: #475569 !important;
    color: #ffffff !important;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 13px;
}

/* Ячейки шапки */
.casino-table-strict table tr:first-child td,
.casino-table-strict table tr:first-child th {
    background-color: #475569 !important;
    color: #ffffff !important;
   
    border: none !important;
    text-align: left;
}

/* Первая ячейка шапки (для номера) - чуть темнее (#262f3e) */
.casino-table-strict table tr:first-child td:first-child,
.casino-table-strict table tr:first-child th:first-child {
    background-color: #475569 !important;
    border-right: 1px solid #4A5568 !important;
    
	           /* Фиксируем ширину */
   
    max-width: 30px !important;
    text-align: center !important;
}

/* 4. ОБЫЧНЫЕ СТРОКИ */
.casino-table-strict table td {
    padding: 16px 20px;
    border: 1px solid #EDF2F7 !important;
    border-left: none !important;
    border-right: none !important;
    color: #1A202C;
    font-size: 15px;
    vertical-align: middle;
    background: #fff;
}

/* 5. ПЕРВАЯ КОЛОНКА (СВЕТЛО-СЕРАЯ #F7FAFC) */
.casino-table-strict table tr:not(:first-child) td:first-child {
  	background-color: #475569 !important;
    color: #fff;
    font-weight: bold;
    text-align: center !important;
    max-width: 30px;
    border-right: 1px solid #E2E8F0 !important;
}

/* Ссылки внутри */
.casino-table-strict table a {
    color: #1A1A1A;
    text-decoration: none;
    font-weight: 700;
}
.casino-table-strict table a:hover {
    color: #E53E3E; /* Красный при наведении, как было в оригинале */
    text-decoration: underline;
}

.casino-table-strict p:empty { display: none; }

/* =======================================================
   ФИНАЛЬНЫЙ ФИКС ДЛЯ GOOGLE TABLITS
   ======================================================= */

/* 1. ВКЛЮЧАЕМ РЕЖИМ FIXED */
.casino-table-strict table {
    
}

/* 2. ГЛАВНОЕ: ПЕРЕБИВАЕМ ШИРИНУ ТЕГА <COL> (Который ставит Google) */
.casino-table-strict table colgroup col:first-child,
.casino-table-strict table col:first-child {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
}

/* 3. НА ВСЯКИЙ СЛУЧАЙ: ДУБЛИРУЕМ ДЛЯ ЯЧЕЕК (Если col нет) */
.casino-table-strict table tr > *:first-child {
   
    
   
    box-sizing: border-box !important;
    text-align: center !important;
    background-color: #475569 !important;
    color: #fff !important;
    
    /* Обрезаем текст, если он не влезает */
    overflow: visible !important;      /* Разрешаем тексту показываться полностью */
    white-space: normal !important;    /* Разрешаем перенос строк */
    word-wrap: break-word !important;
}

/* 4. ВТОРАЯ КОЛОНКА (Растягивается) */
.casino-table-strict table colgroup col:nth-child(2),
.casino-table-strict table col:nth-child(2) {
    width: auto !important;
}