/* ==========================================================================
   Промтехэкспорт — основные стили
   ========================================================================== */

@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-cyrillic-400-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-cyrillic-500-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-cyrillic-700-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/roboto-latin-400-normal.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: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/roboto-latin-500-normal.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: "Roboto"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/roboto-latin-700-normal.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 {
	--red: #f44a4a;
	--red-hover: #c53838;
	--red-text: #c53838; /* красный для текста на светлом фоне (контраст 5.2:1) */
	--red-hero: #f5363f;
	--dark: #272727;
	--black: #0a0a0a;
	--bg: #f5f5f5;
	--white: #fff;
	--grey: #f0f0f0;
	--grey-2: #eaeaea;
	--grey-3: #dedede;
	--line: #e6e6e6;
	--text: #0a0a0a;
	--muted: #636363;
	--muted-2: #6b6b6b;
	--pink: #ffdcdc;
	--beige: #f2e0d2;
	--green-bg: #e2f5df;
	--green: #2f8f3a;
	--r-sm: 12px;
	--r: 24px;
	--r-lg: 40px;
	--gap: 16px;
	--container: 1500px;
	--pad: 24px;
	--shadow: 0 20px 60px rgba(0, 0, 0, .12);
	--font: "Roboto", -apple-system, "Segoe UI", Arial, sans-serif;
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--black); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.screen-reader-text { 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: fixed; top: -100px; left: 16px; z-index: 1000; padding: 12px 18px; background: var(--white); border-radius: var(--r-sm); box-shadow: var(--shadow); }
.skip-link:focus { top: 16px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
mark.pte-missing { background: #fff1b8; padding: 0 4px; border-radius: 4px; }

.container { width: min(var(--container), 100% - var(--pad) * 2); margin-inline: auto; }

/* Обёртка страницы со скруглением над тёмным подвалом */
.page-wrap { position: relative; z-index: 1; background: var(--bg); border-radius: 0 0 96px 96px; min-height: 60vh; padding-bottom: 96px; }
.site-main { display: block; outline: none; }

/* ---------- Кнопки ---------- */
.btn { --h: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: var(--h); padding: 0 24px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 16px; font-weight: 400; line-height: 1.2; text-align: center; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 44px; padding: 0 20px; font-size: 15px; }
.btn--block { display: flex; width: 100%; }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-hover); }
.btn--grey { background: var(--grey); color: #333; }
.btn--grey:hover, .card:hover .btn--grey { background: var(--red); color: var(--white); }
.btn--white { background: var(--white); color: var(--text); }
.btn--white:hover { background: var(--black); color: var(--white); }
.btn--beige { background: var(--beige); color: var(--text); font-weight: 500; }
.btn--beige:hover { background: #ead0bd; }
.btn--outline { border-color: var(--text); background: transparent; }
.btn--outline:hover { background: var(--text); color: var(--white); }
.btn--ghost { background: transparent; color: inherit; }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-btn { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: var(--r-sm); background: var(--grey); color: var(--text); transition: background .2s, color .2s; flex: none; }
.icon-btn:hover { background: var(--grey-3); }
.icon-btn--dark { background: #8a8a8a; color: var(--white); }
.icon-btn--dark:hover { background: var(--dark); }

.badge { display: inline-flex; align-items: center; min-height: 32px; padding: 4px 14px; border-radius: 10px; font-size: 14px; line-height: 1.2; }
.badge--pink { background: #f8d1ea; color: #b63c8a; }
.badge--green { background: var(--green-bg); color: var(--green); }

/* ---------- Шапка ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 24px; padding-bottom: 12px; background: linear-gradient(var(--bg) 70%, rgba(245, 245, 245, 0)); }
.admin-bar .site-header { top: 32px; }
.header { position: relative; display: flex; align-items: center; gap: 8px; min-height: 80px; padding: 12px 12px 12px 24px; background: var(--white); border-radius: var(--r); }
.header__logo { flex: none; margin-right: 20px; }
.header__logo .logo-full { width: 208px; height: auto; }
.header__logo .logo-symbol { display: none; width: 36px; }
.header__catalog { flex: none; gap: 12px; }
.burger { position: relative; display: inline-flex; flex-direction: column; justify-content: space-between; width: 16px; height: 12px; }
.burger i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.header__catalog[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.header__catalog[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.header__catalog[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.header__search { flex: 1 1 auto; max-width: 440px; }
.header__contacts { display: flex; align-items: center; gap: 12px; margin-left: auto; padding: 0 24px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.header__phone { font-size: 18px; font-weight: 500; white-space: nowrap; }
.header__phone:hover { color: var(--red); }
.header__actions { display: flex; align-items: center; gap: 8px; padding-left: 12px; }
.header__call { display: none; }
.header__request .icon { display: none; }

.messengers { display: flex; align-items: center; gap: 8px; }
.messenger { display: block; width: 32px; height: 32px; border-radius: 50%; transition: transform .2s var(--ease), opacity .2s; }
.messenger img { width: 100%; height: 100%; }
.messenger:hover { transform: translateY(-2px); opacity: .8; }
.messengers--big .messenger { width: 44px; height: 44px; }

/* ---------- Поиск ---------- */
.sform { position: relative; display: flex; align-items: center; height: 56px; background: var(--grey-2); border-radius: var(--r-sm); }
.search__icon { position: absolute; left: 18px; color: var(--text); pointer-events: none; }
.search__input { width: 100%; height: 100%; padding: 0 52px 0 56px; border: 1px solid transparent; border-radius: inherit; background: transparent; font-size: 16px; outline: none; -webkit-appearance: none; appearance: none; }
.search__input::placeholder { color: var(--muted-2); }
.search__input:focus { border-color: var(--grey-3); background: var(--white); }
.search__input:focus-visible, .sform--big .search__input:focus-visible { border-color: var(--red); box-shadow: 0 0 0 1px var(--red) inset; }
.search__input::-webkit-search-cancel-button { display: none; }
.search__submit { position: absolute; right: 6px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--muted); transition: background .2s, color .2s; }
.search__submit:hover { background: var(--red); color: var(--white); }
.search__dropdown { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 60; min-width: min(480px, 92vw); max-height: min(70vh, 560px); overflow: auto; padding: 8px; background: var(--white); border-radius: 20px; box-shadow: var(--shadow); }
.search__group { padding: 10px 12px 6px; font-size: 13px; color: var(--muted); }
.search__item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm); }
.search__item[aria-selected="true"], .search__item:hover { background: var(--grey); }
.search__item img { flex: none; width: 56px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.search__item b { display: block; font-weight: 500; line-height: 1.3; }
.search__item mark { background: none; color: var(--red); }
.search__item small { display: block; color: var(--muted); font-size: 13px; }
.search__cat { display: inline-flex; margin: 2px 4px 6px 12px; padding: 6px 12px; border-radius: 999px; background: var(--grey); font-size: 14px; }
.search__cat:hover, .search__cat[aria-selected="true"] { background: var(--red); color: var(--white); }
.search__all { display: block; margin-top: 4px; padding: 12px; border-top: 1px solid var(--line); color: var(--red); font-weight: 500; }
.search__none { padding: 16px 12px; color: var(--muted); }
.search__none button { margin-top: 10px; }
.sform--big { max-width: 720px; height: 64px; margin: 0 0 24px; background: var(--white); }
.sform--big .search__input:focus { border-color: var(--grey-3); }

/* ---------- Меню каталога ---------- */
.catalog-menu { position: absolute; top: calc(100% - 4px); left: 0; right: 0; z-index: 40; }
.catalog-menu__panel { position: relative; display: grid; grid-template-columns: 280px 1fr 340px; gap: 24px; min-height: 380px; padding: 40px 48px; background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); animation: drop .25s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.catalog-menu__head { display: none; }
.cm-cats { grid-column: 1; display: flex; flex-direction: column; gap: 2px; max-height: 60vh; overflow: auto; }
.cm-cat__row { display: flex; align-items: center; }
.cm-cat__link { flex: 1; padding: 6px 0; color: var(--muted-2); font-size: 15px; line-height: 1.35; transition: color .15s; }
.cm-cat.is-active > .cm-cat__row .cm-cat__link, .cm-cat__link:hover { color: var(--text); }
.cm-cat.is-active > .cm-cat__row .cm-cat__link { font-weight: 500; }
.cm-cat__toggle { display: none; }
.cm-sub { position: absolute; top: 40px; left: calc(48px + 280px + 24px); right: calc(48px + 340px + 24px); bottom: 40px; display: none; flex-direction: column; overflow: auto; }
.cm-cat.is-active .cm-sub { display: flex; }
.cm-sub ul { display: grid; grid-template-rows: repeat(8, auto); grid-auto-flow: column; grid-auto-columns: minmax(220px, max-content); gap: 2px 56px; }
.cm-sub li a { display: block; padding: 6px 0; font-size: 15px; line-height: 1.35; }
.cm-sub__back { display: none; }
.cm-sub li a:hover { color: var(--red); }
.cm-sub__all { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; color: var(--red); font-weight: 500; }
.cm-sub__empty { max-width: 360px; margin-bottom: 16px; color: var(--muted); }
.cm-sub .btn { align-self: flex-start; }
.catalog-menu__promo { grid-column: 3; position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 32px 28px; overflow: hidden; background: var(--grey-3); border-radius: var(--r); }
.catalog-menu__promo-title { max-width: 260px; font-size: 24px; font-weight: 500; line-height: 1.2; }
.catalog-menu__promo-sub { display: block; margin-top: 6px; color: var(--muted); }
.catalog-menu__promo-link { position: relative; z-index: 1; display: block; }
.catalog-menu__promo-link:hover .catalog-menu__promo-title { color: var(--red); }
.catalog-menu__nav { right: 20px; bottom: 20px; }
.catalog-menu__nav .slider-nav__btn { background: #555; }
.catalog-menu__nav .slider-nav__btn:hover { background: var(--dark); }
.catalog-menu__promo img { position: absolute; left: 24px; bottom: -40px; width: 250px; transition: opacity .25s, transform .5s var(--ease); }
.catalog-menu__promo:hover img { transform: translateY(-6px); }

/* ---------- Слайдер на главной ---------- */
.hero { position: relative; margin-top: 12px; border-radius: var(--r-lg); overflow: hidden; }
.hero__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.hero__track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; display: flex; align-items: center; min-height: 176px; padding: 32px 80px; overflow: hidden; scroll-snap-align: start; color: var(--white); background: var(--dark); isolation: isolate; }
.slide--split::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--red-hero); clip-path: polygon(64.5% 0, 100% 0, 100% 100%, 74% 100%); }
.slide--red { background: var(--red-hero); }
.slide--light { background: var(--pink); color: var(--text); }
.slide__text { position: relative; z-index: 2; max-width: 52%; }
.slide__title { font-size: 36px; font-weight: 500; line-height: 1.15; letter-spacing: -.01em; }
.slide__sub { margin-top: 6px; font-size: 20px; color: rgba(255, 255, 255, .45); }
.slide--red .slide__sub { color: rgba(255, 255, 255, .7); }
.slide--light .slide__sub { color: var(--muted); }
.slide__btn { margin-top: 18px; }
.slide__img { position: absolute; z-index: 1; left: 51%; bottom: -24%; width: auto; height: 100%; max-width: none; pointer-events: none; }
.slider-nav { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 6px; }
.slider-nav__btn { display: grid; place-items: center; width: 40px; height: 36px; border: 0; border-radius: 12px; background: rgba(110, 20, 24, .65); color: var(--white); transition: background .2s; }
.slider-nav__btn:hover { background: rgba(60, 10, 12, .9); }
.hero__dots { display: none; }

