/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 */
/* Hallmark Melbet Sportsbook Design System · Target: melbet-express.com */
/* Color Palette: Accent Yellow #FFC400, Dark Charcoal #111214, Surface #222326, Light Gray #F2F3F5, White #FFFFFF, Border #D9DADD */

:root {
    /* Brand Color Tokens */
    --color-accent: #FFC400;           /* Primary Melbet yellow */
    --color-accent-hover: #E0AC00;     /* Darker yellow for hover */
    --color-accent-text: #111214;      /* Deep contrast dark text on yellow */
    --color-dark-bg: #111214;         /* Deep charcoal header and footer */
    --color-surface-dark: #222326;    /* Secondary dark header layer */
    --color-light-bg: #F2F3F5;        /* Light sports portal background */
    --color-white: #FFFFFF;           /* Pure white card backgrounds */
    --color-border: #D9DADD;          /* Subtle clean hairline dividers */
    --color-border-dark: #33353A;     /* Dark theme borders */
    
    /* Typography Tokens */
    --color-text-primary: #202124;    /* High contrast text on light bg */
    --color-text-secondary: #6B6F76;  /* Readable secondary descriptions */
    --color-text-light: #FFFFFF;      /* Text on dark surfaces */
    --color-text-muted-dark: #9E9EA5; /* Secondary text on dark surfaces */

    /* Status & Highlights */
    --color-live-red: #E02424;
    --color-success-green: #0E9F6E;

    /* Fonts (System 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;

    /* Metrics */
    --site-max-width: 1240px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-pill: 9999px;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-card: 0 2px 6px rgba(0,0,0,0.05);
    --shadow-sticky: 0 -4px 16px rgba(0,0,0,0.25);
    --transition: 0.18s ease;
}

/* 1. Global Reset & 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-light-bg);
    color: var(--color-text-primary);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-bottom: 74px; /* Space for fixed bottom bar */
}

/* 2. 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: 16px;
    padding-right: 16px;
    overflow-x: hidden;
}

/* 3. Safety Rule 3:
   Все дочерние элементы CSS Grid обязательно должны иметь min-width: 0. */
.layout-grid > *,
.cards-grid > *,
.footer-grid > *,
.sub-features > *,
.stats-match-row > *,
.two-col-layout > *,
.similar-grid > *,
.layout__main,
.layout__side {
    min-width: 0;
}

/* 4. 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. Safety Rule 5:
   Компоненты на тёмном фоне должны иметь сплошной тёмный background-color, а не полупрозрачный rgba. */
.site-header {
    background-color: var(--color-dark-bg);
}

.primary-nav {
    background-color: var(--color-accent);
}

.hero-feature,
.stats-preview-block,
.promocode-banner,
.sticky-bonus-bar,
.mobile-drawer {
    background-color: var(--color-surface-dark);
}

/* 6. Safety Rule 6:
   В media queries для мобильных (<=768px): flex-контейнеры с горизонтальным расположением переводи в column */
/* См. секцию @media (max-width: 768px) ниже */

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

/* Typography Purity: No italic headers */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4 {
    font-style: normal;
    font-weight: 700;
    color: var(--color-text-primary);
    line-height: 1.25;
    letter-spacing: -0.01em;
}

h1 { font-size: 28px; margin-bottom: 14px; }
h2 { font-size: 22px; margin-top: 30px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-top: 24px; margin-bottom: 10px; }
h4 { font-size: 16px; margin-top: 18px; margin-bottom: 8px; }

p {
    margin-bottom: 14px;
    color: var(--color-text-primary);
}

a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: #b38600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn:active {
    transform: translateY(1px);
}

.btn--login {
    background-color: #2F3136;
    color: #FFFFFF;
    border: 1px solid #3F4248;
}

.btn--login:hover {
    background-color: #3F4248;
    color: #FFFFFF;
}

.btn--register {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
}

.btn--register:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-accent-text);
}

.btn--accent {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
}

.btn--accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-accent-text);
}

.btn--ghost-dark {
    background-color: #25272B;
    color: #FFFFFF;
    border: 1px solid #3A3D44;
}

.btn--ghost-dark:hover {
    background-color: #33363D;
    color: #FFFFFF;
}

.btn--bonus {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    padding: 10px 22px;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(255, 196, 0, 0.3);
}

.btn--bonus:hover {
    background-color: var(--color-accent-hover);
}

.btn--full {
    width: 100%;
}

/* HEADER COMPACT SPORTSBOOK STYLE */
.site-header {
    width: 100%;
    border-bottom: 1px solid #202226;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    gap: 16px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.logo-img {
    height: 30px;
    width: auto;
    display: block;
}

