/* ===== Забота о своем будущем ===== */
:root {
  --bg: #0d0e10;
  --bg-2: #131518;
  --surface: #181b1f;
  --surface-2: #1f2328;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #ece8e1;
  --muted: #9d978d;
  --accent: #c9a96e;
  --accent-2: #e7d2a4;
  --accent-ink: #17130c;
  --radius: 18px;
  --radius-sm: 12px;
  --serif: "Cormorant Garamond", "Cormorant", "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; font-weight: 500; }
h2 { font-family: var(--serif); font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; letter-spacing: -.01em; }
h3 { font-size: 18px; letter-spacing: .01em; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); opacity: 0; }

.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.container--narrow { width: min(860px, 100% - 40px); }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100;
  background: url("/img/grain.svg"); opacity: .05; mix-blend-mode: overlay;
}

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 18px;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 26px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; letter-spacing: .01em; white-space: nowrap;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent) 60%, #a8874e);
  color: var(--accent-ink);
  box-shadow: 0 10px 30px -10px rgba(201, 169, 110, .55), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(201, 169, 110, .7), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-2); }
.btn--wide { width: 100%; --h: 60px; font-size: 16px; }
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-size: 14px; font-weight: 500; }
.link-btn:hover { color: var(--accent-2); }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(13, 14, 16, .88); backdrop-filter: blur(16px) saturate(140%); border-color: var(--line); }
.header__inner { display: flex; align-items: center; gap: 32px; height: 76px; }
.logo { display: flex; align-items: center; gap: 12px; color: var(--accent-2); }
.logo__mark { width: 26px; height: 32px; }
.logo__text { display: flex; flex-direction: column; font-family: var(--serif); font-size: 22px; line-height: 1; color: var(--text); letter-spacing: .02em; }
.logo__sub { font-family: var(--sans); font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; gap: 30px; margin-left: auto; font-size: 14.5px; }
.nav a { position: relative; color: #cfc9bf; transition: color .2s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }
.header__cta { --h: 42px; padding: 0 20px; font-size: 14px; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: none; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--text); transition: transform .3s var(--ease); }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 25px; }
.nav-open .burger span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-open .burger span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: 120px 0 70px; overflow: hidden; }
.hero__glow {
  position: absolute; inset: -20% -10% auto auto; width: 70vw; height: 90vh; pointer-events: none;
  background:
    radial-gradient(closest-side at 60% 45%, rgba(201, 169, 110, .16), transparent 70%),
    radial-gradient(closest-side at 30% 70%, rgba(80, 110, 150, .12), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: auto 0 0; height: 160px; pointer-events: none;
  background: linear-gradient(transparent, var(--bg));
}
.hero__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: 40px; align-items: center; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(48px, 7.4vw, 104px); line-height: .98; letter-spacing: -.02em;
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--accent-2), var(--accent) 50%, #9b7b45);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.hero__lead { margin-top: 28px; max-width: 520px; font-size: 18px; color: #c4beb3; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__facts { list-style: none; padding: 0; margin: 54px 0 0; display: flex; gap: 44px; }
.hero__facts li { display: flex; flex-direction: column; gap: 4px; padding-left: 18px; border-left: 1px solid var(--line-2); }
.hero__facts b { font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1; color: var(--accent-2); }
.hero__facts span { font-size: 13px; color: var(--muted); }
.hero__visual { position: relative; height: min(76vh, 680px); }
.hero__stage { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: center; }
.hero__stage svg { width: 100%; height: 100%; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .6)); }
.hero__chip {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; font-size: 13px;
  background: rgba(24, 27, 31, .66); border: 1px solid var(--line-2); backdrop-filter: blur(12px);
  animation: float 7s ease-in-out infinite;
}
.hero__chip--a { top: 14%; left: -2%; }
.hero__chip--b { top: 42%; right: -4%; animation-delay: -2.4s; }
.hero__chip--c { bottom: 16%; left: 2%; animation-delay: -4.6s; }
.sw { display: inline-block; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-2); }
.sw--gabbro { background: radial-gradient(circle at 30% 30%, #3a3d42, #121315 60%); }
.sw--labradorite { background: radial-gradient(circle at 35% 35%, #4b8fd0, #22262b 55%), #22262b; }
.sw--koelga { background: linear-gradient(135deg, #f2efe9, #d8d4cc 60%, #b9b6af); }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: 30px 0 60px; }
.section--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 5vw, 64px); }
.section__lead { margin-top: 18px; color: #bdb7ac; font-size: 17px; max-width: 600px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 30px 30px 34px; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent); }
.step__num { display: block; font-family: var(--serif); font-size: 46px; line-height: 1; color: var(--accent); margin-bottom: 22px; opacity: .9; }
.step h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- constructor ---------- */
.constructor { background: radial-gradient(1200px 600px at 20% 0%, rgba(201, 169, 110, .06), transparent 60%); }
.builder { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.builder__preview { position: sticky; top: 96px; }
.preview-card {
  border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  background:
    radial-gradient(80% 60% at 50% 35%, rgba(255, 255, 255, .06), transparent 70%),
    linear-gradient(180deg, #1a1d21, #121417);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
}
.preview-card__top { display: flex; gap: 8px; padding: 18px 20px 0; flex-wrap: wrap; }
.preview { aspect-ratio: 480 / 416; padding: 0 10px; }
.preview svg { width: 100%; height: 100%; }
.preview-card__bottom {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 18px 22px 20px; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .18);
}
.price { font-family: var(--serif); font-size: clamp(32px, 3.6vw, 44px); line-height: 1.1; color: var(--accent-2); }
.weight { text-align: right; }
.weight div { font-size: 20px; }
.tag {
  display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px;
  font-size: 12.5px; background: rgba(201, 169, 110, .14); color: var(--accent-2); border: 1px solid rgba(201, 169, 110, .25);
}
.tag--muted { background: rgba(255, 255, 255, .04); color: #c9c3b8; border-color: var(--line); }

.builder__controls { display: flex; flex-direction: column; gap: 14px; }
.group {
  margin: 0; padding: 22px 22px 24px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); min-width: 0;
}
.group legend {
  float: left; width: 100%; margin-bottom: 16px; padding: 0;
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.group legend + * { clear: both; }

.shapes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.shape {
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2);
  color: #cfc9bf; font-size: 12.5px; transition: border-color .2s, color .2s, background .2s;
}
.shape svg { width: 30px; height: 40px; }
.shape:hover { border-color: var(--line-2); color: var(--text); }
.shape[aria-pressed="true"] { border-color: var(--accent); color: var(--accent-2); background: rgba(201, 169, 110, .08); }

.range + .range { margin-top: 22px; }
.range__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.range__head label { font-size: 15px; }
.stepper { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; }
.stepper output { min-width: 40px; text-align: right; font-family: var(--serif); font-size: 26px; line-height: 1; color: var(--text); }
.stepper button {
  width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line-2); background: none; line-height: 1;
  font-size: 16px; transition: border-color .2s, color .2s;
}
.stepper button:first-child { margin-right: 6px; }
.stepper button:last-child { margin-left: 6px; }
.stepper button:hover { border-color: var(--accent); color: var(--accent-2); }
.range__scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 8px; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: none; margin: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent) var(--p), rgba(255, 255, 255, .12) var(--p));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%;
  background: var(--accent-2); border: 5px solid #2a2418; box-shadow: 0 0 0 1px var(--accent), 0 4px 12px rgba(0, 0, 0, .5);
}
input[type="range"]::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%; background: var(--accent-2);
  border: 5px solid #2a2418; box-shadow: 0 0 0 1px var(--accent);
}

.seg-wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 24px; flex-wrap: wrap; }
.seg-label { font-size: 15px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; color: #c8c2b7; transition: background .2s, color .2s; }
.seg button[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); font-weight: 600; }

