/* ========== LAYOUT v9 — COMPACT DASHBOARD ========== */
body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    background: #8B6F47 !important;
    color: #F5E6D3 !important;
    line-height: 1.55 !important;
    font-size: 14px !important;
}

.wrap {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Фон страницы — минимальный */
.page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    background: #8B6F47;
    opacity: 1;
}

.skip-to-content {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}
.skip-to-content:focus {
    position: fixed;
    left: 12px;
    top: 12px;
    width: auto;
    height: auto;
    padding: 10px 16px;
    background: #D4A574;
    color: #fff;
    z-index: 99999;
    border-radius: 6px;
}

/* Верхняя полоса — компактная */
.top-strip {
    background: #5C4A37;
    padding: 4px 0;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.top-strip__text {
    font-size: 11px;
    color: rgba(255,255,255,0.85);
    margin-right: 8px;
}
.top-strip__link {
    color: #D4A574;
    font-weight: 600;
    text-decoration: none;
}
.top-strip__link:hover {
    text-decoration: underline;
}

/* Шапка */
.masthead {
    position: sticky;
    top: 0;
    z-index: 300;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: box-shadow 0.2s ease;
}
.masthead.is-scrolled {
    box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}
.masthead__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 52px;
}
.masthead__brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.masthead__logo {
    height: 32px;
    width: auto;
    object-fit: contain;
}
.masthead__nav {
    flex: 1;
    display: flex;
    justify-content: center;
}
.menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0;
}
.menu__i { margin: 0; }
.menu__a {
    display: inline-block;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.menu__a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}
.menu__a.is-current {
    color: #D4A574;
    background: rgba(14, 165, 233, 0.12);
}
.masthead__actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}
/* Минимальная шапка: меню только в бургере */
.masthead--minimal .masthead__nav { display: none !important; }
.masthead__toggler {
    display: flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 6px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, border-color 0.2s;
}
.masthead__toggler:hover {
    background: rgba(255,255,255,0.1);
    border-color: #D4A574;
}
.masthead__toggler-bar {
    display: block;
    width: 16px;
    height: 1.5px;
    background: currentColor;
    border-radius: 1px;
    transition: transform 0.25s ease;
}
.masthead__toggler.is-open .masthead__toggler-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.masthead__toggler.is-open .masthead__toggler-bar:nth-child(2) {
    opacity: 0;
}
.masthead__toggler.is-open .masthead__toggler-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Боковая панель (бургер-меню) — слева */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    z-index: 350;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.sidebar-overlay.is-open {
    opacity: 1;
    visibility: visible;
}
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 400;
    width: min(320px, 85vw);
    background: #5C4A37;
    border-right: 1px solid rgba(255,255,255,0.08);
    box-shadow: 8px 0 40px rgba(0,0,0,0.4);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}
.sidebar.is-open {
    transform: translateX(0);
}
.sidebar__inner {
    padding: 16px 14px 20px;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}
.sidebar__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.sidebar__close:hover {
    background: rgba(255,255,255,0.12);
    color: #D4A574;
}
.sidebar__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 48px;
    margin-bottom: 24px;
}
.sidebar__link {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}
.sidebar__link:hover {
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.sidebar__link.is-current {
    background: rgba(14, 165, 233, 0.15);
    color: #D4A574;
}
.sidebar__cta {
    margin-top: auto;
    padding-top: 20px;
}

/* Кнопки — компактные */
.bttn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
    border-radius: 6px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bttn--main {
    background: #D4A574;
    color: #fff;
}
.bttn--main:hover {
    filter: brightness(1.15);
    color: #fff;
}
.bttn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.9);
    border-color: rgba(255,255,255,0.25);
}
.bttn--ghost:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.4);
}
.bttn--lg {
    padding: 8px 20px;
    font-size: 13px;
}
.bttn--full {
    width: 100%;
}
.bttn__badge {
    font-style: normal;
    opacity: 0.95;
}

/* Основной контент — компактные отступы */
.page {
    padding: 16px 0 32px;
}
.entry__head {
    margin-bottom: 16px;
}
.entry__title {
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    margin: 0 0 12px;
    letter-spacing: -0.02em;
}

