/* ============================================================================
   BulBul — базові стилі сайту.
   Порядок: токени → скидання → типографіка → атоми → шапка → секції →
   конфігуратор → сторінки чаш → модальні вікна → адаптив.
   ============================================================================ */

/* ---------- 1. Токени ---------- */
/* --------------------------------------------------------------------------
   Кольори взяті безпосередньо з логотипа BulBul
   (assets/img/source/logo/bulbul-avatar.jpg):
     напис «BulBul»        → #06a7e9
     напис «БУДИНОК МРІЇ»  → #fc4803
     тло логотипа          → #0e1d28
   Робочі відтінки підібрані так, щоб кожна пара тексту й фону
   проходила WCAG AA (≥ 4.5:1).
   -------------------------------------------------------------------------- */
:root {
  /* нейтральна основа */
  --paper:        #f4f6f8;
  --paper-deep:   #e8edf1;
  --white:        #ffffff;
  --ink:          #0e1d28;   /* тло логотипа: основний текст і темні секції */
  --ink-soft:     #33454f;
  --muted:        #5a6872;
  --line:         #dbe3e9;
  --line-strong:  #c2cdd5;

  /* основний фірмовий колір — синій з напису «BulBul» */
  --brand:        #06a7e9;   /* заливки й акценти, текст поверх — тільки темний */
  --brand-ink:    #0a73a8;   /* посилання та заливки з білим текстом */
  --brand-deep:   #075f87;   /* hover */
  --brand-wash:   #e8f5fc;   /* світла підкладка, обрані стани */

  /* акцент дії — тепла бурштинова кнопка.
     Текст на ній завжди темний: білий дає лише 1.8:1, темний — 9.5:1.
     Червоний лишається виключно для помилок і критичних попереджень. */
  --cta:          #ffb21c;
  --cta-hover:    #e69a00;
  --cta-text:     #0e1d28;
  --cta-wash:     #fff5e0;
  --cta-disabled-bg:   #e8edf1;
  --cta-disabled-text: #5a6872;

  /* стани */
  --warn:         #b02418;
  --warn-wash:    #fdf0ee;
  --ok:           #0f7b4f;
  --ok-wash:      #e9f6ef;
  --focus-ring:   rgba(6, 167, 233, .38);

  --radius-s: 6px;
  --radius-m: 12px;
  --radius-l: 20px;

  --shadow-s: 0 2px 8px rgba(14, 29, 40, .07);
  --shadow-m: 0 10px 30px rgba(14, 29, 40, .10);
  --shadow-l: 0 30px 70px rgba(14, 29, 40, .18);

  --pad-x: clamp(16px, 4vw, 56px);
  --section-y: clamp(60px, 8vw, 128px);
  --maxw: 1320px;

  --font-body: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: Unbounded, Inter, ui-sans-serif, -apple-system, sans-serif;

  --header-h: 66px;
}

/* ---------- 2. Скидання ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  /* clip замість hidden: hidden робить body власним контейнером прокрутки,
     і position: sticky всередині сторінки переставало працювати. Захист від
     випадкового зсуву вбік лишається той самий. */
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }

::selection { background: var(--brand); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--focus-ring);
  border-radius: 3px;
}

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

.skip-link {
  position: absolute; top: -60px; left: 12px; z-index: 200;
  padding: 10px 16px; background: var(--ink); color: var(--white);
  border-radius: 0 0 var(--radius-s) var(--radius-s); font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- 3. Типографіка ---------- */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h1 { font-size: clamp(27px, 4.4vw, 54px); }
h2 { font-size: clamp(26px, 3.9vw, 46px); }
h3 { font-size: clamp(18px, 1.6vw, 22px); letter-spacing: -.01em; }
p  { margin: 0; text-wrap: pretty; }

.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  margin: 0 0 18px; color: var(--muted);
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.eyebrow::before {
  content: ""; width: 22px; height: 8px; border-radius: 99px;
  background: var(--brand); flex: none;
}
.eyebrow.on-dark { color: rgba(255,255,255,.7); }

.lead { color: var(--ink-soft); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.6; }
.muted { color: var(--muted); }

/* ---------- 4. Розкладка ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 52px); }
.section-head.split {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 60px);
  align-items: end; max-width: none;
}
.section-head.split > p { color: var(--muted); font-size: 16px; }

/* ---------- 5. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px;
  border: 1.5px solid transparent; border-radius: 99px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn-primary { background: var(--cta); color: var(--cta-text); border-color: var(--cta); }
.btn-primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-primary:active { background: var(--cta-hover); }
.btn-primary[disabled], .btn-primary[aria-disabled="true"] {
  background: var(--cta-disabled-bg); border-color: var(--cta-disabled-bg);
  color: var(--cta-disabled-text); cursor: not-allowed;
}

.btn-dark { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-dark:hover { background: #2c2e26; }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink); background: rgba(14,29,40,.04); }

.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--paper-deep); border-color: var(--paper-deep); }

.btn-full { width: 100%; }
.btn-sm { min-height: 42px; padding: 10px 18px; font-size: 14px; }

.link-underline {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
  border-bottom: 1.5px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color .18s ease, color .18s ease;
}
.link-underline:hover { border-color: var(--ink); }

/* ---------- 6. Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(244, 246, 248, .86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
  max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-size: 19px; font-weight: 700; letter-spacing: -.04em;
  margin-right: auto;
}
.brand-mark {
  display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--brand);
  font-size: 15px; font-weight: 700; letter-spacing: -.06em; flex: none;
}
.nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 600; }
/* Пункт меню ніколи не переносить текст усередині себе: у стисненій шапці
   «Приклади з цінами» ламалось на два рядки й шапка виглядала зламаною. */
.nav a { position: relative; padding-block: 6px; white-space: nowrap; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--ink); transition: right .22s ease;
}
.nav a:hover::after, .nav a:focus-visible::after { right: 0; }
.header-phone { font-size: 14px; font-weight: 700; white-space: nowrap; }

/* ---------- 7. Перший екран ---------- */
.hero { padding-block: clamp(24px, 4vw, 64px) clamp(36px, 5vw, 76px); }
.hero-grid {
  display: grid; grid-template-columns: 1.02fr .98fr;
  gap: clamp(24px, 4vw, 64px); align-items: center;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(transparent 62%, var(--brand) 62%);
  padding-inline: 2px;
}

/* Додаткова теза під заголовком: приклад конкретного розміру.
   Лишається помітною, але не конкурує з H1. */
.hero-claim { margin-top: 20px; }
.hero-claim span {
  display: inline;
  font-family: var(--font-display);
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.55;
  background: linear-gradient(transparent 62%, var(--brand-wash) 62%);
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: 2px;
}
.hero-claim span::before {
  content: ""; display: inline-block; vertical-align: baseline;
  width: 4px; height: .82em; margin-right: 9px; border-radius: 2px;
  background: var(--brand);
}

/* Пояснення під головною кнопкою */
.cta-note {
  margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.45;
}
.hero-lead { margin-top: 18px; max-width: 54ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-top: clamp(26px, 3.4vw, 40px);
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m);
  overflow: hidden;
}
.stats > div { background: var(--paper); padding: 14px 12px; }
.stats strong {
  display: block; font-family: var(--font-display); font-size: clamp(15px, 1.4vw, 18px);
  font-weight: 600; letter-spacing: -.035em; line-height: 1.2;
}
.stats span { display: block; margin-top: 3px; color: var(--muted); font-size: 12.5px; line-height: 1.35; }

.hero-visual { position: relative; }
.hero-visual > img,
.hero-visual picture > img {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: center 50%;
  border-radius: var(--radius-l); background: var(--paper-deep);
}
.hero-badge {
  position: absolute; right: 14px; top: 14px;
  display: grid; place-items: center; gap: 2px;
  width: 108px; height: 108px; border-radius: 50%;
  background: var(--cta); color: var(--cta-text);
  font-size: 12px; font-weight: 800; line-height: 1.2; text-align: center;
  letter-spacing: .02em; box-shadow: var(--shadow-m);
}
.hero-tag {
  position: absolute; left: 14px; bottom: 14px; right: 14px;
  display: flex; align-items: center; gap: 11px;
  padding: 11px 14px; border-radius: 99px;
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: var(--shadow-s); font-size: 13px;
}
.hero-tag b { display: block; font-size: 13.5px; }
.hero-tag small { color: var(--muted); font-size: 12px; }
.hero-tag i {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: var(--ink); color: var(--brand); font-style: normal;
}

/* ---------- 8. Смуга задач ---------- */
.strip {
  background: var(--ink); color: var(--white);
  padding-block: clamp(22px, 3vw, 34px);
}
.strip-in {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  font-size: clamp(14px, 1.5vw, 18px);
}
.strip-in span { color: rgba(255,255,255,.62); }
.strip-in b { color: var(--brand); font-weight: 700; }

/* ---------- 9. Каталог чаш ---------- */
.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 20px);
}
.bowl-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.bowl-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.bowl-card > a.bowl-card-photo { display: block; position: relative; }
.bowl-card-photo img {
  /* Квадрат: однакова сітка для портретних і альбомних заставок.
     Точку кадру задає object-position з data.js, окремо для кожної моделі. */
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: var(--paper-deep);
}
.bowl-card-count {
  position: absolute; left: 12px; top: 12px;
  padding: 5px 11px; border-radius: 99px;
  background: rgba(14,29,40,.86); color: var(--white);
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
}
.bowl-card-body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 18px; }
.bowl-card-body h3 { font-size: 24px; }
.bowl-card-body > p { color: var(--muted); font-size: 14px; }
.bowl-card-shape { display: flex; align-items: center; gap: 12px; padding-block: 4px; }
.bowl-card-shape svg { width: 62px; height: 34px; flex: none; }
.bowl-card-shape span { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.bowl-card-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 6px; }
.bowl-card-foot .btn { flex: 1; }
.bowl-card-foot a.link-underline { font-size: 13.5px; white-space: nowrap; }

/* ---------- 10. Роботи ---------- */
.works { background: var(--ink); color: var(--white); }
.works .section-head.split > p { color: rgba(255,255,255,.62); }
.works-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(150px, 15vw, 210px); gap: clamp(10px, 1.2vw, 16px);
  grid-auto-flow: dense;
}
.work { position: relative; overflow: hidden; border-radius: var(--radius-m); background: #17303f; }
.work picture { display: block; width: 100%; height: 100%; }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work:hover img { transform: scale(1.03); }
.work figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 16px 14px;
  background: linear-gradient(transparent, rgba(10,10,8,.85));
  font-size: 13px;
}
.work figcaption b { display: block; font-size: 14px; }
.work figcaption span { color: rgba(255,255,255,.66); font-size: 12.5px; }
.work.tall  { grid-row: span 2; }
.work.wide  { grid-column: span 2; }
.works-foot { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.works-ghost { border-color: rgba(255,255,255,.3); color: var(--white); }
.works-ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }

/* ---------- 11. До/після ---------- */
.extras-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(10px, 1.4vw, 18px); }
.extra-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
}
.extra-card picture { display: block; }
.extra-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--paper-deep); }
.extra-card figcaption { display: grid; gap: 6px; padding: 14px 16px 16px; }
.extra-tag {
  justify-self: start; padding: 3px 10px; border-radius: 99px;
  background: var(--brand-wash); color: var(--brand-deep);
  font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.extra-card b { font-size: 15px; }
.extra-card figcaption > span:last-child { color: var(--muted); font-size: 13px; }
.rim-example-link { display: inline-block; margin-top: 5px; color: var(--brand-ink); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rim-example-link:hover { color: var(--brand-deep); }

.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(10px, 1.4vw, 18px); }
.ba-item { position: relative; border-radius: var(--radius-m); overflow: hidden; }
.ba-item img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; background: var(--paper-deep); }
.ba-label {
  position: absolute; left: 12px; top: 12px; padding: 6px 13px; border-radius: 99px;
  font-size: 12px; font-weight: 800; letter-spacing: .04em;
  background: rgba(255,255,255,.94); color: var(--ink);
}
.ba-item.after .ba-label { background: var(--brand); }

/* ---------- 12. Процес ---------- */
.process-list { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.process-list li { background: var(--paper); padding: 26px 20px 30px; }
.process-list b {
  display: block; margin-bottom: 16px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--brand-deep);
}
.process-list h3 { margin-bottom: 8px; }
.process-list p { color: var(--muted); font-size: 14px; }

/* ---------- 13. Матеріал ---------- */
.material { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.material img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-l); background: var(--paper-deep); }
.material ul { display: grid; gap: 12px; margin: 24px 0 28px; }
.material li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.material li i {
  display: grid; place-items: center; width: 24px; height: 24px; flex: none; margin-top: 1px;
  border-radius: 50%; background: var(--brand); font-style: normal; font-size: 12px; font-weight: 800;
}

