/* ============================================================
   ДИЗАЙН-ТОКЕНИ
   Палітра: тепле «лляне» світло + чорнило + золото (як у зразку,
   але сучасно). Мотив-сигнатура: смуги «день-ніч».
   ============================================================ */
:root {
  --ink:        #221e17;   /* теплий майже-чорний */
  --ink-soft:   #4b4437;
  --muted:      #8a8171;
  --paper:      #faf7f1;   /* лляний фон */
  --card:       #ffffff;
  --sand:       #f1ebdf;   /* тонований фон секцій */
  --line:       #e6ddcc;
  --amber:      #e9a11b;   /* золото — акцент */
  --amber-deep: #c07f06;
  --amber-soft: #fdf3de;

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 10px;

  --shadow-card: 0 1px 2px rgba(34,30,23,.05), 0 12px 32px -12px rgba(34,30,23,.14);
  --shadow-pop:  0 2px 6px rgba(34,30,23,.08), 0 24px 48px -16px rgba(34,30,23,.22);

  --ease: cubic-bezier(.22,.8,.3,1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* атрибут hidden має перемагати будь-який display у правилах нижче */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }

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

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 24px -18px rgba(34,30,23,.25);
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  min-height: 76px;
}

.logo { position: relative; display: inline-flex; align-items: center; gap: 10px; }
/* Логотип-картинка: висота фіксована, ширина за пропорціями файлу */
.logo__img { display: block; height: 44px; width: auto; max-width: 220px; object-fit: contain; }
.logo__img--footer { height: 48px; }

/* Два логотипи один поверх одного. Темний — типовий, світлий проявляється,
   поки шапка на головній прозора й лежить на фото. Плавно, бо шапка теж
   міняє фон плавно. */
.logo__img--dark, .logo__img--light { transition: opacity .3s var(--ease); }
.logo__img--light {
  position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  opacity: 0; pointer-events: none;
}
body.is-home .header:not(.is-scrolled):not(.is-navopen) .logo__img--light { opacity: 1; }
body.is-home .header:not(.is-scrolled):not(.is-navopen) .logo__img--dark { opacity: 0; }
.logo__mark { width: 34px; height: 34px; color: var(--ink); }
.logo__text {
  font-family: var(--font-display);
  font-weight: 600; font-size: 19px; letter-spacing: .02em;
}
.logo__dot { color: var(--amber); }

.nav { display: flex; gap: 4px; margin-inline: auto; }

.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: 0; z-index: 60;
  display: flex; flex-direction: column; gap: 2px;
  min-width: 230px; padding: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 14px;
  box-shadow: 0 2px 6px rgba(34,30,23,.08), 0 20px 40px -16px rgba(34,30,23,.28);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav__menu a {
  padding: 10px 12px; border-radius: 10px;
  font-weight: 600; font-size: 14px; color: var(--ink-soft);
}
.nav__menu a:hover { background: var(--sand); color: var(--ink); }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-weight: 600; font-size: 15px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.nav__link:hover { background: var(--sand); color: var(--ink); }
.nav__link--active { color: var(--ink); position: relative; }
.nav__link--active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px;
  height: 3px; border-radius: 2px; background: var(--amber);
}
.nav__chev { width: 11px; height: 11px; opacity: .6; }

.header__side { display: flex; align-items: center; gap: 6px; }
.header__phone {
  display: flex; align-items: center; gap: 10px;
  margin-right: 8px; color: var(--ink);
}
.header__phone .icon { color: var(--amber-deep); }
.header__phone b { display: block; font-size: 14.5px; line-height: 1.2; }
.header__phone small { display: block; font-size: 11.5px; color: var(--muted); }

.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  transition: background .2s;
}
.iconbtn:hover { background: var(--sand); }
.iconbtn__badge {
  position: absolute; top: 3px; right: 1px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--amber); color: var(--ink);
  font-size: 10.5px; font-weight: 700; border-radius: 999px;
}

