/* ============================================================
   ДИЗАЙН-ТОКЕНИ — напрям «Ательє»
   Антиква Prata на заголовках, Manrope у тексті.
   Тепла лляна гама, бронзові волосяні лінії, майже без кутів
   (радіус 2px), акценти — тільки чорнилом і бронзою.
   ============================================================ */
:root {
  --ink:        #26231e;   /* заголовки, суцільні кнопки */
  --ink-soft:   #575047;
  --muted:      #6b6154;   /* дрібний текст: контраст 4.9:1 на піску */
  --paper:      #fbf9f5;   /* фон сторінки */
  --card:       #fbf9f5;
  --sand:       #ece5db;   /* тоновані секції, тон стіни з фото */
  --sand-deep:  #e2d9cb;
  --line:       #ded4c4;
  --hairline:   #c4b6a0;   /* декоративна лінія, не для тексту */

  --bronze:      #a8927a;  /* тільки декор: лінії, підкреслення */
  --bronze-deep: #6b6154;  /* бронза, якою можна писати */
  --gold:        #ba9863;  /* активний вибір: тепліше й світліше за бронзу */
  --bronze-mid:  #8a7358;  /* лінійні іконки: 3,6:1 на піску */
  --bronze-soft: #f2ece2;
  --danger:      #9c4a33;  /* помилки і знижки: теракота замість різкого червоного, 5,8:1 */

  /* Аліаси на старі імена — решта сторінок (товар, кошик,
     оформлення) написана під --amber-*, тож вони мають жити. */
  --amber:      var(--bronze);
  --amber-deep: var(--bronze-deep);
  --amber-soft: var(--bronze-soft);

  --font-display: "Prata", Georgia, "Times New Roman", serif;
  --font-body:    "Manrope", system-ui, sans-serif;

  --r-lg: 2px;
  --r-md: 2px;
  --r-sm: 2px;

  --shadow-card: 0 1px 2px rgba(38,35,30,.05), 0 26px 50px -30px rgba(38,35,30,.40);
  --shadow-pop:  0 2px 6px rgba(38,35,30,.07), 0 40px 70px -34px rgba(38,35,30,.50);

  --ease: cubic-bezier(.22,.8,.3,1);
  --container: min(1400px, 100vw - 56px);

  /* Геометрія ряду категорій. Тримаємо тут, бо на ці числа
     спираються і відступ під геройським блоком, і сам ряд:
     половина картки має лишатись на фото. */
  --cols: 5;
  --gap: 24px;
  --body-h: 122px;
  --col: calc((var(--container) - (var(--cols) - 1) * var(--gap)) / var(--cols));
  /* Висота картки = висота фото + підпис. На неї спирається зсув
     ряду категорій на фото, тому множник має відповідати пропорції
     ваших знімків: .75 це 4:3, .667 це 3:2, 1 це квадрат. */
  --media-ratio: .75;
  --card-h: calc(var(--col) * var(--media-ratio) + var(--body-h));
}

/* ---------- База ---------- */
*, *::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.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  /* Prata має лише одне накреслення — забороняємо браузеру
     домальовувати фальшивий жирний там, де стоїть font-weight: 600. */
  font-synthesis-weight: none;
}
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: var(--container); margin-inline: auto; }
.icon { width: 20px; height: 20px; flex: none; }

/* Заголовки, потрібні пошуковим системам і читалкам, але зайві в макеті */
.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }

/* Надзаголовок з розрідженням — єдиний капслок на сайті */
.eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.rule { width: 54px; height: 1px; background: var(--hairline); }

/* ============================================================
   ШАПКА
   ============================================================ */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,245,.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); }
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  min-height: 78px;
}

.logo { display: inline-flex; align-items: center; gap: 10px; }
/* Логотип-картинка: висота фіксована, ширина за пропорціями файлу */
.logo__img { display: block; height: 42px; width: auto; max-width: 220px; object-fit: contain; }
.logo__img--footer { height: 46px; }
.logo__mark { width: 32px; height: 32px; color: var(--ink); }
.logo__text { font-family: var(--font-display); font-size: 23px; letter-spacing: .01em; }
.logo__dot { color: var(--bronze); }

/* Напис біля логотипа: два слова одне під одним, відділені
   волосяною лінією. Задається змінною LOGO_NAME у .env */
.logo__name {
  display: flex; flex-direction: column;
  padding-left: 14px; border-left: 1px solid var(--line);
  font-family: var(--font-display); font-size: 15px; line-height: 1.22;
  letter-spacing: .01em; color: var(--ink); white-space: nowrap;
}
.logo__name--footer { border-left-color: rgba(242,236,226,.22); color: #f2ece2; }

.nav { display: flex; align-items: center; gap: 30px; margin-inline: auto; }

.nav__drop { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: -18px; z-index: 60;
  display: flex; flex-direction: column;
  min-width: 236px; padding: 8px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: var(--shadow-pop);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu {
  opacity: 1; visibility: visible; transform: none;
}
.nav__menu a {
  padding: 11px 14px; font-size: 14px; color: var(--ink-soft);
  transition: background .25s, color .25s;
}
.nav__menu a:hover { background: var(--sand); color: var(--ink); }

.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 28px 0;
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .19em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: color .3s;
}
.nav__link:hover { color: var(--ink); }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 24px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.nav__link:hover::after { transform: scaleX(1); }
.nav__link--active { color: var(--ink); }
.nav__link--active::after { transform: scaleX(1); background: var(--hairline); }
.nav__chev { width: 10px; height: 10px; opacity: .5; }

.header__side { display: flex; align-items: center; gap: 6px; }
.header__phone { display: flex; align-items: center; gap: 8px; margin-right: 6px; color: var(--ink); }
.header__phone .icon { width: 17px; height: 17px; color: var(--bronze-deep); }
.header__phone b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.2; }
/* графік роботи під номером - тільки на комп'ютері, де є місце */
.header__phone small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.35; }

