/* ============================================================
   КЛИМАТ ПРО — component styles
   ============================================================ */

.app-main { min-height: 60vh; }

/* ============ HEADER ============ */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.hdr-top { background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.hdr-top-in { display: flex; justify-content: space-between; align-items: center; height: 38px; }
.hdr-top-right { display: flex; gap: 22px; align-items: center; }
.hdr-main { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.hdr-city-switch { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--muted); }
.hdr-city-label { display: inline-flex; align-items: center; gap: 6px; min-width: 0; white-space: nowrap; }
.hdr-city-label svg { color: var(--accent); flex-shrink: 0; }
.hdr-city-tabs { display: inline-flex; align-items: center; gap: 2px; min-width: 0; padding: 2px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); box-shadow: inset 0 1px 0 rgba(255,255,255,.7); }
.hdr-city-tab { min-width: 78px; height: 26px; padding: 0 12px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); font-size: 12.5px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; transition: background .15s ease, color .15s ease, box-shadow .15s ease; }
.hdr-city-tab:hover { color: var(--accent); background: var(--accent-tint); }
.hdr-city-tab.active { background: var(--accent); color: var(--on-accent); box-shadow: var(--sh-sm); }
.hdr-city-mobile-row { display: none; }
.hdr-catalog {
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 600;
  line-height: 1;
  flex-shrink: 0;
}
.hdr-catalog svg { display: block; flex-shrink: 0; }
.hdr-search { flex: 1; position: relative; display: flex; align-items: center; gap: 10px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0 18px; height: 48px; transition: border-color .15s, background .15s; }
.hdr-search:focus-within { border-color: var(--accent); background: var(--surface); }
.hdr-search input { flex: 1; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.hdr-search-clr { border: 0; background: none; color: var(--muted); display: grid; place-items: center; }
.hdr-search-ai { flex-shrink: 0; border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 800; font-size: 12px; line-height: 1; height: 30px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; box-shadow: var(--sh-xs); }
.hdr-search-ai:hover, .hdr-search-ai:focus-visible { background: var(--accent-2); }
.hdr-search-ai--mobile { height: 28px; padding: 0 9px; }

/* mobile header: phone + cart + burger cluster, and persistent search row */
.hdr-mobacts { display: none; align-items: center; gap: 6px; margin-left: auto; }
.hdr-mobic { position: relative; width: 42px; height: 42px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.hdr-mobic:active { background: var(--surface-2); }
.hdr-mobic-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--warm); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.hdr-msearch { display: none; position: relative; align-items: center; gap: 9px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 0 14px; height: 44px; margin: 0 var(--gutter) 10px; }
.hdr-msearch:focus-within { border-color: var(--accent); background: var(--surface); }
.hdr-msearch input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); }
.search-sug-m { left: calc(-1 * var(--gutter) + 0px); }

/* live search suggestions */
.search-sug { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); padding: 8px; z-index: 80; max-height: 70vh; overflow-y: auto; animation: fadeUp .16s ease both; }
.search-sug-sec + .search-sug-sec { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 4px; }
.search-sug-h { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-2); padding: 8px 12px 4px; }
.search-sug-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: none; border-radius: var(--r-md); cursor: pointer; text-align: left; transition: background .12s; }
.search-sug-item:hover, .search-sug-item:focus-visible { background: var(--accent-tint); }
.search-sug-thumb { width: 34px; height: 34px; border-radius: 9px; background: var(--surface-3); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.search-sug-photo { overflow: hidden; background: #fff; border: 1px solid var(--line); }
.search-sug-photo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 3px; }
.search-sug-name { display: block; font-weight: 600; font-size: 14px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-sug-all { width: 100%; margin-top: 4px; padding: 11px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--accent); font-weight: 600; font-size: 13.5px; display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; border-radius: 0 0 var(--r-md) var(--r-md); }
.search-sug-all:hover { background: var(--accent-tint); }
.hdr-actions { display: flex; gap: 4px; }
.hdr-action { display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; color: var(--ink-2); font-size: 11px; padding: 6px 10px; border-radius: var(--r-sm); transition: color .15s, background .15s; }
.hdr-action:hover { color: var(--accent); background: var(--accent-tint); }
.hdr-action-lbl { white-space: nowrap; }
.hdr-badge { position: absolute; top: -7px; right: -9px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--warm); color: #fff; font-size: 10.5px; font-weight: 700; display: grid; place-items: center; }
.hdr-burger { display: none; }
.hdr-nav-wrap { border-top: 1px solid var(--line); }
.hdr-nav { display: flex; gap: 6px; height: 50px; align-items: center; }
.hdr-nav-item { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 9px 14px; border-radius: var(--r-sm); color: var(--ink-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .15s, color .15s; }
.hdr-nav-item:hover { background: var(--accent-tint); color: var(--accent); }

/* ============ MOBILE MENU ============ */
.mm-overlay { position: fixed; inset: 0; background: rgba(8,20,28,.5); z-index: 60; animation: fadeUp .2s; }
.mm-panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(360px, 86vw); background: var(--surface); padding: 18px; overflow-y: auto; box-shadow: var(--sh-lg); }
.mm-section { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin: 18px 0 8px; }
.mm-search { display: flex; align-items: center; gap: 8px; padding: 0 10px 0 14px; background: var(--surface-2); border: 1.5px solid var(--line); border-radius: var(--r-pill); margin-bottom: 6px; }
.mm-search:focus-within { border-color: var(--accent); background: var(--surface); }
.mm-search > svg { color: var(--muted); flex-shrink: 0; }
.mm-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: inherit; font-size: 15px; color: var(--ink); padding: 13px 0; }
.mm-search input::placeholder { color: var(--muted-2); }
.mm-search button { flex-shrink: 0; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; cursor: pointer; }
.mm-search .mm-search-ai { background: var(--accent-tint); color: var(--accent); width: 36px; height: 36px; }
.mm-search .mm-search-ai:hover, .mm-search .mm-search-ai:focus-visible { background: var(--accent-soft); }
.mm-city { display: grid; gap: 8px; margin: 10px 0 14px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.mm-city-title { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 800; color: var(--ink-2); }
.mm-city-title svg { color: var(--accent); }
.mm-city-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mm-city-tab { min-height: 36px; padding: 8px 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 800; line-height: 1.15; text-align: center; text-decoration: none; }
.mm-city-tab.active { background: var(--accent); color: var(--on-accent); border-color: var(--accent); box-shadow: var(--sh-sm); }
.mm-link { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 13px 12px; border-radius: var(--r-sm); color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.mm-link:hover { background: var(--accent-tint); color: var(--accent); }

/* ============ BOTTOM NAV ============ */
.botnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.botnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; background: none; border: 0; padding: 9px 0 8px; font-size: 10.5px; color: var(--muted); }
.botnav-item.active { color: var(--accent); }

/* ============ FOOTER ============ */
.ft { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 40px; }
.ft-contact { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.ft-contact-main { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ft-phone { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.ft-msgr { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.ft-msgr-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r-pill); font-weight: 700; font-size: 14px; color: #fff; }
a.ft-msgr-btn { text-decoration: none; }
button.ft-msgr-btn { border: 0; font: inherit; cursor: pointer; }
.ft-tg { background: #2AABEE; }
.ft-max { background: var(--accent); }
.ft-contact-where { display: flex; flex-direction: column; gap: 16px; }
.ft-where-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.ft-where-row > svg { color: var(--accent); flex-shrink: 0; margin-top: 1px; }
.ft-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.ft-col-head { display: flex; align-items: center; justify-content: space-between; width: 100%; background: none; border: 0; padding: 0 0 4px; font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); text-align: left; }
.ft-col-head > svg { display: none; color: var(--muted); transition: transform .2s; }
.ft-col-body { display: flex; flex-direction: column; gap: 11px; margin-top: 12px; }
.ft-link { background: none; border: 0; color: var(--muted); font-size: 14px; text-align: left; padding: 0; cursor: pointer; }
.ft-link:hover { color: var(--accent); }
.ft-pay-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.ft-pay { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.ft-pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.ft-pay-badge { padding: 7px 13px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 12.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); }
.ft-social { display: flex; gap: 10px; }
.ft-social-ic { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink-2); text-decoration: none; }
button.ft-social-ic, a.ft-social-ic { background: transparent; font: inherit; cursor: pointer; }
.ft-social-ic:hover { border-color: var(--accent); color: var(--accent); }
.ft-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* ============ COMPARE BAR ============ */
.cmpbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 44; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(14,26,36,.1); }
.cmpbar-in { display: flex; justify-content: space-between; align-items: center; height: 68px; gap: 14px; }

/* ============ TOASTS ============ */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 9px; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500; box-shadow: var(--sh-lg); animation: fadeUp .25s; }
.toast.warn { background: var(--warm); }

/* ============ HERO ============ */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 78% -10%, var(--accent-soft), transparent 60%),
  radial-gradient(700px 500px at 110% 60%, var(--brand-100), transparent 55%); }
[data-dark="true"] .hero-bg { opacity: .5; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 540px); gap: clamp(38px, 4vw, 56px); align-items: center; padding-block: clamp(34px, 5vw, 64px); }
.hero-side { width: 100%; justify-self: end; }
.hero-copy .display { margin: 18px 0 16px; }
.hero-copy .lead { max-width: 480px; }
.hero-chip { background: var(--surface); }
.hero-cta { display: flex; gap: 14px; margin: 26px 0 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 36px; }
.hero-stats > div { display: flex; flex-direction: column; }
.hero-editorial .hero-in { grid-template-columns: 1fr; text-align: center; place-items: center; }
.hero-editorial .hero-copy .lead { margin-inline: auto; }
.hero-editorial .hero-cta, .hero-editorial .hero-stats { justify-content: center; }

