
/* Imported */
:root {
  --bg: #f3f0e9;
  --paper: #fffdf8;
  --ink: #1e2226;
  --muted: #62686e;
  --line: #d8d2c7;
  --accent: #174f4b;
  --accent-soft: #dfece8;
  --warm: #7b4b2a;
  --max: 1160px;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.66;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; border-radius: var(--radius); }
.wrap { width: min(var(--max), calc(100% - 36px)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(255,253,248,.96); border-bottom: 1px solid var(--line); }
.header-row { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.site-header nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-header nav a { color: var(--ink); text-decoration: none; font-size: .95rem; }
.hero { padding: 72px 0 42px; }
.kicker { text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .78rem; color: var(--warm); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.025em; margin-top: 0; }
h1 { font-size: clamp(2.4rem, 6vw, 5.1rem); max-width: 1000px; margin: 14px 0 26px; }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); margin: 0 0 18px; }
h3 { font-size: 1.15rem; margin: 0 0 14px; }
article section p, article section ul, article section ol, article section dl { margin-top: 0; margin-bottom: 18px; }
article section p:last-child, article section ul:last-child, article section ol:last-child, article section dl:last-child { margin-bottom: 0; }
.lead { font-size: 1.18rem; max-width: 980px; color: #30363b; margin-bottom: 0; }
.hero-grid { display: grid; grid-template-columns: 1.55fr .75fr; gap: 28px; align-items: stretch; margin-top: 36px; }
figure { margin: 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: 10px; }
.summary-box, .facts-card, .check-box { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.summary-box { border-top: 5px solid var(--accent); }
article > section:not(.hero) { padding-top: 44px; padding-bottom: 44px; }
.section-grid { display: grid; grid-template-columns: 1.45fr .65fr; gap: 34px; align-items: start; }
.facts-card dl { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.facts-card dt, .facts-card dd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-card dt { color: var(--muted); }
.facts-card dd { margin: 0; font-weight: 700; text-align: right; }
.wide-figure { margin-top: 26px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; }
.regulation { display: grid; grid-template-columns: 1.4fr .6fr; gap: 34px; background: var(--accent-soft); border-radius: 28px; padding-left: 34px; padding-right: 34px; }
.sources { font-size: .92rem; color: var(--muted); }
.check-box ol { padding-left: 20px; margin-bottom: 0; }
.check-box li + li { margin-top: 10px; }
.reputation { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compact-figure { max-width: 850px; }
.market-context { background: var(--paper); border: 1px solid var(--line); border-radius: 28px; padding-left: 34px; padding-right: 34px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
th, td { text-align: left; padding: 15px; vertical-align: top; border-bottom: 1px solid var(--line); }
th { background: #ece7dc; font-size: .9rem; }
.final-summary { background: #202a2a; color: #f7f4ed; border-radius: 28px; padding-left: 34px; padding-right: 34px; }
.final-summary a { color: #cde7df; }
.faq-preview details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 15px 18px; margin: 0 0 12px; }
.faq-preview details:last-child { margin-bottom: 0; }
.faq-preview summary { cursor: pointer; font-weight: 750; }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; background: var(--paper); }
.footer-grid { display: flex; justify-content: space-between; gap: 28px; padding: 30px 0; color: var(--muted); font-size: .9rem; }
.footer-grid p { max-width: 600px; margin: 0; }
.footer-grid nav { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 820px) {
  .site-header { position: static; }
  .header-row, .footer-grid { align-items: flex-start; flex-direction: column; padding: 14px 0; }
  .hero { padding-top: 46px; }
  .hero-grid, .section-grid, .two-col, .regulation { grid-template-columns: 1fr; }
  .regulation, .market-context, .final-summary { border-radius: 0; width: 100%; padding-left: 20px; padding-right: 20px; }
  .site-header nav { gap: 12px; }
  th, td { padding: 11px; font-size: .9rem; }
}

:root { --bg-main: #1C1917 !important; --color-text: #F5F5F4 !important; --card-bg: #292524 !important; --border-color: #44403C !important; --card-shadow: 0 15px 35px rgba(0,0,0,0.4) !important; --radius: 4px !important; } body { background-color: var(--bg-main) !important; color: var(--color-text) !important; }
html, body { 
    max-width: 100vw !important; 
    overflow-x: hidden !important; 
}

@media (max-width: 768px) {
    /* 1. Снимаем все жесткие ограничения по ширине */
    * {
        max-width: 100vw !important;
        min-width: 0 !important; /* Главный секрет: разрешаем блокам сжиматься! */
        box-sizing: border-box !important;
    }
    
    /* 2. Заставляем все обертки занимать ровно 100% экрана, а не больше */
    body, #page, .site, main, article, section, .content-main, .article-wrapper {
        width: 100% !important;
    }

    /* 3. Добавляем аккуратные отступы, чтобы текст не лип к рамке телефона */
    main {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
    
    /* 4. Жесткий перенос любых длинных слов, чтобы они не распирали блоки */
    p, h1, h2, h3, h4, h5, h6, a, span, li, b, strong {
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        white-space: normal !important;
    }
}
.site-header { background-color: var(--bg-main) !important; border-bottom: 1px solid rgba(128,128,128,0.1) !important; position: sticky; top: 0; z-index: 100; }
.top-navigation-bar { width: 100%; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; justify-content: space-between; }
/* Ограничиваем контент шапки по центру на широких экранах */
.site-header .top-navigation-bar,
.site-header__inner {
    max-width: var(--content-max-width, 1180px) !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}
.site-logo { min-width: 180px; margin: 0; display: flex; align-items: center; }
.site-logo img { max-height: 69px !important; max-width: none !important; width: auto !important; display: block; margin-left: 70px; background: transparent !important; transition: transform 0.2s ease; }
.site-logo img:hover { transform: scale(1.02); }

/* === ЦЕНТРИРОВАНИЕ ХЛЕБНЫХ КРОШЕК === */
#crumbs {
    max-width: var(--content-max-width, 1180px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

@media (max-width: 768px) {
    #crumbs {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }
}

/* Force Burger Menu on all devices, hide old nav completely and hide broken showcase */
.site-nav--desktop, #mobile-menu, .mobile-menu, .mobile-menu-overlay, .mobile-menu__close, .child-pages-showcase { display: none !important; }
.burger { display: flex; flex-direction: column; gap: 6px; background: transparent; border: none; cursor: pointer; padding: 5px; z-index: 1000; margin-left: auto; margin-right: 100px; }
@media (max-width: 768px) { .burger { margin-right: 10px !important; } }
.burger span { display: block; width: 28px; height: 3px; background-color: var(--color-text, #111827) !important; border-radius: 2px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); transform-origin: center; }
.burger.is-active span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger.is-active span:nth-child(2) { opacity: 0; transform: translateX(15px); }
.burger.is-active span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
html.menu-is-open, body.menu-is-open { overflow: hidden !important; overscroll-behavior: none !important; }
.cam-sidebar { overscroll-behavior: contain !important; }

/* ================================================= */
/* 🌟 ПРЕМИАЛЬНОЕ ТЕМНОЕ МЕНЮ (GLASSMORPHISM) 🌟 */
/* ================================================= */
.cam-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 999998; opacity: 0; visibility: hidden; transition: opacity 0.3s ease; }
.cam-overlay.is-active { opacity: 1; visibility: visible; }

.cam-sidebar { position: fixed; top: 0; right: -100%; width: 100%; max-width: 420px; height: 100vh; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-left: 1px solid rgba(255,255,255,0.08); z-index: 999999; overflow-y: auto; transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: -10px 0 40px rgba(0,0,0,0.5); }
.cam-sidebar.is-open { right: 0; }

.cam-header { display: flex; justify-content: space-between; align-items: center; padding: 30px 25px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.cam-header-title { font-size: 16px; font-weight: 800; color: #ffffff; letter-spacing: 2px; }
.cam-close { background: none; border: none; font-size: 36px; line-height: 1; cursor: pointer; color: #ffffff; opacity: 0.6; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; }
.cam-close:hover { opacity: 1; transform: rotate(90deg); background: rgba(255,255,255,0.1); }

.cam-nav { list-style: none; margin: 0; padding: 0; }
.cam-item { border-bottom: 1px solid rgba(255,255,255,0.05); }

.cam-item-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 25px; cursor: pointer; transition: all 0.3s ease; }
.cam-item-header:hover { background: rgba(255,255,255,0.03); padding-left: 32px; }
.cam-item-header a { font-size: 17px; font-weight: 700; color: #f8fafc; text-decoration: none; flex: 1; display: block; letter-spacing: 0.5px; }

.cam-toggle { background: rgba(255,255,255,0.05); border: none; cursor: pointer; padding: 8px; border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: background 0.3s ease; }
.cam-toggle:hover { background: rgba(255,255,255,0.15); }
.cam-toggle svg { width: 12px; height: 8px; transition: transform 0.3s ease; }
.cam-toggle svg path { stroke: #ffffff; stroke-width: 2.5; }
.cam-toggle.is-open svg { transform: rotate(180deg); }

.cam-children { list-style: none; margin: 0; padding: 0; display: none; background: rgba(0,0,0,0.25); border-top: 1px solid rgba(255,255,255,0.03); box-shadow: inset 0 5px 15px rgba(0,0,0,0.1); }
.cam-children.is-open { display: block; animation: slideDown 0.3s ease-out forwards; }

.cam-child-item a { display: flex; padding: 18px 25px; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.02); gap: 18px; align-items: center; transition: all 0.3s ease; }
.cam-child-item a:hover { background: rgba(255,255,255,0.05); padding-left: 32px; }
.cam-child-item img { width: 65px; height: 45px; object-fit: cover; border-radius: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.1); opacity: 0.9; transition: opacity 0.3s ease; }
.cam-child-item a:hover img { opacity: 1; }
.cam-child-text strong { display: block; font-size: 14px; margin-bottom: 5px; color: #ffffff; line-height: 1.3; font-weight: 600; }
.cam-child-text span { display: block; font-size: 13px; color: #94a3b8; line-height: 1.4; }

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

main > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero), main article > *:not([data-content="hero"]):not(.cl-header):not(header):not(.cl-hero) { max-width: var(--content-max-width, 1180px) !important; margin-left: auto !important; margin-right: auto !important; padding-left: 20px !important; padding-right: 20px !important; box-sizing: border-box !important; }
main iframe, main article iframe { max-width: 100% !important; margin-left: auto !important; margin-right: auto !important; transform: none !important; width: 100% !important; }
main h1 { font-size: clamp(2rem, 4vw, 3.5rem) !important; font-weight: 800; margin-top: 30px; margin-bottom: 20px; line-height: 1.2; }
.cl-hero img, .content-article img, img.article-image, img.wp-post-image { max-width: 100%; width: auto; max-height: 600px; height: auto !important; object-fit: contain; border-radius: 8px; display: block; margin: 0 auto; }
@media (max-width: 768px) {
    section table, table { display: block !important; width: 100% !important; max-width: 100vw !important; min-width: 0 !important; overflow-x: auto !important; -webkit-overflow-scrolling: touch !important; }
    table th, table td { min-width: 150px !important; word-wrap: break-word !important; }
}

/* ВОЗВРАТ СТИЛЕЙ КАРТЫ САЙТА */
.sitemap-main { max-width: 900px; margin: 0 auto; padding: 40px 24px; }
.sitemap-title { margin: 0 0 10px; text-align: center; font-size: 32px; font-weight: 800; }
.sitemap-subtitle { margin: 0 0 30px; text-align: center; opacity: 0.75; font-size: 16px; }
.sitemap-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.sitemap-link { display: block; padding: 14px 18px; border: 1px solid rgba(128,128,128,0.2); border-radius: 8px; text-decoration: none; color: var(--color-text); font-weight: 600; transition: all 0.2s ease; background: var(--card-bg); }
.sitemap-link:hover { border-color: rgba(128,128,128,0.5); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,0.05); }

/* ВОЗВРАТ СТИЛЕЙ ФУТЕРА */
.site-footer { padding: 40px 20px; background: var(--card-bg) !important; border-top: 1px solid rgba(128,128,128,0.1) !important; margin-top: 60px; text-align: center; color: var(--color-text) !important; }
.site-footer p, .site-footer span, .site-footer div.wrap { color: var(--color-text) !important; opacity: 0.8 !important; margin-left: auto !important; margin-right: auto !important; line-height: 1.6 !important; }
.footer-menu-list { list-style: none !important; padding: 0 !important; margin: 0 auto 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.footer-menu-list li { margin: 0; padding: 0; }
.footer-menu-list a { text-decoration: none; color: var(--color-text) !important; opacity: 0.7; font-size: 14px; font-weight: 500; transition: all 0.2s; }
.footer-menu-list a:hover { color: var(--color-text) !important; opacity: 1; text-decoration: underline; }
/* ================================================= */
/* КАСТОМНАЯ СЕТКА ДОЧЕРНИХ СТРАНИЦ (MD-GRID) */
/* ================================================= */
.md-child-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 24px !important;
    max-width: 1100px !important;
    margin: 40px auto !important;
    padding: 0 20px !important;
}

@media (max-width: 768px) {
    .md-child-grid { grid-template-columns: 1fr !important; }
}

.md-child-card {
    display: flex !important;
    flex-direction: column !important;
    background: var(--card-bg) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--card-shadow) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    text-decoration: none !important;
    overflow: hidden !important;
    border: 1px solid var(--border-color) !important;
}
.md-child-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.12) !important;
}
.md-child-card-img {
    width: 100% !important;
    height: 180px !important;
    object-fit: cover !important;
    background: rgba(128,128,128,0.1) !important;
}
.md-child-card-content {
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    flex-grow: 1 !important;
}
.md-child-card-title {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: var(--color-text) !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.3 !important;
}
.md-child-card-excerpt {
    font-size: 14px !important;
    color: var(--color-text) !important;
    opacity: 0.8 !important;
    margin: 0 !important;
    line-height: 1.5 !important;
}

@media (max-width: 768px) {
    .site-logo img { 
        margin-left: 0 !important; 
    }
}

/* === КНОПКА «НАВЕРХ» === */
#md-scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(139, 92, 246, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 99999;
}
#md-scroll-top.is-visible {
    opacity: 1;
    visibility: visible;
}
#md-scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(139, 92, 246, 0.6);
}
#md-scroll-top svg {
    width: 22px;
    height: 22px;
    stroke: #ffffff;
    stroke-width: 2.5;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ================================================= */
/* 💎 ПРЕМИАЛЬНЫЙ FAQ АККОРДЕОН (<details> & <summary>) */
/* ================================================= */
details {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius) !important;
    margin-bottom: 16px !important;
    box-shadow: var(--card-shadow) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    overflow: hidden !important;
}

details:hover {
    border-color: rgba(139, 92, 246, 0.4) !important;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-2px) !important;
}

details[open] {
    border-color: rgba(139, 92, 246, 0.5) !important;
    background: rgba(128, 128, 128, 0.02) !important;
}

summary {
    padding: 20px 24px !important;
    font-size: 1.1rem !important;
    font-weight: 700 !important;
    cursor: pointer !important;
    color: var(--color-text, #111827) !important;
    position: relative !important;
    list-style: none !important;
    outline: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    line-height: 1.4 !important;
}

/* Прячем стандартный уродливый маркер браузера */
summary::-webkit-details-marker {
    display: none !important;
}

/* Создаем свою красивую галочку, которая автоматически красится в цвет текста (Light/Dark mode) */
summary::after {
    content: '' !important;
    flex-shrink: 0 !important;
    width: 10px !important;
    height: 10px !important;
    margin-left: 20px !important;
    border-right: 2px solid var(--color-text) !important;
    border-bottom: 2px solid var(--color-text) !important;
    transform: rotate(45deg) !important;
    transition: transform 0.3s ease, opacity 0.3s ease !important;
    opacity: 0.6 !important;
}

/* Анимация переворота галочки при открытии */
details[open] summary::after {
    transform: translateY(-4px) rotate(225deg) !important;
    opacity: 1 !important;
}

/* Стилизация самого ответа */
details p, details .faq-answer {
    padding: 0 24px 24px !important;
    margin: 0 !important;
    color: var(--color-text, #111827) !important;
    opacity: 0.85 !important;
    font-size: 1rem !important;
    line-height: 1.7 !important;
}

/* === ИДЕАЛЬНАЯ АДАПТАЦИЯ ВИТРИН НА МОБИЛКАХ === */
@media (max-width: 768px) {
    /* Главный контейнер карточки витрины */
    .tc-s1-card, .tc-card-1-5 {
        display: flex !important;
        flex-direction: column !important;
        padding: 16px !important;
        box-sizing: border-box !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Превращаем внутренности в вертикальную колонку */
    .tc-s1-cols {
        display: flex !important;
        flex-direction: column !important;
        gap: 14px !important;
        width: 100% !important;
        grid-template-columns: none !important;
        grid-template-areas: none !important;
    }

    /* Все блоки внутри витрины выстраиваем по центру друг за другом */
    .tc-s1-col-logo, 
    .tc-s1-col-offer, 
    .tc-s1-col-reviews, 
    .tc-s1-col {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin: 0 !important;
    }

    /* Логотип казино в витрине */
    .tc-s1-col-logo img {
        max-height: 55px !important;
        width: auto !important;
        object-fit: contain !important;
        margin: 0 auto !important;
    }

    /* Текст оффера (бонусы, проценты) */
    .tc-s1-col-offer {
        font-size: 0.95rem !important;
        line-height: 1.4 !important;
    }

    /* Кнопки действия (Бонус сикерн / Посетить) */
    .tc-s1-col-offer a, .tc-s1-col-offer .btn, .tc-btn {
        width: 100% !important;
        display: block !important;
        text-align: center !important;
        box-sizing: border-box !important;
    }
}

/* === ПОДНИМАЕМ ВИТРИНУ ВЫШЕ НА МОБИЛКАХ === */
@media (max-width: 768px) {
    /* 1. Делаем заголовок H1 компактнее, чтобы он не занимал полэкрана */
    main h1 {
        font-size: 1.6rem !important;
        line-height: 1.25 !important;
        margin-top: 10px !important;
        margin-bottom: 12px !important;
    }

    /* 2. Уплотняем отступы у мета-информации под заголовком (даты, иконки) */
    .content-header, 
    main > p:first-of-type, 
    .post-date, 
    .entry-meta {
        margin-bottom: 10px !important;
        font-size: 0.85rem !important;
    }

    /* 3. Подтягиваем первый блок контента (витрину) ближе к началу */
    .content-main > *:first-child,
    main > *:first-child {
        margin-top: 0 !important;
    }
}

a.brand {
    display: none !important;
}

.content-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
}

.site-main, main, .content-main {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

main > *:first-child,
.content-main > *:first-child,
.site-main > *:first-child {
    margin-top: 0 !important;
    padding-top: 0 !important;
}


/* ================================================= */
/* 🎨 УНИВЕРСАЛЬНЫЙ НОРМАЛИЗАТОР ЦВЕТОВ (АНТИ-ХАРДКОД) */
/* ================================================= */

/* 0. Перехватываем переменные верстальщика и заставляем их работать на нас */
:root {
    --paper: var(--card-bg) !important;
    --accent-soft: var(--card-bg) !important;
    --ink: var(--color-text) !important;
    --line: var(--border-color) !important;
}

/* 1. Принудительно красим текст в цвет темы (лечим невидимый текст на темном фоне) */
.content-main p, .content-main h1, .content-main h2, .content-main h3, 
.content-main h4, .content-main h5, .content-main h6, .content-main li, 
.content-main blockquote, .content-main figcaption, .content-main .lead, 
.content-main .kicker, .content-main strong, .content-main span {
    color: var(--color-text) !important;
}

/* 2. Заставляем все инфо-блоки и таблицы использовать фоны нашей темы (убиваем жесткий белый фон) */
.content-main .wrap, .content-main .summary-box, .content-main .check-box, 
.content-main .regulation, .content-main .box, .content-main .card, 
.content-main .info-box, .content-main aside, .content-main table, 
.content-main th, .content-main td {
    background-color: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    color: var(--color-text) !important;
}

/* 3. Убираем лишние фоны у промежуточных оберток, чтобы они не перекрывали красоту */
.content-main .article-wrapper, .content-main .hero-grid {
    background-color: transparent !important;
}

/* 4. Защищаем внутренний текст карточек от сбоев */
.content-main .summary-box *, .content-main .regulation *, .content-main .check-box *,
.content-main table * {
    color: var(--color-text) !important;
}