/* ═══ Трудолюб Цегла — дизайн-система ════════════════════════════════════
   Тепла паперова основа, один теракотовий акцент (колір самої цегли),
   Golos Text для тексту, Unbounded — для заголовків і великих чисел.
   Ніяких градієнтів і скла: колір мають давати фото. */

:root {
  --bg: #f6f1ea;
  --bg-2: #efe7dc;
  --surface: #fffdf9;
  --ink: #1e1713;
  --ink-2: #4a3f38;
  --muted: #7a6c62;
  --line: rgba(30, 23, 19, .12);
  --line-2: rgba(30, 23, 19, .22);

  --clay: #b7472a;
  --clay-2: #9a3a21;
  --clay-3: #7e2f1b;
  --clay-soft: #f3dcd2;
  --clay-tint: #fbf1ec;

  --dark: #24191480;
  --dark-bg: #221915;
  --dark-bg-2: #2e221c;
  --dark-ink: #f6f1ea;
  --dark-muted: rgba(246, 241, 234, .66);
  --dark-line: rgba(246, 241, 234, .14);

  --ok: #2f8f5b;
  --warn: #c98a1a;
  --bad: #c2382b;

  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Unbounded", "Golos Text", system-ui, sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --shadow: 0 1px 2px rgba(30, 23, 19, .05), 0 12px 32px -12px rgba(30, 23, 19, .18);
  --shadow-lg: 0 2px 4px rgba(30, 23, 19, .05), 0 28px 60px -24px rgba(30, 23, 19, .32);

  --wrap: 1200px;
  --pad-x: clamp(16px, 4vw, 40px);
  --sec-y: clamp(64px, 9vw, 120px);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: var(--clay-2); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--clay-soft); }
.tnum { font-variant-numeric: tabular-nums; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--pad-x); }