/* ---------- 14. FAQ ---------- */
.faq-list { display: grid; gap: 10px; max-width: 900px; }
.faq-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .2s ease;
}
.faq-list details[open] { border-color: var(--line-strong); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-size: clamp(15px, 1.5vw, 17px); font-weight: 600;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary i {
  display: grid; place-items: center; width: 26px; height: 26px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%;
  font-style: normal; font-size: 16px; transition: transform .22s ease, background-color .2s ease;
}
.faq-list details[open] summary i { transform: rotate(45deg); background: var(--brand); border-color: var(--brand); }
.faq-list details > p { padding: 0 20px 20px; color: var(--muted); max-width: 74ch; }

/* ---------- 15. Фінальний CTA ---------- */
.final {
  display: grid; grid-template-columns: 1.2fr auto; gap: 28px; align-items: center;
  padding: clamp(30px, 4.4vw, 60px); border-radius: var(--radius-l);
  background: var(--brand);
}
.final h2 { max-width: 18ch; }
.final p { margin-top: 12px; color: rgba(14,29,40,.7); max-width: 46ch; }

/* ---------- 16. Підвал ---------- */
.footer { background: var(--ink); color: var(--white); padding-block: clamp(40px, 5vw, 72px) 26px; }
.footer-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-top p { color: rgba(255,255,255,.6); margin-top: 14px; max-width: 34ch; font-size: 14.5px; }
.footer h4 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 14px; }
.footer-links { display: grid; gap: 9px; font-size: 15px; }
.footer-links a:hover { color: var(--brand); }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.14);
  color: rgba(255,255,255,.5); font-size: 13px;
}

/* ============================================================================
   17. КОНФІГУРАТОР
   ============================================================================ */
.cfg { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(14px, 1.6vw, 22px); align-items: start; }
.cfg-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.4vw, 18px); min-width: 0; }
.cfg-col.preview { position: sticky; top: calc(var(--header-h) + 14px); }

.panel {
  min-width: 0;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: clamp(14px, 1.8vw, 22px);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.panel-head .step {
  display: block; color: var(--muted);
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.panel-head strong { display: block; font-size: 16px; margin-top: 3px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 1px solid var(--line-strong); border-radius: 50%; background: transparent;
  transition: background-color .18s ease, border-color .18s ease;
}
.icon-btn:hover { background: var(--paper-deep); border-color: var(--ink); }

/* --- схема --- */
.stage-outer {
  position: relative;
  /* Дуже довга стільниця не стискається — креслення прокручується
     всередині свого блока, а сторінка лишається без горизонтального скролу. */
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}
.stage {
  position: relative; margin-inline: auto;
  touch-action: pan-y; user-select: none; -webkit-user-select: none;
}
.stage .bowl-hit { touch-action: none; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage .bowl-hit { cursor: grab; }
.stage .bowl-ring { opacity: 0; transition: opacity .15s ease; }
.stage .bowl-hit:hover .bowl-ring,
.stage .bowl-hit:focus-visible .bowl-ring,
.stage.dragging .bowl-ring { opacity: 1; }
.stage.dragging .bowl-hit { cursor: grabbing; }
.stage .bowl-hit:focus-visible { outline: none; }

/* редаговані числа просто на розмірних лініях */
.dim-input {
  position: absolute; z-index: 3;
  display: inline-flex; align-items: center; gap: 2px;
  padding: 3px 7px 3px 8px;
  background: var(--white); border: 1.5px solid var(--ink); border-radius: 99px;
  box-shadow: 0 2px 6px rgba(14,29,40,.12);
  transform: translate(-50%, -50%);
  transition: border-color .15s ease, background-color .15s ease;
}
.dim-input:hover { background: var(--brand-wash); }
.dim-input:focus-within { border-color: var(--brand-deep); background: var(--brand-wash); box-shadow: 0 0 0 4px var(--focus-ring); }
.dim-input input {
  width: 4.2ch; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 13px; font-weight: 700; text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.dim-input input::-webkit-outer-spin-button,
.dim-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim-input i { font-style: normal; font-size: 10.5px; font-weight: 700; color: var(--muted); }
.dim-input::after {
  content: ""; position: absolute; right: -1px; top: -1px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--cta); border: 1.5px solid var(--white);
}

.stage-note {
  display: flex; align-items: flex-start; gap: 8px; margin-top: 10px;
  padding: 9px 12px; border-radius: var(--radius-m);
  background: var(--brand-wash); color: var(--ink-soft); font-size: 12.5px; line-height: 1.45;
}
.stage-note span { width: 12px; height: 12px; margin-top: 3px; flex: none; border-radius: 3px; background: rgba(6,167,233,.30); border: 1px dashed var(--ink); }

.stage-hint {
  display: flex; align-items: center; gap: 8px; margin-top: 10px;
  color: var(--muted); font-size: 12.5px;
}
.stage-hint svg { width: 16px; height: 16px; flex: none; }
.stage-hint--plain { margin-top: 6px; font-size: 12px; }

/* --- зчитування --- */
.readout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.readout div { display: flex; flex-direction: column; justify-content: space-between; background: var(--white); padding: 10px 12px; }
.readout span { display: block; color: var(--muted); font-size: 11.5px; line-height: 1.3; }
.readout b { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* --- відступи --- */
.gaps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gap {
  padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--paper); transition: background-color .2s ease, border-color .2s ease;
}
.gap span { display: block; color: var(--muted); font-size: 11.5px; }
.gap b { display: block; margin-top: 2px; font-size: 15px; font-variant-numeric: tabular-nums; }
.gap small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.gap.is-ok { background: var(--ok-wash); border-color: #cde2a4; }
.gap.is-ok b { color: var(--ok); }
.gap.is-warn { background: var(--warn-wash); border-color: #f0c4b8; }
.gap.is-warn b { color: var(--warn); }

.advice {
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px;
  margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-m);
  border: 1px solid var(--line);
}
.advice.is-ok { background: var(--ok-wash); border-color: #cde2a4; }
.advice.is-warn { background: var(--warn-wash); border-color: #f0c4b8; }
.advice i {
  display: grid; place-items: center; width: 28px; height: 28px; flex: none;
  border-radius: 50%; font-style: normal; font-weight: 800; font-size: 15px;
}
.advice.is-ok i { background: var(--ok); color: var(--white); }
.advice.is-warn i { background: var(--warn); color: var(--white); }
.advice b { display: block; font-size: 15px; }
.advice p { margin-top: 5px; color: var(--ink-soft); font-size: 14px; }
.advice ul { display: grid; gap: 4px; margin-top: 8px; }
.advice li { position: relative; padding-left: 15px; color: var(--ink-soft); font-size: 14px; }
.advice li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .5; }
.advice .advice-act { grid-column: 2; justify-self: start; }

.tech-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* --- елементи керування --- */
.control + .control { margin-top: 18px; }
.control-note { margin-top: 8px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

/* габарити стільниці: два числові поля, без штучної шкали */
.size-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.size-field { display: grid; gap: 7px; }
.size-field > span:first-child { font-size: 14px; font-weight: 600; }
.size-field .field { justify-content: space-between; min-height: 48px; padding: 8px 14px; }
.size-field .field input { width: 100%; text-align: left; font-size: 16px; }

/* пояснення до кольорового варіанта */
.shade-box {
  margin-top: 12px; padding: 14px 16px;
  background: var(--brand-wash); border: 1px solid #c9e6f7; border-radius: var(--radius-m);
}
.shade-box p { font-size: 13.5px; }
.shade-field { display: grid; gap: 6px; margin-top: 10px; }
.shade-field > span { font-size: 13px; font-weight: 600; }
.shade-field > span em { font-style: normal; color: var(--muted); font-weight: 500; }
.shade-field input {
  width: 100%; min-height: 44px; padding: 0 13px;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m);
  outline: none; font-size: 14px;
}
.shade-field input:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.shade-hint { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* приклад готового виробу з бортами */
.rim-example { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.rim-example img {
  width: 84px; height: 64px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); background: var(--paper-deep); flex: none;
}
.rim-example div { min-width: 0; }
.rim-example b { display: block; font-size: 13px; }
.rim-example p { color: var(--muted); font-size: 12px; margin-top: 2px; }
.rim-example button {
  margin-top: 5px; padding: 0; border: 0; background: none;
  color: var(--brand-ink); font-size: 12.5px; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
}
.rim-example button:hover { color: var(--brand-deep); }
.control-label {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 8px; font-size: 14px; font-weight: 600;
}
.field {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 5px 10px; border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--white);
  transition: border-color .15s ease;
}
.field:focus-within { border-color: var(--ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.field input {
  width: 4.4ch; padding: 0; border: 0; background: transparent; outline: none;
  font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.field input::-webkit-outer-spin-button, .field input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.field i { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }

input[type="range"] {
  width: 100%; height: 34px; margin: 0; appearance: none; background: transparent; outline: none;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 99px;
  background: linear-gradient(to right, var(--ink) var(--fill, 50%), var(--line) var(--fill, 50%));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 99px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 99px; background: var(--ink); }
input[type="range"]::-webkit-slider-thumb {
  appearance: none; width: 24px; height: 24px; margin-top: -10px;
  border: 5px solid var(--brand); border-radius: 50%; background: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border: 5px solid var(--brand); border-radius: 50%;
  background: var(--ink); box-shadow: 0 0 0 1.5px var(--ink); cursor: grab;
}
input[type="range"]:active::-webkit-slider-thumb { cursor: grabbing; }
.range-scale { display: flex; justify-content: space-between; color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }

/* --- вибір моделі --- */
.model-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.model {
  display: grid; gap: 6px; padding: 8px; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .18s ease, background-color .18s ease;
}
.model:hover { border-color: var(--line-strong); }
.model img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 7px; background: var(--paper-deep); }
.model-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.model-row > svg { width: 46px; height: 26px; flex: none; }
.model-row > span { min-width: 0; }
.model b { display: block; font-size: 13.5px; line-height: 1.2; }
.model small { display: block; color: var(--muted); font-size: 11px; }
.model[aria-checked="true"] { border-color: var(--ink); background: var(--brand-wash); }
.model-link { display: inline-block; margin-top: 5px; color: var(--muted); font-size: 11.5px; text-decoration: underline; text-underline-offset: 3px; }
.model-link:hover { color: var(--ink); }

/* --- вибір розміру --- */
.size-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.size {
  padding: 11px 12px; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  font-size: 13.5px; font-weight: 600; font-variant-numeric: tabular-nums;
  transition: border-color .18s ease, background-color .18s ease;
}
.size:hover { border-color: var(--line-strong); }
.size[aria-checked="true"] { border-color: var(--ink); background: var(--brand-wash); }

/* --- кольори й опції --- */
.colors { display: flex; flex-wrap: wrap; gap: 8px; }
.color {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 15px 9px 10px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 99px;
  font-size: 13.5px; font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease;
}
.color i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(14,29,40,.18); flex: none; }
.color[aria-checked="true"] { border-color: var(--ink); background: var(--brand-wash); }

.options { display: grid; gap: 7px; }
.opt {
  display: flex; align-items: center; gap: 11px;
  padding: 12px 14px; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  font-size: 14px; font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease;
}
.opt:hover { border-color: var(--line-strong); }
.opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.opt .box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--white);
  transition: background-color .15s ease, border-color .15s ease;
}
.opt .box::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.opt input:checked ~ .box { background: var(--brand); border-color: var(--ink); }
.opt input:checked ~ .box::after { transform: rotate(-45deg) scale(1); }
.opt input:focus-visible ~ .box { box-shadow: 0 0 0 4px var(--focus-ring); border-color: var(--ink); }
.opt:has(input:checked) { border-color: var(--ink); background: var(--brand-wash); }
.opt small { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 500; }

.side-switch { display: inline-flex; gap: 4px; padding: 3px; background: var(--paper-deep); border-radius: 99px; margin-left: auto; }
.side-switch button {
  padding: 5px 11px; border: 0; border-radius: 99px; background: transparent;
  font-size: 12px; font-weight: 700; color: var(--muted);
}
.side-switch button[aria-pressed="true"] { background: var(--white); color: var(--ink); box-shadow: var(--shadow-s); }

/* --- підсумок --- */
.estimate {
  display: grid; gap: 14px; padding: clamp(16px, 2vw, 22px);
  background: var(--ink); color: var(--white); border-radius: var(--radius-l);
}
.estimate .est-label { color: rgba(255,255,255,.6); font-size: 12.5px; }
.estimate .est-value {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); font-weight: 600;
  letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 4px;
}
.estimate .est-note { color: rgba(255,255,255,.62); font-size: 12.5px; line-height: 1.5; }
.estimate .est-cta-note { margin-top: -4px; }
.est-breakdown {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 14px;
  margin: 14px 0 0; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.16);
  font-size: 12.5px;
}
.est-breakdown dt { color: rgba(255,255,255,.62); }
.est-breakdown dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.estimate .btn-primary:hover { background: var(--cta-hover); }

/* --- липка панель на мобільному --- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none; align-items: center; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(14,29,40,.96); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white);
  transform: translateY(110%); transition: transform .28s ease;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .sc-price { flex: 1; min-width: 0; }
.sticky-cta .sc-price span { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.sticky-cta .sc-price b { display: block; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ============================================================================
   18. МОДАЛЬНЕ ВІКНО
   ============================================================================ */
body.no-scroll { overflow: hidden; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(14,29,40,.55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal-card {
  position: relative; z-index: 1;
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  margin: 12px auto; padding: clamp(20px, 3vw, 34px);
  /* на iPhone унизу екрана є системна смуга: додаємо під неї запас,
     інакше остання кнопка ховається під нею */
  padding-bottom: calc(clamp(20px, 3vw, 34px) + env(safe-area-inset-bottom, 0px));
  background: var(--paper); border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  animation: pop .22s ease;
}
@keyframes pop { from { opacity: 0; transform: translateY(10px); } }
.modal-close {
  position: absolute; right: 14px; top: 14px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--white); font-size: 18px;
}
.modal-close:hover { background: var(--paper-deep); }
.modal h2 { font-size: clamp(21px, 2.6vw, 28px); }
.modal .modal-intro { margin-top: 10px; color: var(--muted); font-size: 14.5px; }

.form-grid { display: grid; gap: 12px; margin-top: 20px; }
.form-field { display: grid; gap: 6px; }
.form-field > span { font-size: 13.5px; font-weight: 600; }
.form-field > span em { font-style: normal; color: var(--muted); font-weight: 500; }
.form-field textarea {
  width: 100%; min-height: 84px; padding: 12px 15px; resize: vertical;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m);
  outline: none; font-size: 15px; line-height: 1.5;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field textarea:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.form-field input[type="text"], .form-field input[type="tel"] {
  width: 100%; min-height: 50px; padding: 0 15px;
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-m);
  outline: none; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus { border-color: var(--brand-ink); box-shadow: 0 0 0 4px var(--focus-ring); }
.form-field input[aria-invalid="true"] { border-color: var(--warn); background: var(--warn-wash); }
.field-error { color: var(--warn); font-size: 12.5px; font-weight: 600; min-height: 0; }

.consent { display: flex; align-items: flex-start; gap: 11px; cursor: pointer; font-size: 13.5px; line-height: 1.45; }
.consent input { position: absolute; opacity: 0; width: 0; height: 0; }
.consent .box {
  display: grid; place-items: center; width: 22px; height: 22px; flex: none; margin-top: 1px;
  border: 1.5px solid var(--line-strong); border-radius: 6px; background: var(--white);
}
.consent .box::after {
  content: ""; width: 10px; height: 6px; margin-top: -2px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: rotate(-45deg) scale(0); transition: transform .15s ease;
}
.consent input:checked ~ .box { background: var(--brand); border-color: var(--ink); }
.consent input:checked ~ .box::after { transform: rotate(-45deg) scale(1); }
.consent input:focus-visible ~ .box { box-shadow: 0 0 0 4px var(--focus-ring); border-color: var(--ink); }

.form-error { color: var(--warn); font-size: 13.5px; font-weight: 600; }

.summary-box {
  margin-top: 16px; padding: 14px 16px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
}
.summary-box h3 { font-family: var(--font-body); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.summary-box dl { display: grid; grid-template-columns: auto 1fr; gap: 5px 14px; margin: 10px 0 0; font-size: 13px; }
.summary-box dt { color: var(--muted); }
.summary-box dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }

.send-list { display: grid; gap: 9px; margin-top: 18px; }
.send-opt {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 14px 16px; text-align: left;
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .18s ease, background-color .18s ease;
}
.send-opt:hover { border-color: var(--ink); background: var(--brand-wash); }
.send-opt.primary { background: var(--cta); border-color: var(--cta); color: var(--cta-text); }
.send-opt.primary:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.send-opt i { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%; background: var(--ink); color: var(--white); }
.send-opt.primary i { background: rgba(14,29,40,.14); color: var(--cta-text); }
.send-opt b { display: block; font-size: 14.5px; }
.send-opt small { display: block; color: var(--muted); font-size: 12.5px; }
.send-opt.primary small { color: rgba(14,29,40,.72); }
.send-steps { display: grid; gap: 6px; margin-top: 14px; padding: 13px 15px; background: var(--brand-wash); border-radius: var(--radius-m); font-size: 13px; }
.send-steps b { font-size: 13px; }
.send-steps ol { display: grid; gap: 3px; margin-top: 4px; padding-left: 18px; list-style: decimal; color: var(--ink-soft); }

.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: 99px;
  background: var(--ink); color: var(--white); box-shadow: var(--shadow-l);
  transform: translate(-50%, 140%); transition: transform .3s ease;
  font-size: 14px; max-width: calc(100vw - 32px);
}
.toast.show { transform: translate(-50%, 0); }
.toast i { display: grid; place-items: center; width: 22px; height: 22px; flex: none; border-radius: 50%; background: var(--brand); color: var(--ink); font-style: normal; font-size: 12px; font-weight: 800; }

/* ============================================================================
   19. СТОРІНКА ЧАШІ
   ============================================================================ */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 22px; color: var(--muted); font-size: 13px; }
.crumbs a:hover { color: var(--ink); }
.crumbs span[aria-current] { color: var(--ink); font-weight: 600; }

.detail-hero { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 58px); align-items: center; padding-block: clamp(26px, 4vw, 52px); }
.detail-hero h1 { margin-top: 4px; }
.detail-hero .lead { margin-top: 18px; max-width: 46ch; }
.detail-photo { position: relative; border-radius: var(--radius-l); overflow: hidden; background: var(--paper-deep); }
.detail-photo img { width: 100%; max-height: min(72vh, 620px); object-fit: cover; }
.detail-proofs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 26px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.detail-proofs div { background: var(--paper); padding: 13px 14px; }
.detail-proofs b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: -.03em; }
.detail-proofs span { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.detail-trust { margin-top: 16px; color: var(--muted); font-size: 13.5px; }
.detail-trust b { color: var(--ink); font-variant-numeric: tabular-nums; }

.sizes-panel { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(20px, 3vw, 48px); }
.size-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 8px; align-content: start; }
.size-link {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 17px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}
.size-link:hover { border-color: var(--ink); background: var(--brand-wash); transform: translateY(-1px); }
.size-link b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.size-link small { color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.size-link:hover small { color: var(--ink); }

.detail-note {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center;
  margin-top: 18px; padding: 18px 20px; background: var(--brand-wash);
  border: 1px solid #dff09a; border-radius: var(--radius-m);
}
.detail-note p { font-size: 14.5px; max-width: 62ch; }

.other-bowls { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.other-bowl {
  display: grid; gap: 8px; padding: 9px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m);
  transition: border-color .18s ease, transform .18s ease;
}
.other-bowl:hover { border-color: var(--ink); transform: translateY(-2px); }
.other-bowl img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; background: var(--paper-deep); }
.other-bowl b { font-size: 14px; }
.other-bowl small { display: block; color: var(--muted); font-size: 11.5px; }

