/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark Dark Navy Sportsbook Design System · Target: 1xbet-cash.com */

:root {
    /* Brand Color Tokens (Deep Navy, Neon Lime, Light Blue, White) */
    --color-bg-deep: #0A192F;          /* Deepest dominant navy blue */
    --color-bg-base: #0D2040;          /* Base dark navy canvas */
    --color-surface-panel: #132E58;    /* Lighter solid navy for content cards */
    --color-surface-card: #173868;     /* Lighter navy card highlight */
    --color-surface-hover: #1C447E;    /* Interactive hover on cards */
    --color-border: #20457A;           /* Sharp card border */
    --color-border-subtle: #193660;    /* Muted dividers */

    /* Accent Tokens */
    --color-lime: #00E676;             /* Neon Lime / Salad Green for Registration & Odds */
    --color-lime-hover: #00C853;       /* Deeper lime on hover */
    --color-lime-text: #051424;        /* Dark navy text on lime buttons (WCAG AAA) */
    --color-light-blue: #38BDF8;       /* Light blue for secondary badges and icons */
    --color-light-blue-hover: #7DD3FC; /* Light blue hover */
    --color-cyan-glow: rgba(56, 189, 248, 0.2);

    /* Typography Tokens */
    --color-text-white: #FFFFFF;       /* Pure white for headings and odds */
    --color-text-main: #E2E8F0;        /* Bright off-white body text */
    --color-text-secondary: #94A3B8;   /* Muted slate text */
    --color-text-muted: #64748B;       /* Low-contrast captions */

    /* Functional Accents */
    --color-live-red: #EF4444;         /* Live indicators */
    --color-gold: #F59E0B;             /* Rating stars */

    /* Typography Stack */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

    /* Layout Dimensions */
    --site-max-width: 1320px;
    --border-radius: 6px;              /* Hallmark spec: 4-6px minimal corner radius */
    --border-radius-sm: 4px;
    --border-radius-pill: 9999px;

    /* Subtle Shadows */
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.25);
    --shadow-sticky: 0 -4px 16px rgba(0, 0, 0, 0.4);

    /* Transitions */
    --trans-fast: 0.15s ease;
    --trans-normal: 0.25s ease;
}

/* 1. Global Reset & Prompt Overflow Safety Rule #1:
   На html и body всегда ставь overflow-x: hidden и overflow-wrap: break-word. */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    overflow-x: hidden;
    overflow-wrap: break-word;
    background-color: var(--color-bg-deep);
    color: var(--color-text-main);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 76px; /* Safe space for sticky bottom bar */
}

/* 2. Prompt Overflow Safety Rule #2:
   На все контейнеры-обёртки (.wrap, основной контейнер контента) ставь overflow-x: hidden. */
.wrap,
.site-container,
.main-wrapper,
.content-wrapper {
    width: 100%;
    max-width: var(--site-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
    overflow-x: hidden;
}

/* 3. Prompt Overflow Safety Rule #3:
   Все дочерние элементы CSS Grid обязательно должны иметь min-width: 0. */
.main-grid > *,
.two-col-layout > *,
.cards-grid > *,
.hero-matches-grid > *,
.footer-grid > *,
.predictions-table-wrap > *,
.poll-options > *,
.similar-grid > *,
.layout__main,
.layout__side {
    min-width: 0;
}

/* 4. Prompt Overflow Safety Rule #4:
   Контейнеры статей/rich-text (.rt, article) должны иметь overflow-x: hidden и overflow-wrap: break-word. */
.rt,
article,
.article-body,
.article-content,
.rich-text {
    overflow-x: hidden;
    overflow-wrap: break-word;
}

/* 5. Prompt Overflow Safety Rule #5:
   Компоненты должны иметь собственный сплошной тёмный background-color, а не полупрозрачный rgba(). */
.promocode-widget,
.match-card,
.news-card,
.widget-box,
.article-card,
.stat-card,
.prediction-row,
.rating-item,
.poll-box,
.drawer-head,
.mobile-drawer {
    background-color: var(--color-surface-panel);
}

/* 6. Prompt Overflow Safety Rule #7 & #8:
   Таблицы и горизонтально-скроллируемые элементы оборачивай в контейнер с overflow-x: auto,
   а родительский блок — с overflow-x: hidden. Не использовать фиксированные min-width без обертки. */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background-color: var(--color-surface-panel);
}

