/* ==========================================================================
   ЧАСТЬ 1: ГЛОБАЛЬНЫЙ ФИКС ПЛАВАНИЯ НА ПК И СТИЛИ ШАПКИ
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #081326;
    color: #ffffff;
    line-height: 1.5;
}

/* ФИКС: Убрали overflow-x: hidden отсюда, чтобы сайдбар на ПК снова летал! */
.site-wrapper {
    width: 100%;
    position: relative;
    background: linear-gradient(180deg, #0e1e3d 0%, #081326 100%);
    background-attachment: fixed;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* --- ШАПКА САЙТА (ПЛАВАЕТ ВЕЗДЕ НА 100%) --- */
.main-header {
    background: linear-gradient(90deg, #0b2554 0%, #113470 100%);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: -webkit-sticky;
    position: sticky;        
    top: 0;
    z-index: 1000;
    width: 100%;
}

.header-container {
    display: flex;
    justify-content: space-between; 
    align-items: center;
}

/* ЛОГОТИП */
.logo-text {
    font-size: 32px;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
}

.orange-o {
    background: linear-gradient(135deg, #ff6600 0%, #d44d00 100%);
    color: #ffffff; 
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 18px;
    margin: 0 4px;
    padding-bottom: 2px;
    box-shadow: 0 0 10px rgba(255, 102, 0, 0.3);
}

/* КНОПКИ */
.auth-block {
    display: flex;
    gap: 15px;
}

.btn-register {
    background: linear-gradient(180deg, #ff6600 0%, #e64a00 100%); 
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(230, 74, 0, 0.4);
}

.btn-login {
    background: linear-gradient(180deg, #ffffff 0%, #e2e8f0 100%);
    color: #0b2554;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 24px;
    border-radius: 5px;
}

@keyframes actionPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(255, 102, 0, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 102, 0, 0); }
}

.action-pulse { animation: actionPulse 2s infinite; }
/* ==========================================================================
   ЧАСТЬ 2: СЕТКА ЛАЙАУТА, ГЛАВНЫЙ БАННЕР И ОФОРМЛЕНИЕ СТАТЕЙ
   ========================================================================== */

/* Двухколоночный лайаут для десктопа. align-items: flex-start возвращает полет сайдбару! */
.main-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding-top: 30px;
    padding-bottom: 40px;
    align-items: flex-start;
    width: 100%;
}

.center-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* ГЛАВНЫЙ СИНИЙ БАННЕР */
.main-banner {
    background: linear-gradient(135deg, #13397c 0%, #0a1f47 100%);
    border-radius: 10px;
    padding: 35px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
}

.seo-title {
    font-size: 38px;
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 12px;
    text-transform: uppercase;
    color: #ffffff;
}

.seo-lead {
    color: #a2bfe8;
    font-size: 16px;
    margin-bottom: 25px;
}

/* Строка клика на баннере */
.banner-cta-box {
    background-color: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 18px 25px;
    border-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    width: 100%;
}

.cta-text {
    font-weight: 700;
    font-size: 15px;
    color: #ffffff;
}

.btn-kayit {
    background: linear-gradient(180deg, #ff6600 0%, #d44d00 100%);
    color: #ffffff;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    padding: 12px 45px;
    border-radius: 25px;
    box-shadow: 0 4px 15px rgba(212, 77, 0, 0.4);
    transition: transform 0.2s ease;
    text-align: center;
}

.btn-kayit:hover {
    transform: scale(1.04);
}

/* ОБЕРТКА ДЛЯ СЕО СТАТЕЙ */
.seo-articles-wrapper {
    display: flex;
    flex-direction: column;
    gap: 25px;
    width: 100%;
}

/* Карточки текстов на десктопе */
.seo-card {
    background: #f4f6f9;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    color: #334155;
    width: 100%;
}

.seo-card h2 {
    color: #0b2554 !important; 
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 15px;
}

.seo-card h3 {
    color: #0b2554 !important;
    font-size: 18px;
    font-weight: 700;
    margin-top: 25px;
    margin-bottom: 12px;
}

.seo-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.seo-card strong {
    color: #e64a00;
}

.article-notice {
    font-style: italic;
    background: #e2e8f0;
    padding: 12px 15px;
    border-left: 4px solid #0b2554;
    border-radius: 4px;
    margin: 15px 0;
}
/* ==========================================================================
   ЧАСТЬ 3: РЕЗИНОВЫЕ ТАБЛИЦЫ, ХОВЕР-ЭФФЕКТЫ И ЛИПКИЙ САЙДБАР ДЛЯ ПК
   ========================================================================== */

/* Адаптивные контейнеры таблиц внутри карточек */
.table-responsive {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important; /* Включает прокрутку таблицы пальцем на мобилках */
    -webkit-overflow-scrolling: touch;
    display: block;
    margin: 20px 0;
    border-radius: 6px;
    background: #ffffff;
}

.seo-table {
    width: 100%;
    min-width: 500px; /* Чтобы текст таблицы не сжимался на смартфонах */
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

.seo-table th {
    background: #0b2554;
    color: #ffffff;
    padding: 12px 15px;
    font-weight: 700;
}

.seo-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #e2e8f0;
    color: #475569;
}

.seo-table tr:nth-child(even) {
    background: #f8fafc;
}

/* КАРТИНКИ-ССЫЛКИ И ИХ ПЛАВНОЕ УВЕЛИЧЕНИЕ */
.article-image-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
}

.article-image-box a {
    display: block;
    width: 100%;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Сочный hover для баннеров-рефок на компьютерах */
.article-image-box a:hover {
    transform: scale(1.03);
    opacity: 0.95;
}

.article-img {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    display: block;
}

/* АНИМАЦИЯ И НАСТРОЙКА КНОПОК В СТАТЬЯХ */
.article-cta-center {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width: 100%;
}

.btn-article-action, .btn-receive, .btn-slip-register {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease !important;
    cursor: pointer;
}

/* Железное пацанское правило: увеличение на 6% при наведении на ПК */
.btn-article-action:hover, .btn-receive:hover, .btn-slip-register:hover {
    transform: scale(1.06) !important;
}

.btn-article-action {
    background: linear-gradient(180deg, #ff6600 0%, #e64a00 100%);
    color: #ffffff;
    font-weight: 800;
    font-size: 15px;
    padding: 14px 40px;
    border-radius: 30px;
    box-shadow: 0 4px 15px rgba(230, 74, 0, 0.3);
}

.btn-casino-color { background: linear-gradient(180deg, #9b51e0 0%, #702eb0 100%) !important; }
.btn-download-color { background: linear-gradient(180deg, #2ecc71 0%, #27ae60 100%) !important; }

/* --- НАСТОЯЩИЙ ЛИПКИЙ САЙДБАР ДЛЯ ПК (ТЕПЕРЬ ОН СНОВА ЛЕТАЕТ И ЕДЕТ С НАМИ) --- */
.right-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: -webkit-sticky; /* Фикс для Safari */
    position: sticky;        /* Сайдбар плавно скользит по экрану компьютера */
    top: 95px;                /* Точный зазор от прилипающей шапки */
    z-index: 10;
    width: 300px;
}

.bonus-widget {
    background: linear-gradient(135deg, #ff6600 0%, #b83a00 100%);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    color: #ffffff;
}

.bonus-amount { font-size: 40px; font-weight: 900; }
.bonus-title { font-size: 13px; font-weight: 700; margin-bottom: 20px; }

.btn-receive {
    display: block;
    background: #ffffff;
    color: #ff6600;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 15px;
    border-radius: 20px;
    text-align: center;
}

.bet-slip {
    background: #ffffff;
    color: #333333;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.slip-header { background-color: #f8fafc; padding: 14px 15px; font-weight: 700; color: #ff6600; text-align: center; }
.slip-body { padding: 20px 15px; }
.express-match { display: flex; flex-direction: column; padding: 8px 0; border-bottom: 1px solid #f1f5f9; text-align: left; }
.match-names { font-size: 14px; font-weight: 700; color: #1e293b; }
.match-bet { font-size: 13px; color: #2563eb; font-weight: 600; margin-top: 2px; }
.express-total { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; font-size: 14px; color: #475569; }
.express-total strong { font-size: 18px; color: #219653; font-weight: 800; }
.btn-slip-register { display: block; background: linear-gradient(180deg, #2ecc71 0%, #219653 100%); color: #ffffff; font-weight: 700; font-size: 14px; padding: 12px 20px; border-radius: 6px; text-align: center; }
/* ==========================================================================
   ЧАСТЬ 4: FAQ, МОДАЛКИ И СУПЕР-КОМПАКТНЫЙ МОБИЛЬНЫЙ АДАПТИВ
   ========================================================================== */

/* FAQ БАЗА */
.faq-section { width: 100%; margin-top: 10px; }
.faq-lead { color: #475569; margin-bottom: 20px; font-size: 15px; }
.faq-container { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.faq-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 6px; overflow: hidden; width: 100%; }
.faq-question { width: 100%; background: #ffffff; border: none; outline: none; text-align: left; padding: 16px 20px; font-size: 16px; font-weight: 700; color: #0b2554; cursor: pointer; display: flex; justify-content: space-between; align-items: center; }
.faq-question:hover { background: #f1f5f9; }
.faq-status { font-size: 20px; color: #ff6600; font-weight: bold; transition: transform 0.3s ease; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out; background: #f8fafc; }
.faq-answer p { padding: 16px 20px; font-size: 14px; color: #475569; line-height: 1.6; margin: 0; }
.faq-item.active .faq-answer { max-height: 300px; }
.faq-item.active .faq-status { transform: rotate(45deg); }

/* ПОДВАЛ И МОДАЛКИ ПОД ТРАСТ */
.trust-footer { background-color: #050c18; padding: 40px 0 30px 0; border-top: 1px solid rgba(255, 255, 255, 0.05); margin-top: 40px; width: 100%; }
.footer-grid { display: flex; flex-direction: column; gap: 30px !important; width: 100%; }
.footer-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px; width: 100%; }

.payment-badge {
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #e2ecff !important;
    padding: 8px 16px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    transition: transform 0.2s;
}
.payment-badge:hover { transform: translateY(-2px); border-color: #ff6600 !important; }

.sports-partners .partner-logo { background: rgba(255, 255, 255, 0.02); padding: 8px 16px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, 0.05); font-size: 13px; color: #8fa0ba; }
.curacao-badge { border-left: 3px solid #ff6600 !important; }
.warning-badge { border-left: 3px solid #d44d00 !important; }

.footer-links .modal-trigger {
    background: rgba(11, 37, 84, 0.6) !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    padding: 10px 20px !important;
    border-radius: 20px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: transform 0.2s, background 0.2s;
}
.footer-links .modal-trigger:hover { transform: scale(1.06) !important; background: #ff6600 !important; border-color: #ff6600 !important; }

.footer-legal p { font-size: 12px; color: #647996; line-height: 1.6; }
.footer-copyright { margin-top: 15px; font-size: 11px; color: #4b5b73; }

/* МОДАЛКИ КАРКАС */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(5, 12, 24, 0.7); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: center; z-index: 2000; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.modal-window { background: #ffffff; color: #334155; width: 90%; max-width: 550px; padding: 35px; border-radius: 12px; position: relative; box-shadow: 0 15px 40px rgba(0,0,0,0.5); transform: translateY(-30px); transition: transform 0.3s ease; }
.modal-close { position: absolute; top: 15px; right: 20px; font-size: 32px; background: none; border: none; color: #94a3b8; cursor: pointer; }
.modal-window h3 { color: #0b2554; font-size: 22px; font-weight: 800; margin-bottom: 15px; }
.modal-text p { font-size: 14px; line-height: 1.6; color: #475569; margin-bottom: 12px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal-overlay.active .modal-window { transform: translateY(0); }

/* ==========================================================================
   ЖЕСТКИЙ СУПЕР-АДАПТИВ (МАКСИМАЛЬНОЕ УЖАТИЕ КОНТЕНТА ИДЕНТИЧНО ШАПКЕ)
   ========================================================================== */
@media (max-width: 992px) {
    .main-layout { 
        grid-template-columns: 1fr !important; /* Одна колонка на мобилках */
        gap: 15px; 
        width: 100% !important;
        padding-top: 15px !important;
    }
    
    /* ЖЕЛЕЗНОЕ ПРАВИЛО: Сайдбар полностью вырезан на мобилках */
    .right-sidebar { 
        display: none !important; 
    }
}

@media (max-width: 550px) {
    /* Тотальный запрет на микро-масштаб: заставляем контент быть 100% ширины экрана */
    .container {
        padding: 0 8px !important;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Резиновая мобильная шапка */
    .header-container { 
        flex-direction: column !important; 
        gap: 10px; 
        width: 100% !important;
    }
    .logo-text { font-size: 24px !important; justify-content: center; width: 100% !important; }
    .auth-block { width: 100% !important; justify-content: center; gap: 6px; }
    .btn-register, .btn-login { flex: 1; text-align: center; padding: 8px 6px; font-size: 11px; }
    
    /* ЖЕСТКОЕ СЖАТИЕ БАННЕРА И КАРТОЧЕК (Убираем распирание и обрезку краев) */
    .main-banner { 
        padding: 15px 10px !important; 
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    .seo-card { 
        padding: 15px 10px !important; 
        width: 100% !important; 
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 auto;
    }
    
    /* Дополнительное уменьшение шрифтов, чтобы контент сел узко и аккуратно под шапку */
    .seo-title { font-size: 18px !important; text-align: center; font-weight: 800; }
    .seo-lead { text-align: center; font-size: 12px !important; margin-bottom: 12px; }
    
    .seo-card h2 { font-size: 15px !important; margin-bottom: 8px; line-height: 1.3; }
    .seo-card h3 { font-size: 13px !important; margin-top: 12px; }
    .seo-card p { font-size: 11px !important; line-height: 1.4; margin-bottom: 8px; text-align: left; }
    .article-notice { font-size: 11px !important; padding: 8px; margin: 10px 0; }
    
    /* Адаптируем и ужимаем кнопки внутри статей */
    .btn-article-action { font-size: 12px !important; padding: 8px 20px !important; width: 100%; border-radius: 20px; }
    .btn-kayit { font-size: 13px !important; padding: 8px 25px !important; width: 100%; }
    .banner-cta-box { padding: 10px !important; gap: 8px; text-align: center; width: 100% !important; }
    .cta-text { font-size: 11px; width: 100%; text-align: center; }

    /* Таблицы больше не разрывают карточки, а аккуратно крутются внутри узкой области */
    .table-responsive { margin: 10px 0; width: 100% !important; }
    .seo-table { font-size: 11px; min-width: 400px; }
    .seo-table th, .seo-table td { padding: 6px 8px; }

    /* Компактный вид FAQ */
    .faq-question { padding: 10px 12px; font-size: 12px; }
    .faq-answer p { padding: 10px 12px; font-size: 11px; }
    
    /* Ровный подвал без наездов */
    .footer-row { 
        flex-direction: column !important; 
        align-items: center !important; 
        gap: 8px !important;
        width: 100% !important;
    }
    .payment-badge, .sports-partners .partner-logo, .footer-links .modal-trigger { 
        width: 100% !important; 
        max-width: 250px !important; 
        text-align: center !important; 
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 11px !important;
        padding: 8px 12px !important;
    }
}
/* ==========================================================================
   ПОЛНАЯ ЗАМЕНА: УЛЬТРА-МИКРО МАСШТАБ КОНТЕНТА ДЛЯ МОБИЛОК (ДО 550px)
   ========================================================================== */
@media (max-width: 550px) {
    
    /* 1. Максимально зажимаем карточки контента и баннер, делаем их узкими */
    .main-banner, .seo-card { 
        padding: 8px 6px !important; /* Экстремально узкие отступы */
        border-radius: 4px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* 2. Ультра-компактные плотные шрифты СЕО-текстов */
    .seo-title { 
        font-size: 14px !important; /* Микро-заголовок H1 */
        margin-bottom: 6px !important; 
        text-align: center !important;
    }
    .seo-lead { 
        font-size: 10px !important; /* Мелкий подзаголовок баннера */
        margin-bottom: 10px !important; 
        text-align: center !important;
    }
    .seo-card h2 { 
        font-size: 12.5px !important; /* Узкие заголовки H2 */
        margin-bottom: 4px !important; 
    }
    .seo-card h3 { 
        font-size: 11px !important; /* Микро-подзаголовок H3 */
        margin-top: 8px !important; 
    }
    .seo-card p { 
        font-size: 9.5px !important; /* Экстремально мелкий, аккуратный текст статей */
        line-height: 1.35 !important; 
        margin-bottom: 5px !important; 
    }

    /* 3. Жесткое сжатие картинок-рефок (теперь они узкие и сидят строго по центру) */
    .article-image-box {
        margin: 8px 0 !important;
        max-width: 75% !important; /* Ужали картинку до 75% ширины карточки, чтобы сидела аккуратно */
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .article-img {
        width: 100% !important;
        height: auto !important;
    }

    /* 4. Сжимаем кнопки и блоки клика до аккуратного мини-формата */
    .btn-article-action { 
        font-size: 10px !important; 
        padding: 5px 12px !important; 
        border-radius: 15px !important;
        width: 100% !important;
    }
    .btn-kayit { 
        font-size: 11px !important; 
        padding: 5px 15px !important; 
        width: 100% !important;
    }
    .banner-cta-box { 
        padding: 6px !important; 
        gap: 6px !important; 
    }
    .cta-text { 
        font-size: 9.5px !important; 
    }

    /* 5. Ультра-узкие таблицы (скроллятся внутри мини-карточки без проблем) */
    .table-responsive { margin: 8px 0; width: 100% !important; }
    .seo-table { font-size: 10px; min-width: 360px; }
    .seo-table th, .seo-table td { padding: 5px 6px; }

    /* 6. Компактные вопросы FAQ */
    .faq-question { padding: 6px 8px; font-size: 11px; }
    .faq-answer p { padding: 6px 8px; font-size: 9.5px; }
    
    /* 7. Ровный, узкий подвал: плашки платежек встают аккуратно в столбик */
    .footer-row { 
        flex-direction: column !important; 
        align-items: center !important; 
        gap: 8px !important;
        width: 100% !important;
    }
    .payment-badge, .sports-partners .partner-logo, .footer-links .modal-trigger { 
        width: 100% !important; 
        max-width: 220px !important; /* Сузили плашки подвала под общий масштаб контента */
        text-align: center !important; 
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        font-size: 10px !important;
        padding: 6px 10px !important;
    }
}
