/* ============================================================
   EpoxySpace — дизайн-система «рідина і світло» (див. DESIGN.md)
   ============================================================ */

/* ---------- Шрифти ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-latin.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Unbounded";
  src: url("/static/fonts/unbounded-cyrillic.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116, U+20B4;
}
@font-face {
  font-family: "Fixel Text";
  src: url("/static/fonts/FixelText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Fixel Text";
  src: url("/static/fonts/FixelText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Fixel Text";
  src: url("/static/fonts/FixelText-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

/* ---------- Токени ---------- */
:root {
  --ink: #1C2128;
  --ink-soft: #5A6472;
  --paper: #FAFAF7;
  --paper-raise: #FFFFFF;
  --line: #E7E5DE;

  --deep: #0E1420;
  --deep-soft: #1A2332;
  --on-deep: #F2F4F0;
  --on-deep-soft: #97A3B4;

  --resin: #2BB3A3;
  --resin-deep: #1E8A7E;
  --resin-tint: #E3F4F1;
  --amber: #E0A458;
  --amber-deep: #B77F35;

  --danger: #D64550;
  --success: #2E9E5B;

  --iris-1: #2BB3A3;
  --iris-2: #3E7CB1;
  --iris-3: #7C5CBF;
  --iris-4: #E0A458;

  /* Кільце логотипа — кольори з акварельного фону основного банера (Instagram-фото) */
  --insta-1: #C255AF;
  --insta-2: #44309E;
  --insta-3: #9E1172;
  --insta-4: #25629E;
  --insta-5: #8F4B9E;
  --insta-6: #7E98B5;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-1: 0 1px 2px rgb(14 20 32 / .06);
  --shadow-2: 0 6px 24px -8px rgb(14 20 32 / .14);
  --shadow-glow: 0 8px 32px -8px rgb(43 179 163 / .35);

  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --t-fast: 120ms;
  --t-ui: 240ms;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Fixel Text", "Inter", system-ui, sans-serif;
  --container: 1200px;
}

/* ---------- Базове ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; margin: 0; }
h1 { font-size: clamp(28px, 6vw, 56px); font-weight: 700; }
h2 { font-size: clamp(22px, 3.5vw, 36px); font-weight: 500; }
h3 { font-size: 18px; font-weight: 500; }

p { margin: 0 0 1em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--resin-deep); text-decoration: none; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }

.section { padding-block: 48px; }
@media (min-width: 768px) { .section { padding-block: 72px; } }

.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
}
.section-head .more { font-weight: 500; font-size: 15px; white-space: nowrap; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border: 0; border-radius: var(--radius-m);
  font: 600 16px var(--font-body); cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease),
              background-color var(--t-ui) var(--ease),
              box-shadow var(--t-ui) var(--ease);
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }

.btn-primary { background: var(--resin); color: #fff; box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}
.btn-on-deep-ghost {
  background: transparent; color: var(--on-deep);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22);
}
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; font-size: 17px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--resin-deep); }
  .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
  .btn-on-deep-ghost:hover { box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .5); }
  a.more:hover { text-decoration: underline; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(250 250 247 / .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-ui) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header.on-dark {
  background: rgb(14 20 32 / .7);
}
.site-header .bar {
  display: flex; align-items: center; gap: 16px;
  min-height: 56px;
}
@media (min-width: 1024px) { .site-header .bar { min-height: 64px; } }

.logo {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 19px var(--font-display); color: var(--ink);
  letter-spacing: -.01em;
}
.on-dark .logo { color: var(--on-deep); }
.logo svg { width: 26px; height: 26px; }

.main-nav { display: none; flex: 1; }
@media (min-width: 1240px) {
  .main-nav { display: flex; align-items: center; gap: 0; margin-left: 10px; min-width: 0; }
  /* 15.5px/600 замість колишніх 14px/500 — помітно більше й виразніше. Смуга шапки
     обмежена 1200px, тож бічний padding тримаємо мінімальним: 8 пунктів плюс кнопка
     калькулятора мають лишатись в одному рядку й не діставати до іконок справа. */
  .main-nav a {
    padding: 8px 4px; border-radius: var(--radius-s);
    color: var(--ink); font-weight: 600; font-size: 15.5px;
    letter-spacing: .005em; white-space: nowrap;
    transition: background-color var(--t-ui) var(--ease);
  }
  .on-dark .main-nav a { color: var(--on-deep); }
  .main-nav a:hover { background: rgb(28 33 40 / .06); }
  .on-dark .main-nav a:hover { background: rgb(255 255 255 / .08); }
}

.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
/* мобільна шапка: логотип у 2 рядки замість трьох (менше іконок/бейдж) */
@media (max-width: 480px) {
  .site-header .bar { gap: 10px; }
  .site-header .logo { gap: 6px; font-size: 15px; }
  .site-header .logo-badge { width: 32px; height: 32px; }
  .site-header #burger.icon-btn,
  .site-header .header-actions .icon-btn { width: 38px; height: 38px; }
  .site-header .header-actions { gap: 2px; }
}
.header-social-sep { display: none; }
.icon-btn.header-social { display: none; }
/* Соцмережі в шапці — від 1240px, тобто рівно там, де показується повне меню.
   Місце під них звільняє бургер: при повному меню він відкривав те саме меню
   вдруге, тож на десктопі ховаємо його, а 44px віддаємо іконкам. */
@media (min-width: 1240px) {
  /* Бургер лишається і на десктопі — за ним увесь каталог одним дотиком. Ставимо
     його ПІСЛЯ логотипа (order), хоча в розмітці він перший: на мобільному він
     має бути ліворуч від логотипа, а на десктопі — між логотипом і меню. */
  .site-header #burger {
    display: inline-flex; order: 1; width: 36px; height: 36px;
    margin-left: 6px; margin-right: 2px;
  }
  .site-header .logo { order: 0; }
  .main-nav { order: 2; margin-left: 10px; }
  .header-actions { order: 3; }
  .icon-btn.header-social { display: inline-flex; width: 30px; height: 30px; }
  /* Праворуч тепер шість іконок (пошук, тема, профіль, кошик + дві соцмережі), і
     ліворуч додався бургер — тож іконки трохи менші, а декоративну риску між
     ними прибрано: усе має вміститись в один рядок навіть на 1240px. */
  .header-actions .icon-btn:not(.header-social) { width: 36px; height: 36px; }
  .header-actions { gap: 2px; }
}
.icon-btn.icon-btn-sm { width: 38px; height: 38px; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--ink); cursor: pointer; position: relative;
  transition: background-color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.icon-btn:active { transform: scale(.94); }
.on-dark .icon-btn { color: var(--on-deep); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn:hover { background: rgb(28 33 40 / .06); }
  .on-dark .icon-btn:hover { background: rgb(255 255 255 / .08); }
}
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--amber);
  color: var(--deep); font: 600 11px/18px var(--font-body);
  text-align: center;
}
.cart-count:empty { display: none; }

/* мобільне меню */
.mobile-nav {
  position: fixed; inset: 0; z-index: 60; display: none;
}
.mobile-nav.open { display: block; }
.mobile-nav .scrim { position: absolute; inset: 0; background: rgb(14 20 32 / .5); }
.mobile-nav .panel {
  position: absolute; top: 0; left: 0; bottom: 0; width: min(320px, 85vw);
  background: var(--paper); padding: 24px 20px;
  display: flex; flex-direction: column; gap: 4px;
  animation: slide-in var(--t-ui) var(--ease);
}
@keyframes slide-in { from { transform: translateX(-24px); opacity: 0; } }
.mobile-nav .panel { gap: 0; overflow-y: auto; }
.mobile-nav .panel a {
  padding: 9px 12px; border-radius: var(--radius-s);
  color: var(--ink); font-weight: 500; font-size: 15.5px; line-height: 1.35;
}
.mobile-nav .panel a:active { background: var(--resin-tint); }
.mobile-nav .panel .nav-group { margin: 14px 0 4px; font-size: 12px; color: var(--ink-soft); padding: 0 12px; text-transform: uppercase; letter-spacing: .06em; }
.social-link { display: inline-flex; align-items: center; gap: 9px; }
.social-link svg { flex: none; }
.social-emoji { font-size: 18px; line-height: 1; flex: none; }
.icon-btn .social-emoji { font-size: 21px; }

/* ---------- Hero (signature) ---------- */
.hero {
  position: relative; overflow: clip;
  background: var(--deep); color: var(--on-deep);
  margin-top: -57px; padding-top: 57px; /* під прозорий header */
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: 24px;
  padding-block: 64px 96px;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1.1fr .9fr; align-items: center; padding-block: 88px 140px; }
}
.hero h1 { color: var(--on-deep); max-width: 14ch; }
.hero .lead { font-size: clamp(16px, 2vw, 19px); color: var(--on-deep-soft); max-width: 44ch; margin: 16px 0 28px; }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* шар 1: дрейф градієнтного «дзеркала смоли» */
.hero::before {
  content: ""; position: absolute; inset: -20%; z-index: 0;
  background:
    radial-gradient(42% 55% at 18% 30%, rgb(43 179 163 / .32), transparent 70%),
    radial-gradient(38% 48% at 82% 22%, rgb(62 124 177 / .28), transparent 70%),
    radial-gradient(45% 60% at 70% 78%, rgb(124 92 191 / .22), transparent 70%),
    radial-gradient(30% 40% at 30% 85%, rgb(224 164 88 / .16), transparent 70%);
  animation: iris-drift 16s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes iris-drift {
  from { transform: translate3d(-2.5%, -2%, 0) scale(1); }
  to   { transform: translate3d(2.5%, 2%, 0) scale(1.06); }
}

/* шар 3: глянцевий відблиск */
.hero::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 35%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgb(255 255 255 / .06), transparent);
  animation: gloss 8s linear infinite;
  will-change: transform;
}
@keyframes gloss {
  0%, 55% { transform: translateX(0); }
  100% { transform: translateX(500%); }
}

/* фото у «краплі» (desktop) */
.hero-photo { display: none; }
@media (min-width: 1024px) {
  .hero-photo { display: block; position: relative; z-index: 2; justify-self: end; }
  .hero-photo img {
    width: min(420px, 38vw); aspect-ratio: 4/5; object-fit: cover;
    border-radius: 48% 52% 46% 54% / 44% 46% 54% 56%;
    box-shadow: 0 24px 80px -24px rgb(43 179 163 / .45);
  }
}

/* шар 2: SVG-хвиля переходу в світле */
.hero-wave {
  position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3;
  pointer-events: none; will-change: transform;
}
.hero-wave svg { display: block; width: 100%; height: 72px; }
@media (min-width: 1024px) { .hero-wave svg { height: 110px; } }

/* ---------- Картки товарів ---------- */
.product-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, 1fr);
  /* без цього грід розтягує картки на висоту найвищої в рядку, і aspect-ratio
     фото в .product-card ламається (Chrome неправильно ділить розтягнуту висоту
     між фото і текстом) — картинки виходять різного розміру */
  align-items: start;
}
@media (min-width: 768px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.hits-scroller {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%;
  gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 8px; margin-inline: -16px; padding-inline: 16px;
  scrollbar-width: none;
  align-items: start;
}
.hits-scroller::-webkit-scrollbar { display: none; }
.hits-scroller > * { scroll-snap-align: start; }
@media (min-width: 768px) {
  .hits-scroller {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr);
    overflow: visible; margin-inline: 0; padding-inline: 0; gap: 20px;
  }
}
@media (min-width: 1024px) { .hits-scroller { grid-template-columns: repeat(4, 1fr); gap: 24px; } }

.product-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--paper-raise); border-radius: var(--radius-m);
  border: 1px solid var(--line);
  overflow: clip;
  transition: box-shadow var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease),
              transform var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    box-shadow: var(--shadow-2);
    border-color: rgb(43 179 163 / .45);
    transform: translateY(-2px);
  }
}
/* height:0 + padding-bottom:100% замість aspect-ratio: у флекс-колонці з <img> всередині
   браузер підміняє задане aspect-ratio реальними пропорціями фото при рахунку висоти —
   картинки виходили різного розміру. Padding-hack повністю ігнорує вміст. */
.product-card .photo { position: relative; height: 0; padding-bottom: 100%; background: #F1F0EB; }
.product-card .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card .body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; flex: 1; }
.product-card .name a { color: inherit; }
.product-card .name {
  color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: 2.7em;
}
.product-card .name a::after { content: ""; position: absolute; inset: 0; }
/* Ціна і наявність. flex-wrap + nowrap: у вузькій картці (напр. блок «Знадобиться
   для цього» в статті) бейдж просто переїжджає під ціну, а не ламається на
   «В / наявності» посеред слова. */