.burger { display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 50%; }
.burger span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px;
  transition: transform .2s var(--ease), box-shadow .2s, background .2s, border-color .2s;
}
.btn--primary {
  background: var(--amber); color: var(--ink);
  box-shadow: 0 10px 24px -10px rgba(233,161,27,.7);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(233,161,27,.8); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost { border: 1.5px solid var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 18px 30px; font-size: 17px; }
.btn__arrow { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.btn--primary:hover .btn__arrow { transform: translateX(4px); }

/* ============================================================
   ГОЛОВНА: ШАПКА ПОВЕРХ ФОТО
   Шапка лежить на фото, поки сторінка не прокручена. Стилі навмисно
   замкнені на body.is-home — інші сторінки лишаються як були.
   ============================================================ */
body.is-home .header {
  position: fixed; left: 0; right: 0;
  background: transparent; backdrop-filter: none;
  transition: background-color .3s, border-color .25s, box-shadow .25s;
}
body.is-home .header.is-scrolled,
body.is-home .header.is-navopen {
  background: rgba(250,247,241,.94); backdrop-filter: blur(10px);
}

/* Світлий варіант шапки. Діє тільки поки шапка прозора. */
body.is-home .header:not(.is-scrolled):not(.is-navopen) .logo__text,
body.is-home .header:not(.is-scrolled):not(.is-navopen) .logo__mark,
body.is-home .header:not(.is-scrolled):not(.is-navopen) .nav__link,
body.is-home .header:not(.is-scrolled):not(.is-navopen) .header__phone,
body.is-home .header:not(.is-scrolled):not(.is-navopen) .iconbtn { color: #fff; }
body.is-home .header:not(.is-scrolled):not(.is-navopen) .header__phone small { color: rgba(255,255,255,.72); }
body.is-home .header:not(.is-scrolled):not(.is-navopen) .header__phone .icon { color: var(--amber); }
body.is-home .header:not(.is-scrolled):not(.is-navopen) .nav__link:hover,
body.is-home .header:not(.is-scrolled):not(.is-navopen) .iconbtn:hover { background: rgba(255,255,255,.18); color: #fff; }
body.is-home .header:not(.is-scrolled):not(.is-navopen) .burger span { background: #fff; }

/* Якір «Каталог» не має ховатись під фіксовану шапку */
body.is-home [id] { scroll-margin-top: 92px; }

/* ============================================================
   ГЕРОЙ: ФОТОСЛАЙДЕР
   ============================================================ */
.hero {
  position: relative;
  min-height: 600px; height: min(92vh, 820px);
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--ink);
}

.hero__stage { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.hero__slide {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  margin: 0; opacity: 0;
  transition: opacity 1.1s var(--ease);
}
.hero__slide.is-active { opacity: 1; }
.hero__slide img { width: 100%; height: 100%; object-fit: cover; }
/* Повільний наїзд камери. Живе тільки на активному кадрі, тож між
   перемиканнями рух не накопичується. */
.hero__slide.is-active img { animation: heroZoom 7s var(--ease) forwards; }
@keyframes heroZoom {
  from { transform: scale(1.005); }
  to   { transform: scale(1.075); }
}

/* Затемнення: густіше зліва під текстом, знизу переходить у колір сторінки */
.hero__scrim {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  background:
    linear-gradient(180deg, rgba(24,20,14,.55) 0%, rgba(24,20,14,0) 26%),
    linear-gradient(96deg, rgba(24,20,14,.86) 0%, rgba(24,20,14,.6) 40%, rgba(24,20,14,.16) 72%, rgba(24,20,14,.42) 100%);
}
.hero__fade {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 130px;
  background: linear-gradient(180deg, rgba(250,247,241,0), var(--paper));
}

.hero__inner { position: relative; z-index: 2; padding: 96px 0 120px; }
.hero__text { max-width: 620px; color: #fff; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 600; font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero__title em { font-style: normal; position: relative; white-space: nowrap; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em;
  height: .13em; border-radius: 3px; background: var(--amber);
  transform: scaleX(0); transform-origin: left;
  animation: heroUnderline .7s var(--ease) .75s forwards;
}
@keyframes heroUnderline { to { transform: scaleX(1); } }

.hero__lead {
  margin-top: 22px; max-width: 46ch;
  font-size: 17.5px; line-height: 1.6; color: rgba(255,255,255,.84);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__cta .btn--ghost {
  border-color: rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.06);
}
.hero__cta .btn--ghost:hover { background: rgba(255,255,255,.16); border-color: #fff; }

/* Поява вмісту при завантаженні — єдиний поставлений момент на сторінці */
.hero__title, .hero__lead, .hero__cta {
  opacity: 0; transform: translateY(18px);
  animation: heroIn .8s var(--ease) forwards;
}
.hero__title { animation-delay: .12s; }
.hero__lead  { animation-delay: .26s; }
.hero__cta   { animation-delay: .4s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }

.hero__dots {
  position: absolute; z-index: 4; bottom: 122px; left: 50%;
  width: min(1240px, 100% - 40px); transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero__dot {
  width: 34px; height: 4px; padding: 0; border-radius: 999px;
  background: rgba(255,255,255,.4);
  transition: background .25s, width .25s var(--ease);
}
.hero__dot:hover { background: rgba(255,255,255,.7); }
.hero__dot[aria-current="true"] { background: var(--amber); width: 56px; }

/* ============================================================
   СМУГА ПЕРЕВАГ (заходить на фото)
   ============================================================ */
.strip {
  position: relative; z-index: 3;
  margin-top: -76px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.strip__item { display: flex; gap: 14px; padding: 26px 24px; }
.strip__item + .strip__item { border-left: 1px solid var(--line); }
.strip__ico {
  flex: none; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--amber-soft); color: var(--amber-deep);
}
.strip__ico svg { width: 22px; height: 22px; }
.strip__title { font-size: 15px; font-weight: 800; line-height: 1.3; }
.strip__text { margin-top: 6px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- Цифри ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 20px; padding: 40px 0 4px;
}
.stats__item { display: flex; align-items: center; gap: 14px; }
.stats__item + .stats__item { border-left: 1px solid var(--line); padding-left: 20px; }
.stats__ico { color: var(--amber-deep); }
.stats__ico svg { width: 26px; height: 26px; }
.stats__num {
  display: block; font-family: var(--font-display);
  font-weight: 600; font-size: 25px; line-height: 1.1;
}
.stats__label { font-size: 13.5px; color: var(--muted); }

/* ============================================================
   СЕКЦІЇ
   ============================================================ */
.section { padding: 76px 0; }
.section--tint { background: var(--sand); }

.section__head {
  display: flex; align-items: end; justify-content: space-between; gap: 20px;
  margin-bottom: 38px;
}
.section__head--center { justify-content: center; text-align: center; }
.section__label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--amber-deep);
}
.section__label::before {
  content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--amber);
}
.section__head--center .section__label { justify-content: center; }
.section__head--center .section__label::before { display: none; }
.section__title {
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 34px); font-weight: 600;
  margin-top: 8px; letter-spacing: -.01em;
}
.section__all {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: 15px; color: var(--ink-soft);
  padding-bottom: 6px;
}
.section__all .icon { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.section__all:hover { color: var(--ink); }
.section__all:hover .icon { transform: translateX(4px); }

.grid { display: grid; gap: 22px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--cats { grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }

/* ---------- Картка категорії ---------- */
.card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-pop); }

.card__media {
  display: block; aspect-ratio: 4 / 3; overflow: hidden;
  background:
    linear-gradient(150deg, #efe8d9 0%, #e4dac4 100%);
}
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.card:hover .card__media img { transform: scale(1.06); }

.card__body {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 18px;
}
.card__name { font-weight: 700; font-size: 15.5px; }
.card__arrow {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--sand); color: var(--ink);
  transition: background .25s, color .25s, transform .25s var(--ease);
}
.card__arrow svg { width: 16px; height: 16px; }
.card:hover .card__arrow { background: var(--amber); transform: rotate(-45deg); }

/* ---------- Переваги ---------- */
.perk {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 28px 26px;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.perk:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }
.perk__ico {
  display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: var(--amber-soft); color: var(--amber-deep);
  margin-bottom: 18px;
}
.perk__ico svg { width: 30px; height: 30px; }
.perk__title { font-size: 17px; font-weight: 800; }
.perk__text { margin-top: 8px; font-size: 14.5px; color: var(--muted); }

/* ---------- CTA ---------- */

/* ============================================================
   ЯК МИ ПРАЦЮЄМО
   Нумерація тут доречна: це справді послідовність кроків,
   а не просто чотири однакові картки.
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.flow__item { position: relative; padding: 0 12px; text-align: center; }
/* Пунктир між кроками. Тягнеться в проміжок до наступної колонки. */
.flow__item:not(:last-child)::after {
  content: ""; position: absolute; top: 33px; left: calc(50% + 46px); right: calc(-50% + 46px);
  border-top: 2px dashed var(--line);
}
.flow__ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; margin: 0 auto;
  width: 66px; height: 66px; border-radius: 50%;
  background: var(--amber-soft); color: var(--amber-deep);
  border: 1.5px solid var(--line);
}
.flow__ico svg { width: 28px; height: 28px; }
.flow__title { margin-top: 18px; font-size: 16px; font-weight: 800; }
.flow__title b { color: var(--amber-deep); font-weight: 800; }
.flow__text { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--muted); }

/* «Зроблено в Україні»: серце у кольорах прапора */
.madein { display: inline-flex; align-items: center; gap: 7px; }
.madein__heart { width: 16px; height: 16px; flex: none; }


.cta {
  /* Одне джерело правди для ширини помаранчевої частини і нахилу краю:
     фото рахує свою позицію від них же, тому шва між ними бути не може. */
  --cta-split: 62%;
  --cta-skew: 78px;
  position: relative; display: flex; align-items: stretch;
  min-height: 300px;
  background: var(--amber);
  border-radius: 28px; overflow: hidden;
  isolation: isolate;
}
.cta__panel {
  position: relative; z-index: 1;
  flex: 0 0 var(--cta-split);
  display: flex; align-items: center;
  padding: 44px 52px;
  background: linear-gradient(118deg, var(--amber) 0%, #f3ba46 100%);
  /* Косий правий край: помаранчева панель заходить на фото. */
  clip-path: polygon(0 0, calc(100% - var(--cta-skew)) 0, 100% 100%, 0 100%);
}
.cta__stripes {
  position: absolute; top: 0; right: 0; bottom: 0; left: 0;
  display: flex; gap: 30px;
  transform: rotate(-14deg) scale(1.5);
  opacity: .1; pointer-events: none;
}
.cta__stripes i { flex: 1; background: var(--ink); }
.cta__text { position: relative; max-width: 46ch; }
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(21px, 2.6vw, 30px); font-weight: 600; line-height: 1.15;
}
.cta__lead { margin-top: 10px; font-weight: 500; color: rgba(34,30,23,.78); }

.cta__phone {
  display: inline-flex; align-items: center; gap: 12px; white-space: nowrap;
  margin-top: 26px; padding: 8px 26px 8px 8px;
  border-radius: 999px; background: var(--ink); color: var(--paper);
  font-weight: 700; font-size: 16.5px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.cta__phone:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(34,30,23,.55); }
.cta__phone-ico {
  display: grid; place-items: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(250,247,241,.14);
}
.cta__phone-ico svg { width: 19px; height: 19px; }

/* Фото прибите до країв блока абсолютно: за flex-розтягування воно
   вилазило на пів пікселя за округлений кут. */
.cta__media {
  position: absolute; z-index: 0;
  top: 0; right: 0; bottom: 0;
  left: calc(var(--cta-split) - var(--cta-skew) - 1px);
  /* Округлюємо ЛИШЕ праві кути. З `border-radius: inherit` заокруглювались
     і ліві — а вони всередині банера, тож на їхньому місці прозирав фон
     і край фото виглядав підігнутим. */
  border-radius: 0 28px 28px 0; overflow: hidden;
}
.cta__media img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Смуги пробігають один раз, коли банер з'являється в полі зору */
.cta.is-visible .cta__stripes i { animation: ctaSweep .75s var(--ease) backwards; }
.cta.is-visible .cta__stripes i:nth-child(1) { animation-delay: .10s; }
.cta.is-visible .cta__stripes i:nth-child(2) { animation-delay: .17s; }
.cta.is-visible .cta__stripes i:nth-child(3) { animation-delay: .24s; }
.cta.is-visible .cta__stripes i:nth-child(4) { animation-delay: .31s; }
.cta.is-visible .cta__stripes i:nth-child(5) { animation-delay: .38s; }
.cta.is-visible .cta__stripes i:nth-child(6) { animation-delay: .45s; }
@keyframes ctaSweep {
  from { transform: translateX(-160%); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer {
  background: var(--ink); color: var(--paper);
  margin-top: 20px; padding-top: 62px;
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px; padding-bottom: 48px;
}
.logo--footer { color: #fff; }
.logo--footer .logo__mark { color: #fff; }
.footer__about { margin-top: 16px; font-size: 14px; color: rgba(250,247,241,.6); max-width: 34ch; }

.footer__h {
  font-size: 13px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--amber);
  margin-bottom: 16px;
}
.footer__col a { display: block; padding: 5px 0; font-size: 14.5px; color: rgba(250,247,241,.75); transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__col p { font-size: 14.5px; color: rgba(250,247,241,.6); margin-top: 8px; }
.footer__phone { font-weight: 800; font-size: 17px !important; color: #fff !important; }
.footer__pay { display: flex; align-items: center; gap: 10px; }
.paycard { width: 34px; height: 22px; color: var(--amber); flex: none; }

/* Пошта у футері: той самий розмір, що й у решти посилань колонки,
   але з іконкою, тож рядок має бути flex, а не block. */
.footer__mail {
  display: flex !important; align-items: center; gap: 8px;
  word-break: break-all;
}
.footer__mail-ico { width: 17px; height: 17px; color: var(--amber); flex: none; }
.footer__seller { text-align: center; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: 20px;
  font-size: 13px; color: rgba(250,247,241,.5);
}

/* ============================================================
   ПОЯВА ПРИ СКРОЛІ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: .07s; }
.grid .reveal:nth-child(3) { transition-delay: .14s; }
.grid .reveal:nth-child(4) { transition-delay: .21s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__title, .hero__lead, .hero__cta { opacity: 1; transform: none; }
  .hero__title em::after { transform: scaleX(1); }
}

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1100px) {
  .grid--4 { grid-template-columns: repeat(3, 1fr); }
  .header__phone small { display: none; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 76px 0 auto 0; z-index: 49;
    flex-direction: column; gap: 2px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 22px;
    box-shadow: 0 24px 40px -20px rgba(34,30,23,.25);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    /* pointer-events обов'язковий: поки йде анімація закриття, меню ще
       перехоплювало натискання і перекидало на свої посилання. */
    pointer-events: none;
    transition: transform .25s var(--ease), opacity .25s, visibility .25s;
  }
  .logo__img { height: 36px; max-width: 150px; }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__link { padding: 12px 14px; border-radius: 12px; }
  .nav__link--active::after { display: none; }
  .nav__drop .nav__link .nav__chev { display: none; }
  .nav__menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; background: transparent;
  }
  .burger { display: flex; }
  .header__phone b { font-size: 13.5px; }

  .hero { min-height: 520px; height: min(80vh, 640px); }
  .hero__inner { padding: 80px 0 96px; }
  .hero__dots { bottom: 96px; }

  .strip { grid-template-columns: 1fr 1fr; margin-top: -52px; }
  /* на два стовпці рамки треба перерахувати: лівий край лише у правій колонці */
  .strip__item + .strip__item { border-left: 0; }
  .strip__item:nth-child(even) { border-left: 1px solid var(--line); }
  .strip__item:nth-child(n+3) { border-top: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .stats__item:nth-child(odd) { border-left: 0; padding-left: 0; }

  .flow { grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .flow__item:nth-child(2)::after { display: none; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }

  .cta { --cta-split: 64%; --cta-skew: 46px; min-height: 250px; }
  .cta__panel { padding: 30px 26px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 56px 0; }
  .header__phone { display: none; }
  .hero { min-height: 500px; height: 82vh; }
  .hero__scrim {
    background: linear-gradient(180deg,
      rgba(24,20,14,.88) 0%, rgba(24,20,14,.66) 48%,
      rgba(24,20,14,.3) 76%, rgba(24,20,14,.5) 100%);
  }
  .hero__inner { padding: 76px 0 84px; }
  .hero__lead { font-size: 16px; }
  .hero__cta { gap: 10px; }
  .hero__cta .btn { flex: 1 1 100%; justify-content: center; }

  .strip { grid-template-columns: 1fr; margin-top: -40px; }
  .strip__item:nth-child(even) { border-left: 0; }
  .strip__item + .strip__item { border-top: 1px solid var(--line); }

  .stats { grid-template-columns: 1fr 1fr; gap: 20px; padding-top: 32px; }
  .stats__item { gap: 10px; }
  .stats__item:nth-child(even) { border-left: 1px solid var(--line); padding-left: 16px; }
  .stats__num { font-size: 21px; }

  .flow__item:not(:last-child)::after { display: none; }

  /* Банер лишається в рядок, як на ПК, але текст мусить вміститись
     у вузьку помаранчеву частину і не налізти на косий край. */
  /* На телефоні фото прибираємо: смужка в третину екрана нічого не додає */
  .cta { --cta-split: 100%; min-height: 0; }
  .cta__media { display: none; }
  .cta__panel { padding: 26px 22px; clip-path: none; }
  .cta__text { max-width: none; padding-right: 0; }
  .cta__title { font-size: 18px; }
  .cta__lead { margin-top: 7px; font-size: 12.5px; line-height: 1.45; }
  .cta__phone { margin-top: 14px; padding: 4px 13px 4px 4px; font-size: 13px; gap: 8px; }
  .cta__phone-ico { width: 30px; height: 30px; }
  .cta__phone-ico svg { width: 15px; height: 15px; }
  .steps { --step-size: 42px; }
  .steps__dot svg { width: 19px; height: 19px; }
  .steps__name { font-size: 11.5px; }
  .grid { gap: 14px; }
  .grid--4, .grid--cats { grid-template-columns: 1fr 1fr; }
  .card__body { padding: 12px 14px; }
  .card__name { font-size: 13.5px; }
  .card__arrow { width: 32px; height: 32px; }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}

/* ============================================================
   ПОШУК (ОВЕРЛЕЙ) І КОШИК (ШУХЛЯДА)
   ============================================================ */
.overlay { position: fixed; inset: 0; z-index: 90; }
.overlay[hidden] { display: none; }
.overlay__backdrop {
  position: absolute; inset: 0;
  background: rgba(34,30,23,.45);
  backdrop-filter: blur(2px);
  animation: fade-in .2s var(--ease);
}
@keyframes fade-in { from { opacity: 0; } }
.overlay__close {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 50%;
  transition: background .2s;
}
.overlay__close:hover { background: var(--sand); }
.overlay__close svg { width: 18px; height: 18px; }

/* --- Пошук --- */
.search-sheet {
  position: absolute; top: 0; left: 0; right: 0;
  background: var(--paper);
  border-radius: 0 0 26px 26px;
  box-shadow: var(--shadow-pop);
  padding: 22px clamp(16px, 5vw, 48px) 28px;
  animation: sheet-down .25s var(--ease);
}
@keyframes sheet-down { from { transform: translateY(-24px); opacity: 0; } }
.search-sheet__row { display: flex; align-items: center; gap: 14px; max-width: 860px; margin-inline: auto; }
.search-sheet__row > .icon { color: var(--muted); }
.search-sheet__input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 18px; color: var(--ink);
  background: none; border: 0; outline: none;
  padding: 12px 0;
  border-bottom: 2px solid var(--line);
  transition: border-color .2s;
}
.search-sheet__input:focus { border-color: var(--amber); }
.search-sheet__label {
  max-width: 860px; margin: 22px auto 10px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted);
}
.search-sheet__links { display: flex; flex-wrap: wrap; gap: 10px; max-width: 860px; margin-inline: auto; }
.search-sheet__links a {
  padding: 9px 16px; border-radius: 999px;
  background: var(--sand); font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s var(--ease);
}
.search-sheet__links a:hover { background: var(--amber); transform: translateY(-2px); }

/* --- Кошик --- */
.cart-drawer {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  display: flex; flex-direction: column;
  background: var(--paper);
  box-shadow: var(--shadow-pop);
  animation: drawer-in .28s var(--ease);
}
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.cart-drawer__title { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.cart-drawer__empty {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 18px;
  padding: 32px; text-align: center;
}
.cart-drawer__empty svg { width: 64px; height: 64px; color: var(--line); }
.cart-drawer__text { font-weight: 700; color: var(--muted); }

body.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .overlay__backdrop, .search-sheet, .cart-drawer { animation: none; }
}

/* ============================================================
   СТОРІНКА КАТЕГОРІЇ + ПОРОЖНІ СТАНИ
   ============================================================ */
.breadcrumbs {
  display: flex; gap: 10px; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--muted);
  margin-bottom: 26px;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.catpage { padding-top: 44px; }

.product-card { cursor: default; }
.product-card:hover .card__media img { transform: scale(1.04); }
/* Фото товару показуємо повністю, без обрізання: сервер зберігає
   пропорції оригіналу, тож рамка 4:3 зрізала частину кадру.
   Обкладинки категорій лишаються в своїй рамці. */
.product-card .card__media { aspect-ratio: auto; }
.product-card .card__media img { height: auto; object-fit: contain; }

/* Картки в ряду однакової висоти, а назви різної довжини. Без цих
   двох рядків кнопка сиділа одразу під назвою і стрибала. */
.product-card__body {
  flex: 1;
  padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px;
}
.product-card__name { font-size: 15.5px; font-weight: 700; margin: 0; }
.product-card__price {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 600; color: var(--amber-deep);
  margin: 0;
}
.product-card__price span { font-family: var(--font-body); font-size: 13px; font-weight: 700; color: var(--muted); }
.product-card__btn { justify-content: center; padding: 12px 14px; font-size: 14px; margin-top: auto; white-space: nowrap; }

.catalog-empty {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 46px 30px; text-align: center;
  font-weight: 600; color: var(--muted);
}

/* ============================================================
   СТОРІНКА ТОВАРУ
   ============================================================ */
.pp__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.8vw, 32px); font-weight: 600;
  margin: 0 0 28px; letter-spacing: -.01em;
}
/* Калькулятор притиснутий праворуч через float: завдяки цьому опис,
   опустившись нижче калькулятора, розтікається на всю ширину сторінки */
.pp { display: block; }
.pp::after { content: ''; display: block; clear: both; }
.pp__calc { float: right; width: 38%; max-width: 460px; margin: 0 0 28px 34px; }
.pp__gallery { margin-bottom: 28px; }

/* --- Галерея --- */
.pp__gallery { display: grid; grid-template-columns: 84px 1fr; gap: 14px; }
.pp__gallery--single { grid-template-columns: 1fr; }
.pp__thumbs { display: flex; flex-direction: column; gap: 10px; }
.pp__thumb {
  border-radius: 12px; overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
  aspect-ratio: 4 / 3; background: var(--sand);
}
.pp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__thumb.is-active { border-color: var(--amber); }
.pp__main {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--sand); cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-card);
}
.pp__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(255,255,255,.9); color: var(--ink);
  box-shadow: var(--shadow-card);
}
.pp__zoom svg { width: 20px; height: 20px; }

