/* CENTRUM — лендинг предзаказа. Тёмная тема, гротеск, один акцент — тёплый LED. */

:root {
  --bg: #08080a;
  --bg-soft: #0e0e11;
  --bg-card: #111114;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0ed;
  --muted: #9b9891;
  --dim: #6d6a65;
  --accent: #e8a961;
  --accent-soft: rgba(232, 169, 97, 0.14);
  --wood: #79513a;

  --gap: clamp(20px, 4vw, 48px);
  --section-y: clamp(72px, 10vw, 152px);
  --maxw: 1280px;
  --radius: 14px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont,
    'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.08;
}

h1 { font-size: clamp(38px, 6.4vw, 86px); font-weight: 400; }
h2 { font-size: clamp(28px, 3.8vw, 52px); }
h3 { font-size: clamp(18px, 1.5vw, 22px); letter-spacing: -0.02em; }

p { margin: 0; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--accent);
  color: #12100c;
  padding: 10px 16px;
}
.skip:focus { left: 12px; top: 12px; }

/* ===================== КНОПКИ ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease,
    transform 0.25s ease;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: #14110c;
}
.btn-primary:hover { background: #f2bd7e; }

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }

.btn-sm { padding: 11px 20px; font-size: 14px; }
.btn-lg { padding: 18px 36px; font-size: 16px; }

/* ===================== ШАПКА ===================== */

.site-head {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--gap);
  padding: 16px clamp(16px, 4vw, 44px);
  background: rgba(8, 8, 10, 0);
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease, padding 0.35s ease;
}
.site-head.is-stuck {
  background: rgba(8, 8, 10, 0.86);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
  padding-top: 11px;
  padding-bottom: 11px;
}

.logo {
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-decoration: none;
  text-indent: 0.34em;
}

.site-nav {
  display: flex;
  gap: clamp(14px, 2vw, 30px);
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}
.site-nav a { text-decoration: none; transition: color 0.2s ease; }
.site-nav a:hover { color: var(--text); }

.site-head .btn { flex: none; }

/* ===================== HERO ===================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px clamp(16px, 4vw, 44px) 0;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 42%;
  opacity: 0.92;
}
.hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, #08080a 4%, rgba(8, 8, 10, 0.82) 30%, rgba(8, 8, 10, 0.12) 64%, rgba(8, 8, 10, 0.5) 100%),
    radial-gradient(120% 80% at 70% 28%, rgba(8, 8, 10, 0) 0%, rgba(8, 8, 10, 0.5) 64%, #08080a 100%),
    linear-gradient(to top, #08080a 6%, rgba(8, 8, 10, 0.25) 52%, rgba(8, 8, 10, 0.55) 100%);
}

.hero-body {
  position: relative;
  z-index: 1;
  width: min(100%, var(--maxw));
  margin: 0 auto;
  padding-bottom: clamp(40px, 6vw, 72px);
  max-width: min(760px, 100%);
  margin-left: max(0px, calc((100% - var(--maxw)) / 2));
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-top: 28px;
  color: var(--dim);
  font-size: 14px;
}
.hero-price strong {
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-strip {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  width: min(100%, var(--maxw));
  margin-inline: auto;
  border-top: 1px solid var(--line);
}
.hero-strip li {
  flex: 1 1 180px;
  padding: 18px 20px 18px 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ===================== СЕКЦИИ ===================== */

.section {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: var(--section-y) clamp(16px, 4vw, 44px);
  border-top: 1px solid var(--line);
}
.section:first-of-type { border-top: 0; }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head p {
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 1.3vw, 19px);
  max-width: 62ch;
}

.section-num {
  display: block;
  margin-bottom: 22px;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--dim);
}

/* ---- Спецификация числами ---- */

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  margin: 0 0 clamp(40px, 5vw, 72px);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.specs > div {
  background: var(--bg);
  padding: 28px 24px;
}
.specs dt {
  font-size: clamp(22px, 2.1vw, 31px);
  font-weight: 400;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.specs dd {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--dim);
  letter-spacing: 0.02em;
}

