/* Декото — структура магазина, мягкие формы (таблетки, скругления 20–28px) */
/* Палитра «Графит и красный» */
:root {
  --primary: #c8162f;
  --primary-d: #a3101f;
  --primary-soft: #fbe9ec;
  --on-primary: #ffffff;
  --accent: #ffffff;
  --bg: #ffffff;
  --surface: #f4f4f5;
  --ink: #1d1d22;
  --muted: #62636b;
  --line: #e4e4e7;
  --dark: #222227;
  --on-dark: #f4f4f5;
  --on-dark-muted: #a8a9b0;
}
:root {
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1440px;
  --gut: clamp(16px, 3vw, 40px);
  --r-lg: 28px;
  --r-md: 20px;
  --r-sm: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--ink); background: var(--bg); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; }
h2 { font-size: clamp(24px, 2.3vw, 34px); line-height: 1.15; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.hp { position: absolute; left: -9999px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 18px; background: var(--bg); border-radius: 999px; font-weight: 700; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .2s, color .2s; }
.btn-lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-d); }
.btn-soft { background: var(--primary-soft); color: var(--primary); }
.btn-soft:hover { background: var(--primary); color: var(--on-primary); }
.btn-white { background: #fff; color: var(--ink); }
.more { font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Шапка ---------- */
.util { background: var(--surface); font-size: 13px; color: var(--muted); }
.util-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 38px; }
.util-links { display: flex; gap: 22px; }
.util a { text-decoration: none; }
.util a:hover { color: var(--ink); }
.util-contact a { color: var(--ink); font-weight: 700; }

.hdr { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 80px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { display: block; width: auto; height: 40px; }
.logo-name { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.logo-inv { color: var(--on-dark); }
.cat-btn { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 22px 0 18px; border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 600; font-size: 15px; cursor: pointer; flex: none; }
.cat-btn:hover { background: var(--primary-d); }
.cat-btn-ico { display: grid; gap: 3px; width: 16px; }
.cat-btn-ico i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s; }
.cat-btn[aria-expanded="true"] .cat-btn-ico i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.cat-btn[aria-expanded="true"] .cat-btn-ico i:nth-child(2) { opacity: 0; }
.cat-btn[aria-expanded="true"] .cat-btn-ico i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.search { flex: 1; display: flex; min-width: 0; height: 48px; padding: 4px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); transition: border-color .2s; }
.search:focus-within { border-color: var(--primary); }
.search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; background: none; outline: none; font-size: 15px; }
.search button { border: 0; padding: 0 20px; border-radius: 999px; background: var(--surface); font-weight: 600; cursor: pointer; }
.search button:hover { background: var(--primary-soft); color: var(--primary); }
.search { position: relative; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { display: grid; place-items: center; width: 40px; padding: 0 !important; background: none !important; color: var(--muted); }
.search-clear svg { width: 18px; height: 18px; }
.search-clear:hover { color: var(--ink) !important; }

/* Подсказки поиска */
.suggest { position: absolute; left: 0; top: calc(100% + 10px); z-index: 50; display: grid; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 160px); overflow: auto; border-radius: var(--r-md); background: var(--bg); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35), 0 0 0 1px var(--line); }
.suggest.sg-wide { grid-template-columns: minmax(0, 1fr) 380px; width: min(940px, calc(100vw - 32px)); }
.sg-left { padding: 18px; }
.sg-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.sg-chips button { padding: 6px 12px; border: 0; border-radius: 10px; background: var(--surface); font-size: 14px; cursor: pointer; }
.sg-chips button:hover, .sg-chips button:focus-visible { background: var(--primary-soft); color: var(--primary); }
.sg-list { list-style: none; margin: 0 0 8px; padding: 0; }
.sg-list a { display: block; padding: 8px 10px; margin: 0 -10px; border-radius: 10px; text-decoration: none; }
.sg-list a:hover, .sg-list a:focus-visible { background: var(--surface); }
.sg-list b { font-weight: 700; }
.sg-h { margin: 14px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sg-chips + .sg-h, .sg-left > .sg-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.sg-cats { display: grid; gap: 8px; }
.sg-cats a { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 40px 8px 8px; border-radius: var(--r-sm); background: var(--surface); text-decoration: none; font-weight: 600; }
.sg-cats a::after { content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; border-right: 1.5px solid var(--muted); border-top: 1.5px solid var(--muted); transform: translateY(-50%) rotate(45deg); }
.sg-cats a:hover, .sg-cats a:focus-visible { background: var(--primary-soft); }
.sg-cats img, .sg-cat-ico { width: 56px; height: 56px; flex: none; object-fit: cover; border-radius: 10px; background: var(--bg); }
.sg-cats span { display: grid; }
.sg-cats small { font-weight: 400; color: var(--muted); }
.sg-right { padding: 18px; border-left: 1px solid var(--line); }
.sg-right-head { display: flex; justify-content: space-between; align-items: baseline; }
.sg-right-head .sg-h { margin: 0; padding: 0; border: 0; }
.sg-right-head a { font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none; }
.sg-prod { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; margin: 10px -8px 0; padding: 8px; border-radius: var(--r-sm); text-decoration: none; }
.sg-prod:hover, .sg-prod:focus-visible { background: var(--surface); }
.sg-prod img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; }
.sg-prod > span { display: grid; gap: 2px; font-size: 14px; line-height: 1.35; }
.sg-prod small { color: var(--muted); }
.sg-prod b { font-size: 15px; }
.sg-empty { padding: 22px; }
.sg-empty p { color: var(--muted); }

.hdr-icons { display: flex; gap: 4px; flex: none; }
.hdr-ico { position: relative; display: grid; justify-items: center; gap: 2px; min-width: 64px; padding: 6px 8px; border-radius: var(--r-sm); font-size: 12px; text-decoration: none; color: var(--muted); }
.hdr-ico:hover { color: var(--ink); background: var(--surface); }
.hdr-ico svg { width: 24px; height: 24px; color: var(--ink); }
.hdr-count { position: absolute; top: 2px; right: 12px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--primary); color: var(--on-primary); font-size: 11px; line-height: 18px; text-align: center; }
.hdr-cta { flex: none; }
.burger { display: none; width: 44px; height: 44px; padding: 12px 10px; border: 0; background: none; cursor: pointer; }
.burger span { display: block; height: 2px; margin: 6px 0; background: var(--ink); transition: transform .2s; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }


