/* ═══════════════════════════════════════════════════════════
   Профцентр СМиТ — общие стили
   Концепция «Чистовая отделка»: синий с вывески, белая гладкая
   шпатлёвка, сталь инструмента, жёлтый пузырёк уровня как акцент.
   ═══════════════════════════════════════════════════════════ */
:root {
  --ink: #0B1530;
  --ink-2: #47526B;
  --ink-3: #8A93A6;
  --paper: #FFFFFF;
  --plaster: #F1F3F6;
  --plaster-2: #E4E8EE;
  --line: #DAE0E8;
  --blue: #1F36A8;
  --blue-2: #162A86;
  --blue-3: #E9EDFB;
  --navy: #0A1433;
  --navy-2: #121E45;
  --tape: #F2B705;
  --wa: #1DA851;
  --wa-2: #178C43;
  --steel: #AEB7C6;

  --f-disp: 'Fira Sans Extra Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Golos Text', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1280px;
  --gut: clamp(16px, 4vw, 40px);
  --hdr: 76px;
  --r: 16px;
  --r-s: 10px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(11, 21, 48, .06), 0 10px 30px -12px rgba(11, 21, 48, .18);
  --shadow-lg: 0 2px 4px rgba(11, 21, 48, .06), 0 30px 60px -20px rgba(11, 21, 48, .30);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
html, body { overflow-x: clip; }
html.is-locked { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--f-body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--tape); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--tape); color: var(--ink); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }

/* ── Типографика ── */
.h2 { font-family: var(--f-disp); font-weight: 800; font-size: clamp(40px, 5.2vw, 76px); line-height: .94; letter-spacing: -.005em; text-transform: uppercase; margin: 0; text-wrap: balance; }
.hl { color: var(--blue); }
.sec--dark .hl { color: #8EA4FF; }
.hl--tape { color: var(--tape) !important; }
.eyebrow { font-family: var(--f-mono); font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--tape); box-shadow: 0 0 0 4px rgba(242, 183, 5, .22); }
.lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--ink); }

