/* ============================================================
   ProInstrument.ua — Premium light design system
   Inspired by le-perle.com.ua, adapted for tools & home goods
   ============================================================ */

:root {
  /* Кольори — світла преміум-палітра */
  --c-bg: #ffffff;
  --c-bg-soft: #faf8f5;
  --c-bg-cream: #f5f1ea;
  --c-text: #161616;
  --c-text-muted: #6b6b6b;
  --c-text-soft: #8a8a8a;
  --c-border: #ebe7e0;
  --c-border-soft: #f0ece6;

  /* Бренд-акцент — теплий індустріальний охра */
  --c-accent: #b8864a;
  --c-accent-dark: #8e6431;
  --c-accent-soft: #f7eedb;

  /* Системні */
  --c-success: #2e7d32;
  --c-danger: #b8003f;
  --c-price: #161616;
  --c-price-old: #a0a0a0;
  --c-badge-bg: #161616;
  --c-badge-text: #ffffff;
  --c-badge-sale: #1a1a1a;

  /* Типографіка */
  --font-sans: "Manrope", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Manrope", "Inter", system-ui, sans-serif;

  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: 22px;
  --fs-h3: clamp(20px, 2.4vw, 24px);
  --fs-h2: clamp(24px, 3vw, 32px);
  --fs-h1: clamp(28px, 4.2vw, 44px);
  --fs-hero: clamp(32px, 5.5vw, 56px);

  --lh-tight: 1.15;
  --lh-snug: 1.3;
  --lh-base: 1.55;
  --lh-loose: 1.7;

  --ls-heading: -0.01em;
  --ls-button: 0.06em;
  --ls-eyebrow: 0.14em;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  /* Layout */
  --container-max: 1320px;
  --container-pad: clamp(16px, 4vw, 40px);
  --section-py: clamp(56px, 8vw, 96px);
  --section-py-sm: clamp(32px, 5vw, 56px);
  --grid-gap: 24px;

  /* Радіуси */
  --r-xs: 2px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;

  /* Тіні */
  --sh-card: 0 1px 2px rgba(20, 20, 20, 0.03);
  --sh-card-hover: 0 8px 28px rgba(20, 20, 20, 0.08);
  --sh-elev: 0 10px 30px rgba(20, 20, 20, 0.12);

  /* Анімації */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 160ms;
  --t-base: 240ms;
  --t-slow: 380ms;

  /* z-indexes */
  --z-header: 100;
  --z-modal: 200;
  --z-toast: 300;
}

/* ============================================================
   Reset / Base
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { -webkit-tap-highlight-color: rgba(184, 134, 74, 0.15); }

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;               /* запобігаємо горизонтальному скролу */
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;               /* двійний захист від overflow */
  min-width: 320px;
}

body.menu-open { overflow: hidden; }

img, video, svg { max-width: 100%; height: auto; display: block; }
img { font-style: italic; background: var(--c-bg-soft); }

a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
a:hover { color: var(--c-accent); }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: var(--fw-semibold);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  color: var(--c-text);
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); font-weight: var(--fw-medium); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
ul li, ol li { margin: 0.3em 0; }

button { font-family: inherit; cursor: pointer; }

input, textarea, select {
  font-family: inherit;
  font-size: 16px;                  /* 16px — щоб iOS Safari не зумив сторінку при фокусі */
  color: var(--c-text);
}
@media (min-width: 768px) {
  input, textarea, select { font-size: var(--fs-base); }
}

::selection { background: var(--c-accent); color: #fff; }

.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;
}

/* ============================================================
   Layout primitives
   ============================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

img { max-width: 100%; height: auto; }
img[loading=lazy] { content-visibility: auto; }
.no-scroll { overflow: hidden !important; }

/* prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.section { padding-block: var(--section-py); }
.section--sm { padding-block: var(--section-py-sm); }
.section--soft { background: var(--c-bg-soft); }
.section--cream { background: var(--c-bg-cream); }

.section-head { text-align: center; margin-bottom: clamp(28px, 4vw, 56px); }
.section-head .eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
}
.section-head h2 { margin: 0 auto 12px; max-width: 800px; }
.section-head p { color: var(--c-text-muted); max-width: 640px; margin: 0 auto; }

.grid { display: grid; gap: var(--grid-gap); }
.grid > * { min-width: 0; }       /* запобігаємо overflow від grid items з широким контентом */
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