/* Выпадающий каталог: колонка разделов слева, содержимое справа */
.mega { position: absolute; left: 0; right: 0; top: 100%; max-height: calc(100vh - 140px); overflow: auto; background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(20, 15, 18, .35); }
.mega-in { display: grid; grid-template-columns: 280px 1fr; gap: 40px; padding-top: 20px; padding-bottom: 36px; }
.mega-rail { display: grid; align-content: start; gap: 2px; padding: 10px; border-radius: var(--r-md); background: var(--surface); }
.mega-rail button, .mega-rail a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 0; border-radius: 12px; background: none; font-size: 15px; text-align: left; text-decoration: none; cursor: pointer; }
.mega-rail button:hover, .mega-rail a:hover { background: var(--bg); }
.mega-rail a.on { background: var(--bg); color: var(--primary); font-weight: 600; }
.mega-rail small { color: var(--muted); font-weight: 400; }
.mega-rail hr { border: 0; border-top: 1px solid var(--line); margin: 8px 6px; }
.mega-rail a.is-empty:not(.on) { color: var(--muted); }
.mega-rail [data-mega-tab] { justify-content: flex-start; padding: 8px 14px 8px 8px; }
.mega-rail-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--bg); color: var(--primary); transition: background-color .2s, color .2s; }
.mega-rail-ico svg { width: 18px; height: 18px; }
.mega-rail-name { flex: 1; }
.mega-rail a.on .mega-rail-ico { background: var(--primary); color: #fff; }
.mega-rail a.is-empty:not(.on) .mega-rail-ico { color: var(--muted); }
.mega-head h2 { display: flex; align-items: center; gap: 14px; }
.mega-head-ico { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.mega-head-ico svg { width: 24px; height: 24px; }
.mega-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin: 8px 0 24px; }
.mega-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.mega-h { margin-bottom: 10px; font-weight: 700; }
.mega-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mega-cols a { display: inline-flex; gap: 8px; color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.mega-cols a:hover { color: var(--primary); }
.mega-cols small { color: #a69ca0; }

.mega-body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
.mega-cats { list-style: none; display: grid; align-content: start; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; }
.mega-cats a { display: flex; align-items: center; gap: 14px; padding: 10px; border-radius: var(--r-sm); background: var(--surface); text-decoration: none; }
.mega-cats a:hover { background: var(--primary-soft); }
.mega-cats img { width: 64px; height: 64px; flex: none; object-fit: cover; border-radius: 12px; }
.mega-cats span { display: grid; font-weight: 600; line-height: 1.3; }
.mega-cats small { font-weight: 400; font-size: 13px; color: var(--muted); }
.mega-side ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.mega-side ul a { color: var(--muted); text-decoration: none; font-size: 15px; line-height: 1.4; }
.mega-side ul a:hover { color: var(--primary); }
.mega-side-link { font-weight: 600; color: var(--primary); text-decoration: none; }
.mega-empty { max-width: 34em; padding: 28px; border-radius: var(--r-md); background: var(--surface); }
.mega-empty p { color: var(--muted); }
.mnav { display: grid; padding: 12px var(--gut) 28px; border-top: 1px solid var(--line); max-height: calc(100vh - 120px); overflow: auto; }
.mnav-search input { width: 100%; height: 48px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; }
.mnav-h { margin: 20px 0 6px; font-size: 13px; color: var(--muted); }
.mnav a { padding: 10px 0; font-size: 17px; font-weight: 500; text-decoration: none; }
.mnav-phone { margin-top: 12px; color: var(--primary); font-weight: 700 !important; }

/* ---------- Главная ---------- */
.home { padding-top: 24px; }

.banner { position: relative; height: min(68vh, 680px); min-height: 460px; overflow: hidden; background: var(--dark); color: #fff; }
.banner-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; visibility: hidden; transition: opacity .8s ease, visibility .8s; }
.banner-slide.is-on { opacity: 1; visibility: visible; }
.banner-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--dpos, center); }
.banner-slide::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, color-mix(in srgb, var(--dark) 80%, transparent) 0%, color-mix(in srgb, var(--dark) 40%, transparent) 50%, transparent 85%), linear-gradient(0deg, color-mix(in srgb, var(--dark) 55%, transparent) 0%, transparent 50%); }
.banner-in { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(44px, 7vh, 80px); }
.banner-copy { max-width: 640px; }
.banner-title { font-size: clamp(30px, 3.6vw, 56px); line-height: 1.06; margin-bottom: 16px; }
.banner-copy p { margin-bottom: 26px; font-size: clamp(16px, 1.1vw, 18px); color: rgba(255, 255, 255, .85); max-width: 32em; }
.banner-nav-wrap { position: absolute; left: 0; right: 0; bottom: clamp(44px, 7vh, 80px); z-index: 3; display: flex; justify-content: flex-end; pointer-events: none; }
.banner-nav { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(8px); }
.banner-arrow { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); cursor: pointer; }
.banner-arrow svg { width: 18px; height: 18px; }
.banner-dots { display: flex; gap: 6px; padding: 0 4px; }
.banner-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .5); cursor: pointer; transition: width .3s; }
.banner-dots button.on { width: 24px; background: #fff; }

/* Три главных раздела. При наведении фото медленно приближается, снизу выезжает список подразделов */
.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.trio-card { position: relative; isolation: isolate; height: clamp(380px, 52vh, 500px); border-radius: var(--r-lg); overflow: hidden; background: var(--dark); color: #fff; }
.trio-card img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2, .7, .2, 1); }
.trio-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 20, 24, .92) 0%, rgba(20, 20, 24, .6) 38%, rgba(20, 20, 24, 0) 68%); transition: background .6s; }
.trio-body { position: absolute; left: 0; right: 0; bottom: 0; display: grid; justify-items: start; padding: clamp(20px, 2vw, 30px); }
.trio-body h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(24px, 2vw, 30px); }
.trio-body h2 small { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); font-size: 15px; font-weight: 600; letter-spacing: 0; }
.trio-link { text-decoration: none; }
.trio-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.trio-body p { margin: 8px 0 0; max-width: 26em; font-size: 15px; color: rgba(255, 255, 255, .82); }
.trio-items { list-style: none; display: grid; gap: 2px; width: 100%; max-height: 0; margin: 0; padding: 0; overflow: hidden; opacity: 0; transform: translateY(12px); transition: max-height .6s ease, opacity .4s ease, transform .5s ease, margin .5s ease; }
.trio-items a { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .16); font-weight: 500; text-decoration: none; }
.trio-items a:hover { color: #fff; padding-left: 6px; transition: padding .2s; }
.trio-items small { color: rgba(255, 255, 255, .6); }
.trio-cta { margin-top: 18px; transition: background-color .3s, color .3s; }
.trio-card:hover img, .trio-card:focus-within img { transform: scale(1.08); }
.trio-card:hover::after, .trio-card:focus-within::after { background: linear-gradient(0deg, rgba(20, 20, 24, .94) 0%, rgba(20, 20, 24, .75) 55%, rgba(20, 20, 24, .15) 85%); }
.trio-card:hover .trio-items, .trio-card:focus-within .trio-items { max-height: 260px; opacity: 1; transform: none; margin-top: 14px; }
.trio-card:hover .trio-cta, .trio-card:focus-within .trio-cta { background: var(--primary); color: #fff; }
/* на сенсорных экранах наведения нет — список виден сразу */
@media (hover: none) {
  .trio-items { max-height: none; opacity: 1; transform: none; margin-top: 16px; }
  .trio-card::after { background: linear-gradient(0deg, rgba(20, 20, 24, .94) 0%, rgba(20, 20, 24, .72) 55%, rgba(20, 20, 24, .1) 85%); }
}



.block { padding-top: clamp(56px, 5.5vw, 88px); }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 24px; }




/* Вариант из двух широких карточек: подразделы видны сразу «таблетками» */
.trio-2 { grid-template-columns: 1fr 1fr; }
.trio-2 .trio-card { height: clamp(420px, 54vh, 520px); }
.trio-2 .trio-body { padding: clamp(24px, 2.6vw, 40px); }
.trio-2 .trio-body h2 { font-size: clamp(28px, 2.4vw, 36px); }
.trio-2 .trio-body p { max-width: 32em; font-size: 16px; }
.trio-2 .trio-items { display: flex; flex-wrap: wrap; gap: 8px; max-height: none; margin-top: 18px; opacity: 1; transform: none; }
.trio-2 .trio-items a { gap: 8px; padding: 7px 14px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font-size: 14px; transition: background-color .2s, color .2s; }
.trio-2 .trio-items a:hover, .trio-2 .trio-items a:focus-visible { padding-left: 14px; background: #fff; color: var(--ink); }
.trio-2 .trio-items a:hover small, .trio-2 .trio-items a:focus-visible small { color: var(--muted); }
.trio-2 .trio-card::after { background: linear-gradient(0deg, rgba(20, 20, 24, .94) 0%, rgba(20, 20, 24, .78) 45%, rgba(20, 20, 24, .25) 72%, rgba(20, 20, 24, 0) 90%); }
.trio-2 .trio-card:hover::after, .trio-2 .trio-card:focus-within::after { background: linear-gradient(0deg, rgba(20, 20, 24, .95) 0%, rgba(20, 20, 24, .8) 48%, rgba(20, 20, 24, .3) 75%, rgba(20, 20, 24, .05) 92%); }

/* Плитка праздников: иконка, когда, название, сколько товаров */
.occ-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.occ { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 20px; border: 1.5px solid var(--line); border-radius: var(--r-md); text-decoration: none; transition: background-color .25s, border-color .25s; }
.occ-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 14px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); transition: background-color .25s, color .25s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.occ-ico svg { width: 30px; height: 30px; }
.occ-when { font-size: 13px; color: var(--muted); }
.occ b { font-size: 16px; font-weight: 700; line-height: 1.3; }
.occ-n { margin-top: auto; padding-top: 8px; font-size: 13px; font-weight: 600; color: var(--primary); }
.occ-n-muted { font-weight: 500; color: var(--muted); }
.occ:hover, .occ:focus-visible { border-color: var(--primary-soft); background: var(--primary-soft); }
.occ:hover .occ-ico, .occ:focus-visible .occ-ico { background: var(--primary); color: #fff; transform: rotate(-8deg) scale(1.06); }
.occ-own { border-color: var(--primary); background: var(--primary); color: #fff; }
.occ-own .occ-ico { background: rgba(255, 255, 255, .18); color: #fff; }
.occ-own .occ-when, .occ-own .occ-n { color: rgba(255, 255, 255, .8); }
.occ-own:hover, .occ-own:focus-visible { border-color: var(--primary-d); background: var(--primary-d); }
.occ-own:hover .occ-ico, .occ-own:focus-visible .occ-ico { background: #fff; color: var(--primary); }

/* Выполненные работы — широкая картинка с кнопкой */

/* Смета: картинка с шагами и форма рядом */
.estimate { margin-top: clamp(64px, 6vw, 96px); padding: clamp(48px, 5vw, 80px) 0; background: var(--surface); }
.estimate-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.estimate-media { position: relative; isolation: isolate; display: flex; align-items: flex-end; min-height: 560px; padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); overflow: hidden; background: var(--dark); color: #fff; }
.estimate-media img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.estimate-media::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 20, 24, .94) 0%, rgba(20, 20, 24, .7) 50%, rgba(20, 20, 24, .15) 100%); }
.estimate-copy h2 { margin-bottom: 22px; }
.estimate-steps { list-style: none; counter-reset: es; display: grid; gap: 14px; margin: 0; padding: 0; }
.estimate-steps li { counter-increment: es; display: grid; grid-template-columns: 36px 1fr; column-gap: 14px; }
.estimate-steps li::before { content: counter(es); grid-row: span 2; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--primary); font-weight: 800; }
.estimate-steps b { font-size: 17px; }
.estimate-steps span { font-size: 14px; color: rgba(255, 255, 255, .72); }
.estimate-contacts { margin: 26px 0 0; font-size: 18px; font-weight: 700; line-height: 1.6; }
.estimate-contacts a { text-decoration: none; }
.estimate-contacts a:hover { text-decoration: underline; }
.estimate-form { padding: clamp(22px, 2.6vw, 40px); border-radius: var(--r-lg); background: var(--bg); }

/* Категории — фото на всю карточку, как у главных разделов, только меньше */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.cat { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; aspect-ratio: 4 / 5; padding: 20px; border-radius: var(--r-md); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.cat img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.cat::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 20, 24, .9) 0%, rgba(20, 20, 24, .35) 45%, rgba(20, 20, 24, 0) 70%); }
.cat:hover img, .cat:focus-visible img { transform: scale(1.07); }
.cat-name { font-size: 19px; font-weight: 700; line-height: 1.25; }
.cat-cnt { margin-top: 4px; font-size: 14px; color: rgba(255, 255, 255, .7); }



