/* =====================================================
   ВЦ «Система» — лендинг
   Тёмный минимализм, крупная типографика, акцент #E0A33E
   ===================================================== */

:root {
  --bg: #141518;
  --bg-alt: #1b1c20;
  --bg-elev: #202126;
  --surface: #232429;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f2f0ea;
  --text-muted: #a8a7a2;
  --text-dim: #7a7872;
  --accent: #e0a33e;
  --accent-hover: #f2b552;
  --accent-soft: rgba(224, 163, 62, 0.14);
  --radius-sm: 8px;
  --radius: 16px;
  --radius-lg: 24px;
  --font-head: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1240px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--accent);
  color: #1a1206;
}
.btn--primary:hover { background: var(--accent-hover); }
.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--full { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(20, 21, 24, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: height 0.2s ease, background 0.2s ease;
}
.header.is-scrolled { background: rgba(20, 21, 24, 0.94); }
.header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.logo__mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1206;
  font-weight: 800;
  font-size: 16px;
}
.logo__text { white-space: nowrap; }
.nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  font-size: 14px;
  color: var(--text-muted);
}
.nav a { transition: color 0.2s ease; }
.nav a:hover { color: var(--accent); }
.header__cta { height: 44px; padding: 0 20px; }

/* Burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border-strong);
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.burger span {
  display: block;
  width: 18px; height: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 32px) 0 48px;
  overflow: hidden;
}
.hero > .container {
  width: 100%;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(60% 60% at 80% 10%, rgba(224, 163, 62, 0.14) 0%, transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(224, 163, 62, 0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner { position: relative; z-index: 1; max-width: 920px; }
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.hero__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}
.hero__title::selection { background: var(--accent); color: #1a1206; }
.hero__subtitle {
  font-size: clamp(15px, 1.3vw, 17px);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 24px;
}
.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.hero__chips span {
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--text-dim);
  font-size: 14px;
}
.hero__trust li { position: relative; padding-left: 22px; }
.hero__trust li::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
}

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 56px; }
.section__kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.section__lead {
  color: var(--text-muted);
  font-size: 17px;
  margin: 0;
}

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.pillar {
  padding: 32px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.pillar:hover { border-color: var(--accent); transform: translateY(-2px); }
.pillar__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  font-size: 22px;
  margin-bottom: 20px;
}
.pillar__title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 12px;
}
.pillar p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card h3 {
  font-family: var(--font-head);
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 10px;
}
.card p { margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.step__num {
  display: block;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin-bottom: 14px;
}
.step__title {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
}
.step p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* ---------- About ---------- */
.about {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.about__text p { color: var(--text-muted); margin: 0 0 16px; }
.about__list {
  list-style: none;
  padding: 0; margin: 24px 0 0;
  display: grid; gap: 12px;
}
.about__list li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
  font-size: 15px;
}
.about__list li::before {
  content: '✓';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.about__stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--bg-elev);
  border: 1px solid var(--border);
}
.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: 34px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat span { font-size: 13px; color: var(--text-muted); }

/* ---------- Lead ---------- */
.lead {
  padding: 110px 0;
  background:
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.lead__inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.lead__text h2 {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.lead__text p { color: var(--text-muted); margin: 0 0 24px; }
.lead__bullets {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 12px;
}
.lead__bullets li {
  position: relative;
  padding-left: 28px;
  color: var(--text-muted);
  font-size: 15px;
}
.lead__bullets li::before {
  content: '→';
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}
.lead__form {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
}
.lead__form h3 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 20px;
}
.lead__form label {
  display: block;
  margin-bottom: 14px;
  font-size: 13px;
  color: var(--text-muted);
}
.lead__form input,
.lead__form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.lead__form input:focus,
.lead__form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.lead__form textarea { resize: vertical; }
.lead__form small {
  display: block;
  margin-top: 14px;
  color: var(--text-dim);
  font-size: 12px;
  line-height: 1.5;
}
.form__status { margin-top: 12px; font-size: 14px; }
.form__status.ok { color: #8fd18f; }
.form__status.err { color: #e07b6c; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 24px;
  transition: border-color 0.2s ease;
}
.faq__item[open] { border-color: var(--accent); }
.faq__item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--accent);
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { content: '−'; }
.faq__item p {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 15px;
}

/* ---------- Contacts ---------- */
.contacts {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: start;
}
.contacts__text p { color: var(--text-muted); margin: 0 0 28px; }
.contacts__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 18px;
}
.contacts__list li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  align-items: baseline;
}
.contacts__list span { color: var(--text-dim); font-size: 14px; }
.contacts__list a { color: var(--text); transition: color 0.2s ease; }
.contacts__list a:hover { color: var(--accent); }
.contacts__cta {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.contacts__cta .btn { width: 100%; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 14px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: var(--font-head);
  font-weight: 700;
}
.footer__links { display: flex; gap: 24px; }
.footer__links a:hover { color: var(--accent); }

/* ---------- Reveal animation ----------
   Невидимость включается только если JS стартовал (html.js-anim).
   Без JS контент виден сразу — прогрессивное улучшение. */
html.js-anim .reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
html.js-anim .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .lead__inner { grid-template-columns: 1fr; gap: 40px; }
  .contacts { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav { display: none; }
  .header__cta { display: none; }
  .burger { display: flex; margin-left: auto; }
  .section { padding: 72px 0; }
  .hero { padding: calc(var(--header-h) + 48px) 0 72px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .pillars { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .about__stats { grid-template-columns: 1fr 1fr; }
  .contacts__list li { grid-template-columns: 1fr; gap: 4px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Mobile menu open */
@media (max-width: 768px) {
  .nav.is-open {
    display: flex;
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px 24px;
    gap: 18px;
    font-size: 17px;
  }
  .nav.is-open + .header__cta { display: none; }
}

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

/* Низкие окна: hero без центрирования и без min-height, чтобы CTA не уезжали */
@media (max-height: 780px) {
  .hero {
    min-height: auto;
    display: block;
    padding: calc(var(--header-h) + 24px) 0 48px;
  }
  .hero__badge { margin-bottom: 20px; padding: 6px 14px; }
  .hero__title {
    font-size: clamp(26px, 3.2vw, 38px);
    margin: 0 0 16px;
  }
  .hero__subtitle {
    font-size: 14.5px;
    margin: 0 0 18px;
    max-width: 820px;
  }
  .hero__chips { margin-bottom: 20px; }
  .hero__cta { margin-bottom: 20px; }
  .hero__cta .btn { height: 46px; }
}