.logo-badge {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.header-search {
    flex: 1;
    max-width: 380px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-ico {
    position: absolute;
    left: 12px;
    color: var(--color-text-muted-dark);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 36px;
    background-color: #1F2124;
    border: 1px solid #31343B;
    border-radius: var(--radius-sm);
    padding: 0 12px 0 36px;
    color: #FFFFFF;
    font-size: 13px;
    outline: none;
    transition: border-color var(--transition);
}

.search-input:focus {
    border-color: var(--color-accent);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.country-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background-color: #1F2124;
    border: 1px solid #31343B;
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 600;
}

.country-pill:hover {
    color: var(--color-accent);
}

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

.burger-line {
    width: 100%;
    height: 2px;
    background-color: #FFFFFF;
    border-radius: 1px;
    transition: transform var(--transition), opacity var(--transition);
}

/* PRIMARY YELLOW NAVIGATION BAR */
.primary-nav {
    height: 40px;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
}

.primary-nav::-webkit-scrollbar {
    display: none;
}

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

.nav-link {
    display: block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 700;
    color: #111214;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.is-active {
    background-color: #111214;
    color: #FFFFFF;
}

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

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

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

.breadcrumb-item a:hover {
    color: var(--color-text-primary);
    text-decoration: underline;
}

.breadcrumb-sep {
    color: #A0A4A8;
}

.breadcrumb-current {
    color: var(--color-text-primary);
    font-weight: 600;
}

/* HERO SECTION (FEATURED STORY) */
.hero-feature {
    color: #FFFFFF;
    border-radius: var(--radius-md);
    padding: 28px;
    margin: 16px 0 24px;
    border: 1px solid #33363D;
}

.hero-feature__in {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 28px;
    align-items: center;
}

.hero-feature__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-accent);
    margin-bottom: 12px;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--color-accent);
    box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.7);
    animation: pulse 1.8s infinite;
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 196, 0, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(255, 196, 0, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(255, 196, 0, 0); }
}

.hero-feature__title {
    font-size: 32px;
    color: #FFFFFF;
    line-height: 1.2;
    margin-bottom: 14px;
}

.hero-feature__lead {
    font-size: 15px;
    color: #D1D5DB;
    line-height: 1.5;
    margin-bottom: 22px;
}

.hero-feature__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-feature__visual {
    position: relative;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid #3F4248;
}

.hero-feature__img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

/* SUB-FEATURES GRID */
.sub-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.sub-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.sub-card:hover {
    transform: translateY(-2px);
    border-color: #B5B7BD;
    box-shadow: var(--shadow-card);
}

.sub-card__tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    color: #8C6500;
    background-color: #FFF8E1;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.sub-card__title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text-primary);
}

.sub-card__desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
}

.sub-card__more {
    font-size: 13px;
    font-weight: 700;
    color: #111214;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* MAIN TWO-COLUMN SPORTS LAYOUT */
.two-col-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 24px;
    margin-bottom: 32px;
}

.layout__main {
    min-width: 0;
}

.layout__side {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* SIDEBAR WIDGETS */
.widget-box {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 18px;
}

.widget-box--dark {
    background-color: var(--color-surface-dark);
    border-color: #33363D;
    color: #FFFFFF;
}

.widget-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 2px solid var(--color-accent);
    padding-bottom: 8px;
}

.widget-title--light {
    color: #FFFFFF;
}

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

.quick-link-item a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    color: var(--color-text-primary);
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    background-color: var(--color-light-bg);
    transition: background-color var(--transition);
}

.quick-link-item a:hover {
    background-color: #E2E4E8;
    color: #000000;
}

/* STATS DATA TABLE (SPORTSBOOK IDENTITY) */
.stats-preview-block {
    border-radius: var(--radius-md);
    border: 1px solid #33363D;
    color: #FFFFFF;
    margin: 20px 0;
    overflow: hidden;
}

.stats-header-bar {
    background-color: #17181C;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2B2D33;
}

.stats-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-live-red);
    color: #FFFFFF;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.stats-subtitle {
    font-size: 12px;
    color: #9E9EA5;
}

.stats-legend {
    display: flex;
    gap: 30px;
    font-size: 11px;
    font-weight: 700;
    color: #9E9EA5;
    padding-right: 18px;
}

.stats-match-list {
    display: flex;
    flex-direction: column;
}

.stats-match-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #2B2D33;
    gap: 12px;
}

.stats-match-row:last-child {
    border-bottom: none;
}

.match-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.match-league {
    font-size: 11px;
    color: #A0A4A8;
}