.materials-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mat {
  display: flex; flex-direction: column; gap: 8px; padding: 6px 6px 10px; text-align: left;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2);
  transition: border-color .2s, transform .2s var(--ease);
}
.mat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mat[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.mat__sw { display: block; aspect-ratio: 1.5; border-radius: 8px; overflow: hidden; }
.mat__sw svg { width: 100%; height: 100%; }
.mat__name { font-size: 12px; line-height: 1.25; padding: 0 4px; color: #d7d1c6; overflow-wrap: break-word; hyphens: auto; }
.material-note { margin-top: 14px; font-size: 13.5px; color: var(--muted); }

.chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.chip {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; text-align: left;
  padding: 11px 12px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2);
  font-size: 14px; transition: border-color .2s, background .2s;
}
.chip small { grid-column: 2; font-size: 11.5px; color: var(--muted); }
.chip__tick {
  grid-row: span 2; width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--line-2);
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.chip__tick::after { content: ""; width: 8px; height: 4px; border: 2px solid var(--accent-ink); border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.chip:hover { border-color: var(--line-2); }
.chip[aria-pressed="true"] { border-color: rgba(201, 169, 110, .6); background: rgba(201, 169, 110, .07); }
.chip[aria-pressed="true"] .chip__tick { background: var(--accent); border-color: var(--accent); }
.chip[aria-pressed="true"] .chip__tick::after { opacity: 1; }

/* ---------- works ---------- */
.works { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.work:hover { transform: translateY(-6px); border-color: var(--line-2); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
.work__img {
  aspect-ratio: 4 / 4.4; padding: 18px 12px 0;
  background: radial-gradient(70% 55% at 50% 40%, rgba(255, 255, 255, .07), transparent 70%), linear-gradient(180deg, #1d2025, #15171a);
}
.work__img svg { width: 100%; height: 100%; }
.work__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.work__body h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; }
.work__foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 12px; }
.work__price { font-size: 15px; color: var(--accent-2); }

/* ---------- materials ---------- */
.mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.matcard { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.matcard__sw { aspect-ratio: 16 / 9; overflow: hidden; }
.matcard__sw svg { width: 100%; height: 100%; transition: transform .8s var(--ease); }
.matcard:hover .matcard__sw svg { transform: scale(1.06); }
.matcard__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.matcard__head h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; line-height: 1.15; }
.matcard__body p { font-size: 14px; color: #b9b3a8; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.matcard__foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.matcard__foot b { font-weight: 500; color: var(--accent-2); }

/* ---------- services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service { padding: 30px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.service svg { width: 44px; height: 44px; color: var(--accent); margin-bottom: 22px; }
.service h3 { font-family: var(--serif); font-size: 24px; margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); }

/* ---------- faq ---------- */
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color .25s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 60px 22px 24px; position: relative;
  font-family: var(--serif); font-size: 21px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(45deg); transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 24px 22px; color: #bab4a9; }

/* ---------- contacts ---------- */
.contacts { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.contacts__cards { display: grid; gap: 14px; }
.contact-card {
  display: flex; flex-direction: column; gap: 6px; padding: 26px 28px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--surface); transition: border-color .25s, transform .25s var(--ease);
}
.contact-card b { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.6vw, 32px); color: var(--accent-2); word-break: break-word; }
.contact-card:hover { border-color: var(--accent); transform: translateY(-2px); }

.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); font-size: 13.5px; }
.footer__inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer__inner .muted { max-width: 640px; }

/* ---------- floating bar ---------- */
.fbar { display: none; }

/* ---------- report ---------- */
.report {
  width: min(960px, 100% - 24px); max-height: calc(100dvh - 24px); padding: 0; border: 1px solid var(--line-2);
  border-radius: 24px; background: #15171a; color: var(--text); box-shadow: 0 60px 120px rgba(0, 0, 0, .7);
}
.report::backdrop { background: rgba(5, 6, 8, .72); backdrop-filter: blur(6px); }
.report[open] { animation: pop .35s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.report__inner { position: relative; padding: clamp(22px, 4vw, 40px); }
.report__close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line-2); background: none; font-size: 24px; line-height: 1;
}
.report__close:hover { border-color: var(--accent); color: var(--accent-2); }
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; padding-right: 50px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.report__id { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.report__id b { font-family: var(--serif); font-size: 26px; font-weight: 500; color: var(--accent-2); letter-spacing: .02em; }
.report h2 { font-size: clamp(30px, 3.6vw, 42px); margin: 26px 0 20px; }
.report__body { display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: start; }
.report__preview { border-radius: 18px; background: linear-gradient(180deg, #1d2025, #121417); border: 1px solid var(--line); aspect-ratio: 480 / 416; }
.report__preview svg { width: 100%; height: 100%; }
.report__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.report__table td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.report__table td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }
.report__table tr.meta td { color: var(--muted); }
.report__table tr.meta td:last-child { white-space: normal; color: var(--text); }
.report__total { gap: 12px; display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0 8px; }
.report__total b { white-space: nowrap; font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--accent-2); }
.report__contact {
  margin-top: 28px; padding: 24px; border-radius: 18px;
  background: linear-gradient(135deg, rgba(201, 169, 110, .14), rgba(201, 169, 110, .04));
  border: 1px solid rgba(201, 169, 110, .3);
}
.report__contact h3 { font-family: var(--serif); font-size: 26px; font-weight: 500; margin-bottom: 6px; }
.report__contact p { color: #cfc8bc; }
.report__contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.contact-pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: rgba(13, 14, 16, .6); border: 1px solid var(--line-2); font-weight: 500; font-size: 15.5px;
  transition: border-color .2s, color .2s; word-break: break-all;
}
.contact-pill svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.contact-pill:hover { border-color: var(--accent); color: var(--accent-2); }
.report__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.report__actions .btn { --h: 46px; padding: 0 20px; font-size: 14px; }
.toast { font-size: 14px; color: var(--accent-2); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.works .reveal:nth-child(4n+2), .mats .reveal:nth-child(4n+2), .services .reveal:nth-child(2), .steps .reveal:nth-child(2) { transition-delay: .08s; }
.works .reveal:nth-child(4n+3), .mats .reveal:nth-child(4n+3), .services .reveal:nth-child(3), .steps .reveal:nth-child(3) { transition-delay: .16s; }
.works .reveal:nth-child(4n+4), .mats .reveal:nth-child(4n+4), .services .reveal:nth-child(4) { transition-delay: .24s; }

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

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .works, .mats { grid-template-columns: repeat(3, 1fr); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .header__cta { display: none; }
}
@media (max-width: 980px) {
  .nav {
    position: fixed; inset: 76px 0 auto; flex-direction: column; gap: 0; padding: 10px 20px 24px;
    background: rgba(13, 14, 16, .96); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: all .3s var(--ease);
  }
  .nav a { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-family: var(--serif); }
  .nav a::after { display: none; }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-open .header { background: rgba(13, 14, 16, .96); }
  .burger { display: block; }
  .hero { min-height: auto; padding-top: 110px; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { height: 460px; }
  .hero__chip--a { left: 0; }
  .hero__chip--b { right: 0; }
  .builder { grid-template-columns: 1fr; }
  .builder__preview { position: sticky; top: 76px; z-index: 5; }
  .preview-card { border-radius: 20px; box-shadow: 0 20px 40px -10px rgba(0, 0, 0, .9); }
  .preview-card__top { display: none; }
  .preview { aspect-ratio: auto; height: 27vh; min-height: 200px; padding: 6px 8px 0; }
  .preview-card__bottom { display: none; }
  .contacts { grid-template-columns: 1fr; }
  .report__body { grid-template-columns: 1fr; }
  .report__preview { max-width: 420px; width: 100%; margin-inline: auto; }

  .fbar {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 20px;
    border-radius: 999px; background: rgba(24, 27, 31, .9); border: 1px solid var(--line-2); backdrop-filter: blur(14px);
    transform: translateY(140%); transition: transform .4s var(--ease);
  }
  .fbar div { display: flex; flex-direction: column; line-height: 1.2; }
  .fbar b { font-family: var(--serif); font-size: 22px; font-weight: 500; color: var(--accent-2); }
  .fbar .btn { --h: 46px; }
  .fbar.is-visible { transform: none; }
}
@media (max-width: 720px) {
  .container { width: min(1240px, 100% - 32px); }
  .steps, .services { grid-template-columns: 1fr; }
  .works, .mats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .work__body, .matcard__body { padding: 14px; }
  .work__body h3, .matcard__head h3 { font-size: 18px; }
  .work__foot { flex-direction: column; align-items: flex-start; gap: 6px; }
  .matcard__body p, .matcard .tags { display: none; }
  .hero__visual { height: 380px; }
  .hero__chip { font-size: 12px; padding: 7px 12px 7px 7px; }
  .sw { width: 20px; height: 20px; }
  .hero__facts { gap: 22px; }
  .hero__facts b { font-size: 30px; }
  .shapes { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .shape { font-size: 11px; padding: 10px 2px 8px; }
  .materials-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .mat__name { font-size: 11.5px; padding: 0 2px; }
  .group { padding: 18px 14px 20px; }
  .chips { grid-template-columns: 1fr 1fr; }
  .report__head { flex-direction: column; }
  .report__id { align-items: flex-start; text-align: left; }
  .report__actions .btn { flex: 1 1 100%; }
  body { padding-bottom: 20px; }
}
@media (max-width: 420px) {
  .works, .mats { grid-template-columns: 1fr; }
  .matcard__body p, .matcard .tags { display: flex; }
  .matcard__body p { display: block; }
  .hero__chip--c { display: none; }
}

/* ---------- print: только отчёт ---------- */
@media print {
  @page { size: A4; margin: 14mm; }
  body { background: #fff; color: #111; }
  body > :not(.report) { display: none !important; }
  .report { position: static; display: block; width: 100%; max-height: none; border: 0; box-shadow: none; background: #fff; color: #111; }
  .report::backdrop { display: none; }
  .report__close, .report__actions { display: none !important; }
  .report__inner { padding: 0; }
  .report h2, .report__contact h3, .logo__text { color: #111; }
  .report__id b, .report__total b, .logo { color: #8a6a2e; }
  .muted, .report__table tr.meta td, .report__contact p, .logo__sub { color: #555 !important; }
  .report__table td { border-color: #ddd; }
  .report__head { border-color: #ddd; }
  .report__preview { background: #1a1d21; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .report__body { grid-template-columns: 1fr 1.2fr; }
  .report__contact { background: #f6f1e6; border-color: #d9c7a0; print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  .contact-pill { background: #fff; border-color: #ccc; color: #111; }
}
