/* Paper House «KARNEY» — стилі. Mobile-first, без фреймворків. */

:root {
  --primary: #1347c0;
  --primary-hover: #0e379a;
  --navy: #0d2b6e;
  --sky: #2fb6ea;
  --focus: #0a84c6;
  --blue-50: #eef4fd;
  --blue-100: #dbe7fb;
  --gray-25: #f6f8fb;
  --gray-50: #f3f5f8;
  --gray-100: #e9edf2;
  --gray-200: #dce1e8;
  --gray-300: #c3cad5;
  --gray-500: #5a6475;
  --gray-600: #444e60;
  --text: #121a2c;
  --kraft-50: #f6f0e6;
  --kraft-700: #7a5a2e;
  --green-50: #e8f6ee;
  --green-700: #116a37;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(13, 43, 110, 0.08);
  --bar-h: 56px; --search-h: 56px; --subnav-h: 0px;
  --header-h: calc(var(--bar-h) + var(--search-h) + var(--subnav-h));
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
@media (min-width: 768px) { :root { --bar-h: 68px; --search-h: 0px; --subnav-h: 44px; } }
@media (min-width: 1024px) { :root { --bar-h: 72px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
html.no-scroll { overflow: hidden; }
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100svh; padding-top: var(--header-h); margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.5; color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { line-height: 1.2; }
ul, ol { margin: 0; padding: 0; }
main { display: block; flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }
main:focus { outline: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.container { width: 100%; max-width: 1600px; margin: 0 auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 24px; } }
@media (min-width: 1280px) { .container { padding-inline: 32px; } }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 8px; top: -80px; z-index: 300; background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 8px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 8px; }
.noscript { padding: 16px; text-align: center; background: var(--kraft-50); margin: 0; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px; border-radius: var(--radius-sm);
  border: 1.5px solid transparent; font-size: 15px; font-weight: 600; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .1s;
}
.btn .icon { width: 20px; height: 20px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; }
.btn--primary:hover { background: var(--primary-hover); }
.btn--secondary { background: #fff; color: var(--navy); border-color: var(--gray-200); }
.btn--secondary:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn--ghost { background: transparent; color: var(--primary); border-color: var(--blue-100); }
.btn--ghost:hover { background: var(--blue-50); }
.btn--light { background: #fff; color: var(--primary); }
.btn--light:hover { background: var(--blue-50); }
.btn--lg { min-height: 52px; padding: 14px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; position: relative;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--navy); cursor: pointer; flex-shrink: 0;
}
.icon-btn:hover { background: var(--gray-50); }

/* ---------- Badge / Price / Rating ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 9px; border-radius: 6px; font-size: 12.5px; font-weight: 600; line-height: 1.4; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--stock { background: var(--green-50); color: var(--green-700); }
.badge--ready { background: var(--blue-50); color: var(--primary); }
.badge--muted { background: var(--gray-100); color: var(--gray-500); }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price__current { font-size: 20px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.price__old { font-size: 14px; color: var(--gray-500); white-space: nowrap; }
.price--lg .price__current { font-size: 32px; }
.price--lg .price__old { font-size: 17px; }

.rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.rating__star { width: 18px; height: 18px; color: #f2a516; fill: #f2a516; }
.rating__value { font-weight: 700; }
.rating__count { color: var(--gray-500); }

/* ---------- Header ----------
   Фіксована шапка: завжди вгорі; місце під неї резервує body (padding-top = --header-h),
   тому контент не ховається під шапкою і немає зсуву макета.
   Стан .is-scrolled — лише прозорість/тінь/згортання стрічки категорій через transform/opacity. */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: var(--header-h);
  pointer-events: none; /* сама область шапки «прозора» для кліків — клікабельні лише смуги */
}
.header__bar, .subnav { pointer-events: auto; }
.header__bar {
  position: relative; z-index: 2; background: rgba(255, 255, 255, .97);
  box-shadow: inset 0 -1px 0 rgba(13, 43, 110, .07);
  transition: background-color .25s, box-shadow .25s;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header__bar { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
}
.site-header.is-scrolled .header__bar { box-shadow: inset 0 -1px 0 rgba(13, 43, 110, .06), 0 8px 28px -12px rgba(13, 43, 110, .22); }

.header__row {
  display: grid; align-items: center; column-gap: 4px;
  grid-template-columns: auto auto 1fr auto auto;
  grid-template-rows: var(--bar-h) var(--search-h);
  grid-template-areas: "burger logo . account cart" "search search search search search";
}
.header__burger { grid-area: burger; margin-left: -10px; }
.header__logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 44px; border-radius: 8px; }
.header__logo .logo { height: 30px; width: auto; }
.header__nav { grid-area: nav; display: none; }
.header__search { grid-area: search; min-width: 0; align-self: start; }
.account-btn { grid-area: account; }
.cart-btn { grid-area: cart; justify-self: end; margin-right: -8px; }

/* Кнопки-іконки шапки: однаковий розмір 44×44, м’який фон при наведенні */
.header__row .icon-btn { border-radius: 50%; color: var(--navy); transition: background-color .2s, color .2s, box-shadow .2s; }
.header__row .icon-btn:hover { background: var(--blue-50); color: var(--primary); }
.header__row .icon-btn .icon { width: 24px; height: 24px; }
.account-btn[aria-current="page"] { color: var(--primary); background: var(--blue-50); box-shadow: inset 0 0 0 1.5px rgba(19, 71, 192, .25); }
.cart-btn__count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 700;
  line-height: 18px; text-align: center; box-shadow: 0 0 0 2px #fff; box-sizing: border-box; font-variant-numeric: tabular-nums;
}
.cart-btn__count.is-empty { display: none; }
.cart-btn.is-bump .cart-btn__count { animation: bump .4s ease; }
@keyframes bump { 40% { transform: scale(1.35); } }

/* Стрічка категорій */
.subnav { position: relative; z-index: 1; display: none; background: rgba(255, 255, 255, .97); box-shadow: inset 0 -1px 0 rgba(13, 43, 110, .07); transition: transform .3s ease, opacity .2s ease, visibility 0s linear 0s; }
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .subnav { background: rgba(250, 251, 254, .84); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); }
}
.subnav__inner { display: flex; align-items: center; gap: 8px; height: var(--subnav-h); }
.subnav ul { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 4px; list-style: none; height: 100%; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { flex: none; }
.subnav a {
  position: relative; z-index: 0; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  color: var(--gray-600); font-size: 13.5px; font-weight: 550; text-decoration: none; white-space: nowrap; transition: color .2s;
}
.subnav a::before { content: ""; position: absolute; z-index: -1; inset: 6px 0; border-radius: 999px; background: transparent; transition: background-color .2s; }
.subnav a:focus-visible { outline-offset: -4px; border-radius: 999px; }
.subnav a:hover, .subnav a[aria-current="page"] { color: var(--primary); }
.subnav a:hover::before, .subnav a[aria-current="page"]::before { background: var(--blue-50); }
.subnav ul { margin-left: -12px; padding-right: 24px; }
.subnav a.subnav__all { flex: none; color: var(--navy); margin-right: -12px; }
.subnav__all .icon { width: 15px; height: 15px; transition: transform .2s; }
.subnav__all:hover .icon { transform: translateX(2px); }
.site-header.subnav-hidden .subnav { transform: translateY(-100%); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .2s ease, visibility 0s linear .3s; }

@media (min-width: 768px) {
  .header__row { column-gap: 8px; grid-template-columns: auto auto minmax(0, 1fr) auto auto; grid-template-rows: var(--bar-h); grid-template-areas: "burger logo search account cart"; }
  .header__search { align-self: center; margin: 0 8px 0 20px; }
  .header__logo .logo { height: 34px; }
  .subnav { display: block; }
}
@media (min-width: 1024px) {
  .header__row { grid-template-columns: auto auto minmax(220px, 1fr) auto auto; grid-template-areas: "logo nav search account cart"; column-gap: 6px; }
  .header__burger { display: none; }
  .header__logo { margin-right: 18px; }
  .header__logo .logo { height: 36px; }
  .header__nav { display: block; }
  .header__search { margin: 0 10px 0 14px; }
  .header__nav ul { display: flex; list-style: none; gap: 2px; }
  .header__nav a {
    position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px;
    color: var(--text); text-decoration: none; font-size: 15px; font-weight: 550; white-space: nowrap; transition: color .2s;
  }
  .header__nav a::after {
    content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--primary);
    transform: scaleX(0); transform-origin: left center; transition: transform .25s cubic-bezier(.2, .7, .2, 1);
  }
  .header__nav a:hover { color: var(--primary); }
  .header__nav a:hover::after, .header__nav a[aria-current="page"]::after { transform: scaleX(1); }
  .header__nav a[aria-current="page"] { color: var(--primary); }
  .subnav ul { -webkit-mask-image: none; mask-image: none; }
}
@media (min-width: 1280px) { .header__nav a { padding: 0 13px; } .header__nav a::after { left: 13px; right: 13px; } .header__search { margin-left: 24px; } }
@media (prefers-reduced-motion: reduce) { .subnav, .site-header.subnav-hidden .subnav, .header__nav a::after { transition: none; } }

