:root{
  --bg:#0b0f14;
  --card:#121826;
  --text:#e8edf6;
  --muted:#a9b4c7;
  --accent:#c8ff3d;
  --line:#1f2a3d;
  --container: 1320px; /* ноут 1260–1440 */
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:#070a0f;
  color:var(--text);
  line-height:1.35;
}

a{ color:inherit; text-decoration:none; }
.container{
  width: min(var(--container), calc(100% - 64px));
  margin: 0 auto;
}

/* ===== TOPBAR ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7,10,15,.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .container{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 14px 0;
}
.brand{ font-weight:800; letter-spacing:.2px; }
.nav{ display:flex; gap:18px; align-items:center; }
.nav a{ color: var(--muted); font-weight:600; }
.nav a:hover{ color: var(--text); }

/* ===== BUTTONS ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--accent);
  color:#091008;
  font-weight:800;
  border: 1px solid rgba(0,0,0,.1);
  cursor:pointer;
}
.btn--ghost{
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.16);
}
.btn--small{ padding: 10px 14px; border-radius: 10px; }

button.btn, button.btn--ghost, button.btn--small{
  appearance:none;
  -webkit-appearance:none;
  font: inherit;
}
button.btn:focus{ outline: none; }

.linkBtn{
  background: transparent;
  border: 0;
  padding: 0;
  color: var(--muted);
  font: inherit;
  font-weight: 600;
  cursor:pointer;
}
.linkBtn:hover{ color: var(--text); }

/* ===== HERO ===== */
.hero{
  position: relative;
  overflow: hidden;
  padding: 86px 0 64px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background-color:#070a0f;
}

/* фон-картинка на весь hero */
.hero.hero--bg{
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}

/* overlay: темнит только фон, текст/кнопки НЕ трогаем */
.hero__overlay{
  position:absolute;
  top:0; left:0; right:0;
  bottom:-180px;           /* закрываем зону overlap, чтобы не было щели */
  pointer-events:none;     /* клики не перехватывает */
  z-index:0;
  background:
    linear-gradient(90deg,
      rgba(7,10,15,.58) 0%,
      rgba(7,10,15,.40) 45%,
      rgba(7,10,15,.22) 75%,
      rgba(7,10,15,.10) 100%
    ),
    linear-gradient(0deg,
      rgba(7,10,15,.38) 0%,
      rgba(7,10,15,.14) 55%,
      rgba(7,10,15,0) 100%
    );
}

.hero__grid{
  position: relative;
  z-index: 1;                 /* контент выше overlay */
  min-height: 520px;
  display:flex;
  align-items:center;         /* вертикальная центровка текста */
}

.hero__grid--single{ }
.hero__text--onbg{
  max-width: 120ch;            /* аккуратная ширина текста */
}

.hero h1{
  font-size: 44px;
  margin: 0 0 12px;
  letter-spacing:-.6px;
  text-shadow: 0 10px 28px rgba(0,0,0,.55);
}
.lead{
  color: rgba(232,237,246,.88);
  font-size: 18px;
  margin: 0 0 18px;
  max-width: 56ch;
  text-shadow: 0 10px 26px rgba(0,0,0,.55);
}
.hero__cta{
  display:flex;
  gap: 12px;
  margin: 18px 0 18px;
  flex-wrap: wrap;
}

.hero__badges{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 8px;
}
.badge{
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0,0,0,.22);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text);
  font-weight:700;
  font-size: 13px;
  backdrop-filter: blur(6px);
}

/* overlap снизу */
.hero.hero--overlap::after{
  content:"";
  position:absolute;
  left:-10%;
  right:-10%;
  bottom:-1px;
  height:120px;
  background: #070a0f;
  transform: skewY(-2.2deg);
  border-top: 1px solid rgba(255,255,255,.06);
  box-shadow: 0 -30px 80px rgba(0,0,0,.55);
}

/* ===== SECTIONS ===== */
.section{ padding: 56px 0; }
.section--dark{
  background: var(--bg);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.section__head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:20px;
  margin-bottom: 22px;
}
.section__head h2{ margin:0; font-size: 30px; letter-spacing:-.3px; }
.muted{ color: var(--muted); }
.section__cta{ margin-top: 22px; }

.cards{
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}
.card{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 16px;
  min-height: 90px;
  display:flex;
  align-items:center;
}
.card__text{ font-weight:700; color: var(--text); }

