/* MStands — светлый стиль: белые карточки на сером, жёлтые действия, CMYK-акценты. Mobile-first. */
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-cyrillic.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: Manrope; src: url(/assets/fonts/manrope-latin.woff2) format("woff2"); font-weight: 200 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191-2199, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --paper: #fff; --bg: #f5f6f8; --surface: #fff; --ink: #25282d; --ink-2: #4b4f57; --muted: #737781; --muted-2: #9a9ea6; --line: #e8e9ed;
  --cyan: #05aeeb; --cyan-ink: #1a8db8; --pink: #fc0a97; --yellow: #ffed00;
  --action: #ffdf36; --action-hover: #ffd426; --soft-yellow: #fff6cb; --soft-blue: #eaf6ff; --field: #f5f6f8;
  --ok: #2b8a3e; --err: #c92a2a;
  --r: 24px; --r-md: 18px; --r-sm: 12px; --shadow: 0 10px 40px rgba(37, 40, 45, .07);
  --wrap: 1280px; --gutter: 16px;
  --font: Manrope, "Segoe UI", Roboto, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font: 400 15px/1.5 var(--font); color: var(--ink); background: var(--bg); padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--cyan-ink); }
h1, h2, h3 { margin: 0 0 .4em; color: var(--ink); }
h1 { font-size: clamp(36px, 6.4vw, 66px); line-height: 1.04; font-weight: 700; letter-spacing: -.045em; }
h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.035em; }
h3 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.15; font-weight: 600; letter-spacing: -.03em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Акценты заголовков: вторая строка бирюзовая или серая */
.hl { color: var(--cyan-ink); }
.hl-muted { color: #8a95a3; }
.eyebrow { display: block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; background: var(--paper); color: var(--muted); }
.pill--yellow { background: var(--soft-yellow); color: #6b5a00; }
.pill--yellow::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c9a800; }
.pill--blue { background: var(--soft-blue); color: var(--cyan-ink); }
.pill--line { background: transparent; border: 1px solid var(--line); }

/* Кнопки: жёлтое действие со стрелкой */
.btn { display: inline-flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 48px; padding: 0 22px; border-radius: 14px;
  border: 1px solid transparent; font: 600 15px/1 var(--font); cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; color: var(--ink); }
.btn::after { content: "↗"; font-size: 1.15em; font-weight: 500; }
.btn--noarrow::after, .btn--sm::after { content: none; }
.btn--accent, .btn--primary { background: var(--action); }
.btn--accent:hover, .btn--primary:hover { background: var(--action-hover); color: var(--ink); }
.btn--ghost { background: var(--paper); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--light { background: var(--paper); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--soft { background: var(--bg); }
.btn--sm { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 11px; }
.btn--lg { min-height: 56px; padding: 0 26px; font-size: 16px; }
.btn--wide { width: 100%; }
.arrow { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft-yellow); color: #8a7300; font-size: 17px; flex: none; transition: background .15s; }
a:hover .arrow, button:hover .arrow { background: var(--action); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: var(--ink); }
.input { width: 100%; min-height: 48px; padding: 12px 16px; border: 1px solid transparent; border-radius: 14px; background: var(--field); font: inherit; color: var(--ink); }
.input:focus { outline: none; border-color: var(--action); background: #fff; }
textarea.input { min-height: 96px; resize: vertical; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2325282d' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }
.field { display: grid; gap: 8px; margin-bottom: 14px; font-size: 13px; color: var(--ink-2); }
.field--inline { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 12px; color: var(--muted); margin: 8px 0 16px; }
.check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #d4b400; flex: none; }

/* Шапка */
.hdr { background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(10px); position: sticky; top: 0; z-index: 30; }
.hdr__main { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.logo__mark { width: 40px; height: 40px; flex: none; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-size: 26px; font-weight: 500; letter-spacing: -.04em; }
.logo__sub { font-size: 9px; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }
.search { position: relative; grid-column: 1 / -1; order: 5; display: flex; }
.search input { flex: 1; min-height: 46px; border: 2px solid var(--action); border-radius: 16px; padding: 0 56px 0 18px; font: inherit; background: #fff; color: var(--ink); }
.search input::placeholder { color: var(--muted-2); }
.search input:focus { outline: none; border-color: var(--action-hover); box-shadow: 0 0 0 4px var(--soft-yellow); }
.search button[type=submit]:not(.btn) { position: absolute; right: 5px; top: 5px; width: 36px; height: 36px; border: 0; border-radius: 11px; background: var(--action); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.search--page { max-width: 720px; margin: 0 0 20px; gap: 8px; }
.search--page input { padding-right: 18px; border-width: 1px; border-color: var(--line); }
.suggest { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow); overflow: hidden; z-index: 40; }
.suggest a { display: flex; gap: 12px; align-items: center; padding: 10px 16px; }
.suggest a:hover, .suggest a[aria-selected=true] { background: var(--bg); color: var(--ink); }
.suggest img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--bg); }
.suggest small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.suggest .is-cat { font-weight: 600; }
.hdr__contact { display: none; }
.hdr__phone { font-weight: 700; font-size: 15px; white-space: nowrap; }
.hdr__contact small { color: var(--muted); font-size: 11px; }
.hdr__cta { display: none; }
.hdr__fav { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--bg); }
.hdr__fav .badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.hdr__nav { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
.hdr__nav::-webkit-scrollbar { display: none; }
.nav-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 13px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); background: none; border: 0; cursor: pointer; font-family: inherit; }
.nav-pill:hover { background: var(--bg); color: var(--ink); }
.nav-pill--catalog { background: var(--bg); }
.nav-pill[aria-current], .nav-pill[aria-expanded=true], .nav-pill--on { background: var(--action); }
.nav-sep { width: 1px; height: 24px; background: var(--line); margin: 0 12px; flex: none; }
.nav-link { font-size: 13px; color: var(--muted); padding: 10px 12px; white-space: nowrap; }
.nav-link:hover { color: var(--ink); }
.city-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 10px 12px; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; margin-left: auto; }
.city-btn b { color: var(--ink); font-weight: 600; }
.mega { background: #fff; border-top: 1px solid var(--line); max-height: calc(100vh - 150px); overflow: auto; box-shadow: 0 30px 40px rgba(37, 40, 45, .08); }
.mega__grid { display: grid; gap: 22px 28px; padding-top: 24px; padding-bottom: 28px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.mega__col { display: grid; gap: 7px; align-content: start; font-size: 14px; }
.mega__col a { color: var(--muted); }
.mega__col a:hover { color: var(--ink); }
.mega__title { font-weight: 700; font-size: 15px; color: var(--ink) !important; margin-bottom: 4px; letter-spacing: -.01em; }

.crumbs { display: flex; flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; scrollbar-width: none; gap: 10px; font-size: 12px; color: var(--muted-2); padding-top: 22px; padding-bottom: 4px; }
.crumbs a { color: var(--muted-2); }
.crumbs a:hover { color: var(--ink); }
.crumbs__sep { opacity: .7; }

/* Заголовок страницы: подпись, большой H1, заметка справа */
.page-head { display: grid; gap: 16px; margin: 36px 0 34px; }
.page-head h1 { margin: 0; }
.page-head__note { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 320px; }
.page-head__note--plus { display: flex; gap: 14px; }
.page-head__note--plus::before { content: "+"; color: #d4b400; font-size: 28px; line-height: .8; font-weight: 300; }
.lead-text { color: var(--ink-2); max-width: 760px; }

/* Главная: hero */
.hero { padding: 24px 0 0; }
.hero__card { position: relative; background: #fff; border-radius: 28px; overflow: hidden; display: grid; }
.hero__text { position: relative; z-index: 2; padding: 26px 22px 28px; }
.hero__text h1 { margin: 22px 0 22px; }
.hero__lead { font-size: 18px; font-weight: 500; margin-bottom: 10px; }
.hero__sub { color: var(--muted); font-size: 13px; line-height: 1.6; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 28px; }
.hero__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hero__tags .pill { background: var(--bg); }
.hero__img { position: relative; min-height: 240px; }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 78% center; }
.hero__badge { position: absolute; top: 20px; right: 20px; z-index: 3; }
.hero__caption { position: absolute; right: 24px; bottom: 22px; z-index: 3; text-align: right; font-size: 10px; color: var(--muted); line-height: 1.5; display: none; }

.section { padding-top: 64px; padding-bottom: 8px; }
.section__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; margin-bottom: 22px; }
.section__note { color: var(--muted); font-size: 12px; text-align: right; line-height: 1.6; }
.section__head { display: grid; gap: 16px; margin-bottom: 26px; }
.section__head h2 { margin: 0; }
.section__side { color: var(--muted); font-size: 13px; line-height: 1.6; max-width: 300px; }
.section--tint { background: #eef0f3; margin-top: 64px; padding-bottom: 64px; }
.more { font-weight: 600; white-space: nowrap; display: inline-flex; gap: 10px; align-items: center; font-size: 14px; }

/* 01 / Что производим: список направлений + карточка */
.produce { display: grid; gap: 16px; }
.produce__list { background: #fff; border-radius: var(--r); padding: 10px; display: grid; gap: 2px; align-content: start; }
.produce__item { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 8px; padding: 16px 16px; border-radius: 16px; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.produce__item small { font-size: 10px; color: var(--muted-2); align-self: start; padding-top: 3px; }
.produce__item::after { content: "↗"; color: var(--muted-2); font-size: 18px; }
.produce__item:hover, .produce__item[aria-current] { background: var(--action); color: var(--ink); }
.produce__item:hover::after, .produce__item[aria-current]::after { content: "↗"; width: 30px; height: 30px; display: grid; place-items: center; background: #fff; border-radius: 50%; color: var(--ink); font-size: 15px; }
.produce__help { display: flex; gap: 14px; padding: 18px 16px 10px; font-size: 12px; color: var(--muted); }
.produce__help::before { content: "↳"; font-size: 22px; color: var(--muted-2); line-height: 1; }
.produce__help a { color: var(--ink); }
.feature { background: #fff; border-radius: var(--r); padding: 12px; display: grid; gap: 14px; }
.feature__img { position: relative; border-radius: 18px; overflow: hidden; background: var(--bg); aspect-ratio: 16 / 7; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; }
.feature__img .pill { position: absolute; top: 14px; left: 14px; }
.feature__body { padding: 4px 12px 10px; display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.feature__body h3 { margin: 0 0 8px; }
.feature__body p { color: var(--muted); font-size: 13px; margin-bottom: 12px; max-width: 360px; }
.feature__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.feature__tags .pill { background: var(--bg); text-transform: none; font-size: 11px; }

/* 02 / Работы: фильтр-чипсы и большие карточки */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { padding: 10px 16px; border-radius: 999px; background: #fff; font-size: 13px; color: var(--ink-2); border: 0; cursor: pointer; font-family: inherit; }
.chip sup { font-size: 9px; color: var(--muted); margin-left: 4px; }
.chip--on, .chip[aria-pressed=true] { background: var(--action); color: var(--ink); }
.works { display: grid; gap: 18px; }
.work { display: grid; gap: 12px; }
.work__img { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.work__img img { max-height: 100%; width: auto; object-fit: contain; }
.work__img .pill { position: absolute; left: 14px; bottom: 14px; background: var(--bg); }
.work__img .arrow { position: absolute; right: 14px; top: 14px; background: var(--action); color: var(--ink); width: 44px; height: 44px; font-size: 19px; }
.work__cap { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 0 4px; }
.work__cap h3 { margin: 0; }
.work__cap small { color: var(--muted-2); font-size: 11px; }
.work__cap p { color: var(--muted); font-size: 12px; margin: 0; grid-column: 1; }
.works__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; border-top: 1px solid #dfe2e7; margin-top: 30px; padding-top: 22px; font-size: 12px; color: var(--muted); }
.works__foot a { color: var(--ink); font-weight: 600; font-size: 13px; }

/* 03 / Процесс */
.process { display: grid; gap: 28px; align-items: center; }
.process__img { position: relative; background: #fff; border-radius: var(--r); overflow: hidden; }
.process__img img { width: 100%; }
.process__label { position: absolute; left: 24px; bottom: 22px; font-size: clamp(18px, 2.4vw, 28px); line-height: 1.05; letter-spacing: -.03em; text-transform: uppercase; font-weight: 500; }
.process__plus { position: absolute; right: 26px; bottom: 26px; color: var(--pink); font-size: 44px; font-weight: 200; line-height: 1; }
.steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 22px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; }
.steps i { font-style: normal; width: 34px; height: 34px; border-radius: 50%; background: var(--soft-yellow); color: #8a7300; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.steps b { display: block; font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 13px; }

/* 04 / Большой CTA на жёлтом */
.cta { margin: 64px auto 0; max-width: calc(var(--wrap) + 40px); padding: 0 var(--gutter); }
.cta__in { background: #fff09a; border-radius: 28px; padding: 30px 22px; display: grid; gap: 24px; }
.cta h2 { font-size: clamp(44px, 8vw, 96px); line-height: .95; letter-spacing: -.05em; font-weight: 600; margin: 0; }
.cta h2 span { color: #c4a200; font-weight: 300; }
.cta p { color: #6b6440; font-size: 13px; margin: 0; max-width: 260px; line-height: 1.6; }
.cta__bottom { display: grid; gap: 20px; align-items: end; }
.cta__btn { display: flex; justify-content: space-between; align-items: center; gap: 30px; background: #fff; border-radius: 22px; padding: 18px 22px; font-size: 22px; line-height: 1.1; font-weight: 500; letter-spacing: -.02em; border: 0; cursor: pointer; font-family: inherit; color: var(--ink); text-align: left; max-width: 340px; }
.cta__btn::after { content: "↗"; font-size: 40px; color: #b39500; font-weight: 300; }
.cta__btn:hover { background: var(--action); }

/* FAQ */
.faq-block { display: grid; gap: 24px; margin-top: 64px; }
.faq { background: #fff; border-radius: var(--r); padding: 6px 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 20px 30px 20px 0; font-size: 15px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 16px; font-size: 22px; font-weight: 300; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .prose { padding-bottom: 18px; color: var(--ink-2); font-size: 14px; }

/* Каталог: направления слева, карточки справа */
.cat-layout { display: grid; gap: 20px; align-items: start; }
.cat-side { display: grid; gap: 16px; }
.cat-side__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 14px; }
.dirs { background: #fff; border-radius: var(--r); padding: 8px; display: grid; gap: 2px; }
.dirs a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 12px; border-radius: 14px; font-size: 14px; color: var(--muted); }
.dirs a::after { content: "↗"; color: var(--muted-2); }
.dirs a:hover { color: var(--ink); background: var(--bg); }
.dirs a[aria-current] { background: var(--action); color: var(--ink); font-weight: 600; }
.dirs a[aria-current]::after { color: var(--ink); }
.dirs .dirs__sub { padding-left: 24px; font-size: 13px; }
.side-card { background: #fff; border-radius: var(--r); padding: 22px 20px; }
.side-card b { display: block; font-size: 15px; margin-bottom: 10px; }
.side-card p { color: var(--muted-2); font-size: 12px; line-height: 1.6; }
.side-card--yellow { background: var(--soft-yellow); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.toolbar__search { flex: 1 1 260px; position: relative; }
.toolbar__search input { width: 100%; min-height: 50px; border: 0; border-radius: 16px; background: #fff; padding: 0 18px 0 44px; font: inherit; }
.toolbar__search::before { content: "⌕"; position: absolute; left: 18px; top: 13px; color: var(--muted); font-size: 18px; }
.toolbar__search input:focus { outline: 2px solid var(--action); }
.toolbar__sort .input { min-height: 50px; background-color: #fff; font-size: 13px; color: var(--muted); }
.toolbar__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin: 6px 2px 14px; }
.filters { position: fixed; inset: auto 0 0 0; z-index: 50; background: #fff; border-radius: 24px 24px 0 0; padding: 18px var(--gutter) 24px; box-shadow: 0 -10px 40px rgba(0,0,0,.15);
  display: grid; gap: 12px; max-height: 80vh; overflow: auto; transform: translateY(105%); transition: transform .25s; }
.filters.is-open { transform: none; }
.filters__head { display: flex; justify-content: space-between; align-items: center; }
.filters__btns { display: flex; gap: 10px; }
.grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.grid--row { grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x mandatory; }
.grid--row > * { scroll-snap-align: start; }
.card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); padding: 8px 8px 18px; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); }
.card__img { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 18px; background: #f7f8fa; overflow: hidden; margin-bottom: 16px; }
.card__img img { width: 100%; height: 100%; object-fit: contain; }
.card__img2 { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; background: #f7f8fa; }
.card:hover .card__img2 { opacity: 1; }
.card__badges { position: absolute; top: 18px; left: 18px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 2; }
.tag { font-size: 10px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--muted); }
.tag--hit { background: var(--action); color: var(--ink); }
.tag--new { background: var(--soft-blue); color: var(--cyan-ink); }
.tag--stock { background: #e3f5e8; color: #1b5e2b; }
.card__fav { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); cursor: pointer; display: grid; place-items: center; color: var(--muted); z-index: 2; }
.card__fav[aria-pressed=true], [data-fav][aria-pressed=true] { color: var(--pink); }
.card__fav[aria-pressed=true] svg { fill: currentColor; }
.card__cat { font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); padding: 0 10px; margin-bottom: 6px; }
.card__title { font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; margin: 0 10px 8px; }
.card__title a::after { content: ""; position: absolute; inset: 0; }
.card__short { font-size: 12px; color: var(--muted); margin: 0 10px 16px; line-height: 1.6; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding: 0 10px; }
.card__foot .btn { position: relative; z-index: 2; }
.card__price { font-size: 11px; color: var(--muted); line-height: 1.3; }
.card__price b { display: block; font-size: 17px; color: var(--ink); font-weight: 700; letter-spacing: -.02em; }
.pager { display: grid; justify-items: center; gap: 14px; margin: 28px 0; }
.pager__nums { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.pager__nums a, .pager__nums span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: #fff; }
.pager__nums [aria-current] { background: var(--action); }
.empty { background: #fff; border-radius: var(--r); padding: 34px; text-align: center; display: grid; gap: 14px; justify-items: center; }
.seo { margin-top: 36px; background: #fff; border-radius: var(--r); padding: 28px; position: relative; }
.seo.is-collapsed { max-height: 280px; overflow: hidden; }
.seo.is-collapsed::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 100px; background: linear-gradient(transparent, #fff); }
.seo-more { margin-top: 10px; }
.subcats { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; scrollbar-width: thin; }
.subcat { flex: none; display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 14px; background: #fff; font-size: 13px; font-weight: 500; }
.subcat img { width: 44px; height: 44px; object-fit: contain; border-radius: 10px; background: var(--bg); }
.subcat small { display: block; font-weight: 400; color: var(--muted); }

/* Карточка товара */
.product { display: grid; gap: 28px; padding-top: 18px; }
.product__top { display: grid; gap: 20px; }
.gallery__main { position: relative; background: #fff; border-radius: var(--r); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; }
.gallery__main img { max-height: 100%; width: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 72px; height: 72px; border-radius: 14px; border: 2px solid transparent; background: #fff; padding: 3px; cursor: pointer; }
.gallery__thumbs button[aria-current=true] { border-color: var(--action); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.gallery__video { flex: none; display: grid; place-items: center; padding: 0 16px; border-radius: 14px; background: var(--ink); color: #fff; font-size: 13px; }
.product__info h1 { font-size: clamp(30px, 4vw, 46px); }
.product__short { font-size: 16px; color: var(--ink-2); }
.opt { border: 0; padding: 0; margin: 0 0 16px; }
.opt legend { font-size: 12px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.opt__item { display: inline-flex; margin: 0 6px 6px 0; cursor: pointer; }
.opt__item input { position: absolute; opacity: 0; }
.opt__item span { padding: 11px 16px; border-radius: 12px; background: #fff; font-size: 14px; border: 1px solid var(--line); }
.opt__item input:checked + span { background: var(--action); border-color: var(--action); }
.opt__item input:focus-visible + span { outline: 3px solid var(--cyan); }
.opt__item--row { display: flex; width: 100%; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; margin: 0 0 6px; background: #fff; border: 1px solid var(--line); }
.opt__item--row span { border: 0; padding: 0; flex: 1; background: none; }
.opt__item--row:has(input:checked) { background: var(--soft-yellow); border-color: var(--action); }
.buybox { background: var(--soft-yellow); border-radius: var(--r); padding: 22px; }
.buybox__price { display: flex; align-items: baseline; gap: 12px; }
.price { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.old { color: var(--muted); }
.buybox__facts { list-style: none; padding: 0; margin: 12px 0 18px; display: grid; gap: 8px; font-size: 13px; color: #6b6440; border-top: 1px solid #f2e3a0; padding-top: 12px; }
.buybox__btns { display: grid; gap: 8px; }
.buybox__btns .btn--ghost { border-color: transparent; }
.buybox__aux { display: flex; gap: 18px; margin: 14px 0 8px; font-size: 13px; }
.product__tabs { background: #fff; border-radius: var(--r); padding: 8px 26px 26px; }
.tabs__nav { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs__nav button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 16px 4px; margin-right: 18px; font: 600 14px var(--font); color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs__nav [aria-selected=true] { color: var(--ink); border-bottom-color: var(--action-hover); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 400; color: var(--muted); width: 45%; padding-right: 20px; }
.table-scroll { overflow-x: auto; background: #fff; border-radius: var(--r); padding: 10px 20px; }
.specs--compare th { width: auto; min-width: 140px; }
.product-bar { position: fixed; left: 0; right: 0; bottom: 64px; z-index: 25; display: none; align-items: center; gap: 12px; padding: 10px var(--gutter); background: rgba(255,255,255,.97); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
.product-bar.is-on { display: flex; }
.product-bar__title { display: none; }
.product-bar .btn { margin-left: auto; }

/* Калькулятор */
.calc-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 6px; background: #e6e8ec; border-radius: 22px; padding: 6px; overflow-x: auto; margin-bottom: 22px; }
.calc-tabs button { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 17px; background: none; border: 0; font: 500 14px var(--font); color: var(--ink-2); cursor: pointer; text-align: left; }
.calc-tabs button small { font-size: 9px; color: var(--muted-2); }
.calc-tabs button::after { content: "↗"; margin-left: auto; font-size: 18px; color: var(--muted); }
.calc-tabs button[aria-selected=true] { background: var(--action); color: var(--ink); }
.calc { display: grid; gap: 20px; align-items: start; }
.calc__form { background: #fff; border-radius: var(--r); padding: 28px; }
.calc__form h2 { font-size: 26px; margin-bottom: 22px; }
.calc__row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: end; }
.calc__row > span { padding-bottom: 14px; color: var(--muted); }
.calc__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc__res { background: var(--soft-yellow); border-radius: var(--r); padding: 28px; position: sticky; top: 150px; }
.calc__res-top { display: flex; justify-content: space-between; align-items: center; }
.calc__viz { display: grid; place-items: center; padding: 34px 20px 30px; position: relative; }
.calc__viz-w { font-size: 11px; color: var(--muted); margin-bottom: 14px; }
.calc__viz-box { background: #fff; border-radius: 6px; box-shadow: 12px 12px 0 #f5e7a6; transform: rotate(-3deg) skewX(-4deg); display: flex; align-items: center; padding: 18px 24px; font-size: 22px; line-height: .95; font-weight: 600; color: #6e7380; transition: width .25s, height .25s; max-width: 100%; position: relative; }
.calc__viz-box::after { content: ""; position: absolute; right: 40px; top: 12px; bottom: 12px; width: 3px; background: #f0dc63; border-radius: 2px; }
.calc__viz-h { position: absolute; right: 0; top: 50%; transform: rotate(90deg); font-size: 11px; color: var(--muted); }
.calc__lines { display: grid; }
.calc__lines div { display: flex; justify-content: space-between; padding: 14px 0; border-top: 1px solid #f0e2a3; font-size: 13px; color: #6b6440; }
.calc__lines b { color: var(--ink); font-weight: 600; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; border-top: 1px solid #f0e2a3; }
.calc__total b { font-size: 30px; letter-spacing: -.03em; }
.calc__note { font-size: 11px; color: #8d8558; margin: 12px 0 18px; }

/* Контакты */
.contact-cards { display: grid; gap: 20px; }
.contact-card { background: #fff; border-radius: var(--r); padding: 30px 28px; position: relative; overflow: hidden; }
.contact-line { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-line:first-child { padding-top: 0; }
.contact-line small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-line b { font-size: clamp(24px, 3vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.contact-card h3 { margin-top: 26px; }
.contact-card p { color: var(--muted); font-size: 13px; }
.brand-card { display: grid; place-items: center; text-align: center; gap: 14px; min-height: 420px; }
.brand-card::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: var(--soft-yellow); }
.brand-card .eyebrow { position: absolute; left: 28px; top: 84px; margin: 0; color: var(--muted); }
.brand-card__mark { width: 120px; height: 120px; position: relative; }
.brand-card__name { font-size: clamp(54px, 7vw, 84px); font-weight: 500; letter-spacing: -.05em; line-height: 1; color: #3b3f47; position: relative; }
.map { margin: 20px 0; border-radius: var(--r); overflow: hidden; }

.prose { max-width: 780px; line-height: 1.65; }
.prose img { border-radius: var(--r-sm); margin: 1em 0; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; font-size: 14px; }
.prose td, .prose th { border-bottom: 1px solid var(--line); padding: 10px 8px; text-align: left; }
.prose h2 { margin-top: 1.4em; font-size: 28px; }
.prose a { color: var(--cyan-ink); text-decoration: underline; text-underline-offset: 3px; }
.page-body { background: #fff; border-radius: var(--r); padding: 28px; }
.article__cover { border-radius: var(--r); margin-bottom: 22px; width: 100%; }
.posts { display: grid; gap: 16px; }
.post { background: #fff; border-radius: var(--r); overflow: hidden; display: grid; gap: 8px; padding-bottom: 18px; margin: 0; }
.post img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post b, .post span, .post figcaption { padding: 0 18px; }
.post b { font-size: 17px; letter-spacing: -.02em; }
.post figcaption { display: grid; gap: 4px; padding-top: 10px; }
.reviews { display: grid; gap: 16px; }
.review { margin: 0; background: #fff; border-radius: var(--r); padding: 24px; }
.review footer { font-size: 13px; color: var(--muted); }
.notfound { padding: 50px 16px; }

/* Подвал */
.ftr { background: #fff; margin-top: 64px; position: relative; padding-top: 44px; }
.ftr::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--cyan) 0 33.3%, var(--pink) 33.3% 66.6%, var(--yellow) 66.6%); }
.ftr__top { display: grid; gap: 22px; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.ftr__mail { font-size: clamp(32px, 5vw, 56px); font-weight: 500; letter-spacing: -.04em; display: inline-flex; gap: 20px; align-items: center; }
.ftr__mail::after { content: "↗"; color: var(--cyan-ink); font-size: .7em; }
.ftr__phone { font-size: 22px; font-weight: 500; letter-spacing: -.02em; display: block; }
.ftr__grid { display: grid; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.ftr__grid a { display: block; padding: 3px 0; color: var(--ink-2); }
.ftr__grid a:hover { color: var(--ink); }
.ftr__grid .logo { display: flex; padding: 0; }
.ftr__h { font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin-bottom: 10px; }
.ftr__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding: 18px 0 22px; font-size: 11px; color: var(--muted-2); }
.msgr { display: flex; gap: 8px; margin-top: 10px; }
.msgr a { width: 40px; height: 40px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; padding: 0; }

/* Липкая панель на телефоне */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  background: rgba(255,255,255,.97); box-shadow: 0 -2px 18px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
.sticky-bar a, .sticky-bar button { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; font: 600 11px var(--font); color: var(--ink); background: none; border: 0; cursor: pointer; }
.sticky-bar button { background: var(--action); }

/* Модальные окна */
.modal { border: 0; border-radius: 26px; padding: 30px 28px; width: min(540px, calc(100vw - 24px)); max-height: calc(100vh - 24px); box-shadow: 0 30px 80px rgba(0,0,0,.2); color: var(--ink); }
.modal::backdrop { background: rgba(37,40,45,.45); backdrop-filter: blur(3px); }
.modal h2 { font-size: 28px; }
.modal__x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: var(--bg); border-radius: 12px; font-size: 22px; cursor: pointer; color: var(--muted); }
.city-list { list-style: none; padding: 0; margin: 16px 0 0; columns: 2; column-gap: 16px; max-height: 50vh; overflow: auto; }
.city-list a { display: block; padding: 7px 0; color: var(--ink-2); }
.city-list [aria-current] { font-weight: 700; color: var(--cyan-ink); }
.form-msg { margin: 10px 0 0; font-size: 13px; }
.form-msg.is-err { color: var(--err); }
.form-msg.is-ok { color: var(--ok); font-weight: 600; }
.cookie { position: fixed; left: 8px; right: 8px; bottom: 70px; z-index: 60; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 12px; line-height: 1.45; }
.cookie p { margin: 0 0 10px; color: var(--ink-2); }
.cookie__btns { display: flex; gap: 8px; }
.cookie .btn { min-height: 38px; padding: 0 14px; font-size: 13px; }
.cookie .btn::after { content: none; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .grid--row { grid-auto-columns: 46%; }
  .posts, .reviews { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: 1fr 1fr; }
  .works .work:first-child { grid-column: 1 / -1; }
  .works .work:first-child .work__img { aspect-ratio: 21 / 8; }
  .cookie { left: auto; right: 20px; bottom: 20px; max-width: 420px; }
  .hero__caption { display: block; }
}
@media (min-width: 960px) {
  body { padding-bottom: 0; }
  .sticky-bar { display: none; }
  .product-bar { bottom: 0; }
  .product-bar__title { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .hdr__main { grid-template-columns: auto 1fr auto auto auto; gap: 24px; padding-top: 18px; padding-bottom: 14px; }
  .search { grid-column: auto; order: 0; }
  .search input { min-height: 50px; }
  .search button[type=submit]:not(.btn) { width: 42px; height: 40px; }
  .hdr__contact { display: grid; }
  .hdr__cta { display: inline-flex; }
  .hdr__fav { order: 3; }
  .crumbs { flex-wrap: wrap; white-space: normal; }
  .page-head { grid-template-columns: 1fr auto; align-items: center; margin: 44px 0 40px; }
  .hero__card { grid-template-columns: 1fr; min-height: 580px; }
  .hero__text { padding: 34px 44px; max-width: 760px; }
  .hero__img { position: absolute; inset: 0 0 0 auto; width: 66%; min-height: 0; }
  .hero__img img { object-position: 85% center; }
  .hero__img::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 38%; background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.85) 35%, rgba(255,255,255,0)); z-index: 1; }
  .section__head { grid-template-columns: 1fr auto; align-items: end; }
  .produce { grid-template-columns: 1fr 1.15fr; }
  .works { grid-template-columns: 1fr 1fr; gap: 26px 18px; }
  .process { grid-template-columns: 1fr 1fr; gap: 48px; }
  .cta__in { padding: 44px 44px 40px; }
  .cta__bottom { grid-template-columns: 1fr auto; }
  .cta__btn { min-width: 300px; font-size: 26px; padding: 22px 26px; }
  .faq-block { grid-template-columns: 1fr 1.4fr; gap: 60px; }
  .cat-layout { grid-template-columns: 240px 1fr; gap: 26px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .grid--row { grid-auto-columns: calc(25% - 14px); }
  .toolbar__filters, .filters__head { display: none; }
  .filters { position: static; transform: none; box-shadow: none; padding: 0; background: none; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; max-height: none; overflow: visible; border-radius: 0; width: 100%; }
  .filters .field { min-width: 160px; margin: 0; }
  .filters .input { background-color: #fff; min-height: 44px; }
  .filters .check { margin: 0 0 12px; }
  .product__top { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; }
  .product__info { position: sticky; top: 160px; align-self: start; }
  .buybox__btns { grid-template-columns: 1fr 1fr; }
  .buybox__btns .btn--lg { grid-column: 1 / -1; }
  .calc { grid-template-columns: 1fr 1fr; gap: 26px; }
  .contact-cards { grid-template-columns: 1fr 1fr; gap: 26px; }
  .posts, .reviews { grid-template-columns: repeat(3, 1fr); }
  .ftr__top { grid-template-columns: 1fr auto; align-items: end; }
  .ftr__grid { grid-template-columns: 1.2fr 1fr 1fr 1fr; }
  .city-list { columns: 3; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