/* Lead-блок (компактный) */
.lead {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: center;
    background: #5C4A37;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.06);
}
.lead__media {
    order: 0;
}
.lead__img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.08);
}
.lead__body {
    order: 1;
}
.lead__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #D4A574;
    margin-bottom: 8px;
}
.lead__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    margin: 0 0 12px;
    line-height: 1.5;
}
.lead__stats {
    display: flex;
    gap: 20px;
    margin: 0 0 16px;
    padding: 0;
    list-style: none;
}
.lead__stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.lead__stat-n {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
    margin: 0;
}
.lead__stat-v {
    font-size: 22px;
    font-weight: 700;
    color: #D4A574;
    margin: 0;
}
.lead__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}
@media (max-width: 768px) {
    .lead {
        grid-template-columns: 1fr;
        padding: 16px;
    }
    .lead__media { order: -1; }
}

/* Динамическая лента слотов — компактная */
.slot-feed {
    margin: 16px 0 20px;
    padding: 12px 0;
    overflow: hidden;
}
.slot-feed__title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}
.slot-feed__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 8px 0 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}
.slot-feed__track::-webkit-scrollbar { height: 8px; }
.slot-feed__track::-webkit-scrollbar-track { background: rgba(255,255,255,0.06); border-radius: 4px; }
.slot-feed__track::-webkit-scrollbar-thumb { background: #D4A574; border-radius: 4px; }
.slot-feed__item {
    flex: 0 0 auto;
    width: 130px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px;
    background: #5C4A37;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.slot-feed__item:hover {
    transform: translateY(-2px);
    border-color: #D4A574;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.slot-feed__thumb {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0,0,0,0.2);
    flex-shrink: 0;
}
.slot-feed__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.slot-feed__name {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}
.slot-feed__stat {
    font-size: 10px;
    color: rgba(255,255,255,0.6);
}
.slot-feed__stat strong {
    color: #D4A574;
    font-weight: 700;
}
.slot-feed__stat--rtp strong { color: #22c55e; }
.slot-feed__live { transition: opacity 0.3s; }

/* Bento-сетка — компактная с боковыми блоками */
.entry__body--bento {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 12px;
    align-items: start;
}
.entry__body--bento > * { grid-column: 1 / -1; }
/* Desktop: текст занимает 8 колонок, боковые блоки — 4 */
@media (min-width: 1024px) {
    .entry__body--bento > .highlights {
        grid-column: span 5;
        margin: 0;
    }
    .entry__body--bento > .action-box {
        grid-column: span 4;
        margin: 0;
        position: sticky;
        top: 80px;
    }
    .entry__body--bento > .crosslinks {
        grid-column: span 3;
        margin: 0;
    }
    .entry__body--bento > .action-box:last-of-type {
        grid-column: span 4;
    }
    .entry__body--bento > .entry__meta {
        grid-column: span 8;
    }
}
@media (max-width: 1023px) {
    .entry__body--bento > .highlights,
    .entry__body--bento > .action-box,
    .entry__body--bento > .crosslinks,
    .entry__body--bento > .action-box:last-of-type { grid-column: 1 / -1; }
}
/* Desktop multi-column для текстового контента внутри bento */
@media (min-width: 1024px) {
    .entry__body--bento > div:not(.highlights):not(.action-box):not(.crosslinks):not(.entry__meta):not(section):not(footer) {
        column-count: 2;
        column-gap: 24px;
        column-rule: 1px solid rgba(255,255,255,0.06);
    }
}

/* Блоки с выпадающим описанием при наведении */
.block-hover-pop {
    position: relative;
}
.block-popover {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%) translateY(-8px);
    margin-bottom: 4px;
    padding: 10px 14px;
    font-size: 13px;
    color: #fff;
    background: #5C4A37;
    border: 1px solid #D4A574;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 50;
    pointer-events: none;
}
.block-popover::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border: 6px solid transparent;
    border-top-color: #D4A574;
}
.block-popover.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* Action-box — компактный CTA */
.action-box {
    background: #5C4A37;
    border-radius: 8px;
    padding: 16px 20px;
    border: 1px solid rgba(255,255,255,0.06);
    text-align: center;
}
.action-box__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #fff;
    text-transform: capitalize;
}
.action-box__text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0 0 12px;
}
.action-box__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