.split{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.panel{
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  padding: 18px;
}
.panel h3{ margin:0 0 10px; font-size: 18px; }
.panel ul{ margin:0; padding-left: 18px; color: var(--muted); }
.panel li{ margin: 8px 0; }

.stats{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.stat{
  padding: 16px;
  border-radius: 16px;
  background: rgba(200,255,61,.08);
  border: 1px solid rgba(200,255,61,.18);
  font-weight:800;
}

.steps{
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 16px;
}
.step{ margin: 10px 0; }

.faq{ display:grid; gap: 10px; }
.faq__item{
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 14px 16px;
}
.faq__item summary{
  cursor:pointer;
  font-weight:800;
  color: var(--text);
}
.faq__a{ margin-top: 10px; color: var(--muted); }

.contactGrid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 14px;
}
.contactCard{
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
}
.contactLine{ margin: 10px 0; color: var(--muted); }
.contactLine span{ color: var(--text); font-weight:800; margin-right: 6px; }

.form{
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  padding: 18px;
  display:grid;
  gap: 10px;
}
.form--modal{ background: rgba(255,255,255,.03); }
.form input,.form textarea{
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.25);
  color: var(--text);
  outline: none;
}
.form textarea{ min-height: 120px; resize: vertical; }
.form__note{ font-size: 13px; }

/* file input */
.file__input{
  position:absolute;
  width:1px;
  height:1px;
  opacity:0;
  pointer-events:none;
}
.form__file{ position: relative; display:grid; gap:8px; }
.form__file .file{
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 12px;
  border-radius: 12px;
  border: 1px dashed rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  user-select:none;
}
.form__file .file:hover{ border-color: rgba(200,255,61,.35); }

/* ===== FOOTER ===== */
.footer{
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  color: var(--muted);
  font-weight:600;
}
.footer__links{ display:flex; gap:14px; align-items:center; }

/* ===== MODAL ===== */
.modal{ display:none; }
.modal.is-open{ display:block; }

.modal__backdrop{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,.62);
  z-index: 200;
}

.modal__dialog{
  position:fixed;
  left:50%;
  top:50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 36px));
  background: #121826;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  padding: 18px;
  z-index: 201;
  box-shadow: 0 18px 60px rgba(0,0,0,.55);
}

.modal__close{
  position:absolute;
  right:12px;
  top:10px;
  width:34px;
  height:34px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.25);
  color: var(--text);
  cursor:pointer;
}

.modal__title{ margin:0 0 6px; font-size: 22px; }
.modal__subtitle{ margin:0 0 14px; color: var(--muted); }

body.modal-open{ overflow:hidden; }

/* ======= АДАПТИВНОСТЬ (не mobile-first) ======= */
@media (min-width: 2200px){
  :root{ --container: 1600px; }
  .hero h1{ font-size: 52px; }
}

@media (min-width: 1600px){
  .hero.hero--overlap::after{
    bottom:-70px;
    height:140px;
    transform: skewY(-2.6deg);
  }
}

@media (max-width: 1259px){
  :root{ --container: 1120px; }
  .cards{ grid-template-columns: repeat(3, 1fr); }
  .stats{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px){
  .nav{ gap: 12px; }
  .contactGrid{ grid-template-columns: 1fr; }
  .split{ grid-template-columns: 1fr; }
  .hero{ padding: 56px 0 44px; }
  .hero__grid{ min-height: 420px; }
}

@media (max-width: 768px){
  .container{ width: calc(100% - 36px); }
  .nav{ display:none; }
  .hero h1{ font-size: 34px; }
  .lead{ font-size: 16px; }
  .cards{ grid-template-columns: 1fr; }
  .footer__inner{ flex-direction:column; gap:10px; }
}

@media (max-width: 480px){
  .btn{ width: 100%; }
  .hero__cta{ flex-direction:column; }
}

/* ===== HOVER-ЭФФЕКТ ДЛЯ КНОПОК ===== */

.btn{
  transition: 
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.btn:hover{
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(200,255,61,.35);
}

.btn:active{
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(200,255,61,.25);
}

/* Ghost-кнопка */

.btn--ghost{
  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    border-color .18s ease;
}

.btn--ghost:hover{
  transform: translateY(-3px);
  background: rgba(255,255,255,.06);
  border-color: rgba(200,255,61,.5);
  box-shadow: 0 10px 28px rgba(0,0,0,.35);
}

.btn--ghost:active{
  transform: translateY(-1px);
}

html{
  scroll-behavior: smooth;
}