@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --ink: #1e1b4b;
  --muted: #6366f1;
  --line: #c7d2fe;
  --paper: #ffffff;
  --soft: #eef2ff;
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #7c3aed;
  --accent-light: #a78bfa;
  --gold: #f59e0b;
  --dark: #0f0d2e;
  --gradient-start: #4f46e5;
  --gradient-end: #7c3aed;
  --radius: 12px;
  --radius-sm: 8px;
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  transition: all 0.2s ease;
}

/* ===== ШАПКА ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 0 12vw;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  text-decoration: none;
  letter-spacing: -0.5px;
  color: var(--dark);
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 900;
  font-size: 18px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a {
  white-space: nowrap;
  text-decoration: none;
  padding: 8px 0;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(to right, var(--gradient-start), var(--gradient-end));
  transition: width 0.3s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

.site-footer a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: var(--accent);
}

/* ===== КНОПКИ ===== */
.header-action,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  letter-spacing: -0.2px;
}

.button-hero {
  width: 100%;
  min-height: 60px;
  padding: 0 48px;
  font-size: 17px;
  border-radius: var(--radius);
}

.header-action,
.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.header-action:hover,
.button-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
}

.button-secondary {
  color: var(--primary);
  border-color: var(--line);
  background: white;
}

.button-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent);
}

.button-light {
  color: var(--dark);
  background: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.button-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ===== HERO ===== */
.hero {
  position: relative;
  overflow: visible;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 80px 12vw 70px;
  background: linear-gradient(180deg, #f5f3ff 0%, #ffffff 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.hero-media {
  position: absolute;
  z-index: 1;
  top: -50px;
  right: -250px;
  transform: translate(50%, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 900px;
  height: 900px;
}

.hero-globe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(
    135deg,
    #4f46e5 0%,
    #6366f1 30%,
    #7c3aed 65%,
    #a855f7 100%
  );
  -webkit-mask-image: url("assets/coolestglobus.svg");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("assets/coolestglobus.svg");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
  opacity: 0.5;
  filter: drop-shadow(0 30px 70px rgba(79, 70, 229, 0.22));
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(52px, 8vw, 88px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -2px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  overflow: visible;
  word-break: keep-all;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1.5px;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.lead {
  color: var(--muted);
  font-size: 22px;
  font-weight: 400;
  max-width: 580px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 30px;
  width: 100%;
}

.trust-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  list-style: none;
  font-size: 15px;
  font-weight: 500;
}

.trust-list li::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

/* ===== СЕКЦИИ ===== */
.section {
  padding: 64px 12vw;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-heading p,
.details p,
.step p,
.site-footer p,
.legal p,
.legal li {
  color: var(--muted);
  font-weight: 500;
}

/* ===== ТАРИФЫ ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.price-card {
  position: relative;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.price-card .button {
  width: 100%;
  margin-top: auto;
}

.price-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.1);
}

.featured {
  border: 2px solid var(--accent-light);
  background: linear-gradient(180deg, #ffffff 0%, #f5f3ff 100%);
  box-shadow: 0 20px 60px rgba(124, 58, 237, 0.15);
}

.badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  color: white;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.price {
  margin-bottom: 10px;
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--dark);
}

/* ===== КАК РАБОТАЕТ ===== */
.split {
  display: grid;
  grid-template-columns: minmax(200px, 0.6fr) minmax(0, 1.4fr);
  gap: 36px;
  align-items: start;
  background: linear-gradient(180deg, #f5f3ff 0%, #eef2ff 100%);
  border-radius: var(--radius);
  margin: 0 12vw 48px;
  padding: 48px;
}

.steps {
  display: grid;
  gap: 10px;
}

.step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  transition: all 0.3s ease;
}

.step:hover {
  transform: translateX(4px);
  border-color: var(--accent-light);
}

.step span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: white;
  font-weight: 800;
  font-size: 16px;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
}

.step p {
  margin: 0;
  font-weight: 500;
}

/* ===== INFO BAND ===== */
.info-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 0 12vw 48px;
  padding: 48px;
  color: white;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  border-radius: var(--radius);
  box-shadow: 0 25px 60px rgba(79, 70, 229, 0.25);
}

.info-band p {
  max-width: 780px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* ===== ДЕТАЛИ ===== */
.details {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  padding-top: 16px;
}

.details article {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  transition: all 0.3s ease;
}

.details article:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(79, 70, 229, 0.1);
}

/* ===== ФУТЕР ===== */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 40px 12vw;
  border-top: 1px solid var(--line);
  background: var(--soft);
}

.site-footer strong {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--muted);
  font-weight: 500;
}

/* ===== ПРАВОВЫЕ СТРАНИЦЫ ===== */
.legal {
  max-width: 920px;
  margin: 0 auto;
  padding: 80px 12vw;
}

.legal h1 {
  font-size: clamp(38px, 6vw, 60px);
  overflow-wrap: anywhere;
  word-break: normal;
}

.legal section {
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.legal .note {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
  font-weight: 500;
}

/* ===== АНИМАЦИИ ===== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* ===== АДАПТИВ: ПЛАНШЕТЫ ===== */
@media (max-width: 900px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 8vw;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 24px;
  }

  .hero,
  .split,
  .pricing-grid,
  .details {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 60px 8vw 50px;
    gap: 36px;
  }

  .hero-media {
    order: -1;
    min-height: 300px;
    max-width: 350px;
    margin: 0 auto;
  }

  .hero-globe {
    min-height: 300px;
  }

  .split {
    margin: 0 8vw 36px;
    padding: 36px;
    gap: 28px;
  }

  .section {
    padding: 48px 8vw;
  }

  .info-band {
    margin: 0 8vw 36px;
  }

  .info-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ===== АДАПТИВ: ТЕЛЕФОНЫ ===== */
@media (max-width: 520px) {
  .section,
  .legal {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .hero-actions,
  .button,
  .header-action {
    width: 100%;
  }

  .info-band {
    margin: 0 6vw 32px;
    padding: 32px;
  }

  h1 {
    font-size: clamp(44px, 14vw, 68px);
  }

  .hero {
    position: relative;
    overflow: hidden;
  }

  .hero-media {
    min-height: 280px;
    max-width: 280px;
    margin: 0 auto;
  }

  .hero-globe {
    min-height: 280px;
    opacity: 0.7;
    pointer-events: none;
    z-index: 0;
    transition: transform 0.15s linear;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
  }

  .hero-actions,
  .trust-list {
    position: relative;
    z-index: 2;
  }
}