:root {
  --bg: #0b0f1a;
  --bg-2: #121829;
  --ink: #0f1422;
  --paper: #ffffff;
  --tint: #f4f5f8;
  --line: #e3e6ee;
  --muted: #6b7286;
  --accent: #ff4401;
  --accent-2: #ff6a2e;
  --radius: 14px;
  --shadow: 0 20px 50px -20px rgba(11, 15, 26, .35);
  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: .01em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); font-weight: 400; }
.accent { color: var(--accent); }

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(820px, 100% - 40px); }

.eyebrow { color: var(--accent); font-weight: 800; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.eyebrow::before { content: ""; width: 26px; height: 6px; background: var(--accent); transform: skewX(-30deg); flex: none; }

/* Reveal on scroll (вмикається лише з JS) */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.is-in { opacity: 1; translate: 0 0; transition: opacity .7s ease, translate .7s cubic-bezier(.2,.7,.2,1), transform .25s, box-shadow .25s, border-color .25s; transition-delay: calc(var(--i, 0) * 70ms), calc(var(--i, 0) * 70ms), 0s, 0s, 0s; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; translate: none; transition: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; font: 700 1rem/1 var(--font); padding: 1rem 1.5rem; border-radius: 10px; border: 2px solid transparent; cursor: pointer; text-decoration: none; transition: background .2s, transform .15s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip input:focus-visible + span, .link-btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-2); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; background: transparent; }
.btn--ghost:hover { border-color: #fff; }
.btn--text { background: none; color: var(--muted); padding-inline: .5rem; }
.btn--sm { padding: .7rem 1.1rem; font-size: .9rem; }
.btn--wide { flex: 1; width: 100%; }

/* Header */

/* Hero */
.hero { position: relative; background: var(--bg); color: #fff; padding: 4.5rem 0 4rem; overflow: hidden; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; opacity: .75; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { scale: 1.12; } to { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .hero__bg { animation: none; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, rgba(11,15,26,.97) 22%, rgba(11,15,26,.78) 55%, rgba(11,15,26,.45)), linear-gradient(0deg, var(--bg), transparent 35%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -8%; top: -20%; width: 46%; height: 140%; background: linear-gradient(180deg, rgba(255,68,1,.22), rgba(255,68,1,0) 70%); transform: skewX(-18deg); pointer-events: none; }
.hero h1 { text-wrap: balance; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: start; }
.hero__lead { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 36em; }
.hero__bullets { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .6rem; }
.hero__bullets li { padding-inline-start: 1.8rem; position: relative; font-weight: 600; }
.hero__bullets li::before { content: ""; position: absolute; left: 0; top: .45em; width: 1rem; height: .55rem; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 920px) { .hero { padding-top: 2.5rem; } .hero__grid { grid-template-columns: 1fr; gap: 2rem; } .hero__actions { display: none; } }

.stats { list-style: none; padding: 0; margin: 3.5rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px); }
.stats li { padding: 1.3rem 1.5rem; background: rgba(11,15,26,.6); }
.stats b { display: block; font: 700 2.4rem/1 var(--font-display); color: #fff; margin-bottom: .3rem; }
.stats li:first-child b { color: var(--accent); }
.stats span { font-size: .88rem; color: rgba(255,255,255,.65); }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 1.5rem; } }

/* Cards / quiz */
.card { background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); }
.quiz__title { font: 700 1.4rem/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 .25rem; }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.legal { font-size: .78rem; color: var(--muted); margin: .9rem 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .9rem; }
.chips--col { flex-direction: column; }
.chip span { display: inline-flex; padding: .7rem 1rem; border: 2px solid var(--line); border-radius: 99px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.chips--col .chip span { display: flex; border-radius: 10px; }
.chip--sm span { padding: .45rem .85rem; font-size: .9rem; }

.field { display: grid; gap: .35rem; margin-bottom: 1rem; }
.field__label { font-weight: 700; font-size: .9rem; }
.field input, .field textarea { font: inherit; padding: .85rem 1rem; border: 2px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field__error { display: none; color: #c42b00; font-size: .85rem; font-weight: 600; }
.field :is(input:user-invalid, .user-invalid-fallback) { border-color: #c42b00; }
.field :is(input:user-invalid, .user-invalid-fallback) + .field__error { display: block; }
.step-error { color: #c42b00; font-weight: 600; font-size: .9rem; margin: -.25rem 0 .5rem; }

.success { text-align: center; padding: 1.5rem .5rem; }
.success__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 2rem; display: grid; place-items: center; margin: 0 auto 1rem; }

/* Sections */
.section { padding: 5.5rem 0; }
.section--dark { background: var(--bg); color: #fff; }
.section--tint { background: var(--tint); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.section__sub { color: var(--muted); max-width: 40em; margin: 0; }
@media (max-width: 700px) { .section { padding: 3.5rem 0; } }

/* Stock */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; }
.filters button { font: 600 .9rem var(--font); padding: .55rem 1rem; border-radius: 99px; border: 2px solid var(--line); background: #fff; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.stock { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.25rem; }
.unit { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: box-shadow .2s, transform .2s; }
.unit:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.unit__img { position: relative; aspect-ratio: 4 / 3; background: var(--tint); }
.unit__img { overflow: hidden; }
.unit__img img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.unit:hover .unit__img img { scale: 1.05; }
.badge { position: absolute; left: .75rem; top: .75rem; background: rgba(11,15,26,.85); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .6rem; border-radius: 6px; }
.badge::before { content: "● "; color: #3ddc84; }
.unit__body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.unit__type { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.unit__name { font: 600 1.35rem/1.15 var(--font-display); margin: 0; }
.unit__price { font: 700 1.5rem/1 var(--font-display); color: var(--accent); margin: .4rem 0 .9rem; }
.unit__price small { font: 500 .8rem var(--font); color: var(--muted); }
.unit .btn { margin-top: auto; }
.stock__more { margin-top: 1.5rem; padding: 1.5rem 1.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; box-shadow: none; border: 2px dashed var(--line); }
.stock__more p { margin: .25rem 0 0; color: var(--muted); }

/* Icons */
svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Brands marquee */
.brands { background: var(--accent); color: #fff; overflow: hidden; padding: 1rem 0; user-select: none; }
.brands__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brands:hover .brands__track { animation-play-state: paused; }
.brands__track span { font: 600 1.15rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .08em; white-space: nowrap; display: flex; align-items: center; gap: 3rem; padding-right: 3rem; }
.brands__track span::after { content: ""; width: 8px; height: 8px; background: rgba(255,255,255,.55); transform: skewX(-20deg); }
@keyframes marquee { to { translate: -50% 0; } }
@media (prefers-reduced-motion: reduce) { .brands__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 1rem; } }

/* Categories — bento з фото на білому */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.cat { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); text-align: left; font: inherit; padding: 0; cursor: pointer; display: flex; flex-direction: column; }
.cat:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-3px); }
.cat:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
.cat__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #fff; }
.cat__media img { width: 100%; height: 100%; object-fit: contain; padding: .75rem 1rem 0; transition: scale .6s cubic-bezier(.2,.7,.2,1); }
.cat:hover .cat__media img { scale: 1.06; }
.cat__body { display: grid; gap: .3rem; padding: 1.1rem 1.4rem 1.4rem; margin-top: auto; }
.cat__title { font: 600 1.4rem/1.1 var(--font-display); text-transform: uppercase; }
.cat__text { color: var(--muted); font-size: .92rem; }
.cat__cta { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--accent); margin-top: .4rem; }
.cat__cta svg { width: 18px; height: 18px; transition: translate .2s; }
.cat:hover .cat__cta svg { translate: 4px 0; }
.cat--xl { grid-column: span 2; grid-row: span 2; }
.cat--xl .cat__media { aspect-ratio: auto; flex: 1 1 0; min-height: 280px; position: relative; }
.cat--xl .cat__media img { position: absolute; inset: 0; padding: 2rem 2rem 0; }
.cat--xl .cat__title { font-size: 2.4rem; }
.cat--xl .cat__text { font-size: 1.05rem; }
.cat--accent { background: linear-gradient(135deg, var(--accent), #c93400); color: #fff; border: 0; justify-content: flex-end; min-height: 220px; isolation: isolate; }
.cat--accent::before { content: ""; position: absolute; inset: 0; z-index: -1; background: repeating-linear-gradient(-60deg, transparent 0 22px, rgba(255,255,255,.07) 22px 44px); }
.cat--accent .cat__text, .cat--accent .cat__cta { color: #fff; }
.cat--accent .cat__text { opacity: .85; }
@media (max-width: 900px) { .cats { grid-template-columns: 1fr 1fr; } .cat--xl { grid-row: auto; } .cat--xl .cat__media { min-height: 220px; } }
@media (max-width: 560px) { .cats { grid-template-columns: 1fr 1fr; gap: .6rem; } .cat__body { padding: .8rem .9rem 1rem; } .cat__title { font-size: 1.1rem; } .cat__text { display: none; } .cat--xl .cat__title { font-size: 1.6rem; } .cat--xl .cat__text, .cat--accent .cat__text { display: block; } .cat--accent { grid-column: span 2; min-height: 0; } }
.link-btn { background: none; border: 0; padding: 0; font: 700 .95rem var(--font); color: var(--accent); cursor: pointer; }

/* Steps — timeline */
.steps { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.5rem; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 28px; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 10px, transparent 10px 18px); opacity: .5; }
.steps li { position: relative; }
.steps__dot { position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--ink); color: #fff; margin-bottom: 1.1rem; box-shadow: 0 0 0 6px #fff; }
.steps li:first-child .steps__dot { background: var(--accent); }
.steps__n { display: block; font-weight: 800; font-size: .78rem; color: var(--accent); text-transform: uppercase; letter-spacing: .1em; margin-bottom: .3rem; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.steps__cta { display: flex; align-items: center; gap: 1.25rem; margin-top: 2.5rem; flex-wrap: wrap; }
@media (max-width: 1020px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--accent) 0 10px, transparent 10px 18px); }
  .steps li { display: grid; grid-template-columns: 56px 1fr; column-gap: 1.25rem; padding-bottom: 1.75rem; }
  .steps__dot { grid-row: span 3; margin: 0; }
}

/* Benefits */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.benefit { background: #fff; padding: 1.75rem; border-radius: var(--radius); border: 1px solid var(--line); transition: border-color .2s, translate .2s, box-shadow .2s; }
.benefit:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow); }
.benefit__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: #fff1ea; color: var(--accent); margin-bottom: 1.1rem; transform: skewX(-8deg); }
.benefit__ic svg { transform: skewX(8deg); width: 26px; height: 26px; }
.benefit p { color: var(--muted); margin: 0; }
@media (max-width: 900px) { .benefits { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .benefits { grid-template-columns: 1fr; } }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.about__photo { position: relative; padding: 0 0 3rem 3rem; }
.about__main { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.about__sub { position: absolute; left: 0; bottom: 0; width: 45%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); border: 6px solid #fff; box-shadow: var(--shadow); }
.about__badge { position: absolute; right: -10px; top: -18px; background: var(--accent); color: #fff; padding: .9rem 1.2rem; border-radius: 12px; display: flex; align-items: center; gap: .6rem; transform: skewX(-8deg); box-shadow: var(--shadow); }
.about__badge b { font: 700 2.4rem/1 var(--font-display); }
.about__badge span { font-weight: 700; font-size: .85rem; line-height: 1.2; }
@media (max-width: 560px) { .about__photo { padding: 0 0 2rem 1.5rem; } .about__badge { right: 0; } }
.about__addr { font-style: normal; background: var(--tint); padding: 1rem 1.25rem; border-radius: 10px; margin-top: 1.5rem; }
.about__addr a { color: var(--accent); font-weight: 700; text-decoration: none; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 2rem; display: grid; gap: .75rem; }
.faq details { background: #fff; border-radius: 10px; padding: 0 1.25rem; }
.faq summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); }

/* Final */
.final { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.final__card { padding: 1.75rem; }
.contacts { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1rem; }
.contacts li { display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: 1.1rem; }
.contacts li > svg { width: 48px; height: 48px; padding: 12px; border-radius: 12px; background: rgba(255,68,1,.15); color: var(--accent); }
.contacts li div { display: grid; gap: .1rem; }
.contacts span { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.55); font-weight: 600; }
.final-wrap { position: relative; isolation: isolate; overflow: hidden; }
.final-wrap__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .35; }
.final-wrap::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,15,26,.97) 35%, rgba(11,15,26,.7)); }
.final h2 { text-wrap: balance; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--accent); }
@media (max-width: 860px) { .final { grid-template-columns: 1fr; } }