.iconbtn {
  position: relative; display: grid; place-items: center;
  width: 42px; height: 42px; color: var(--ink-soft);
  transition: color .3s;
}
.iconbtn:hover { color: var(--ink); }
.iconbtn__badge {
  position: absolute; top: 5px; right: 3px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: var(--ink); color: var(--paper);
  font-size: 10px; font-weight: 700;
}

.header__cta { margin-left: 12px; }

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

/* ============================================================
   КНОПКИ
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 2px;
  font-size: 15px; font-weight: 600;
  transition: background .45s var(--ease), color .45s var(--ease),
              border-color .45s var(--ease), box-shadow .45s;
}
.btn--primary { background: var(--ink); color: var(--paper); }
.btn--primary:hover { background: #3a352d; }
.btn--ghost { border: 1px solid var(--line); background: transparent; }
.btn--ghost:hover { border-color: var(--ink); }
.btn--lg { padding: 19px 34px; font-size: 16px; }
.btn__arrow { width: 16px; height: 16px; transition: transform .45s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(5px); }

/* Тонка кнопка-контур із розрідженим капслоком — головна кнопка напряму */
.btn--outline {
  border: 1px solid var(--ink); background: transparent; color: var(--ink);
  padding: 16px 34px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.btn--outline:hover { background: var(--ink); color: var(--paper); }
.btn--outline-light {
  border: 1px solid rgba(242,236,226,.6); background: transparent; color: #f2ece2;
  padding: 20px 40px;
  font-family: var(--font-display); font-size: 21px; letter-spacing: .04em;
  /* номер телефону не можна переносити: на вузьких екранах останні
     цифри зривались на новий рядок */
  white-space: nowrap;
}
.btn--outline-light:hover { background: #f2ece2; color: var(--ink); border-color: #f2ece2; }

/* ============================================================
   ГЕРОЙ — єдине місце на сторінці з фотографією
   ============================================================ */
.hero { position: relative; isolation: isolate; background: var(--sand); overflow: hidden; }

.hero__bg { position: absolute; inset: 0; z-index: -2; display: block; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;
  animation: hero-zoom 2.4s var(--ease) both;
}
@keyframes hero-zoom { from { transform: scale(1.07); } }

/* Ліворуч на знімку порожня стіна — висвітлюємо саме її,
   праву частину кадру не глушимо. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    90deg,
    rgba(236,229,219,.96) 0%,
    rgba(236,229,219,.88) 32%,
    rgba(236,229,219,.30) 56%,
    rgba(236,229,219,0) 72%
  );
}

.hero__inner { position: relative; padding: 120px 0 0; }
.hero__eyebrow { animation: rise .8s .1s var(--ease) both; }
.hero__rule { margin: 20px 0 26px; animation: rule-in 1s .3s var(--ease) both; }
@keyframes rule-in { from { width: 0; opacity: 0; } }

.hero__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.6vw, 60px); line-height: 1.16; letter-spacing: -.005em;
  max-width: 18ch;
  animation: rise .9s .25s var(--ease) both;
}
.hero__lead {
  margin-top: 22px; max-width: 40ch;
  font-size: 16.5px; line-height: 1.7; color: var(--ink-soft);
  animation: rise .9s .4s var(--ease) both;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; animation: rise .9s .55s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Запас під картки, що наїжджають знизу: рівно половина картки
   лишається на фото, друга половина сходить на світлий фон. */
.hero__spacer { height: calc(var(--card-h) / 2 + 92px); }

/* ============================================================
   КАТАЛОГ — ряд карток на межі фото і фону
   ============================================================ */
.catalog {
  position: relative; z-index: 3;
  margin-top: calc(var(--card-h) / -2);
  padding-bottom: 96px;
}
.grid--cat {
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  gap: var(--gap);
}

.card {
  display: flex; flex-direction: column;
  background: var(--card); border-radius: 2px; overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .5s var(--ease), box-shadow .5s;
}
.card:hover { transform: translateY(-7px); box-shadow: var(--shadow-pop); }

/* Без заданої пропорції: фото категорії показується у власній.
   Пропорцію для карток товару задає .product-card нижче. */
.card__media { overflow: hidden; background: var(--sand); }
.card__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .9s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__body {
  height: var(--body-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 20px 20px 22px; text-align: center;
}
.card__name {
  display: flex; align-items: center; justify-content: center;
  min-height: 2.4em;
  font-family: var(--font-display); font-size: 18px; line-height: 1.25; color: var(--ink);
}
.card__btn {
  margin-top: 14px; padding-bottom: 4px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  transition: color .4s, border-color .4s;
}
.card:hover .card__btn { color: var(--ink); border-color: var(--ink); }

.catalog-empty {
  padding: 56px 24px; text-align: center;
  background: var(--card); box-shadow: var(--shadow-card);
  color: var(--muted);
}

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

.section__head { margin-bottom: 56px; }
.section__head--center { text-align: center; }
.section__head .rule { margin-top: 22px; }
.section__head--center .rule { margin-inline: auto; }
.section__label {
  font-size: 11px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: var(--muted);
}
.section__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -.005em;
  margin-top: 18px;
}
.section__all {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-bottom: 4px; border-bottom: 1px solid var(--hairline);
  transition: color .4s, border-color .4s;
}
.section__all:hover { color: var(--ink); border-color: var(--ink); }

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

/* ---------- Переваги: ґратка з волосяних ліній, усе по центру ---------- */
.perks { gap: 0; }
.perk {
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px; text-align: center;
  border-left: 1px solid var(--line);
}
/* перша колонка кожного рядка — без лівої лінії, другий рядок — з верхньою */
.perk:nth-child(4n + 1) { border-left: 0; }
.perk:nth-child(n + 5) { border-top: 1px solid var(--line); }

.perk__ico { display: block; color: var(--bronze-mid); margin-bottom: 20px; }
.perk__ico svg { width: 40px; height: 40px; }
.perk__title { font-family: var(--font-display); font-weight: 400; font-size: 18px; line-height: 1.35; }
.perk__text {
  margin: 10px auto 0; max-width: 25ch;
  font-size: 14px; line-height: 1.7; color: var(--muted);
}

/* ============================================================
   БЛОК-ЗАКЛИК — темне полотно з мотивом ламелей і повільним
   променем світла, що йде по кімнаті. Фотографії тут немає.
   ============================================================ */
.cta {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: space-between; gap: 36px;
  background: var(--ink); color: #f2ece2;
  padding: 66px 60px;
}
/* ламелі */
.cta__slats {
  position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: repeating-linear-gradient(
    180deg,
    rgba(242,236,226,.055) 0 1px,
    transparent 1px 11px
  );
}
/* промінь, що повільно перетинає полотно */
.cta__glow {
  position: absolute; top: -40%; bottom: -40%; left: -45%; width: 55%;
  z-index: -1; pointer-events: none;
  transform: rotate(9deg);
  background: linear-gradient(
    90deg,
    rgba(212,183,140,0) 0%,
    rgba(212,183,140,.16) 42%,
    rgba(233,213,178,.22) 55%,
    rgba(212,183,140,0) 100%
  );
  filter: blur(14px);
  animation: cta-light 19s linear infinite;
}
@keyframes cta-light { to { transform: rotate(9deg) translateX(310%); } }

.cta__text { position: relative; max-width: 46ch; }
.cta__label {
  font-size: 11px; font-weight: 600; letter-spacing: .26em;
  text-transform: uppercase; color: rgba(242,236,226,.55);
}
.cta__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(24px, 2.9vw, 36px); line-height: 1.24; margin-top: 16px;
}
.cta__lead { margin-top: 14px; font-size: 15.5px; line-height: 1.7; color: rgba(242,236,226,.72); }
.cta .btn { flex: none; position: relative; }

/* ============================================================
   ФУТЕР
   ============================================================ */
.footer { background: var(--ink); color: #f2ece2; padding-top: 78px; }
.footer__inner {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr;
  gap: 48px; padding-bottom: 58px;
}
/* .footer__col a специфічніший за .logo, тому логотип у футері
   треба описати нарівні з ним — інакше він стає display:block
   і напис падає під знак замість того, щоб стояти збоку. */
.footer__col a.logo {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0; font-size: inherit; color: #f2ece2;
}
.footer__col a.logo:hover { color: #fff; }
.logo--footer .logo__mark { color: #f2ece2; }
.footer__about { margin-top: 20px; font-size: 14px; line-height: 1.75; color: rgba(242,236,226,.6); max-width: 34ch; }

.footer__h {
  font-size: 11px; font-weight: 600; letter-spacing: .24em;
  text-transform: uppercase; color: rgba(242,236,226,.5);
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid rgba(242,236,226,.14);
}
.footer__col a {
  display: block; padding: 7px 0; font-size: 14.5px;
  color: rgba(242,236,226,.75); transition: color .3s;
}
.footer__col a:hover { color: #fff; }
.footer__col p { font-size: 14.5px; line-height: 1.7; color: rgba(242,236,226,.6); margin-top: 10px; }
.footer__phone {
  font-family: var(--font-display); font-size: 20px !important;
  color: #f2ece2 !important; padding-top: 0 !important;
}
.footer__pay { display: flex; align-items: center; gap: 10px; }
.paycard { width: 32px; height: 21px; color: var(--bronze); 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(--bronze); flex: none; }
.footer__seller { text-align: center; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px;
  border-top: 1px solid rgba(242,236,226,.14);
  padding-block: 22px;
  font-size: 12.5px; color: rgba(242,236,226,.45);
}

/* ============================================================
   ПОЯВА ПРИ СКРОЛІ
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.grid .reveal:nth-child(2) { transition-delay: .08s; }
.grid .reveal:nth-child(3) { transition-delay: .16s; }
.grid .reveal:nth-child(4) { transition-delay: .24s; }
.grid .reveal:nth-child(5) { transition-delay: .32s; }

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

/* ============================================================
   АДАПТИВ
   ============================================================ */
@media (max-width: 1240px) {
  .nav { gap: 22px; }
  .header__phone { display: none; }
}

@media (max-width: 1100px) {
  :root { --cols: 3; --gap: 20px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .perk { padding: 32px 20px; }
  .perk:nth-child(odd) { border-left: 0; }
  .perk:nth-child(even) { border-left: 1px solid var(--line); }
  .perk:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cta { padding: 52px 40px; }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 78px 0 auto 0; z-index: 49;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 24px;
    box-shadow: 0 26px 44px -26px rgba(38,35,30,.45);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s var(--ease), opacity .3s, visibility .3s;
    /* visibility в переході лишається visible усі 300мс, поки панель
       згасає, і весь цей час ловить кліки: меню вже не видно, а
       натискання зверху екрана перекидає на його посилання.
       На iOS вікно ще довше. pointer-events знімає це одразу. */
    pointer-events: none;
  }
  .nav.is-open {
    transform: none; opacity: 1; visibility: visible;
    pointer-events: auto;
  }
  .nav__link { padding: 15px 0; }
  .nav__link::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 8px 16px; border: 0; box-shadow: none; background: transparent;
  }
  .logo__img { height: 36px; max-width: 150px; }
  .logo__name { padding-left: 11px; font-size: 13.5px; }
  .burger { display: flex; }
  .header__cta { display: none; }

  .hero__inner { padding: 76px 0 0; }
  .hero__bg img { object-position: 78% center; }
  .hero::before {
    background: linear-gradient(
      90deg,
      rgba(236,229,219,.96) 0%,
      rgba(236,229,219,.84) 58%,
      rgba(236,229,219,.48) 100%
    );
  }
  .hero__spacer { height: calc(var(--card-h) / 2 + 56px); }

  :root { --cols: 2; --gap: 16px; --body-h: 116px; }
  .catalog { padding-bottom: 68px; }
  .section { padding: 68px 0; }
  .section__head { margin-bottom: 40px; }

  .cta { flex-direction: column; align-items: flex-start; gap: 28px; padding: 44px 32px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 560px) {
  :root { --container: calc(100vw - 32px); --gap: 12px; --body-h: 106px; }
  .section { padding: 56px 0; }

  .hero__title { font-size: clamp(27px, 7.6vw, 36px); max-width: 100%; }
  .hero__lead { font-size: 15.5px; }

  .catalog { padding-bottom: 52px; }
  .card__body { padding: 16px 12px 20px; }
  .card__name { font-size: 15px; min-height: 2.5em; }
  .card__btn { font-size: 10px; letter-spacing: .14em; }

  .perk { padding: 26px 10px; }
  .perk__ico { margin-bottom: 14px; }
  .perk__ico svg { width: 33px; height: 33px; }
  .perk__title { font-size: 15.5px; }
  .perk__text { font-size: 12.5px; line-height: 1.6; margin-top: 7px; }

  .logo__name { padding-left: 9px; font-size: 12.5px; line-height: 1.18; }

  .cta { padding: 36px 24px; }
  /* номер має вміститись в один рядок навіть на 320px */
  .cta .btn--outline-light { padding: 16px 20px; font-size: 17px; letter-spacing: .02em; }
  .footer__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 6px; }
}


/* ============================================================
   ГЕРОЙ НА ВУЗЬКИХ ЕКРАНАХ
   На телефоні текст нікуди відійти від знімка не може — місця
   вбік немає. Освітлювати фото під темний текст не варіант:
   світлі ділянки йдуть у білизну і фактура тканини зникає.
   Тому навпаки — притемнюємо кадр теплою пеленою, а текст
   переводимо в кремовий. Затемнення деталі зберігає.
   ============================================================ */
@media (max-width: 760px) {
  .hero { background: var(--ink); }
  .hero__bg img { object-position: 68% center; }

  /* Щільніше там, де лежить текст; донизу відпускаємо, щоб
     смуга фото над картками лишалась світлою і живою. */
  .hero::before {
    background: linear-gradient(
      180deg,
      rgba(28,25,21,.78) 0%,
      rgba(28,25,21,.74) 50%,
      rgba(28,25,21,.42) 76%,
      rgba(28,25,21,.26) 100%
    );
  }

  .hero__inner { padding: 54px 0 0; }
  .hero__spacer { height: calc(var(--card-h) / 2 + 132px); }

  .hero__eyebrow { color: rgba(242,236,226,.88); }
  .hero__rule { background: rgba(242,236,226,.42); }
  .hero__title { color: #f7f3ec; max-width: 100%; }
  .hero__lead { color: rgba(242,236,226,.92); }

  .hero__cta .btn--outline {
    background: #f2ece2; border-color: #f2ece2; color: var(--ink);
  }
  .hero__cta .btn--outline:hover,
  .hero__cta .btn--outline:active { background: #fff; border-color: #fff; }
}
/* ============================================================
   ПОШУК (ОВЕРЛЕЙ) І КОШИК (ШУХЛЯДА)
   ============================================================ */
.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;
  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);
  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;
  background: var(--sand); font-weight: 700; font-size: 14px;
  transition: background .2s, transform .2s var(--ease);
}
.search-sheet__links a:hover { background: var(--accent-deep); color: #fff; }

/* --- Кошик --- */
.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: 12.5px; letter-spacing: .04em; color: var(--muted);
  margin-bottom: 30px;
}
.breadcrumbs a:hover { color: var(--ink); }
.breadcrumbs span[aria-hidden] { opacity: .5; }

.catpage { padding-top: 48px; }

/* Сітка каталогу: п'ять товарів у ряд на комп'ютері.
   Ідентифікатор, а не .grid--4, бо той самий клас використовує блок
   переваг на головній - його чіпати не треба. */
#cat-grid { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1240px) { #cat-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 1100px) { #cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px)  { #cat-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card { cursor: default; }
.product-card:hover .card__media img { transform: scale(1.04); }
/* Сервер стискає завантажене фото тільки по ширині й лишає
   пропорції оригіналу, тож у різних товарів вони різні. Щоб ряд
   не роз'їхався, задаємо картці єдину вертикальну рамку 3:4. */
.product-card .card__media { aspect-ratio: 3 / 4; }
/* Картки в ряду однакової висоти (сітка їх розтягує), а назви різної
   довжини. Без цих двох рядків кнопка сиділа одразу під назвою, і
   в сусідніх картках вони стояли на різній висоті. */
.product-card__body {
  flex: 1;
  padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 7px;
}
.product-card__name { font-family: var(--font-display); font-size: 18px; line-height: 1.3; margin: 0; }
.product-card__price {
  font-family: var(--font-display);
  font-size: 21px; color: var(--ink);
  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; margin-top: auto; padding: 13px 14px; white-space: nowrap;
  font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.product-card:hover .product-card__btn { border-color: var(--ink); }

.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: 2px; overflow: hidden;
  border: 1px solid transparent;
  transition: border-color .2s;
  /* квадрат нейтральний до будь-якої орієнтації знімка */
  aspect-ratio: 1 / 1; background: var(--sand);
}
.pp__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp__thumb.is-active { border-color: var(--ink); }
/* Головне фото показуємо в його власних пропорціях: тут воно одне,
   тож вирівнювати з сусідами нічого не треба, а обрізати живий кадр
   під чужу рамку — тим паче. Обмежуємо лише шириною колонки і
   висотою екрана, щоб вертикальний знімок не поїхав на два екрани. */
.pp__main {
  position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--sand); cursor: zoom-in;
  /* .pp__main - це <button>, і браузер додає їй власні поля;
     скидання їх не знімало, тому фото не доходило до країв */
  display: grid; place-items: center; padding: 0; min-height: 240px;
  box-shadow: var(--shadow-card);
}
.pp__main img {
  display: block;
  width: 100%; height: auto;
  /* якщо знімок вертикальний і за висотою не влазить, contain стискає
     його цілим, а не розтягує - пропорції лишаються рідні */
  max-height: 78vh; object-fit: contain;
}
.pp__zoom {
  position: absolute; right: 14px; bottom: 14px;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 2px;
  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: 2px;
  background: var(--sand); border: 1px 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-size: 32px; color: var(--ink); }
.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: 14px;
  margin: 0 0 16px;
  font-size: 11px; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.pp__calc-label::after {
  content: ""; flex: 1; height: 1px; min-width: 20px;
  background: var(--line);
}

/* поля форм на публічних сторінках */
.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: 1px solid var(--line); border-radius: 2px;
  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: 2px;
  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; }
/* повітря між кроками калькулятора */
.pp__sizes, .pp__side { margin-top: 26px; }
/* у кількості підпис без лінії - там поруч лічильник, лінія заважає */
.pp__qty .pp__calc-label::after { display: none; }
.segmented {
  display: flex; gap: 6px; padding: 5px;
  border-radius: 2px; background: var(--paper); border: 1px solid var(--line);
}
.segmented__btn {
  flex: 1; padding: 11px 14px; border-radius: 2px;
  font-weight: 700; font-size: 14px; color: var(--ink-soft);
  transition: background .2s, color .2s;
}
.segmented__btn:hover { color: var(--ink); }
/* Обрана сторона керування. Текст темний навмисно: на #ba9863
   світлий дає лише 2,57:1, темний - 5,78:1. */
.segmented__btn.is-active {
  background: var(--gold); color: var(--ink);
  border-color: var(--gold);
}

.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: 2px;
  border: 1px 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(--ink); 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: 1px solid var(--line); border-radius: 2px;
  background: var(--paper); padding: 4px;
}
.qty__btn {
  display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 2px;
  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: 2px; 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: var(--danger); font-weight: 700; }
.pp__breakdown-line--sale b { color: var(--danger); }
.pp__breakdown-line--total {
  margin-top: 8px; padding-top: 12px; border-top: 1px 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: var(--danger); }
.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; }