.match-teams {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.match-odds {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.odd-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    padding: 4px 6px;
    background-color: #2D3036;
    border: 1px solid #3F434C;
    border-radius: var(--radius-sm);
    color: #FFFFFF;
    transition: background-color var(--transition), border-color var(--transition);
}

.odd-pill span {
    font-size: 10px;
    color: #9E9EA5;
}

.odd-pill strong {
    font-size: 13px;
    font-weight: 800;
    color: var(--color-accent);
}

.odd-pill:hover {
    background-color: #3B3F47;
    border-color: var(--color-accent);
}

/* ARTICLES LIST & CARDS */
/* ТЗ: Карточки статей: на мобильном — 1 колонка, на планшете — 2, на десктопе — 3 */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 20px 0;
}

.article-card {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.article-card:hover {
    transform: translateY(-2px);
    border-color: #B5B7BD;
    box-shadow: var(--shadow-card);
}

.article-card__thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background-color: #222326;
    overflow: hidden;
}

.article-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.article-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 10px;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
}

.article-card__body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.article-card__title {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 8px;
    color: var(--color-text-primary);
}

.article-card__desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.45;
    margin-bottom: 14px;
    flex: 1;
}

.article-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #8C9098;
    border-top: 1px solid var(--color-border);
    padding-top: 10px;
}

/* PROMOCODE BANNER WITH COPY ANIMATION */
.promocode-banner {
    border-radius: var(--radius-md);
    border: 1px solid #33363D;
    color: #FFFFFF;
    padding: 24px;
    margin: 24px 0;
}

.promocode-banner__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    color: var(--color-accent);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--color-accent);
}

.promocode-banner__title {
    font-size: 22px;
    color: #FFFFFF;
    margin-bottom: 8px;
}

.promocode-banner__desc {
    font-size: 14px;
    color: #C0C3CB;
    margin-bottom: 16px;
}

.promocode-banner__action {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.promocode-box {
    display: inline-flex;
    align-items: center;
    background-color: #111214;
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 4px 6px 4px 14px;
    gap: 12px;
}

.promocode-value {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 800;
    color: var(--color-accent);
    letter-spacing: 0.1em;
}

.btn-copy-code {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #2F3136;
    color: #FFFFFF;
    border: 1px solid #44474E;
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color var(--transition), border-color var(--transition);
}

.btn-copy-code:hover {
    background-color: #3F424A;
    border-color: #555963;
}

.btn-copy-code.is-copied {
    background-color: var(--color-success-green);
    border-color: var(--color-success-green);
    color: #FFFFFF;
    animation: bounce 0.4s ease;
}

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

/* RICH TEXT ARTICLE CONTENT (.rt, article) */
.article-page-wrap {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 28px;
    margin-bottom: 24px;
}

.article-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 18px;
    margin-bottom: 20px;
}

.article-header__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 10px;
}

.article-header__badge {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: var(--radius-sm);
}

.article-hero-img-wrap {
    margin: 18px 0 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--color-border);
}

.article-hero-img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.intext-figure {
    margin: 22px 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    background-color: #F8F9FA;
}

.intext-img {
    width: 100%;
    height: auto;
    display: block;
}

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

.editorial-list,
.editorial-ordered {
    margin: 14px 0 18px 24px;
    color: var(--color-text-primary);
}

.editorial-list li,
.editorial-ordered li {
    margin-bottom: 6px;
    padding-left: 4px;
}

.editorial-quote {
    border-left: 4px solid var(--color-accent);
    padding: 12px 18px;
    background-color: #F8F9FA;
    margin: 18px 0;
    font-style: normal;
    color: var(--color-text-primary);
}

.editorial-rule {
    border: none;
    height: 1px;
    background-color: var(--color-border);
    margin: 24px 0;
}

/* DATA TABLES (SPORTSBOOK DATA) */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

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

.data-table th {
    background-color: #F8F9FA;
    font-weight: 700;
    color: var(--color-text-primary);
}

.data-table tr:hover td {
    background-color: #F4F5F7;
}

/* SIMILAR ARTICLES BLOCK */
.similar-articles-section {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 18px;
    background-color: var(--color-accent);
    border-radius: 2px;
}

.similar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.similar-card {
    background-color: #FFFFFF;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform var(--transition), border-color var(--transition);
}

.similar-card:hover {
    transform: translateY(-2px);
    border-color: #A0A4A8;
}

.similar-card__title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.35;
}

.similar-card__time {
    font-size: 11px;
    color: #8C9098;
}

/* FOOTER */
.site-footer {
    background-color: var(--color-dark-bg);
    color: #FFFFFF;
    border-top: 1px solid #202226;
    padding: 40px 0 24px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 28px;
    margin-bottom: 28px;
}

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

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.footer-desc {
    font-size: 13px;
    color: #9E9EA5;
    line-height: 1.5;
}

.footer-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-age,
.badge-safe,
.badge-fair {
    display: inline-block;
    padding: 2px 7px;
    font-size: 11px;
    font-weight: 700;
    border-radius: var(--radius-sm);
    background-color: #1F2124;
    border: 1px solid #33363D;
    color: #D1D5DB;
}

