@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;700;800&family=Inter:wght@400;500;600&display=swap');

:root{
  --bg: #0F1720;
  --bg-2: #121C27;
  --panel: #16212C;
  --panel-2: #1C2A37;
  --border: #263341;
  --text: #E7EDF3;
  --muted: #8DA0B3;
  --accent: #3FE08F;
  --accent-dim: #23483A;
  --warn: #E8B339;
  --danger: #E8615D;
  --radius: 12px;
  --font-head: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; scroll-padding-top: 76px; }
body{
  margin:0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
}
a{ color: inherit; }
.container{ max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Шапка ---------- */
.site-header{
  position: sticky; top: 0; z-index: 20;
  background: rgba(15,23,32,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner{ display:flex; align-items:center; justify-content:space-between; height: 64px; gap: 20px; }
.header-inner img{ display:block; height: 34px; }
.site-nav{ display:flex; align-items:center; }
.site-nav a.nav-link{ margin-right: 26px; }
.site-nav a{
  text-decoration:none; color: var(--muted);
  font-family: var(--font-head); font-weight:700; font-size: 14px;
}
.site-nav a:hover{ color: var(--text); }

/* ---------- Кнопки ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family: var(--font-head); font-weight: 800; font-size: 15px;
  padding: 13px 24px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--panel-2); color: var(--text); cursor:pointer; text-decoration:none;
}
.btn:hover{ border-color: #35485a; }
.btn-accent{ background: var(--accent); border-color: var(--accent); color:#08331F; }
.btn-accent:hover{ filter: brightness(1.06); }
.btn-sm{ padding: 8px 16px; font-size: 13.5px; }

/* ---------- Hero ---------- */
.hero{ padding: 84px 0 72px; position: relative; overflow: hidden; }
.hero-grid{ display:grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items:center; }
.eyebrow{
  font-family: var(--font-head); font-weight:800; font-size: 13px;
  letter-spacing:.08em; text-transform: uppercase; color: var(--accent); margin: 0 0 16px;
}
.hero h1{
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; margin: 0 0 20px;
  letter-spacing: -.02em;
}
.hero p.lead{ font-size: 18px; color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.hero-cta{ display:flex; gap: 12px; flex-wrap: wrap; }

.hero-art{ display:flex; justify-content:center; }
.hero-art svg{ width: 100%; max-width: 380px; height:auto; }
.hero-art .bar{ transform-origin: bottom; animation: grow 1.1s cubic-bezier(.2,.8,.3,1) both; }
.hero-art .bar:nth-child(2){ animation-delay:.08s; }
.hero-art .bar:nth-child(3){ animation-delay:.16s; }
.hero-art .bar:nth-child(4){ animation-delay:.24s; }
.hero-art .bar:nth-child(5){ animation-delay:.32s; }
.hero-art .node{ animation: pulse 2.6s ease-in-out infinite 1.2s; transform-origin: center; }
@keyframes grow{ from{ transform: scaleY(.05); opacity:.2; } to{ transform: scaleY(1); opacity:1; } }
@keyframes pulse{ 0%,100%{ transform: scale(1); opacity:1; } 50%{ transform: scale(1.35); opacity:.7; } }

/* ---------- Секции ---------- */
section{ padding: 76px 0; }
.section-alt{ background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head{ max-width: 620px; margin-bottom: 40px; }
.section-head h2{
  font-family: var(--font-head); font-weight:800; font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 12px; letter-spacing:-.01em; line-height:1.15;
}
.section-head p{ color: var(--muted); margin:0; }

/* ---------- Услуги ---------- */
.cards{ display:grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card{
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 26px; display:flex; flex-direction:column; gap: 14px;
}
.card .icon{
  width: 48px; height: 48px; border-radius: 12px; background: var(--accent-dim);
  display:flex; align-items:center; justify-content:center; color: var(--accent);
}
.card h3{ font-family: var(--font-head); font-size: 20px; margin:0; }
.card p{ color: var(--muted); margin:0; font-size: 15px; }
.card ul{ margin: 0; padding-left: 18px; color: var(--text); font-size: 14.5px; line-height:1.8; }
.card li::marker{ color: var(--accent); }

/* ---------- Как работаем ---------- */
.steps{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step{ padding-top: 14px; border-top: 2px solid var(--border); }
.step .step-num{
  display:block; font-family: var(--font-head); font-weight: 800; font-size: 14px;
  color: var(--accent); margin-bottom: 10px;
}
.step h3{ font-family: var(--font-head); font-size: 17px; margin: 0 0 6px; }
.step p{ color: var(--muted); font-size: 14.5px; margin:0; }

/* ---------- Заявка ---------- */
.contact-grid{ display:grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items:start; }
.contact-info h2{ font-family: var(--font-head); font-weight:800; font-size: clamp(26px,3.4vw,36px); margin:0 0 12px; line-height:1.15; }
.contact-info p{ color: var(--muted); margin: 0 0 22px; }
.contact-list{ list-style:none; padding:0; margin:0 0 26px; display:flex; flex-direction:column; gap: 10px; }
.contact-list li{ font-size: 15.5px; }
.contact-list span{ color: var(--muted); display:block; font-size: 12.5px; }
.cabinet-note{
  border: 1px dashed var(--border); border-radius: var(--radius); padding: 16px 18px;
  font-size: 14.5px; color: var(--muted);
}
.cabinet-note a{ color: var(--accent); font-weight:600; }

.form-card{
  background: var(--panel); border:1px solid var(--border); border-radius: var(--radius); padding: 28px;
}
.form-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field{ margin-bottom: 16px; }
.field label{ display:block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-family: var(--font-head); font-weight:700; }
.field input, .field select, .field textarea{
  width:100%; background: var(--bg); border:1px solid var(--border); color: var(--text);
  border-radius: 9px; padding: 12px 14px; font-size: 15px; font-family: var(--font-body);
}
.field textarea{ min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus{ outline: 2px solid var(--accent); outline-offset:1px; }
.req{ color: var(--accent); }
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note{ font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

.alert{ border-radius: 10px; padding: 14px 16px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid; }
.alert-ok{ background: var(--accent-dim); border-color: var(--accent); color: var(--accent); }
.alert-err{ background: #452427; border-color: var(--danger); color: var(--danger); }

/* ---------- Подвал ---------- */
.site-footer{ border-top: 1px solid var(--border); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner{ display:flex; justify-content:space-between; align-items:center; gap: 16px; flex-wrap: wrap; }
.footer-inner img{ height: 28px; }
.footer-inner a{ color: var(--muted); }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  .hero-art .bar, .hero-art .node{ animation: none; }
}

@media (max-width: 900px){
  .hero{ padding: 52px 0 44px; }
  .hero-grid, .contact-grid{ grid-template-columns: 1fr; gap: 32px; }
  .hero-art{ order: -1; }
  .hero-art svg{ max-width: 220px; }
  .cards{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .site-nav a.nav-link{ display:none; }
  section{ padding: 52px 0; }
}
@media (max-width: 520px){
  .form-row{ grid-template-columns: 1fr; }
  .steps{ grid-template-columns: 1fr; }
  .form-card{ padding: 20px; }
}