@media (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .grid-4, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .grid-4, .grid-3 { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Topbar
   ============================================================ */

.topbar {
  background: var(--c-text);
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: 0.04em;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 36px;
  padding-block: 7px;
}
.topbar a { color: #fff; }
.topbar a:hover { color: var(--c-accent); }
.topbar__left, .topbar__right { display: flex; align-items: center; gap: 20px; }
.topbar__phone { font-weight: var(--fw-semibold); }
.topbar__info { color: rgba(255,255,255,0.7); }

@media (max-width: 720px) {
  .topbar__info { display: none; }
  .topbar .container { justify-content: center; }
}

/* ============================================================
   Header
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-border);
}
.header__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
@media (min-width: 768px) { .header__inner { min-height: 72px; gap: 24px; } }

.header__logo {
  font-family: var(--font-display);
  font-weight: var(--fw-bold);
  font-size: clamp(17px, 2.4vw, 22px);
  letter-spacing: -0.02em;
  color: var(--c-text);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
@media (max-width: 480px) {
  .header__logo-text small { display: none; }
}
.header__logo:hover { color: var(--c-accent); }
.header__logo-mark {
  display: inline-flex;
  width: 36px; height: 36px;
  background: var(--c-text);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  border-radius: var(--r-sm);
}
.header__logo-text small {
  display: block;
  font-size: 10px;
  letter-spacing: var(--ls-eyebrow);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
}
.nav a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  letter-spacing: 0.02em;
  color: var(--c-text);
  padding: 8px 0;
  position: relative;
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--c-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base) var(--ease);
}
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; }
.header__icon-btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  color: var(--c-text);
  border-radius: var(--r-sm);
  transition: background var(--t-fast) var(--ease);
}
.header__icon-btn:hover { background: var(--c-bg-soft); }
.header__icon-btn svg { width: 20px; height: 20px; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  width: 40px; height: 40px;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: var(--c-text);
  transition: all var(--t-base) var(--ease);
}
.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }
body.menu-open .menu-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 960px) {
  .header__inner { grid-template-columns: auto 1fr auto; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--c-bg);
    flex-direction: column;
    justify-content: flex-start;
    padding: 100px var(--container-pad) 32px;
    gap: 0;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--t-base) var(--ease);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav a {
    width: 100%;
    padding: 16px 0;
    font-size: 18px;
    border-bottom: 1px solid var(--c-border-soft);
  }
  body.menu-open .nav { opacity: 1; pointer-events: auto; }
}

/* ============================================================
   Search overlay
   ============================================================ */

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.5);
  z-index: var(--z-modal);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base) var(--ease);
}
.search-overlay.is-open { opacity: 1; pointer-events: auto; }
.search-overlay__box {
  background: var(--c-bg);
  max-width: 720px;
  margin: clamp(40px, 8vw, 80px) auto 0;
  padding: clamp(20px, 4vw, 32px);
  border-radius: var(--r-md);
  box-shadow: var(--sh-elev);
}
@media (max-width: 760px) {
  .search-overlay__box {
    margin: 16px;
    max-width: calc(100vw - 32px);
  }
  .search-overlay__input { font-size: 18px; }
}
.search-overlay__input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--c-text);
  padding: 12px 0 16px;
  font-size: 24px;
  font-weight: var(--fw-medium);
  outline: none;
  background: transparent;
}
.search-overlay__results { margin-top: 24px; max-height: 60vh; overflow-y: auto; }
.search-overlay__item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 16px;
  padding: 12px 4px;
  border-radius: var(--r-sm);
  align-items: center;
  border-bottom: 1px solid var(--c-border-soft);
}
.search-overlay__item:hover { background: var(--c-bg-soft); }
.search-overlay__item img { width: 64px; height: 64px; object-fit: contain; }
.search-overlay__item-title { font-weight: var(--fw-medium); }
.search-overlay__item-meta { font-size: var(--fs-xs); color: var(--c-text-muted); }
.search-overlay__item-price { font-weight: var(--fw-semibold); }
.search-overlay__empty { padding: 24px 0; color: var(--c-text-muted); text-align: center; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-button);
  text-transform: uppercase;
  background: var(--c-text);
  color: #fff;
  border: 1px solid var(--c-text);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: all var(--t-base) var(--ease);
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;                 /* touch target */
  line-height: 1.2;
  text-align: center;
}
.btn--full { white-space: normal; }   /* дозволяємо перенос у форм-кнопках */
.btn:hover {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--sh-elev);
}
.btn--ghost {
  background: transparent;
  color: var(--c-text);
}
.btn--ghost:hover { background: var(--c-text); color: #fff; transform: none; }
.btn--accent {
  background: var(--c-accent);
  border-color: var(--c-accent);
}
.btn--accent:hover { background: var(--c-accent-dark); border-color: var(--c-accent-dark); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-md); }
.btn--full { width: 100%; }
.btn--icon { padding: 14px; aspect-ratio: 1; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 96px);
  background: linear-gradient(135deg, var(--c-bg-soft) 0%, var(--c-bg-cream) 100%);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  color: var(--c-accent);
  margin-bottom: 18px;
}
.hero__eyebrow::before {
  content: ""; width: 24px; height: 1px; background: var(--c-accent);
}
.hero h1 {
  font-size: var(--fs-hero);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 20px;
}
.hero p.lead {
  font-size: var(--fs-lg);
  color: var(--c-text-muted);
  max-width: 520px;
  margin-bottom: 32px;
}
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__media {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--c-bg);
  box-shadow: var(--sh-elev);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__stats {
  display: flex; gap: clamp(16px, 4vw, 32px);
  flex-wrap: wrap;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid var(--c-border);
}
.hero__stat strong {
  display: block;
  font-size: clamp(22px, 4vw, 28px);
  font-weight: var(--fw-bold);
  color: var(--c-text);
}
.hero__stat span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .hero__media { order: -1; aspect-ratio: 16/10; }
}
@media (max-width: 480px) {
  .hero { padding-block: 32px 48px; }
  .hero p.lead { font-size: var(--fs-md); }
  .hero__cta { width: 100%; }
  .hero__cta .btn { flex: 1; min-width: 0; padding: 14px 16px; }
  .hero__stats { gap: 14px; margin-top: 28px; padding-top: 24px; }
  .hero__stat { flex: 1 1 30%; min-width: 0; }
}