/* Hallmark Discipline: No Italic Headers! Headings are always font-style: normal */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .hero-title, .section-title, .col-title, .card-title {
    font-style: normal !important;
    font-weight: 700;
    color: var(--color-text-white);
    line-height: 1.25;
    margin-bottom: 0.5em;
    overflow-wrap: anywhere;
}

a {
    color: var(--color-light-blue);
    text-decoration: none;
    transition: color var(--trans-fast);
}

a:hover {
    color: var(--color-light-blue-hover);
}

img, svg {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100px;
    left: 20px;
    padding: 10px 16px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-weight: 700;
    z-index: 10000;
    border-radius: var(--border-radius-sm);
    transition: top 0.2s;
}
.skip-link:focus {
    top: 20px;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    background-color: var(--color-bg-deep);
    border-bottom: 1px solid var(--color-border);
    position: sticky;
    top: 0;
    z-index: 900;
}

/* Top Announcement Bar */
.header-top-bar {
    background-color: #071324;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 6px 0;
    font-size: 13px;
    color: var(--color-text-secondary);
}

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

.top-bar-left, .top-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-pulse-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(239, 68, 68, 0.2);
    color: #FCA5A5;
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.pulse-indicator {
    width: 6px;
    height: 6px;
    background: var(--color-live-red);
    border-radius: 50%;
    box-shadow: 0 0 6px var(--color-live-red);
    animation: livePulse 1.8s infinite;
}

@keyframes livePulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    50% { transform: scale(1.3); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.7; }
}

.top-meta-sep {
    color: var(--color-border);
}

.age-restriction {
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    padding: 1px 6px;
    border-radius: var(--border-radius-sm);
    font-size: 11px;
    font-weight: 700;
}

/* Main Navigation Row */
.header-main-nav {
    padding: 12px 0;
}

.nav-flex-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand-logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.site-logo {
    height: 34px;
    width: auto;
}

.brand-subtag {
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.5px;
}

.desktop-navigation {
    display: flex;
    align-items: center;
}

.nav-links-list {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 4px;
}

.nav-item-link {
    color: var(--color-text-main);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: var(--border-radius-sm);
    transition: all var(--trans-fast);
}

.nav-item-link:hover {
    color: var(--color-text-white);
    background-color: rgba(255, 255, 255, 0.08);
}

.nav-item-link.is-active {
    color: var(--color-lime);
    background-color: rgba(0, 230, 118, 0.1);
}

/* Right Header Buttons */
.header-cta-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-header-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--color-text-white);
    font-size: 14px;
    font-weight: 700;
    transition: all var(--trans-fast);
}

.btn-header-login:hover {
    border-color: var(--color-light-blue);
    background: rgba(56, 189, 248, 0.1);
    color: var(--color-text-white);
}

.btn-header-register {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 20px;
    border-radius: var(--border-radius);
    background-color: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.3px;
    transition: all var(--trans-fast);
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.3);
}

.btn-header-register:hover {
    background-color: var(--color-lime-hover);
    color: var(--color-lime-text);
    transform: translateY(-1px);
    box-shadow: 0 0 16px rgba(0, 230, 118, 0.5);
}

/* Burger Button */
.burger-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 32px;
    height: 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 2px;
}

.burger-bar {
    width: 100%;
    height: 3px;
    background-color: var(--color-text-white);
    border-radius: 2px;
    transition: all var(--trans-fast);
}

/* Mobile Drawer */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all var(--trans-normal);
}

.mobile-drawer-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.mobile-drawer {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    z-index: 999;
    padding: 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right var(--trans-normal);
    border-left: 1px solid var(--color-border);
}

.mobile-drawer.is-open {
    right: 0;
}

.drawer-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.drawer-brand-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: var(--color-light-blue);
}

.drawer-close-btn {
    background: transparent;
    border: none;
    color: var(--color-text-white);
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 20px 0;
}

.drawer-btn-login {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    color: var(--color-text-white);
    font-weight: 700;
}

.drawer-btn-reg {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    border-radius: var(--border-radius);
    font-weight: 800;
}

.drawer-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.drawer-link {
    display: block;
    padding: 10px 14px;
    color: var(--color-text-main);
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.drawer-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--color-text-white);
}

.drawer-divider {
    height: 1px;
    background: var(--color-border);
    margin: 10px 0;
}

.drawer-foot {
    margin-top: auto;
    padding-top: 20px;
    font-size: 12px;
    color: var(--color-text-muted);
}

/* ==========================================================================
   HERO SECTION (Stadium watermark / blue pattern + 3 Top match cards)
   ========================================================================== */
