/* ============================================================
   Bosstextile — дизайн-система
   Премиум-мінімалізм: тепла палітра, велика типографіка,
   багато повітря, стримана анімація.
   ------------------------------------------------------------
   ЗМІСТ
   01. Токени
   02. Скидання та база
   03. Типографіка
   04. Кнопки
   05. Хедер
   06. Hero
   07. Секції
   08. Категорії
   09. Каталог і картки товарів
   10. Переваги
   11. Кроки
   12. Цифри
   13. FAQ
   14. CTA-банер
   15. SEO-текст
   16. Футер
   17. Модалка та форма
   18. Плаваючі кнопки
   19. Сторінки категорій
   20. Службові сторінки
   21. Адаптив
   22. Анімації та a11y
   ============================================================ */

/* ===== 01. ТОКЕНИ ===== */
:root {
  /* Кольори */
  --cream:        #FAF7F2;
  --cream-2:      #F3EEE5;
  --surface:      #FFFFFF;
  --ink:          #12151A;
  --ink-2:        #2E353D;
  --ink-soft:     #454C55;
  --muted:        #6E7681;
  --line:         #E7E0D5;
  --line-soft:    #F0EBE2;

  --accent:       #A9762F;
  --accent-2:     #C08F42;
  --accent-ink:   #7C5320;
  --accent-soft:  #F5EBDB;
  --accent-glow:  rgba(169, 118, 47, .22);

  --success:      #1F7A4D;
  --success-soft: #E6F3EC;
  --danger:       #C0392B;

  --dark:         #12151A;
  --dark-line:    rgba(255, 255, 255, .1);

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

  /* Простір (крок 4px) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px;  --s-6: 24px;  --s-7: 32px;  --s-8: 40px;
  --s-9: 48px;  --s-10: 64px; --s-11: 80px;

  /* Радіуси */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --r-full: 999px;

  /* Тіні */
  --sh-xs: 0 1px 2px rgba(18, 21, 26, .05);
  --sh-sm: 0 2px 8px rgba(18, 21, 26, .06);
  --sh-md: 0 10px 30px -12px rgba(18, 21, 26, .16);
  --sh-lg: 0 28px 60px -24px rgba(18, 21, 26, .24);
  --sh-accent: 0 16px 36px -14px var(--accent-glow);

  /* Сітка */
  --container: 1240px;
  --gutter: 24px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: .18s var(--ease);
  --t-base: .32s var(--ease);
}

/* ===== 02. СКИДАННЯ ТА БАЗА ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
img { background: var(--cream-2); }

/* <picture> не має створювати власний бокс — інакше ламає
   абсолютне позиціонування та співвідношення сторін карток */
picture { display: contents; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 20px;
  border-radius: 0 0 var(--r-sm) 0;
}
.skip-link:focus { left: 0; }

/* ===== 03. ТИПОГРАФІКА ===== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.025em;
}

h1 { font-size: clamp(32px, 5.2vw, 58px); }
h2 { font-size: clamp(26px, 3.6vw, 42px); }
h3 { font-size: clamp(18px, 2vw, 22px); font-weight: 700; letter-spacing: -.015em; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: var(--r-full);
  padding: 7px 15px;
  margin-bottom: var(--s-5);
}

.lead {
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 62ch;
}

.accent-text { color: var(--accent); }

/* ===== 04. КНОПКИ ===== */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.005em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-base), background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex: none; }

.btn--primary { --btn-bg: var(--accent); box-shadow: var(--sh-accent); }
.btn--primary:hover { --btn-bg: var(--accent-2); }

.btn--dark { --btn-bg: var(--ink); }
.btn--dark:hover { --btn-bg: var(--ink-2); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); background: rgba(18, 21, 26, .03); }