/* ============================================================
   USP / Trust strip
   ============================================================ */

.trust-strip {
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-bg);
}
.trust-strip__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-block: 24px;
}
.trust-strip__item {
  display: flex;
  gap: 14px;
  padding: 8px 16px;
  border-right: 1px solid var(--c-border-soft);
  align-items: center;
}
.trust-strip__item:last-child { border-right: none; }
.trust-strip__icon {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--c-accent);
  background: var(--c-accent-soft);
  border-radius: var(--r-sm);
  flex-shrink: 0;
}
.trust-strip__icon svg { width: 20px; height: 20px; }
.trust-strip__text strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}
.trust-strip__text span {
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
}
@media (max-width: 900px) {
  .trust-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust-strip__item { border-right: none; }
}

/* ============================================================
   Categories
   ============================================================ */

.category-grid { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) { .category-grid { grid-template-columns: 1fr; gap: 14px; } }
.category-card {
  position: relative;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: block;
  transition: transform var(--t-base) var(--ease);
}
.category-card:hover { transform: translateY(-4px); }
.category-card__bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.6;
  transition: opacity var(--t-base) var(--ease), transform var(--t-slow) var(--ease);
}
.category-card:hover .category-card__bg { opacity: 0.9; transform: scale(1.05); }
.category-card__content {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  background: linear-gradient(180deg, rgba(20,20,20,0) 30%, rgba(20,20,20,0.7) 100%);
  color: #fff;
}
.category-card h3 { color: #fff; margin: 0 0 4px; }
.category-card span {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  opacity: 0.85;
}
/* ============================================================
   Product card
   ============================================================ */

.product-card {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--t-base) var(--ease);
  min-width: 0;
  width: 100%;
}
.product-card:hover {
  border-color: var(--c-border);
  box-shadow: var(--sh-card-hover);
  transform: translateY(-3px);
}
.product-card__media {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: var(--c-bg-soft);
}
.product-card__media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 18px;
  transition: transform var(--t-slow) var(--ease);
}
.product-card:hover .product-card__media img { transform: scale(1.04); }
.product-card__badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--c-badge-bg);
  color: var(--c-badge-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  padding: 5px 9px;
  border-radius: var(--r-xs);
}
.product-card__body { padding: 16px 16px 20px; display: flex; flex-direction: column; flex: 1; min-width: 0; }
@media (min-width: 640px) { .product-card__body { padding: 18px 20px 22px; } }
.product-card__category {
  font-size: 11px;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-soft);
  margin-bottom: 6px;
}
.product-card__title {
  font-size: clamp(14px, 1.5vw, var(--fs-md));
  font-weight: var(--fw-medium);
  line-height: 1.35;
  margin: 0 0 14px;
  color: var(--c-text);
  flex: 1;
  word-break: break-word;
  overflow-wrap: anywhere;
}
.product-card__price-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-bottom: 14px;
}
.product-card__price-new {
  font-size: clamp(17px, 2.2vw, var(--fs-xl));
  font-weight: var(--fw-bold);
  color: var(--c-price);
  letter-spacing: -0.01em;
}
.product-card__price-new small { font-size: 14px; font-weight: var(--fw-medium); }
.product-card__price-old {
  font-size: var(--fs-sm);
  color: var(--c-price-old);
  text-decoration: line-through;
}
.product-card .btn { width: 100%; padding-left: 8px; padding-right: 8px; }
@media (max-width: 480px) {
  .product-card .btn { font-size: 11px; padding: 12px 8px; letter-spacing: 0.04em; }
}

