:root {
    --wrap: 1300px;
    --main: 960px;
    --side: 320px;
    --body-gap: 20px;
    --red: #e22d30;
    --text: #161616;
    --link-hover: #1a237e;
    --muted: #6b6f76;
    --line: #e6e7ea;
    --bg: #fff;
    --footer-top: #f4f5f7;
    --footer-bottom: #0b1131;
    --gap: 12px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.45;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
body.is-search-open { overflow: hidden; }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-wrap {
    width: min(var(--wrap), calc(100% - 32px));
    margin: 0 auto;
}

/* Header */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.header-top {
    border-bottom: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.header-top__inner,
.header-main__inner,
.header-sub__inner,
.header-promo__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.header-top__inner { min-height: 32px; justify-content: flex-end; }
.header-top__links {
    display: flex;
    gap: 16px;
}
.header-top a { color: var(--text); }
.header-top a:hover { color: var(--link-hover); }

.header-main { padding: 10px 0; }
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    line-height: 0;
}
.logo img {
    display: block;
    height: 72px;
    width: auto;
    max-width: min(340px, 70vw);
}

.header-ad {
    flex: 1;
    min-width: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}
.header-ad .ad-box {
    margin-bottom: 0;
}

.header-actions { display: flex; gap: 8px; align-items: center; flex-shrink: 0; }
.icon-btn {
    width: 40px;
    height: 40px;
    border: 0;
    background: #f1f2f4;
    border-radius: 10px;
    display: grid;
    place-items: center;
    cursor: pointer;
    color: var(--text);
}
.icon-btn--menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.icon-btn--menu span {
    display: block;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.header-sub {
    border-top: 1px solid var(--line);
    font-size: 13px;
    font-weight: 600;
}
.header-sub__inner {
    min-height: 40px;
    justify-content: flex-start;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
}
.header-sub__accent { color: var(--red); text-transform: uppercase; letter-spacing: .04em; }
.header-sub a { color: var(--text); }
.header-sub a:hover,
.header-sub a.is-active { color: var(--link-hover); }

.header-promo {
    background: var(--red);
    color: #fff;
}
.header-promo__inner { min-height: 48px; }
.header-promo p { margin: 0; font-weight: 600; }
.header-promo__btn {
    background: #fff;
    color: #1d4ed8;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 8px 18px;
    white-space: nowrap;
}

.mobile-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 88vw);
    background: #fff;
    z-index: 40;
    padding: 24px 20px;
    box-shadow: -8px 0 24px rgba(0,0,0,.08);
}
.mobile-drawer[hidden],
.drawer-backdrop[hidden] { display: none; }
.mobile-drawer nav { display: grid; gap: 14px; font-weight: 700; }
.mobile-drawer nav a { color: var(--text); }
.mobile-drawer nav a:hover,
.mobile-drawer nav a.is-active { color: var(--link-hover); }
.drawer-cta {
    display: none;
    margin-top: 20px;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: .02em;
    border-radius: 999px;
    padding: 10px 18px;
    text-align: center;
    border: 0;
    width: 100%;
    cursor: pointer;
    font-family: inherit;
}
.drawer-cta--push { background: #1a237e; }
.icon-btn.is-subscribed {
    background: #1a237e;
    color: #fff;
}
.push-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    z-index: 80;
    background: #101828;
    color: #fff;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(0,0,0,.18);
    max-width: min(90vw, 360px);
    text-align: center;
}
.drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 30;
}

.search-modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: grid;
    place-items: center;
    padding: 24px;
}
.search-modal[hidden] { display: none; }
.search-modal__backdrop {
    position: absolute;
    inset: 0;
    border: 0;
    background: rgba(11, 17, 49, .5);
    cursor: pointer;
}
.search-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(560px, 100%);
    background: #fff;
    border-radius: 14px;
    padding: 20px 20px 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
    overflow: visible;
}
.search-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.search-modal__head h2 {
    margin: 0;
    font-size: 20px;
}
.search-modal__form {
    display: flex;
    gap: 8px;
}
.search-field {
    position: relative;
    flex: 1;
    min-width: 0;
}
.search-modal__form input,
.listing-search input {
    width: 100%;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 14px;
}
.search-modal__form button,
.listing-search button {
    background: var(--red);
    color: #fff;
    border: 0;
    border-radius: 8px;
    padding: 0 18px;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
}
.search-modal__form button:hover,
.listing-search button:hover { opacity: .9; }
.search-suggest {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 4px);
    margin: 0;
    padding: 6px 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 12px 32px rgba(16, 24, 40, .14);
    z-index: 60;
    max-height: 360px;
    overflow-y: auto;
}
.search-suggest[hidden] { display: none; }
.search-suggest__item {
    display: block;
    padding: 10px 14px;
    color: var(--text);
}
.search-suggest__item:hover,
.search-suggest__item.is-active {
    background: #f4f5f7;
    color: var(--link-hover);
}
.search-suggest__cat {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 2px;
}
.search-suggest__title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}
.search-suggest__empty {
    padding: 12px 14px;
    color: var(--muted);
    font-size: 13px;
}