/* поля без спінерів (публічна частина) */
.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__disclaimer {
  margin: 30px 0 0; padding: 12px 0 12px 16px;
  border-left: 2px solid var(--gold);
  font-size: 14px; line-height: 1.6; color: var(--muted);
  max-width: 62ch;
}

.pp__tabs { display: flex; gap: 8px; margin: 0 0 16px; }
.pp__tab {
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 2px;
  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(--hairline); }
.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 2px 2px 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: 2px; 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: 2px;
  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: 2px;
  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: 2px; 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: 2px; 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: 1px 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(--ink); }
.citem__del { font-size: 13px; font-weight: 700; color: var(--muted); }
.citem__del:hover { color: var(--danger); }

.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: var(--danger); 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: 1px solid var(--line);
  font-weight: 700;
}
.csum__total b { font-family: var(--font-display); font-size: 26px; color: var(--ink); }
.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: 2px; 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(--ink); }
.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: 2px;
  border: 1px 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(--ink); 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: 2px;
  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: 2px;
  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: 2px;
  border: 1px 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(--ink); background: var(--amber-soft); color: var(--ink); }
.paylist__dot {
  width: 18px; height: 18px; border-radius: 2px; 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: 2px; 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: 6px 12px; border-radius: 2px;
  background: var(--ink); color: var(--paper);
  font-family: var(--font-body); font-size: 11px; font-weight: 700;
  letter-spacing: .12em; white-space: nowrap;
}
.sale--card { position: absolute; top: 0; left: 0; 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;
  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 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  /* без обмеження кроки розповзаються на всі 1400px контейнера
     і з'єднувальні лінії стають довшими за самі знаки */
  max-width: 620px;
  margin: 0 0 34px; padding: 0; list-style: none;
}
.steps__item { position: relative; }