/* ---- Изображения ---- */

.figure { margin: 0; }
.figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.figure figcaption {
  margin-top: 16px;
  font-size: 14px;
  color: var(--dim);
  max-width: 62ch;
  line-height: 1.5;
}
.figure-wide img { aspect-ratio: 16 / 10; object-fit: cover; }

/* Чертежи — светлые листы на тёмном фоне */
.figure-sheet img {
  background: #f4f2ee;
  padding: 18px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

/* ---- Двухколоночные блоки ---- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.split-reverse .split-text { order: -1; }

.sound-text { max-width: 720px; }
.split .figure img { aspect-ratio: 3 / 2; object-fit: cover; }
.split-reverse .figure img { aspect-ratio: auto; object-fit: contain; }

.split-text { display: flex; flex-direction: column; gap: 34px; }
.point h3 { margin-bottom: 12px; }
.point p { color: var(--muted); font-size: 16px; }

.note {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--dim);
  line-height: 1.55;
}

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  margin-top: clamp(32px, 4vw, 56px);
}
.duo .figure img { aspect-ratio: 3 / 2; object-fit: cover; }

/* ---- Callout ---- */

.callout {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: clamp(40px, 5vw, 72px);
  padding: clamp(28px, 3.5vw, 48px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.callout > div { max-width: 640px; }
.callout h3 { margin: 6px 0 14px; font-size: clamp(22px, 2vw, 30px); }
.callout p:last-of-type { color: var(--muted); font-size: 16px; }

/* ---- Карточки инженерии ---- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.card {
  background: var(--bg);
  padding: clamp(26px, 2.6vw, 38px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card p { color: var(--muted); font-size: 15.5px; }

.mini-table { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); }
.mini-table li {
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding: 12px 0;
  font-size: 14px;
}
.mini-table b { min-width: 92px; letter-spacing: 0.08em; font-weight: 500; color: var(--accent); }
.mini-table span { color: var(--muted); }

/* ---- Отделки ---- */

.finishes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin-bottom: clamp(40px, 5vw, 72px);
}
.finish {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.finish .swatch {
  width: 100%;
  height: 86px;
  border-radius: 8px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c) 100%, white 14%), var(--c) 55%, color-mix(in srgb, var(--c) 82%, black 18%));
  border: 1px solid var(--line);
}
.finish b { font-weight: 500; font-size: 17px; }
.finish span { font-size: 14px; color: var(--dim); }
.finish em { margin-top: 8px; font-style: normal; font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }

/* ---- Пресеты ---- */

.presets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: clamp(16px, 2vw, 24px);
}
.preset {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(26px, 2.6vw, 34px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.preset:hover { border-color: var(--line-strong); background: var(--bg-card); transform: translateY(-2px); }
.preset p { color: var(--muted); font-size: 15.5px; }
.preset-num { font-size: 12px; letter-spacing: 0.2em; color: var(--dim); }
.preset-cta {
  background: var(--accent-soft);
  border-color: rgba(232, 169, 97, 0.34);
  justify-content: space-between;
}
.preset-cta .btn { align-self: flex-start; margin-top: 6px; }

/* ---- Чертежи ---- */

.sheets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 2vw, 28px);
}
.sheets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: clamp(32px, 4vw, 52px);
}

/* ---- Конфигуратор ---- */

.section-configurator { scroll-margin-top: 72px; }

.configurator-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  height: clamp(620px, 86svh, 1000px);
}
.configurator-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  opacity: 0;
  transition: opacity 0.5s ease;
}
.configurator-frame iframe.is-ready { opacity: 1; }

.frame-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--dim);
  font-size: 14px;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.frame-loader strong { letter-spacing: 0.34em; font-weight: 500; color: var(--muted); }