.btn--light {
  --btn-bg: rgba(255, 255, 255, .1);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.btn--light:hover { background: rgba(255, 255, 255, .18); }

.btn--white { --btn-bg: #fff; --btn-fg: var(--ink); }

.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }
.btn--full { width: 100%; }

.btn[disabled] { opacity: .55; pointer-events: none; }

/* ===== 05. ХЕДЕР ===== */
.hdr {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.hdr.is-stuck {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(18, 21, 26, .3);
}

.hdr__inner {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: 76px;
}

.hdr__logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
  color: var(--ink);
}
.hdr__logo-mark { color: var(--accent); display: flex; }
.hdr__logo-text {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.hdr__logo-text span { color: var(--accent); }

.hdr__nav {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  margin-inline: auto;
}
.hdr__link {
  padding: 9px 14px;
  border-radius: var(--r-full);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background var(--t-fast), color var(--t-fast);
}
.hdr__link:hover { background: rgba(18, 21, 26, .05); color: var(--ink); }
.hdr__link.is-active { color: var(--ink); font-weight: 600; background: var(--accent-soft); }

.hdr__side { display: flex; align-items: center; gap: var(--s-3); flex: none; }

.hdr__phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  transition: color var(--t-fast);
}
.hdr__phone:hover { color: var(--accent); }
.hdr__phone svg { color: var(--accent); }

.hdr__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  cursor: pointer;
}

.hdr__mobile {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: var(--s-4) var(--gutter) var(--s-6);
  display: grid;
  gap: 2px;
}
.hdr__mobile[hidden] { display: none; }
.hdr__mobile-link {
  padding: 14px 4px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.hdr__mobile-cta { display: grid; gap: var(--s-3); margin-top: var(--s-5); }

/* ===== 06. HERO ===== */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 7vw, 104px);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1100px 520px at 82% -8%, rgba(169, 118, 47, .13), transparent 62%),
    radial-gradient(760px 420px at 6% 104%, rgba(169, 118, 47, .07), transparent 60%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 16px 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .7);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: var(--s-6);
}
.hero__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-soft);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px var(--success-soft); }
  50%      { box-shadow: 0 0 0 7px rgba(31, 122, 77, .07); }
}

.hero h1 { margin-bottom: var(--s-5); }

.hero__list {
  display: grid;
  gap: 11px;
  margin: var(--s-7) 0 var(--s-8);
}
.hero__list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
.hero__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--success);
  background: var(--success-soft);
  border-radius: 50%;
  padding: 3px;
  width: 21px; height: 21px;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  margin-top: var(--s-9);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}
.hero__trust-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
  line-height: 1.1;
}
.hero__trust-item span { font-size: 13.5px; color: var(--muted); }

/* Колаж у hero */
.hero__media {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.hero__shot {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  background: var(--cream-2);
}
.hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s var(--ease);
}
.hero__shot:hover img { transform: scale(1.045); }
.hero__shot--tall { grid-row: span 2; aspect-ratio: 3 / 4.2; }
.hero__shot--wide { aspect-ratio: 4 / 3.1; }

.hero__chip {
  position: absolute;
  left: var(--s-4);
  bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .93);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--sh-sm);
}
.hero__chip svg { color: var(--accent); }

/* ===== 07. СЕКЦІЇ ===== */
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--cream { background: var(--cream-2); }
.section--surface { background: var(--surface); }

.section__head {
  max-width: 760px;
  margin-bottom: clamp(32px, 4vw, 56px);
}
.section__head--center { margin-inline: auto; text-align: center; }
.section__head h2 { margin-bottom: var(--s-4); }
.section__head--center .lead { margin-inline: auto; }

/* ===== 08. КАТЕГОРІЇ ===== */
.cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-5);
}
.cat {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--ink);
  aspect-ratio: 4 / 3.2;
  isolation: isolate;
}
.cat img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  z-index: -2;
}
.cat::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(10, 12, 15, .88) 8%, rgba(10, 12, 15, .35) 46%, rgba(10, 12, 15, .05) 78%);
}
.cat:hover img { transform: scale(1.06); }

.cat__body {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.cat__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 3px;
}
.cat__desc { font-size: 13.5px; color: rgba(255, 255, 255, .74); }
.cat__count {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  padding: 6px 13px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .2);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

/* ===== 09. КАТАЛОГ І КАРТКИ ===== */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-7);
}
.filter {
  padding: 10px 19px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all var(--t-fast);
}
.filter:hover { border-color: var(--accent); color: var(--accent-ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

.grid-products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}

.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: transform var(--t-base), box-shadow var(--t-base), border-color var(--t-base);
}
.prod:hover {
  transform: translateY(-5px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
}
.prod[hidden] { display: none; }

.prod__media {
  position: relative;
  aspect-ratio: 4 / 3.4;
  overflow: hidden;
  background: var(--cream-2);
}
.prod__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.prod:hover .prod__media img { transform: scale(1.05); }

.prod__badges {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.badge {
  padding: 5px 11px;
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: 11.5px;
  font-weight: 700;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-xs);
}
.badge--hot { background: var(--accent); color: #fff; }
.badge--new { background: var(--ink); color: #fff; }

.prod__id {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: rgba(18, 21, 26, .72);
  backdrop-filter: blur(8px);
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  letter-spacing: .04em;
}

.prod__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--s-5) var(--s-5) var(--s-6);
}
.prod__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 5px;
  letter-spacing: -.02em;
}
.prod__tagline {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: var(--s-4);
}