/* лінія до наступного кроку, точно по центру знака */
.steps__item::after {
  content: ""; position: absolute; z-index: 0;
  top: 26px; left: calc(50% + 30px); right: calc(-50% + 30px);
  height: 1px; background: var(--line);
}
.steps__item:last-child::after { display: none; }
.steps__item.is-done::after { background: var(--hairline); }

.steps__link {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; color: var(--muted);
  transition: color .3s;
}
a.steps__link { cursor: pointer; }
a.steps__link:hover { color: var(--ink); }

.steps__dot {
  display: grid; place-items: center;
  width: 52px; height: 52px; flex: none;
  background: var(--paper); border: 1px solid var(--line);
  transition: background .3s, border-color .3s, color .3s;
}
.steps__dot svg { width: 23px; height: 23px; }

.steps__name {
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
}

/* пройдений: бронзова рамка, знак лишається світлим */
.steps__item.is-done .steps__dot { border-color: var(--hairline); color: var(--bronze-deep); }
.steps__item.is-done .steps__link { color: var(--bronze-deep); }

/* поточний: суцільний чорнильний */
.steps__item.is-active .steps__dot {
  background: var(--ink); border-color: var(--ink); color: var(--paper);
}
.steps__item.is-active .steps__link { color: var(--ink); }