.badge-age {
    border-color: var(--color-live-red);
    color: #F87171;
}

.footer-title {
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-left: 3px solid var(--color-accent);
    padding-left: 8px;
}

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

.footer-links a {
    color: #9E9EA5;
    font-size: 13px;
}

.footer-links a:hover {
    color: var(--color-accent);
}

.footer-disclaimer {
    border-top: 1px solid #222326;
    padding: 16px 0;
    font-size: 12px;
    color: #7A7C85;
    line-height: 1.5;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid #222326;
    padding-top: 16px;
    font-size: 12px;
    color: #7A7C85;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-legal-links {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-legal-links a {
    color: #9E9EA5;
}

.footer-legal-links a:hover {
    color: var(--color-accent);
}

/* STICKY BOTTOM BONUS BAR */
.sticky-bonus-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-surface-dark);
    border-top: 2px solid var(--color-accent);
    box-shadow: var(--shadow-sticky);
    z-index: 99;
    padding: 10px 0;
}

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

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

.sticky-bonus-tag {
    background-color: var(--color-accent);
    color: var(--color-accent-text);
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.05em;
}

.sticky-bonus-text {
    display: flex;
    flex-direction: column;
    color: #FFFFFF;
    font-size: 13px;
}

.sticky-bonus-text strong {
    font-size: 15px;
    color: #FFFFFF;
}

.sticky-bonus-text span {
    color: #A0A4A8;
}

/* MOBILE DRAWER NAVIGATION */
.mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(3px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition), visibility var(--transition);
}

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

.mobile-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 82%;
    max-width: 320px;
    height: 100%;
    background-color: #17181C;
    z-index: 1001;
    transform: translateX(100%);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.mobile-drawer.is-open {
    transform: translateX(0);
}

.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.drawer-close {
    background: transparent;
    border: none;
    color: #FFFFFF;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.drawer-cta-row {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

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

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

.drawer-link:hover {
    background-color: #25272B;
    color: var(--color-accent);
}

.drawer-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid #2B2D33;
    display: flex;
    gap: 12px;
}

.drawer-sublink {
    font-size: 12px;
    color: #8C9098;
}

.drawer-sublink:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (Mobile-first breakpoints per TZ)
   Breakpoints: 320px, 375px, 425px, 768px, 1024px, 1440px
   ========================================================================== */

/* 1024px: Tablets Landscape & Small Desktops */
@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    .similar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 768px: Tablets Portrait & Large Phones */
@media (max-width: 768px) {
    /* Safety Rule 6:
       В media queries для мобильных (<=768px): все flex-контейнеры с горизонтальным расположением,
       у которых контент может не вмещаться, переводи в flex-direction: column */
    .header-top {
        height: 52px;
    }
    
    .header-search {
        display: none; /* Collapsed on mobile, burger menu used */
    }

    .burger-btn {
        display: flex;
    }

    .header-actions .btn--login,
    .header-actions .btn--register {
        padding: 6px 12px;
        font-size: 13px;
    }

    .hero-feature {
        padding: 20px;
    }

    .hero-feature__in {
        grid-template-columns: 1fr;
        gap: 18px;
    }

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

    .hero-feature__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-feature__actions .btn {
        width: 100%;
    }

    .sub-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .promocode-banner__action {
        flex-direction: column;
        align-items: stretch;
    }

    .promocode-box {
        justify-content: space-between;
    }

    .promocode-banner__action .btn {
        width: 100%;
    }

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

    .stats-legend {
        display: none;
    }

    .stats-match-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .match-odds {
        width: 100%;
        justify-content: space-between;
    }

    .odd-pill {
        flex: 1;
    }

    .sticky-bonus-content {
        flex-direction: row;
        align-items: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 425px & Small Mobile: 1 Column Cards per TZ */
@media (max-width: 425px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }

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

    .header-actions .btn--login {
        display: none; /* Keep register and burger on smallest screens */
    }

    .sticky-bonus-info .sticky-bonus-text span {
        display: none;
    }

    .sticky-bonus-tag {
        display: none;
    }

    .article-page-wrap {
        padding: 16px;
    }

    h1 { font-size: 22px; }
    h2 { font-size: 19px; }
    h3 { font-size: 17px; }
}

/* 320px: Minimum Supported Viewport */
@media (max-width: 320px) {
    .site-container {
        padding-left: 10px;
        padding-right: 10px;
    }

    .logo-img {
        height: 24px;
    }

    .header-actions .btn--register {
        padding: 5px 8px;
        font-size: 12px;
    }

    .btn--bonus {
        padding: 8px 12px;
        font-size: 13px;
    }
}