/* --- Калькулятор --- */
.pp__calc {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: 26px;
}
/* Кнопка швидкого замовлення: дзвінок на головний номер */
.btn--oneclick {
  width: 100%; justify-content: center;
  background: var(--ink); color: #fff;
  border: 0;
}
.btn--oneclick:hover { background: #35302a; transform: translateY(-2px); }

.pp__pricebox { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
/* Артикул поруч із ціною: своя рядкова смуга, щоб не тиснув цифри */
.pp__sku {
  display: inline-flex; align-items: center; gap: 6px;
  flex-basis: 100%; width: fit-content; margin-top: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--sand); border: 1.5px solid var(--line);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.pp__sku b { font-size: 14.5px; color: var(--ink); letter-spacing: .01em; }
.pp__pricefrom { font-weight: 700; font-size: 14.5px; color: var(--muted); }
.pp__price { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--amber-deep); }
.pp__price i { font-style: normal; font-family: var(--font-body); font-size: 15px; font-weight: 700; color: var(--muted); }
/* Підпис-роздільник: назва блоку, далі волосяна лінія до краю.
   Так розміри й сторона керування читаються як окремі кроки. */
.pp__calc-label {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; font-size: 14px; margin: 0 0 12px;
  white-space: nowrap;
}
.pp__calc-label::after {
  content: ""; flex: 1; height: 1px; min-width: 20px;
  background: var(--line);
}
/* у кількості лінія заважає: поруч лічильник */
.pp__qty .pp__calc-label::after { display: none; }

/* поля форм на публічних сторінках */
.field { display: block; margin-bottom: 16px; }
.field__label {
  display: block; margin-bottom: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--muted);
}
.field__input {
  width: 100%; padding: 13px 14px; font: inherit; font-size: 15px;
  color: var(--ink);
  border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--paper);
  transition: border-color .2s, background .2s;
}
.field__input::placeholder { color: var(--muted); opacity: .75; }
.field__input:hover { border-color: var(--amber); }
.field__input:focus { outline: none; border-color: var(--amber); background: #fff; }
.form-msg {
  margin: 0 0 12px; padding: 11px 13px; border-radius: 12px;
  background: #f6e3de; color: #a33b26;
  font-size: 13.5px; font-weight: 700;
}

.pp__size-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp__size-row .field { margin-bottom: 0; }
.pp__size-hint { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; font-weight: 600; }
.pp__side { margin-bottom: 18px; }
.segmented {
  display: flex; gap: 6px; padding: 5px;
  border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line);
}
.segmented__btn {
  flex: 1; padding: 11px 14px; border-radius: 999px;
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.segmented__btn:hover { color: var(--ink); }
.segmented__btn.is-active { background: var(--amber); color: var(--ink); }

.pp__parts { margin-bottom: 18px; }
.pp__part-list { display: flex; flex-direction: column; gap: 8px; }
.part {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: border-color .2s, background .2s;
}
.part:hover { border-color: var(--amber); }
.part input { width: 17px; height: 17px; accent-color: var(--amber-deep); flex: none; }
.part__name { flex: 1; min-width: 0; }
.part__price { font-weight: 700; color: var(--amber-deep); white-space: nowrap; }
.part__note { font-size: 12.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.part:has(input:checked) { border-color: var(--amber); background: var(--amber-soft); }
.part--required { cursor: default; }
.part--included { cursor: default; background: var(--sand); border-style: dashed; }

.pp__qty {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; margin: 18px 0;
}
.pp__qty .pp__calc-label { margin: 0; }
.qty {
  display: flex; align-items: center; gap: 4px;
  border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--paper); padding: 4px;
}
.qty__btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  font-size: 20px; font-weight: 700; color: var(--ink);
  transition: background .2s;
}
.qty__btn:hover { background: var(--sand); }
.qty__input {
  width: 46px; padding: 0; border: 0; background: none;
  font: inherit; font-weight: 800; font-size: 16px; text-align: center;
  color: var(--ink);
}
.qty__input:focus { outline: none; }