/* ============ HERO CALC ============ */
.herocalc { padding: 24px; }
.herocalc-ic { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.herocalc-res { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--surface-2); border-radius: var(--r-md); padding: 14px 16px; margin: 18px 0 16px; }
.herocalc-badge { background: var(--accent); color: #fff; padding: 7px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; white-space: nowrap; }
.btn-link { background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 13.5px; padding: 10px 0 0; width: 100%; }
.hc-band { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: center; background: var(--accent-tint); border-radius: var(--r-xl); padding: clamp(24px,4vw,48px); }
.hc-band-copy .h2 { margin: 8px 0 12px; }

/* range slider */
.range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-3); outline: none; }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: var(--sh-brand); border: 3px solid var(--surface); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--surface); }

/* dual-handle price range */
.price-pill { background: var(--surface-3); border-radius: var(--r-sm); padding: 5px 11px; font-weight: 700; font-size: 13.5px; color: var(--ink); }
.dualrange { position: relative; height: 26px; display: flex; align-items: center; }
.dualrange-track { position: absolute; left: 0; right: 0; height: 6px; border-radius: 3px; background: var(--surface-3); }
.dualrange-fill { position: absolute; height: 6px; border-radius: 3px; background: var(--accent); }
.dualrange input[type=range] { position: absolute; left: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; height: 26px; }
.dualrange input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: pointer; box-shadow: var(--sh-sm); }
.dualrange input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent); cursor: pointer; }
.dualrange input[type=range]::-webkit-slider-runnable-track { background: none; }

/* segmented */
.seg { display: flex; background: var(--surface-2); border-radius: var(--r-sm); padding: 4px; gap: 4px; }
.seg-btn { flex: 1; border: 0; background: none; padding: 10px 8px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: all .15s; }
.seg-btn.active { background: var(--surface); color: var(--accent); font-weight: 600; box-shadow: var(--sh-sm); }

/* ============ TRUST STRIP ============ */
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: -28px; position: relative; z-index: 2; }
.trust-item { display: flex; gap: 13px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; box-shadow: var(--sh-sm); }
.trust-item strong { display: block; font-size: 14.5px; }
.trust-item .small { display: block; }
.trust-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }

/* ============ CATEGORIES ============ */
.cat-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 22px 18px; text-align: left; background: var(--surface); cursor: pointer; align-items: flex-start; }
.cat-card:hover { box-shadow: var(--sh-md); transform: translateY(-3px); border-color: var(--accent); }
.cat-ic { width: 56px; height: 56px; border-radius: 14px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin-bottom: 8px; }
.cat-name { font-weight: 700; font-size: 15px; }
.cat-arrow { position: absolute; top: 18px; right: 16px; color: var(--muted-2); opacity: 0; transition: opacity .2s, transform .2s; }
.cat-card:hover .cat-arrow { opacity: 1; transform: translateX(3px); color: var(--accent); }

/* ============ SEASON BANNER ============ */
.season-banner { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(30px,5vw,56px); background: linear-gradient(120deg, var(--brand-700), var(--brand-500)); display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.season-banner::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.08); }
.season-copy { position: relative; z-index: 1; }
.season-copy .h1 { margin: 16px 0 12px; }
.season-art { position: relative; z-index: 1; flex-shrink: 0; }
.season-sale { width: 150px; height: 150px; border-radius: 50%; background: var(--warm); color: #fff; display: grid; place-items: center; box-shadow: 0 16px 40px rgba(232,115,44,.4); text-align: center; line-height: 1.1; }
.season-sale .tnum { font-size: 40px; font-weight: 800; display: block; }
@media (max-width: 760px){ .season-art { display: none; } }

/* ============ REVIEWS ============ */
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.rev-card { padding: 24px; }
.rev-card p { line-height: 1.55; }
.rev-foot { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.rev-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; }

/* ============ CTA BAND ============ */
.cta-band { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px,4vw,40px); background: var(--surface); flex-wrap: wrap; }
.cta-band .h2 { margin-bottom: 6px; }