.product-card .price-row {
  margin-top: auto; display: flex; align-items: center;
  justify-content: space-between; gap: 6px 8px; flex-wrap: wrap;
}
.product-card .price-wrap { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.product-card .price {
  font: 700 17.5px var(--font-body); color: var(--ink);
  letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.product-card .price .from {
  font-weight: 500; font-size: 12px; color: var(--ink-soft); margin-right: 1px;
}
.product-card .price-was {
  font-size: 12px; color: var(--ink-soft); text-decoration: line-through;
  line-height: 1.3; white-space: nowrap;
}
/* Наявність — компактна пігулка з крапкою, а не просто зелений текст */
.badge-stock, .badge-out {
  display: inline-flex; align-items: center; gap: 5px; flex: none;
  padding: 4px 10px; border-radius: 999px;
  font: 600 11.5px var(--font-body); white-space: nowrap; line-height: 1.2;
}
.badge-stock::before, .badge-out::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none;
}
.badge-stock { background: var(--resin-tint); color: var(--resin-deep); }
.badge-stock::before { background: var(--success); }
.badge-out { background: var(--line); color: var(--ink-soft); }
.badge-out::before { background: var(--ink-soft); opacity: .55; }

.sale-badge {
  display: inline-flex; align-items: center;
  background: linear-gradient(135deg, #E4536A, var(--danger));
  color: #fff; font: 700 12.5px var(--font-body); letter-spacing: .2px;
  padding: 5px 10px; border-radius: 999px;
  box-shadow: 0 3px 10px -2px rgb(214 69 80 / .55);
}
.product-card .photo .sale-badge { position: absolute; top: 10px; left: 10px; z-index: 1; }
.sale-badge[hidden] { display: none; }

/* поява карток — ховаємо тільки коли є JS, який їх покаже */
html.js .reveal { opacity: 0; transform: translateY(8px); }
html.js .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 400ms var(--ease), transform 400ms var(--ease);
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; }
}

/* ---------- Bento категорій ---------- */
.bento {
  display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 768px) { .bento { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.bento a {
  position: relative; display: flex; align-items: flex-end;
  min-height: 150px; padding: 16px; border-radius: var(--radius-m);
  overflow: clip; color: #fff; font-weight: 600; font-size: 16px;
  background: var(--deep-soft);
  transition: transform var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.bento a:first-child { grid-column: span 2; min-height: 190px; }
@media (min-width: 768px) { .bento a { min-height: 200px; } .bento a:first-child { grid-column: span 1; } }
@media (hover: hover) and (pointer: fine) {
  .bento a:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
  .bento a:hover img { transform: scale(1.04); }
}
.bento img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-ui) var(--ease);
}
.bento .label {
  position: relative; z-index: 1; line-height: 1.3;
  text-shadow: 0 1px 8px rgb(14 20 32 / .55);
}
.bento a::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgb(14 20 32 / .62));
}

/* ---------- Доставка і оплата ---------- */
.lead-note { color: var(--ink-soft); font-size: 16px; max-width: 68ch; margin: -8px 0 24px; }
.delivery-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.delivery-list li {
  position: relative; padding-left: 22px; color: var(--ink-soft); font-size: 15px;
}
.delivery-list li b { color: var(--ink); }
.delivery-list li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--resin);
}
.faq-list { display: grid; gap: 10px; }
.faq-item {
  border: 1px solid var(--line); border-radius: var(--radius-m); padding: 14px 16px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; list-style: none; display: flex;
  align-items: center; justify-content: space-between; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; flex: none; font-size: 20px; font-weight: 400; color: var(--resin-deep);
  transition: transform var(--t-ui) var(--ease);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { color: var(--ink-soft); font-size: 15px; margin: 10px 0 0; }

/* ---------- «Як почати» ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.step {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px;
}
.step .num {
  display: inline-grid; place-content: center; width: 36px; height: 36px;
  border-radius: 50%; background: var(--resin-tint); color: var(--resin-deep);
  font: 600 16px var(--font-body); margin-bottom: 12px;
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-soft); font-size: 15px; margin: 0; }

/* ---------- Instagram-стрічка ---------- */
.ig-band {
  background: var(--deep); color: var(--on-deep);
  border-radius: var(--radius-l); padding: 32px 24px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
  justify-content: space-between;
  position: relative; overflow: clip;
}
.ig-band::before {
  content: ""; position: absolute; inset: -30%;
  background:
    radial-gradient(40% 60% at 85% 20%, rgb(124 92 191 / .3), transparent 70%),
    radial-gradient(40% 60% at 10% 80%, rgb(43 179 163 / .25), transparent 70%);
}
.ig-band > * { position: relative; }
.ig-band h2 { color: var(--on-deep); font-size: clamp(20px, 3vw, 28px); }
.ig-band p { color: var(--on-deep-soft); margin: 6px 0 0; }
.ig-band-handle { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.ig-band-icon { flex: none; display: inline-flex; filter: drop-shadow(0 2px 8px rgb(0 0 0 / .25)); }
.ig-band-icon svg { display: block; width: clamp(26px, 3vw, 32px); height: clamp(26px, 3vw, 32px); }
.ig-band-handle h2 { transition: color var(--t-ui) var(--ease); }
.ig-band-link {
  color: var(--on-deep); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px; text-decoration-color: rgb(255 255 255 / .4);
  transition: text-decoration-color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .ig-band-handle:hover h2 { color: var(--resin); }
  .ig-band-link:hover { text-decoration-color: var(--resin); }
}

/* ---------- Каталог ---------- */
.catalog-head { padding-block: 24px 8px; }
.catalog-head h1 { font-size: clamp(24px, 4vw, 40px); }
/* Опис категорії — на всю ширину контейнера: обмеження в 60 символів лишало
   праворуч половину екрана порожньою, а текст витягувався в довгий стовпчик. */
.catalog-head .desc {
  color: var(--ink-soft); max-width: none; margin-top: 8px; line-height: 1.65;
}
.cat-desc-wrap { position: relative; }
/* На телефоні довгий опис займав увесь перший екран — показуємо початок, решту
   людина розкриє сама, якщо цікаво. */
.cat-desc-more { display: none; }
@media (max-width: 700px) {
  .catalog-head .desc { font-size: 14.5px; }
  .cat-desc-wrap.is-clamped .desc {
    display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
  }
  .cat-desc-wrap.is-clamped::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 26px; height: 42px;
    background: linear-gradient(to bottom, transparent, var(--paper));
    pointer-events: none;
  }
  .cat-desc-more {
    display: inline-flex; align-items: center; gap: 4px; margin-top: 4px;
    border: 0; background: transparent; padding: 4px 0; cursor: pointer;
    color: var(--resin-deep); font: 600 14px var(--font-body);
  }
}

.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding-block: 16px; position: relative;
}
.filter-bar .spacer { flex: 1; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 16px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper-raise); color: var(--ink);
  font: 500 14px var(--font-body); cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"], .chip.active {
  border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep);
}
@media (hover: hover) and (pointer: fine) {
  .chip:hover { border-color: var(--ink-soft); }
}

.select {
  min-height: 40px; padding: 6px 36px 6px 14px;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper-raise) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235A6472' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font: 500 14px var(--font-body); color: var(--ink);
  appearance: none; cursor: pointer;
}

.grid-loading { opacity: .45; pointer-events: none; transition: opacity var(--t-ui) var(--ease); }

.empty-state { text-align: center; padding: 64px 16px; color: var(--ink-soft); }

/* ---------- Хлібні крихти ---------- */
.crumbs {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding-block: 14px; font-size: 13.5px; color: var(--ink-soft);
}
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--resin-deep); }
.crumbs .sep { opacity: .5; }
.crumbs .here { color: var(--ink); }

/* ---------- Сторінка товару ---------- */
.product-layout {
  display: grid; gap: 28px; padding-bottom: 48px;
  grid-template-areas: "gallery" "info" "extra";
}
.gallery { grid-area: gallery; }
.product-info { grid-area: info; }
.product-extra { grid-area: extra; margin-top: 0; }
@media (min-width: 1024px) {
  .product-layout {
    /* фіксована стеля галереї замість 55%: інакше на широких екранах фото
       роздувалось до 600-700 px і перетягувало на себе всю сторінку */
    grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 32px 48px; align-items: start;
    grid-template-areas: "gallery info" "extra info";
  }
  .product-info { position: sticky; top: 88px; }
}

/* У вузькій (одноколонковій) розкладці фото займало всю ширину — на планшеті й
   вузькому ноуті це давало квадрат під 900 px. Обмежуємо і центруємо.
   min-width:0 обовʼязковий: інакше .gallery-main (grid із 8 фото) не стискається
   нижче свого контенту й вилазить за колонку на текст. */
.gallery { display: grid; gap: 10px; max-width: 440px; margin-inline: auto; width: 100%; min-width: 0; }
@media (min-width: 1024px) { .gallery { max-width: none; margin-inline: 0; } }
.gallery-main {
  position: relative;
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%; grid-auto-rows: 100%;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: var(--radius-l); background: #F1F0EB;
  aspect-ratio: 1;
  /* Тільки по X: 'contain' по обох осях глушив і вертикальний свайп — на телефоні
     палець, що потрапив на фото, не міг прокрутити сторінку до опису. По X лишаємо,
     щоб гортання фото не тягло за собою сторінку/жест «назад». */
  overscroll-behavior-x: contain; overscroll-behavior-y: auto;
  touch-action: pan-x pan-y pinch-zoom;
  /* Стеля саме в пікселях, а не 100%: через aspect-ratio на grid-елементі браузер
     вважає відсоток невизначеним і ігнорує його — стрічка фото тоді вилазила
     за свою колонку прямо на текст. Значення дублюють max-width у .gallery. */
  min-width: 0; max-width: 440px;
}
@media (min-width: 1024px) { .gallery-main { max-width: 520px; } }
.gallery-main::-webkit-scrollbar { display: none; }
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  scroll-snap-align: start; cursor: zoom-in;
}
/* wrap — страховка: скільки б не було фото, рядок крапок не вилізе за ширину
   екрана і не розтягне сторінку вбік */
.gallery-dots { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
@media (min-width: 1024px) { .gallery-dots { display: none; } }
/* лічильник замість крапок, коли фото багато */
.gallery-count { margin: 0; text-align: center; font-size: 13.5px; color: var(--ink-soft); }
.gallery-count b { color: var(--ink); font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .gallery-count { display: none; } }
.gallery-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0;
  background: var(--line); cursor: pointer;
  transition: background-color var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.gallery-dots button.active { background: var(--resin); transform: scale(1.25); }

.gallery-thumbs { display: none; }
@media (min-width: 1024px) {
  /* переносимо на другий рядок: у товару буває 8+ фото, і стрічка мініатюр
     інакше вилазила за колонку галереї під текст */
  .gallery-thumbs { display: flex; gap: 10px; flex-wrap: wrap; min-width: 0; }
  .gallery-thumbs button {
    width: 76px; height: 76px; padding: 0; border-radius: var(--radius-s);
    border: 2px solid transparent; overflow: clip; cursor: pointer; background: #F1F0EB;
    transition: border-color var(--t-ui) var(--ease);
  }
  .gallery-thumbs button.active { border-color: var(--resin); }
  .gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
}

dialog.lightbox:not([open]) { display: none; }
dialog.lightbox {
  border: 0; padding: 0; background: transparent; max-width: 92vw; max-height: 92vh;
  display: flex; align-items: center; justify-content: center;
}
dialog.lightbox::backdrop { background: rgb(14 20 32 / .85); }
dialog.lightbox img {
  max-width: 92vw; max-height: 92vh; border-radius: var(--radius-m); cursor: zoom-out;
  transition: opacity 160ms var(--ease);
}
dialog.lightbox img.switching { opacity: 0; }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .12); color: #fff; backdrop-filter: blur(4px);
  transition: background-color var(--t-ui) var(--ease);
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }
@media (hover: hover) and (pointer: fine) { .lightbox-nav:hover { background: rgb(255 255 255 / .24); } }
@media (max-width: 640px) { .lightbox-nav { width: 38px; height: 38px; } .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; } }
.lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 1;
  width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .12); color: #fff; backdrop-filter: blur(4px);
  transition: background-color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lightbox-close:hover { background: rgb(255 255 255 / .24); } }
@media (max-width: 640px) { .lightbox-close { width: 36px; height: 36px; top: 10px; right: 10px; } }
.lightbox-dots {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 7px;
}
.lightbox-dots button {
  width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgb(255 255 255 / .4); transition: background-color var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.lightbox-dots button.active { background: #fff; transform: scale(1.25); }

/* ---------- Плаваючі кнопки: дзвінок + нагору ---------- */
.floating-actions {
  position: fixed; right: 18px; bottom: 20px; z-index: 45;
  display: flex; flex-direction: column; gap: 10px; align-items: center;
}
@media (max-width: 640px) {
  .floating-actions { right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); }
}
.floating-actions.lifted { transition: bottom var(--t-ui) var(--ease); }
@media (max-width: 1023px) {
  .floating-actions.lifted { bottom: calc(78px + env(safe-area-inset-bottom)); }
}
.fab {
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; flex: none;
  background: var(--resin); color: #fff; box-shadow: var(--shadow-2);
  transition: transform var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease), opacity var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .fab:hover { background: var(--resin-deep); transform: scale(1.06); } }