/* ---------- Search ---------- */
.search { position: relative; display: flex; }
.search__input {
  width: 100%; height: 44px; padding: 0 16px 0 46px; border: 1px solid rgba(13, 43, 110, .10); border-radius: 999px;
  background: var(--gray-50); font-size: 15.5px; transition: border-color .2s, background-color .2s, box-shadow .2s; appearance: none;
}
.search__input::placeholder { color: var(--gray-500); }
.search__input:hover { border-color: rgba(13, 43, 110, .22); background: #fff; }
.search__input:focus { outline: none; border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(19, 71, 192, .14); }
.search__input::-webkit-search-cancel-button { display: none; }
.search__btn { position: absolute; left: 2px; top: 0; width: 44px; height: 44px; border: 0; background: transparent; color: var(--gray-500); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; border-radius: 50%; transition: color .2s; }
.search__btn .icon { width: 20px; height: 20px; }
.search__btn:hover, .search:focus-within .search__btn { color: var(--primary); }
.search__suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; padding: 6px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: 12px; box-shadow: var(--shadow); max-height: 70vh; overflow: auto;
}
.search__option a { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; min-height: 52px; }
.search__option img { width: 40px; height: 40px; object-fit: contain; background: var(--gray-25); border-radius: 6px; mix-blend-mode: multiply; }
.search__option-name { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search__option-price { font-size: 14px; font-weight: 700; color: var(--navy); white-space: nowrap; }
.search__option.is-active a, .search__option a:hover { background: var(--blue-50); }
.search__all a { display: flex; align-items: center; min-height: 44px; padding: 0 8px; font-weight: 600; font-size: 14px; }
.search__empty { padding: 12px 8px; color: var(--gray-500); font-size: 14px; }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(10, 20, 45, .45); opacity: 0; transition: opacity .2s; }
.drawer__panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(360px, 88vw); background: #fff;
  display: flex; flex-direction: column; transform: translateX(-100%); transition: transform .22s ease; outline: none;
}
.drawer--right .drawer__panel { left: auto; right: 0; width: min(400px, 92vw); transform: translateX(100%); }
.drawer--bottom .drawer__panel { top: auto; left: 0; right: 0; width: auto; max-height: 85vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer--center .drawer__panel {
  top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, calc(100vw - 32px)); max-height: min(640px, calc(100vh - 32px));
  border-radius: 20px; box-shadow: 0 24px 64px -16px rgba(10, 20, 45, .35); overflow: hidden;
  opacity: 0; transform: translate(-50%, -46%) scale(.97); transition: transform .22s ease, opacity .2s ease;
}
.drawer--center.is-open .drawer__panel { opacity: 1; transform: translate(-50%, -50%); }
.drawer--center .drawer__head { padding: 12px 12px 12px 22px; }
.drawer--center .drawer__body { padding: 8px 22px 16px; min-height: 120px; }
.drawer--center .drawer__foot { padding: 18px 22px; background: var(--gray-25, #f7f9fc); }
@media (prefers-reduced-motion: reduce) { .drawer--center .drawer__panel { transition: none; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--gray-100); }
.drawer__title { margin: 0; font-size: 18px; color: var(--navy); }
.drawer__body { flex: 1; overflow: auto; padding: 8px 16px 16px; }
.drawer__foot { padding: 16px; border-top: 1px solid var(--gray-100); padding-bottom: max(16px, env(safe-area-inset-bottom)); }
.drawer__foot:empty { display: none; }

.mobile-nav { list-style: none; }
.mobile-nav a { display: flex; align-items: center; min-height: 50px; color: var(--text); text-decoration: none; font-size: 16.5px; font-weight: 500; border-bottom: 1px solid var(--gray-100); }
.mobile-nav a[aria-current="page"] { color: var(--primary); }
.mobile-nav__account { gap: 10px; }
.mobile-nav__account .icon { color: var(--primary); }
.mobile-nav--sub a { font-size: 15.5px; font-weight: 400; color: var(--gray-600); }
.mobile-nav__heading { margin: 24px 0 4px; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }

/* Кошик */
.cart-list { list-style: none; }
.cart-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.cart-item img { width: 64px; height: 64px; object-fit: contain; background: var(--gray-25); border-radius: 8px; mix-blend-mode: multiply; }
.cart-item__info { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cart-item__info a { color: var(--text); text-decoration: none; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item__info a:hover { color: var(--primary); }
.cart-item__meta { font-size: 13px; color: var(--gray-500); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 6px; }
.cart-total strong { font-size: 22px; color: var(--navy); }
.cart-note, .cart-empty { margin: 0; font-size: 14px; color: var(--gray-500); }
.cart-empty { padding: 24px 0; font-size: 15px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 200; max-width: calc(100vw - 32px);
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 14.5px; box-shadow: var(--shadow);
  transition: opacity .2s, transform .2s;
}
.toast:empty { padding: 0; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.has-sticky-buy .toast { bottom: 92px; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 56px 12px; background: rgba(8, 16, 36, .92); opacity: 0; transition: opacity .2s; }
.lightbox.is-open { opacity: 1; }
.lightbox__figure { margin: 0; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: min(92vw, 1100px); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; background: #fff; border-radius: 12px; }
.lightbox__counter { color: #fff; font-size: 14px; margin-top: 10px; min-height: 20px; }
.lightbox .icon-btn { position: absolute; color: #fff; background: rgba(255, 255, 255, .12); width: 48px; height: 48px; }
.lightbox .icon-btn:hover { background: rgba(255, 255, 255, .22); }
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Sections / Home ---------- */
.section { padding: 48px 0; }
.section--gray { background: var(--gray-50); }
.section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; margin-bottom: 24px; }
.section__head .section__title { margin: 0; }
.section__title { margin: 0 0 24px; font-size: clamp(24px, 2.6vw, 32px); font-weight: 700; color: var(--navy); letter-spacing: -0.01em; }
.link-arrow { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-decoration: none; }
.link-arrow::after { content: "→"; margin-left: 6px; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }
@media (min-width: 1024px) { .section { padding: 72px 0; } }

.hero { padding: 28px 0 40px; overflow-x: clip; background: linear-gradient(180deg, #fff 0%, #fff 55%, #f5f8fd 100%); }
/* Mobile: перший екран — текст, кнопки й швидкі фільтри; стос аркушів — нижче */
@media (max-width: 559px) {
  .hero__content {
    display: flex; flex-direction: column; justify-content: center;
    min-height: calc(100vh - var(--header-h) - 64px); min-height: calc(100svh - var(--header-h) - 64px);
  }
  .hero .hero__title { font-size: clamp(34px, 10.6vw, 44px); }
  .hero .hero__text { font-size: 17.5px; margin-top: 20px; }
  .hero .hero__actions { margin-top: 30px; }
  .hero .hero__quick { margin-top: 28px; }
}
/* Tablet / desktop: hero на весь перший екран */
@media (min-width: 560px) {
  .hero { display: flex; align-items: center; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); }
}
.hero__inner { display: grid; gap: 28px; align-items: center; }
.hero__content { min-width: 0; }
.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); }
.hero__eyebrow::before { content: ""; width: 28px; height: 2px; border-radius: 2px; background: var(--sky); }
.hero__title { margin: 0; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.06; font-weight: 750; letter-spacing: -0.03em; color: var(--navy); max-width: 14ch; }
.hero__accent { background: none; }
.hero__text { margin: 18px 0 0; font-size: 17px; color: var(--gray-600); max-width: 50ch; }
.hero__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 26px; }
.hero__quick { min-height: 44px; margin-top: 24px; }
.quick-chips__title { margin: 0 0 8px; font-size: 13.5px; color: var(--gray-500); }
.quick-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.quick-chip {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--gray-200); background: #fff; color: var(--navy); font-size: 14.5px; font-weight: 600; text-decoration: none;
  transition: border-color .15s, background-color .15s, color .15s;
}
.quick-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--blue-50); }

/* Візуал: стос аркушів з розділювачами на «міліметрівці» */
.hero__visual {
  --sheet-h: 340px; --sheet-w: calc(var(--sheet-h) / 1.4142); --tab-w: 0px;
  position: relative; display: flex; justify-content: center; align-items: center;
  min-height: calc(var(--sheet-h) + 168px); padding: 28px 0 0;
}
.hero__desk {
  position: absolute; left: 0; right: 0; top: 0; height: calc(var(--sheet-h) + 64px); border-radius: 26px;
  background: linear-gradient(150deg, #f1f6fe 0%, #e3edfb 100%); overflow: hidden;
}
.hero__desk::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(19, 71, 192, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(19, 71, 192, .07) 1px, transparent 1px);
  background-size: 22px 22px; background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 30%, transparent 100%);
}
.hero__desk::after {
  content: ""; position: absolute; width: 46%; aspect-ratio: 1; right: -12%; bottom: -22%; border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 182, 234, .22), transparent 70%);
}
.paper-stack { position: relative; display: flex; flex-direction: column; align-items: center; gap: 46px; }
.paper-stack__sheets {
  position: relative; width: var(--sheet-w); height: var(--sheet-h); flex-shrink: 0;
  transform: perspective(1400px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .35s ease-out; transform-style: preserve-3d;
}
.paper-sheet {
  --t: none; position: absolute; inset: 0; display: flex; flex-direction: column; padding: 16px 16px 14px;
  border-radius: 6px; background: #fff; border: 1px solid rgba(13, 43, 110, .07);
  box-shadow: 0 1px 2px rgba(13, 43, 110, .06), 0 10px 24px rgba(13, 43, 110, .09);
  transform: var(--t); transition: transform .45s cubic-bezier(.2, .75, .2, 1), box-shadow .45s; cursor: pointer;
}
.paper-sheet--cream { background: #fcf9f3; }
.paper-sheet--blue { background: #f4f8fe; }
.paper-sheet--kraft { background: #f1e6d3; }
.paper-sheet[data-depth="0"] { --t: translate(0, 0) rotate(0deg); z-index: 4; box-shadow: 0 2px 4px rgba(13, 43, 110, .06), 0 26px 50px rgba(13, 43, 110, .17); cursor: default; }
.paper-sheet[data-depth="1"] { --t: translate(14px, -10px) rotate(3.5deg); z-index: 3; }
.paper-sheet[data-depth="2"] { --t: translate(-16px, 8px) rotate(-4.5deg); z-index: 2; }
.paper-sheet[data-depth="3"] { --t: translate(8px, 16px) rotate(7deg); z-index: 1; }
.paper-sheet.is-out { --t: translate(78%, -6%) rotate(9deg) !important; transition-duration: .26s; }
.paper-sheet:not(.is-front):hover { --t: translate(22px, -14px) rotate(5deg); }
.paper-sheet[data-depth="2"]:not(.is-front):hover { --t: translate(-24px, 4px) rotate(-6deg); }
.paper-sheet[data-depth="3"]:not(.is-front):hover { --t: translate(14px, 22px) rotate(9deg); }
.paper-sheet__index, .paper-sheet__photo, .paper-sheet__body { transition: opacity .3s; }
.paper-sheet:not(.is-front) .paper-sheet__index, .paper-sheet:not(.is-front) .paper-sheet__photo, .paper-sheet:not(.is-front) .paper-sheet__body { opacity: 0; }
.paper-sheet__index { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--sky); font-variant-numeric: tabular-nums; }
.paper-sheet--kraft .paper-sheet__index { color: var(--kraft-700); }
.paper-sheet__photo { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; margin: 2px 0 8px; }
.paper-sheet__photo img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.paper-sheet__body { display: flex; flex-direction: column; gap: 3px; padding-top: 10px; border-top: 1px dashed rgba(13, 43, 110, .14); }
.paper-sheet__link { font-size: clamp(16px, calc(var(--sheet-h) * .04), 21px); font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.25; }
.paper-sheet__link::after { content: ""; position: absolute; inset: 0; border-radius: 6px; }
.paper-sheet__link:focus-visible { outline: none; }
.paper-sheet__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.paper-sheet__facts { font-size: clamp(12.5px, calc(var(--sheet-h) * .029), 14.5px); color: var(--gray-500); }
.paper-sheet__more { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: clamp(13px, calc(var(--sheet-h) * .03), 15px); }
.paper-sheet__count { color: var(--gray-600); }
.paper-sheet__go { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: var(--primary); }
.paper-sheet__go .icon { width: 16px; height: 16px; transition: transform .2s; }
.paper-sheet.is-front:hover .paper-sheet__go .icon { transform: translateX(3px); }

/* Розмірні лінії «як на кресленні» — з формату активної групи */
.paper-dim { position: absolute; color: var(--gray-500); font-size: 11px; letter-spacing: .04em; font-variant-numeric: tabular-nums; pointer-events: none; }
.paper-dim > span { position: absolute; padding: 0 6px; background: #e8f0fc; white-space: nowrap; }
.paper-dim--v { left: -26px; top: 0; bottom: 0; width: 9px; border-left: 1px solid var(--gray-300); }
.paper-dim--v::before, .paper-dim--v::after, .paper-dim--h::before, .paper-dim--h::after { content: ""; position: absolute; background: var(--gray-300); }
.paper-dim--v::before, .paper-dim--v::after { left: -5px; width: 9px; height: 1px; }
.paper-dim--v::before { top: 0; } .paper-dim--v::after { bottom: 0; }
.paper-dim--v > span { left: -1px; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); }
.paper-dim--h { left: 0; right: 0; bottom: -26px; height: 9px; border-bottom: 1px solid var(--gray-300); }
.paper-dim--h::before, .paper-dim--h::after { bottom: -5px; width: 1px; height: 9px; }
.paper-dim--h::before { left: 0; } .paper-dim--h::after { right: 0; }
.paper-dim--h > span { left: 50%; bottom: -1px; transform: translate(-50%, 50%); }

/* Розділювачі (вкладки). Mobile: сітка 2×2 під стосом */
.paper-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; width: 100%; max-width: 420px; }
.paper-tab {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px;
  min-height: 52px; padding: 7px 12px 7px 14px; border: 1px solid var(--gray-200); border-radius: 10px; background: #fff;
  text-align: left; cursor: pointer; transition: transform .2s, background-color .2s, border-color .2s, box-shadow .2s;
}
.paper-tab::before { content: ""; position: absolute; left: -1px; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background-color .2s; }
.paper-tab--cream { background: #faf6ee; }
.paper-tab--blue { background: #eef4fd; }
.paper-tab--kraft { background: #f3e9d8; }
.paper-tab__label { font-size: 13.5px; font-weight: 650; color: var(--navy); line-height: 1.2; }
.paper-tab__count { font-size: 12px; color: var(--gray-500); }
.paper-tab:hover { border-color: var(--gray-300); }
.paper-tab[aria-pressed="true"] { border-color: var(--primary); box-shadow: 0 6px 16px rgba(13, 43, 110, .10); }
.paper-tab[aria-pressed="true"]::before { background: var(--primary); }

@media (max-width: 359px) { .hero__visual { --sheet-h: 300px; } }
@media (min-width: 560px) {
  .hero__actions { flex-direction: row; flex-wrap: wrap; }
  /* Вкладки праворуч від стосу, як розділювачі в папці */
  .hero__visual { --tab-w: 150px; min-height: calc(var(--sheet-h) + 96px); padding: 40px 0 56px; }
  .hero__desk { top: 0; bottom: 0; height: auto; left: 0; right: 0; }
  .paper-stack { flex-direction: row; align-items: flex-start; gap: 0; padding-right: calc(var(--tab-w) + 28px); }
  .paper-tabs {
    position: absolute; left: calc(var(--sheet-w) - 1px); top: 8%; width: var(--tab-w);
    display: flex; flex-direction: column; gap: 8px; z-index: 5;
  }
  .paper-tab { border-radius: 0 10px 10px 0; border-left: 0; min-height: 54px; }
  .paper-tab::before { left: auto; right: -1px; border-radius: 3px 0 0 3px; }
  .paper-tab:not([aria-pressed="true"]) { transform: translateX(10px); }
  .paper-tab:not([aria-pressed="true"]):hover { transform: translateX(4px); }
  .paper-tab[aria-pressed="true"] { border-color: var(--gray-200); border-left: 0; transform: none; box-shadow: 8px 10px 22px rgba(13, 43, 110, .12); }
}
@media (min-width: 768px) { .hero { padding: 40px 0 56px; } .hero__text { font-size: 18px; } .hero__visual { --sheet-h: 420px; } }
@media (min-width: 1024px) {
  .hero { padding: 32px 0 40px; }
  .hero__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
  /* Стос масштабується під висоту першого екрана (і ширину колонки) */
  .hero__visual {
    --sheet-h: clamp(380px, min(calc(100vh - var(--header-h) - 200px), 36vw), 560px);
    --tab-w: 150px; padding: 44px 0 60px;
  }
  @supports (height: 100svh) {
    .hero__visual { --sheet-h: clamp(380px, min(calc(100svh - var(--header-h) - 200px), 36vw), 560px); }
  }
  .hero__desk { left: 4%; }
  .hero__actions { margin-top: 30px; }
  .paper-sheet { padding: calc(var(--sheet-h) * .042) calc(var(--sheet-h) * .042) calc(var(--sheet-h) * .036); }
  .paper-tab { min-height: calc(var(--sheet-h) * .125); }
}
@media (min-width: 1280px) { .hero__visual { --tab-w: 156px; } .hero__inner { gap: 56px; } }
@media (prefers-reduced-motion: reduce) {
  .paper-stack__sheets { transform: none !important; }
  .paper-sheet, .paper-tab { transition: none !important; }
}

.cat-grid { display: grid; grid-template-columns: 1fr; gap: 12px; list-style: none; }
.cat-grid > li { display: flex; }
.cat-card {
  flex: 1; display: flex; align-items: center; gap: 14px; min-height: 84px; padding: 14px 16px;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); color: var(--text); text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
}
.cat-card:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.cat-card__icon { flex-shrink: 0; width: 52px; height: 52px; border-radius: 12px; background: var(--gray-25); display: flex; align-items: center; justify-content: center; }
.cat-card__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-card__title { font-weight: 600; font-size: 16px; color: var(--navy); }
.cat-card__count { font-size: 13.5px; color: var(--gray-500); }
.cat-card__arrow { margin-left: auto; color: var(--primary); transition: transform .15s; }
.cat-card:hover .cat-card__arrow { transform: translateX(3px); }
.cat-card__icon svg { width: 44px; height: 44px; }
@media (max-width: 639px) { .cat-grid { gap: 8px; } .cat-card { min-height: 72px; padding: 10px 14px; } }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cat-card__icon { width: 60px; height: 60px; } .cat-card__icon svg { width: 52px; height: 52px; } }
@media (min-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .cat-card { padding: 18px 20px; min-height: 96px; } }

.guide { display: grid; gap: 12px; list-style: none; }
.guide__item { padding: 22px; border: 1px solid var(--gray-200); border-radius: var(--radius); }
.guide__num { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--kraft-50); color: var(--kraft-700); font-size: 13px; font-weight: 700; }
.guide__title { margin: 12px 0 6px; font-size: 19px; color: var(--navy); }
.guide__item p { margin: 0; color: var(--gray-600); }
@media (min-width: 768px) { .guide { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } .guide__item { padding: 26px; } }

.about__inner > * { max-width: 820px; }
.about__text { margin: 0; font-size: 17px; color: var(--gray-600); line-height: 1.65; }
@media (min-width: 768px) { .about__text { font-size: 18px; } }

.cta__box {
  display: flex; flex-direction: column; align-items: flex-start; gap: 20px; padding: 32px 24px; border-radius: 20px;
  background: linear-gradient(120deg, var(--navy) 0%, var(--primary) 100%); color: #fff;
}
.cta__title { margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 30px); max-width: 22ch; }
@media (min-width: 768px) { .cta__box { flex-direction: row; align-items: center; justify-content: space-between; padding: 44px 48px; } }

/* ---------- Product card / grid ---------- */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; }
.product-grid__item { display: flex; min-width: 0; }
@media (max-width: 349px) { .product-grid { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 640px) { .product-grid--catalog { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .product-grid--catalog { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 768px) { .product-grid--four, .product-grid--related { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

.product-card {
  position: relative; flex: 1; display: flex; flex-direction: column; min-width: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius); overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.product-card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.product-card__media { aspect-ratio: 1 / 1; background: var(--gray-25); padding: 6%; }
.product-card__media img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.product-card:hover .product-card__media img { transform: scale(1.03); }
.product-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.product-card__title { margin: 0; font-size: 14.5px; line-height: 1.35; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.product-card__link { color: var(--text); text-decoration: none; }
.product-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.product-card__link:hover { color: var(--primary); }
.product-card__link:focus-visible { outline: none; }
.product-card__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; }
.product-card__params { margin: 0; font-size: 13px; color: var(--gray-500); }
.product-card__bottom { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.product-card__btn { position: relative; z-index: 2; padding-inline: 10px; }
@media (min-width: 768px) { .product-card__body { padding: 16px; } .product-card__title { font-size: 15px; } }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding: 12px 0 4px; font-size: 13.5px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; list-style: none; color: var(--gray-500); }
.breadcrumbs li { display: inline-flex; align-items: center; min-width: 0; }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px; color: var(--gray-300); }
.breadcrumbs a { color: var(--gray-600); text-decoration: none; display: inline-block; padding: 8px 0; }
.breadcrumbs a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumbs [aria-current] { color: var(--gray-500); overflow-wrap: anywhere; }

/* ---------- Catalog ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 4px 0 16px; }
.page-title { margin: 0; font-size: clamp(26px, 3vw, 36px); color: var(--navy); letter-spacing: -0.01em; }
.catalog-count { margin: 0; color: var(--gray-500); font-size: 15px; }
.catalog-count:focus { outline: none; }
.search-note { margin: -4px 0 16px; font-size: 15px; }
.search-note a { display: inline-block; margin-left: 8px; padding: 10px 0; font-weight: 600; }

.catalog-mobile-bar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.catalog-mobile-bar__btn { width: 100%; }
.count-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 12px; }

.catalog-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
@media (max-width: 1023px) { .catalog-toolbar:has(.catalog-toolbar__chips:empty) { display: none; } }
.catalog-toolbar__sort { display: none; margin-left: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px 0 14px; border: 0; border-radius: 999px; background: var(--blue-50); color: var(--primary); font-size: 14px; font-weight: 500; cursor: pointer; }
.chip .icon { width: 16px; height: 16px; }
.chip:hover { background: var(--blue-100); }
.chip--reset { background: transparent; color: var(--gray-600); text-decoration: underline; padding: 0 8px; }
.chip--reset:hover { background: var(--gray-50); }

.sort-select { display: flex; align-items: center; gap: 10px; }
.sort-select__label { font-size: 14px; color: var(--gray-500); white-space: nowrap; }
.sort-select__wrap { position: relative; display: inline-flex; }
.sort-select__input { appearance: none; height: 44px; padding: 0 42px 0 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; font-size: 15px; cursor: pointer; }
.sort-select__input:hover { border-color: var(--gray-300); }
.sort-select__wrap .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; pointer-events: none; color: var(--gray-500); }

.sort-options { border: 0; margin: 0; padding: 0; }
.radio { display: flex; align-items: center; gap: 12px; min-height: 54px; border-bottom: 1px solid var(--gray-100); font-size: 16px; cursor: pointer; }

/* Нативні checkbox/radio у фірмовому стилі */
.check input, .radio input {
  appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0;
  border: 1.5px solid var(--gray-300); background: #fff; display: inline-grid; place-content: center; cursor: pointer;
  transition: background-color .12s, border-color .12s;
}
.check input { border-radius: 5px; }
.radio input { border-radius: 50%; }
.check input::before { content: ""; width: 10px; height: 6px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.radio input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); opacity: 0; }
.check input:checked { background: var(--primary); border-color: var(--primary); }
.radio input:checked { border-color: var(--primary); }
.check input:checked::before, .radio input:checked::before { opacity: 1; }
.check input:hover:not(:disabled), .radio input:hover { border-color: var(--primary); }

.filter-group { border: 0; margin: 0; padding: 0 0 12px; border-bottom: 1px solid var(--gray-100); min-width: 0; }
.filter-group__title { padding: 16px 0 4px; font-size: 15px; font-weight: 650; color: var(--navy); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.check__label { flex: 1; min-width: 0; }
.check__count { font-size: 13px; color: var(--gray-500); }
.check.is-disabled { opacity: .45; cursor: default; }
.price-range { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: end; gap: 8px; padding-top: 4px; }
.price-range__dash { padding-bottom: 12px; color: var(--gray-500); }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field__label { font-size: 13px; color: var(--gray-500); }
.field__input { width: 100%; min-width: 0; height: 44px; padding: 0 10px; border: 1.5px solid var(--gray-200); border-radius: 8px; background: #fff; font-size: 15px; }
.field__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 71, 192, .15); }

/* Фільтри: drawer на вузьких екранах */
.filters { display: none; }
.filters.is-open {
  display: flex; flex-direction: column; position: fixed; inset: 0; z-index: 100; background: #fff;
  animation: slide-up .22s ease;
}
@keyframes slide-up { from { transform: translateY(24px); opacity: 0; } }
.filters__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 16px; border-bottom: 1px solid var(--gray-100); }
.filters__title { margin: 0; font-size: 18px; color: var(--navy); }
.filters__body { flex: 1; overflow: auto; padding: 0 16px; }
.filters__body .filter-group:last-child { border-bottom: 0; }
.filters__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; padding: 12px 16px; padding-bottom: max(12px, env(safe-area-inset-bottom)); border-top: 1px solid var(--gray-100); }
.filters__foot .btn { padding-inline: 12px; }

.catalog-results { min-width: 0; scroll-margin-top: calc(var(--header-h) + 12px); }
.catalog-more { display: flex; justify-content: center; margin: 28px 0 8px; }
.catalog-more .btn { min-width: 220px; }
.catalog-more:empty { margin: 0; }

.pagination { margin: 20px 0 8px; }
.pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 6px; border-radius: var(--radius-sm); border: 1px solid var(--gray-200); background: #fff; color: var(--text); text-decoration: none; font-weight: 600; }
.pagination__link:hover:not(.is-disabled):not(.is-active) { border-color: var(--primary); color: var(--primary); }
.pagination__link.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination__link.is-disabled { opacity: .4; }
.pagination__ellipsis { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; color: var(--gray-500); }

.empty-state { text-align: center; padding: 48px 16px; border: 1px dashed var(--gray-300); border-radius: var(--radius); }
.empty-state p { margin: 0 0 16px; color: var(--gray-600); }
.empty-state--page { margin: 24px 0 48px; }
.empty-state--page h1 { margin: 0 0 8px; color: var(--navy); }

@media (min-width: 1024px) {
  .catalog-mobile-bar { display: none; }
  .catalog-toolbar__sort { display: block; }
  .catalog-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 32px; }
  .filters { display: block; }
  .filters__head { padding: 0 0 4px; border-bottom: 0; }
  .filters__close, .filters__foot { display: none; }
  .filters__body { padding: 0; overflow: visible; }
  .filter-group { padding: 0 0 10px; }
  .filter-group__title { padding-top: 14px; }
  .check { min-height: 38px; font-size: 14.5px; }
}
@media (min-width: 1280px) { .catalog-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 40px; } }
.page-catalog { padding-bottom: 40px; }