/* ============================================================================
   20. АДАПТИВ
   ============================================================================ */
@media (max-width: 1180px) {
  .cfg { grid-template-columns: 1fr; }
  .cfg-col.preview { position: static; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .other-bowls { grid-template-columns: repeat(3, 1fr); }
}

/* Сім пунктів меню в один рядок вміщуються від 1280 px. Нижче показуємо
   бургер: так у смузі 1025–1279 px меню не переносилось у два рядки й не
   вилазило за край, а жоден пункт не зникав із доступу. */
/* Шість пунктів комерційного меню вміщуються від 1024 px. Нижче цього
   показуємо бургер із тим самим переліком. */
@media (max-width: 1023px) { .nav { display: none; } }

@media (max-width: 1024px) {
  .works-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .extras-grid { grid-template-columns: repeat(2, 1fr); }
  .work.tall { grid-row: auto; }
  .work.wide { grid-column: span 2; grid-row: auto; }
  .works-grid > :last-child { grid-column: span 2; }
  .process-list { grid-template-columns: repeat(2, 1fr); }
  .material { grid-template-columns: 1fr; }
  .material img { aspect-ratio: 4 / 3; }
  .sizes-panel { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .hero-visual { order: -1; }
  .hero-visual > img,
  .hero-visual picture > img { aspect-ratio: 3 / 2; max-height: 420px; }
  .hero-badge { width: 84px; height: 84px; font-size: 10.5px; }
  .hero-tag { padding: 9px 12px; }
  .hero-lead { margin-top: 14px; }
  .hero-actions { margin-top: 16px; }
  .section-head.split { grid-template-columns: 1fr; align-items: start; }
  .final { grid-template-columns: 1fr; }
  .detail-hero { grid-template-columns: 1fr; }
  .detail-hero .detail-photo { order: -1; }
  .detail-note { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root { --header-h: 58px; }
  .header-phone { display: none; }
  .hero { padding-block: 14px 26px; }
  .hero-visual > img,
  .hero-visual picture > img { max-height: 380px; }
  .hero .eyebrow { margin-bottom: 8px; font-size: 11px; letter-spacing: .1em; }
  .hero-claim { margin-top: 12px; }
  .cta-note { margin-top: 9px; font-size: 12.5px; }
  .hero-visual > img,
  .hero-visual picture > img { max-height: 330px; object-position: center 46%; }
  .hero-lead { margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .hero-actions .btn-primary { flex: 1 1 100%; }
  .hero-actions .btn-ghost { flex: 1 1 100%; min-height: 46px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 18px; }
  .stats > div { padding: 10px 11px; }
  .stats span { font-size: 11.5px; }
  .readout { grid-template-columns: repeat(2, 1fr); }
  .gaps { grid-template-columns: repeat(2, 1fr); }
  .model-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .extras-grid { grid-template-columns: 1fr; }
  .ba-item img { aspect-ratio: 4 / 3; }
  .process-list { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .detail-proofs { grid-template-columns: 1fr; }
  .other-bowls { grid-template-columns: repeat(2, 1fr); }
  .sticky-cta { display: flex; }
  /* Схема тут в одну колонку, тож прилипання лише з'їдало половину
     екрана над усіма наступними налаштуваннями. Вона показується
     один раз на початку й спокійно йде вгору при прокрутці. */
  .cfg-col.preview { gap: 10px; }
  body.has-sticky-cta { padding-bottom: 76px; }
  .advice { grid-template-columns: 1fr; }
  .advice .advice-act { grid-column: 1; }
  .advice i { display: none; }
}

/* На телефоні працює вертикальний кадр: співвідношення файлу 4:5,
   тож зображення показується без обрізання. */
@media (max-width: 620px) {
  .hero-visual > img,
  .hero-visual picture > img { aspect-ratio: 4 / 5; max-height: 340px; object-position: center 46%; }
}

@media (max-width: 420px) {
  .size-grid { grid-template-columns: 1fr; }
  .size-fields { grid-template-columns: 1fr; }
  .bowl-card-foot { flex-wrap: wrap; }
  .bowl-card-foot .btn { flex: 1 1 100%; }
}

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

@media print {
  .header, .sticky-cta, .modal, .toast, .btn { display: none !important; }
}

/* ============================================================================
   21. СТОРІНКА «НАШІ РОБОТИ»
   ============================================================================ */
.work-filters {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: clamp(18px, 2.4vw, 28px);
}
.work-filter {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 42px; padding: 9px 16px;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 99px;
  font-size: 14px; font-weight: 600;
  transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}
.work-filter span {
  min-width: 20px; padding: 1px 6px; border-radius: 99px;
  background: var(--paper-deep); color: var(--ink-soft);
  font-size: 11.5px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.work-filter:hover { border-color: var(--line-strong); }
.work-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--white); }
.work-filter.is-active span { background: rgba(255,255,255,.18); color: var(--white); }

.work-count { margin-top: 14px; color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.work-empty { margin-top: 20px; color: var(--muted); }

/* Галерея — колонковий masonry: фото ніколи не обрізається,
   кожен кадр показано в його власних пропорціях. */
.works-catalog {
  column-count: 3; column-gap: clamp(12px, 1.6vw, 20px);
}
.works-catalog > .work-card { break-inside: avoid; margin-bottom: clamp(12px, 1.6vw, 20px); }
.work-card {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.work-card[hidden] { display: none !important; }
.work-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-m); transform: translateY(-2px); }
.work-card-open {
  position: relative; display: block; width: 100%; padding: 0;
  border: 0; background: var(--paper-deep); cursor: zoom-in;
}
.work-card-open picture { display: block; }
.work-card-open img { width: 100%; height: auto; display: block; }
.work-card-zoom {
  position: absolute; right: 12px; bottom: 12px;
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(14,29,40,.72); color: var(--white);
  opacity: 0; transition: opacity .2s ease;
}
.work-card-zoom svg { width: 18px; height: 18px; }
.work-card:hover .work-card-zoom,
.work-card-open:focus-visible .work-card-zoom { opacity: 1; }

.work-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.work-card-body h3 { font-size: 18px; }
.work-card-body p { color: var(--muted); font-size: 14px; }
.work-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 4px; }
.work-tags li {
  padding: 4px 10px; border-radius: 99px;
  background: var(--paper-deep); color: var(--ink-soft);
  font-size: 11.5px; font-weight: 600;
}

.works-catalog.compact { column-count: 3; }

/* підпис у галереї — коротка назва, без вигляду товарного каталогу */
.work-card-body { padding: 11px 13px 13px; }
.work-card-body h3 { font-size: 15px; line-height: 1.3; font-weight: 700; }
.work-card-body p { margin-top: 4px; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* «Показати ще» */
.works-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(20px, 3vw, 32px); }
.works-more-count { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.works-more-note { margin-top: 12px; color: rgba(255,255,255,.72); font-size: 13.5px; }

/* CTA під галереєю */
.works-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  margin-top: clamp(34px, 5vw, 60px); padding: clamp(24px, 4vw, 40px);
  background: var(--brand-wash); border-radius: var(--radius-l); text-align: center;
}
.works-cta h2 { font-size: clamp(22px, 2.6vw, 30px); }
.works-cta p { max-width: 46ch; color: var(--ink-soft); }
.works-cta .btn { margin-top: 6px; }

/* ---------- великий перегляд ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: clamp(12px, 3vw, 40px);
  background: rgba(8, 18, 25, .95);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.lightbox[hidden] { display: none !important; }
.lightbox-figure {
  display: flex; flex-direction: column; gap: 14px;
  max-width: min(1100px, 100%); max-height: 100%;
}
.lightbox-figure img {
  max-width: 100%; max-height: 74vh; width: auto; height: auto;
  margin-inline: auto; border-radius: var(--radius-m); background: #17303f;
}
.lightbox-figure figcaption { color: rgba(255,255,255,.72); text-align: center; font-size: 14px; }
.lightbox-figure figcaption b { display: block; color: var(--white); font-size: 17px; margin-bottom: 4px; }
.lightbox-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 10px; }
.lightbox-links a {
  color: var(--brand); font-weight: 600; font-size: 13.5px;
  border-bottom: 1px solid rgba(6,167,233,.45); padding-bottom: 2px;
}
.lightbox-links a:hover { border-color: var(--brand); }

.lightbox-close, .lightbox-nav {
  position: absolute; z-index: 2;
  display: grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.08);
  color: var(--white); font-size: 26px; line-height: 1;
  transition: background-color .18s ease, border-color .18s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.5); }
.lightbox-close { top: clamp(12px, 2vw, 24px); right: clamp(12px, 2vw, 24px); font-size: 24px; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 32px; }
.lightbox-nav.prev { left: clamp(8px, 2vw, 24px); }
.lightbox-nav.next { right: clamp(8px, 2vw, 24px); }

@media (max-width: 1024px) {
  .works-catalog, .works-catalog.compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .works-catalog, .works-catalog.compact { grid-template-columns: 1fr; }
  .work-card-zoom { opacity: 1; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 26px; }
  .lightbox-figure img { max-height: 62vh; }
}


/* ---------- 20. Мобільне меню ---------- */
.burger {
  position: relative; display: none;
  width: 44px; height: 44px; padding: 0;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 12px;
}
.burger span {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px;
  background: var(--ink); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.burger span:nth-child(1) { top: 14px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
/* бургер з'являється рівно там, де ховається основна навігація */
@media (max-width: 1023px) { .burger { display: block; } }

.mobile-nav {
  display: flex; flex-direction: column;
  padding: 8px clamp(14px, 4vw, 22px) 16px;
  border-top: 1px solid var(--line); background: var(--white);
}
.mobile-nav[hidden] { display: none !important; }
.mobile-nav a {
  display: flex; align-items: center; min-height: 48px;
  padding: 4px 2px; font-size: 16px; font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav .nav-works { color: var(--brand-ink); }
.mobile-nav .nav-works[aria-current="page"] { color: var(--ink); }
.mobile-nav-phone { color: var(--muted); font-weight: 700; }

/* активний розділ у шапці */
.nav a[aria-current="page"], .mobile-nav a[aria-current="page"] { color: var(--brand-deep); }
.nav a[aria-current="page"]::after { right: 0; background: var(--brand); }

/* ---------- 21. Ширини галереї ---------- */
@media (min-width: 1280px) {
  .works-catalog { column-count: 4; }
}
@media (max-width: 1023px) {
  .works-catalog, .works-catalog.compact { column-count: 3; }
}
@media (max-width: 780px) {
  .works-catalog, .works-catalog.compact { column-count: 2; }
}
@media (max-width: 560px) {
  /* компактніші чипи, щоб фільтри не з'їдали весь перший екран,
     але площа натискання лишається зручною для пальця */
  .work-filters { gap: 6px; }
  .work-filter { min-height: 44px; padding: 8px 12px; font-size: 13.5px; gap: 6px; }
  .work-filter span { padding: 1px 5px; font-size: 11px; }
}
@media (max-width: 479px) {
  .works-catalog, .works-catalog.compact { column-count: 1; }
}

/* лічильник у великому перегляді */
.lightbox-counter {
  position: absolute; top: clamp(10px, 2vw, 20px); left: 50%; transform: translateX(-50%);
  padding: 5px 12px; border-radius: 99px;
  background: rgba(255,255,255,.14); color: var(--white);
  font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums;
}

/* пояснення правила для зони над пральною машиною */
.washer-rule {
  margin-top: 8px; padding: 8px 11px; border-radius: var(--radius-m);
  background: var(--brand-wash); color: var(--ink-soft);
  font-size: 12.5px; line-height: 1.45;
}
.washer-rule[hidden] { display: none !important; }

/* Фото цеху під етапами замовлення.
   Для кожної групи екранів свій кадр із того самого оригіналу:
   мобільний 4:5, планшет 16:10, десктоп 16:9. Пропорція задана в CSS
   наперед, тож сторінка не стрибає під час завантаження, а object-fit
   лише вирівнює вже правильно кадроване фото. */
.process-photo {
  display: block; width: 100%; height: auto;
  aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius-l); background: var(--paper-deep);
}
@media (min-width: 768px) { .process-photo { aspect-ratio: 16 / 10; } }
@media (min-width: 1024px) { .process-photo { aspect-ratio: 16 / 9; } }

/* Пастка для ботів: людина цього поля не бачить і не може сфокусувати. */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Кнопки на екрані «Заявку надіслано». Основна дія помітна, друга спокійніша,
   «Закрити» не сперечається з ними за увагу. */
.done-actions { display: grid; gap: 10px; margin-top: 18px; }
.btn-quiet {
  background: transparent; color: var(--muted); border-color: transparent;
  font-weight: 600;
}
.btn-quiet:hover { color: var(--ink); background: rgba(14,29,40,.04); }
.raw-fallback { display: block; margin-top: 14px; }
.raw-fallback > span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--muted); }
.raw-fallback textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 13px; line-height: 1.5;
  border: 1px solid var(--line-strong); border-radius: 12px; background: var(--white);
  color: var(--ink); resize: vertical;
}

/* ============================ ВІДЕО ============================
   Ролик вертикальний, тож не розтягуємо його на всю ширину секції:
   він живе у власному контейнері поруч із текстом. На вузькому екрані
   висоту обмежуємо через ширину, інакше відео з'їдало б увесь екран. */
.video-block {
  display: grid; gap: clamp(24px, 4vw, 48px);
  grid-template-columns: 1fr; align-items: center;
}
@media (min-width: 900px) {
  .video-block { grid-template-columns: 1fr auto; gap: clamp(32px, 5vw, 72px); }
}

.video-frame { margin: 0; }
.video-stage {
  position: relative;
  width: min(380px, 100%, calc(64vh * 0.5625));
  margin-inline: auto;
  aspect-ratio: 9 / 16;              /* розмір відомий заздалегідь, макет не стрибає */
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--paper-deep);
  box-shadow: var(--shadow-l);
}
.video-poster,
.video-el {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;                 /* пропорції ті самі, тож нічого не ріжеться */
  display: block;
}
.video-el { background: var(--paper-deep); }
.video-stage.is-playing .video-poster { opacity: 0; pointer-events: none; }
.video-poster { transition: opacity .3s ease; }

.video-fallback {
  position: absolute; inset: 0; margin: 0;
  display: flex; flex-direction: column; justify-content: center;
  padding: 24px; color: var(--ink); font-size: 14px; line-height: 1.6;
}

/* Кнопка керування. До першого запуску вона велика й по центру,
   під час відтворення стискається в кут, щоб не закривати виріб. */
.video-btn {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 13px 22px;
  border: 0; border-radius: 99px; cursor: pointer;
  background: rgba(14, 29, 40, .78); color: #fff;
  font: inherit; font-size: 15px; font-weight: 600;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background .18s ease, transform .18s ease, opacity .18s ease;
}
.video-btn:hover { background: rgba(14, 29, 40, .92); }
.video-btn:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.video-stage.is-playing .video-btn {
  left: auto; right: 12px; top: auto; bottom: 12px; transform: none;
  min-height: 46px; min-width: 46px; padding: 12px; gap: 0;
}
.video-stage.is-playing .video-btn-text { display: none; }
@media (hover: hover) {
  .video-stage.is-playing .video-btn { opacity: .55; }
  .video-stage:hover .video-btn, .video-btn:focus-visible { opacity: 1; }
}

.video-frame figcaption {
  margin-top: 12px; text-align: center;
  color: var(--muted); font-size: 13px;
}
@media (min-width: 900px) { .video-frame figcaption { text-align: left; } }

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

/* Кому важко з рухом на екрані, тому нічого не запускаємо самі. */
@media (prefers-reduced-motion: reduce) {
  .video-poster { transition: none; }
  .video-btn { transition: none; }
}

/* ============================================================================
   МОБІЛЬНИЙ ВИБІР ЧАШІ

   На телефоні дві колонки конфігуратора схлопуються в одну, і колонка
   зі схемою йде першою. Через це «Крок 01 Модель чаші» опинявся далеко
   внизу, і здавалося, що чаша тільки одна. Тому на вузькому екрані
   ставимо компактний блок обраної чаші прямо над схемою, а вибір моделі
   й розміру переносимо в окреме вікно.
   ============================================================================ */

/* Заголовок над схемою теж відкриває вибір. На великому екрані виглядає
   як звичайний підзаголовок, тож нічого не ламає. */
.preview-title {
  display: block; margin-top: 3px; padding: 0; border: 0; background: none;
  font: inherit; font-size: 16px; font-weight: 700; color: var(--ink);
  text-align: left; cursor: pointer;
}
.preview-title:hover { color: var(--brand-ink, var(--ink)); }
.preview-title:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.bowl-now { position: relative; display: none; margin-bottom: 12px; }
/* Скидання стоїть у нижньому рядку поруч із кнопкою: вкладати кнопку
   в кнопку не можна, а зверху вона наїжджала на розмір чаші. */
.bowl-now-reset {
  position: absolute; right: 10px; bottom: 10px; z-index: 1;
  width: 44px; height: 44px;
}
.bowl-now-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr);
  align-items: center; gap: 6px 10px; width: 100%;
  min-height: 64px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 16px;
  background: var(--white); text-align: left; cursor: pointer;
  transition: border-color .18s ease, background-color .18s ease;
}
.bowl-now-card:hover { border-color: var(--ink); }
.bowl-now-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.bowl-now-shape { display: grid; place-items: center; width: 40px; height: 28px; }
.bowl-now-shape svg { width: 40px; height: 24px; }
.bowl-now-shape svg { width: 46px; height: 26px; }
.bowl-now-text { min-width: 0; display: block; }
.bowl-now-text small {
  display: block; color: var(--muted); line-height: 1.4;
  font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}