.fab:active { transform: scale(.94); }
.fab.fab-top { width: 42px; height: 42px; background: var(--paper-raise); color: var(--ink); border: 1px solid var(--line); }
html[data-theme="dark"] .fab.fab-top { background: var(--deep-soft); color: var(--on-deep); border-color: var(--line); }

.photo-zoom {
  position: absolute; right: 8px; bottom: 8px; z-index: 1;
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: rgb(255 255 255 / .9); color: var(--ink); box-shadow: var(--shadow-1);
  opacity: 1; transition: opacity var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .photo-zoom { opacity: 0; }
  .product-card:hover .photo-zoom { opacity: 1; }
  .photo-zoom:hover { background: #fff; }
}

.product-info h1 { font-size: clamp(20px, 3vw, 28px); font-weight: 500; line-height: 1.25; }

.variant-label { font-weight: 500; font-size: 14px; color: var(--ink-soft); margin: 20px 0 10px; }
.variants { display: flex; flex-wrap: wrap; gap: 8px; }
.variants .chip { min-height: 44px; }
.variants .chip[disabled] { opacity: .45; cursor: not-allowed; text-decoration: line-through; }

/* Вибір кольору: кружечки-зразки (обраний — з обідком і легким підйомом) */
.color-current { color: var(--ink); font-weight: 600; }
.color-swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 44px; height: 44px; padding: 4px; border-radius: 50%;
  border: 2px solid transparent; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: border-color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.swatch-dot {
  width: 100%; height: 100%; border-radius: 50%;
  /* тонка внутрішня рамка — щоб білий і прозорий кольори не зливались з фоном */
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .16), 0 1px 3px rgb(0 0 0 / .12);
}
.swatch:active { transform: scale(.94); }
.swatch[aria-pressed="true"] { border-color: var(--resin); transform: translateY(-1px); }
.swatch[disabled] { opacity: .35; cursor: not-allowed; }
.swatch[disabled] .swatch-dot { filter: grayscale(1); }
@media (hover: hover) and (pointer: fine) {
  .swatch:hover:not([disabled]) { border-color: var(--ink-soft); }
}

/* Однакова висота карток: фото фіксоване, назва — рівно 2 рядки, ціна завжди внизу.
   Раніше картки «стрибали» через різну довжину назви і наявність кольорів. */
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .body { display: flex; flex-direction: column; flex: 1; gap: 6px; }
.product-card .name {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.7em;
}
.product-card .price-row { margin-top: auto; }

/* Обʼєми прямо на картці */
.card-volumes { display: flex; flex-wrap: wrap; gap: 4px; }
.card-volumes span {
  font-size: 11.5px; line-height: 1; padding: 4px 7px; border-radius: 999px;
  background: var(--paper-raise); border: 1px solid var(--line); color: var(--ink-soft);
  white-space: nowrap;
}
.card-volumes .more { border-style: dashed; }
.card-vol-range { display: none; font-size: 12.5px; color: var(--ink-soft); }
.card-vol-range small { opacity: .8; }

/* Телефон: ціна й наявність не мають ламатись на два рядки, а обʼєми показуємо
   діапазоном — інакше картка перетворювалась на стовпчик із чипів. */
@media (max-width: 600px) {
  .card-volumes.many { display: none; }
  .card-vol-range { display: block; }
  .product-card .body { padding: 10px 12px 12px; gap: 5px; }
  .product-card .name { font-size: 13.5px; }
  .product-card .price { font-size: 16.5px; }
  .badge-stock, .badge-out { font-size: 11px; padding: 3px 8px; }
  .card-colors i { width: 10px; height: 10px; }
  .card-colors span { font-size: 11px; }
}

/* Кружечки кольорів на картці товару в каталозі */
.card-colors { display: flex; gap: 4px; margin-top: 6px; }
.card-colors i {
  width: 12px; height: 12px; border-radius: 50%;
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18);
}
.card-colors span { font-size: 12px; color: var(--ink-soft); align-self: center; }

.price-block { display: flex; align-items: center; gap: 14px; margin: 20px 0; }
.price-now {
  font: 700 30px var(--font-display); letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  transition: transform 180ms var(--ease);
}
.price-now.bump { transform: scale(1.03); }
.price-old { color: var(--ink-soft); text-decoration: line-through; font-size: 17px; }
.stock-badge {
  margin-left: auto; padding: 5px 12px; border-radius: 999px;
  background: var(--resin-tint); color: var(--resin-deep);
  font: 500 13px var(--font-body); white-space: nowrap;
}
.stock-badge.out { background: #F3EFEA; color: var(--ink-soft); }

.buy-row { display: grid; gap: 10px; margin-bottom: 14px; }
.delivery-note {
  display: grid; gap: 8px;
  font-size: 14px; color: var(--ink-soft);
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 12px 14px;
}
.delivery-note-row { display: flex; gap: 10px; align-items: flex-start; }

/* акордеони */
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 2px; cursor: pointer; list-style: none;
  font: 500 16px var(--font-body);
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: ""; width: 10px; height: 10px; flex: none;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg); transition: transform var(--t-ui) var(--ease);
  margin-right: 4px;
}
.acc details[open] summary::after { transform: rotate(225deg); }
.acc .acc-body { padding: 0 2px 18px; color: var(--ink-soft); font-size: 15px; }

/* FAQ усередині акордеона товару: питання — простий рядок списку (рамка навколо
   нього виглядала як зайва коробка в коробці), а от відповідь — у своїй світлій
   рамці, щоб очима одразу відділяти її від наступного запитання.
   Власна стрілочка обовʼязкова: без неї накладаються стилі .acc і .faq-item,
   і в згорнутого питання стрілка дивиться вгору, ніби воно вже розкрите. */
.acc .faq-list { display: grid; gap: 0; padding-bottom: 18px; }
.acc .faq-list .faq-item {
  border: 0; border-bottom: 1px dashed var(--line); border-radius: 0; padding: 0;
}
.acc .faq-list .faq-item:last-child { border-bottom: 0; }
.acc .faq-list .faq-item summary {
  padding: 13px 2px; font-size: 15px; color: var(--ink); font-weight: 600;
}
.acc .faq-list .faq-item summary::after {
  content: ""; width: 9px; height: 9px; flex: none; margin-right: 2px;
  border-right: 2px solid var(--ink-soft); border-bottom: 2px solid var(--ink-soft);
  transform: rotate(45deg);
}
.acc .faq-list .faq-item[open] summary::after { transform: rotate(225deg); }
.acc .faq-list .faq-item p {
  margin: 0 0 14px; padding: 12px 14px;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m);
  color: var(--ink-soft); font-size: 14.5px; line-height: 1.6;
}

.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table td { padding: 9px 4px; border-bottom: 1px dashed var(--line); vertical-align: top; }
.spec-table td:first-child { color: var(--ink-soft); width: 52%; }
.spec-table tr:last-child td { border-bottom: 0; }

/* липка панель покупки (mobile) */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  background: rgb(255 255 255 / .92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  transform: translateY(110%);
  transition: transform var(--t-ui) var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .p { font: 600 18px var(--font-body); white-space: nowrap; }
.sticky-buy .btn { flex: 1; }
@media (min-width: 1024px) { .sticky-buy { display: none; } }

/* ---------- Футер ---------- */
.site-footer {
  background: var(--deep); color: var(--on-deep-soft);
  margin-top: 48px; padding-block: 48px 32px; font-size: 14.5px;
  position: relative; overflow: clip;
}
.site-footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--iris-1), var(--iris-2), var(--iris-3), var(--iris-4));
  opacity: .7;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1.4fr 1fr; } }
.site-footer h3 { color: var(--on-deep); font: 500 15px var(--font-body); margin-bottom: 12px; }
.site-footer a { color: var(--on-deep-soft); display: inline-block; padding: 3px 0; }
.site-footer a:hover { color: var(--on-deep); }
.footer-cat-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }

.footer-address {
  display: flex; align-items: flex-start; gap: 7px;
  margin-top: 14px; max-width: 34ch;
  color: var(--on-deep-soft); font-size: 13.5px; line-height: 1.45;
  text-decoration: none; padding: 0;
}
.footer-address svg { flex: none; color: var(--resin); margin-top: 2px; }
.footer-address small { display: block; color: rgb(255 255 255 / .38); margin-top: 1px; }
@media (hover: hover) and (pointer: fine) {
  .footer-address:hover { color: var(--on-deep); }
}

.footer-map {
  position: relative; margin-top: 14px; height: 128px; max-width: 320px;
  border-radius: var(--radius-m); overflow: clip;
  border: 1px solid rgb(255 255 255 / .1);
}
.footer-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; filter: saturate(.85); }
.footer-map-pin {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: flex-start; gap: 6px;
  padding: 8px 10px; border-radius: var(--radius-s);
  background: rgb(255 255 255 / .94); backdrop-filter: blur(3px);
  box-shadow: var(--shadow-2);
  color: #1C2128; font-size: 12.5px; line-height: 1.4;
  text-decoration: none; transition: background-color var(--t-ui) var(--ease);
}
.footer-map-pin svg { flex: none; color: var(--resin-deep); margin-top: 1px; }
.footer-map-pin small { color: #5B6472; font-weight: 400; }
@media (hover: hover) and (pointer: fine) {
  .footer-map-pin:hover { background: #fff; }
}
.footer-cat-cols a { padding: 4px 0; }
/* Нижній рядок футера: тонка лінія-роздільник замість важкої «плити» на всю ширину —
   на широких екранах вона виглядала порожньою. Копірайт ліворуч, підпис розробника
   праворуч акуратним блоком. */
.footer-bottom {
  margin-top: 36px; padding-top: 20px; font-size: 13px;
  border-top: 1px solid rgb(255 255 255 / .09);
  display: flex; flex-wrap: wrap; gap: 14px 24px;
  justify-content: space-between; align-items: center;
}
.fb-copy {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  margin: 0; color: var(--on-deep-soft);
}
.fb-copy b { font-weight: 600; color: var(--on-deep); }
.fb-sep { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: .45; }

/* ---------- 404 ---------- */
.page-404 { text-align: center; padding: 96px 16px; }
.page-404 h1 { font-size: clamp(48px, 12vw, 96px); background: linear-gradient(105deg, var(--iris-1), var(--iris-2), var(--iris-4)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page-404 p { color: var(--ink-soft); margin: 12px 0 24px; }

/* ---------- Пагінація ---------- */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0 8px; }
.pagination a, .pagination span {
  display: inline-grid; place-content: center; min-width: 42px; height: 42px;
  border-radius: var(--radius-s); border: 1.5px solid var(--line);
  color: var(--ink); font-weight: 500; padding: 0 8px;
}
.pagination .current { border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep); }

/* ---------- Кошик (drawer) ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; }
.drawer-scrim {
  position: absolute; inset: 0; background: rgb(14 20 32 / .5);
  opacity: 0; transition: opacity var(--t-ui) var(--ease);
}
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 94vw);
  background: var(--paper); display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-ui) var(--ease);
  box-shadow: -12px 0 48px rgb(14 20 32 / .18);
}
.drawer.open .drawer-scrim { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
}
.drawer-head h3 { font-size: 20px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line img { border-radius: var(--radius-s); flex: none; object-fit: cover; }
.cart-line-info { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-line-name { color: var(--ink); font-weight: 500; font-size: 14px; line-height: 1.3; }
.cart-line-variant { color: var(--ink-soft); font-size: 13px; }
.cart-line-stock { display: block; margin-top: 4px; font-size: 12.5px; color: var(--amber-deep); }
.cart-line-row { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.cart-line-price { font-weight: 600; font-size: 15px; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.qty button {
  width: 34px; height: 34px; border: 0; background: none; cursor: pointer;
  font: 600 16px var(--font-body); color: var(--ink);
  transition: transform var(--t-fast) var(--ease);
}
.qty button:active { transform: scale(.9); }
.qty span { min-width: 26px; text-align: center; font-weight: 600; font-size: 14px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 10px; }
.drawer-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 16px; }
.drawer-total strong { font: 700 22px var(--font-display); }
.drawer-empty { flex: 1; display: grid; place-content: center; gap: 12px; text-align: center; color: var(--ink-soft); }

/* ---------- Форми ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper-raise); color: var(--ink);
  font: 400 16px var(--font-body);
  transition: border-color var(--t-ui) var(--ease), box-shadow var(--t-ui) var(--ease);
}
.field textarea { resize: vertical; min-height: 64px; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--resin);
  box-shadow: 0 0 0 3px rgb(43 179 163 / .15);
}
.field input:disabled { background: #F1F0EB; color: var(--ink-soft); cursor: not-allowed; }
.form-error {
  background: #FBEAEC; color: var(--danger); border-radius: var(--radius-s);
  padding: 10px 14px; font-size: 14.5px; font-weight: 500;
}
.order-min-note {
  background: #FBF1E3; color: var(--amber-deep); border-radius: var(--radius-s);
  padding: 10px 14px; font-size: 14.5px; font-weight: 500;
}
.order-min-note a { color: inherit; text-decoration: underline; }

/* автокомпліт */
.ac-wrap { position: relative; }
.ac-list {
  position: absolute; z-index: 30; left: 0; right: 0; top: 100%;
  margin: 4px 0 0; padding: 6px; list-style: none;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-2);
  max-height: 260px; overflow-y: auto;
}
.ac-list li {
  padding: 10px 12px; border-radius: var(--radius-s);
  font-size: 14.5px; cursor: pointer;
}
.ac-list li:hover { background: var(--resin-tint); }

/* ---------- Чекаут ---------- */
.checkout { padding-block: 24px 48px; }
.checkout-title { font-size: clamp(24px, 4vw, 36px); margin-bottom: 24px; }
.checkout-grid { display: grid; gap: 20px; }
@media (min-width: 1024px) {
  .checkout-grid { grid-template-columns: 1fr 380px; align-items: start; }
  .checkout-side { position: sticky; top: 88px; }
}
.checkout-main { display: grid; gap: 16px; }
.panel {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 20px;
}
.container > .panel + .panel { margin-top: 20px; }
.panel-title { display: flex; align-items: center; gap: 10px; font: 500 18px var(--font-display); margin-bottom: 16px; }
.panel-title .num {
  display: inline-grid; place-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--resin-tint); color: var(--resin-deep);
  font: 600 14px var(--font-body);
}
.wh-type { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }

.pay-options { display: grid; gap: 10px; }
.pay-option {
  display: flex; gap: 12px; align-items: flex-start;
  border: 1.5px solid var(--line); border-radius: var(--radius-m);
  padding: 14px; cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.pay-option:has(input:checked) { border-color: var(--resin); background: rgb(43 179 163 / .05); }
.pay-option input { margin-top: 3px; accent-color: var(--resin); width: 18px; height: 18px; }
.pay-body { display: grid; gap: 3px; }
.pay-body small { color: var(--ink-soft); font-size: 13.5px; }

.summary-items { display: grid; gap: 10px; margin-bottom: 14px; }
.summary-line { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.summary-line img { border-radius: var(--radius-s); flex: none; object-fit: cover; }
.summary-name { flex: 1; min-width: 0; }
.summary-price { font-weight: 600; white-space: nowrap; }
.summary-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 16px;
}
.summary-total strong { font: 700 24px var(--font-display); }
.summary-note { color: var(--ink-soft); font-size: 12.5px; text-align: center; margin: 10px 0 0; }

/* ---------- Сторінка замовлення / трекінг ---------- */
.order-page { padding-block: 32px 48px; max-width: 880px; }
.order-title { font-size: clamp(24px, 4vw, 36px); margin-bottom: 20px; }
.thanks { text-align: center; padding: 24px 0 28px; }
.thanks h1 { font-size: clamp(24px, 5vw, 40px); margin: 12px 0 8px; }
.thanks p { color: var(--ink-soft); }
.thanks-drop {
  font-size: 44px; animation: drop-in 600ms var(--ease);
}
@keyframes drop-in {
  from { transform: translateY(-24px) scale(.8); opacity: 0; }
}
.order-cols { display: grid; gap: 16px; margin-top: 16px; }
@media (min-width: 768px) { .order-cols { grid-template-columns: 1.2fr 1fr; } }
.order-detail { font-size: 15px; margin-bottom: 10px; }
.order-cancelled { background: #FBEAEC; border-color: #F0C7CC; }

.timeline { list-style: none; display: flex; margin: 4px 0 8px; padding: 0; }
.timeline li { flex: 1; position: relative; text-align: center; padding-top: 26px; }
.timeline .dot {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--paper); border: 2.5px solid var(--line);
  z-index: 1; transition: background-color var(--t-ui), border-color var(--t-ui);
}
.timeline li::before {
  content: ""; position: absolute; top: 8px; left: -50%; width: 100%; height: 2.5px;
  background: var(--line);
}
.timeline li:first-child::before { display: none; }
.timeline li.done .dot, .timeline li.current .dot { border-color: var(--resin); background: var(--resin); }
.timeline li.done + li::before, .timeline li.current::before { background: var(--resin); }
.timeline li.current .dot { box-shadow: 0 0 0 5px rgb(43 179 163 / .18); }
.timeline .label { font-size: 12.5px; color: var(--ink-soft); display: block; line-height: 1.25; }
.timeline li.current .label { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .timeline .label { font-size: 10.5px; } }

.ttn-block {
  display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap;
  border-top: 1px dashed var(--line); margin-top: 14px; padding-top: 14px;
  font-size: 15px;
}
.ttn-block a { font-weight: 600; }

/* ---------- Модалка ---------- */
dialog.modal {
  border: 0; border-radius: var(--radius-l); padding: 20px;
  width: min(420px, calc(100vw - 32px));
  box-shadow: var(--shadow-2);
}
dialog.modal::backdrop { background: rgb(14 20 32 / .55); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.modal-head h3 { font-size: 19px; }
.quick-done { text-align: center; display: grid; gap: 8px; padding: 8px 0; }

/* ---------- Калькулятор витрати смоли ---------- */

dialog.modal-calc { width: min(520px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow-y: auto; }
/* заголовок довгий — на вузькому екрані даємо йому менший кегль, щоб не тіснив хрестик */
.modal-calc .modal-head { align-items: flex-start; }
.modal-calc .modal-head h3 { font-size: 17px; line-height: 1.25; padding-right: 6px; }
@media (min-width: 420px) { .modal-calc .modal-head h3 { font-size: 19px; } }
.calc { display: grid; gap: 12px; }
.calc-lead { margin: 0; color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
.calc-sub { margin: 2px 0 -4px; font-size: 14px; font-weight: 600; }

/* вкладки форми й пропорції: однакові на всю ширину, щоб не стрибали */
.calc-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.calc-tab {
  padding: 9px 6px; border: 1.5px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper-raise); color: var(--ink); cursor: pointer;
  font: 500 14px var(--font-body); line-height: 1.25; text-align: center;
  transition: border-color var(--t-ui) var(--ease), background var(--t-ui) var(--ease);
}
.calc-tab small { display: block; margin-top: 2px; font-size: 11px; color: var(--ink-soft); font-weight: 400; }
.calc-tab.is-on { border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep); }
.calc-tab.is-on small { color: var(--resin-deep); }
@media (hover: hover) and (pointer: fine) {
  .calc-tab:hover { border-color: var(--resin); }
}

.calc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.calc-grid[hidden] { display: none; }
.calc-grid .field { margin: 0; }
.calc-grid .field input { min-height: 42px; }
.calc-hint { grid-column: 1 / -1; margin: -2px 0 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.45; }
.calc-err { margin: 0; font-size: 13.5px; color: #C0392B; }
.calc-err[hidden] { display: none; }

/* підсумок: два довідкові рядки і два головні — саме їх зважують */
.calc-out { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--radius-m); background: var(--resin-tint); }
.calc-out > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; }
.calc-out span { color: var(--ink-soft); }
.calc-out b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-out-main { font-size: 15px; }
.calc-out-main span { color: var(--ink); font-weight: 500; }
.calc-out-main b { font-size: 17px; color: var(--resin-deep); }
.calc-note { margin: 0; font-size: 12.5px; color: var(--ink-soft); line-height: 1.5; }

html[data-theme="dark"] .calc-tab { background: var(--paper-raise); }

/* у шапці — іконка перед «Каталог», щоб калькулятор бачили одразу.
   Відʼємний відступ зліва підсуває її впритул до кнопки бічного меню — звільнене
   місце йде на повітря між пунктами меню, яким його бракувало */
.nav-calc {
  flex: none; display: inline-grid; place-items: center;
  width: 32px; height: 32px; margin: 0 10px 0 -18px; padding: 0;
  border: 1.5px solid var(--line); border-radius: 9px;
  background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease);
}
.on-dark .nav-calc { color: var(--on-deep); border-color: rgb(255 255 255 / .25); }
@media (hover: hover) and (pointer: fine) {
  .nav-calc:hover { border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep); }
}

/* у мобільному меню — рядок з підписом, як у «Пошук по сайту» поруч */
.mnav-calc {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; margin: 2px 0; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--paper-raise);
  color: var(--ink); font: 500 15px var(--font-body); cursor: pointer;
  text-align: left;
}
.mnav-calc svg { flex: none; color: var(--resin-deep); }
.mnav-calc:active { background: var(--resin-tint); }

/* те саме посилання в підвалі — виглядає як сусідні, але це кнопка */
.footer-calc {
  display: inline-flex; align-items: center; gap: 8px; padding: 3px 0; border: 0;
  background: none; color: var(--on-deep-soft); cursor: pointer;
  font: inherit; text-align: left;
}
.footer-calc:hover { color: var(--on-deep); }
.footer-calc svg { flex: none; }
.wh-type[hidden] { display: none; }

