:root {
  --bg: #07151c;
  --bg-2: #0c2330;
  --bg-3: #102e3d;
  --card: rgba(255, 255, 255, 0.04);
  --card-brd: rgba(255, 255, 255, 0.10);
  --accent: #f0871f;
  --accent-d: #d9741a;
  --text: #f4f8fa;
  --muted: rgba(244, 248, 250, 0.66);
  --radius: 16px;
  --container: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.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: 10px;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent {
  background: var(--accent);
  color: #1a0e02;
  box-shadow: 0 10px 26px rgba(240, 135, 31, 0.32);
}
.btn--accent:hover { background: var(--accent-d); }
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--card-brd);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn--sm { padding: 11px 20px; font-size: 14px; }
.btn--lg { padding: 18px 38px; font-size: 18px; }
.btn--block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(7, 21, 28, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 86px;
}
.brand { display: flex; align-items: center; gap: 14px; }
.brand__logo {
  height: 62px;
  width: auto;
  display: block;
}
.brand__name { font-weight: 800; letter-spacing: 2px; font-size: 19px; }
.nav { margin-left: auto; display: flex; gap: 30px; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav a:hover { color: var(--text); }
.header-cta { margin-left: 4px; }

.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.burger span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: .25s; }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 60px;
  overflow: hidden;
}
.hero__stage {
  position: absolute; inset: 0;
  z-index: -1;
}
.hero__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero__overlay {
  position: absolute; inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg, rgba(5,16,21,0.92) 0%, rgba(5,16,21,0.62) 45%, rgba(5,16,21,0.35) 100%),
    linear-gradient(180deg, rgba(5,16,21,0.4) 0%, rgba(5,16,21,0.85) 100%);
}
.hero__copy { display: none; }
.hero__overlay-eyebrow { display: none; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 18px;
}
.hero__title {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.5px;
}
.hero__title span { color: var(--accent); }
.hero__lead {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  margin: 22px 0 32px;
  max-width: 540px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats {
  display: flex;
  gap: 40px;
  margin-top: 44px;
  list-style: none;
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 34px; font-weight: 800; color: var(--text); }
.hero__stats span { font-size: 14px; color: var(--muted); }

/* Lead card */
.lead-card {
  background: rgba(9, 26, 35, 0.82);
  border: 1px solid var(--card-brd);
  border-radius: 20px;
  padding: 30px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}
.lead-card__title { font-size: 24px; font-weight: 800; }
.lead-card__sub { color: var(--muted); font-size: 15px; margin: 8px 0 22px; }
.lead-form { display: flex; flex-direction: column; gap: 12px; }
.lead-form input,
.lead-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 11px;
  border: 1px solid var(--card-brd);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.lead-form input::placeholder { color: rgba(244,248,250,0.45); }
.lead-form select { appearance: none; cursor: pointer; }
.lead-form select option { color: #07151c; }
.lead-form input:focus,
.lead-form select:focus { outline: none; border-color: var(--accent); }
.lead-form__note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 4px; }
.lead-form__success {
  margin-top: 16px;
  padding: 14px;
  border-radius: 11px;
  background: rgba(240, 135, 31, 0.14);
  border: 1px solid rgba(240, 135, 31, 0.4);
  color: var(--text);
  font-weight: 600;
  text-align: center;
}

/* ===== Quick formats ===== */
.quick { background: var(--bg-2); padding: 22px 0; }
.quick__row { display: flex; gap: 16px; flex-wrap: wrap; }
.quick__card {
  flex: 1 1 200px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: 14px;
  font-weight: 700;
  font-size: 17px;
  transition: border-color .2s, transform .15s;
}
.quick__card:hover { border-color: var(--accent); transform: translateY(-2px); }
.quick__ico { font-size: 24px; }

/* ===== Sections ===== */
.section { padding: 96px 0; }
.section--dark { background: var(--bg-2); }
.section__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.section__title {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 800;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin-bottom: 48px;
  line-height: 1.15;
}

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: transform .18s ease, border-color .2s;
}
.card:hover { transform: translateY(-5px); border-color: rgba(240,135,31,0.5); }
.card__ico {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(240, 135, 31, 0.14);
  color: var(--accent);
  margin-bottom: 18px;
}
.card h3 { font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; }