/* ---------- Product page ---------- */
.page-product { padding-bottom: 8px; }
.product-skeleton { min-height: 100vh; border-radius: var(--radius); background: var(--gray-25); margin: 8px 0 40px; }
.product { display: grid; gap: 24px; margin-top: 4px; }
.product__gallery, .product__info { min-width: 0; }
.gallery__main { aspect-ratio: 1 / 1; background: var(--gray-25); border-radius: 18px; overflow: hidden; }
.gallery__open { position: relative; display: block; width: 100%; height: 100%; padding: 4%; border: 0; background: transparent; cursor: zoom-in; border-radius: 18px; }
.gallery__img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__zoom { position: absolute; right: 12px; bottom: 12px; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: #fff; border-radius: 50%; color: var(--navy); box-shadow: 0 4px 14px rgba(13, 43, 110, .12); }
.gallery__thumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; list-style: none; }
.gallery__thumb { width: 68px; height: 68px; padding: 4px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: var(--gray-25); cursor: pointer; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery__thumb:hover { border-color: var(--gray-300); }
.gallery__thumb.is-active { border: 2px solid var(--primary); }

.product__info { display: flex; flex-direction: column; gap: 16px; }
.product__title { margin: 0; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.25; color: var(--navy); letter-spacing: -0.01em; overflow-wrap: break-word; }
.product__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.product__sku { font-size: 14px; color: var(--gray-500); }
.product__buy { display: flex; gap: 12px; align-items: stretch; }
.product__cta { flex: 1; min-width: 0; min-height: 56px; padding-inline: 16px; font-size: 17px; }
@media (max-width: 374px) { .product__cta { font-size: 15.5px; padding-inline: 10px; } .product__cta .icon { display: none; } }
.product__subtitle { margin: 0 0 6px; font-size: 16px; color: var(--navy); }

.qty { display: inline-flex; align-items: center; flex-shrink: 0; height: 56px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; }
.qty__btn { width: 44px; height: 100%; display: inline-flex; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--navy); cursor: pointer; border-radius: var(--radius-sm); }
.qty__btn:hover { background: var(--gray-50); }
.qty__btn .icon { width: 18px; height: 18px; }
.qty__input { width: 46px; height: 100%; border: 0; text-align: center; font-size: 17px; font-weight: 600; background: transparent; -moz-appearance: textfield; appearance: textfield; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.spec-list { margin: 0; }
.spec-list__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--gray-100); font-size: 15px; }
.spec-list dt { color: var(--gray-500); }
.spec-list dd { margin: 0; font-weight: 500; text-align: right; }

