/* 3Дом · печать — цвета из аватара бренда: ночной стол, синие слои, оранжевое сопло */
:root {
  --bg: #0b0d13;
  --bg-2: #0f121b;
  --surface: #141926;
  --surface-2: #1a2031;
  --surface-3: #212842;
  --line: rgba(150, 172, 235, .11);
  --line-2: rgba(150, 172, 235, .22);
  --text: #eef1f8;
  --muted: #a1abc2;
  --dim: #6d7792;
  --blue: #3d7bf5;
  --blue-2: #5aa2ff;
  --cyan: #3fd0e8;
  --hot: #ff9f43;
  --hot-2: #ffc27a;
  --ok: #3ccf8e;
  --warn: #ffb547;
  --danger: #ff6b6b;
  --layer: linear-gradient(90deg, var(--blue), var(--cyan));
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1200px;
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Manrope', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Consolas, monospace;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  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(--font); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: rgba(61, 123, 245, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ——— шапка ——— */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 13, 19, .78); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { width: 34px; height: 34px; filter: drop-shadow(0 0 10px rgba(61, 123, 245, .45)); }
.logo-word { font: 700 20px/1 var(--display); letter-spacing: -.01em; display: flex; align-items: baseline; gap: 8px; }
.logo-word small { font: 500 11px/1 var(--mono); color: var(--hot); text-transform: uppercase; letter-spacing: .12em; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color .15s; }
.nav a:hover, .nav a[aria-current] { color: var(--text); }

/* ——— кнопки ——— */
.btn {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .15s, background .15s, border-color .15s, box-shadow .2s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn-sm { --h: 38px; padding: 0 18px; font-size: 14px; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 16px; }
.btn-hot { background: var(--hot); color: #1a1006; box-shadow: 0 10px 30px -10px rgba(255, 159, 67, .7); }
.btn-hot:hover { background: var(--hot-2); box-shadow: 0 14px 36px -10px rgba(255, 159, 67, .85); }
.btn-ghost { border-color: var(--line-2); background: rgba(255, 255, 255, .02); color: var(--text); }
.btn-ghost:hover { border-color: rgba(150, 172, 235, .4); background: rgba(255, 255, 255, .05); }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.arr { font-size: 1.05em; }

/* ——— типографика ——— */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  font: 600 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hot); box-shadow: 0 0 0 4px rgba(255, 159, 67, .18), 0 0 14px var(--hot); }
.display { font: 700 clamp(38px, 6vw, 78px)/1.04 var(--display); letter-spacing: -.035em; margin: 0 0 24px; }
.nowrap { white-space: nowrap; }
.h2 { font: 700 clamp(30px, 4.2vw, 50px)/1.08 var(--display); letter-spacing: -.03em; margin: 0; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 560px; margin: 0; }
/* текст «напечатан слоями» */
.layered {
  background: repeating-linear-gradient(180deg, transparent 0 .085em, rgba(11, 13, 19, .32) .085em .1em), var(--layer);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 24px rgba(61, 123, 245, .35));
}

