/* =====================================================================
   ДЖЕРЕЛО — дизайн-система інтернет-магазину.
   Сітка й відступи — утиліти Tailwind (зібрані в /css/tw.css), компоненти — цей файл.
   Палітра: глибокий «водяний» синій (шапка, футер), жовто-бурштинова кнопка дії,
   бірюзовий акцент для посилань, світлий нейтральний фон для читабельності каталогу.
   ===================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-cyrillic-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2-variations"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  color-scheme: light;
  --bg: 255 255 255;
  --surface: 255 255 255;
  --surface2: 245 246 248;
  --ink: 23 23 28;
  --muted: 90 94 104;
  --line: 226 228 234;
  --brand: 255 189 20;
  --brand-strong: 214 148 0;
  --on-brand: 23 23 28;
  --accent: 146 90 0;
  --navy: 17 24 39;
  --navy-2: 24 32 48;
  --ok: 22 140 78;
  --danger: 190 48 48;
  --warn: 146 90 0;
  --plate: 255 255 255;
  --shadow: 15 23 42;
  --focus: 214 148 0;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: rgb(var(--bg));
  color: rgb(var(--ink));
  font-family: Inter, "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid rgb(var(--focus)); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
.tabular { font-variant-numeric: tabular-nums; }

.container-x { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container-x { padding: 0 24px; } }
@media (min-width: 1024px) { .container-x { padding: 0 32px; } }

.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: rgb(var(--brand)); color: rgb(var(--on-brand)); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 8px; }

/* ---------- Верхня смуга та шапка ---------- */
.topbar { background: rgb(var(--navy)); color: rgb(190 205 222); font-size: 12.5px; }
.topbar a:hover { color: #fff; }
.topbar .topbar-links a { padding: 0 2px; }

.site-header { position: sticky; top: 0; z-index: 60; background: rgb(var(--navy-2)); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .06), 0 8px 24px rgb(var(--shadow) / .12); }
.header-row { display: flex; align-items: center; gap: 10px; height: 64px; }
@media (min-width: 1024px) { .header-row { height: 74px; gap: 18px; } }
.logo-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: #fff; }
.logo-mark { width: auto; height: 36px; flex-shrink: 0; }
@media (min-width: 1024px) { .logo-mark { width: auto; height: 42px; } }
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-text b { font-size: 20px; font-weight: 800; letter-spacing: .06em; }
.logo-text small { display: none; margin-top: 5px; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; color: rgb(150 175 200); }
@media (min-width: 1024px) { .logo-text b { font-size: 23px; } .logo-text small { display: block; } }
.footer-logo .logo-text small { display: block; }

.catalog-btn { display: none; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 12px; background: rgb(var(--brand)); color: rgb(var(--on-brand)); font-weight: 800; font-size: 15px; border: 0; flex-shrink: 0; }
.catalog-btn:hover { background: rgb(var(--brand-strong)); }
.catalog-btn svg { width: 20px; height: 20px; }
@media (min-width: 1024px) { .catalog-btn { display: inline-flex; } }

.header-search { position: relative; flex: 1; display: none; }
@media (min-width: 1024px) { .header-search { display: block; } }
.search-input { width: 100%; height: 46px; border-radius: 12px; border: 2px solid transparent; background: rgb(255 255 255); color: rgb(var(--ink)); padding: 0 14px 0 44px; font-size: 15px; }
.search-input::placeholder { color: rgb(110 125 145); }
.search-input:focus { outline: none; border-color: rgb(var(--brand)); }
.search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: rgb(110 125 145); pointer-events: none; }
.header-search-mobile .search-input { background: rgb(255 255 255 / .1); color: #fff; height: 42px; border: 1px solid rgb(255 255 255 / .18); }
.header-search-mobile .search-input::placeholder { color: rgb(160 180 200); }
.header-search-mobile .search-input:focus { background: rgb(255 255 255 / .16); }
.header-search-mobile .search-icon { color: rgb(160 180 200); }
.search-dropdown { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60; background: rgb(var(--surface)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); border-radius: 14px; box-shadow: 0 18px 40px rgb(var(--shadow) / .22); overflow: hidden; max-height: 70vh; overflow-y: auto; }
.search-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; cursor: pointer; border-bottom: 1px solid rgb(var(--line)); }
.search-item:last-child { border-bottom: 0; }
.search-item:hover, .search-item:focus { background: rgb(var(--surface2)); outline: none; }
.search-section { padding: 8px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--muted)); }

.hdr-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; min-width: 44px; padding: 0 12px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: #fff; font-weight: 600; font-size: 13.5px; transition: background .15s; }
.hdr-btn:hover { background: rgb(255 255 255 / .1); }
.hdr-btn svg { width: 22px; height: 22px; }
.hdr-phone { display: none; flex-direction: column; align-items: flex-end; line-height: 1.15; padding: 0 8px; }
.hdr-phone b { font-size: 15px; font-weight: 800; }
.hdr-phone small { font-size: 11px; color: rgb(150 175 200); }
@media (min-width: 1180px) { .hdr-phone { display: flex; } }
.cart-badge { position: absolute; top: 2px; right: 2px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: rgb(var(--brand)); color: rgb(var(--on-brand)); font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid rgb(var(--navy-2)); }
.burger { display: inline-flex; }
@media (min-width: 1024px) { .burger { display: none; } }