/* Назва й розмір одним рядком: так картка не росте на вузькому екрані. */
.bowl-now-text b { display: block; font-size: 14.5px; line-height: 1.3; }
.bowl-now-text .num { color: var(--ink-soft); font-size: 13px; white-space: nowrap; }
/* Кнопка на всю ширину картки під текстом: на 360 px вона більше
   нічого не витісняє й лишається зручною для пальця. */
.bowl-now-cta {
  grid-column: 1 / -1;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 10px 14px; border-radius: 99px;
  /* місце праворуч під кнопку скидання */
  margin-right: 52px;
  background: var(--cta); color: var(--cta-text);
  font-size: 14px; font-weight: 700; white-space: nowrap;
}

/* Таблиця розмірів: на телефоні згорнута, на великому екрані розгорнута
   й без клікабельного заголовка. */
.readout-details > summary {
  display: none;
  min-height: 44px; align-items: center; gap: 8px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--white); cursor: pointer; list-style: none;
  font-size: 14px; font-weight: 600;
}
.readout-details > summary::-webkit-details-marker { display: none; }
.readout-details > summary::after {
  content: ""; margin-left: auto; width: 9px; height: 9px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .18s ease;
}
.readout-details[open] > summary::after { transform: rotate(-135deg); }
.readout-details > summary:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }

/* Швидке розташування чаші: три очевидні варіанти замість того,
   щоб обов'язково тягнути чашу пальцем. */
.quick-pos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.qp {
  min-height: 44px; padding: 10px 8px;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: var(--white); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: border-color .18s ease, background-color .18s ease;
}
.qp:hover { border-color: var(--ink); }
.qp:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.qp[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }

/* ---------- вікно вибору чаші ---------- */
.sheet { position: fixed; inset: 0; z-index: 110; display: none; }
.sheet.open { display: block; }
.sheet-backdrop {
  position: absolute; inset: 0; background: rgba(14,29,40,.55);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
}
.sheet-card {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  display: flex; flex-direction: column;
  width: min(620px, 100%);
  max-height: 88dvh;
  background: var(--paper);
  border-radius: var(--radius-l) var(--radius-l) 0 0;
  box-shadow: var(--shadow-l);
  animation: sheetUp .24s ease;
}
@keyframes sheetUp { from { transform: translate(-50%, 22px); } }
@media (min-width: 768px) {
  .sheet-card {
    top: 50%; bottom: auto; transform: translate(-50%, -50%);
    max-height: 86dvh; border-radius: var(--radius-l);
  }
  @keyframes sheetUp { from { transform: translate(-50%, calc(-50% + 16px)); } }
}

.sheet-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 14px clamp(14px, 3vw, 22px);
  border-bottom: 1px solid var(--line);
}
.sheet-head h2 { flex: 1 1 auto; margin: 0; font-size: 17px; }
.sheet-back {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 44px; padding: 10px 12px; margin-left: -6px;
  border: 0; border-radius: 12px; background: transparent;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-soft); cursor: pointer;
}
.sheet-back:hover { background: rgba(14,29,40,.05); color: var(--ink); }
.sheet-back:focus-visible, .sheet-close:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.sheet-close {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px;
  border: 1px solid var(--line-strong); border-radius: 50%;
  background: transparent; cursor: pointer;
}
.sheet-close:hover { background: rgba(14,29,40,.05); }