.pp__breakdown {
  margin-top: 16px; padding: 14px 16px;
  border-radius: 14px; background: var(--paper); border: 1px solid var(--line);
}
.pp__breakdown-line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 4px 0; font-size: 13.5px; color: var(--ink-soft);
}
.pp__breakdown-line b { white-space: nowrap; color: var(--ink); }
.pp__breakdown-line--sale { color: #c2452d; font-weight: 700; }
.pp__breakdown-line--sale b { color: #c2452d; }
.pp__breakdown-line--total {
  margin-top: 8px; padding-top: 12px; border-top: 1.5px solid var(--line);
  font-weight: 800; font-size: 16.5px; color: var(--ink);
}
.pp__breakdown-line--total b { font-size: 17px; color: var(--amber-deep); }
.pp__size-hint.is-error { color: #c2452d; }
.pp__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.pp__actions .btn { justify-content: center; width: 100%; }
.pp__actions .btn:disabled { opacity: .55; cursor: default; transform: none !important; box-shadow: none; }
.pp__note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; text-align: center; }

/* Примітка про колір тканини: між галереєю і вкладками.
   Клас окремий від .pp__note - той уже зайнятий підказкою про ціну. */
.pp__disclaimer {
  margin: 30px 0 0; padding: 12px 0 12px 16px;
  border-left: 2px solid var(--line);
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-width: 62ch;
}

/* поля без спінерів (публічна частина) */
.field__input--nospin::-webkit-inner-spin-button,
.field__input--nospin::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.field__input--nospin { -moz-appearance: textfield; appearance: textfield; }

/* --- Характеристики --- */
/* Ширину не обмежуємо: нижче калькулятора текст іде на всю ширину сторінки */
.pp__specs { width: 100%; }
.pp__specs-title { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 16px; }

.pp__tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.pp__tab {
  padding: 9px 18px; border: 1.5px solid var(--line); border-radius: 999px;
  background: #fff; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 14px; color: var(--muted);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.pp__tab:hover { border-color: var(--amber); }
.pp__tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pp__desc { font-size: 14.5px; line-height: 1.65; }
.pp__desc p, .pp__desc div { margin: 0 0 8px; }
.pp__desc h2, .pp__desc h3 { font-family: var(--font-display); margin: 14px 0 8px; }
.pp__desc h2 { font-size: 18px; }
.pp__desc h3 { font-size: 16px; }
/* Глобальний скид ul{list-style:none} гасить маркери і тут: у редакторі
   опису вони видно, а на сайті список виходив без крапок і без цифр. */
.pp__desc ul, .pp__desc ol,
.notice__text ul, .notice__text ol { margin: 0 0 8px; padding-left: 22px; }
.pp__desc ul, .notice__text ul { list-style: disc; }
.pp__desc ol, .notice__text ol { list-style: decimal; }
.pp__desc li::marker, .notice__text li::marker { color: var(--line); }
.pp__desc li { margin: 3px 0; }
.pp__desc blockquote {
  margin: 0 0 8px; padding: 8px 14px;
  border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 10px 10px 0;
}
.pp__desc .ta-center { text-align: center; }
.pp__desc .ta-right { text-align: right; }
.pp__desc .ta-justify { text-align: justify; }
.pp__instructions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.pp__instruction { margin: 0; }
.specs { margin: 0; }
.specs__row {
  display: flex; justify-content: space-between; gap: 18px;
  padding: 12px 2px; border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.specs__row dt { color: var(--muted); font-weight: 600; }
.specs__row dd { margin: 0; font-weight: 700; text-align: right; }
.specs__row dd a { color: var(--amber-deep); }

/* картка товару: "від" */
.product-card__price small {
  font-family: var(--font-body); font-size: 12.5px; font-weight: 700;
  color: var(--muted); margin-right: 2px;
}

/* --- Лайтбокс --- */
.lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.92); }
.lightbox__img {
  position: relative; max-width: min(92vw, 1100px); max-height: 84vh;
  border-radius: 14px; object-fit: contain;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lightbox__close {
  position: absolute; top: 18px; right: 18px; z-index: 2;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__close svg { width: 18px; height: 18px; }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff;
  transition: background .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.8); font-weight: 700; font-size: 14px; margin: 0;
}

@media (max-width: 900px) {
  /* На телефоні порядок: фото, калькулятор, опис */
  .pp { display: flex; flex-direction: column; gap: 26px; }
  .pp__calc { float: none; width: auto; max-width: none; margin: 0; order: 2; }
  .pp__gallery { margin-bottom: 0; order: 1; }
  /* той самий порядок, що й у фото: у DOM примітка йде після нього,
     тож при однаковому order вона стає одразу під картинкою.
     Без цього рядка order=0 виносив її на самий верх сторінки. */
  .pp__disclaimer { order: 1; margin: 0; padding: 8px 0 8px 12px; font-size: 13px; }
  .pp__specs { order: 3; }
  .pp__qty { flex-direction: column; align-items: stretch; gap: 10px; }
  .pp__qty .qty { align-self: flex-start; }
  .pp__gallery { grid-template-columns: 1fr; }
  .pp__thumbs { flex-direction: row; order: 2; overflow-x: auto; padding-bottom: 4px; }
  .pp__thumb { flex: 0 0 76px; }
  .pp__main { order: 1; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
}

/* соц-іконки: більші і строго по центру кружка */
.icon--social { width: 21px; height: 21px; display: block; }

/* ============================================================
   КОШИК
   ============================================================ */
.cart { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: start; }
.cart__list { display: flex; flex-direction: column; gap: 14px; }

.citem {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 18px;
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 16px;
}
.citem__photo {
  display: block; align-self: start;
  border-radius: 12px; overflow: hidden; background: var(--sand);
}
.citem__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.citem__body { min-width: 0; }
.citem__name { display: block; font-weight: 800; font-size: 16px; }
.citem__name:hover { color: var(--amber-deep); }
.citem__short { margin: 6px 0 10px; font-size: 13.5px; color: var(--muted); font-weight: 600; }

.citem__details summary {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13.5px; font-weight: 700; color: var(--amber-deep);
  cursor: pointer; list-style: none;
}
.citem__details summary::-webkit-details-marker { display: none; }
.citem__details summary::after {
  content: ''; width: 7px; height: 7px; margin-top: -3px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform .2s;
}
.citem__details[open] summary::after { transform: rotate(-135deg); margin-top: 2px; }
.citem__spec { margin: 12px 0 0; }
.citem__spec div {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
.citem__spec dt { color: var(--muted); font-weight: 600; }
.citem__spec dd { margin: 0; font-weight: 700; text-align: right; }
.citem__calc { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--paper); }
.citem__calc-line {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 4px 0; font-size: 13px; color: var(--ink-soft);
}
.citem__calc-line--sum {
  border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 10px;
  font-weight: 800; font-size: 15px;
}
.citem__calc-line--sum b { font-size: 15.5px; color: var(--amber-deep); }

.citem__side {
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  justify-content: space-between;
}
.citem__total { margin: 0; font-family: var(--font-display); font-size: 20px; color: var(--amber-deep); }
.citem__del { font-size: 13px; font-weight: 700; color: var(--muted); }
.citem__del:hover { color: #c2452d; }

.csum {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 24px;
  position: sticky; top: 96px;
}
.csum__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 16px; }
.csum__row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 0; font-size: 14px; color: var(--muted); font-weight: 600;
}
.csum__row b { color: var(--ink); }
.csum__row--sale span, .csum__row--sale b { color: #c2452d; font-weight: 700; }
.csum__total {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 12px 0 18px; padding-top: 14px; border-top: 1.5px solid var(--line);
  font-weight: 700;
}
.csum__total b { font-family: var(--font-display); font-size: 24px; color: var(--amber-deep); }
.csum__go, .csum__back { width: 100%; justify-content: center; }
.csum__back { margin-top: 10px; }
.csum__note { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.cart-empty {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 46px 26px; text-align: center;
}
.cart-empty p { margin: 0 0 18px; color: var(--muted); font-weight: 600; }
.pp__cart.is-added { background: #2e7d43; border-color: #2e7d43; color: #fff; }

@media (max-width: 900px) {
  .cart { grid-template-columns: 1fr; gap: 20px; }
  .csum { position: static; }
  .citem { grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; align-items: start; }
  .citem__side {
    grid-column: 1 / -1; flex-direction: row; align-items: center;
    justify-content: space-between; width: 100%;
    border-top: 1px solid var(--line); padding-top: 12px;
  }
}

/* --- Тканина і кольори на сторінці товару --- */
.pp__colors { margin-bottom: 18px; }
/* Рівно п'ять у рядку: при вільному переносі п'ятий колір лишався
   сам на другому рядку. Сітка ділить ширину порівну, а max-width
   не дає зразкам роздутись, коли кольорів менше. */
.swatches {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 10px; max-width: 430px;
}
.swatch {
  width: 100%; height: auto; aspect-ratio: 1 / 1;
  border-radius: 50%; overflow: hidden;
  border: 2.5px solid transparent; padding: 0; background: var(--sand);
  transition: border-color .2s, transform .15s var(--ease);
}
.swatch img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swatch:hover { transform: translateY(-2px); }
.swatch.is-active { border-color: var(--amber); }
.pp__color-name { margin: 10px 0 0; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }

/* ============================================================
   ОФОРМЛЕННЯ ЗАМОВЛЕННЯ
   ============================================================ */
.checkout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 30px; align-items: start; }
.checkout__main { display: flex; flex-direction: column; gap: 16px; }
.cbox {
  background: var(--card); border-radius: var(--r-lg);
  box-shadow: var(--shadow-card); padding: 24px;
}
.cbox__title { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin: 0 0 16px; }

.delivery { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.delivery__opt {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 18px 14px; border-radius: 16px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  transition: border-color .2s, background .2s, transform .15s var(--ease);
}
.delivery__opt:hover { border-color: var(--amber); transform: translateY(-2px); }
.delivery__opt.is-active { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.delivery__ico {
  display: grid; place-items: center;
  width: 100%; height: 110px; color: var(--amber-deep);
}
.delivery__ico svg { grid-area: 1 / 1; width: 76px; height: 76px; }
/* логотип перевізника займає всю ширину картки, щоб його було добре видно */
.delivery__ico img { grid-area: 1 / 1; width: 100%; max-width: 280px; height: 110px; object-fit: contain; }
/* якщо логотип є, службову іконку ховаємо */
.delivery__ico img + svg { display: none; }

.cfields { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; margin-top: 18px; }
.cfields .field { margin-bottom: 12px; }
.cnote {
  margin: 16px 0 0; padding: 12px 14px; border-radius: 12px;
  background: var(--amber-soft); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
}
.phone { display: flex; align-items: center; gap: 10px; }
.phone__code {
  padding: 13px 12px; border-radius: 12px;
  background: var(--sand); color: var(--ink-soft);
  font-weight: 800; font-size: 15px; flex: none;
}
.phone .field__input { flex: 1; min-width: 0; }

.paylist { display: flex; flex-direction: column; gap: 8px; }
.paylist__opt {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-weight: 600; font-size: 14.5px; text-align: left; color: var(--ink-soft);
  transition: border-color .2s, background .2s;
}
.paylist__opt:hover { border-color: var(--amber); }
.paylist__opt.is-active { border-color: var(--amber); background: var(--amber-soft); color: var(--ink); }
.paylist__dot {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  border: 2px solid var(--line); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.paylist__opt.is-active .paylist__dot {
  border-color: var(--amber-deep); box-shadow: inset 0 0 0 3.5px var(--amber);
}

.done {
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  padding: 52px 26px; text-align: center; max-width: 560px; margin: 0 auto;
}
.done__icon { color: #2e7d43; display: grid; place-items: center; margin-bottom: 18px; }
.done__icon svg { width: 62px; height: 62px; }
.done__title { font-family: var(--font-display); font-weight: 600; font-size: 26px; margin: 0 0 12px; }
.done__num { margin: 0 0 10px; font-size: 17px; }
.done__num b {
  font-family: var(--font-display); font-size: 24px; color: var(--amber-deep);
  padding: 2px 12px; border-radius: 999px; background: var(--amber-soft);
}
.done__text { margin: 0 0 24px; color: var(--muted); font-weight: 600; }

@media (max-width: 900px) {
  .checkout { grid-template-columns: 1fr; gap: 18px; }
  .delivery { grid-template-columns: 1fr; }
  .delivery__opt { flex-direction: row; justify-content: flex-start; gap: 14px; padding: 14px 16px; }
  .delivery__ico { width: 150px; height: 74px; flex: none; }
  .delivery__ico img { max-width: 150px; height: 74px; }
  .delivery__ico svg { width: 54px; height: 54px; }
  .cfields { grid-template-columns: 1fr; }
  .cbox { padding: 18px 16px; }
}

/* --- Знижка --- */
.sale {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 11px; border-radius: 999px;
  background: #c2452d; color: #fff;
  font-family: var(--font-body); font-size: 12px; font-weight: 800;
  letter-spacing: .02em; white-space: nowrap;
}
.sale--card { position: absolute; top: 12px; left: 12px; z-index: 2; }
.card__media { position: relative; }
.product-card__price s, .pp__old, .specs__row s {
  color: var(--muted); font-weight: 600; text-decoration-thickness: 1.5px;
}
.product-card__price s { font-size: 15px; margin-right: 4px; }
.pp__old { font-family: var(--font-body); font-size: 15px; margin-right: 6px; }
.pp__price { display: inline-flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.citem__old, .csum__old { color: var(--muted); font-weight: 600; margin-right: 6px; }

/* ціна за базовий розмір поруч з «від» */
.pp__base {
  margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-soft);
}
.pp__base b { font-weight: 800; color: var(--ink); }
.pp__base s { color: var(--muted); font-weight: 600; }
/* режим, коли головною є ціна готового виробу */
.pp__pricebox--base { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.pp__pricebox--base .pp__pricefrom,
.pp__pricebox--base .pp__price { order: 2; font-size: 15px; }
.pp__pricebox--base .pp__price b { font-size: 17px; }
.pp__pricebox--base .pp__base {
  order: 1; margin: 0 0 4px;
  font-family: var(--font-display); font-size: 26px; font-weight: 600; color: var(--amber-deep);
}
.pp__pricebox--base .pp__base b { font-weight: 600; color: inherit; }

/* --- Банер згоди на куки --- */
.consent {
  position: fixed; z-index: 200; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  max-width: 780px; margin-inline: auto;
  padding: 16px 20px; border-radius: 18px;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,.6);
}
.consent__text { margin: 0; flex: 1 1 280px; font-size: 13.5px; line-height: 1.5; }
.consent__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.consent__actions .btn { padding: 10px 16px; font-size: 13.5px; }
.consent__actions .btn--ghost { color: var(--paper); border-color: rgba(255,255,255,.35); }
.consent__actions .btn--ghost:hover { background: rgba(255,255,255,.12); }

/* --- Кроки оформлення --- */
/* Кроки оформлення: кружечок з іконкою, підпис під ним, лінія між кроками.
   Раніше це були пігулки в рядок — на телефоні вони переносились і сходинки
   розсипались на два ряди. */
.steps {
  --step-size: 50px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: 0 0 30px; padding: 0; list-style: none;
}
.steps__item { position: relative; }
.steps__item:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0;
  top: calc(var(--step-size) / 2 - 1px);
  left: calc(50% + var(--step-size) / 2 + 6px);
  right: calc(-50% + var(--step-size) / 2 + 6px);
  height: 2px; border-radius: 2px; background: var(--line);
  transition: background .25s;
}
.steps__item.is-done::after { background: var(--amber); }

.steps__link {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  text-align: center;
}
.steps__dot {
  display: grid; place-items: center;
  width: var(--step-size); height: var(--step-size);
  border-radius: 50%; border: 2px solid transparent;
  background: var(--sand); color: var(--muted);
  transition: background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.steps__dot svg { width: 22px; height: 22px; }
.steps__name {
  font-size: 13px; font-weight: 700; color: var(--muted);
  transition: color .25s;
}

.steps__item.is-done .steps__dot { background: var(--amber-soft); color: var(--amber-deep); }
.steps__item.is-done .steps__name { color: var(--amber-deep); }
.steps__item.is-active .steps__dot {
  background: var(--card); color: var(--ink);
  border-color: var(--amber); box-shadow: 0 0 0 5px var(--amber-soft);
}
.steps__item.is-active .steps__name { color: var(--ink); }

/* Назад можна повернутись, вперед — лише через перевірку полів */
.steps__item.is-done .steps__link { cursor: pointer; }
.steps__item.is-done:hover .steps__dot { background: var(--amber); color: var(--ink); }


.field__input.is-error { border-color: #c2452d; background: #fdf1ee; }

/* --- Пошук і фільтри в категорії --- */
.catfilter {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px;
  margin-bottom: 22px;
}
.catsearch {
  display: flex; align-items: center; gap: 10px;
  flex: 1 1 260px; max-width: 440px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--card);
  transition: border-color .2s;
}
.catsearch:focus-within { border-color: var(--amber); }
.catsearch svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.catsearch input {
  flex: 1; min-width: 0; padding: 13px 0; border: 0; background: none;
  font: inherit; font-size: 15px; color: var(--ink);
}
.catsearch input:focus { outline: none; }
.catchips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter {
  padding: 9px 16px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--paper);
  font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  transition: border-color .2s, background .2s, color .2s;
}
.chip-filter:hover { border-color: var(--amber); }
.chip-filter.is-active { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.catempty { margin: 0 0 22px; color: var(--muted); font-weight: 600; }
.product-card__tag { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* --- Результати пошуку в шапці --- */
.search-sheet__results { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; max-height: 60vh; overflow: auto; }
.sresult {
  display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px;
  padding: 10px; border-radius: 14px; background: var(--paper);
  transition: background .2s;
}
.sresult:hover { background: var(--sand); }
.sresult__img { width: 52px; height: 40px; border-radius: 9px; object-fit: cover; background: var(--sand); }
.sresult span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sresult b { font-size: 14.5px; }
.sresult__meta { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sresult__price { font-size: 13.5px; color: var(--amber-deep); white-space: nowrap; }

/* --- Підказки адрес і сторінка оплати --- */
.suggest { position: relative; }
.suggest__list {
  position: absolute; z-index: 40; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column; gap: 2px;
  max-height: 260px; overflow: auto;
  margin-top: 6px; padding: 6px; border-radius: 14px;
  background: #fff; border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(34,30,23,.08), 0 20px 40px -16px rgba(34,30,23,.3);
}
.suggest__item {
  padding: 10px 12px; border-radius: 10px; text-align: left;
  font-size: 14px; font-weight: 600; color: var(--ink);
}
.suggest__item:hover, .suggest__item:focus-visible { background: var(--sand); }

.paypage { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.paypage__req {
  white-space: pre-wrap; padding: 16px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line);
  font-size: 15px; line-height: 1.6; font-weight: 600;
}
.paypage__copy { margin-top: 12px; }
.paypage__sum { margin: 16px 0 0; font-size: 16px; }
.paypage__sum b { font-family: var(--font-display); font-size: 22px; color: var(--amber-deep); }
.paypage__hint { margin: 0 0 14px; color: var(--muted); font-weight: 600; font-size: 14px; }
.paypage__send { width: 100%; justify-content: center; margin-top: 14px; }
.paypage__ok {
  margin: 0 0 16px; padding: 14px 16px; border-radius: 14px;
  background: #e4f0e6; color: #2e7d43; font-weight: 700;
}

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

/* Зона завантаження квитанції: компактна, вибране фото показується всередині */
.upload__zone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; width: 100%; min-height: 120px; padding: 18px 14px;
  border: 1.8px dashed var(--line); border-radius: 14px;
  background: var(--paper); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 14px; color: var(--muted);
  transition: border-color .15s ease, background .15s ease;
}
.upload__zone:hover { border-color: var(--amber); background: var(--amber-soft); }
.upload__zone svg { width: 28px; height: 28px; color: var(--amber-deep); }
.upload__zone.is-filled { padding: 12px; border-style: solid; }
.upload__zone.is-filled svg { display: none; }
.upload__zone__img {
  display: block; max-width: 100%; max-height: 180px;
  border-radius: 10px; object-fit: contain;
}

.paywait { max-width: 520px; margin: 0 auto; }
.paywait__card {
  padding: 36px 28px; border-radius: 20px; text-align: center;
  background: #fff; border: 1.5px solid var(--line);
  box-shadow: 0 2px 6px rgba(34,30,23,.06), 0 24px 48px -20px rgba(34,30,23,.18);
}
.paywait__title { margin: 18px 0 8px; font-size: 24px; }
.paywait__sub { margin: 0 0 6px; font-size: 15px; color: var(--muted); font-weight: 600; }
.paywait__sub b { color: var(--amber-deep); }
.paywait__hint {
  margin: 14px 0 18px; padding: 12px 14px; border-radius: 12px;
  background: var(--amber-soft); color: var(--ink);
  font-size: 14px; font-weight: 600; line-height: 1.5;
}
.paywait__go { width: 100%; justify-content: center; }
.paywait__small { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); font-weight: 600; }

.paywait__spinner { display: flex; justify-content: center; gap: 8px; }
.paywait__spinner span {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--amber); animation: paywait-bounce 1.2s infinite ease-in-out;
}
.paywait__spinner span:nth-child(2) { animation-delay: .15s; }
.paywait__spinner span:nth-child(3) { animation-delay: .3s; }
@keyframes paywait-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-10px); opacity: 1; }
}

.paywait__mark {
  display: flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin: 0 auto; border-radius: 50%;
}
.paywait__mark svg { width: 30px; height: 30px; }
.paywait__mark--ok { background: #e4f0e6; color: #2e7d43; }
.paywait__mark--fail { background: #f6e3dc; color: #b3541e; }
.paywait__card .btn { margin-top: 16px; }

/* Сторінки, створені в адмінці */
.sitepage { max-width: 760px; margin: 0 auto; }
.sitepage__title {
  font-family: var(--font-display); font-size: clamp(26px, 4vw, 36px);
  margin: 0 0 22px; text-align: center;
}
.sitepage__content { font-size: 15px; line-height: 1.7; }
.sitepage__content p, .sitepage__content div { margin: 0 0 10px; }
.sitepage__content h2, .sitepage__content h3 { font-family: var(--font-display); margin: 22px 0 10px; }
.sitepage__content h2 { font-size: 21px; }
.sitepage__content h3 { font-size: 17.5px; }
.sitepage__content ul, .sitepage__content ol { margin: 0 0 10px; padding-left: 24px; }
/* глобальний скид ul{list-style:none} гасить маркери і тут,
   а у тексті сторінок вони потрібні - повертаємо */
.sitepage__content ul { list-style: disc; }
.sitepage__content ol { list-style: decimal; }
.sitepage__content li::marker { color: var(--line); }
.sitepage__content li { margin: 4px 0; }
.sitepage__content blockquote {
  margin: 0 0 10px; padding: 10px 16px;
  border-left: 3px solid var(--amber); background: var(--amber-soft); border-radius: 0 10px 10px 0;
}
.sitepage__content .ta-center { text-align: center; }
.sitepage__content .ta-right { text-align: right; }
.sitepage__content .ta-justify { text-align: justify; }

/* Фільтри каталогу під однією кнопкою */
.catfilter__found {
  margin: 0 0 0 auto; font-size: 14px; font-weight: 700; color: var(--muted);
  white-space: nowrap;
}
.catfilter__toggle {
  flex: none; position: relative; white-space: nowrap;
  padding: 12px 20px; font-size: 14.5px; background: var(--card);
}
.catfilter__toggle.is-on { border-color: var(--amber); color: var(--amber-deep); }
.catfilter__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 20px; height: 20px; padding: 0 5px; margin-left: 6px;
  border-radius: 999px; background: var(--amber); color: #fff;
  font-size: 12px; font-weight: 800;
}
.catfilters {
  display: flex; flex-direction: column; gap: 18px;
  margin: 0 0 26px; padding: 20px 22px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.catfilters__group { display: flex; flex-direction: column; gap: 10px; }
.catfilters__title { margin: 0; font-weight: 800; font-size: 13.5px; color: var(--muted); }
.catfilters__reset {
  align-self: flex-start; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13.5px; color: var(--amber-deep);
  text-decoration: underline;
}
/* Уся картка товару клікабельна */
a.product-card { color: inherit; text-decoration: none; }
a.product-card .product-card__btn { pointer-events: none; }

/* Вибір міста */
.citymodal { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.citymodal__backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.6); }
.citymodal__card {
  position: relative; z-index: 1; width: min(560px, 100%);
  max-height: 84vh; overflow: auto; padding: 32px 28px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.citymodal__title { font-family: var(--font-display); font-size: 24px; margin: 0 0 20px; text-align: center; }
.citymodal__close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: var(--sand); color: var(--ink); cursor: pointer;
}
.citymodal__close svg { width: 16px; height: 16px; }
.citymodal__list { display: flex; flex-direction: column; gap: 10px; }
.citycard {
  display: flex; flex-direction: column; gap: 4px;
  padding: 16px 18px; border-radius: 14px;
  background: var(--paper); border: 1.5px solid var(--line);
  color: inherit; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
a.citycard:hover { border-color: var(--amber); transform: translateY(-2px); }
.citycard__name { font-family: var(--font-display); font-size: 18px; }
.citycard__address { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.citycard__phone { font-size: 15px; font-weight: 800; color: var(--amber-deep); cursor: pointer; }

/* Кнопка кошика, поки розміри не заповнені: виглядає неактивною, але натискається */
.btn.is-locked { opacity: .55; cursor: not-allowed; }
.btn.is-locked:hover { transform: none; }

/* Підсвітка полів розміру, коли покупець натиснув кошик зарано */
.pp__sizes.is-attention .field__input {
  animation: size-attention 1.3s ease 2;
}
.pp__sizes.is-attention .pp__size-hint { color: var(--danger, #c2452d); font-weight: 700; }
@keyframes size-attention {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  35% { border-color: #e9a11b; box-shadow: 0 0 0 4px rgba(233,161,27,.28); }
  70% { border-color: #c2452d; box-shadow: 0 0 0 4px rgba(194,69,45,.22); }
}

/* Коментар до замовлення: на всю ширину форми контактів */
.field--wide { grid-column: 1 / -1; }
.field__textarea { min-height: 84px; resize: vertical; font-family: inherit; line-height: 1.5; }

/* Фото у вмісті створених сторінок */
.sitepage__content img { max-width: 100%; height: auto; border-radius: 14px; margin: 10px 0; display: block; }

/* Плашка способів оплати під калькулятором */
.paybox {
  margin-top: 18px; padding: 14px 18px;
  border-radius: 16px; border: 1.5px solid var(--line);
}
.paybox__icons {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; flex-wrap: wrap;
}
/* Значки платіжних систем.
   У файлах різні порожні поля навколо логотипа (у Google Pay напис
   займає лише 39% висоти, у Visa 27%), тому висоту кожного підбираємо
   так, щоб сам логотип виглядав однаково - приблизно 18 пікселів. */
.paybox__icons img { display: block; width: auto; height: 18px; }
/* Відʼємні поля прибирають порожнечу навколо логотипа: по вертикалі
   щоб ряд не розтягувався, по горизонталі щоб проміжки були рівними */
.paybox__icons img[alt="Visa"] { height: 66px; margin: -24px -5px; }
.paybox__icons img[alt="Apple Pay"] { height: 38px; margin: -10px -10px; }
.paybox__icons img[alt="Google Pay"] { height: 46px; margin: -14px 0; }

/* Важливе сповіщення */
.notice { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; }
.notice__backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.6); }
.notice__card {
  position: relative; z-index: 1; width: min(520px, 100%);
  max-height: 82vh; overflow: auto; padding: 32px 28px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
  text-align: center;
}
.notice__title { font-family: var(--font-display); font-size: 23px; margin: 0 0 12px; }
.notice__text { font-size: 15px; line-height: 1.65; }
.notice__text p, .notice__text div { margin: 0 0 8px; }
.notice__text .ta-center { text-align: center; }
.notice__text .ta-right { text-align: right; }
.notice__ok { margin-top: 20px; min-width: 160px; justify-content: center; }
.notice__close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: var(--sand); color: var(--ink); cursor: pointer;
}
.notice__close svg { width: 15px; height: 15px; }

/* iOS автоматично наближає сторінку, коли фокус потрапляє в поле зі шрифтом
   меншим за 16px, і назад уже не віддаляє. !important тут навмисно: правила
   окремих полів задані через класи й інакше перебивають це. */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]),
  select, textarea { font-size: 16px !important; }
}

/* ============================================================
   ВІКНО КОНТАКТІВ (замість tel: на комп'ютері)
   ============================================================ */
.callbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.callbox__backdrop { position: absolute; inset: 0; background: rgba(34,30,23,.55); }
.callbox__card {
  position: relative; width: min(420px, calc(100vw - 40px));
  padding: 40px 40px 34px; text-align: center;
  background: var(--paper, #fff); border-radius: 18px;
  box-shadow: 0 30px 60px -30px rgba(34,30,23,.5);
}
.callbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 0; background: none; cursor: pointer; color: var(--muted);
}
.callbox__close:hover { color: var(--ink); }
.callbox__close svg { width: 17px; height: 17px; }
.callbox__title { font-size: 22px; margin: 0 0 18px; }
.callbox__phone { display: inline-block; font-size: 26px; font-weight: 800; color: var(--ink); }
.callbox__phone:hover { opacity: .8; }
.callbox__hours { margin: 14px 0 18px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.callbox__note { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ============================================================
   ЗВОРОТНИЙ ЗВʼЯЗОК
   Вікно побудоване на тих самих змінних, що й решта сайту, тож
   на кожному з двох сайтів воно виглядає рідним без правок.
   ============================================================ */
.fbmodal { position: fixed; inset: 0; z-index: 95; display: flex; align-items: center; justify-content: center; padding: 20px; }
.fbmodal__backdrop { position: absolute; inset: 0; background: rgba(20,17,12,.6); }
.fbmodal__card {
  position: relative; z-index: 1; width: min(460px, 100%);
  max-height: 88vh; overflow: auto; padding: 32px 28px;
  background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card);
}
.fbmodal__close {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border: 0;
  background: var(--sand); color: var(--ink); cursor: pointer;
  border-radius: calc(var(--r-lg) / 2);
}
.fbmodal__close svg { width: 16px; height: 16px; }
.fbmodal__title { font-family: var(--font-display); font-size: 24px; margin: 0 0 8px; }
.fbmodal__lead { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 20px; }
.fbmodal__area { resize: vertical; min-height: 84px; font-family: inherit; }
.fbmodal__send { width: 100%; margin-top: 6px; justify-content: center; }
.fbmodal__note { font-size: 12px; line-height: 1.5; color: var(--muted); margin: 12px 0 0; }
.fbmodal__msg {
  margin: 0 0 12px; padding: 10px 12px;
  background: #fdeceb; color: #b3261e;
  border-radius: calc(var(--r-lg) / 2);
  font-size: 13.5px; line-height: 1.5;
}

/* Екран подяки. Галочка малюється лінією: коротка анімація дає зрозуміти,
   що заявка справді пішла, а не просто зникла форма. */
.fbdone { text-align: center; padding: 10px 0 4px; }
.fbdone__mark { display: inline-block; width: 72px; height: 72px; color: var(--amber); }
.fbdone__mark svg { width: 100%; height: 100%; }
.fbdone__ring, .fbdone__tick { stroke: currentColor; }
.fbdone__ring { stroke-dasharray: 145; stroke-dashoffset: 145; opacity: .35; }
.fbdone__tick { stroke-dasharray: 40; stroke-dashoffset: 40; }
.fbdone.is-played .fbdone__ring { animation: fbdraw .5s ease-out forwards; }
.fbdone.is-played .fbdone__tick { animation: fbdraw .35s .35s ease-out forwards; }
@keyframes fbdraw { to { stroke-dashoffset: 0; } }
.fbdone__title { font-family: var(--font-display); font-size: 22px; margin: 14px 0 8px; }
.fbdone__text { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0 0 14px; }
.fbdone__phone { font-family: var(--font-display); font-size: 20px; color: var(--ink); text-decoration: none; }
.fbdone__phone:hover { color: var(--amber); }

@media (prefers-reduced-motion: reduce) {
  .fbdone.is-played .fbdone__ring,
  .fbdone.is-played .fbdone__tick { animation: none; stroke-dashoffset: 0; }
}

/* ============================================================
   КРУГЛА КНОПКА ЗБОКУ
   Живе над контентом, але нижче банера згоди і модалок: поки
   покупець не відповів про куки, банер має лишатись головним.
   ============================================================ */
.fab {
  position: fixed; bottom: 22px; z-index: 80;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 28px -8px rgba(20,17,12,.55);
  cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s ease;
}
.fab--right { right: 22px; }
.fab--left { left: 22px; }
.fab svg { width: 24px; height: 24px; }
.fab:hover { transform: translateY(-3px); background: var(--amber); color: var(--ink); }
.fab:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }

/* Коротке посмикування раз на кілька секунд: кнопку помічають, але вона
   не блимає безперервно і не заважає читати. */
@keyframes fabnudge {
  0%, 86%, 100% { transform: translateY(0); }
  90% { transform: translateY(-5px); }
  94% { transform: translateY(-2px); }
}
.fab { animation: fabnudge 6s ease-in-out 3s infinite; }
.fab:hover { animation: none; }

@media (max-width: 560px) {
  .fab { width: 50px; height: 50px; bottom: 16px; }
  .fab--right { right: 16px; }
  .fab--left { left: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .fab { animation: none; transition: none; }
}