.cases { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 16px; }
.case { display: flex; flex-direction: column; text-decoration: none; }
.case img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.case-big { grid-row: span 2; }
.case-big img { flex: 1; aspect-ratio: auto; min-height: 0; }
.case-title { margin-top: 12px; font-size: 18px; font-weight: 700; }
.case-meta { color: var(--muted); font-size: 14px; }

/* ---------- Форма «Обсудить проект» ---------- */
.brief-band { margin-top: clamp(64px, 6vw, 96px); background: var(--dark); color: var(--on-dark); }
.brief-band-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); padding-top: clamp(56px, 5.5vw, 80px); padding-bottom: clamp(56px, 5.5vw, 80px); }
.brief-band-copy p { margin: 16px 0 0; font-size: 17px; color: var(--on-dark-muted); max-width: 24em; }
.brief-band-copy .brief-band-contacts { margin-top: 32px; font-size: 22px; font-weight: 700; line-height: 1.6; color: var(--on-dark); }
.brief-band-contacts a { text-decoration: none; }

.brief-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.fld { display: grid; gap: 6px; min-width: 0; font-size: 14px; font-weight: 600; }
.fld select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
.fld-wide { grid-column: 1 / -1; }
.fld input, .fld select, .fld textarea { width: 100%; min-height: 50px; padding: 12px 18px; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--bg); color: var(--ink); font-size: 16px; font-weight: 500; }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--primary); }
.drop { position: relative; display: grid; gap: 6px; padding: 18px; border: 1.5px dashed var(--line); border-radius: var(--r-sm); background: var(--surface); cursor: pointer; font-weight: 500; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop.is-over { border-color: var(--primary); background: var(--primary-soft); }
.drop-text { color: var(--muted); }
.drop-list { font-weight: 600; }
.drop-list:empty { display: none; }
.brief-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 22px; }
.brief-note { flex: 1; min-width: 220px; margin: 0; font-size: 13px; color: var(--muted); }
.brief-note a { color: inherit; }
.form-error { margin: 14px 0 0; padding: 10px 18px; border-radius: var(--r-sm); background: #fde8ea; color: #9b1022; font-weight: 600; }
.brief-band .fld { color: var(--on-dark); }
.brief-band .fld input, .brief-band .fld select, .brief-band .fld textarea { border-color: transparent; }
.brief-band .drop { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .3); }
.brief-band .drop-text, .brief-band .brief-note { color: var(--on-dark-muted); }
.brief-band .btn-primary { background: #fff; color: var(--ink); }
.brief-band .btn-primary:hover { background: var(--surface); }

/* ---------- Подвал ---------- */
.ftr { background: var(--dark); color: var(--on-dark-muted); padding: 72px 0 32px; font-size: 15px; }
.brief-band + .ftr { border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; gap: 40px; }
.ftr-brand p { margin-top: 18px; max-width: 22em; }
.ftr-h { margin-bottom: 14px; font-weight: 700; color: var(--on-dark); }
.ftr-h a { text-decoration: none; }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ftr a { text-decoration: none; }
.ftr a:hover { color: var(--on-dark); text-decoration: underline; }
.ftr-phone { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 700; color: var(--on-dark); }
.ftr-contacts p:not(.ftr-h) { margin-top: 14px; line-height: 1.7; }
.ftr-msg { display: flex; gap: 16px; }
.ftr-legal { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }
.ftr-legal a { margin-left: auto; }

.mbar { display: none; }

/* ---------- Модальное окно и уведомление ---------- */
.modal { width: min(780px, calc(100vw - 24px)); max-height: calc(100vh - 24px); padding: 40px; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); overflow: auto; }
.modal::backdrop { background: rgba(20, 15, 18, .6); }
.modal h2 { font-size: 30px; padding-right: 40px; }
.modal-sub { margin: 10px 0 26px; color: var(--muted); max-width: 36em; }
.modal-close { position: absolute; right: 16px; top: 16px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); cursor: pointer; }
.modal-close svg { width: 20px; height: 20px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translateX(-50%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .4); }
.toast a { color: #fff; white-space: nowrap; }

/* ---------- Карточка товара: крупное фото, артикул в углу, название и цена под фото ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 20px; }
.pcard { display: flex; flex-direction: column; gap: 14px; }
.pcard-media { position: relative; aspect-ratio: 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.pcard-img { display: block; width: 100%; height: 100%; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pcard:hover .pcard-img img { transform: scale(1.04); }
.pcard-sku { position: absolute; left: 12px; top: 12px; padding: 4px 10px; border-radius: 999px; background: rgba(20, 20, 24, .5); backdrop-filter: blur(6px); color: #fff; font-size: 12px; letter-spacing: .04em; }
.pcard-add { position: absolute; right: 12px; bottom: 12px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .35); cursor: pointer; transition: background-color .2s, color .2s, transform .2s; }
.pcard-add svg { width: 22px; height: 22px; }
.pcard-add:hover, .pcard-add:focus-visible { background: var(--primary); color: #fff; transform: scale(1.06); }
.pcard-add.is-added { background: var(--primary); color: #fff; }
.pcard-info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pcard-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.35; letter-spacing: 0; }
.pcard-title a { text-decoration: none; }
.pcard-title a:hover { color: var(--primary); }
.pcard-price { flex: none; font-size: 16px; font-weight: 700; white-space: nowrap; }
.pcard-price s { margin-left: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }

/* ---------- Каталог: фильтры наверху ---------- */
.catalog-title { margin: 4px 0 12px; font-size: clamp(32px, 3.6vw, 52px); }
.cat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.cat-pills a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; text-decoration: none; transition: border-color .2s, background-color .2s, color .2s; }
.cat-pills a:hover { border-color: var(--ink); }
.cat-pills small { color: var(--muted); font-size: 13px; }
.cat-pills a.on { border-color: var(--ink); background: var(--ink); color: #fff; }
.cat-pills a.on small { color: rgba(255, 255, 255, .65); }
.cat-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px; margin: 28px 0 32px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-filter, .cat-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-count { margin-right: 8px; font-size: 14px; color: var(--muted); }
.pill-select { height: 42px; padding: 0 42px 0 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2362636b' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center / 16px; appearance: none; font-size: 14px; cursor: pointer; }
.pill-select:hover, .pill-select.is-set { border-color: var(--ink); }
.cat-custom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; margin-top: 48px; padding: 24px 28px; border-radius: var(--r-md); background: var(--primary-soft); }
.cat-custom b { font-size: 18px; }
.cat-custom p { margin: 4px 0 0; color: var(--muted); }

/* Этапы — настоящая последовательность, поэтому с номерами */
.steps { list-style: none; counter-reset: st; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin: 0; padding: 0; }
.steps li { counter-increment: st; display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--r-md); background: var(--surface); }
.steps li::before { content: counter(st); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 10px; border-radius: 50%; background: var(--primary); color: var(--on-primary); font-weight: 800; }
.steps b { font-size: 17px; line-height: 1.3; }
.steps span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* Для закупки */
.b2b { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.b2b-intro { position: sticky; top: 150px; }
.b2b-intro p { margin: 14px 0 24px; color: var(--muted); max-width: 26em; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; padding: 20px 48px 20px 0; font-size: 17px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--primary); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { max-width: 42em; margin: -4px 0 22px; color: var(--muted); }

/* ---------- Внутренние страницы ---------- */
.page { padding-top: 20px; }
/* страница без нижнего блока с формой — отступ до подвала */
main > .page:last-child, main > .page:has(+ script:last-child) { padding-bottom: clamp(64px, 7vw, 112px); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--primary); }
.crumbs a + a::before { content: '/'; margin-right: 6px; color: var(--line); }
.page-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 12px; }
.page-head h1 { font-size: clamp(28px, 3.2vw, 40px); }
.page-count { color: var(--muted); }
.page-lead { max-width: 46em; font-size: 17px; color: var(--muted); }