@media (max-width: 700px) {
  .steps { margin-bottom: 26px; }
  .steps__dot { width: 44px; height: 44px; }
  .steps__dot svg { width: 20px; height: 20px; }
  .steps__item::after { top: 22px; left: calc(50% + 26px); right: calc(-50% + 26px); }
  .steps__link { gap: 9px; }
  .steps__name { font-size: 10px; letter-spacing: .08em; }
}

@media (max-width: 400px) {
  .steps__dot { width: 40px; height: 40px; }
  .steps__item::after { top: 20px; left: calc(50% + 24px); right: calc(-50% + 24px); }
  .steps__name { font-size: 9.5px; letter-spacing: .04em; }
}
.field__input.is-error { border-color: var(--danger); background: #fdf1ee; }

/* --- Пошук і фільтри в категорії --- */
/* --- Панель пошуку і фільтрів --- */
/* Один рядок: поле пошуку — лічильник — кнопка фільтрів.
   Поле без коробки, лише волосяна лінія знизу: у цьому наборі
   рамка навколо інпута виглядає як чужий елемент. */
.catbar {
  display: flex; align-items: flex-end; gap: 24px; flex-wrap: wrap;
  padding-bottom: 20px; margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.catsearch {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 300px; max-width: 400px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline);
  transition: border-color .4s var(--ease);
}
.catsearch:focus-within { border-color: var(--ink); }
.catsearch svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.catsearch input {
  flex: 1; min-width: 0; padding: 0; border: 0; background: none;
  font: inherit; font-size: 15.5px; color: var(--ink);
}
.catsearch input:focus { outline: none; }
.catsearch input::placeholder { color: var(--muted); opacity: .8; }

.catbar__count {
  margin: 0 0 10px; margin-inline-start: auto;
  font-size: 13px; letter-spacing: .04em; color: var(--muted); white-space: nowrap;
}

.catchips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-filter {
  padding: 9px 18px; border-radius: 2px;
  border: 1px solid var(--line); background: transparent;
  font-size: 13px; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft);
  transition: border-color .35s, background .35s, color .35s;
}
.chip-filter:hover { border-color: var(--ink); color: var(--ink); }
.chip-filter.is-active { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.catempty { margin: 0 0 22px; color: var(--muted); }
.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; background: var(--paper);
  transition: background .2s;
}
.sresult:hover { background: var(--sand); }
.sresult__img { width: 52px; height: 40px; 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: 2px;
  background: #fff; border: 1px 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: 2px; 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: 2px;
  background: var(--paper); border: 1px 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: 2px;
  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: 2px;
  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: 2px; object-fit: contain;
}

