:root {
  --blue: #0b3a91;
  --blue-mid: #1248b0;
  --navy: #071833;
  --ink: #101828;
  --muted: #5b6575;
  --line: #d8dee8;
  --bg: #f3f5f8;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 40px rgba(7, 24, 51, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: Manrope, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 16px;
  min-height: 72px;
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  height: 44px;
  width: auto;
  border: 1px solid var(--blue);
}

.nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

.header.scrolled {
  box-shadow: 0 10px 30px rgba(7, 24, 51, 0.08);
}

.nav a {
  white-space: nowrap;
  position: relative;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: var(--blue);
  transition: width 0.25s ease;
}

.nav a:hover::after { width: 100%; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s ease, background 0.22s ease, box-shadow 0.22s ease;
}

.btn-cabinet,
.btn-primary {
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
}

.btn-cabinet:hover,
.btn-primary:hover {
  background: var(--blue-mid);
  transform: translateY(-1px);
  box-shadow: 0 10px 22px rgba(11, 58, 145, 0.28);
}

.btn-light {
  background: #fff;
  color: var(--navy);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.header-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 14px;
}

.header-phone {
  font-family: Oswald, sans-serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--blue);
  white-space: nowrap;
}

.header-phone:hover { color: var(--blue-mid); }

.menu-btn {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--navy);
}

.hero {
  position: relative;
  min-height: 78vh;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 80% 10%, rgba(18, 72, 176, 0.45), transparent 40%),
    linear-gradient(160deg, #041225 0%, var(--navy) 48%, #0b3a91 130%);
  color: #fff;
  overflow: hidden;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(#000, transparent 92%);
}

.hero-content {
  position: relative;
  padding: 72px 0 88px;
}

.eyebrow {
  font-family: Oswald, sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 13px;
  color: #9db4e0;
  margin-bottom: 14px;
}

.eyebrow.dark { color: var(--blue); }

h1, h2, h3 { font-family: Oswald, sans-serif; line-height: 1.08; letter-spacing: 0.01em; }

h1 { font-size: clamp(40px, 7vw, 78px); max-width: 14ch; }

h2 { font-size: clamp(30px, 4.4vw, 48px); }

.hero-lead {
  max-width: 52ch;
  margin: 20px 0 32px;
  color: #d5deec;
  font-size: 18px;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { background: var(--blue); color: #fff; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats article {
  padding: 28px 16px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.stats article:last-child { border-right: 0; }

.stats strong {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 34px;
}

.stats span { color: #c9d7f0; font-size: 14px; }

.section { padding: 88px 0; }

.section-alt { background: var(--bg); }

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.prose p { margin-bottom: 14px; color: var(--muted); }

.prose strong { color: var(--ink); }

.checklist {
  margin-top: 18px;
  list-style: none;
}

.checklist li {
  padding: 10px 0 10px 28px;
  position: relative;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 10px;
  height: 10px;
  background: var(--blue);
}

.section-head { max-width: 640px; margin-bottom: 40px; }

.section-head p:last-child { color: var(--muted); margin-top: 12px; }

.process-flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.process-flow li {
  background: #fff;
  border: 1px solid var(--line);
  padding: 14px 12px;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  position: relative;
}

.process-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 16px;
}

.cards, .products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card, .products article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}

.card-num {
  font-family: Oswald, sans-serif;
  color: var(--blue);
  font-size: 28px;
}

.card h3, .products h3 { margin: 8px 0 10px; font-size: 28px; }

.card p, .products p { color: var(--muted); }

.card ul {
  margin-top: 16px;
  padding-left: 18px;
  color: var(--ink);
}

.card li { margin: 6px 0; }

.products { grid-template-columns: repeat(4, 1fr); }

.products article {
  box-shadow: none;
  min-height: 180px;
  border-top: 4px solid var(--blue);
}

.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 64px 0;
}

.cta-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.cta-band p:not(.eyebrow) { color: #c9d4e5; max-width: 54ch; margin-top: 8px; }

.lead { color: var(--muted); margin-top: 12px; max-width: 42ch; }

.contact-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}

.label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 4px;
}

.label:first-child { margin-top: 0; }

.phone {
  display: block;
  font-family: Oswald, sans-serif;
  font-size: 34px;
  color: var(--blue);
}

.contact-box .btn { margin-top: 22px; }

.footer {
  background: #050d1c;
  color: #9aa8bd;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer img { height: 36px; }

.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: var(--bg);
}

