/* vesc.com.ua — тема vesc2026. Кольори, шрифти й відступи з design/mockups/*.dc.html */
:root {
  --ink: #0E1525;
  --accent: #1F4FD8;
  --accent-hover: #183EAD;
  --accent-soft: #E8EEFF;
  --accent-tag: #E3EAFF;
  --signal: #FFB020;
  --bg: #FFFFFF;
  --bg-soft: #F4F6FA;
  --bg-softer: #F8F9FB;
  --line: #E3E7EE;
  --line-strong: #D5DCE8;
  --line-hover: #C9D3E6;
  --muted: #4A5468;
  --muted-2: #5B6475;
  --ok: #137A3F;
  --ok-soft: #EAF7EF;
  --ok-ink: #0F5C30;
  --warn: #8A5A00;
  --warn-soft: #FFF4D6;
  --warn-ink: #6B4500;
  --bad: #B42318;
  --dark-line: #3A4560;
  --dark-muted: #C3CAD8;
  --font: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Unbounded, Manrope, system-ui, sans-serif;
  --radius: 18px;
  --wrap: 1280px;
  --gutter: 24px;
}
@media (max-width: 640px) { :root { --gutter: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 8px; color: #fff; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.h-display { font-family: var(--font-head); font-weight: 600; letter-spacing: -0.02em; }
.icon { display: block; flex-shrink: 0; }

/* ---------- Кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 11px; border: 0; font-weight: 700; font-size: 14px; white-space: nowrap; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1E2A44; color: #fff; }
.btn-soft { background: var(--bg-soft); color: var(--ink); }
.btn-soft:hover { background: #E9EDF4; color: var(--ink); }
/* Передзамовлення (немає на складі) — бурштинова, як блискавка логотипа; бронювання з поставки — бірюзова. «Купити» лишається синьою. */
.btn-preorder { background: #FFB020; color: #2B1A00; }
.btn-preorder:hover { background: #F59E0B; color: #2B1A00; }
.btn-preorder-soft { background: #FFF1D1; color: #6B4500; }
.btn-preorder-soft:hover { background: #FFE4A8; color: #5A3A00; }
.btn-book { background: #0E7C66; color: #fff; }
.btn-book:hover { background: #0A6453; color: #fff; }
.btn-book-soft { background: #E3F4EF; color: #0A5C4C; }
.btn-book-soft:hover { background: #CDEBE2; color: #084A3D; }
.btn-preorder:focus-visible, .btn-book:focus-visible, .btn-preorder-soft:focus-visible, .btn-book-soft:focus-visible { outline: 3px solid rgba(31, 79, 216, .35); outline-offset: 2px; }
.btn-ok { background: var(--ok-soft); color: var(--ok-ink); }
.btn-outline { background: #fff; border: 1px solid var(--line-strong); color: var(--ink); }
.btn-signal { background: var(--signal); color: var(--ink); font-weight: 800; }
.btn-signal:hover { background: #F0A30F; color: var(--ink); }
.btn-ghost-dark { background: transparent; border: 1px solid var(--dark-line); color: #fff; }
.btn-link { border: 0; background: transparent; padding: 0; height: auto; color: var(--accent); font-weight: 700; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* Чіпи-перемикачі */
.chip { height: 40px; min-width: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
a.chip:hover { color: var(--ink); }
a.chip.is-active:hover { color: #fff; }
.chip-group { display: flex; flex-wrap: wrap; gap: 6px; }

/* Перемикач «Лише в наявності» */
.switch { border: 0; background: transparent; padding: 0; min-height: 44px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14px; color: var(--ink); text-align: left; }
.switch__track { width: 36px; height: 22px; border-radius: 11px; background: var(--line-hover); position: relative; flex-shrink: 0; transition: background .15s; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 8px; background: #fff; transition: left .15s; }
.switch[aria-pressed="true"] .switch__track { background: var(--accent); }
.switch[aria-pressed="true"] .switch__track::after { left: 17px; }

/* ---------- Верхня смуга ---------- */
.topbar { background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.topbar__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; padding-top: 9px; padding-bottom: 9px; }
.topbar__note { display: flex; gap: 8px; align-items: center; }
.topbar__links { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; }
.topbar a { color: var(--muted); }
.topbar a:hover { color: var(--accent); }
.topbar a.topbar__phone { color: var(--ink); font-weight: 700; }
@media (max-width: 760px) {
  .topbar__note, .topbar__links a:not(.topbar__phone) { display: none; }
  .topbar__in { justify-content: flex-end; padding-top: 6px; padding-bottom: 6px; }
}

/* ---------- Шапка ---------- */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.site-header__row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 40px; height: 40px; border-radius: 11px; background: var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__name { font-family: var(--font-head); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; }
.logo__tag { font-size: 11px; color: var(--muted-2); letter-spacing: 0.04em; margin-top: 4px; }

.search { flex: 1 1 320px; min-width: 0; display: flex; align-items: center; gap: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 12px; padding: 0 6px 0 14px; height: 48px; }
.search:focus-within { border-color: var(--accent); background: #fff; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 15px; color: var(--ink); outline: none; height: 44px; }
.search input::placeholder { color: #7A8497; }
.search button { height: 36px; padding: 0 14px; border-radius: 9px; border: 0; background: var(--ink); color: #fff; font-weight: 600; font-size: 14px; }

.header-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.icon-btn { position: relative; width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: center; color: var(--ink); }
.icon-btn:hover { border-color: var(--line-hover); color: var(--ink); }
.icon-btn__badge { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.icon-btn__badge[hidden] { display: none; }
.cart-btn { height: 46px; padding: 0 12px 0 14px; border-radius: 12px; background: var(--accent); color: #fff; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; }
.cart-btn:hover { background: var(--accent-hover); color: #fff; }
.cart-btn__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: #fff; color: var(--accent); font-size: 12px; display: flex; align-items: center; justify-content: center; }

.main-nav { padding-bottom: 14px; }
.main-nav__list { list-style: none; margin: 0 auto; padding: 0 var(--gutter); display: flex; flex-wrap: wrap; gap: 6px 28px; font-weight: 600; font-size: 15px; }
.main-nav__list a { color: var(--ink); display: inline-flex; align-items: center; gap: 8px; min-height: 32px; }
.main-nav__list a:hover, .main-nav__list a[aria-current="page"] { color: var(--accent); }
.main-nav__item { position: relative; }
.main-nav__sub { display: none; position: absolute; z-index: 20; top: 100%; left: -14px; min-width: 260px; list-style: none; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 40px rgba(14,21,37,.10); }
.main-nav__sub a { display: flex; padding: 10px 12px; border-radius: 9px; font-weight: 600; font-size: 14px; }
.main-nav__sub a:hover { background: var(--bg-soft); }
.main-nav__item:hover > .main-nav__sub, .main-nav__item:focus-within > .main-nav__sub { display: block; }

@media (max-width: 760px) {
  .site-header__row { padding-top: 12px; padding-bottom: 12px; gap: 12px; }
  .logo__tag { display: none; }
  .search { order: 3; flex-basis: 100%; }
  .icon-btn { width: 44px; height: 44px; }
  .cart-btn { height: 44px; }
  .cart-btn__total { display: none; }
  .main-nav { padding-bottom: 0; border-top: 1px solid var(--line); }
  .main-nav__list { flex-wrap: nowrap; overflow-x: auto; gap: 22px; padding: 10px 0; scrollbar-width: none; }
  .main-nav__list::-webkit-scrollbar { display: none; }
  .main-nav__list a { white-space: nowrap; min-height: 28px; }
  .main-nav__sub { display: none !important; }
}

/* ---------- Хлібні крихти ---------- */
.breadcrumbs { padding: 20px 0 8px; font-size: 14px; color: var(--muted-2); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.breadcrumbs li { display: flex; gap: 8px; }
.breadcrumbs li + li::before { content: "/"; color: var(--muted-2); }
.breadcrumbs a { color: var(--muted-2); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Категорія ---------- */
.cat-head { display: flex; flex-wrap: wrap; gap: 16px 40px; align-items: flex-end; justify-content: space-between; padding-bottom: 20px; }
.cat-head__title { flex: 1 1 560px; min-width: 0; }
.cat-head h1 { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 38px; line-height: 1.12; letter-spacing: -0.02em; }
.cat-head__nav { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-head__nav .chip { height: 40px; padding: 0 14px; font-weight: 600; }
.cat-head__nav .chip.is-active { font-weight: 700; }
@media (max-width: 640px) { .cat-head h1 { font-size: 28px; } }

.cat-body { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.filters { flex: 1 1 260px; max-width: 300px; min-width: 240px; display: flex; flex-direction: column; gap: 14px; }
.filters__toggle { display: none; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.panel--soft { background: var(--bg-softer); }
.panel__title { font-weight: 800; font-size: 15px; }
.panel__sub { font-size: 13px; color: var(--muted); line-height: 1.5; }
.plat-btn { min-height: 44px; padding: 8px 12px; border-radius: 10px; text-align: left; border: 1px solid var(--line-strong); background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 2px; }
.plat-btn[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); }
.plat-btn__name { font-weight: 700; font-size: 14px; }
.plat-btn__sub { font-size: 12px; color: var(--muted); }

.listing { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.listing__bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.listing__count { font-size: 15px; color: var(--muted); }
.listing__count strong { color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.empty-note { padding: 28px; border: 1px dashed var(--line-hover); border-radius: var(--radius); text-align: center; color: var(--muted); line-height: 1.6; }
.empty-note[hidden] { display: none; }

@media (max-width: 860px) {
  .cat-body { gap: 16px; }
  .filters { max-width: none; flex-basis: 100%; }
  .filters__toggle { display: flex; width: 100%; justify-content: space-between; }
  .filters__body { display: none; flex-direction: column; gap: 14px; }
  .filters.is-open .filters__body { display: flex; }
}
@media (min-width: 861px) { .filters__body { display: flex; flex-direction: column; gap: 14px; } }

/* ---------- Картка товару ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); }
.card[hidden] { display: none; }
.card__media { display: block; background: var(--bg-softer); position: relative; color: var(--ink); aspect-ratio: 6 / 5; }
.card__media img { display: block; width: 100%; height: 100%; object-fit: contain; padding: 30px 16px 12px; mix-blend-mode: multiply; }
.card__brand { position: absolute; top: 12px; left: 14px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.card__plat { position: absolute; top: 10px; right: 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.06em; border-radius: 7px; padding: 4px 8px; }
.card__plat--vesc { color: var(--accent-hover); background: var(--accent-tag); }
.card__plat--ft, .card__plat--blheli { color: var(--warn-ink); background: var(--warn-soft); }
.card__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.status { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; flex-shrink: 0; }
.status--in { color: var(--ok); }
.status--order, .status--soon { color: var(--warn); }
.status--out { color: var(--bad); }
.card__name { color: var(--ink); font-weight: 800; font-size: 16px; line-height: 1.3; }
.card__name:hover { color: var(--accent); }
.specs { display: flex; flex-wrap: wrap; gap: 6px; }
.spec { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--bg-soft); border-radius: 8px; padding: 5px 8px; }
.spec--strong { font-weight: 700; color: var(--ink); }
.cmp-toggle { align-self: flex-start; border: 0; background: transparent; padding: 0; min-height: 32px; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.cmp-toggle__box { width: 18px; height: 18px; border-radius: 5px; border: 2px solid #9AA5B8; background: #fff; display: flex; align-items: center; justify-content: center; }
.cmp-toggle__box svg { opacity: 0; }
.cmp-toggle[aria-pressed="true"] .cmp-toggle__box { background: var(--accent); border-color: var(--accent); }
.cmp-toggle[aria-pressed="true"] .cmp-toggle__box svg { opacity: 1; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.price { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.price__old { display: block; font-size: 13px; font-weight: 600; color: var(--muted-2); text-decoration: line-through; }
.price__new { color: var(--bad); }

/* Панель порівняння */
.cmp-bar { position: sticky; bottom: 16px; z-index: 30; background: var(--ink); color: #fff; border-radius: 16px; padding: 12px 14px 12px 20px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; box-shadow: 0 12px 30px rgba(14,21,37,.25); }
.cmp-bar[hidden] { display: none; }
.cmp-bar__label { font-weight: 700; font-size: 15px; }
.cmp-bar__actions { display: flex; gap: 8px; }

/* ---------- Секції під товарами ---------- */
.section { margin-top: 64px; }
.section__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
@media (max-width: 640px) { .section { margin-top: 48px; } .section__title { font-size: 22px; } }
.steps { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.step__n { font-weight: 800; font-size: 28px; color: var(--accent); line-height: 1; }
.step__t { font-weight: 800; font-size: 17px; margin-top: 10px; }
.step p { margin: 8px 0 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* Текст категорії з бази (SEO-текст) */
.seo-text { margin-top: 48px; background: var(--bg-softer); border-radius: 22px; padding: 32px; }
@media (max-width: 640px) { .seo-text { padding: 22px 18px; border-radius: 18px; } }
.prose { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 900px; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose > :last-child { margin-bottom: 0; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: var(--ink); font-family: var(--font); font-weight: 800; line-height: 1.3; margin: 1.6em 0 .6em; }
.prose h1, .prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; }
.prose h4 { font-size: 15px; }
.prose p { margin: 0 0 1em; }
.prose strong, .prose b { color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: .3em 0; }
.prose img { border-radius: 12px; height: auto !important; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1em; font-size: 14px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: #fff; color: var(--ink); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose iframe { max-width: 100%; }

/* Часті питання */
.faq { max-width: 900px; }
.faq details { border-top: 1px solid var(--line); padding: 16px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 16px; min-height: 28px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 600; font-size: 22px; line-height: 1; color: var(--muted-2); }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 10px 0 0; font-size: 15px; color: var(--muted); line-height: 1.65; }

/* Модулі з бази (статті, рекомендовані товари) у новому стилі */
.mod-list { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.mod-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.mod-card:hover { border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); color: var(--ink); }
.mod-card__img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: var(--bg-softer); border-radius: 12px; }
.mod-card__meta { font-size: 12px; font-weight: 700; color: var(--muted-2); }
.mod-card__title { font-weight: 800; font-size: 17px; line-height: 1.35; }
.mod-card__text { font-size: 14px; color: var(--muted-2); line-height: 1.55; }
.mod-card__price { margin-top: auto; font-weight: 800; font-size: 18px; }

/* Пагінація (стандартна розмітка OpenCart) */
.pager { margin-top: 8px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }
.pager .pagination { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.pager .pagination a, .pager .pagination span { display: inline-flex; min-width: 40px; height: 40px; padding: 0 10px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--ink); font-weight: 700; }
.pager .pagination .active span { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Сповіщення (додано в кошик тощо) */
.toast { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); max-width: min(520px, calc(100vw - 32px)); background: var(--ink); color: #fff; border-radius: 14px; padding: 14px 16px 14px 18px; display: flex; gap: 14px; align-items: center; box-shadow: 0 16px 40px rgba(14,21,37,.3); font-size: 14px; font-weight: 600; }
.toast[hidden] { display: none; }
.toast a { color: var(--signal); font-weight: 800; white-space: nowrap; }
.toast--error { background: var(--bad); }
.toast--error a { color: #fff; text-decoration: underline; }

/* ---------- Футер ---------- */
.site-footer { margin-top: 80px; background: var(--bg-soft); border-top: 1px solid var(--line); }
.site-footer__in { padding-top: 48px; padding-bottom: 24px; }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col__title { font-weight: 800; font-size: 15px; margin: 0 0 4px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.footer-col a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }
.footer-col a:hover { color: var(--accent); }
.footer-col a.footer-phone { color: var(--ink); font-weight: 700; }
.footer-about { font-size: 14px; color: var(--muted); line-height: 1.6; margin: 4px 0 0; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #DDE2EA; display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--muted); line-height: 1.6; }
.footer-legal p { margin: 0; }

/* ---------- Сторінка товару ---------- */
.pp-top { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-top: 4px; }
.pp-gallery { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pp-gallery__main { background: #F7F9FC; border-radius: 24px; display: flex; align-items: center; justify-content: center; padding: 24px; aspect-ratio: 1 / 1; max-height: 600px; }
.pp-gallery__main a { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; }
.pp-gallery__main img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; mix-blend-mode: multiply; }
.pp-gallery__empty { color: var(--muted-2); font-size: 14px; }
.pp-gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 2px; }
.pp-thumb { flex: 0 0 auto; width: 84px; height: 84px; border-radius: 14px; border: 1px solid var(--line); background: #F7F9FC; padding: 6px; }
.pp-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.pp-thumb[aria-pressed="true"] { border: 2px solid var(--accent); padding: 5px; }

.pp-buy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.pp-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; color: var(--muted-2); text-transform: uppercase; }
.pp-eyebrow a { color: var(--muted-2); }
.pp-eyebrow a:hover { color: var(--accent); }
.pp-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 34px; line-height: 1.15; letter-spacing: -0.02em; overflow-wrap: anywhere; }
@media (max-width: 640px) { .pp-title { font-size: 24px; } .pp-top { gap: 20px; } .pp-gallery__main { border-radius: 18px; padding: 16px; } }
.pp-note { border-radius: 12px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.pp-note--warn { background: var(--warn-soft); color: var(--warn-ink); }
.pp-stock { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; border-radius: 9px; padding: 7px 11px; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.badge--in { color: var(--ok); background: var(--ok-soft); }
.badge--order, .badge--soon { color: var(--warn); background: var(--warn-soft); }
.badge--out { color: var(--bad); background: #FDECEA; }
.pp-reviews-link { font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }

.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { background: var(--bg-soft); border-radius: 14px; padding: 14px; }
.tile__v { font-size: 22px; font-weight: 800; }
.tile__l { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
@media (max-width: 420px) { .tile__v { font-size: 18px; } .tile { padding: 12px 10px; } }

.checker { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.checker__title { font-weight: 800; font-size: 16px; }
.checker__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.checker__label { font-size: 14px; color: var(--muted); }
.verdict { border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; }
.verdict--ok { background: var(--ok-soft); color: var(--ok-ink); }
.verdict--edge { background: var(--warn-soft); color: var(--warn-ink); }
.verdict--no { background: #FDECEA; color: #8F1D14; }

.stepper { display: flex; align-items: center; gap: 6px; }
.stepper__btn { width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1; }
.stepper__btn--tall { height: 52px; }
.stepper__val { min-width: 64px; height: 44px; border-radius: 11px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; }
.stepper__input { width: 56px; height: 52px; border-radius: 11px; border: 1px solid var(--line-strong); text-align: center; font-weight: 800; font-size: 16px; -moz-appearance: textfield; }
.stepper__input::-webkit-outer-spin-button, .stepper__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.pp-form { display: flex; flex-direction: column; gap: 14px; }
.pp-options { display: flex; flex-direction: column; gap: 12px; }
.opt { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.opt__name { font-weight: 700; font-size: 14px; padding: 0; }
.opt__val { position: relative; }
.opt__val input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt__val span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; font-size: 14px; background: #fff; }
.opt__val input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt__val input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.opt.has-error .opt__val span, .opt.has-error .opt__select { border-color: var(--bad); }
.opt__select { height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 12px; background: #fff; max-width: 100%; }
.pp-discounts { margin: 0; padding-left: 1.2em; font-size: 14px; color: var(--muted); }
.pp-buyrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding-top: 4px; }
.pp-price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }
.pp-price .price__old { font-size: 15px; }
.pp-cart { flex: 1 1 200px; height: 52px; font-size: 16px; font-weight: 800; border-radius: 12px; }
.pp-min { margin: 0; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .pp-price { font-size: 30px; flex-basis: 100%; } }

.pp-actions { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.pp-action { border: 0; background: transparent; padding: 0; min-height: 44px; display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; }
.pp-action:hover { color: var(--accent); }
.pp-action[aria-pressed="true"] { color: var(--accent); }
.pp-action[aria-pressed="true"] svg { fill: currentColor; fill-opacity: .15; }
.pp-info { list-style: none; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: var(--muted); }
.pp-info li { display: flex; gap: 12px; align-items: flex-start; }
.pp-info svg { flex-shrink: 0; }

.pp-tabs { margin-top: 64px; }
@media (max-width: 640px) { .pp-tabs { margin-top: 40px; } }
.tablist { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tablist::-webkit-scrollbar { display: none; }
.tablist [role="tab"] { flex: 0 0 auto; height: 52px; padding: 0 18px; border: 0; background: transparent; font-size: 15px; font-weight: 700; color: var(--muted-2); border-bottom: 3px solid transparent; margin-bottom: -1px; }
.tablist [role="tab"][aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.tabpanel { padding-top: 28px; }
.tabpanel[hidden] { display: none; }
.prose--product { font-size: 16px; color: #2A3346; max-width: 860px; }
.pp-tags { margin: 24px 0 0; font-size: 13px; color: var(--muted-2); line-height: 1.8; }

.spec-wrap { display: flex; flex-wrap: wrap; gap: 32px; }
.spec-main { flex: 1 1 520px; min-width: 0; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; margin-bottom: 20px; }
.spec-table caption { text-align: left; font-weight: 800; font-size: 16px; padding-bottom: 8px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table th { text-align: left; font-weight: 500; color: var(--muted-2); padding: 14px 16px 14px 0; width: 45%; vertical-align: top; }
.spec-table td { padding: 14px 0; font-weight: 700; overflow-wrap: anywhere; }
.spec-note { margin: 0; font-size: 13px; color: var(--muted-2); line-height: 1.55; }
.spec-side { flex: 1 1 280px; min-width: 0; align-self: flex-start; background: var(--bg-soft); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; font-weight: 700; }
.spec-side__t { font-weight: 800; font-size: 16px; }
.steps--4 { margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.downloads { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.downloads a { font-weight: 700; }
.downloads span { color: var(--muted-2); font-size: 13px; }

.reviews { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.review { border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.review__head { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 14px; }
.review__stars { color: #C9D3E6; letter-spacing: 2px; }
.review__stars .on { color: var(--signal); }
.review__date { color: var(--muted-2); }
.review p { margin: 10px 0 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.reviews__empty { color: var(--muted); margin: 0; }
.review-form { margin-top: 28px; max-width: 620px; display: flex; flex-direction: column; gap: 14px; }
.review-form__t { margin: 0; font-size: 18px; font-weight: 800; }
.field { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.field label, .field legend { font-weight: 700; padding: 0; }
.field input[type="text"], .field textarea { border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font-size: 15px; background: #fff; }
.field input[type="text"] { height: 48px; padding-top: 0; padding-bottom: 0; }
.field small { color: var(--muted-2); }
.rating-input { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted-2); }
.rating-input label { position: relative; }
.rating-input input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.rating-input label span { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 700; color: var(--ink); }
.rating-input input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.rating-input input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.review-form .btn { align-self: flex-start; height: 48px; padding: 0 20px; }
.review-form__msg { font-size: 14px; font-weight: 600; }
.review-form__msg.is-ok { color: var(--ok); }
.review-form__msg.is-error { color: var(--bad); }

.related { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.rel-card { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; background: #fff; transition: border-color .15s, box-shadow .15s; }
.rel-card:hover { border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); }
.rel-card__media { display: block; background: var(--bg-softer); aspect-ratio: 6 / 5; }
.rel-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; mix-blend-mode: multiply; }
.rel-card__body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rel-card__name { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.35; }
.rel-card__name:hover { color: var(--accent); }
.rel-card__foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.rel-card__price { font-weight: 800; font-size: 17px; white-space: nowrap; }
.btn--sm { height: 38px; padding: 0 10px; font-size: 13px; border-radius: 10px; }

/* ---------- Головна ---------- */
.btn--lg { height: 52px; padding: 0 22px; border-radius: 12px; font-size: 15px; }
.btn-white { background: #fff; color: var(--ink); font-weight: 800; }
.btn-white:hover { background: #EEF1F7; color: var(--ink); }
.eyebrow { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; color: var(--accent); text-transform: uppercase; display: flex; align-items: center; gap: 10px; }
.eyebrow--signal { color: var(--signal); }
.eyebrow__dot { width: 8px; height: 8px; border-radius: 4px; background: currentColor; }
.tag { font-size: 12px; font-weight: 800; letter-spacing: 0.12em; border-radius: 8px; padding: 6px 10px; }
.tag--accent { color: var(--accent); background: var(--accent-tag); }
.section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 16px; margin-bottom: 20px; }

.hero-wrap { padding-top: 28px; }
.hero { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.hero__main { flex: 999 1 520px; min-width: 0; background: var(--ink); color: #fff; border-radius: 24px; padding: 52px 48px; display: flex; flex-direction: column; justify-content: space-between; gap: 40px; }
.hero__text { display: flex; flex-direction: column; gap: 22px; }
.hero__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 54px; line-height: 1.06; letter-spacing: -0.025em; max-width: 620px; }
.hero__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--dark-muted); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn-ghost-dark:hover { border-color: #fff; color: #fff; }
.hero-card { flex: 1 1 380px; min-width: 0; background: #F3F5FB; border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.hero-card:hover { color: var(--ink); border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); }
.hero-card__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-card__img { flex: 1; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.hero-card__img img { max-height: 300px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.hero-card__brand { font-size: 13px; color: var(--muted-2); font-weight: 600; }
.hero-card__name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin-top: 6px; }
.hero-card__tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 10px; }
.hero-tile { background: #fff; border-radius: 12px; padding: 12px 14px; }
.hero-tile__v { font-size: 18px; font-weight: 800; white-space: nowrap; }
.hero-tile__l { font-size: 12px; color: var(--muted-2); }
@media (max-width: 760px) {
  .hero-wrap { padding-top: 16px; }
  .hero__main { padding: 32px 22px; border-radius: 20px; gap: 28px; }
  .hero__title { font-size: 34px; }
  .hero__lead { font-size: 15px; }
  .hero-card { padding: 20px; border-radius: 20px; }
  .hero-card__img { min-height: 180px; }
  .hero-card__img img { max-height: 220px; }
}

.benefits { padding-top: 28px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 16px; }
.benefit svg { flex-shrink: 0; }
.benefit__t { font-weight: 700; font-size: 15px; }
.benefit__s { font-size: 13px; color: var(--muted-2); margin-top: 4px; line-height: 1.45; }

.home-picker-scope { margin-top: 56px; }
.home-picker-scope .home-mod { margin-top: 20px; }
.picker { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; scroll-margin-top: 16px; }
.picker__title { font-weight: 700; font-size: 15px; }
.picker .chip { height: 44px; padding: 0 16px; border-radius: 11px; }
.picker__stock { margin-left: auto; height: 44px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-strong); background: #fff; font-weight: 600; }
.picker__note { flex-basis: 100%; font-size: 13px; color: var(--muted-2); }
@media (max-width: 640px) { .picker__stock { margin-left: 0; } }
.home-more { margin: 16px 0 0; font-weight: 700; font-size: 15px; }
.home-mod + .home-mod, .wrap > .home-mod { margin-top: 56px; }

.cat-cards { margin-top: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.cat-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); min-height: 150px; transition: border-color .15s, box-shadow .15s; }
.cat-card:hover { color: var(--ink); border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); }
.cat-card__t { font-weight: 800; font-size: 18px; }
.cat-card__s { font-size: 14px; color: var(--muted-2); line-height: 1.5; }

.help { background: var(--ink); border-radius: 24px; padding: 36px 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; color: #fff; }
.help__main { display: flex; gap: 22px; align-items: center; flex: 1 1 520px; min-width: 0; }
.help__icon { width: 64px; height: 64px; border-radius: 16px; border: 1px solid var(--dark-line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.help__t { font-family: var(--font-head); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; line-height: 1.25; }
.help__s { margin-top: 8px; font-size: 15px; color: var(--dark-muted); line-height: 1.55; }
.help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) { .help { padding: 26px 20px; border-radius: 20px; } .help__icon { display: none; } .help__t { font-size: 20px; } }

.duo { display: flex; flex-wrap: wrap; gap: 20px; }
.duo__card { flex: 1 1 460px; min-width: 0; border: 1px solid var(--line); border-radius: 22px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.duo__card--soft { background: var(--bg-softer); }
.duo__p { margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }
.duo__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.duo__more { font-weight: 700; font-size: 14px; }
@media (max-width: 640px) { .duo__card { padding: 22px 18px; } }
.soft-link { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; color: var(--ink); }
.soft-link:hover { color: var(--ink); border-color: var(--line-hover); }
.soft-link__body { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.soft-link__t { font-weight: 800; font-size: 16px; }
.soft-link__s { font-size: 13px; color: var(--muted-2); }
.soft-link svg { flex-shrink: 0; }
.mod-card__more { margin-top: auto; font-weight: 700; font-size: 14px; color: var(--accent); }

/* SEO-текст головної: H1 з бази має вбудований стиль (Open Sans) — тут лише оформлення */
.prose--seo h1 { font-family: var(--font-head) !important; font-weight: 600; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; color: var(--ink) !important; margin-top: 0; }
.prose--seo h2 { font-size: 20px; }
@media (max-width: 640px) { .prose--seo h1 { font-size: 22px; } }

/* ---------- Телефон: компактна шапка й картки у дві колонки ---------- */
@media (max-width: 760px) {
  .site-header__row { gap: 10px 8px; }
  .logo { gap: 10px; }
  .logo__mark { width: 36px; height: 36px; border-radius: 10px; }
  .logo__name { font-size: 16px; }
  .header-actions { gap: 4px; }
  .icon-btn { width: 42px; height: 42px; }
  .cart-btn { height: 42px; padding: 0 10px; gap: 8px; }
  .main-nav__list { padding: 10px var(--gutter); }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card__media img { padding: 24px 8px 6px; }
  .card__brand { top: 8px; left: 10px; font-size: 10px; letter-spacing: .08em; }
  .card__plat { top: 6px; right: 6px; font-size: 9.5px; padding: 3px 5px; letter-spacing: .03em; }
  .card__body { padding: 10px 10px 12px; gap: 7px; }
  .status { font-size: 12px; gap: 6px; }
  .card__name { font-size: 14px; }
  .spec { font-size: 11.5px; padding: 4px 6px; }
  .cmp-toggle { font-size: 12px; min-height: 30px; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .price { font-size: 17px; }
  .card__foot .btn { width: 100%; height: 40px; font-size: 13px; padding: 0 8px; }
  .card__foot .btn svg { display: none; }
  .related { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rel-card__foot { flex-direction: column; align-items: stretch; }
  .rel-card__foot .btn { width: 100%; }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-cols > .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col a { min-height: 44px; }
  .footer-col ul { gap: 0; }
}

/* ---------- Підказки пошуку ---------- */
.search { position: relative; }
.suggest { position: absolute; z-index: 60; top: calc(100% + 6px); left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(14,21,37,.14); padding: 6px; max-height: min(70vh, 560px); overflow-y: auto; }
.suggest[hidden] { display: none; }
.suggest__item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border-radius: 10px; color: var(--ink); }
.suggest__item:hover, .suggest__item[aria-selected="true"] { background: var(--bg-soft); color: var(--ink); }
.suggest__img { width: 48px; height: 48px; border-radius: 8px; background: var(--bg-softer); object-fit: contain; mix-blend-mode: multiply; }
.suggest__img--empty { display: block; }
.suggest__name { font-weight: 700; font-size: 14px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.suggest__name mark { background: none; color: var(--accent); }
.suggest__meta { display: flex; gap: 8px; align-items: center; margin-top: 3px; font-size: 12px; }
.suggest__meta .status { font-size: 12px; }
.suggest__price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.suggest__all { display: flex; justify-content: center; align-items: center; min-height: 44px; margin-top: 4px; border-top: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.suggest__all[aria-selected="true"] { background: var(--bg-soft); border-radius: 10px; }
.suggest__empty { padding: 14px 12px; font-size: 14px; color: var(--muted); }
@media (max-width: 560px) {
  .suggest { left: -6px; right: -6px; }
  .suggest__item { grid-template-columns: 40px minmax(0, 1fr); gap: 2px 10px; padding: 8px; }
  .suggest__img { grid-row: span 2; }
  .suggest__img { width: 40px; height: 40px; }
  .suggest__price { grid-column: 2; font-size: 14px; }
}

/* Фільтр «Батарея»: 75-серія підходить лише з прошивкою no_hw_limits */
.card__hw { font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--warn-ink); background: var(--warn-soft); border-radius: 8px; padding: 6px 8px; }
.card__hw[hidden] { display: none; }

/* ---------- Картка товару: рівні рядки в усіх картках ряду (subgrid) ---------- */
.card__row-price { margin-top: auto; padding-top: 6px; }
.card__btn { width: 100%; height: 44px; }
.delivery { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 700; line-height: 1.3; color: var(--warn-ink); background: var(--warn-soft); border-radius: 8px; padding: 6px 9px; }
.delivery svg { flex-shrink: 0; }
@supports (grid-template-rows: subgrid) {
  .grid { row-gap: 0; }
  .grid > .card { grid-row: span 9; display: grid; grid-template-rows: subgrid; margin-bottom: 16px; }
  .grid > .card[hidden] { display: none; }
  .grid > .card > .card__media { grid-row: 1; }
  .grid > .card > .card__body { grid-row: 2 / span 8; display: grid; grid-template-rows: subgrid; row-gap: 0; }
  .card__row-status   { grid-row: 1; }
  .card__row-delivery { grid-row: 2; margin-top: 8px; justify-self: start; }
  .card__row-name     { grid-row: 3; margin-top: 9px; }
  .card__row-specs    { grid-row: 4; margin-top: 9px; align-self: start; }
  .card__row-hw       { grid-row: 5; margin-top: 9px; }
  .card__row-cmp      { grid-row: 6; margin-top: 6px; align-self: end; }
  .card__row-price    { grid-row: 7; margin-top: 8px; padding-top: 0; align-self: end; }
  .card__row-buy      { grid-row: 8; margin-top: 10px; }
}
@media (max-width: 560px) {
  .grid > .card { margin-bottom: 10px; }
  .card__btn { height: 40px; font-size: 13px; padding: 0 8px; }
  .card__btn svg { display: none; }
  .delivery { font-size: 11.5px; padding: 5px 7px; }
  .delivery svg { display: none; }
}
.pp-delivery { display: flex; gap: 12px; align-items: flex-start; background: var(--warn-soft); color: var(--warn-ink); border-radius: 14px; padding: 12px 14px; }
.pp-delivery svg { flex-shrink: 0; margin-top: 1px; }
.pp-delivery strong { display: block; font-size: 15px; font-weight: 800; }
.pp-delivery span { display: block; font-size: 13px; margin-top: 2px; opacity: .85; }

/* ---------- Кабінет у шапці ---------- */
.acc { position: relative; }
.icon-btn--acc.is-logged { border-color: var(--accent); color: var(--accent); }
.acc__menu { position: absolute; z-index: 70; top: calc(100% + 8px); right: 0; min-width: 230px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px rgba(14,21,37,.14); padding: 6px; display: flex; flex-direction: column; }
.acc__menu[hidden] { display: none; }
.acc__hello { padding: 10px 12px 8px; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.acc__hello strong { color: var(--ink); }
.acc__menu a { display: flex; align-items: center; min-height: 42px; padding: 0 12px; border-radius: 9px; color: var(--ink); font-weight: 600; font-size: 14px; }
.acc__menu a:hover { background: var(--bg-soft); color: var(--ink); }
.acc__menu .acc__logout { color: var(--bad); }
@media (max-width: 420px) { .icon-btn--compare { display: none; } }

/* ---------- Вхід / реєстрація (вікно й сторінки) ---------- */
.auth { display: flex; flex-direction: column; gap: 14px; }
.auth__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.auth__eyebrow { margin-top: 6px; font-size: 11px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); }
.auth__title { margin: -6px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 30px; line-height: 1.15; letter-spacing: -0.02em; }
.auth__lead { margin: -4px 0 4px; font-size: 14px; color: var(--muted); line-height: 1.55; }
.auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--bg-soft); border-radius: 14px; }
.auth__tabs [role="tab"] { height: 44px; border: 0; border-radius: 11px; background: transparent; font-weight: 700; font-size: 15px; color: var(--muted-2); }
.auth__tabs [role="tab"][aria-selected="true"] { background: #fff; color: var(--accent); box-shadow: 0 2px 8px rgba(14,21,37,.08); }
.auth__form { display: flex; flex-direction: column; gap: 14px; }
.auth__form[hidden] { display: none; }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.auth__field label, .auth__label-row label { font-weight: 700; font-size: 13px; color: var(--ink); }
.auth__label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.auth__small-link { font-size: 13px; font-weight: 600; }
.auth__field input { width: 100%; height: 50px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; font-size: 15px; background: #fff; color: var(--ink); }
.auth__field input::placeholder { color: #9AA3B5; }
.auth__field input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
.auth__field.has-error input { border-color: var(--bad); }
.auth__pass { position: relative; }
.auth__pass input { padding-right: 96px; }
.auth__show { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 38px; padding: 0 10px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.auth__show:hover { background: var(--bg-soft); color: var(--ink); }
.auth__hint { margin: 0; font-size: 12px; color: var(--muted-2); }
.auth__err { margin: 0; font-size: 13px; font-weight: 600; color: var(--bad); }
.auth__err[hidden], .auth__alert[hidden] { display: none; }
.auth__alert { border-radius: 12px; padding: 12px 14px; font-size: 14px; font-weight: 600; line-height: 1.45; background: #FDECEA; color: #8F1D14; }
.auth__alert--ok { background: var(--ok-soft); color: var(--ok-ink); }
.auth__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink); line-height: 1.45; cursor: pointer; }
.auth__check input { width: 18px; height: 18px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--accent); }
.auth__submit { height: 54px; border-radius: 12px; font-size: 16px; font-weight: 800; margin-top: 4px; }
.auth__submit[disabled] { opacity: .7; }
.auth__note { margin: 2px 0 0; text-align: center; font-size: 13px; color: var(--muted-2); }
@media (max-width: 420px) { .auth__row { grid-template-columns: 1fr; } .auth__title { font-size: 26px; } }

.auth-modal { width: min(500px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); border: 0; border-radius: 28px; padding: 36px 34px 28px; box-shadow: 0 30px 80px rgba(14,21,37,.25); color: var(--ink); overflow-y: auto; }
.auth-modal::backdrop { background: rgba(14, 21, 37, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.auth-modal[open] { animation: auth-in .18s ease-out; }
@keyframes auth-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .auth-modal[open] { animation: none; } }
.auth-modal__close { position: absolute; top: 18px; right: 18px; width: 40px; height: 40px; border-radius: 20px; border: 0; background: var(--bg-soft); color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.auth-modal__close:hover { background: #E9EDF4; color: var(--ink); }
@media (max-width: 480px) { .auth-modal { padding: 28px 18px 20px; border-radius: 22px; } }
html.auth-lock { overflow: hidden; }

.auth-page { padding-bottom: 8px; }
.auth-card { max-width: 520px; margin: 12px auto 0; background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 36px 34px 28px; box-shadow: 0 18px 50px rgba(14,21,37,.06); }
@media (max-width: 480px) { .auth-card { padding: 24px 16px 20px; border-radius: 22px; } }

/* ---------- Кабінет: головна (account/account) ---------- */
.acc-page { padding-bottom: 8px; }
.acc-alert { margin: 8px 0 0; border-radius: 12px; padding: 14px 16px; background: var(--ok-soft); color: var(--ok-ink); font-weight: 600; }
.acc-hello { margin-top: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; background: var(--ink); color: #fff; border-radius: 24px; padding: 26px 28px; }
.acc-hello__avatar { width: 60px; height: 60px; border-radius: 18px; background: var(--signal); color: var(--ink); display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 600; font-size: 26px; flex-shrink: 0; }
.acc-hello__text { flex: 1 1 240px; min-width: 0; }
.acc-hello__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 28px; letter-spacing: -0.02em; line-height: 1.15; }
.acc-hello__meta { margin: 6px 0 0; color: var(--dark-muted); font-size: 14px; overflow-wrap: anywhere; }
.acc-hello__logout { background: transparent; color: #fff; border-color: var(--dark-line); height: 44px; }
.acc-hello__logout:hover { border-color: #fff; color: #fff; }
@media (max-width: 640px) { .acc-hello { padding: 20px 18px; border-radius: 20px; } .acc-hello__title { font-size: 22px; } .acc-hello__avatar { width: 48px; height: 48px; font-size: 20px; border-radius: 14px; } }
.acc-group { margin-top: 32px; }
.acc-group__title { margin: 0 0 14px; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.acc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.acc-tile { display: flex; align-items: center; gap: 14px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; color: var(--ink); min-height: 76px; transition: border-color .15s, box-shadow .15s; }
.acc-tile:hover { color: var(--ink); border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); }
.acc-tile__icon { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.acc-tile__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acc-tile__t { font-weight: 800; font-size: 15px; }
.acc-tile__s { font-size: 13px; color: var(--muted-2); line-height: 1.4; }
.acc-tile__arrow { color: var(--muted-2); flex-shrink: 0; }
.acc-tile:hover .acc-tile__arrow { color: var(--accent); }
/* Навігація кабінету під шапкою (виводиться header.twig на всіх сторінках account/*) */
.acc-nav { border-top: 1px solid var(--line); }
.acc-nav__list { list-style: none; margin: 0 auto; padding: 10px var(--gutter); display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.acc-nav__list::-webkit-scrollbar { display: none; }
.acc-nav__list a { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.acc-nav__list a:hover { background: var(--bg-soft); color: var(--ink); }
.acc-nav__list a[aria-current="page"] { background: var(--ink); color: #fff; }
.acc-nav__list .acc-nav__logout { color: var(--bad); }


/* Товар на телефоні: ціна й кількість по центру */
@media (max-width: 640px) {
  .pp-buyrow { justify-content: center; }
  .pp-price { flex-basis: 100%; text-align: center; }
  .pp-price .price__old { display: block; }
  .pp-buyrow .stepper { justify-content: center; }
  .pp-min { text-align: center; }
}

/* ---------- Порівняння товарів ---------- */
.cmp-head { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; padding: 4px 0 18px; }
.cmp-head__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 34px; letter-spacing: -0.02em; line-height: 1.1; }
.cmp-head__count { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.cmp-head__tools { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
@media (max-width: 640px) { .cmp-head__title { font-size: 26px; } }
.cmp-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: #fff; -webkit-overflow-scrolling: touch; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 14px; table-layout: fixed; min-width: calc(180px + var(--cols, 2) * 220px); }
.cmp-table th, .cmp-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.cmp-table tbody th[scope="row"] { width: 180px; font-weight: 600; color: var(--muted-2); background: #fff; position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
.cmp-table tbody td { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.cmp-table tbody td + td, .cmp-table thead th + th { border-left: 1px solid var(--line); }
.cmp-table tbody tr:not(.cmp-group):hover td, .cmp-table tbody tr:not(.cmp-group):hover th[scope="row"] { background: var(--bg-softer); }
.cmp-corner { width: 180px; position: sticky; left: 0; z-index: 2; background: #fff; box-shadow: 1px 0 0 var(--line); }
.cmp-prod { padding: 14px !important; font-weight: 400; }
.cmp-group th { background: var(--bg-soft); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 10px 16px; }
.cmp-group th { position: sticky; left: 0; }
.cmp-summary td { font-weight: 500; color: var(--muted); font-size: 13px; line-height: 1.55; }
.cmp-muted { color: var(--muted-2); font-weight: 500; font-size: 13px; }
.cmp-stars { color: #C9D3E6; letter-spacing: 2px; font-size: 16px; margin-right: 6px; }
.cmp-stars .on { color: var(--signal); }
.cmp-scroll.is-diff tr[data-same] { display: none; }
.cmp-card { position: relative; display: flex; flex-direction: column; gap: 8px; height: 100%; }
.cmp-card__remove { position: absolute; top: 0; right: 0; z-index: 1; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); color: var(--muted-2); display: flex; align-items: center; justify-content: center; }
.cmp-card__remove:hover { color: var(--bad); border-color: #F4C7C3; background: #FDECEA; }
.cmp-card__media { display: block; position: relative; background: var(--bg-softer); border-radius: 14px; aspect-ratio: 6 / 5; }
.cmp-card__media img { width: 100%; height: 100%; object-fit: contain; padding: 22px 12px 10px; mix-blend-mode: multiply; }
.cmp-card__media .card__plat { top: 8px; left: 8px; right: auto; }
.cmp-card__brand { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.cmp-card__name { color: var(--ink); font-weight: 800; font-size: 15px; line-height: 1.3; }
.cmp-card__name:hover { color: var(--accent); }
.cmp-card .status { font-size: 13px; }
.cmp-card .delivery { font-size: 12px; }
.cmp-card__price { margin-top: auto; font-size: 20px; font-weight: 800; white-space: nowrap; }
.cmp-card__btn { width: 100%; height: 44px; }
.cmp-hint { display: none; margin: 10px 0 0; font-size: 13px; color: var(--muted-2); text-align: center; }
@media (max-width: 760px) {
  .cmp-table { min-width: calc(120px + var(--cols, 2) * 180px); }
  .cmp-table tbody th[scope="row"], .cmp-corner { width: 120px; }
  .cmp-table th, .cmp-table td { padding: 10px 12px; font-size: 13px; }
  .cmp-hint { display: block; }
  .cmp-card__name { font-size: 14px; }
  .cmp-card__price { font-size: 17px; }
  .cmp-card__btn { height: 40px; font-size: 13px; padding: 0 8px; }
  .cmp-card__btn svg { display: none; }
}
.cmp-empty { margin-top: 8px; padding: 48px 24px; text-align: center; background: #fff; border: 1px dashed var(--line-hover); border-radius: 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.cmp-empty svg { color: var(--accent); }
.cmp-empty p { margin: 0; font-size: 16px; font-weight: 600; color: var(--ink); }
.cmp-empty .cmp-muted { font-size: 14px; color: var(--muted); font-weight: 500; }
.cmp-empty .btn { margin-top: 10px; height: 46px; padding: 0 22px; }

/* Порівняння: ціна й кнопка на одній лінії в усіх картках (висота клітинки = висоті рядка) */
.cmp-table thead th.cmp-prod { height: 1px; }
.cmp-table thead .cmp-card { height: 100%; }


/* ---------- Бронювання з поставки (supply/booking) ---------- */
.bk-page { padding-bottom: 8px; }
.bk { margin-top: 12px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 560px); gap: 24px; justify-content: center; align-items: start; }
.bk-product { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; position: sticky; top: 16px; }
.bk-product__media { position: relative; display: block; background: var(--bg-softer); aspect-ratio: 6 / 5; }
.bk-product__media img { width: 100%; height: 100%; object-fit: contain; padding: 22px; mix-blend-mode: multiply; }
.bk-product__body { padding: 18px 22px 22px; display: flex; flex-direction: column; gap: 6px; }
.bk-product__name { font-weight: 800; font-size: 17px; line-height: 1.35; color: var(--ink); text-decoration: none; }
.bk-product__name:hover { color: var(--accent); }
.bk-product__model { font-size: 13px; color: var(--muted-2); }
.bk-product__price { margin-top: 4px; font-family: var(--font-head); font-weight: 600; font-size: 22px; }
.bk-facts { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.bk-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); font-size: 14px; line-height: 1.45; }
.bk-facts li:first-child { background: var(--warn-soft); color: var(--warn-ink); }
.bk-facts svg { flex-shrink: 0; margin-top: 1px; }
.bk-facts small { display: block; font-size: 12px; opacity: .85; }
.bk-form-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 34px 34px 28px; box-shadow: 0 18px 50px rgba(14,21,37,.06); display: flex; flex-direction: column; gap: 14px; }
.bk-form-card .auth__eyebrow { margin-top: 0; }
.bk-form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font-size: 15px; font-family: inherit; color: var(--ink); background: #fff; resize: vertical; min-height: 92px; }
.bk-form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
.auth__field.has-error textarea, .auth__field.has-error .stepper__input { border-color: var(--bad); }
.bk-row { grid-template-columns: minmax(0, 1fr) auto; }
.bk-stepper .stepper__btn, .bk-stepper .stepper__input { height: 50px; }
.bk-stepper .stepper__input { width: 64px; padding: 0; }
.bk-optional { font-weight: 500; color: var(--muted-2); }
.bk-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.bk-solo { align-self: stretch; }
.bk-empty { text-align: left; display: flex; flex-direction: column; gap: 14px; }
.bk-empty__act { display: flex; flex-wrap: wrap; gap: 10px; }
.bk-empty__act .btn { height: 48px; padding: 0 20px; }
.bk-done { display: flex; flex-direction: column; gap: 14px; }
.bk-done__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; }
.bk-done__list { margin: 0; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.bk-done__list div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.bk-done__list div:first-child { border-top: 0; }
.bk-done__list dt { color: var(--muted-2); font-weight: 600; }
.bk-done__list dd { margin: 0; font-weight: 700; text-align: right; }
@media (max-width: 900px) {
  .bk { grid-template-columns: minmax(0, 1fr); }
  .bk-product { position: static; display: grid; grid-template-columns: 140px minmax(0, 1fr); }
  .bk-product__media { aspect-ratio: 1 / 1; align-self: start; }
  .bk-product__media .card__plat { display: none; }
  .bk-product__media img { padding: 10px; }
  .bk-product__body { padding: 14px 16px; }
  .bk-product__price { font-size: 18px; }
}
@media (max-width: 480px) {
  .bk-form-card { padding: 24px 16px 20px; border-radius: 22px; }
  .bk-product { grid-template-columns: 104px minmax(0, 1fr); border-radius: 20px; }
  .bk-row { grid-template-columns: minmax(0, 1fr); }
}
/* ---------- Статті блогу (blog/article, blog/latest) ---------- */
.art__head { padding: 18px 0 8px; max-width: 900px; }
.art__eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.art__eyebrow a { color: var(--accent); }
.art__title { margin: 10px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 38px; line-height: 1.15; letter-spacing: -0.02em; }
.art__meta { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted-2); }
.art__meta span + span::before { content: "·"; margin-right: 18px; color: var(--line-strong); }
.art__layout { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: start; }
.art__layout--toc { grid-template-columns: 250px minmax(0, 1fr); }
.art__toc { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; font-size: 14px; }
.art__toc summary { cursor: pointer; list-style: none; font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.art__toc summary::-webkit-details-marker { display: none; }
.art__toc ol { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: toc; display: flex; flex-direction: column; gap: 8px; }
.art__toc li { counter-increment: toc; display: flex; gap: 8px; line-height: 1.4; }
.art__toc li::before { content: counter(toc); flex: none; width: 20px; font-weight: 800; color: var(--accent); }
.art__toc a { color: var(--ink); }
.art__toc a:hover { color: var(--accent); }
.art__toc a.is-active { color: var(--accent); font-weight: 700; }
.art__toc li:has(a.is-active)::before { color: var(--ink); }
.art__body { min-width: 0; max-width: 860px; }
.art__cover { display: block; width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 28px; background: var(--bg-softer); }

/* Текст статті */
.art__prose { font-size: 16.5px; line-height: 1.75; color: #2C3547; max-width: none; }
.art__prose h2 { font-family: var(--font-head); font-weight: 600; font-size: 26px; letter-spacing: -0.015em; line-height: 1.25; margin: 2em 0 .7em; scroll-margin-top: 16px; }
.art__prose h3 { font-size: 19px; margin: 1.7em 0 .5em; }
.art__prose h4 { font-size: 16.5px; }
.art__prose p, .art__prose li { color: inherit; }
.art__prose a { color: var(--accent); font-weight: 600; }
.art__prose ul li::marker, .art__prose ol li::marker { color: var(--accent); font-weight: 800; }
.art__prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.art__prose img { display: block; max-width: 100%; margin: 1.4em auto; }
.art__prose iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: var(--radius); margin: 1.4em 0; }
.art__prose code { font-family: ui-monospace, Consolas, monospace; font-size: .88em; background: var(--bg-soft); border-radius: 6px; padding: 2px 6px; color: var(--ink); }
.art__prose pre { background: var(--ink); color: #E6EAF2; border-radius: 14px; padding: 18px 20px; overflow-x: auto; font-size: 14px; line-height: 1.6; margin: 1.4em 0; }
.art__prose pre code { background: none; padding: 0; color: inherit; font-size: inherit; }
.art__prose table { display: table; width: 100%; font-size: 14.5px; border: 1px solid var(--line); border-radius: 14px; border-collapse: separate; border-spacing: 0; overflow: hidden; margin: 1.4em 0; }
.art__prose th, .art__prose td { border: 0; border-bottom: 1px solid var(--line); padding: 11px 14px; }
.art__prose tr:last-child td { border-bottom: 0; }
.art__prose th { background: var(--bg-soft); font-weight: 800; }
.art__prose .tbl { overflow-x: auto; margin: 1.4em 0; }
.art__prose .tbl table { margin: 0; min-width: 560px; }
/* Старі статті: шрифти й розміри з редактора замінюються шрифтами сайту (кольори лишаються) */
.art__prose [style] { font-family: inherit !important; line-height: inherit !important; }
.art__prose p[style], .art__prose span[style], .art__prose li[style], .art__prose div[style], .art__prose font { font-size: inherit !important; }
.art__prose [style*="background-color: rgb(255, 255, 255)"], .art__prose [style*="background-color:#fff"] { background-color: transparent !important; }
.art__prose table[style] { width: 100% !important; }
/* Підказки в тексті */
.art__prose .note { border-radius: 14px; padding: 14px 18px; margin: 1.4em 0; background: var(--accent-soft); color: var(--ink); font-size: 15.5px; }
.art__prose .note--warn { background: var(--warn-soft); color: var(--warn-ink); }
.art__prose .note--ok { background: var(--ok-soft); color: var(--ok-ink); }
.art__prose .note > :last-child { margin-bottom: 0; }
.art__prose .lead { font-size: 19px; line-height: 1.6; color: var(--ink); margin-bottom: 1.4em; }
.art__prose .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 1.4em 0; }
.art__prose .cards > div { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 15px; line-height: 1.6; }
.art__prose .cards b { display: block; font-size: 16.5px; margin-bottom: 4px; }
.art__prose .steps-n { counter-reset: st; list-style: none; padding: 0; }
.art__prose .steps-n > li { counter-increment: st; position: relative; padding-left: 46px; margin: 0 0 16px; }
.art__prose .steps-n > li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.art__files { margin-top: 32px; border-top: 1px solid var(--line); padding-top: 20px; }
.art__h2 { font-family: var(--font-head); font-weight: 600; font-size: 22px; margin: 0 0 14px; }
.art__help { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; background: var(--bg-softer); border-radius: var(--radius); padding: 20px 22px; }
.art__help b { display: block; font-size: 17px; }
.art__help span { font-size: 14.5px; color: var(--muted); }
.art-list__lead { font-size: 17px; color: var(--muted); margin: 12px 0 0; }
.art-list__intro { margin-top: 12px; }
.art-list__grid { margin-top: 28px; }
@media (max-width: 960px) {
  .art__layout--toc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .art__toc { position: static; }
  .art__toc details:not([open]) ol { display: none; }
}
@media (max-width: 640px) {
  .art__title { font-size: 28px; }
  .art__prose { font-size: 16px; }
  .art__prose h2 { font-size: 22px; }
  .art__prose table { display: block; overflow-x: auto; }
}

/* Статті на сторінці товару */
.pp-articles { margin-top: 40px; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.pp-articles__t { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.pp-articles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 4px 24px; }
.pp-articles a { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; color: var(--ink); font-weight: 600; line-height: 1.4; }
.pp-articles a:hover { color: var(--accent); }
.pp-articles svg { flex: none; margin-top: 1px; color: var(--accent); }

/* ---------- Прості сторінки: інформація, контакти, пошук, виробники, карта сайту, 404, успіх ---------- */
.input { height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; font-size: 15px; background: #fff; color: var(--ink); min-width: 0; }
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
select.input { padding-right: 34px; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--ink); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--accent); }
a.chip { text-decoration: none; }
a.chip:hover { color: var(--ink); }
a.chip.is-active:hover { color: #fff; }

.info__body { max-width: 1040px; }
.info__body > div[style], .info__body > p[style] { max-width: 100%; }

.search-form { margin-bottom: 28px; }
.search-form__row { display: grid; grid-template-columns: minmax(0, 1fr) 260px auto; gap: 10px; }
.search-form__row .btn { height: 48px; padding: 0 22px; }
.search-form__opts { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.search-form__h { margin: 8px 0 16px; font-size: 22px; }
.listing--plain .listing__bar { margin-bottom: 16px; }
.listing--plain .pager { margin-top: 20px; }
@media (max-width: 760px) { .search-form__row { grid-template-columns: 1fr; } }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.contact__info { display: flex; flex-direction: column; gap: 14px; }
.contact-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); background: #fff; }
.contact-card--main { background: var(--ink); border-color: var(--ink); color: #fff; }
.contact-card--main:hover { color: #fff; background: #1E2A44; }
.contact-card__label { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.contact-card--main .contact-card__label { color: var(--dark-muted); }
.contact-card__value { font-family: var(--font-head); font-weight: 600; font-size: 28px; letter-spacing: -0.01em; }
.contact-card__value--sm { font-family: var(--font); font-weight: 800; font-size: 17px; letter-spacing: 0; }
.contact-card__sub { font-size: 14px; color: var(--muted); }
.contact-card--main .contact-card__sub { color: var(--dark-muted); }
.contact__form { padding: 26px; gap: 14px; }
.contact__title { margin: 0; font-size: 22px; font-weight: 800; }
.contact__lead { margin: 0; font-size: 14.5px; color: var(--muted); }
.contact__form textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 15px; resize: vertical; }
.contact__form textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(31, 79, 216, .15); }
.contact__form .auth__field.has-error textarea { border-color: var(--bad); }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } .contact-card__value { font-size: 24px; } }

.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.brand-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.brand-card:hover { border-color: var(--line-hover); box-shadow: 0 10px 30px rgba(14,21,37,.07); color: var(--ink); }
.brand-card__letter { width: 48px; height: 48px; border-radius: 12px; background: var(--ink); color: var(--signal); display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 22px; margin-bottom: 8px; }
.brand-card__name { font-weight: 800; font-size: 19px; }
.brand-card__more { font-size: 14px; font-weight: 700; color: var(--accent); }

.empty-block { border: 1px dashed var(--line-hover); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; color: var(--muted); }
.empty-block p { margin: 0; font-size: 16px; }

.site-map { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.site-map__col { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.site-map h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; }
.site-map ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.site-map ul ul { margin: 8px 0 2px 14px; padding-left: 12px; border-left: 2px solid var(--line); gap: 6px; font-size: 14px; }
.site-map a { color: var(--ink); }
.site-map a:hover { color: var(--accent); }

.nf { max-width: 720px; margin: 24px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.nf__code { font-family: var(--font-head); font-weight: 600; font-size: 120px; line-height: 1; letter-spacing: -0.04em; color: var(--accent); }
.nf__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.nf__lead { margin: 0; font-size: 16px; color: var(--muted); }
.nf__search { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 8px; }
.nf__search .btn { height: 48px; padding: 0 22px; }
.nf__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
@media (max-width: 520px) { .nf__code { font-size: 88px; } .nf__title { font-size: 26px; } .nf__search { grid-template-columns: 1fr; } }

.done { max-width: 720px; margin: 24px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.done__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; }
.done__title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 32px; letter-spacing: -0.02em; }
.done__text { max-width: 620px; text-align: center; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }
.info__body .lead { font-size: 18px; line-height: 1.6; color: var(--ink); }
.info__body .note { border-radius: 14px; padding: 14px 18px; margin: 1.4em 0; background: var(--bg-soft); color: var(--muted); font-size: 14px; }
.info__body .note p { margin: 0; }
.nf__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--bg-soft); color: var(--ink); display: grid; place-items: center; }

/* Кошик */
.cart-weight { font-family: var(--font); font-size: 18px; font-weight: 600; color: var(--muted-2); letter-spacing: 0; }
.cart-msg { border-radius: 14px; padding: 14px 18px; margin-bottom: 16px; background: var(--bg-soft); color: var(--ink); font-size: 15px; line-height: 1.5; }
.cart-msg--ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.cart-msg--warn { background: var(--warn-soft); color: var(--warn-ink); }
.cart-msg--bad { background: #FDECEA; color: var(--bad); }
.cart { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; padding-bottom: 40px; }
.cart__items { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; margin: 0; }
.cart-item { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto 130px 44px; gap: 18px; align-items: center; padding: 18px 20px; }
.cart-item + .cart-item { border-top: 1px solid var(--line); }
.cart-item__img { width: 96px; height: 96px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; overflow: hidden; }
.cart-item__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.cart-item__info { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cart-item__name { font-weight: 700; font-size: 16px; line-height: 1.35; color: var(--ink); }
.cart-item__name:hover { color: var(--accent); }
.cart-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.cart-item__model { font-size: 13px; color: var(--muted-2); }
.cart-item__meta .badge { font-size: 12.5px; padding: 4px 9px; }
.cart-item__opts { list-style: none; margin: 0; padding: 0; font-size: 13px; color: var(--muted); }
.cart-item__note { font-size: 13px; color: var(--muted); }
.cart-item__qty { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.cart-item__qty .stepper__input { height: 44px; width: 52px; }
.cart-item__sum { text-align: right; }
.cart-item__total { font-weight: 800; font-size: 18px; white-space: nowrap; }
.cart-item__price { font-size: 13px; color: var(--muted-2); margin-top: 2px; white-space: nowrap; }
.cart-item__del { width: 44px; height: 44px; border-radius: 11px; border: 1px solid transparent; background: transparent; color: var(--muted-2); display: grid; place-items: center; cursor: pointer; }
.cart-item__del:hover { color: var(--bad); background: #FDECEA; }
.cart-item__del:disabled { opacity: .4; }
.cart__side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 14px; }
.cart-sum { padding: 22px; gap: 14px; }
.cart-sum__list { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cart-sum__row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; color: var(--muted); }
.cart-sum__row dd { margin: 0; color: var(--ink); font-weight: 600; white-space: nowrap; }
.cart-sum__row--total { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 2px; color: var(--ink); font-weight: 700; }
.cart-sum__row--total dd { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.cart-sum__go, .cart-sum__more { width: 100%; height: 52px; }
.cart-sum__note { margin: 0; font-size: 13px; line-height: 1.55; color: var(--muted-2); }
@media (max-width: 960px) {
  .cart { grid-template-columns: 1fr; }
  .cart__side { position: static; }
}
@media (max-width: 640px) {
  .cart-item { grid-template-columns: 72px minmax(0, 1fr) 40px; grid-template-areas: "img info del" "img qty sum"; gap: 10px 14px; padding: 16px; align-items: start; }
  .cart-item__img { grid-area: img; width: 72px; height: 72px; }
  .cart-item__info { grid-area: info; }
  .cart-item__del { grid-area: del; width: 40px; height: 40px; margin: -6px -6px 0 0; }
  .cart-item__qty { grid-area: qty; align-items: flex-start; }
  .cart-item__sum { grid-area: sum; grid-column: 2 / 4; align-self: center; }
  .cart-item__qty .stepper__btn { width: 40px; height: 40px; }
  .cart-item__qty .stepper__input { height: 40px; width: 48px; }
  .cart-item__name { font-size: 15px; }
}