/* ---------- Hero: «бульбашки в смолі» — плаваючі категорії ---------- */
.hero-bubbles { display: none; }
@media (min-width: 1024px) {
  .hero-bubbles {
    display: flex; flex-wrap: wrap; gap: 14px 18px;
    align-items: center; justify-content: center; align-content: center;
    min-height: 440px; justify-self: stretch;
  }
  .bubble {
    position: relative; display: block; flex: none;
    transform: translate3d(var(--px, 0px), calc(var(--py, 0px) + var(--off, 0px)), 0);
    transition: transform 600ms var(--ease);
    will-change: transform;
  }
  .bubble .bob {
    display: block; position: relative;
    animation: bob 7s ease-in-out infinite alternate;
  }
  .bubble:nth-child(2) .bob { animation-duration: 8.5s; animation-delay: -2s; }
  .bubble:nth-child(3) .bob { animation-duration: 6s; animation-delay: -4s; }
  .bubble:nth-child(4) .bob { animation-duration: 7.5s; animation-delay: -1s; }
  .bubble:nth-child(5) .bob { animation-duration: 9s; animation-delay: -3s; }
  .bubble:nth-child(6) .bob { animation-duration: 6.5s; animation-delay: -5s; }

  .bubble img {
    width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%;
    box-shadow:
      inset 0 0 0 1.5px rgb(255 255 255 / .35),
      inset 0 -18px 30px -10px rgb(14 20 32 / .35),
      inset 0 14px 24px -8px rgb(255 255 255 / .55),
      0 24px 60px -18px rgb(14 20 32 / .8);
    transition: transform 500ms var(--ease), box-shadow 500ms var(--ease),
                filter 400ms var(--ease);
  }
  /* скляний відблиск зверху */
  .bubble .shine {
    position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    background:
      radial-gradient(38% 26% at 30% 16%, rgb(255 255 255 / .75), transparent 70%),
      radial-gradient(20% 14% at 68% 12%, rgb(255 255 255 / .4), transparent 70%),
      linear-gradient(200deg, rgb(43 179 163 / .18), transparent 40%, rgb(124 92 191 / .14) 85%);
    mix-blend-mode: screen;
  }
  /* Підпис категорії на наведення. Плашка НЕПРОЗОРА: раніше крізь неї (72%)
     просвічувало фото сусідньої бульбашки, і назву на світлих знімках було
     не прочитати. Тінь відриває плашку від строкатого тла. */
  .bubble .blabel {
    position: absolute; left: 50%; bottom: -34px; transform: translateX(-50%) translateY(-4px);
    white-space: nowrap; z-index: 2;
    background: rgb(11 16 27 / .97);
    color: #fff; font: 600 13.5px var(--font-body);
    padding: 7px 15px; border-radius: 999px;
    border: 1px solid rgb(255 255 255 / .22);
    box-shadow: 0 8px 22px -6px rgb(0 0 0 / .7);
    opacity: 0; transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
    pointer-events: none;
  }
  /* Бульбашки накладаються одна на одну, і сусідня, що йде далі в розмітці,
     малювалась ПОВЕРХ підпису. Піднімаємо ту, на яку навели, разом з підписом. */
  .bubble:hover, .bubble:focus-visible { z-index: 6; }
  @media (hover: hover) and (pointer: fine) {
    /* Підсвітка на наведення: фото світлішає й насичується, навколо зʼявляється
       мʼяке бірюзове сяйво і тонкий світлий обідок. Ефект живе ЛИШЕ на одній
       бульбашці за раз (це :hover), тож браузер перемальовує один невеликий
       елемент — на плавність сторінки це не впливає. Свідомо без backdrop-filter
       і без will-change: саме вони колись і гальмували прокрутку тут. */
    .bubble:hover img {
      transform: scale(1.14);
      filter: brightness(1.2) saturate(1.25);
      box-shadow:
        inset 0 0 0 2px rgb(255 255 255 / .75),
        inset 0 -18px 30px -10px rgb(14 20 32 / .18),
        inset 0 14px 24px -8px rgb(255 255 255 / .8),
        0 0 0 4px rgb(255 255 255 / .22),
        0 0 30px 2px rgb(255 255 255 / .32),
        0 0 58px 8px rgb(43 179 163 / .7);
    }
    /* Відблиск яскравішає через opacity, а НЕ через filter: у блика стоїть
       mix-blend-mode: screen, і фільтр поверх блендингу — найдорожча для
       браузера комбінація (перевірено заміром: -16 fps). */
    .bubble .shine { opacity: .85; transition: opacity 350ms var(--ease); }
    .bubble:hover .shine { opacity: 1; }
    .bubble:hover .blabel { opacity: 1; transform: translateX(-50%) translateY(0); }
    .bubble:hover .bob { animation-play-state: paused; }

    /* Бульбашки без фото — світлішають так само: яскравіше скло, чіткіший
       обідок і те саме сяйво, щоб поведінка була однаковою в усьому банері. */
    .bubble-glass:hover .bob {
      border-color: rgb(255 255 255 / .6);
      background-color: rgb(255 255 255 / .1);
      box-shadow:
        inset 0 -16px 30px -12px rgb(14 20 32 / .3),
        inset 0 14px 26px -10px rgb(255 255 255 / .85),
        0 0 0 4px rgb(255 255 255 / .2),
        0 0 30px 2px rgb(255 255 255 / .3),
        0 0 58px 8px rgb(43 179 163 / .65),
        0 24px 60px -20px rgb(0 0 0 / .75);
    }
    .bubble-glass:hover .gname { color: #fff; text-shadow: 0 1px 3px rgb(9 14 24 / .95), 0 0 18px rgb(255 255 255 / .35); }
    /* плавний перехід підсвітки, щоб вона наростала, а не спалахувала */
    .bubble-glass .bob { transition: box-shadow 420ms var(--ease), border-color 420ms var(--ease),
                                     background-color 420ms var(--ease); }
  }
}
@keyframes bob {
  from { transform: translateY(-10px) rotate(-1.2deg); }
  to   { transform: translateY(12px) rotate(1.2deg); }
}
@media (prefers-reduced-motion: reduce) {
  .bubble .bob { animation: none; }
  .bubble { transform: none !important; }
}

/* логотип-бейдж: кольоровий обідок обертається, текст всередині нерухомий */
.logo-badge {
  position: relative; display: inline-block;
  width: 44px; height: 44px; flex: none;
}
@keyframes logo-ring-spin { to { transform: rotate(360deg); } }
.logo-ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--insta-1), var(--insta-2), var(--insta-3), var(--insta-4), var(--insta-5), var(--insta-6), var(--insta-1));
  box-shadow: 0 0 0 1.5px rgb(255 255 255 / .18);
  animation: logo-ring-spin 6s linear infinite; will-change: transform;
}
.logo-badge img {
  position: absolute; inset: 3px; width: calc(100% - 6px); height: calc(100% - 6px);
  border-radius: 50%; object-fit: cover; display: block;
}
@media (prefers-reduced-motion: reduce) { .logo-ring { animation: none; } }
.logo span em { font-style: normal; color: var(--resin); }
.site-header:not(.on-dark) .logo span em { color: var(--resin-deep); }

/* ---------- Контакти ---------- */
.contacts-page { padding-bottom: 48px; }
.page-title { font-size: clamp(24px, 4vw, 40px); margin: 4px 0 24px; }
.contacts-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; } }
.contact-list { margin: 0; display: grid; gap: 14px; }
.contact-list dt { font-size: 13px; color: var(--ink-soft); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-size: 16.5px; font-weight: 500; }
.contact-list dd small { font-weight: 400; color: var(--ink-soft); }
.map-panel { display: flex; flex-direction: column; }
.map-wrap {
  border-radius: var(--radius-m); overflow: clip; border: 1px solid var(--line);
  flex: 1; min-height: 380px;
}
.map-wrap iframe { display: block; width: 100%; height: 100%; }

.contact-rows { display: grid; }
.contact-row {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
}
.contact-row:last-child { border-bottom: 0; padding-bottom: 2px; }
.contact-row:first-child { padding-top: 2px; }
.contact-ico {
  display: inline-grid; place-content: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--resin-tint); font-size: 15px;
}
.contact-row-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.contact-row-label { font-size: 12.5px; color: var(--ink-soft); }
.contact-row-body a { font-size: 15.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.contact-row-body > span:not(.contact-row-label) { font-size: 15.5px; font-weight: 500; }
.contact-row-body small { font-size: 12.5px; color: var(--ink-soft); font-weight: 400; }
.contact-row-body a:hover { text-decoration: underline; }
.contact-chan {
  margin-left: 8px; font-size: 12.5px !important; font-weight: 600 !important;
  color: var(--resin-deep) !important;
}
html[data-theme="dark"] .contact-ico { background: rgb(43 179 163 / .18); }
.contact-ico-vb { background: rgb(115 96 242 / .12); color: #7360F2; }
.contact-ico-tg { background: rgb(42 171 238 / .12); color: #2AABEE; }
html[data-theme="dark"] .contact-ico-vb { background: rgb(115 96 242 / .18); }
html[data-theme="dark"] .contact-ico-tg { background: rgb(42 171 238 / .18); }
.visit-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .visit-grid { grid-template-columns: 1fr 1.3fr 1fr; align-items: center; gap: 32px; } }
.about-map { max-width: none; height: 220px; border-color: var(--line); }
@media (min-width: 900px) { .about-map { height: 280px; } }

/* короткий опис на картці товару */
.short-desc {
  color: var(--ink-soft); font-size: 15px; line-height: 1.55;
  margin: 14px 0 0;
}
.read-more {
  border: 0; background: none; padding: 0; cursor: pointer;
  color: var(--resin-deep); font: 500 14.5px var(--font-body);
  text-decoration: underline; text-underline-offset: 3px;
}

/* ---------- Відгуки ---------- */
.rating-link { color: var(--amber-deep); font-weight: 600; }
.reviews-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .reviews-grid { grid-template-columns: 1.3fr 1fr; align-items: start; } }
.reviews-list { display: grid; gap: 14px; }
.review {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 16px;
}
.review-head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review .stars { color: var(--amber); letter-spacing: 2px; }
/* Клас був описаний лише в адмінці — на сайті зірки лишались кольору тексту */
.stars-amber { color: var(--amber); letter-spacing: 2px; }
.review p { margin: 0 0 6px; font-size: 15px; }
.review time { font-size: 12.5px; color: var(--ink-soft); }
.review-form h3 { margin-bottom: 12px; }
.review-note { font-size: 12.5px; color: var(--ink-soft); text-align: center; margin: 10px 0 0; }
.form-ok-lite {
  background: var(--resin-tint); color: var(--resin-deep);
  border-radius: var(--radius-s); padding: 12px 16px; font-weight: 500; margin-bottom: 16px;
}
/* зірки-радіо: RTL-трюк для підсвітки зліва направо */
.star-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; margin-bottom: 12px; }
.star-input input { position: absolute; opacity: 0; pointer-events: none; }
.star-input label { font-size: 30px; color: var(--line); cursor: pointer; transition: color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.star-input label:active { transform: scale(.9); }
.star-input input:checked ~ label { color: var(--amber); }
@media (hover: hover) { .star-input label:hover, .star-input label:hover ~ label { color: var(--amber); } }

/* кредит розробника у футері */
.dev-credit { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.dev-by { color: var(--on-deep-soft); white-space: nowrap; }
/* Підпис розробника — такий самий білий, як «Epoxy Space Kyiv» ліворуч, щоб нижній
   рядок читався одним рівнем. На наведення/дотик перетікає у фірмовий градієнт.
   Хитрість: градієнт лежить під текстом (background-clip: text), а сам текст —
   білий поверх нього. Анімуємо колір тексту в прозорий, і градієнт проступає.
   Так це один і той самий текстовий блок: другому шару нема куди зʼїхати. */
.site-footer .dev-brand {
  position: relative; display: inline; padding: 0;
  font-weight: 600; letter-spacing: .01em;
  background-image: linear-gradient(105deg, var(--iris-1), var(--iris-2), var(--iris-4));
  -webkit-background-clip: text; background-clip: text;
  color: var(--on-deep); -webkit-text-fill-color: var(--on-deep);
  transition: color var(--t-ui) var(--ease), -webkit-text-fill-color var(--t-ui) var(--ease);
}
/* тонке градієнтне підкреслення, що виростає зліва направо */
.site-footer .dev-brand::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px;
  border-radius: 2px;
  background: linear-gradient(105deg, var(--iris-1), var(--iris-2), var(--iris-4));
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--t-ui) var(--ease);
}
/* :focus поруч із :active — у мобільних браузерах :active на посиланні спрацьовує
   через раз, а фокус на дотик виставляється завжди, тож підсвітка не загубиться. */
.site-footer .dev-brand:active, .site-footer .dev-brand:focus {
  color: transparent; -webkit-text-fill-color: transparent;
}
.site-footer .dev-brand:active::before, .site-footer .dev-brand:focus::before { transform: scaleX(1); }
.site-footer .dev-brand:focus { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .site-footer .dev-brand:hover { color: transparent; -webkit-text-fill-color: transparent; }
  .site-footer .dev-brand:hover::before { transform: scaleX(1); }
}
.dev-cta {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .04);
  color: var(--on-deep); font-weight: 500; font-size: 12.5px;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}
.dev-cta svg { opacity: .75; transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease); }
.dev-cta:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .dev-cta:hover {
    border-color: var(--resin); background: rgb(43 179 163 / .14); color: var(--on-deep);
  }
  .dev-cta:hover svg { opacity: 1; transform: translate(1px, -1px); }
}

/* На телефоні — у стовпчик і по центру, кнопка на всю ширину:
   так вона не тисне копірайт і в неї зручно поцілити пальцем. */
@media (max-width: 700px) {
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .fb-copy { justify-content: center; }
  .dev-credit { flex-direction: column; gap: 10px; width: 100%; }
  .dev-cta { width: 100%; justify-content: center; padding: 11px 16px; }
}

/* ============================================================
   ТЕМНА ТЕМА САЙТУ — перемикається кнопкою в шапці (localStorage)
   ============================================================ */