.info-rows { display: flex; flex-direction: column; gap: 8px; }
.info-row { border: 1px solid var(--gray-200); border-radius: 12px; }
.info-row summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; cursor: pointer; list-style: none; font-weight: 600; color: var(--navy); border-radius: 12px; }
.info-row summary::-webkit-details-marker { display: none; }
.info-row summary .icon { color: var(--primary); }
.info-row__chev { margin-left: auto; color: var(--gray-500) !important; transition: transform .2s; }
.info-row[open] .info-row__chev { transform: rotate(180deg); }
.info-row p { margin: 0; padding: 0 14px 14px 48px; color: var(--gray-600); font-size: 15px; }

/* Mobile: галерея → назва → ціна → характеристики → кількість + кнопка */
@media (max-width: 1023px) {
  .product__title { order: 1; }
  .product__meta { order: 2; }
  .product__info .rating { order: 3; }
  .product__price { order: 4; }
  .product__specs { order: 5; }
  .product__buy { order: 6; }
  .product__info-rows { order: 7; }
  .product__gallery { max-width: 640px; width: 100%; margin-inline: auto; }
}
@media (min-width: 1024px) {
  .product { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: 48px; align-items: start; margin-top: 8px; }
  .product__gallery { position: sticky; top: calc(var(--header-h) + 16px); }
  .gallery__thumb { width: 80px; height: 80px; }
  .product__info { gap: 18px; padding-top: 4px; }
  .product__buy { margin-top: 4px; }
}

