/* ============================================================================
   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;
  overflow-x: hidden;
}

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: 26px; font-size: 14px; font-weight: 600; }
.nav a { position: relative; padding-block: 6px; }
.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);
  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); }
}

@media (max-width: 1024px) {
  .nav { display: none; }
  .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 .panel:first-child {
    position: sticky; top: var(--header-h); z-index: 20;
    border-top-left-radius: 12px; border-top-right-radius: 12px;
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
    border-bottom-color: transparent;
    box-shadow: 0 16px 22px -18px rgba(14,29,40,.55);
  }
  .cfg-col.preview .readout { border-top-left-radius: 0; border-top-right-radius: 0; margin-top: -1px; }
  .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: 1024px) { .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; }