/* Списки и фильтры в боковой колонке */
.side-list { display: grid; align-content: start; gap: 2px; padding: 8px; border-radius: var(--r-md); background: var(--surface); }
.side-list a { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-radius: 12px; font-size: 15px; text-decoration: none; }
.side-list a:hover { background: var(--bg); }
.side-list a.on { background: var(--bg); color: var(--primary); font-weight: 600; }
.side-list small { color: var(--muted); font-weight: 400; }
.seg { display: flex; padding: 4px; border-radius: 999px; background: var(--surface); }
.seg label { flex: 1; position: relative; }
.seg input, .chips input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 8px 12px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg input:checked + span { background: var(--bg); color: var(--primary); box-shadow: 0 2px 6px rgba(0, 0, 0, .08); }
.seg input:focus-visible + span, .chips input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.seg-wide span { padding: 11px 16px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips label { position: relative; }
.chips span, .chips-links a { display: inline-block; padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; text-decoration: none; }
.chips span:hover, .chips-links a:hover { border-color: var(--ink); }
.chips input:checked + span, .chips-links a.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-links { margin: 8px 0 24px; }
.side-help { display: grid; gap: 6px; justify-items: start; padding: 20px; border-radius: var(--r-md); background: var(--primary-soft); }
.side-help p { margin: 0 0 8px; font-size: 14px; color: var(--muted); }

/* Каталог */
.tag-x { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border-radius: 999px; background: var(--surface); font-size: 14px; text-decoration: none; }
.tag-x span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); font-size: 15px; line-height: 1; }
.tag-x:hover span { background: var(--primary); color: #fff; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 32px; }
.pager a, .pager span { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-weight: 600; text-decoration: none; }
.pager a:hover { background: var(--primary-soft); color: var(--primary); }
.pager span { background: var(--ink); color: #fff; }
.empty { padding: 40px; border-radius: var(--r-md); background: var(--surface); }
.empty h2 { font-size: 24px; margin-bottom: 10px; }
.empty p { max-width: 36em; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Товар */
.product { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 4vw, 72px); align-items: start; margin-top: 8px; }
.gallery { position: sticky; top: 150px; }
.gallery-main { aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; }
.gallery-thumbs button { flex: none; width: 80px; height: 80px; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); cursor: pointer; }
.gallery-thumbs button.on { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.buybox h1 { font-size: clamp(26px, 2.6vw, 34px); }
.buybox-sku { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.buybox-card { display: grid; gap: 18px; margin-top: 22px; padding: 24px; border-radius: var(--r-md); background: var(--surface); }
.buybox-price b { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.buybox-price s, .buybox-price span { color: var(--muted); }
.buybox-qty { display: flex; flex-wrap: wrap; gap: 16px; }
.buybox-qty label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg); }
.stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; font-size: 20px; cursor: pointer; }
.stepper button:hover { background: var(--primary-soft); color: var(--primary); }
.stepper input { width: 48px; border: 0; background: none; text-align: center; font-weight: 700; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.buybox-est { margin: -6px 0 0; min-height: 1.4em; font-weight: 600; color: var(--primary); }
.buybox-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buybox-actions .btn { flex: 1; }
.buybox-note { margin: 0; font-size: 13px; color: var(--muted); }
.buybox-perks { list-style: none; display: grid; gap: 8px; margin: 22px 0 0; padding: 0; }
.buybox-perks li { position: relative; padding-left: 28px; font-size: 15px; }
.buybox-perks li::before { content: ''; position: absolute; left: 4px; top: 7px; width: 12px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.buybox-h { margin: 32px 0 12px; font-size: 20px; }
.specs { margin: 0; }
.specs div { display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 15px; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 500; }
.prose-block { margin-top: 56px; }
.prose-block h2 { margin-bottom: 16px; }
.prose { max-width: 72ch; }
.prose h2 { font-size: 24px; margin: 1.4em 0 .5em; }
.prose h3 { margin: 1.2em 0 .4em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: var(--r-md); margin: 1em 0; }

/* Заявка по каталогу */
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; margin-top: 24px; }
.cart-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 12px; }
.cart-row img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-sm); }
.cart-row h3 { margin-bottom: 8px; font-size: 16px; }
.cart-row h3 a { text-decoration: none; }
.cart-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 14px; }
.cart-controls select { height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--surface); }
.cart-controls .stepper { background: var(--surface); }
.cart-controls label { display: inline-flex; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.cart-sum { text-align: right; font-size: 18px; font-weight: 800; white-space: nowrap; }
.cart-remove { display: block; margin: 6px 0 0 auto; padding: 0; border: 0; background: none; font-size: 13px; font-weight: 500; color: var(--muted); text-decoration: underline; cursor: pointer; }
.cart-side { display: grid; gap: 16px; position: sticky; top: 150px; }
.cart-total { display: grid; gap: 2px; padding: 22px 24px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.cart-total b { font-size: 30px; font-weight: 800; }
.cart-total small { color: #b5b6bd; }
.cart-form { padding: 24px; border: 1px solid var(--line); border-radius: var(--r-md); }
.cart-form h2 { margin-bottom: 16px; font-size: 22px; }

/* Обсудить проект */
.brief-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; }
.mini-steps { margin: 24px 0; padding-left: 1.3em; display: grid; gap: 8px; font-weight: 600; }
.brief-page-contacts { color: var(--muted); line-height: 1.8; }
.brief-page-contacts a { color: var(--ink); font-weight: 700; text-decoration: none; }
.brief-card { padding: 28px; border-radius: var(--r-lg); background: var(--surface); }
.brief-card .fld input, .brief-card .fld select, .brief-card .fld textarea { border-color: transparent; }
.brief-card .drop { background: var(--bg); }

/* Сообщения */
.notice { max-width: 640px; margin: clamp(40px, 6vw, 88px) auto 0; text-align: center; }
.notice .page-lead { margin: 14px auto 0; }
.notice .empty-actions { justify-content: center; }
.notice-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; margin-bottom: 20px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.notice-ico svg { width: 30px; height: 30px; }
.notice-search { max-width: 480px; margin: 24px auto 0; }

/* Разделы услуг */
.sec-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: center; padding: 36px 40px; border-radius: var(--r-lg); background: var(--surface); }
.sec-hero h1 { font-size: clamp(30px, 3.4vw, 44px); margin-bottom: 14px; }
.sec-hero .page-lead { margin-bottom: 24px; }
.sec-price { font-size: 22px; font-weight: 800; }
.sec-facts { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0; padding: 0; }
.sec-facts li { display: grid; gap: 4px; padding: 18px; border-radius: var(--r-md); background: var(--bg); }
.sec-facts b { font-size: 16px; }
.sec-facts span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.sec-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: var(--bg); text-decoration: none; transition: border-color .2s, box-shadow .3s; }
.svc:hover { border-color: var(--primary); box-shadow: 0 12px 32px rgba(20, 20, 24, .08); }
.svc-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--dark); }
.svc-body { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 20px 24px 24px; }
.svc:hover .svc-media img { transform: scale(1.05); }
.svc img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.svc p { flex: 1; margin: 0 0 8px; font-size: 15px; color: var(--muted); }
/* студийные обложки 4:5 — объект в верхней части кадра */
.svc-grid-proizvodstvo .svc-media { aspect-ratio: 1 / 1; }
.svc-grid-proizvodstvo .svc img { object-position: 50% 0; }
.svc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; margin-top: 48px; align-items: start; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }

/* Кейсы */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case-card { display: grid; gap: 6px; text-decoration: none; }
.case-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); margin-bottom: 6px; }
.case-card-meta { font-size: 14px; color: var(--muted); }
.case-card:hover h3 { color: var(--primary); }
.case-head { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: end; margin-bottom: 24px; }
.case-head h1 { font-size: clamp(28px, 3.4vw, 44px); }
.case-facts { margin: 0; display: grid; gap: 10px; }
.case-facts div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.case-facts dt { color: var(--muted); }
.case-facts dd { margin: 0; font-weight: 600; }
.case-cover { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--r-lg); }
.case-text { margin-top: 36px; }

/* О компании, контакты */
.about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.about-side { display: grid; gap: 16px; }
.about-facts { display: grid; gap: 12px; }
.about-facts div { padding: 20px; border-radius: var(--r-md); background: var(--surface); }
.about-facts b { display: block; font-size: 32px; font-weight: 800; color: var(--primary); }
.contacts { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 24px; margin-top: 12px; }
.contacts-card { display: grid; gap: 18px; align-content: start; padding: 28px; border-radius: var(--r-lg); background: var(--surface); }
.contacts-card div { display: grid; gap: 2px; }
.contacts-card span { font-size: 14px; color: var(--muted); }
.contacts-card a, .contacts-card p { margin: 0; font-size: 20px; font-weight: 700; text-decoration: none; }
.contacts-msg { display: flex !important; flex-wrap: wrap; gap: 10px; }
.contacts-msg .btn { font-size: 15px !important; }
.map { min-height: 460px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ---------- Адаптив ---------- */
/* Статьи */
.agrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.agrid-page { margin-top: 28px; }
.acard { display: grid; align-content: start; gap: 8px; text-decoration: none; }
.acard-media { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin-bottom: 6px; }
.acard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.acard:hover .acard-media img { transform: scale(1.04); }
.acard-meta { font-size: 13px; color: var(--muted); }
.acard h3 { font-size: 19px; line-height: 1.3; transition: color .2s; }
.acard:hover h3 { color: var(--primary); }
.acard p { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-head { max-width: 920px; }
.article-head h1 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.12; }
.article-meta { margin: 14px 0 10px; font-size: 14px; color: var(--muted); }
.article-cover { width: 100%; max-height: 560px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); margin-top: 24px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 40px; }
.article-body { max-width: 72ch; font-size: 17px; line-height: 1.7; }
.article-body > :first-child { margin-top: 0; }
.article-body h2 { scroll-margin-top: 110px; font-size: clamp(22px, 2vw, 28px); line-height: 1.25; }
.article-body h3 { font-size: 19px; }
.article-body a { color: var(--primary); }
.article-body ol { padding-left: 1.3em; }
.article-body blockquote, .article-body .note { margin: 1.4em 0; padding: 18px 22px; border-radius: var(--r-md); background: var(--surface); }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; }
.article-body th, .article-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.article-body th { font-weight: 600; background: var(--surface); }
.article-side { position: sticky; top: 110px; display: grid; gap: 16px; }
.article-toc { padding: 20px 22px; border-radius: var(--r-md); background: var(--surface); }
.article-toc p { margin: 0 0 10px; font-weight: 700; }
.article-toc ol { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; font-size: 14px; }
.article-toc a { text-decoration: none; color: var(--muted); }
.article-toc a:hover { color: var(--primary); }
.article-cta { display: grid; gap: 8px; justify-items: start; padding: 22px; border-radius: var(--r-md); background: var(--ink); color: #fff; }
.article-cta b { font-size: 19px; }
.article-cta p { margin: 0 0 8px; font-size: 14px; color: rgba(255, 255, 255, .75); }

/* Выполненные работы: мозаика плиток и попап проекта */
.cgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 20vw, 300px); gap: 16px; }
.cgrid > :nth-child(6n+1), .cgrid > :nth-child(6n+6) { grid-column: span 2; }
.cgrid-page { margin-top: 8px; }
.ctile { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-height: 220px; padding: 20px 22px; border-radius: var(--r-md); overflow: hidden; background: var(--dark); color: #fff; text-decoration: none; }
.ctile img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.ctile::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(20, 20, 24, .88) 0%, rgba(20, 20, 24, .35) 42%, rgba(20, 20, 24, 0) 68%); transition: background .4s; }
.ctile:hover img, .ctile:focus-visible img { transform: scale(1.05); }
.ctile:hover::after { background: linear-gradient(0deg, rgba(20, 20, 24, .92) 0%, rgba(20, 20, 24, .45) 50%, rgba(20, 20, 24, .05) 75%); }
.ctile-tag, .ctile-count { position: absolute; top: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 20, 24, .55); backdrop-filter: blur(8px); font-size: 13px; font-weight: 600; }
.ctile-tag { left: 14px; }
.ctile-count { right: 14px; }
.ctile-count svg { width: 16px; height: 16px; }
.ctile-body { display: grid; gap: 4px; }
.ctile-body b { font-size: 18px; line-height: 1.25; }
.ctile-body small { font-size: 14px; color: rgba(255, 255, 255, .75); }
.cgrid > :nth-child(6n+1) .ctile-body b { font-size: clamp(20px, 1.8vw, 26px); }
.case-grid .ctile { aspect-ratio: 4 / 3; }
.case-cta { margin-top: 32px; }