/* Вкладки / акордеон */
.product-tabs { margin: 40px 0 48px; }
.tabs__list { display: none; }
.tabs__section { border-bottom: 1px solid var(--gray-200); }
.tabs__section:first-of-type { border-top: 1px solid var(--gray-200); }
.tabs__acc-heading { margin: 0; }
.tabs__acc-btn { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 56px; padding: 0 4px; border: 0; background: transparent; font-size: 17px; font-weight: 650; color: var(--navy); cursor: pointer; text-align: left; }
.tabs__acc-btn .icon { transition: transform .2s; color: var(--gray-500); }
.tabs__acc-btn[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tabs__panel { display: none; padding: 4px 4px 20px; }
.tabs__panel.is-open { display: block; }
.tabs__panel:focus-visible { outline-offset: 4px; }
@media (min-width: 768px) {
  .product-tabs { margin: 56px 0 64px; }
  .tabs__list { display: flex; gap: 4px; border-bottom: 1px solid var(--gray-200); overflow-x: auto; }
  .tabs__tab { flex-shrink: 0; min-height: 50px; padding: 0 18px; border: 0; border-bottom: 2.5px solid transparent; margin-bottom: -1px; background: transparent; font-size: 16px; font-weight: 600; color: var(--gray-500); cursor: pointer; }
  .tabs__tab:hover { color: var(--navy); }
  .tabs__tab.is-active { color: var(--navy); border-bottom-color: var(--primary); }
  .tabs__section, .tabs__section:first-of-type { border: 0; }
  .tabs__acc-heading { display: none; }
  .tabs__panel, .tabs__panel.is-open { display: none; padding: 24px 0 0; }
  .tabs__panel.is-active { display: block; }
}

.prose { max-width: 75ch; }
.prose p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--gray-600); }
.prose__subtitle { margin: 20px 0 8px; font-size: 15.5px; color: var(--navy); }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.tag-list li { padding: 6px 12px; border-radius: 999px; background: var(--gray-50); border: 1px solid var(--gray-200); font-size: 14px; }