.hero-stadium-section {
    position: relative;
    padding: 36px 0 28px;
    background-color: #0c1c36;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(56, 189, 248, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 230, 118, 0.08) 0%, transparent 45%),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.015) 0, rgba(255, 255, 255, 0.015) 1px, transparent 0, transparent 24px);
    border-bottom: 1px solid var(--color-border);
    overflow: hidden;
}

/* Soccer ball / stadium watermark overlay */
.hero-stadium-section::before {
    content: "";
    position: absolute;
    top: -60px;
    right: 5%;
    width: 420px;
    height: 420px;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.04) 20%, transparent 20%),
                      radial-gradient(circle, rgba(56, 189, 248, 0.05) 20%, transparent 20%);
    background-size: 60px 60px;
    background-position: 0 0, 30px 30px;
    pointer-events: none;
    border-radius: 50%;
}

.hero-header {
    margin-bottom: 24px;
}

.hero-kicker-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.hero-tag {
    background: rgba(56, 189, 248, 0.15);
    color: var(--color-light-blue);
    font-size: 12px;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.hero-time-stamp {
    font-size: 13px;
    color: var(--color-text-secondary);
}

.hero-h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 8px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--color-text-secondary);
    max-width: 820px;
}

/* 3 Top Match Cards Grid */
.hero-matches-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 20px;
}

.match-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.match-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-light-blue);
}

.match-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.match-league {
    font-weight: 700;
    color: var(--color-light-blue);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
}

.match-time-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    background: #09172A;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
}

.match-time-badge.is-live {
    background: rgba(239, 68, 68, 0.25);
    color: #FCA5A5;
}

.match-teams-box {
    margin-bottom: 14px;
}

.match-team-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}

.team-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text-white);
}

.team-score {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-lime);
    font-variant-numeric: tabular-nums;
}

/* Odds Buttons in Match Cards */
.match-odds-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
    margin-top: auto;
}

.odd-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 4px;
    background-color: #0E2344;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    color: var(--color-text-main);
    transition: all var(--trans-fast);
}

.odd-btn:hover {
    background-color: var(--color-lime);
    border-color: var(--color-lime);
    color: var(--color-lime-text);
}

.odd-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--color-text-secondary);
}

.odd-btn:hover .odd-label {
    color: var(--color-lime-text);
}

.odd-val {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
    font-variant-numeric: tabular-nums;
}

.odd-btn:hover .odd-val {
    color: var(--color-lime-text);
}

/* ==========================================================================
   MAIN LAYOUT (Central 65% / Right Sidebar 35%)
   ========================================================================== */
.main-content-section {
    padding: 32px 0 40px;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 68% 32%;
    gap: 28px;
    align-items: start;
}

/* Section Headings */
.col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--color-border);
}

.col-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.col-header-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-light-blue);
}

/* ==========================================================================
   NEWS FEED (Image Left, Title/Snippet Right)
   ========================================================================== */
.news-feed-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 14px;
    align-items: center;
    transition: all var(--trans-fast);
}

.news-card:hover {
    border-color: var(--color-light-blue);
    background-color: var(--color-surface-hover);
    transform: translateX(2px);
}

.news-card-thumb {
    position: relative;
    border-radius: var(--border-radius-sm);
    overflow: hidden;
    height: 120px;
}

.news-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-normal);
}

.news-card:hover .news-card-img {
    transform: scale(1.05);
}

.news-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(10, 25, 47, 0.85);
    color: var(--color-lime);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-card-meta {
    font-size: 12px;
    color: var(--color-text-secondary);
    display: flex;
    gap: 8px;
}

.news-card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
}

.news-card-title a {
    color: var(--color-text-white);
}

.news-card-title a:hover {
    color: var(--color-light-blue);
}

.news-card-snippet {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   EXPERT PREDICTIONS TABLE (Матч | Прогноз | Коэффициент в зеленом блоке)
   ========================================================================== */
.predictions-section {
    margin-bottom: 32px;
}

.predictions-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.predictions-table th {
    background: #09172A;
    color: var(--color-text-secondary);
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.predictions-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--color-border-subtle);
    vertical-align: middle;
}

.predictions-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.pred-match {
    font-weight: 700;
    color: var(--color-text-white);
}

.pred-tournament {
    font-size: 11px;
    color: var(--color-text-secondary);
    display: block;
}

.pred-forecast {
    font-weight: 600;
    color: var(--color-light-blue);
}

.pred-author {
    font-size: 11px;
    color: var(--color-text-muted);
    display: block;
}