html:has(dialog[open]) { overflow: hidden; }
.cmodal { width: min(1200px, calc(100vw - 32px)); height: min(760px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0; border: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); overflow: hidden; }
.cmodal::backdrop { background: rgba(14, 14, 18, .78); backdrop-filter: blur(4px); }
.cm-close { z-index: 3; }
.cm { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, 1fr); height: 100%; }
.cm-media { display: flex; flex-direction: column; min-height: 0; background: #0f0f12; }
.cm-stage { position: relative; flex: 1; min-height: 0; touch-action: pan-y; }
.cm-img { width: 100%; height: 100%; object-fit: contain; }
.cm-nav { position: absolute; top: 50%; display: grid; place-items: center; width: 48px; height: 48px; margin-top: -24px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .25); }
.cm-nav:hover { background: #fff; }
.cm-nav svg { width: 22px; height: 22px; }
.cm-prev { left: 16px; }
.cm-next { right: 16px; }
.cm-count { position: absolute; left: 16px; bottom: 16px; padding: 5px 12px; border-radius: 999px; background: rgba(20, 20, 24, .6); color: #fff; font-size: 13px; font-weight: 600; }
.cm-thumbs { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; }
.cm-thumbs:empty { display: none; }
.cm-thumbs button { flex: none; width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: none; opacity: .55; cursor: pointer; transition: opacity .2s; }
.cm-thumbs button.on, .cm-thumbs button:hover { opacity: 1; }
.cm-thumbs button.on { border-color: #fff; }
.cm-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.cm-info { display: flex; flex-direction: column; gap: 16px; min-height: 0; padding: 40px 36px 24px; overflow-y: auto; }
.cm-tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 700; }
.cm-tag:empty { display: none; }
.cm-info h2 { padding-right: 36px; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.15; }
.cm-facts { margin: 0; display: grid; gap: 8px; }
.cm-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.cm-facts dt { color: var(--muted); }
.cm-facts dd { margin: 0; font-weight: 600; }
.cm-text { font-size: 15px; }
.cm-text > :first-child { margin-top: 0; }
.cm-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 8px; }
.cm-pager { display: flex; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.cm-pager button { padding: 6px 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.cm-pager button:hover { color: var(--primary); }

/* Страница услуги */
.svc-points { list-style: none; display: grid; gap: 8px; margin: 0 0 24px; padding: 0; }
.svc-points li { position: relative; padding-left: 30px; font-weight: 600; }
.svc-points li::before { content: ''; position: absolute; left: 4px; top: 6px; width: 13px; height: 7px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.svc-text { font-size: 17px; line-height: 1.7; }
.svc-text > :first-child { margin-top: 0; }
.svc-text a { color: var(--primary); }
.svc-text ol { padding-left: 1.3em; }
.svc-aside { position: sticky; top: 110px; display: grid; gap: 16px; }
.svc-zones { list-style: none; counter-reset: z; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; }
.svc-zones li { counter-increment: z; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--r-md); background: var(--surface); }
.svc-zones li::before { content: counter(z, decimal-leading-zero); margin-bottom: 8px; font-size: 14px; font-weight: 800; color: var(--primary); }
.svc-zones b { font-size: 18px; line-height: 1.25; }
.svc-zones span { font-size: 15px; color: var(--muted); }
.svc-faq { max-width: 900px; }
.svc-faq h2 { margin-bottom: 20px; }

/* Выбор варианта товара */
.vopts { display: grid; gap: 16px; }
.vopt { margin: 0; padding: 0; border: 0; min-width: 0; }
.vopt legend { margin-bottom: 8px; padding: 0; font-size: 14px; font-weight: 600; }
.vopt legend span { font-weight: 400; color: var(--muted); }
.vopt-list { display: flex; flex-wrap: wrap; gap: 8px; }
.vopt-list button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--bg); color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.vopt-list button:hover { border-color: var(--ink); }
.vopt-list button.on { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.vopt-list button.off { border-style: dashed; color: var(--muted); }
.vopt-list button.off .vopt-sw { opacity: .4; }
.vopt-sw { flex: none; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .18); }
.vopt.need .vopt-list button:not(.off) { border-color: var(--primary); }
.vopt-msg { margin: -4px 0 0; color: var(--primary); font-size: 14px; font-weight: 600; }
.cart-opts { margin: -4px 0 8px; font-size: 13px; color: var(--muted); }

/* SEO-текст внизу каталога */
.seo-text { max-width: 80ch; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.7; color: var(--muted); }
.seo-text h2 { margin: 0 0 12px; font-size: 22px; color: var(--ink); }
.seo-text a { color: var(--primary); }
/* Изделие на заказ: кнопки-входы, квиз, страница /na-zakaz */
.btn-outline { background: var(--bg); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-outline:hover { color: var(--primary); box-shadow: inset 0 0 0 1.5px var(--primary); }
.hdr-custom { flex: none; }
.mnav .mnav-accent { color: var(--primary); font-weight: 700; }
.mega-custom { display: flex; align-items: center; gap: 16px; margin-top: 20px; padding: 14px 18px; border-radius: var(--r-md); background: var(--primary-soft); text-decoration: none; }
.mega-custom-ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--bg); color: var(--primary); }
.mega-custom-ico svg { width: 22px; height: 22px; }
.mega-custom b { display: block; font-size: 15px; }
.mega-custom small { display: block; font-size: 13px; color: var(--muted); }
.mega-custom-go { flex: none; margin-left: auto; padding: 10px 18px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 14px; font-weight: 600; }
.mega-custom:hover .mega-custom-go { background: var(--primary-d); }

.pcard-custom-in { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; height: 100%; min-height: 280px; padding: 24px; border: 1.5px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius: var(--r-md); background: var(--primary-soft); text-decoration: none; }
.pcard-custom-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); color: var(--primary); }
.pcard-custom-ico svg { width: 26px; height: 26px; }
.pcard-custom-in b { font-size: 19px; line-height: 1.25; }
.pcard-custom-in > span:not(.btn):not(.pcard-custom-ico) { font-size: 14px; color: var(--muted); }
.pcard-custom-in .btn { margin-top: 6px; min-height: 42px; padding: 0 18px; font-size: 14px; }

