/* ============================================================
   АвтоТитан — стили темы. Порядок: токены → база → компоненты →
   шапка/подвал → секции главной → страницы → адаптив.
   ============================================================ */

/* ---------- Шрифты (self-hosted, вариативные) ---------- */
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/golos-var-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("../fonts/golos-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/manrope-var-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500 800; font-display: swap; src: url("../fonts/manrope-var-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Токены ---------- */
:root {
	--navy-900: #0b1b33;
	--navy-800: #10244a;
	--navy-700: #16305f;
	--navy-600: #1f3d73;
	--blue: #1769de;
	--blue-dark: #1259c4;
	--blue-soft: #e8f1fe;
	--link-dark: #6aa9ff;
	--accent: #f59e0b;
	--ink: #0f172a;
	--ink-2: #334155;
	--muted: #64748b;
	--line: #e2e8f0;
	--bg: #f4f7fb;
	--white: #ffffff;
	--on-dark: #f8fafc;
	--on-dark-muted: #a9b8d6;
	--line-dark: rgba(255, 255, 255, 0.1);
	--font-body: "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--font-head: "Manrope", "Golos Text", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	--r-card: 12px;
	--r-btn: 10px;
	--r-sm: 8px;
	--shadow: 0 8px 24px rgba(11, 27, 51, 0.12);
	--shadow-hover: 0 16px 40px rgba(11, 27, 51, 0.2);
	--container: 1280px;
	--gutter: 20px;
	--header-h: 72px;
	--topbar-h: 40px;
	--ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; overflow-x: clip; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--on-dark); background: var(--navy-900); -webkit-font-smoothing: antialiased; }