/* ============================================================
   Filters
   ============================================================ */

.catalog-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 40px;
}
.catalog-wrap > * { min-width: 0; }
.catalog-sidebar { position: sticky; top: 100px; align-self: start; }
.catalog-sidebar h4 {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-text-muted);
  margin-bottom: 14px;
  font-weight: var(--fw-semibold);
}
.filter-list { list-style: none; padding: 0; margin: 0 0 28px; }
.filter-list li { margin: 0; }
.filter-list button {
  display: flex;
  width: 100%;
  padding: 8px 0;
  background: none; border: none;
  font-size: var(--fs-sm);
  text-align: left;
  color: var(--c-text);
  font-weight: var(--fw-medium);
  letter-spacing: 0.01em;
  transition: color var(--t-fast) var(--ease);
  justify-content: space-between;
  cursor: pointer;
}
.filter-list button:hover, .filter-list button.is-active { color: var(--c-accent); }
.filter-list button span.count { color: var(--c-text-soft); font-size: var(--fs-xs); }

.catalog-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.catalog-toolbar__count { font-size: var(--fs-sm); color: var(--c-text-muted); }
.catalog-toolbar select {
  border: 1px solid var(--c-border);
  background: #fff;
  padding: 10px 32px 10px 14px;
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

@media (max-width: 900px) {
  .catalog-wrap { grid-template-columns: minmax(0, 1fr); }
  .catalog-sidebar { position: static; }
  .filter-list { display: flex; gap: 8px; overflow-x: auto; margin: -4px -4px 24px; padding: 4px; }
  .filter-list li { flex-shrink: 0; }
  .filter-list button {
    padding: 8px 16px;
    border: 1px solid var(--c-border);
    border-radius: var(--r-pill);
  }
  .filter-list button.is-active { background: var(--c-text); color: #fff; border-color: var(--c-text); }
}

/* ============================================================
   Breadcrumb
   ============================================================ */

.crumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: var(--fs-xs);
  color: var(--c-text-muted);
  letter-spacing: 0.02em;
  margin-block: 18px 16px;
  line-height: 1.4;
}
@media (max-width: 480px) {
  .crumb { font-size: 11px; gap: 6px; }
}
.crumb a { color: var(--c-text-muted); }
.crumb a:hover { color: var(--c-accent); }
.crumb__sep { opacity: 0.5; }
.crumb__current { color: var(--c-text); font-weight: var(--fw-medium); }

/* ============================================================
   Product page (landing)
   ============================================================ */

.pdp-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  padding-block: 24px clamp(40px, 8vw, 72px);
}
.pdp-gallery { position: sticky; top: 100px; align-self: start; }
.pdp-gallery__main {
  aspect-ratio: 1/1;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-bottom: 14px;
  position: relative;
}
.pdp-gallery__main img { width: 100%; height: 100%; object-fit: contain; padding: 32px; }
.pdp-gallery__badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--c-badge-bg); color: #fff;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 6px 10px;
  border-radius: var(--r-xs);
  letter-spacing: 0.04em;
}
.pdp-gallery__thumbs {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px;
}
@media (max-width: 380px) {
  .pdp-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
  .pdp-gallery__thumb:nth-child(5) { display: none; }
}
.pdp-gallery__thumb {
  aspect-ratio: 1/1;
  background: var(--c-bg-soft);
  border-radius: var(--r-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color var(--t-fast) var(--ease);
}
.pdp-gallery__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.pdp-gallery__thumb.is-active { border-color: var(--c-text); }

.pdp-info__eyebrow {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--c-accent);
  font-weight: var(--fw-semibold);
  margin-bottom: 12px;
}
.pdp-info h1 {
  font-size: clamp(28px, 3.8vw, 42px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.pdp-rating {
  display: flex; align-items: center; gap: 8px;
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: 20px;
}
.pdp-rating__stars { color: #e8b500; letter-spacing: 1px; font-size: 16px; }

.pdp-price-card {
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
  padding: 24px 28px;
  margin-bottom: 24px;
}
.pdp-price-card__row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px 14px;
  margin-bottom: 6px;
}
.pdp-price-new {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: var(--fw-bold);
  color: var(--c-text);
  letter-spacing: -0.02em;
  line-height: 1;
}
.pdp-price-new small { font-size: 60%; font-weight: var(--fw-medium); }
.pdp-price-old {
  font-size: var(--fs-lg);
  text-decoration: line-through;
  color: var(--c-price-old);
}
.pdp-discount-badge {
  display: inline-block;
  background: var(--c-text);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  padding: 4px 8px;
  border-radius: var(--r-xs);
  margin-left: 4px;
}
.pdp-price-card__note {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-top: 8px;
}
.pdp-price-card__note strong { color: var(--c-success); }

.pdp-summary {
  font-size: var(--fs-md);
  color: var(--c-text-muted);
  line-height: 1.6;
  margin-bottom: 28px;
}

.pdp-benefits {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 22px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--c-bg-soft);
  border-radius: var(--r-md);
}
.pdp-benefits li {
  margin: 0;
  padding-left: 28px;
  position: relative;
  font-size: var(--fs-sm);
  line-height: 1.4;
}
.pdp-benefits li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 18px; height: 18px;
  background: var(--c-accent-soft) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8864a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'></polyline></svg>") center / 12px no-repeat;
  border-radius: 50%;
}
@media (max-width: 720px) {
  .pdp-benefits { grid-template-columns: 1fr; }
}