.paywait { max-width: 520px; margin: 0 auto; }
.paywait__card {
  padding: 36px 28px; border-radius: 2px; text-align: center;
  background: #fff; border: 1px 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: 2px;
  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: 2px;
  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: 2px;
}
.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; }
/* глобальний скид ul{list-style:none} гасить маркери і тут,
   а у тексті сторінок вони потрібні - повертаємо */
.sitepage__content ul, .sitepage__content ol { margin: 0 0 12px; padding-left: 22px; }
.sitepage__content ul { list-style: disc; }
.sitepage__content ol { list-style: decimal; }
.sitepage__content li::marker { color: var(--hairline); }
.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 2px 2px 0;
}
.sitepage__content .ta-center { text-align: center; }
.sitepage__content .ta-right { text-align: right; }
.sitepage__content .ta-justify { text-align: justify; }

/* Кнопка фільтрів і панель, що під нею розкривається */
.catfilter__toggle {
  position: relative; white-space: nowrap; margin-bottom: 2px;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border: 1px solid var(--line); background: transparent;
  font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft);
  transition: border-color .35s, color .35s;
}
.catfilter__toggle:hover { border-color: var(--ink); color: var(--ink); }
.catfilter__toggle.is-on { border-color: var(--ink); color: var(--ink); }
.catfilter__toggle .icon { width: 16px; height: 16px; }
.catfilter__count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 19px; height: 19px; padding: 0 5px; margin-left: 8px;
  border-radius: 2px; background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; letter-spacing: 0;
}
.catfilters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 30px 44px; align-items: start;
  margin: -6px 0 30px; padding: 26px 28px 24px;
  background: var(--sand); border: 1px solid var(--line);
}
.catfilters__group { display: flex; flex-direction: column; gap: 12px; }
.catfilters__title {
  margin: 0; font-size: 11px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.catfilters__reset {
  grid-column: 1 / -1; justify-self: start;
  padding: 0 0 3px; border: 0; border-bottom: 1px solid var(--hairline);
  background: none; cursor: pointer; font: inherit;
  font-size: 11px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
  transition: color .35s, border-color .35s;
}
.catfilters__reset:hover { color: var(--ink); border-color: var(--ink); }
/* Уся картка товару клікабельна */
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;
  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;
  background: var(--paper); border: 1px 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); font-weight: 700; }
@keyframes size-attention {
  0%, 100% { border-color: var(--line); box-shadow: none; }
  35% { border-color: var(--bronze); box-shadow: 0 0 0 4px rgba(168,146,122,.30); }
  70% { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(156,74,51,.24); }
}

/* Коментар до замовлення: на всю ширину форми контактів */
.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: 2px; margin: 10px 0; display: block; }

/* Плашка способів оплати під калькулятором */
.paybox {
  margin-top: 18px; padding: 14px 18px;
  border-radius: 2px; border: 1px 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;
  background: var(--sand); color: var(--ink); cursor: pointer;
}
.notice__close svg { width: 15px; height: 15px; }

/* ============================================================
   КАРТКА ТОВАРУ НА МАЛЕНЬКИХ ТЕЛЕФОНАХ
   Блок стоїть у кінці файлу навмисно: базові правила картки
   оголошені вище, а медіазапит специфічності не додає — звідси
   він мусить іти пізніше, інакше не спрацює.
   ============================================================ */
@media (max-width: 560px) {
  .product-card__body { padding: 14px 12px 16px; gap: 5px; }
  .product-card__name { font-size: 15px; line-height: 1.28; }
  .product-card__tag { font-size: 11px; line-height: 1.45; font-weight: 400; }
  .product-card__price { font-size: 17px; }
  .product-card__price span,
  .product-card__price small,
  .product-card__price s { font-size: 11px; }
  .product-card__btn {
    margin-top: auto; padding-top: 9px; padding: 11px 6px;
    font-size: 10px; letter-spacing: .07em;
    white-space: normal; line-height: 1.35; text-align: center;
  }
  .sale { padding: 5px 9px; font-size: 10px; letter-spacing: .08em; }

}