/* Highlights — компактные */
.highlights {
    margin: 16px 0;
    padding: 16px 20px;
    background: #5C4A37;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.06);
}
.highlights__title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 10px;
    color: #fff;
    text-transform: capitalize;
}
.highlights__list {
    margin: 0;
    padding-left: 20px;
    color: rgba(255,255,255,0.85);
    line-height: 1.55;
    font-size: 13px;
}
.highlights__item {
    margin-bottom: 4px;
}

/* Entry meta */
.entry__meta {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.entry__updated {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 0;
}

/* Crosslinks — компактные */
.crosslinks {
    margin: 12px 0;
}
.crosslinks__title {
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 8px;
    color: #fff;
    text-transform: capitalize;
}
.crosslinks__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.crosslinks__nav a {
    color: #D4A574;
    text-decoration: none;
    font-size: 12px;
    padding: 4px 10px;
    background: rgba(14, 165, 233, 0.1);
    border-radius: 6px;
}
.crosslinks__nav a:hover {
    background: rgba(14, 165, 233, 0.2);
}

/* Контент статьи — компактный, не вылезает за края */
.entry__body {
    font-size: 14px;
    line-height: 1.6;
    max-width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.entry__body h2 {
    font-size: 18px;
    font-weight: 700;
    margin: 1.2em 0 0.4em;
    color: #fff;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-transform: capitalize;
}
.entry__body h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 1em 0 0.3em;
    color: rgba(255,255,255,0.95);
    text-transform: capitalize;
}
/* Таблицы и медиа не вылезают */
.entry__body table { max-width: 100%; overflow-x: auto; display: block; }
.entry__body img { max-width: 100%; height: auto; }
.entry__body pre { max-width: 100%; overflow-x: auto; }
.entry__body iframe { max-width: 100%; }
.entry__body p {
    margin: 0 0 0.6em;
    color: rgba(255,255,255,0.85);
}
.entry__body ul,
.entry__body ol {
    margin: 0.5em 0;
    padding-left: 2em;
    color: rgba(255,255,255,0.85);
}
.compact-section ul,
.compact-section ol {
    padding-left: 2em;
    margin: 0.4em 0;
}
.compact-section li,
.entry__body li {
    padding-left: 0.3em;
    margin-bottom: 0.25em;
}
.entry__body a {
    color: #D4A574;
    text-decoration: none;
}
.entry__body a:hover {
    text-decoration: underline;
}
/* Desktop: multi-column для текстового контента */
@media (min-width: 1024px) {
    .entry__body--bento {
        column-gap: 20px;
    }
}

/* Хлебные крошки — компактные */
.path {
    margin-bottom: 8px;
    padding: 6px 0;
}
.path__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
}
.path__i {
    margin: 0;
}
.path__a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
}
.path__a:hover {
    color: #D4A574;
}
.path__sep {
    color: rgba(255,255,255,0.35);
    margin: 0;
}
.path__i--current span {
    color: rgba(255,255,255,0.9);
}

/* Footer — компактный */
.page-foot {
    background: #5C4A37;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 24px 0 16px;
    margin-top: 24px;
}
.page-foot__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
}
.keywords-row {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.keywords-row__title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.6);
    margin: 0 0 10px;
}
.keywords-row__list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.keywords-row__link {
    display: inline-block;
    padding: 3px 10px;
    font-size: 11px;
    color: rgba(255,255,255,0.8);
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.keywords-row__link:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}
.keywords-row__link--m { font-size: 12px; }
.keywords-row__link--l { font-size: 13px; padding: 4px 12px; }
.page-foot__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}
.page-foot__col-title {
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    margin: 0 0 6px;
}
.page-foot__col-text {
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.45;
}
.page-foot__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.page-foot__nav-a {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
}
.page-foot__nav-a:hover,
.page-foot__nav-a.is-current {
    color: #D4A574;
}
.page-foot__social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.page-foot__social-a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
}
.page-foot__social-a:hover {
    color: #D4A574;
}
.page-foot__meta-a {
    display: block;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    margin-bottom: 4px;
}
.page-foot__meta-a:hover {
    color: #D4A574;
}
.page-foot__bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.page-foot__brand {
    font-weight: 600;
    color: #fff;
    font-size: 14px;
}
.page-foot__brand-alt {
    color: rgba(255,255,255,0.6);
    font-size: 11px;
}
.page-foot__copy,
.page-foot__notice {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    margin: 4px 0 0;
}
.page-foot__badges {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 10px;
    color: rgba(255,255,255,0.4);
}