html[data-theme="dark"] {
  --ink: #EDEFEA;
  --ink-soft: #9AA6B5;
  --paper: #0E1420;
  --paper-raise: #1A2332;
  --line: #2B3547;

  --resin-deep: #3ECFBD;          /* лінки: світліші для контрасту на темному */
  --resin-tint: rgb(43 179 163 / .16);
  --amber-deep: #E8B672;

  --shadow-1: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-2: 0 6px 24px -8px rgb(0 0 0 / .55);
}
html[data-theme="dark"] .site-header:not(.on-dark) {
  background: rgb(14 20 32 / .85);
}
html[data-theme="dark"] .site-header .logo,
html[data-theme="dark"] .main-nav a,
html[data-theme="dark"] .icon-btn { color: var(--ink); }
html[data-theme="dark"] .main-nav a:hover { background: rgb(255 255 255 / .08); }
html[data-theme="dark"] .icon-btn:hover { background: rgb(255 255 255 / .08); }
html[data-theme="dark"] .sticky-buy { background: rgb(26 35 50 / .94); border-top-color: var(--line); }
html[data-theme="dark"] .form-error { background: rgb(214 69 80 / .16); color: #F0A5AC; }
html[data-theme="dark"] .order-min-note { background: rgb(224 164 88 / .16); color: var(--amber-deep); }
html[data-theme="dark"] .stock-badge.out { background: #253044; color: var(--ink-soft); }
html[data-theme="dark"] .form-ok-lite { background: var(--resin-tint); color: var(--resin-deep); }
html[data-theme="dark"] .step .num { background: rgb(43 179 163 / .18); }
html[data-theme="dark"] .chip { background: var(--paper-raise); }
html[data-theme="dark"] .chip[aria-pressed="true"], html[data-theme="dark"] .chip.active {
  background: rgb(43 179 163 / .16); color: var(--resin-deep);
}
html[data-theme="dark"] .select { background-color: var(--paper-raise); color: var(--ink); }
html[data-theme="dark"] .product-card .photo,
html[data-theme="dark"] .gallery-main,
html[data-theme="dark"] .gallery-thumbs button { background: #E9E8E2; } /* білі фото товарів — на світлій підкладці */
html[data-theme="dark"] .btn-ghost { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
html[data-theme="dark"] .btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--ink-soft); }
html[data-theme="dark"] .review-form.panel, html[data-theme="dark"] .panel { background: var(--paper-raise); }
html[data-theme="dark"] .delivery-note { background: var(--paper-raise); }
html[data-theme="dark"] .field input, html[data-theme="dark"] .field textarea {
  background: var(--paper); border-color: var(--line); color: var(--ink);
}
html[data-theme="dark"] .ac-list { background: var(--paper-raise); border-color: var(--line); }
html[data-theme="dark"] .ac-list li:hover { background: rgb(43 179 163 / .14); }
html[data-theme="dark"] .pay-option:has(input:checked) { background: rgb(43 179 163 / .1); }
html[data-theme="dark"] .drawer-panel { background: var(--paper); }
html[data-theme="dark"] .mobile-nav .panel { background: var(--paper); }
html[data-theme="dark"] .qty button { color: var(--ink); }
html[data-theme="dark"] .star-input label { color: #3A465C; }
html[data-theme="dark"] .star-input input:checked ~ label { color: var(--amber); }

/* кнопка-перемикач теми */
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
html[data-theme="dark"] .theme-toggle .i-sun { display: block; }
html[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* ---------- Випадаюче меню «Каталог» ---------- */
.nav-dd { position: relative; flex: none; }
/* невидимий місток над проміжком до панелі — інакше миша "виходить" з .nav-dd
   між кнопкою і панеллю (там 8px простору), mouseleave стріляє зарано, і меню
   закривається ще до того, як курсор доїде до пунктів списку */
.nav-dd::after {
  content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 8px;
}
.nav-dd-btn {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 8px 4px; border: 0; border-radius: var(--radius-s);
  background: transparent; color: var(--ink);
  font: 600 15.5px/1.2 var(--font-body); letter-spacing: .005em; cursor: pointer;
  transition: background-color var(--t-ui) var(--ease);
}
.on-dark .nav-dd-btn { color: var(--on-deep); }
html[data-theme="dark"] .nav-dd-btn { color: var(--ink); }
.nav-dd-btn svg { transition: transform var(--t-ui) var(--ease); }
.nav-dd.open .nav-dd-btn svg { transform: rotate(180deg); }
@media (hover: hover) and (pointer: fine) {
  .nav-dd-btn:hover { background: rgb(28 33 40 / .06); }
  .on-dark .nav-dd-btn:hover, html[data-theme="dark"] .nav-dd-btn:hover { background: rgb(255 255 255 / .08); }
}
/* «Увесь каталог» — окремим рядком на всю ширину панелі, щоб було видно, куди веде
   клік по самому «Каталог» */
.dd-all {
  display: block; padding: 8px 10px; margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--resin-deep);
}

.nav-dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 520px; max-height: min(72vh, 640px); overflow-y: auto;
  display: block;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-2);
  padding: 10px;
  opacity: 0; transform: translateY(-6px); pointer-events: none;
  transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.nav-dd.open .nav-dd-panel { opacity: 1; transform: none; pointer-events: auto; }
.nav-dd-panel a,
.site-header.on-dark .main-nav .nav-dd-panel a,
html[data-theme="dark"] .main-nav .nav-dd-panel a {
  padding: 9px 12px; border-radius: var(--radius-s);
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.nav-dd-panel a:hover { background: var(--resin-tint); color: var(--resin-deep); }

/* ---------- Кнопка теми: сонце/місяць з кольором ---------- */
.icon-btn.theme-toggle {
  border: 1.5px solid transparent;
  transition: background-color var(--t-ui) var(--ease), border-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}
/* серпик місяця оптично "легший" зліва (вирізана дуга) — підсуваємо сам глиф правіше в кнопці */
.theme-toggle svg { transform: translateX(10px); }
@media (min-width: 1240px) { .header-actions a[href="/account/"] svg { transform: translateX(4px); } }
.theme-toggle .i-moon { color: var(--resin-deep); }
.on-dark .theme-toggle .i-moon { color: var(--resin); }
html[data-theme="dark"] .theme-toggle .i-sun { color: var(--amber); }
@media (hover: hover) and (pointer: fine) {
  .icon-btn.theme-toggle:hover { background: transparent !important; }
  .theme-toggle:hover svg { color: var(--ink); }
  .on-dark .theme-toggle:hover svg,
  html[data-theme="dark"] .theme-toggle:hover svg { color: #fff; }
}

/* ---------- Hero з фоновою resin-art текстурою ---------- */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  animation: kenburns 36s var(--ease) infinite alternate;
  will-change: transform;
}
@keyframes kenburns {
  from { transform: scale(1) translate(0, 0); }
  to   { transform: scale(1.12) translate(-1.5%, 1.5%); }
}
/* затемнення для читабельності тексту */
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(90deg, rgb(14 20 32 / .88) 0%, rgb(14 20 32 / .62) 45%, rgb(14 20 32 / .35) 100%),
    linear-gradient(0deg, rgb(14 20 32 / .55) 0%, transparent 35%);
}
@media (max-width: 1023px) {
  .hero-scrim { background: rgb(14 20 32 / .68); }
}
/* дрейф-градієнт поверх фото — делікатніше */
.hero:has(.hero-bg)::before { opacity: .4; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .hero-bg { animation: none; } }

/* ---------- Категорії без фото: чипи під bento ---------- */
.cat-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cat-chips a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper-raise);
  color: var(--ink); font-weight: 500; font-size: 14.5px;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}
.cat-chips a:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) {
  .cat-chips a:hover { border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep); }
}

/* ---------- Скляні бульбашки (категорії без фото) ---------- */
@media (min-width: 1024px) {
  .bubble-glass .bob {
    display: grid; place-items: center; text-align: center;
    aspect-ratio: 1; border-radius: 50%; padding: 14%;
    background:
      radial-gradient(120% 120% at 30% 18%, rgb(255 255 255 / .34), rgb(255 255 255 / .10) 46%, rgb(255 255 255 / .04) 72%),
      radial-gradient(85% 85% at 72% 82%, rgb(43 179 163 / .30), transparent 62%),
      radial-gradient(95% 95% at 18% 76%, rgb(124 92 191 / .26), transparent 66%),
      radial-gradient(60% 60% at 80% 25%, rgb(224 164 88 / .16), transparent 60%);
    border: 1.5px solid rgb(255 255 255 / .34);
    box-shadow:
      inset 0 -16px 30px -12px rgb(14 20 32 / .5),
      inset 0 14px 26px -10px rgb(255 255 255 / .5),
      0 24px 60px -20px rgb(0 0 0 / .75);
    transition: transform 500ms var(--ease), border-color 500ms var(--ease),
                box-shadow 500ms var(--ease);
  }
  /* Назва всередині скляної бульбашки: щільніша тінь, бо під склом просвічує
     світле фото шапки і білий текст на ньому губився. */
  .bubble-glass .gname {
    color: #fff; font: 700 clamp(12px, 1.1vw, 15px)/1.3 var(--font-body);
    text-shadow: 0 1px 3px rgb(9 14 24 / .95), 0 2px 14px rgb(9 14 24 / .8);
    text-wrap: balance;
  }
  /* райдужний обідок, що повільно обертається */
  .bubble-glass .bob::before {
    content: ""; position: absolute; inset: -2px; border-radius: 50%;
    padding: 2px;
    background: conic-gradient(from 0deg,
      rgb(43 179 163 / .0), rgb(43 179 163 / .65), rgb(62 124 177 / .55),
      rgb(124 92 191 / .6), rgb(224 164 88 / .5), rgb(43 179 163 / .0));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    mask-composite: exclude;
    animation: ring-spin 14s linear infinite;
    animation-play-state: paused;
    opacity: .55;
    transition: opacity 500ms var(--ease);
  }
  @keyframes ring-spin { to { transform: rotate(360deg); } }
  @media (hover: hover) and (pointer: fine) {
    .bubble-glass:hover .bob {
      transform: scale(1.12);
      border-color: rgb(255 255 255 / .6);
      box-shadow:
        inset 0 -16px 30px -12px rgb(14 20 32 / .4),
        inset 0 14px 26px -10px rgb(255 255 255 / .6),
        0 30px 72px -18px rgb(43 179 163 / .6);
    }
    .bubble-glass:hover .bob::before { opacity: 1; animation-play-state: running; }
    .bubble-glass:hover .bob .shine { opacity: 1; }
  }
  .bubble-glass .shine { border-radius: 50%; }
}
@media (prefers-reduced-motion: reduce) { .bubble-glass .bob::before { animation: none; } }

/* підкатегорії в меню */
/* ---------- Дерево категорій у випадаючому меню ---------- */
/* Верхній рівень — у дві колонки (як було), але гілка з підкатегоріями не
   розривається між колонками. Розкриття — стрілочкою праворуч від назви:
   сама назва лишається посиланням, тож один клік веде в категорію. */
.dd-tree { columns: 2; column-gap: 10px; }
.dd-tree > .dd-node { break-inside: avoid; -webkit-column-break-inside: avoid; }
.dd-row { display: flex; align-items: center; gap: 2px; }
.dd-row > a { flex: 1; min-width: 0; }
.dd-toggle {
  flex: none; width: 26px; height: 26px; padding: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-soft); border-radius: 50%;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-ui) var(--ease);
}
.dd-toggle:hover { background: var(--resin-tint); color: var(--resin-deep); }
.dd-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--resin-deep); }
/* вкладені рівні: лінія-«гілка» ліворуч, щоб було видно підпорядкування */
.dd-kids {
  margin: 2px 0 6px 14px; padding-left: 10px;
  border-left: 1.5px solid var(--line);
}
.dd-node.lvl-2 > .dd-row > a,
.site-header.on-dark .main-nav .dd-node.lvl-2 > .dd-row > a,
html[data-theme="dark"] .main-nav .dd-node.lvl-2 > .dd-row > a {
  font-weight: 400; font-size: 13.5px; color: var(--ink-soft); padding: 6px 10px;
}
.dd-node.lvl-3 > .dd-row > a,
.site-header.on-dark .main-nav .dd-node.lvl-3 > .dd-row > a,
html[data-theme="dark"] .main-nav .dd-node.lvl-3 > .dd-row > a {
  font-weight: 400; font-size: 13px; color: var(--ink-soft); padding: 5px 10px;
}
.dd-node.lvl-2 > .dd-row > a:hover,
.dd-node.lvl-3 > .dd-row > a:hover { color: var(--resin-deep); }
.mobile-nav .panel .sub-link { padding-left: 24px; font-weight: 400; font-size: 14px; color: var(--ink-soft); }
.mobile-nav .panel .sub-link.lvl3 { padding-left: 40px; font-size: 13.5px; opacity: .9; }

