/* ── Eco Falcon GT — светлый минимализм + кислотный lime ─────────────── */
:root {
  --bg: #ffffff;
  --bg-soft: #f4f5f2;
  --ink: #0e0f0d;
  --ink-soft: #6b6f68;
  --lime: #c7f000;
  --lime-deep: #a6cc00;
  --line: rgba(14, 15, 13, 0.10);
  --max: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --bar-h: 40px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Helvetica Neue", -apple-system, system-ui, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--lime); color: var(--ink); }

/* ── Загрузчик ────────────────────────────────────────────────────────── */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 22px;
  transition: opacity .5s var(--ease), visibility .5s var(--ease);
}
#loader.is-done { opacity: 0; visibility: hidden; }
#loader .brand {
  font-weight: 800; letter-spacing: .32em; font-size: 13px;
  text-transform: uppercase; color: var(--ink-soft);
}
#loader .bar-wrap {
  width: 220px; height: 3px; background: var(--line); border-radius: 3px; overflow: hidden;
}
#loader-bar { width: 0; height: 100%; background: var(--lime); transition: width .2s linear; }
#loader-pct { font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ── Бегущая строка ───────────────────────────────────────────────────── */
.marquee {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  height: var(--bar-h);
  background: var(--lime); color: var(--ink);
  overflow: hidden; display: flex; align-items: center;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
  user-select: none;
}
.marquee-track { display: flex; flex-shrink: 0; will-change: transform; animation: marquee 30s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex-shrink: 0; align-items: center; }
.marquee-group span {
  display: inline-flex; align-items: center; white-space: nowrap;
  padding: 0 26px;
  font-weight: 800; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.marquee-group .star { font-style: normal; margin-right: 12px; font-size: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Хедер ────────────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: var(--bar-h); left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
}
.site-header .logo {
  font-weight: 800; letter-spacing: .28em; font-size: 14px; text-transform: uppercase;
  color: #fff; mix-blend-mode: difference; /* читается и на светлом, и на видео */
}
.site-header .logo span { color: var(--lime); }
.header-cta {
  display: inline-flex; align-items: center; justify-content: center;
  height: 40px; padding: 0 22px; border-radius: 100px;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  box-shadow: 0 6px 18px rgba(166, 204, 0, 0.4);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.header-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(166, 204, 0, 0.5); }
.header-cta.is-pressed { transform: translateY(1px) scale(0.96); }
.header-cta .btn-label { font-size: 12px; letter-spacing: .16em; }

/* ── Секция моушна ────────────────────────────────────────────────────── */
#track { position: relative; height: 600vh; }
.sticky {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--bg);
}
#motion { display: block; width: 100%; height: 100%; }

/* Оверлеи поверх canvas */
.overlays {
  position: absolute; inset: 0; pointer-events: none;
  display: flex; align-items: center;
}
.overlay {
  position: absolute; width: 100%;
  padding: 0 clamp(18px, 6vw, 90px);
  opacity: 0; transform: translateY(38px);
  transition: opacity .7s var(--ease), transform .9s var(--ease);
}
.overlay.is-active { opacity: 1; transform: translateY(0); }

.overlay.hero { text-align: center; }
.hero .kicker {
  display: inline-block; font-size: 12px; letter-spacing: .35em; text-transform: uppercase;
  color: var(--ink-soft); margin-bottom: 20px;
  padding: 7px 16px; border: 1px solid var(--line); border-radius: 100px;
  background: rgba(255,255,255,.6); backdrop-filter: blur(6px);
}
.hero h1 {
  font-size: clamp(3.4rem, 13vw, 12rem);
  font-weight: 800; line-height: .9; letter-spacing: -.03em;
}
.hero h1 em { font-style: normal; color: var(--lime-deep); }
.hero .sub {
  margin-top: 22px; font-size: clamp(1rem, 2vw, 1.4rem);
  color: var(--ink-soft); font-weight: 500;
}
.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  font-size: 11px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.scroll-hint .dot {
  width: 4px; height: 4px; border-radius: 50%; background: var(--lime-deep);
  animation: bob 1.6s var(--ease) infinite;
}
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .4; } 50% { transform: translateY(8px); opacity: 1; } }