.prod__specs {
  display: grid;
  gap: 7px;
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid var(--line-soft);
}
.prod__specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 13.5px;
}
.prod__specs span { color: var(--muted); }
.prod__specs b { font-weight: 600; color: var(--ink-2); text-align: right; }

.prod__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-3);
  margin-top: auto;
}
.prod__price { line-height: 1.2; }
.prod__price-old {
  display: block;
  font-size: 13px;
  color: var(--muted);
  text-decoration: line-through;
}
.prod__price-val {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
}
.prod__price-val small { font-size: 14px; font-weight: 600; color: var(--muted); }
.prod__price-req {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 7px 14px;
  border-radius: var(--r-full);
  display: inline-block;
}

.prod__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-ink);
  transition: gap var(--t-fast);
}
.prod__link:hover { gap: 12px; }

.catalog__empty {
  padding: var(--s-10) var(--s-5);
  text-align: center;
  color: var(--muted);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
}
.catalog__empty[hidden] { display: none; }

/* ===== 10. ПЕРЕВАГИ ===== */
.adv {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--s-5);
}
.adv__item {
  padding: var(--s-7) var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.adv__item:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.adv__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  margin-bottom: var(--s-5);
}
.adv__item h3 { margin-bottom: var(--s-2); font-size: 19px; }
.adv__item p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ===== 11. КРОКИ ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-7);
  margin-top: var(--s-6);
}
.step {
  position: relative;
  padding: var(--s-8) var(--s-6) var(--s-7);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.step__num {
  position: absolute;
  top: -22px;
  left: var(--s-6);
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  box-shadow: var(--sh-accent);
}
.step h3 { margin-bottom: var(--s-2); font-size: 19px; }
.step p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.65; }

/* ===== 12. ЦИФРИ ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--s-5);
  padding: clamp(32px, 4vw, 52px) clamp(24px, 4vw, 56px);
  border-radius: var(--r-xl);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(760px 300px at 88% 0%, rgba(169, 118, 47, .3), transparent 62%);
}
.stats__item { position: relative; text-align: center; }
.stats__val {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -.035em;
  line-height: 1.1;
}
.stats__label { font-size: 14px; color: rgba(255, 255, 255, .62); margin-top: 5px; }

/* ===== 13. FAQ ===== */
.faq { max-width: 880px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
  padding: var(--s-5) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.7vw, 18.5px);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.015em;
  transition: color var(--t-fast);
}
.faq__q:hover { color: var(--accent-ink); }
.faq__q svg { flex: none; color: var(--accent); transition: transform var(--t-base); }
.faq__item.is-open .faq__q svg { transform: rotate(180deg); }

.faq__a { overflow: hidden; height: 0; transition: height var(--t-base); }
.faq__a-inner {
  padding: 0 0 var(--s-6);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-soft);
  max-width: 74ch;
}