/* ---------- Кнопки «Поділитися» ---------- */
.share-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
}
.share-label { font-size: 13.5px; color: var(--ink-soft); margin-right: 2px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 38px; padding: 7px 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper-raise);
  color: var(--ink); font: 500 13.5px var(--font-body); cursor: pointer;
  text-decoration: none;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease);
}
.share-btn:active { transform: scale(.95); }
.share-btn.icon-only { min-width: 38px; min-height: 38px; padding: 7px; justify-content: center; gap: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.share-btn.tg svg { color: #2AABEE; }
.share-btn.vb svg { color: #7360F2; }
.share-btn.ig svg { color: #E1306C; }
.share-btn.copy svg { color: var(--resin-deep); }
@media (hover: hover) and (pointer: fine) {
  .share-btn.tg:hover { border-color: #2AABEE; background: rgb(42 171 238 / .1); }
  .share-btn.vb:hover { border-color: #7360F2; background: rgb(115 96 242 / .1); }
  .share-btn.ig:hover { border-color: #E1306C; background: rgb(225 48 108 / .08); }
  .share-btn.copy:hover { border-color: var(--resin); background: var(--resin-tint); }
}
.share-btn.copied { border-color: var(--success); color: var(--success); }

/* ---------- Блог ---------- */
.blog-grid { display: grid; gap: 16px; padding-bottom: 48px; }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
@media (min-width: 1024px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }
.blog-card {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); overflow: clip;
  transition: box-shadow var(--t-ui) var(--ease), transform var(--t-ui) var(--ease),
              border-color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); border-color: rgb(43 179 163 / .45); }
}
.blog-card a { color: var(--ink); display: block; }
.blog-card img { aspect-ratio: 1200/630; object-fit: cover; width: 100%; }
.blog-card-body { padding: 14px 16px 16px; }
.blog-cat { font-size: 12.5px; color: var(--resin-deep); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.blog-card h2 { font: 500 17px/1.35 var(--font-body); margin: 6px 0 6px; }
.blog-card p { color: var(--ink-soft); font-size: 14px; margin: 0; }

.blog-article { max-width: 760px; margin-inline: auto; padding-bottom: 32px; }
.blog-article header h1 { font-size: clamp(26px, 4.5vw, 40px); margin: 8px 0 20px; }
.blog-cover { border-radius: var(--radius-l); margin-bottom: 24px; }
.blog-content { font-size: 17px; line-height: 1.75; }
/* якщо в тексті все ж лишився H1 (стара стаття, ручна вставка) — не даємо йому
   розтягтись на пів екрана глобальним стилем h1 */
.blog-content h1 { font-size: clamp(21px, 3.2vw, 28px); margin: 32px 0 12px; }
.blog-content h2 { font-size: clamp(20px, 3vw, 26px); margin: 32px 0 12px; scroll-margin-top: 90px; }
.blog-content h3 { margin: 24px 0 8px; scroll-margin-top: 90px; }

.blog-toc {
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px 20px; margin-bottom: 28px;
}
.blog-toc-title { font: 600 14px var(--font-body); margin-bottom: 8px; }
.blog-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0; columns: 1; }
.blog-toc li { margin: 0; padding: 4px 0; }
.blog-toc li.toc-lvl-3 { padding-left: 18px; font-size: 14px; }
.blog-toc li:not(.toc-lvl-3) { counter-increment: toc; }
.blog-toc li:not(.toc-lvl-3)::before { content: counter(toc) "."; color: var(--resin); font-weight: 600; margin-right: 6px; }
.blog-toc a { color: var(--ink); text-decoration: none; }
.blog-toc a:hover { color: var(--resin); text-decoration: underline; }
@media (min-width: 640px) { .blog-toc ol { columns: 2; column-gap: 24px; } }
.blog-recommend { margin: 36px 0; }
.blog-recommend h2 { font-size: clamp(19px, 3vw, 24px); margin-bottom: 14px; }
.blog-content ul, .blog-content ol { padding-left: 24px; margin-bottom: 1em; }
.blog-content li { margin-bottom: 6px; }
/* Ілюстрації статті: без max-width фото 1400px вилазило за колонку тексту */
.blog-content img {
  display: block; max-width: 100%; height: auto;
  border-radius: var(--radius-m); margin: 24px 0 8px;
}
/* підпис під фото — курсивний абзац одразу після картинки */
.blog-content img + em, .blog-content p > em:only-child {
  display: block; font-size: 14px; color: var(--ink-soft); font-style: normal;
}
/* Таблиці (порівняння, пропорції): на вузькому екрані скролимо, а не ламаємо верстку */
.blog-content table {
  width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15.5px;
  display: block; overflow-x: auto; white-space: nowrap;
}
@media (min-width: 640px) { .blog-content table { display: table; white-space: normal; } }
.blog-content th, .blog-content td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.blog-content th { background: var(--paper-raise); font-weight: 600; }
.blog-content tr:last-child td { border-bottom: 0; }
.blog-content blockquote {
  border-left: 3px solid var(--resin); margin: 0 0 1em; padding: 4px 0 4px 18px;
  color: var(--ink-soft); font-style: italic;
}
.cat-chips .chip-active { border-color: var(--resin); background: var(--resin-tint); color: var(--resin-deep); }


/* рендеримо секції нижче екрана тільки коли доскролили до них */
.section, .site-footer { content-visibility: auto; contain-intrinsic-size: auto 620px; }


/* публічні картки-факти (сторінка «Про нас») */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 8px; }
.stat {
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius-m);
  padding: 16px; display: grid; gap: 4px;
}
.stat b { font: 600 26px var(--font-display); color: var(--resin-deep); }
.stat span { font-size: 13.5px; color: var(--ink-soft); }


/* відстеження */
.tracking-form { display: grid; gap: 4px; max-width: 460px; }
.tracking-status { font: 600 20px var(--font-body); color: var(--resin-deep); margin: 4px 0 14px; }
.hint-note { color: var(--ink-soft); font-size: 13.5px; margin-top: 16px; }

/* ---------- Профіль клієнта ---------- */
.orders-list { display: grid; gap: 10px; }
.order-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper-raise); color: inherit; text-decoration: none;
  transition: border-color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .order-row:hover { border-color: rgb(43 179 163 / .45); }
}
.order-row-main { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.order-row-date { font-size: 13px; color: var(--ink-soft); }
.order-row-status {
  font-size: 13px; font-weight: 500; color: var(--resin-deep);
  background: var(--resin-tint); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.order-row-total { font-weight: 600; white-space: nowrap; }
@media (max-width: 560px) { .order-row { flex-wrap: wrap; } }

/* ---------- Реквізити (оплата за реквізитами) ---------- */
.req-title { margin-bottom: 10px; }
.req-block .contact-list { gap: 8px; }
.req-block .contact-list dt { margin-bottom: 1px; font-size: 12.5px; }
.req-block .contact-list dd { font-size: 15px; }
.req-copy-row {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.req-iban { font-variant-numeric: tabular-nums; letter-spacing: .02em; word-break: break-all; }
.req-copy-btn {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 26px; padding: 4px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper-raise);
  color: var(--resin-deep); font: 500 12px var(--font-body); cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease),
              transform var(--t-fast) var(--ease);
}
.req-copy-btn svg { width: 13px; height: 13px; }
.req-copy-btn:active { transform: scale(.95); }
.req-copy-btn.copied { border-color: var(--success); color: var(--success); }
@media (hover: hover) and (pointer: fine) {
  .req-copy-btn:hover { border-color: var(--resin); background: var(--resin-tint); }
}
.req-note {
  margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-m);
  background: var(--resin-tint); color: var(--resin-deep); font-size: 13.5px; line-height: 1.5;
}
html[data-theme="dark"] .req-note { background: rgb(43 179 163 / .12); }

/* ============================================================
   ПОШУК: панель у шапці, підказки, поле в каталозі й на сторінці результатів
   ============================================================ */

/* Панель відкривається кнопкою-лупою і накриває сторінку — так поле пошуку
   не займає місця в шапці, але зʼявляється по центру, де його очікує око. */
.search-overlay { position: fixed; inset: 0; z-index: 80; }
.search-scrim {
  position: absolute; inset: 0; background: rgb(14 20 32 / .55);
  opacity: 0; transition: opacity var(--t-ui) var(--ease);
}
.search-overlay.open .search-scrim { opacity: 1; }
.search-panel {
  position: relative; max-width: 620px; margin: 12vh auto 0; padding: 0 16px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.search-overlay.open .search-panel { opacity: 1; transform: none; }
@media (max-width: 600px) { .search-panel { margin-top: 8vh; } }

.search-box {
  position: relative;
  display: flex; align-items: center; gap: 8px;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 10px 12px; box-shadow: var(--shadow-2);
}
.search-box:focus-within { border-color: var(--resin); box-shadow: var(--shadow-glow); }
.search-box-icon { display: flex; color: var(--ink-soft); flex: none; }
.search-box input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  /* 16px — щоб iOS не збільшував сторінку при фокусі в поле */
  font: 500 16px var(--font-body); color: var(--ink);
}
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box-clear {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: var(--line); color: var(--ink);
  cursor: pointer;
}
.search-box-close {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: var(--ink-soft); font: 500 14px var(--font-body); padding: 6px 4px;
}
.search-box-close:hover { color: var(--ink); }
@media (max-width: 480px) { .search-box-close { display: none; } }

/* ---------- Випадаючий список підказок ---------- */
.search-suggest {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 2;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); box-shadow: var(--shadow-2);
  max-height: min(58vh, 440px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px;
}
.sg-head {
  padding: 6px 10px 8px; font-size: 11.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
}
.sg-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-s); color: var(--ink);
}
.sg-item:hover, .sg-item.sg-active { background: var(--resin-tint); }
.sg-thumb {
  width: 42px; height: 42px; flex: none; border-radius: 10px; overflow: hidden;
  background: #F1F0EB; display: flex; align-items: center; justify-content: center;
}
.sg-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sg-ico { font-size: 19px; }
.sg-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.sg-name {
  font-weight: 500; font-size: 14.5px; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.sg-name mark { background: transparent; color: var(--resin-deep); font-weight: 700; }
.sg-note { font-size: 12px; color: var(--ink-soft); }
.sg-price {
  flex: none; font-weight: 600; font-size: 14px; white-space: nowrap;
  display: flex; flex-direction: column; align-items: flex-end;
}
.sg-price small { font-weight: 400; font-size: 11px; color: var(--danger); }
.sg-all {
  display: block; margin-top: 4px; padding: 10px; border-radius: var(--radius-s);
  text-align: center; font-weight: 600; font-size: 14px;
  color: var(--resin-deep); background: var(--resin-tint);
}
.sg-all.sg-active, .sg-all:hover { background: var(--resin); color: #fff; }
.sg-empty { padding: 18px 12px; text-align: center; color: var(--ink-soft); font-size: 14px; line-height: 1.6; }

/* ---------- Поле пошуку в каталозі й на сторінці результатів ---------- */
.catalog-search, .search-page-form {
  position: relative; display: flex; align-items: center; gap: 8px;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); padding: 8px 10px 8px 12px;
  max-width: 460px; margin-top: 14px; box-shadow: var(--shadow-1);
}
.search-page-form { max-width: 560px; }
.catalog-search:focus-within, .search-page-form:focus-within {
  border-color: var(--resin); box-shadow: var(--shadow-glow);
}
.catalog-search input, .search-page-form input {
  flex: 1; min-width: 0; border: 0; background: transparent; outline: none;
  font: 500 16px var(--font-body); color: var(--ink);
}
.catalog-search input::-webkit-search-cancel-button,
.search-page-form input::-webkit-search-cancel-button { display: none; }
.catalog-search .search-page-icon, .search-page-form .search-page-icon {
  display: flex; color: var(--ink-soft); flex: none;
}
.search-page-form .btn { flex: none; padding: 9px 18px; }
.search-section-title {
  font: 600 20px/1.2 var(--font-display); margin: 28px 0 14px;
  display: flex; align-items: center; gap: 8px;
}
.search-section-title span {
  font: 500 13px var(--font-body); color: var(--ink-soft);
  background: var(--resin-tint); border-radius: 20px; padding: 3px 10px;
}

/* ---------- Пошук і тема в мобільному меню ---------- */
/* Логотип і перемикач теми — одним рядком угорі панелі: логотип повертає на
   головну, а тема тепер іконка (у вузькій шапці місця під неї немає). */
.mnav-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 14px;
}
.mnav-top .logo { font-size: 16px; gap: 8px; }
.mnav-top .logo-badge { width: 36px; height: 36px; }
.mnav-top .logo-badge img { width: calc(100% - 5px); height: calc(100% - 5px); inset: 2.5px; }
/* Перемикач теми — сама іконка, без рамки: квадрат навколо неї виглядав чужорідно
   поруч із логотипом. Підсвітка зʼявляється лише на дотик/наведення й кругла,
   щоб не малювати той самий квадрат заново. */
.mnav-top .icon-btn {
  width: 38px; height: 38px; flex: none; padding: 0;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--ink-soft);
}
.mnav-top .icon-btn:hover, .mnav-top .icon-btn:active {
  background: var(--resin-tint); color: var(--resin-deep);
}
.mnav-search {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 10px 12px; margin: 2px 0; border: 1px solid var(--line);
  border-radius: var(--radius-s); background: var(--paper-raise);
  color: var(--ink); font: 500 15px var(--font-body); cursor: pointer;
  text-align: left;
}
.mnav-search:active { background: var(--resin-tint); }

/* На вузьких екранах у шапці бракує місця на чотири іконки — тему перемикають
   з мобільного меню (рядок «Змінити тему»), а її місце віддано пошуку. */
@media (max-width: 599px) { .site-header .theme-toggle { display: none; } }

/* «Очистити кошик» — у шапці кошика, поруч із хрестиком: там її шукають і там
   вона не заважає кнопці оформлення. Червона, але приглушена, поки не натиснули. */