/* Текстовые фразы слева/справа */
.overlay.phrase { max-width: 620px; }
.overlay.phrase.right { left: auto; right: 0; text-align: right; margin-left: auto; }
.overlay .num {
  font-size: 13px; letter-spacing: .3em; color: var(--lime-deep); font-weight: 700;
  display: block; margin-bottom: 16px;
}
.overlay .phrase-title {
  font-size: clamp(2rem, 5.5vw, 4.6rem); font-weight: 800; line-height: .98; letter-spacing: -.02em;
}
.overlay .phrase-body {
  margin-top: 18px; font-size: clamp(1rem, 1.6vw, 1.2rem); color: var(--ink-soft);
  max-width: 460px; font-weight: 500;
}
.overlay.phrase.right .phrase-body { margin-left: auto; }
.overlay mark { background: var(--lime); color: var(--ink); padding: 0 .12em; }

/* ── Блок характеристик ───────────────────────────────────────────────── */
.specs { padding: clamp(90px, 14vw, 180px) clamp(18px, 4vw, 48px); background: var(--bg); }
.specs .inner { max-width: var(--max); margin: 0 auto; }
.section-head { margin-bottom: clamp(48px, 7vw, 90px); }
.section-head .eyebrow {
  font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--lime-deep);
  font-weight: 700; display: block; margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(2.2rem, 6vw, 5rem); font-weight: 800; line-height: .95; letter-spacing: -.02em;
  max-width: 14ch;
}
.spec-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
}
.spec {
  background: var(--bg); padding: clamp(26px, 3vw, 42px);
  display: flex; flex-direction: column; gap: 8px; min-height: 190px;
  transition: background .35s var(--ease);
}
.spec:hover { background: var(--bg-soft); }
.spec .value {
  font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 800; letter-spacing: -.03em;
  line-height: 1; font-variant-numeric: tabular-nums;
}
.spec .value u { text-decoration: none; color: var(--lime-deep); }
.spec .label { margin-top: auto; font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }

/* ── Блок преимуществ ─────────────────────────────────────────────────── */
.features { padding: clamp(70px, 10vw, 140px) clamp(18px, 4vw, 48px); background: var(--bg-soft); }
.features .inner { max-width: var(--max); margin: 0 auto; }
.feature-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 3vw, 48px); }
.feature { border-top: 2px solid var(--ink); padding-top: 22px; }
.feature .fnum { font-size: 12px; letter-spacing: .2em; color: var(--lime-deep); font-weight: 700; }
.feature h3 { margin: 14px 0 10px; font-size: clamp(1.3rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -.01em; }
.feature p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.5; }

/* ── CTA ──────────────────────────────────────────────────────────────── */
.cta { padding: clamp(90px, 16vw, 220px) clamp(18px, 4vw, 48px); text-align: center; background: var(--bg); }
.cta .eyebrow { font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--lime-deep); font-weight: 700; }
.cta h2 { margin: 22px auto 12px; font-size: clamp(2.4rem, 8vw, 7rem); font-weight: 800; line-height: .92; letter-spacing: -.03em; max-width: 16ch; }
.cta h2 em { font-style: normal; color: var(--lime-deep); }
.cta p { color: var(--ink-soft); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 40px; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--lime); color: var(--ink); text-decoration: none;
  font-family: inherit; font-weight: 700; letter-spacing: .04em; font-size: 1.05rem;
  padding: 18px 34px; border: none; border-radius: 100px; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  box-shadow: 0 10px 30px rgba(166, 204, 0, 0.35);
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(166, 204, 0, 0.5); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* Liquid-metal слой (цвет кнопки — lime — сохранён как база/фолбэк) */
.liquid-btn { position: relative; overflow: hidden; isolation: isolate; }
.liquid-btn .lm-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: block; z-index: 0; border-radius: inherit;
}
.liquid-btn .btn-label {
  position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 12px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}
.btn.is-pressed {
  transform: translateY(1px) scale(0.97);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.28), 0 3px 8px rgba(0, 0, 0, 0.2);
}
.lm-ripple {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  transform: translate(-50%, -50%) scale(0); pointer-events: none; z-index: 2;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0) 70%);
  animation: lm-ripple .6s ease-out forwards;
}
@keyframes lm-ripple {
  from { transform: translate(-50%, -50%) scale(0); opacity: .7; }
  to   { transform: translate(-50%, -50%) scale(6); opacity: 0; }
}

