/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:    #0d1b2e;
  --navy2:   #112240;
  --blue:    #1a4a8a;
  --accent:  #1e6fd9;
  --accent2: #3b9eff;
  --light:   #f4f7fb;
  --text:    #2d3748;
  --muted:   #718096;
  --white:   #ffffff;
  --radius:  12px;
  --shadow:  0 4px 24px rgba(13,27,46,.10);
  --shadow2: 0 8px 40px rgba(13,27,46,.16);
  --trans:   all .3s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(30,111,217,.08);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--trans);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: var(--white);
}
.btn--primary:hover { background: #1558b8; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,111,217,.35); }

.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,.5);
  color: var(--white);
}
.btn--outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn--white {
  background: var(--white);
  color: var(--accent);
}
.btn--white:hover { background: var(--light); transform: translateY(-2px); }

.btn--full { width: 100%; justify-content: center; }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--trans);
}
.header--scrolled {
  background: rgba(13,27,46,.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo__img { height: 110px; width: auto; filter: brightness(0) invert(1); }

.nav { display: flex; align-items: center; gap: 36px; }
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.8);
  transition: var(--trans);
  position: relative;
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--accent2);
  transform: scaleX(0);
  transition: var(--trans);
  border-radius: 2px;
}
.nav a:hover { color: var(--white); }
.nav a:hover::after { transform: scaleX(1); }

.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--trans);
}
.burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger--open span:nth-child(2) { opacity: 0; }
.burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, #0a2550 50%, #0d3a6e 100%);
}
.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 50%, rgba(30,111,217,.25) 0%, transparent 60%),
    radial-gradient(circle at 20% 80%, rgba(59,158,255,.15) 0%, transparent 50%);
}
.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 80px;
  max-width: 720px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent2);
  background: rgba(59,158,255,.12);
  border: 1px solid rgba(59,158,255,.25);
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 28px;
}

.hero__title {
  font-size: clamp(36px, 6vw, 68px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

.hero__sub {
  font-size: 18px;
  color: rgba(255,255,255,.7);
  max-width: 560px;
  margin-bottom: 44px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.4);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  z-index: 1;
}
.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%, 100% { opacity: .4; transform: scaleY(1); }
  50% { opacity: 1; transform: scaleY(.7); }
}

/* ===== STATS ===== */
.stats {
  background: var(--navy);
  padding: 0;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid rgba(255,255,255,.06);
}
.stat-card {
  padding: 40px 32px;
  border-right: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.06);
  text-align: center;
  transition: var(--trans);
}
.stat-card:hover { background: rgba(30,111,217,.1); }
.stat-card__num {
  font-size: 44px;
  font-weight: 800;
  color: var(--accent2);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-card__label { font-size: 14px; color: rgba(255,255,255,.6); }

/* ===== ABOUT ===== */
.about { background: var(--light); }
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__text p {
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.75;
}
.about__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.about__list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.about__list li svg {
  width: 20px; height: 20px;
  color: var(--accent);
  flex-shrink: 0;
}

.about__visual {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.about__card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.05);
  transition: var(--trans);
}
.about__card:hover { transform: translateX(8px); box-shadow: var(--shadow2); }
.about__card--1 { margin-left: 0; }
.about__card--2 { margin-left: 32px; }
.about__card--3 { margin-left: 0; }

.about__card-icon {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--accent) 0%, #0a2550 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.about__card-icon svg { width: 28px; height: 28px; }
.about__card strong { display: block; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.about__card span { font-size: 13px; color: var(--muted); }

/* ===== SERVICES ===== */
.services { background: var(--white); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid #e8edf5;
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--trans);
}
.service-card:hover { box-shadow: var(--shadow2); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }

.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(30,111,217,.08);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: var(--trans);
}
.service-card:hover .service-card__icon {
  background: var(--accent);
  color: var(--white);
}
.service-card__icon svg { width: 28px; height: 28px; }