.sheet-body {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(14px, 3vw, 20px);
  /* нижня системна смуга iPhone не має ховати останній розмір */
  padding-bottom: calc(clamp(14px, 3vw, 20px) + env(safe-area-inset-bottom, 0px));
}

.sheet-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-form {
  display: block; width: 100%; padding: 0 0 10px;
  border: 2px solid var(--line); border-radius: 16px;
  background: var(--white); cursor: pointer; overflow: hidden; text-align: left;
  transition: border-color .18s ease;
}
.sheet-form:hover { border-color: var(--line-strong); }
.sheet-form:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sheet-form[aria-checked="true"] { border-color: var(--ink); }
.sheet-form img {
  display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  background: var(--paper-deep);
}
.sheet-form-row {
  display: flex; align-items: center; gap: 8px; padding: 9px 11px 0;
}
.sheet-form-row svg { flex: none; width: 40px; height: 23px; }
.sheet-form-row b { display: block; font-size: 14px; line-height: 1.25; }
.sheet-form-row small { display: block; color: var(--muted); font-size: 12px; }
.sheet-form-mark {
  display: none; margin: 8px 11px 0; padding: 4px 9px; border-radius: 99px;
  background: var(--ink); color: var(--white); font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; width: fit-content;
}
.sheet-form[aria-checked="true"] .sheet-form-mark { display: block; }

.sheet-model { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sheet-model img {
  flex: none; width: 76px; height: 76px; border-radius: 14px; object-fit: cover;
  background: var(--paper-deep);
}
.sheet-model b { display: block; font-size: 17px; }
.sheet-model small { display: block; color: var(--muted); font-size: 13px; }
.sheet-model a { display: inline-block; margin-top: 4px; font-size: 13px; }
.sheet-hint { margin: 0 0 10px; color: var(--muted); font-size: 13px; }

.sheet-sizes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet-size {
  min-height: 52px; padding: 12px 10px;
  border: 2px solid var(--line); border-radius: 14px;
  background: var(--white); font: inherit; font-size: 15px; font-weight: 600;
  font-variant-numeric: tabular-nums; cursor: pointer;
  transition: border-color .18s ease;
}
.sheet-size:hover { border-color: var(--line-strong); }
.sheet-size:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.sheet-size[aria-checked="true"] { border-color: var(--ink); background: var(--ink); color: var(--white); }
.sheet-warn {
  margin: 12px 0 0; padding: 12px 14px; border-radius: 14px;
  background: #fff5e6; border: 1px solid #f0c98a; color: #7a4b06;
  font-size: 13.5px; line-height: 1.55;
}
.sheet-warn b { display: block; margin-bottom: 4px; }
.sheet-warn ul { margin: 6px 0 0; padding-left: 18px; }

/* ---------- телефон: новий порядок блоків ---------- */
@media (max-width: 767px) {
  /* Колонки перестають бути окремими контейнерами, тож панелі можна
     переставити в потрібному порядку однією сіткою.
     minmax(0, 1fr) обов'язковий: без нього панель не може стати вужчою
     за свій min-content і на вузькому екрані вилазить за край. */
  .cfg { display: grid; grid-template-columns: minmax(0, 1fr); }
  .cfg-col { display: contents; }

  .cfg-col.preview > .panel:first-child { order: 1; }  /* чаша + схема */
  .cfg-col.preview > .readout-details { order: 2; }    /* згорнуті розміри */
  .panel[data-m-order="board"]  { order: 3; }          /* розміри стільниці */
  .panel[data-m-order="place"]  { order: 4; }          /* розташування чаші */
  .panel[data-m-order="finish"] { order: 5; }          /* поверхня й борти */
  .panel[data-m-order="gaps"]   { order: 6; }          /* автоматичні відступи */
  .estimate { order: 7; }                              /* вартість і заявка */

  /* Вибір моделі й розміру живе у вікні, тож дублювати панелі не треба. */
  .panel[data-m-order="models"],
  .panel[data-m-order="sizes"] { display: none; }

  /* Назва й розмір уже є в картці обраної чаші, а всередині креслення
     підпис лишається: він стосується саме того, що рухають пальцем. */
  .cfg-col.preview > .panel:first-child > .panel-head { display: none; }

  .bowl-now { display: block; }
  .readout-details > summary { display: flex; }

  /* Довгі пояснення на телефоні тільки відсувають головне вниз. */
  .only-wide { display: none; }
  .panel-head .preview-title { font-size: 14px; }
  .stage-hint { font-size: 12.5px; }
  .readout-details > .readout { margin-top: 10px; }

  .sheet-forms { gap: 9px; }
  .sheet-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* На найвужчих екранах назва з розміром опинялась рівно на межі
   переносу, тож даємо їй трохи більше місця. */
@media (max-width: 389px) {
  .bowl-now-shape { width: 34px; height: 24px; }
  .bowl-now-shape svg { width: 34px; height: 20px; }
  .bowl-now-card { gap: 6px 8px; padding: 10px; }
  .bowl-now-text b { font-size: 14px; }
  .bowl-now-text .num { font-size: 12px; }
}

@media (max-width: 359px) {
  .sheet-forms { grid-template-columns: 1fr; }
}

/* ---------- планшет: компактний блок корисний, але кроки лишаються ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .bowl-now { display: block; }
  .sheet-forms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sheet-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Кнопка повернення до схеми. Звичайна, у потоці сторінки: нічого
   не закріплюємо, бо зверху вже є шапка, а знизу панель вартості. */
.link-btn.back-to-stage {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); text-decoration: underline;
  text-underline-offset: 3px;
}
.link-btn.back-to-stage:hover { color: var(--ink); }
.link-btn.back-to-stage:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.control-label:has(.back-to-stage) { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Під закріпленою панеллю вартості має лишатись місце разом із
   системною смугою iPhone, інакше остання кнопка ховається під нею. */
@media (max-width: 720px) {
  body.has-sticky-cta {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }
}

/* ============================================================================
   24. КАТАЛОГ ГОТОВИХ РІШЕНЬ І ТОВАРНА СТОРІНКА

   Рекламний трафік здебільшого мобільний, тож перший екран картки товару
   зібраний під телефон: фото, назва, ціна й кнопка вміщуються без довгої
   прокрутки, а нижня панель дублює ціну, коли головна кнопка пішла вгору.
   ============================================================================ */
.crumbs { font-size: 13px; color: var(--ink-soft); margin: 0 0 14px; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }

.cat-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 12px; }
.cat-count { color: var(--ink-soft); font-size: 14px; margin: 0 0 16px; }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cat-card { min-width: 0; }
.cat-card[hidden] { display: none; }
.cat-card-link {
  display: flex; flex-direction: column; height: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.cat-card-link:hover { border-color: var(--ink); box-shadow: 0 18px 30px -24px rgba(14,29,40,.5); }
.cat-card-link picture { display: block; }
.cat-card-link img { display: block; width: 100%; height: 210px; object-fit: cover; }
.cat-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px 16px; flex: 1; }
.cat-card-body h2 { font-size: 16px; line-height: 1.3; margin: 0; }
.cat-card-spec { color: var(--ink-soft); font-size: 13.5px; margin: 0; }
.cat-card-price { margin: auto 0 0; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.cat-card-price b { font-size: 20px; font-variant-numeric: tabular-nums; }
.cat-card-price span { color: var(--ink-soft); font-size: 12.5px; }
.cat-card-cta { align-self: flex-start; margin-top: 4px; }
.cat-empty { color: var(--ink-soft); margin: 24px 0; }
.cat-note {
  margin-top: 36px; padding: clamp(18px, 3vw, 28px);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
}
.cat-note h2 { margin: 0 0 8px; font-size: 20px; }
.cat-note p { margin: 0 0 14px; color: var(--ink-soft); max-width: 62ch; }

/* ------------------------------------------------------- товарна сторінка */
.pd-top { padding-top: 18px; }
.pd-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(18px, 3vw, 36px); align-items: start; }
.pd-gallery { min-width: 0; }
.pd-slide { border-radius: var(--radius-l); overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.pd-slide img { display: block; width: 100%; height: auto; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 74px; height: 60px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: none; cursor: pointer;
}
.pd-thumb.is-on { border-color: var(--ink); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.pd-buy { min-width: 0; }
.pd-buy h1 { font-size: clamp(21px, 3.4vw, 30px); line-height: 1.2; margin: 0 0 10px; }
.pd-price { margin: 0 0 12px; }
.pd-price b { font-size: clamp(28px, 5vw, 36px); font-variant-numeric: tabular-nums; }
.pd-badges { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pd-badges li {
  font-size: 13px; padding: 6px 11px; border-radius: 999px;
  background: var(--paper); color: var(--ink-soft);
}
.pd-badges .pd-avail { background: #e7f6ec; color: #1b6b39; font-weight: 600; }
.pd-order { width: 100%; }
.pd-tweak { display: inline-block; margin-top: 12px; }
.pd-short { color: var(--ink-soft); margin: 16px 0 0; }

.pd-spec { display: grid; gap: 0; margin: 16px 0 26px; max-width: 720px; }
.pd-spec-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.pd-spec-row dt { color: var(--ink-soft); margin: 0; }
.pd-spec-row dd { margin: 0; font-weight: 600; }
.pd-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-bottom: 20px; }
.pd-list h3 { font-size: 16px; margin: 0 0 10px; }
.pd-disclaimer {
  color: var(--ink-soft); font-size: 14px; background: var(--paper);
  padding: 14px 16px; border-radius: 12px; max-width: 74ch; margin: 0;
}
.pd-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.pd-info-grid h3 { font-size: 16px; margin: 0 0 8px; }
.pd-info-grid p { color: var(--ink-soft); margin: 0; }
.pd-advantages { margin-top: 16px; }
.pd-cta-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.pd-cta-in h2 { font-size: 20px; margin: 0 0 8px; }
.pd-cta-in p { color: var(--ink-soft); margin: 0 0 14px; }

.pd-similar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pd-similar-card {
  display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none;
  border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; background: var(--white);
}
.pd-similar-card:hover { border-color: var(--ink); }
.pd-similar-card img { width: 100%; height: 140px; object-fit: cover; display: block; }
.pd-similar-name { padding: 0 12px; font-size: 14px; line-height: 1.3; }
.pd-similar-price { padding: 0 12px 12px; font-weight: 700; }

/* нижня панель ціни на телефоні */
.pd-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none;
  align-items: center; gap: 12px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--ink); color: var(--white);
}
.pd-sticky-price { flex: 1; min-width: 0; }
.pd-sticky-price span { display: block; color: rgba(255,255,255,.55); font-size: 11px; }
.pd-sticky-price b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-sticky .btn { flex: 0 0 auto; }

/* форма замовлення */
.order-sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 12px 0 14px; margin: 0 0 8px; border-bottom: 1px solid var(--line);
}
.order-sum span { color: var(--ink-soft); font-size: 14px; }
.order-sum b { font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.order-error { color: #b3261e; min-height: 20px; margin: 6px 0 0; font-size: 14px; }
.order-note { color: var(--ink-soft); font-size: 13px; margin: 12px 0 0; }
.order-done { text-align: center; padding: 18px 0; }
.order-done h2 { font-size: 22px; margin: 0 0 10px; }
.order-done p { color: var(--ink-soft); margin: 0 0 18px; }

@media (max-width: 860px) {
  .pd-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .pd-buy h1 { font-size: 21px; }
  .cat-card-link img { height: 190px; }
}
@media (max-width: 720px) {
  .pd-sticky { display: flex; }
  body.has-pd-sticky { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
  .pd-spec-row { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 0; }
  .pd-similar-card img { height: 120px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: minmax(0, 1fr); }
  .pd-thumb { width: 62px; height: 50px; }
}

/* Фільтри на телефоні: один рядок із горизонтальним прокручуванням усередині
   смуги. Чотири рядки чипів з'їдали перший екран, а карток не було видно. */
@media (max-width: 720px) {
  .cat-filters {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -16px; padding-inline: 16px;
    scroll-snap-type: x proximity;
  }
  .cat-filters::-webkit-scrollbar { display: none; }
  .cat-filters .chip { flex: 0 0 auto; scroll-snap-align: start; }
  .cat-note { margin-top: 26px; }
}

/* ============================================================================
   25. СТОРІНКИ УМОВ (оплата, гарантія, повернення, контакти, політика)
   ============================================================================ */
.doc { max-width: 780px; }
.doc h1 { margin-bottom: 14px; }
.doc h2 { font-size: 20px; margin: 30px 0 12px; }
.doc p { margin: 0 0 14px; }
.doc-lead { font-size: 17px; color: var(--ink-soft); }
.doc-steps { margin: 0 0 18px; padding-left: 22px; }
.doc-steps li { margin-bottom: 10px; }
.doc .ticks, .doc .crosses { margin-bottom: 18px; }
/* Списки умов і спеціалізації досі лишались без жодного маркера: глобальний
   reset прибирає крапки, а власного значка в .ticks не було. */
.ticks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; color: var(--ink-soft); }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em;
  width: 11px; height: 6px; border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg);
}
.doc-note {
  background: var(--paper); border-radius: 12px; padding: 16px 18px; margin: 22px 0;
}
.doc-note p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }
.doc-spec { margin: 0 0 20px; }
.doc-spec > div {
  display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
  gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.doc-spec dt { color: var(--ink-soft); margin: 0; }
.doc-spec dd { margin: 0; font-weight: 600; }
.doc-more { color: var(--ink-soft); font-size: 14px; margin-top: 26px; }
.footer-legal a { font-size: 13.5px; }

/* короткий блок умов на картці товару */
.pd-terms { margin: 18px 0 0; font-size: 14px; color: var(--ink-soft); }
.pd-terms a { color: var(--ink); text-decoration: underline; }
.pd-pay {
  margin: 14px 0 0; padding: 14px 16px; background: var(--paper); border-radius: 12px;
}
.pd-pay-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.pd-pay-row b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pd-pay-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); }
.order-pay { margin: 0 0 14px; }

