:root {
  --bg-main: #020617;
  --bg-alt: #050816;
  --bg-card: #0b1120;
  --bg-light: #f3f4f6;

  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --text-dark: #111827;

  --primary: #2563eb;
  --primary-light: #60a5fa;

  --border-soft: #1f2937;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top left, rgba(37,99,235,0.35), transparent 55%), var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* тело при показе прелоадера */
body.no-scroll {
  overflow: hidden;
}

/* ПРЕЛОАДЕР */

.preloader {
  position: fixed;
  inset: 0;
  background: #020617;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 50;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.preloader-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  animation:
    logoDrop 2s cubic-bezier(.24,.9,.32,1.2) forwards,
    logoBreath 2.6s ease-in-out 2s infinite;
}

.preloader-text {
  font-size: 18px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e5e7eb;
  opacity: 0;
  animation: textFade 0.8s ease 1.4s forwards;
}

/* падение + двойное вращение */

@keyframes logoDrop {
  0% {
    transform: translate3d(0, -70vh, 0) rotate(-720deg) scale(0.9);
    filter: drop-shadow(0 0 0 rgba(56,189,248,0));
    opacity: 0;
  }
  40% {
    transform: translate3d(0, -12px, 0) rotate(30deg) scale(1.06);
    filter: drop-shadow(0 0 26px rgba(56,189,248,0.9));
    opacity: 1;
  }
  70% {
    transform: translate3d(0, 8px, 0) rotate(-10deg) scale(0.98);
  }
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg) scale(1);
    filter: drop-shadow(0 0 18px rgba(56,189,248,0.8));
    opacity: 1;
  }
}

/* лёгкое дыхание свечения */

@keyframes logoBreath {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 14px rgba(56,189,248,0.7));
  }
  50% {
    transform: translate3d(0, -3px, 0) scale(1.02);
    filter: drop-shadow(0 0 24px rgba(56,189,248,1));
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    filter: drop-shadow(0 0 14px rgba(56,189,248,0.7));
  }
}

@keyframes textFade {
  0% { opacity: 0; transform: translateY(6px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ОБЩИЕ */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

.section-light {
  background: #f9fafb;
  color: var(--text-dark);
}

.section-header {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 30px;
  margin-bottom: 10px;
}

.section-header p {
  font-size: 15px;
  color: var(--text-muted);
}

.section-light .section-header p {
  color: #6b7280;
}

/* REVEAL-АНИМАЦИИ */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ШАПКА */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(to bottom, rgba(2,6,23,0.96), rgba(2,6,23,0.9), transparent);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 18px;
}

.logo-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 14px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color .15s ease;
}

.nav a:hover {
  color: var(--primary-light);
}

/* Переключатель языка */

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 16px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(15,23,42,0.9);
  border: 1px solid rgba(55,65,81,0.9);
}

.lang-btn {
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  cursor: pointer;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background .15s ease, color .15s ease;
}

.lang-btn.active {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #f9fafb;
}

/* Бургер */

.burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.burger span {
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: #e5e7eb;
}

/* HERO */

.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 0% 0%, rgba(56,189,248,0.22), transparent 60%),
    radial-gradient(circle at 60% 120%, rgba(37,99,235,0.35), transparent 60%);
  filter: blur(6px);
  top: -220px;
  left: -140px;
  opacity: 0.9;
  pointer-events: none;
  animation: heroGlow 16s ease-in-out infinite alternate;
}

.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
  position: relative;
  z-index: 1;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
}

.hero h1 {
  font-size: 38px;
  line-height: 1.15;
  margin: 0;
}

.hero-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

/* Анимированные точки вокруг героя */

.hero-orbit {
  position: absolute;
  inset: -40px;
  pointer-events: none;
  z-index: 0;
}

.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #38bdf8;
  box-shadow: 0 0 14px rgba(56,189,248,0.9);
  opacity: 0.9;
}

.dot-1 {
  top: 40%;
  left: 5%;
  animation: orbitOne 9s ease-in-out infinite;
}