/* ═══ Типографіка ═══ */
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.h3 { font-family: var(--font-display); font-weight: 500; font-size: 18px; line-height: 1.3; }
.lead { font-size: clamp(16px, 1.25vw, 18px); line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--clay);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow--light { color: #f0b39c; }

.sec { padding-block: var(--sec-y); }
.sec__head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec__head .lead { margin-top: 4px; }

/* ═══ Кнопки ═══ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  font: inherit; font-weight: 600; font-size: 15px; line-height: 1;
  color: var(--ink); background: transparent;
  border: 1.5px solid var(--line-2); border-radius: 999px;
  padding: 11px 20px; min-height: 44px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--clay); border-color: var(--clay); color: #fff; box-shadow: 0 8px 20px -10px rgba(183, 71, 42, .7); }
.btn-primary:hover { background: var(--clay-2); border-color: var(--clay-2); color: #fff; box-shadow: 0 10px 24px -10px rgba(183, 71, 42, .8); }
.btn-ghost { background: transparent; }
.btn-light { border-color: var(--dark-line); color: var(--dark-ink); }
.btn-light:hover { border-color: var(--dark-ink); background: rgba(255,255,255,.06); }
.btn-block { width: 100%; }
.btn-lg { min-height: 52px; padding-inline: 26px; font-size: 16px; }

.pill {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: var(--bg-2); color: var(--ink-2);
}
.pill-accent { background: var(--clay); color: #fff; }

.chip {
  cursor: pointer; font: inherit; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: 999px;
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink-2);
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.is-active { border-color: var(--clay); background: var(--clay-tint); color: var(--clay-2); }

/* ═══ Поля ═══ */
.field { display: grid; gap: 6px; }
.field > span, .field > legend { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field--light > span { color: var(--dark-muted); }
.field__err { display: block; font-style: normal; font-size: 13px; color: #ffb4a8; }
.input {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; font-size: 16px;
  color: var(--ink); caret-color: var(--clay);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  transition: border-color .15s, box-shadow .15s;
}
.input:hover { border-color: var(--ink-2); }
.input:focus-visible { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft); }
.input.is-invalid { border-color: var(--bad); }
textarea.input { min-height: 90px; resize: vertical; }
select.input { appearance: auto; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 15px; }
.radio input { accent-color: var(--clay); width: 18px; height: 18px; margin: 0; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* ═══ Хедер ═══ */
.site-nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246, 241, 234, .86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-nav__in { display: flex; align-items: center; gap: 28px; min-height: var(--nav-h); }
.site-nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink);
  text-decoration: none; white-space: nowrap;
}
.site-nav__brand:hover { text-decoration: none; }
.site-nav__mark { display: grid; grid-template-columns: repeat(2, 11px); gap: 2px; width: 24px; }
.site-nav__mark i { display: block; height: 6px; background: var(--clay); border-radius: 1.5px; }
.site-nav__mark i:nth-child(2) { grid-column: 2; }
.site-nav__mark i:nth-child(3) { grid-column: 1 / -1; width: 15px; margin-left: 4px; }
.site-nav__menu { display: flex; align-items: center; gap: 4px; margin-inline: auto; }
.site-nav__menu > a { color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.site-nav__menu > a:hover { color: var(--ink); background: var(--bg-2); text-decoration: none; }
.site-nav__mobile { display: none; }
.site-nav__side { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.site-nav__msg { display: inline-flex; gap: 2px; }
.site-nav__msg a { display: inline-flex; padding: 8px; border-radius: 999px; color: var(--ink-2); }
.site-nav__msg a:hover { background: var(--bg-2); color: var(--clay); }
.site-nav__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.site-nav__phone:hover { text-decoration: none; color: var(--clay); }
.site-nav__phone-text { display: grid; line-height: 1.15; }
.site-nav__phone-text b { font-size: 15px; font-weight: 700; white-space: nowrap; }
.site-nav__phone-text small { font-size: 12px; color: var(--muted); }
.site-nav__burger { display: none; }
.site-nav--plain .site-nav__in { justify-content: space-between; }

/* ═══ Hero ═══ */
.hero { padding-top: clamp(36px, 6vw, 80px); padding-bottom: clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(300px, .8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.hero__copy { display: grid; gap: 22px; align-content: start; }
.hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.06; letter-spacing: -.015em;
  text-wrap: balance; max-width: 16ch;
}
.hero__lead { font-size: clamp(16px, 1.35vw, 19px); color: var(--ink-2); max-width: 56ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 4px; }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); }
.hero__facts li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--clay); flex: none; }
.hero__plate { margin-top: clamp(32px, 5vw, 56px); }

.pricecard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 26px 26px 22px; box-shadow: var(--shadow-lg); display: grid; gap: 12px;
  position: relative; overflow: hidden;
}
.pricecard::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: var(--clay); }
.pricecard__head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pricecard__price { display: flex; align-items: baseline; gap: 10px; }
.pricecard__price b { font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 4.4vw, 60px); line-height: 1; letter-spacing: -.02em; }
.pricecard__price i { font-style: normal; font-size: 16px; color: var(--muted); font-weight: 600; }
.pricecard__old { font-size: 14px; color: var(--muted); }
.pricecard__old s { color: var(--ink-2); }
.pricecard__note { font-size: 15px; color: var(--ink-2); }
.pricecard__stock { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); padding-top: 6px; border-top: 1px dashed var(--line-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(47,143,91,.18); flex: none; }
.dot--preorder { background: var(--warn); box-shadow: 0 0 0 3px rgba(201,138,26,.2); }
.dot--out { background: var(--bad); box-shadow: 0 0 0 3px rgba(194,56,43,.2); }
.pricecard .btn { margin-top: 6px; }
.pricecard__call { text-align: center; font-size: 14px; color: var(--muted); }
.pricecard__call b { color: var(--ink); }

