/* ───────────────────────────────────────────────
   Буржуйка — лендінг
   Шрифт: Manrope · акцент — помаранчевий
   ─────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&display=swap");

:root {
  --bg: #FFFFFF;
  --tint: #F6F2EC;
  --ink: #1D1A17;
  --mute: #6A635C;
  --line: #E4DDD3;
  --accent: #E8590C;
  --accent-hi: #FF6F22;
  --accent-ink: #B8420A;
  --dark: #1D1A17;
  --err: #B3261E;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, "DejaVu Sans", Arial, sans-serif;
  --pad: clamp(18px, 5vw, 40px);
  --max: 1120px;
  --r: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[id] { scroll-margin-top: 78px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: inherit; }
b, strong { font-weight: 700; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: var(--pad); }
.small { margin: 14px 0 0; font-size: .92rem; color: var(--mute); }
.lead { font-size: 1.2rem; line-height: 1.45; color: var(--mute); }

/* ── Кнопки ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 32px; border: 0; border-radius: 999px;
  background: var(--accent); color: #fff;
  font: 700 1.0625rem var(--font); text-decoration: none; text-align: center;
  cursor: pointer; transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-hi); }
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 44px; padding: 0 22px; font-size: .95rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ── Шапка ── */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 1.32rem; font-weight: 800; text-decoration: none; letter-spacing: -.02em; }
.brand svg { width: 24px; height: 24px; fill: var(--accent); flex: none; }

/* ── Hero ── */
.hero { padding: clamp(28px, 6vw, 72px) 0 clamp(36px, 6vw, 72px); }
.hero__grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.hero h1 { font-size: clamp(2.25rem, 6.4vw, 3.9rem); line-height: 1.03; letter-spacing: -.028em; }
.hero .lead { margin: 18px 0 0; max-width: 32ch; }
.hero__img { margin: 0; }
.hero__img img { width: 100%; border-radius: var(--r); background: var(--tint); }
@media (max-width: 899px) { .hero__img { order: -1; } }

.ticks { list-style: none; margin: 22px 0 0; display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin: 26px 0 20px; }
.price__new { font-size: clamp(2.4rem, 7vw, 3.3rem); font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.price__new small { font-size: 1.05rem; font-weight: 600; color: var(--mute); letter-spacing: 0; }
.price__old { color: var(--mute); }
.price__old b {
  margin-left: 6px; padding: 3px 10px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .9rem;
}
.price--sm { margin: 0; }
.price--sm .price__new { font-size: 1.75rem; }
.hero .btn { width: 100%; }
@media (min-width: 560px) { .hero .btn { width: auto; min-width: 280px; } }

/* ── Смуга довіри ── */
.trust { background: var(--tint); }
.trust__row { display: grid; gap: 6px; padding-block: 18px; }
.trust p { margin: 0; color: var(--mute); }
.trust b { display: block; color: var(--ink); }
@media (min-width: 800px) { .trust__row { grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 26px; } }

/* ── Секції ── */
.sec { padding: clamp(48px, 8vw, 96px) 0; }
.sec--tint { background: var(--tint); }
.sec h2 { font-size: clamp(1.85rem, 4.6vw, 2.85rem); letter-spacing: -.022em; }
.sec__sub { margin: 12px 0 clamp(26px, 4vw, 44px); font-size: 1.1rem; color: var(--mute); max-width: 60ch; }

/* Картки переваг */
.cards { display: grid; gap: 28px; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; } }
.card img { width: 100%; border-radius: var(--r); background: var(--tint); }
.card h3 { margin: 18px 0 8px; font-size: 1.35rem; }
.card p { margin: 0; color: var(--mute); }
.link { color: var(--accent-ink); font-weight: 700; text-underline-offset: 3px; }
.card--wide {
  display: grid; gap: 18px; align-items: center; padding: 0;
}
.card--wide h3 { margin-top: 0; }
@media (min-width: 720px) {
  .card--wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
.card--wide .ticks { margin-top: 14px; }

/* ── Моделі ── */
.models-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }

.model {
  display: flex; flex-direction: column;
  background: #fff; border-radius: var(--r); overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(29,26,23,.25);
}
.model img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--tint); }
.model__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.model__badge {
  display: inline-block; align-self: flex-start; width: max-content;
  margin: 0 0 10px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent); color: #fff;
  font-size: .78rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase;
}
.model h3 { font-size: 1.5rem; }
.model h3 span { display: block; margin-top: 3px; font-size: 1rem; font-weight: 500; color: var(--mute); letter-spacing: 0; }
.model__lead { margin: 6px 0 0; font-size: .95rem; line-height: 1.4; color: var(--accent-ink); font-weight: 700; }
.specs { margin: 16px 0 22px; border-top: 1px solid var(--line); }
.specs > div {
  display: grid; grid-template-columns: 7.2rem 1fr; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .97rem;
}
.specs dt { color: var(--mute); }
.specs dd { margin: 0; }
.model__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.model__fine { margin: 12px 0 0; font-size: .8rem; line-height: 1.4; color: var(--mute); }

/* ── Відгуки ── */
.revs { display: grid; gap: 28px; }

@media (min-width: 900px) {
  .revs { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 32px; }
  .rev { grid-column: span 6; }
  .rev:nth-child(n + 3) { grid-column: span 6; }
}
.rev img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 16px; background: var(--tint); }
.rev { background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 12px 32px -18px rgba(29,26,23,.25); padding-bottom: 22px; }
.rev h3, .rev p { padding: 0 22px; }
.rev h3 { font-size: 1.12rem; margin-bottom: 8px; }
.rev p { margin: 0; color: var(--mute); font-size: 1rem; }

/* ── Кроки ── */
.steps { list-style: none; counter-reset: s; display: grid; gap: 22px; margin-top: clamp(26px, 4vw, 40px); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 32px; } }
.steps li { counter-increment: s; padding-left: 58px; position: relative; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.15rem;
}
.steps h3 { font-size: 1.2rem; margin-bottom: 3px; }
.steps p { margin: 0; color: var(--mute); }