@media (max-width: 620px) {
  .doc-spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ============================================================================
   26. ТОВАРНА СТОРІНКА: ГАЛЕРЕЯ, ПЕРШИЙ ЕКРАН, ЩІЛЬНІ ВІДСТУПИ

   Фотографії робіт мають різні пропорції: є горизонтальні 1200×900 і
   вертикальні 675×1200. Тому головне фото вписуємо цілком (contain) на
   світлому тлі й обмежуємо висоту — інакше вертикальний кадр займав би
   весь екран телефона, і клієнт не бачив би ціни.

   Секції товарної сторінки мали padding 60px згори й знизу, тобто 120px
   між блоками. Для щільної комерційної сторінки це забагато, тож нижче
   вони переозначені.
   ============================================================================ */
.pd .section { padding-top: 34px; padding-bottom: 34px; }
.pd .pd-top { padding-top: 16px; }
.pd .section h2 { margin-top: 0; }

/* --- галерея --- */
.pd-stage {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-l); overflow: hidden;
}
.pd-slide { display: block; }
.pd-slide[hidden] { display: none !important; }
.pd-slide picture { display: block; }
.pd-slide img {
  display: block; width: 100%; height: auto;
  max-height: 60vh; object-fit: contain; background: var(--paper);
}
.pd-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 1px solid var(--line);
  border-radius: 10px; background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
}
.pd-count {
  position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(14,29,40,.72); color: #fff; font-size: 12px; font-variant-numeric: tabular-nums;
}
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumb {
  width: 76px; height: 58px; padding: 0; border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; background: var(--paper); cursor: pointer;
}
.pd-thumb.is-on { border-color: var(--ink); }
.pd-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Поки картинка вантажиться, місце під неї має тло, а не білу дірку. */
.cat-card-media, .pd-similar-card picture, .pd-thumb { background: var(--paper); }
.cat-card-media { display: block; background: var(--paper); }

/* --- перший екран --- */
.pd-eyebrow {
  margin: 0 0 8px; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 700;
}
.pd-buy h1 { font-size: clamp(20px, 3.2vw, 28px); line-height: 1.22; margin: 0 0 10px; }
.pd-intro { color: var(--ink-soft); margin: 0 0 14px; }
.pd-example {
  background: var(--paper); border-radius: 12px; padding: 13px 15px; margin: 0 0 14px;
}
.pd-example-title { margin: 0 0 4px; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.pd-example-spec { margin: 0 0 6px; font-size: 14.5px; }
.pd-example-price { margin: 0; font-size: 15px; }
.pd-example-price b { font-size: 24px; font-variant-numeric: tabular-nums; }
.pd-main-cta, .pd-order { width: 100%; }
.pd-order { margin-top: 10px; }
.pd-badges { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.pd-badges li { font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: var(--paper); color: var(--ink-soft); }
.pd-badges .pd-avail { background: #e7f6ec; color: #1b6b39; font-weight: 600; }

/* --- що можна змінити --- */
.pd-change-lead { color: var(--ink-soft); max-width: 68ch; }
.pd-change h3 { font-size: 16px; margin: 18px 0 12px; }
.pd-change-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px; margin-bottom: 18px;
}
.pd-change-card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 12px 14px; display: flex; flex-direction: column; gap: 3px;
}
.pd-change-card b { font-size: 14px; }
.pd-change-card span { color: var(--ink-soft); font-size: 13px; }

.pd-how-list { margin: 0; padding-left: 20px; max-width: 70ch; }
.pd-how-list li { margin-bottom: 9px; color: var(--ink-soft); }
.pd-how-list b { color: var(--ink); }

/* --- повноекранний перегляд --- */
.pd-lb {
  position: fixed; inset: 0; z-index: 90; background: rgba(12,18,24,.94);
  display: grid; place-items: center; padding: 46px 12px;
}
.pd-lb[hidden] { display: none !important; }
.pd-lb-stage { max-width: 100%; max-height: 100%; display: grid; place-items: center; }
.pd-lb-img { max-width: 100%; max-height: calc(100vh - 100px); object-fit: contain; display: block; }
.pd-lb-img[hidden] { display: none !important; }
.pd-lb-close, .pd-lb-nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0;
  border-radius: 999px; cursor: pointer; display: grid; place-items: center;
}
.pd-lb-close { top: 12px; right: 12px; width: 42px; height: 42px; font-size: 19px; }
.pd-lb-nav { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; font-size: 27px; line-height: 1; }
.pd-lb-prev { left: 10px; }
.pd-lb-next { right: 10px; }
.pd-lb-count {
  position: absolute; top: 18px; left: 50%; transform: translateX(-50%);
  color: #fff; font-size: 13px; font-variant-numeric: tabular-nums;
}

/* --- каталог: бейдж і друга дія --- */
.cat-badge {
  display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; background: #e7f6ec; color: #1b6b39;
}
.cat-card-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; display: block; }
.cat-card { display: flex; }
.cat-card-link { display: flex; flex-direction: column; width: 100%; }
.cat-card-body { flex: 1; }
/* Кнопка притиснута до низу картки, тож усі картки ряду мають однакову висоту
   незалежно від довжини назви. */
.cat-card-cta { margin-top: auto; }
.cat-card-body { display: flex; flex-direction: column; gap: 7px; }
.cat-card-price { display: block; font-size: 14px; color: var(--ink-soft); }
.cat-card-price b { font-size: 19px; color: var(--ink); }
.cat-hero {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 16px 18px; margin: 18px 0 20px;
}
.cat-hero p { margin: 0; flex: 1 1 320px; color: var(--ink-soft); }
.cat-hero b { color: var(--ink); }