/* ===== 14. CTA-БАНЕР ===== */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--ink);
  padding: clamp(40px, 6vw, 76px);
  text-align: center;
}
.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 18% 0%, rgba(169, 118, 47, .34), transparent 64%),
    radial-gradient(560px 280px at 88% 108%, rgba(169, 118, 47, .2), transparent 62%);
}
.cta-band__inner { position: relative; max-width: 660px; margin-inline: auto; }
.cta-band h2 { color: #fff; margin-bottom: var(--s-4); }
.cta-band p { color: rgba(255, 255, 255, .72); font-size: 16.5px; margin-bottom: var(--s-7); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; }
.cta-band__note { margin-top: var(--s-5); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ===== 15. SEO-ТЕКСТ ===== */
.seo-text {
  max-width: 880px;
  margin-inline: auto;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.seo-text h2 { margin-bottom: var(--s-5); }
.seo-text h3 { margin: var(--s-7) 0 var(--s-3); }
.seo-text p { margin-bottom: var(--s-4); }
.seo-text strong { color: var(--ink); font-weight: 600; }

/* ===== 16. ФУТЕР ===== */
.ftr {
  background: var(--dark);
  color: rgba(255, 255, 255, .68);
  padding-top: clamp(48px, 6vw, 76px);
  margin-top: clamp(56px, 7vw, 96px);
}
.ftr__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: var(--s-8);
  padding-bottom: var(--s-9);
}
.ftr__col--brand .hdr__logo { color: #fff; margin-bottom: var(--s-4); }
.ftr__about { font-size: 14.5px; line-height: 1.7; max-width: 34ch; margin-bottom: var(--s-5); }

.ftr__socials { display: flex; gap: var(--s-2); }
.ftr__socials a {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--dark-line);
  color: #fff;
  transition: background var(--t-fast), transform var(--t-fast), border-color var(--t-fast);
}
.ftr__socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }

.ftr__title {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-5);
}
.ftr__list { display: grid; gap: 11px; font-size: 14.5px; }
.ftr__list a { transition: color var(--t-fast); }
.ftr__list a:hover { color: var(--accent-2); }
.ftr__list--contacts li { display: flex; align-items: center; gap: 9px; }
.ftr__list--contacts svg { color: var(--accent-2); flex: none; }
.ftr__list--contacts .is-muted { color: rgba(255, 255, 255, .5); }
.ftr__col .btn { margin-top: var(--s-5); }

.ftr__bottom { border-top: 1px solid var(--dark-line); padding: var(--s-5) 0; }
.ftr__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-6);
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .42);
}

