/* ==========================================================================
   Гастротех — стилі публічного сайту
   ========================================================================== */
:root {
  --bg: #F6F4EF;
  --bg-2: #EEEAE2;
  --surface: #FFFFFF;
  --ink: #15171C;
  --ink-2: #474C56;
  --muted: #858A93;
  --line: #E4DFD5;
  --line-2: #D5CFC3;
  --accent: #F2A516;
  --accent-ink: #15171C;
  --accent-soft: color-mix(in oklab, var(--accent) 18%, #fff);
  --accent-softer: color-mix(in oklab, var(--accent) 9%, #fff);
  --ok: #1B8F52; --ok-soft: #E2F4E9;
  --warn: #B87406; --warn-soft: #FFF0D3;
  --info: #2B63CF; --info-soft: #E5EDFC;
  --off: #7C818A; --off-soft: #ECEBE7;
  --bad: #C2372B;
  --r: 18px;
  --r-sm: calc(var(--r) * .62);
  --r-lg: calc(var(--r) * 1.45);
  --shadow-1: 0 1px 2px rgba(21,23,28,.04), 0 6px 18px rgba(21,23,28,.05);
  --shadow-2: 0 2px 6px rgba(21,23,28,.05), 0 22px 50px -12px rgba(21,23,28,.16);
  --ease: cubic-bezier(.2,.75,.2,1);
  --font-head: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
}
body.tone-neutral { --bg: #F5F5F3; --bg-2: #EBEBE7; --line: #E2E2DC; --line-2: #D2D2CB; }
body.tone-cool { --bg: #F3F5F8; --bg-2: #E7EBF1; --line: #DCE2EA; --line-2: #CBD3DE; }

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .28s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 20px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 600; line-height: 1.08; letter-spacing: -.025em; margin: 0; text-wrap: balance; }
p { margin: 0; }
p, li { text-wrap: pretty; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.ic { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--font-mono); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; transition: top .2s; }
.skip:focus { top: 12px; }

/* ---------- кнопки ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em; white-space: nowrap;
  transition: transform .3s var(--ease), background-color .25s, box-shadow .3s var(--ease), color .25s, border-color .25s;
}
.btn .ic { transition: transform .3s var(--ease); }
.btn:hover .ic-go { transform: translateX(4px); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn--accent { background: var(--accent); color: var(--accent-ink); box-shadow: 0 10px 26px -12px color-mix(in srgb, var(--accent) 90%, #000); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -12px color-mix(in srgb, var(--accent) 90%, #000); }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { transform: translateY(-2px); background: #000; box-shadow: 0 16px 32px -14px rgba(0,0,0,.5); }
.btn--ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--surface); border-color: var(--ink); }
.btn--white { background: var(--surface); color: var(--ink); }
.btn--sm { --h: 42px; padding: 0 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--line-2); background: var(--surface); transition: background .25s, border-color .25s, transform .3s var(--ease); }
.icon-btn:hover { border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- верхня смуга та шапка ---------- */
.topbar { background: var(--ink); color: #E9E6DE; font-size: .84rem; font-weight: 600; }
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 38px; text-align: center; padding-block: 6px; }
.topbar .ic { color: var(--accent); width: 1.05em; height: 1.05em; }

.hdr { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background-color .3s, border-color .3s, box-shadow .3s; }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 84%, transparent); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); border-color: var(--line); }
.hdr__in { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.logo__mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); display: grid; place-items: center; color: var(--accent); transition: transform .5s var(--ease); }
.logo__mark .ic { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.04); }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-head); font-weight: 700; font-size: 1.22rem; letter-spacing: -.03em; }
.logo__tag { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 3px; }
.logo img { max-height: 44px; width: auto; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 12px; }
.nav__item { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; white-space: nowrap; border-radius: 999px; font-weight: 650; font-size: .95rem; color: var(--ink-2); border: 0; background: none; transition: color .2s, background-color .2s; }
.nav__link .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.nav__link:hover, .nav__link.is-active, .nav__item.is-open > .nav__link { color: var(--ink); background: rgba(21,23,28,.055); }
.nav__item.is-open > .nav__link .ic { transform: rotate(180deg); }

.mega {
  position: absolute; top: calc(100% + 12px); left: -12px; width: min(920px, calc(100vw - 48px));
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2);
  padding: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .35s var(--ease), visibility 0s .35s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
.nav__item.is-open .mega { opacity: 1; visibility: visible; transform: none; transition: opacity .25s, transform .35s var(--ease); }
.mega__cat { display: flex; gap: 12px; padding: 12px; border-radius: 14px; transition: background-color .2s; }
.mega__cat:hover { background: var(--bg); }
.mega__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-softer); display: grid; place-items: center; flex: none; transition: background-color .25s; }
.mega__ic .ic { width: 28px; height: 28px; stroke-width: 1.5; }
.mega__cat:hover .mega__ic { background: var(--accent); }
.mega__cat b { display: block; font-size: .95rem; line-height: 1.3; }
.mega__cat small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.35; margin-top: 2px; }
.mega__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 14px 6px; margin-top: 6px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.mega__foot a { font-weight: 700; color: var(--ink); display: inline-flex; gap: 6px; align-items: center; }

.hdr__right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.hdr__phone { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.hdr__phone a { font-weight: 800; font-size: 1rem; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hdr__phone small { white-space: nowrap; }
.hdr__phone small { font-size: .74rem; color: var(--muted); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; flex: none; }
.dot--pulse { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.burger { display: none; }

/* мобільне меню */
.mnav {
  position: fixed; inset: 0; z-index: 80; background: var(--bg); display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto;
}
.mnav.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.mnav__top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); padding-inline: var(--gutter); border-bottom: 1px solid var(--line); flex: none; }
.mnav__body { padding: 16px var(--gutter) 32px; display: flex; flex-direction: column; gap: 4px; }
.mnav__body > a, .mnav__group > summary { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-family: var(--font-head); font-size: 1.2rem; border-bottom: 1px solid var(--line); list-style: none; cursor: pointer; }
.mnav__group > summary::-webkit-details-marker { display: none; }
.mnav__group[open] > summary .ic { transform: rotate(180deg); }
.mnav__group > summary .ic { transition: transform .3s var(--ease); }
.mnav__cats { display: grid; gap: 2px; padding: 8px 0 12px; }
.mnav__cats a { display: flex; align-items: center; gap: 12px; padding: 10px 4px; font-weight: 650; }
.mnav__cats .ic { width: 30px; height: 30px; stroke-width: 1.4; }
.mnav__foot { margin-top: 20px; display: grid; gap: 10px; }
body.is-locked { overflow: hidden; }

/* ---------- загальні секції ---------- */
.sec { padding: clamp(44px, 6vw, 84px) 0; }
.sec--tight { padding-top: clamp(24px, 3vw, 40px); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(28px, 4vw, 48px); flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); max-width: 20ch; }
.sec-head p { max-width: 46ch; color: var(--ink-2); font-size: 1.05rem; }
.sec-head__side { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.eyebrow::before { content: ""; width: 24px; height: 2px; border-radius: 2px; background: var(--accent); }
.link-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 2px solid var(--accent); padding-bottom: 2px; transition: gap .3s var(--ease); }
.link-go:hover { gap: 12px; }
.link-go .ic { width: 18px; height: 18px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(24px, 4vw, 56px) 0 clamp(36px, 5vw, 64px); }
.hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(28px, 4vw, 64px); align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 650; color: var(--ink-2); box-shadow: var(--shadow-1); }
.hero h1 { font-size: clamp(2.3rem, 5.3vw, 4.5rem); line-height: 1.02; margin: 24px 0 22px; letter-spacing: -.035em; }
.hero h1 em, .hl em { font-style: normal; position: relative; z-index: 0; white-space: nowrap; }
.hero h1 em::after, .hl em::after { content: ""; position: absolute; z-index: -1; left: -.06em; right: -.06em; bottom: .04em; height: .36em; background: var(--accent); border-radius: .1em; transform-origin: left center; animation: mark 1.1s .35s var(--ease) both; }
@keyframes mark { from { transform: scaleX(0); } }
.hero__lead { font-size: clamp(1.05rem, 1.35vw, 1.2rem); color: var(--ink-2); max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding: 0; margin: 32px 0 0; }
.hero__badges li { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: .92rem; color: var(--ink-2); }
.hero__badges .ic { color: var(--ok); }