/* --- реквізити --- */
.doc-bank { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 0 0 22px; }
.doc-bank .doc-spec { margin: 0; }
.doc-iban { font-variant-numeric: tabular-nums; word-break: break-all; }
.doc-warn { margin: 14px 0 0; color: #8a5300; background: #fff6e5; border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.footer-seller { color: var(--ink-soft); font-size: 12.5px; line-height: 1.5; margin: 10px 0 0; max-width: 44ch; }

@media (max-width: 860px) {
  .pd-head { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  /* Вертикальні кадри 675×1200 за пропорцією виходили на 630 px і зсували
     ціну та кнопку за межі першого екрана. Обмежуємо половиною екрана:
     виріб лишається читабельним, а пропозиція видно одразу. */
  .pd-slide img { max-height: 50vh; }

  /* Мініатюри між фото й ціною з'їдали ще 70 px першого екрана,
     тому на телефоні вони стоять під блоком покупки. */
  .pd-gallery { display: contents; }
  .pd-stage { order: 1; }
  .pd-buy { order: 2; }
  .pd-thumbs { order: 3; margin-top: 0; }
}
@media (max-width: 720px) {
  .pd .section { padding-top: 26px; padding-bottom: 26px; }
  .pd-sticky .btn { padding-inline: 12px; }
  .pd-lb-img { max-height: calc(100vh - 120px); }
}
@media (max-width: 720px) {
  /* На телефоні пропозиція важливіша за розмір кадру: трохи нижче фото —
     і ціна з кнопкою потрапляють на перший екран навіть у вертикальних робіт. */
  .pd-slide img { max-height: 44vh; }
  .pd-intro { margin-bottom: 10px; font-size: 14.5px; }
  .pd-example { padding: 11px 13px; margin-bottom: 12px; }
  .pd-badges { margin-top: 10px; }
}
@media (max-width: 420px) {
  .pd-thumb { width: 64px; height: 50px; }
  .pd-example-price b { font-size: 21px; }
}

/* Місце під фото, яке ще не завантажилось, має тло, а не білу дірку.
   Задаємо і <picture>, і самому <img>: браузер малює тло елемента
   ще до того, як з'явиться перший піксель зображення. */
.cat-card-media picture, .cat-card-media img,
.pd-similar-card picture, .pd-similar-card img,
.pd-thumb picture, .pd-thumb img { background: var(--paper); }

/* ============================================================================
   27. КОМПАКТНИЙ ПІДВАЛ

   Раніше підвал повторював усі розділи одним стовпцем і ніс реквізити ФОП,
   адресу й графік. Це робило його схожим на службову сторінку. Тепер три
   короткі колонки й один рядок з умовами; повні реквізити лишились там,
   де їх шукають: на сторінках контактів і оплати.
   ============================================================================ */
.footer-in {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px 32px; align-items: start; padding-block: 26px;
}
/* Старий підвал мав власні великі відступи в .footer і .footer-top —
   через них знизу лишалась порожня смуга. */
.footer { padding-block: 0; }
.footer .wrap { padding-block: 0; }
.footer-brand p { margin: 8px 0 0; color: rgba(255,255,255,.66); font-size: 13.5px; max-width: 34ch; }
.footer-made { margin-top: 4px !important; font-size: 12.5px !important; }
.footer-nav, .footer-contacts { display: flex; flex-direction: column; gap: 8px; }
.footer-nav a, .footer-contacts a { color: rgba(255,255,255,.86); font-size: 14px; text-decoration: none; }
.footer-nav a:hover, .footer-contacts a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center;
  justify-content: space-between; padding-block: 14px;
  border-top: 1px solid rgba(255,255,255,.14);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.footer-legal a { color: rgba(255,255,255,.72); font-size: 12.5px; text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-copy { margin: 0; color: rgba(255,255,255,.6); font-size: 12.5px; }

@media (max-width: 760px) {
  .footer-in { grid-template-columns: minmax(0, 1fr); gap: 22px; padding-block: 24px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* ------------------------------------------- «Як замовити»: три кроки */
.pd-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 16px 0 18px; }
.pd-step {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
}
.pd-step-num {
  width: 30px; height: 30px; border-radius: 999px; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 700;
}
.pd-step b { font-size: 15px; }
.pd-step span { color: var(--ink-soft); font-size: 14px; line-height: 1.45; }
@media (max-width: 760px) {
  .pd-steps { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .pd-step { padding: 14px 16px; }
}

/* --------------------------------- схожі роботи: виріб видно цілком */
.pd-similar-card picture {
  display: block; background: var(--paper); aspect-ratio: 4 / 3; overflow: hidden;
}
.pd-similar-card img {
  width: 100%; height: 100%; object-fit: contain; object-position: center; display: block;
}
.pd-similar-card { padding-bottom: 12px; }
.pd-similar-name { padding: 10px 12px 0; }

/* одне спокійне посилання під кнопками замість розсипу */
.pd-more-link { display: inline-block; margin-top: 12px; font-size: 14px; }

/* ------------------------------------ фотографії цієї роботи */
.pd-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pd-photo {
  padding: 0; border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; background: var(--paper); cursor: zoom-in; display: block;
}
.pd-photo picture { display: block; aspect-ratio: 4 / 3; background: var(--paper); }
.pd-photo img { width: 100%; height: 100%; object-fit: contain; display: block; }
@media (max-width: 520px) {
  .pd-photos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
}

/* Статус приймання замовлень стоїть біля ціни: покупцю він потрібен саме там,
   а не в загальному списку переваг. */
.pd-example .pd-avail {
  display: inline-block; margin: 8px 0 0; padding: 4px 10px; border-radius: 999px;
  background: #e7f6ec; color: #1b6b39; font-size: 12.5px; font-weight: 600;
}

/* Фінальний заклик уже стоїть у секції з власними відступами, тож
   зовнішній margin картки тут зайвий: він давав 184 px порожнечі. */
.pd-cta .cat-note { margin-top: 0; }
.pd-photos + .pd-how { padding-top: 8px; }

/* ============================================================================
   28. НИЖНЯ ЧАСТИНА ГОЛОВНОЇ: ПРИКЛАДИ З ЦІНАМИ, ФІНАЛЬНА ПЛАШКА, ПІДВАЛ

   Секції головної мали padding 115 px згори й знизу, тобто 230 px між
   блоками. Унизу сторінки це читалось як порожнеча, тому для трьох
   останніх блоків відступи зменшені.
   ============================================================================ */
#examples, #faq, #examples + .section { padding-top: 64px; padding-bottom: 64px; }
main > .section:last-child { padding-top: 0; padding-bottom: 64px; }

.ex-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px; margin: 22px 0 24px;
}
.ex-card { display: flex; min-width: 0; }
.ex-card-link {
  display: flex; flex-direction: column; width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-l);
  overflow: hidden; color: inherit; text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.ex-card-link:hover { border-color: var(--ink); box-shadow: 0 18px 30px -24px rgba(14,29,40,.5); }
.ex-card-media { display: block; background: var(--paper); aspect-ratio: 4 / 3; }
.ex-card-media picture { display: block; height: 100%; background: var(--paper); }
.ex-card-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ex-card-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.ex-card-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.ex-card-size { color: var(--ink-soft); font-size: 14px; }
.ex-card-price { display: flex; flex-direction: column; gap: 1px; margin-top: 2px; }
.ex-card-price small { color: var(--ink-soft); font-size: 12.5px; }
.ex-card-price b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ex-card-cta { align-self: flex-start; margin-top: auto; }
.examples-more { margin: 4px 0 0; text-align: center; }

@media (max-width: 1023px) { .ex-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .ex-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; } }

/* ---------------------------------------------------- фінальна плашка */
.final {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 18px 36px; padding: 26px clamp(24px, 3vw, 36px);
  border-radius: var(--radius-l); background: var(--brand); color: var(--white);
}
.final-text { flex: 1 1 420px; min-width: 0; }
.final .eyebrow { color: rgba(255,255,255,.86); margin: 0 0 8px; }
.final h2 { font-size: clamp(29px, 3.4vw, 37px); line-height: 1.12; margin: 0 0 8px; color: var(--white); }
.final p { font-size: 16.5px; line-height: 1.45; margin: 0; color: rgba(255,255,255,.92); max-width: 52ch; }
.final-cta { flex: 0 0 auto; min-height: 54px; }

@media (max-width: 760px) {
  .final { flex-direction: column; align-items: stretch; padding: 26px 24px; gap: 18px; }
  .final h2 { font-size: 29px; }
  .final p { font-size: 16px; }
  .final-cta { width: 100%; justify-content: center; }
}

/* ------------------------------------------------- читабельний підвал */
.footer-in { padding-block: 36px 26px; gap: 24px 36px; }
.footer .brand { font-size: 22px; }
.footer .brand-mark { width: 30px; height: 30px; font-size: 15px; }
.footer-brand p { font-size: 15px; line-height: 1.45; color: rgba(255,255,255,.74); margin-top: 10px; }
.footer-made { font-size: 14px !important; color: rgba(255,255,255,.6) !important; }
.footer-nav, .footer-contacts { gap: 11px; }
.footer-nav a, .footer-contacts a { font-size: 15.5px; line-height: 1.45; padding-block: 2px; }
.footer-bottom { padding-block: 18px 24px; border-top: 1px solid rgba(255,255,255,.16); }
.footer-legal { gap: 10px 20px; }
.footer-legal a { font-size: 14px; line-height: 1.45; padding-block: 2px; color: rgba(255,255,255,.78); }
.footer-copy { font-size: 14px; color: rgba(255,255,255,.66); }

/* aspect-ratio задає лише бажану пропорцію: якщо вміст вищий, блок
   розтягується, і вертикальні кадри ламали висоту карток. Тому картинку
   виймаємо з потоку — тоді співвідношення тримається завжди. */
.ex-card-media, .pd-similar-card picture, .pd-photo picture {
  position: relative; overflow: hidden;
}
.ex-card-media picture, .pd-similar-card picture > img, .pd-photo picture > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.ex-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* добірки над сіткою каталогу */
.cat-cats { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 4px 0 14px; }
.cat-cats a { font-size: 14px; color: var(--brand-ink); text-decoration: underline; }
.cat-faq { margin: 32px 0 0; }
.cat-faq h2 { font-size: 20px; margin-bottom: 12px; }
.cat-related { margin: 28px 0 0; }
.cat-related h2 { font-size: 18px; margin-bottom: 10px; }
.cat-related ul { margin: 0; padding-left: 18px; }
.cat-related li { margin-bottom: 6px; }
.cat-related a { color: var(--ink); }

/* кнопка «Показати ще» під сіткою каталогу */
.cat-more { margin: 18px 0 0; text-align: center; }
.cat-more[hidden] { display: none !important; }


/* Картки каталогу показують адаптовані кадри 4:3 з теки assets/img/card:
   вони вже обрізані навколо виробу, тож cover нічого не втрачає, а сітка
   лишається рівною. Раніше тут стояв contain, і вертикальні знімки давали
   широкі порожні поля з боків. */
.cat-card-media img, .ex-card-media img, .pd-similar-card img { object-fit: cover; }

/* ---------------------------------------------------------------- статті --
   Розділ «Поради». Спираємось на наявний .doc: тут лише те, чого в ньому
   ще не було, тобто фотографії з підписом, таблиці й блок питань.
   -------------------------------------------------------------------------- */
.art { max-width: 760px; }
.art-meta { color: var(--muted); font-size: 15px; margin: -6px 0 22px; }
.art-photo { margin: 26px 0; }
.art-photo picture { display: block; }
.art-photo img {
  width: 100%; height: auto; display: block;
  border-radius: 14px; background: var(--paper);
}
.art-photo figcaption {
  margin-top: 10px; color: var(--muted);
  font-size: 15px; line-height: 1.5;
}
.art-q { font-weight: 700; margin: 20px 0 4px; }
.art-a { margin-top: 0; }
.doc-rule { border: 0; border-top: 1px solid var(--line); margin: 30px 0; }
.doc-cta { margin-top: 26px; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.doc-table { border-collapse: collapse; width: 100%; font-size: 16px; }
.doc-table th, .doc-table td {
  padding: 10px 14px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top; white-space: nowrap;
}
.doc-table th { font-size: 14px; color: var(--muted); font-weight: 700; }
.doc-table td:first-child, .doc-table th:first-child { white-space: normal; }

/* блок «Корисно прочитати» на комерційних сторінках */
.useful {
  margin: 26px 0 0; padding: 16px 18px;
  background: var(--paper); border-radius: 14px;
}
.useful b { display: block; margin-bottom: 4px; }
.useful p { margin: 0; color: var(--muted); }
.useful a { font-weight: 600; }

@media (max-width: 720px) {
  .art-photo { margin: 20px 0; }
  .doc-table { font-size: 15px; }
  .doc-table th, .doc-table td { padding: 8px 10px; }
}

/* ============================================================ автори й «Про BulBul» ==
   Блок авторства під заголовком статті, сторінки Єгора й Андрія, цифри та
   історія компанії. Фотографії скрізь квадратні й обрізаються по центру:
   вихідні кадри мають різну пропорцію, а object-fit: cover без фіксованої
   сторони розтягнув би обличчя.
   ==================================================================================== */
.byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  margin: -2px 0 26px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white);
}
.byline-person { display: flex; align-items: center; gap: 11px; min-width: 0; }
.byline-face { flex: none; display: block; }
.byline-face img {
  width: 44px; height: 44px; border-radius: 50%;
  object-fit: cover; display: block;
}
.byline-text { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-soft); }
.byline-role { color: var(--muted); }
.byline-note { display: block; font-size: 13px; color: var(--muted); }
.byline-text a { font-weight: 700; color: var(--brand-ink); text-decoration: underline; }
.byline-text a:hover { color: var(--brand-deep); }
.byline-dates { margin: 0; font-size: 13px; color: var(--muted); }
/* На широкому екрані блок стає однорядковим: посада й досвід ідуть другим
   рядком дрібним шрифтом, дата відсувається вправо. */
@media (min-width: 900px) {
  .byline { flex-wrap: nowrap; align-items: center; gap: 24px; padding: 12px 16px; }
  .byline-face img { width: 38px; height: 38px; }
  .byline-text { font-size: 13.5px; }
  .byline-note { font-size: 12.5px; }
  .byline-dates { margin-left: auto; white-space: nowrap; }
}

.author-face { display: block; }
.author-face img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius-m); display: block;
}
.author-head {
  display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: start;
  margin-bottom: 6px;
}
.author-head .eyebrow { margin-bottom: 10px; }
.author-lead { font-size: 17px; line-height: 1.55; color: var(--ink-soft); margin: 0; }

.author-articles { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.author-articles li {
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white);
}
.author-articles a { font-weight: 700; color: var(--brand-ink); }
.author-articles a:hover { color: var(--brand-deep); }
.author-articles span { display: block; margin-top: 3px; font-size: 14px; color: var(--muted); }

.author-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.author-card a {
  display: flex; align-items: center; gap: 16px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white); color: inherit;
}
.author-card a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-s); }
.author-face--sm { flex: none; width: 96px; }
.author-card-name { display: block; font-weight: 700; font-size: 17px; }
.author-card-role { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }

/* П'ять чисел в один рядок на широкому екрані. Ширину колонки задаємо
   явними точками, а не auto-fit: контейнер .doc вужчий за вікно, і auto-fit
   лишав п'яту картку самотньою на другому рядку. */
.stat-grid {
  display: grid; gap: 12px; margin: 26px 0 8px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 480px) { .stat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat-card {
  padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white);
}
.stat-num { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.stat-note { display: block; margin-top: 4px; font-size: 14px; line-height: 1.4; color: var(--muted); }

.timeline { list-style: none; margin: 0 0 18px; padding: 0 0 0 18px; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 18px 16px; }
.timeline li::before {
  content: ""; position: absolute; left: -25px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--brand); border: 2px solid var(--paper, #fff);
}
.timeline-year { display: block; font-weight: 800; font-size: 16px; }
.timeline-text { display: block; margin-top: 2px; color: var(--ink-soft); }

.team { display: grid; gap: 20px; margin-bottom: 8px; }
.team-member { display: grid; grid-template-columns: 148px 1fr; gap: 18px; align-items: start; }
.team-name { margin: 0; font-size: 18px; font-weight: 800; }
.team-name a { color: var(--brand-ink); }
.team-name a:hover { color: var(--brand-deep); }
.team-role { margin: 2px 0 8px; font-size: 14px; color: var(--muted); }
.team-bio { margin: 0; color: var(--ink-soft); }

@media (max-width: 560px) {
  .author-head { grid-template-columns: 132px 1fr; gap: 16px; }
  .team-member { grid-template-columns: 120px 1fr; gap: 14px; }
  .author-face--sm { width: 72px; }
  .byline { gap: 10px 16px; padding: 12px 13px; }
}
@media (max-width: 420px) {
  .author-head { grid-template-columns: 1fr; }
  .author-head .author-face { max-width: 160px; }
  .team-member { grid-template-columns: 1fr; }
  .team-member .author-face { max-width: 150px; }
}


/* ================================================== стаття на широкому екрані ==
   До 1100 px стаття лишається однією колонкою, як була. Від 1100 px поруч
   з’являється вузька колонка зі змістом, кнопкою розрахунку й кількома
   матеріалами. Текст не розтягується: основна колонка обмежена 740 px.
   ============================================================================== */
/* .wrap тримає горизонтальні відступи всередині max-width, тож щоб корисної
   ширини лишалось рівно 1120 px, відступи додаємо до обмеження. */
.art-wrap { max-width: calc(1120px + var(--pad-x) * 2); }
.art-layout { display: block; }
/* Поки колонки немає, стаття тримає ту саму ширину, що й раніше, і стоїть
   посередині ширшого контейнера. */
.art-main { max-width: 760px; margin-inline: auto; }
.art-side { max-width: 760px; margin: 34px auto 0; }
.art-side-in { display: grid; gap: 16px; }

.side-title {
  margin: 0 0 10px; font-size: 12px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.side-toc, .side-more, .side-cta {
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white);
}
.side-toc ol { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 14px; }
.side-toc li { line-height: 1.35; }
.side-toc a { color: var(--ink-soft); }
.side-toc a:hover { color: var(--brand-ink); text-decoration: underline; }

.side-cta p { margin: 0 0 10px; font-size: 15px; font-weight: 700; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.side-cta-link {
  display: block; margin-top: 10px; text-align: center;
  font-size: 14px; color: var(--brand-ink); text-decoration: underline;
}
.side-cta-link:hover { color: var(--brand-deep); }

.side-more ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.side-more li { line-height: 1.35; }
.side-more a { font-size: 14px; font-weight: 600; color: var(--ink); }
.side-more a:hover { color: var(--brand-ink); text-decoration: underline; }
.side-more span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* 740 + 44 + 280 = 1064 px плюс відступи: дві колонки вмикаємо там, де
   вони справді вміщуються, інакше текст вийшов би вужчим за потрібне. */
@media (min-width: 1160px) {
  .art-layout {
    display: grid;
    grid-template-columns: minmax(0, 740px) 280px;
    gap: 44px;
  }
  .art-main { max-width: 740px; margin-inline: 0; }
  /* Колонка тягнеться на всю висоту рядка: інакше липкому блоку всередині
     немає куди рухатись, і він просто їде разом зі сторінкою. */
  .art-side { max-width: none; margin: 0; min-width: 0; align-self: stretch; }
  /* Липкий блок відступає від липкої шапки й ніколи не вищий за екран:
     довгий зміст прокручується всередині себе, а не лізе на підвал. */
  .art-side-in {
    position: sticky; top: calc(var(--header-h) + 20px);
    max-height: calc(100vh - var(--header-h) - 40px);
    overflow-y: auto; overscroll-behavior: contain;
    padding-right: 2px;
  }
}
@media (min-width: 1240px) {
  .art-layout { grid-template-columns: minmax(0, 760px) 300px; gap: 48px; }
  .art-main { max-width: 760px; margin-inline: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ================================================== сантехніка й комплект ==
   Супутні товари Kroner і покроковий підбір. Сітки колонок задані явно, бо
   картки тут щільніші за каталог умивальників, а на телефоні все має лягати
   у дві колонки без горизонтальної прокрутки.
   ============================================================================ */
.kr-supplier {
  margin: 0 0 22px; padding: 10px 14px; font-size: 14px; line-height: 1.45;
  color: var(--ink-soft); background: var(--brand-wash);
  border-radius: var(--radius-m);
}

/* ---------- вітрина розділу ---------- */
.kr-tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 30px; }
.kr-tile { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); overflow: hidden; }
.kr-tile-media { display: block; background: var(--paper-deep); }
.kr-tile-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.kr-tile-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kr-tile-body h2 { margin: 0; font-size: 18px; }
.kr-tile-body h2 a { color: var(--ink); }
.kr-tile-body h2 a:hover { color: var(--brand-ink); }
.kr-tile-body p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-soft); }
.kr-tile-meta { margin-top: auto !important; font-size: 13px !important; color: var(--muted) !important; }
.kr-tile-soft { background: var(--paper); border-style: dashed; }

