/* ═══════════════════════════════════════════════════════════════
   БигМаг — стили
   ═══════════════════════════════════════════════════════════════ */

:root {
  --bg: #e8f4ec;
  --bg-2: #f5faf6;
  --ink: #10241b;
  --muted: #5a7064;
  --line: rgba(16, 36, 27, 0.09);
  --brand: #0f9d63;
  --brand-deep: #0b7a4f;
  --brand-2: #27b57e;
  --brand-ink: #0a6b47;
  --amber: #f59e0b;
  --card: rgba(255, 255, 255, 0.74);
  --card-border: rgba(255, 255, 255, 0.85);
  --shadow-sm: 0 2px 8px rgba(16, 36, 27, 0.06);
  --shadow: 0 18px 50px -24px rgba(9, 80, 52, 0.45);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --font: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 620px at 12% -8%, #d6ecdd 0%, transparent 60%),
    radial-gradient(900px 520px at 100% 4%, #d9f2e3 0%, transparent 55%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
  background-attachment: fixed;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--brand-deep); text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 .4em; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.glass {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform .35s ease, box-shadow .35s ease;
}

.grad {
  background: linear-gradient(92deg, var(--brand-deep), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: inherit; font-weight: 650; font-size: 1rem;
  padding: 13px 24px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  box-shadow: 0 12px 26px -10px rgba(11, 122, 79, 0.75);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 34px -12px rgba(11, 122, 79, 0.85); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost {
  color: var(--brand-ink);
  background: rgba(255, 255, 255, 0.7);
  border-color: rgba(11, 122, 79, 0.25);
}
.btn-ghost:hover { background: #fff; transform: translateY(-2px); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"], .btn.disabled { opacity: .5; pointer-events: none; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 250, 246, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; }
.logo-img { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; box-shadow: 0 5px 14px -6px rgba(11, 122, 79, 0.65); }
.footer-brand .logo-img { width: 36px; height: 36px; border-radius: 10px; }
.logo-mark { color: var(--brand-deep); display: inline-flex; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; font-size: 1.05rem; letter-spacing: -.02em; }
.logo-text span { font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav a { color: var(--muted); font-weight: 550; font-size: .95rem; }
.nav a:hover { color: var(--brand-deep); }
.header-cta { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.rating-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.12);
  color: #b45309; font-size: .85rem;
}
.rating-badge .star { color: var(--amber); }
.rating-badge small { color: var(--muted); font-size: .78rem; }

/* ── Hero (фон-карусель) ─────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  min-height: 74vh; padding: 104px 0 96px;
  color: #eafff5;
}
.hero-carousel { position: absolute; inset: 0; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 38, 26, 0.9) 0%, rgba(7, 38, 26, 0.62) 46%, rgba(7, 38, 26, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 38, 26, 0.6) 0%, rgba(7, 38, 26, 0) 46%);
}
.hero-inner { position: relative; z-index: 2; display: block; }
.hero-copy { max-width: 560px; }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s ease; }
.carousel-slide.is-active { opacity: 1; }
.slide-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(26px) brightness(.5) saturate(1.05); transform: scale(1.15); }
.slide-fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: right center; }

.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand-deep);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(11, 122, 79, 0.18);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.hero .eyebrow { color: #d8ffe9; background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.25); }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 800; margin-bottom: 18px; }
.hero .grad { background: linear-gradient(92deg, #c7ffdf, #34d399); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; margin-bottom: 26px; }
.hero .lead { color: rgba(234, 255, 245, 0.87); max-width: 580px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero .btn-ghost { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); color: #fff; }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.26); }
.hero-features { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink); font-size: .95rem; }
.hero .hero-features { color: rgba(234, 255, 245, 0.92); }
.hero-features li { display: inline-flex; align-items: center; gap: 8px; }
.tick {
  display: inline-grid; place-items: center; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(16, 160, 105, 0.15); color: var(--brand-deep); font-size: .72rem; font-weight: 800;
}
.hero .tick { background: rgba(255, 255, 255, 0.2); color: #fff; }

.hero-controls {
  position: absolute; z-index: 3; left: 50%; transform: translateX(-50%);
  bottom: 22px; display: flex; align-items: center; gap: 14px; padding: 6px 12px;
  border-radius: 999px; background: rgba(7, 38, 26, 0.38);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.carousel-arrow {
  position: static; transform: none;
  width: 34px; height: 34px; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center; font-size: 1.35rem; line-height: 1;
  color: #fff; background: rgba(255, 255, 255, 0.16);
  transition: background .2s;
}
.carousel-arrow:hover { background: rgba(255, 255, 255, 0.32); }
.carousel-dots { position: static; display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; padding: 0 4px; max-width: 62vw; }
.carousel-dot {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, 0.45); transition: background .2s, transform .2s;
}
.carousel-dot.is-active { background: #fff; transform: scale(1.35); }

/* ── Advantages ──────────────────────────────────────────── */
.advantages { padding: 8px 0 8px; }
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.adv-card { padding: 24px 22px; }
.adv-card:hover { transform: translateY(-4px); }
.adv-ico { font-size: 1.7rem; display: inline-block; margin-bottom: 8px; }
.adv-card h3 { font-size: 1.05rem; }
.adv-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-head { max-width: 720px; margin-bottom: 36px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ── Configurator ────────────────────────────────────────── */
.config-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 24px; align-items: start; }
.config-form { padding: 30px; }
.form-block { padding-bottom: 24px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-block:last-child { border-bottom: 0; padding-bottom: 0; margin-bottom: 0; }
.block-title { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.block-title h3 { font-size: 1.15rem; margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none;
  border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff; font-weight: 800; font-size: .95rem;
}
.block-hint { color: var(--muted); font-size: .88rem; margin: 0 0 16px 42px; }
.dims { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.dim-field { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.dim-input {
  display: flex; align-items: center; gap: 6px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 12px; transition: border-color .18s, box-shadow .18s;
}
.dim-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 160, 105, 0.14); }
.dim-input input {
  border: 0; outline: 0; width: 100%; font-family: inherit; font-size: 1.35rem;
  font-weight: 700; color: var(--ink); background: transparent; padding: 8px 0; text-align: center;
  -moz-appearance: textfield;
}
.dim-input input::-webkit-outer-spin-button,
.dim-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.dim-input .unit { font-size: .8rem; font-weight: 600; color: var(--muted); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  font-family: inherit; font-size: .82rem; font-weight: 600; color: var(--brand-ink);
  background: rgba(16, 160, 105, 0.1); border: 1px solid rgba(16, 160, 105, 0.2);
  padding: 6px 12px; border-radius: 999px; cursor: pointer; transition: background .16s, transform .16s;
}
.chip:hover { background: rgba(16, 160, 105, 0.2); transform: translateY(-1px); }
.field-error { color: #dc2626; font-size: .85rem; font-weight: 600; margin: 12px 0 0 42px; }

.thickness-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.thickness-card { position: relative; cursor: pointer; }
.thickness-card input { position: absolute; opacity: 0; inset: 0; }
.tc-inner {
  display: flex; flex-direction: column; gap: 4px;
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; height: 100%; transition: border-color .18s, box-shadow .18s, background .18s;
}
.tc-mm { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.tc-note { font-size: .78rem; color: var(--muted); line-height: 1.35; }
.thickness-card input:checked + .tc-inner {
  border-color: var(--brand); background: linear-gradient(180deg, #f0fbf4, #ffffff);
  box-shadow: 0 0 0 4px rgba(16, 160, 105, 0.14);
}
.thickness-card input:focus-visible + .tc-inner { outline: 2px solid var(--brand); outline-offset: 2px; }

.select-field { display: block; }
.select-field select {
  width: 100%; font-family: inherit; font-size: 1rem; font-weight: 600; color: var(--ink);
  background: #fff url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235a7064' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; cursor: pointer; appearance: none; -webkit-appearance: none;
}
.select-field select:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 160, 105, 0.14); }

.email-field { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; font-size: .85rem; font-weight: 600; color: var(--muted); }
.email-field input {
  font-family: inherit; font-size: 1rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 13px 16px; outline: 0;
}
.email-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 160, 105, 0.14); }

/* Result card */
.config-result { padding: 30px; position: sticky; top: 90px; }
.result-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.result-label { font-weight: 600; color: var(--muted); font-size: .95rem; }
.badge-live {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: #047857; background: rgba(16, 185, 129, 0.13); padding: 4px 10px; border-radius: 999px;
}
.price-line { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price-value {
  font-size: clamp(2.6rem, 6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em;
  background: linear-gradient(135deg, var(--brand-deep), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.price-cur { font-size: 1.6rem; font-weight: 700; color: var(--brand-deep); }
.result-summary { color: var(--muted); font-size: .92rem; margin-bottom: 20px; }

.breakdown { list-style: none; padding: 16px 0 0; margin: 0 0 8px; border-top: 1px dashed var(--line); }
.breakdown li { display: flex; justify-content: space-between; padding: 7px 0; font-size: .94rem; color: var(--muted); }
.breakdown li span:last-child { color: var(--ink); font-weight: 600; }
.total-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 16px 0 18px; border-top: 1px solid var(--line); margin-top: 4px;
  font-weight: 700; font-size: 1.05rem;
}
.total-row span:last-child { font-size: 1.5rem; color: var(--brand-deep); }

.pay-link { margin-top: 16px; }
.pay-link label { font-size: .8rem; font-weight: 600; color: var(--muted); display: block; margin-bottom: 6px; }
.pay-link-row { display: flex; gap: 8px; }
.pay-link-row input {
  flex: 1; min-width: 0; font-family: inherit; font-size: .82rem; color: var(--muted);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.copy-hint { font-size: .78rem; color: #047857; font-weight: 600; margin-top: 6px; display: block; min-height: 1em; }
.pay-status { font-size: .85rem; font-weight: 600; color: var(--muted); margin: 10px 0 0; min-height: 1.2em; text-align: center; }
.pay-status.error { color: #dc2626; }
.pay-toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%); z-index: 60;
  display: flex; align-items: center; gap: 12px;
  background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0;
  padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow);
  font-weight: 600; font-size: .92rem; max-width: 92vw;
}
.pay-toast button { border: 0; background: transparent; font-size: 1.4rem; line-height: 1; cursor: pointer; color: inherit; }
.result-note { font-size: .8rem; color: var(--muted); margin: 16px 0 0; }
.config-warning {
  font-size: .82rem; color: #b45309; background: rgba(245, 158, 11, 0.12);
  border-radius: 12px; padding: 10px 12px; margin-top: 14px;
}
.config-warning code { background: rgba(0,0,0,.06); padding: 1px 5px; border-radius: 5px; }

/* ── Steps ───────────────────────────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.steps li { padding: 26px 22px; }
.steps-num {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff;
  font-weight: 800; font-size: 1.15rem; margin-bottom: 12px;
}
.steps li h3 { font-size: 1.05rem; }
.steps li p { color: var(--muted); font-size: .9rem; margin: 0; }
.steps li:hover { transform: translateY(-4px); }

/* ── Сборка ──────────────────────────────────────────────── */
.assembly-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.assembly-card { padding: 0; overflow: hidden; }
.assembly-card:hover { transform: translateY(-4px); }
.assembly-media { position: relative; }
.assembly-media img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.assembly-card h3 { margin: 16px 20px 4px; font-size: 1.05rem; }
.assembly-card p { margin: 0 20px 20px; color: var(--muted); font-size: .9rem; }

/* ── Reviews ─────────────────────────────────────────────── */
.reviews-summary { display: grid; grid-template-columns: 260px 1fr; gap: 32px; padding: 30px; align-items: center; margin-bottom: 24px; }
.summary-score { text-align: center; border-right: 1px solid var(--line); padding-right: 32px; }
.big-rating { font-size: 3.4rem; font-weight: 800; line-height: 1; color: var(--ink); }
.big-rating-max { font-size: 1.3rem; color: var(--muted); font-weight: 600; }
.stars { display: inline-flex; gap: 2px; color: var(--amber); font-size: 1.05rem; letter-spacing: 1px; }
.stars .off { color: #cbd5e1; }
.stars-lg { font-size: 1.4rem; margin: 8px 0; }
.summary-count { color: var(--muted); font-size: .92rem; }
.ozon-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: .9rem; }

.summary-bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: 40px 1fr 48px; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); }
.bar-row .bar-label { font-weight: 700; color: var(--ink); }
.bar-track { height: 9px; background: rgba(16, 36, 27, 0.08); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); width: 0; transition: width .8s ease; }
.bar-count { text-align: right; font-weight: 600; color: var(--ink); }

.reviews-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filter {
  font-family: inherit; font-size: .85rem; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.7); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 999px; cursor: pointer; transition: all .16s;
}
.filter:hover { border-color: var(--brand); color: var(--brand-ink); }
.filter.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--muted); cursor: pointer; user-select: none; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.reviews-found { color: var(--muted); font-size: .88rem; margin: 0 0 16px; }

.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.review-card { background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 22px; display: flex; flex-direction: column; }
.review-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.review-author { font-weight: 700; font-size: .98rem; }
.review-date { color: var(--muted); font-size: .8rem; white-space: nowrap; }
.review-stars { color: var(--amber); font-size: .95rem; letter-spacing: 1px; margin-bottom: 10px; }
.review-stars .off { color: #cbd5e1; }
.review-text { color: #2c3f34; font-size: .93rem; white-space: pre-line; overflow-wrap: anywhere; margin-bottom: 14px; }
.review-text.clamped { display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden; }
.review-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.review-photos button { position: relative; flex: 0 0 auto; width: 74px; height: 74px; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.review-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.review-photos button:hover img { transform: scale(1.08); }
.review-photos .more-count {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(16, 36, 27, 0.55); color: #fff; font-weight: 700; font-size: 1rem;
}
.reviews-more { text-align: center; margin-top: 28px; }
.reviews-more .btn { min-width: 220px; }
.reviews-more[hidden] { display: none; }

/* ── Delivery ────────────────────────────────────────────── */
.delivery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.del-card { padding: 26px; }
.del-card h3 { font-size: 1.08rem; }
.del-card p { color: var(--muted); font-size: .93rem; margin: 0; }
.del-card:hover { transform: translateY(-4px); }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq-section details { padding: 0; margin-bottom: 12px; overflow: hidden; }
.faq-section summary {
  cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 650; font-size: 1.02rem;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { content: "+"; font-size: 1.5rem; color: var(--brand-deep); transition: transform .2s; }
.faq-section details[open] summary::after { transform: rotate(45deg); }
.faq-section details p { padding: 0 24px 20px; color: var(--muted); margin: 0; font-size: .94rem; }

/* ── CTA ─────────────────────────────────────────────────── */
.cta-section { padding: 30px 0 80px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px; flex-wrap: wrap;
  background: linear-gradient(120deg, rgba(209, 250, 229, .9), rgba(187, 247, 208, .7)); }
.cta-inner h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 6px; }
.cta-inner p { color: var(--muted); margin: 0; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: rgba(255, 255, 255, 0.55); border-top: 1px solid var(--line); padding: 48px 0 24px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; padding-bottom: 28px; }
.footer-brand p { color: var(--muted); font-size: .9rem; margin: 12px 0 0; max-width: 320px; }
.footer-col h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; }
.footer-col p { margin: 0 0 8px; }
.footer-col a { color: var(--ink); font-weight: 550; font-size: .92rem; }
.footer-col a:hover { color: var(--brand-deep); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ── Lightbox ────────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(8, 15, 28, 0.92); padding: 24px; animation: fade .2s ease;
}
.lightbox[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.lb-close, .lb-nav {
  position: absolute; background: rgba(255,255,255,.14); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; display: grid; place-items: center;
  transition: background .16s;
}
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 20px; right: 20px; font-size: 1.9rem; }
.lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 20px; top: 50%; transform: translateY(-50%); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1000px) {
  .hero { min-height: 66vh; padding: 88px 0 84px; }
  .slide-fg { object-fit: cover; object-position: center; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .config-grid { grid-template-columns: 1fr; }
  .config-result { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .assembly-steps { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .delivery-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .rating-badge { display: none; }
  .reviews-summary { grid-template-columns: 1fr; gap: 24px; }
  .summary-score { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }
  .hero { min-height: 72vh; padding: 84px 0 76px; }
  .adv-grid { grid-template-columns: 1fr; }
  .dims { grid-template-columns: 1fr; }
  .thickness-options { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .assembly-steps { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .delivery-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .config-form, .config-result { padding: 22px; }
  .block-hint, .field-error { margin-left: 0; }
  .hero-actions .btn { flex: 1; }
}

/* ── Корзина / оформление ─────────────────────────────────── */
.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.cf { display: flex; flex-direction: column; gap: 5px; font-size: .82rem; font-weight: 600; color: var(--muted); }
.cf.cf-wide { grid-column: 1 / -1; }
.cf input {
  font-family: inherit; font-size: .98rem; font-weight: 500; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 13px; outline: 0;
}
.cf input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(16, 160, 105, 0.14); }

.cart { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.cart-head { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; margin-bottom: 10px; }
.cart-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.cart-item { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: #f6fbf8; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.cart-item .ci-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; font-size: .9rem; line-height: 1.3; }
.cart-item .ci-info .muted { font-size: .78rem; }
.ci-qty { flex: none; display: inline-flex; align-items: center; gap: 8px; }
.ci-qty button { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--brand-deep); font-size: 1.1rem; font-weight: 800; cursor: pointer; line-height: 1; }
.ci-qty button:hover { background: #eafaf1; }
.ci-qty span { min-width: 18px; text-align: center; font-weight: 700; }
.ci-sum { flex: none; font-weight: 700; white-space: nowrap; font-size: .9rem; }
.ci-del { flex: none; width: 26px; height: 26px; border: 0; background: transparent; color: #b91c1c; font-size: 1.2rem; cursor: pointer; border-radius: 8px; }
.ci-del:hover { background: #fee2e2; }
.cart-empty { color: var(--muted); font-size: .88rem; padding: 8px 0; }
.cart-empty[hidden] { display: none; }

.order-toast { align-items: flex-start; max-width: 520px; }
.order-toast > div { flex: 1; }
.order-toast .order-sub { font-weight: 500; font-size: .85rem; color: #065f46; margin-top: 4px; }

@media (max-width: 640px) {
  .checkout-fields { grid-template-columns: 1fr; }
  .cart-item .ci-info { flex-basis: 100%; }
}