/* Всплывающее предложение — компактное */
.floating-offer {
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 350;
    padding: 12px 16px;
    background: #5C4A37;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.3s, visibility 0.3s;
    max-width: 240px;
}
.floating-offer.is-visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}
.floating-offer__close {
    position: absolute;
    top: 4px;
    right: 6px;
    width: 24px;
    height: 24px;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255,255,255,0.6);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.floating-offer__close:hover {
    color: #fff;
}
.floating-offer__inner {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 20px;
}
.floating-offer__value {
    font-size: 18px;
    font-weight: 800;
    color: #D4A574;
}
.floating-offer__caption {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
}

/* Совместимость: старые классы — компактный стиль */
.entry__body .glass-card,
.entry__body .info-block,
.entry__body .cta-block {
    background: #5C4A37 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
    padding: 12px 16px !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    margin: 8px 0 !important;
    font-size: 13px !important;
}
.entry__body .slot-card {
    background: #5C4A37 !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-radius: 8px !important;
}
.entry__body .btn,
.entry__body .bttn {
    border-radius: 6px !important;
    font-size: 12px !important;
    padding: 6px 14px !important;
}
.entry__body .gradient-text {
    background: none !important;
    color: #fff !important;
}
.entry__body .lead-summary {
    background: rgba(255,255,255,0.04) !important;
    border-left: 3px solid #D4A574 !important;
    padding: 10px 14px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
}
/* Дополнительная компактность для desktop — блоки сжаты */
@media (min-width: 1024px) {
    .entry__body .glass-card,
    .entry__body .info-block,
    .entry__body .cta-block {
        break-inside: avoid;
    }
}

/* ===== 2-column page grid: main + sidebar ===== */
.page-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
@media (min-width: 1100px) {
    .page-grid {
        grid-template-columns: 1fr 300px;
        gap: 20px;
    }
}
.page-grid__main {
    min-width: 0;
}
.page-sidebar {
    display: none;
}
@media (min-width: 1100px) {
    .page-sidebar {
        display: flex;
        flex-direction: column;
        gap: 12px;
        position: sticky;
        top: 64px;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding-right: 4px;
        align-self: start;
    }
    .page-sidebar::-webkit-scrollbar { width: 4px; }
    .page-sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 4px; }
}