.drawer-head-actions { display: flex; align-items: center; gap: 8px; }
.cart-clear {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  padding: 7px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgb(214 69 80 / .3);
  background: rgb(214 69 80 / .09); color: var(--danger);
  font: 600 13px var(--font-body); white-space: nowrap;
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease),
    border-color var(--t-ui) var(--ease);
}
.cart-clear:hover { background: var(--danger); border-color: var(--danger); color: #fff; }
.cart-clear svg { flex: none; }
/* Вікно-попередження «Очистити кошик?»: питання і дві кнопки — «Так» червона,
   «Ні» звичайна. Раніше підтвердження жило смужкою всередині кошика, і було
   незрозуміло, що це питання саме до кнопки. */
.modal-text { color: var(--ink-soft); font-size: 15px; line-height: 1.5; margin: 0 0 18px; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; min-height: 46px; font-size: 15px; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #B93844; }

/* ---------- Підкатегорії під сіткою товарів ---------- */
/* Показуємо їх саме під товарами: людина спершу бачить асортимент розділу,
   а вже потім може звузити пошук до підрозділу. */
.subcats-section { margin-top: 36px; }
.subcats-section h2 { font: 600 20px/1.2 var(--font-display); margin: 0 0 14px; }
.subcat-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
}
.subcat-card {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); color: var(--ink);
  transition: border-color var(--t-ui) var(--ease), transform var(--t-fast) var(--ease),
              box-shadow var(--t-ui) var(--ease);
}
.subcat-card:hover {
  border-color: var(--resin); transform: translateY(-2px); box-shadow: var(--shadow-2);
}
.subcat-photo {
  width: 56px; height: 56px; flex: none; border-radius: 12px; overflow: hidden;
  background: #F1F0EB; display: flex; align-items: center; justify-content: center;
}
.subcat-photo img { width: 100%; height: 100%; object-fit: cover; }
.subcat-ph { font-size: 22px; }
.subcat-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.subcat-name {
  font-weight: 600; font-size: 14.5px; line-height: 1.25;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.subcat-count { font-size: 12.5px; color: var(--ink-soft); }
@media (max-width: 560px) {
  /* на телефоні — в один стовпчик: назви категорій довгі, у два вони обрізаються */
  .subcat-grid { grid-template-columns: 1fr; gap: 10px; }
  .subcat-card { padding: 8px; gap: 9px; }
  .subcat-photo { width: 46px; height: 46px; }
  .subcat-name { font-size: 13.5px; }
}
/* підкатегорія без товарів: видно, що розділ є, але клікати нікуди */
.subcat-card.is-empty { opacity: .65; cursor: default; }
.subcat-card.is-empty:hover { border-color: var(--line); transform: none; box-shadow: none; }
.subcat-card.is-empty .subcat-count { color: var(--amber-deep); font-weight: 500; }

/* ---------- Дерево категорій у мобільному меню ---------- */
/* Той самий принцип, що на десктопі: назва — посилання, стрілочка лише розкриває.
   Кнопка велика (38px), щоб упевнено влучати пальцем. */
.mnav-row { display: flex; align-items: center; gap: 4px; }
.mnav-row > a { flex: 1; min-width: 0; }
.mnav-toggle {
  flex: none; width: 38px; height: 38px; padding: 0; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--ink-soft); border-radius: 50%;
  transition: background-color var(--t-fast) var(--ease), transform var(--t-ui) var(--ease);
}
.mnav-toggle:active { background: var(--resin-tint); color: var(--resin-deep); }
.mnav-toggle[aria-expanded="true"] { transform: rotate(180deg); color: var(--resin-deep); }
.mnav-kids {
  margin: 0 0 4px 14px; padding-left: 10px;
  border-left: 1.5px solid var(--line);
}
.mobile-nav .panel .mnav-node.lvl-2 > .mnav-row > a { font-size: 14.5px; color: var(--ink-soft); }
.mobile-nav .panel .mnav-node.lvl-3 > .mnav-row > a { font-size: 14px; color: var(--ink-soft); opacity: .9; }

/* Статуси наявності: «в дорозі» і «під замовлення» — бурштинові, щоб покупець
   одразу бачив різницю з «уже є», але не сприймав як «немає». */
.badge-stock.st-incoming, .badge-stock.st-preorder {
  background: rgb(224 164 88 / .16); color: var(--amber-deep);
}
.badge-stock.st-incoming::before, .badge-stock.st-preorder::before { background: var(--amber); }
.badge-stock.st-out { background: var(--line); color: var(--ink-soft); }
.badge-stock.st-out::before { background: var(--ink-soft); opacity: .55; }
.stock-badge.st-incoming, .stock-badge.st-preorder {
  background: rgb(224 164 88 / .18); color: var(--amber-deep);
}
.stock-badge.st-out { background: #F3EFEA; color: var(--ink-soft); }

/* «Акції» і «Новинки» стоять першими в каталозі — і виділені кольором, щоб око
   чіплялось саме за них. */
.dd-node.is-promo > .dd-row > a,
.mnav-node.is-promo > .mnav-row > a,
.footer-cat-cols a.promo {
  color: var(--resin-deep); font-weight: 600;
}
.site-header.on-dark .main-nav .dd-node.is-promo > .dd-row > a,
html[data-theme="dark"] .main-nav .dd-node.is-promo > .dd-row > a { color: var(--resin); }
.footer-cat-cols a.promo { color: var(--resin); }

@media (max-width: 700px) {
  /* Підвал на телефоні: два стовпчики лишаються (так список коротший за екран),
     але не сіткою, а колонками. У grid рядок має висоту найвищого елемента:
     довга назва праворуч («СПЛИВАЮЧІ пігменти/чорнила») переносилась на два
     рядки й розтягувала сусіда ліворуч — під коротким пунктом зʼявлялась діра
     майже в рядок. У колонках кожен пункт займає рівно свою висоту. */
  .footer-cat-cols {
    display: block; columns: 2; column-gap: 14px;
  }
  .footer-cat-cols a {
    display: block; break-inside: avoid;
    padding: 3px 0; font-size: 13.5px; line-height: 1.35;
  }
  .site-footer h3 { margin-bottom: 6px; }
}

/* ---------- Промокод в оформленні ---------- */
.promo-box { margin: 10px 0 4px; }
.promo-row { display: flex; gap: 8px; align-items: stretch; margin: 0; }
.promo-input {
  flex: 1; min-width: 0; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface);
  font: inherit; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  transition: border-color var(--t-ui) var(--ease);
}
.promo-input:focus { outline: none; border-color: var(--resin); }
.promo-input::placeholder { text-transform: none; letter-spacing: normal; }
.promo-apply {
  padding: 10px 15px; border-radius: 12px; white-space: nowrap;
  border: 1px solid var(--line); background: var(--surface-2, transparent);
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: border-color var(--t-ui) var(--ease), background-color var(--t-ui) var(--ease);
}
.promo-apply:hover { border-color: var(--resin); color: var(--resin-deep); }
.promo-applied {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 9px 12px; border-radius: 12px;
  background: rgb(43 179 163 / .1); border: 1px dashed var(--resin);
}
.promo-tag { font-weight: 700; letter-spacing: .04em; }
.promo-val { color: var(--resin-deep); font-weight: 600; }
.promo-drop {
  margin-left: auto; width: 26px; height: 26px; border-radius: 50%;
  border: none; background: rgb(0 0 0 / .07); color: inherit;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.promo-drop:hover { background: rgb(0 0 0 / .14); }
.promo-error { margin: 7px 0 0; font-size: 13px; color: var(--danger, #c0392b); }
.summary-sub { color: var(--muted); font-size: 13.5px; }
.summary-discount { color: var(--resin-deep); font-weight: 600; }
.summary-discount em { font-style: normal; opacity: .8; }

/* Банер «промокод застосовано» після переходу за посиланням-знижкою */
.promo-banner {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 0 0 18px; padding: 12px 16px; border-radius: 14px;
  background: rgb(43 179 163 / .12); border: 1px dashed var(--resin);
  font-size: 14.5px;
}
.promo-banner.is-err { background: rgb(192 57 43 / .1); border-color: rgb(192 57 43 / .5); }
.promo-banner b { letter-spacing: .04em; }

/* ---------- Відгуки з Instagram ---------- */

.igr-handle {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 15px; white-space: nowrap; text-decoration: none;
}
.igr-handle svg { flex: none; display: block; }

.igr-list { --igr-card: 260px; }

/* Головна: карусель — стрілки на ПК, свайп на телефоні. Багато відгуків не розтягують сторінку */
.igr-carousel { position: relative; }
.igr-rail {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  /* тінь картки не зрізається краєм смуги прокрутки */
  padding: 4px 4px 14px; margin: -4px -4px 0;
  scrollbar-width: none; overscroll-behavior-x: contain;
}
.igr-rail::-webkit-scrollbar { display: none; }   /* гортаємо стрілками і свайпом */
.igr-rail:focus-visible { outline: 2px solid var(--resin); outline-offset: 4px; border-radius: var(--radius-m); }
.igr-rail > .igr-card { flex: none; width: var(--igr-card); scroll-snap-align: start; }

.igr-arrow {
  position: absolute; top: 42%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--paper-raise); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-2);
  transition: background var(--t-ui) var(--ease), transform var(--t-ui) var(--ease);
}
.igr-arrow[hidden] { display: none; }   /* без цього display:grid переважив би hidden */
.igr-arrow-prev { left: -14px; }
.igr-arrow-next { right: -14px; }
@media (hover: hover) and (pointer: fine) {
  .igr-arrow:hover { background: var(--resin-tint); transform: translateY(-50%) scale(1.06); }
}
.igr-all { margin: 18px 0 0; text-align: center; }

/* Сторінка /reviews/: рівна сітка. Саме сітка, а не columns — у колонках картки
   різної висоти й ряди виглядають рваними, тут же всі однакового розміру */
.igr-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.igr-grid > .igr-card { width: auto; margin: 0; }

.igr-card {
  background: var(--paper-raise); border: 1px solid var(--line);
  border-radius: var(--radius-m); overflow: hidden; box-shadow: var(--shadow-1);
  margin: 0; display: flex; flex-direction: column;
  transition: transform var(--t-ui, .2s) var(--ease, ease), box-shadow var(--t-ui, .2s) var(--ease, ease);
}
@media (hover: hover) and (pointer: fine) {
  .igr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
}

.igr-shot {
  display: block; position: relative; width: 100%; padding: 0; border: 0;
  background: var(--resin-tint); cursor: zoom-in; line-height: 0;
}
.igr-shot img { width: 100%; height: auto; display: block; }
/* Усі скріншоти одного розміру — інакше ряд виглядає рваним. Обрізаємо знизу:
   у скріншотах Direct та Stories головне завжди вгорі. Повний кадр — у лайтбоксі. */
.igr-list .igr-shot img { aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.igr-list .igr-shot-wide img { object-fit: contain; object-position: center; }

.igr-zoom {
  position: absolute; right: 8px; bottom: 8px;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgb(14 20 32 / .55); color: #fff;
  backdrop-filter: blur(4px);
}
@media (hover: hover) and (pointer: fine) {
  .igr-zoom { opacity: 0; transition: opacity var(--t-ui, .2s) var(--ease, ease); }
  .igr-shot:hover .igr-zoom, .igr-shot:focus-visible .igr-zoom { opacity: 1; }
}

.igr-card figcaption { padding: 11px 13px 13px; display: grid; gap: 5px; flex: 1; align-content: start; }
/* Один довгий відгук не має розтягувати всю картку — за нею тягнеться весь ряд.
   Повний текст лишається в самому Instagram, за посиланням під відгуком. */
.igr-card figcaption p {
  margin: 0; font-size: 14.5px; line-height: 1.5;
  display: -webkit-box; -webkit-box-orient: vertical;
  -webkit-line-clamp: 6; line-clamp: 6; overflow: hidden;
}
.igr-card .stars-amber { font-size: 14px; letter-spacing: 1px; }
.igr-author { font-size: 13px; color: var(--resin-deep); font-weight: 500; }
.igr-meta {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px;
  font-size: 12.5px; color: var(--ink-soft);
}
.igr-meta a { font-size: 12.5px; }

/* Відгук без скріншота — цитата, щоб текстові картки не губились серед фото */
.igr-card-text figcaption { padding: 18px 16px 16px; position: relative; }
.igr-card-text figcaption::before {
  content: "“"; position: absolute; top: -6px; left: 12px;
  font-family: var(--font-display, inherit); font-size: 44px; line-height: 1;
  color: var(--resin); opacity: .25;
}
.igr-card-text figcaption p { font-size: 15px; -webkit-line-clamp: 12; line-clamp: 12; }
/* Картки однакової висоти: без цього текст висів би вгорі,
   а під ним лишалась порожнеча заввишки зі скріншот сусідньої картки */
.igr-list .igr-card-text { justify-content: center; background: var(--resin-tint); }
.igr-list .igr-card-text figcaption { align-content: center; }

@media (max-width: 1100px) { .igr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .igr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  /* На дотику гортають пальцем — стрілки лише забирали б місце в картки */
  .igr-arrow { display: none; }
}
@media (max-width: 640px) {
  /* Картка вужча за екран: край наступної визирає збоку — видно, що можна гортати */
  .igr-list { --igr-card: 78vw; }
  .igr-grid { gap: 12px; }
  .igr-handle { font-size: 14px; }
  .igr-section .section-head { flex-wrap: wrap; gap: 6px 12px; }
  .igr-card figcaption { padding: 10px 12px 12px; }
  .igr-card figcaption p { font-size: 14px; }
}