/* Заголовок секции: номер · название · линейка-«рулетка» */
.sec-head { display: flex; align-items: center; gap: 14px; margin-bottom: clamp(22px, 3vw, 36px); font-family: var(--f-mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.sec-num { color: var(--blue); font-weight: 500; }
.sec--dark .sec-num { color: var(--tape); }
.sec-label { color: var(--ink-2); }
.sec--dark .sec-label { color: #A9B3CC; }
.ruler { flex: 1; height: 1px; min-width: 40px; opacity: .35; background: currentColor; color: var(--ink-3); align-self: center; }
.sec--dark .ruler { color: #4A5680; }

/* ── Кнопки ── */
.btn { --bg: var(--ink); --fg: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 24px; border-radius: 999px; background: var(--bg); color: var(--fg); font-weight: 600; font-size: 16px; letter-spacing: .01em; white-space: nowrap; position: relative; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); transform: translateX(-120%); transition: transform .7s var(--ease); }
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn--blue { --bg: var(--blue); box-shadow: 0 10px 24px -10px rgba(31, 54, 168, .6); }
.btn--blue:hover { --bg: var(--blue-2); box-shadow: 0 16px 30px -12px rgba(31, 54, 168, .7); }
.btn--line { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { --bg: var(--ink); --fg: #fff; }
.btn--wa { --bg: var(--wa); box-shadow: 0 10px 24px -10px rgba(29, 168, 81, .6); }
.btn--wa:hover { --bg: var(--wa-2); }
.btn--ghost-light { --bg: transparent; --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.btn--ghost-light:hover { --bg: #fff; --fg: var(--ink); }
.btn--full { width: 100%; }
.wa-ico { width: 22px; height: 22px; }
.btn .wa-ico { fill: currentColor; stroke: none; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; transition: background .2s, color .2s, transform .2s; flex: none; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover { background: var(--plaster); }
.icon-btn--line { box-shadow: inset 0 0 0 1.5px var(--line); }
.icon-btn--line:hover { background: var(--ink); color: #fff; box-shadow: none; }
.sec--dark .icon-btn--line { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .25); }

/* ── Шапка ── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background .35s, box-shadow .35s, transform .4s var(--ease); }
.hdr.is-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: block; width: 168px; flex: none; transition: transform .3s var(--ease); }
.logo:hover { transform: rotate(-1.5deg) scale(1.03); }
.logo svg { width: 100%; height: auto; border-radius: 6px; box-shadow: 0 6px 16px -8px rgba(31, 54, 168, .7); }
.nav { display: flex; gap: 4px; margin-left: 8px; }
.nav a { position: relative; padding: 10px 14px; font-weight: 500; font-size: 15.5px; border-radius: 999px; transition: background .2s; }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 6px; height: 2px; background: var(--tape); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }
.hdr__tools { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hdr__phone { font-weight: 600; font-variant-numeric: tabular-nums; padding: 0 8px; white-space: nowrap; }
.hdr__phone:hover { color: var(--blue); }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; transition: background .25s, transform .25s var(--ease); }
.cart-btn:hover { background: var(--blue); }
.cart-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cart-btn__n { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 999px; background: rgba(255, 255, 255, .14); display: grid; place-items: center; font-size: 14px; font-variant-numeric: tabular-nums; transition: background .25s, color .25s; }
.cart-btn.has-items .cart-btn__n { background: var(--tape); color: var(--ink); }
.bump { animation: bump .5s var(--ease); }
@keyframes bump { 30% { transform: scale(1.12); } 60% { transform: scale(.96); } }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--plaster); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease), top .35s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

/* Рулетка прогресса прокрутки */
.tape { position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; pointer-events: none; }
.tape i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0));
  background: repeating-linear-gradient(90deg, rgba(11, 21, 48, .55) 0 1px, transparent 1px 8px) left top / 100% 3px no-repeat, var(--tape); }

@media (max-width: 1080px) { .hdr__phone { display: none; } }
@media (max-width: 380px) { .logo { width: 124px; } .cart-btn { padding: 0 4px 0 10px; gap: 6px; } }
@media (max-width: 900px) {
  :root { --hdr: 66px; }
  .logo { width: 140px; }
  .hdr__in { gap: 12px; }
  .hdr__tools { gap: 6px; }
  .burger { display: block; }
  .cart-btn__txt { display: none; }
  .cart-btn { padding: 0 6px 0 12px; }
  .nav { position: fixed; inset: var(--hdr) 0 auto; margin: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 28px; background: #fff; box-shadow: 0 30px 40px -20px rgba(11, 21, 48, .25); transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .35s var(--ease); }
  .nav.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-family: var(--f-disp); font-weight: 700; font-size: 30px; text-transform: uppercase; padding: 12px 0; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
}

/* ── Общие секции ── */
.sec { padding-block: clamp(80px, 11vw, 150px); position: relative; }
.sec--dark { background: var(--navy); color: #fff; }
.sec--dark .h2 { color: #fff; }
.demo-note { margin: 18px 0 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.demo-note::before { content: "ДЕМО"; padding: 2px 6px; border-radius: 4px; background: var(--plaster); color: var(--ink-2); font-size: 10.5px; letter-spacing: .1em; }

/* Появление при прокрутке (виден и без JS) */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* Звёзды рейтинга */
.stars { --v: 5; display: inline-block; width: 92px; height: 16px; background: linear-gradient(90deg, var(--tape) calc(var(--v) / 5 * 100%), var(--line) 0); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 92 16'%3E%3Cg%3E%3Cpath id='s' d='M8 0l2.4 5 5.6.6-4.2 3.8 1.2 5.5L8 12.1 3 14.9l1.2-5.5L0 5.6 5.6 5z'/%3E%3Cuse href='%23s' x='19'/%3E%3Cuse href='%23s' x='38'/%3E%3Cuse href='%23s' x='57'/%3E%3Cuse href='%23s' x='76'/%3E%3C/g%3E%3C/svg%3E") center / contain no-repeat; }

/* ── Подвал ── */
.ftr { background: #060C22; color: #C8CFE0; border-top: 1px solid rgba(255, 255, 255, .08); }
.ftr__list a, .ftr__rate, .ftr__phone, .ftr__route, .ftr__bot a { transition: color .2s, box-shadow .2s; }
.ftr__top { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1.25fr; gap: 40px clamp(28px, 4vw, 64px); padding-block: clamp(44px, 6vw, 72px) clamp(36px, 5vw, 56px); }
.logo--ftr { width: 176px; }
.ftr__about { margin: 20px 0 0; max-width: 30ch; font-size: 15.5px; line-height: 1.55; color: #A9B3CC; }
.ftr__rates { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ftr__rate { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); font-size: 14px; white-space: nowrap; }
.ftr__rate b { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-disp); font-size: 20px; font-weight: 800; letter-spacing: .01em; color: #fff; }
.ftr__rate b::before { content: '★'; font-family: var(--f-body); font-size: 14px; color: var(--tape); }
.ftr__rate:hover { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .42); }
.ftr__h { margin: 0 0 18px; font-family: var(--f-mono); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .1em; text-transform: uppercase; color: #8E9AB8; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15.5px; line-height: 1.35; }
.ftr__list a:hover, .ftr__bot a:hover, .ftr__route:hover { color: #fff; }
.ftr__list .ftr__all { color: #fff; font-weight: 600; }
.ftr__list .ftr__all:hover { color: var(--tape); }
.ftr__phone { display: inline-block; font-family: var(--f-disp); font-weight: 800; font-size: clamp(30px, 2.7vw, 38px); line-height: 1; letter-spacing: .01em; color: #fff; white-space: nowrap; }
.ftr__phone:hover { color: var(--tape); }
.ftr__addr { margin: 16px 0 0; font-size: 15.5px; line-height: 1.5; }
.ftr__addr small { display: block; font-size: 13.5px; color: #8E9AB8; }
.ftr__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.ftr__route { font-size: 15px; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 5px; }
.ftr__bot { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; padding-block: 22px 30px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; color: #8E9AB8; }
.ftr__legal { flex: 1 1 100%; margin: 4px 0 0; max-width: 84ch; font-size: 12.5px; line-height: 1.5; color: #7C87A6; }
/* плавающая кнопка WhatsApp не должна перекрывать нижнюю строку */
@media (min-width: 901px) and (max-width: 1500px) { .ftr__bot { padding-right: 84px; } }
@media (max-width: 1020px) { .ftr__top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .ftr__top { gap: 34px 20px; } .ftr__brand, .ftr__contact { grid-column: 1 / -1; } .ftr__about { max-width: none; } }
/* телефон: крупнее зоны нажатия; тёмный фон подвала продолжается под нижней панелью */
@media (max-width: 900px) {
  .ftr { margin-bottom: calc(-84px - env(safe-area-inset-bottom, 0px)); padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .ftr__list { gap: 2px; }
  .ftr__list a { display: inline-block; padding-block: 9px; }
  .ftr__h { margin-bottom: 8px; }
  .ftr__phone { padding-block: 6px; }
  .ftr__bot a { padding-block: 8px; }
}

/* ── Плавающие кнопки ── */
.fabs { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; box-shadow: var(--shadow-lg); transition: transform .3s var(--ease); position: relative; }
.fab:hover { transform: scale(1.07); }
.fab-wa { background: var(--wa); color: #fff; }
.fab-wa .wa-ico { width: 30px; height: 30px; fill: #fff; }
.fab-wa::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: ping 2.6s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.fab-cart { display: none; background: var(--ink); color: #fff; }
.fab-cart svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.fab-cart b { position: absolute; top: -2px; right: -2px; min-width: 24px; height: 24px; border-radius: 999px; background: var(--tape); color: var(--ink); font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
.fab-cart:not(.has-items) b { display: none; }
@media (max-width: 900px) { .fab-cart.has-items { display: grid; } }

/* ── Корзина (боковая панель) ── */
.drawer { position: fixed; inset: 0; z-index: 80; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(10, 20, 51, .45); opacity: 0; transition: opacity .35s; backdrop-filter: blur(3px); }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(480px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(104%); transition: transform .5s var(--ease); box-shadow: -30px 0 60px -30px rgba(11, 21, 48, .4); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 14px 26px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--f-disp); font-weight: 800; font-size: 32px; text-transform: uppercase; margin: 0; line-height: 1; }
.drawer__count { font-family: var(--f-mono); font-size: 13px; color: var(--ink-3); }
.drawer__head .icon-btn { margin-left: auto; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 26px 20px; overscroll-behavior: contain; }
.drawer__foot { padding: 16px 26px calc(18px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 10px; background: var(--plaster); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; }
.drawer__total b { font-family: var(--f-disp); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; }
.drawer__note { margin: 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.cart-empty { text-align: center; padding: 30px 6px; }
.cart-empty__art { width: 140px; margin: 0 auto 8px; opacity: .9; }
.cart-empty p { color: var(--ink-2); margin: 0 0 18px; }
.cart-empty b { color: var(--ink); font-size: 19px; }
.cart-empty__cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.cart-items { list-style: none; margin: 0; padding: 0; }
.ci { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; grid-template-areas: "art info del" "art qty sum"; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.ci__art { grid-area: art; width: 64px; height: 64px; border-radius: 12px; background: var(--plaster); padding: 4px; }
.ci__info { grid-area: info; min-width: 0; display: flex; flex-direction: column; }
.ci__name { font-weight: 600; font-size: 15px; line-height: 1.3; }
.ci__name:hover { color: var(--blue); }
.ci__pack { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ci .qty { grid-area: qty; justify-self: start; }
.ci__sum { grid-area: sum; font-variant-numeric: tabular-nums; }
.ci__del { grid-area: del; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-3); }
.ci__del:hover { background: var(--plaster); color: var(--ink); }
.ci__del svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }
.qty { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.qty button { width: 36px; height: 36px; border-radius: 50%; font-size: 18px; color: var(--ink-2); }
.qty button:hover { background: var(--plaster); color: var(--ink); }
.qty output { min-width: 26px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Форма заказа */
.order { padding-top: 18px; display: grid; gap: 12px; }
.order__title { font-family: var(--f-disp); font-weight: 800; font-size: 22px; text-transform: uppercase; margin: 0; }
.order__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fld { display: grid; gap: 5px; font-size: 13px; color: var(--ink-2); min-width: 0; }
.fld input, .fld select, .fld textarea { width: 100%; min-width: 0; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; padding: 11px 13px; font-size: 15.5px; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.fld textarea { resize: vertical; min-height: 64px; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-3); }
.fld.is-bad input { border-color: #D93B3B; box-shadow: 0 0 0 4px rgba(217, 59, 59, .12); }
.seg { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg legend { font-size: 13px; color: var(--ink-2); margin-bottom: 5px; padding: 0; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 8px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14.5px; font-weight: 500; line-height: 1.25; transition: all .2s; }
.seg input:checked + span { background: var(--ink); color: #fff; box-shadow: none; }
.seg input:focus-visible + span { outline: 2.5px solid var(--tape); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--blue); flex: none; }
.check a { color: var(--blue); text-decoration: underline; }
.check.is-bad span { color: #D93B3B; }
.order__err { margin: 0; min-height: 1em; color: #D93B3B; font-size: 13.5px; }
@media (max-width: 420px) { .order__row { grid-template-columns: 1fr; } }

/* ── Поиск ── */
.search { position: fixed; inset: 0; z-index: 85; pointer-events: none; }
.search__veil { position: absolute; inset: 0; background: rgba(10, 20, 51, .5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); }
.search__box { position: relative; width: min(720px, calc(100% - 32px)); margin: 10vh auto 0; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; opacity: 0; transform: translateY(-16px) scale(.98); transition: opacity .3s, transform .4s var(--ease); }
.search.is-open { pointer-events: auto; }
.search.is-open .search__veil { opacity: 1; }
.search.is-open .search__box { opacity: 1; transform: none; }
.search__field { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 22px; border-bottom: 1px solid var(--line); }
.search__field > svg { width: 22px; height: 22px; fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-linecap: round; flex: none; }
.search__field input { flex: 1; min-width: 0; border: 0; outline: none; font-size: 20px; padding: 10px 0; background: transparent; }
.search__res { max-height: 60vh; overflow: auto; padding: 8px; }
.search__hint { margin: 10px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sr { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 8px 14px; border-radius: 14px; }
.sr:hover { background: var(--plaster); }
.sr__art { width: 52px; height: 52px; border-radius: 10px; background: var(--plaster); padding: 3px; }
.sr__name { font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.sr__name small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-3); }
.sr b { font-variant-numeric: tabular-nums; }

/* ── Тост ── */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 90; display: flex; align-items: center; gap: 14px; padding: 12px 12px 12px 16px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translate(-50%, calc(100% + 60px)); visibility: hidden; transition: transform .5s var(--ease), visibility 0s .5s; max-width: calc(100% - 32px); }
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease); }
.toast__ok { width: 30px; height: 30px; border-radius: 50%; background: var(--tape); color: var(--ink); display: grid; place-items: center; font-weight: 700; flex: none; }
.toast small { display: block; color: #A9B3CC; font-size: 13px; max-width: 260px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast button { padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .12); font-weight: 600; font-size: 14px; }
.toast button:hover { background: #fff; color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Режим скриншотов (?shot) */
.shot *, .shot *::before, .shot *::after { transition: none !important; animation: none !important; }
.shot .reveal { opacity: 1 !important; transform: none !important; }

/* ═══ Корзина v2: анкета «Об объекте», расчёт «хватит ли», полёт товара ═══ */
.fld span i, .obj summary i { font-style: normal; color: var(--ink-3); font-weight: 400; }
.obj { border-radius: 16px; box-shadow: inset 0 0 0 1.5px var(--line); }
.obj summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 2px; padding: 14px 44px 14px 16px; position: relative; font-size: 14.5px; }
.obj summary::-webkit-details-marker { display: none; }
.obj summary::after { content: ""; position: absolute; right: 18px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.obj[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.obj summary small { color: var(--blue); font-size: 13px; }
.obj__in { padding: 2px 16px 16px; display: grid; gap: 14px; }
.obj__lbl { display: block; font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 8px 13px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s; }
.chip:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; box-shadow: none; }
.area-in { display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.area-in input { width: 64px; border: 0; outline: none; background: transparent; font-weight: 600; font-size: 15px; padding: 8px 0; text-align: right; }
.area-in:focus-within { box-shadow: inset 0 0 0 1.5px var(--blue); }
.area-in span { font-size: 14px; color: var(--ink-3); }
.ci__pack i { font-style: normal; color: var(--blue); }
.ci__cov { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.35; color: var(--ink-3); }
.ci__cov.is-ok { color: var(--wa-2); font-weight: 500; }
.ci__cov.is-low { color: #B4570B; font-weight: 500; }
.ci__cov button { margin-left: 4px; padding: 2px 9px; border-radius: 999px; background: var(--tape); color: var(--ink); font-size: 12px; font-weight: 600; }
.fly { position: fixed; z-index: 120; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(11, 21, 48, .3)); }
.fly svg { width: 100%; height: 100%; }

/* ═══ Телефон: нижняя панель вместо плавающих кнопок ═══ */
.dock { display: none; }
@media (max-width: 900px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
  .fabs { display: none; }
  .hdr .cart-btn { display: none; }
  .dock { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 45; height: 64px; padding: 6px; border-radius: 22px;
    background: rgba(10, 20, 51, .94); -webkit-backdrop-filter: saturate(1.3) blur(14px); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 16px 34px -12px rgba(10, 20, 51, .65), inset 0 1px 0 rgba(255, 255, 255, .08); }
  .dock__i { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 16px; color: #B9C2D8; font-size: 11px; font-weight: 600; letter-spacing: .01em; -webkit-tap-highlight-color: transparent; transition: background .2s, color .2s; }
  .dock__i svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .dock__i:active { background: rgba(255, 255, 255, .1); }
  .dock__i.is-on { color: #fff; background: rgba(255, 255, 255, .09); }
  .dock__i.is-on::after { content: ""; position: absolute; bottom: 5px; width: 16px; height: 3px; border-radius: 2px; background: var(--tape); }
  .dock__wa { color: #fff; }
  .dock__wa .wa-ico { width: 24px; height: 24px; color: #3DDC84; }
  .dock__cart b { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--tape); color: var(--ink); font-size: 11px; font-weight: 700; display: none; place-items: center; font-variant-numeric: tabular-nums; }
  .dock__cart.has-items b { display: grid; }
  .dock__cart.has-items { color: #fff; }
  .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  /* поля 16px — иначе iPhone приближает страницу при вводе */
  .fld input, .fld select, .fld textarea, .area-in input, .search__field input { font-size: 16px; }
  .qty { height: 40px; }
  .qty button { width: 40px; height: 40px; }
}

/* Касание вместо мыши: эффекты наведения не «залипают» */
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn:hover::after { transform: translateX(-120%); }
  .btn:active { transform: scale(.97); }
  .logo:hover { transform: none; }
}

/* Цена по запросу в корзине */
.ci__sum.is-ask { font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.drawer__total b small { display: block; font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-2); text-align: right; }

/* Фото товаров из прайса. multiply — белый фон снимка сливается с фоном карточки */
img.ph { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.fly img.ph { mix-blend-mode: normal; border-radius: 12px; background: #fff; }
.ci__art img.ph, .sr__art img.ph { border-radius: 8px; }

/* два телефона в подвале (19.11.2026) */
.ftr__phone { display: block; width: fit-content; font-size: clamp(26px, 2.3vw, 32px); }
.ftr__phone + .ftr__phone { margin-top: 8px; }