body.is-locked { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 800; line-height: 1.15; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 1000; padding: 10px 16px; background: var(--blue); color: #fff; border-radius: var(--r-btn); }
.skip-link:focus { left: 8px; }
.icon { width: 1.25em; height: 1.25em; flex: 0 0 auto; vertical-align: middle; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.site-main { min-height: 50vh; }
.section { padding: 64px 0; scroll-margin-top: calc(var(--header-h) + 16px); }
.section--dark { background: var(--navy-800); }
.section--light { background: var(--bg); color: var(--ink); }
.section--white { background: var(--white); color: var(--ink); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; flex-wrap: wrap; }
.section__title { font-size: 28px; text-transform: uppercase; letter-spacing: 0.02em; }
.section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--link-dark); white-space: nowrap; }
.section__more .icon { transition: transform 0.25s var(--ease); }
.section__more:hover .icon { transform: translateX(4px); }
.section--light .section__more, .section--white .section__more { color: var(--blue-dark); }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: var(--r-btn); font-weight: 600; font-size: 15px; line-height: 1.2; text-align: center; white-space: nowrap; transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s var(--ease); border: 1.5px solid transparent; }
.btn .icon { width: 20px; height: 20px; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(30, 123, 245, 0.35); }
.btn--primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn--white { background: var(--white); color: var(--navy-900); }
.btn--white:hover { background: var(--blue-soft); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.35); color: inherit; }
.btn--ghost:hover { border-color: currentColor; background: rgba(255, 255, 255, 0.06); }
.section--light .btn--ghost, .section--white .btn--ghost, .card .btn--ghost, .panel .btn--ghost { border-color: var(--line); color: var(--blue-dark); }
.section--light .btn--ghost:hover, .section--white .btn--ghost:hover, .card .btn--ghost:hover, .panel .btn--ghost:hover { background: var(--blue-soft); border-color: var(--blue-soft); }
.btn--secondary { background: var(--navy-700); color: #fff; }
.btn--secondary:hover { background: var(--navy-600); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn[disabled] { opacity: 0.6; pointer-events: none; }
.link { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Формы ---------- */
.form__title { font-size: 22px; margin-bottom: 6px; }
.form__text { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.form__fields { display: grid; gap: 12px; }
.field { display: block; position: relative; }
.field input, .field textarea { width: 100%; min-height: 48px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--r-btn); background: #fff; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: #94a3b8; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30, 123, 245, 0.15); }
.field.is-invalid input { border-color: #ef4444; }
.field--search { display: flex; align-items: center; gap: 10px; }
.field--search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.field--search input { padding-left: 44px; }
.form__hp { position: absolute !important; left: -9999px; top: -9999px; }
.form__submit { width: 100%; }
.form__agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; font-size: 12px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.form__agree input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--blue); }
.form__agree a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.form__status { margin-top: 10px; font-size: 14px; min-height: 1em; }
.form__status.is-error { color: #ef4444; }
.form__status.is-success { color: #16a34a; font-weight: 600; }
.form.is-sent .form__fields, .form.is-sent .form__agree { display: none; }
.form--dark .form__agree { color: var(--on-dark-muted); }
.form--dark .form__agree a { color: #fff; }
.form--dark .form__status.is-success { color: #86efac; }
.form--inline .form__fields { grid-template-columns: 1fr 1fr auto; }
.form--inline .form__submit { width: auto; }
.form--card { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 28px; box-shadow: var(--shadow); }

/* ---------- Карточки и сетки ---------- */
.grid { display: grid; gap: 20px; }
.grid--cats { grid-template-columns: repeat(5, 1fr); }
.grid--products { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card { position: relative; display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: var(--r-card); overflow: hidden; box-shadow: 0 2px 8px rgba(11, 27, 51, 0.08); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.card__media { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--bg); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__placeholder { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #cbd5e1; }
.card__placeholder .icon { width: 48px; height: 48px; }
.card__body { display: flex; flex-direction: column; gap: 10px; padding: 16px; flex: 1; }
.card__title { font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.35; }
.card__title a:hover { color: var(--blue-dark); }
.card--cat .card__body { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.card__arrow { color: var(--blue); flex: 0 0 auto; transition: transform 0.25s var(--ease); }
.card--cat:hover .card__arrow { transform: translateX(4px); }
.card--custom { justify-content: center; align-items: flex-start; gap: 12px; padding: 24px; background: linear-gradient(160deg, var(--navy-700), var(--blue)); color: #fff; box-shadow: none; }
.card--custom .card__title { font-family: var(--font-head); font-size: 20px; font-weight: 800; }
.card--custom .card__text { font-size: 14px; color: rgba(255, 255, 255, 0.85); }
.card__icon { display: inline-flex; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.card__icon .icon { width: 28px; height: 28px; }
.card__price { margin-top: auto; }
.price { font-family: var(--font-head); font-weight: 800; font-size: 18px; color: var(--navy-900); }
.price__from { font-size: 13px; font-weight: 600; color: var(--muted); }
.price--request { font-size: 14px; color: var(--blue-dark); }
.card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.card__actions .btn { flex: 1 1 auto; padding: 0 12px; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; background: var(--blue); color: #fff; }
.badge--accent { background: var(--accent); color: var(--navy-900); }
.panel { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 32px; box-shadow: 0 2px 8px rgba(11, 27, 51, 0.08); }

/* ---------- Слайдер ---------- */
.slider { position: relative; }
.slider__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 6px 2px 14px; margin: -6px -2px -14px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 calc((100% - 60px) / 4); scroll-snap-align: start; display: flex; flex-direction: column; }
.slider__item > .card { flex: 1 1 auto; }
.slider--reviews .slider__item { flex-basis: calc((100% - 40px) / 3); }
.slider__btn { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; background: #fff; color: var(--navy-900); box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: background 0.2s, opacity 0.2s; }
.slider__btn:hover { background: var(--blue-soft); }
.slider__btn--prev { left: -22px; }
.slider__btn--next { right: -22px; }
.slider__btn.is-disabled { opacity: 0.35; pointer-events: none; }

/* ---------- Крошки, пагинация ---------- */
.crumbs { font-size: 13px; color: var(--on-dark-muted); margin-bottom: 14px; }
.crumbs ol, .crumbs span.breadcrumb_last, .crumbs > span { display: flex; flex-wrap: wrap; gap: 4px 8px; }
.crumbs li + li::before, .crumbs a + a::before { content: "/"; margin-right: 8px; opacity: 0.5; }
.crumbs a:hover { color: #fff; }
.crumbs [aria-current], .crumbs .breadcrumb_last { color: #fff; }
.section--light .crumbs, .section--white .crumbs, .panel .crumbs { color: var(--muted); }
.pagination { margin-top: 32px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-btn); background: rgba(255, 255, 255, 0.08); font-weight: 600; transition: background 0.2s; }
.pagination a.page-numbers:hover { background: rgba(255, 255, 255, 0.16); }
.pagination .page-numbers.current { background: var(--blue); color: #fff; }
.pagination .page-numbers.dots { background: none; }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--navy-900); transition: box-shadow 0.25s; }
.site-header.is-stuck { box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35); }
.topbar { height: var(--topbar-h); border-bottom: 1px solid var(--line-dark); font-size: 13px; color: var(--on-dark-muted); }
.topbar__inner { display: flex; align-items: center; gap: 20px; height: 100%; }
.topbar__city { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 600; }
.topbar__city .icon { color: var(--blue); }
.topbar__chevron { width: 1em; height: 1em; opacity: 0.6; }
.topbar__features { display: flex; align-items: center; gap: 16px; flex: 1; min-width: 0; overflow: hidden; }
.topbar__contacts, .topbar__phone, .topbar__link, .topbar__city { white-space: nowrap; flex: 0 0 auto; }
.topbar__features li { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.topbar__features .icon { color: var(--blue); }
.topbar__nav a:hover { color: #fff; }
.topbar__contacts { display: flex; align-items: center; gap: 18px; }
.topbar__phone { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 14px; }
.topbar__phone .icon { color: var(--blue); }
.topbar__link { color: var(--link-dark); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(106, 169, 255, 0.4); }
.topbar__link:hover { color: #fff; }
.topbar .btn--sm { min-height: 30px; font-size: 13px; padding: 0 14px; box-shadow: none; }
.mainbar { height: var(--header-h); }
.mainbar__inner { display: flex; align-items: center; gap: 28px; height: 100%; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo__mark { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(30, 123, 245, 0.4); }
.logo__svg { width: 30px; height: 30px; }
.logo__img { max-height: 48px; width: auto; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__name { font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: 0.06em; color: #fff; }
.logo__slogan { font-size: 11px; color: var(--on-dark-muted); margin-top: 3px; }
.logo--dark .logo__name { color: var(--navy-900); }
.logo--dark .logo__slogan { color: var(--muted); }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__item { position: static; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; transition: background 0.2s, color 0.2s; }
.nav__link:hover, .nav__item.is-current > .nav__link, .nav__item.is-open > .nav__link { background: rgba(255, 255, 255, 0.08); }
.nav__chevron { width: 1em; height: 1em; opacity: 0.6; transition: transform 0.2s; }
.nav__item.is-open > .nav__link .nav__chevron, .nav__item:hover > .nav__link .nav__chevron { transform: rotate(180deg); }
.mega { position: absolute; left: 0; right: 0; top: 100%; z-index: 50; padding-top: 8px; opacity: 0; visibility: hidden; transition: opacity 0.2s, visibility 0.2s; }
.nav__item:hover > .mega, .nav__item.is-open > .mega, .nav__item:focus-within > .mega { opacity: 1; visibility: visible; }
.mega__inner { background: #fff; color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-hover); padding: 24px 28px; max-height: calc(100vh - var(--header-h) - var(--topbar-h) - 24px); overflow: auto; }
.mega__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px 28px; }
.mega__col { break-inside: avoid; }
.mega__heading { display: block; font-weight: 700; color: var(--navy-900); margin-bottom: 8px; font-size: 14px; line-height: 1.3; }
.mega__heading:hover { color: var(--blue-dark); }
.mega__list { display: grid; gap: 5px; }
.mega__link { display: block; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.mega__link:hover { color: var(--blue-dark); }
.mega__col:only-child .mega__list { grid-template-columns: repeat(3, 1fr); }
.search { display: none; position: absolute; left: 0; right: 0; top: 100%; padding: 12px 0 16px; background: var(--navy-900); border-bottom: 1px solid var(--line-dark); gap: 8px; }
.site-header.is-search-open .search { display: flex; }
.search__input { flex: 1; min-height: 48px; padding: 0 16px; border-radius: var(--r-btn); border: 1.5px solid var(--line-dark); background: rgba(255, 255, 255, 0.06); color: #fff; }
.search__input::placeholder { color: var(--on-dark-muted); }
.search__input:focus { outline: none; border-color: var(--blue); background: rgba(255, 255, 255, 0.1); }
.search__btn { width: 48px; height: 48px; border-radius: var(--r-btn); background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; }
.search__toggle, .burger, .mainbar__phone { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--r-sm); color: #fff; transition: background 0.2s; }
.search__toggle:hover, .burger:hover { background: rgba(255, 255, 255, 0.08); }
.search__toggle .icon, .burger .icon, .mainbar__phone .icon { width: 24px; height: 24px; }
.burger, .mainbar__phone { display: none; }
.mainbar__phone[aria-expanded="true"] { background: rgba(255, 255, 255, 0.12); }
.phones-pop { position: absolute; right: var(--gutter); top: calc(100% - 4px); z-index: 60; min-width: 248px; padding: 8px; background: var(--white); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-hover); }
.phones-pop__link { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); font-weight: 700; font-size: 16px; white-space: nowrap; }
.phones-pop__link:hover { background: var(--blue-soft); }
.phones-pop__link .icon { width: 20px; height: 20px; color: var(--blue); }
.burger__close { display: none; }
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: block; }

/* Мобильное меню */
.mnav { position: fixed; z-index: 99; left: 0; right: 0; top: var(--header-h); bottom: 0; background: var(--navy-900); overflow: auto; }
.mnav__inner { padding: 8px var(--gutter) 40px; }
.mnav__row { display: flex; align-items: center; }
.mnav__link { flex: 1; padding: 14px 0; font-weight: 600; font-size: 16px; border-bottom: 1px solid var(--line-dark); }
.mnav__toggle { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; color: var(--on-dark-muted); }
.mnav__toggle .icon { transition: transform 0.2s; }
.mnav__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.mnav__sub { padding-left: 16px; }
.mnav__sub .mnav__link { font-weight: 500; font-size: 15px; color: var(--on-dark-muted); }
.mnav__sub .mnav__sub .mnav__link { font-size: 14px; }
.mnav__contacts { display: grid; gap: 14px; padding-top: 24px; }
.mnav__phone { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; }
.mnav__phone .icon { color: var(--blue); }

/* Мессенджеры в шапке (Telegram, MAX): фирменные значки */
.header-social { flex: 0 0 auto; }
.header-social .social { gap: 8px; }
.header-social .social__link { width: 38px; height: 38px; }
.header-social .social__link--telegram { background: #229ed9; }
.header-social .social__link--telegram:hover { background: #1b8bc1; }
.header-social .social__link--whatsapp { background: #25d366; }
.header-social .social__link--vk { background: #0077ff; }
.header-social .social__link--max img { width: 38px; height: 38px; }

/* Соцсети */
.social { display: flex; gap: 10px; }
.social__link { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background 0.2s, transform 0.2s; }
.social__link:hover { transform: translateY(-2px); }
.social__link .icon { width: 20px; height: 20px; }
.social__link--telegram:hover { background: #229ed9; }
.social__link--whatsapp:hover { background: #25d366; }
.social__link--max { background: none; overflow: hidden; }
.social__link--max img { width: 40px; height: 40px; border-radius: 50%; display: block; }
.social__link--max:hover { background: none; }
.social__link--vk:hover { background: #0077ff; }

/* ---------- Главная: первый экран ---------- */
.hero { position: relative; overflow: hidden; padding: 56px 0 48px; min-height: 560px; display: flex; align-items: center; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; filter: brightness(1.12) saturate(1.08); transform: scale(1.2) translateX(7%); transform-origin: 50% 50%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 27, 51, 0.78) 0%, rgba(11, 27, 51, 0.5) 34%, rgba(11, 27, 51, 0.18) 58%, rgba(11, 27, 51, 0.42) 100%), linear-gradient(180deg, rgba(11, 27, 51, 0.45) 0%, rgba(11, 27, 51, 0) 35%, rgba(11, 27, 51, 0.55) 100%); }
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 380px; gap: 40px; align-items: center; }
.hero__title { font-size: 46px; line-height: 1.1; max-width: 12em; text-wrap: balance; text-shadow: 0 2px 18px rgba(4, 12, 28, 0.6); }
.hero__subtitle, .hero__features li { text-shadow: 0 1px 10px rgba(4, 12, 28, 0.6); }
.hero__subtitle { margin-top: 14px; font-size: 20px; color: var(--on-dark-muted); }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero__features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.hero__features li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hero__feature-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; background: rgba(30, 123, 245, 0.2); color: #8ec0ff; }
.hero__form .form { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px; box-shadow: var(--shadow-hover); }

/* ---------- Каталог, бренды ---------- */
.section--catalog { background: var(--navy-900); }
.brands { display: grid; grid-template-columns: repeat(var(--brands-cols, 6), minmax(0, 1fr)); gap: 16px; }
.brands li { display: flex; min-width: 0; }
.brands__item { display: flex; align-items: center; justify-content: center; width: 100%; height: 84px; padding: 12px 10px; background: #fff; border-radius: var(--r-card); transition: transform 0.25s var(--ease), box-shadow 0.25s; }
.brands__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.brands__item img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }
.brands__name { font-family: var(--font-head); font-weight: 800; font-size: 17px; color: var(--navy-900); letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- Фото работ ---------- */
.mosaic { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mosaic__item { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: var(--navy-800); }
.mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }
.mosaic__item:hover img { transform: scale(1.05); }
.mosaic__zoom { position: absolute; right: 12px; bottom: 12px; display: inline-flex; padding: 8px; border-radius: 50%; background: rgba(11, 27, 51, 0.7); color: #fff; opacity: 0; transition: opacity 0.2s; }
.mosaic__item:hover .mosaic__zoom { opacity: 1; }

/* ---------- О компании, видео ---------- */
.section--about { background: var(--navy-800); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.about__text .btn { margin-top: 24px; }
.prose { font-size: 16px; line-height: 1.65; color: var(--on-dark-muted); }
.prose p { margin-bottom: 14px; }
.about__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.about__photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; }
.about__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.about__photo:hover img { transform: scale(1.05); }
.videos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 32px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-card); overflow: hidden; background: var(--navy-900); }
.video__poster { width: 100%; height: 100%; object-fit: cover; opacity: 0.75; }
.video__play { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: var(--blue); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 24px rgba(30, 123, 245, 0.5); transition: transform 0.2s var(--ease); }
.video__play .icon { width: 26px; height: 26px; margin-left: 3px; }
.video:hover .video__play { transform: scale(1.08); }
.video__title { position: absolute; left: 14px; right: 14px; bottom: 12px; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Отзывы ---------- */
.review { display: flex; flex-direction: column; flex: 1 1 auto; gap: 14px; background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 22px; box-shadow: 0 2px 8px rgba(11, 27, 51, 0.08); }
.review__head { display: flex; gap: 14px; align-items: center; }
.review__avatar { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: var(--blue-soft); display: flex; align-items: center; justify-content: center; color: var(--blue); }
.review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.review__title { font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.review__meta { font-size: 12px; color: var(--muted); margin: 2px 0 0; }
.review__text { font-size: 14px; color: var(--ink-2); line-height: 1.55; }
.review__gallery { display: flex; gap: 8px; }
.review__gallery a { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; }
.review__gallery img { width: 100%; height: 100%; object-fit: cover; }
.review__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--blue-dark); margin-top: auto; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; padding: 72px 0; }
.cta__bg { position: absolute; inset: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 27, 51, 0.9), rgba(11, 27, 51, 0.6)); }
.cta__inner { position: relative; display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.cta__title { font-size: 34px; text-transform: uppercase; }
.cta__text p { color: var(--on-dark-muted); font-size: 17px; margin-top: 10px; }

/* ---------- Города ---------- */
.section--cities { background: var(--navy-900); }
.cities { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 24px; }
.cities a { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--on-dark-muted); font-size: 15px; transition: color 0.2s; }
.cities a:hover { color: #fff; }
.cities .icon { color: var(--blue); opacity: 0.8; }
.cities__actions { margin-top: 24px; text-align: center; }
.cities.is-open .cities__more { display: flex !important; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--navy-900); border-top: 1px solid var(--line-dark); padding: 56px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__about { margin: 18px 0; color: var(--on-dark-muted); max-width: 34em; }
.footer__title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #fff; margin-bottom: 16px; font-weight: 700; }
.footer__links { display: grid; gap: 9px; }
.footer__links a { color: var(--on-dark-muted); transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__contacts { display: grid; gap: 12px; margin-bottom: 20px; }
.footer__contacts li { display: flex; align-items: flex-start; gap: 10px; color: var(--on-dark-muted); }
.footer__contacts a { color: #fff; font-weight: 600; }
.footer__contacts .icon { color: var(--blue); margin-top: 2px; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-dark); font-size: 12px; color: var(--on-dark-muted); }
.footer__legal { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__docs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer__docs a:hover { color: #fff; text-decoration: underline; }
.totop { position: fixed; right: 26px; bottom: 148px; z-index: 90; width: 48px; height: 48px; border-radius: 50%; background: var(--blue); color: #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s; }
.totop:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ---------- Модальные окна ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(6, 14, 30, 0.72); backdrop-filter: blur(4px); }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 40px); overflow: auto; background: #fff; color: var(--ink); border-radius: 16px; padding: 32px; box-shadow: var(--shadow-hover); animation: modal-in 0.25s var(--ease); }
.modal__box--wide { max-width: 860px; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal__close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); transition: background 0.2s, color 0.2s; }
.modal__close:hover { background: var(--bg); color: var(--ink); }
.modal__title { font-size: 24px; margin-bottom: 6px; padding-right: 32px; }
.modal__text { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.modal__note { margin-top: 18px; font-size: 13px; color: var(--muted); }
.modal__product { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--blue-soft); color: var(--navy-900); font-size: 14px; font-weight: 600; }
.modal__product .icon { color: var(--blue); }
.cities-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 16px; max-height: 50vh; overflow: auto; margin-top: 16px; padding-right: 6px; }
.cities-list a { display: block; padding: 6px 8px; border-radius: 6px; color: var(--ink-2); }
.cities-list a:hover { background: var(--blue-soft); color: var(--blue-dark); }
.cities-list li[hidden] { display: none; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(6, 14, 30, 0.94); display: flex; align-items: center; justify-content: center; }
.lightbox__figure { margin: 0; max-width: min(92vw, 1400px); max-height: 88vh; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.lightbox__img { max-width: 100%; max-height: 82vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lightbox__caption { color: var(--on-dark-muted); font-size: 14px; }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); color: #fff; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, 0.22); }
.lightbox__close { right: 20px; top: 20px; }
.lightbox__nav { top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav .icon, .lightbox__close .icon { width: 26px; height: 26px; }
.lightbox__counter { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); font-size: 13px; color: var(--on-dark-muted); }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 150; max-width: 420px; display: flex; gap: 16px; align-items: center; padding: 16px 18px; background: #fff; color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-hover); font-size: 13px; line-height: 1.45; }
.cookie p { margin: 0; }
.cookie a { color: var(--blue-dark); text-decoration: underline; }
.cookie .btn { flex: 0 0 auto; }

/* ---------- Внутренние страницы ---------- */
.page-head { background: var(--navy-800); padding: 28px 0 32px; border-bottom: 1px solid var(--line-dark); }
.page-head__title { font-size: 36px; text-transform: uppercase; letter-spacing: 0.01em; text-wrap: balance; }
.page-head__sub { margin-top: 10px; color: var(--on-dark-muted); font-size: 16px; max-width: 60em; }
.page-body { padding: 40px 0 64px; }
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.layout__aside { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 20px; }
.content { font-size: 16px; line-height: 1.7; color: var(--ink-2); overflow-wrap: anywhere; }
.content h2, .content h3, .content h4 { color: var(--navy-900); margin: 1.5em 0 0.6em; }
.content h2 { font-size: 24px; }
.content h3 { font-size: 20px; }
.content h4 { font-size: 17px; }
.content p, .content ul, .content ol { margin: 0 0 1em; }
.content ul { padding-left: 1.2em; list-style: disc; }
.content ol { padding-left: 1.2em; list-style: decimal; }
.content li { margin-bottom: 0.35em; }
.content a { color: var(--blue-dark); text-decoration: underline; text-underline-offset: 2px; }
.content img { border-radius: var(--r-sm); margin: 1em 0; }
.content .wp-block-gallery, .content .blocks-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 1.5em 0; }
.content .wp-block-gallery figure, .content .wp-block-image { margin: 0; }
.content .wp-block-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.content iframe { width: 100%; aspect-ratio: 16 / 9; height: auto; border-radius: var(--r-sm); margin: 1em 0; }
.content blockquote { margin: 1.5em 0; padding: 18px 22px 18px 52px; position: relative; background: var(--bg); border-radius: var(--r-sm); color: var(--ink); }
.content blockquote::before { content: "\201C"; position: absolute; left: 18px; top: 8px; font-family: var(--font-head); font-size: 44px; line-height: 1; color: var(--blue); opacity: 0.6; }
.table-wrap { overflow-x: auto; margin: 1em 0; -webkit-overflow-scrolling: touch; }
.content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.content th, .content td { padding: 10px 14px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.content th, .content tr:first-child td:first-child { font-weight: 600; }
.content tr:nth-child(even) td { background: var(--bg); }
.content thead th, .content tr:first-child th { background: var(--navy-800); color: #fff; border-color: var(--navy-700); }
.content strong { color: var(--navy-900); }
.aside-card { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 24px; box-shadow: 0 2px 8px rgba(11, 27, 51, 0.08); }
.aside-card__title { font-size: 18px; margin-bottom: 12px; }
.aside-card .contact-list { display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: flex-start; gap: 10px; }
.contact-list .icon { color: var(--blue); margin-top: 2px; }
.contact-list a { font-weight: 600; color: var(--navy-900); }
.contact-list a:hover { color: var(--blue-dark); }
.aside-card--dark { background: linear-gradient(160deg, var(--navy-700), var(--blue)); color: #fff; }
.aside-card--dark .aside-card__title { color: #fff; }
.aside-card--dark p { color: rgba(255, 255, 255, 0.85); font-size: 14px; }
.contacts-grid { gap: 14px; }
.contact-tile { display: flex; flex-direction: column; gap: 6px; min-width: 0; overflow-wrap: anywhere; padding: 18px; border-radius: var(--r-sm); background: var(--bg); font-size: 15px; color: var(--ink-2); }
.contact-tile > .icon { width: 26px; height: 26px; color: var(--blue); margin-bottom: 4px; }
.contact-tile__label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.contact-tile a { font-weight: 700; color: var(--navy-900); }
.contact-tile a:hover { color: var(--blue-dark); }
.contact-tile .social__link { background: var(--navy-900); }
.map-panel iframe { display: block; width: 100%; height: 360px; border: 0; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.subcats a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 14px; font-weight: 500; transition: background 0.2s; }
.subcats a:hover { background: var(--blue); }
.subcats a .count { opacity: 0.6; font-size: 12px; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; color: var(--on-dark-muted); font-size: 14px; }
.toolbar .woocommerce-ordering select { min-height: 42px; padding: 0 36px 0 14px; border-radius: var(--r-btn); border: 1.5px solid var(--line-dark); background: var(--navy-800) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b8d6' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; color: #fff; -webkit-appearance: none; appearance: none; }
.term-description { margin-top: 40px; }
.term-description .panel { max-width: 100%; }

/* Товар */
.product-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
.gallery { display: grid; gap: 12px; }
.gallery__main { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-card); overflow: hidden; background: #fff; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.gallery__main .badge { z-index: 2; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; padding: 8px; border-radius: 50%; background: rgba(11, 27, 51, 0.7); color: #fff; display: inline-flex; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 96px; height: 72px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: #fff; transition: border-color 0.2s; }
.gallery__thumb.is-active { border-color: var(--blue); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-summary { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 28px; box-shadow: 0 2px 8px rgba(11, 27, 51, 0.08); }
.product-summary__title { font-size: 28px; color: var(--navy-900); margin-bottom: 12px; }
.product-summary__cats { font-size: 13px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.product-summary__cats a { color: var(--blue-dark); }
.product-summary .price { font-size: 30px; display: block; margin-bottom: 18px; }
.product-summary .price--request { font-size: 20px; }
.product-summary__actions { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
.product-summary__perks { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.product-summary__perks li { display: flex; align-items: center; gap: 10px; }
.product-summary__perks .icon { color: var(--blue); }
.product-desc { margin-top: 40px; }
.product-desc__title { font-size: 24px; color: var(--navy-900); margin-bottom: 18px; }
.product-desc .content ul li::marker { color: var(--blue); }

/* Списки записей (города, отзывы, поиск) */
.post-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: #fff; color: var(--ink); border-radius: var(--r-card); }
.post-card > a img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.post-card__title { font-family: var(--font-body); font-size: 16px; font-weight: 700; }
.post-card__title a:hover { color: var(--blue-dark); }
.post-card__excerpt { font-size: 14px; color: var(--ink-2); }
.post-card__meta { font-size: 12px; color: var(--muted); }
.city-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px 24px; }
.city-grid a { display: flex; align-items: center; gap: 8px; padding: 8px 0; color: var(--on-dark-muted); }
.city-grid a:hover { color: #fff; }
.city-grid .icon { color: var(--blue); }
.alpha { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.alpha span { padding: 4px 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); font-weight: 700; font-size: 13px; }
.error-page { text-align: center; padding: 80px 0; }
.error-page__code { font-family: var(--font-head); font-size: 96px; font-weight: 800; color: var(--blue); line-height: 1; }
.error-page p { color: var(--on-dark-muted); font-size: 18px; margin: 12px 0 24px; }

/* WooCommerce служебные страницы (корзина, оформление, кабинет) */
.wc-page { background: #fff; color: var(--ink); border-radius: var(--r-card); padding: 32px; }
.wc-page .woocommerce-message, .wc-page .woocommerce-info, .wc-page .woocommerce-error { border-top-color: var(--blue); }
.wc-page a { color: var(--blue-dark); }
.wc-page .button { background: var(--blue); color: #fff; border-radius: var(--r-btn); }

/* ---------- Адаптив ---------- */
@media (max-width: 1339px) {
	.slider__btn--prev { left: 6px; }
	.slider__btn--next { right: 6px; }
}
/* Верхняя строка с двумя номерами: второе преимущество уступает место номерам (контейнер 1280 не вмещает всё) */
.topbar--phones-2 .topbar__features .topbar__adv--2 { display: none; }
@media (max-width: 1279px) {
	.grid--cats { grid-template-columns: repeat(4, 1fr); }
	.hero__title { font-size: 40px; }
	.cities, .city-grid { grid-template-columns: repeat(4, 1fr); }
	.mega__cols { grid-template-columns: repeat(3, 1fr); }
	.topbar__features .topbar__nav { display: none; }
	.topbar--phones-2 .topbar__features .topbar__adv { display: none; }
	.nav__link { padding: 10px 9px; font-size: 14px; }
}
/* Бренды: на узком ноутбуке плитки плотнее, ниже 1024 сетка по 3 (или по 2), чтобы не было пустых мест */
@media (max-width: 1279px) { .brands { gap: 12px; } .brands__item { padding: 10px 8px; } .brands__name { font-size: 14px; } }
@media (max-width: 1023px) { .brands { grid-template-columns: repeat(var(--brands-cols-m, 3), minmax(0, 1fr)); } .brands__name { font-size: 17px; } }

/* Узкие ноутбуки и планшет в альбоме: шапка компактнее, чтобы меню, мессенджеры и поиск помещались */
@media (max-width: 1179px) {
	.mainbar__inner { gap: 16px; }
	.mainbar .logo__slogan { display: none; }
	.nav__link { padding: 10px 7px; font-size: 13px; }
	.header-social .social__link, .header-social .social__link--max img { width: 34px; height: 34px; }
}
@media (max-width: 1023px) {
	:root { --header-h: 64px; }
	.hero__bg img { transform: none; object-position: 42% 50%; }
	.nav { display: none; }
	.burger, .mainbar__phone { display: inline-flex; }
	.header-social .social__link, .header-social .social__link--max img { width: 34px; height: 34px; }
	.mainbar__inner { gap: 8px; }
	.logo { margin-right: auto; }
	.topbar__features .topbar__adv { display: none; }
	.topbar__features { justify-content: flex-start; }
	.topbar--phones-2 .topbar__link { display: none; }
	.hero__inner { grid-template-columns: 1fr; gap: 32px; }
	.hero { min-height: 0; }
	.hero__form .form { max-width: 520px; }
	.grid--cats, .grid--products { grid-template-columns: repeat(3, 1fr); }
	.slider__item { flex-basis: calc((100% - 20px) / 2); }
	.slider--reviews .slider__item { flex-basis: calc((100% - 20px) / 2); }
	.slider__btn--prev { left: -12px; }
	.slider__btn--next { right: -12px; }
	.about { grid-template-columns: 1fr; }
	.videos { grid-template-columns: repeat(2, 1fr); }
	.cta__inner { grid-template-columns: 1fr; }
	.cities, .city-grid { grid-template-columns: repeat(3, 1fr); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
	.layout { grid-template-columns: 1fr; }
	.layout__aside { position: static; grid-template-columns: repeat(2, 1fr); }
	.product-hero { grid-template-columns: 1fr; }
	.post-list { grid-template-columns: repeat(2, 1fr); }
	.cities-list { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
	.grid--3 { grid-template-columns: repeat(2, 1fr); }
	:root { --gutter: 16px; --topbar-h: 0px; }
	.topbar { display: none; }
	.section { padding: 44px 0; }
	.section__title { font-size: 22px; }
	.hero { padding: 36px 0 40px; }
	.hero__title { font-size: 30px; }
	.hero__subtitle { font-size: 17px; }
	.hero__actions .btn { flex: 1 1 100%; }
	.hero__features { grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
	.hero__form .form { padding: 22px; }
	.grid--cats, .grid--products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.card__body { padding: 12px; gap: 8px; }
	.card__title { font-size: 14px; }
	.card__actions { flex-direction: column; }
	.card--custom { grid-column: span 2; }
	.brands { gap: 10px; }
	.brands__item { height: 64px; padding: 8px 10px; }
	.brands__item img { max-height: 40px; }
	.brands__name { font-size: 14px; }
	.slider__item, .slider--reviews .slider__item { flex-basis: 84%; }
	.slider__btn { display: none; }
	.mosaic { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.about__photos { grid-template-columns: repeat(2, 1fr); }
	.videos { grid-template-columns: 1fr; }
	.cta { padding: 48px 0; }
	.cta__title { font-size: 26px; }
	.form--inline .form__fields { grid-template-columns: 1fr; }
	.form--inline .form__submit { width: 100%; }
	.cities, .city-grid { grid-template-columns: repeat(2, 1fr); gap: 4px 12px; }
	.footer__grid { grid-template-columns: 1fr; gap: 28px; }
	.footer__bottom { flex-direction: column; }
	.page-head__title { font-size: 26px; }
	.page-body { padding: 28px 0 44px; }
	.panel { padding: 20px; }
	.layout__aside { grid-template-columns: 1fr; }
	.product-summary { padding: 20px; }
	.product-summary__title { font-size: 22px; }
	.product-summary__actions { grid-template-columns: 1fr; }
	.post-list { grid-template-columns: 1fr; }
	.modal { padding: 12px; align-items: flex-end; }
	.modal__box { padding: 24px 20px; max-height: calc(100vh - 24px); }
	.cities-list { grid-template-columns: repeat(2, 1fr); }
	.cookie { left: 12px; right: 100px; bottom: 12px; max-width: none; flex-direction: column; align-items: stretch; padding: 14px; }
	.totop { right: 18px; bottom: 140px; width: 44px; height: 44px; }
	.lightbox__nav { width: 40px; height: 40px; }
	.lightbox__nav--prev { left: 8px; }
	.lightbox__nav--next { right: 8px; }
	.content .wp-block-gallery, .content .blocks-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 479px) {
	.grid--3 { grid-template-columns: 1fr; }
	.grid--cats, .grid--products { grid-template-columns: 1fr; }
	.card--custom { grid-column: auto; }
	.hero__features { grid-template-columns: 1fr; }
	.cities, .city-grid { grid-template-columns: 1fr; }
	.mainbar .logo__text { display: none; }
}