/* ---------- Секции ---------- */
.section { margin-top: 48px; }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.section__title { font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.section__text { margin-top: 6px; color: var(--muted); }
.section__head .section__text { max-width: 640px; }
.section__link { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 15px; font-weight: 500; }
.section__link:hover { color: var(--red); }

/* ---------- Каталог списком на главной (как dlplast.com) ---------- */
/* Раскладка каталога как на dlplast.com: слева разделы, справа содержимое (товар, список, текст) */
.catalog-layout { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 12px; }
.catalog-layout--home { margin-top: 48px; }
.catalog-layout__side { position: sticky; top: 124px; max-height: calc(100vh - 140px); overflow: auto; padding-bottom: 8px; scrollbar-width: thin; }
.admin-bar .catalog-layout__side { top: 156px; }
.catalog-layout__main { min-width: 0; transition: opacity .2s; }
.catalog-layout__main.is-loading { opacity: .4; pointer-events: none; }
.catalog-layout__main > .breadcrumbs:first-child { margin-top: 0; }
.catalog-layout__main .page-head { margin-top: 12px; }
.catalog-layout__main .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.catalog-layout__main .product__order { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px 20px; }
.catalog-layout__main .product__order > .badge { grid-row: 1; }
.catalog-layout__main .product__order-title { font-size: 20px; }
.catalog-layout__main .product__order > .muted { display: none; }
.catalog-layout__main .product__order .btn--block { width: auto; }
.catalog-layout__main .product__contact { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; padding-top: 14px; }
.catalog-layout__main .product__contact .muted { margin: 0; }
.catalog-layout__main .product__phone { margin: 0; }
.catalog-layout__main .product-info { grid-template-columns: 1fr; margin-top: 32px; }
.catalog-layout__main .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.catalog-layout__main .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.catalog-layout__main .card-grid--scroll { grid-template-columns: none; grid-auto-columns: calc((100% - var(--gap) * 2) / 3); }
.catalog-layout__main .cta { padding: 32px 40px; }
.catalog-layout__main .cta__img { display: none; }
.cat-acc__list a.is-current { color: var(--red-text); font-weight: 500; }
.catalog-layout__main .product-info + .sizes { margin-top: 32px; }
.cat-acc { display: flex; flex-direction: column; gap: 8px; }
.cat-acc__title { margin-bottom: 12px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.cat-acc__item { background: var(--white); border-radius: 16px; }
.cat-acc__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 14px 18px 14px 22px; font-size: 16px; font-weight: 500; line-height: 1.3; cursor: pointer; list-style: none; border-radius: inherit; transition: background .2s, color .2s; }
.cat-acc__head::-webkit-details-marker { display: none; }
.cat-acc__head:hover { color: var(--red); }
.cat-acc__sign { position: relative; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--grey); transition: background .2s; }
.cat-acc__sign::before, .cat-acc__sign::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; border-radius: 2px; background: currentColor; transition: transform .25s var(--ease); }
.cat-acc__sign::after { transform: rotate(90deg); }
.cat-acc__item[open] .cat-acc__sign { background: var(--red); color: var(--white); }
.cat-acc__item[open] .cat-acc__sign::after { transform: rotate(0deg); }
.cat-acc__item[open] .cat-acc__head { color: var(--text); }
.cat-acc__body { padding: 0 22px 18px; }
.cat-acc__list { display: flex; flex-direction: column; gap: 2px; padding-top: 2px; border-top: 1px solid var(--line); }
.cat-acc__list li { position: relative; padding-left: 16px; }
.cat-acc__list li::before { content: ""; position: absolute; left: 0; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--red); }
.cat-acc__list a { display: block; padding: 6px 0; font-size: 15px; color: #333; }
.cat-acc__list a:hover { color: var(--red); }
.cat-acc__empty { padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.cat-acc__links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 12px; font-size: 14px; }
.cat-acc__links a, .cat-acc__req { padding: 0; border: 0; background: none; color: var(--red); font-weight: 500; }
.cat-acc__links a:hover, .cat-acc__req:hover { color: var(--red-hover); }
.cat-acc__req { color: var(--muted); font-size: 14px; }
.cat-acc__all { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: 8px; padding: 6px 4px; font-weight: 500; }
.cat-acc__all:hover { color: var(--red); }
.home-about { padding-top: 4px; color: #4a4a4a; font-size: 15px; line-height: 1.65; }
.home-about h2:first-child { margin-top: 0; color: var(--text); font-size: 26px; }

/* ---------- Категории ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }
.cat-card { position: relative; display: flex; flex-direction: column; min-height: 300px; padding: 28px; background: var(--white); border-radius: var(--r); transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.cat-card:hover { box-shadow: 0 12px 40px rgba(0, 0, 0, .06); }
.cat-card__head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.cat-card__num { display: inline-grid; place-items: center; min-width: 48px; height: 32px; padding: 0 10px; border-radius: 10px; background: var(--grey); color: var(--muted); font-size: 14px; font-weight: 500; transition: background .2s, color .2s; }
.cat-card:hover .cat-card__num { background: var(--red); color: var(--white); }
.cat-card__img { width: 120px; height: 72px; object-fit: contain; }
.cat-card__title { font-size: 22px; font-weight: 500; line-height: 1.25; }
.cat-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.cat-card__title a:hover { color: var(--red); }
.cat-card__desc { margin-top: 8px; color: var(--muted); font-size: 15px; }
.cat-card__list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; margin-top: 16px; }
.cat-card__list a { display: inline-block; padding: 3px 0; font-size: 15px; color: #3a3a3a; }
.cat-card__list a:hover { color: var(--red); }
.cat-card__empty { margin-top: 16px; color: var(--muted-2); font-size: 15px; }
.cat-card__more { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin-top: auto; padding: 20px 0 0; border: 0; background: none; color: var(--red-text); font-size: 15px; font-weight: 500; }
.cat-card__more:hover { color: var(--black); }
.cat-card__more .icon { transition: transform .2s var(--ease); }
.cat-card__more:hover .icon { transform: translateX(4px); }

/* ---------- Карточки серий ---------- */
.card-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); }
.card { display: flex; flex-direction: column; gap: 4px; }
.card__body { flex: 1; display: flex; flex-direction: column; padding: 0 0 24px; background: var(--white); border-radius: var(--r); overflow: hidden; }
.card__media { position: relative; display: grid; place-items: center; height: 220px; padding: 16px; }
.card__media img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.card__media img.is-placeholder { opacity: .9; }
.card:hover .card__media img { transform: scale(1.04); }
.card__badge { position: absolute; top: 12px; right: 12px; }
.card__title { padding: 0 20px; font-size: 16px; line-height: 1.4; }
.card:hover .card__title { color: var(--red); }
.card__sub { margin-top: 6px; padding: 0 20px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.card__specs { display: flex; flex-direction: column; margin-top: 8px; padding: 0 20px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 60px; padding: 8px 12px 8px 20px; background: var(--white); border-radius: var(--r); }
.card__price { font-size: 15px; font-weight: 500; }
.card-grid--scroll { grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gap) * 4) / 5); grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.card-grid--scroll::-webkit-scrollbar { display: none; }
.card-grid--scroll > * { scroll-snap-align: start; }