/* ── Отзывы ───────────────────────────────────────────────────────────── */
.reviews { padding: clamp(80px, 12vw, 160px) clamp(18px, 4vw, 48px); background: var(--bg); }
.reviews .inner { max-width: var(--max); margin: 0 auto; }
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 2.4vw, 32px); }
.review {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(26px, 3vw, 38px); display: flex; flex-direction: column; gap: 18px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(14, 15, 13, 0.08); }
.review .stars { color: var(--lime-deep); letter-spacing: .12em; font-size: 15px; }
.review blockquote { font-size: 1.08rem; line-height: 1.5; font-weight: 500; }
.review figcaption { margin-top: auto; display: flex; align-items: baseline; gap: 10px; }
.review .who { font-weight: 800; }
.review .loc { font-size: 13px; color: var(--ink-soft); letter-spacing: .04em; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq { padding: clamp(70px, 10vw, 140px) clamp(18px, 4vw, 48px); background: var(--bg-soft); }
.faq .inner { max-width: 900px; margin: 0 auto; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 26px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  font-size: clamp(1.1rem, 2.2vw, 1.5rem); font-weight: 700; letter-spacing: -.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .chev {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); font-weight: 700; font-size: 20px;
  transition: transform .3s var(--ease);
}
.faq-item[open] .chev { transform: rotate(45deg); }
.faq-body { overflow: hidden; padding: 0 0 26px; max-width: 62ch; }
.faq-body p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.55; }

/* ── Форма заявок ─────────────────────────────────────────────────────── */
.order { padding: clamp(80px, 12vw, 160px) clamp(18px, 4vw, 48px); background: var(--bg); }
.order .inner { max-width: var(--max); margin: 0 auto; }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.order-copy h2 { font-size: clamp(2.2rem, 5.5vw, 4.4rem); font-weight: 800; line-height: .95; letter-spacing: -.02em; margin: 18px 0 16px; }
.order-copy h2 em { font-style: normal; color: var(--lime-deep); }
.order-copy p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.55; max-width: 42ch; }

.order-form { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.field .opt { color: var(--ink-soft); font-weight: 500; }
.field input, .field textarea {
  font-family: inherit; font-size: 1rem; color: var(--ink);
  padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--bg-soft); outline: none; resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #a3a79d; }
.field input:focus, .field textarea:focus {
  border-color: var(--lime-deep); background: var(--bg);
  box-shadow: 0 0 0 4px rgba(166, 204, 0, 0.18);
}
.order-form .btn { margin-top: 6px; align-self: flex-start; }
.form-note { font-size: .95rem; min-height: 1.2em; margin-top: 2px; }
.form-note.is-ok { color: var(--lime-deep); font-weight: 600; }
.form-note.is-error { color: #c23a2b; font-weight: 600; }

/* ── Поп-ап благодарности ─────────────────────────────────────────────── */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(14, 15, 13, 0.55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 430px;
  background: var(--bg); border-radius: 26px; padding: 46px 40px 40px; text-align: center;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  transform: translateY(18px) scale(0.95);
  transition: transform .4s var(--ease);
}
.modal.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-check {
  width: 74px; height: 74px; margin: 0 auto 24px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime); color: var(--ink); font-size: 38px; font-weight: 800;
  box-shadow: 0 12px 30px rgba(166, 204, 0, 0.45);
}
.modal.is-open .modal-check { animation: modal-pop .45s var(--ease) .1s both; }
@keyframes modal-pop { from { transform: scale(0) rotate(-25deg); } to { transform: scale(1) rotate(0); } }
.modal-card h3 { font-size: clamp(1.6rem, 4vw, 2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: 12px; }
.modal-card p { color: var(--ink-soft); font-size: 1.05rem; line-height: 1.5; margin-bottom: 30px; }
.modal-ok { font-size: 1rem; padding: 14px 34px; box-shadow: 0 10px 26px rgba(166, 204, 0, 0.35); }
.modal-close {
  position: absolute; top: 16px; right: 18px; width: 36px; height: 36px;
  border: none; border-radius: 50%; background: var(--bg-soft); color: var(--ink-soft);
  font-size: 22px; line-height: 1; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.modal-close:hover { background: var(--line); color: var(--ink); }

/* ── Футер ────────────────────────────────────────────────────────────── */
.site-footer {
  padding: 40px clamp(18px, 4vw, 48px); border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px;
  font-size: 12px; letter-spacing: .1em; color: var(--ink-soft); text-transform: uppercase;
}
.site-footer .logo span { color: var(--lime-deep); }

/* ── Адаптив ──────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-list { grid-template-columns: 1fr; gap: 26px; }
  .review-grid { grid-template-columns: 1fr; }
  .order-grid { grid-template-columns: 1fr; gap: 36px; }
  .overlay.phrase, .overlay.phrase.right { max-width: none; text-align: left; }
  .overlay.phrase.right { text-align: left; }
  .overlay.phrase.right .phrase-body { margin-left: 0; }
}
@media (max-width: 520px) {
  .spec-grid { grid-template-columns: 1fr; }
  #track { height: 500vh; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-hint .dot { animation: none; }
}