.modal-quiz { width: min(760px, calc(100vw - 24px)); }
.quiz { display: grid; gap: 18px; }
.quiz-top { display: flex; align-items: center; gap: 12px; }
.quiz-count { flex: none; font-size: 13px; color: var(--muted); }
.quiz-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--surface); overflow: hidden; }
.quiz-bar i { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--primary); transition: width .3s ease; }
.quiz-step { min-width: 0; margin: 0; padding: 0; border: 0; }
.quiz-step legend { margin-bottom: 14px; padding: 0; font-size: 20px; font-weight: 700; }
.quiz-sub { margin: -8px 0 14px; font-size: 14px; color: var(--muted); }
.quiz-types { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.qtype { position: relative; display: grid; gap: 8px; cursor: pointer; }
.qtype input, .qchip input { position: absolute; opacity: 0; pointer-events: none; }
.qtype-img { display: grid; place-items: center; aspect-ratio: 4 / 3; border-radius: var(--r-sm); overflow: hidden; background: var(--dark); color: #fff; transition: box-shadow .15s, transform .2s; }
.qtype-img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.qtype-img svg { width: 40px; height: 40px; }
.qtype-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.qtype:hover .qtype-img { transform: translateY(-2px); }
.qtype input:checked + .qtype-img { box-shadow: 0 0 0 3px var(--primary); }
.qtype input:focus-visible + .qtype-img { outline: 2px solid var(--primary); outline-offset: 3px; }
.quiz-q { display: grid; gap: 8px; margin-bottom: 16px; }
.quiz-q > span { font-size: 14px; font-weight: 600; }
.qchips { display: flex; flex-wrap: wrap; gap: 8px; }
.qchip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border: 1.5px solid var(--line); border-radius: 999px; font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.qchip span:hover { border-color: var(--ink); }
.qchip input:checked + span { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: 600; }
.qchip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.qown { min-height: 40px; width: 230px; max-width: 100%; padding: 8px 16px; border: 1.5px solid var(--primary); border-radius: 999px; background: var(--bg); font: inherit; font-size: 14px; }
.qown:focus { outline: 2px solid var(--primary); outline-offset: 2px; }
.quiz-ref { margin: 0 0 14px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--surface); font-size: 14px; }
.quiz-step .fld { margin-bottom: 14px; }
.quiz-nav { display: flex; gap: 10px; }
.quiz-nav [data-quiz-next], .quiz-nav [data-quiz-submit] { margin-left: auto; }
.quiz-note { margin: 0; font-size: 12px; }

.custom-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.custom-hero h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-bottom: 14px; }
.custom-hero .page-lead { margin-bottom: 20px; }
.custom-hero-quiz { padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-lg); background: var(--surface); scroll-margin-top: 100px; }
.custom-hero-quiz .qchip span, .custom-hero-quiz .quiz-bar { background: var(--bg); }
.custom-steps { list-style: none; counter-reset: cs; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 28px 0 0; padding: 0; }
.custom-steps li { counter-increment: cs; display: grid; gap: 4px; padding: 16px; border-radius: var(--r-md); background: var(--surface); }
.custom-steps li::before { content: counter(cs); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 6px; border-radius: 50%; background: var(--primary); color: #fff; font-size: 14px; font-weight: 800; }
.custom-steps b { font-size: 15px; }
.custom-steps span { font-size: 13px; color: var(--muted); }
.custom-kinds { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.custom-kind { display: grid; align-content: start; gap: 8px; text-decoration: none; }
.custom-kind img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 15%; border-radius: var(--r-md); margin-bottom: 6px; transition: transform .4s; }
.custom-kind:hover img { transform: scale(1.03); }
.custom-kind b { font-size: 16px; line-height: 1.25; }
.custom-kind:hover b { color: var(--primary); }
.custom-kind span { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.custom-band { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: clamp(56px, 5.5vw, 88px); padding: clamp(24px, 3vw, 44px); border-radius: var(--r-lg); background: var(--surface); }
.custom-band h2 { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.15; margin-bottom: 12px; }
.custom-band p { margin: 0 0 18px; color: var(--muted); max-width: 34em; }
.custom-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.custom-band-media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.custom-band-media img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-md); }
.custom-band-media img:nth-child(2) { transform: translateY(-18px); }

