/* ==========================================================
   25 Колесо — светлая тема
   ========================================================== */
:root {
    --bg: #f5f4f0;
    --surface: #ffffff;
    --surface-2: #edebe5;
    --ink: #15171c;
    --ink-2: #3a3e47;
    --muted: #737781;
    --line: #e4e1d9;
    --accent: #f2651c;
    --accent-ink: #c2490b;
    --accent-soft: #fdeee4;
    --tg: #229ed9;

    --radius: 16px;
    --radius-sm: 10px;
    --shadow: 0 1px 2px rgba(21, 23, 28, .04), 0 4px 16px rgba(21, 23, 28, .05);
    --shadow-hover: 0 2px 4px rgba(21, 23, 28, .05), 0 14px 36px rgba(21, 23, 28, .10);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Unbounded", "Manrope", system-ui, sans-serif;

    --container: 1240px;
    --gutter: 20px;
    --sidebar: 300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.site-main { min-height: 50vh; }
.icon { flex-shrink: 0; }

/* ---------- Buttons / chips ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    height: 40px; padding: 0 16px;
    border-radius: 999px;
    font-weight: 700; font-size: 14px;
    transition: background .2s, color .2s, transform .2s;
}
.btn--tg { background: var(--ink); color: #fff; }
.btn--tg:hover { background: var(--tg); color: #fff; }

.chip {
    display: inline-flex; align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-ink);
    font-size: 12px; font-weight: 700; line-height: 1.5;
    white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
a.chip:hover { background: var(--accent); color: #fff; }
.chip--ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .88);
    backdrop-filter: saturate(1.6) blur(14px);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner { display: flex; align-items: center; gap: 28px; height: 68px; }

.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo__mark { width: 34px; height: 34px; color: var(--accent); transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.logo:hover .logo__mark { transform: rotate(144deg); }
.logo__text { font: 600 19px/1 var(--font-display); letter-spacing: -.01em; text-transform: uppercase; }
.logo__text b { color: var(--accent); font-weight: 700; }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
    position: relative;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600; font-size: 15px; color: var(--ink-2);
    transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--surface-2); color: var(--ink); }
.nav__link.is-active { color: var(--ink); background: var(--accent-soft); }
.nav__link.is-active::after {
    content: ""; position: absolute; left: 50%; bottom: 3px;
    width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent);
}
.nav__link--muted { color: var(--muted); }

.nav-toggle {
    display: none;
    width: 42px; height: 42px; margin-left: auto;
    border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
    cursor: pointer; padding: 0;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Ad slots ---------- */
.ad-slot { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ad-slot__label {
    font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.ad-slot__body { display: flex; justify-content: center; align-items: center; width: 100%; overflow: hidden; }

.ad-slot--top { max-width: calc(var(--container) + var(--gutter) * 2); margin: 20px auto 0; padding: 0 var(--gutter); }
.ad-slot--top .ad-slot__body { min-height: 90px; }
.ad-slot--sidebar .ad-slot__body { min-height: 600px; width: 300px; max-width: 100%; }
.ad-slot--inline { margin: 32px 0; }
.ad-slot--inline .ad-slot__body { min-height: 120px; }

.ad-slot--placeholder .ad-slot__body {
    border: 1.5px dashed #d3cec3;
    border-radius: var(--radius-sm);
    background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(21, 23, 28, .025) 10px 20px);
    color: var(--muted); font-size: 13px; font-weight: 600; text-align: center;
}
.ad-slot--placeholder .ad-slot__body small { display: block; font-weight: 500; opacity: .8; }
.ad-slot--top.ad-slot--placeholder .ad-slot__body { max-width: 728px; }
.ad-slot--inline.ad-slot--placeholder .ad-slot__body { min-height: 250px; }

/* Свой HTML-баннер не грузится асинхронно — резерв высоты под него не нужен */
.ad-slot__body:has(> .sj-banner) { min-height: 0 !important; }

/* ---------- Баннер SeasonJobs.at (слот top) ---------- */
.sj-banner {
    display: flex; align-items: center; gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border-radius: var(--radius);
    background:
        radial-gradient(120% 180% at 100% 0, rgba(235, 100, 55, .28), transparent 55%),
        linear-gradient(100deg, #0e2f4b, #123b5d);
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: var(--shadow);
    color: #fff;
    transition: border-color .2s, box-shadow .2s;
}
.sj-banner:hover { color: #fff; border-color: #eb6437; box-shadow: var(--shadow-hover); }
.sj-banner__logo {
    flex: none; display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 10px; background: #fff;
}
.sj-banner__logo img { width: 40px; height: 40px; }
.sj-banner__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sj-banner__brand { font: 700 18px/1.1 Arial, Helvetica, sans-serif; letter-spacing: -.02em; }
.sj-banner__brand b { color: #eb6437; }
.sj-banner__text { font-size: 13px; line-height: 1.35; color: rgba(255, 255, 255, .78); }
.sj-banner__text--desktop { display: none; }
.sj-banner__cta {
    flex: none; display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: #eb6437; color: #fff; font-weight: 700;
}
.sj-banner__cta-label { display: none; }

@media (min-width: 728px) {
    .sj-banner { min-height: 90px; gap: 18px; padding: 14px 22px; }
    .sj-banner__logo { width: 60px; height: 60px; border-radius: 12px; }
    .sj-banner__logo img { width: 50px; height: 50px; }
    .sj-banner__brand { font-size: 22px; }
    .sj-banner__text--desktop { display: block; }
    .sj-banner__text--mobile { display: none; }
    .sj-banner__cta {
        display: inline-flex; gap: 8px; width: auto; height: auto;
        padding: 11px 18px; border-radius: 999px;
        font-size: 14px; white-space: nowrap; transition: background .2s;
    }
    .sj-banner__cta-label { display: inline; }
    .sj-banner:hover .sj-banner__cta { background: #ff7a4d; }
}

/* ---------- Баннер AZ Design (слот sidebar, 300×600) ---------- */
.ad-slot__body:has(> .az-banner) { min-height: 0; }
.az-banner {
    position: relative;
    display: flex; flex-direction: column; justify-content: flex-end;
    width: 300px; max-width: 100%; height: 600px;
    border-radius: var(--radius);
    overflow: hidden;
    background: #14120f;
    color: #f3ede4;
    box-shadow: var(--shadow);
    isolation: isolate;
}
.az-banner:hover { color: #f3ede4; box-shadow: var(--shadow-hover); }
.az-banner__media { position: absolute; inset: 0 0 auto; height: 400px; z-index: -1; }
.az-banner__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s ease; }
.az-banner:hover .az-banner__media img { transform: scale(1.05); }
.az-banner__media::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(20, 18, 15, .55) 0%, rgba(20, 18, 15, 0) 28%, rgba(20, 18, 15, .15) 55%, #14120f 100%);
}
.az-banner__logo { position: absolute; top: 20px; left: 0; right: 0; display: flex; justify-content: center; }
.az-banner__logo img { width: 150px; height: auto; filter: invert(1) drop-shadow(0 1px 6px rgba(0, 0, 0, .35)); }
.az-banner__body { display: flex; flex-direction: column; gap: 14px; padding: 0 24px 24px; }
.az-banner__title {
    font: 500 27px/1.12 "Cormorant Garamond", Georgia, "Times New Roman", serif;
    letter-spacing: .01em; text-align: center;
}
.az-banner__facts {
    display: flex; justify-content: center; gap: 22px;
    padding: 12px 0; border-top: 1px solid rgba(200, 164, 110, .35); border-bottom: 1px solid rgba(200, 164, 110, .35);
    font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: rgba(243, 237, 228, .75);
}
.az-banner__facts b { color: #c8a46e; font: 600 20px/1 Georgia, serif; margin-right: 4px; letter-spacing: 0; }
.az-banner__list { font-size: 12px; line-height: 1.5; text-align: center; color: rgba(243, 237, 228, .7); }
.az-banner__cta {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    height: 46px; border-radius: 999px;
    background: #c8a46e; color: #14120f;
    font-weight: 800; font-size: 14px;
    transition: background .2s;
}
.az-banner:hover .az-banner__cta { background: #dcbb87; }

/* ---------- Layout ---------- */
.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--sidebar);
    gap: 40px;
    align-items: start;
    padding-top: 40px; padding-bottom: 24px;
}
.layout--article { padding-top: 28px; }
.sidebar { display: flex; flex-direction: column; gap: 28px; }
.sidebar__sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

.section { padding-top: 48px; padding-bottom: 16px; }
.section--tight { padding-top: 32px; }
.band { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 48px 0; margin-top: 40px; }
.band .card { background: var(--bg); box-shadow: none; }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head__title { font: 600 24px/1.2 var(--font-display); letter-spacing: -.02em; display: flex; align-items: center; gap: 12px; }
.section-head__title::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); flex-shrink: 0; }
.section-head__more { font-weight: 700; font-size: 14px; color: var(--accent-ink); white-space: nowrap; }

.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid__full { grid-column: 1 / -1; margin: 8px 0; }
.empty { color: var(--muted); }

/* ---------- Cards ---------- */
.card {
    display: flex; flex-direction: column;
    background: var(--surface);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.card__media { display: block; overflow: hidden; aspect-ratio: 5 / 3; background: var(--surface-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px 22px; flex: 1; }
.card__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--muted); font-weight: 500; }
.card__title { font-size: 18px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.card__title a:hover { color: var(--accent-ink); }
.card__intro { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.55;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* lead */
.card--lead .card__media { aspect-ratio: 16 / 9; }
.card--lead .card__body { padding: 24px 28px 28px; gap: 14px; }
.card--lead .card__title { font: 600 clamp(22px, 2.6vw, 32px)/1.2 var(--font-display); letter-spacing: -.02em; }
.card--lead .card__intro { font-size: 16px; -webkit-line-clamp: 3; }

/* row */
.card--row { flex-direction: row; }
.card--row .card__media { width: 42%; flex-shrink: 0; aspect-ratio: auto; min-height: 150px; }
.card--row .card__body { padding: 16px 18px; justify-content: center; }
.card--row .card__title { font-size: 16px; }
.card--row .card__intro { -webkit-line-clamp: 2; font-size: 14px; }

/* mini */
.card--mini { flex-direction: row; align-items: center; gap: 12px; background: none; box-shadow: none; border-radius: 0; overflow: visible; }
.card--mini:hover { transform: none; box-shadow: none; }
.card--mini .card__media { width: 88px; height: 60px; aspect-ratio: auto; border-radius: var(--radius-sm); flex-shrink: 0; }
.card--mini .card__body { padding: 0; gap: 4px; }
.card--mini .card__title { font-size: 14px; line-height: 1.35;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__date { font-size: 12px; color: var(--muted); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; padding-top: 28px; }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 24px; }
.hero__side .card--row { flex-direction: column; }
.hero__side .card--row .card__media { width: 100%; min-height: 0; aspect-ratio: 16 / 7; }

/* ---------- Widgets ---------- */
.widget { background: var(--surface); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.widget__title { font: 600 16px/1.2 var(--font-display); margin-bottom: 16px; }
.widget__list { display: flex; flex-direction: column; gap: 14px; }
.widget__list .card--mini + .card--mini { padding-top: 14px; border-top: 1px solid var(--line); }

.tg-promo {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 18px; border-radius: var(--radius);
    background: linear-gradient(135deg, #229ed9, #1b7fc4); color: #fff;
    font-size: 13px; line-height: 1.4;
    transition: transform .2s, box-shadow .2s;
}
.tg-promo:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(34, 158, 217, .3); }
.tg-promo .icon { width: 30px; height: 30px; }
.tg-promo b { display: block; font-size: 15px; }
.tg-promo--wide { margin-top: 32px; padding: 20px 24px; }

/* ---------- Page head ---------- */
.page-head { padding: 40px 0 8px; }
.page-head__eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 8px; }
.page-head__title { font: 600 clamp(28px, 4vw, 44px)/1.1 var(--font-display); letter-spacing: -.03em; }
.page-head + .layout { padding-top: 24px; }

.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.crumbs a:hover { color: var(--accent-ink); }
.crumbs span { opacity: .5; }

/* ---------- Article ---------- */
.article { background: var(--surface); border-radius: var(--radius); padding: 32px 40px 40px; box-shadow: var(--shadow); }
.article__title { font: 600 clamp(26px, 3.4vw, 40px)/1.18 var(--font-display); letter-spacing: -.025em; margin-bottom: 16px; }
.article__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; font-weight: 500; margin-bottom: 24px; }
.article__cover { margin: 0 -40px 28px; }
.article__cover img { width: 100%; aspect-ratio: 9 / 5; object-fit: cover; }

.prose { font-size: 18px; line-height: 1.75; color: var(--ink-2); overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 1.1em; }
.prose h2, .prose h3, .prose h4 { color: var(--ink); margin: 1.6em 0 .6em; font-weight: 800; letter-spacing: -.01em; }
.prose h2 { font-size: 1.45em; }
.prose h3 { font-size: 1.25em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.prose img { border-radius: var(--radius-sm); margin: 1.4em auto; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); color: var(--ink); font-weight: 500; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9em; margin: 1.4em 0; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; }
.prose iframe, .video iframe { max-width: 100%; border: 0; border-radius: var(--radius-sm); }
.video { margin-top: 24px; }
.video iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tag { padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.tag:hover { background: var(--ink); color: #fff; }

/* ---------- Catalog / models ---------- */
.letters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
.letters a {
    display: inline-grid; place-items: center; min-width: 38px; height: 38px; padding: 0 8px;
    border-radius: 10px; background: var(--surface); box-shadow: var(--shadow);
    font-weight: 700; font-size: 15px;
}
.letters a:hover { background: var(--accent); color: #fff; }
.catalog { columns: 4 220px; column-gap: 24px; }
.catalog__group { break-inside: avoid; background: var(--surface); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 24px; box-shadow: var(--shadow); scroll-margin-top: 90px; }
.catalog__letter { font: 600 28px/1 var(--font-display); color: var(--accent); margin-bottom: 12px; }
.catalog__list { list-style: none; margin: 0; padding: 0; }
.catalog__list li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); font-weight: 600; }
.catalog__list li:first-child { border-top: 0; }
.catalog__list span { font-size: 12px; color: var(--muted); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.model-tile { display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); transition: box-shadow .2s, transform .2s; }
.model-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); color: var(--ink); }
.model-tile img { width: 96px; height: 58px; object-fit: cover; border-radius: var(--radius-sm); }
.model-tile span { font-weight: 700; line-height: 1.3; }
.model-tile small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

.model-info { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 32px; align-items: start; background: var(--surface); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); margin-top: 24px; }
.model-info__img { width: 100%; border-radius: var(--radius-sm); }
.model-info--text { grid-template-columns: minmax(0, 1fr); }
.model-info .prose { font-size: 16px; }

/* ---------- Pagination ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 40px 0 8px; }
.pager__item {
    display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
    border-radius: 12px; background: var(--surface); box-shadow: var(--shadow);
    font-weight: 700; font-size: 15px;
}
a.pager__item:hover { background: var(--ink); color: #fff; }
.pager__item.is-current { background: var(--accent); color: #fff; }
.pager__item.is-disabled { opacity: .45; box-shadow: none; }

/* ---------- Misc ---------- */
.sape-links { font-size: 13px; color: var(--muted); padding-top: 20px; }
.sape-links:empty { display: none; }
.article .sape-links { padding: 20px 0 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 64px; background: var(--surface); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-top: 48px; padding-bottom: 40px; }
.site-footer__about { color: var(--muted); margin: 14px 0 0; max-width: 340px; font-size: 15px; }
.site-footer__title { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-weight: 600; }
.site-footer__bottom { border-top: 1px solid var(--line); padding-top: 20px; padding-bottom: 24px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .grid--4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid--4 > .card:nth-of-type(n+7) { display: none; }
}

@media (max-width: 980px) {
    .layout { grid-template-columns: minmax(0, 1fr); }
    .sidebar__sticky { position: static; align-items: center; }
    .sidebar__sticky .tg-promo { width: 100%; }
    .hero { grid-template-columns: minmax(0, 1fr); }
    .hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
    .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--4 > .card:nth-of-type(n+7) { display: flex; }
    .model-info { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
    .site-header__inner { gap: 12px; height: 60px; }
    .site-header__tg span { display: none; }
    .site-header__tg { width: 40px; padding: 0; justify-content: center; margin-left: auto; }
    .nav-toggle { display: inline-flex; margin-left: 0; }
    .nav {
        position: absolute; left: 0; right: 0; top: 100%;
        flex-direction: column; align-items: stretch; gap: 2px;
        padding: 12px var(--gutter) 18px;
        background: var(--surface); border-bottom: 1px solid var(--line);
        box-shadow: 0 16px 30px rgba(21, 23, 28, .08);
        opacity: 0; visibility: hidden; transform: translateY(-6px);
        transition: opacity .2s, transform .2s, visibility .2s;
    }
    .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
    .nav__link { padding: 12px 14px; font-size: 16px; }
    .nav__link.is-active::after { display: none; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
    :root { --gutter: 16px; }
    body { font-size: 15px; }
    .grid { gap: 16px; }
    .grid--2, .grid--3, .grid--4, .hero__side { grid-template-columns: minmax(0, 1fr); }
    .card--row { flex-direction: row; }
    .card--row .card__media { width: 38%; min-height: 110px; }
    .card--row .card__intro { display: none; }
    .card--row .card__body { padding: 12px 14px; }
    .card--row .card__title { font-size: 15px; }
    .hero__side .card--row { flex-direction: row; }
    .hero__side .card--row .card__media { width: 38%; aspect-ratio: auto; }
    .ad-slot--top .ad-slot__body { min-height: 100px; }
    .ad-slot--top.ad-slot--placeholder .ad-slot__body { max-width: 320px; }
    .article { padding: 22px 18px 28px; border-radius: 0; margin: 0 calc(var(--gutter) * -1); box-shadow: none; }
    .article__cover { margin: 0 -18px 22px; }
    .prose { font-size: 17px; }
    .section-head__title { font-size: 20px; }
    .page-head { padding-top: 28px; }
    .catalog { columns: 2 150px; column-gap: 12px; }
    .catalog__group { padding: 14px; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