.pdp-form-card {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--c-bg);
}
.pdp-form-card h3 {
  font-size: var(--fs-lg);
  margin: 0 0 6px;
  font-weight: var(--fw-semibold);
}
.pdp-form-card p {
  font-size: var(--fs-sm);
  color: var(--c-text-muted);
  margin-bottom: 18px;
}
.lead-form { display: grid; gap: 12px; }
.lead-form .field,
.catalog-search {
  width: 100%;
  border: 1px solid var(--c-border);
  background: #fff;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  font-size: 16px;                  /* 16px на mobile щоб iOS не зумив; не зменшуємо */
  outline: none;
  transition: border-color var(--t-fast) var(--ease);
}
.lead-form .field:focus,
.catalog-search:focus { border-color: var(--c-text); }
@media (min-width: 768px) {
  .lead-form .field, .catalog-search { font-size: var(--fs-md); }
}
.lead-form .field--hp { display: none !important; }
.lead-form button { margin-top: 6px; }
.lead-form__note {
  font-size: 12px;
  color: var(--c-text-soft);
  margin-top: 4px;
}
.lead-form__note a { color: var(--c-accent); }

.pdp-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 480px) {
  .pdp-meta { grid-template-columns: 1fr; gap: 8px; }
}
.pdp-meta__item {
  display: flex; align-items: center; gap: 10px;
  padding: 12px;
  background: var(--c-bg-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-xs);
  line-height: 1.3;
}
.pdp-meta__item svg { width: 20px; height: 20px; color: var(--c-accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .pdp-hero { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
}

/* PDP content blocks */

.pdp-section { padding-block: clamp(48px, 6vw, 72px); }
.pdp-section--soft { background: var(--c-bg-soft); }

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 960px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: 28px;
  transition: all var(--t-base) var(--ease);
}
.feature-card:hover { border-color: var(--c-border); box-shadow: var(--sh-card-hover); }
.feature-card__icon {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-accent-soft); color: var(--c-accent);
  border-radius: var(--r-sm);
  margin-bottom: 16px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: var(--fs-lg); margin: 0 0 8px; font-weight: var(--fw-semibold); }