/* Hero */
.hero { padding: 16px 0 8px; }
.hero-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: var(--gap);
    min-height: 460px;
}
.hero-card {
    position: relative;
    overflow: hidden;
    background: #1a1a1a;
    min-height: 0;
}
.hero-card--main { grid-row: 1 / span 2; }
.hero-card a { display: block; height: 100%; color: #fff; }
.hero-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.hero-card__overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 22px 22px 18px;
    background: linear-gradient(to top, rgba(0,0,0,.78) 0%, rgba(0,0,0,.35) 58%, transparent 100%);
}
.hero-card h2 {
    margin: 10px 0 8px;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
}
.hero-card--side h2 { font-size: 18px; }
.hero-card p {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,.92);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-card--side p { font-size: 13px; }
.hero-card time { font-size: 12px; color: rgba(255,255,255,.75); }

.hero-badge {
    display: inline-block;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
    padding: 4px 12px;
    transform: skewX(-14deg);
}
.hero-badge span { display: inline-block; transform: skewX(14deg); }

/* Store */
.store { padding: 18px 0 8px; }
.store__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}
.store__head h2 { margin: 0; font-size: 18px; }
.store__head a, .store__head span { color: var(--muted); font-size: 13px; }
.store__head a:hover { color: var(--link-hover); }
.store-carousel {
    position: relative;
}
.store-viewport {
    overflow: hidden;
}
.store-track {
    display: flex;
    gap: var(--gap);
    transition: transform .55s ease;
    will-change: transform;
}
.store-card {
    flex: 0 0 calc((100% - (5 * var(--gap))) / 6);
    min-width: 0;
    border: 1px solid var(--line);
    padding: 12px;
    display: grid;
    gap: 6px;
    position: relative;
    background: #fafafa;
}
.store-card__visual {
    height: 120px;
    display: grid;
    place-items: center;
    background: #f3f1ee;
    color: #5c4636;
    font-size: 28px;
    font-weight: 800;
    overflow: hidden;
}
.store-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.store-card strong {
    font-size: 14px;
    line-height: 1.25;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.5em;
}
.store-card em { color: var(--muted); font-style: normal; font-size: 12px; }
.store-card__price { font-weight: 800; color: var(--red); }
.store-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.store-nav--prev { left: -8px; }
.store-nav--next { right: -8px; }
.store-nav:hover { background: #1a237e; }

/* Body: 960 + 20 gap + 320 = 1300 */
.page-body { padding: 20px 0 48px; }
.page-body__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--side);
    column-gap: var(--body-gap);
    row-gap: 0;
    align-items: start;
}
.page-main {
    width: 100%;
}
.page-main .ad-slot {
    margin: 0 0 28px;
}
.page-main .ad-slot .ad-box {
    margin-bottom: 0;
    width: 100% !important;
}
.page-main .ad-slot--home-bottom {
    margin: 8px 0 0;
}
.page-main .cat-block {
    margin-bottom: 24px;
}
.page-sidebar {
    width: var(--side);
    position: sticky;
    top: 16px;
}
.sidebar-logo {
    display: block;
    margin-bottom: 20px;
    line-height: 0;
}
.sidebar-logo img {
    width: 100%;
    height: auto;
    display: block;
}
.mobile-drawer .sidebar-logo {
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.cat-block { margin-bottom: 36px; }
.cat-block__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--text);
    margin-bottom: 16px;
    padding-bottom: 6px;
}
.cat-block__head h2 {
    margin: 0;
    font-size: 22px;
    position: relative;
}
.cat-block__head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin-top: 6px;
}
.cat-block__head a { font-size: 13px; color: var(--text); font-weight: 600; }
.cat-block__head a:hover { color: var(--link-hover); }
.cat-block__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}
.cat-feature__media {
    background: #222;
    aspect-ratio: 16 / 10;
    margin-bottom: 12px;
    overflow: hidden;
}
.cat-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.cat-feature .article-card__cat { display: inline-block; margin-bottom: 6px; }
.cat-feature h3 {
    margin: 6px 0 6px;
    font-size: 22px;
    line-height: 1.2;
    color: var(--text);
}
.cat-feature a:hover h3 {
    color: var(--link-hover);
}
.cat-feature p { margin: 0 0 8px; color: #333; }
.cat-feature time { color: var(--muted); font-size: 12px; display: block; margin-bottom: 10px; }
.cat-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.cat-list-item {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}
.cat-list-item__media {
    width: 88px;
    height: 88px;
    background: #e8eaee;
    overflow: hidden;
    flex-shrink: 0;
}
.cat-list-item__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cat-list-item__body { min-width: 0; }
.cat-list-item h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 800;
    color: var(--text);
}
.cat-list-item__body a:hover h3 {
    color: var(--link-hover);
}
.cat-list-item time {
    display: block;
    color: #9aa0a6;
    font-size: 12px;
    margin-bottom: 8px;
}
.cat-empty { color: var(--muted); }