.dot-2 {
  top: 15%;
  right: 12%;
  animation: orbitTwo 11s ease-in-out infinite;
}

.dot-3 {
  bottom: 10%;
  left: 40%;
  animation: orbitThree 7s ease-in-out infinite;
}

@keyframes heroGlow {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.9;
  }
  50% {
    transform: translate3d(20px, 10px, 0) scale(1.05);
    opacity: 1;
  }
  100% {
    transform: translate3d(-10px, 20px, 0) scale(0.98);
    opacity: 0.85;
  }
}

@keyframes orbitOne {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.2; }
  25%  { transform: translate3d(80px, -40px, 0); opacity: 1; }
  50%  { transform: translate3d(120px, 10px, 0); opacity: 0.7; }
  75%  { transform: translate3d(40px, 40px, 0); opacity: 1; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.2; }
}

@keyframes orbitTwo {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.4; }
  30%  { transform: translate3d(-60px, 30px, 0); opacity: 1; }
  60%  { transform: translate3d(-90px, -10px, 0); opacity: 0.6; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.4; }
}

@keyframes orbitThree {
  0%   { transform: translate3d(0, 0, 0); opacity: 0.3; }
  20%  { transform: translate3d(-20px, -30px, 0); opacity: 1; }
  50%  { transform: translate3d(40px, -40px, 0); opacity: 0.5; }
  80%  { transform: translate3d(10px, 10px, 0); opacity: 0.9; }
  100% { transform: translate3d(0, 0, 0); opacity: 0.3; }
}

/* КНОПКИ */

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, border-color .12s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #f9fafb;
  box-shadow: 0 16px 32px rgba(37,99,235,0.65);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(37,99,235,0.8);
}

.btn-secondary {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border-soft);
}

.btn-secondary:hover {
  background: rgba(15,23,42,0.7);
}

/* КАРТОЧКИ УСЛУГ */

.cards {
  display: grid;
  gap: 20px;
}

.cards.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid var(--border-soft);
  font-size: 14px;
}

.section-light .card {
  background: #ffffff;
  border-color: #e5e7eb;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
}

.section-light .card p {
  color: #6b7280;
}

/* ЭТАПЫ */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  border: 1px solid #e5e7eb;
  font-size: 14px;
  box-shadow: 0 12px 26px rgba(15,23,42,0.08);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #e5edff;
  color: #1d4ed8;
  font-size: 13px;
  margin-bottom: 8px;
}

.step p {
  color: #6b7280;
}

/* О КОМПАНИИ */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

.about-grid > div:first-child p {
  color: var(--text-muted);
  font-size: 15px;
}

.about-note {
  padding: 18px 18px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  background: var(--bg-alt);
  font-size: 14px;
  color: var(--text-muted);
}

/* КОНТАКТЫ */

.section-contacts {
  background: #020617;
}

.contacts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 32px;
}

.contacts-layout p {
  color: var(--text-muted);
  max-width: 520px;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.contacts-item {
  display: flex;
  flex-direction: column;
}

.contacts-label {
  font-size: 12px;
  color: var(--text-muted);
}

.contacts-item a {
  color: var(--primary-light);
  text-decoration: none;
}

.contacts-item a:hover {
  text-decoration: underline;
}

/* FOOTER */

.footer {
  border-top: 1px solid rgba(15,23,42,0.8);
  padding: 18px 0 20px;
  background: #020617;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

/* АДАПТИВ */

@media (max-width: 1024px) {
  .cards.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-grid,
  .contacts-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 64px;
  }

  .nav {
    position: absolute;
    inset: 64px 0 auto;
    background: #020617;
    padding: 14px 20px 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    border-bottom: 1px solid rgba(15,23,42,0.8);
    display: none;
  }

  .nav.open {
    display: flex;
  }

  .lang-switch {
    margin-left: auto;
  }

  .burger {
    display: flex;
  }

  .hero {
    padding-top: 70px;
  }

  .cards.three,
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .section {
    padding: 60px 0;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 30px;
  }
}