.feature-card p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
@media (max-width: 720px) { .feature-grid { grid-template-columns: 1fr; } }

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--c-border);
}
.spec-table tr { border-bottom: 1px solid var(--c-border-soft); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table tr:nth-child(even) { background: var(--c-bg-soft); }
.spec-table td {
  padding: 14px 20px;
  font-size: var(--fs-sm);
  vertical-align: top;
}
.spec-table td:first-child {
  color: var(--c-text-muted);
  font-weight: var(--fw-medium);
  width: 45%;
}
.spec-table td:last-child {
  color: var(--c-text);
  font-weight: var(--fw-semibold);
}
@media (max-width: 480px) {
  .spec-table td { padding: 10px 12px; font-size: 13px; }
  .spec-table td:first-child { width: 50%; }
}

.kit-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}
.kit-list li {
  display: flex; gap: 10px;
  padding: 10px 14px;
  background: var(--c-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-sm);
  font-size: var(--fs-sm);
  align-items: center;
}
.kit-list li::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--c-accent);
  border-radius: 50%;
  flex-shrink: 0;
}
@media (max-width: 720px) { .kit-list { grid-template-columns: 1fr; } }

.gallery-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
.gallery-grid img {
  width: 100%; aspect-ratio: 1/1; object-fit: cover;
  border-radius: var(--r-md);
  background: var(--c-bg-soft);
}
@media (max-width: 720px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }

.reviews-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px;
}
@media (max-width: 960px) { .reviews-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-card {
  background: var(--c-bg);
  border: 1px solid var(--c-border-soft);
  border-radius: var(--r-md);
  padding: 24px;
}
.review-card__head { display: flex; gap: 14px; margin-bottom: 14px; align-items: center; }
.review-card__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c-accent-soft) center/cover no-repeat;
  flex-shrink: 0;
}
.review-card__name { font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.review-card__stars { color: #e8b500; font-size: 14px; letter-spacing: 1px; }
.review-card__text { font-size: var(--fs-sm); color: var(--c-text-muted); line-height: 1.55; margin: 0; }
@media (max-width: 720px) { .reviews-grid { grid-template-columns: 1fr; } }

.steps-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 32px;
}
@media (max-width: 960px) { .steps-row { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (max-width: 380px) { .steps-row { grid-template-columns: 1fr; } }
.step-item { text-align: center; }
.step-item__num {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: var(--c-text); color: #fff;
  border-radius: 50%;
  font-weight: var(--fw-bold);
  margin-bottom: 14px;
}
.step-item h4 { font-size: var(--fs-md); margin: 0 0 6px; }
.step-item p { font-size: var(--fs-sm); color: var(--c-text-muted); margin: 0; }
@media (max-width: 720px) { .steps-row { grid-template-columns: repeat(2, 1fr); } }

.cta-band {
  background: linear-gradient(135deg, var(--c-text) 0%, #2b2b2b 100%);
  color: #fff;
  border-radius: var(--r-md);
  padding: clamp(28px, 6vw, 64px) clamp(20px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band .btn { white-space: normal; }
@media (max-width: 480px) {
  .cta-band .btn { font-size: 13px; padding: 14px 16px; width: 100%; }
}
.cta-band h2 { color: #fff; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,0.75); max-width: 540px; margin: 0 auto 24px; }
.cta-band .btn { background: var(--c-accent); border-color: var(--c-accent); }
.cta-band .btn:hover { background: #fff; color: var(--c-text); border-color: #fff; }

/* FAQ */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--c-border);
  padding: 18px 0;
}
.faq-item__q {
  display: flex; justify-content: space-between;
  align-items: center; gap: 16px;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-md);
  background: none; border: none; width: 100%;
  text-align: left; padding: 0;
  color: var(--c-text);
}
.faq-item__q::after {
  content: "+";
  font-size: 22px; line-height: 1;
  color: var(--c-text-muted);
  transition: transform var(--t-base) var(--ease);
  flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after { content: "−"; }
.faq-item__a { padding: 14px 0 4px; color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.6; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: #161616;
  color: rgba(255,255,255,0.7);
  padding-block: 56px 28px;
  font-size: var(--fs-sm);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__brand h3 {
  color: #fff;
  font-size: 22px;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.footer__brand p { max-width: 360px; line-height: 1.6; }
.footer h4 {
  color: #fff;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  font-weight: var(--fw-semibold);
  margin-bottom: 18px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin: 8px 0; }
.footer a { color: rgba(255,255,255,0.7); }
.footer a:hover { color: var(--c-accent); }
.footer__contact { display: grid; gap: 8px; }
.footer__contact a { color: #fff; font-weight: var(--fw-semibold); }
.footer__bottom {
  margin-top: 28px;
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,0.5);
}
.footer__pay { display: flex; gap: 8px; align-items: center; }
.footer__pay span {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--r-xs);
  font-size: 11px;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
}

@media (max-width: 900px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer__top { grid-template-columns: 1fr; }
}

/* ============================================================
   Toast (form result)
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  top: 24px;
  transform: translateX(-50%) translateY(-120%);
  background: var(--c-text);
  color: #fff;
  padding: 14px 22px;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-elev);
  z-index: var(--z-toast);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  transition: transform var(--t-base) var(--ease);
}
.toast.is-show { transform: translateX(-50%) translateY(0); }
.toast.is-error { background: var(--c-danger); }
.toast.is-success { background: var(--c-success); }

/* Article / legal */
.article {
  max-width: 820px;
  margin: 0 auto;
}
.article h2 { margin-top: 1.6em; font-size: var(--fs-xl); }
.article h3 { margin-top: 1.4em; font-size: var(--fs-lg); }
.article p, .article li { font-size: var(--fs-md); color: var(--c-text); line-height: var(--lh-loose); }
.article ul, .article ol { margin: 0 0 1.4em; padding-left: 1.4em; }
.article strong { font-weight: var(--fw-semibold); }
.article a { color: var(--c-accent); border-bottom: 1px solid currentColor; }
.article hr { border: none; border-top: 1px solid var(--c-border); margin: 2.4em 0; }
.article .meta { color: var(--c-text-muted); font-size: var(--fs-sm); margin-bottom: 28px; }

/* Empty / 404 */
.empty-state {
  text-align: center;
  padding-block: clamp(80px, 12vw, 140px);
}
.empty-state h1 { font-size: clamp(60px, 12vw, 120px); margin: 0; letter-spacing: -0.05em; }
.empty-state p { font-size: var(--fs-lg); color: var(--c-text-muted); margin-bottom: 28px; }
