/* ==========================================
   1. ОСНОВНЫЕ ПЕРЕМЕННЫЕ И СБРОС
   ========================================== */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; } 

:root {
    --bg-color: #f1f5f9; --text-color: #0f172a; --header-bg: rgba(255, 255, 255, 0.98); 
    --element-bg: #ffffff; --border-color: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.1); --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --accent-color: #2563eb; --accent-hover: #1d4ed8;
    --logo-cup: #2563eb; --logo-text: #0f172a; --logo-badge-bg: #2563eb; --logo-badge-text: #ffffff;
    --bonus-color: #f59e0b;
}

[data-theme="dark"] {
    --bg-color: green; --text-color: #f8fafc; --header-bg: rgba(15, 23, 42, 0.98);
    --element-bg: #1e293b; --border-color: #334155;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5); --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.6);
    --accent-color: #10b981; --accent-hover: #059669;
    --logo-cup: #10b981; --logo-text: #ffffff; --logo-badge-bg: #10b981; --logo-badge-text: #ffffff;
    --bonus-color: #fbbf24;
}

/* Убрали overflow-x: hidden, чтобы заработал липкий сайдбар */
html, body { max-width: 100vw; margin: 0; padding: 0; scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background-color: var(--bg-color); color: var(--text-color); transition: background-color 0.3s ease; line-height: 1.6; padding-top: 75px; } /* Увеличен padding-top под новую шапку */
a { text-decoration: none; color: inherit; transition: 0.3s; display: inline-block; }
img { max-width: 100%; height: auto; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* ==========================================
   2. ШАПКА, ПОИСК И НАВИГАЦИЯ
   ========================================== */
header { background-color: var(--header-bg); border-bottom: 1px solid rgba(150, 150, 150, 0.05); position: fixed; top: 0; z-index: 1000; width: 100%; padding: 12px 0 !important; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-icon { width: 24px; height: 24px; fill: var(--logo-cup); }
.logo-text-main { font-size: 18px; font-weight: 900; color: var(--logo-text); letter-spacing: -0.5px; }
.logo-badge { background-color: var(--logo-badge-bg); color: var(--logo-badge-text); font-size: 11px; font-weight: 800; padding: 2px 6px; border-radius: 4px; }

.desktop-nav { display: flex; gap: 12px; }
.desktop-nav a { font-size: 0.8rem; font-weight: 700; padding: 6px 10px; border-radius: 8px; text-transform: uppercase; opacity: 0.8; position: relative; }
.desktop-nav a.active { color: var(--accent-color); opacity: 1; }
.desktop-nav a.active::after { width: 70%; content: ''; position: absolute; bottom: 0; left: 50%; height: 2px; background: var(--accent-color); transform: translateX(-50%); }
.desktop-nav a::after { content: ''; position: absolute; bottom: 0; left: 50%; width: 0; height: 2px; background: var(--accent-color); transition: 0.3s; transform: translateX(-50%); }
.desktop-nav a:hover::after { width: 70%; }
.desktop-nav a:hover { opacity: 1; color: var(--accent-color); background: rgba(37,99,235,0.05); }

/* Иконки в шапке */
.header-controls { display: flex; align-items: center; gap: 15px; }
.icon-btn { background: transparent; border: none; padding: 0; color: var(--text-color); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: color 0.2s, transform 0.2s; }
.icon-btn:hover { color: var(--accent-color); transform: scale(1.1); }

@keyframes burgerPulse {
    0%, 80%, 100% { transform: scale(1); color: currentColor; }
    90% { transform: scale(1.15); color: var(--accent-color, #3b82f6); }
}
.burger-btn { display: none; animation: burgerPulse 3s infinite ease-in-out; transform-origin: center; }

/* Живой поиск */
.search-container { display: flex; align-items: center; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 20px; padding: 6px 15px; transition: 0.3s; max-width: 320px; flex-grow: 1; position: relative; margin: 0 15px; }
.search-container:focus-within { border-color: var(--accent-color, #3b82f6); box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2); }
.search-input { border: none; background: transparent; color: var(--text-color); font-size: 0.9rem; width: 100%; outline: none; }
.search-input::placeholder { color: var(--text-muted); }
.search-icon-btn { background: none; border: none; padding: 0; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; }
.search-dropdown { position: absolute; top: calc(100% + 8px); left: 0; width: 100%; min-width: 280px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.15); z-index: 10001; display: none; flex-direction: column; overflow: hidden; }
.search-dropdown.active { display: flex; }
.search-dropdown-item { padding: 12px 15px; text-decoration: none; color: var(--text-color); border-bottom: 1px solid rgba(150,150,150,0.1); font-size: 0.9rem; transition: background 0.2s; }
.search-dropdown-item:last-child { border-bottom: none; }
.search-dropdown-item:hover { background: rgba(59, 130, 246, 0.05); color: var(--accent-color, #3b82f6); }

/* ==========================================
   3. ОСНОВНАЯ СЕТКА И САЙДБАР
   ========================================== */
.layout-grid { display: grid; grid-template-columns: 1fr 300px; gap: 25px; width: 100%; max-width: 100%; margin-top: 30px; margin-bottom: 40px; align-items: start; }
.left-content, .right-sidebar { min-width: 0; max-width: 100%; }
.article-card { background: var(--element-bg); border-radius: 16px; border: 1px solid var(--border-color); padding: 35px; box-shadow: var(--shadow); }
.breadcrumb { font-size: 0.85rem; font-weight: 600; color: #64748b; margin-bottom: 15px; text-transform: uppercase; letter-spacing: 0.5px; }
.breadcrumb a:hover { color: var(--accent-color); }
.article-title { font-size: 2.2rem; font-weight: 900; margin: 0 0 25px; line-height: 1.2; }

.right-sidebar { display: flex; flex-direction: column; gap: 20px; }
/* Железобетонный фикс для липкого сайдбара */
@media (min-width: 1001px) { 
    .right-sidebar { 
        position: -webkit-sticky !important; 
        position: sticky !important; 
        top: 85px !important; 
        align-self: flex-start; 
        height: auto; 
        z-index: 10; 
    } 
}
.sidebar-widget { background: var(--element-bg); border-radius: 16px; padding: 18px; border: 1px solid var(--border-color); overflow: hidden;}
.widget-title { font-size: 0.95rem; font-weight: 800; margin-bottom: 12px; color: var(--text-color); text-transform: uppercase; letter-spacing: 1px; }

/* ==========================================
   4. ДИЗАЙН ПРОГНОЗОВ (КАРТОЧКИ, СТАТИСТИКА, ВАЛУЙ)
   ========================================== */
.value-bet-info { background: linear-gradient(135deg, rgba(37,99,235,0.05) 0%, rgba(16,185,129,0.05) 100%); border-left: 4px solid var(--accent-color); padding: 20px 25px; border-radius: 0 12px 12px 0; margin-bottom: 30px; color: var(--text-color); }
.value-bet-info h3 { margin: 0 0 10px 0; font-size: 1.15rem; font-weight: 900; display: flex; align-items: center; gap: 8px; }
.value-bet-info p { margin: 0; font-size: 0.95rem; line-height: 1.6; opacity: 0.9; }

.predictions-list { display: flex; flex-direction: column; gap: 15px; }
.prediction-card { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; transition: all 0.3s ease; position: relative; overflow: hidden; width: 100%; box-sizing: border-box; }
.prediction-card:hover { border-color: var(--accent-color); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pred-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.pred-sport { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; }
.pred-date { font-size: 0.85rem; color: #64748b; font-weight: 600; display: flex; align-items: center; gap: 5px; }
.pred-match { font-size: 1.15rem; font-weight: 900; margin: 10px 0; text-align: center; word-wrap: break-word;}
.pred-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 15px; border-top: 1px solid var(--border-color); flex-wrap: wrap; gap: 10px;}
.pred-bet { font-weight: 800; font-size: 0.95rem; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;}
.pred-odds { background: var(--accent-color); color: #fff; padding: 4px 10px; border-radius: 6px; font-weight: 900; }
.status { font-size: 0.75rem; padding: 4px 10px; border-radius: 6px; font-weight: 800; text-transform: uppercase; }
.status-pending { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.status-won { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.status-lost { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.read-desc-link { display: block; text-align: center; font-size: 0.8rem; font-weight: 800; color: var(--accent-color); margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border-color); text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.8; transition: 0.3s; }
.prediction-card:hover .read-desc-link { opacity: 1; transform: translateY(2px); }

.stats-block { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 25px; }
.stat-item { background: var(--element-bg); border: 1px solid var(--border-color); border-radius: 12px; padding: 10px; text-align: center; box-shadow: var(--shadow); transition: 0.3s; }
.stat-item:hover { border-color: var(--accent-color); transform: translateY(-2px); }
.stat-label { font-size: 0.75rem; font-weight: 800; color: #64748b; text-transform: uppercase; margin-bottom: 5px; }
.stat-value { font-size: 1.6rem; font-weight: 900; }
.stat-roi { color: var(--text-color); }
.stat-roi.positive { color: #10b981; } 
.stat-roi.negative { color: #ef4444; } 

/* ==========================================
   5. МОДАЛЬНОЕ ОКНО ПРОГНОЗА
   ========================================== */
.modal-overlay-bg { position: fixed; inset: 0; background: rgba(0,0,0,0.75); z-index: 3000; backdrop-filter: blur(5px); opacity: 0; visibility: hidden; transition: 0.3s ease; }
.modal-overlay-bg.active { opacity: 1; visibility: visible; }
.prediction-modal { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -45%); width: 95%; max-width: 850px; height: 500px; background: var(--element-bg); border-radius: 20px; z-index: 3001; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid var(--border-color); display: flex; flex-direction: row; overflow: hidden; }
.prediction-modal.active { opacity: 1; visibility: visible; transform: translate(-50%, -50%); }
.modal-close { position: absolute; top: 15px; right: 20px; background: none; border: none; font-size: 1.8rem; color: #64748b; cursor: pointer; transition: 0.3s; z-index: 10; }
.modal-close:hover { color: var(--accent-color); transform: scale(1.1); }
.modal-left { flex: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; }
.modal-left::-webkit-scrollbar { width: 6px; }
.modal-left::-webkit-scrollbar-track { background: transparent; }
.modal-left::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 6px; }
.modal-right { width: 300px; background: var(--bg-color); padding: 40px 30px; border-left: 1px solid var(--border-color); display: flex; flex-direction: column; justify-content: center; flex-shrink: 0; position: relative; }
.modal-sport { font-size: 0.85rem; font-weight: 900; color: var(--accent-color); text-transform: uppercase; margin-bottom: 10px; display: block; }
.modal-title { font-size: 1.6rem; font-weight: 900; margin: 0 0 15px; line-height: 1.3; text-align: left; }
.modal-meta { display: flex; justify-content: flex-start; gap: 15px; font-size: 0.85rem; color: #64748b; font-weight: 600; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid var(--border-color); }
.modal-desc { font-size: 0.95rem; line-height: 1.6; color: var(--text-color); opacity: 0.9; }
.modal-bet-box { background: var(--element-bg); border: 2px dashed var(--border-color); border-radius: 12px; padding: 25px 20px; text-align: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.modal-bet-label { font-size: 0.8rem; color: #64748b; font-weight: 800; text-transform: uppercase; margin-bottom: 10px; display: block; }
.modal-bet-val { font-size: 1.3rem; font-weight: 900; color: var(--accent-color); line-height: 1.3; }
.modal-btn { background: var(--bonus-color); color: #000; width: 100%; padding: 15px; border-radius: 10px; font-weight: 900; text-align: center; text-transform: uppercase; display: block; font-size: 1rem; cursor: pointer; transition: 0.2s; border:none;}
.modal-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,0.4); }

/* ==========================================
   6. ФУТЕР И ВЫПАДАЮЩЕЕ МОБ. МЕНЮ
   ========================================== */
.footer-banner { background: linear-gradient(100deg, var(--accent-color), #4f46e5); color: #fff; padding: 35px; border-radius: 20px; display: flex; flex-direction: column; gap: 15px; text-align: center; margin-top: 30px; margin-bottom: 30px; }
.btn-white { background: #fff; color: var(--accent-color); padding: 12px 25px; border-radius: 10px; font-weight: 900; text-transform: uppercase; font-size: 0.9rem; align-self: center; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.btn-white:hover { transform: scale(1.05); background: #f8fafc; }

footer { padding: 40px 0; border-top: 1px solid var(--border-color); background: var(--element-bg); text-align: center; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 25px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; }
.footer-links a:hover { color: var(--accent-color); }
.social-row { display: flex; gap: 15px; justify-content: center; margin-bottom: 25px; }
.social-btn { width: 40px; height: 40px; background: var(--bg-color); border-radius: 10px; display: flex; align-items: center; justify-content: center; fill: var(--text-color); transition: 0.3s; }
.social-btn:hover { background: var(--accent-color); fill: #fff; transform: translateY(-3px); box-shadow: var(--shadow); }
.age-limit { border: 2px solid #ef4444; color: #ef4444; padding: 4px 12px; border-radius: 8px; font-weight: 900; display: inline-block; font-size: 0.85rem; }

/* Обновленное мобильное меню (Сверху вниз) */
#mobile-menu {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: var(--bg-color);
            z-index: 2000; 
            transform: translateY(-100%); 
            transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
            padding: 90px 15px 15px 15px; /* ИЗМЕНЕНО: Уменьшили общие отступы по краям */
            border-bottom: 1px solid var(--border-color);
            box-shadow: 0 15px 40px rgba(0,0,0,0.1);
            visibility: hidden;
            box-sizing: border-box;
            max-height: 100vh;
            overflow-y: auto;
        }

        #mobile-menu.active {
            transform: translateY(0);
            visibility: visible;
        }
.mobile-menu-header-top { display: none; }

        .mobile-menu-nav {
            display: flex;
            flex-direction: column;
            font-weight: 700;
            text-transform: uppercase;
        }
.mobile-menu-nav a {
            display: flex;
            align-items: center;
            gap: 12px; /* ИЗМЕНЕНО: Иконки стали чуть ближе к тексту */
            padding: 10px 0; /* ИЗМЕНЕНО: Сильно уменьшили высоту каждой строки */
            border-bottom: 1px solid rgba(150, 150, 150, 0.15); 
            text-decoration: none;
            color: var(--text-color);
            transition: 0.2s;
            font-size: 0.85rem; /* ИЗМЕНЕНО: Шрифт стал аккуратнее и меньше */
            letter-spacing: 0.5px;
        }

        .mobile-menu-nav a:last-child {
            border-bottom: none;
            padding-bottom: 0;
        }
        
        .mobile-menu-nav a:active { color: var(--accent-color); }

        .mobile-menu-nav a svg {
            width: 18px; /* ИЗМЕНЕНО: Иконки стали чуть меньше */
            height: 18px;
            color: #3b82f6; 
            flex-shrink: 0;
        }

        .mobile-menu-nav a.live-link svg { color: #ef4444; } 
        .mobile-menu-nav a.bonus-link { color: #f59e0b; }
        .mobile-menu-nav a.bonus-link svg { color: #f59e0b; }

.overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.6); visibility: hidden; opacity: 0; z-index: 1500; backdrop-filter: blur(4px); transition: 0.3s; }
.overlay.active { visibility: visible; opacity: 1; }
.back-to-top { position: fixed; bottom: 20px; right: 20px; width: 45px; height: 45px; background: var(--accent-color); color: #fff; border: none; border-radius: 12px; display: none; align-items: center; justify-content: center; z-index: 1000; cursor: pointer; transition: 0.3s; }

/* ==========================================
   7. ПОЛНАЯ АДАПТИВНОСТЬ НА ТЕЛЕФОН
   ========================================== */
@media (max-width: 1000px) {
    /* На телефонах скролл по X все равно нужно гасить, чтобы экран не шатался */
    html, body { overflow-x: hidden; }
    .layout-grid { grid-template-columns: 100%; gap: 20px; width: 100%; margin-top: 20px; }
    .desktop-nav { display: none; }
    .burger-btn { display: flex; }
}

@media (max-width: 800px) {
    .prediction-modal { flex-direction: column; height: 85vh; max-width: 450px; }
    .modal-left { padding: 25px; padding-bottom: 15px; }
    .modal-title { font-size: 1.4rem; text-align: center; }
    .modal-meta { justify-content: center; }
    .modal-right { width: 100%; height: auto; border-left: none; border-top: 1px solid var(--border-color); padding: 20px 25px; justify-content: flex-end; }
    .modal-close { color: var(--text-color); background: var(--element-bg); border-radius: 50%; width: 32px; height: 32px; display:flex; align-items:center; justify-content:center; top: 12px; right: 12px; box-shadow: var(--shadow); }
    .modal-bet-box { padding: 15px; margin-bottom: 15px; }
}

@media (max-width: 640px) {
    /* ИЗМЕНЕНО: Адаптация новой шапки и поиска для телефонов */
    header { padding-top: 10px !important; padding-bottom: 8px !important; height: auto !important; }
    .search-container { order: 3; max-width: 100%; margin: 10px 0 0 0 !important; width: 100%; }
    .logo { order: 1; }
    .header-controls { order: 2; }
    .search-dropdown { min-width: 100%; }
    body { padding-top: 105px; } /* Спускаем контент под двухстрочную шапку на телефоне */
}

@media (max-width: 600px) {
    .container { padding: 0 12px; }
    .article-card { padding: 20px; }
    .article-title { font-size: 1.6rem; }
    .pred-footer { flex-direction: column; align-items: flex-start; gap: 10px; }
    .pred-bet { width: 100%; justify-content: space-between; }
    .footer-banner { padding: 25px 15px; }
    .value-bet-info { padding: 15px; }
    .value-bet-info h3 { font-size: 1.05rem; }
    .value-bet-info p { font-size: 0.85rem; }
    .prediction-modal { width: 95%; max-height: 90vh; }
    .pred-match { font-size: 0.95rem; }
    .pred-match img { width: 24px !important; height: 24px !important; }
    .stats-block { gap: 10px; }
    .stat-value { font-size: 1.3rem; }
    .stat-item { padding: 12px 10px; }
}

/* ==========================================
   10. СТИЛИ ДЛЯ КРУТОЙ ГЛАВНОЙ СТРАНИЦЫ
   ========================================== */
.hero-banner {
    background: linear-gradient(135deg, var(--accent-color) 0%, #312e81 100%);
    color: #fff;
    padding: 60px 30px;
    border-radius: 20px;
    text-align: center;
    margin-top: 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}
.hero-banner::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    transform: rotate(30deg); pointer-events: none;
}
.hero-title { font-size: 2.8rem; font-weight: 900; margin: 0 0 15px; line-height: 1.1; letter-spacing: -1px; }
.hero-subtitle { font-size: 1.1rem; opacity: 0.9; max-width: 600px; margin: 0 auto 25px; line-height: 1.5; }
.hero-btn { background: var(--bonus-color); color: #000; padding: 14px 30px; border-radius: 10px; font-weight: 900; text-transform: uppercase; font-size: 1rem; box-shadow: 0 4px 15px rgba(245,158,11,0.4); transition: 0.3s; z-index: 1; position: relative;}
.hero-btn:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(245,158,11,0.6); }

.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin: 30px 0; }
.feature-card-link { background: var(--element-bg); border: 1px solid var(--border-color); border-radius: 16px; padding: 25px; text-align: center; transition: 0.3s; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; }
.feature-card-link:hover { border-color: var(--accent-color); transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; line-height: 1; }
.feature-title { font-size: 1.1rem; font-weight: 800; color: var(--text-color); margin: 0; }
.feature-desc { font-size: 0.85rem; color: #64748b; margin: 0; }

@media (max-width: 600px) {
    .hero-title { font-size: 2rem; }
    .hero-banner { padding: 40px 20px; }
    .features-grid { grid-template-columns: 1fr; }
}

/* ==========================================
   11. ПРЕМИУМ ДИЗАЙН СТРАТЕГИЙ (КОМПАКТНЫЙ РЕКТАНГЛ)
   ========================================== */
/* Сетка стала плотнее */
.strategies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 30px; }

/* Карточка: строгий прямоугольник, меньше радиус */
.strat-card { 
    background: var(--element-bg); 
    border: 1px solid transparent; 
    border-radius: 16px; 
    overflow: hidden; 
    transition: all 0.3s ease; 
    display: flex; 
    flex-direction: column; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    cursor: pointer; 
    text-decoration: none; 
    color: inherit; 
    position: relative;
}
[data-theme="dark"] .strat-card { border-color: var(--border-color); box-shadow: 0 4px 15px rgba(0,0,0,0.3); }

.strat-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px -5px rgba(37,99,235,0.15); 
    border-color: rgba(37,99,235,0.3);
}

/* Картинка теперь узкая (прямоугольная) */
.strat-img-box { width: 100%; height: 160px; background: #e2e8f0; position: relative; overflow: hidden; }
.strat-img-box::after { 
    content: ''; position: absolute; inset: 0; 
    background: linear-gradient(to top, rgba(0,0,0,0.4) 0%, transparent 60%); 
    z-index: 1; pointer-events: none;
}
.strat-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.strat-card:hover .strat-img-box img { transform: scale(1.08); }

/* Компактный бейджик */
.strat-badge { 
    position: absolute; top: 12px; left: 12px; 
    background: rgba(255,255,255,0.95); color: #0f172a; 
    padding: 4px 10px; border-radius: 6px; font-size: 0.7rem; font-weight: 900; 
    text-transform: uppercase; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.15);
    backdrop-filter: blur(4px);
}
[data-theme="dark"] .strat-badge { background: #1e293b; color: #fff; }

/* Текстовый блок стал аккуратнее */
.strat-content { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.strat-title { font-size: 1.15rem; font-weight: 900; margin: 0 0 10px; line-height: 1.3; color: var(--text-color); }
.strat-desc { font-size: 0.85rem; color: #64748b; margin: 0 0 15px; line-height: 1.5; flex: 1; }

.strat-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--border-color); }
.strat-btn-text { font-weight: 800; font-size: 0.8rem; text-transform: uppercase; color: var(--accent-color); display: flex; align-items: center; gap: 5px; transition: 0.3s;}
.strat-card:hover .strat-btn-text { gap: 10px; }

/* ==========================================
   ОТКРЫТАЯ СТАТЬЯ
   ========================================== */
.article-full-img { width: 100%; max-height: 350px; object-fit: cover; border-radius: 16px; margin-bottom: 25px; box-shadow: var(--shadow-lg); }
.article-meta { display: flex; flex-wrap: wrap; gap: 15px; font-size: 0.85rem; font-weight: 700; color: #64748b; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid var(--border-color); text-transform: uppercase; letter-spacing: 0.5px;}
.meta-tag { background: rgba(37,99,235,0.1); color: var(--accent-color); padding: 5px 12px; border-radius: 6px; }
.article-text { font-size: 1.05rem; line-height: 1.8; color: var(--text-color); max-width: 800px; }
.article-text h3 { font-size: 1.5rem; font-weight: 900; margin: 35px 0 15px; color: var(--text-color); }
.article-text b { color: var(--text-color); font-weight: 900; background: rgba(245,158,11,0.15); padding: 2px 6px; border-radius: 4px;}
.back-link { display: inline-flex; align-items: center; gap: 8px; color: #64748b; font-weight: 800; text-transform: uppercase; font-size: 0.85rem; margin-bottom: 20px; transition: 0.3s; }
.back-link:hover { color: var(--accent-color); transform: translateX(-5px); }

/* === ПАТЧ АДАПТИВНОСТИ ДЛЯ СТАРЫХ IPHONE (iOS < 14.1) === */
@supports not (gap: 1px) {
    /* Делаем отступы через старый добрый margin */
    
    /* Заголовок с SVG-иконкой */
    .section-title svg { margin-right: 10px; }
    
    /* Команды в карточках прогнозов */
    .match-teams-layout .team-logo:first-child { margin-right: 15px; }
    .match-teams-layout .team-logo:last-child { margin-left: 15px; }
    
    /* Telegram баннер */
    .tg-left .tg-icon-wrap { margin-right: 15px; }
    
    /* Мини-карточки стратегий */
    .strat-mini-card .strat-mini-icon { margin-right: 6px; }

    /* Виджет букмекеров (если там grid не сработает, задаем отступы) */
    .bk-logo-wrap { margin-right: 12px; }
    .bk-action { margin-left: 10px; }
}

/* Фикс горизонтального скролла на старых iOS при использовании 100vw */
body {
    overflow-x: hidden;
}