/* ── Замовлення ── */
.order { padding: clamp(48px, 8vw, 96px) 0; background: var(--dark); color: #F4EEE7; }
.order__grid { display: grid; gap: 36px; }
@media (min-width: 960px) {
  .order__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 64px; align-items: start; }
  .order__text { position: sticky; top: 100px; }
}
.order h2 { font-size: clamp(2rem, 5vw, 3.15rem); line-height: 1.05; letter-spacing: -.025em; }
.order .lead { margin: 16px 0 0; color: #C9BDB0; }
.order .small { color: #C9BDB0; }
.order .small b { color: #fff; }
.order .ticks li::before {
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form { background: #fff; color: var(--ink); border-radius: 20px; padding: clamp(20px, 4vw, 34px); }
.form fieldset { margin: 0 0 26px; padding: 0; border: 0; min-width: 0; }
.form legend { padding: 0; margin-bottom: 12px; font-size: 1.22rem; font-weight: 800; }
.form legend span { font-size: .85rem; font-weight: 500; color: var(--mute); margin-left: 6px; }

/* Радіо-моделі */
.opt { display: block; position: relative; margin-bottom: 8px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.opt__body {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 14px 16px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px;
}
.opt__dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #B5ABA0; flex: none; }
.opt__name b { display: block; line-height: 1.25; }
.opt__name small { display: block; margin-top: 2px; font-size: .86rem; line-height: 1.35; color: var(--mute); }
.opt__badge {
  display: inline-block; width: max-content; margin: 0 0 4px; padding: 2px 9px;
  border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; line-height: 1.4;
}
.opt__price { text-align: right; line-height: 1.2; }
.opt__price s { display: block; font-size: .85rem; color: var(--mute); }
.opt__price b { white-space: nowrap; font-size: 1.12rem; }
.opt input:hover + .opt__body { border-color: #B5ABA0; }
.opt input:checked + .opt__body { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: #FFF6EF; }
.opt input:checked + .opt__body .opt__dot { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 46%, transparent 50%); }
.opt input:focus-visible + .opt__body { outline: 3px solid var(--accent); outline-offset: 2px; }
.models.is-bad .opt__body { border-color: var(--err); }

/* Скляні дверцята */
.glass {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 8px; padding: 12px 14px;
  border: 2px dashed var(--accent); border-radius: 12px; background: #FFF8F1;
  cursor: pointer; font-size: .92rem; line-height: 1.35;
}
.glass input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.glass b { color: var(--accent-ink); white-space: nowrap; margin-left: auto; }
.glass[hidden] { display: none; }

/* ── Допродаж: димохід ── */
.chim__lead { margin: 0 0 14px; font-size: .95rem; color: var(--mute); }
.chim__cols { display: grid; gap: 26px; }
@media (min-width: 720px) { .chim__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
.chim__h {
  margin: 0 0 10px; font-size: 1.05rem; font-weight: 800;
}
.chim__h small { display: block; font-size: .82rem; font-weight: 500; color: var(--mute); }

.ext {
  display: grid; grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line);
}
.ext__img {
  width: 58px; height: 64px; border: 1px solid var(--line); border-radius: 9px;
  background: #fff; display: grid; place-items: center; padding: 6px;
}
.ext__img svg { width: 100%; height: 100%; }
.ext__txt b { display: block; line-height: 1.25; }
.ext__txt small { display: block; margin-top: 2px; font-size: .85rem; line-height: 1.35; color: var(--mute); }
.ext__buy { display: grid; justify-items: end; gap: 6px; }
.ext__buy [hidden] { display: none; }
.ext__price { font-weight: 800; white-space: nowrap; }
.ext.is-on .ext__txt b::after { content: " ✓"; color: var(--accent-ink); }

.ext--main {
  grid-template-columns: 88px minmax(0, 1fr);
  margin-bottom: 8px; padding: 14px;
  background: #FFF6EF; border: 1px solid var(--accent); border-radius: 12px;
}
.ext--main::before {
  content: "Рекомендуємо"; grid-column: 1 / -1; justify-self: start; margin-bottom: -2px;
  padding: 2px 10px; border-radius: 999px; background: var(--accent); color: #fff;
  font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
}
.ext--main .ext__img { width: 88px; height: 88px; border: 0; background: transparent; }
.ext--main .ext__txt b { font-size: 1.05rem; }
.ext--main .ext__buy {
  grid-column: 1 / -1; grid-auto-flow: column;
  justify-content: space-between; align-items: center; justify-items: stretch;
  padding-top: 10px; border-top: 1px solid rgba(232,89,12,.25);
}
.ext--main .ext__price { font-size: 1.3rem; }

.step__add, .step__ctl { min-height: 38px; border: 1px solid var(--ink); border-radius: 999px; }
.step__add {
  padding: 0 18px; background: transparent; color: var(--ink);
  font: 700 .92rem var(--font); cursor: pointer;
}
.step__add:hover { background: var(--ink); color: #fff; }
.ext--main .step__add { justify-self: end; background: var(--accent); border-color: var(--accent); color: #fff; }
.ext--main .step__add:hover { background: var(--accent-hi); }
.ext--main .step__ctl { justify-self: end; }
.step__ctl { display: inline-flex; align-items: center; background: var(--ink); color: #fff; }
.step__ctl[hidden] { display: none; }
.step__ctl button {
  width: 36px; height: 36px; border: 0; background: transparent; color: inherit;
  font: 700 1.2rem var(--font); cursor: pointer;
}
.step__ctl output { min-width: 24px; text-align: center; font-weight: 800; }

/* Поля форми */
.field { display: block; margin-top: 14px; }
.field > span { display: block; margin-bottom: 6px; font-weight: 700; font-size: .95rem; }
.field input {
  width: 100%; min-height: 56px; padding: 0 16px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: #fff; border: 1px solid #B5ABA0; border-radius: 12px;
}
.field input:focus {
  outline: 3px solid rgba(232,89,12,.35); outline-offset: 0; border-color: var(--accent);
}
.field.is-bad input { border-color: var(--err); }
.err { min-height: 1.3em; margin: 6px 0 0; font-size: .9rem; color: var(--err); }

.sum {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  margin: 4px 0 6px; padding-top: 16px; border-top: 1px solid var(--line);
}
.sum b { font-size: 1.75rem; letter-spacing: -.025em; }
.sum__break { margin: 0 0 14px; min-height: 1.2em; font-size: .9rem; color: var(--mute); }
.form .fine { margin: 10px 0 0; font-size: .8rem; line-height: 1.45; color: var(--mute); }
.form .fine a { color: var(--accent-ink); }

/* ── Нижня панель на мобільних ── */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px -16px rgba(0,0,0,.3);
  transform: translateY(110%); transition: transform .25s ease;
}
.dock.is-on { transform: none; }
.dock p { margin: 0; line-height: 1.15; font-size: .8rem; color: var(--mute); }
.dock b { display: block; font-size: 1.32rem; color: var(--ink); }
.dock .btn { min-height: 46px; padding: 0 24px; }
@media (min-width: 900px) { .dock { display: none; } }

/* ── Футер ── */
.foot {
  background: var(--dark); color: #B9AC9F;
  padding: 0 0 calc(40px + 80px); font-size: .9rem;
}
.foot .wrap {
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14);
  display: grid; gap: 10px;
}
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: #F4EEE7; }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }

/* ── Службові сторінки ── */
.page { min-height: 100vh; display: flex; flex-direction: column; }
.page main { flex: 1; }
.legal { max-width: 800px; padding-block: clamp(32px, 6vw, 72px); }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 28px; }
.legal h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.legal p { font-size: 1rem; line-height: 1.65; }
.legal ul { margin: 0 0 1em 1.2em; }

.thanks { padding-block: clamp(40px, 8vw, 100px); }
.thanks h1 { font-size: clamp(2.1rem, 6vw, 3.5rem); line-height: 1.05; letter-spacing: -.025em; }
.thanks__lead { margin: 16px 0 26px; max-width: 38ch; font-size: 1.2rem; color: var(--mute); }
.thanks__note {
  margin: 22px 0 0; padding: 16px 18px; border-radius: 12px;
  background: var(--tint); font-size: .98rem;
}
.thanks__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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


/* ── Вибір кольору ── */
.colors { display: flex; align-items: center; gap: 10px; margin: 14px 0; flex-wrap: wrap; }
.colors__label { font-size: .85rem; color: var(--mute); font-weight: 600; }
.colors__name { font-size: .85rem; font-weight: 700; }
.color-swatch { cursor: pointer; position: relative; }
.color-swatch input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.color-dot {
  display: inline-block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid transparent;
  transition: border-color .15s, transform .15s;
}
.color-swatch input:checked + .color-dot {
  border-color: var(--accent);
  transform: scale(1.15);
}
.color-swatch:hover .color-dot { transform: scale(1.1); }
.color-dot--black { background: #2a2a2a; }
.color-dot--bronze { background: linear-gradient(135deg, #8b6914 0%, #c9952a 50%, #8b6914 100%); }

/* ── Вибір кольору у формі ── */
.color-field { border: none; margin: 16px 0 0; padding: 0; }
.color-field legend { font-size: .85rem; font-weight: 700; margin-bottom: 10px; padding: 0; }
.color-opt {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 10px 18px;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-right: 10px;
  transition: border-color .15s;
}
.color-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.color-opt__dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex-shrink: 0;
}
.color-opt__name { font-size: .9rem; font-weight: 600; }
.color-opt:has(input:checked) {
  border-color: var(--accent);
}
.color-opt:has(input:checked) .color-opt__name { color: var(--accent); }


/* ── Картка моделі: широка, два стовпці ── */
.model--wide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  overflow: visible;
}
.model--wide .model__body {
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.model--wide .model__img {
  border-radius: var(--r);
  overflow: hidden;
  padding: 20px;
}
.model--wide .model__img img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
  border-radius: calc(var(--r) - 4px);
}
@media (max-width: 719px) {
  .model--wide {
    grid-template-columns: 1fr;
  }
  .model--wide .model__img {
    order: -1;
  }
}