/* ——— первый экран ——— */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: -1px 0 0; pointer-events: none;
  background:
    radial-gradient(700px 420px at 78% 30%, rgba(61, 123, 245, .20), transparent 70%),
    radial-gradient(520px 320px at 10% 0%, rgba(63, 208, 232, .08), transparent 70%),
    linear-gradient(rgba(159, 180, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(159, 180, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px;
  mask-image: linear-gradient(180deg, #000 60%, transparent);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 18px; }
.micro { color: var(--dim); font-size: 13.5px; margin: 0; }

.hero-card {
  position: relative; margin: 0; padding: 18px; border-radius: 26px;
  background: linear-gradient(180deg, rgba(26, 32, 49, .9), rgba(16, 19, 29, .9));
  border: 1px solid var(--line-2); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.hero-card-top { display: flex; justify-content: space-between; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 999px;
  font-size: 12px; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
}
.printer { width: 100%; height: auto; margin: 6px 0 8px; }
.price-card {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line);
}
.price-card b { display: block; font-size: 16px; }
.price-card span { color: var(--muted); font-size: 13px; }
.price-card strong { font: 700 26px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }

.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 56px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.facts > div { padding: 22px 22px 22px 0; display: grid; gap: 4px; }
.facts > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts b { font: 600 19px/1.2 var(--display); letter-spacing: -.01em; }
.facts span { color: var(--muted); font-size: 14px; }

/* ——— секции ——— */
.section { padding: 104px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 48px; }
.section-note { color: var(--muted); max-width: 420px; margin: 0; }
.fineprint { color: var(--dim); font-size: 13.5px; margin: 22px 0 0; }

.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps li {
  position: relative; padding: 26px 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
}
.steps li::after {
  content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 2px; border-radius: 2px;
  background: var(--layer); opacity: .0; transition: opacity .2s;
}
.steps li:hover::after { opacity: 1; }
.step-n { color: var(--hot); font-size: 13px; font-weight: 600; }
.steps h3 { font: 600 19px/1.25 var(--display); letter-spacing: -.01em; margin: 18px 0 10px; }
.steps p { color: var(--muted); margin: 0; font-size: 15px; }

.micro a { color: var(--cyan); text-decoration: none; font-weight: 600; }
.micro a:hover { text-decoration: underline; }
.faq details p a { color: var(--cyan); }

/* без 3D-модели */
.nofile { padding-top: 88px; }
.nofile-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 44px; }
.nf-card {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px; border-radius: 24px;
  background: var(--surface); border: 1px solid var(--line-2);
}
.nf-photo { background: radial-gradient(500px 260px at 100% 0%, rgba(255, 159, 67, .12), transparent 70%), var(--surface); }
.nf-card h3 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0; }
.nf-card > p { color: var(--muted); margin: 0; }
.nf-tag { align-self: start; padding: 5px 10px; border-radius: 999px; font-size: 12px; color: var(--hot); background: rgba(255, 159, 67, .1); border: 1px solid rgba(255, 159, 67, .3); }
.nf-items { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.nf-items a {
  display: grid; gap: 2px; padding: 16px 18px; border-radius: 14px; text-decoration: none;
  background: var(--bg); border: 1px solid var(--line-2); transition: border-color .15s, transform .15s;
}
.nf-items a:hover { border-color: var(--cyan); transform: translateY(-1px); }
.nf-items b { font-size: 15.5px; }
.nf-items b::after { content: ' →'; color: var(--cyan); }
.nf-items span { color: var(--dim); font-size: 13px; }
.nf-list { margin: 0 0 8px; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; font-size: 15px; }
.nf-card .btn { align-self: start; margin-top: auto; }

/* примеры */
.examples { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ex {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.ex:hover { border-color: var(--line-2); transform: translateY(-2px); }
.ex-view { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(circle at 50% 60%, #1c2440, #10131c 70%); cursor: grab; }
.ex-view canvas { width: 100%; height: 100%; }
.ex-view .chip { position: absolute; left: 12px; top: 12px; background: rgba(11, 13, 19, .6); }
.ex-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ex-body h3 { font: 600 17px/1.25 var(--display); margin: 0; letter-spacing: -.01em; }
.ex-spec { color: var(--muted); font-size: 13.5px; }
.ex-stats { display: flex; gap: 14px; color: var(--dim); font-size: 13px; margin-top: 4px; }
.ex-price { display: flex; align-items: baseline; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line-2); }
.ex-price strong { font: 700 24px/1 var(--display); letter-spacing: -.02em; }
.ex-price span { color: var(--muted); font-size: 13px; }
.ex-open { color: var(--cyan); font-size: 14px; font-weight: 600; text-decoration: none; margin-top: 10px; }
.ex-open:hover { text-decoration: underline; }

/* пластики */
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mat {
  padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.mat h3 { font: 700 21px/1.1 var(--display); margin: 0; letter-spacing: -.02em; }
.mat .tag { color: var(--cyan); font-size: 13.5px; font-weight: 600; }
.mat p { color: var(--muted); font-size: 14px; margin: 0; }
.bars { display: grid; gap: 6px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 10px; font-size: 12.5px; color: var(--dim); }
.bar i { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; }
.bar i::before, .bar i::after { content: none; }
.bar u { height: 5px; border-radius: 3px; background: var(--surface-3); }
.bar u.on { background: var(--layer); }
.swatch-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.swatch-row span { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); }

/* почему мы */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.why-list { display: grid; gap: 14px; }
.why-list article { padding: 24px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-list h3 { font: 600 18px/1.3 var(--display); margin: 0 0 8px; letter-spacing: -.01em; }
.why-list p { color: var(--muted); margin: 0; font-size: 15px; }

/* вопросы */
.faq-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font: 400 26px/1 var(--font); color: var(--hot); transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: -6px 0 22px; max-width: 620px; }

/* призыв */
.cta { padding: 0 0 104px; }
.cta-box {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 56px;
  border-radius: 28px; border: 1px solid var(--line-2);
  background:
    radial-gradient(600px 300px at 90% 120%, rgba(255, 159, 67, .16), transparent 70%),
    radial-gradient(600px 300px at 0% -20%, rgba(61, 123, 245, .22), transparent 70%),
    var(--surface);
}
.cta-box .lead { margin-top: 14px; }

/* подвал */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.footer-grid .muted { font-size: 14px; margin: 14px 0 0; }
.contacts { display: grid; gap: 6px; font-size: 15px; align-content: start; }
.contacts a { text-decoration: none; }
.contacts a:hover { color: var(--cyan); }
.contacts .label { color: var(--dim); font-size: 12.5px; }
.footer-links { display: grid; gap: 8px; align-content: start; font-size: 14.5px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { margin-top: 36px; color: var(--dim); font-size: 13px; }

/* ——— страница-документ ——— */
.doc { padding: 64px 0 96px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font: 700 clamp(30px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin: 0 0 24px; }
.doc h2 { font: 600 20px/1.3 var(--display); margin: 36px 0 12px; }
.doc p, .doc li { color: var(--muted); }
.doc .todo { color: var(--warn); }

/* ——— адаптив ——— */
@media (max-width: 1080px) {
  .nav { display: none; }
  .header-row { justify-content: space-between; }
  .examples, .materials { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .hero { padding-top: 40px; }
  .hero-grid, .why, .faq-grid, .nofile-grid { grid-template-columns: 1fr; gap: 36px; }
  .nofile-grid { gap: 16px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .facts > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .section-head { flex-direction: column; align-items: start; gap: 16px; }
  .cta-box { flex-direction: column; align-items: start; padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .examples, .materials, .steps { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .facts > div { padding: 16px 12px 16px 0; }
  .facts > div + div { padding-left: 12px; }
  .facts > div:nth-child(3) { padding-left: 0; }
  .facts b { font-size: 16px; }
  .price-card strong { font-size: 22px; }
  .nf-items { grid-template-columns: 1fr; }
  .nf-card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