/* ============ PRODUCT CARD ============ */
.pcard { display: flex; flex-direction: column; overflow: hidden; cursor: pointer; position: relative; }
.pcard:hover { box-shadow: var(--sh-lg); transform: translateY(-4px); border-color: var(--accent); }
.pcard-media { position: relative; background: var(--surface-2); }
.pcard-media .imgslot { border-radius: 0; }
.pcard-disc { position: absolute; top: 12px; right: 12px; background: var(--sale); color: #fff; font-weight: 700; font-size: 13px; padding: 5px 9px; border-radius: var(--r-xs); z-index: 2; }
.pcard-role { position: absolute; left: 12px; bottom: 12px; z-index: 2; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badges-abs { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card-quick { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 8px; z-index: 3; opacity: 0; transform: translateX(8px); transition: all .2s; }
.pcard:hover .card-quick { opacity: 1; transform: none; }
.pcard-disc + .card-quick { top: 48px; }
.card-qbtn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); display: grid; place-items: center; box-shadow: var(--sh-sm); transition: all .15s; }
.card-qbtn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.card-qbtn.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.pcard-body { display: flex; flex-direction: column; gap: 8px; padding: var(--pad-card); flex: 1; }
.pcard-brand { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-2); }
.pcard-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
.pcard-meta { margin-top: -2px; }
.feat-dots { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.feat-dot { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--ink-2); background: var(--surface-2); padding: 5px 9px; border-radius: var(--r-pill); font-weight: 500; }
.pcard-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.price-now { font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price-old { font-size: 13.5px; color: var(--muted-2); text-decoration: line-through; }
.price-save { font-size: 12px; color: var(--eco); font-weight: 600; }
.btn-cart { width: 46px; height: 46px; border-radius: 13px; border: 0; background: var(--accent-soft); color: var(--accent-strong); display: grid; place-items: center; flex-shrink: 0; transition: all .15s; }
.btn-cart:hover { background: var(--accent); color: #fff; box-shadow: var(--sh-brand); }

/* cardstyle variants */
[data-cardstyle="classic"] .card-quick { position: static; flex-direction: row; opacity: 1; transform: none; justify-content: flex-end; padding: 0 var(--pad-card); margin-top: 10px; }
[data-cardstyle="classic"] .pcard-disc + .card-quick { top: auto; }
[data-cardstyle="minimal"] .pcard { border-color: transparent; box-shadow: none; background: none; }
[data-cardstyle="minimal"] .pcard-media { border-radius: var(--r-md); overflow: hidden; }
[data-cardstyle="minimal"] .pcard-media .imgslot { border-radius: var(--r-md); }
[data-cardstyle="minimal"] .pcard-body { padding-inline: 2px; }
[data-cardstyle="minimal"] .pcard-foot { border-top: 0; }
[data-cardstyle="minimal"] .pcard:hover { transform: translateY(-3px); box-shadow: none; border-color: transparent; }
[data-cardstyle="minimal"] .feat-dots { display: none; }

/* ============ MODAL / QUICK VIEW ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,20,28,.55); backdrop-filter: blur(3px); z-index: 70; display: grid; place-items: center; padding: 20px; animation: fadeUp .2s; }
.modal { position: relative; background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 880px; max-height: 90vh; overflow: hidden; box-shadow: var(--sh-lg); }
.modal-close { position: absolute; top: 16px; right: 16px; z-index: 5; }
.qv-grid { display: grid; grid-template-columns: 1fr 1fr; }
.qv-media { padding: 26px; background: var(--surface-2); }
.qv-media .imgslot { border-radius: var(--r-md); }
.qv-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; margin-top: 12px; }
.qv-thumb { aspect-ratio: 1; border-radius: 10px; }
.qv-info { padding: 30px; overflow-y: auto; max-height: 90vh; }
.qv-specs { margin: 18px 0; display: flex; flex-direction: column; gap: 2px; }
.qv-buy { border-top: 1px solid var(--line); padding-top: 18px; }
.specrow { display: flex; align-items: baseline; gap: 8px; padding: 8px 0; font-size: 14px; min-width: 0; }
.specrow > .muted:first-child { flex: 0 1 auto; min-width: 0; }
.specrow-dots { flex: 1; border-bottom: 1px dotted var(--line); transform: translateY(-3px); }
.specrow > strong { flex: 0 0 auto; max-width: 55%; text-align: right; }
.on-fav { background: var(--accent) !important; color: #fff !important; border-color: var(--accent) !important; }

/* ============ CATALOG ============ */
.catalog-head { padding: 22px 0 8px; }
.crumbs button { background: none; border: 0; color: inherit; padding: 0; }
.crumbs button:hover { color: var(--accent); }
.catalog-head .h1 { margin: 8px 0 4px; }
.catalog-layout { display: grid; grid-template-columns: 268px 1fr; gap: 30px; max-width: var(--maxw); margin: 0 auto; padding: 20px var(--gutter) 60px; align-items: start; }
.catalog-aside { position: static; max-height: none; overflow: visible; padding-right: 6px; padding-bottom: 36px; box-sizing: border-box; }
.fgroup { border-bottom: 1px solid var(--line); padding: 6px 0; }
.fgroup-head { display: flex; justify-content: space-between; align-items: center; width: 100%; background: none; border: 0; padding: 12px 0; font-weight: 600; font-size: 15px; color: var(--ink); }
.fgroup-body { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; }
.filter-search { width: 100%; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); outline: none; margin-bottom: 6px; }
.filter-search:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.filter-empty { margin: 6px 0 0; }
.filter-showmore { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 4px 0; border: 0; background: none; color: var(--accent); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.filter-showmore:hover { color: var(--accent-strong); }
.filter-showmore svg { transition: transform .15s; }
.manual-range { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 8px; }
.manual-range-label { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.manual-range-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.manual-range-fields label { display: flex; align-items: center; gap: 6px; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 7px 9px; }
.manual-range-fields span { font-size: 12px; color: var(--muted); flex-shrink: 0; }
.manual-range-fields input { width: 100%; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; }
.manual-range-unit { margin-top: -4px; }
.noise-input-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px; gap: 10px; align-items: center; }
.noise-input { display: flex; align-items: center; gap: 4px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); padding: 6px 7px; }
.noise-input span { font-size: 12px; color: var(--muted); }
.noise-input input { width: 34px; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 700; text-align: center; }
.fcheck { display: flex; align-items: center; gap: 10px; padding: 7px 0; cursor: pointer; font-size: 14px; color: var(--ink-2); }
.fcheck input { display: none; }
.fcheck-box { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line); display: grid; place-items: center; color: transparent; flex-shrink: 0; transition: all .15s; }
.fcheck input:checked + .fcheck-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.montage-opt input:checked + .fcheck-box, .addon input:checked + .fcheck-box { background: var(--accent); border-color: var(--accent); color: #fff; }
.fcheck:hover .fcheck-lbl { color: var(--accent); }
.fcheck-count { color: var(--muted-2); font-weight: 500; }
.aside-help { margin-top: 22px; padding: 18px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; background: var(--accent-tint); border-color: transparent; }
.catalog-toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; }
.catalog-filter-btn { display: none; }
.tbadge { background: var(--accent); color: #fff; border-radius: 9px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; display: inline-grid; place-items: center; }
.catalog-sort { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.select-sm { width: auto; padding: 9px 12px; font-size: 14px; }
.applied { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }

/* ============ SMART SEARCH (умный поиск) ============ */
.smartbar { background: linear-gradient(135deg, var(--accent-tint), var(--surface)); border: 1.5px solid var(--accent-soft); border-radius: var(--r-lg); padding: 14px; margin-bottom: 18px; }
.smartbar-row { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 4px 6px 4px 14px; transition: border-color .15s, box-shadow .15s; }
.smartbar-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.smartbar-spark { color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.smartbar-input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 15px; color: var(--ink); font-family: inherit; padding: 10px 0; }
.smartbar-input::placeholder { color: var(--muted-2); }
.smartbar-go { flex-shrink: 0; border-radius: var(--r-pill); }
.smartbar-ai { flex-shrink: 0; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.smartbar-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 12px 4px 2px; }
.smartbar-examples { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.smart-eg { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 6px 12px; font-size: 12.5px; color: var(--ink-2); cursor: pointer; transition: all .15s; font-family: inherit; }
.smart-eg:hover { border-color: var(--accent); color: var(--accent); background: var(--surface); }
.smartbar-understood { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.smart-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; background: var(--accent); color: var(--on-accent); }
.smart-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.smart-chip-price { background: var(--warm); }
.smart-chip-stock { background: var(--eco); }
.smart-chip-noise { background: var(--brand-500); }
.fcheck-stock { padding: 10px 12px; margin-bottom: 6px; background: var(--accent-tint); border-radius: var(--r-md); font-weight: 600; color: var(--ink); }
.search-sug-thumb-smart { background: var(--accent); color: var(--on-accent); }
.search-sug-smart { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 12px; border: 0; background: var(--accent-tint); border-radius: var(--r-md); cursor: pointer; margin-bottom: 4px; transition: background .15s; }
.search-sug-smart:hover { background: var(--accent-soft); }
.ai-result { border: 1.5px solid var(--accent-soft); background: var(--surface); border-radius: var(--r-lg); padding: 14px; margin: -4px 0 18px; box-shadow: var(--sh-sm); }
.ai-result-head, .ai-result-loading, .ai-result-error { display: flex; align-items: flex-start; gap: 12px; }
.ai-result-head { margin-bottom: 12px; }
.ai-result-ic { width: 36px; height: 36px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.ai-result-error { border-color: var(--warm); }
.ai-result-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ai-result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.ai-result-card { display: flex; flex-direction: column; min-width: 0; }
.ai-result-card .card { height: 100%; }
.ai-card-note { margin-top: 10px; border: 1px solid rgba(45,112,219,.20); border-radius: var(--r-md); padding: 12px 12px 13px; background: linear-gradient(135deg, var(--accent-tint), rgba(255,255,255,.95)); color: var(--ink-2); display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.48; box-shadow: inset 0 1px 0 rgba(255,255,255,.74), 0 8px 22px rgba(45,112,219,.06); }
.ai-card-note-ic { width: 30px; height: 30px; border-radius: 11px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: 0 0 auto; box-shadow: 0 8px 18px rgba(45,112,219,.18); }
.ai-card-note-text { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.ai-card-note-text > span { color: var(--ink-2); }
.ai-card-note strong { color: var(--ink); font-size: 13.4px; line-height: 1.38; letter-spacing: -.005em; }
.ai-result .badge { align-self: flex-start; margin-left: auto; white-space: nowrap; }
.empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 50px 30px; }
.empty-callout { display: flex; align-items: center; gap: 12px; margin: 12px 0 14px; padding: 14px; border-color: rgba(45,112,219,.22); background: linear-gradient(180deg, #fff, #f8fbff); }
.empty-callout-body { flex: 1; min-width: 180px; }
.empty-callout-body > strong { display: block; margin-bottom: 2px; }
@media (max-width: 640px) {
  .empty-callout { align-items: flex-start; flex-wrap: wrap; }
  .empty-callout .btn { flex: 1 1 130px; }
}
.drawer-overlay { position: fixed; inset: 0; background: rgba(8,20,28,.5); z-index: 65; animation: fadeUp .2s; }
.drawer { position: absolute; right: 0; top: 0; bottom: 0; width: min(380px, 90vw); background: var(--surface); padding: 18px; overflow-y: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.drawer-foot { position: sticky; bottom: 0; background: var(--surface); display: flex; gap: 10px; padding-top: 14px; margin-top: 10px; border-top: 1px solid var(--line); }

/* ============ PRODUCT PAGE ============ */
.product-top { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; padding: 16px var(--gutter) 0; }
.pg-gallery { position: sticky; top: calc(var(--header-h) + 90px); align-self: start; }
.product-wide-block { grid-column: 1 / -1; min-width: 0; margin-top: -14px; }
.kit-composition-panel { margin: 0; padding: 22px; border-radius: var(--r-xl); background: linear-gradient(135deg, rgba(45,112,219,.09), #fff 48%, rgba(15,169,150,.08)); box-shadow: 0 18px 44px rgba(14,26,36,.08); }
.kit-composition-panel .pg-consult-head { max-width: 760px; }
.kit-composition-panel .kit.card { overflow: hidden; border-color: rgba(45,112,219,.16); box-shadow: var(--sh-sm); }
.kit-composition-panel .kit-build { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.35fr); gap: 22px; }
.kit-composition-panel .kit-summary { border-left-color: rgba(45,112,219,.14); background: linear-gradient(180deg, var(--surface), var(--accent-tint)); }
.kit-composition-panel .pg-keyspecs { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.kit-composition-panel .keyspec { display: grid; grid-template-columns: 34px minmax(56px, auto) minmax(0, 1fr); align-items: center; gap: 10px; padding: 11px 12px; }
.kit-composition-panel .keyspec strong { font-size: 18px; line-height: 1; }
.kit-composition-panel .keyspec .muted.small { font-size: 13px; line-height: 1.25; }
.pdp-gallery-tabs { margin-top: 22px; padding-top: 4px; }
.pdp-gallery-tabs .tabs { overflow-x: auto; scrollbar-width: none; }
.pdp-gallery-tabs .tabs::-webkit-scrollbar { display: none; }
.pdp-gallery-tabs .tab { white-space: nowrap; }
.pdp-gallery-tabs .tab-body { padding-top: 22px; }
.pdp-gallery-tabs .specs-grid { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery-tabs .inbox-grid { grid-template-columns: minmax(0, 1fr); }
.pdp-gallery-tabs .prose { max-width: none; }
.pg-main { position: relative; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.pg-main .imgslot { border-radius: 0; }
.pg-fav { position: absolute; top: 16px; right: 16px; z-index: 3; }
.pg-thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 10px; margin-top: 12px; }
.pg-thumb { aspect-ratio: 1; border-radius: 12px; border: 2px solid transparent; cursor: pointer; }
.pg-thumb.active { border-color: var(--accent); }
.pg-keyspecs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin: 18px 0; }
.pg-shortdesc { margin: 18px 0 0; line-height: 1.6; }
.keyspec { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 14px; background: var(--surface-2); border-radius: var(--r-md); min-width: 0; }
.keyspec strong { font-size: 15px; }
.keyspec-help {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
  cursor: help;
}
.keyspec-pop {
  position: absolute;
  left: 12px;
  top: calc(100% + 8px);
  z-index: 20;
  width: min(280px, calc(100vw - 32px));
  padding: 11px 13px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--sh-lg);
  font-size: 12.5px;
  line-height: 1.45;
  font-weight: 500;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
}
.keyspec-pop::before {
  content: "";
  position: absolute;
  left: 18px;
  top: -5px;
  width: 10px;
  height: 10px;
  background: var(--ink);
  transform: rotate(45deg);
}
.keyspec:hover .keyspec-pop,
.keyspec:focus-within .keyspec-pop {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.pg-buy { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
/* PDP first-screen: quote (B2B/price-by-request) state + secondary details below the fold */
.pg-quote { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
.pg-quote-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pg-quote-main .price-now { color: var(--ink); }
.pg-buy-extra { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.price-now, .price-old, .price-save, .pg-total strong, .pg-stickybuy .tnum { white-space: nowrap; }
.stock-pill, .pg-price-row .badge { white-space: nowrap; }
/* price-by-request (engineering / ventilation under project) — never render "0 ₽" */
.price-block-quote { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.price-now-quote { color: var(--ink); font-weight: 800; white-space: nowrap; }
.price-block-quote .price-now-quote:not(.h2) { font-size: 18px; }
/* multi-split kit — montage line in the summary */
.kit-montage { display: flex; gap: 10px; align-items: flex-start; padding: 12px; background: var(--surface-2); border-radius: var(--r-md); margin: 4px 0 2px; }
.kit-montage-ic { color: var(--accent); flex-shrink: 0; margin-top: 1px; display: inline-flex; }
/* catalog section split (multi-split: ready kits vs self-assembly blocks) */
.catalog-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin: 4px 0 16px; }
.catalog-section-head .h3 { margin: 2px 0 0; }
.catalog-section-head .eyebrow { color: var(--accent); }
.catalog-section-head .muted.small { max-width: 460px; }
.catalog-section-head--sub { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
/* kit card foot: price row, then full-width "Комплект" CTA (no clipping with discounts) */
.kitcard .pcard-foot { flex-wrap: wrap; row-gap: 12px; }
.kitcard .pcard-foot .price-block { flex: 1 1 auto; min-width: 0; }
.kitcard .pcard-foot .btn-cart-wide { flex: 1 1 100%; justify-content: center; }
/* cart: prices never split the ₽; multi-split kit as one expandable product */
.cart-price, .sum-row-total .tnum, .sum-row strong, .cart-bottom .tnum, .cart-bottom .price-old { white-space: nowrap; }
.cart-item.cart-kit { display: block; }
.cart-kit-head { display: flex; gap: 14px; align-items: flex-start; }
.cart-kit-badge { flex-shrink: 0; }
.cart-kit-toggle { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 0; background: none; border: 0; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.cart-kit-chev { transition: transform .2s; }
.cart-kit-chev.open { transform: rotate(180deg); }
.cart-kit-compose { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: var(--r-md); }
.cart-kit-line { display: flex; gap: 10px; align-items: center; }
.cart-kit-line-ic { width: 34px; height: 34px; border-radius: 9px; background: var(--surface); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.cart-kit-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
/* lead form context line — user sees what scenario/model/city the request carries */
.qlead-context { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; padding: 7px 11px; background: var(--surface-2); border-radius: 10px; font-size: 12.5px; line-height: 1.35; color: var(--muted); }
.qlead-context > svg { flex-shrink: 0; color: var(--accent); }
.qlead-context strong { color: var(--ink); font-weight: 600; }
/* simplified checkout — single name+phone form */
.checkout-lead { display: flex; gap: 14px; align-items: flex-start; }
.checkout-lead-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint, var(--surface-2)); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.checkout-assure { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.checkout-assure-item { display: flex; gap: 9px; align-items: flex-start; }
.checkout-assure-item > svg { flex-shrink: 0; margin-top: 1px; }
@media (max-width: 560px) { .checkout-assure { grid-template-columns: 1fr; } }

/* ============ 404 ============ */
.nf-wrap { display: grid; place-items: center; min-height: 64vh; padding-block: 48px; }
.nf-card { max-width: 620px; width: 100%; text-align: center; display: flex; flex-direction: column; align-items: center; }
.nf-mark { margin-bottom: 22px; }
.nf-code { font-family: var(--font-display, var(--font)); font-weight: 800; font-size: clamp(84px, 18vw, 150px); line-height: .9; letter-spacing: -.04em; color: var(--ink); display: flex; }
.nf-zero { position: relative; color: var(--accent); }
.nf-zero::after { content: ""; position: absolute; inset: 14% 16%; border-radius: 50%; border: 3px dashed color-mix(in oklab, var(--accent) 45%, transparent); animation: nfSpin 14s linear infinite; }
@keyframes nfSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .nf-zero::after { animation: none; } }
.nf-title { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.02em; margin: 14px 0 8px; text-wrap: balance; }
.nf-lead { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 460px; margin: 0 auto 26px; text-wrap: pretty; }
.nf-search { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 520px; padding: 8px 8px 8px 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-sm); margin-bottom: 28px; }
.nf-search > svg { color: var(--muted-2); flex-shrink: 0; }
.nf-search input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); outline: none; }
.nf-search input::placeholder { color: var(--muted-2); }
.nf-search .btn { flex-shrink: 0; }
.nf-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; }
.nf-link { display: flex; align-items: center; gap: 13px; padding: 15px 16px; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.nf-link:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--sh-md); }
.nf-link-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.nf-link-txt { display: flex; flex-direction: column; gap: 1px; flex: 1; min-width: 0; }
.nf-link-txt strong { font-size: 15px; color: var(--ink); }
.nf-link-arrow { color: var(--muted-2); flex-shrink: 0; transition: transform .18s ease, color .18s ease; }
.nf-link:hover .nf-link-arrow { color: var(--accent); transform: translateX(3px); }
.nf-help { margin-top: 24px; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 560px) {
  .nf-links { grid-template-columns: 1fr; }
  .nf-search { flex-wrap: wrap; border-radius: var(--r-lg); }
  .nf-search input { flex: 1 1 100%; order: -1; padding: 6px 0; }
  .nf-search .btn { flex: 1; }
}
.pg-buy-variants { display: flex; flex-direction: column; gap: 12px; padding-top: 16px; margin-top: 2px; border-top: 1px solid var(--line); }
.pg-buy-variants .capsw { margin: 0; }
.pg-buy-variants .pwadvice { margin: 0; }
.montage-opt { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: all .15s; }
.montage-opt.on { border-color: var(--accent); background: var(--accent-tint); }
.montage-opt input { display: none; }

/* promo + installment + addons */
.input-sm { padding: 10px 12px; font-size: 14px; }
.promo { margin-top: 14px; }
.promo-row { display: flex; gap: 8px; }
.promo-row .input { flex: 1; }
.promo-applied { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--eco-soft); border-radius: var(--r-md); }
.promo-remove { margin-left: auto; border: 0; background: none; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.plan { margin-top: 14px; }
.plan-seg { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; background: var(--surface-2); border-radius: var(--r-md); padding: 4px; }
.plan-opt { border: 0; background: none; padding: 9px 4px; border-radius: calc(var(--r-md) - 4px); font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; transition: all .15s; }
.plan-opt.on { background: var(--surface); color: var(--accent); box-shadow: var(--sh-sm); }
.plan-info { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.addon { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: all .15s; }
.addon.on { border-color: var(--accent); background: var(--accent-tint); }
.addon input { display: none; }
.addon-tag { display: inline-block; background: var(--warm); color: #fff; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: var(--r-pill); margin-left: 6px; vertical-align: middle; text-transform: uppercase; letter-spacing: .03em; }
.pg-total { padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pg-pay { display: flex; flex-direction: column; gap: 6px; }
.pg-pay span { display: flex; align-items: center; gap: 7px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { background: none; border: 0; padding: 14px 18px; font-size: 15px; font-weight: 600; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.tab.active { color: var(--accent); border-color: var(--accent); }
.tab-body { padding: 26px 0; }
.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; max-width: 860px; }
.prose p { margin-bottom: 14px; line-height: 1.6; }
.prose-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; margin: 16px 0 0; }
.prose-list li { display: flex; align-items: center; gap: 10px; }

/* gallery hover-zoom + hint */
.pg-main { overflow: hidden; }
.pg-main .imgslot, .pg-main image-slot { transition: transform .45s cubic-bezier(.22,.61,.36,1); }
.pg-main:hover .imgslot { transform: scale(1.12); }
.pg-zoom-hint { position: absolute; bottom: 12px; left: 12px; z-index: 3; display: inline-flex; align-items: center; gap: 6px; background: var(--surface); padding: 6px 11px; border-radius: var(--r-pill); box-shadow: var(--sh-sm); opacity: 0; transition: opacity .2s; pointer-events: none; }
.pg-main:hover .pg-zoom-hint { opacity: 1; }
.pg-thumb { padding: 0; overflow: hidden; background: var(--surface-2); }

/* комплектация */
.inbox-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 860px; }
.inbox-item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 500; }
.inbox-ic { width: 32px; height: 32px; border-radius: 9px; background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; flex-shrink: 0; }

/* reviews block */
.rev-block { display: grid; grid-template-columns: 280px 1fr; gap: 26px; align-items: start; }
.rev-summary { padding: 24px; text-align: center; position: sticky; top: calc(var(--header-h) + 20px); }
.rev-avg { font-size: 54px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--ink); }
.rev-summary .rating { justify-content: center; margin-top: 8px; }
.rev-bars { display: flex; flex-direction: column; gap: 7px; margin: 18px 0; }
.rev-bar-row { display: grid; grid-template-columns: 34px 1fr 26px; gap: 8px; align-items: center; }
.rev-bar-row > span:first-child { display: inline-flex; align-items: center; gap: 2px; justify-content: flex-end; }
.rev-bar { height: 7px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.rev-bar i { display: block; height: 100%; background: var(--star, #F5A623); background: #F5A623; border-radius: 4px; transition: width .5s; }
.rev-recommend { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 16px; }
.rev-list { display: flex; flex-direction: column; gap: 14px; }
.rev-list .rev-card { padding: 20px 22px; }
.rev-actions { margin-top: 14px; }
.rev-helpful { background: none; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 7px 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; font-size: 13px; }
.rev-helpful:hover { border-color: var(--accent); color: var(--accent); }

/* mobile sticky buy bar */
.pg-stickybuy { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 44; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 30px rgba(14,26,36,.12); padding: 12px 16px; gap: 12px; align-items: center; }
.pg-stickybuy-call { flex-shrink: 0; width: 50px; height: 50px; border-radius: var(--r-md); background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; }
.pg-stickybuy-call:active { background: var(--eco); color: #fff; }

/* recommended — accessories/consumables */
.addon-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.addon-card { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.addon-card-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.addon-card-body { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.addon-card-name { font-size: 15px; line-height: 1.25; }
.addon-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.addon-svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon-svc { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; transition: transform .15s, box-shadow .15s; min-width: 0; }
.addon-svc > div { min-width: 0; }
.addon-svc strong, .addon-svc .muted { overflow: hidden; text-overflow: ellipsis; }
.addon-svc:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.addon-svc-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }
.addon-svc-go { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; font-size: 13px; white-space: nowrap; }

/* ============ CALCULATOR ============ */
.calc-hero { background: linear-gradient(125deg, var(--brand-800), var(--brand-600)); padding: clamp(36px,5vw,70px) 0 clamp(40px,5vw,80px); }
.calc-hero .display { margin: 14px 0 14px; }
.calc-layout { display: grid; grid-template-columns: 1fr 420px; gap: 30px; max-width: var(--maxw); margin: -50px auto 0; padding: 0 var(--gutter); align-items: start; }
.calc-form { padding: 30px; }
.calc-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); margin-top: 8px; }
.calc-row strong { display: block; } .calc-row .small { display: block; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: var(--r-pill); padding: 4px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-sm); }
.stepper button:hover { color: var(--accent); }
.stepper span { min-width: 40px; text-align: center; font-weight: 700; }
.calc-result { position: sticky; top: calc(var(--header-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.calc-gauge { padding: 26px; text-align: center; }
.calc-big { font-size: 64px; font-weight: 800; letter-spacing: -.04em; color: var(--accent); line-height: 1; margin: 10px 0 2px; }
.calc-big span { font-size: 26px; }
.calc-btu { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.calc-bars { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.calc-bar { display: grid; grid-template-columns: 80px 1fr 64px; gap: 10px; align-items: center; font-size: 13px; }
.calc-bar .bar { height: 8px; background: var(--surface-3); border-radius: 4px; overflow: hidden; }
.calc-bar .bar i { display: block; height: 100%; background: var(--accent); border-radius: 4px; transition: width .4s; }
.calc-bar b { text-align: right; }

/* ============ CART ============ */
.cart-layout { display: grid; grid-template-columns: 1fr 360px; gap: 26px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item { display: flex; gap: 16px; padding: 16px; }
.cart-thumb { width: 120px; flex-shrink: 0; border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.cart-info { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.cart-name { font-size: 16px; font-weight: 600; cursor: pointer; margin: 2px 0; }
.cart-name:hover { color: var(--accent); }
.cart-del { background: none; border: 0; color: var(--muted-2); padding: 4px; }
.cart-del:hover { color: var(--sale); }
.cart-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: auto; }
.cart-summary { position: sticky; top: calc(var(--header-h) + 20px); padding: 24px; }
.cart-summary .h3 { margin-bottom: 16px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 7px 0; }
.sum-row-total { align-items: flex-start; gap: 18px; }
.sum-row-total .h3 { min-width: 0; margin-bottom: 0; line-height: 1.18; }
.sum-row-total .h2 { flex-shrink: 0; white-space: nowrap; text-align: right; line-height: 1.05; }
.cart-ref { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 12px 0 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); }
.cart-ref code { font: 700 12px/1.2 var(--mono, monospace); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-ref button { flex-shrink: 0; }
.cart-ref-help { align-items: flex-start; margin-top: 14px; border: 0; background: var(--surface-2, #f5f7fa); opacity: .85; }
.cart-ref-help:hover { opacity: 1; }
.cart-ref-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-ref-copy .small { min-width: 0; overflow-wrap: anywhere; }
.cart-ref-copy code { display: inline-flex; margin-left: 4px; }
.cart-guar { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.cart-guar span { display: flex; align-items: center; gap: 8px; }
.co-thumb { width: 50px; height: 50px; border-radius: 10px; overflow: hidden; flex-shrink: 0; }
.co-thumb .imgslot { border-radius: 0; }

/* ============ CHECKOUT ============ */
.checkout-layout { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.steps { display: flex; gap: 8px; margin-bottom: 20px; }
.step { flex: 1; display: flex; align-items: center; gap: 9px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); }
.step.active { border-color: var(--accent); color: var(--accent); background: var(--accent-tint); }
.step.done { color: var(--eco); }
.step-num { width: 26px; height: 26px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 13px; }
.step.active .step-num { background: var(--accent); color: #fff; }
.step.done .step-num { background: var(--eco); color: #fff; }
.checkout-card { padding: 26px; }
.radio-card { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: all .15s; }
.radio-card.on { border-color: var(--accent); background: var(--accent-tint); }
.radio-card input { display: none; }
.radio-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex-shrink: 0; position: relative; }
.radio-card.on .radio-dot { border-color: var(--accent); }
.radio-card.on .radio-dot::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--accent); }
.ok-circle { width: 76px; height: 76px; border-radius: 50%; background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; }

/* ============ COMPARE ============ */
.cmp-scroll { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; min-width: 600px; }
.cmp-table th, .cmp-table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cmp-rowlabel { color: var(--muted); font-weight: 500; width: 150px; position: sticky; left: 0; background: var(--bg); }
.cmp-prodhead { position: relative; vertical-align: top; background: var(--surface); border-bottom: 2px solid var(--line); width: 220px; }
.cmp-del { position: absolute; top: 6px; right: 6px; background: var(--surface-2); border: 0; border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; color: var(--muted); }
.cmp-del:hover { background: var(--sale-soft); color: var(--sale); }
.cmp-thumb { border-radius: var(--r-md); overflow: hidden; cursor: pointer; }
.cmp-table tbody tr:hover { background: var(--surface-2); }
.cmp-diff td:not(.cmp-rowlabel) { background: var(--accent-tint); font-weight: 600; }

/* ============ SERVICES ============ */
.svc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.svc-card { position: relative; padding: 24px; display: flex; flex-direction: column; }
.svc-card.popular { border-color: var(--accent); box-shadow: var(--sh-md); }
.svc-pop { position: absolute; top: -11px; left: 24px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 12px; border-radius: var(--r-pill); }
.svc-card .h3 { margin-bottom: 10px; }
.proc-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.proc-step { position: relative; padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.proc-num { position: absolute; top: 18px; right: 20px; font-size: 38px; font-weight: 800; color: var(--accent-soft); line-height: 1; }
.proc-ic { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 14px; }
.proc-step strong { display: block; margin-bottom: 6px; font-size: 16px; }
.svc-form { display: flex; gap: 10px; flex-wrap: wrap; }
.svc-form .input { flex: 1; min-width: 160px; }

/* ============ SERVICE DETAIL PAGES ============ */
.svc-hero { background: linear-gradient(125deg, var(--brand-800), var(--brand-600)); padding: clamp(30px,4vw,56px) 0 clamp(40px,5vw,64px); }
.svc-hero-in { margin-top: 18px; }
.svc-hero-meta { display: flex; gap: 36px; margin-top: 26px; flex-wrap: wrap; }
.svc-hero-meta > div { display: flex; flex-direction: column; gap: 3px; }
.svc-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 30px; align-items: start; }
.svc-incl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.svc-incl-item { display: flex; align-items: center; gap: 11px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); font-weight: 500; font-size: 14px; }
.svc-incl-ic { width: 26px; height: 26px; border-radius: 8px; background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; flex-shrink: 0; }
.svc-bookcard { padding: 24px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: calc(var(--header-h) + 20px); }
.svc-bookcard-row { display: flex; align-items: center; gap: 10px; }
.svc-tier-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-tier { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.svc-tier.popular { border-color: var(--accent); box-shadow: var(--sh-md); }
.svc-tier-price { line-height: 1.2; }
.svc-tier-feats { display: flex; flex-direction: column; gap: 9px; flex: 1; }
.svc-tier-feat { display: flex; align-items: center; gap: 9px; font-size: 14px; }
.svc-signs { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.svc-sign { padding: 24px; }
.svc-sign-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); margin-bottom: 12px; }
.svc-sign strong { display: block; margin-bottom: 6px; }
.svc-other-grid, .svc-pages-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.svc-other { display: flex; align-items: center; gap: 14px; padding: 18px 20px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.svc-other:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.svc-other-ic, .svc-page-ic, .home-svc-ic { display: inline-grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; background: var(--surface-2); flex-shrink: 0; }
.svc-page-card { padding: 24px; display: flex; flex-direction: column; gap: 12px; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; }
.svc-page-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.svc-page-link { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); font-weight: 600; font-size: 13.5px; }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq-item { padding: 0; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; background: none; border: 0; font-weight: 600; font-size: 16px; text-align: left; cursor: pointer; color: var(--ink); }
.faq-a { padding: 0 22px 20px; line-height: 1.6; }

/* home services + b2b */
.home-svc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.home-svc-card { display: flex; align-items: center; gap: 14px; padding: 20px; cursor: pointer; text-align: left; transition: transform .15s, box-shadow .15s; }
.home-svc-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.home-svc-price { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 700; }
.home-b2b { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: clamp(28px,4vw,48px); background: linear-gradient(120deg, var(--brand-800), var(--brand-600)); flex-wrap: wrap; position: relative; overflow: hidden; }
.home-b2b::before { content: ""; position: absolute; right: -40px; bottom: -80px; width: 300px; height: 300px; border-radius: 50%; background: rgba(255,255,255,.06); }
.home-b2b-copy { position: relative; z-index: 1; flex: 1; min-width: 280px; }
.home-b2b-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.home-b2b-tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.14); color: #fff; padding: 7px 13px; border-radius: var(--r-pill); font-size: 13px; font-weight: 600; }
.home-b2b-stats { position: relative; z-index: 1; display: flex; gap: 30px; }
.home-b2b-stats > div { display: flex; flex-direction: column; gap: 4px; }

/* services -> b2b teaser */
.b2b-teaser { display: flex; align-items: center; gap: 20px; padding: 24px 28px; cursor: pointer; transition: transform .15s, box-shadow .15s; width: 100%; text-align: left; background: var(--surface); }
.b2b-teaser:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.b2b-teaser-ic { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--accent-soft); color: var(--accent); flex-shrink: 0; }

/* ============ B2B PAGE ============ */
.b2b-hero { background: linear-gradient(125deg, #0b2233, var(--brand-700)); padding: clamp(30px,4vw,56px) 0 clamp(40px,5vw,72px); }
.b2b-hero-in { margin-top: 18px; }
.b2b-hero-stats { display: flex; gap: 40px; margin-top: 30px; flex-wrap: wrap; }
.b2b-hero-stats > div { display: flex; flex-direction: column; gap: 3px; }
.b2b-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.b2b-card { padding: 26px; }
.b2b-ic { display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 15px; background: var(--accent-soft); color: var(--accent); margin-bottom: 14px; }
.b2b-card strong { display: block; margin-bottom: 6px; font-size: 17px; }
.b2b-seg { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: clamp(24px,4vw,40px); }
.b2b-seg-list { display: flex; flex-wrap: wrap; gap: 10px; }
.b2b-seg-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--surface-2); padding: 10px 16px; border-radius: var(--r-pill); font-weight: 500; font-size: 14px; }
.b2b-seg-img { position: relative; aspect-ratio: 4 / 3; min-height: 260px; border-radius: var(--r-lg); overflow: hidden; background: var(--surface-2); }
.b2b-form-band { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: clamp(28px,4vw,48px); background: linear-gradient(125deg, var(--brand-800), var(--brand-600)); align-items: center; }
.b2b-form-copy { color: #fff; }
.b2b-form-contacts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.b2b-form-contacts a { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; }
.b2b-form { background: var(--surface); border-radius: var(--r-lg); padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.b2b-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ============ MODAL / BOOKING ============ */
.modal-overlay { position: fixed; inset: 0; background: rgba(8,20,28,.55); backdrop-filter: blur(3px); z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeUp .2s ease both; }
.modal { background: var(--surface); border-radius: var(--r-xl); width: 100%; max-width: 540px; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--sh-lg); animation: modalIn .25s cubic-bezier(.22,.61,.36,1) both; }
@keyframes modalIn { from { transform: translateY(20px) scale(.97); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 20px 24px; overflow-y: auto; }
.modal-foot { display: flex; gap: 10px; padding: 16px 24px 22px; border-top: 1px solid var(--line); }
.booking-steps { display: flex; gap: 6px; padding: 14px 24px 0; }
.bstep { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--muted-2); flex: 1; }
.bstep-num { width: 22px; height: 22px; border-radius: 50%; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }
.bstep.active { color: var(--ink); } .bstep.active .bstep-num { background: var(--accent); color: #fff; }
.bstep.done .bstep-num { background: var(--eco); color: #fff; }
.bk-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.bk-day { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; transition: all .15s; }
.bk-day:hover { border-color: var(--accent); }
.bk-day.on { border-color: var(--accent); background: var(--accent-tint); }
.bk-day.weekend .bk-day-n { color: var(--warm); }
.bk-day-w { color: var(--muted); text-transform: lowercase; }
.bk-day-n { font-size: 18px; font-weight: 700; }
.bk-day-m { color: var(--muted); }
.bk-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.bk-slot { position: relative; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 14.5px; transition: all .15s; }
.bk-slot:hover:not(:disabled) { border-color: var(--accent); }
.bk-slot.on { border-color: var(--accent); background: var(--accent-tint); color: var(--accent); }
.bk-slot:disabled { opacity: .5; cursor: not-allowed; }
.bk-slot-busy { display: block; font-size: 11px; color: var(--warm); font-weight: 500; margin-top: 2px; }
.bk-summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--accent-tint); border-radius: var(--r-md); }

/* ============ CHAT WIDGET ============ */
.chat-fab { position: fixed; right: 22px; bottom: 22px; z-index: 85; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; box-shadow: var(--sh-lg); cursor: pointer; transition: transform .2s; }
.chat-fab:hover { transform: scale(1.06); }
.chat-fab.hidden { display: none; }
.chat-fab-dot { position: absolute; top: 12px; right: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--warm); border: 2px solid var(--accent); }
.chat-win { position: fixed; right: 22px; bottom: 22px; z-index: 86; width: min(380px, calc(100vw - 32px)); height: min(580px, calc(100vh - 44px)); background: var(--surface); border-radius: var(--r-xl); box-shadow: var(--sh-lg); display: flex; flex-direction: column; overflow: hidden; animation: modalIn .25s cubic-bezier(.22,.61,.36,1) both; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: linear-gradient(120deg, var(--brand-700), var(--brand-500)); color: #fff; }
.chat-head-ava { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.2); display: grid; place-items: center; flex-shrink: 0; }
.chat-head .btn-icon { color: #fff; }
.chat-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.85); }
.chat-online { width: 8px; height: 8px; border-radius: 50%; background: #5BE39A; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.chat-msg.bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.chat-msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.chat-quick { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.chat-chip { align-self: flex-start; background: var(--surface); border: 1px solid var(--accent); color: var(--accent); padding: 9px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 500; cursor: pointer; transition: all .15s; text-align: left; }
.chat-chip:hover { background: var(--accent-tint); }
.chat-typing { display: inline-flex; gap: 4px; padding: 2px 0; }
.chat-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); animation: chatBlink 1.2s infinite both; }
.chat-typing i:nth-child(2) { animation-delay: .2s; } .chat-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chatBlink { 0%,60%,100% { opacity: .3; } 30% { opacity: 1; } }
.chat-actions { padding: 10px 14px 0; }
.chat-input { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 11px 16px; font-size: 14px; outline: none; background: var(--surface-2); color: var(--ink); }
.chat-input input:focus { border-color: var(--accent); background: var(--surface); }
.chat-send { width: 42px; height: 42px; border-radius: 50%; background: var(--accent); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.chat-send:disabled { opacity: .4; cursor: default; }

/* ============ ACCOUNT ============ */
.acc-head { display: flex; align-items: center; gap: 18px; padding: 22px 24px; margin-bottom: 22px; }
.acc-ava { width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 26px; font-weight: 700; }
.acc-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: calc(var(--header-h) + 20px); }
.acc-navitem { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: var(--r-md); background: none; border: 0; color: var(--ink-2); font-size: 15px; font-weight: 500; text-align: left; }
.acc-navitem:hover { background: var(--surface); }
.acc-navitem.active { background: var(--accent); color: #fff; }
.acc-count { margin-left: auto; background: var(--surface-3); color: var(--ink-2); min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.acc-navitem.active .acc-count { background: rgba(255,255,255,.25); color: #fff; }
.order { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.order-active { border-color: color-mix(in oklab, var(--accent) 40%, var(--line)); box-shadow: var(--sh-sm); }
.order-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; width: 100%; }
.order-items { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
.order-detail { display: flex; flex-direction: column; gap: 14px; animation: fadeUp .2s ease both; }
.order-meta { display: flex; flex-direction: column; gap: 8px; }
.order-meta-row { display: flex; justify-content: space-between; gap: 14px; }

/* order tracker timeline */
.tracker { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; padding: 6px 0 2px; }
.tracker-line { position: absolute; top: 21px; left: 10%; right: 10%; height: 3px; background: var(--surface-3); border-radius: 2px; }
.tracker-line i { display: block; height: 100%; background: var(--accent); border-radius: 2px; transition: width .5s cubic-bezier(.22,.61,.36,1); }
.tracker-step { display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; position: relative; z-index: 1; }
.tracker-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2.5px solid var(--surface-3); color: var(--muted-2); transition: all .2s; }
.tracker-step.done .tracker-dot { background: var(--accent); border-color: var(--accent); color: #fff; }
.tracker-step.active .tracker-dot { background: var(--surface); border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.tracker-step.active .tracker-dot { animation: trackerPulse 2s ease-in-out infinite; }
@keyframes trackerPulse { 0%,100% { box-shadow: 0 0 0 4px var(--accent-tint); } 50% { box-shadow: 0 0 0 7px color-mix(in oklab, var(--accent) 12%, transparent); } }
.tracker-lbl { color: var(--muted); line-height: 1.2; }
.tracker-step.done .tracker-lbl, .tracker-step.active .tracker-lbl { color: var(--ink); font-weight: 600; }
.tracker-eta { font-size: 11px; color: var(--accent); font-weight: 600; max-width: 90px; line-height: 1.2; }

/* ============ RESPONSIVE ============ */
@media (max-width: 992px){
  /* switch header to burger before the desktop row outgrows the viewport */
  .hdr-top, .hdr-catalog, .hdr-search, .hdr-actions, .hdr-nav-wrap { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-mobacts { display: flex; }
  .hdr-msearch { display: flex; }
  .hdr-main { gap: 14px; height: 60px; }
  /* on mobile only the compact top bar (logo + phone + cart + burger) stays stuck;
     the search row scrolls away */
  .hdr { position: static; padding-top: 60px; }
  .hdr-main {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
  }
  .hdr-city-mobile-row { display: none !important; }
  .hdr-city-switch--mobile {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
  }
  .hdr-city-switch--mobile .hdr-city-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink-2);
  }
  .hdr-city-switch--mobile .hdr-city-tabs {
    flex: 0 1 auto;
    background: var(--surface-2);
  }
  .hdr-city-switch--mobile .hdr-city-tab {
    min-width: 0;
    height: 28px;
    padding-inline: 10px;
    font-size: 13px;
  }
  .hdr-msearch { position: relative; z-index: 39; }
  .botnav { display: flex; }
  .app-main { padding-bottom: 64px; }
  .cmpbar { bottom: 60px; }
  /* service-upsell strip must compress on tablet */
  .addon-svc-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr 1fr 1fr; }
  .grid-products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px){
  .cat-grid { grid-template-columns: repeat(3,1fr); }
  .hero-in { grid-template-columns: 1fr; }
  .hero-side { max-width: 440px; }
  .ft-grid { grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
  .ft-contact { grid-template-columns: 1fr; gap: 26px; }
  .ft-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 992px){
  .hdr-top, .hdr-catalog, .hdr-search, .hdr-actions, .hdr-nav-wrap { display: none; }
  .hdr-burger { display: inline-flex; }
  .hdr-main { gap: 14px; }
  .botnav { display: flex; }
  .app-main { padding-bottom: 64px; }
  .cmpbar { bottom: 60px; }
  .catalog-layout, .product-top, .cart-layout, .checkout-layout, .acc-layout, .calc-layout { grid-template-columns: minmax(0, 1fr); }
  .product-wide-block { grid-column: auto; margin-top: 0; }
  .kit-composition-panel { padding: 16px; border-radius: var(--r-lg); }
  .kit-composition-panel .kit-build { display: flex; flex-direction: column; gap: 18px; }
  .svc-detail-grid, .b2b-form-band, .b2b-seg, .home-b2b { grid-template-columns: 1fr; }
  .svc-tier-grid, .svc-signs, .svc-other-grid, .svc-pages-grid, .b2b-grid, .home-svc-grid { grid-template-columns: 1fr 1fr; }
  .addon-grid { grid-template-columns: 1fr 1fr; }
  .addon-svc-grid { grid-template-columns: 1fr; }
  .svc-bookcard { position: static; }
  .home-b2b-stats { gap: 24px; }
  .chat-win { right: 12px; bottom: 12px; height: min(560px, calc(100vh - 80px)); }
  .chat-fab { right: 16px; bottom: 74px; }
  .catalog-aside { display: none; }
  .catalog-filter-btn { display: inline-flex; }
  .pg-gallery, .cart-summary, .calc-result, .acc-nav, .catalog-aside { position: static; }
  .acc-nav { flex-direction: row; overflow-x: auto; }
  .calc-layout { margin-top: -30px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .rev-grid { grid-template-columns: 1fr; }
  .svc-grid, .proc-grid { grid-template-columns: 1fr 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .qv-media { display: none; }
  .specs-grid { grid-template-columns: 1fr; }
  .hc-band { grid-template-columns: 1fr; }
  .rev-block { grid-template-columns: 1fr; }
  .rev-summary { position: static; }
  .inbox-grid { grid-template-columns: 1fr 1fr; }
  .pg-stickybuy { display: flex; bottom: 60px; }
  .pg-info { padding-bottom: 8px; }
  /* lift chat FAB above the floating compare bar when it's visible */
  body:has(.cmpbar) .chat-fab { bottom: 140px; }
  body:has(.cmpbar) .app-main { padding-bottom: 140px; }
  /* when the mobile sticky buy-bar is present, lift the chat FAB above it,
     hide the redundant floating compare bar, and pad content so nothing hides behind it */
  body:has(.pg-stickybuy) .chat-fab { bottom: 152px; }
  body:has(.pg-stickybuy) .cmpbar { display: none; }
  body:has(.pg-stickybuy) .app-main { padding-bottom: 150px; }
}
@media (max-width: 560px){
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .svc-grid, .proc-grid { grid-template-columns: 1fr; }
  .svc-tier-grid, .svc-signs, .svc-other-grid, .svc-pages-grid, .b2b-grid, .home-svc-grid, .svc-incl, .b2b-form-row, .bk-slots { grid-template-columns: 1fr; }
  .addon-grid { grid-template-columns: 1fr; }
  .svc-hero-meta { gap: 24px; }
  .booking-steps .bstep span:not(.bstep-num) { display: none; }
  .bk-day { padding: 8px 2px; }
  .bk-day-n { font-size: 16px; }
  .hero-stats { gap: 22px; }
  .steps { flex-direction: column; }
  .cart-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    align-items: start;
    gap: 12px;
    padding: 12px;
  }
  .cart-thumb {
    width: 96px;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .cart-thumb .imgslot { height: 100%; }
  .cart-info { min-width: 0; }
  .cart-info > .row { align-items: flex-start; }
  .cart-info > .row > div { min-width: 0; }
  .cart-name { line-height: 1.18; }
  .cart-bottom { gap: 10px; align-items: center; }
  .cart-bottom .h3 { font-size: 20px; white-space: nowrap; }
  .cart-bottom .stepper { flex-shrink: 0; }
  /* compact mobile product cards: drop feature chips, always-show fav heart, tighten */
  .pcard-body { gap: 5px; padding: 11px; }
  .pcard .feat-dots { display: none; }
  .pcard-title { font-size: 14px; }
  .pcard-meta { font-size: 12px; }
  .pcard-stock { font-size: 12px; }
  .pcard-foot { margin-top: auto; padding-top: 10px; }
  .price-now { font-size: 18px; }
  .btn-cart { width: 40px; height: 40px; }
  .pcard .card-quick { opacity: 1; transform: none; top: 10px; right: 10px; }
  .pcard-disc + .card-quick { top: 44px; }
  .pcard .card-qbtn { width: 34px; height: 34px; }
  .pcard .card-qbtn:nth-child(2), .pcard .card-qbtn:nth-child(3) { display: none; }
  /* ===== touch targets: min 44px on phones ===== */
  .hdr-mobic { width: 44px; height: 44px; }
  .hdr-msearch { height: 48px; }
  .hdr-msearch input { align-self: stretch; }
  .seg-btn, .plan-opt { min-height: 44px; }
  .pcard .card-qbtn { width: 40px; height: 40px; }
  .btn-cart { width: 44px; height: 44px; }
  /* fix discounted card: keep price on one line, old price below, cart aligned */
  .pcard-foot { align-items: center; gap: 8px; }
  .pcard-foot .price-block { min-width: 0; flex: 1; }
  .pcard-foot .price-block .row { flex-direction: column; align-items: flex-start; gap: 0; }
  .price-now { white-space: nowrap; font-size: 17px; }
  .price-old { font-size: 12.5px; }
  .kitcard .btn-cart-wide {
    width: 44px;
    min-width: 44px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    font-size: 0;
  }
  .kitcard .btn-cart-wide svg { flex-shrink: 0; }
  .ft-msgr-btn { min-height: 44px; }
  .ft-social-ic { width: 44px; height: 44px; }
.btn-icon { min-width: 44px; min-height: 44px; }
  .chip, .rev-sit-chip, .qa-helpful, .rev-helpful, .smart-eg { min-height: 38px; }
  .smartbar-row { flex-wrap: wrap; border-radius: var(--r-lg); }
  .smartbar-input { flex: 1 1 100%; order: -1; }
  .smartbar-ai, .smartbar-go { flex: 1 1 auto; justify-content: center; }
  .ai-result-grid { grid-template-columns: 1fr; }
  .ft-grid { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr; gap: 0; }
  .ft-col { border-bottom: 1px solid var(--line); }
  .ft-col-head { padding: 16px 0; }
  .ft-col-head > svg { display: block; }
  .ft-col.open .ft-col-head > svg { transform: rotate(180deg); }
  .ft-col-body { display: none; margin-top: 0; padding-bottom: 16px; }
  .ft-col.open .ft-col-body { display: flex; }
  .ft-pay-row { flex-direction: column; align-items: flex-start; gap: 16px; }
  .ft-phone { font-size: 24px; }
  .pg-keyspecs { grid-template-columns: 1fr 1fr; }
  .grid-products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ============================================================
   Claude Design · Пингвин Клим: поймай скидку
   ============================================================ */
.peng-wrap {
  position: fixed;
  z-index: 120;
  width: var(--pg, 104px);
  transition: left .55s cubic-bezier(.45,.05,.3,1), top .55s cubic-bezier(.45,.05,.3,1);
  will-change: left, top, transform;
  pointer-events: none;
}
.peng-wrap.show { pointer-events: auto; }
.peng {
  position: relative;
  cursor: pointer;
  transform-origin: 50% 100%;
  background: none;
  border: 0;
  padding: 0;
  width: 100%;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(6,42,56,.34));
  animation: pgWiggle 2.6s ease-in-out infinite;
}
.peng svg { width: 100%; height: auto; display: block; }
.peng-wrap.appearing .peng { animation: pgPop .62s cubic-bezier(.34,1.56,.64,1) both, pgWiggle 2.6s ease-in-out .62s infinite; }
.peng-wrap.caught .peng { animation: pgCaught .6s ease both; }
@keyframes pgWiggle { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes pgPop { 0% { transform: translateY(120%) scale(.4); opacity: 0; } 60% { opacity: 1; } 100% { transform: translateY(0) scale(1); } }
@keyframes pgCaught { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
.peng .flipper-l { transform-origin: 88% 30%; animation: pgWave 1.1s ease-in-out infinite; }
@keyframes pgWave { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-26deg); } }
.peng-say {
  position: absolute;
  bottom: 96%;
  right: 0;
  width: max-content;
  max-width: 230px;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
  box-shadow: var(--sh-md);
  transform-origin: 90% 100%;
  animation: pengSayIn .35s cubic-bezier(.34,1.56,.64,1) both;
}
.peng-say::after { content: ""; position: absolute; top: 100%; right: 24px; border: 7px solid transparent; border-top-color: #fff; }
.peng-say b { color: var(--accent); }
@keyframes pengSayIn { 0% { opacity: 0; transform: scale(.6) translateY(6px); } 100% { opacity: 1; transform: scale(1); } }
.peng-x {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--line);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  box-shadow: var(--sh-sm);
  z-index: 2;
}
.peng-x:hover { color: var(--ink); }
.peng-tag {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-strong);
  background: var(--accent-tint);
  padding: 2px 9px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.ov {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10,26,36,.55);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  padding: 22px;
  overflow-y: auto;
  animation: pengFadeIn .2s both;
}
@media (max-height: 580px) { .ov { align-items: start; } }
@keyframes pengFadeIn { from { opacity: 0; } to { opacity: 1; } }
.rw {
  position: relative;
  width: 100%;
  max-width: 412px;
  background: var(--surface);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: rwIn .4s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes rwIn { 0% { opacity: 0; transform: translateY(24px) scale(.94); } 100% { opacity: 1; transform: none; } }
.rw-top {
  position: relative;
  padding: 22px 26px 18px;
  text-align: center;
  background: linear-gradient(160deg, var(--brand-600), var(--brand-800));
  color: #fff;
  overflow: hidden;
}
.rw-top .snow { position: absolute; color: rgba(255,255,255,.22); animation: pengDrift 5s linear infinite; }
.rw-peng {
  width: 72px;
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 14px rgba(0,0,0,.25));
  position: relative;
  z-index: 1;
  transition: transform .8s cubic-bezier(.4,0,.2,1), opacity .8s ease;
}
.rw-top[data-mood="calm"] .rw-peng { transform: none; animation: pgRockCalm 2.4s ease-in-out infinite; }
.rw-top[data-mood="fidget"] .rw-peng { transform: translateX(14px) rotate(6deg); animation: pgRockFidget 1.6s ease-in-out infinite; }
.rw-top[data-mood="nervous"] .rw-peng { transform: translateX(44px) rotate(14deg) translateY(6px); animation: pgRockNervous 1s ease-in-out infinite; }
.rw-top[data-mood="leaving"] .rw-peng { transform: translateX(80px) rotate(20deg) translateY(16px); opacity: .55; animation: none; }
.rw-top[data-mood="gone"] .rw-peng { transform: translateX(130px) rotate(28deg) translateY(30px); opacity: 0; }
@keyframes pgRockCalm { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes pgRockFidget { 0%,100% { transform: translateX(14px) rotate(4deg); } 50% { transform: translateX(18px) rotate(8deg); } }
@keyframes pgRockNervous { 0%,100% { transform: translateX(44px) rotate(12deg) translateY(6px); } 50% { transform: translateX(48px) rotate(16deg) translateY(2px); } }
.rw-top h2 { font-size: 22px; font-weight: 800; margin: 0; position: relative; z-index: 1; }
.rw-top p { margin: 7px 0 0; font-size: 13.5px; opacity: .9; line-height: 1.4; position: relative; z-index: 1; }
.rw-body { padding: 20px 24px 22px; }
.rw-code { display: flex; align-items: stretch; gap: 10px; margin-bottom: 14px; }
.rw-code-box { flex: 1; padding: 12px 16px; border: 1.5px dashed var(--accent); border-radius: var(--r-md); background: var(--accent-tint); text-align: center; cursor: pointer; }
.rw-code-box small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.rw-code-val { font-size: 23px; font-weight: 800; letter-spacing: .08em; color: var(--accent-strong); }
.rw-copy { flex-shrink: 0; border: 0; border-radius: var(--r-md); background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 13px; padding: 0 16px; cursor: pointer; }
.rw-copy.ok { background: var(--eco); }
.rw-patience { margin-bottom: 16px; }
.rw-patience-txt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; line-height: 1.35; }
.rw-patience-txt .pg-em { width: 20px; height: 20px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); display: inline-grid; place-items: center; font-size: 12px; font-weight: 800; flex-shrink: 0; }
.rw-patience-bar { height: 6px; border-radius: 6px; background: var(--line-2); overflow: hidden; }
.rw-patience-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--warm), var(--brand-500)); transition: width 1s linear; }
.rw-patience-label { display: flex; justify-content: space-between; align-items: center; margin-top: 5px; font-size: 11px; color: var(--muted-2); }
.rw-patience.nervous .rw-patience-txt { color: var(--warm); }
.rw-patience.nervous .rw-patience-fill { background: linear-gradient(90deg, var(--sale), var(--warm)); }
.rw-patience.gone .rw-patience-txt { color: var(--muted); }
.rw-patience.gone .rw-patience-fill { width: 0 !important; }
.rw-form { display: flex; flex-direction: column; gap: 10px; }
.rw-input { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); font: inherit; font-size: 16px; color: var(--ink); background: var(--surface); outline: none; }
.rw-input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-tint); }
.rw-btn { width: 100%; padding: 15px; border: 0; border-radius: var(--r-md); background: var(--accent); color: #fff; font: inherit; font-weight: 700; font-size: 15.5px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s; }
.rw-btn:hover { background: var(--accent-strong); }
.rw-btn:disabled { opacity: .55; cursor: not-allowed; }
.rw-fine { font-size: 11.5px; color: var(--muted-2); text-align: center; margin: 10px 0 0; line-height: 1.4; }
.rw-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: rgba(255,255,255,.2); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; z-index: 2; }
.rw-x:hover { background: rgba(255,255,255,.34); }
.rw-ok { padding: 30px 26px; text-align: center; }
.rw-ok-ic { width: 62px; height: 62px; border-radius: 50%; background: var(--eco-soft); color: var(--eco); display: grid; place-items: center; margin: 0 auto 14px; }
.rw-ok h2 { font-size: 21px; font-weight: 800; margin: 0 0 6px; }
.rw-ok p { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }
.rw-secondary { width: 100%; margin-top: 10px; padding: 13px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: none; font: inherit; font-weight: 600; font-size: 14px; color: var(--ink-2); cursor: pointer; }
@keyframes pengDrift { from { transform: translateY(-10px) rotate(0); } to { transform: translateY(90px) rotate(180deg); } }
@media (max-width: 480px) {
  .rw { max-width: 100%; border-radius: var(--r-lg); }
  .rw-top { padding: 18px 18px 14px; }
  .rw-top h2 { font-size: 19px; }
  .rw-top p { font-size: 12.5px; }
  .rw-peng { width: 60px; }
  .rw-body { padding: 16px 16px 18px; }
  .rw-code-val { font-size: 19px; }
  .rw-copy { padding: 0 12px; font-size: 12px; }
  .rw-patience-txt { font-size: 12px; }
  .rw-btn { font-size: 14.5px; padding: 14px; }
  .rw-fine { font-size: 11px; }
}
@media (max-height: 620px) {
  .rw-top { padding: 14px 18px 12px; }
  .rw-peng { width: 54px; margin-bottom: 4px; }
  .rw-top h2 { font-size: 18px; }
  .rw-body { padding: 14px 16px 16px; }
  .rw-code { margin-bottom: 10px; }
  .rw-patience { margin-bottom: 12px; }
  .rw-patience-bar { height: 5px; }
}
@media (prefers-reduced-motion: reduce) {
  .peng, .peng .flipper-l, .rw-top .snow { animation: none !important; }
  .peng-wrap { transition: none; }
}
