:root{
  --bg:#070A12;
  --text:#ffffff;
  --muted:rgba(255,255,255,.65);
  --line:rgba(255,255,255,.08);
  --stroke:rgba(255,255,255,.12);

  --glow1:#7c3aed;
  --glow2:#06b6d4;

  --radius:24px;
  --shadow: 0 22px 70px rgba(0,0,0,.6);
  --focus: rgba(124,58,237,.55);
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}

body{
  margin:0;
  color:var(--text);
  background: var(--bg);
  overflow-x:hidden;
  
  /* ИЗМЕНЕНИЕ: Используем Benzin-Medium для всего текста */
  font-family: "Benzin-Medium", sans-serif; 
  letter-spacing: 0.02em; /* Чуть шире для Benzin */
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a{color:inherit; text-decoration:none; transition: opacity .2s}
a:hover{opacity: .8}

a:focus-visible, button:focus-visible{
  outline: 2px solid var(--glow1);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Шрифты заголовков - Жирный Benzin */
h1,h2,h3,.btn,.num, .brand-text span{
  font-family: "Benzin-Bold", sans-serif;
}

/* --- HERO SECTION --- */
.heroVideo{
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  isolation: isolate;
}

.heroVideo .video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter: saturate(1.1) brightness(.65);
}

.heroVideo .overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 20% 30%, rgba(124,58,237,.25), transparent 50%),
    linear-gradient(to bottom, rgba(7,10,18,0.3), var(--bg));
}

.topbar{
  position:absolute;
  left:0; right:0; top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 24px 32px;
}

/* --- БРЕНДИНГ --- */
.brand{ display:flex; align-items:center; gap:12px; }

.brand img{
  width:38px; height:38px;
  border-radius:8px;
  object-fit: contain;
}

.brand-text{
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 0.9; 
}

.brand-text span{
  font-size: 15px;
  text-transform:uppercase;
  letter-spacing:.04em;
  color: var(--text);
}

.nav{ display:flex; gap:12px; }

/* Кнопки */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 20px;
  border-radius:12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(10px);
  font-size:12px; /* Чуть меньше для Benzin, он широкий */
  text-transform:uppercase;
  letter-spacing:.05em;
  transition: all .2s ease;
  cursor: pointer;
}
.btn:hover{
  background: rgba(255,255,255,.15);
  transform: translateY(-1px);
}

.btn.primary{
  background: #fff;
  color: #000;
  border-color: #fff;
}
.btn.primary:hover{
  background: rgba(255,255,255,.9);
  box-shadow: 0 10px 30px rgba(255,255,255,.15);
}

/* --- ЦЕНТРАЛЬНЫЙ БЛОК (HERO) --- */
.heroCenter{
  position:relative;
  z-index:5;
  height:100%;
  display:flex;
  
  /* ИЗМЕНЕНИЕ: Прижимаем контент к низу */
  align-items: flex-end; 
  padding: 0 20px 140px; /* Большой отступ снизу */
}

.heroInner{
  width:min(1000px, 100%);
  margin:0 auto;
  text-align: center;
}

.heroTitle{
  margin:0 0 24px;
  font-size: clamp(36px, 5vw, 72px); /* Benzin широкий, чуть уменьшил макс размер */
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.heroSubtitle{
  margin:0 auto 32px;
  color: var(--muted);
  font-size: clamp(14px, 1.5vw, 16px);
  line-height: 1.6;
  max-width: 540px;
  /* Убеждаемся, что шрифт medium */
  font-family: "Benzin-Medium", sans-serif;
}

.heroActions{
  display:flex;
  gap:16px;
  justify-content: center;
  align-items: center;
}

.scrollHint{
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 50px;
}

/* --- CONTENT --- */
.content{
  position:relative;
  z-index:2;
  background: var(--bg);
}
.wrap{
  max-width:1100px;
  margin:0 auto;
  padding: 80px 20px;
}

.sectionHead{
  margin-bottom: 40px;
}
.sectionHead h2{
  font-size: 28px;
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.sub{
  margin:0;
  color:var(--muted);
  font-size:16px;
}

/* Сетка преимуществ */
.grid3{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap:20px;
}
.feature{
  padding: 30px;
  border-radius: var(--radius);
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  transition: background .2s;
}
.feature:hover{
  background: rgba(255,255,255,.05);
}
.feature h3{
  margin:0 0 12px;
  font-size:14px;
  text-transform:uppercase;
  letter-spacing: .02em;
}
.feature p{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height: 1.6;
}

/* Шаги и FAQ */
.steps{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:20px;
}
.card{
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
}

.step{
  display:flex;
  gap:16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.step:last-of-type{ border-bottom: none; }
.step:first-child{ padding-top:0; }

.num{
  width:32px; height:32px;
  display:flex; align-items:center; justify-content:center;
  background: #fff;
  color:#000;
  border-radius: 8px;
  font-size:14px;
}
.step b{ display:block; margin-bottom: 4px; font-size: 14px; font-family: "Benzin-Bold", sans-serif; }
.step span{ color:var(--muted); font-size:13px; }

/* FAQ */
details.faq{
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
details.faq:last-child{ border-bottom: none; }

summary{
  cursor:pointer;
  list-style:none;
  display:flex; justify-content:space-between; align-items:center;
  font-size:14px;
  font-family: "Benzin-Bold", sans-serif;
}
summary::-webkit-details-marker{display:none}
.mark{ color: var(--muted); }

.ans{
  margin-top:10px;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}

/* Footer */
.footer{
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  display:flex;
  justify-content:space-between;
  font-size: 13px;
  color: var(--muted);
}
.footLinks{ display:flex; gap:20px; }
.link-hover{ border-bottom: 1px solid transparent; }
.link-hover:hover{ border-color: var(--muted); opacity: 1; }


/* Error Page Styles */
.error-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
  background: radial-gradient(circle at center, rgba(124,58,237,0.05), transparent 70%);
}

.error-card {
  max-width: 420px;
  width: 100%;
  text-align: center;
  padding: 40px 30px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  backdrop-filter: blur(10px);
}

.error-icon {
  margin-bottom: 24px;
  display: inline-flex;
  padding: 16px;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.error-card h1 {
  margin: 0 0 12px;
  font-size: 20px;
  text-transform: uppercase;
  color: var(--text);
}

.error-card p {
  margin: 0 0 32px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}


/* Адаптив */
@media (max-width: 900px){
  .steps{ grid-template-columns: 1fr; }
}

@media (max-width: 768px){
  .heroCenter{ 
    /* На мобилках поднимаем чуть выше, чтобы не перекрывать браузерной строкой */
    padding-bottom: 100px; 
  }
  .heroInner{ text-align: left; }
  .heroActions{ justify-content: flex-start; flex-wrap: wrap; }
  .topbar{ padding: 20px; }
  
  .wrap{ padding: 60px 20px; }
  .footer{ flex-direction: column; gap: 20px; }

  .hide-mobile{ display: none; }
}

@media (max-width: 480px) {
  .error-card .btn { width: 100%; }
}