:root {
  --bg: #070b1a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.55);
  --body: rgba(255, 255, 255, 0.82);
  --line: rgba(255, 255, 255, 0.14);
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

html, body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
}

body {
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

/* ---------- фон ---------- */
.bg {
  position: fixed;
  inset: 0;
  background-color: var(--bg);
  background-image: radial-gradient(rgba(180, 210, 230, 0.18) 1px, transparent 1px);
  background-size: 40px 40px;
  overflow: hidden;
  z-index: 0;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  opacity: 0.85;
  will-change: transform, opacity;
}

.glow-1 {
  width: 75vw; height: 60vh; top: -10vh; right: -5vw;
  background: radial-gradient(circle, #0e6b78 0%, rgba(14, 107, 120, 0) 70%);
  animation: drift1 24s ease-in-out infinite, pulse 9s ease-in-out infinite;
}

.glow-2 {
  width: 80vw; height: 55vh; bottom: -15vh; left: -10vw;
  background: radial-gradient(circle, #0b4a55 0%, rgba(11, 74, 85, 0) 70%);
  animation: drift2 30s ease-in-out infinite, pulse 12s ease-in-out infinite reverse;
}

.glow-3 {
  width: 50vw; height: 50vh; top: -5vh; left: -8vw;
  background: radial-gradient(circle, #0a3d47 0%, rgba(10, 61, 71, 0) 70%);
  animation: drift3 20s ease-in-out infinite;
}

.glow-4 {
  width: 42vw; height: 35vh; bottom: -5vh; right: -5vw;
  background: radial-gradient(circle, #118a99 0%, rgba(17, 138, 153, 0) 70%);
  opacity: 0.35;
  animation: drift4 27s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-18vw, 6vh) scale(1.1); }
  66% { transform: translate(-8vw, 18vh) scale(0.95); }
}

@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(15vw, -10vh) scale(1.15); }
}

@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-10vw, -8vh) scale(0.9); }
  75% { transform: translate(8vw, 6vh) scale(1.1); }
}

@keyframes drift4 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-22vw, -18vh); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 0.55; }
}

@media (prefers-reduced-motion: reduce) {
  .glow { animation: none; }
}

/* ---------- каркас ---------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}

.panel {
  padding: 40px 40px 32px;
  border-radius: 36px;
  background: rgba(20, 24, 40, 0.35);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.logo {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-text {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: transparent;
  background-image:
    linear-gradient(180deg,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(255, 255, 255, 0) 45%,
      rgba(0, 0, 0, 0.35) 52%,
      rgba(255, 255, 255, 0.35) 100%),
    linear-gradient(90deg, #1f4fc0 0%, #4fb8d8 20%, #a8f0f6 36%, #e6eef8 50%, #aab6cc 62%, #5a4fb0 80%, #2e2472 100%);
  -webkit-background-clip: text;
  background-clip: text;
  filter: drop-shadow(0 2px 0 rgba(255, 255, 255, 0.2)) drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7));
}

.logo-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 8px rgba(120, 220, 255, 0.45));
}

nav { display: flex; gap: 12px; flex-wrap: wrap; }

nav a {
  padding: 8px 18px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-size: 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.02) 100%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  backdrop-filter: blur(10px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: background 0.2s, color 0.2s;
}

nav a:hover, nav a[aria-current="page"] {
  color: #fff;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.05) 100%);
}

.caption {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px 4px;
}

/* ---------- hero ---------- */
.hero { margin: 0 0 48px; }

.hero h2 {
  margin: 0 0 16px;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero p {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--body);
}

.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  color: #06121a;
  text-decoration: none;
  background: linear-gradient(180deg, #a8f0f6 0%, #4fb8d8 100%);
  box-shadow: 0 10px 30px rgba(79, 184, 216, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(79, 184, 216, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* ---------- карточки ---------- */
.row { display: flex; gap: 20px; margin-bottom: 52px; flex-wrap: wrap; }

.glass {
  position: relative;
  min-width: 0;
  flex: 1 1 260px;
  padding: 26px 28px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.004) 100%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}

.glass h3 {
  position: relative;
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  font-size: 17px;
  font-weight: 600;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: inset 0 8px 8px -6px rgba(0, 0, 0, 0.7);
}

.glass p {
  position: relative;
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--body);
}

.glass p:last-child { margin-bottom: 0; }

.glass a {
  position: relative;
  color: #9fe6ff;
  text-decoration: none;
  font-size: 15px;
}

.glass a:hover { text-decoration: underline; }

.glass ul {
  position: relative;
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.6;
}

.row-full { margin-bottom: 0; }
.row-full .glass { width: 100%; flex-basis: 100%; }

.steps { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 6px; }
.step { flex: 1 1 180px; }
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  margin-bottom: 10px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 15px;
  color: #06121a;
  background: linear-gradient(180deg, #a8f0f6, #4fb8d8);
}
.step h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.step p { margin: 0; font-size: 14px; color: var(--body); line-height: 1.5; }

/* ---------- текст страниц ---------- */
.doc h2 { margin: 0 0 20px; font-size: 32px; font-weight: 700; }
.doc h3 { margin: 28px 0 10px; font-size: 20px; font-weight: 600; }
.doc p { margin: 0 0 14px; font-size: 16px; line-height: 1.65; color: var(--body); }
.doc ul { margin: 0 0 16px; padding-left: 20px; color: var(--body); font-size: 16px; line-height: 1.65; }
.doc a { color: #9fe6ff; }
.doc .muted { color: var(--muted); font-size: 14px; }

.price { color: #e6eef8; font-weight: 600; }

/* ---------- подвал ---------- */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 14px;
  color: var(--muted);
}

footer a { color: rgba(255, 255, 255, 0.7); text-decoration: none; }
footer a:hover { color: #fff; text-decoration: underline; }

/* ---------- 404 ---------- */
.err-code {
  font-size: 96px;
  font-weight: 800;
  line-height: 1;
  margin: 0 0 8px;
  color: transparent;
  background-image: linear-gradient(90deg, #4fb8d8, #a8f0f6, #8a7dff);
  -webkit-background-clip: text;
  background-clip: text;
}

@media (max-width: 800px) {
  .page { padding: 20px 14px 28px; }
  .panel { padding: 24px; border-radius: 28px; }
  .logo-text { font-size: 26px; }
  .logo-icon { width: 38px; height: 38px; }
  nav { gap: 8px; }
  nav a { padding: 6px 12px; font-size: 14px; }
  .hero h2 { font-size: 30px; }
  .row { flex-direction: column; }
  .err-code { font-size: 72px; }
}