.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.share-row svg {
    width: 15px;
    height: 15px;
    display: block;
}
.share-row--brand a {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}
.share-row--brand a svg {
    width: 9px;
    height: 9px;
}
.share-row--brand a:nth-child(1) { background: #1877f2; }
.share-row--brand a:nth-child(2) { background: #0a66c2; border-radius: 4px; }
.share-row--brand a:nth-child(3) { background: #e60023; }
.share-row--brand a:nth-child(4) { background: #229ed9; }
.share-row--brand a:nth-child(5) { background: #444; }
.share-row--brand a:hover { opacity: .85; color: #fff; }

.ad-box {
    background: #f3f4f6;
    border: 1px dashed #cfd2d8;
    display: grid;
    place-items: center;
    color: var(--muted);
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}
.ad-box--square { height: 250px; }
.ad-box--sky { height: 600px; }
.ad-box--filled {
    background: transparent;
    border: 0;
}
.ad-box--code {
    display: block;
    overflow: visible;
    background: #f3f4f6;
    border: 0;
    min-height: var(--ad-h, 100px);
}
.ad-box--code:has(ins.adsbygoogle[data-adsbygoogle-status="done"]) {
    background: transparent;
}
.ad-box--code .ad-box__code {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.ad-box--code .adsbygoogle {
    display: block;
    width: 100%;
}
.ad-box__link,
.ad-box__code {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
}
.ad-box__code { overflow: hidden; }
.ad-box--code .ad-box__code {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}
.ad-box--code .adsbygoogle {
    display: block;
    width: 100%;
}
.ad-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.sidebar-block { margin-bottom: 20px; }
.sidebar-block h2 {
    margin: 0 0 12px;
    font-size: 18px;
    border-bottom: 2px solid var(--text);
    padding-bottom: 6px;
}
.sidebar-list article { border-bottom: 1px solid var(--line); padding: 10px 0; }
.sidebar-list span { color: var(--text); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.sidebar-list h3 { margin: 4px 0 4px; font-size: 15px; color: var(--text); }
.sidebar-list a:hover span,
.sidebar-list a:hover h3 { color: var(--link-hover); }

.page-body--listing {
    background: #fff;
    padding-top: 28px;
}
.listing-head {
    margin-bottom: 22px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--text);
}
.listing-head h1 {
    margin: 0;
    font-size: 28px;
}
.listing-head h1::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin-top: 8px;
}
.listing-head p { margin: 10px 0 0; color: var(--muted); }
.listing-search {
    display: flex;
    gap: 8px;
    margin: 0 0 24px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}
.article-card {
    grid-column: span 2;
    background: #fff;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .08);
    border-radius: 4px;
    padding: 16px 16px 14px;
    display: flex;
    flex-direction: column;
}
.article-card--lg {
    grid-column: span 3;
}
.article-card--lg:only-child {
    grid-column: 1 / -1;
}
.article-card__cat {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 10px;
}
.article-card__cat:hover { color: var(--link-hover); }
.article-card__body { color: inherit; display: block; }
.article-card__media {
    background: #e8eaee;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-bottom: 10px;
}
.article-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-card time {
    display: block;
    color: #9aa0a6;
    font-size: 13px;
    margin-bottom: 12px;
}
.article-card h2 {
    margin: 8px 0 4px;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text);
}
.article-card--lg h2 {
    font-size: 22px;
}
.article-card__body:hover h2 { color: var(--link-hover); }
.article-card__share {
    margin-top: auto;
    display: flex;
    gap: 10px;
    color: #5c6570;
}
.article-card__share a:hover { color: var(--red); }

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 32px 0 8px;
    flex-wrap: wrap;
}
.pagination__pages { display: flex; gap: 6px; }
.pagination__btn,
.pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}
a.pagination__btn:hover,
a.pagination__page:hover {
    color: var(--link-hover);
    border-color: var(--link-hover);
}
.pagination__page.is-current {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}
.pagination__btn.is-disabled {
    color: #bbb;
    pointer-events: none;
}

.article h1 { font-size: 34px; line-height: 1.2; margin: 8px 0 10px; }
.article time { color: var(--muted); font-size: 13px; }
.article__media { margin: 18px 0 12px; aspect-ratio: 16 / 10; background: #e8eaee; overflow: hidden; }
.article__media img { width: 100%; height: 100%; object-fit: cover; }
.article__share {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    font-size: 14px;
    font-weight: 700;
}
.article__share .share-row--brand a {
    width: 28px;
    height: 28px;
}
.article__share .share-row--brand a svg {
    width: 14px;
    height: 14px;
}
.related {
    margin-top: 40px;
}
.related__head {
    border-bottom: 2px solid var(--text);
    margin-bottom: 16px;
    padding-bottom: 6px;
}
.related__head h2 {
    margin: 0;
    font-size: 22px;
}
.related__head h2::after {
    content: "";
    display: block;
    width: 48px;
    height: 3px;
    background: var(--red);
    margin-top: 6px;
}
.related__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.related__grid .article-card {
    grid-column: auto;
}
.article__lead { font-size: 18px; color: #333; margin: 16px 0; }
.article__body { margin-top: 4px; }
.cms-content a,
.article__body a {
    color: var(--text);
    text-decoration: underline;
}
.cms-content a:hover,
.article__body a:hover {
    color: var(--link-hover);
}

.tip-form {
    display: grid;
    gap: 14px;
    max-width: 560px;
    margin-top: 8px;
    position: relative;
}
.tip-form label { display: grid; gap: 6px; font-weight: 600; font-size: 14px; }
.tip-form input,
.tip-form textarea {
    font: inherit;
    font-weight: 400;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    background: #fff;
}
.tip-form button {
    justify-self: start;
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 800;
    padding: 10px 22px;
    border-radius: 999px;
    cursor: pointer;
}
.tip-form small { color: var(--red); font-weight: 500; }
.tip-form__ok { color: #157347; font-weight: 600; }
.tip-honeypot {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}
.tip-captcha input { max-width: 8rem; }

/* Footer */
.site-footer { margin-top: 24px; }
.footer-top {
    background: var(--footer-top);
    padding: 36px 16px 28px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 22px;
    font-size: 13px;
    color: var(--text);
    margin-bottom: 22px;
}
.footer-links a:hover,
.footer-links__btn:hover { color: var(--link-hover); }
.footer-links__btn {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}
.footer-social { display: flex; justify-content: center; gap: 18px; color: #333; }
.footer-bottom {
    background: var(--footer-bottom);
    color: #d7d9e2;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    font-size: 13px;
}
.footer-bottom p { margin: 0; }
.back-to-top {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #2a3a7a;
    cursor: pointer;
    display: grid;
    place-items: center;
}

@media (max-width: 980px) {
    .header-main__inner { flex-wrap: wrap; }
    .header-ad { display: none; }
    .ad-slot--home-mid .ad-box--code,
    .ad-slot--home-bottom .ad-box--code {
        min-height: 280px;
    }
    .hero-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        min-height: 0;
    }
    .hero-card--main, .hero-card--side { min-height: 280px; }
    .store-card {
        flex-basis: calc((100% - (2 * var(--gap))) / 3);
    }
    .page-body__grid {
        grid-template-columns: 1fr;
    }
    .page-sidebar {
        width: 100%;
        margin-top: 24px;
        position: static;
    }
    .cat-block__grid { grid-template-columns: 1fr; }
    .related { display: none; }
    .article-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-card,
    .article-card--lg { grid-column: span 1; }
}

/* Cookie consent — kitakava-style bottom bar */
.m24-cookie-overlay {
    --m24-cookie-accent: #1a237e;
    --m24-cookie-accent-hover: #283593;
    --m24-cookie-accent-soft: rgba(26, 35, 126, 0.12);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    display: none;
    padding: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.25s, transform 0.25s;
}
.m24-cookie-overlay.m24-cookie--visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}
.m24-cookie {
    pointer-events: auto;
    width: min(960px, 100%);
    margin: 0 auto;
    max-height: min(70vh, 520px);
    overflow: auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.14);
    color: #1f2937;
    font-size: 0.9rem;
    line-height: 1.45;
}
.m24-cookie__simple {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.1rem;
}
.m24-cookie__copy { min-width: 0; flex: 1 1 auto; }
.m24-cookie__title {
    margin: 0 0 0.2rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #111827;
}
.m24-cookie__text {
    margin: 0;
    color: #4b5563;
    font-size: 0.86rem;
}
.m24-cookie__link {
    color: var(--m24-cookie-accent);
    font-weight: 600;
    white-space: nowrap;
}
.m24-cookie__link:hover { text-decoration: underline; }
.m24-cookie__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex: 0 0 auto;
}
.m24-cookie__btn {
    border-radius: 999px;
    padding: 0.5rem 1.05rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    line-height: 1.2;
}
.m24-cookie__btn--deny,
.m24-cookie__btn--settings,
.m24-cookie__btn--selected {
    border: 1px solid var(--m24-cookie-accent);
    background: #fff;
    color: var(--m24-cookie-accent);
}
.m24-cookie__btn--deny:hover,
.m24-cookie__btn--settings:hover,
.m24-cookie__btn--selected:hover {
    background: var(--m24-cookie-accent-soft);
}
.m24-cookie__btn--allow {
    border: 1px solid var(--m24-cookie-accent);
    background: var(--m24-cookie-accent);
    color: #fff;
}
.m24-cookie__btn--allow:hover {
    background: var(--m24-cookie-accent-hover);
    border-color: var(--m24-cookie-accent-hover);
}
.m24-cookie__settings {
    border-top: 1px solid #e5e7eb;
    padding: 0.85rem 1.1rem 1rem;
}
.m24-cookie__settings[hidden] { display: none !important; }
.m24-cookie__settings-lead {
    margin: 0 0 0.65rem;
    font-weight: 600;
    color: #111827;
    font-size: 0.88rem;
}
.m24-cookie__toggles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
.m24-cookie__toggle-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    padding: 0.75rem 0.45rem;
    text-align: center;
    border-right: 1px solid #e5e7eb;
}
.m24-cookie__toggle-col:last-child { border-right: none; }
.m24-cookie__toggle-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: #374151;
}
.m24-cookie__switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 22px;
    flex-shrink: 0;
}
.m24-cookie__switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.m24-cookie__slider {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: #111827;
    border-radius: 999px;
    transition: background 0.2s;
}
.m24-cookie__slider::before {
    content: "";
    position: absolute;
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}
.m24-cookie__switch input:checked + .m24-cookie__slider {
    background: var(--m24-cookie-accent);
}
.m24-cookie__switch input:checked + .m24-cookie__slider::before {
    transform: translateX(20px);
}
.m24-cookie__switch--locked .m24-cookie__slider {
    background: var(--m24-cookie-accent);
    cursor: not-allowed;
    opacity: 0.85;
}
.m24-cookie__details-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem 1rem;
}
.m24-cookie__details-item strong {
    display: block;
    margin-bottom: 0.15rem;
    color: #111827;
    font-size: 0.8rem;
}
.m24-cookie__details-item p {
    margin: 0;
    color: #6b7280;
    font-size: 0.78rem;
}
.m24-cookie__settings-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.85rem;
}
body.m24-cookie-open { padding-bottom: 7.5rem; }