/* ═══ Слот під фото та заглушка-кладка ═══ */
.imgslot { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-2); }
.imgslot picture, .imgslot img { width: 100%; height: 100%; object-fit: cover; }
.imgslot--wide { border-radius: clamp(14px, 2vw, 26px); }
.imgslot--empty {
  display: grid; place-items: center;
  --b: #c0533a; --m: #e9dccd;
  background-color: var(--b);
  background-image:
    linear-gradient(var(--m) 0 0), linear-gradient(var(--m) 0 0),
    linear-gradient(var(--m) 0 0), linear-gradient(var(--m) 0 0);
  background-size: 100% 4px, 4px 100%, 100% 4px, 4px 100%;
  background-position: 0 0, 50% 0, 0 50%, 0 50%;
  background-repeat: repeat-y, repeat-x, repeat-y, repeat-x;
  /* фактична кладка малюється псевдоелементом: так ряди зі зсувом */
}
.imgslot--empty::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent 0 56px, var(--m) 56px 60px),
    repeating-linear-gradient(90deg, transparent 0 116px, var(--m) 116px 120px),
    linear-gradient(135deg, rgba(255,255,255,.08), rgba(0,0,0,.12));
  background-color: var(--b);
}
.imgslot--empty::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 116px, var(--m) 116px 120px);
  background-position: 60px 0;
  -webkit-mask: repeating-linear-gradient(0deg, transparent 0 60px, #000 60px 120px);
  mask: repeating-linear-gradient(0deg, transparent 0 60px, #000 60px 120px);
  mix-blend-mode: normal;
}
.imgslot--empty .imgslot__hint { display: none; }
.is-editing .imgslot { cursor: pointer; outline: 2px dashed transparent; outline-offset: -2px; transition: outline-color .15s; }
.is-editing .imgslot:hover { outline-color: var(--clay); }
.is-editing .imgslot--empty .imgslot__hint {
  display: inline-block; position: relative; z-index: 1;
  padding: 8px 14px; border-radius: 999px; background: rgba(30,23,19,.75); color: #fff; font-size: 13px;
}

/* ═══ Товар ═══ */
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.product__photo { position: sticky; top: calc(var(--nav-h) + 24px); }
.product__info { display: grid; gap: 26px; }
.specs { margin: 0; border-top: 1px solid var(--line-2); }
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: 15px; }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
.product__foot { display: grid; gap: 22px; }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.checks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 50%;
  background: var(--clay-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239a3a21' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.product__buy { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.product__price { display: grid; line-height: 1.2; }
.product__price b { font-family: var(--font-display); font-size: 26px; font-weight: 700; }
.product__price span { font-size: 13px; color: var(--muted); }

/* ═══ Калькулятор ═══ */
.sec-calc { background: var(--bg-2); }
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.calc__form { display: grid; gap: 20px; }
.calc__presets { display: flex; flex-wrap: wrap; gap: 8px; }
.calc__thick { display: grid; gap: 10px; }
.calc__thick legend { margin-bottom: 8px; padding: 0; }
.calc__qty { padding-top: 14px; border-top: 1px dashed var(--line-2); }
.calc__out {
  background: var(--dark-bg); color: var(--dark-ink); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 32px); display: grid; gap: 20px; box-shadow: var(--shadow-lg);
}
.calc__big { display: grid; gap: 4px; }
.calc__big > span { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--dark-muted); }
.calc__big b { font-family: var(--font-display); font-size: clamp(36px, 4vw, 52px); font-weight: 700; line-height: 1.05; }
.calc__big small { font-size: 13px; color: var(--dark-muted); }
.calc__cells { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.calc__cell { display: grid; gap: 2px; padding: 12px 14px; border: 1px solid var(--dark-line); border-radius: var(--r-sm); }
.calc__cell span { font-size: 12px; color: var(--dark-muted); }
.calc__cell b { font-size: 18px; font-weight: 600; }
.calc__cell--total { background: var(--clay); border-color: var(--clay); }
.calc__cell--total span { color: rgba(255,255,255,.8); }
.calc__cell--total b { font-family: var(--font-display); font-size: 20px; }
.calc__out .btn-primary { background: #fff; color: var(--clay-2); border-color: #fff; box-shadow: none; }
.calc__out .btn-primary:hover { background: var(--bg); }
.calc__note { font-size: 13px; color: var(--dark-muted); }

/* ═══ Чому ми ═══ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: clamp(24px, 3vw, 36px); }
.stats__item { display: grid; gap: 2px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.stats__item b { font-family: var(--font-display); font-size: clamp(26px, 2.6vw, 34px); font-weight: 700; color: var(--clay); line-height: 1.1; }
.stats__item span { font-size: 14px; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card { display: grid; gap: 12px; align-content: start; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--clay-tint); color: var(--clay); }
.card p { font-size: 15px; color: var(--ink-2); white-space: pre-line; }

/* ═══ Доставка ═══ */
.delivery { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.zones { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.zones th, .zones td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.zones th { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--bg-2); }
.zones tr:last-child td { border-bottom: 0; }
.zones td:nth-child(2) { font-weight: 600; white-space: nowrap; }
.zones td:nth-child(3) { color: var(--muted); }
.delivery__map { display: inline-block; margin-top: 14px; font-weight: 600; }
.delivery__side { display: grid; gap: 20px; }
.steps { display: grid; gap: 12px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 13px; font-weight: 700;
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--clay); color: #fff;
}
.steps li b { display: block; font-weight: 600; grid-column: 2; }
.steps li span { grid-column: 2; font-size: 15px; color: var(--ink-2); }
.steps li::before { grid-row: 1 / span 2; }
.steps--plain li { grid-template-columns: 30px 1fr; align-items: center; }
.steps--plain li::before { width: 30px; height: 30px; font-size: 12px; }

/* ═══ Галерея ═══ */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery__item { display: grid; gap: 10px; }
.gallery__item .imgslot { border-radius: var(--r-md); }
.gallery__item figcaption { font-size: 14px; color: var(--muted); }
.gallery__item:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: span 2; }
.gallery__item:first-child:nth-last-child(n+4) .imgslot { height: 100%; aspect-ratio: auto !important; min-height: 100%; }

/* ═══ Відгук ═══ */
.sec-quote { padding-block: 0; }
.quote { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; padding: clamp(28px, 4vw, 48px); text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.quote blockquote { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 24px); line-height: 1.4; white-space: pre-line; }
.quote blockquote::before { content: "«"; color: var(--clay); }
.quote blockquote::after { content: "»"; color: var(--clay); }
.quote figcaption { display: grid; gap: 2px; font-size: 15px; color: var(--muted); }
.quote figcaption b { color: var(--ink); }
.sec-quote + .sec { padding-top: var(--sec-y); }
.sec-about + .sec-quote, .sec-gallery + .sec-quote { margin-top: calc(var(--sec-y) * -.4); }

/* ═══ Про нас ═══ */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.about__copy { display: grid; gap: 16px; }
.about__copy .lead { white-space: pre-line; }

/* ═══ FAQ ═══ */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.faq__grid .sec__head { margin-bottom: 0; position: sticky; top: calc(var(--nav-h) + 24px); }
.faq__call { font-size: 15px; color: var(--muted); }
.faq__call a { font-weight: 600; }
.faq { display: grid; gap: 8px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px; }
.faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary i { flex: none; position: relative; width: 22px; height: 22px; border-radius: 50%; background: var(--clay-tint); }
.faq__item summary i::before, .faq__item summary i::after { content: ""; position: absolute; left: 6px; top: 10px; width: 10px; height: 2px; background: var(--clay); border-radius: 2px; transition: transform .2s; }
.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i::after { transform: rotate(0); }
.faq__answer { padding: 0 0 18px; color: var(--ink-2); font-size: 15px; white-space: pre-line; max-width: 62ch; }

/* ═══ Заявка ═══ */
.sec-order { padding-top: 0; }
.order {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(28px, 4vw, 64px);
  padding: clamp(28px, 4vw, 56px); background: var(--dark-bg); color: var(--dark-ink); border-radius: var(--r-lg);
  position: relative; overflow: hidden;
}
.order::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(183,71,42,.45), transparent); pointer-events: none;
}
.order__copy { display: grid; gap: 18px; align-content: start; position: relative; z-index: 1; }
.order__copy .lead { color: var(--dark-muted); }
.order__contacts { display: grid; gap: 8px; margin-top: 8px; }
.order__phone { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: #fff; }
.order__phone:hover { text-decoration: none; color: #f0b39c; }
.order__phone--second { font-size: 20px; font-weight: 500; }
.order__hours, .order__addr { font-size: 14px; color: var(--dark-muted); }
.order__msgs { display: flex; gap: 8px; margin-block: 6px; }
.order__form { display: grid; gap: 14px; position: relative; z-index: 1; }
.order__form .input { background: rgba(255,255,255,.06); border-color: var(--dark-line); color: #fff; }
.order__form .input:hover { border-color: rgba(255,255,255,.4); }
.order__form .input:focus-visible { border-color: #f0b39c; box-shadow: 0 0 0 3px rgba(240,179,156,.25); }
.order__form .input::placeholder { color: rgba(255,255,255,.35); }
.order__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.order__msg { font-size: 14px; color: #f0b39c; }
.order__msg--err { color: #ffb4a8; }
.order__note { font-size: 12px; color: var(--dark-muted); line-height: 1.5; }

/* ═══ Футер ═══ */
.site-footer { padding-block: clamp(36px, 5vw, 56px) 28px; border-top: 1px solid var(--line); background: var(--bg-2); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer__about { display: grid; gap: 10px; }
.site-footer__about p { font-size: 14px; color: var(--muted); max-width: 42ch; white-space: pre-line; }
.site-footer__brand { font-family: var(--font-display); font-weight: 700; }
.site-footer__contacts, .site-footer__links { display: grid; gap: 8px; align-content: start; font-size: 14px; }
.site-footer__contacts span { color: var(--muted); }
.site-footer__contacts a:first-child { font-weight: 700; font-size: 16px; color: var(--ink); }
.site-footer__links a { color: var(--ink-2); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.site-footer--plain { padding-top: 24px; }
.site-footer--plain .site-footer__legal { margin-top: 0; padding-top: 0; border: 0; }

/* ═══ Липка панель (мобільна) ═══ */
.stickybar { display: none; }

/* ═══ Сторінки «Дякуємо» та «Політика» ═══ */
.sec-thanks { min-height: calc(100vh - var(--nav-h) - 90px); display: grid; align-items: center; }
.thanks { max-width: 640px; margin: 0 auto; display: grid; gap: 18px; justify-items: start; padding: clamp(28px, 4vw, 48px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.thanks__mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--clay); color: #fff; }
.thanks__contacts { display: grid; gap: 2px; }
.thanks .order__phone { color: var(--ink); }
.thanks__contacts span { font-size: 14px; color: var(--muted); }
.legal__wrap { max-width: 760px; }
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.legal__updated { margin-top: 10px; font-size: 14px; color: var(--muted); }
.legal__block { margin-top: 32px; display: grid; gap: 10px; }
.legal__text { white-space: pre-line; color: var(--ink-2); font-size: 15px; }
.legal__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; gap: 18px; justify-items: start; font-size: 14px; color: var(--muted); }

/* ═══ Режим правки ═══ */
.edbar { position: sticky; top: 0; z-index: 50; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 8px var(--pad-x); background: var(--ink); color: #fff; font-size: 13px; }
.edbar a { color: #f0b39c; }
.edbar__status { margin-left: auto; opacity: .8; }
.is-editing [data-e] { outline: 1px dashed rgba(183,71,42,.5); outline-offset: 2px; border-radius: 3px; cursor: text; }
.is-editing [data-e]:hover, .is-editing [data-e]:focus { outline-color: var(--clay); background: rgba(183,71,42,.06); }
.is-editing .is-locked { cursor: help; }
.is-editing .site-nav { top: 37px; }

/* ═══ Поява при прокрутці ═══ */
.js-anim .reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease var(--rd, 0ms), transform .55s ease var(--rd, 0ms); }
.js-anim .reveal.is-in { opacity: 1; transform: none; }
.js-anim .reveal.is-shown { transition-duration: 0s; }

/* ═══ Адаптив ═══ */
@media (max-width: 1080px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .site-nav__phone-text small { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .hero__grid, .product, .calc, .delivery, .about, .faq__grid, .order { grid-template-columns: 1fr; }
  .product__photo, .faq__grid .sec__head { position: static; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery__item:first-child:nth-last-child(n+4) { grid-column: span 2; grid-row: auto; }
  .gallery__item:first-child:nth-last-child(n+4) .imgslot { aspect-ratio: 16 / 9 !important; }
  .site-nav__cta, .site-nav__phone-text { display: none; }
  .site-nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 39; display: none;
    flex-direction: column; align-items: stretch; gap: 2px; padding: 12px var(--pad-x) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
  }
  .site-nav__menu.is-open { display: flex; }
  .site-nav__menu > a { font-size: 17px; padding: 12px 10px; }
  .site-nav__mobile { display: grid; gap: 2px; margin-top: 12px; padding: 14px 10px 0; border-top: 1px solid var(--line); }
  .site-nav__mphone { font-family: var(--font-display); font-weight: 700; font-size: 18px; color: var(--ink); }
  .site-nav__mhours { font-size: 13px; color: var(--muted); }
  .site-nav__burger {
    display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px;
    background: none; border: 0; cursor: pointer; color: var(--ink);
  }
  .site-nav__burger i { position: relative; display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: background .15s; }
  .site-nav__burger i::before, .site-nav__burger i::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
  .site-nav__burger i::before { top: -7px; }
  .site-nav__burger i::after { top: 7px; }
  .site-nav__burger[aria-expanded="true"] i { background: transparent; }
  .site-nav__burger[aria-expanded="true"] i::before { transform: translateY(7px) rotate(45deg); }
  .site-nav__burger[aria-expanded="true"] i::after { transform: translateY(-7px) rotate(-45deg); }
  .site-nav__msg { display: none; }
}

@media (max-width: 640px) {
  body { padding-bottom: 68px; }
  .hero { padding-top: 28px; }
  .hero__title { font-size: clamp(28px, 8.4vw, 36px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stats__item { padding: 16px; }
  .calc__cells { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .gallery__item:first-child:nth-last-child(n+4) { grid-column: auto; }
  .gallery__item:first-child:nth-last-child(n+4) .imgslot { aspect-ratio: 4 / 3 !important; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .zones th:nth-child(3), .zones td:nth-child(3) { display: none; }
  .product__buy { flex-direction: column; align-items: stretch; text-align: center; }
  .product__buy .btn { width: 100%; }
  .stickybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(246, 241, 234, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
  }
  .stickybar__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; padding: 6px 8px; border-radius: 12px; font: inherit; font-size: 13px; font-weight: 600;
    background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none;
  }
  .stickybar__btn--call { color: var(--clay-2); }
  .stickybar__btn--cta { background: var(--clay); border-color: var(--clay); color: #fff; }
  .is-editing .stickybar { display: none; }
  .is-editing body { padding-bottom: 0; }
}

@media print {
  .site-nav, .stickybar, .edbar, .sec-order, .btn { display: none !important; }
}