/* ---------- Баннеры ---------- */
.promo { position: relative; display: flex; align-items: center; margin-top: 48px; overflow: hidden; border-radius: var(--r-lg); isolation: isolate; }
.promo--dark { min-height: 472px; padding: 64px; background: #262626; color: var(--white); }
.promo--dark .promo__img { position: absolute; z-index: -1; top: 0; right: 0; width: auto; height: 100%; max-width: none; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%); }
.promo--light { min-height: 176px; padding: 32px 64px; background: var(--pink); }
.promo--light .promo__img { position: absolute; left: 52%; bottom: -26%; height: 116%; width: auto; max-width: none; }
.promo__text { position: relative; z-index: 1; max-width: 560px; }
.promo__title { font-size: 48px; font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
.promo--light .promo__title { font-size: 36px; }
.promo__sub { margin-top: 8px; font-size: 22px; color: rgba(255, 255, 255, .4); }
.promo--light .promo__sub { font-size: 20px; color: var(--muted); }
.promo__btn { margin-top: 28px; min-width: 150px; }
.promo--light .promo__btn { margin-top: 18px; }

.cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 48px; padding: 40px 56px; overflow: hidden; background: var(--pink); border-radius: var(--r-lg); isolation: isolate; }
.cta__text { position: relative; z-index: 1; max-width: 520px; }
.cta__title { font-size: 30px; font-weight: 500; line-height: 1.2; }
.cta__sub { margin-top: 8px; color: #6d6d6d; }
.cta__actions { position: relative; z-index: 1; display: flex; align-items: center; gap: 24px; }
.cta__phone { font-size: 20px; font-weight: 500; }
.cta__phone:hover { color: var(--red); }
.cta__img { position: absolute; z-index: 0; left: 46%; bottom: -40%; width: 330px; opacity: .95; pointer-events: none; }

/* ---------- Текст ---------- */
.seo-text { max-width: 1020px; margin-top: 64px; color: #6f6f6f; font-size: 14px; line-height: 1.55; }
.seo-text h2 { margin-bottom: 16px; color: #555; font-size: 15px; font-weight: 400; }
.seo-text p + p { margin-top: 12px; }
.entry { font-size: 16px; line-height: 1.6; }
.entry > * + * { margin-top: 1em; }
.entry h2 { margin-top: 1.6em; font-size: 24px; line-height: 1.25; font-weight: 700; }
.entry h3 { margin-top: 1.4em; font-size: 20px; font-weight: 700; }
.entry ul, .entry ol { padding-left: 1.3em; }
.entry ul { list-style: disc; }
.entry ol { list-style: decimal; }
.entry li + li { margin-top: .35em; }
.entry a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: var(--r-sm); }
.entry table { width: 100%; border-collapse: collapse; }
.entry td, .entry th { padding: 10px; border: 1px solid var(--line); }
.seo-text.entry { font-size: 14px; }
.seo-text a { color: inherit; }

/* ---------- Заголовки страниц ---------- */
.breadcrumbs { margin-top: 12px; font-size: 13px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; }
.breadcrumbs li { color: var(--muted-2); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--red); }
.breadcrumbs [aria-current] { color: var(--text); }
.page-head { margin: 20px 0 32px; }
.page-title { font-size: 32px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.page-head--series .page-title { max-width: 900px; font-weight: 400; font-size: 30px; }
.page-lead { max-width: 760px; margin-top: 10px; color: var(--muted); font-size: 17px; }
.text-page { max-width: 1040px; margin-top: 20px; }
.text-page .page-title { margin-bottom: 32px; }
.list-count { margin: -8px 0 16px; color: var(--muted); font-size: 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: var(--white); font-size: 15px; transition: background .2s, color .2s; }
.chip span { color: var(--muted); font-size: 13px; }
.chip:hover { background: var(--red); color: var(--white); }
.chip:hover span { color: rgba(255, 255, 255, .8); }

/* ---------- Пустые состояния ---------- */
.empty { display: flex; flex-direction: column; align-items: center; max-width: 560px; margin: 32px auto; padding: 32px 0; text-align: center; }
.empty--page { min-height: 50vh; justify-content: center; }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 20px; border-radius: 16px; background: var(--grey-3); background: #e9e9e9; }
.empty__code { font-size: 120px; font-weight: 700; line-height: 1; color: var(--red); letter-spacing: -.04em; }
.empty__title { font-size: 26px; font-weight: 700; line-height: 1.25; }
.empty__text { margin: 10px 0 24px; color: #4a4a4a; font-size: 17px; }
.empty .sform--big { width: 100%; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- Пагинация ---------- */
.pagination { margin-top: 32px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination .page-numbers { display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 12px; border-radius: var(--r-sm); background: var(--white); }
.pagination .page-numbers.current { background: var(--red); color: var(--white); }
.pagination a.page-numbers:hover { background: var(--grey-3); }

/* ---------- Серия ---------- */
.panel { padding: 28px; background: var(--white); border-radius: var(--r); }
.panel__title { margin-bottom: 18px; font-size: 16px; font-weight: 700; }
.product { display: grid; grid-template-columns: minmax(0, 514fr) minmax(0, 300fr) minmax(0, 405fr); gap: var(--gap) 20px; align-items: start; }
.product__gallery { min-width: 0; }
.product__main { position: relative; display: grid; place-items: center; aspect-ratio: 514 / 457; padding: 32px; background: #efefef; border-radius: var(--r); overflow: hidden; }
.product__main img { width: 100%; height: 100%; object-fit: contain; }
.product__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.product__badge { position: absolute; top: 16px; right: 16px; z-index: 1; }
.product__thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; }
.product__thumb { flex: none; width: 76px; height: 64px; padding: 4px; border: 2px solid transparent; border-radius: var(--r-sm); background: #efefef; }
.product__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product__thumb.is-active { border-color: var(--red); }
.product__specs { min-height: 100%; }
.specs { display: flex; flex-direction: column; gap: 14px; }
.specs dt { color: var(--muted-2); font-size: 14px; }
.specs dd { margin-top: 3px; font-size: 15px; line-height: 1.4; }
.specs--row > div { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.specs--row dd { margin: 0; }
.requisites__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.requisites__actions .btn { gap: 8px; }
.entry .requisites { margin: 24px 0; }
.entry .requisites a.btn { color: inherit; text-decoration: none; }
.entry .requisites dl { margin: 0; }
.product__order { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.product__order-title { font-size: 26px; font-weight: 500; line-height: 1.2; }
.product__order .muted { font-size: 15px; }
.product__contact { width: 100%; margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line); }
.product__contact .muted { font-size: 14px; }
.product__phone { display: inline-block; margin: 2px 0 12px; font-size: 20px; font-weight: 500; }
.product__phone:hover { color: var(--red); }

.sizes .section__head { align-items: flex-end; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-sm); -webkit-overflow-scrolling: touch; }
.sizes__note { margin-top: 6px; color: var(--muted); font-size: 14px; font-style: italic; }
/* Таблица как на dlplast.com: сетка, шапка с переносами, «зебра», первая колонка жирная */
.sizes-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.sizes-table th, .sizes-table td { padding: 12px 14px; text-align: left; white-space: nowrap; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sizes-table tr > :last-child { border-right: 0; }
.sizes-table thead th { position: sticky; top: 0; z-index: 1; padding-top: 14px; padding-bottom: 14px; background: var(--white); color: #3a3a3a; font-size: 14px; font-weight: 400; line-height: 1.3; white-space: normal; min-width: 88px; vertical-align: bottom; border-bottom: 2px solid #d6d6d6; }
.sizes-table tbody th { font-weight: 700; }
.sizes-table tbody tr:nth-child(odd) { background: #f3f3f3; }
.sizes-table tbody tr:last-child > * { border-bottom: 0; }
.sizes-table tbody tr { transition: background .15s; }
.sizes-table tbody tr:hover { background: #fde9e9; }
.sizes-table tbody tr.is-checked { background: #ffe1e1; }
.sizes-table__check { width: 56px; min-width: 56px !important; padding-right: 0 !important; }
.sizes-bar { position: fixed; left: 50%; bottom: 20px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 22px; background: var(--dark); color: var(--white); border-radius: 18px; box-shadow: var(--shadow); transform: translateX(-50%); animation: up .3s var(--ease); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 12px); } }

.product-info { display: grid; grid-template-columns: minmax(0, 1fr) 405px; gap: 20px; margin-top: 48px; align-items: start; }
.product-info__text { max-width: 880px; }
.product-info__text .section__title { margin-bottom: 16px; }
.product-info > :only-child { grid-column: 1 / -1; }
.docs { display: flex; flex-direction: column; gap: 6px; }
.docs a { display: grid; grid-template-columns: auto 1fr; gap: 0 12px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: var(--grey); }
.docs a:hover { background: var(--grey-3); }
.docs__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--white); color: var(--red); }
.docs__name { font-size: 15px; line-height: 1.3; }
.docs__meta { color: var(--muted); font-size: 13px; }

/* ---------- Чекбокс ---------- */
.checkbox { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; line-height: 1.4; color: #4a4a4a; cursor: pointer; }
.checkbox input { flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #c9c9c9; border-radius: 6px; background: var(--white); -webkit-appearance: none; appearance: none; cursor: pointer; transition: background .15s, border-color .15s; }
.checkbox input:checked { border-color: var(--red); background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checkbox a { color: var(--red-text); text-decoration: underline; }
.checkbox--only { display: inline-flex; }
.checkbox.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 3px rgba(244, 74, 74, .18); }

/* ---------- Формы ---------- */
.request-form { display: flex; flex-direction: column; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .request-form__label { color: var(--muted); font-size: 14px; }
.field label span { color: var(--red); }
.field input, .field textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--r-sm); background: var(--grey); font-size: 16px; outline: none; transition: border-color .2s, background .2s; }
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field textarea:focus { border-color: #cfcfcf; background: var(--white); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--red); background: #fff5f5; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.request-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.request-form__error { padding: 10px 14px; border-radius: var(--r-sm); background: #fff1f1; color: var(--red-hover); font-size: 14px; }
.request-form__sizes { padding: 12px 14px; border-radius: var(--r-sm); background: #fff4f4; }
.request-form__sizes ul { max-height: 120px; margin-top: 6px; overflow: auto; font-size: 14px; }
.request-form__sizes li + li { margin-top: 4px; }
.request-form .btn--block { margin-top: 4px; }
.request-form .btn.is-loading { position: relative; color: transparent; }
.request-form .btn.is-loading::after { content: ""; position: absolute; width: 22px; height: 22px; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--white); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.request-success { display: flex; flex-direction: column; align-items: center; padding: 24px 0 8px; text-align: center; outline: none; }
.request-success__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 16px; border-radius: 50%; background: var(--green-bg); color: var(--green); }
.request-success__title { font-size: 24px; font-weight: 700; }
.request-success__text { margin-top: 8px; color: var(--muted); }

/* ---------- Модальное окно ---------- */
.modal { width: min(560px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--r); background: var(--white); color: var(--text); box-shadow: var(--shadow); overflow: auto; }
.modal::backdrop { background: rgba(10, 10, 10, .55); backdrop-filter: blur(2px); }
.modal[open] { animation: pop .25s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.modal__box { position: relative; padding: 36px 36px 32px; }
.modal__close { position: absolute; top: 16px; right: 16px; }
.modal__title { padding-right: 48px; font-size: 26px; font-weight: 700; line-height: 1.2; }
.modal__text { margin: 8px 0 22px; color: var(--muted); }
body.has-modal { overflow: hidden; }

.lightbox { width: min(1100px, 100% - 32px); max-height: calc(100dvh - 32px); padding: 24px; border: 0; border-radius: var(--r); background: var(--white); overflow: auto; }
.lightbox::backdrop { background: rgba(10, 10, 10, .8); }
.lightbox img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; }
.lightbox__close { position: sticky; top: 0; float: right; z-index: 1; margin: -8px -8px 8px 8px; }
.lightbox__file { margin-top: 16px; }

/* ---------- Сертификаты ---------- */
.certs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cert__img { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 302 / 380; padding: 16px; border: 0; border-radius: var(--r); background: var(--grey-3); background: #dcdcdc; overflow: hidden; cursor: zoom-in; }
.cert__img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--ease); }
.cert__img:hover img { transform: scale(1.03); }
.cert__img--file { cursor: pointer; color: var(--muted); }
.cert__zoom { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--white); opacity: 0; transition: opacity .2s; }
.cert__img:hover .cert__zoom, .cert__img:focus-visible .cert__zoom { opacity: 1; }
.cert__title { margin-top: 12px; font-size: 15px; line-height: 1.35; }
.cert__file { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--red); font-size: 14px; }
.certs + .text-page, .certs + .admin-hint + .text-page { margin-top: 56px; }
.cert__img--empty { cursor: default; background: #dadada; }
.admin-hint { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); background: #fff8d6; font-size: 14px; }

/* ---------- Контакты ---------- */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 24px; align-items: start; }
.contacts__info { display: flex; flex-direction: column; gap: 24px; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 24px; background: var(--white); border-radius: var(--r); }
.contact-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 10px; border-radius: 12px; background: var(--grey); color: var(--red); }
.contact-card__label { color: var(--muted); font-size: 14px; }
.contact-card__value { font-size: 18px; font-weight: 500; line-height: 1.35; }
a.contact-card__value:hover { color: var(--red); }
.contacts__form > .muted { margin: -8px 0 20px; }
.map { margin-top: 32px; overflow: hidden; border-radius: var(--r); }
.map iframe { display: block; width: 100%; height: 440px; border: 0; }
.search-pages { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.search-pages a { display: block; padding: 16px 20px; border-radius: var(--r-sm); background: var(--white); }
.search-pages a:hover { color: var(--red); }

/* ---------- Подвал ---------- */
.site-footer { position: relative; margin-top: -96px; padding: 176px 0 40px; background: var(--black); color: var(--white); }
.footer__brand img { width: 233px; }
.footer__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 200px)) 1fr; gap: 32px; margin-top: 40px; }
.footer__title { margin-bottom: 18px; color: #8a8a8a; font-size: 15px; }
.footer__menu { display: flex; flex-direction: column; gap: 14px; }
.footer__menu a { font-size: 15px; }
.footer__menu a:hover, .footer__link:hover, .footer__phone:hover { color: var(--red); }
.footer__contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; justify-self: center; padding-top: 30px; }
.footer__phone { font-size: 18px; font-weight: 700; }
.footer__phone--2 { font-weight: 500; }
.footer__link { font-size: 15px; }
.footer__text { color: #bdbdbd; font-size: 14px; }
.footer__messengers { margin-bottom: 6px; }
.footer__messengers .messenger { width: 36px; height: 36px; filter: invert(1); }
.footer__contacts { gap: 12px; }
.footer__btn { margin-top: 10px; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; color: #7a7a7a; font-size: 14px; }
.footer__bottom a { color: #8a8a8a; font-size: 13px; }
.page-form { max-width: 640px; margin-top: 32px; }
.footer__bottom a:hover { color: var(--white); }

/* ---------- Cookie ---------- */
.cookie { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: flex; align-items: center; gap: 16px; max-width: 560px; padding: 16px 16px 16px 20px; background: var(--white); border-radius: 18px; box-shadow: var(--shadow); font-size: 14px; animation: up2 .3s var(--ease); }
.cookie a { color: var(--red); text-decoration: underline; }
body.has-modal .cookie, body.has-sizes .cookie { display: none; }
@keyframes up2 { from { opacity: 0; transform: translateY(12px); } }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1440px) {
	.card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.card-grid--scroll { grid-auto-columns: calc((100% - var(--gap) * 3) / 4); }
	.header__search { max-width: 360px; }
}

@media (max-width: 1240px) {
	.header__logo { margin-right: 8px; }
	.header__logo .logo-full { width: 180px; }
	.header__contacts { padding: 0 16px; }
	.header__phone { font-size: 16px; }
	.header__request span { display: none; }
	.header__request .icon { display: block; }
	.header__request { width: 56px; padding: 0; }
	.catalog-menu__panel { grid-template-columns: 240px 1fr; }
	.cm-sub { left: calc(48px + 240px + 24px); right: 48px; }
	.catalog-menu__promo { display: none; }
	.cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-layout { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 28px; }
	.catalog-layout__main .product { grid-template-columns: 1fr; }
	.catalog-layout__main .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.product__gallery { grid-row: span 2; }
	.product-info { grid-template-columns: 1fr; }
	.certs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.contacts { grid-template-columns: 1fr; }
	.promo__title { font-size: 40px; }
}

@media (max-width: 1024px) {
	.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.card-grid--scroll { grid-auto-columns: calc((100% - var(--gap) * 2) / 3); }
	.header__contacts { display: none; }
	.header__call { display: inline-grid; }
	.catalog-layout { grid-template-columns: 1fr; }
	.catalog-layout__side { position: static; max-height: none; overflow: visible; }
	.catalog-layout:not(.catalog-layout--home) .catalog-layout__side { order: 2; margin-top: 24px; }
	.catalog-layout__main .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.catalog-layout__main .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.header__actions { margin-left: auto; }
	.slide { padding: 32px 48px; }
	.slide__title { font-size: 30px; }
	.promo--dark { min-height: 400px; padding: 48px; }
	.promo--light, .cta { padding: 32px 40px; }
	.footer__cols { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	.footer__contacts { grid-column: 1 / -1; justify-self: start; padding-top: 0; }
}

@media (max-width: 767px) {
	:root { --pad: 20px; --r: 20px; --r-lg: 24px; --gap: 12px; }
	html { scroll-padding-top: 24px; }
	.page-wrap { border-radius: 0 0 40px 40px; padding-bottom: 56px; }
	.site-footer { margin-top: -40px; padding-top: 88px; }
	.admin-bar .site-header { top: 0; }
	.site-header { position: relative; padding-top: 20px; background: none; }

	/* Шапка в две строки, как в мобильном макете */
	.header { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "logo msg act" "cat search search"; gap: 16px 8px; min-height: 0; padding: 0; background: none; border-radius: 0; }
	.header::before { content: ""; grid-area: 1 / 1 / 2 / -1; margin: -0px; background: var(--white); border-radius: var(--r); }
	.header__logo { grid-area: logo; align-self: center; margin: 12px 0 12px 14px; }
	.header__logo .logo-full { display: none; }
	.header__logo .logo-symbol { display: block; }
	.header__contacts { grid-area: msg; display: flex; align-self: center; justify-self: center; padding: 0; border: 0; margin: 0; }
	.header__phone { display: none; }
	.header__actions { grid-area: act; align-self: center; margin: 8px 8px 8px 0; padding: 0; }
	.header__actions .icon-btn, .header__request { width: 48px; height: 48px; min-height: 48px; }
	.header__catalog { grid-area: cat; --h: 48px; padding: 0 20px; }
	.header__search { grid-area: search; height: 48px; max-width: none; }
	.search__icon { left: 14px; }
	.search__input { padding-left: 46px; font-size: 16px; }
	.header__search .search__dropdown { left: auto; right: 0; min-width: 0; width: calc(100vw - var(--pad) * 2); }

	/* Каталог — на весь экран */
	.catalog-menu { position: fixed; inset: 0; z-index: 100; overflow: auto; background: var(--white); }
	.catalog-menu .container { width: 100%; }
	.catalog-menu__panel { display: block; min-height: 100%; padding: 24px var(--pad) 32px; border-radius: 0; box-shadow: none; animation: none; }
	.catalog-menu__head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; margin: -24px calc(var(--pad) * -1) 16px; padding: 24px var(--pad) 12px; background: var(--white); }
	.catalog-menu__title { font-size: 26px; font-weight: 500; }
	.cm-cats { max-height: none; overflow: visible; gap: 0; }
	.cm-cat__row { position: relative; }
	.cm-cat__link { padding: 14px 0; color: var(--text); font-size: 18px; font-weight: 400 !important; }
	.cm-cat__toggle { display: block; position: absolute; inset: 0; width: 100%; border: 0; background: none; cursor: pointer; }
	.cm-cats.has-open > .cm-cat:not(.is-open) { display: none; }
	.cm-cat.is-open > .cm-cat__row { display: none; }
	.cm-sub, .cm-cat.is-active .cm-sub { position: static; display: none; padding: 0 0 12px; overflow: visible; }
	.cm-sub__back { display: flex; align-items: center; gap: 16px; padding: 14px 0 10px; border: 0; background: none; font-size: 20px; font-weight: 500; text-align: left; }
	.cm-sub__back span { font-size: 24px; line-height: 1; }
	.cm-cat.is-open .cm-sub { display: flex; }
	.cm-sub ul { grid-template-columns: 1fr; gap: 0; }
	.cm-sub ul { grid-template-rows: none; grid-auto-flow: row; }
	.cm-sub li a { padding: 12px 0; color: var(--text); font-size: 18px; }
	.cm-sub__all { margin-top: 8px; }
	.catalog-menu__promo { display: flex; min-height: 220px; margin-top: 24px; }

	.hero { margin-top: 0; }
	.slide { min-height: 120px; padding: 22px 24px 34px; }
	.slide--split { background: var(--red-hero); }
	.slide--split::before { display: none; }
	.slide__text { max-width: 64%; }
	.slide__title { font-size: 17px; font-weight: 500; }
	.slide__sub { margin-top: 2px; font-size: 14px; color: rgba(255, 255, 255, .7); }
	.slide--dark .slide__sub { color: rgba(255, 255, 255, .5); }
	.slide__btn { --h: 40px; margin-top: 12px; padding: 0 16px; font-size: 14px; }
	.slide__img { left: auto; right: -30%; height: 82%; bottom: -12%; }
	.hero__nav { display: none; }
	.hero__dots { position: absolute; left: 24px; bottom: 14px; z-index: 3; display: flex; gap: 4px; }
	.hero__dots span { width: 6px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .8); transition: width .3s var(--ease); }
	.hero__dots span.is-active { width: 24px; }

	.section, .promo, .cta { margin-top: 32px; }
	.section__head, .sizes .section__head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 16px; }
	.section__title { font-size: 22px; }
	.cat-grid { grid-template-columns: 1fr; }
	.catalog-layout--home { margin-top: 32px; }
	.catalog-layout__main .product { grid-template-columns: 1fr; }
	.catalog-layout__main .product__order { grid-template-columns: 1fr; }
	.catalog-layout__main .product__order .btn--block { width: 100%; }
	.catalog-layout__main .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.catalog-layout__main .card-grid--scroll { grid-template-columns: none; grid-auto-columns: 72%; }
	.catalog-layout__main .cta { padding: 24px; }
	.cat-acc__title, .home-about h2:first-child { font-size: 22px; }
	.home-about { font-size: 14px; }
	.cat-card { min-height: 0; padding: 22px; }
	.cat-card__title { font-size: 20px; }

	.card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.card-grid--scroll { grid-auto-columns: 72%; }
	.card__media { height: 140px; padding: 8px; }
	.card__title { padding: 0 14px; font-size: 15px; font-weight: 500; }
	.card__sub, .card__specs { padding: 0 14px; font-size: 13px; }
	.card__body { padding-bottom: 16px; }
	.card__foot { flex-direction: column; align-items: stretch; padding: 10px; }
	.card__price { padding: 2px 4px; font-size: 14px; }
	.card__foot .btn { width: 100%; }

	.promo--dark { min-height: 360px; align-items: flex-start; padding: 28px 24px; }
	.promo--dark .promo__img { top: auto; bottom: 0; height: 70%; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 30%); mask-image: linear-gradient(180deg, transparent 0, #000 30%); }
	.promo__title { font-size: 26px; }
	.promo__sub { font-size: 16px; }
	.promo__btn { margin-top: 18px; }
	.promo--light { align-items: flex-start; min-height: 290px; padding: 24px; }
	.promo--light .promo__title { font-size: 22px; }
	.promo--light .promo__sub { font-size: 15px; }
	.promo--light .promo__img { left: auto; right: -14%; height: 40%; bottom: -8%; }

	.cta { flex-direction: column; align-items: flex-start; padding: 24px 24px 150px; }
	.cta__title { font-size: 22px; }
	.cta__actions { flex-wrap: wrap; gap: 12px 20px; }
	.cta__img { left: auto; right: -10%; bottom: -60px; width: 260px; }

	.page-head { margin: 16px 0 20px; }
	.page-title { font-size: 26px; }
	.page-head--series .page-title { font-size: 22px; }
	.page-lead { font-size: 15px; }
	.product { grid-template-columns: 1fr; }
	.product__gallery { grid-row: auto; }
	.product__main { aspect-ratio: 4 / 3; padding: 20px; }
	.panel { padding: 22px; }
	.product__order-title { font-size: 22px; }
	.sizes-table th, .sizes-table td { padding: 12px 14px; font-size: 14px; }
	.sizes-table__check { position: sticky; left: 0; z-index: 1; background: inherit; }
	.sizes-table tbody tr { background: var(--white); }
	.sizes-table tbody tr:nth-child(odd) { background: #f3f3f3; }
	.sizes-table thead .sizes-table__check { z-index: 2; }
	.sizes-bar { left: 12px; right: 12px; bottom: 12px; flex-wrap: wrap; justify-content: space-between; transform: none; animation: none; }
	.sizes-bar .btn--red { order: 3; width: 100%; }
	.product-info { margin-top: 32px; }

	.field-row { grid-template-columns: 1fr; }
	.modal { width: 100%; max-width: none; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r) var(--r) 0 0; }
	.modal__box { padding: 28px 20px 24px; }
	.modal__title { font-size: 22px; }

	.certs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
	.contact-cards { grid-template-columns: 1fr; }
	.specs--row > div { grid-template-columns: 1fr; gap: 2px; }
	.map iframe { height: 320px; }

	.footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 16px; margin-top: 32px; }
	.footer__bottom { flex-direction: column; margin-top: 40px; }
	.empty__code { font-size: 88px; }
	.empty__title { font-size: 22px; }
	.cookie { left: 12px; right: 12px; bottom: 12px; gap: 12px; padding: 12px 12px 12px 16px; font-size: 13px; }
}

@media (max-width: 380px) {
	.header__contacts { display: none; }
	.card-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .cta, .sizes-bar, .cookie, .product__order .btn { display: none !important; }
	body, .page-wrap { background: #fff; }
}