@media (max-width: 1240px) {
  .occ-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .svc-grid, .case-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .svc-zones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hdr-cta { display: none; }
  .ftr-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1000px) {
  .product, .cart, .brief-page, .sec-hero, .svc-layout, .case-head, .about, .contacts, .article-layout { grid-template-columns: 1fr; }
  .article-side { position: static; }
  .custom-hero, .custom-band { grid-template-columns: 1fr; }
  .custom-kinds { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hdr-custom { display: none; }
  .svc-aside { position: static; }
  .cgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: clamp(200px, 38vw, 300px); }
  .cmodal { width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; overflow-y: auto; }
  .cm { display: block; height: auto; }
  .cm-stage { height: min(62vh, 75vw); flex: none; }
  .cm-info { overflow: visible; padding: 24px 20px 32px; }
  .cm-close { position: fixed; background: rgba(255, 255, 255, .92); }
  .agrid { grid-template-columns: 1fr 1fr; }
  .gallery, .cart-side { position: static; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .occ-grid { grid-template-columns: repeat(3, 1fr); }
  .trio-2 { grid-template-columns: 1fr; }
  .estimate-in { grid-template-columns: minmax(0, 1fr); }
  .estimate-media { min-height: 420px; }
  .trio { grid-template-columns: 1fr; }
  .trio-card { height: 480px; }
  .banner-slide img { object-position: var(--pos, center); }
  .b2b { grid-template-columns: 1fr; gap: 24px; }
  .b2b-intro { position: static; }
  .sec-hero { padding: 28px 24px; gap: 28px; }
  .util-links { display: none; }
  .search, .hdr-icons .hdr-ico:first-child { display: none; }
  .hdr-icons { margin-left: auto; }
  .burger { display: block; }
  .mega-in { grid-template-columns: 1fr; }
  .mega-panel { display: none; }
  .cases { grid-template-columns: 1fr; grid-template-rows: none; }
  .brief-band-in { grid-template-columns: 1fr; gap: 32px; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.6fr; background: var(--bg); box-shadow: 0 -1px 0 var(--line); }
  .mbar a { display: grid; place-items: center; min-height: 58px; font-weight: 600; text-decoration: none; }
  .mbar-main { background: var(--primary); color: var(--on-primary); }
  body { padding-bottom: 58px; }
  .toast { bottom: 74px; }
  }
@media (max-width: 640px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .pcard-info { flex-direction: column; gap: 4px; }
  .pcard-title { font-size: 14px; }
  .pcard-add { width: 40px; height: 40px; right: 8px; bottom: 8px; }
  .pcard-sku { left: 8px; top: 8px; font-size: 11px; }
  .cat-bar { flex-direction: column; align-items: stretch; }
  .occ-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .occ { padding: 16px; }
  .occ-ico { width: 44px; height: 44px; margin-bottom: 10px; }
  .estimate-media, .estimate-form { border-radius: var(--r-md); }
  .trio { gap: 12px; margin-top: 24px; }
  .trio-card { height: auto; min-height: 460px; border-radius: var(--r-md); }
  .trio-body { position: relative; padding-top: 180px; }
  .trio-2 .trio-card { height: auto; min-height: 460px; }
  .trio-2 .trio-body { padding: 230px 20px 24px; }
  .trio-2 .trio-card img { object-position: 50% 0 !important; }
  .steps { grid-template-columns: 1fr; }
  .svc-grid, .case-grid, .gallery-grid, .sec-facts, .agrid, .svc-zones { grid-template-columns: 1fr; }
  .quiz-types, .custom-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .custom-steps { grid-template-columns: 1fr; }
  .mega-custom { flex-wrap: wrap; }
  .mega-custom-go { margin-left: 60px; }
  .pcard-custom-in { min-height: 0; padding: 16px; }
  .pcard-custom-in b { font-size: 16px; }
  .custom-band-media img:nth-child(2) { transform: none; }
  .svc-text { font-size: 16px; }
  .cgrid { gap: 10px; grid-auto-rows: 200px; }
  .ctile { padding: 14px; }
  .ctile-body b { font-size: 15px; }
  .ctile-body small { display: none; }
  .ctile-tag { top: 10px; left: 10px; padding: 4px 10px; font-size: 12px; }
  .ctile-count { display: none; }
  .cm-nav { width: 40px; height: 40px; margin-top: -20px; }
  .article-body { font-size: 16px; }
  .article-cover { border-radius: var(--r-md); }
  .cart-row { grid-template-columns: 72px minmax(0, 1fr); }
  .cart-row img { width: 72px; height: 72px; }
  .cart-row .cart-sum { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .cart-remove { margin: 0; }
  .buybox-card, .brief-card, .cart-form, .contacts-card { padding: 20px; }
  .empty { padding: 24px; }
  :root { --gut: 16px; }
  .util { display: none; }
  .hdr-in { min-height: 64px; gap: 10px; }
  .logo-name { font-size: 20px; }
  .logo-mark { height: 34px; }
  .cat-btn { display: none; }
  .hdr-icons { gap: 0; }
  .hdr-ico span { display: none; }
  .hdr-ico { min-width: 44px; }
  .banner { height: auto; min-height: 600px; }
  .banner-slide::before { background: linear-gradient(0deg, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 55%, transparent) 60%, transparent 100%); }
  .banner-in { padding-bottom: 100px; }
  .banner-nav-wrap { bottom: 28px; justify-content: flex-start; }
  .cat-name { font-size: 16px; }
  .cat { padding: 14px; }
  .cats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .brief-grid { grid-template-columns: minmax(0, 1fr); }
  .modal { padding: 28px 20px; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-brand, .ftr-contacts { grid-column: 1 / -1; }
  .ftr-legal a { margin-left: 0; }
  }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
