:root {
  --reta-blue: #0C2C5E;
  --accent: #1E5FA8;
  --charcoal: #374151;
  --slate: #64748B;
  --navy: #0F172A;
  --bg: #F8FAFC;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --max: 1120px;
  --shadow: 0 10px 30px rgba(12, 44, 94, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--charcoal);
  background: var(--white);
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--reta-blue); }

.mono {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  letter-spacing: 0.04em;
}

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 78px;
}
.logo img { height: 42px; width: auto; }
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--charcoal);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover, .nav a.active { color: var(--reta-blue); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
}
.lang a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  color: var(--slate);
  padding: 4px 6px;
  border-radius: 999px;
}
.lang a[aria-current="true"] {
  background: var(--white);
  color: var(--reta-blue);
  box-shadow: 0 1px 2px rgba(15,23,42,.08);
}
.flag { width: 16px; height: 12px; border-radius: 2px; object-fit: cover; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary {
  background: var(--reta-blue);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.35);
}
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  width: 42px;
  height: 42px;
  border-radius: 4px;
}

/* Hero */
.hero {
  background:
    linear-gradient(180deg, rgba(15,23,42,.55), rgba(12,44,94,.78)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 80H160M80 0V160' stroke='%231E5FA8' stroke-opacity='.18'/%3E%3C/svg%3E"),
    var(--navy);
  color: var(--white);
  padding: 88px 0 80px;
}
.kicker {
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: #93c5fd;
  margin: 0 0 14px;
}
.hero h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.4rem);
  line-height: 1.12;
  margin: 0 0 18px;
  max-width: 16ch;
  font-weight: 700;
  color: var(--white);
}
.hero p.lead {
  max-width: 42rem;
  color: #e2e8f0;
  font-size: 1.12rem;
  margin: 0 0 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.modes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: 56px;
}
.modes div {
  padding: 18px 8px 0 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #cbd5e1;
}

/* Sections */
section { padding: 80px 0; }
.section-muted { background: var(--bg); }
h2 {
  color: var(--reta-blue);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.2;
  margin: 0 0 16px;
}
h3 { color: var(--reta-blue); margin: 0 0 10px; font-size: 1.2rem; }
.sub {
  color: var(--slate);
  max-width: 42rem;
  margin: 0 0 36px;
}
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.grid-4, .grid-cards {
  display: grid;
  gap: 18px;
}
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-cards { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.card .label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.steps { counter-reset: step; padding: 0; margin: 0; list-style: none; }
.steps li {
  position: relative;
  padding: 0 0 22px 52px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: "IBM Plex Mono", monospace;
  color: var(--accent);
  font-weight: 600;
}

.cta-band {
  background: var(--reta-blue);
  color: var(--white);
  padding: 64px 0;
}
.cta-band h2, .cta-band p { color: var(--white); }
.cta-band p { color: #dbeafe; max-width: 40rem; }

/* Form */
form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
form .full { grid-column: 1 / -1; }
label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--reta-blue);
}
input, textarea, select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 11px 12px;
  font: inherit;
  color: var(--charcoal);
  background: var(--white);
}
textarea { min-height: 120px; resize: vertical; }
.note { color: var(--slate); font-size: 0.9rem; }

.contact-aside {
  background: var(--navy);
  color: #e2e8f0;
  padding: 28px;
  border-radius: 8px;
}
.contact-aside h3 { color: var(--white); }
.contact-aside p, .contact-aside a { color: #cbd5e1; }
.contact-aside a:hover { color: var(--white); }

/* Footer */
.footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 40px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer img { height: 36px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer nav a { color: #cbd5e1; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 18px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
}

@media (max-width: 860px) {
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 78px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 20px;
    gap: 14px;
  }
  .nav.open { display: flex; }
  .modes, .grid-4, .grid-2, .grid-cards, form { grid-template-columns: 1fr; }
  .header-inner { min-height: 70px; }
  .logo img { height: 34px; }
  section { padding: 56px 0; }
}
