:root {
  --bg: #061326;
  --bg-soft: #0b1f3d;
  --card: rgba(13, 36, 71, 0.78);
  --card-strong: rgba(15, 42, 84, 0.92);
  --line: rgba(123, 175, 255, 0.16);
  --text: #eaf3ff;
  --muted: #a9bfdc;
  --primary: #2f7dff;
  --primary-2: #56b0ff;
  --accent: #7dd3fc;
  --success: #22c55e;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --radius: 22px;
  --radius-sm: 16px;
  --container: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(47, 125, 255, 0.18), transparent 28%),
    radial-gradient(circle at right center, rgba(86, 176, 255, 0.12), transparent 20%),
    linear-gradient(180deg, #040c18 0%, #07162b 50%, #05101f 100%);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

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

.bg-grid {
  position: fixed;
  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: 32px 32px;
  mask-image: radial-gradient(circle at center, black 45%, transparent 95%);
  pointer-events: none;
  z-index: -3;
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: -2;
  opacity: 0.4;
}

.orb-1 {
  width: 260px;
  height: 260px;
  left: -60px;
  top: 70px;
  background: rgba(47, 125, 255, 0.34);
  animation: floatOrb 12s ease-in-out infinite;
}

.orb-2 {
  width: 340px;
  height: 340px;
  right: -90px;
  top: 220px;
  background: rgba(86, 176, 255, 0.18);
  animation: floatOrb 16s ease-in-out infinite reverse;
}

.orb-3 {
  width: 220px;
  height: 220px;
  left: 35%;
  bottom: 50px;
  background: rgba(24, 119, 242, 0.15);
  animation: floatOrb 14s ease-in-out infinite;
}

@keyframes floatOrb {
  0%, 100% { transform: translateY(0) translateX(0) scale(1); }
  50% { transform: translateY(-24px) translateX(16px) scale(1.06); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  background: rgba(4, 12, 24, 0.62);
  border-bottom: 1px solid rgba(123, 175, 255, 0.12);
}

.navbar {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 30px rgba(47, 125, 255, 0.35);
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-text strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.1;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  margin-top: 2px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(123, 175, 255, 0.16);
  border-radius: 14px;
  background: rgba(11, 31, 61, 0.88);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 10px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle::before {
  transform: translateY(-7px);
}

.menu-toggle::after {
  transform: translateY(7px);
}

.menu-toggle.active span {
  opacity: 0;
}

.menu-toggle.active::before {
  transform: translateY(2px) rotate(45deg);
}

.menu-toggle.active::after {
  transform: translateY(0) rotate(-45deg);
}

.menu {
  display: flex;
  align-items: center;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--muted);
  font-weight: 500;
  transition: 0.25s ease;
}

.menu a:hover,
.menu a.active {
  color: var(--text);
  background: rgba(47, 125, 255, 0.12);
}

.hero {
  padding: 64px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 28px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(47, 125, 255, 0.12);
  border: 1px solid rgba(123, 175, 255, 0.16);
  color: #cfe4ff;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-2), #e0f2fe);
  box-shadow: 0 0 0 6px rgba(86, 176, 255, 0.12);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p {
  margin: 0;
  color: var(--muted);
  font-size: 1.07rem;
  max-width: 62ch;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 16px 28px rgba(47, 125, 255, 0.28);
}

.btn-secondary {
  background: rgba(47, 125, 255, 0.12);
  border-color: rgba(123, 175, 255, 0.16);
  color: var(--text);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.stat-card {
  background: rgba(8, 23, 45, 0.74);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.stat-card strong {
  display: block;
  font-size: 1.34rem;
  margin-bottom: 6px;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.94rem;
}

.image-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.01));
  box-shadow: var(--shadow);
}

.image-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.image-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(5, 13, 25, 0.64);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(123, 175, 255, 0.16);
  color: #d9ebff;
}

.section {
  padding: 34px 0;
}

.section-head {
  margin-bottom: 18px;
}

.kicker {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 10px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  letter-spacing: -0.03em;
}

.section-intro {
  color: var(--muted);
  margin: 0;
  max-width: 72ch;
}

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 175, 255, 0.28);
}

.card-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(47,125,255,0.2), rgba(86,176,255,0.18));
  border: 1px solid rgba(123,175,255,0.16);
  margin-bottom: 16px;
  font-size: 1.15rem;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.18rem;
}

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

.card ul {
  padding-left: 18px;
  margin: 0;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: stretch;
}

.steps {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(8, 23, 45, 0.74);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 800;
  box-shadow: 0 14px 26px rgba(47, 125, 255, 0.24);
}

.step h3 {
  margin: 0 0 8px;
}

.step p {
  margin: 0;
  color: var(--muted);
}

