/* Вітрина catalog.used.net.ua — єдина таблиця стилів.
   CSP: style-src 'self', script-src без інлайнових скриптів → уся динаміка (анімації, галерея, перемикачі) — чистий CSS.
   Тема «Aurora» (план вітрини §12): фірмовий бірюзовий ТОВ (#2cb395 → #218c96) + синій/фіолетовий акцент, скло, м'які світіння.
   Шрифти — власні копії (OFL, static/fonts): Unbounded — заголовки й ціни, Manrope — текст. Обидва з кирилицею.
   prefers-reduced-motion вимикає весь рух; prefers-color-scheme — світла / темна тема. */

/* ── шрифти ─────────────────────────────────────────────────────────────── */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
                 U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/static/fonts/manrope-latin-wght-normal.woff2) format("woff2");
  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; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/static/fonts/unbounded-cyrillic-wght-normal.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Unbounded"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/static/fonts/unbounded-latin-wght-normal.woff2) format("woff2");
  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;
  --brand: #2cb395; --brand-2: #218c96; --blue: #2f7cf6; --violet: #7c5cff;
  --grad: linear-gradient(115deg, #2cb395 0%, #1fa3b8 35%, #2f7cf6 70%, #7c5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(44,179,149,.14), rgba(47,124,246,.12) 55%, rgba(124,92,255,.12));
  --bg: #f4f7fb; --bg-2: #eaf0f7;
  --surface: rgba(255,255,255,.72); --surface-solid: #fff; --surface-2: rgba(255,255,255,.55);
  --border: rgba(15,30,60,.09); --border-strong: rgba(15,30,60,.16);
  --text: #0e1726; --muted: #5d6b80; --faint: #8a97aa;
  --accent: #1e7be6; --link: #1769c8;
  --ok: #129a6b; --ok-bg: rgba(18,154,107,.12); --ask: #b7791f; --ask-bg: rgba(214,152,40,.15);
  --none: #7d8899; --none-bg: rgba(125,136,153,.14);
  --shadow-sm: 0 1px 2px rgba(15,30,60,.06), 0 2px 8px rgba(15,30,60,.05);
  --shadow: 0 2px 6px rgba(15,30,60,.05), 0 12px 32px -8px rgba(15,30,60,.14);
  --shadow-lg: 0 4px 10px rgba(15,30,60,.06), 0 30px 60px -18px rgba(25,60,140,.30);
  --glow: 0 0 0 1px rgba(47,124,246,.20), 0 18px 50px -12px rgba(47,124,246,.35);
  --aurora-a: rgba(44,179,149,.30); --aurora-b: rgba(47,124,246,.24); --aurora-c: rgba(124,92,255,.20);
  --img-bg: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #f3f6fa 70%, #e9eef5 100%);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-xl: 32px;
  --ease: cubic-bezier(.2,.8,.2,1);
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #070b14; --bg-2: #0c1322;
    --surface: rgba(20,28,46,.66); --surface-solid: #121a2b; --surface-2: rgba(26,36,58,.55);
    --border: rgba(160,190,255,.10); --border-strong: rgba(160,190,255,.18);
    --text: #e8eef9; --muted: #9aa8bf; --faint: #6f7d95;
    --accent: #5aa2ff; --link: #7db6ff;
    --ok: #34d399; --ok-bg: rgba(52,211,153,.13); --ask: #f2b544; --ask-bg: rgba(242,181,68,.14);
    --none: #8592a8; --none-bg: rgba(133,146,168,.14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow: 0 2px 8px rgba(0,0,0,.35), 0 16px 40px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 4px 12px rgba(0,0,0,.4), 0 40px 80px -20px rgba(0,0,0,.7);
    --glow: 0 0 0 1px rgba(90,162,255,.35), 0 20px 60px -10px rgba(47,124,246,.45);
    --aurora-a: rgba(44,179,149,.30); --aurora-b: rgba(47,124,246,.30); --aurora-c: rgba(124,92,255,.28);
    --img-bg: radial-gradient(120% 90% at 50% 15%, #ffffff 0%, #f1f4f9 70%, #e4eaf3 100%);
  }
}