/* --- Sidebar panels (sb-panel) --- */
.sb-panel {
    background: #5C4A37;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    padding: 12px;
}
.sb-panel__title {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* --- Ratings panel --- */
.sb-ratings__avg {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}
.sb-ratings__score {
    font-size: 28px;
    font-weight: 800;
    color: #D4A574;
    line-height: 1;
}
.sb-ratings__stars { font-size: 12px; }
.sb-ratings__count { font-size: 11px; color: rgba(255,255,255,0.5); width: 100%; }
.sb-ratings__list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.sb-ratings__row { display: flex; align-items: center; gap: 6px; }
.sb-ratings__label { font-size: 11px; color: rgba(255,255,255,0.7); width: 90px; flex-shrink: 0; }
.sb-ratings__bar {
    flex: 1;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px;
    overflow: hidden;
}
.sb-ratings__fill {
    height: 100%;
    background: #D4A574;
    border-radius: 3px;
    transition: width 1s ease;
}
.sb-ratings__val { font-size: 11px; font-weight: 700; color: #D4A574; width: 24px; text-align: right; flex-shrink: 0; }
.sb-ratings__online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    padding-top: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.sb-ratings__dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: sb-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes sb-pulse {
    0%,100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* --- Reviews panel --- */
.sb-reviews__track {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 340px;
    overflow-y: auto;
}
.sb-reviews__track::-webkit-scrollbar { width: 3px; }
.sb-reviews__track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.sb-review {
    display: none;
    padding: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 6px;
    border: 1px solid rgba(255,255,255,0.04);
    animation: sb-fadeIn 0.3s ease;
}
.sb-review.is-visible { display: block; }
@keyframes sb-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sb-review__head {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.sb-review__avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #D4A574;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}
.sb-review__info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.sb-review__info strong { font-size: 12px; color: #fff; }
.sb-review__info small { font-size: 10px; color: rgba(255,255,255,0.4); }
.sb-review__stars { font-size: 10px; flex-shrink: 0; }
.sb-review__text { font-size: 12px; color: rgba(255,255,255,0.75); line-height: 1.45; margin: 0; }
.sb-reviews__more {
    width: 100%;
    margin-top: 6px;
    padding: 6px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 4px;
    color: #D4A574;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}
.sb-reviews__more:hover { background: rgba(255,255,255,0.08); }

/* --- Chat panel --- */
.sb-chat__messages {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 260px;
    overflow-y: auto;
    margin-bottom: 8px;
    padding-right: 2px;
}
.sb-chat__messages::-webkit-scrollbar { width: 3px; }
.sb-chat__messages::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
.sb-chat__msg {
    padding: 6px 8px;
    border-radius: 6px;
    max-width: 90%;
    animation: sb-fadeIn 0.2s ease;
}
.sb-chat__msg--admin {
    background: rgba(255,255,255,0.06);
    align-self: flex-start;
}
.sb-chat__msg--user {
    background: rgba(212,165,116, 0.2);
    align-self: flex-end;
}
.sb-chat__sender { font-size: 10px; font-weight: 700; color: #D4A574; display: block; margin-bottom: 2px; }
.sb-chat__msg p { font-size: 12px; color: rgba(255,255,255,0.85); line-height: 1.4; margin: 0; }
.sb-chat__msg time { font-size: 9px; color: rgba(255,255,255,0.3); display: block; text-align: right; margin-top: 2px; }
.sb-chat__form {
    display: flex;
    gap: 4px;
}
.sb-chat__input {
    flex: 1;
    padding: 6px 10px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    color: #fff;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s;
}
.sb-chat__input:focus { border-color: #D4A574; }
.sb-chat__input::placeholder { color: rgba(255,255,255,0.3); }
.sb-chat__send {
    width: 32px;
    height: 32px;
    background: #D4A574;
    border: none;
    border-radius: 6px;
    color: #000;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.15s;
    flex-shrink: 0;
}
.sb-chat__send:hover { filter: brightness(1.15); }

/* Сворачиваемые секции (compact-section) */
.compact-section {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px;
    background: #5C4A37;
    margin: 8px 0;
    overflow: hidden;
    /* Не вылезает за края */
    max-width: 100%;
    box-sizing: border-box;
}
.compact-section__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    padding: 10px 14px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    list-style: none;
    user-select: none;
    transition: background 0.15s;
    /* Заглавные буквы */
    text-transform: capitalize;
}
.compact-section__toggle::-webkit-details-marker { display: none; }
.compact-section__toggle::after {
    content: '+';
    font-size: 16px;
    font-weight: 400;
    color: #D4A574;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 8px;
}
.compact-section[open] > .compact-section__toggle::after {
    content: '−';
}
.compact-section__toggle:hover {
    background: rgba(255,255,255,0.03);
}
/* Внутри compact-section контент не вылезает за края */
.compact-section > :not(summary) {
    padding: 0 18px 12px;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 100%;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
/* Таблицы, картинки, pre — ограничиваем ширину */
.compact-section img,
.compact-section table,
.compact-section pre,
.compact-section iframe {
    max-width: 100%;
    overflow-x: auto;
}
/* Исключение: highlights и crosslinks уже с padding */
.compact-section.highlights > .highlights__list {
    padding-left: 34px;
    padding-right: 14px;
    padding-bottom: 12px;
}
.compact-section.crosslinks > .crosslinks__nav {
    padding: 0 14px 12px;
    flex-wrap: wrap;
}

@media print {
    .top-strip, .masthead, .sidebar, .sidebar-overlay, .floating-offer, .page-foot .keywords-row {
        display: none !important;
    }
    .compact-section { border: none; }
    .compact-section[open] { break-inside: avoid; }
}