.footer { background: #070a12; color: rgba(255,255,255,.55); padding: 1.5rem 0; font-size: .85rem; }
.footer__row { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* Mobile action bar */
.mobilebar { display: none; }
@media (max-width: 760px) {
  .mobilebar { display: grid; grid-template-columns: 1fr 1.3fr; gap: .5rem; position: fixed; inset: auto 0 0 0; z-index: 30; padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: rgba(11,15,26,.96); }
  .mobilebar .btn { padding: .85rem; }
  body { padding-bottom: 76px; }
}

/* Modal dialog */
.modal { border: 0; border-radius: var(--radius); padding: 0; width: min(440px, 100% - 24px); box-shadow: var(--shadow); overscroll-behavior: contain; border-top: 4px solid var(--accent); }
.modal::backdrop { background: rgba(7,10,18,.7); backdrop-filter: blur(3px); overflow: hidden; overscroll-behavior: contain; }
.modal__body { padding: 1.75rem; }
.modal__title { font-size: 1.6rem; margin-bottom: .25rem; }
.modal__topic { color: var(--muted); font-weight: 600; margin-bottom: 1.25rem; }
.modal__close-form { position: absolute; right: .5rem; top: .5rem; margin: 0; }
.modal__close { background: none; border: 0; font-size: 1.2rem; width: 40px; height: 40px; cursor: pointer; color: var(--muted); border-radius: 8px; }
.modal__close:hover { background: var(--tint); }
.cat--photo .cat__media img { object-fit: cover; padding: 0; }

/* Факти про компанію (для людей і ШІ-пошуковиків) */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem 1.5rem; margin: 1.5rem 0 0; }
.facts div { border-top: 2px solid var(--line); padding-top: .6rem; }
.facts dt { font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.facts dd { margin: .2rem 0 0; font-weight: 600; font-size: .95rem; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }
.stock__updated { font-size: .85rem; margin: 1rem 0 0; }
.footer address { font-style: normal; }
.footer a { text-decoration: none; }
.footer a:hover { color: #fff; }


/* ===== Квіз v2 ===== */
.quiz { padding: 0; overflow: hidden; border: 0; }
.quiz__head { background: var(--ink); color: #fff; padding: 1.4rem 1.6rem 1.2rem; position: relative; overflow: hidden; }
.quiz__head::after { content: ""; position: absolute; right: -40px; top: -30px; width: 140px; height: 160%; background: linear-gradient(180deg, rgba(255,68,1,.35), transparent); transform: skewX(-20deg); pointer-events: none; }
.quiz__head-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: relative; z-index: 1; }
.quiz__head .quiz__title { font-size: 1.3rem; }
.quiz__badge { display: inline-flex; align-items: center; gap: .35rem; flex: none; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); padding: .35rem .65rem; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.quiz__badge svg { width: 16px; height: 16px; color: var(--accent); }

.qsteps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: .4rem; margin: 1.1rem 0 0; padding: 0; position: relative; z-index: 1; }
.qsteps li { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: rgba(255,255,255,.4); transition: color .3s; }
.qsteps li span { display: block; height: 4px; border-radius: 4px; background: rgba(255,255,255,.15); margin-bottom: .45rem; position: relative; overflow: hidden; }
.qsteps li span::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.qsteps li.is-active, .qsteps li.is-done { color: #fff; }
.qsteps li.is-active span::after, .qsteps li.is-done span::after { transform: scaleX(1); }
.qsteps li.is-done { color: rgba(255,255,255,.7); }

.quiz__body { padding: 1.4rem 1.6rem 1.3rem; }
.quiz__step { border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__step:not([hidden]) { animation: stepIn .35s cubic-bezier(.2,.7,.2,1); }
@keyframes stepIn { from { opacity: 0; translate: 16px 0; } }
@media (prefers-reduced-motion: reduce) { .quiz__step:not([hidden]) { animation: none; } }
.quiz__step legend { font-weight: 800; font-size: 1.15rem; margin-bottom: 1rem; padding: 0; }

.opts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { position: relative; display: flex; align-items: center; gap: .7rem; min-height: 58px; padding: .7rem .9rem; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; font-size: .95rem; line-height: 1.2; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.opt span svg { width: 30px; height: 30px; padding: 5px; border-radius: 8px; background: var(--tint); color: var(--ink); transition: background .15s, color .15s; }
.opt span:hover { border-color: #c5cad6; }
.opt span::after { content: ""; position: absolute; right: .55rem; top: .55rem; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff center / 12px no-repeat; transition: all .15s; }
.opt input:checked + span { border-color: var(--accent); background: #fff6f2; box-shadow: 0 0 0 3px rgba(255,68,1,.12); }
.opt input:checked + span svg { background: var(--accent); color: #fff; }
.opt input:checked + span::after { border-color: var(--accent); background-color: var(--accent); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.opt input:focus-visible + span { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.opts--text .opt span { justify-content: center; min-height: 50px; padding-right: 1.6rem; padding-left: 1.6rem; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--tint); border-radius: 10px; padding: 4px; gap: 4px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .55rem .4rem; border-radius: 7px; font-weight: 700; font-size: .88rem; color: var(--muted); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(11,15,26,.15); }
.seg input:focus-visible + span { outline: 3px solid var(--accent-2); }

.field--compact { margin: 1rem 0 0; }
.field--compact .field__label { font-size: .82rem; color: var(--muted); }
.input-ic { position: relative; display: block; }
.input-ic svg { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.input-ic input { padding-left: 2.6rem; }

.summary { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.25rem 0 .25rem; }
.summary:empty { display: none; }
.summary button { display: inline-flex; align-items: center; gap: .35rem; font: 600 .82rem var(--font); padding: .35rem .7rem; border-radius: 99px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); cursor: pointer; }
.summary button::after { content: "✎"; color: var(--muted); font-size: .8rem; }
.summary button:hover { border-color: var(--accent); }

.quiz__nav { display: flex; gap: .6rem; margin-top: 1.3rem; }
.quiz__nav .btn svg { width: 20px; height: 20px; transition: translate .2s; }
.quiz__nav .btn--accent:hover svg { translate: 3px 0; }
.btn--back { flex: none; width: 54px; padding: 0; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn--back svg { rotate: 180deg; }
.btn--back:hover { border-color: var(--ink); }
.legal--ic { display: flex; gap: .5rem; align-items: flex-start; }
.legal--ic svg { width: 16px; height: 16px; flex: none; margin-top: .1rem; color: #2e9e5b; }

.quiz .success { padding: 2rem 1.6rem; text-align: left; }
.quiz .success__icon { margin: 0 0 1rem; }
.success__icon svg { width: 34px; height: 34px; stroke-width: 3; }
.success__next { list-style: none; counter-reset: n; padding: 0; margin: 1rem 0; display: grid; gap: .75rem; }
.success__next li { counter-increment: n; display: grid; grid-template-columns: 28px 1fr; gap: .75rem; align-items: start; font-size: .95rem; }
.success__next li::before { content: counter(n); display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #fff1ea; color: var(--accent); font-weight: 800; }

/* =====================================================================
   МОБІЛЬНА ВЕРСІЯ (до 760px). Весь SEO-текст лишається в розмітці,
   тут лише щільніша компоновка, порядок блоків і розміри.
   ===================================================================== */
@media (max-width: 760px) {
  html { scroll-padding-top: 64px; }
  body { font-size: 15px; }
  .container, .container--narrow { width: calc(100% - 32px); }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.08rem; }
  .eyebrow { font-size: .7rem; margin-bottom: .6rem; }
  .eyebrow::before { width: 18px; height: 5px; }
  .section { padding: 2.75rem 0; }
  .section__head { margin-bottom: 1.25rem; gap: .9rem; }
  .section__sub { font-size: .92rem; }

  /* Шапка */

  /* Hero: H1, потім форма, потім текст. display: contents піднімає дітей .hero__text у сітку */
  .hero { padding: 1.4rem 0 1.75rem; }
  .hero::after { display: none; }
  .hero__bg { opacity: .5; }
  .hero__grid { gap: 0; }
  .hero__text { display: contents; }
  .hero .eyebrow { order: 1; }
  .hero h1 { order: 2; font-size: 1.85rem; margin-bottom: 1rem; }
  .quiz { order: 3; }
  .hero__lead { order: 4; font-size: .95rem; margin: 1.25rem 0 0; }
  .hero__bullets { order: 5; grid-template-columns: 1fr 1fr; gap: .5rem .9rem; margin: 1rem 0 0; font-size: .82rem; }
  .hero__bullets li { padding-inline-start: 1.3rem; font-weight: 600; line-height: 1.3; }
  .hero__bullets li::before { width: .75rem; height: .42rem; border-width: 0 0 2.5px 2.5px; top: .3em; }

  .stats { grid-template-columns: repeat(4, 1fr); margin-top: 1.5rem; }
  .stats li { padding: .75rem .35rem; text-align: center; }
  .stats b { font-size: 1.3rem; margin-bottom: .15rem; }
  .stats span { display: block; font-size: .66rem; line-height: 1.25; }

  .brands { padding: .65rem 0; }
  .brands__track span { font-size: .92rem; gap: 1.6rem; padding-right: 1.6rem; }

  /* Квіз */
  .quiz__head { padding: 1rem 1.1rem .9rem; }
  .quiz__head .quiz__title { font-size: 1.08rem; }
  .quiz__badge { font-size: .72rem; padding: .25rem .5rem; }
  .qsteps { margin-top: .8rem; }
  .qsteps li { font-size: .6rem; }
  .quiz__body { padding: 1.05rem 1.1rem 1rem; }
  .quiz__step legend { font-size: 1rem; margin-bottom: .75rem; }
  .opts { gap: .5rem; }
  .opt span { flex-direction: column; justify-content: center; text-align: center; gap: .3rem; min-height: 74px; padding: .6rem .4rem; font-size: .86rem; }
  .opt span svg { width: 30px; height: 30px; }
  .opt span::after { width: 15px; height: 15px; right: .4rem; top: .4rem; background-size: 10px; }
  .opts--text .opt span { min-height: 46px; padding-inline: .5rem; }
  .seg span { font-size: .82rem; padding: .5rem .25rem; }
  .quiz__nav { margin-top: 1rem; }
  .quiz__nav .btn { padding-block: .9rem; }
  .legal { font-size: .72rem; }

  /* Наявність: горизонтальна карусель зі snap */
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .filters button { flex: none; padding: .45rem .85rem; font-size: .82rem; }
  .stock { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; grid-template-columns: none; gap: .75rem; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; margin-inline: -16px; padding: 0 16px .5rem; scroll-padding-inline: 16px; scrollbar-width: none; }
  .stock::-webkit-scrollbar { display: none; }
  .unit { scroll-snap-align: start; }
  .unit:hover { transform: none; box-shadow: none; }
  .unit__img { aspect-ratio: 16 / 11; }
  .unit__body { padding: .85rem .95rem 1rem; gap: .2rem; }
  .unit__type { font-size: .7rem; }
  .unit__name { font-size: 1.12rem; }
  .unit__price { font-size: 1.3rem; margin: .3rem 0 .7rem; }
  .unit .btn { padding: .75rem; font-size: .9rem; }
  .badge { font-size: .68rem; }
  .stock__updated { font-size: .75rem; margin-top: .5rem; }
  .stock__more { margin-top: 1rem; padding: 1rem; gap: .8rem; }
  .stock__more p { font-size: .88rem; }
  .stock__more .btn { width: 100%; }

  /* Категорії */
  .cats { gap: .6rem; }
  .cat:hover { transform: none; }
  .cat__body { padding: .7rem .85rem .85rem; gap: .15rem; }
  .cat__title { font-size: 1.02rem; }
  .cat__cta { font-size: .85rem; margin-top: .2rem; }
  .cat__media img { padding: .5rem .6rem 0; }
  .cat--xl .cat__media { min-height: 170px; }
  .cat--xl .cat__media img { padding: 1rem 1rem 0; }
  .cat--xl .cat__title { font-size: 1.45rem; }
  .cat--xl .cat__text, .cat--accent .cat__text { font-size: .86rem; }
  .cat--accent { min-height: 0; }

  /* Етапи */
  .steps { margin-top: 1.5rem; }
  .steps::before { left: 21px; }
  .steps li { grid-template-columns: 44px 1fr; column-gap: 1rem; padding-bottom: 1.15rem; }
  .steps__dot { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 0 0 4px #fff; }
  .steps__dot svg { width: 20px; height: 20px; }
  .steps__n { font-size: .68rem; margin-bottom: .1rem; }
  .steps h3 { margin-bottom: .2rem; }
  .steps p { font-size: .88rem; }
  .steps__cta { margin-top: .75rem; flex-direction: column; gap: .5rem; }
  .steps__cta .btn { width: 100%; }

  /* Переваги: компактні рядки */
  .benefits { grid-template-columns: 1fr; gap: .5rem; margin-top: 1.25rem; }
  .benefit { display: grid; grid-template-columns: 42px 1fr; column-gap: .85rem; align-items: start; padding: .9rem 1rem; }
  .benefit:hover { transform: none; box-shadow: none; }
  .benefit__ic { grid-row: span 2; width: 42px; height: 42px; margin: 0; border-radius: 10px; }
  .benefit__ic svg { width: 22px; height: 22px; }
  .benefit h3 { margin: .1rem 0 .15rem; font-size: 1rem; }
  .benefit p { font-size: .86rem; line-height: 1.45; }

  /* Про нас */
  .about { gap: 1.5rem; }
  .about p { font-size: .93rem; }
  .about__photo { padding: 0; order: -1; }
  .about__sub { display: none; }
  .about__main { aspect-ratio: 16 / 9; }
  .about__badge { right: .6rem; top: auto; bottom: .6rem; padding: .5rem .8rem; }
  .about__badge b { font-size: 1.6rem; }
  .about__badge span { font-size: .72rem; }
  .facts { grid-template-columns: 1fr 1fr; gap: .6rem .9rem; margin-top: 1rem; }
  .facts dt { font-size: .64rem; }
  .facts dd { font-size: .82rem; line-height: 1.35; }
  .about__addr { margin-top: 1rem; font-size: .88rem; padding: .85rem 1rem; }

  /* FAQ */
  .faq { margin-top: 1.25rem; gap: .5rem; }
  .faq details { padding: 0 1rem; }
  .faq summary { padding: .85rem 0; font-size: .93rem; line-height: 1.35; }
  .faq details p { font-size: .88rem; }

  /* Фінальна заявка */
  .final { gap: 1.5rem; }
  .final h2 { font-size: 1.45rem; }
  .contacts { margin-top: 1.1rem; gap: .65rem; }
  .contacts li { font-size: .95rem; gap: .75rem; }
  .contacts li > svg { width: 38px; height: 38px; padding: 9px; border-radius: 10px; }
  .final__card { padding: 1.1rem; }
  .short-form .field { margin-bottom: .75rem; }
  .short-form textarea { min-height: 72px; }
  .field input, .field textarea { padding: .75rem .9rem; }
  .input-ic input { padding-left: 2.5rem; }

  .footer { padding: 1.25rem 0; font-size: .75rem; line-height: 1.55; }

  /* Модалка: шторка знизу, зручно великим пальцем */
  .modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; max-height: 92dvh; }
  .modal__body { padding: 1.4rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); }
  .modal__title { font-size: 1.35rem; padding-right: 2.5rem; }
}

@media (max-width: 360px) {
  h2 { font-size: 1.45rem; }
  .hero h1 { font-size: 1.6rem; }
  .hero__bullets { grid-template-columns: 1fr; }
  .stats span { font-size: .6rem; }
  .opt span { font-size: .8rem; }
  .facts { grid-template-columns: 1fr; }
  .stock { grid-auto-columns: 86%; }
}

/* приховані радіо в чипах (на випадок повторного використання .chip) */
.chip input { position: absolute; opacity: 0; pointer-events: none; }

/* ===== Хедер: плаваючий скляний «острівець» над hero ===== */
.header { position: sticky; top: 0; z-index: 40; margin-bottom: -76px; pointer-events: none; }
.header__row {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  width: min(1200px, calc(100% - 2 * clamp(16px, 4vw, 40px)));
  height: 64px; margin: 12px auto 0; padding: 0 .6rem 0 1.4rem;
  border-radius: 16px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(11,15,26,.78); backdrop-filter: blur(12px) saturate(1.3);
  box-shadow: 0 8px 30px rgba(0,0,0,.35);
  color: #fff; transition: background .2s, box-shadow .2s;
}
.header.is-scrolled .header__row { background: rgba(11,15,26,.9); }
.logo { display: flex; align-items: baseline; gap: .35rem; text-decoration: none; flex: none; }
.logo__mark { font: 700 1.25rem/1 var(--font-display); letter-spacing: .12em; border: 2px solid var(--accent); padding: .16rem .45rem; color: #fff; transform: skewX(-10deg); }
.logo__sub { font-weight: 800; color: var(--accent); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; }


.header__end { display: flex; align-items: center; gap: .4rem; flex: none; }
.hicon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #fff; text-decoration: none; transition: background .15s; }
.hicon svg { width: 20px; height: 20px; }
.hicon:hover { background: rgba(255,255,255,.08); }
.header__phone svg { color: var(--accent-2); }
.header__phone span { display: none; }
.header__cta { border-radius: 12px; padding: .75rem 1.2rem; font-size: .92rem; white-space: nowrap; box-shadow: 0 6px 18px -6px rgba(255,68,1,.7); }
.header__cta b { font-weight: 800; opacity: .75; }

/* Hero під плаваючим хедером */
.hero { padding-top: calc(4.5rem + 76px); }


/* Телефон: суцільна панель на всю ширину, як у референсі */
@media (max-width: 760px) {
  .header { margin-bottom: -60px; }
  .header__row { width: 100%; height: 60px; margin: 0; padding: 0 .6rem 0 1rem; border-radius: 0; border-width: 0 0 1px; background: rgba(11,15,26,.72); box-shadow: none; }
  .header.is-scrolled .header__row { background: rgba(11,15,26,.95); }
  .logo__mark { font-size: 1.05rem; }
  .logo__sub { font-size: .65rem; }
  .header__cta { display: inline-flex; padding: .6rem .9rem; font-size: .85rem; border-radius: 10px; }
  .header__cta b { display: none; }
  .hero { padding-top: calc(1.4rem + 60px); }
  html { scroll-padding-top: 72px; }
}
@media (max-width: 360px) { .logo__sub { display: none; } }

/* Hero: легке підсвічування зверху, щоб хедер і заголовок «дихали» */
.hero::before {
  background:
    radial-gradient(ellipse 70% 60% at 50% -8%, rgba(150,170,225,.36), transparent 70%),
    linear-gradient(100deg, rgba(11,15,26,.95) 22%, rgba(11,15,26,.74) 55%, rgba(11,15,26,.42)),
    linear-gradient(0deg, var(--bg), transparent 35%);
}
.hero__lead { max-width: 30em; }
.hero__actions { margin-top: 2rem; }
@media (min-width: 921px) { .hero__text { padding-top: 2.5rem; } }

/* ===== Одна форма: квіз у вікні (на телефоні — на весь екран) ===== */
.quiz__close { display: none; }
.modal--quiz { padding: 0; border: 0; background: transparent; width: min(500px, calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; border-radius: var(--radius); box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); }
.modal--quiz .quiz { box-shadow: none; }
.modal--quiz .quiz__badge { display: none; }
.modal--quiz .quiz__close { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; position: relative; z-index: 1; }
.modal--quiz .quiz__close:hover { background: rgba(255,255,255,.2); }
.modal--quiz .quiz__close svg { width: 18px; height: 18px; }
.modal--quiz:modal { animation: dlgIn .25s cubic-bezier(.2,.7,.2,1); }
@keyframes dlgIn { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .modal--quiz:modal { animation: none; } }

.quiz__context { margin: 0 0 1rem; padding: .6rem .85rem; border-radius: 10px; background: #fff6f2; border-left: 3px solid var(--accent); font-weight: 700; font-size: .9rem; line-height: 1.35; }

/* Блок унизу: контакти + одна кнопка замість окремої форми */
.final__cta { display: grid; gap: .85rem; }
.final__cta .quiz__title { margin: 0; }
.final__cta .muted { margin: 0 0 .4rem; }
.final__cta .btn svg { width: 20px; height: 20px; }
.btn--line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn--line svg { color: var(--accent); }
.btn--line:hover { border-color: var(--ink); }

@media (max-width: 760px) {
  .modal--quiz { width: 100%; max-width: 100%; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; box-shadow: none; }
  .modal--quiz[open] { display: flex; flex-direction: column; }
  .modal--quiz #quizSlot { flex: 1; display: flex; flex-direction: column; }
  .modal--quiz .quiz { flex: 1; }
  .modal--quiz .quiz { display: flex; flex-direction: column; border-radius: 0; }
  .modal--quiz .quiz__form { display: flex; flex-direction: column; flex: 1; }
  .modal--quiz .quiz__head { padding-top: calc(1rem + env(safe-area-inset-top)); }
  .modal--quiz .quiz__body { flex: 1; display: flex; flex-direction: column; padding-bottom: calc(1rem + env(safe-area-inset-bottom)); }
  .modal--quiz .quiz__nav { margin-top: auto; padding-top: 1rem; }
  .modal--quiz .success { flex: 1; padding-top: 3rem; }
}

/* ===== Hero без форми: заголовок + дві кнопки (форма живе лише у вікні) ===== */
.hero__grid { grid-template-columns: 1fr; }
.hero__text { max-width: 980px; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); max-width: 18ch; margin-bottom: .35em; }
.hero__lead { font-size: 1.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.btn--lg { padding: 1.15rem 1.7rem; font-size: 1.05rem; border-radius: 12px; }
.btn--lg svg { width: 20px; height: 20px; transition: translate .2s; }
.btn--accent.btn--lg { box-shadow: 0 10px 30px -10px rgba(255,68,1,.8); }
.btn--accent.btn--lg:hover svg { translate: 3px 0; }
.hero__note { display: flex; align-items: center; gap: .45rem; margin: 1rem 0 0; font-size: .9rem; color: rgba(255,255,255,.65); }
.hero__note svg { width: 16px; height: 16px; color: var(--accent-2); }
@media (min-width: 921px) { .hero__text { padding-block: 3.5rem 1.5rem; } }

@media (max-width: 920px) {
  .hero__actions { display: flex; }
}
@media (max-width: 760px) {
  .hero { padding-bottom: 1.5rem; }
  .hero h1 { font-size: 2.35rem; max-width: none; }
  .hero__lead { order: 3; font-size: 1rem; margin: .25rem 0 0; }
  .hero__actions { order: 4; flex-direction: column; margin-top: 1.5rem; gap: .6rem; }
  .hero__actions .btn { width: 100%; }
  .hero__note { order: 5; justify-content: center; font-size: .82rem; }
}
@media (max-width: 360px) { .hero h1 { font-size: 2rem; } }

/* ===== Телефон: більше повітря + динамічна нижня CTA-панель (як у moyeethno) ===== */
@media (max-width: 760px) {
  body { font-size: 16px; line-height: 1.6; }
  h2 { font-size: 1.75rem; line-height: 1.15; }
  h3 { font-size: 1.1rem; }
  .eyebrow { margin-bottom: .8rem; }
  .section { padding: 3.75rem 0; }
  .section__head { margin-bottom: 1.75rem; gap: 1rem; }
  .section__sub { font-size: .98rem; line-height: 1.6; }

  .hero { padding-bottom: 2.5rem; }
  .hero h1 { margin-bottom: .45em; }
  .hero__lead { line-height: 1.6; }
  .hero__actions { margin-top: 2rem; }
  .stats { margin-top: 2.25rem; }
  .stats li { padding: 1rem .35rem; }

  .stock { gap: 1rem; }
  .unit__body { padding: 1rem 1.1rem 1.15rem; gap: .3rem; }
  .stock__more { margin-top: 1.5rem; padding: 1.25rem; }

  .cats { gap: .75rem; }
  .cat__body { padding: .9rem 1rem 1rem; gap: .25rem; }

  .steps { margin-top: 2rem; }
  .steps li { padding-bottom: 1.75rem; column-gap: 1.1rem; }
  .steps p { font-size: .93rem; line-height: 1.55; }
  .steps__cta { margin-top: 1rem; }

  .benefits { gap: .75rem; margin-top: 1.75rem; }
  .benefit { padding: 1.15rem 1.15rem; column-gap: 1rem; }
  .benefit p { font-size: .92rem; line-height: 1.55; }

  .about { gap: 2rem; }
  .about p { font-size: .98rem; line-height: 1.65; }
  .facts { gap: 1rem 1.1rem; margin-top: 1.5rem; }
  .facts dd { font-size: .88rem; line-height: 1.45; }
  .about__addr { margin-top: 1.5rem; }

  .faq { margin-top: 1.75rem; gap: .65rem; }
  .faq summary { padding: 1.05rem 0; font-size: .98rem; }
  .faq details p { font-size: .93rem; line-height: 1.6; }

  .final { gap: 2rem; }
  .contacts { gap: .9rem; margin-top: 1.5rem; }
  .final__cta { gap: 1rem; padding: 1.4rem; }

  /* Нижня панель: одна кнопка, виїжджає знизу, ховається коли на екрані вже є своя кнопка */
  .mobilebar { display: block; grid-template-columns: none; position: fixed; inset: auto 0 0 0; z-index: 30; padding: 0 .5rem; background: none; transition: translate .3s cubic-bezier(.4,0,.2,1); }
  .mobilebar[data-hidden] { translate: 0 115%; }
  .mobilebar__card { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .75rem .75rem calc(.75rem + env(safe-area-inset-bottom)) 1.1rem; border-radius: 18px 18px 0 0; background: #161b29; border: 1px solid rgba(255,255,255,.08); border-bottom: 0; box-shadow: 0 -10px 28px rgba(0,0,0,.35); color: #fff; }
  .mobilebar__info { display: grid; min-width: 0; }
  .mobilebar__info span { font-size: .72rem; color: rgba(255,255,255,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobilebar__info b { font: 600 1rem/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mobilebar .mobilebar__cta { flex: none; padding: .85rem 1.15rem; border-radius: 12px; box-shadow: 0 8px 20px -8px rgba(255,68,1,.8); }
  .mobilebar__cta svg { width: 18px; height: 18px; }
  body { padding-bottom: 84px; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) { .mobilebar { transition: none; } }

/* ===== CTA: зрозумілий текст і пропорційні розміри ===== */
.header__cta { height: 42px; padding: 0 1.1rem; font-size: .92rem; font-weight: 700; border-radius: 11px; box-shadow: 0 4px 14px -6px rgba(255,68,1,.6); }
.hero__actions .btn { min-width: 16.5rem; }
@media (max-width: 760px) {
  .header__cta { height: 38px; padding: 0 .9rem; font-size: .85rem; border-radius: 10px; }
  .header__cta span { display: none; }
  .hero__actions .btn { min-width: 0; }
}

/* ===== Телефон: hero дихає — менше рамок, більше простору ===== */
@media (max-width: 760px) {
  .header__cta { display: none; }               /* дублює кнопку в hero і нижню панель */
  .hero { padding-top: calc(2.75rem + 60px); padding-bottom: 3rem; }
  .hero .eyebrow { margin-bottom: 1.1rem; }
  .hero h1 { font-size: 2.5rem; line-height: 1.05; margin-bottom: 1.1rem; }
  .hero__lead { font-size: 1rem; line-height: 1.65; color: rgba(255,255,255,.72); max-width: 32ch; }
  .hero__actions { margin-top: 2.25rem; gap: .25rem; }
  .hero__actions .btn--ghost { border-color: transparent; background: none; padding-block: .9rem; color: rgba(255,255,255,.85); text-decoration: underline; text-underline-offset: 5px; text-decoration-color: rgba(255,255,255,.3); }
  .hero__note { margin-top: .5rem; }
  /* статистика: 2×2 без коробки, крупніші цифри */
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; margin-top: 3rem; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.12); border-radius: 0; padding-top: 1.75rem; backdrop-filter: none; overflow: visible; }
  .stats li { padding: 0; background: none; text-align: left; }
  .stats b { font-size: 1.9rem; margin-bottom: .3rem; }
  .stats span { font-size: .82rem; line-height: 1.35; }
}
@media (max-width: 360px) { .hero h1 { font-size: 2.1rem; } }

/* ===== Навігація: рядок на широкому екрані, бургер + popover на вузькому ===== */
.hnav__list { list-style: none; margin: 0; padding: 0; }
.hnav__list a { display: flex; align-items: center; gap: .45rem; text-decoration: none; font-weight: 600; transition: color .15s, background .15s; }
.hnav__count { font: 700 .72rem/1 var(--font); padding: .22rem .42rem; border-radius: 999px; background: var(--accent); color: #fff; }
.hnav a:focus-visible, .hnav__toggle:focus-visible, .hicon:focus-visible, .header__cta:focus-visible { outline: 3px solid rgba(255,106,46,.6); outline-offset: 2px; }
.hnav__list a[aria-current="page"] { color: #fff; box-shadow: inset 0 -2px 0 var(--accent); } /* не лише колір: підкреслення */

/* Широкий екран: той самий список у рядку по центру */
@media (min-width: 1021px) {
  .hnav { position: absolute; left: 50%; translate: -50% 0; }
  .hnav__toggle, .hnav__extra { display: none; }
  .hnav__menu, .hnav__menu[popover] { display: block; position: static; inset: auto; margin: 0; padding: 0; border: 0; background: none; color: inherit; overflow: visible; width: auto; height: auto; }
  .hnav__list { display: flex; gap: .1rem; }
  .hnav__list a { padding: .5rem .75rem; border-radius: 10px; font-size: .95rem; color: rgba(255,255,255,.82); white-space: nowrap; }
  .hnav__list a:hover { color: #fff; background: rgba(255,255,255,.07); }
}
@media (min-width: 1021px) and (max-width: 1140px) { .hnav__list li:nth-child(5) { display: none; } }

/* Вузький екран: кнопка «Меню» + панель-popover під шапкою */
@media (max-width: 1020px) {
  /* логотип ліворуч; дзвінок, «Розрахувати» і меню — однією групою праворуч */
  .header__row { gap: .5rem; justify-content: flex-start; }
  .header__end { margin-left: auto; }
  .hnav { order: 3; }
  .hnav__toggle {
    display: inline-flex; align-items: center; gap: .45rem; height: 42px; padding: 0 .85rem 0 .7rem;
    border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: rgba(255,255,255,.06);
    color: #fff; font: 700 .88rem/1 var(--font); cursor: pointer; touch-action: manipulation; anchor-name: --menu-button;
  }
  .hnav__toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .hnav__toggle:hover { background: rgba(255,255,255,.12); }
  .hnav__menu {
    position: fixed; inset: auto; margin: 0;
    inset-block-start: 4.75rem;                         /* без anchor() — під шапкою */
    inset-block-start: anchor(--menu-button bottom);
    margin-block-start: .6rem; inset-inline-end: max(.75rem, calc((100vw - 1200px) / 2));
    inline-size: min(24rem, calc(100dvw - 1.5rem)); max-block-size: calc(100dvh - 6rem); overflow: auto;
    padding: .6rem; border: 1px solid rgba(255,255,255,.12); border-radius: 18px;
    background: rgba(11,15,26,.97); color: #fff; box-shadow: 0 24px 60px rgba(0,0,0,.5);
  }
  .hnav__menu::backdrop { background: rgba(5,8,15,.45); }
  .hnav__list a { padding: .95rem 1rem; border-radius: 12px; font-size: 1.05rem; color: #fff; }
  .hnav__list a::after { content: "›"; margin-left: auto; opacity: .45; font-size: 1.3rem; line-height: 1; }
  .hnav__list a:hover, .hnav__list a:active { background: rgba(255,255,255,.07); }
  .hnav__list a[aria-current="page"] { box-shadow: none; background: rgba(255,68,1,.14); }
  .hnav__list li + li { border-top: 1px solid rgba(255,255,255,.06); }
  .hnav__extra { display: grid; gap: .7rem; margin-top: .6rem; padding: 1rem; border-radius: 14px; background: rgba(255,255,255,.04); }
  .hnav__phone { display: flex; align-items: center; gap: .6rem; font: 700 1.15rem/1 var(--font); color: #fff; text-decoration: none; }
  .hnav__phone svg, .hnav__addr svg { width: 20px; height: 20px; color: var(--accent-2); flex: none; }
  .hnav__addr { display: flex; gap: .6rem; margin: 0; font-size: .88rem; color: rgba(255,255,255,.7); }
  .hnav__extra .btn { margin-top: .2rem; }
  @media (prefers-reduced-motion: no-preference) {
    .hnav__menu { transition: opacity .18s, translate .18s, display .18s, overlay .18s; transition-behavior: allow-discrete; }
    .hnav__menu:not(:popover-open) { opacity: 0; translate: 0 -6px; }
    @starting-style { .hnav__menu:popover-open { opacity: 0; translate: 0 -6px; } }
  }
}
@media (max-width: 760px) {
  .hnav__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; } /* лише іконка; «Меню» лишається назвою для читачів екрана */
  .hnav__toggle { width: 40px; padding: 0; justify-content: center; }
  .hnav__menu { inset-inline: .5rem; inline-size: auto; }
}

/* ===================================================================
   Сторінки каталогу й техніки
   =================================================================== */
.pagehead { background: var(--bg); color: #fff; padding: calc(76px + 2.2rem) 0 1.6rem; position: relative; overflow: hidden; isolation: isolate; }
.pagehead::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 120% at 85% 0%, rgba(255,68,1,.22), transparent 60%); }
.pagehead__row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.pagehead__title { margin: 0 0 .4rem; font-size: clamp(1.9rem, 4vw, 3rem); }
.pagehead__sub { margin: 0; max-width: 62ch; color: rgba(255,255,255,.72); }
.pagehead__stat { margin: 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.pagehead__stat b { display: block; font: 700 2.4rem/1 var(--font-display); color: #fff; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: .3rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .85rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: "/"; margin-right: .3rem; opacity: .45; }
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: rgba(255,255,255,.55); }

/* Швидкі вкладки типів: на телефоні гортаються вбік */
.typechips { display: flex; gap: .5rem; margin-top: 1.4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; overscroll-behavior-x: contain; }
.typechips::-webkit-scrollbar { display: none; }
.typechip { flex: none; display: inline-flex; align-items: center; gap: .5rem; padding: .62rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.18); color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; transition: background .15s, border-color .15s; }
.typechip span { font-weight: 600; font-size: .78rem; opacity: .65; }
.typechip:hover { background: rgba(255,255,255,.08); }
.typechip[aria-current="page"] { background: #fff; color: var(--ink); border-color: #fff; }
.typechip[aria-current="page"] span { opacity: .55; }
.typechip:focus-visible { outline: 3px solid rgba(255,106,46,.7); outline-offset: 2px; }

.catalog-page { background: var(--tint); }
.catalog { display: grid; grid-template-columns: 270px 1fr; gap: 1.6rem; align-items: start; padding-block: 1.6rem 4rem; }

/* Фільтри */
.cfilters { position: sticky; top: 96px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.1rem .6rem; max-height: calc(100dvh - 110px); overflow: auto; color: var(--ink); }
.cfilters__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.cfilters__title { margin: 0; font-size: 1.15rem; }
.cfilters__close { display: none; }
.fgroup { border: 0; margin: 0; padding: .9rem 0; border-top: 1px solid var(--line); }
.fgroup legend { float: left; width: 100%; padding: 0; margin-bottom: .55rem; font-weight: 800; font-size: .9rem; }
.fopt { clear: both; display: flex; align-items: center; gap: .6rem; padding: .38rem 0; cursor: pointer; font-size: .95rem; }
.fopt input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); flex: none; }
.fopt__label { flex: 1; }
.fopt__count { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.fopt.is-empty { opacity: .45; cursor: default; }
.frange { clear: both; display: flex; align-items: center; gap: .5rem; }
.frange label { flex: 1; }
.frange input { width: 100%; padding: .62rem .7rem; border: 1.5px solid var(--line); border-radius: 10px; font: 600 .95rem var(--font); color: var(--ink); background: #fff; }
.frange input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255,68,1,.15); }
.fhint { margin: .45rem 0 0; font-size: .78rem; color: var(--muted); }
.cfilters__foot { position: sticky; bottom: -.6rem; display: flex; gap: .5rem; align-items: center; margin: 0 -1.1rem; padding: .8rem 1.1rem; background: #fff; border-top: 1px solid var(--line); }
.cfilters__apply { flex: 1; }
.js .cfilters__apply { display: none; } /* на широкому екрані з JS усе застосовується одразу */

/* Панель результатів */
.results__bar { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.results__filters-btn { display: none; }
.results__count { margin: 0; color: var(--muted); }
.results__count b { color: var(--ink); }
.results__sort { margin-left: auto; display: flex; align-items: center; gap: .5rem; font-size: .9rem; color: var(--muted); }
.results__sort select { padding: .6rem 2rem .6rem .8rem; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font: 700 .9rem var(--font); color: var(--ink); cursor: pointer; }
.results__fcount { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .3rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: .75rem; }

.applied { display: flex; flex-wrap: wrap; gap: .45rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.applied button { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .75rem; border: 0; border-radius: 999px; background: var(--ink); color: #fff; font: 600 .85rem var(--font); cursor: pointer; }
.applied button:hover { background: var(--accent); }
.applied__reset { display: inline-block; padding: .42rem .4rem; font-size: .85rem; font-weight: 700; color: var(--accent); }

/* Картки техніки */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1.1rem; }
.vcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, translate .2s; }
.vcard:hover { box-shadow: var(--shadow); translate: 0 -2px; }
.vcard__media { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9ecf2; overflow: hidden; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: scale .4s; }
.vcard:hover .vcard__media img { scale: 1.04; }
.vcard__type { position: absolute; left: .7rem; top: .7rem; padding: .3rem .6rem; border-radius: 8px; background: rgba(11,15,26,.78); color: #fff; font-size: .75rem; font-weight: 700; backdrop-filter: blur(6px); }
.vcard__photos { position: absolute; right: .7rem; bottom: .7rem; display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .5rem; border-radius: 8px; background: rgba(11,15,26,.7); color: #fff; font-size: .78rem; font-weight: 700; }
.vcard__photos svg { width: 15px; height: 15px; }
.vcard__body { display: flex; flex-direction: column; gap: .55rem; padding: 1rem 1.1rem 1.1rem; flex: 1; }
.vcard__title { margin: 0; font: 700 1.05rem/1.3 var(--font); text-transform: none; letter-spacing: 0; }
.vcard__title a { color: var(--ink); text-decoration: none; }
.vcard__title a:hover { color: var(--accent); }
.vcard__title a:focus-visible { outline: 3px solid rgba(255,68,1,.45); outline-offset: 2px; border-radius: 4px; }
.vcard__price { margin: 0; font: 700 1.55rem/1 var(--font-display); color: var(--ink); letter-spacing: .01em; }
.vcard__ask { font: 700 1rem var(--font); color: var(--muted); }
.vcard__specs { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.vcard__spec { padding: .28rem .55rem; border-radius: 7px; background: var(--tint); font-size: .8rem; font-weight: 600; color: #3b4256; }
.vcard__loc { display: flex; align-items: center; gap: .35rem; margin: 0; font-size: .82rem; color: var(--muted); }
.vcard__loc svg { width: 15px; height: 15px; color: var(--accent); }
.vcard__loc b { color: #12805c; font-weight: 700; }
.vcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: auto; padding-top: .35rem; }
.vcard__actions .btn { padding: .75rem .6rem; font-size: .9rem; }

.empty { padding: 2.5rem 1.5rem; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty h2 { font-size: 1.5rem; }
.empty p { color: var(--muted); max-width: 46ch; margin: 0 auto 1.2rem; }
.empty__actions { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }

.catalog-cta { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; margin-top: 1.6rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--bg); color: #fff; }
.catalog-cta b { font: 700 1.25rem var(--font-display); text-transform: uppercase; }
.catalog-cta p { margin: .3rem 0 0; color: rgba(255,255,255,.7); font-size: .95rem; }
.catalog-cta .btn { flex: none; }

/* Вузький екран: фільтри — панель знизу, кнопка «Фільтри» липка */
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; padding-top: 1rem; }
  .results__bar { position: sticky; top: 60px; z-index: 5; margin-inline: -20px; padding: .6rem 20px; background: rgba(244,245,248,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); gap: .6rem; }
  .results__filters-btn { display: inline-flex; padding: .6rem .9rem; font-size: .9rem; }
  .results__filters-btn svg { width: 18px; height: 18px; }
  .results__count { order: 3; width: 100%; font-size: .88rem; }
  .results__sort { flex: 1; min-width: 0; justify-content: flex-end; }
  .results__sort span { display: none; }
  .results__sort select { width: 100%; max-width: 15rem; }
  .cfilters { position: static; max-height: none; }
  .cfilters[popover] {
    position: fixed; inset: auto 0 0 0; margin: 0; width: 100%; max-width: none; max-height: 88dvh;
    border-radius: 20px 20px 0 0; border: 0; padding: 1rem 1.1rem 0; box-shadow: 0 -20px 60px rgba(0,0,0,.35);
  }
  .cfilters[popover]::backdrop { background: rgba(5,8,15,.5); }
  .cfilters__close { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: var(--tint); color: var(--ink); cursor: pointer; }
  .cfilters__close svg { width: 20px; height: 20px; }
  .js .cfilters__apply { display: inline-flex; }       /* Baymard: явна кнопка «Показати N» */
  .cfilters__foot { bottom: 0; padding-bottom: max(.8rem, env(safe-area-inset-bottom)); }
  @media (prefers-reduced-motion: no-preference) {
    .cfilters[popover] { transition: translate .22s ease-out, display .22s, overlay .22s; transition-behavior: allow-discrete; }
    .cfilters[popover]:not(:popover-open) { translate: 0 100%; }
    @starting-style { .cfilters[popover]:popover-open { translate: 0 100%; } }
  }
  .catalog-cta { flex-direction: column; align-items: stretch; text-align: left; }
}
@media (max-width: 760px) {
  .pagehead { padding-top: calc(60px + 1.4rem); }
  .pagehead__stat { display: none; }
  .crumbs li:last-child { display: none; }        /* поточна сторінка й так у заголовку */
  .vgrid { gap: .9rem; }
}

/* ===== Сторінка техніки ===== */
.unit-page { background: var(--tint); }
.pagehead--unit { padding-bottom: 1.4rem; }
.unit-title { font-size: clamp(1.6rem, 3.4vw, 2.6rem); max-width: 30ch; }
.unit-sub { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; color: rgba(255,255,255,.7); font-size: .92rem; }
.unit-tag { padding: .25rem .6rem; border-radius: 7px; background: rgba(255,255,255,.12); color: #fff; font-weight: 700; font-size: .8rem; }
.unit-stock { color: #46d39a; font-weight: 700; }

.unit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 1.6rem; align-items: start; padding-block: 1.6rem 3rem; }
.unit-main { display: grid; gap: 1.2rem; min-width: 0; }

/* Галерея: scroll-snap + кнопки + мініатюри */
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery__stage { position: relative; background: #0b0f1a; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; touch-action: manipulation; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline: 3px solid rgba(255,106,46,.7); outline-offset: -3px; }
.gallery__slide { flex: 0 0 100%; margin: 0; scroll-snap-align: center; aspect-ratio: 4 / 3; }
.gallery__slide img, .gallery__single { width: 100%; height: 100%; object-fit: contain; background: #0b0f1a; }
.gallery__single { aspect-ratio: 4 / 3; }
.gallery__controls { position: absolute; inset: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 0 .7rem; pointer-events: none; }
.gallery__btn { pointer-events: auto; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.25); touch-action: manipulation; transition: scale .15s; }
.gallery__btn:hover { scale: 1.06; }
.gallery__btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery__btn svg { width: 22px; height: 22px; stroke-width: 2.4; }
.gallery__counter { position: absolute; right: .8rem; bottom: .8rem; z-index: 2; margin: 0; padding: .3rem .65rem; border-radius: 8px; background: rgba(11,15,26,.75); color: #fff; font-size: .85rem; font-weight: 700; }
.gallery__thumbs { position: relative; display: flex; gap: .45rem; padding: .6rem; overflow-x: auto; scrollbar-width: thin; }
.gallery__thumbs button { flex: none; width: 92px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; background: #e9ecf2; cursor: pointer; opacity: .7; transition: opacity .15s, border-color .15s; }
.gallery__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--accent); } /* не лише колір: ще й повна непрозорість і рамка */
.gallery__thumbs button:focus-visible { outline: 3px solid rgba(255,68,1,.5); outline-offset: 1px; }
@media (prefers-reduced-motion: no-preference) { .gallery__track { scroll-behavior: smooth; } }

.unit-block { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; }
.unit-block h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2rem; margin: 0; }
.specs div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.unit-desc { color: #3b4256; }
.unit-desc > :first-child { margin-top: 0; }
.unit-desc > :last-child { margin-bottom: 0; }

/* Ціна та дії — липко праворуч */
.unit-side { position: sticky; top: 96px; }
.buybox { display: grid; gap: .8rem; padding: 1.4rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.buybox__price { margin: 0; font: 700 2.4rem/1 var(--font-display); color: var(--ink); }
.buybox__note { margin: -.3rem 0 0; font-size: .85rem; color: var(--muted); }
.buybox__facts { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.buybox__facts li { padding: .3rem .6rem; border-radius: 7px; background: var(--tint); font-size: .85rem; font-weight: 600; }
.buybox .btn svg { width: 18px; height: 18px; }
.buybox__trust { display: grid; gap: .55rem; margin: .3rem 0 0; padding: .9rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .88rem; color: #3b4256; }
.buybox__trust li { display: flex; gap: .55rem; align-items: flex-start; }
.buybox__trust svg { width: 18px; height: 18px; color: var(--accent); margin-top: .1rem; }

.unit-similar { padding: 0 0 4rem; }
.unit-similar__head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.unit-similar__head h2 { margin: 0; font-size: 1.6rem; }
.unit-similar__head a { color: var(--accent); font-weight: 700; text-decoration: none; }

.unitbar { display: none; }

@media (max-width: 900px) {
  .unit-layout { grid-template-columns: 1fr; padding-top: 0; }
  .unit-main { margin-inline: -20px; gap: .9rem; }
  .gallery { border-radius: 0; border-width: 0 0 1px; }
  .unit-block { border-radius: 0; border-width: 1px 0; }
  .unit-side { position: static; }
  .buybox { box-shadow: none; }
  .specs { grid-template-columns: 1fr; }
  .gallery__controls { display: none; }   /* на телефоні — свайп */
  .gallery__thumbs button { width: 72px; }
  /* нижня панель: ціна + дзвінок + «Хочу цю» */
  .unitbar {
    position: fixed; inset: auto 0 0; z-index: 30; display: flex; align-items: center; gap: .5rem;
    padding: .6rem .8rem max(.6rem, env(safe-area-inset-bottom)); background: rgba(255,255,255,.97);
    border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(11,15,26,.12); backdrop-filter: blur(8px);
  }
  .unitbar__price { flex: 1; display: grid; line-height: 1.1; }
  .unitbar__price span { font-size: .72rem; color: var(--muted); }
  .unitbar__price b { font: 700 1.35rem var(--font-display); color: var(--ink); }
  .unitbar__call { width: 46px; height: 46px; border: 1.5px solid var(--line); color: var(--ink); }
  .unitbar .btn { padding: .85rem 1.2rem; }
  .page-unit .footer { padding-bottom: 5.5rem; }
}

/* Головна: картки наявності ведуть на сторінки техніки */
a.unit__img { display: block; }
.unit__name a { color: inherit; text-decoration: none; }
.unit__name a:hover { color: var(--accent); }
.stock__all { display: flex; justify-content: center; margin: 1.6rem 0 0; }
.stock__all .btn svg { width: 20px; height: 20px; }

/* ===== «Під замовлення»: компактніші категорії на ноутбуках і десктопах =====
   4 колонки: «Тягачі» 2×2 ліворуч, чотири категорії квадратом праворуч, «Потрібне інше?» — смуга на всю ширину. */
@media (min-width: 1101px) {
  .cats { grid-template-columns: repeat(4, 1fr); gap: .9rem; }
  .cat__media { aspect-ratio: 16 / 9; }
  .cat__media img { padding: .6rem .8rem 0; }
  .cat__body { padding: .8rem 1.1rem 1rem; gap: .2rem; }
  .cat__title { font-size: 1.2rem; }
  .cat__text { font-size: .86rem; line-height: 1.4; }
  .cat__cta { font-size: .9rem; margin-top: .25rem; }
  .cat--xl .cat__media { min-height: 0; }
  .cat--xl .cat__media img { padding: 1.4rem 1.6rem 0; }
  .cat--xl .cat__body { padding: 1rem 1.4rem 1.3rem; }
  .cat--xl .cat__title { font-size: 1.9rem; }
  .cat--xl .cat__text { font-size: .98rem; }
  .cat--accent {
    grid-column: 1 / -1; min-height: 0; flex-direction: row; align-items: center; justify-content: space-between;
  }
  .cat--accent .cat__body { grid-template-columns: auto 1fr auto; align-items: center; column-gap: 1.2rem; width: 100%; margin: 0; padding: 1.1rem 1.5rem; }
  .cat--accent .cat__cta { margin: 0; padding: .65rem 1.1rem; border-radius: 10px; background: rgba(255,255,255,.16); white-space: nowrap; }
}
/* 901–1100 px: три колонки, але нижчі картки */
@media (min-width: 901px) and (max-width: 1100px) {
  .cat__media { aspect-ratio: 16 / 9; }
  .cat__body { padding: .85rem 1.1rem 1.05rem; }
  .cat__title { font-size: 1.2rem; }
  .cat--xl .cat__title { font-size: 1.9rem; }
  .cat--accent { min-height: 0; }
}

/* ===== Текстові сторінки (політика конфіденційності) ===== */
.text-page { background: var(--paper); }
.pagehead--slim { padding-bottom: 1.8rem; }
.prose { max-width: 72ch; padding: 2.2rem 0 4rem; color: #2a3042; font-size: 1.02rem; }
.prose h2 { font: 700 1.3rem/1.25 var(--font); text-transform: none; letter-spacing: 0; margin: 2rem 0 .6rem; color: var(--ink); }
.prose p, .prose ul { margin: 0 0 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: .35rem; }
.prose a { color: var(--accent); }
mark.todo { background: #fff1c2; color: #7a4b00; padding: .05em .3em; border-radius: 4px; font-weight: 600; }
