/* ==========================================================================
   МЕБЕЛЬНАЯ ФАБРИКА «ФОРМАТ» — стили сайта и 3D-конструктора
   ========================================================================== */

:root {
  --ink: #151a20;
  --ink-2: #39414b;
  --muted: #6d7681;
  --line: #e4e7ec;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-dark: #14181d;
  --accent: #b5722d;
  --accent-2: #8d5518;
  --accent-soft: #f8efe3;
  --ok: #2f6f4f;
  --warn: #b45309;
  --err: #b42318;
  --r: 14px;
  --r-sm: 9px;
  --shadow: 0 12px 34px rgba(21, 26, 32, .09);
  --shadow-sm: 0 4px 14px rgba(21, 26, 32, .07);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(30px, 4.6vw, 56px); }
h2 { font-size: clamp(24px, 3vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.wrap { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.hidden { display: none !important; }

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  font-size: 15px; font-weight: 600; cursor: pointer; transition: .18s;
  background: var(--bg-soft); color: var(--ink); white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 8px 22px rgba(181, 114, 45, .32); }
.btn.primary:hover { background: var(--accent-2); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.wide { width: 100%; margin-top: 10px; }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }

/* ---------- шапка ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 26px; height: 72px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.03em; font-size: 19px; }
.logo .mark {
  width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(140deg, var(--accent), #6d3f10); color: #fff;
  font-size: 17px; font-weight: 800;
}
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { color: var(--ink-2); font-weight: 500; }
.nav a:hover { color: var(--accent); }
.top-phone { font-weight: 700; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.burger { display: none; background: none; border: 0; font-size: 22px; cursor: pointer; }

/* ---------- hero ---------- */

.hero { background: linear-gradient(180deg, #fbfaf8, #f2f0ec); border-bottom: 1px solid var(--line); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 64px 0 72px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 18px; color: var(--ink-2); max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin: 26px 0 20px; }
.hero-badges { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-badge b { display: block; font-size: 26px; letter-spacing: -.03em; }
.hero-badge span { font-size: 13px; color: var(--muted); }
.hero-visual { position: relative; height: 460px; border-radius: 22px; overflow: hidden; background: #e8e5e0; box-shadow: var(--shadow); }
.hero-visual canvas { display: block; width: 100%; height: 100%; }
.hero-visual .tag {
  position: absolute; left: 16px; bottom: 16px; background: rgba(255,255,255,.92);
  border-radius: 999px; padding: 8px 14px; font-size: 13px; font-weight: 600; box-shadow: var(--shadow-sm);
}

/* ---------- секции ---------- */

section { padding: 76px 0; }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}
.bg-soft { background: var(--bg-soft); }
.bg-dark { background: var(--bg-dark); color: #fff; }
.bg-dark .muted { color: #9aa3ae; }

/* ---------- каталог ---------- */

.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.filters .fbtn {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff;
  cursor: pointer; font-size: 14px; font-weight: 500;
}
.filters .fbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 22px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column; transition: .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #d9dee5; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }
.card-visual {
  height: 176px; display: grid; place-items: center; position: relative;
  background: linear-gradient(160deg, #f4f1ec, #e8e3db);
  border-bottom: 1px solid var(--line-2);
}
.card-visual svg { width: 112px; height: 112px; stroke: #a58b6d; fill: none; stroke-width: 1.1; }
.card-visual > span { position: relative; display: block; width: 92px; height: 92px; color: #a58b6d; }
.card-visual > span > svg { width: 100%; height: 100%; }
.card-visual .plan { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .45; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { margin: 0; font-size: 19px; }
.card-body p { font-size: 14px; color: var(--muted); margin: 0; flex: 1; }
.card-price { font-size: 14px; color: var(--ink-2); font-weight: 600; }
.card-actions { display: flex; gap: 10px; margin-top: 6px; }

/* ---------- конфигуратор: промо на главной ---------- */

.cfg-promo { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.steps { display: grid; gap: 16px; margin-top: 22px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step b.num {
  flex: 0 0 34px; height: 34px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; font-size: 15px;
}
.step p { margin: 2px 0 0; font-size: 14.5px; color: var(--ink-2); }

/* ---------- материалы ---------- */

.material-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.mat { border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.mat .swatch { height: 84px; }
.mat .mat-name { padding: 10px 12px; font-size: 13.5px; font-weight: 600; }
.mat .mat-sub { padding: 0 12px 12px; font-size: 12px; color: var(--muted); }

/* ---------- преимущества ---------- */

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.feat .ico {
  width: 46px; height: 46px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-2);
  display: grid; place-items: center; margin-bottom: 14px; font-size: 20px; font-weight: 700;
}
.feat h3 { font-size: 17px; margin-bottom: 6px; }
.feat p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- портфолио ---------- */

.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.work { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.work .shot { height: 210px; background: linear-gradient(150deg, #efe9e1, #ddd5c9); display: grid; place-items: center; }
.work .shot svg { width: 70%; height: 70%; stroke: #a58b6d; fill: none; stroke-width: 1.1; }
.work .meta { padding: 15px 18px; display: block; }
.work .meta b { font-size: 15px; display: block; margin-bottom: 3px; }
.work .meta span { font-size: 13px; color: var(--muted); }

/* ---------- отзывы ---------- */

.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px; }
.quote p { font-size: 15px; color: var(--ink-2); }
.quote .who { font-size: 13.5px; font-weight: 600; }
.quote .stars { color: var(--accent); letter-spacing: 2px; }

/* ---------- FAQ ---------- */

.faq { max-width: 860px; margin: 0 auto; }
.faq .fold { background: #fff; }
.faq .fold summary { font-size: 16.5px; font-weight: 600; }

/* ---------- контакты / форма ---------- */

.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; }
.contact-list { display: grid; gap: 14px; margin-top: 8px; }
.contact-list div { font-size: 15px; }
.contact-list b { display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: inherit; font-size: 15px; color: var(--ink); background: #fff;
}
input:focus, textarea:focus, select:focus { outline: 2px solid rgba(181,114,45,.35); border-color: var(--accent); }
textarea { resize: vertical; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 16px; }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 18px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- подвал ---------- */

footer { background: var(--bg-dark); color: #cfd5dc; padding: 56px 0 28px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
footer a { color: #cfd5dc; display: block; padding: 4px 0; }
footer a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid #262c33; margin-top: 36px; padding-top: 20px; font-size: 12.5px; color: #8a939d; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ==========================================================================
   КОНСТРУКТОР
   ========================================================================== */

body.cfg-page { height: 100vh; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-soft); }

.cfg-topbar { display: flex; align-items: center; gap: 14px; padding: 0 18px; height: 62px; background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.cfg-topbar .logo { font-size: 16px; gap: 9px; }
.cfg-topbar .logo .mark { width: 32px; height: 32px; border-radius: 9px; font-size: 15px; }
.cfg-topbar .cfg-title { font-size: 14px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }
#actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
#actions .btn { border-radius: 10px; }

.cfg { flex: 1 1 auto; display: grid; grid-template-columns: 344px 1fr; min-height: 0; overflow: hidden; }

.panel {
  overflow-y: auto; padding: 14px; background: #fff; border-right: 1px solid var(--line);
  scrollbar-width: thin; min-height: 0;
}
.panel::-webkit-scrollbar { width: 9px; }
.panel::-webkit-scrollbar-thumb { background: #d5d9df; border-radius: 5px; }

.fold { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 10px; overflow: hidden; }
.fold > summary {
  cursor: pointer; padding: 12px 14px; font-weight: 650; font-size: 14.5px; background: var(--bg-soft);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: "▾"; color: var(--muted); font-size: 12px; transition: .2s; }
.fold[open] > summary::after { transform: rotate(180deg); }
.fold-body { padding: 14px; display: grid; gap: 12px; }

.ctl { display: grid; gap: 6px; }
.ctl-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ctl-label { font-size: 13px; color: var(--ink-2); }
.ctl-val { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.num-in {
  width: 74px; padding: 4px 7px; font-size: 13px; text-align: right; border-radius: 7px;
  border: 1px solid var(--line); font-variant-numeric: tabular-nums;
}
.rng { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: none; margin: 0; }
.rng::-webkit-slider-runnable-track { height: 4px; border-radius: 3px; background: #e2e6eb; }
.rng::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: var(--accent);
  border: 3px solid #fff; box-shadow: 0 1px 5px rgba(0,0,0,.28); margin-top: -7px; cursor: pointer;
}
.rng::-moz-range-track { height: 4px; border-radius: 3px; background: #e2e6eb; }
.rng::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #fff; border-radius: 50%; background: var(--accent); cursor: pointer; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13px; cursor: pointer; color: var(--ink-2); transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent-2); }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }

.label-mini { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 650; margin-top: 4px; }
.hint-text { font-size: 13px; color: var(--muted); margin: 0; }

.products { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cat-label {
  grid-column: 1 / -1; font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); font-weight: 650; margin: 4px 0 -2px;
}
.prod {
  display: flex; align-items: center; gap: 9px; padding: 10px; border-radius: 10px; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 13px; text-align: left; color: var(--ink-2); transition: .15s;
}
.prod:hover { border-color: var(--accent); }
.prod.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-2); font-weight: 600; }
.prod-ico { flex: 0 0 24px; height: 24px; }
.prod-ico svg { width: 24px; height: 24px; }
.prod-name { font-size: 12.5px; line-height: 1.2; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 7px; }
.sw {
  position: relative; aspect-ratio: 1; border-radius: 8px; border: 2px solid #fff; cursor: pointer;
  box-shadow: 0 0 0 1px var(--line); overflow: hidden;
}
.sw.on { box-shadow: 0 0 0 2px var(--accent); }
.sw-img { background-size: cover; background-position: center; }
.sw .sw-name {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 8.5px; line-height: 1.15; padding: 3px 2px;
  background: rgba(0,0,0,.45); color: #fff; opacity: 0; transition: .15s; text-align: center;
}
.sw:hover .sw-name { opacity: 1; }

.tgl { display: flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; color: var(--ink-2); }
.tgl input { position: absolute; opacity: 0; width: 0; height: 0; }
.tgl-box { position: relative; width: 38px; height: 22px; border-radius: 999px; background: #d8dce2; transition: .18s; flex: 0 0 38px; }
.tgl-box::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .18s; }
.tgl input:checked + .tgl-box { background: var(--accent); }
.tgl input:checked + .tgl-box::after { transform: translateX(16px); }
.row-toggles { display: grid; gap: 9px; }

table.price { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.price th { text-align: left; color: var(--muted); font-weight: 600; padding: 4px 2px; border-bottom: 1px solid var(--line); }
table.price td { padding: 5px 2px; border-bottom: 1px solid var(--line-2); }
table.price .num { text-align: right; font-variant-numeric: tabular-nums; }
table.price tr.soft td { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 15px; }
.total b { font-size: 20px; letter-spacing: -.02em; }
.note { font-size: 11.5px; color: var(--muted); margin: 8px 0 0; }

/* ---------- сцена ---------- */

.stage { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #dfe4ea; }
.stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; outline: none; }
.tools {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap;
  max-width: calc(100% - 340px);
}
.tool {
  padding: 8px 13px; border-radius: 10px; border: 1px solid rgba(255,255,255,.7); background: rgba(255,255,255,.9);
  backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.tool:hover { background: #fff; color: var(--ink); }
.tool.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tool-sep { width: 1px; background: rgba(0,0,0,.12); margin: 4px 2px; }
.ctl.off .ctl-label, .ctl.off .ctl-val { opacity: .45; }
.ctl.off .rng, .ctl.off .num-in { opacity: .5; }

.badge {
  position: absolute; right: 14px; top: 12px; background: rgba(21,26,32,.9); color: #fff;
  padding: 10px 16px; border-radius: 12px; font-size: 13px; backdrop-filter: blur(6px); box-shadow: var(--shadow);
}

/* плавающая панель «Помещение» */
.popover {
  position: absolute; left: 12px; top: 60px; width: 300px; max-height: calc(100% - 80px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; overflow: hidden; z-index: 6;
}
.pop-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 11px 12px 11px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
}
.pop-head b { font-size: 14px; }
.pop-close {
  border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted);
  padding: 0 4px;
}
.pop-close:hover { color: var(--ink); }
.pop-body { padding: 14px; display: grid; gap: 12px; overflow-y: auto; }
.popover.right { left: auto; right: 12px; top: 60px; width: 290px; }
.marker-hint {
  position: absolute; transform: translateX(-50%); pointer-events: none; z-index: 7;
  background: rgba(21,26,32,.92); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 11px; border-radius: 999px; white-space: nowrap; box-shadow: var(--shadow-sm);
}
.fold-value { font-size: 12.5px; color: var(--accent-2); font-weight: 600; margin-left: auto; padding-left: 8px; }
.num-in.editing { border-color: var(--accent); background: var(--accent-soft); }
.sec-row { display: grid; grid-template-columns: 62px 1fr 1fr auto; gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line-2); }
.sec-row:last-child { border-bottom: 0; }
.sec-row .sec-name { font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.sec-cell { display: flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.sec-cell .num-in { width: 46px; padding: 3px 5px; }
.sec-rail { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
details.fold.products-fold > summary .fold-value { max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge b { font-size: 19px; letter-spacing: -.02em; margin: 0 4px; }
.badge-label { color: #b9c0c8; }
.badge-sub { color: #b9c0c8; }

.warn {
  position: absolute; left: 14px; bottom: 14px; max-width: min(60%, 420px);
  background: #fff7ed; border: 1px solid #fed7aa; color: var(--warn);
  padding: 12px 14px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow-sm);
  display: grid; gap: 7px;
}
.warn .btn { background: #fff; border-color: #fcd9a8; color: var(--warn); font-size: 12.5px; padding: 7px 12px; justify-self: start; }
.hint {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 14px;
  font-size: 12px; color: #5c6673; background: rgba(255,255,255,.8); padding: 6px 12px; border-radius: 999px;
}
@media (max-width: 1200px) { .hint { display: none; } }

/* ---------- модальные окна и тосты ---------- */

.modal {
  position: fixed; inset: 0; background: rgba(15,18,22,.55); display: grid; place-items: center; z-index: 200;
  padding: 20px; backdrop-filter: blur(3px);
}
.modal-box {
  background: #fff; border-radius: 16px; padding: 26px 28px; width: min(620px, 100%);
  max-height: 88vh; overflow: auto; box-shadow: 0 30px 70px rgba(0,0,0,.35);
}
.modal-box h3 { font-size: 21px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 12px; }
.order-form input, .order-form textarea { margin-top: 5px; font-weight: 400; }
.link-in { font-size: 13px; font-family: ui-monospace, monospace; }
.saved { display: grid; gap: 10px; }
.saved-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.saved-row .muted { display: block; font-size: 12px; }
.saved-actions { display: flex; gap: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 24px);
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14px;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 300; box-shadow: var(--shadow);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.err { background: #b42318; }
.toast.warn { background: #b45309; }

/* ---------- адаптивность ---------- */

@media (max-width: 1080px) {
  .hero-in, .cfg-promo, .contact-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 360px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.open {
    display: flex; flex-direction: column; gap: 14px; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 18px 20px; box-shadow: var(--shadow);
  }
  .nav.open a { font-size: 16px; }
}

@media (max-width: 860px) {
  .cfg { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .stage { order: 1; min-height: 42vh; }
  .panel { order: 2; border-right: 0; border-top: 1px solid var(--line); max-height: 46vh; }
  .cfg-topbar { height: auto; padding: 10px 12px; flex-wrap: wrap; gap: 8px; }
  .cfg-topbar .cfg-title { display: none; }
  #actions { width: 100%; margin-left: 0; }
  .cfg-topbar .logo { flex: 1; }
  .tools { max-width: calc(100% - 24px); }
  .badge { padding: 8px 12px; font-size: 12px; }
  .badge b { font-size: 16px; }
  .badge-label, .badge-sub { display: none; }
  section { padding: 52px 0; }
  .burger { display: block; }
}