/* ===== 17. МОДАЛКА ТА ФОРМА ===== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: var(--s-4);
  overflow-y: auto;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(12, 14, 18, .62);
  backdrop-filter: blur(5px);
  animation: fadeIn .25s var(--ease);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal__box {
  position: relative;
  width: min(100%, 520px);
  background: var(--surface);
  border-radius: var(--r-xl);
  padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--sh-lg);
  animation: popIn .34s var(--ease);
  margin: auto;
}
@keyframes popIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}

.modal__close {
  position: absolute;
  top: var(--s-4);
  right: var(--s-4);
  width: 40px; height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cream-2);
  color: var(--ink-soft);
  cursor: pointer;
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.modal__close:hover { background: var(--ink); color: #fff; transform: rotate(90deg); }

.modal__eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  border-radius: var(--r-full);
  padding: 6px 14px;
  margin-bottom: var(--s-4);
}
.modal__title { font-size: clamp(23px, 3vw, 29px); margin-bottom: var(--s-3); }
.modal__sub { font-size: 14.5px; color: var(--muted); line-height: 1.65; margin-bottom: var(--s-6); }

.form { display: grid; gap: var(--s-4); }
.form__row { display: grid; gap: 7px; }
.form__label {
  font-family: var(--font-display);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}
.form__label span { color: var(--accent); }

.form__input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--cream);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color var(--t-fast), background var(--t-fast), box-shadow var(--t-fast);
}
.form__input::placeholder { color: #A9AFB8; }
.form__input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form__input.is-invalid { border-color: var(--danger); background: #FEF6F5; }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236E7681' stroke-width='2' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 42px;
}
.form__textarea { resize: vertical; min-height: 84px; }

.form__error { font-size: 12.5px; color: var(--danger); }
.form__error:empty { display: none; }

.form__hp {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.form__note svg { flex: none; margin-top: 2px; color: var(--success); }
.form__note a { color: var(--accent-ink); text-decoration: underline; }

.modal__success { text-align: center; padding: var(--s-4) 0; }
.modal__success[hidden] { display: none; }
.modal__success-icon {
  width: 66px; height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-5);
  border-radius: 50%;
  background: var(--success-soft);
  color: var(--success);
}
.modal__success h3 { margin-bottom: var(--s-3); }
.modal__success p { color: var(--muted); font-size: 15px; }
.modal__success-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: center;
  margin-top: var(--s-5);
}

/* ===== 18. ПЛАВАЮЧІ КНОПКИ ===== */
.fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  gap: 10px;
}
.fab__btn {
  width: 54px; height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(18, 21, 26, .5);
  transition: transform var(--t-fast);
}
.fab__btn:hover { transform: scale(1.09) translateY(-2px); }
.fab__btn--tg { background: #229ED9; }
.fab__btn--wa { background: #25D366; }

/* ===== 19. СТОРІНКИ КАТЕГОРІЙ ===== */
.page-hero {
  padding: clamp(32px, 5vw, 64px) 0 clamp(28px, 4vw, 48px);
  background: var(--cream-2);
  border-bottom: 1px solid var(--line);
}
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: var(--s-5);
}
.breadcrumbs a { transition: color var(--t-fast); }
.breadcrumbs a:hover { color: var(--accent-ink); }
.breadcrumbs .sep { color: #C3C8CF; }

.page-hero h1 { margin-bottom: var(--s-4); }
.page-hero .lead { margin-bottom: var(--s-6); }

.hero-tags { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-6); }
.hero-tags span {
  padding: 8px 15px;
  border-radius: var(--r-full);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Блок «чому вигідно» на сторінці категорії */
.usp {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: var(--s-5);
}
.usp__item {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line);
}
.usp__item svg { flex: none; color: var(--accent); margin-top: 2px; }
.usp__item b {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 2px;
}
.usp__item span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

/* Блок фокусного товару на сторінці категорії */
.spotlight {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}
.spotlight__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--cream-2);
  box-shadow: var(--sh-md);
}
.spotlight__media img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.spotlight__body h2 { margin-bottom: var(--s-4); }
.spotlight__specs {
  display: grid;
  gap: 0;
  margin: var(--s-6) 0;
  border-top: 1px solid var(--line);
}
.spotlight__specs li {
  display: flex;
  justify-content: space-between;
  gap: var(--s-5);
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.spotlight__specs span { color: var(--muted); }
.spotlight__specs b { font-weight: 600; color: var(--ink); text-align: right; }
.spotlight__cta { display: flex; flex-wrap: wrap; gap: var(--s-3); }

@media (max-width: 900px) {
  .spotlight { grid-template-columns: 1fr; }
  .spotlight__media img { aspect-ratio: 4 / 3; }
}
@media (max-width: 720px) {
  .spotlight__cta .btn { width: 100%; }
  .spotlight__specs li { flex-direction: column; gap: 2px; }
  .spotlight__specs b { text-align: left; }
}

/* ===== 20. СЛУЖБОВІ СТОРІНКИ ===== */
.legal {
  max-width: 800px;
  margin-inline: auto;
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}
.legal h2 { font-size: clamp(20px, 2.4vw, 26px); margin: var(--s-8) 0 var(--s-4); }
.legal h2:first-child { margin-top: 0; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: var(--s-4); }
.legal li { margin-bottom: 7px; }
.legal a { color: var(--accent-ink); text-decoration: underline; }

.err-404 { text-align: center; padding: clamp(48px, 8vw, 110px) 0; }
.err-404__code {
  font-family: var(--font-display);
  font-size: clamp(80px, 16vw, 170px);
  font-weight: 800;
  line-height: .9;
  letter-spacing: -.05em;
  color: var(--accent);
  opacity: .28;
}

/* ===== 21. АДАПТИВ ===== */
@media (max-width: 1080px) {
  .hdr__nav { display: none; }
  .hdr__phone { display: none; }
  .hdr__burger { display: flex; }
  .ftr__inner { grid-template-columns: 1fr 1fr; gap: var(--s-7); }
}

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
  .hero__shot--tall { aspect-ratio: 4 / 3.6; grid-row: span 1; }
  .hero__shot--wide { aspect-ratio: 4 / 3.6; }
  .hero__trust { margin-top: var(--s-7); padding-top: var(--s-6); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; }
  .hdr__side .btn { display: none; }
  .grid-products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .hero__actions .btn { width: 100%; }
  .cta-band__actions .btn { width: 100%; }
  .ftr__inner { grid-template-columns: 1fr; }
  .stats { gap: var(--s-6) var(--s-4); }
  .modal { padding: 0; align-items: flex-end; }
  .modal__box {
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    max-height: 94vh;
    overflow-y: auto;
  }
}

@media (max-width: 480px) {
  .grid-products { grid-template-columns: 1fr; }
  .hero__trust { gap: var(--s-4) var(--s-6); }
  .hero__trust-item strong { font-size: 22px; }
  .prod__foot { flex-direction: column; align-items: stretch; gap: var(--s-3); }
  .prod__link { justify-content: space-between; }
  .steps { gap: var(--s-8); }
}

/* ===== 22. АНІМАЦІЇ ТА A11Y ===== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media print {
  .hdr, .fab, .modal, .cta-band { display: none !important; }
  body { background: #fff; }
}