.spec-table { width: 100%; max-width: 780px; border-collapse: collapse; font-size: 15px; table-layout: fixed; }
.spec-table th, .spec-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--gray-100); overflow-wrap: anywhere; }
.spec-table th { width: 42%; font-weight: 500; color: var(--gray-500); }
.spec-table tr:nth-child(odd) { background: var(--gray-25); }
@media (max-width: 479px) { .spec-table { font-size: 14.5px; } .spec-table th, .spec-table td { padding: 11px 10px; } .spec-table th { width: 46%; } }

/* Схожі товари: горизонтальний свайп на mobile */
.related { padding: 40px 0 48px; }
@media (max-width: 767px) {
  .product-grid--related {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2);
    overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; overscroll-behavior-x: contain; scrollbar-width: thin;
  }
  .product-grid--related > li { scroll-snap-align: start; }
}

/* Sticky «Додати до кошика» */
.sticky-buy {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: #fff; border-top: 1px solid var(--gray-200);
  box-shadow: 0 -6px 20px rgba(13, 43, 110, .08); transform: translateY(110%); transition: transform .22s ease; visibility: hidden;
}
.sticky-buy.is-visible { transform: none; visibility: visible; }
.sticky-buy__inner { display: flex; align-items: center; gap: 12px; padding-block: 10px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.sticky-buy__info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sticky-buy__name { font-size: 13px; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy .price__current { font-size: 18px; }
.sticky-buy .price__old { font-size: 13px; }
.sticky-buy__btn { min-height: 48px; padding-inline: 16px; }
.has-sticky-buy { padding-bottom: 76px; }
@media (min-width: 1024px) { .sticky-buy { display: none; } .has-sticky-buy { padding-bottom: 0; } }

/* ---------- Спільні блоки: порожній стан, форми ---------- */

.empty-box { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 36px 20px; border: 1px dashed var(--gray-300); border-radius: var(--radius); background: #fff; }
.empty-box__icon { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--blue-50); color: var(--primary); }
.empty-box__icon .icon { width: 26px; height: 26px; }
.empty-box__title { margin: 0; font-size: 17px; font-weight: 650; color: var(--navy); }
.empty-box__text { margin: 0; color: var(--gray-500); font-size: 15px; }
.empty-box .btn { margin-top: 8px; }

.form-grid { display: grid; gap: 0 16px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.form-field__label { font-size: 14.5px; font-weight: 600; color: var(--navy); }
.form-field__req { color: #b42318; }
.form-field__input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); background: #fff; font-size: 16px; }
textarea.form-field__input { resize: vertical; min-height: 88px; }
.form-field__input:hover { border-color: var(--gray-300); }
.form-field__input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(19, 71, 192, .15); }
.form-field__input[aria-invalid="true"] { border-color: #b42318; }
.form-field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.form-field__hint { margin: 0; font-size: 13px; color: var(--gray-500); }
.form-field__error { margin: 0; font-size: 13.5px; color: #b42318; font-weight: 500; }

#home-guide:empty { min-height: 180px; }
#home-cta:empty { min-height: 140px; }

/* ---------- Про компанію (about.html) — типографічний макет ---------- */
.about-intro { padding: 0 0 48px; }
.about-intro__grid { display: grid; gap: 40px; padding-top: 20px; }
.about-eyebrow { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 13px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); }
.about-eyebrow::before { content: ""; width: 32px; height: 2px; border-radius: 2px; background: var(--sky); }
.about-intro__title { margin: 0; font-size: clamp(36px, 5vw, 68px); font-weight: 750; line-height: 1.04; letter-spacing: -0.03em; color: var(--navy); max-width: 15ch; text-wrap: balance; }
.about-intro__lead { margin: 24px 0 0; font-size: clamp(18px, 1.5vw, 21px); line-height: 1.65; color: var(--gray-600); max-width: 60ch; }
.about-facts { display: grid; margin: 36px 0 0; border-top: 1px solid var(--gray-200); }
.about-facts__item { padding: 14px 0; border-bottom: 1px solid var(--gray-200); }
.about-facts dt { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.about-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: 600; color: var(--navy); }
.about-intro__figure { margin: 0; justify-self: center; width: min(100%, 300px); padding: 24px 28px 28px 24px; border-radius: 28px; background: linear-gradient(160deg, var(--blue-50) 0%, #f7f9fd 70%); }
.about-intro__sheet { position: relative; aspect-ratio: 1; }
.about-intro__sheet::before { content: ""; position: absolute; inset: 0; border-radius: 18px; background: var(--kraft-50); box-shadow: 0 0 0 1px rgba(122, 90, 46, .08); transform: translate(10px, 10px) rotate(3deg); }
.about-intro__sheet img { position: relative; display: block; width: 100%; height: 100%; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: 0 24px 48px -24px rgba(13, 43, 110, .28), 0 0 0 1px rgba(13, 43, 110, .06); }

.about-body { padding-bottom: 16px; }
.about-block { display: grid; gap: 18px; padding: 48px 0; border-top: 1px solid var(--gray-200); scroll-margin-top: var(--header-h); }
.about-block__head { display: flex; flex-direction: column; gap: 10px; align-self: start; }
.about-block__num { font-size: 13px; font-weight: 700; letter-spacing: .14em; color: var(--sky); font-variant-numeric: tabular-nums; }
.about-block__title { margin: 0; font-size: clamp(26px, 2.6vw, 38px); font-weight: 720; line-height: 1.15; letter-spacing: -0.02em; color: var(--navy); }
.about-block__body { min-width: 0; max-width: 760px; }
.about-block__body p { margin: 0; color: var(--gray-600); font-size: 17px; line-height: 1.7; }
.about-prose p + p { margin-top: 16px; }
.about-block__body .about-prose__big { font-size: clamp(21px, 2vw, 27px); line-height: 1.4; font-weight: 600; color: var(--navy); letter-spacing: -0.01em; margin-bottom: 20px; }
.about-block__body .about-prose__lead { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.5; font-weight: 500; color: var(--navy); margin-bottom: 28px; }

.about-rows { list-style: none; border-top: 1px solid var(--gray-200); }
.about-rows__item { padding: 20px 0; border-bottom: 1px solid var(--gray-200); }
.about-rows__title { margin: 0 0 4px; font-size: 18px; font-weight: 650; color: var(--navy); }

.about-steps { list-style: none; counter-reset: step; }
.about-steps__item { position: relative; counter-increment: step; padding: 22px 0 22px 48px; border-top: 1px solid var(--gray-200); }
.about-steps__item:last-child { border-bottom: 1px solid var(--gray-200); }
.about-steps__item::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 20px; font-size: 24px; font-weight: 300; line-height: 1; letter-spacing: -0.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.about-steps__title { margin: 0 0 6px; font-size: 19px; font-weight: 650; line-height: 1.35; color: var(--navy); }

.about-audience { display: grid; gap: 12px; list-style: none; }
.about-audience__item { position: relative; padding: 26px 24px 24px; border: 1px solid var(--gray-200); border-radius: 18px; background: #fff; }
.about-audience__item::before { content: ""; position: absolute; top: -1px; left: 24px; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--primary); }
.about-audience__title { margin: 0 0 6px; font-size: 19px; font-weight: 650; color: var(--navy); }
.about-audience__item p { font-size: 16px; line-height: 1.6; }

.about-faq { border-top: 1px solid var(--gray-200); }
.about-faq__item { border-bottom: 1px solid var(--gray-200); }
.about-faq__q { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 0; cursor: pointer; list-style: none; border-radius: 6px; }
.about-faq__q::-webkit-details-marker { display: none; }
.about-faq__q h3 { margin: 0; font-size: 18px; font-weight: 650; line-height: 1.4; color: var(--navy); }
.about-faq__q::after { content: ""; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--blue-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231347c0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .2s ease; }
.about-faq__item[open] > .about-faq__q::after { transform: rotate(45deg); }
.about-faq__q:hover h3 { color: var(--primary); }
.about-faq__q:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.about-faq__a { padding: 0 48px 22px 0; }
.about-faq__a p { max-width: 62ch; }

.about-contacts { padding: 24px; border-radius: 18px; background: var(--gray-25); border: 1px solid var(--gray-100); }
.about-contacts__list { margin: 0; display: grid; gap: 10px; }
.about-contacts__row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.about-contacts__row dt { font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gray-500); }
.about-contacts__row dd { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.about-contacts__row a { color: var(--primary); }
.about-block__body .about-contacts__note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--gray-200); font-size: 16px; color: var(--gray-500); }

.about-cta { padding: 64px 0 80px; background: linear-gradient(180deg, #fff 0%, var(--blue-50) 100%); }
.about-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.about-cta__title { margin: 0; font-size: clamp(28px, 3.4vw, 46px); font-weight: 750; line-height: 1.12; letter-spacing: -0.025em; color: var(--navy); max-width: 20ch; text-wrap: balance; }
.about-cta__text { margin: 14px 0 28px; font-size: clamp(17px, 1.4vw, 19px); color: var(--gray-600); max-width: 48ch; }

@media (min-width: 640px) {
  .about-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; }
  .about-audience { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .about-contacts { padding: 28px 32px; }
}
@media (min-width: 768px) {
  .about-rows__item { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: baseline; }
  .about-rows__title { margin: 0; }
  .about-steps__item { padding-left: 88px; }
  .about-steps__item::before { top: 18px; font-size: 40px; }
  .about-block { padding: 64px 0; }
}
@media (min-width: 1024px) {
  .about-intro { padding-bottom: 88px; }
  .about-intro__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 72px; align-items: center; padding-top: 40px; }
  .about-intro__figure { width: 100%; max-width: 460px; padding: 36px 48px 48px 36px; justify-self: end; }
  .about-block { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; padding: 88px 0; }
  .about-block__head { position: sticky; top: calc(var(--header-h) + 32px); }
  .about-cta { padding: 96px 0 112px; }
}
@media (min-width: 1440px) {
  .about-block { gap: 72px; }
}

/* ---------- Особистий кабінет ---------- */
.page-account { padding-bottom: 56px; }
.page-head--account { flex-direction: column; align-items: flex-start; gap: 4px; }
.account-greeting { margin: 0; font-size: 16px; color: var(--gray-600); }
.account-layout { display: grid; gap: 20px; }
.account-nav__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; list-style: none; }
.account-nav:empty { min-height: 117px; }
.account-nav__link {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  background: #fff; color: var(--text); text-decoration: none; font-size: 14.5px; font-weight: 600; transition: border-color .15s, background-color .15s;
}
.account-nav__link .icon { color: var(--primary); width: 22px; height: 22px; }
.account-nav__label { flex: 1; min-width: 0; line-height: 1.25; }
.account-nav__link:hover { border-color: var(--primary); }
.account-nav__link[aria-current="page"] { background: var(--blue-50); border-color: var(--primary); color: var(--navy); }
.account-nav__count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--primary); color: #fff; font-size: 12px; line-height: 22px; text-align: center; }
.account-panel__title { margin: 0 0 16px; font-size: 22px; color: var(--navy); }
.account-panel__title:focus { outline: none; }
.account-panel__actions { margin-top: 16px; }
.account-panels:empty { min-height: 270px; }
.account-form { max-width: 720px; }
.account-form--card { margin-top: 16px; padding: 20px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.account-form__title { margin: 0 0 14px; font-size: 17px; color: var(--navy); }
.account-form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 4px; }
.account-form__status { margin: 0; font-size: 14.5px; color: var(--green-700); font-weight: 600; }
.account-form__status:empty { display: none; }
.account-form__note { margin: 16px 0 0; font-size: 13.5px; color: var(--gray-500); }
.address-list { display: grid; gap: 10px; list-style: none; }
.address-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 16px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: #fff; }
.address-card > .icon { color: var(--primary); margin-top: 2px; }
.address-card__text { flex: 1; min-width: 0; }
.address-card__line { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.address-card__comment { margin: 4px 0 0; font-size: 14px; color: var(--gray-500); overflow-wrap: anywhere; }
.address-card__remove { flex-shrink: 0; padding-inline: 12px; }
@media (min-width: 640px) { .account-nav__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } .account-nav:empty { min-height: 54px; } }
@media (min-width: 1024px) {
  .account-layout { grid-template-columns: 264px minmax(0, 1fr); gap: 40px; align-items: start; }
  .account-nav { position: sticky; top: calc(var(--header-h) + 16px); }
  .account-nav__list { grid-template-columns: 1fr; gap: 6px; }
  .account-nav__link { min-height: 52px; padding: 10px 14px; }
  .account-nav:empty { min-height: 226px; } .account-panels:empty { min-height: 279px; }
  .account-panel__title { font-size: 26px; margin-bottom: 20px; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--gray-50); border-top: 1px solid var(--gray-200); margin-top: 0; }
.footer__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; padding-block: 40px 24px; }
.footer__brand { grid-column: 1 / -1; }
.footer__brand p { margin: 12px 0 0; color: var(--gray-600); }
.footer__logo { display: inline-block; }
.footer__logo .logo--stacked { height: 84px; width: auto; }
.footer__title { margin: 0 0 6px; font-size: 15px; color: var(--navy); }
.footer__col ul { list-style: none; }
.footer__col a { display: inline-flex; align-items: center; min-height: 44px; color: var(--gray-600); text-decoration: none; font-size: 15px; }
.footer__col a:hover { color: var(--primary); text-decoration: underline; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 24px; padding-block: 16px 24px; border-top: 1px solid var(--gray-200); font-size: 13.5px; color: var(--gray-500); }
.footer__bottom p { margin: 0; }
@media (min-width: 640px) { .footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; } .footer__brand { grid-column: auto; } .footer__col a { min-height: 36px; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- Резерв місця під блоки, які рендерить JS (без зсуву макета) ---------- */
#breadcrumbs:empty { min-height: 52px; }
.catalog-count:empty::before { content: "\a0"; }
@media (max-width: 767px) { .catalog-count { flex-basis: 100%; } }
.catalog-mobile-bar:empty { min-height: 44px; }
#catalog-grid:empty { min-height: 100vh; }
.cat-grid:empty { min-height: 720px; }
.site-footer:empty { min-height: 700px; }
#popular-grid:empty { min-height: 910px; }
.hero__quick:empty { min-height: 124px; }
@media (min-width: 560px) { .hero__quick:empty { min-height: 80px; } }
@media (min-width: 640px) { .cat-grid:empty { min-height: 510px; } .site-footer:empty { min-height: 520px; } }
@media (min-width: 768px) { .cat-grid:empty { min-height: 490px; } }
@media (min-width: 768px) { #popular-grid:empty { min-height: 480px; } }
@media (min-width: 1024px) { .cat-grid:empty { min-height: 326px; } .site-footer:empty { min-height: 354px; } .hero__quick:empty { min-height: 124px; } .catalog-mobile-bar:empty { min-height: 0; } }
@media (min-width: 1280px) { .hero__quick:empty { min-height: 76px; } }