.auth-brand {
  background:
    linear-gradient(180deg, rgba(7, 24, 51, 0.35), rgba(7, 24, 51, 0.72)),
    linear-gradient(160deg, #041225, var(--blue));
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.auth-brand img {
  width: min(420px, 100%);
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.auth-brand h1 { font-size: 48px; margin: 24px 0 12px; }

.auth-brand p { color: #d5deec; max-width: 42ch; }

.auth-panel {
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.auth-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.auth-card h2 { margin-bottom: 8px; }

.auth-card .sub { color: var(--muted); margin-bottom: 24px; }

label { display: block; font-size: 13px; font-weight: 700; margin: 14px 0 6px; }

input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  font: inherit;
}

input:focus {
  outline: 2px solid rgba(11, 58, 145, 0.25);
  border-color: var(--blue);
}

.auth-card .btn { width: 100%; margin-top: 20px; height: 48px; }

.auth-note {
  display: none;
  margin-top: 14px;
  padding: 12px 14px;
  background: #eef3fb;
  color: var(--blue);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.auth-note.show,
.auth-note.error {
  display: block;
}

.auth-note.error {
  background: #fde8e8;
  color: #9b1c1c;
}

.coming-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 10%, rgba(18, 72, 176, 0.35), transparent 40%),
    linear-gradient(160deg, #041225 0%, var(--navy) 48%, #0b3a91 130%);
  color: #fff;
}

.coming-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0;
}

.coming-bar img {
  height: 44px;
  width: auto;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.coming-main {
  width: min(800px, calc(100% - 32px));
  margin: 12vh auto 0;
}

.coming-main h1 {
  font-size: clamp(36px, 6vw, 64px);
  margin: 12px 0 16px;
}

.coming-main p:last-child { color: #d5deec; font-size: 18px; }

.back-link { display: inline-block; margin-top: 18px; color: var(--blue); font-weight: 700; }

.hero-glow {
  position: absolute;
  width: 48vw;
  height: 48vw;
  right: -8%;
  top: -18%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.35), transparent 68%);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}

.hero-scan {
  display: none;
}

.scroll-hint {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 22px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 4px;
  height: 8px;
  margin: 8px auto 0;
  border-radius: 4px;
  background: #fff;
  animation: scrollDot 1.6s ease-in-out infinite;
}

.card-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  color: var(--blue);
  margin-bottom: 8px;
}

.card-icon svg { width: 100%; height: 100%; }

.card, .products article, .contact-box {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover, .products article:hover, .contact-box:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(7, 24, 51, 0.14);
  border-color: rgba(11, 58, 145, 0.35);
}

.process-flow li:not(:last-child)::after {
  animation: arrowPulse 1.6s ease-in-out infinite;
}

.phone {
  transition: color 0.2s ease;
}

.phone:hover { color: var(--blue-mid); }

.reveal {
  opacity: 0;
  transform: translateY(22px);
}

.reveal.in {
  animation: riseIn 1s ease forwards;
}

.reveal.d1.in { animation-delay: 0.18s; }
.reveal.d2.in { animation-delay: 0.36s; }
.reveal.d3.in { animation-delay: 0.52s; }

@keyframes glowPulse {
  0%, 100% { opacity: 0.65; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes scanMove {
  0% { top: -20%; }
  100% { top: 110%; }
}

@keyframes scrollDot {
  0% { opacity: 1; transform: translateY(0); }
  80% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 0; transform: translateY(12px); }
}

@keyframes arrowPulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-glow, .scroll-hint span, .process-flow li:not(:last-child)::after, .reveal {
    animation: none !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1100px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line);
    gap: 12px;
    white-space: normal;
  }

  .nav.open { display: flex; }

  .nav a::after { display: none; }

  .menu-btn { display: flex; }

  .header-phone { font-size: 18px; }

  .header-actions { gap: 10px; }

  .header-inner { min-height: 64px; }

  .brand img { height: 40px; }

  .btn-cabinet { padding: 10px 14px; font-size: 13px; }
}

@media (max-width: 960px) {
  .stats-grid,
  .cards,
  .products,
  .process-flow,
  .split,
  .auth-page,
  .cta-inner,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; }

  .stats article { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); }

  .process-flow li::after { display: none; }

  .auth-brand { min-height: 280px; padding: 28px; }

  .footer-inner { text-align: center; justify-items: center; }
}

@media (max-width: 560px) {
  .stats-grid { grid-template-columns: 1fr; }
  .hero-content { padding: 48px 0 64px; }
  .section { padding: 64px 0; }
  .header-phone { font-size: 15px; }
  .brand img { height: 32px; }
  .btn-cabinet { padding: 8px 12px; font-size: 12px; }
}