/* ---------- фільтри ---------- */
.kr-toolbar { margin-bottom: 18px; }
.kr-filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: end; }
.kr-f { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.kr-f select {
  min-width: 140px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
}
.kr-f select:focus-visible { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--focus-ring); }
.kr-f-check { flex-direction: row; align-items: center; gap: 8px; padding-bottom: 8px; color: var(--ink-soft); font-size: 14px; }
.kr-f-check input { width: 18px; height: 18px; }
.kr-count { margin: 12px 0 0; font-size: 14px; color: var(--muted); }
.kr-empty { margin: 24px 0; padding: 18px; text-align: center; color: var(--muted); background: var(--white); border: 1px dashed var(--line-strong); border-radius: var(--radius-m); }

/* ---------- сітка карток ---------- */
.kr-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); }
.kr-grid-sm { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.kr-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); overflow: hidden; min-width: 0; }
.kr-card[hidden] { display: none; }
.kr-card[data-out] { opacity: .72; }
.kr-card-media { display: block; background: var(--paper-deep); }
.kr-card-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.kr-card-body { padding: 12px 13px 14px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.kr-card-brand { margin: 0; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kr-card-title { margin: 0; font-size: 14.5px; line-height: 1.32; font-weight: 600; }
.kr-card-title a { color: var(--ink); }
.kr-card-title a:hover { color: var(--brand-ink); }
.kr-card-meta { margin: 0; font-size: 13px; color: var(--muted); }
.kr-card-price { margin: 4px 0 8px; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.kr-card-price s { margin-left: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.kr-card .kr-add { margin-top: auto; }
.kr-add.is-on { background: var(--ok-wash); border-color: var(--ok); color: var(--ok); }
.kr-out { margin: auto 0 0; font-size: 13px; font-weight: 700; color: var(--warn); }
.kr-noimg { display: block; aspect-ratio: 1 / 1; background: var(--paper-deep); }

.kr-cta { margin: 30px 0; padding: 20px; text-align: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-m); }
.kr-cta p { margin: 0 0 12px; font-size: 16px; font-weight: 600; }

/* ---------- картка товару ---------- */
.kr-product { display: grid; gap: 26px; margin-bottom: 34px; }
.kr-gallery-main { background: var(--paper-deep); border-radius: var(--radius-m); overflow: hidden; }
.kr-gallery-main img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.kr-gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.kr-thumb { width: 72px; height: 72px; padding: 0; border: 1.5px solid var(--line); border-radius: var(--radius-s); background: var(--white); overflow: hidden; cursor: pointer; }
.kr-thumb.is-on { border-color: var(--brand); }
.kr-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.kr-ident { display: grid; gap: 6px; margin: 0 0 14px; }
.kr-ident div { display: flex; gap: 10px; font-size: 14px; }
.kr-ident dt { color: var(--muted); min-width: 108px; }
.kr-ident dd { margin: 0; font-weight: 600; }
.kr-price-big { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kr-price-big s { margin-left: 10px; font-size: 17px; font-weight: 500; color: var(--muted); }
.kr-price-note { margin: 0 0 12px; font-size: 13px; color: var(--muted); }
.kr-stock { margin: 0 0 16px; font-size: 14px; font-weight: 700; }
.kr-stock.is-ok { color: var(--ok); }
.kr-stock.is-out { color: var(--warn); }
.kr-fit { margin-top: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.kr-fit-title { margin: 0 0 6px; font-weight: 800; }
.kr-fit-text { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.kr-detail { display: grid; gap: 30px; margin-bottom: 34px; }
.kr-detail-main h2, .kr-detail-side h2 { font-size: 19px; margin: 26px 0 10px; }
.kr-detail-main h2:first-child { margin-top: 0; }
.kr-detail-main p { margin: 0 0 12px; max-width: 68ch; }
.kr-limits li { color: var(--ink-soft); }
.kr-specs div { display: flex; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.kr-specs dt { flex: 0 0 46%; color: var(--muted); }
.kr-specs dd { margin: 0; font-weight: 600; }

@media (min-width: 860px) {
  .kr-product { grid-template-columns: minmax(0, 520px) minmax(0, 1fr); align-items: start; }
  .kr-detail { grid-template-columns: minmax(0, 1fr) minmax(0, 360px); }
}

/* ---------- конструктор комплекту ---------- */
/* Елементи гріда за замовчуванням не вужчі за свій вміст, і довга назва
   товару розсовувала сторінку вбік на телефоні. Звідси min-width: 0. */
.bn { display: grid; gap: 24px; margin: 26px 0 34px; }
.bn-main, .bn-side, .bn-step, .bn-picked > div { min-width: 0; }
.bn-picked-name, .bn-picked-meta, .bn-why, .bn-notes { overflow-wrap: anywhere; }
.bn-step { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); overflow: hidden; margin-bottom: 12px; }
.bn-step.is-done { border-color: var(--ok); }
.bn-step-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; flex-wrap: wrap; }
.bn-step-n { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--paper-deep); font-size: 14px; font-weight: 800; }
.bn-step.is-done .bn-step-n { background: var(--ok); color: #fff; }
.bn-step-head h2 { margin: 0; font-size: 17px; flex: none; }
.bn-step-state { flex: 1; min-width: 120px; font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bn-step-toggle { padding: 7px 14px; font: inherit; font-size: 14px; font-weight: 700; color: var(--brand-ink); background: none; border: 1.5px solid var(--line-strong); border-radius: 99px; cursor: pointer; }
.bn-step-toggle:hover { border-color: var(--brand-ink); }
.bn-body { padding: 0 16px 16px; }
.bn-picked { display: flex; gap: 14px; padding: 0 16px 16px; }
.bn-picked img { width: 92px; height: 92px; flex: none; object-fit: contain; background: var(--paper-deep); border-radius: var(--radius-s); }
.bn-picked-name { margin: 0 0 3px; font-weight: 700; }
.bn-picked-meta { margin: 0 0 6px; font-size: 13.5px; color: var(--muted); }
.bn-fit { margin: 0 0 4px; font-size: 13.5px; font-weight: 700; }
.bn-fit.is-fit { color: var(--ok); }
.bn-fit.is-check { color: #8a5a00; }
.bn-why, .bn-notes { margin: 0 0 6px; font-size: 13px; line-height: 1.4; color: var(--ink-soft); }
.bn-notes { color: var(--muted); }
.bn-remove { padding: 0; font: inherit; font-size: 13.5px; color: var(--warn); background: none; border: 0; text-decoration: underline; cursor: pointer; }

.bn-opts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); max-height: 560px; overflow-y: auto; padding: 2px; }
.bn-opt { display: flex; flex-direction: column; gap: 4px; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--radius-m); background: var(--white); cursor: pointer; min-width: 0; }
.bn-opt:hover { border-color: var(--brand); }
.bn-opt.is-check { border-style: dashed; }
.bn-opt-media { display: block; background: var(--paper-deep); border-radius: var(--radius-s); overflow: hidden; }
.bn-opt-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.bn-opt-body { display: flex; flex-direction: column; gap: 3px; }
.bn-opt-brand { font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.bn-opt-name { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.bn-opt-meta { font-size: 12.5px; color: var(--muted); }
.bn-opt-price { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bn-opt-fit { font-size: 12px; font-weight: 700; }
.bn-opt-fit.is-fit { color: var(--ok); }
.bn-opt-fit.is-check { color: #8a5a00; }
.bn-opt-why { font-size: 12px; line-height: 1.35; color: var(--muted); }
.bn-opt-btn { margin-top: 6px; padding: 7px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--cta-text); background: var(--cta); border-radius: 99px; }
.bn-step-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.bn-note { margin: 0; padding: 14px; font-size: 14px; line-height: 1.5; color: var(--ink-soft); background: var(--paper); border-radius: var(--radius-m); }
.bn-note-warn { background: var(--cta-wash); }
.bn-warn { margin: 0 0 16px; padding: 14px 16px; font-size: 14px; line-height: 1.5; background: var(--cta-wash); border-left: 3px solid var(--cta); border-radius: var(--radius-s); }

.bn-side-in { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--white); }
.bn-side-title { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bn-count { margin: 0 0 12px; font-size: 14px; color: var(--ink-soft); }
.bn-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 0 0 6px; font-size: 14px; color: var(--muted); }
.bn-total b { font-size: 24px; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.bn-total-note { margin: 0 0 16px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.bn-form-title { margin: 0 0 12px; font-weight: 800; }
.bn-field { display: block; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.bn-field span { display: block; margin-bottom: 4px; }
.bn-field i { font-style: normal; font-size: 12px; }
.bn-field input, .bn-field textarea {
  width: 100%; padding: 9px 11px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
}
.bn-field input:focus-visible, .bn-field textarea:focus-visible { border-color: var(--ink); outline: none; box-shadow: 0 0 0 4px var(--focus-ring); }
.bn-check { display: flex; gap: 9px; align-items: start; margin: 12px 0; font-size: 13px; color: var(--ink-soft); }
.bn-check input { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.bn-error { margin: 0 0 10px; font-size: 13.5px; color: var(--warn); }
.bn-done { padding: 14px; font-size: 15px; background: var(--ok-wash); border-radius: var(--radius-m); }
.bn-done p { margin: 0; }

@media (min-width: 1000px) {
  .bn { grid-template-columns: minmax(0, 1fr) 330px; align-items: start; }
  .bn-side { align-self: stretch; }
  .bn-side-in { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; }
}
@media (max-width: 560px) {
  .kr-grid, .kr-grid-sm { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .bn-opts { grid-template-columns: repeat(2, 1fr); max-height: 460px; }
  .kr-card-body { padding: 10px; }
  .kr-card-title { font-size: 13.5px; }
  .kr-f select { min-width: 0; width: 100%; }
  .kr-f { flex: 1 1 140px; }
  .bn-picked img { width: 70px; height: 70px; }
  .kr-specs dt { flex-basis: 52%; }
}

/* Блок комплектації на головній: чотири короткі плитки без фотографій, щоб
   не перетягувати увагу з основної пропозиції. */
.kr-tiles-home { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.kr-home-tile {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  border: 1px solid var(--line); border-radius: var(--radius-m);
  background: var(--white); color: inherit;
}
.kr-home-tile:hover { border-color: var(--brand); box-shadow: var(--shadow-s); }
.kr-home-name { font-size: 17px; font-weight: 800; }
.kr-home-note { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* Вхід у підбір комплекту: на сторінці товару й під калькулятором. */
.pd-complect { padding-block: clamp(28px, 4vw, 44px); }
.pd-complect h2 { margin-bottom: 10px; }
.pd-complect p { max-width: 64ch; color: var(--ink-soft); }
.pd-complect-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cfg-complect {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 16px 0 0; padding: 14px 16px; font-size: 14px; line-height: 1.5;
  background: var(--brand-wash); border-radius: var(--radius-m);
}
.cfg-complect b { font-weight: 800; }

/* Перемикач переливу в конструкторі та заглушка без фото. */
.bn-overflow { padding: 0 16px 14px; }
.bn-overflow label { display: flex; gap: 10px; align-items: start; cursor: pointer; }
.bn-overflow input { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.bn-overflow b { display: block; font-size: 14.5px; }
.bn-overflow small { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.bn-opt-noimg { display: block; aspect-ratio: 1 / 1; background: var(--paper-deep); border-radius: var(--radius-s); }
.bn-opt-media picture { display: block; }
.bn-opt-media img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; display: block; }
.bn-picked picture { flex: none; }
.bn-picked picture img { width: 92px; height: 92px; object-fit: contain; background: var(--paper-deep); border-radius: var(--radius-s); }
.bn-opt-service { justify-content: center; min-height: 150px; }
.bn-opt-service .bn-opt-name { font-size: 15px; }
@media (max-width: 560px) { .bn-picked picture img { width: 70px; height: 70px; } }

/* Переваги в картці товару та рядок брендів у розділі. */
.kr-perks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 7px; }
.kr-perks li { position: relative; padding-left: 24px; font-size: 14px; color: var(--ink-soft); }
.kr-perks li::before {
  content: ""; position: absolute; left: 2px; top: .42em;
  width: 10px; height: 6px; border-left: 2px solid var(--brand-ink);
  border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg);
}
.kr-brands { margin: 0 0 22px; font-size: 14.5px; color: var(--muted); }
.bn-opt.is-no { opacity: .78; cursor: default; }
.bn-opt.is-no:hover { border-color: var(--line); }
.bn-opt-btn.is-off { background: var(--paper-deep); color: var(--muted); }
.bn-opt-fit.is-no { color: var(--warn); }
.kr-more { margin: 22px 0 0; text-align: center; }