/* Odds in bright green block */
.pred-odds-badge {
    display: inline-block;
    background-color: var(--color-lime);
    color: var(--color-lime-text);
    font-weight: 900;
    font-size: 14px;
    padding: 4px 10px;
    border-radius: var(--border-radius-sm);
    font-variant-numeric: tabular-nums;
    text-align: center;
    box-shadow: 0 0 8px rgba(0, 230, 118, 0.25);
}

.pred-btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--color-lime);
    color: var(--color-lime);
    font-size: 12px;
    font-weight: 700;
    border-radius: var(--border-radius-sm);
    transition: all var(--trans-fast);
}

.pred-btn-action:hover {
    background: var(--color-lime);
    color: var(--color-lime-text);
}

/* ==========================================================================
   PROMO CODE WIDGET WITH CLIPBOARD ANIMATION
   ========================================================================== */
.promocode-widget {
    border: 1px solid var(--color-lime);
    border-radius: var(--border-radius);
    padding: 22px;
    margin: 28px 0;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.15);
}

.promo-widget-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--color-lime), var(--color-light-blue));
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
}

.promo-widget-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.promo-badge-pulse {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 230, 118, 0.15);
    color: var(--color-lime);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--border-radius-pill);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--color-lime);
    border-radius: 50%;
    animation: livePulse 1.5s infinite;
}

.promo-geo-badge {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.promo-widget-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.promo-info {
    flex: 1;
}

.promo-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 4px;
}

.promo-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin: 0;
}

.promo-code-box {
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-display {
    background: #071324;
    border: 1px dashed var(--color-lime);
    color: var(--color-lime);
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    letter-spacing: 1px;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--color-text-white);
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    border-radius: var(--border-radius-sm);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-copy-code:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-copy-code.is-copied {
    background: var(--color-lime);
    color: var(--color-lime-text);
    border-color: var(--color-lime);
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

.btn-promo-go {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    padding: 10px 18px;
    border-radius: var(--border-radius-sm);
    font-size: 14px;
    font-weight: 800;
    transition: all var(--trans-fast);
}

.btn-promo-go:hover {
    background: var(--color-lime-hover);
    color: var(--color-lime-text);
    transform: translateY(-1px);
}

.promo-widget-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 14px;
    padding-top: 10px;
    border-top: 1px solid var(--color-border-subtle);
    font-size: 12px;
    color: var(--color-text-secondary);
}

/* ==========================================================================
   SIDEBAR WIDGETS (Right 35%)
   ========================================================================== */
.sidebar-col {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.widget-box {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 18px;
}

.widget-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border);
}

.widget-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-text-white);
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

/* Widget 1: Top Odds List */
.top-odds-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.top-odd-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #0c1f3d;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--border-radius-sm);
    transition: all var(--trans-fast);
}

.top-odd-item:hover {
    border-color: var(--color-lime);
    background: #11284d;
}

.top-odd-info {
    display: flex;
    flex-direction: column;
}

.top-odd-teams {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-text-white);
}

.top-odd-market {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.top-odd-figure {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.odd-highlight {
    font-size: 16px;
    font-weight: 900;
    color: var(--color-lime);
    font-variant-numeric: tabular-nums;
}

.odd-boost-badge {
    font-size: 10px;
    font-weight: 800;
    color: #FBBF24;
}

/* Widget 2: Bookmakers Rating */
.rating-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #0c1f3d;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--border-radius-sm);
    transition: border-color var(--trans-fast);
}

.rating-item.is-lead {
    border-color: var(--color-lime);
    background: #102950;
}

.rating-brand-info {
    display: flex;
    flex-direction: column;
}

.rating-name-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rating-brand-name {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
}

.rating-badge {
    font-size: 10px;
    font-weight: 800;
    background: rgba(0, 230, 118, 0.15);
    color: var(--color-lime);
    padding: 1px 6px;
    border-radius: 3px;
}

.rating-score {
    font-size: 11px;
    color: var(--color-gold);
    font-weight: 700;
}

.rating-bonus {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.rating-btn-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--border-radius-sm);
    transition: all var(--trans-fast);
}

.rating-btn-go:hover {
    background: var(--color-lime-hover);
    color: var(--color-lime-text);
}

/* Widget 3: Poll Block */
.poll-question {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text-white);
    margin-bottom: 12px;
    line-height: 1.35;
}

.poll-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.poll-option-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    background: #0c1f3d;
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 13px;
    color: var(--color-text-main);
    transition: all var(--trans-fast);
}