/* ── основа ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 500 15.5px/1.55 var(--f-body); letter-spacing: -.003em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  position: relative; overflow-x: hidden;
}
/* Аврора: три кольорові плями за всім вмістом, повільно дрейфують. */
body::before {
  content: ""; position: fixed; inset: -20vmax; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 12% 8%, var(--aurora-a), transparent 60%),
    radial-gradient(34vmax 28vmax at 88% 4%, var(--aurora-b), transparent 62%),
    radial-gradient(40vmax 30vmax at 70% 92%, var(--aurora-c), transparent 60%);
  filter: blur(20px) saturate(120%);
  animation: aurora 28s var(--ease) infinite alternate;
}
/* Ледь помітна сітка «креслення» поверх аврори. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: .55;
}
@keyframes aurora {
  0%   { transform: translate3d(0,0,0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3vmax,-2vmax,0) rotate(6deg) scale(1.08); }
  100% { transform: translate3d(-3vmax,2vmax,0) rotate(-4deg) scale(1.04); }
}

a { color: var(--link); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
img { max-width: 100%; }
::selection { background: rgba(47,124,246,.25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.muted { color: var(--muted); }
.org-meta { display: none; }

/* ── кнопки й поля ──────────────────────────────────────────────────────── */
button, .btn {
  --b-bg: var(--grad);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--b-bg); background-size: 160% 100%; background-position: 0% 50%;
  color: #fff; font: 700 15px/1.2 var(--f-body); letter-spacing: .01em; text-decoration: none;
  box-shadow: 0 8px 22px -8px rgba(47,124,246,.55), inset 0 1px 0 rgba(255,255,255,.25);
  transition: background-position .5s var(--ease), transform .2s var(--ease), box-shadow .3s var(--ease);
}
button:hover, .btn:hover {
  color: #fff; background-position: 100% 50%; transform: translateY(-1px);
  box-shadow: 0 14px 30px -10px rgba(124,92,255,.6), inset 0 1px 0 rgba(255,255,255,.3);
}
button:active, .btn:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.btn-ghost:hover { color: var(--text); background: var(--surface-solid); box-shadow: var(--glow); }
.btn-lg { padding: 15px 26px; font-size: 16px; }
.btn .ico, .btn-ghost .ico { width: 18px; height: 18px; }

input[type=search], input[type=text], select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface-solid); color: var(--text); font: 500 15px/1.3 var(--f-body);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
input::placeholder { color: var(--faint); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(47,124,246,.18); }
select {
  -webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a97aa' stroke-width='2.2' 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; background-size: 18px;
}

/* Іконки — маски (data: дозволено CSP img-src), колір — currentColor. */
.ico { display: inline-block; width: 20px; height: 20px; flex: none; background: currentColor;
       -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }
.ico-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
.ico-arrow { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ico-phone { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2z'/%3E%3C/svg%3E"); }
.ico-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 11.5a8.4 8.4 0 0 1-9 8.4 9 9 0 0 1-3.8-.8L3 21l1.9-5.2A8.4 8.4 0 1 1 21 11.5z'/%3E%3C/svg%3E"); }
.ico-mail { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E"); }
.ico-tag { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.6 13.4 13.4 20.6a2 2 0 0 1-2.8 0L3 13V3h10l7.6 7.6a2 2 0 0 1 0 2.8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.ico-photo { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='3'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='m21 16-5-5-9 9'/%3E%3C/svg%3E"); }

/* ── шапка: скляна, липка ───────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface); border-bottom: 1px solid var(--border);
  -webkit-backdrop-filter: saturate(180%) blur(18px); backdrop-filter: saturate(180%) blur(18px);
}
.top::after { /* тонка райдужна лінія під шапкою */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); opacity: .55;
}
.top-row { display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.logo { flex: none; display: inline-flex; border-radius: 12px; transition: transform .3s var(--ease); }
.logo:hover { transform: scale(1.03); }
.logo img { display: block; height: 42px; width: auto; }
@media (prefers-color-scheme: dark) {
  .logo { background: #fff; padding: 4px 10px; box-shadow: 0 6px 20px -8px rgba(44,179,149,.6); }
  .logo img { height: 36px; }
}
.search { flex: 1 1 360px; position: relative; display: flex; align-items: center; }
.search .ico-search { position: absolute; left: 16px; color: var(--faint); pointer-events: none; }
.search input {
  border-radius: 999px; padding: 12px 120px 12px 46px; background: var(--surface-solid);
  box-shadow: var(--shadow-sm);
}
.search button { position: absolute; right: 5px; top: 5px; bottom: 5px; padding: 0 20px; box-shadow: none; }
.top-nav { display: flex; gap: 8px; flex: none; }
.top-link {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font-weight: 700; color: var(--text);
  padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: box-shadow .25s var(--ease), background .25s var(--ease);
}
.top-link:hover { color: var(--text); background: var(--surface-solid); box-shadow: var(--glow); }
.top-link .ico { width: 18px; height: 18px; color: var(--brand); }
@media (max-width: 720px) {
  .top-row { flex-wrap: wrap; gap: 10px; padding: 10px 14px; }
  .search { order: 3; flex-basis: 100%; }
  .top-nav { margin-left: auto; }
  .top-link { padding: 8px 12px; }
  .top-link span:not(.ico) { display: none; }
  .search input { padding-right: 100px; }
}

/* ── каркас сторінки ────────────────────────────────────────────────────── */
main.wrap { flex: 1; padding-top: 24px; padding-bottom: 72px; }
.page-title {
  font: 700 clamp(1.6rem, 1.1rem + 2vw, 2.5rem)/1.12 var(--f-display); letter-spacing: -.02em;
  margin: 0 0 14px; text-wrap: balance;
}
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; }
.crumbs a { color: var(--muted); padding: 4px 10px; border-radius: 999px; background: var(--surface-2);
            box-shadow: inset 0 0 0 1px var(--border); transition: all .2s var(--ease); }
.crumbs a:hover { color: var(--text); background: var(--surface-solid); }
.intro { color: var(--muted); margin: 0 0 20px; max-width: 72ch; font-size: 1.02rem; }

/* Каскадна поява при завантаженні (лише час, без прив'язки до скролу: кінцевий стан — видимий за < 1 с, тож вміст
   бачать і друк, і роботи-індексатори, що не прокручують сторінку). */
@keyframes rise { from { opacity: 0; transform: translateY(22px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card, .cat-tile, .reveal { animation: rise .7s var(--ease) both; }
.card:nth-child(2), .cat-tile:nth-child(2), .reveal:nth-child(2) { animation-delay: .05s; }
.card:nth-child(3), .cat-tile:nth-child(3), .reveal:nth-child(3) { animation-delay: .10s; }
.card:nth-child(4), .cat-tile:nth-child(4) { animation-delay: .15s; }
.card:nth-child(5), .cat-tile:nth-child(5) { animation-delay: .20s; }
.card:nth-child(6), .cat-tile:nth-child(6) { animation-delay: .25s; }
.card:nth-child(7), .cat-tile:nth-child(7) { animation-delay: .30s; }
.card:nth-child(8), .cat-tile:nth-child(8) { animation-delay: .35s; }
.card:nth-child(n+9), .cat-tile:nth-child(n+9) { animation-delay: .40s; }

/* ── головна: hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin: 8px 0 40px; padding: clamp(36px, 6vw, 84px) clamp(22px, 5vw, 64px);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, #071226 0%, #0b1d3d 45%, #12123a 100%);
  color: #eaf2ff; box-shadow: var(--shadow-lg);
}
.hero::before { /* кольорові вогні */
  content: ""; position: absolute; inset: -30%; z-index: -1;
  background:
    radial-gradient(30% 40% at 18% 30%, rgba(44,179,149,.55), transparent 70%),
    radial-gradient(28% 38% at 82% 20%, rgba(47,124,246,.55), transparent 70%),
    radial-gradient(34% 40% at 70% 90%, rgba(124,92,255,.50), transparent 70%);
  filter: blur(30px); animation: aurora 18s var(--ease) infinite alternate;
}
.hero::after { /* сітка й «шум» */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 80% at 70% 40%, #000, transparent 75%);
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 7px 14px 7px 10px;
  border-radius: 999px; font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase;
  color: #cfe3ff; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: fade-up .7s var(--ease) both;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52,211,153,.7);
                animation: pulse 2s infinite; }
.hero .page-title {
  font-size: clamp(2.3rem, 1.2rem + 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.035em; margin-bottom: 20px;
  background: linear-gradient(100deg, #ffffff 0%, #cfe6ff 30%, #7ee0c3 55%, #8fb6ff 75%, #c4b5ff 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fade-up .8s .08s var(--ease) both, shimmer 9s 1s linear infinite;
}
@keyframes shimmer { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.hero-lead { margin: 0 0 30px; max-width: 58ch; font-size: clamp(1rem, .9rem + .4vw, 1.18rem); color: #b9c8e2;
             animation: fade-up .8s .16s var(--ease) both; }
.hero-search { position: relative; display: flex; max-width: 640px; animation: fade-up .8s .24s var(--ease) both; }
.hero-search .ico-search { position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 22px; height: 22px; color: #8aa0c4; }
.hero-search input {
  padding: 20px 150px 20px 58px; border-radius: 999px; font-size: 1.05rem; color: #fff;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.08);
}
.hero-search input::placeholder { color: #8aa0c4; }
.hero-search input:focus { border-color: rgba(126,224,195,.7); box-shadow: 0 0 0 5px rgba(44,179,149,.22); }
.hero-search button { position: absolute; right: 7px; top: 7px; bottom: 7px; padding: 0 26px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; animation: fade-up .8s .32s var(--ease) both; }
.hero-chips a {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  color: #e3edff; font-weight: 700; font-size: .92rem;
  background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.hero-chips a:hover { color: #fff; background: rgba(255,255,255,.16); transform: translateY(-2px); }
.hero-chips .ico { width: 17px; height: 17px; color: #7ee0c3; }
/* Декоративна «орбіта» праворуч — лише на широких екранах. */
.hero-orb { position: absolute; right: clamp(-120px, -6vw, -40px); top: 50%; translate: 0 -50%;
            width: min(46vw, 560px); aspect-ratio: 1; pointer-events: none; z-index: -1; }
.hero-orb span { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.hero-orb span:nth-child(2) { inset: 14%; border-color: rgba(126,224,195,.22); animation: spin 40s linear infinite; }
.hero-orb span:nth-child(3) { inset: 30%; border-color: rgba(143,182,255,.25); animation: spin 26s linear infinite reverse; }
.hero-orb span:nth-child(4) { inset: 44%; background: radial-gradient(circle at 35% 30%, #8fe9d0, #2f7cf6 55%, #4b2fd0);
                              border: 0; box-shadow: 0 0 80px 10px rgba(47,124,246,.45); animation: float 7s var(--ease) infinite alternate; }
.hero-orb span:nth-child(2)::before, .hero-orb span:nth-child(3)::before {
  content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%;
  background: #7ee0c3; box-shadow: 0 0 16px 4px rgba(126,224,195,.7);
}
.hero-orb span:nth-child(3)::before { background: #a99bff; box-shadow: 0 0 16px 4px rgba(169,155,255,.7); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { from { transform: translateY(-10px) scale(.98); } to { transform: translateY(12px) scale(1.03); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@media (max-width: 900px) { .hero-orb { opacity: .45; width: 90vw; right: -45vw; } }
@media (max-width: 560px) {
  .hero { border-radius: var(--r-lg); margin-top: 0; }
  .hero-search input { padding: 17px 16px 17px 50px; }
  .hero-search .ico-search { left: 18px; }
  .hero-search { flex-direction: column; gap: 10px; }
  .hero-search button { position: static; padding: 15px; }
  .hero-search .ico-search { top: 28px; }
}

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 0 0 18px; }
.section-title { font: 700 clamp(1.2rem, 1rem + 1vw, 1.7rem)/1.2 var(--f-display); letter-spacing: -.02em; margin: 0; }
.section-sub { margin: 4px 0 0; color: var(--muted); }

/* ── плитки категорій ───────────────────────────────────────────────────── */
.cat-grid, .subcats, .cards, .thumbs { list-style: none; margin: 0; padding: 0; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.cat-tile {
  --hue: 170;
  position: relative; isolation: isolate; display: flex; align-items: center; gap: 16px; min-height: 96px;
  padding: 18px 20px; border-radius: var(--r); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
}
.cat-tile:nth-child(6n+2) { --hue: 195; } .cat-tile:nth-child(6n+3) { --hue: 215; }
.cat-tile:nth-child(6n+4) { --hue: 250; } .cat-tile:nth-child(6n+5) { --hue: 160; } .cat-tile:nth-child(6n) { --hue: 228; }
.cat-tile::before { /* градієнтна рамка на ховер */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: -1;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease);
}
.cat-tile::after { /* м'яке кольорове світіння в кутку */
  content: ""; position: absolute; right: -30px; top: -40px; width: 140px; height: 140px; z-index: -1;
  background: radial-gradient(circle, hsla(var(--hue), 80%, 55%, .22), transparent 70%);
  transition: transform .5s var(--ease), opacity .5s var(--ease); opacity: .7;
}
.cat-tile:hover { transform: translateY(-4px); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.cat-tile:hover::before { opacity: 1; }
.cat-tile:hover::after { transform: scale(1.6); opacity: 1; }
.cat-mono {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  font: 800 1.35rem/1 var(--f-display); color: #fff;
  background: linear-gradient(135deg, hsl(var(--hue), 70%, 48%), hsl(calc(var(--hue) + 40), 80%, 58%));
  box-shadow: 0 10px 24px -10px hsla(var(--hue), 80%, 45%, .9), inset 0 1px 0 rgba(255,255,255,.35);
  transition: transform .4s var(--ease);
}
.cat-tile:hover .cat-mono { transform: rotate(-8deg) scale(1.08); }
.cat-tile a { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; color: var(--text); font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.cat-tile a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* уся плитка — посилання */
.cat-go { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
          color: var(--muted); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
          transition: all .35s var(--ease); }
.cat-go .ico { width: 16px; height: 16px; }
.cat-tile:hover .cat-go { color: #fff; background: var(--grad); box-shadow: none; transform: translateX(3px); }

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.trust > div { padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
               -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.trust b { display: block; font: 700 1rem/1.3 var(--f-display); letter-spacing: -.01em; margin-bottom: 6px; }
.trust p { margin: 0; color: var(--muted); font-size: .94rem; }
.trust > div { display: flex; flex-direction: column; }
.trust-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 800; font-size: .92rem; }
.trust-link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.trust-link:hover .ico { transform: translateX(3px); }
.trust .num { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-bottom: 14px; border-radius: 10px;
              font: 800 .9rem/1 var(--f-display); color: #fff; background: var(--grad); }

/* ── підкатегорії (чипи) ────────────────────────────────────────────────── */
.subcats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.subcats a {
  display: inline-flex; align-items: center; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .93rem;
  color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: all .25s var(--ease);
}
.subcats a:hover { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(47,124,246,.7); transform: translateY(-2px); }

/* ── перелік: фільтри + картки ──────────────────────────────────────────── */
.list-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .list-layout { grid-template-columns: 1fr; gap: 18px; } }
.filters {
  position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; padding: 20px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
}
@media (max-width: 860px) { .filters { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
                             .filters button { grid-column: 1 / -1; padding: 11px; } .filters .check { align-self: end; padding-bottom: 8px; } }
@media (max-width: 480px) { .filters input[type=text], .filters select { padding: 9px 10px; font-size: 14px; }
                             .filters select { padding-right: 30px; background-position: right 8px center; }
                             .filters .check { font-size: .84rem; gap: 8px; } }
.filters-title { margin: 0; font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
@media (max-width: 860px) { .filters-title { display: none; } }
.filters label, .filters fieldset { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; font-weight: 700; color: var(--muted); }
.filters fieldset { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.filters legend { width: 100%; padding: 0; margin-bottom: 7px; }
.filters fieldset input { width: calc(50% - 4px); }
.filters .check { flex-direction: row; align-items: center; gap: 12px; color: var(--text); cursor: pointer; user-select: none; }
.filters .check input { /* перемикач-«тумблер» */
  -webkit-appearance: none; appearance: none; flex: none; width: 44px; height: 26px; margin: 0; border-radius: 999px; cursor: pointer;
  background: var(--none-bg); box-shadow: inset 0 0 0 1px var(--border-strong); position: relative; transition: background .3s var(--ease);
}
.filters .check input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .3s var(--ease);
}
.filters .check input:checked { background: var(--grad); box-shadow: none; }
.filters .check input:checked::after { transform: translateX(18px); }
.filters button { width: 100%; padding: 13px; }

.results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.total { margin: 0; font-weight: 700; color: var(--muted); }
.total b { color: var(--text); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 18px; }
@media (max-width: 560px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.card {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 8px; padding: 12px 12px 16px;
  border-radius: var(--r-lg); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.card::before { /* градієнтна рамка */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .4s var(--ease);
}
.card:hover { transform: translateY(-6px); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.card:hover::before { opacity: 1; }
.card-link { color: var(--text); display: flex; flex-direction: column; gap: 12px; }
.card-link:hover { color: var(--text); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; } /* уся картка клікабельна */
.card-img {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
  aspect-ratio: 1; border-radius: calc(var(--r-lg) - 8px); background: var(--img-bg);
}
.card-img::after { /* відблиск, що пробігає на ховер */
  content: ""; position: absolute; inset: 0; translate: -120% 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.65) 50%, transparent 65%);
}
.card:hover .card-img::after { translate: 120% 0; transition: translate .9s var(--ease); }
.card-img img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
.card:hover .card-img img { transform: scale(1.07); }
.card-name { font-size: .97rem; font-weight: 700; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
             overflow: hidden; min-height: calc(1.38em * 2); padding: 0 4px; }
.card-pn { align-self: flex-start; max-width: 100%; margin: 0 4px; padding: 3px 8px; border-radius: 6px; overflow: hidden; text-overflow: ellipsis;
           white-space: nowrap; font: 500 .76rem/1.4 var(--f-mono); color: var(--muted); background: var(--surface-2);
           box-shadow: inset 0 0 0 1px var(--border); }
.card-foot { margin-top: auto; padding: 6px 4px 0; display: flex; flex-direction: column; gap: 8px; }
.card-price { font: 700 1.22rem/1.15 var(--f-display); letter-spacing: -.02em; white-space: nowrap; }
.card-price.ask { font: 700 .95rem/1.2 var(--f-body); letter-spacing: 0; }
@media (prefers-color-scheme: dark) { .card-img, .stage, .thumbs label { filter: brightness(.93); } }
.card.is-out .card-img img { filter: grayscale(.6); opacity: .75; }

.price { font: 800 clamp(2rem, 1.4rem + 2vw, 2.9rem)/1.05 var(--f-display); letter-spacing: -.035em; margin: 0; white-space: nowrap;
         background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price.ask, .ask { color: var(--ask); }
.price.ask { background: none; -webkit-text-fill-color: currentColor; font: 800 1.5rem/1.2 var(--f-display); letter-spacing: -.01em; }

/* Наявність — «пігулка» з крапкою; «В наявності» пульсує. */
.avail { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px 4px 9px; border-radius: 999px;
         font-size: .8rem; font-weight: 700; line-height: 1.3; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.avail-in_stock { color: var(--ok); background: var(--ok-bg); }
.avail-in_stock::before { animation: pulse-ok 2.2s infinite; }
.avail-ask { color: var(--ask); background: var(--ask-bg); }
.avail-none { color: var(--none); background: var(--none-bg); }
@keyframes pulse-ok { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); }
                      70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.no-img { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #9aa6b8; font-size: .82rem; font-weight: 700; }
.no-img .ico { width: 40px; height: 40px; opacity: .6; }
.no-img.big { justify-content: center; aspect-ratio: 1; border-radius: var(--r-lg); background: var(--img-bg); box-shadow: inset 0 0 0 1px var(--border); }
.no-img.big .ico { width: 72px; height: 72px; }

.empty { padding: 48px 24px; text-align: center; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.empty .ico { width: 44px; height: 44px; color: var(--faint); margin-bottom: 10px; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pager a, .pager span { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 14px;
                        font-weight: 700; color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border);
                        transition: all .25s var(--ease); }
.pager a:hover { background: var(--surface-solid); box-shadow: var(--glow); transform: translateY(-2px); }
.pager .cur { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(47,124,246,.7); }

/* ── картка товару ──────────────────────────────────────────────────────── */
.product { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 36px; align-items: start; }
@media (max-width: 900px) { .product { grid-template-columns: 1fr; gap: 22px; } }

/* Галерея без скриптів: радіокнопки + мітки-мініатюри; :checked показує свій слайд. До 8 фото (content.py, ≤ 8). */
.gallery { position: relative; }
.ph-r { position: absolute; opacity: 0; pointer-events: none; }
.stage {
  position: relative; overflow: hidden; aspect-ratio: 1; border-radius: var(--r-xl);
  background: var(--img-bg); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
}
.stage::after { /* підсвітка знизу — «подіум» */
  content: ""; position: absolute; left: 15%; right: 15%; bottom: 6%; height: 10%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(47,124,246,.20), transparent); filter: blur(6px);
}
.slide { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden;
         transform: scale(.96); transition: opacity .5s var(--ease), transform .6s var(--ease), visibility 0s .5s; }
.slide img, .main-img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; transition: transform .7s var(--ease); }
.stage:hover .slide img { transform: scale(1.06); }
.slide:first-child { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; } /* без радіо (одне фото) */
.ph-r ~ .stage .slide:first-child { opacity: 0; visibility: hidden; transform: scale(.96); }
.ph-r:nth-of-type(1):checked ~ .stage .slide:nth-child(1),
.ph-r:nth-of-type(2):checked ~ .stage .slide:nth-child(2),
.ph-r:nth-of-type(3):checked ~ .stage .slide:nth-child(3),
.ph-r:nth-of-type(4):checked ~ .stage .slide:nth-child(4),
.ph-r:nth-of-type(5):checked ~ .stage .slide:nth-child(5),
.ph-r:nth-of-type(6):checked ~ .stage .slide:nth-child(6),
.ph-r:nth-of-type(7):checked ~ .stage .slide:nth-child(7),
.ph-r:nth-of-type(8):checked ~ .stage .slide:nth-child(8) { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.thumbs label { display: block; width: 76px; height: 76px; padding: 6px; border-radius: 16px; cursor: pointer; background: var(--img-bg);
                box-shadow: inset 0 0 0 1px var(--border); transition: all .25s var(--ease); }
.thumbs label:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1px var(--border-strong), var(--shadow); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ph-r:nth-of-type(1):checked ~ .thumbs li:nth-child(1) label,
.ph-r:nth-of-type(2):checked ~ .thumbs li:nth-child(2) label,
.ph-r:nth-of-type(3):checked ~ .thumbs li:nth-child(3) label,
.ph-r:nth-of-type(4):checked ~ .thumbs li:nth-child(4) label,
.ph-r:nth-of-type(5):checked ~ .thumbs li:nth-child(5) label,
.ph-r:nth-of-type(6):checked ~ .thumbs li:nth-child(6) label,
.ph-r:nth-of-type(7):checked ~ .thumbs li:nth-child(7) label,
.ph-r:nth-of-type(8):checked ~ .thumbs li:nth-child(8) label { box-shadow: 0 0 0 2px var(--accent), 0 10px 24px -10px rgba(47,124,246,.7); }
.ph-r:focus-visible ~ .thumbs { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 16px; }

.info {
  position: sticky; top: 92px; padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl);
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-lg);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  animation: fade-up .7s var(--ease) both;
}
@media (max-width: 900px) { .info { position: static; } }
.info .page-title { font-size: clamp(1.35rem, 1rem + 1.4vw, 2rem); line-height: 1.2; margin-bottom: 18px; }
.brand-chip { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 6px 12px; border-radius: 999px;
              font-weight: 800; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-2);
              background: rgba(44,179,149,.12); box-shadow: inset 0 0 0 1px rgba(44,179,149,.25); }
.brand-chip:hover { color: var(--brand); background: rgba(44,179,149,.18); }
@media (prefers-color-scheme: dark) { .brand-chip { color: #7ee0c3; } .brand-chip:hover { color: #a6f0da; } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0 0 22px; padding: 16px 0;
         border-top: 1px dashed var(--border-strong); border-bottom: 1px dashed var(--border-strong); font-size: .95rem; }
.facts dt { color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.pn { font-family: var(--f-mono); font-weight: 600; font-size: .9rem; }
.buy { display: flex; flex-direction: column; gap: 14px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.buy-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.buy-cta .btn { flex: 1 1 200px; }

.descr { grid-column: 1 / -1; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-xl); background: var(--surface);
         box-shadow: inset 0 0 0 1px var(--border); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.descr h2 { font: 700 1.3rem/1.2 var(--f-display); letter-spacing: -.015em; margin: 0 0 14px; }
.descr-text { white-space: pre-line; max-width: 85ch; color: var(--text); font-size: 1rem; line-height: 1.7; }

/* ── контакти ───────────────────────────────────────────────────────────── */
.contacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }
.contact-card { padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); background: var(--surface);
                box-shadow: inset 0 0 0 1px var(--border), var(--shadow); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.contacts .seller { margin: 0 0 18px; font: 700 1.2rem/1.3 var(--f-display); letter-spacing: -.01em; }
.c-line { display: flex; align-items: center; gap: 14px; margin: 0; padding: 14px 0; border-top: 1px solid var(--border); }
.c-line .ico-wrap { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--grad); }
.c-line .ico-wrap .ico { width: 19px; height: 19px; }
.c-line small { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.c-line a { font-weight: 800; font-size: 1.05rem; color: var(--text); }
.c-line a:hover { color: var(--accent); }
.bots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.bot { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 22px; border-radius: var(--r-xl);
       background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow);
       -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.bot:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--glow); }
.bot img { width: 180px; height: 180px; background: #fff; padding: 12px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.bot .btn { width: 100%; }

/* ── бренди (Фаза 9) ────────────────────────────────────────────────────── */
/* Кольори «словесних» плиток: номер класу — з назви бренду (catalog.brand_hue), бо інлайнових стилів CSP не дозволяє. */
.hue-0 { --h1: 165; --h2: 195; } .hue-1 { --h1: 190; --h2: 220; } .hue-2 { --h1: 210; --h2: 245; }
.hue-3 { --h1: 235; --h2: 270; } .hue-4 { --h1: 255; --h2: 290; } .hue-5 { --h1: 280; --h2: 320; }
.hue-6 { --h1: 150; --h2: 185; } .hue-7 { --h1: 200; --h2: 165; } .hue-8 { --h1: 225; --h2: 195; }
.hue-9 { --h1: 245; --h2: 210; } .hue-10 { --h1: 265; --h2: 230; } .hue-11 { --h1: 175; --h2: 250; }
.brand-word {
  background: linear-gradient(135deg, hsl(var(--h1, 190), 68%, 46%), hsl(var(--h2, 230), 78%, 58%));
  color: #fff; font: 800 1.05rem/1.1 var(--f-display); letter-spacing: -.02em; text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 12px 26px -14px hsla(var(--h1, 190), 80%, 40%, .9);
  overflow: hidden; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.18);
}
.brand-grid { list-style: none; margin: 0 0 36px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
@media (max-width: 560px) { .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } }
.brand-tile {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: 12px 12px 14px;
  border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s var(--ease);
  animation: rise .7s var(--ease) both;
}
.brand-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 1; pointer-events: none;
  background: var(--grad); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .35s var(--ease); }
.brand-tile:hover { transform: translateY(-5px); background: var(--surface-solid); box-shadow: var(--shadow-lg); }
.brand-tile:hover::before { opacity: 1; }
.brand-mark { display: grid; place-items: center; aspect-ratio: 2 / 1; padding: 12px; border-radius: calc(var(--r-lg) - 8px);
              transition: transform .45s var(--ease); }
.brand-tile.has-logo .brand-mark { background: #fff; box-shadow: inset 0 0 0 1px var(--border); }
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-tile:hover .brand-mark { transform: scale(1.04); }
.brand-tile a { color: var(--text); font-weight: 800; font-size: .98rem; line-height: 1.25; padding: 0 4px; overflow-wrap: anywhere; }
.brand-tile a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: 2; }
.brand-n { padding: 0 4px; color: var(--muted); font-size: .82rem; font-weight: 600; }
.brand-n .in { color: var(--ok); }
.brands-head { margin-top: 44px; align-items: center; }
.brands-all-title { margin: 8px 0 14px; }
.brands-all-title .muted { font: 600 1rem/1 var(--f-body); }
.section-title + .brand-grid { margin-top: 16px; }
.letters { position: sticky; top: 76px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; padding: 10px;
           border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border), var(--shadow-sm);
           -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.letters a { min-width: 34px; height: 34px; display: inline-grid; place-items: center; padding: 0 8px; border-radius: 10px;
             font-weight: 800; font-size: .9rem; color: var(--text); background: var(--surface-2); transition: all .2s var(--ease); }
.letters a:hover { color: #fff; background: var(--grad); transform: translateY(-2px); }
@media (max-width: 720px) { .letters { top: 112px; } }
.brand-index { columns: 4 220px; column-gap: 24px; }
.brand-letter { break-inside: avoid; margin: 0 0 22px; padding: 16px 18px; border-radius: var(--r); background: var(--surface);
                box-shadow: inset 0 0 0 1px var(--border); scroll-margin-top: 150px; }
.brand-letter h3 { margin: 0 0 8px; font: 800 1.4rem/1 var(--f-display);
                   background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-letter ul { list-style: none; margin: 0; padding: 0; }
.brand-letter li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-top: 1px dashed var(--border); font-size: .94rem; }
.brand-letter li:first-child { border-top: 0; }
.brand-letter a { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.brand-letter a:hover { color: var(--accent); }
.cnt { color: var(--faint); font-size: .82rem; font-weight: 700; white-space: nowrap; }

.brand-head { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; }
.brand-head .page-title { margin: 0; }
.brand-logo, .brand-head .brand-word { flex: none; display: grid; place-items: center; width: 132px; height: 66px; padding: 8px 12px;
                                       border-radius: 16px; }
.brand-logo { background: #fff; box-shadow: inset 0 0 0 1px var(--border), var(--shadow); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-head .brand-word { font-size: .95rem; }
@media (max-width: 560px) { .brand-head { flex-direction: column; align-items: flex-start; gap: 12px; }
                            .brand-logo, .brand-head .brand-word { width: 112px; height: 56px; } }
.sections { margin: 0 0 22px; }
.sections-title { margin: 0 0 10px; font: 700 .78rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sections ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.sections a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-weight: 700; font-size: .93rem;
              color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border-strong);
              -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: all .25s var(--ease); }
.sections a .cnt { padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.sections a:hover { transform: translateY(-2px); box-shadow: var(--glow); }
.sections a.cur { color: #fff; background: var(--grad); box-shadow: 0 10px 24px -10px rgba(47,124,246,.7); }
.sections a.cur .cnt { background: rgba(255,255,255,.22); color: #fff; }

/* ── стрічка логотипів брендів (карусель без скриптів) ─────────────────────────
   Спільна з основним сайтом used.net.ua (модуль Joomla «ЮЗЕДНЕТ: блоки», план docs/joomla_template_plan.md §7).
   Рух — за часом (не за скролом): перелік двічі поспіль (друга копія aria-hidden), зсув на −50 %, пауза під курсором
   і фокусом; prefers-reduced-motion — без руху, звичайна горизонтальна прокрутка. */
.brand-marquee { --marquee-time: 60s; position: relative; overflow: hidden; margin: 0 0 36px; padding: 6px 0 12px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.brand-track { display: flex; width: max-content; animation: marquee var(--marquee-time) linear infinite; }
.brand-marquee:hover .brand-track, .brand-marquee:focus-within .brand-track { animation-play-state: paused; }
.brand-track .brand-grid { display: flex; flex-wrap: nowrap; gap: 16px; margin: 0; padding: 0 8px; }
.brand-track .brand-tile { flex: none; width: 180px; }
.brand-marquee.marquee-slow { --marquee-time: 90s; } .brand-marquee.marquee-fast { --marquee-time: 35s; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 560px) { .brand-track .brand-tile { width: 150px; } }
@media (prefers-reduced-motion: reduce) {
  .brand-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .brand-track .brand-grid[aria-hidden="true"] { display: none; }
}

/* ── помилки ────────────────────────────────────────────────────────────── */
.error-page { text-align: center; padding: clamp(40px, 8vw, 100px) 0; }
.error-code { margin: 0 0 6px; font: 900 clamp(5rem, 3rem + 10vw, 11rem)/.9 var(--f-display); letter-spacing: -.06em;
              background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
              animation: float 5s var(--ease) infinite alternate; }
.error-page .muted { margin: 0 auto 28px; max-width: 48ch; font-size: 1.05rem; }

/* ── підвал ─────────────────────────────────────────────────────────────── */
.foot { position: relative; margin-top: auto; padding: 44px 0 34px; font-size: .93rem; color: #b6c4dc;
        background: linear-gradient(160deg, #071226 0%, #0b1a35 55%, #121236 100%); overflow: hidden; isolation: isolate; }
.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--grad); }
.foot::after { content: ""; position: absolute; inset: auto -10% -60% 40%; height: 160%; z-index: -1;
               background: radial-gradient(closest-side, rgba(47,124,246,.28), transparent); filter: blur(20px); }
.foot-cols { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px; }
.foot a { color: #e6eeff; font-weight: 700; }
.foot a:hover { color: #7ee0c3; }
.foot-seller { display: flex; flex-direction: column; gap: 6px; }
.foot-seller > .foot-tagline { max-width: 560px; font: 700 1.05rem/1.4 var(--f-display); color: #fff; margin-bottom: 6px;
                               text-wrap: balance; }
.foot-note { max-width: 480px; color: #93a3bf; }
.foot-note p { margin: 0 0 12px; }

/* ── доступність руху ───────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  body::before, body::after, .top, .foot, .filters, .hero-orb { display: none !important; }
  .card, .info, .descr { box-shadow: none; background: #fff; }
}
