/* generator1.ru — Russian Engineering Group. Графит + янтарь, шрифт Manrope. */

:root {
  --ink: #15191F;
  --ink-2: #3A414C;
  --muted: #5A6270;
  --graphite: #1B2129;
  --graphite-2: #2A323D;
  --graphite-3: #0F1318;
  --on-dark: #E8EAED;
  --on-dark-muted: #B9BFC8;
  --ground: #F4F5F2;
  --card: #FFFFFF;
  --line: #E2E4DF;
  --line-2: #D5D8D2;
  --line-soft: #EEF0EC;
  --accent: #F2A007;
  --accent-hover: #FFB224;
  --accent-ink: #8A5A00;
  --accent-soft: #FFF4DC;
  --ok-bg: #DDF3E4; --ok: #11622F;
  --warn-bg: #FFF4DC; --warn: #7A4F00;
  --bad-bg: #EEF0EC; --bad: #4A5361;
  --err: #B42318;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 20px;
  --shadow: 0 12px 32px rgba(15, 19, 24, .12);
  --wrap: 1240px;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; }
a { color: var(--ink); text-underline-offset: 2px; }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
h2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; }
h3, .h3 { font-size: 20px; font-weight: 800; }
button { font: inherit; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.page { padding-top: 8px; padding-bottom: 64px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--accent); color: var(--ink); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 820px; margin: 0 0 24px; }
.lead p { margin: 0 0 .6em; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.eyebrow--dark { color: var(--muted); letter-spacing: .05em; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin: 24px 0; }
.section-title { margin-top: 40px; font-size: clamp(20px, 2.4vw, 26px); }
.section-title a { text-decoration: none; }

/* ---------- кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px;
  border-radius: var(--r); border: 1.5px solid transparent; font-weight: 700; font-size: 15px; line-height: 1.2; text-decoration: none; cursor: pointer; text-align: center; transition: background .15s, border-color .15s; }
.btn--accent { background: var(--accent); color: var(--ink); }
.btn--accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2C333D; color: #fff; }
.btn--ghost { border-color: #4A5361; color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; color: #fff; }
.btn--ghost-dark { border-color: var(--line-2); color: var(--ink); background: #fff; }
.btn--ghost-dark:hover { border-color: var(--ink); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn--lg { min-height: 52px; padding: 14px 24px; font-size: 16px; }
.btn--block { width: 100%; }
.link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font: inherit; }
.icon-btn { width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--graphite-2); color: #fff; display: inline-flex; align-items: center; justify-content: center; position: relative; cursor: pointer; flex-shrink: 0; }
.icon-btn:hover { color: var(--accent); }
.icon-btn--light { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.icon-btn--light svg { width: 18px; height: 18px; }

/* ---------- шапка */
.topbar { background: var(--graphite-3); color: var(--on-dark-muted); font-size: 13px; }
.topbar__in { display: flex; justify-content: space-between; gap: 8px 24px; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar a { color: var(--on-dark-muted); text-decoration: none; }
.topbar a:hover { color: var(--accent); }
.header { background: var(--graphite); color: #fff; position: relative; z-index: 20; }
.header__in { display: flex; align-items: center; gap: 16px 24px; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; flex-shrink: 0; }
.logo:hover { color: #fff; }
.logo__mark { width: 48px; height: 48px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text b { font-size: 16px; font-weight: 800; letter-spacing: .02em; }
.logo__text small { font-size: 12px; color: var(--on-dark-muted); }
.search { position: relative; flex: 1 1 260px; display: flex; align-items: center; background: var(--graphite-2); border-radius: 10px; height: 44px; padding: 0 14px; gap: 10px; }
.search__icon { width: 18px; height: 18px; color: var(--on-dark-muted); flex-shrink: 0; }
.search__input { flex: 1; min-width: 0; background: transparent; border: 0; outline: none; color: #fff; font-size: 14px; height: 100%; }
.search__input::placeholder { color: var(--on-dark-muted); }
.search:focus-within { box-shadow: 0 0 0 2px var(--accent); }
.search__drop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff; color: var(--ink); border-radius: var(--r); box-shadow: var(--shadow); max-height: 380px; overflow-y: auto; z-index: 40; padding: 6px; }
.search__drop a { display: flex; flex-direction: column; padding: 8px 10px; border-radius: var(--r-sm); text-decoration: none; }
.search__drop a:hover, .search__drop a.is-active { background: var(--ground); }
.search__drop small { color: var(--muted); font-size: 12px; }
.search__drop .empty-hint { padding: 10px; color: var(--muted); font-size: 14px; }
.search--page { background: #fff; border: 1px solid var(--line-2); max-width: 640px; margin: 0 0 24px; height: 52px; padding: 4px 4px 4px 16px; }
.search--page .search__input { color: var(--ink); font-size: 16px; }
.search--page .search__input::placeholder { color: var(--muted); }
.header__phones { display: flex; flex-direction: column; line-height: 1.3; white-space: nowrap; }
.header__phones a { color: #fff; text-decoration: none; }
.phone-main { font-weight: 700; font-size: 17px; }
.phone-alt { font-size: 13px; color: var(--on-dark-muted) !important; }
.cart-btn__n { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: var(--ink); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.cart-btn__n[hidden] { display: none; }
.burger { display: none; }

.nav { border-top: 1px solid var(--graphite-2); }
.nav__list { list-style: none; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 0 28px; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__link { display: block; padding: 14px 0; color: var(--on-dark); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 2px solid transparent; }
.nav__link:hover, .nav__item.is-active > .nav__link { color: var(--accent); }
.nav__item.is-active > .nav__link { border-bottom-color: var(--accent); }
.nav__toggle { display: none; }
.nav__sub { position: absolute; top: 100%; left: -16px; background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); padding: 10px; min-width: 260px; display: none; gap: 8px; z-index: 30; }
.nav__sub ul { list-style: none; margin: 0; padding: 0; min-width: 230px; }
.nav__sub a { display: block; padding: 8px 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-size: 15px; }
.nav__sub a:hover { background: var(--ground); color: var(--ink); }
.nav__item.has-sub:hover > .nav__sub, .nav__item.has-sub:focus-within > .nav__sub { display: flex; }
.nav__sub--cols ul + ul { border-left: 1px solid var(--line-soft); padding-left: 8px; }

/* ---------- хлебные крошки, сообщения */
.crumbs ol { list-style: none; margin: 0; padding: 18px 0 6px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.crumbs span { color: var(--ink); }
.flash { margin: 12px 0; padding: 14px 18px; border-radius: var(--r); background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.flash a { color: inherit; }
.flash--error { background: #FDECEA; color: var(--err); }
.flash--cart { background: var(--accent-soft); color: var(--warn); }

/* ---------- главная */
.hero { background: var(--graphite); color: #fff; }
.hero__in { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 56px; padding-bottom: 88px; }
.hero__text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 20px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; margin: 0; }
.hero__lead { margin: 0; font-size: 19px; color: #C9CED6; max-width: 560px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__img { flex: 1 1 340px; display: flex; justify-content: center; }
.hero__img img { background: #fff; border-radius: var(--r-xl); padding: 24px; width: 100%; max-width: 440px; aspect-ratio: 1; object-fit: contain; }
.picker { margin-top: -48px; position: relative; z-index: 2; }
.picker__box { background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 24px 28px; }
.picker__box h2 { margin-bottom: 14px; }
.picker__row { display: flex; flex-wrap: wrap; gap: 20px 36px; align-items: flex-end; }
.picker__group { border: 0; margin: 0; padding: 0; }
.picker__group legend { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; padding: 0; }
.picker__go { margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips__label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 20px; border: 1.5px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 600; }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips--links { margin: 0 0 24px; }
.chip-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip-link.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip-link .cnt, .check .cnt { color: var(--muted); font-weight: 500; font-size: 12px; }
.chip-link.is-on .cnt { color: var(--on-dark-muted); }

.section { padding-top: 56px; }
.section__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.section__head h2 { margin: 0; }
.section__head a { font-weight: 600; }
.section__head--sub { margin-top: 40px; }
.grid { display: grid; gap: 20px; }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--sol { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; }
.grid--cards { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.cat { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; text-decoration: none; transition: border-color .15s, transform .15s; }
.cat:hover { border-color: var(--ink); color: var(--ink); }
.cat img { width: 96px; height: 96px; object-fit: contain; flex-shrink: 0; }
.cat span, .sol { display: flex; flex-direction: column; gap: 6px; }
.cat b { font-size: 18px; line-height: 1.2; }
.cat small, .sol small { font-size: 14px; color: var(--muted); }
.sol { background: var(--graphite); color: #fff; border-radius: 14px; padding: 22px; min-height: 120px; justify-content: space-between; text-decoration: none; }
.sol:hover { background: var(--graphite-2); color: #fff; }
.sol b { font-size: 18px; }
.sol small { color: var(--on-dark-muted); }
.sol--light { background: #fff; color: var(--ink); border: 1px solid var(--line); min-height: 0; }
.sol--light:hover { background: #fff; color: var(--ink); border-color: var(--ink); }
.sol--light small { color: var(--muted); }
.why { background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); padding: 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.why__item { display: flex; flex-direction: column; gap: 8px; }
.why__item p { margin: 0; color: var(--muted); font-size: 15px; }
.why__item b { font-size: 18px; }
.why__n { width: 44px; height: 44px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.split { display: flex; flex-wrap: wrap; gap: 24px; padding-bottom: 64px; align-items: flex-start; }
.split__main { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.news-row { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; text-decoration: none; }
.news-row:hover { border-color: var(--ink); color: var(--ink); }
.news-row time { font-size: 13px; color: var(--muted); }
.news-row b { font-size: 17px; }
.news-row small { color: var(--muted); font-size: 14px; }
.news-list { display: flex; flex-direction: column; gap: 12px; max-width: 860px; }
.news-cover { border-radius: var(--r-lg); margin: 8px 0 20px; }
.consult-box { flex: 1 1 340px; background: var(--accent); border-radius: var(--r-xl); padding: 28px; }
.consult-box p { margin: 0 0 14px; }
.consult-box .field input { border-color: transparent; }

/* ---------- карточки */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.card__img { display: block; position: relative; background: var(--ground); border-radius: var(--r); padding: 12px; aspect-ratio: 4 / 3; }
.card__img img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; display: block; mix-blend-mode: multiply; }
.card__kind { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; }
.card__title { font-size: 18px; margin: 0; }
.card__title a { text-decoration: none; }
.card__text { margin: 0; color: var(--muted); font-size: 14px; }
.card__specs { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-size: 14px; }
.card__specs dt { color: var(--muted); }
.card__specs dd { margin: 0; font-weight: 600; }
.card__foot { margin-top: auto; padding-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 20px; white-space: nowrap; }
.price--req { font-size: 15px !important; color: var(--ink-2); font-weight: 700; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.card__img .badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.badge--in { background: var(--ok-bg); color: var(--ok); }
.badge--order { background: var(--warn-bg); color: var(--warn); }
.badge--none { background: var(--bad-bg); color: var(--bad); }
.tag { display: inline-block; background: #fff; border: 1px solid var(--line); font-size: 13px; padding: 5px 10px; border-radius: var(--r-sm); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- каталог */
.page-head { display: flex; gap: 20px; align-items: flex-start; }
.page-head__logo { width: 120px; flex-shrink: 0; border-radius: var(--r); background: #fff; padding: 8px; }
.catalog { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 300px; position: sticky; top: 16px; }
.filters__toggle { display: none; }
.filters__form { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 18px; }
.filters fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.filters legend { font-weight: 800; font-size: 15px; margin-bottom: 8px; padding: 0; }
.range { display: flex; gap: 8px; }
.range label { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.range input { height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; width: 100%; font-size: 15px; color: var(--ink); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; cursor: pointer; min-height: 28px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.check .cnt { margin-left: auto; }
.results { flex: 999 1 560px; min-width: 0; }
.results__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; color: var(--muted); }
.results__bar b { color: var(--ink); }
.sort label { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.sort select { height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-sm); padding: 0 10px; background: #fff; color: var(--ink); }
.grid--results { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.empty { background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 28px; }
.empty p { margin: 0 0 8px; }
.series-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.serie { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-decoration: none; }
.serie:hover { border-color: var(--ink); color: var(--ink); }
.serie img { width: 56px; height: 56px; object-fit: contain; }
.serie span { display: flex; flex-direction: column; }
.serie small { color: var(--muted); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin: 28px 0; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: #fff; border: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.pager .is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 8px; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.list-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.list-table th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 700; padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.list-table td { padding: 12px 16px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.list-table tr:last-child td { border-bottom: 0; }
.list-table td small { display: block; color: var(--muted); font-size: 12px; }
.list-table__model { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 200px; }
.list-table__model img { width: 64px; height: 64px; object-fit: contain; background: var(--ground); border-radius: var(--r-sm); padding: 4px; }
.list-table--compact td { padding: 9px 16px; }
.note-row { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-weight: 600; }

/* ---------- карточка товара */
.product { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 12px; align-items: flex-start; }
.gallery { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.gallery__main { display: block; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); aspect-ratio: 1 / .85; }
.gallery__main img { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); object-fit: contain; display: block; }
.gallery__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 80px; height: 80px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; padding: 6px; cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb.is-on { border: 2px solid var(--ink); }
.buy { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.buy__title { font-size: clamp(30px, 4vw, 42px); margin: 0; }
.buy__title--long { font-size: clamp(24px, 3vw, 32px); }
.buy .muted { margin: -8px 0 0; }
.keys { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.key { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.key span { font-size: 13px; color: var(--muted); }
.key b { font-size: 17px; }
.buy__box { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.buy__box p { margin: 0; }
.buy__price { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }
.to-cart { display: flex; flex-direction: column; gap: 12px; }
.card .to-cart { flex-direction: row; }
.install { display: flex; gap: 12px; align-items: flex-start; background: var(--ground); border-radius: var(--r); padding: 14px; cursor: pointer; }
.install input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.install span { display: flex; flex-direction: column; gap: 2px; }
.install small { font-size: 13px; color: var(--muted); }
.install--big { background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 20px; margin: 20px 0 0; }
.install--big.is-on { border-color: var(--accent); }
.install--big b { font-size: 17px; }
.variants { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.variants legend { font-weight: 800; margin-bottom: 8px; padding: 0; }
.variant { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; }
.variant input { accent-color: var(--ink); width: 18px; height: 18px; }
.variant span { display: flex; justify-content: space-between; gap: 12px; flex: 1; flex-wrap: wrap; }
.variant:has(input:checked) { border-color: var(--ink); }
.tabs { margin-top: 40px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 0 28px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.tabs__list button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 16px 0 13px; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer; }
.tabs__list button[aria-selected="true"] { color: var(--ink); font-weight: 800; border-bottom-color: var(--accent); }
.tabs__panel { padding: 24px; }
.specs { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { padding: 10px 0; border-bottom: 1px solid var(--line-soft); text-align: left; vertical-align: top; }
.specs th { color: var(--muted); font-weight: 500; width: 45%; padding-right: 16px; }
.specs td { font-weight: 600; }
.files { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.files a { font-weight: 600; }
.files small { color: var(--muted); }

/* ---------- текстовые страницы */
.content-layout { max-width: 860px; }
.content-layout--wide { max-width: 980px; }
.prose { font-size: 16px; line-height: 1.65; color: var(--ink-2); overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { color: var(--ink); margin-top: 1.6em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose img { border-radius: var(--r); height: auto; }
.prose img[align="left"], .prose img.left { float: left; margin: 4px 20px 12px 0; max-width: 45%; }
.prose img[align="right"], .prose img.right { float: right; margin: 4px 0 12px 20px; max-width: 45%; }
.prose table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.prose th { background: var(--ground); color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose blockquote { margin: 16px 0; padding: 12px 18px; border-radius: var(--r); background: var(--accent-soft); }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: var(--r); }
.prose .video { position: relative; aspect-ratio: 16 / 9; margin: 16px 0; }
.prose .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.prose .clear, .prose .clearfix::after { content: ""; display: block; clear: both; }
.prose .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 16px 0; }
.prose .gallery-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
/* совместимость со старой вёрсткой (сетка Bootstrap в перенесённых текстах) */
.prose .row { display: flex; flex-wrap: wrap; margin: 0 -8px; }
.prose [class*="col-"] { flex: 1 1 100%; min-width: 0; padding: 0 8px; }
.prose .thumbnail { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 6px; }
.prose .well { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 12px 0; }
.prose .hidden-xs, .prose .hidden-sm { display: initial; }
.prose section { margin-top: 32px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose .col-xs-1 { flex-basis: 8.333%; }
.prose .col-xs-2 { flex-basis: 16.667%; }
.prose .col-xs-3 { flex-basis: 25.000%; }
.prose .col-xs-4 { flex-basis: 33.333%; }
.prose .col-xs-5 { flex-basis: 41.667%; }
.prose .col-xs-6 { flex-basis: 50.000%; }
.prose .col-xs-7 { flex-basis: 58.333%; }
.prose .col-xs-8 { flex-basis: 66.667%; }
.prose .col-xs-9 { flex-basis: 75.000%; }
.prose .col-xs-10 { flex-basis: 83.333%; }
.prose .col-xs-11 { flex-basis: 91.667%; }
.prose .col-xs-12 { flex-basis: 100.000%; }
@media (min-width: 600px) {
  .prose .col-sm-1, .prose .col-md-1, .prose .col-lg-1 { flex-basis: 8.333%; }
  .prose .col-sm-2, .prose .col-md-2, .prose .col-lg-2 { flex-basis: 16.667%; }
  .prose .col-sm-3, .prose .col-md-3, .prose .col-lg-3 { flex-basis: 25.000%; }
  .prose .col-sm-4, .prose .col-md-4, .prose .col-lg-4 { flex-basis: 33.333%; }
  .prose .col-sm-5, .prose .col-md-5, .prose .col-lg-5 { flex-basis: 41.667%; }
  .prose .col-sm-6, .prose .col-md-6, .prose .col-lg-6 { flex-basis: 50.000%; }
  .prose .col-sm-7, .prose .col-md-7, .prose .col-lg-7 { flex-basis: 58.333%; }
  .prose .col-sm-8, .prose .col-md-8, .prose .col-lg-8 { flex-basis: 66.667%; }
  .prose .col-sm-9, .prose .col-md-9, .prose .col-lg-9 { flex-basis: 75.000%; }
  .prose .col-sm-10, .prose .col-md-10, .prose .col-lg-10 { flex-basis: 83.333%; }
  .prose .col-sm-11, .prose .col-md-11, .prose .col-lg-11 { flex-basis: 91.667%; }
  .prose .col-sm-12, .prose .col-md-12, .prose .col-lg-12 { flex-basis: 100.000%; }
}
}
.list-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 28px; }
.list-links__item { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; text-decoration: none; }
.list-links__item:hover { border-color: var(--ink); color: var(--ink); }
.list-links__item small { color: var(--muted); font-size: 14px; }
.cta-band { margin-top: 48px; background: var(--accent); border-radius: var(--r-xl); padding: 24px 28px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.cta-band div { display: flex; flex-direction: column; gap: 4px; }
.cta-band b { font-size: 20px; }

/* ---------- формы */
.form { display: flex; flex-direction: column; gap: 14px; }
.form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { height: 48px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font-size: 15px; font-weight: 500; background: #fff; width: 100%; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(242, 160, 7, .35); }
.has-err input, .has-err textarea { border-color: var(--err); }
.field__err, .form__err { color: var(--err); font-size: 13px; font-weight: 600; }
.form__err { background: #FDECEA; padding: 10px 12px; border-radius: var(--r-sm); }
.form__ok { background: var(--ok-bg); color: var(--ok); padding: 12px; border-radius: var(--r-sm); font-weight: 700; }
.check.has-err span { color: var(--err); }

/* ---------- корзина */
.checkout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.checkout__main { flex: 999 1 560px; min-width: 0; }
.checkout__side { flex: 1 1 300px; position: sticky; top: 16px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checkout__side .h3 { margin: 0; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.cart-item { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; }
.cart-item__img img { width: 88px; height: 88px; object-fit: contain; background: var(--ground); border-radius: var(--r); padding: 6px; display: block; }
.cart-item__info { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }
.cart-item__info a { text-decoration: none; font-size: 17px; }
.cart-item__info small { color: var(--muted); font-size: 13px; }
.cart-item__qty input { width: 72px; height: 44px; border: 1px solid var(--line-2); border-radius: 10px; text-align: center; font-size: 15px; }
.cart-item__price { font-weight: 800; font-size: 19px; min-width: 120px; text-align: right; }
.summary { display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; margin: 0; font-size: 15px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 600; text-align: right; }
.summary__total { padding-top: 12px; border-top: 1px solid var(--line-soft); }
dt.summary__total { color: var(--ink); font-weight: 700; }
dd.summary__total { font-size: 24px; font-weight: 800; }
dd.summary__total small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.done { max-width: 720px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.done p { margin: 0; }
.done__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.done__icon svg { width: 28px; height: 28px; stroke-width: 2.4; }

/* ---------- модальное окно, cookie */
.modal { border: 0; padding: 0; border-radius: var(--r-xl); width: min(480px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: var(--shadow); }
.modal::backdrop { background: rgba(15, 19, 24, .6); }
.modal__box { padding: 28px; position: relative; }
.modal__box h2 { font-size: 24px; margin: 0; padding-right: 40px; }
.modal__box p { margin: 0; }
.modal__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border: 0; background: var(--ground); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto; background: var(--graphite); color: var(--on-dark); border-radius: var(--r-lg); padding: 16px 20px; display: flex; gap: 16px; align-items: center; box-shadow: var(--shadow); font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; flex: 1; }

/* ---------- подвал */
.footer { background: var(--graphite-3); color: var(--on-dark-muted); font-size: 14px; margin-top: 0; }
.footer a { color: var(--on-dark-muted); text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__grid { display: grid; grid-template-columns: 1.3fr repeat(4, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer__brand { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.logo--footer { margin-bottom: 8px; }
.logo--footer .logo__mark { width: 44px; height: 44px; }
.footer__phone { color: #fff !important; font-weight: 800; font-size: 18px; }
.footer__addr { margin: 0; }
.footer__h { display: block; color: #fff; font-weight: 800; margin-bottom: 12px; }
.footer__col ul, .social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.social { flex-direction: row; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
.footer__bottom { border-top: 1px solid var(--graphite-2); padding-top: 18px; padding-bottom: 24px; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- адаптив */
@media (max-width: 1100px) {
  .header__cta { display: none; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .topbar { display: none; }
  .header__in { flex-wrap: wrap; gap: 12px; }
  .logo__text small { display: none; }
  .header__phones { margin-left: auto; }
  .phone-alt { display: none; }
  .search { order: 10; flex-basis: 100%; }
  .burger { display: inline-flex; }
  .nav { display: none; border-top: 0; }
  .nav.is-open { display: block; }
  .nav__list { flex-direction: column; padding: 8px 16px 16px; gap: 0; }
  .nav__item { flex-wrap: wrap; border-bottom: 1px solid var(--graphite-2); }
  .nav__link { flex: 1; border-bottom: 0 !important; padding: 14px 0; }
  .nav__toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; color: var(--on-dark); cursor: pointer; }
  .nav__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
  .nav__sub { position: static; display: none !important; box-shadow: none; background: var(--graphite-2); border-radius: var(--r); width: 100%; flex-direction: column; margin-bottom: 12px; }
  .nav__item.is-open > .nav__sub { display: flex !important; }
  .nav__sub a { color: var(--on-dark); }
  .nav__sub a:hover { background: var(--graphite); color: var(--accent); }
  .nav__sub--cols ul + ul { border-left: 0; padding-left: 0; border-top: 1px solid var(--graphite); padding-top: 8px; }
  .filters { position: static; max-width: none; flex-basis: 100%; }
  .filters__toggle { display: flex; }
  .filters__form { display: none; margin-top: 12px; }
  .filters.is-open .filters__form { display: flex; }
  .checkout__side { position: static; }
  .picker__go { margin-left: 0; width: 100%; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .header__phones { display: none; }
  .logo__text b { font-size: 14px; }
  .logo__mark { width: 40px; height: 40px; }
  .header__in { justify-content: space-between; }
  .hero__in { padding-top: 32px; padding-bottom: 72px; }
  .hero__img { display: none; }
  .picker__box { padding: 20px; }
  .keys { grid-template-columns: 1fr; }
  .cart-item__price { text-align: left; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .tabs__list { padding: 0 16px; gap: 0 18px; }
  .tabs__panel { padding: 16px; }
  .prose img[align="left"], .prose img[align="right"], .prose img.left, .prose img.right { float: none; max-width: 100%; margin: 12px 0; }
  .page-head { flex-direction: column; }
  .cookie { flex-direction: column; align-items: stretch; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
@media print { .topbar, .header, .footer, .cookie, .cta-band, .to-cart, .filters { display: none !important; } }