/* Навігація категорій (ПК) */
.catnav { display: none; border-top: 1px solid rgb(255 255 255 / .08); }
@media (min-width: 1024px) { .catnav { display: block; } }
.catnav-row { display: flex; align-items: center; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.catnav-row::-webkit-scrollbar { display: none; }
.nav-link { padding: 10px 12px; font-size: 13.5px; font-weight: 600; color: rgb(205 218 232); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-link:hover { color: #fff; }
.nav-link.active { color: #fff; border-bottom-color: rgb(var(--brand)); }
.nav-sep { width: 1px; height: 16px; background: rgb(255 255 255 / .18); margin: 0 8px; flex-shrink: 0; }

/* Мега-меню каталогу */
.megamenu { position: absolute; left: 0; right: 0; top: 100%; z-index: 45; background: rgb(var(--surface)); color: rgb(var(--ink)); border-top: 1px solid rgb(var(--line)); box-shadow: 0 30px 60px rgb(var(--shadow) / .25); }
.mega-grid { display: grid; grid-template-columns: 360px 1fr; min-height: 420px; }
.mega-list { background: rgb(var(--surface2)); padding: 10px; border-right: 1px solid rgb(var(--line)); }
.mega-cat { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 10px; border: 0; background: transparent; text-align: left; font-weight: 700; font-size: 14.5px; }
.mega-cat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-cat-txt small { font-size: 11px; font-weight: 500; color: rgb(var(--muted)); line-height: 1.3; white-space: normal; }
.mega-cat svg { width: 20px; height: 20px; color: rgb(var(--accent)); flex-shrink: 0; }
.mega-cat .chev { margin-left: auto; opacity: .4; width: 16px; height: 16px; }
.mega-cat.active, .mega-cat:hover { background: rgb(var(--surface)); box-shadow: 0 1px 3px rgb(var(--shadow) / .1); }
.mega-panel { padding: 22px 28px 26px; }
.mega-panel h3 { font-size: 20px; font-weight: 800; margin: 0; }
.mega-panel p { margin: 4px 0 0; color: rgb(var(--muted)); font-size: 13.5px; }
.mega-subs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; margin-top: 18px; }
.mega-subs a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: 8px; font-size: 14.5px; font-weight: 500; }
.mega-subs a b { display: block; font-weight: 650; }
.mega-subs a small { display: block; margin-top: 2px; color: rgb(var(--muted)); font-size: 12px; font-weight: 500; line-height: 1.35; }
.mega-subs a:hover { background: rgb(var(--surface2)); color: rgb(var(--accent)); }
.mega-subs a > span:last-child { color: rgb(var(--muted)); font-size: 13px; flex-shrink: 0; }
.mega-backdrop { position: fixed; inset: 0; z-index: 50; background: rgb(6 22 38 / .45); }

/* Мобільне меню */
.mobile-menu { position: fixed; inset: 0; z-index: 70; display: none; }
.mobile-menu.open { display: block; }
.mobile-menu .backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .6); }
.mobile-menu .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 380px); background: rgb(var(--surface)); color: rgb(var(--ink)); display: flex; flex-direction: column; box-shadow: -20px 0 50px rgb(0 0 0 / .4); animation: slideIn .22s ease-out; }
@keyframes slideIn { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.mobile-menu .m-head { background: rgb(var(--navy-2)); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; }
.m-link { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; font-size: 15.5px; font-weight: 600; border-bottom: 1px solid rgb(var(--line)); width: 100%; background: transparent; border-left: 0; border-right: 0; border-top: 0; text-align: left; color: rgb(var(--ink)); }
.m-link.active { color: rgb(var(--accent)); }
.m-link svg { width: 18px; height: 18px; opacity: .55; flex-shrink: 0; }
.m-link .m-ico { opacity: 1; color: rgb(var(--accent)); margin-right: 10px; }
.m-sub { padding: 4px 0 8px 14px; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface2) / .55); }
.m-sub a { display: block; padding: 9px 8px; font-size: 14.5px; color: rgb(var(--muted)); }
.m-sub a:hover { color: rgb(var(--ink)); }
.m-link[aria-expanded="true"] .m-chev { transform: rotate(90deg); }
.m-chev { transition: transform .15s; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 700; font-size: 14.5px; line-height: 1.2; transition: background .15s, border-color .15s, transform .08s, box-shadow .15s; text-align: center; user-select: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: rgb(var(--brand)); color: rgb(var(--on-brand)); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.btn-primary:hover:not(:disabled) { background: rgb(var(--brand-strong)); box-shadow: 0 6px 16px rgb(var(--brand) / .35); }
.btn-dark { background: rgb(var(--navy-2)); color: #fff; }
.btn-dark:hover:not(:disabled) { background: rgb(var(--navy)); }
.btn-outline { background: rgb(var(--surface)); color: rgb(var(--ink)); border-color: rgb(var(--line)); }
.btn-outline:hover:not(:disabled) { border-color: rgb(var(--ink) / .45); background: rgb(var(--surface2)); }
.btn-ghost { background: transparent; color: rgb(var(--ink)); }
.btn-ghost:hover:not(:disabled) { background: rgb(var(--surface2)); }
.btn-onnavy { background: rgb(255 255 255 / .08); color: #fff; border-color: rgb(255 255 255 / .28); }
.btn-onnavy:hover { background: rgb(255 255 255 / .16); }
.btn-lg { min-height: 52px; padding: 13px 26px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--muted)); }
.icon-btn:hover { color: rgb(var(--ink)); background: rgb(var(--surface2)); }
.link { color: rgb(var(--accent)); font-weight: 600; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Базові блоки ---------- */
.card { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; }
.card-pad { padding: 20px; }
@media (min-width: 640px) { .card-pad { padding: 24px; } }
.section { padding: 40px 0; }
@media (min-width: 1024px) { .section { padding: 60px 0; } }
.section-alt { background: rgb(var(--surface)); border-top: 1px solid rgb(var(--line)); border-bottom: 1px solid rgb(var(--line)); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgb(var(--accent)); }
.h1 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.h2 { font-size: clamp(22px, 2.6vw, 29px); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
.lead { color: rgb(var(--muted)); font-size: 16px; }
.muted { color: rgb(var(--muted)); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgb(var(--surface2)); color: rgb(var(--ink)); border: 1px solid rgb(var(--line)); }
.badge-brand { background: rgb(var(--brand)); color: rgb(var(--on-brand)); border-color: transparent; }
.badge-ok { background: rgb(var(--ok) / .12); color: rgb(var(--ok)); border-color: rgb(var(--ok) / .3); }
.badge-warn { background: rgb(var(--warn) / .12); color: rgb(var(--warn)); border-color: rgb(var(--warn) / .3); }
.badge-danger { background: rgb(var(--danger) / .12); color: rgb(var(--danger)); border-color: rgb(var(--danger) / .3); }
.stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; }
.stock-badge.in { color: rgb(var(--ok)); }
.stock-badge.pre { color: rgb(var(--warn)); }
.stock-badge.out { color: rgb(var(--danger)); }
.stock-badge::before { content: ''; width: 7px; height: 7px; border-radius: 999px; background: currentColor; flex-shrink: 0; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: rgb(var(--muted)); padding: 16px 0 6px; }
.breadcrumbs a:hover { color: rgb(var(--ink)); text-decoration: underline; }
.breadcrumbs span:not(:last-child) { opacity: .6; }

/* ---------- Hero-слайдер ---------- */
.hero { position: relative; background: rgb(var(--navy-2)); color: #fff; overflow: hidden; border-radius: 0; }
.hero-track { display: flex; transition: transform .5s cubic-bezier(.3,.7,.2,1); will-change: transform; }
.hero-slide { flex: 0 0 100%; min-width: 0; position: relative; display: block; color: #fff; }
.hero-slide-inner { display: grid; gap: 22px; align-items: center; padding: 34px 0 54px; }
@media (min-width: 900px) { .hero-slide-inner { grid-template-columns: 1.05fr .95fr; gap: 40px; padding: 48px 0 64px; min-height: 420px; } }
.hero-slide .hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-slide .container-x { position: relative; z-index: 1; }
.hero-copy .lead { color: rgb(196 211 228); max-width: 520px; }
.hero-copy h1, .hero-copy h2 { font-size: clamp(28px, 4.2vw, 46px); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 10px 0 0; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); font-size: 12.5px; font-weight: 700; color: rgb(var(--brand)); }
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-visual .plate { width: min(100%, 420px); aspect-ratio: 1 / 1; border-radius: 28px; box-shadow: 0 30px 70px rgb(0 0 0 / .4); }
.hero-visual .plate img { padding: 18px; }
.hero-visual .hero-badge { position: absolute; z-index: 2; left: 4%; bottom: 8%; background: rgb(var(--brand)); color: rgb(var(--on-brand)); padding: 10px 16px; border-radius: 14px; font-weight: 800; box-shadow: 0 14px 30px rgb(0 0 0 / .3); }
.hero-badge small { display: block; font-weight: 600; font-size: 11.5px; opacity: .75; }
.hero-badge b { font-size: 22px; letter-spacing: -.01em; }
.hero-dots { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.hero-dot { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgb(255 255 255 / .35); transition: width .2s, background .2s; }
.hero-dot[aria-current="true"] { width: 28px; background: rgb(var(--brand)); }
.hero-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(6 22 38 / .55); color: #fff; display: none; align-items: center; justify-content: center; }
.hero-nav:hover { background: rgb(6 22 38 / .85); }
.hero-nav.prev { left: 18px; } .hero-nav.next { right: 18px; }
@media (min-width: 1024px) { .hero-nav { display: inline-flex; } }
.hero-nav svg { width: 22px; height: 22px; }

.trust-strip { background: rgb(var(--surface)); border-bottom: 1px solid rgb(var(--line)); }
.trust-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
@media (min-width: 900px) { .trust-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust-item { display: flex; align-items: center; gap: 12px; padding: 16px 14px; }
.trust-item svg { width: 26px; height: 26px; color: rgb(var(--accent)); flex-shrink: 0; }
.trust-item b { display: block; font-size: 14px; line-height: 1.2; }
.trust-item span { display: block; font-size: 12.5px; color: rgb(var(--muted)); line-height: 1.3; }

/* Плитка з фото товару */
.plate { background: rgb(var(--plate)); border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; position: relative; }
.plate img { width: 100%; height: 100%; object-fit: contain; padding: 12px; transition: transform .3s ease; }
.plate-sq { aspect-ratio: 1 / 1; }
.plate-43 { aspect-ratio: 4 / 3; }

/* ---------- Категорії ---------- */
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: border-color .15s, transform .15s, box-shadow .15s; }
.cat-tile:hover { border-color: rgb(var(--accent) / .5); box-shadow: 0 10px 26px rgb(var(--shadow) / .1); transform: translateY(-2px); }
.cat-ico { width: 52px; height: 52px; border-radius: 14px; background: rgb(var(--navy-2)); color: rgb(var(--brand)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cat-ico svg { width: 26px; height: 26px; }
.cat-tile b { display: block; font-size: 15.5px; line-height: 1.25; }
.cat-tile small { display: block; margin-top: 3px; color: rgb(var(--muted)); font-size: 12.5px; }
.cat-photo-tile { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: border-color .15s, box-shadow .15s, transform .15s; }
.cat-photo-tile:hover { border-color: rgb(var(--accent) / .5); box-shadow: 0 10px 26px rgb(var(--shadow) / .1); transform: translateY(-2px); }
.cat-photo-tile .plate { border-radius: 0; border-bottom: 1px solid rgb(var(--line)); }
.sub-tile { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid rgb(var(--line)); border-radius: 12px; background: rgb(var(--surface)); font-weight: 600; font-size: 14px; transition: border-color .15s, background .15s; }
.sub-tile:hover { border-color: rgb(var(--accent) / .55); background: rgb(var(--surface2)); }
.sub-tile b { display: block; font-weight: 700; }
.sub-tile small { display: block; margin-top: 2px; color: rgb(var(--muted)); font-size: 12px; font-weight: 500; line-height: 1.35; }
.sub-tile .plate { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; border: 1px solid rgb(var(--line)); }
.sub-tile .plate img { padding: 4px; }
.sub-tile .ico { width: 52px; height: 52px; border-radius: 10px; flex-shrink: 0; background: rgb(var(--surface2)); color: rgb(var(--muted)); display: flex; align-items: center; justify-content: center; }
.sub-tile .cnt { margin-left: auto; color: rgb(var(--muted)); font-size: 12.5px; font-weight: 500; white-space: nowrap; }

/* ---------- Картка товару ---------- */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .pgrid { gap: 14px; } }
@media (min-width: 900px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1180px) { .pgrid.cols-4, .pgrid.catalog-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pgrid.catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .pgrid.catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1340px) { .pgrid.catalog-grid.wide { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pcard { position: relative; display: flex; flex-direction: column; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .2s, transform .2s; height: 100%; }
.pcard:hover { border-color: rgb(var(--accent) / .45); box-shadow: 0 14px 30px rgb(var(--shadow) / .12); transform: translateY(-2px); }
.pcard:hover .plate img { transform: scale(1.04); }
.pcard .plate { border-radius: 0; aspect-ratio: 1 / 1; }
.pcard-tags { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.pcard-tags-inline { position: static; flex-direction: row; flex-wrap: wrap; margin: 6px 0 2px; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 800; line-height: 1.2; }
.tag-sale { background: rgb(var(--danger)); color: #fff; }
.tag-hit { background: rgb(var(--navy-2)); color: rgb(var(--brand)); }
.tag-new { background: rgb(var(--accent)); color: #fff; }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px 14px 14px; gap: 8px; border-top: 1px solid rgb(var(--line)); }
.pcard-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--muted)); }
.pcard-title { font-weight: 700; font-size: 15.5px; line-height: 1.3; }
.pcard-title::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.pcard-title:hover { color: rgb(var(--accent)); }
.pcard-rating { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgb(var(--muted)); }
.pcard-rating .stars svg { width: 13px; height: 13px; }
.pcard-specs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; font-size: 12.5px; }
.pcard-specs li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgb(var(--line)); }
.pcard-specs li:last-child { border-bottom: 0; }
.pcard-specs span { color: rgb(var(--muted)); }
.pcard-specs b { font-weight: 600; text-align: right; }
.pcard-buy { margin-top: auto; padding-top: 4px; }
.pcard-actions { position: relative; z-index: 2; display: grid; grid-template-columns: auto 1fr; gap: 8px; margin-top: 10px; }
.pcard-actions .btn { min-height: 42px; padding: 8px 14px; }
@media (max-width: 559px) {
  .pcard { border-radius: 12px; }
  .pcard-body { padding: 10px; gap: 6px; }
  .pcard-title { font-size: 13.5px; }
  .pcard-specs { font-size: 11.5px; }
  .pcard .price { font-size: 17px; }
  .pcard .price-old { font-size: 11.5px; }
  .pcard .plate img { padding: 6px; }
  .pcard-actions .btn { min-height: 38px; padding: 6px 8px; font-size: 13px; }
  .pcard .stock-badge { font-size: 11px; }
}
.price { font-size: 22px; font-weight: 800; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-old { color: rgb(var(--muted)); text-decoration: line-through; font-size: 13.5px; white-space: nowrap; }
.stars { display: inline-flex; gap: 1px; color: rgb(var(--brand-strong)); }
.stars svg { width: 16px; height: 16px; fill: currentColor; }
.stars .off { color: rgb(var(--line)); }

.shelf { position: relative; }
.shelf-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 24%); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; }
.shelf-track > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .shelf-track { grid-auto-columns: minmax(220px, 32%); } }
@media (max-width: 760px) { .shelf-track { grid-auto-columns: 62%; } }
.shelf-arrows { display: none; gap: 8px; }
@media (min-width: 900px) { .shelf-arrows { display: flex; } }

.top-list { counter-reset: top; display: grid; gap: 0; }
.top-row { display: grid; grid-template-columns: 32px 64px 1fr auto; align-items: center; gap: 14px; padding: 12px 6px; border-bottom: 1px solid rgb(var(--line)); }
.top-row:last-child { border-bottom: 0; }
.top-row:hover { background: rgb(var(--surface2) / .6); }
.top-num { width: 30px; height: 30px; border-radius: 999px; background: rgb(var(--navy-2)); color: rgb(var(--brand)); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.top-row .plate { width: 64px; height: 64px; border-radius: 10px; border: 1px solid rgb(var(--line)); }
.top-row .plate img { padding: 4px; }

/* ---------- Каталог: макет, фільтри ---------- */
.catalog-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .catalog-layout { grid-template-columns: 276px minmax(0, 1fr); } }
.filters { }
.filters-panel { background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 16px; overflow: hidden; }
@media (min-width: 1024px) { .filters-panel { position: sticky; top: 132px; max-height: calc(100vh - 150px); overflow-y: auto; scrollbar-width: thin; } }
.filters-title { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid rgb(var(--line)); font-weight: 800; font-size: 16px; }
.fgroup { border-bottom: 1px solid rgb(var(--line)); }
.fgroup:last-child { border-bottom: 0; }
.fgroup > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 13px 16px; font-weight: 700; font-size: 14px; }
.fgroup > summary::-webkit-details-marker { display: none; }
.fgroup > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid rgb(var(--muted)); border-bottom: 2px solid rgb(var(--muted)); transform: rotate(45deg) translateY(-2px); transition: transform .15s; margin-right: 4px; }
.fgroup[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.fgroup .fbody { padding: 0 16px 14px; display: grid; gap: 2px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; font-size: 14px; line-height: 1.3; }
.fopt input { width: 17px; height: 17px; accent-color: rgb(var(--accent)); flex-shrink: 0; margin: 0; }
.fopt .n { margin-left: auto; color: rgb(var(--muted)); font-size: 12.5px; }
.fopt.zero { opacity: .45; }
.frange { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; }
.frange input { width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font-size: 14px; font-variant-numeric: tabular-nums; }
.frange input:focus { outline: none; border-color: rgb(var(--focus)); box-shadow: 0 0 0 3px rgb(var(--focus) / .15); }
.frange span { color: rgb(var(--muted)); }
.fhint { font-size: 12px; color: rgb(var(--muted)); margin-top: 4px; }
.filters-foot { position: sticky; bottom: 0; background: rgb(var(--surface)); padding: 12px 16px; border-top: 1px solid rgb(var(--line)); display: none; gap: 8px; }
.filters-title .icon-btn { display: none; }
@media (max-width: 1023.98px) { .filters-title .icon-btn { display: inline-flex; } }
.filter-toggle { display: inline-flex; }
@media (min-width: 1024px) { .filter-toggle { display: none; } }
@media (max-width: 1023px) {
  .filters { position: fixed; inset: 0; z-index: 75; display: none; }
  .filters.open { display: block; }
  .filters .f-backdrop { position: absolute; inset: 0; background: rgb(0 0 0 / .55); }
  .filters-panel { position: absolute; top: 0; bottom: 0; left: 0; width: min(92vw, 400px); border-radius: 0; overflow-y: auto; animation: slideInL .22s ease-out; }
  .filters-foot { display: flex; }
}
@keyframes slideInL { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 1024px) { .f-backdrop { display: none; } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 14px; margin-bottom: 14px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.af-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px 5px 12px; border-radius: 999px; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); font-size: 13px; font-weight: 600; }
.af-chip button { width: 20px; height: 20px; border-radius: 999px; border: 0; background: rgb(var(--surface2)); display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.af-chip button:hover { background: rgb(var(--line)); }
.af-chip svg { width: 12px; height: 12px; }
.af-clear { font-size: 13px; font-weight: 700; color: rgb(var(--accent)); background: transparent; border: 0; padding: 5px 4px; }
.af-clear:hover { text-decoration: underline; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 28px; margin-bottom: 8px; }
.pager a, .pager span { min-width: 42px; height: 42px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font-weight: 700; font-size: 14px; }
.pager a:hover { border-color: rgb(var(--accent)); }
.pager .cur { background: rgb(var(--navy-2)); color: #fff; border-color: rgb(var(--navy-2)); }
.pager .gap { border: 0; background: transparent; min-width: 20px; padding: 0; }

.seo-text { color: rgb(var(--muted)); font-size: 14px; max-width: 880px; }
.seo-text h2 { color: rgb(var(--ink)); font-size: 18px; font-weight: 800; margin: 0 0 8px; }

/* ---------- Форми ---------- */
.field { display: block; }
.field > span.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: rgb(var(--ink)); }
.field > span.lbl em { color: rgb(var(--danger)); font-style: normal; }
.input, .select { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); color: rgb(var(--ink)); font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }
.select.select-sm { min-height: 42px; font-size: 14.5px; font-weight: 600; }
.input::placeholder { color: rgb(var(--muted) / .7); }
.input:hover, .select:hover { border-color: rgb(var(--ink) / .35); }
.input:focus, .select:focus { outline: none; border-color: rgb(var(--focus)); box-shadow: 0 0 0 3px rgb(var(--focus) / .18); }
.input.invalid { border-color: rgb(var(--danger)); box-shadow: 0 0 0 3px rgb(var(--danger) / .14); }
.field-error { color: rgb(var(--danger)); font-size: 12.5px; margin-top: 4px; font-weight: 500; }
.hint { color: rgb(var(--muted)); font-size: 12.5px; margin-top: 4px; }

.radio-card { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border: 1.5px solid rgb(var(--line)); border-radius: 14px; cursor: pointer; background: rgb(var(--surface)); transition: border-color .15s, background .15s; }
.radio-card:hover { border-color: rgb(var(--ink) / .35); }
.radio-card:has(input:checked) { border-color: rgb(var(--brand-strong)); background: rgb(var(--brand) / .09); box-shadow: 0 0 0 1px rgb(var(--brand-strong)); }
.radio-card:has(input:disabled) { opacity: .55; cursor: not-allowed; }
.radio-card input { margin-top: 3px; width: 18px; height: 18px; accent-color: rgb(var(--brand-strong)); flex-shrink: 0; }

/* Кількість */
.qty { display: inline-flex; align-items: center; border: 1px solid rgb(var(--line)); border-radius: 10px; overflow: hidden; background: rgb(var(--surface)); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; font-size: 18px; color: rgb(var(--ink)); }
.qty button:hover { background: rgb(var(--surface2)); }
.qty span { min-width: 32px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Кошик / оформлення ---------- */
.cart-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid rgb(var(--line)); align-items: center; }
.cart-row:last-child { border-bottom: 0; }
@media (min-width: 640px) { .cart-row { grid-template-columns: 88px 1fr auto auto; } }
.summary-row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.summary-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; margin-top: 8px; border-top: 1px solid rgb(var(--line)); font-weight: 800; font-size: 20px; }
.sticky-side { position: static; }
@media (min-width: 1024px) { .sticky-side { position: sticky; top: 132px; } }