/* About */
.about { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; }
.about__media img {
  border-radius: 20px;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: var(--shadow);
}
.about__text p { color: var(--muted); margin-bottom: 14px; max-width: 600px; }
.about__text b { color: var(--text); }
.about__claim {
  color: var(--accent) !important;
  font-size: 19px;
  font-weight: 700;
  margin: 22px 0 28px !important;
}

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.step {
  position: relative;
  padding: 32px 26px;
  background: var(--card);
  border: 1px solid var(--card-brd);
  border-radius: var(--radius);
}
.step__num {
  font-size: 44px;
  font-weight: 800;
  color: rgba(240, 135, 31, 0.32);
  line-height: 1;
}
.step h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* CTA */
.cta {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-d) 100%);
  color: #1a0e02;
  padding: 70px 0;
}
.cta__inner { text-align: center; }
.cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; margin-bottom: 12px; }
.cta p { font-size: 18px; margin-bottom: 28px; opacity: 0.85; }
.cta .btn--accent { background: #07151c; color: var(--text); box-shadow: 0 12px 30px rgba(0,0,0,0.3); }
.cta .btn--accent:hover { background: #0c2330; }

/* Footer */
.footer { background: var(--bg); padding: 56px 0 28px; border-top: 1px solid rgba(255,255,255,0.06); }
.footer__inner {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer__tagline { color: var(--muted); font-size: 15px; }
.footer__contacts { margin-left: auto; display: flex; gap: 26px; flex-wrap: wrap; }
.footer__contacts a { color: var(--muted); font-weight: 600; transition: color .2s; }
.footer__contacts a:hover { color: var(--accent); }
.footer__copy { color: var(--muted); font-size: 13px; padding-top: 22px; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  /* Узкие экраны: видео показывается ПОЛНЫМ кадром (без обрезки), а заголовок
     лежит поверх него снизу — как в прежней версии. Остальной текст и форма ниже. */
  .hero { min-height: auto; display: block; padding: 86px 0 52px; overflow: visible; }
  .hero__stage {
    position: relative; inset: auto;
    z-index: 0;
    width: 100%;
    aspect-ratio: 1280 / 852;
  }
  .hero__overlay {
    background:
      linear-gradient(to bottom, rgba(5,16,21,0.85) 0%, rgba(5,16,21,0) 24%),
      linear-gradient(to top, rgba(5,16,21,0.96) 0%, rgba(5,16,21,0.72) 42%, rgba(5,16,21,0.2) 72%, rgba(5,16,21,0) 88%);
  }
  /* мелкий текст — в самый верх видео */
  .hero__overlay-eyebrow {
    display: block;
    position: absolute; left: 0; right: 0; top: 14px;
    z-index: 2;
    margin-bottom: 0;
    font-size: 12px;
  }
  /* жирный заголовок — в средней части */
  .hero__copy {
    display: block;
    position: absolute; left: 0; right: 0; bottom: 17%;
    z-index: 2;
    padding-top: 40px; padding-bottom: 0;
  }
  .hero__copy .hero__title { font-size: clamp(23px, 6.4vw, 34px); }
  /* дубликат заголовка в контенте на мобильном не нужен */
  .hero__content .hero__copyable { display: none; }
  .hero__grid { grid-template-columns: 1fr; gap: 30px; padding-top: 24px; }
  .hero__lead { margin-top: 0; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about__media { max-width: 420px; }
}
@media (max-width: 720px) {
  .nav, .header-cta { display: none; }
  .nav.open {
    display: flex;
    position: absolute;
    top: 86px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--card-brd);
    padding: 8px 24px 16px;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .burger { display: flex; margin-left: auto; }
  .section { padding: 64px 0; }
  .hero__stats { gap: 26px; }
  .hero__stats b { font-size: 28px; }
}
@media (max-width: 560px) {
  .cards, .steps { grid-template-columns: 1fr; }
  .hero__stats { flex-wrap: wrap; }
  .footer__contacts { margin-left: 0; }
}