.poll-option-label:hover {
    border-color: var(--color-light-blue);
}

.poll-option-label input[type="radio"] {
    accent-color: var(--color-lime);
}

.btn-poll-vote {
    margin-top: 8px;
    padding: 9px 14px;
    background: transparent;
    border: 1px solid var(--color-lime);
    color: var(--color-lime);
    font-size: 13px;
    font-weight: 800;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: all var(--trans-fast);
}

.btn-poll-vote:hover {
    background: var(--color-lime);
    color: var(--color-lime-text);
}

.poll-result-bar {
    margin-bottom: 8px;
}

.poll-result-info {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 3px;
}

.poll-track {
    width: 100%;
    height: 6px;
    background: #071324;
    border-radius: 3px;
    overflow: hidden;
}

.poll-fill {
    height: 100%;
    background: var(--color-lime);
    border-radius: 3px;
    transition: width 0.6s ease;
}

.poll-total-count {
    margin-top: 10px;
    font-size: 11px;
    color: var(--color-text-muted);
    text-align: right;
}

/* ==========================================================================
   ARTICLE & EDITORIAL RICH TEXT (.rt, article)
   ========================================================================== */
.article-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--color-border);
}

.article-h1 {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-text-white);
    margin-bottom: 12px;
    line-height: 1.25;
}

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
}

.meta-author-link {
    color: var(--color-light-blue);
    font-weight: 600;
}

/* Rich Text Styles */
.article-body p {
    margin-bottom: 16px;
    color: var(--color-text-main);
    line-height: 1.7;
}

.article-body h2 {
    font-size: 22px;
    margin-top: 32px;
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid var(--color-border-subtle);
}

.article-body h3 {
    font-size: 18px;
    margin-top: 24px;
    margin-bottom: 10px;
    color: var(--color-light-blue);
}

.article-body strong {
    color: var(--color-text-white);
}

.article-body code {
    background: #071324;
    color: var(--color-lime);
    font-family: var(--font-mono);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.editorial-list, .editorial-ordered {
    margin: 16px 0 20px 24px;
    color: var(--color-text-main);
}

.editorial-list li, .editorial-ordered li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.editorial-quote {
    border-left: 3px solid var(--color-lime);
    padding: 12px 18px;
    background: #0c1e3a;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    margin: 20px 0;
    font-size: 15px;
    color: var(--color-text-white);
}

.editorial-rule {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

/* In-text figures and images */
.intext-figure {
    margin: 24px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    background: var(--color-surface-panel);
}

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

.intext-caption {
    padding: 8px 14px;
    font-size: 12px;
    color: var(--color-text-secondary);
    background: #09172A;
    border-top: 1px solid var(--color-border-subtle);
}

/* Data Tables */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.data-table th {
    background: #081528;
    color: var(--color-text-white);
    font-weight: 700;
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.data-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--color-border-subtle);
    color: var(--color-text-main);
}

.data-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.breadcrumbs-nav {
    padding: 14px 0;
    font-size: 13px;
}

.breadcrumbs-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    list-style: none;
}

.breadcrumb-item a {
    color: var(--color-light-blue);
    font-weight: 500;
}

.breadcrumb-sep {
    color: var(--color-text-muted);
}

.breadcrumb-current {
    color: var(--color-text-secondary);
}

/* ==========================================================================
   CARDS GRID (Articles & Country Hub)
   Prompt: на мобильном — 1 колонка, на планшете — 2, на десктопе — 3
   ========================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.article-card {
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--trans-fast), border-color var(--trans-fast);
}

.article-card:hover {
    transform: translateY(-3px);
    border-color: var(--color-light-blue);
}

.article-card-thumb {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #071324;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--trans-normal);
}

.article-card:hover .card-img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 3px;
    text-transform: uppercase;
}

.article-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 8px;
}

.card-meta-row {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.card-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    margin: 0;
}

.card-title a {
    color: var(--color-text-white);
}

.card-title a:hover {
    color: var(--color-light-blue);
}

.card-snippet {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.5;
    flex: 1;
}

.card-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid var(--color-border-subtle);
    margin-top: auto;
}

.card-read-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-light-blue);
}

.card-action-btn {
    padding: 5px 12px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 12px;
    font-weight: 800;
    border-radius: var(--border-radius-sm);
}

/* ==========================================================================
   SIMILAR ARTICLES BLOCK (Похожие статьи)
   ========================================================================== */
.similar-articles-section {
    margin: 40px 0;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
    background-color: #071324;
    border-top: 1px solid var(--color-border);
    padding: 48px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 36px;
}

