:root {
  --bg: #070b18;
  --bg-elevated: #0e1528;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(232, 238, 252, 0.1);
  --text: #eef2ff;
  --muted: #9aa8c7;
  --primary: #3d6bff;
  --primary-deep: #1f3bb3;
  --accent: #52cdff;
  --success: #34b1aa;
  --glow: rgba(61, 107, 255, 0.45);
  --radius: 22px;
  --shadow: 0 30px 80px rgba(4, 8, 24, 0.45);
  --font: "Manrope", "Segoe UI", sans-serif;
  --display: "Syne", "Manrope", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  min-height: 100vh;
}

body.nav-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(61, 107, 255, 0.28), transparent 55%),
    radial-gradient(700px 420px at 90% 8%, rgba(82, 205, 255, 0.16), transparent 50%),
    radial-gradient(600px 400px at 70% 90%, rgba(31, 59, 179, 0.22), transparent 55%),
    linear-gradient(180deg, #070b18 0%, #0a1020 100%);
}

.bg-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 75%);
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(7, 11, 24, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 10px 30px var(--glow);
  background: none;
  padding: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: var(--surface);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.lang-switch button.is-active {
  background: var(--primary);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: white;
  box-shadow: 0 12px 30px var(--glow);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn-lg {
  padding: 15px 26px;
  font-size: 1.02rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}

.mobile-panel {
  display: none;
}

.hero {
  position: relative;
  z-index: 1;
  padding: 72px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(82, 205, 255, 0.25);
  color: var(--accent);
  background: rgba(82, 205, 255, 0.08);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

h1,
h2,
h3 {
  font-family: var(--display);
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 58ch;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.hero-card {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: auto -20% 40% -20%;
  height: 180px;
  background: radial-gradient(circle, var(--glow), transparent 70%);
}

.doc {
  position: relative;
  background: #10182c;
  border-radius: 18px;
  border: 1px solid var(--line);
  padding: 20px;
}

.doc-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.85rem;
}

.doc-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.doc-total {
  margin-top: 10px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.2), rgba(82, 205, 255, 0.08));
  display: flex;
  justify-content: space-between;
  font-weight: 800;
}

section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.grid-3,
.grid-2,
.cards {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  min-height: 100%;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 107, 255, 0.4);
  background: var(--surface-strong);
}

.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(61, 107, 255, 0.16);
  color: var(--accent);
}

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card p,
.muted {
  color: var(--muted);
}

.steps {
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 8px;
}

.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-band {
  border: 1px solid var(--line);
  border-radius: 32px;
  padding: 42px;
  background:
    linear-gradient(135deg, rgba(31, 59, 179, 0.35), rgba(7, 11, 24, 0.2)),
    var(--bg-elevated);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.page-hero {
  padding: 56px 0 12px;
}

.page-hero h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.prose {
  max-width: 74ch;
}

.prose p {
  color: var(--muted);
  font-size: 1.05rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.contact-card,
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-line a {
  color: var(--accent);
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 6px;
  color: var(--muted);
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(7, 11, 24, 0.55);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  outline: none;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(61, 107, 255, 0.18);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.alerts {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.alert {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.alert-success {
  background: rgba(52, 177, 170, 0.15);
  color: #b7fff8;
}

.alert-error {
  background: rgba(249, 95, 83, 0.15);
  color: #ffd2ce;
}

.media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 18px;
  background: #10182c;
}

.cover-fallback {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(61, 107, 255, 0.35), rgba(82, 205, 255, 0.12));
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.html-body {
  color: var(--muted);
}

.html-body h2,
.html-body h3,
.html-body strong {
  color: var(--text);
}

.html-body a {
  color: var(--accent);
  text-decoration: underline;
}

.empty {
  padding: 48px 24px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 24px;
  color: var(--muted);
}

.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.kicker {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .hero-grid,
  .grid-3,
  .grid-2,
  .contact-grid,
  .form-row,
  .cta-band,
  .section-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  .cta-band,
  .section-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links,
  .nav-actions .btn-ghost,
  .nav-actions .lang-switch {
    display: none;
  }

  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .mobile-panel {
    display: none;
    border-top: 1px solid var(--line);
    padding: 12px 0 20px;
  }

  .mobile-panel.is-open {
    display: block;
  }

  .mobile-panel a,
  .mobile-panel .btn {
    display: block;
    width: 100%;
    margin: 8px 0;
    text-align: center;
  }

  .mobile-lang {
    display: flex;
    justify-content: center;
    margin: 12px 0;
  }

  .hero,
  section {
    padding-top: 40px;
    padding-bottom: 40px;
  }
}