/* ============================================================
   БЕЗ МАСШТАБУВАННЯ ПРИ ФОКУСІ НА ТЕЛЕФОНІ
   Safari на iOS сам наближає сторінку, коли фокус потрапляє
   в поле зі шрифтом менше 16px, і назад уже не відводить.
   Лікується єдиним способом — дати полям рівно 16px.
   Через viewport (maximum-scale / user-scalable=no) це робити
   не можна: тоді зникне і звичайне масштабування двома пальцями.
   !important тут навмисно: розміри розкидані по десятку правил
   нижче за течією, і новому полю це має діяти без нагадувань.
   ============================================================ */
@media (max-width: 900px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  select,
  textarea { font-size: 16px !important; }
}

/* ============================================================
   СТОРІНКА ДЛЯ ДИЛЕРІВ
   Оформлення в шаблоні, текст нижче - з адмінки.
   ============================================================ */
.dealers__intro {
  max-width: 74ch; margin: -14px auto 54px; text-align: center;
  font-size: 16.5px; line-height: 1.75; color: var(--ink-soft);
}

.dealers__pair {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  /* при контейнері 1400px картка виходила 680px - рядок майже
     на 90 знаків, читати важко. Тримаємо приблизно 70. */
  max-width: 1080px; margin: 0 auto 84px;
}
.dcard {
  padding: 40px 38px; background: var(--sand);
  border-top: 2px solid var(--hairline);
}
.dcard__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 25px; line-height: 1.25; margin-bottom: 16px;
}
.dcard__text { font-size: 15px; line-height: 1.75; color: var(--muted); }

.dealers__perks-head { margin-bottom: 44px; }
/* переваги тут на світлому тлі, тож ґратку робимо тоншою */
.dealers__perks { margin-bottom: 84px; }

.dealers__text { max-width: 820px; margin: 0 auto; }
.dealers__text .sitepage__content h2:first-child { margin-top: 0; }
.dealers__cta { margin-top: 76px; }

@media (max-width: 900px) {
  .dealers__intro { margin-bottom: 40px; font-size: 15.5px; }
  .dealers__pair { grid-template-columns: 1fr; gap: 16px; margin-bottom: 56px; }
  .dcard { padding: 28px 24px; }
  .dcard__title { font-size: 21px; }
  .dealers__perks { margin-bottom: 56px; }
  .dealers__cta { margin-top: 52px; }
}

/* ============================================================
   ВІКНО КОНТАКТІВ (замість tel: на комп'ютері)
   ============================================================ */
.callbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; }
.callbox__backdrop { position: absolute; inset: 0; background: rgba(28,25,21,.55); }
.callbox__card {
  position: relative; width: min(420px, calc(100vw - 40px));
  padding: 40px 40px 36px; text-align: center;
  background: var(--paper); box-shadow: var(--shadow-pop);
}
.callbox__close {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px; display: grid; place-items: center;
  color: var(--muted);
}
.callbox__close:hover { color: var(--ink); }
.callbox__close svg { width: 17px; height: 17px; }
.callbox__title {
  font-family: var(--font-display); font-weight: 400;
  font-size: 26px; margin: 14px 0 18px;
}
.callbox__phone {
  display: inline-block; font-family: var(--font-display);
  font-size: 27px; letter-spacing: .02em; color: var(--ink);
}
.callbox__phone:hover { color: var(--bronze-deep); }
.callbox__hours { margin: 14px 0 20px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.callbox .rule { margin: 0 auto 18px; }
.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; }
}

/* ===== Заявка на безкоштовний замір у першому екрані =====
   Широка й низька: імʼя, телефон і кнопка стоять в один рядок.
   Висота полів дорівнює висоті кнопки, інакше рядок виглядає зламаним. */
.mform { margin-top: 36px; max-width: 660px; animation: rise .9s .55s var(--ease) both; }

/* Рамку вмикають в адмінці. Фон напівпрозорий: під героєм фотографія,
   і суцільна плашка вирізала б з неї прямокутник. */
.mform--framed {
  max-width: 700px; padding: 22px 24px 24px;
  background: rgba(251,249,245,.9);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
}

.mform__title {
  margin: 0 0 12px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
}
.mform__row { display: flex; gap: 10px; flex-wrap: wrap; }
.mform__input {
  flex: 1 1 180px; min-width: 0; height: 53px; padding: 0 16px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .3s var(--ease);
}
.mform__input::placeholder { color: var(--muted); }
.mform__input:focus { outline: none; border-color: var(--hairline); }
.mform__input.is-bad { border-color: var(--danger); }
.mform--framed .mform__input { background: #fff; }
.mform__send { flex: 0 0 auto; height: 53px; padding: 0 28px; }
.mform__msg { margin: 10px 0 0; font-size: 13.5px; color: var(--danger); }

/* Подяка стає на місце полів - усередині тієї самої рамки */
.mform__done {
  display: flex; align-items: center; gap: 14px;
  animation: mform-done .45s var(--ease) both;
}
@keyframes mform-done { from { opacity: 0; transform: translateY(6px); } }
.mform__tick {
  position: relative; flex: none;
  width: 34px; height: 34px; border-radius: 50%; background: var(--ink);
}
.mform__tick::after {
  content: ''; position: absolute; left: 12px; top: 9px;
  width: 8px; height: 14px;
  border: 2px solid var(--paper); border-top: 0; border-left: 0;
  transform: rotate(42deg);
}
.mform__donetext { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); }
.mform__donetext b { color: var(--ink); }

@media (max-width: 640px) {
  .mform--framed { padding: 18px; }
  .mform__row { flex-direction: column; }
  /* У стовпчику flex-basis визначає висоту, тому скидаємо настільні 180px. */
  .mform__input { flex: 0 0 auto; height: 53px; font-size: 16px; }
  .mform__input, .mform__send { width: 100%; }
}

/* ===== Оформлення карток категорій =====
   Числа приходять з /cards.css, який збирає адмінка; тут самі варіанти.
   Інлайн-стилів немає свідомо: політика безпеки сторінки їх не пускає. */