.stage {
  position: relative; aspect-ratio: 1 / .9; border-radius: calc(var(--r) * 1.9); overflow: hidden; isolation: isolate;
  background: radial-gradient(110% 80% at 72% 18%, var(--accent-soft), transparent 62%), linear-gradient(180deg, #FFFFFF, var(--bg-2));
  border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(rgba(21,23,28,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(21,23,28,.055) 1px, transparent 1px);
  background-size: 36px 36px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(85% 75% at 50% 45%, #000 30%, transparent 85%); mask-image: radial-gradient(85% 75% at 50% 45%, #000 30%, transparent 85%);
}
.genset { position: absolute; left: 3%; right: 3%; bottom: 4%; width: 94%; height: auto; }
.g-shadow { fill: rgba(21,23,28,.10); }
.g-ink { fill: #23262D; }
.g-stroke { fill: none; stroke: #1B1E24; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.g-body { fill: url(#gBody); }
.g-roof { fill: #E8E4DB; }
.g-door { fill: #FBFAF7; stroke: #1B1E24; stroke-width: 2.5; }
.g-accent { fill: var(--accent); }
.g-screen { fill: #1B1E24; }
.g-lcd { fill: #7FF0AE; font-family: var(--font-mono); font-size: 17px; font-weight: 500; letter-spacing: .02em; }
.g-lcd--s { font-size: 11px; fill: #7FF0AE; opacity: .75; }
.g-led { fill: #3DDC84; animation: blink 1.8s steps(1) infinite; }
.g-led2 { fill: var(--accent); }
.g-stop { fill: #E0483C; stroke: #1B1E24; stroke-width: 2.5; }
.g-vent { stroke: #1B1E24; stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.g-wave { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 10 14; animation: flow 1.6s linear infinite; opacity: .9; }
.g-wave2 { fill: none; stroke: #1B1E24; stroke-width: 1.5; opacity: .14; }
.g-heat { fill: none; stroke: #9AA0A9; stroke-width: 2.5; stroke-linecap: round; opacity: 0; animation: heat 3s ease-in infinite; }
.g-heat.h2 { animation-delay: 1s; }
.g-heat.h3 { animation-delay: 2s; }
.g-socket { fill: #FBFAF7; stroke: #1B1E24; stroke-width: 2; }
.g-small-body { fill: var(--accent); stroke: #1B1E24; stroke-width: 3; }
@keyframes blink { 50% { opacity: .25; } }
@keyframes flow { to { stroke-dashoffset: -48; } }
@keyframes heat { 0% { opacity: 0; transform: translateY(8px); } 30% { opacity: .7; } 100% { opacity: 0; transform: translateY(-26px); } }

.fcard {
  position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 2px;
  padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.88); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: var(--shadow-2); animation: float 7s ease-in-out infinite;
}
.fcard b { font-family: var(--font-head); font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.fcard span { font-size: .76rem; color: var(--muted); font-weight: 650; white-space: nowrap; }
.fcard--stock { flex-direction: row; align-items: center; gap: 10px; }
.fcard--stock b { font-family: var(--font-body); font-size: .92rem; font-weight: 800; letter-spacing: 0; }
.fcard-1 { top: 6%; left: 5%; }
.fcard-2 { top: 9%; right: 5%; animation-delay: -2.5s; }
.fcard-3 { top: 25%; left: 5%; animation-delay: -4.5s; }
@keyframes float { 50% { transform: translateY(-9px); } }

.picker { margin-top: clamp(32px, 4vw, 56px); }
.picker__title { font-weight: 700; font-size: .9rem; color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.picker__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pick { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .25s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); border-color: transparent; }
.pick__ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg); display: grid; place-items: center; flex: none; transition: background-color .3s; }
.pick__ic .ic { width: 32px; height: 32px; stroke-width: 1.5; }
.pick:hover .pick__ic { background: var(--accent); }
.pick b { display: block; font-weight: 750; line-height: 1.25; }
.pick small { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.pick > .ic { margin-left: auto; color: var(--muted); transition: transform .3s var(--ease), color .2s; }
.pick:hover > .ic { transform: translateX(3px); color: var(--ink); }

/* ---------- категорії ---------- */
.cats { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cat {
  grid-column: span 4; position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 230px;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.cat--big { grid-column: span 6; min-height: 330px; }
.cat--w6 { grid-column: span 6; }
.cat--w12 { grid-column: span 12; }
.cat:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.cat__ic { width: 60px; height: 60px; border-radius: 17px; background: var(--accent-softer); display: grid; place-items: center; transition: background-color .3s, transform .5s var(--ease); }
.cat__ic .ic { width: 38px; height: 38px; stroke-width: 1.4; }
.cat:hover .cat__ic { background: var(--accent); transform: rotate(-6deg); }
.cat h3 { font-size: 1.22rem; margin-top: 8px; }
.cat--big h3 { font-size: clamp(1.4rem, 2.2vw, 1.85rem); max-width: 14ch; }
.cat h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.cat p { color: var(--ink-2); font-size: .95rem; max-width: 34ch; }
.cat__count { margin-top: auto; padding-top: 8px; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.cat__go { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, color .3s, transform .45s var(--ease), border-color .3s; }
.cat:hover .cat__go { background: var(--ink); color: #fff; border-color: var(--ink); transform: rotate(-45deg); }
.cat__art { position: absolute; right: -4%; bottom: -10%; width: 50%; color: var(--ink); opacity: .1; pointer-events: none; transition: opacity .5s, transform .8s var(--ease); }
.cat__art .ic { width: 100%; height: auto; stroke-width: .7; }
.cat:hover .cat__art { opacity: .16; transform: translate(-6px, -6px); }
.cat__subs { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; max-width: 80%; }
.cat__subs a { padding: 6px 12px; border-radius: 999px; background: var(--bg); font-size: .82rem; font-weight: 650; transition: background-color .2s, color .2s; }
.cat__subs a:hover { background: var(--ink); color: #fff; }

/* ---------- картки товарів ---------- */
.grid-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; margin: -4px -2px -18px; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail-nav { display: flex; gap: 8px; }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
.pcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); border-color: transparent; }
.pcard__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #FFFFFF 10%, var(--bg-2)); display: grid; place-items: center; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 18px; transition: transform .7s var(--ease); }
.pcard:hover .pcard__media img { transform: scale(1.05); }
.ph { width: 46%; height: auto; color: var(--ink); opacity: .32; stroke-width: .9; transition: transform .7s var(--ease), opacity .4s; }
.pcard:hover .ph { transform: scale(1.06); opacity: .45; }
.pcard__badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.stock { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 750; line-height: 1.3; }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.stock--ok { background: var(--ok-soft); color: var(--ok); }
.stock--warn { background: var(--warn-soft); color: var(--warn); }
.stock--info { background: var(--info-soft); color: var(--info); }
.stock--off { background: var(--off-soft); color: var(--off); }
.stock--ok::before { animation: pulse-ok 2.2s infinite; box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); }
@keyframes pulse-ok { 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.badge { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; background: var(--ink); color: #fff; letter-spacing: .01em; }
.badge--hit, .badge--sale { background: var(--accent); color: var(--accent-ink); }
.pcard__body { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px 18px; flex: 1; }
.pcard__brand { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pcard__name { font-weight: 750; font-size: 1.02rem; line-height: 1.32; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__name a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.specs-mini { display: flex; flex-wrap: wrap; gap: 6px; }
.specs-mini span { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 8px; background: var(--bg); font-size: .78rem; font-weight: 650; color: var(--ink-2); }
.specs-mini .ic { width: 14px; height: 14px; }
.pcard__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font-family: var(--font-head); font-weight: 600; font-size: 1.28rem; letter-spacing: -.025em; line-height: 1.1; white-space: nowrap; }
.price small { font-family: var(--font-body); font-size: .82rem; font-weight: 700; color: var(--ink-2); letter-spacing: 0; margin-left: 2px; }
.price-old { font-size: .82rem; color: var(--muted); text-decoration: line-through; font-weight: 600; margin-bottom: 3px; }
.price--req { font-family: var(--font-body); font-size: .95rem; font-weight: 800; letter-spacing: 0; white-space: normal; }
.pcard__go { width: 42px; height: 42px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; transition: background-color .3s, transform .4s var(--ease); }
.pcard:hover .pcard__go { background: var(--accent); transform: rotate(-45deg); }

/* ---------- калькулятор ---------- */
.calc { display: grid; grid-template-columns: 1.25fr .95fr; gap: 16px; align-items: start; }
.calc__list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.appl { display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 16px; border-radius: 14px; transition: background-color .25s; min-width: 0; }
.appl:hover { background: var(--bg); }
.appl.is-on { background: var(--accent-softer); }
.appl__txt { min-width: 0; flex: 1; }
.appl__name { font-weight: 650; font-size: .93rem; line-height: 1.3; }
.appl__w { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.qty { display: flex; align-items: center; gap: 2px; background: var(--bg); border-radius: 999px; padding: 3px; flex: none; }
.appl.is-on .qty { background: var(--surface); }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--surface); display: grid; place-items: center; transition: background-color .2s, color .2s; }
.appl.is-on .qty button { background: var(--bg); }
.qty button:hover { background: var(--ink) !important; color: #fff; }
.qty button .ic { width: 15px; height: 15px; stroke-width: 2.2; }
.qty output { min-width: 22px; text-align: center; font-weight: 800; font-family: var(--font-mono); font-size: .9rem; }

.panel { position: sticky; top: calc(var(--header-h) + 16px); background: #17191E; color: #F1EFEA; border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-2); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 24px 24px; }
.panel::after { content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 35%, transparent), transparent); }
.panel__label { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: #9097A2; display: flex; align-items: center; gap: 8px; }
.panel__num { display: flex; align-items: baseline; gap: 10px; margin: 10px 0 18px; font-family: var(--font-head); color: var(--accent); }
.panel__num output { font-size: clamp(3.2rem, 6vw, 4.6rem); line-height: 1; font-weight: 600; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.panel__num span { font-size: 1.4rem; color: #F1EFEA; }
.meter { position: relative; height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.meter i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--accent), color-mix(in srgb, var(--accent) 55%, #fff)); transition: width .7s var(--ease); }
.meter__scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: .7rem; color: #7E8590; margin-top: 8px; }
.panel dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 22px 0; padding: 18px 0; border-block: 1px solid rgba(255,255,255,.1); font-size: .92rem; }
.panel dt { color: #A3A9B3; }
.panel dd { margin: 0; font-weight: 750; font-family: var(--font-mono); text-align: right; }
.panel__note { font-size: .86rem; color: #C9CDD3; display: flex; gap: 10px; margin-bottom: 18px; min-height: 1.4em; }
.panel__note .ic { color: var(--accent); margin-top: 2px; }
.panel .btn--accent { box-shadow: none; }

/* ---------- переваги ---------- */
.adv { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.adv__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.adv__aside h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 36px; }
.stat { padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat > span { display: block; color: var(--ink-2); font-size: .88rem; line-height: 1.4; margin-top: 4px; }
.adv__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.adv__item { display: grid; grid-template-columns: 60px 1fr; gap: 22px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.adv__ic { width: 60px; height: 60px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .3s, transform .5s var(--ease), border-color .3s; }
.adv__ic .ic { width: 26px; height: 26px; }
.adv__item:hover .adv__ic { background: var(--accent); border-color: var(--accent); transform: rotate(-8deg); }
.adv__item h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; letter-spacing: -.01em; margin-bottom: 6px; }
.adv__item p { color: var(--ink-2); }

/* ---------- кроки ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-2); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; font-family: var(--font-head); font-size: 3.4rem; font-weight: 600; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.5px var(--line-2); margin-bottom: 26px; transition: color .4s, -webkit-text-stroke-color .4s; }
.step:hover::before { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.12rem; letter-spacing: -.01em; margin-bottom: 8px; }
.step p { color: var(--ink-2); font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 50px; right: -13px; width: 10px; height: 10px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); z-index: 1; }

/* ---------- бренди ---------- */
.brands { padding: clamp(36px, 5vw, 64px) 0; border-block: 1px solid var(--line); }
.brands__title { text-align: center; font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; align-items: center; gap: clamp(36px, 5vw, 72px); width: max-content; animation: marquee 48s linear infinite; padding-right: clamp(36px, 5vw, 72px); }
.marquee:hover .marquee__track { animation-play-state: paused; }
.brand-word { font-family: var(--font-head); font-size: clamp(1.3rem, 2.4vw, 2rem); font-weight: 600; letter-spacing: -.03em; color: #B9B3A7; white-space: nowrap; transition: color .3s; }
.brand-word:hover { color: var(--ink); }
.brand-word i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.faq__aside h2 { font-size: clamp(1.75rem, 3.4vw, 2.85rem); margin-bottom: 18px; }
.faq__aside p { color: var(--ink-2); margin-bottom: 24px; }
.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; font-weight: 750; font-size: 1.08rem; line-height: 1.4; }
.qa summary::-webkit-details-marker { display: none; }
.pm { position: relative; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); flex: none; transition: background-color .3s, border-color .3s, transform .4s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 1.8px; background: currentColor; border-radius: 2px; transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .4s var(--ease); }
.qa summary:hover .pm { border-color: var(--ink); }
.qa[open] .pm { background: var(--accent); border-color: var(--accent); }
.qa[open] .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.qa__a { overflow: hidden; }
.qa__a p { padding: 0 64px 26px 0; color: var(--ink-2); }

/* ---------- CTA ---------- */
.cta { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: calc(var(--r) * 2); background: var(--accent); color: var(--accent-ink); overflow: hidden; isolation: isolate; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(color-mix(in srgb, var(--accent-ink) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent-ink) 7%, transparent) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: linear-gradient(110deg, #000, transparent 60%); mask-image: linear-gradient(110deg, #000, transparent 60%); }
.cta__bolt { position: absolute; z-index: -1; left: -60px; bottom: -120px; width: 420px; height: 420px; opacity: .08; }
.cta__bolt .ic { width: 100%; height: 100%; fill: currentColor; stroke: none; }
.cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.9rem); max-width: 16ch; }
.cta h2 + p { margin-top: 18px; max-width: 44ch; font-size: 1.08rem; opacity: .85; }
.cta__contacts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-weight: 750; }
.cta__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.form-card { background: var(--surface); color: var(--ink); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: 0 30px 60px -24px rgba(21,23,28,.35); }
.form-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin-bottom: 18px; }

/* ---------- форми ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .8rem; font-weight: 750; color: var(--ink-2); }
.input { width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg); font-size: 1rem; transition: border-color .2s, box-shadow .25s, background-color .2s; }
.input::placeholder { color: #A3A7AE; }
.input:hover { border-color: #BDB6A8; }
.input:focus { outline: none; border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 32%, transparent); }
textarea.input { height: auto; min-height: 92px; padding: 14px 16px; resize: vertical; line-height: 1.5; }
.form-note { font-size: .76rem; color: var(--muted); margin-top: 10px; line-height: 1.45; }
.form-note a { text-decoration: underline; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.chosen { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg); margin-bottom: 14px; font-weight: 700; font-size: .92rem; }
.chosen .ic { width: 22px; height: 22px; color: var(--ink-2); }
.chosen:empty { display: none; }

/* ---------- футер ---------- */
.ftr { margin-top: clamp(40px, 5vw, 72px); background: #14161A; color: #B8BCC4; border-radius: calc(var(--r) * 2) calc(var(--r) * 2) 0 0; padding: clamp(48px, 6vw, 80px) 0 28px; overflow: hidden; position: relative; }
.ftr a { transition: color .2s; }
.ftr a:hover { color: #fff; }
.ftr__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 36px; position: relative; z-index: 1; }
.ftr h4 { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #737983; font-weight: 500; margin-bottom: 18px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: .94rem; }
.ftr .logo__name { color: #fff; }
.ftr .logo__mark { background: var(--accent); color: var(--accent-ink); }
.ftr__about { margin-top: 18px; max-width: 34ch; font-size: .94rem; line-height: 1.6; }
.ftr__phone { display: block; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; color: #fff; letter-spacing: -.02em; }
.ftr__phone + small { display: block; font-size: .8rem; color: #7E848E; margin-bottom: 12px; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 22px; }
.socials a { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); transition: background-color .25s, color .25s, transform .35s var(--ease); }
.socials a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-2px); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .92rem; }
.hours dt { color: #7E848E; }
.hours dd { margin: 0; color: #E3E5E8; font-weight: 600; }
.ftr__big { font-family: var(--font-head); font-weight: 700; font-size: clamp(2.6rem, 10vw, 8.6rem); line-height: .85; letter-spacing: -.05em; color: rgba(255,255,255,.035); margin-top: clamp(32px, 5vw, 64px); white-space: nowrap; user-select: none; }
.ftr__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .84rem; color: #7E848E; position: relative; z-index: 1; margin-top: -1.2rem; }

/* ---------- заголовок сторінки, крихти ---------- */
.page-head { padding: clamp(20px, 3vw, 40px) 0 clamp(20px, 3vw, 32px); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 18px; font-weight: 600; }
.crumbs a:hover { color: var(--ink); }
.crumbs .ic { width: 14px; height: 14px; }
.page-head h1 { font-size: clamp(1.9rem, 4.2vw, 3.3rem); max-width: 22ch; }
.page-head__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.page-head__desc { color: var(--ink-2); max-width: 60ch; margin-top: 14px; font-size: 1.05rem; }
.count-pill { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); white-space: nowrap; }
.subcats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.subcat { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 650; font-size: .92rem; transition: border-color .2s, background-color .2s, color .2s; }
.subcat__ic { width: 34px; height: 34px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; transition: background-color .25s; }
.subcat__ic .ic { width: 22px; height: 22px; stroke-width: 1.5; }
.subcat:hover { border-color: var(--ink); }
.subcat:hover .subcat__ic, .subcat.is-on .subcat__ic { background: var(--accent); }
.subcat.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.subcat small { color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }
.subcat.is-on small { color: #9EA3AC; }

/* ---------- каталог ---------- */
.catalog { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; scrollbar-width: thin; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 20px 20px; }
.filters__head { display: none; }
.fgroup { padding: 16px 0; border-bottom: 1px solid var(--line); }
.fgroup:last-of-type { border-bottom: 0; }
.fgroup h4 { font-family: var(--font-body); font-size: .84rem; font-weight: 800; letter-spacing: 0; margin-bottom: 12px; }
.check { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: .93rem; font-weight: 550; }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; flex: none; transition: background-color .2s, border-color .2s; background: var(--surface); }
.check input::after { content: ""; width: 10px; height: 5.5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .25s var(--ease); }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check:hover input { border-color: var(--ink); }
.check small { margin-left: auto; color: var(--muted); font-family: var(--font-mono); font-size: .74rem; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: .84rem; font-weight: 650; background: var(--surface); transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range .input { height: 42px; border-radius: 10px; font-size: .9rem; padding: 0 12px; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; cursor: pointer; font-weight: 650; font-size: .93rem; padding: 4px 0; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; border-radius: 99px; background: var(--line-2); position: relative; margin: 0; flex: none; transition: background-color .25s; cursor: pointer; }
.switch input::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease); }
.switch input:checked { background: var(--ok); }
.switch input:checked::after { transform: translateX(18px); }
.filters__actions { display: grid; gap: 8px; margin-top: 16px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 220px; max-width: 420px; }
.search .ic { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-left: 46px; height: 46px; border-radius: 999px; background: var(--surface); }
.select { appearance: none; -webkit-appearance: none; height: 46px; padding: 0 42px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2315171C' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 15px; font-weight: 650; font-size: .92rem; cursor: pointer; }
.select:focus { outline: none; border-color: var(--ink); }
.toolbar__right { display: flex; gap: 8px; align-items: center; }
.filter-btn { display: none; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.active-filters a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: .82rem; font-weight: 650; }
.active-filters a .ic { width: 14px; height: 14px; }
.active-filters a.reset { background: transparent; color: var(--ink); border: 1px solid var(--line-2); padding-right: 12px; }
.empty { text-align: center; padding: clamp(40px, 8vw, 96px) 24px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty .ic { width: 64px; height: 64px; margin: 0 auto 16px; color: var(--muted); stroke-width: 1.2; }
.empty h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.25rem; letter-spacing: 0; margin-bottom: 8px; }
.empty p { color: var(--ink-2); margin-bottom: 20px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 46px; height: 46px; padding: 0 10px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--surface); font-weight: 750; transition: border-color .2s; }
.pager a:hover { border-color: var(--ink); }
.pager .is-cur { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager .gap { border: 0; background: none; min-width: 20px; }
.drawer-bg { display: none; }

/* ---------- сторінка товару ---------- */
.prod { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery__main { position: relative; aspect-ratio: 1 / .86; background: linear-gradient(160deg, #FFFFFF 10%, var(--bg-2)); border: 1px solid var(--line); border-radius: var(--r-lg); display: grid; place-items: center; overflow: hidden; }
.gallery__main::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(21,23,28,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(21,23,28,.04) 1px, transparent 1px); background-size: 32px 32px; -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.gallery__main img { position: relative; width: 100%; height: 100%; object-fit: contain; padding: clamp(20px, 4vw, 44px); transition: opacity .35s, transform .6s var(--ease); }
.gallery__main img.is-fading { opacity: 0; transform: scale(.98); }
.gallery__main .ph { width: 52%; opacity: .3; position: relative; }
.gallery__badges { position: absolute; top: 16px; left: 16px; display: flex; gap: 6px; z-index: 1; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.thumbs button { width: 84px; height: 84px; flex: none; border-radius: 14px; border: 2px solid transparent; background: var(--surface); padding: 6px; transition: border-color .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; }
.thumbs button.is-on { border-color: var(--ink); }
.prod__meta { display: flex; gap: 8px 16px; align-items: center; flex-wrap: wrap; font-size: .85rem; color: var(--muted); font-weight: 600; }
.prod__meta .brand-chip { padding: 5px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 750; }
.prod h1 { font-size: clamp(1.7rem, 3.1vw, 2.55rem); margin: 16px 0 14px; letter-spacing: -.03em; }
.prod__short { color: var(--ink-2); font-size: 1.05rem; }
.stock-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; font-size: .9rem; color: var(--ink-2); font-weight: 600; }
.stock-line__term { display: inline-flex; align-items: center; gap: 6px; }
.stock-line__term .ic { width: 18px; height: 18px; color: var(--ink-2); }
.install-note { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; margin-top: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--accent-softer); border: 1px solid color-mix(in oklab, var(--accent) 30%, var(--line)); }
.install-note__ic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; }
.install-note b { display: block; font-weight: 800; }
.install-note p { color: var(--ink-2); font-size: .9rem; line-height: 1.5; }
@media (max-width: 720px) { .install-note { grid-template-columns: auto 1fr; } .install-note .btn { grid-column: 1 / -1; } }
.keyspecs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0; }
.ks { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.ks .ic { width: 22px; height: 22px; color: var(--ink-2); }
.ks small { display: block; font-size: .74rem; color: var(--muted); font-weight: 650; line-height: 1.3; }
.ks b { display: block; font-size: 1rem; line-height: 1.3; }
.buybox { padding: clamp(20px, 2.5vw, 28px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1); }
.buybox .price { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.buybox__note { font-size: .82rem; color: var(--muted); margin-top: 6px; font-weight: 600; }
.buybox__actions { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 20px; }
.buybox__msgs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.buybox__msgs a { flex: 1; min-width: 120px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: 999px; background: var(--bg); font-weight: 700; font-size: .88rem; transition: background-color .2s; }
.buybox__msgs a:hover { background: var(--bg-2); }
.assure { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.assure div { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: .82rem; font-weight: 700; color: var(--ink-2); line-height: 1.3; }
.assure .ic { color: var(--ink); }
.admin-edit { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; }
.admin-edit .ic { width: 14px; height: 14px; }

.tabs { margin-top: clamp(48px, 7vw, 96px); }
.tabs__nav { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs__nav button { position: relative; padding: 16px 18px; background: none; border: 0; font-weight: 750; font-size: 1rem; color: var(--muted); white-space: nowrap; transition: color .2s; }
.tabs__nav button:hover { color: var(--ink); }
.tabs__nav button.is-on { color: var(--ink); }
.tabs__nav button::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transition: transform .35s var(--ease); }
.tabs__nav button.is-on::after { transform: scaleX(1); }
.tabs__panel { padding: 32px 0 0; max-width: 880px; animation: fade-up .45s var(--ease); }
.tabs__panel[hidden] { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { padding: 13px 0; border-bottom: 1px dashed var(--line-2); text-align: left; font-size: .97rem; vertical-align: top; }
.spec-table th { color: var(--ink-2); font-weight: 550; width: 48%; padding-right: 20px; }
.spec-table td { font-weight: 750; }
.spec-group { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 28px 0 4px; }
.spec-group:first-child { margin-top: 0; }

/* ---------- текстовий контент ---------- */
.prose { font-size: 1.04rem; color: var(--ink-2); line-height: 1.75; max-width: 72ch; }
.prose > * + * { margin-top: 1em; }
.prose h3 { font-family: var(--font-head); font-size: clamp(1.2rem, 2vw, 1.5rem); color: var(--ink); margin-top: 1.8em; margin-bottom: -.2em; line-height: 1.2; }
.prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .4em 0; padding-left: .2em; }
.prose li::marker { color: var(--accent); font-weight: 800; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose strong { color: var(--ink); }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(28px, 5vw, 72px); align-items: start; }
.aside-card { position: sticky; top: calc(var(--header-h) + 16px); padding: 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.aside-card h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.1rem; letter-spacing: 0; margin-bottom: 8px; }
.aside-card p { color: var(--ink-2); font-size: .94rem; margin-bottom: 18px; }
.aside-card .btn + .btn { margin-top: 8px; }

/* ---------- про компанію ---------- */
.about-lead { font-family: var(--font-head); font-weight: 500; font-size: clamp(1.4rem, 2.8vw, 2.3rem); line-height: 1.22; letter-spacing: -.025em; max-width: 30ch; margin-top: 22px; }
.about-photo { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); margin-top: clamp(28px, 4vw, 48px); aspect-ratio: 21 / 9; background: var(--bg-2); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px dashed var(--line-2); font-size: .94rem; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 750; text-align: right; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value { padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.value__n { font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.value h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.2rem; letter-spacing: -.01em; margin: 20px 0 8px; }
.value p { color: var(--ink-2); }
.stats--row { grid-template-columns: repeat(4, 1fr); margin-top: 0; }

/* ---------- контакти ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ccard { padding: 26px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ccard__ic { width: 48px; height: 48px; border-radius: 14px; background: var(--accent-softer); display: grid; place-items: center; margin-bottom: 14px; }
.ccard h3 { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.ccard a, .ccard b { font-weight: 800; font-size: 1.1rem; letter-spacing: -.01em; }
.ccard a:hover { color: var(--ink-2); }
.ccard small { color: var(--muted); font-size: .86rem; font-weight: 600; }
.msgs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.map { margin-top: 16px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 21 / 8; background: var(--bg-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.03); }
.contact-form { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact-form h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.contact-form p { color: var(--ink-2); margin-top: 14px; }

/* ---------- відгуки ---------- */
.stars { display: inline-flex; gap: 1px; vertical-align: middle; flex: none; }
.stars .ic { width: 1.05em; height: 1.05em; stroke-width: 1.5; }
.star-f { color: var(--accent); fill: currentColor; }
.star-h { color: var(--accent); }
.star-e { color: var(--line-2); }
.rv-summary { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 4vw, 56px); align-items: center; padding: clamp(22px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.rv-score b { display: block; font-family: var(--font-head); font-size: clamp(3rem, 6vw, 4.4rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; }
.rv-score .stars { font-size: 1.35rem; margin: 12px 0 8px; }
.rv-score small { display: block; color: var(--muted); font-weight: 650; font-size: .85rem; max-width: 22ch; }
.rv-dist { display: grid; gap: 4px; max-width: 480px; width: 100%; justify-self: center; }
.rv-dist a { display: grid; grid-template-columns: 46px 1fr 34px; gap: 12px; align-items: center; padding: 5px 8px; border-radius: 10px; font-size: .88rem; font-weight: 750; color: var(--ink-2); transition: background-color .2s; }
.rv-dist a:hover, .rv-dist a.is-on { background: var(--bg); color: var(--ink); }
.rv-dist a > span:first-child { display: inline-flex; align-items: center; gap: 5px; }
.rv-dist a > span:first-child .ic { width: 14px; height: 14px; color: var(--accent); fill: currentColor; }
.rv-dist a > span:last-child { text-align: right; font-family: var(--font-mono); font-size: .78rem; color: var(--muted); }
.rv-dist progress { width: 100%; height: 8px; appearance: none; -webkit-appearance: none; border: 0; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.rv-dist progress::-webkit-progress-bar { background: var(--bg-2); border-radius: 99px; }
.rv-dist progress::-webkit-progress-value { background: var(--accent); border-radius: 99px; }
.rv-dist progress::-moz-progress-bar { background: var(--accent); border-radius: 99px; }
.rv-cta { display: grid; gap: 12px; justify-items: start; max-width: 250px; }
.rv-cta p { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.rv-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; }
.rv-grid { columns: 3 300px; column-gap: 16px; }
.rv-grid--2 { columns: 2 300px; }
.rv { break-inside: avoid; display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); transition: box-shadow .4s var(--ease), border-color .3s; }
.rv:hover { box-shadow: var(--shadow-1); border-color: var(--line-2); }
.rv__head { display: flex; align-items: center; gap: 12px; }
.rv__ava { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; }
.ava-0 { background: var(--accent-soft); color: #6B4700; }
.ava-1 { background: #E3EDFF; color: #1D4FA8; }
.ava-2 { background: #E2F4E9; color: #17703F; }
.ava-3 { background: #F4E7FA; color: #7A2E91; }
.ava-4 { background: #FFE8E1; color: #A23A1B; }
.ava-5 { background: #ECEAE4; color: var(--ink); }
.rv__who { min-width: 0; flex: 1; }
.rv__who b { display: block; font-weight: 800; line-height: 1.25; }
.rv__who small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.rv__head .stars { font-size: .95rem; align-self: flex-start; margin-top: 4px; }
.rv__product { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; padding: 5px 11px; border-radius: 999px; background: var(--bg); font-size: .8rem; font-weight: 700; transition: background-color .2s; }
.rv__product .ic { width: 14px; height: 14px; color: var(--accent); }
a.rv__product:hover { background: var(--accent-soft); }
.rv__text { color: var(--ink-2); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.65; }
.rv__reply { padding: 12px 14px; border-radius: 12px; background: var(--bg); border-left: 3px solid var(--accent); font-size: .9rem; }
.rv__reply b { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; font-family: var(--font-mono); font-size: .72rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.rv__reply b .ic { width: 15px; height: 15px; }
.rv__reply p { color: var(--ink-2); white-space: pre-line; }
.rail--reviews { grid-auto-columns: calc((100% - 32px) / 3); }
.rail--reviews .rv { margin: 0; height: 100%; }
.rail--reviews .rv__reply { display: none; }
.rail--reviews .rv__text { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.rv-mini { flex-direction: row; align-items: center; gap: 24px; flex-wrap: wrap; }
.rv-mini__score { display: flex; align-items: center; gap: 12px; }
.rv-mini__score b { font-family: var(--font-head); font-size: 2.4rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.rv-mini__score small { display: block; color: var(--muted); font-size: .8rem; font-weight: 650; margin-top: 3px; }
.rv-mini__score .stars { font-size: 1.05rem; }
.rv-mini .rail-nav { align-items: center; gap: 8px; }
.rv-mini .link-go { margin-left: 8px; }
.rating-line { display: inline-flex; align-items: center; gap: 8px; margin-top: 2px; margin-bottom: 4px; font-size: .92rem; color: var(--ink-2); font-weight: 650; }
.rating-line b { color: var(--ink); font-weight: 800; }
.rating-line:hover span { color: var(--ink); text-decoration: underline; }
.tab-count { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 99px; background: var(--bg-2); font-size: .74rem; font-weight: 800; color: var(--ink-2); vertical-align: 1px; }
.tabs__nav button.is-on .tab-count { background: var(--accent); color: var(--accent-ink); }
.tabs__panel--wide { max-width: none; }
.prod-rv-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.muted-text { color: var(--ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.rate { border: 0; padding: 0; margin: 0 0 14px; }
.rate legend { font-size: .8rem; font-weight: 750; color: var(--ink-2); padding: 0; margin-bottom: 6px; }
.rate__stars { display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate__stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate__stars label { cursor: pointer; color: var(--line-2); padding: 2px; border-radius: 8px; transition: color .15s, transform .2s var(--ease); }
.rate__stars label .ic { width: 34px; height: 34px; stroke-width: 1.4; transition: fill .15s; }
.rate__stars input:checked ~ label { color: var(--accent); }
.rate__stars input:checked ~ label .ic { fill: currentColor; }
.rate__stars:hover input:checked ~ label { color: var(--line-2); }
.rate__stars:hover input:checked ~ label .ic { fill: none; }
.rate__stars label:hover, .rate__stars label:hover ~ label { color: var(--accent) !important; }
.rate__stars label:hover .ic, .rate__stars label:hover ~ label .ic { fill: currentColor !important; }
.rate__stars label:active { transform: scale(.9); }
.rate__stars input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 1px; }
dialog.modal { overflow-y: auto; }

/* ---------- модальне вікно та тости ---------- */
dialog.modal { border: 0; padding: 0; border-radius: var(--r-lg); width: min(480px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px -20px rgba(0,0,0,.35); opacity: 0; transform: translateY(18px) scale(.98); transition: opacity .3s, transform .4s var(--ease), overlay .4s allow-discrete, display .4s allow-discrete; }
dialog.modal[open] { opacity: 1; transform: none; }
@starting-style { dialog.modal[open] { opacity: 0; transform: translateY(18px) scale(.98); } }
dialog.modal::backdrop { background: rgba(21,23,28,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s, overlay .3s allow-discrete, display .3s allow-discrete; }
dialog.modal[open]::backdrop { opacity: 1; }
@starting-style { dialog.modal[open]::backdrop { opacity: 0; } }
.modal__in { padding: clamp(22px, 4vw, 32px); }
.modal__in h3 { font-size: 1.45rem; margin-bottom: 6px; padding-right: 40px; }
.modal__in > p { color: var(--ink-2); margin-bottom: 20px; font-size: .95rem; }
.modal__x { position: absolute; top: 16px; right: 16px; }
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 20px; transform: translateX(-50%); display: grid; gap: 8px; width: min(440px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); font-weight: 650; font-size: .94rem; pointer-events: auto; animation: toast-in .5s var(--ease); }
.toast .ic { color: #6EE7A1; margin-top: 1px; }
.toast--err { background: var(--bad); }
.toast--err .ic { color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(10px); transition: opacity .3s, transform .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ---------- службові сторінки ---------- */
.state { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.state__code { font-family: var(--font-mono); font-size: .85rem; color: var(--muted); letter-spacing: .1em; }
.state h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin: 14px 0; }
.state p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 28px; font-size: 1.05rem; }
.state__actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.bulb { width: 120px; height: 140px; margin: 0 auto 8px; }
.bulb .glass { fill: var(--surface); stroke: var(--ink); stroke-width: 3; }
.bulb .glow { fill: var(--accent); opacity: .0; animation: flicker 4s infinite; }
.bulb .wire { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 0; } 20%, 24%, 55% { opacity: .9; } }

/* ---------- анімації появи ---------- */
.js.anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
.js.anim [data-reveal].is-in { opacity: 1; transform: none; }
.js.anim .hero [data-reveal] { transition-duration: 1.1s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js.anim [data-reveal] { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
}

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav, .hdr__phone { display: none; }
  .burger { display: inline-grid; }
  .rail { grid-auto-columns: calc((100% - 32px) / 3); }
  .rail--reviews { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 1520px) {
  .logo__tag { display: none; }
  .hdr__in { gap: 16px; }
}
@media (max-width: 1360px) {
  .hdr__right .hdr__phone small { display: none; }
  .nav__link { padding: 10px 11px; }
  .logo__tag { display: none; }
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .stage { max-width: 640px; width: 100%; margin-inline: auto; }
  .picker__grid { grid-template-columns: repeat(2, 1fr); }
  .cat, .cat--big { grid-column: span 6; }
  .calc { grid-template-columns: 1fr; }
  .panel { position: sticky; top: auto; bottom: 12px; z-index: 5; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 16px; padding: 16px 18px; }
  .panel__label { grid-column: 1 / -1; }
  .panel__num { margin: 0; }
  .panel__num output { font-size: 2.5rem; }
  .panel .meter, .panel .meter__scale, .panel dl { display: none; }
  .panel__note { grid-column: 1 / -1; margin: 0; font-size: .8rem; min-height: 0; }
  .panel .btn { grid-column: 2; grid-row: 2; width: auto; --h: 46px; padding: 0 18px; }
  .adv, .faq { grid-template-columns: 1fr; }
  .adv__aside, .faq__aside { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .cta { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .prod { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .catalog { grid-template-columns: 1fr; }
  .filter-btn { display: inline-flex; }
  .filters {
    position: fixed; z-index: 90; top: 0; left: 0; bottom: 0; width: min(380px, 88vw); max-height: none; border-radius: 0 var(--r-lg) var(--r-lg) 0;
    transform: translateX(-102%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; padding-top: 0;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
  .filters__head { display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: var(--surface); padding: 16px 0; border-bottom: 1px solid var(--line); z-index: 1; }
  .filters__head b { font-family: var(--font-head); font-size: 1.2rem; }
  .drawer-bg { display: block; position: fixed; inset: 0; z-index: 85; background: rgba(21,23,28,.4); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
  .drawer-bg.is-on { opacity: 1; visibility: visible; transition: opacity .3s; }
  .article { grid-template-columns: 1fr; }
  .aside-card { position: static; }
  .values { grid-template-columns: 1fr; }
  .stats--row { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .contact-form { grid-template-columns: 1fr; }
  .map { aspect-ratio: 4 / 3; }
  .rv-summary { grid-template-columns: auto minmax(0, 1fr); }
  .rv-cta { grid-column: 1 / -1; max-width: none; grid-auto-flow: column; justify-content: start; align-items: center; }
}
@media (max-width: 720px) {
  :root { --header-h: 66px; }
  .hdr__cta { display: none; }
  .logo__tag { display: none; }
  .cat, .cat--big { grid-column: span 12; min-height: 0; }
  .cat--big { min-height: 260px; }
  .picker__grid { grid-template-columns: 1fr; }
  .calc__list { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 78%; }
  .steps { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .grid-products { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .grid-products .pcard__body { padding: 12px 12px 14px; }
  .grid-products .pcard__name { font-size: .92rem; }
  .grid-products .price { font-size: 1.05rem; }
  .grid-products .pcard__go { display: none; }
  .grid-products .specs-mini span:nth-child(n+3) { display: none; }
  .keyspecs { grid-template-columns: 1fr 1fr; }
  .assure { grid-template-columns: 1fr; }
  .buybox__actions { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .qa__a p { padding-right: 0; }
  .fcard-3 { display: none; }
  .fcard { padding: 9px 12px; border-radius: 12px; }
  .fcard-1 { top: 4%; left: 4%; }
  .fcard-2 { top: 19%; right: 4%; }
  .subcats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .subcats::-webkit-scrollbar { display: none; }
  .subcat { flex: none; }
  .toolbar__right { flex: 1; }
  .toolbar__right .select { width: 100%; }
  .rv-summary { grid-template-columns: 1fr; }
  .rv-dist { justify-self: stretch; max-width: none; }
  .rv-cta { grid-auto-flow: row; }
  .rail--reviews { grid-auto-columns: 86%; }
  .rv-mini .link-go { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .rv { padding: 18px; }
  .toolbar .search { max-width: none; order: 2; flex-basis: 100%; }
  .sec-head h2 { max-width: none; }
}
@media (max-width: 400px) {
  .grid-products { grid-template-columns: 1fr; }
  .grid-products .pcard__go { display: grid; }
  .hero__actions .btn { width: 100%; }
}

/* ==========================================================================
   Переливаючі кольори: живий фон, градієнтні акценти, підсвітка карток
   Вмикається класами .fx / .fx-glow на <html> і блоком .aurora (налаштування «Оформление»)
   ========================================================================== */
:root {
  --g1: #FFB020; --g2: #FF6A4D; --g3: #F2559B; --g4: #7A62FF;
  --fx-speed: 12s; --fx-bg: .45;
  --grad: linear-gradient(100deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g3), var(--g2), var(--g1));
  --grad-warm: linear-gradient(100deg, var(--g1), var(--g2), color-mix(in oklab, var(--g2) 50%, var(--g3)), var(--g2), var(--g1));
}
@keyframes fx-shift { from { background-position: 0% 50%; } to { background-position: 300% 50%; } }
@keyframes fx-spin { to { transform: rotate(1turn); } }
@keyframes fx-drift-a { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(14vw, 10vh, 0) scale(1.18); } 100% { transform: translate3d(-6vw, 18vh, 0) scale(.92); } }
@keyframes fx-drift-b { 0% { transform: translate3d(0, 0, 0) scale(1.1); } 50% { transform: translate3d(-16vw, 12vh, 0) scale(.9); } 100% { transform: translate3d(8vw, -8vh, 0) scale(1.2); } }
@keyframes fx-drift-c { 0% { transform: translate3d(0, 0, 0) scale(.95); } 50% { transform: translate3d(10vw, -14vh, 0) scale(1.15); } 100% { transform: translate3d(-12vw, -4vh, 0) scale(1); } }

/* ---------- живий фон ---------- */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; opacity: var(--fx-bg); }
.aurora i { position: absolute; width: 62vmax; height: 62vmax; border-radius: 50%; will-change: transform;
  background: radial-gradient(closest-side, var(--c), transparent 72%); }
.aurora i:nth-child(1) { --c: var(--g1); top: -24vmax; left: -14vmax; animation: fx-drift-a calc(var(--fx-speed) * 3.2) ease-in-out infinite alternate; }
.aurora i:nth-child(2) { --c: var(--g3); top: -18vmax; right: -22vmax; width: 54vmax; height: 54vmax; animation: fx-drift-b calc(var(--fx-speed) * 3.8) ease-in-out infinite alternate; }
.aurora i:nth-child(3) { --c: var(--g4); bottom: -30vmax; left: 8vmax; width: 58vmax; height: 58vmax; opacity: .75; animation: fx-drift-c calc(var(--fx-speed) * 4.4) ease-in-out infinite alternate; }
.aurora i:nth-child(4) { --c: var(--g2); bottom: -22vmax; right: -12vmax; width: 50vmax; height: 50vmax; animation: fx-drift-a calc(var(--fx-speed) * 3.5) ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(5) { --c: color-mix(in oklab, var(--g1) 60%, #fff); top: 30vh; left: 30vw; width: 40vmax; height: 40vmax; animation: fx-drift-b calc(var(--fx-speed) * 2.8) ease-in-out infinite alternate-reverse; }
/* легка «плівка», щоб текст лишався контрастним */
.aurora::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, color-mix(in srgb, var(--bg) 55%, transparent)); }
.hdr.is-scrolled { background: color-mix(in srgb, var(--bg) 72%, transparent); }

/* ---------- прогрес прокрутки ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; transform-origin: 0 50%; transform: scaleX(0);
  background: var(--grad); background-size: 300% 100%; animation: fx-shift var(--fx-speed) linear infinite; pointer-events: none; }

/* ---------- градієнтні акценти ---------- */
.fx .topbar { background: #15171C linear-gradient(100deg, color-mix(in srgb, var(--g1) 22%, #15171C), color-mix(in srgb, var(--g3) 22%, #15171C), color-mix(in srgb, var(--g4) 26%, #15171C), color-mix(in srgb, var(--g2) 22%, #15171C), color-mix(in srgb, var(--g1) 22%, #15171C)); background-size: 300% 100%; animation: fx-shift calc(var(--fx-speed) * 1.5) linear infinite; }
.fx .topbar .ic { color: var(--g1); }
.fx .logo__mark { background: var(--grad); background-size: 300% 100%; color: #15171C; animation: fx-shift var(--fx-speed) linear infinite; box-shadow: 0 6px 18px -8px var(--g3); }
.fx .ftr .logo__mark { color: #15171C; }
.fx .hero h1 em::after, .fx .hl em::after { background: var(--grad); background-size: 300% 100%; animation: mark 1.1s .35s var(--ease) both, fx-shift var(--fx-speed) linear infinite; opacity: .9; }
.fx .btn--accent { background: var(--grad-warm); background-size: 300% 100%; color: #15171C; animation: fx-shift var(--fx-speed) linear infinite;
  box-shadow: 0 10px 28px -12px var(--g2), 0 4px 14px -8px var(--g3); }
.fx .btn--accent:hover { box-shadow: 0 16px 34px -12px var(--g2), 0 8px 22px -10px var(--g3); }
.fx .eyebrow::before, .fx .scroll-progress { background-image: var(--grad); background-size: 300% 100%; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .link-go { border-bottom: 0; padding-bottom: 4px; background: var(--grad) 0 100% / 300% 2px no-repeat; animation: fx-underline var(--fx-speed) linear infinite; }
@keyframes fx-underline { from { background-position: 0% 100%; } to { background-position: 300% 100%; } }
.fx .kicker { border-color: transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--grad) border-box; background-size: auto, 300% 100%; animation: fx-shift-border var(--fx-speed) linear infinite; }
@keyframes fx-shift-border { from { background-position: 0 0, 0% 50%; } to { background-position: 0 0, 300% 50%; } }

.fx .stat b, .fx .rv-score b, .fx .rv-mini__score b, .fx .step:hover::before {
  background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-text-stroke: 0; animation: fx-shift calc(var(--fx-speed) * 1.2) linear infinite; }
.fx .panel__num output { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .meter i { background: var(--grad); background-size: 300% 100%; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .ftr__big { background: var(--grad); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .16; animation: fx-shift calc(var(--fx-speed) * 2) linear infinite; }
.fx .star-f, .fx .star-h { color: var(--g1); }

/* живе сяйво в «сцені» героя, панелі калькулятора та футері */
.fx .stage::after { content: ""; position: absolute; inset: -35%; z-index: -2; pointer-events: none; opacity: .32; filter: blur(50px);
  background: conic-gradient(from 0deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1)); animation: fx-spin calc(var(--fx-speed) * 3) linear infinite; }
.fx .panel::after { width: 340px; height: 340px; background: conic-gradient(from 0deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g1)); filter: blur(60px); opacity: .45; animation: fx-spin calc(var(--fx-speed) * 2) linear infinite; }
.fx .ftr::before { content: ""; position: absolute; width: 70vmax; height: 70vmax; left: 50%; top: -40vmax; translate: -50% 0; z-index: 0; pointer-events: none; opacity: .22; filter: blur(80px);
  background: conic-gradient(from 90deg, var(--g4), var(--g3), var(--g2), var(--g1), var(--g4)); animation: fx-spin calc(var(--fx-speed) * 4) linear infinite; }
.fx .ftr > .wrap { position: relative; z-index: 1; }

/* блок із формою — переливається повністю */
.fx .cta { background: linear-gradient(115deg, var(--g1), var(--g2), var(--g3), var(--g4), var(--g3), var(--g2), var(--g1)); background-size: 300% 300%; color: #15171C;
  animation: fx-shift calc(var(--fx-speed) * 1.6) linear infinite; }
.fx .cta__contacts a, .fx .cta h2 { color: #15171C; }

/* ---------- картки: переливна рамка + підсвітка за курсором ---------- */
.fx :is(.cat, .pcard, .rv, .step, .pick, .ccard, .value, .stat, .buybox, .rv-summary, .form-card, .filters, .install-note) {
  --mx: 50%; --my: 50%;
  background-image: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--g1) 0%, transparent), transparent 60%),
                    linear-gradient(var(--surface), var(--surface)), var(--grad);
  background-origin: padding-box, padding-box, border-box; background-clip: padding-box, padding-box, border-box;
  background-size: auto, auto, 300% 100%; background-color: transparent;
}
.fx .install-note { background-image: radial-gradient(420px circle at var(--mx) var(--my), transparent, transparent), linear-gradient(var(--accent-softer), var(--accent-softer)), var(--grad); }
.fx :is(.cat, .pcard, .rv, .step, .pick, .ccard, .value, .stat):hover {
  border-color: transparent;
  background-image: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--g1) 16%, transparent), color-mix(in srgb, var(--g3) 6%, transparent) 40%, transparent 65%),
                    linear-gradient(var(--surface), var(--surface)), var(--grad);
  animation: fx-shift-border3 var(--fx-speed) linear infinite;
  box-shadow: 0 2px 6px rgba(21,23,28,.05), 0 24px 50px -16px color-mix(in srgb, var(--g3) 45%, transparent);
}
.fx-glow.fx :is(.cat, .pcard, .rv, .step, .pick, .ccard, .value, .stat):hover {
  background-image: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--g1) 18%, transparent), color-mix(in srgb, var(--g3) 8%, transparent) 40%, transparent 65%),
                    linear-gradient(var(--surface), var(--surface)), var(--grad);
}
@keyframes fx-shift-border3 { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 300% 50%; } }
.fx :is(.cat, .pcard):hover .cat__ic, .fx .pick:hover .pick__ic, .fx .adv__item:hover .adv__ic {
  background: var(--grad); background-size: 300% 100%; border-color: transparent; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .pcard:hover .pcard__go, .fx .cat:hover .cat__go { background: #15171C; color: #fff; }
.fx .subcat:hover .subcat__ic, .fx .subcat.is-on .subcat__ic { background: var(--grad); background-size: 300% 100%; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .qa[open] .pm { background: var(--grad); background-size: 300% 100%; border-color: transparent; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .stock--ok::before { background: linear-gradient(135deg, #2FD07A, var(--ok)); }
.fx .badge--hit, .fx .badge--sale { background: var(--grad-warm); background-size: 300% 100%; animation: fx-shift var(--fx-speed) linear infinite; }
.fx .rv-dist progress::-webkit-progress-value { background: var(--grad); background-size: 300% 100%; }
.fx .rv-dist progress::-moz-progress-bar { background: var(--grad); }
.fx ::selection { background: var(--g3); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .aurora i, .scroll-progress, .fx .stage::after, .fx .panel::after, .fx .ftr::before { animation: none !important; }
}
@media (max-width: 720px) {
  .aurora i { width: 90vmax; height: 90vmax; }
  .fx .stage::after { filter: blur(36px); }
}