/* ---------- Сторінка замовлення / реквізити ---------- */
.order-hero { border-radius: 18px; padding: 22px; background: rgb(var(--navy-2)); color: #fff; }
.order-hero .copy-btn, .order-hero .copy-btn:hover { color: rgb(var(--brand)); }
.order-number { font-size: clamp(24px, 5vw, 34px); font-weight: 800; letter-spacing: .01em; font-variant-numeric: tabular-nums; color: rgb(var(--brand)); word-break: break-all; }
.copy-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid rgb(var(--line)); border-radius: 12px; background: rgb(var(--surface)); }
.copy-row .k { font-size: 12px; color: rgb(var(--muted)); font-weight: 600; }
.copy-row .v { font-weight: 700; font-size: 15px; word-break: break-word; overflow-wrap: anywhere; }
.copy-row .v.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.copy-btn { flex-shrink: 0; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 12px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface2)); font-weight: 700; font-size: 13px; transition: background .15s; }
.copy-btn:hover { background: rgb(var(--line)); }
.copy-btn svg { width: 16px; height: 16px; }
.copy-btn.done { border-color: rgb(var(--ok) / .5); color: rgb(var(--ok)); background: rgb(var(--ok) / .1); }
.purpose-box { border: 2px solid rgb(var(--brand-strong)); background: rgb(var(--brand) / .1); border-radius: 14px; padding: 14px; }
.notice { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; font-size: 14px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface2)); }
.notice svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.notice-info { border-color: rgb(var(--focus) / .35); background: rgb(var(--focus) / .07); }
.notice-warn { border-color: rgb(var(--warn) / .4); background: rgb(var(--warn) / .09); }
.notice-ok { border-color: rgb(var(--ok) / .4); background: rgb(var(--ok) / .09); }
.notice-err { border-color: rgb(var(--danger) / .4); background: rgb(var(--danger) / .07); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 20px; border: 2px dashed rgb(var(--line)); border-radius: 14px; background: rgb(var(--surface2) / .5); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover, .dropzone.drag { border-color: rgb(var(--brand-strong)); background: rgb(var(--brand) / .08); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- Сторінка товару ---------- */
.gallery-main { position: relative; cursor: zoom-in; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.gallery-thumb { width: 68px; height: 68px; border-radius: 10px; border: 2px solid rgb(var(--line)); background: #fff; padding: 2px; }
.gallery-thumb[aria-current="true"] { border-color: rgb(var(--brand-strong)); }
.gallery-thumb img { width: 100%; height: 100%; object-fit: contain; }
.lightbox { position: fixed; inset: 0; z-index: 85; background: rgb(6 22 38 / .92); display: none; align-items: center; justify-content: center; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 88vh; background: #fff; border-radius: 14px; object-fit: contain; }
.lightbox .lb-close, .lightbox .lb-nav { position: absolute; width: 46px; height: 46px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .3); background: rgb(255 255 255 / .12); color: #fff; display: flex; align-items: center; justify-content: center; }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-nav.prev { left: 16px; } .lightbox .lb-nav.next { right: 16px; }
.pdp-tabs { position: sticky; top: 64px; z-index: 30; display: flex; gap: 4px; overflow-x: auto; background: rgb(var(--bg)); border-bottom: 1px solid rgb(var(--line)); scrollbar-width: none; margin-top: 28px; }
@media (min-width: 1024px) { .pdp-tabs { top: 115px; } }
.pdp-tabs::-webkit-scrollbar { display: none; }
.pdp-tab { padding: 14px 16px; font-weight: 700; font-size: 14.5px; white-space: nowrap; color: rgb(var(--muted)); border-bottom: 3px solid transparent; }
.pdp-tab:hover { color: rgb(var(--ink)); }
.pdp-tab.active { color: rgb(var(--ink)); border-bottom-color: rgb(var(--brand-strong)); }
.pdp-section { scroll-margin-top: 130px; }
@media (min-width: 1024px) { .pdp-section { scroll-margin-top: 180px; } }
.buybox { position: relative; }
.perk { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.perk svg { width: 20px; height: 20px; color: rgb(var(--accent)); flex-shrink: 0; margin-top: 2px; }
.key-specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .key-specs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.key-spec { background: rgb(var(--surface2)); border-radius: 12px; padding: 12px 14px; }
.key-spec small { display: block; color: rgb(var(--muted)); font-size: 12px; }
.key-spec b { display: block; font-size: 17px; line-height: 1.25; margin-top: 2px; font-variant-numeric: tabular-nums; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 0; border-bottom: 1px solid rgb(var(--line)); vertical-align: top; }
.spec-table th { color: rgb(var(--muted)); font-weight: 500; width: 46%; padding-right: 16px; }
.spec-table td { font-weight: 600; }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-group { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--accent)); margin: 22px 0 4px; }
.spec-group:first-of-type { margin-top: 6px; }

.runtime { display: grid; gap: 0; }
.runtime-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid rgb(var(--line)); font-size: 14.5px; }
.runtime-row:last-child { border-bottom: 0; }
.runtime-row small { display: block; color: rgb(var(--muted)); font-size: 12.5px; }
.runtime-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.runtime-row.off { opacity: .45; }

.prose { max-width: 820px; }
.prose h2 { font-size: 20px; font-weight: 800; margin: 30px 0 10px; letter-spacing: -.01em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.prose p { margin: 0 0 12px; color: rgb(var(--ink) / .88); }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 1.3em; color: rgb(var(--ink) / .88); }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li { margin: 0 0 6px; }
.prose a { color: rgb(var(--accent)); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.prose .doc-meta { color: rgb(var(--muted)); font-size: 13px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 0 0 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border: 1px solid rgb(var(--line)); vertical-align: top; }
.prose th { background: rgb(var(--surface2)); }
.info-layout { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1024px) { .info-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.info-nav { display: grid; gap: 2px; }
.info-nav a { padding: 10px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: rgb(var(--muted)); }
.info-nav a:hover { background: rgb(var(--surface2)); color: rgb(var(--ink)); }
.info-nav a.active { background: rgb(var(--navy-2)); color: #fff; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid rgb(var(--line)); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 0; font-weight: 700; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; line-height: 1; color: rgb(var(--muted)); flex-shrink: 0; }
.faq details[open] summary::after { content: "–"; }
.faq .answer { padding: 0 0 18px; color: rgb(var(--muted)); max-width: 760px; }

/* ---------- Статті блогу ---------- */
.art-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .art-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .art-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.art-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); transition: border-color .15s, transform .15s; }
.art-card:hover { border-color: rgb(var(--accent) / .5); transform: translateY(-2px); }
.art-card b { font-size: 16.5px; line-height: 1.35; }
.art-date { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: rgb(var(--muted)); }
.art-date svg { width: 14px; height: 14px; }
.art-desc { font-size: 14px; color: rgb(var(--muted)); line-height: 1.5; flex: 1; }
.art-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: rgb(var(--accent)); }
.art-more svg { width: 15px; height: 15px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: rgb(var(--muted)); margin-top: 10px; }
.article-lead { font-size: 17px; line-height: 1.6; margin-top: 16px; max-width: 820px; }
.article-body { margin-top: 24px; }
.article-body .table-wrap { overflow-x: auto; }

/* ---------- Відгуки, бренди, переваги ---------- */
.review-card { display: flex; flex-direction: column; gap: 14px; }
.brand-tile { display: flex; flex-direction: column; justify-content: center; gap: 4px; padding: 20px; border-radius: 16px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); min-height: 108px; transition: border-color .15s, transform .15s; }
.brand-tile:hover { border-color: rgb(var(--accent) / .5); transform: translateY(-2px); }
.brand-tile .wordmark { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.brand-tile small { color: rgb(var(--muted)); font-size: 12.5px; }
.adv-ico { width: 46px; height: 46px; border-radius: 12px; background: rgb(var(--navy-2)); color: rgb(var(--brand)); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.adv-ico svg { width: 22px; height: 22px; }
.help-banner { background: rgb(var(--navy-2)); color: #fff; border-radius: 20px; overflow: hidden; position: relative; }

/* ---------- Футер ---------- */
.site-footer { background: rgb(var(--navy)); color: rgb(168 186 206); margin-top: 64px; }
.site-footer > .container-x:first-child { padding-top: 64px; }
.site-footer h4, .site-footer .footer-h { color: #fff; font-size: 14px; font-weight: 700; margin: 0 0 14px; letter-spacing: .02em; }
.site-footer a:hover { color: #fff; }
.site-footer li { margin-bottom: 9px; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .08); font-size: 13px; }
.footer-pay { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid rgb(255 255 255 / .16); border-radius: 8px; font-size: 12.5px; color: rgb(205 218 232); }

/* ---------- Тости ---------- */
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 90; width: min(94vw, 440px); background: rgb(var(--navy-2)); color: #fff; border: 1px solid rgb(255 255 255 / .12); border-radius: 14px; padding: 12px 14px; box-shadow: 0 18px 40px rgb(0 0 0 / .35); display: flex; align-items: center; gap: 12px; animation: toastIn .25s ease-out; }
@media (min-width: 900px) { .toast { left: auto; right: 24px; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (min-width: 900px) { @keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } } }
.toast .t-icon { width: 34px; height: 34px; border-radius: 10px; background: rgb(74 222 128 / .2); color: #4ade80; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.toast.err .t-icon { background: rgb(248 113 113 / .2); color: #f87171; }

.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: center; justify-content: center; padding: 16px; background: rgb(0 0 0 / .6); }
.modal.open { display: flex; }
.modal-card { width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 18px; padding: 24px; box-shadow: 0 30px 60px rgb(0 0 0 / .4); }

.buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; background: rgb(var(--surface)); border-top: 1px solid rgb(var(--line)); padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px; box-shadow: 0 -10px 24px rgb(var(--shadow) / .1); }
@media (min-width: 900px) { .buybar { display: none; } }
body.has-buybar { padding-bottom: 76px; }
@media (min-width: 900px) { body.has-buybar { padding-bottom: 0; } }

.page { animation: pageIn .25s ease-out; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.modal-x { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 10px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface2)); color: rgb(var(--ink)); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.modal-x:hover { background: rgb(var(--line)); }

/* Покрокове оформлення */
.stepper { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.stepper .step-btn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid rgb(var(--line)); background: rgb(var(--surface)); font-weight: 700; font-size: 14px; color: rgb(var(--muted)); cursor: default; }
.stepper .step-btn .n { width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--surface2)); font-size: 13px; }
.stepper .step-btn.active { color: rgb(var(--ink)); border-color: rgb(var(--brand-strong)); }
.stepper .step-btn.active .n { background: rgb(var(--brand)); color: rgb(var(--on-brand)); }
.stepper .step-btn.done { color: rgb(var(--ink)); cursor: pointer; }
.stepper .step-btn.done .n { background: rgb(var(--ok) / .2); color: rgb(var(--ok)); }
.stepper .sep { width: 28px; height: 2px; background: rgb(var(--line)); border-radius: 2px; }
.dropzone.has-file { border-style: solid; border-color: rgb(var(--ok) / .6); background: rgb(var(--ok) / .08); }
.dropzone.invalid { border-color: rgb(var(--danger)); background: rgb(var(--danger) / .06); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.checkout-slide { max-width: 680px; display: grid; gap: 16px; }
.checkout-slide #checkout-step-1,
.checkout-slide #checkout-step-2 { display: grid; gap: 16px; }
.checkout-slide #checkout-step-1[hidden],
.checkout-slide #checkout-step-2[hidden] { display: none !important; }
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.checkout-span { grid-column: 1 / -1; }
.np-wrap { position: relative; }
.np-suggest { position: absolute; left: 0; right: 0; top: calc(100% - 2px); z-index: 40; margin: 0; padding: 6px; list-style: none; background: rgb(var(--surface)); border: 1px solid rgb(var(--line)); border-radius: 12px; box-shadow: 0 12px 32px rgb(var(--shadow) / .18); max-height: 240px; overflow: auto; }
.np-suggest li { margin: 0; }
.np-opt { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: transparent; border-radius: 8px; font-size: 14px; color: rgb(var(--ink)); cursor: pointer; }
.np-opt:hover, .np-opt:focus { background: rgb(var(--surface2)); }
.checkout-promo-row { display: flex; gap: 8px; }
.checkout-promo-row .input { flex: 1; min-width: 0; }
.checkout-promo-row .btn { flex-shrink: 0; min-width: 72px; }
.checkout-slide .h3 { margin-bottom: 12px; }
@media (max-width: 639px) {
  .checkout-slide { gap: 12px; }
  .checkout-slide #checkout-step-1,
  .checkout-slide #checkout-step-2 { gap: 12px; }
  .checkout-slide .card-pad { padding: 14px; }
  .checkout-slide .h3 { font-size: 16px; margin-bottom: 10px; }
  .checkout-fields { gap: 10px; }
  .checkout-slide .field > span.lbl { margin-bottom: 4px; font-size: 12.5px; }
  .checkout-slide .input { min-height: 42px; padding: 8px 12px; border-radius: 10px; }
  .checkout-promo-row .btn { min-height: 42px; padding: 8px 12px; }
  #checkout-next-btn { min-height: 48px; }
}

/* Гарантія */
.warranty-term { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: rgb(var(--on-brand)); background: rgb(var(--brand)); white-space: nowrap; }

/* Світлий фон сторінки. Шапка, банер і футер лишаються темно-синіми. */
.pcard:hover, .cat-tile:hover, .cat-photo-tile:hover, .brand-tile:hover { border-color: rgb(var(--brand-strong) / .7); box-shadow: 0 12px 28px rgb(var(--shadow) / .08); }
.pcard .plate, .cat-photo-tile .plate { background: #fff; }

/* Плитка категорії з фото найпопулярнішого товару */
.cat-tile { position: relative; }
.cat-tile > .min-w-0 { flex: 1; }
.cat-tile.has-pic { padding-right: 8px; min-height: 96px; }
.cat-pic { flex-shrink: 0; width: 92px; height: 76px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-left: auto; transition: transform .25s; }
.cat-pic img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cat-tile:hover .cat-pic { transform: scale(1.05); }

/* =====================================================================
   Redesign: шапка, інструменти картки, обране/порівняння, анімації
   ===================================================================== */
.hdr-stack { flex-direction: column; gap: 2px; height: 52px; min-width: 52px; padding: 0 8px; }
.hdr-stack svg { width: 22px; height: 22px; }
.hdr-cap { font-size: 11px; font-weight: 600; line-height: 1; color: rgb(170 172 182); letter-spacing: .01em; }
.hdr-btn:hover .hdr-cap, .hdr-btn.active .hdr-cap { color: rgb(var(--brand)); }
.hdr-btn:hover svg, .hdr-btn.active svg { color: rgb(var(--brand)); }
.hdr-btn svg { transition: color .15s, transform .2s; }
.hdr-btn:hover svg { transform: translateY(-1px); }
.cart-badge { top: 4px; right: 6px; }
@media (min-width: 1024px) { .header-row { gap: 16px; } .search-input { height: 48px; border-radius: 12px; font-size: 15.5px; } }
.pop { animation: pop .42s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Інструменти на картці (обране / порівняння) */
.pcard-tools { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }
.tool-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgb(0 0 0 / .08); background: rgb(255 255 255 / .92); color: rgb(60 62 70); display: inline-flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, color .15s, transform .15s, border-color .15s, opacity .15s; backdrop-filter: blur(4px); }
.tool-btn svg { width: 17px; height: 17px; }
.tool-btn:hover { background: rgb(var(--brand)); color: rgb(var(--on-brand)); border-color: transparent; }
.tool-btn.on { background: rgb(var(--brand)); color: rgb(var(--on-brand)); border-color: transparent; }
.tool-btn[data-fav-id].on svg { fill: currentColor; }
.tool-btn-lg { width: 44px; height: 44px; border-radius: 12px; background: rgb(var(--surface2)); color: rgb(var(--ink)); border-color: rgb(var(--line)); }
@media (hover: hover) { .pcard-tools .tool-btn:not(.on) { opacity: 0; transform: translateX(6px); } .pcard:hover .pcard-tools .tool-btn, .pcard:focus-within .pcard-tools .tool-btn { opacity: 1; transform: none; } }
.pcard-tools .tool-btn:focus-visible { opacity: 1; transform: none; }

.demo-tag { display: inline-flex; align-items: center; padding: 1px 6px; border-radius: 6px; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: rgb(var(--warn)); border: 1px solid rgb(var(--warn) / .5); background: rgb(var(--warn) / .1); line-height: 1.5; }
.review-card.is-demo { border-style: dashed; }

/* Порівняння */
.cmp-wrap { padding: 0; overflow-x: auto; }
.cmp-table { width: 100%; min-width: 640px; border-collapse: collapse; table-layout: fixed; }
.cmp-table th.cmp-corner, .cmp-table > tbody > tr > th { width: 220px; text-align: left; font-weight: 500; color: rgb(var(--muted)); padding: 12px 16px; border-bottom: 1px solid rgb(var(--line)); background: rgb(var(--surface)); position: sticky; left: 0; z-index: 1; }
.cmp-table td { padding: 12px 16px; border-bottom: 1px solid rgb(var(--line)); vertical-align: top; font-weight: 600; font-size: 14.5px; }
.cmp-table thead td { border-bottom: 1px solid rgb(var(--line)); font-weight: 400; }
.cmp-table tr.diff > td { background: rgb(var(--brand) / .06); }
.cmp-table tr.diff > th { color: rgb(var(--ink)); }
.cmp-group th { padding: 14px 16px 6px !important; font-size: 12px !important; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--brand)) !important; font-weight: 800 !important; background: rgb(var(--surface2)) !important; position: static !important; }
.cmp-head { position: relative; display: grid; gap: 8px; }
.cmp-img { width: 100%; max-width: 180px; margin: 0 auto; }
.cmp-title { font-weight: 700; font-size: 15px; line-height: 1.3; }
.cmp-title:hover { color: rgb(var(--brand)); }
.cmp-x { position: absolute; top: 0; right: 0; z-index: 2; width: 30px; height: 30px; }

/* Анімації: стримані, підкреслюють преміальність */
.btn { transition: background .2s, border-color .2s, color .2s, transform .12s, box-shadow .25s; }
.btn-primary:hover:not(:disabled) { transform: translateY(-1px); }
.btn.added { background: rgb(var(--ok)) !important; color: rgb(8 20 14) !important; border-color: transparent !important; animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.pcard { transition: border-color .2s, box-shadow .3s, transform .3s cubic-bezier(.2,.7,.2,1); }
.pcard .plate img { transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.megamenu:not([hidden]) { animation: megaIn .22s cubic-bezier(.2,.7,.2,1); transform-origin: top; }
@keyframes megaIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu .backdrop { animation: fadeIn .2s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.filters.open .f-backdrop { animation: fadeIn .2s ease-out; }
.search-dropdown:not([hidden]) { animation: megaIn .16s ease-out; }
.page > .container-x, .page > section { animation: none; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

.seo-text.prose { max-width: 920px; }
.seo-text.prose h2 { font-size: 22px; }
.seo-text.prose p { color: rgb(var(--muted)); }

/* Hero — преміальна композиція */
.hero-slide-inner { min-height: 440px; }
@media (min-width: 900px) { .hero-slide-inner { min-height: 520px; } .hero-visual .plate { width: min(100%, 470px); border-radius: 22px; } }
.hero-copy h1, .hero-copy h2 { text-wrap: balance; }
.hero-visual::before { content: ""; position: absolute; inset: -8% -6%; background: radial-gradient(closest-side, rgb(var(--brand) / .26), transparent 70%); z-index: 0; pointer-events: none; }
.hero-visual .plate { position: relative; z-index: 1; }
.hero-badge { z-index: 2; }

/* Мобільна версія: компактна шапка, великі цілі натискання */
@media (max-width: 1023.98px) {
  .header-row { height: 58px; gap: 6px; }
  .logo-text b { font-size: 18px; }
  .hdr-stack { height: 44px; min-width: 44px; padding: 0 6px; }
  .tool-btn { width: 38px; height: 38px; }
  .pcard-tools { top: 8px; right: 8px; }
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
}
@media (max-width: 420px) { .logo-text small { display: none; } .logo-text b { font-size: 17px; } .hdr-btn { padding: 0 8px; } }
/* Навігація: без обрізання на 1024–1440 px */
@media (min-width: 1024px) { .nav-link { padding: 10px 9px; font-size: 13px; } .nav-sep { margin: 0 4px; } }

/* Попередня ціна (не підтверджена ринкова) і стриманіші радіуси карток */
.price-note { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--warn)); }
.pcard, .card, .cat-tile, .cat-photo-tile, .filters-panel, .brand-tile, .sub-tile { border-radius: 10px; }
.btn, .catalog-btn, .search-input { border-radius: 8px; }