.card { position: relative; }
.card__glow { display: none; }

.fr-line {
  border: var(--cardfrw, 3px) solid var(--cardfr, var(--gold));
  border-radius: var(--cardfrr, 0);
}
.fr-double {
  border: 1px solid var(--cardfr, var(--gold));
  outline: 1px solid var(--cardfr, var(--gold));
  outline-offset: 5px;
  border-radius: var(--cardfrr, 0);
}
.fr-grad {
  border: var(--cardfrw, 3px) solid transparent;
  border-radius: var(--cardfrr, 0);
  background-image: linear-gradient(var(--card), var(--card)),
                    linear-gradient(125deg, var(--cardfr, var(--gold)), var(--ink));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.fr-glow {
  border-radius: var(--cardfrr, 0);
  box-shadow: 0 0 0 1px var(--cardfr-soft, rgba(0,0,0,.2)),
              0 22px 46px -14px var(--cardfr-soft, rgba(0,0,0,.2));
}

/* Блюр: позаду картки лежить її ж фото, розмите й трохи ширше */
.fr-blur { overflow: visible; box-shadow: none; }
.fr-blur .card__glow {
  display: block; position: absolute; z-index: -1; pointer-events: none;
  inset: calc(var(--cardspread, 20px) * -1)
         calc(var(--cardspread, 20px) * -1)
         calc(var(--cardspread, 20px) * -1.6);
  filter: blur(var(--cardblur, 26px)) saturate(1.6);
  opacity: var(--cardglow, .85);
}
.fr-blur .card__glow img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Рух при наведенні: класи лише прибирають зайве з базової поведінки */
.cardhov-none .card:hover,
.cardhov-zoom .card:hover,
.cardhov-bright .card:hover { transform: none; }
.cardhov-none .card:hover .card__media img,
.cardhov-lift .card:hover .card__media img,
.cardhov-bright .card:hover .card__media img { transform: none; }
.cardhov-bright .card:hover .card__glow { opacity: 1; }
.cardhov-bright .fr-line:hover,
.cardhov-bright .fr-double:hover { border-color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .card:hover, .card:hover .card__media img { transform: none; }
}

/* ===== Готові розміри на сторінці товару ===== */
.pp__ready { margin: 22px 0 4px; }
.ready__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 10px;
}
.rsize {
  position: relative; display: flex; flex-direction: column;
  align-items: center; gap: 8px; padding: 14px 10px 12px;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  cursor: pointer; text-align: center;
  transition: border-color .2s var(--ease), background .2s;
}
.rsize:hover:not(.is-out) { border-color: var(--gold); }
.rsize.is-active { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); background: #fff; }
.rsize.is-out { opacity: .5; cursor: default; }

/* силует у пропорціях розміру: три форми замість точного числа, бо
   інлайн-стилі на сторінці заборонені політикою безпеки */
.rsize__shape {
  height: 54px;
  background:
    repeating-linear-gradient(180deg, rgba(38,35,30,.13) 0 1px, transparent 1px 7px),
    linear-gradient(180deg, #efe8dc, #e2d9cb);
  border: 1px solid var(--muted);
}
.rsize__shape--tall { width: 28px; }
.rsize__shape--sq { width: 54px; }
.rsize__shape--wide { width: 72px; }
.rsize.is-active .rsize__shape { border-color: var(--gold); }

.rsize__dim { font-size: 13.5px; font-weight: 700; color: var(--ink); }
.rsize__price { font-size: 15px; font-weight: 700; color: var(--ink); }
.rsize__price s { font-size: 12px; font-weight: 500; color: var(--muted); margin-right: 5px; }
.rsize__m2 { font-size: 11px; color: var(--muted); }
.rsize__tag {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  font-size: 9.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  padding: 3px 7px; white-space: nowrap;
  background: var(--ink); color: var(--paper);
}
.rsize__tag--out { background: var(--sand-deep); color: var(--muted); }

@media (max-width: 520px) {
  .ready__grid { grid-template-columns: repeat(2, 1fr); }
}


/* ---------- Покупка частинами: кількість платежів ---------- */
.partsbox { margin-top: 16px; padding: 16px; border-radius: 14px; background: var(--amber-soft); }
.partsbox__t { margin: 0 0 10px; font-weight: 700; font-size: 14px; }
.partsbox__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.partsbox__opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 10px 6px; border-radius: 12px; border: 1.5px solid rgba(0, 0, 0, .12);
  background: #fff; font: inherit; color: inherit; cursor: pointer;
}
.partsbox__opt b { font-size: 18px; line-height: 1.1; }
.partsbox__opt span { font-size: 12px; opacity: .75; }
.partsbox__opt:hover { border-color: var(--amber); }
.partsbox__opt.is-active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.partsbox__hint { margin: 10px 0 0; font-size: 12.5px; opacity: .8; line-height: 1.45; }
.partsbox__hint--demo { font-weight: 700; opacity: 1; }

/* на першому сайті кути прямі, як у решти оформлення */
.partsbox, .partsbox__opt { border-radius: 0; }

.paylist__opt.is-off { opacity: .55; cursor: not-allowed; }
.paylist__note { display: block; font-size: 12px; font-weight: 400; opacity: .8; }

/* Пояснення недоступної післяплати прив’язане до її кнопки. */
.cod-choice { position: relative; min-width: 0; }
.cod-choice > .paylist__opt { width: 100%; }
.cod-hint {
  position: absolute; z-index: 45; left: 0; bottom: calc(100% + 10px);
  width: max-content; max-width: min(100%, 420px); margin: 0;
  padding: 12px 14px; border-radius: var(--r-md);
  background: var(--ink); color: var(--paper);
  box-shadow: var(--shadow-card); font-size: 13px; line-height: 1.5;
  font-weight: 600; pointer-events: none; overflow-wrap: anywhere;
}
.cod-hint::after {
  content: ""; position: absolute; top: 100%; left: 28px;
  border: 7px solid transparent; border-top-color: var(--ink);
}
