/* ВольтМаркет — вітрина. Без фреймворків, ~15 КБ. */
:root {
  --brand: #00a046;
  --brand-hover: #00bc52;
  --brand-press: #008a3c;
  --brand-soft: #e7f6ed;
  --accent: #ffd23f;
  --sale: #e0262d;
  --brand-text: #007a35;
  --ink: #221f1f;
  --ink-2: #3e3e3e;
  --muted: #797878;
  --line: #e9e9e9;
  --bg: #f5f5f5;
  --card: #fff;
  --header: #221f1f;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0, 0, 0, .08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, .18);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --container: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.45 var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.2; }
.icon { width: 24px; height: 24px; flex: none; }
.icon-sm { width: 18px; height: 18px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 16px; }
:focus-visible { outline: 3px solid rgba(0, 160, 70, .45); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border: 0; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:active { background: var(--brand-press); }
.btn-outline { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 2px var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-lg { min-height: 52px; font-size: 16px; padding: 0 28px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- Header ---------- */
.header { background: var(--header); color: #fff; position: sticky; top: 0; z-index: 40; }
.header__row { display: flex; align-items: center; gap: 16px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 21px; letter-spacing: -.02em; flex: none; }
.logo__mark { width: 38px; height: 38px; border-radius: 10px; background: var(--accent); color: var(--header); display: grid; place-items: center; }
.logo__mark .icon { width: 22px; height: 22px; }
.logo__text b { color: var(--accent); font-weight: 800; }
.catalog-btn { background: var(--brand); color: #fff; }
.search { flex: 1; display: flex; min-width: 0; max-width: 720px; }
.search input {
  flex: 1; min-width: 0; height: 44px; border: 2px solid transparent; border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 0 14px; background: #fff; color: var(--ink); outline: none;
}
.search input:focus { border-color: var(--brand); }
.search button { height: 44px; border: 0; padding: 0 22px; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--brand); color: #fff; font-weight: 600; }
.header__contact { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; color: #bdbdbd; flex: none; }
.header__contact a { color: #fff; font-weight: 700; font-size: 16px; }
.header__actions { display: flex; gap: 4px; margin-left: auto; flex: none; }
.icon-btn {
  position: relative; width: 48px; height: 48px; border-radius: 10px; border: 0; background: transparent; color: inherit;
  display: grid; place-items: center; transition: background-color 150ms ease, transform 140ms var(--ease-out);
}
.icon-btn:active { transform: scale(0.94); }
.badge {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid var(--header);
}
.badge[hidden] { display: none; }
.header__search-mobile { display: none; padding: 0 0 12px; }

/* ---------- Layout ---------- */
.page { padding: 20px 0 48px; }
.layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.layout > * { min-width: 0; }
.sidebar { background: var(--card); border-radius: var(--radius); padding: 8px; position: sticky; top: 88px; }
.cat-list { list-style: none; margin: 0; padding: 0; }
.cat-link {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--ink-2); transition: background-color 150ms ease, color 150ms ease;
}
.cat-link[aria-current="true"] { color: var(--brand); background: var(--brand-soft); font-weight: 600; }
.cat-link .icon { color: var(--brand); }
.cat-link .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.sidebar__info { margin: 8px 4px 4px; padding: 14px 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.sidebar__info strong { display: block; color: var(--ink); font-size: 15px; margin: 2px 0 6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius); color: #fff;
  background: radial-gradient(120% 140% at 90% 10%, #1f6b43 0%, #133b28 45%, #0d1f17 100%);
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; min-height: 320px;
}
.hero__body { padding: 40px 0 40px 44px; position: relative; z-index: 1; }
.hero__tag { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; background: rgba(255, 210, 63, .16); color: var(--accent); font-weight: 600; font-size: 13px; }
.hero h1 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -.02em; margin: 14px 0 12px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { margin: 0 0 24px; color: rgba(255, 255, 255, .78); font-size: 17px; max-width: 520px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-outline { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); }
.hero__art { position: relative; height: 100%; min-height: 280px; }
.hero__art img { position: absolute; width: 330px; right: 40px; bottom: 10px; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.hero__art::before { content: ""; position: absolute; width: 360px; height: 360px; right: 20px; top: 50%; transform: translateY(-50%); border-radius: 50%; background: radial-gradient(circle, rgba(255, 210, 63, .28), transparent 65%); }

.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 16px 0 0; }
.perk { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: var(--radius); padding: 14px 16px; font-size: 13px; color: var(--muted); }
.perk .icon { color: var(--brand); width: 28px; height: 28px; }
.perk strong { display: block; color: var(--ink); font-size: 14px; }

/* ---------- Sections ---------- */
.section { margin-top: 28px; }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.section__title { font-size: 24px; letter-spacing: -.01em; overflow-wrap: anywhere; min-width: 0; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chip {
  height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font-size: 14px; color: var(--ink-2);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.select { height: 36px; border-radius: 18px; border: 1px solid var(--line); background: #fff; padding: 0 12px; font-size: 14px; }
.results-note { color: var(--muted); font-size: 14px; }

#catalog, #consult { scroll-margin-top: 88px; }

/* ---------- Product grid & card ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); box-shadow: 0 0 0 1px var(--line); padding: 16px; display: flex; flex-direction: column; position: relative; min-width: 0; transition: box-shadow 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .card:hover { box-shadow: 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, .10); z-index: 2; }
  .card:hover .card__title { color: var(--brand-press); }
}
.card__media { display: block; aspect-ratio: 1; margin-bottom: 12px; position: relative; }
.card__media img { width: 100%; height: 100%; object-fit: contain; }
.card__badges { position: absolute; top: 0; left: 0; display: flex; flex-direction: column; gap: 4px; z-index: 1; }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; color: #fff; background: var(--brand); }
.tag--sale { background: var(--sale); }
.tag--hit { background: var(--accent); color: var(--ink); }
.card__title { font-size: 14px; line-height: 1.35; height: 2.7em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color 150ms ease; }
.card__specs { margin-top: 6px; font-size: 12px; color: var(--muted); min-height: 1.4em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__bottom { margin-top: auto; padding-top: 10px; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; display: block; min-height: 1.3em; }
.price { font-size: 22px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.price--sale { color: var(--sale); }
.price small { font-size: .7em; font-weight: 600; }
.cart-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none;
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.cart-btn:active { transform: scale(0.92); }
.cart-btn.is-in { background: var(--brand); color: #fff; }
.stock { font-size: 13px; margin-top: 6px; color: var(--brand-text); }
.stock--out { color: var(--muted); }
.card--out .card__media img { opacity: .45; }

.skeleton { background: linear-gradient(90deg, #eee 0, #f7f7f7 40%, #eee 80%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 8px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { background: var(--card); border-radius: var(--radius); padding: 48px 16px; text-align: center; color: var(--muted); }

/* ---------- Consult block (форма зворотного зв'язку) ---------- */
.consult { margin-top: 28px; border-radius: var(--radius); background: var(--card); display: grid; grid-template-columns: 1fr 1fr; overflow: hidden; }
.consult__text { padding: 32px; background: linear-gradient(135deg, var(--brand-soft), #fff); }
.consult__text h2 { font-size: 26px; margin-bottom: 10px; }
.consult__text ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; color: var(--ink-2); }
.consult__text li { display: flex; gap: 10px; align-items: center; }
.consult__text li .icon { color: var(--brand); }
.consult form { padding: 32px; display: grid; gap: 12px; align-content: start; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; color: var(--muted); }
.input, .textarea {
  width: 100%; height: 46px; border: 1px solid #d2d2d2; border-radius: var(--radius-sm); padding: 0 14px; background: #fff;
  transition: border-color 150ms ease, box-shadow 150ms ease; font-size: 16px;
}
.textarea { height: auto; min-height: 84px; padding: 12px 14px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(0, 160, 70, .15); }
.input[aria-invalid="true"] { border-color: var(--sale); box-shadow: 0 0 0 3px rgba(248, 65, 71, .12); }
.form-error { color: var(--sale); font-size: 13px; min-height: 1em; }
.form-note { font-size: 12px; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; color: var(--ink); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.modal { width: min(460px, calc(100vw - 24px)); }
.modal__box { background: #fff; border-radius: 16px; padding: 28px; position: relative; box-shadow: var(--shadow-lg); }
.modal__box h2 { font-size: 22px; margin-bottom: 6px; padding-right: 32px; }
.modal__box > p { margin: 0 0 18px; color: var(--muted); }
.modal__close { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: transparent; color: var(--muted); display: grid; place-items: center; }
.modal form { display: grid; gap: 12px; }
.modal[open] .modal__box { animation: modal-in 260ms var(--ease-out); }
dialog.is-closing::backdrop { opacity: 0; transition: opacity 180ms ease; }
.modal.is-closing .modal__box { opacity: 0; transform: scale(0.97); transition: opacity 160ms ease, transform 160ms var(--ease-out); }
.drawer.is-closing .drawer__box { transform: translateX(100%); transition: transform 200ms var(--ease-out); }
.drawer--left.is-closing .drawer__box { transform: translateX(-100%); }
.modal[open]::backdrop { animation: fade-in 200ms ease; }
@keyframes modal-in { from { opacity: 0; transform: scale(0.96) translateY(8px); } }
@keyframes fade-in { from { opacity: 0; } }
.mini-product { display: flex; gap: 12px; align-items: center; padding: 10px; background: var(--bg); border-radius: var(--radius-sm); margin-bottom: 14px; }
.mini-product img { width: 56px; height: 56px; object-fit: contain; background: #fff; border-radius: 6px; }
.mini-product b { display: block; font-size: 14px; }

/* Drawer (кошик, мобільне меню) */
.drawer { margin: 0 0 0 auto; height: 100dvh; width: min(440px, 100vw); }
.drawer--left { margin: 0 auto 0 0; }
.drawer__box { background: #fff; height: 100%; display: flex; flex-direction: column; }
.drawer[open] .drawer__box { animation: drawer-in 360ms var(--ease-drawer); }
.drawer--left[open] .drawer__box { animation-name: drawer-in-left; }
.drawer[open]::backdrop { animation: fade-in 240ms ease; }
@keyframes drawer-in { from { transform: translateX(100%); } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-size: 20px; }
.drawer__body { flex: 1; overflow: auto; padding: 8px 20px; }
.drawer__foot { padding: 16px 20px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 64px; object-fit: contain; }
.cart-item__name { font-size: 14px; line-height: 1.3; }
.cart-item__price { font-weight: 700; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 8px; margin-top: 6px; }
.qty button { width: 40px; height: 40px; border: 0; background: transparent; display: grid; place-items: center; color: var(--ink-2); }
.qty span { min-width: 28px; text-align: center; font-weight: 600; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; }
.cart-total b { font-size: 24px; }
.cart-empty { text-align: center; color: var(--muted); padding: 48px 0; }
.cart-empty .icon { width: 64px; height: 64px; color: #cfcfcf; margin: 0 auto 12px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; pointer-events: none; width: min(420px, calc(100vw - 32px)); }
.toast {
  background: var(--header); color: #fff; padding: 14px 16px; border-radius: 12px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center;
  font-size: 14px; transition: opacity 400ms ease, transform 400ms ease; pointer-events: auto;
}
.toast .icon { color: var(--brand-hover); }
.toast--error .icon { color: var(--sale); }
@starting-style { .toast { opacity: 0; transform: translateY(16px); } }
.toast.is-leaving { opacity: 0; transform: translateY(16px); transition-duration: 200ms; }

/* ---------- Chat widget ---------- */
.chat-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; height: 56px; padding: 0 20px 0 16px; border-radius: 28px; border: 0;
  background: var(--brand); color: #fff; display: flex; align-items: center; gap: 8px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 160, 70, .4);
  transition: transform 160ms var(--ease-out), background-color 150ms ease, opacity 200ms ease;
}
.chat-fab:active { transform: scale(0.96); }
.chat-fab .badge { top: -4px; right: -4px; background: var(--sale); border-color: #fff; }
.chat-fab[data-hidden="true"] { opacity: 0; transform: scale(0.9); pointer-events: none; }
.chat {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 380px; height: min(580px, calc(100dvh - 40px));
  background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; overflow: hidden;
  transform-origin: bottom right; transition: opacity 200ms var(--ease-out), transform 240ms var(--ease-out), visibility 0s linear 240ms;
  opacity: 0; transform: scale(0.95) translateY(8px); visibility: hidden;
}
.chat.is-open { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.chat__head { background: var(--header); color: #fff; padding: 14px 14px 14px 18px; display: flex; align-items: center; gap: 12px; }
.chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--header); display: grid; place-items: center; flex: none; position: relative; }
.chat__avatar::after { content: ""; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--brand-hover); border: 2px solid var(--header); }
.chat__who { flex: 1; line-height: 1.25; }
.chat__who b { display: block; }
.chat__who span { font-size: 12px; color: #bdbdbd; }
.chat__head .icon-btn { width: 40px; height: 40px; }
.chat__body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f3f5f4; overscroll-behavior: contain; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-wrap: break-word; }
.msg--operator { background: #fff; align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.msg--visitor { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--pending { opacity: .6; }
.msg--failed { background: #fde8e9; color: var(--sale); }
.msg time { display: block; font-size: 11px; opacity: .6; margin-top: 2px; text-align: right; }
.msg-new { animation: msg-in 220ms var(--ease-out); }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.chat__system { align-self: center; font-size: 12px; color: var(--muted); text-align: center; padding: 4px 8px; }
.chat__intro { display: grid; gap: 8px; padding: 12px; background: #fff; border-radius: 12px; font-size: 13px; color: var(--muted); }
.chat__intro .input { height: 40px; font-size: 15px; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat__quick button { border: 1px solid var(--brand); color: var(--brand-text); background: #fff; border-radius: 16px; padding: 6px 12px; font-size: 13px; transition: background-color 150ms ease; }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); align-items: flex-end; }
.chat__form textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; max-height: 120px; min-height: 44px; font-size: 16px; line-height: 1.35; }
.chat__form textarea:focus { outline: none; border-color: var(--brand); }
.chat__send { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; transition: transform 140ms var(--ease-out), background-color 150ms ease; }
.chat__send:active { transform: scale(0.92); }

/* ---------- Product page ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.crumbs .icon { width: 14px; height: 14px; }
.pdp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--card); border-radius: var(--radius); padding: 24px; }
.gallery__main { aspect-ratio: 1; display: grid; place-items: center; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; }
.gallery__thumbs button { width: 72px; height: 72px; border-radius: 10px; border: 2px solid var(--line); background: #fff; padding: 4px; flex: none; transition: border-color 150ms ease; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pdp__title { font-size: 26px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.pdp__meta { display: flex; gap: 16px; flex-wrap: wrap; margin: 10px 0 0; color: var(--muted); font-size: 13px; }
.pdp__short { color: var(--ink-2); margin: 14px 0 0; }
.buy-box { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 14px; }
.buy-box .price { font-size: 34px; }
.buy-box__price { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.buy-box__save { color: var(--sale); font-weight: 600; font-size: 14px; }
.buy-box__stock { font-size: 14px; color: var(--brand-text); font-weight: 600; }
.buy-box__stock--out { color: var(--muted); }
.pdp__aside { position: sticky; top: 88px; }
.buy-bar { display: none; }
.buy-box__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.key-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 18px; }
.key-spec { background: var(--bg); border-radius: 10px; padding: 12px; }
.key-spec span { display: block; font-size: 12px; color: var(--muted); }
.key-spec b { font-size: 17px; }
.info-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; font-size: 14px; color: var(--ink-2); }
.info-list li { display: flex; gap: 10px; align-items: center; }
.info-list .icon { color: var(--brand); }
.pdp__sections { display: grid; gap: 20px; margin-top: 20px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.desc { white-space: pre-line; color: var(--ink-2); }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs th, .specs td { text-align: left; padding: 10px 0; border-bottom: 1px dashed var(--line); vertical-align: top; }
.specs th { color: var(--muted); font-weight: 400; width: 50%; padding-right: 12px; }
.calc { display: grid; gap: 12px; }
.calc__devices { display: flex; flex-wrap: wrap; gap: 6px; }
.calc__result { background: var(--brand-soft); border-radius: 10px; padding: 14px; font-size: 14px; }
.calc__result b { font-size: 24px; color: var(--brand-press); display: block; }

/* ---------- Footer ---------- */
.footer { background: var(--header); color: #bdbdbd; padding: 36px 0 28px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px; }
.footer h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 12px; }

/* ---------- Hover лише для миші ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--brand-hover); }
  .btn-primary:active { background: var(--brand-press); }
  .btn-outline:hover { background: var(--brand-soft); }
  .btn-ghost:hover { background: rgba(0, 0, 0, .05); }
  .catalog-btn:hover { background: var(--brand-hover); }
  .search button:hover { background: var(--brand-hover); }
  .icon-btn:hover { background: rgba(255, 255, 255, .1); }
  .cat-link:hover { color: var(--brand); background: var(--brand-soft); }
  .hero .btn-outline:hover { background: rgba(255, 255, 255, .08); }
  .chip:hover { border-color: var(--brand); color: var(--brand); }
  .cart-btn:hover { background: var(--brand); color: #fff; }
  .modal__close:hover { background: var(--bg); color: var(--ink); }
  .qty button:hover { color: var(--brand); }
  .chat-fab:hover { background: var(--brand-hover); }
  .chat__quick button:hover { background: var(--brand-soft); }
  .chat__send:hover { background: var(--brand-hover); }
  .crumbs a:hover { color: var(--brand); }
  .footer a:hover { color: #fff; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .header__contact { display: none; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero__body { padding: 28px 24px 8px; }
  .hero__art { min-height: 200px; }
  .hero__art img { width: 220px; right: 50%; transform: translateX(50%); }
  .hero__art::before { right: 50%; transform: translate(50%, -50%); width: 260px; height: 260px; }
  .consult { grid-template-columns: 1fr; }
  .pdp, .pdp__sections { grid-template-columns: minmax(0, 1fr); }
  .pdp__aside { position: static; }
  .grid--4 { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header__row { height: 60px; gap: 8px; }
  .header .search { display: none; }
  .header__search-mobile { display: block; }
  .header__search-mobile .search { display: flex; max-width: none; }
  .catalog-btn span { display: none; }
  .catalog-btn { width: 44px; padding: 0; }
  .logo { font-size: 18px; }
  .logo__mark { width: 34px; height: 34px; }
  .icon-btn { width: 44px; height: 44px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 12px; }
  .price { font-size: 18px; }
  .cart-btn { width: 40px; height: 40px; }
  .section__title { font-size: 20px; }
  .consult__text, .consult form { padding: 22px; }
  .panel { padding: 18px; }
  .pdp__title { font-size: 21px; }
  .buy-box .price { font-size: 28px; }
  .chat { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; }
  .chat-fab { right: 14px; bottom: 14px; padding: 0; width: 56px; justify-content: center; }
  .chat-fab span { display: none; }
  .header__actions .js-chat-open { display: none; }
  #catalog, #consult { scroll-margin-top: 132px; }
  .hero__art { display: none; }
  .hero__body { padding: 24px 20px; }
  .hero h1 { font-size: 26px; }
  .hero p { font-size: 15px; margin-bottom: 18px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .js-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  .js-chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  /* модалки — нижня шторка */
  .modal { margin: auto 0 0; width: 100vw; max-width: 100vw; }
  .modal__box { border-radius: 16px 16px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .modal[open] .modal__box { animation: sheet-in 320ms var(--ease-drawer); }
  .modal.is-closing .modal__box { transform: translateY(100%); opacity: 1; transition: transform 200ms var(--ease-out); }
  /* липка панель покупки на сторінці товару */
  .buy-bar {
    display: flex; align-items: center; gap: 12px; position: fixed; inset: auto 0 0; z-index: 45;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; box-shadow: 0 -4px 16px rgba(0, 0, 0, .08);
    transform: translateY(110%); transition: transform 240ms var(--ease-out);
  }
  .buy-bar.is-visible { transform: none; }
  .card__specs { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.8em; }
  .buy-bar .price { font-size: 20px; }
  .buy-bar .price-old { font-size: 12px; min-height: 0; }
  .buy-bar .btn { margin-left: auto; flex: 0 1 200px; }
  .has-buybar .chat-fab { bottom: 84px; transition: bottom 240ms var(--ease-out), transform 160ms var(--ease-out), opacity 200ms ease; }
  .has-buybar:not(.buybar-shown) .chat-fab { bottom: 14px; }
  .buybar-shown .toasts { bottom: calc(88px + env(safe-area-inset-bottom)); }
  .has-buybar .footer { padding-bottom: 96px; }
}
@keyframes sheet-in { from { transform: translateY(100%); } }
@media (max-width: 380px) {
  .logo__text { display: none; }
  .buy-box__actions { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
  .chat, .toast { transition: opacity 150ms ease !important; transform: none !important; }
  .modal.is-closing .modal__box, .drawer.is-closing .drawer__box { transform: none !important; opacity: 0; transition: opacity 150ms ease !important; }
  .buy-bar { transition: none !important; }
}

/* ---------- SEO-блоки: тексти категорій, FAQ, відгуки, інфосторінки ---------- */
a.chip { display: inline-flex; align-items: center; text-decoration: none; }
.chip[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.seo-intro { margin: -4px 0 16px; color: var(--ink-2); max-width: 900px; }
.seo-text { margin-top: 20px; color: var(--ink-2); line-height: 1.6; }
.seo-text h2 { font-size: 20px; color: var(--ink); margin: 0 0 10px; }
.seo-text h3 { font-size: 17px; color: var(--ink); margin: 18px 0 6px; }
.seo-text p { margin: 0 0 10px; }
.seo-text ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.seo-text a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }
.faq details { border-top: 1px solid var(--line); padding: 12px 0; }
.faq details:first-of-type { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--brand); transition: transform 200ms var(--ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 8px 0 0; }
.info-page { max-width: 860px; }
.info-page h1 { font-size: 28px; margin-bottom: 16px; color: var(--ink); }
.menu-h { margin: 14px 12px 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.info-list a { color: var(--brand-text); text-decoration: underline; text-underline-offset: 2px; }

.stars { display: inline-flex; gap: 1px; color: #d6d6d6; font-size: 15px; line-height: 1; vertical-align: -1px; }
.stars i { font-style: normal; }
.stars .on { color: #f5a623; }
.stars .half { background: linear-gradient(90deg, #f5a623 50%, #d6d6d6 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card__rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.pdp__meta a { color: var(--ink-2); display: inline-flex; gap: 6px; align-items: center; }
.reviews h2 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.reviews__sum { font-size: 14px; font-weight: 500; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.reviews__list { display: grid; gap: 14px; margin-bottom: 16px; }
.review { border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.review:last-child { border-bottom: 0; }
.review__head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.review__head time { margin-left: auto; font-size: 12px; color: var(--muted); }
.review p { margin: 6px 0 0; color: var(--ink-2); white-space: pre-line; }
.review-form summary { list-style: none; display: inline-flex; }
.review-form summary::-webkit-details-marker { display: none; }
.review-form[open] summary { display: none; }
.review-form form { display: grid; gap: 12px; max-width: 560px; }
.review-thanks { color: var(--brand-text); font-weight: 600; }
.rate { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.rate input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rate label { font-size: 32px; line-height: 1; color: #d6d6d6; cursor: pointer; padding: 2px; transition: color 120ms ease; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: #f5a623; }
.rate input:focus-visible + label { outline: 3px solid rgba(0, 160, 70, .45); border-radius: 4px; }

.footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- Дизайн-раунд 3: SEO-сторінки, відгуки, футер ---------- */
html, body { min-height: 100%; }
body { display: flex; flex-direction: column; min-height: 100dvh; }
main.page { flex: 1 0 auto; }
.muted { color: var(--muted); }
.link-btn { border: 0; background: none; padding: 4px 0; color: var(--brand-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Єдина шкала заголовків */
.pdp__title, h1.section__title, .info-page h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.01em; }
#catalog, #consult, #reviews { scroll-margin-top: 88px; }

/* Каталог: H1 → вступ → чіпи → фільтри → сітка */
.js-chips { margin-bottom: 12px; scroll-snap-type: x proximity; }
.js-chips .chip { scroll-snap-align: center; }
.catalog-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.catalog-bar .results-note { margin: 0; }
.catalog-bar__sort { margin-left: auto; }
.seo-intro { max-width: 70ch; }
.seo-intro p { margin: 0; }

/* Довгі тексти: 60–75 знаків у рядку, більший відступ над заголовками */
.seo-text > :is(p, ul, h2, h3, details, table) { max-width: 70ch; }
.seo-text * + h2 { margin-top: 28px; }
.seo-text * + h3 { margin-top: 20px; }
.seo-text table.specs { max-width: 70ch; margin: 6px 0 8px; }
.seo-text table.specs thead th { color: var(--ink); font-weight: 600; }

/* FAQ: тач-ціль 48px */
.faq details { padding: 0; }
.faq summary { min-height: 48px; align-items: center; padding: 12px 0; }
.faq details p { margin: 0 0 14px; }
@media (hover: hover) and (pointer: fine) { .faq summary:hover { color: var(--brand-press); } }

/* Інфосторінки з карткою допомоги */
.info-layout { display: grid; grid-template-columns: minmax(0, 760px) 320px; gap: 20px; align-items: start; }
.info-page { max-width: none; }
.help-card { position: sticky; top: 88px; display: grid; gap: 12px; }
.help-card h2 { font-size: 18px; margin: 0; }
.help-card p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* Підходить для … */
.fits { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; font-size: 13px; color: var(--muted); }
.fits .chip { height: 30px; font-size: 13px; padding: 0 10px; }

/* Рейтинг біля назви товару */
.rating-link { text-decoration: underline dotted; text-underline-offset: 3px; padding-block: 12px; margin-block: -12px; }

/* Форма відгуку: великі зірки й підпис оцінки */
.rate-wrap { border: 0; padding: 0; margin: 0; display: grid; gap: 4px; }
.rate-wrap legend { font-size: 13px; color: var(--ink-2); padding: 0; margin-bottom: 4px; }
.rate label { min-width: 44px; min-height: 44px; display: grid; place-items: center; font-size: 32px; padding: 0; }
.rate input:checked ~ label { color: #f5a623; }
.rate label:hover, .rate label:hover ~ label { color: #d6d6d6; }
@media (hover: hover) and (pointer: fine) {
  .rate:hover label { color: #d6d6d6; }
  .rate label:hover, .rate label:hover ~ label { color: #f5a623; }
}
.rate-text { font-size: 13px; color: var(--muted); }

/* Футер і меню */
.footer .logo { color: #fff; }
.footer [data-setting="phone"] { font-weight: 700; color: #fff; }
.footer ul { gap: 0; }
.footer ul a { display: inline-flex; align-items: center; min-height: 36px; }
.cat-list--plain .cat-link { padding-left: 46px; }

@media (max-width: 900px) {
  .info-layout { grid-template-columns: minmax(0, 1fr); }
  .help-card { position: static; }
}
@media (max-width: 720px) {
  .pdp__title, h1.section__title, .info-page h1 { font-size: 22px; }
  #catalog, #consult, #reviews { scroll-margin-top: 132px; }
  .js-intro:not(.is-open) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .catalog-bar__sort { margin-left: 0; width: 100%; }
  .catalog-bar__sort .select { flex: 1; min-width: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "brand brand" "cat buy" "pop pop"; }
  .footer__grid > :nth-child(1) { grid-area: brand; }
  .footer__grid > :nth-child(2) { grid-area: cat; }
  .footer__grid > :nth-child(3) { grid-area: pop; }
  .footer__grid > :nth-child(4) { grid-area: buy; }
  .footer ul a { min-height: 44px; }
  .crumbs { font-size: 13px; }
  .crumbs a { padding-block: 10px; }
  .crumbs [aria-current="page"], .crumbs .icon:last-of-type { display: none; }
}