.notice,
.callout {
  background: linear-gradient(180deg, rgba(20, 51, 96, 0.88), rgba(10, 27, 53, 0.95));
  border: 1px solid rgba(123, 175, 255, 0.2);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.notice strong,
.callout strong {
  display: inline-block;
  margin-bottom: 10px;
}

.notice p,
.callout p,
.callout li {
  color: #d5e8ff;
  margin-top: 0;
}

.callout ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.page-hero {
  padding: 54px 0 22px;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  align-items: center;
}

.legal {
  display: grid;
  gap: 20px;
}

.legal-block {
  background: var(--card-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.legal-block h2 {
  margin-top: 0;
  font-size: 1.35rem;
}

.legal-block h3 {
  margin: 18px 0 8px;
  font-size: 1.06rem;
}

.legal-block p,
.legal-block li {
  color: #d2e5ff;
}

.legal-block ol,
.legal-block ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--card-strong);
  box-shadow: var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  text-align: left;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(123, 175, 255, 0.12);
  vertical-align: top;
}

th {
  background: rgba(47, 125, 255, 0.12);
  color: #dff0ff;
  font-size: 0.94rem;
}

td {
  color: #d3e6ff;
}

.code-box {
  padding: 18px;
  border-radius: 18px;
  background: #031121;
  border: 1px solid var(--line);
  color: #dff0ff;
  font-family: "SFMono-Regular", Consolas, Monaco, monospace;
  overflow-wrap: anywhere;
}

.list-clean {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-clean li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 0;
  border-bottom: 1px solid rgba(123, 175, 255, 0.08);
}

.list-clean li:last-child {
  border-bottom: 0;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  flex: 0 0 10px;
}

.footer {
  padding: 28px 0 46px;
  margin-top: 28px;
}

.footer-inner {
  display: grid;
  gap: 16px;
  background: rgba(5, 14, 28, 0.78);
  border: 1px solid rgba(123, 175, 255, 0.1);
  border-radius: var(--radius);
  padding: 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-nav a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.footer-nav a:hover {
  color: var(--text);
  background: rgba(47, 125, 255, 0.12);
}

.footer-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 1200;
  display: none;
  background: rgba(6, 18, 36, 0.96);
  border: 1px solid rgba(123, 175, 255, 0.16);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 18px;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.cookie-banner.show {
  display: flex;
}

.cookie-banner p {
  margin: 0;
  color: #dcecff;
  max-width: 760px;
}

.cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.94rem;
}

@media (max-width: 980px) {
  .hero-grid,
  .page-hero-grid,
  .two-col,
  .cards {
    grid-template-columns: 1fr;
  }

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

  .menu-toggle {
    display: inline-flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(5, 14, 28, 0.98);
    border: 1px solid rgba(123, 175, 255, 0.14);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .menu.open {
    display: flex;
  }

  .menu a {
    width: 100%;
    justify-content: flex-start;
  }

  .cookie-banner.show {
    display: grid;
  }

  .cookie-actions {
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 34px;
  }

  .page-hero {
    padding-top: 28px;
  }

  .section,
  .footer {
    padding-top: 22px;
  }

  .card,
  .legal-block,
  .notice,
  .callout {
    padding: 18px;
  }

  .image-card img {
    min-height: 240px;
  }

  .footer-top {
    flex-direction: column;
  }
}

/* ===== ДОПОЛНЕНИЯ ДЛЯ КНОПКИ КОПИРОВАНИЯ И АДАПТАЦИИ ===== */
.copy-req-btn {
  background: rgba(47, 125, 255, 0.2);
  border: 1px solid rgba(123, 175, 255, 0.3);
  border-radius: 40px;
  padding: 8px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
  margin-left: 12px;
}
.copy-req-btn:hover {
  background: rgba(47, 125, 255, 0.4);
  transform: translateY(-1px);
}
.copy-req-btn.copied {
  background: var(--success);
  color: #fff;
  border-color: var(--success);
}

@media (max-width: 640px) {
  .orb {
    opacity: 0.2;
    filter: blur(60px);
  }
  .orb-1 { width: 160px; height: 160px; }
  .orb-2 { width: 200px; height: 200px; }
  .orb-3 { width: 140px; height: 140px; }
}

.code-box {
  font-size: 0.85rem;
  line-height: 1.4;
  overflow-x: auto;
}

/* Компактный заголовок на главной */
.compact-title {
  font-size: clamp(1.8rem, 5vw, 3rem); /* был 4.2rem, уменьшили */
  line-height: 1.2;
  margin-bottom: 18px;
}

@media (max-width: 640px) {
  .compact-title {
    font-size: 1.6rem;
  }
}