@media (max-width: 700px) {
    .m24-cookie-overlay { padding: 0.5rem; }
    .m24-cookie__simple {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.85rem 0.9rem;
    }
    .m24-cookie__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem;
    }
    .m24-cookie__actions .m24-cookie__btn--allow { grid-column: 1 / -1; }
    .m24-cookie__actions .m24-cookie__btn { width: 100%; text-align: center; }
    .m24-cookie__toggles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .m24-cookie__toggle-col:nth-child(2) { border-right: none; }
    .m24-cookie__toggle-col:nth-child(1),
    .m24-cookie__toggle-col:nth-child(2) { border-bottom: 1px solid #e5e7eb; }
    .m24-cookie__details-list { grid-template-columns: 1fr; }
    .m24-cookie__settings-actions .m24-cookie__btn { width: 100%; text-align: center; }
    body.m24-cookie-open { padding-bottom: 11rem; }
}

@media (max-width: 700px) {
    .header-top { display: none; }
    .header-sub { display: none; }
    .logo img { height: 48px; }
    .store-card { flex-basis: calc((100% - var(--gap)) / 2); }
    .hero-card h2 { font-size: 22px; }
    .header-promo__inner { justify-content: center; }
    .header-promo__btn { display: none; }
    .drawer-cta { display: block; }
    .article-grid { grid-template-columns: 1fr; }
    .article-card,
    .article-card--lg { grid-column: span 1; }
    .article h1 { font-size: 22px; }
}