.service-card h3 { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.service-card p { font-size: 14px; color: var(--muted); line-height: 1.7; margin-bottom: 20px; }

.service-card ul { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.service-card ul li {
  font-size: 13px;
  color: var(--text);
  padding-left: 16px;
  position: relative;
}
.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.service-card__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: var(--trans);
}
.service-card__link:hover { gap: 6px; letter-spacing: .02em; }

/* ===== WHY ===== */
.why { background: var(--light); }
.why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,.04);
  transition: var(--trans);
}
.why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow2); }
.why-item__num {
  font-size: 48px;
  font-weight: 900;
  color: rgba(30,111,217,.1);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
}
.why-item h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 10px; }
.why-item p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ===== PARTNERS ===== */
.partners { background: var(--white); }
.partners__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-logo {
  background: var(--white);
  border: 1px solid #e8edf5;
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  transition: var(--trans);
  cursor: default;
}
.partner-logo img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) opacity(.55);
  transition: var(--trans);
}
.partner-logo:hover {
  border-color: var(--accent);
  background: rgba(30,111,217,.04);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.partner-logo:hover img {
  filter: grayscale(0) opacity(1);
}

/* ===== CTA ===== */
.cta {
  background: linear-gradient(135deg, var(--blue) 0%, var(--accent) 100%);
  padding: 72px 0;
}
.cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta__text h2 { font-size: 32px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.cta__text p { color: rgba(255,255,255,.8); font-size: 16px; }

/* ===== CONTACTS ===== */
.contacts { background: var(--light); }
.contacts__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item__icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--accent) 0%, #0a2550 100%);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item__icon svg { width: 20px; height: 20px; }
.contact-item strong { display: block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.contact-item span, .contact-item a { font-size: 16px; color: var(--text); line-height: 1.5; }
.contact-item a:hover { color: var(--accent); }

.contacts__form {
  background: var(--white);
  border-radius: 16px;
  padding: 40px;
  box-shadow: var(--shadow2);
}
.contacts__form h3 { font-size: 22px; font-weight: 700; color: var(--navy); margin-bottom: 28px; }

.form__group { margin-bottom: 16px; }
.form__group input,
.form__group textarea {
  width: 100%;
  background: var(--light);
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  transition: var(--trans);
  outline: none;
  resize: none;
}
.form__group input:focus,
.form__group textarea:focus {
  border-color: var(--accent);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(30,111,217,.08);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: #a0aec0; }

.form__note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); padding: 64px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer__logo { height: 80px; width: auto; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer__left p { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.7; }

.footer__nav, .footer__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer__nav a, .footer__contacts a, .footer__contacts span {
  font-size: 14px;
  color: rgba(255,255,255,.6);
  transition: var(--trans);
}
.footer__nav a:hover, .footer__contacts a:hover { color: var(--white); }

.footer__bottom {
  padding: 20px 0;
}
.footer__bottom span { font-size: 13px; color: rgba(255,255,255,.35); }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.service-card.fade-up:nth-child(2) { transition-delay: .1s; }
.service-card.fade-up:nth-child(3) { transition-delay: .2s; }
.service-card.fade-up:nth-child(4) { transition-delay: .1s; }
.service-card.fade-up:nth-child(5) { transition-delay: .2s; }
.service-card.fade-up:nth-child(6) { transition-delay: .3s; }
.why-item.fade-up:nth-child(2) { transition-delay: .1s; }
.why-item.fade-up:nth-child(3) { transition-delay: .2s; }
.why-item.fade-up:nth-child(4) { transition-delay: .3s; }
.stat-card.fade-up:nth-child(2) { transition-delay: .1s; }
.stat-card.fade-up:nth-child(3) { transition-delay: .2s; }
.stat-card.fade-up:nth-child(4) { transition-delay: .3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: repeat(4, 1fr); }
  .about__inner { gap: 48px; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }

  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy);
    flex-direction: column;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform .35s ease;
    z-index: 99;
  }
  .nav a { font-size: 22px; color: var(--white); }
  .nav--open { transform: translateX(0); }

  .about__inner { grid-template-columns: 1fr; gap: 40px; }
  .about__card--2 { margin-left: 0; }

  .services__grid { grid-template-columns: 1fr; }
  .why__grid { grid-template-columns: 1fr 1fr; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .partners__grid { grid-template-columns: repeat(3, 1fr); }

  .cta__inner { flex-direction: column; text-align: center; }
  .cta__text h2 { font-size: 24px; }

  .contacts__inner { grid-template-columns: 1fr; gap: 48px; }
  .contacts__form { padding: 28px 20px; }

  .footer__inner { grid-template-columns: 1fr; gap: 32px; }

  .hero__title { font-size: 36px; }
  .hero__sub { font-size: 16px; }
}

@media (max-width: 480px) {
  .why__grid { grid-template-columns: 1fr; }
  .partners__grid { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .hero__actions { flex-direction: column; }
  .btn { width: 100%; justify-content: center; }
}