.footer-brand-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo-link {
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-brand-badge {
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 11px;
    font-weight: 900;
    padding: 2px 6px;
    border-radius: var(--border-radius-sm);
}

.footer-about-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.footer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.trust-pill {
    font-size: 11px;
    font-weight: 700;
    color: var(--color-text-secondary);
    background: #0e2242;
    border: 1px solid var(--color-border-subtle);
    padding: 3px 8px;
    border-radius: var(--border-radius-sm);
}

.footer-column-heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--color-text-white);
    letter-spacing: 0.5px;
    margin-bottom: 14px;
}

.footer-links-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links-list a {
    font-size: 13px;
    color: var(--color-text-secondary);
    transition: color var(--trans-fast);
}

.footer-links-list a:hover {
    color: var(--color-light-blue);
}

/* Disclaimer Warning */
.footer-disclaimer-box {
    background: #09182d;
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.disclaimer-inner {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.disclaimer-svg {
    color: #FBBF24;
    flex-shrink: 0;
    margin-top: 2px;
}

.disclaimer-copy {
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

.footer-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 12px;
    color: var(--color-text-muted);
}

.footer-meta-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-meta-nav a {
    color: var(--color-text-secondary);
}

.footer-meta-nav a:hover {
    color: var(--color-light-blue);
}

.meta-dot {
    color: var(--color-border);
}

/* ==========================================================================
   FIXED STICKY BOTTOM BAR (Prompt Requirement: Button "Забрать бонус" -> /go)
   ========================================================================== */
.sticky-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 995;
    background: #071324;
    border-top: 2px solid var(--color-lime);
    box-shadow: var(--shadow-sticky);
    padding: 10px 0;
}

.sticky-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.sticky-promo-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-gift-icon {
    font-size: 26px;
    line-height: 1;
}

.sticky-text-group {
    display: flex;
    flex-direction: column;
}

.sticky-badge-mini {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-lime);
    letter-spacing: 0.5px;
}

.sticky-promo-title {
    font-size: 14px;
    color: var(--color-text-white);
}

.sticky-promo-title code {
    background: #0f2e5c;
    color: var(--color-lime);
    font-family: var(--font-mono);
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 3px;
}

.btn-sticky-claim {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    background: var(--color-lime);
    color: var(--color-lime-text);
    font-size: 15px;
    font-weight: 900;
    border-radius: var(--border-radius);
    letter-spacing: 0.3px;
    transition: all var(--trans-fast);
    box-shadow: 0 0 14px rgba(0, 230, 118, 0.4);
    white-space: nowrap;
}

.btn-sticky-claim:hover {
    background: var(--color-lime-hover);
    color: var(--color-lime-text);
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 230, 118, 0.6);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-first breakpoints: 320, 375, 425, 768, 1024, 1440)
   Prompt Overflow Safety Rule #6:
   В media queries для мобильных (≤768px): все flex-контейнеры с горизонтальным
   расположением переводи в flex-direction: column.
   ========================================================================== */

/* ≤ 1024px (Laptops & Tablets) */
@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-matches-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ≤ 768px (Tablets & Mobile Landscape) */
@media (max-width: 768px) {
    body {
        padding-bottom: 90px;
    }

    .desktop-navigation {
        display: none;
    }

    .burger-menu-btn {
        display: flex;
    }

    .top-bar-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .hero-h1 {
        font-size: 24px;
    }

    .hero-matches-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .similar-grid {
        grid-template-columns: 1fr;
    }

    .news-card {
        grid-template-columns: 1fr;
    }

    .news-card-thumb {
        height: 160px;
    }

    /* Rule 6: flex-direction: column on horizontal flex containers */
    .promo-widget-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .promo-code-box {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .sticky-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .btn-sticky-claim {
        justify-content: center;
        width: 100%;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .footer-bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* ≤ 425px (Standard Mobile) */
@media (max-width: 425px) {
    .site-container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .hero-h1 {
        font-size: 20px;
    }

    .header-cta-group .btn-header-login {
        display: none;
    }

    .header-cta-group .btn-header-register {
        padding: 7px 12px;
        font-size: 13px;
    }

    .code-display {
        font-size: 15px;
        text-align: center;
    }
}

/* ≤ 375px & 320px (Small Mobile) */
@media (max-width: 375px) {
    .hero-h1 {
        font-size: 18px;
    }
    .match-card {
        padding: 12px;
    }
    .odd-val {
        font-size: 13px;
    }
}