.frame-loader.is-hidden { opacity: 0; }

.frame-hint { margin-top: 18px; font-size: 14px; color: var(--dim); }
.frame-hint a { color: var(--accent); }

/* ---- Предзаказ ---- */

.section-preorder { padding-top: clamp(40px, 5vw, 80px); }
.preorder-card {
  padding: clamp(32px, 5vw, 76px);
  border: 1px solid rgba(232, 169, 97, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(90% 140% at 12% 0%, rgba(232, 169, 97, 0.11) 0%, rgba(232, 169, 97, 0) 62%),
    var(--bg-card);
}
.preorder-card .lead { max-width: 64ch; }

.steps {
  list-style: none;
  counter-reset: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(20px, 2.4vw, 36px);
  margin: clamp(36px, 4vw, 56px) 0 0;
  padding: 0;
}
.steps li {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.steps b { font-size: 13px; letter-spacing: 0.18em; color: var(--accent); font-weight: 500; }
.steps span { color: var(--muted); font-size: 15.5px; }

.preorder-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
}
.preorder-price { font-size: 14px; color: var(--dim); }

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

.faq { border-top: 1px solid var(--line); }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  font-size: clamp(17px, 1.5vw, 20px);
  letter-spacing: -0.015em;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--accent);
  font-size: 22px;
  line-height: 1;
  transition: transform 0.25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 16px;
  max-width: 72ch;
}

/* ===================== ПОДВАЛ ===================== */

.site-foot {
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: clamp(48px, 6vw, 88px) clamp(16px, 4vw, 44px) 120px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 28px;
}
.foot-main { display: flex; flex-direction: column; gap: 10px; }
.foot-main p { color: var(--dim); font-size: 15px; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.foot-nav a { color: var(--muted); text-decoration: none; }
.foot-nav a:hover { color: var(--text); }
.disclaimer {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--dim);
  max-width: 82ch;
  line-height: 1.55;
}

/* ===================== ЛИПКАЯ КНОПКА ===================== */

.sticky-cta {
  position: fixed;
  z-index: 40;
  right: clamp(16px, 4vw, 44px);
  bottom: 22px;
  transform: translateY(160%);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 10px 10px 22px;
  border-radius: 999px;
  background: rgba(17, 17, 20, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta span { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta b { font-weight: 500; font-size: 15px; }
.sticky-cta small { font-size: 12px; color: var(--dim); }

/* ===================== ПОЯВЛЕНИЕ ===================== */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn:hover, .preset:hover { transform: none; }
}

/* ===================== АДАПТИВ ===================== */

@media (max-width: 1080px) {
  .site-nav { display: none; }
  .site-head .btn { margin-left: auto; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  html { scroll-padding-top: 68px; }
  .split, .duo { grid-template-columns: 1fr; }
  .split-reverse .split-text { order: 0; }
  .hero { min-height: 92svh; padding-top: 96px; }
  .hero-media img { object-position: 52% 38%; }
  /* На узком экране текст ложится прямо на фото: нужен плотный скрим, иначе
     шпон просвечивает сквозь абзац и контраст уходит ниже читаемого. */
  .hero-media::after {
    background:
      linear-gradient(to top, #08080a 24%, rgba(8, 8, 10, 0.88) 58%, rgba(8, 8, 10, 0.62) 100%);
  }
  .hero-strip li { flex-basis: 50%; padding-right: 12px; font-size: 12px; }
  .callout { flex-direction: column; align-items: flex-start; }
  .preorder-actions { flex-direction: column; align-items: flex-start; gap: 14px; }
  .configurator-frame { height: clamp(560px, 78svh, 760px); }
  .figure-wide img { aspect-ratio: 4 / 3; }
}

@media (max-width: 520px) {
  .hero-actions .btn { width: 100%; }
  .sticky-cta { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .site-foot { padding-bottom: 104px; }
}
