:root {
  --bg: #07172d;
  --bg-soft: #0d2342;
  --surface: #ffffff;
  --surface-alt: #f4f7fb;
  --text: #12223a;
  --muted: #5e7089;
  --primary: #1f6fff;
  --primary-dark: #0e56d8;
  --line: rgba(16, 42, 76, 0.1);
  --shadow: 0 20px 50px rgba(9, 29, 56, 0.12);
  --radius: 22px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(var(--container), calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 23, 45, 0.82);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #45b9ff, #1f6fff);
  box-shadow: 0 10px 24px rgba(31,111,255,0.35);
}
.brand-text { font-size: 1rem; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.nav-menu a:hover { color: #fff; }
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.7rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #49b7ff);
  color: #fff;
  box-shadow: 0 16px 34px rgba(31,111,255,0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-dark), #2ca2f2); }
.btn-secondary {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(69, 185, 255, 0.2), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(31, 111, 255, 0.24), transparent 26%),
    linear-gradient(180deg, #08182f 0%, #0c2445 100%);
  color: #fff;
  padding: 72px 0 54px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.4), transparent 85%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 46px;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  color: #dbe8ff;
  font-size: 0.86rem;
  font-weight: 700;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 4.35rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.hero p {
  max-width: 640px;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.hero-badges span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  color: #d9e8ff;
  font-size: 0.92rem;
}
.hero-visual {
  position: relative;
}
.hero-glow {
  position: absolute;
  inset: auto 10% 3% 10%;
  height: 80%;
  background: radial-gradient(circle, rgba(80,170,255,0.28), transparent 58%);
  filter: blur(30px);
}
.hero-visual img {
  position: relative;
  border-radius: 28px;
  box-shadow: 0 35px 70px rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.12);
}

.stats {
  margin-top: -18px;
  position: relative;
  z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.stat-card {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 24px;
  text-align: center;
}
.stat-card strong {
  display: block;
  font-size: 2rem;
  color: #113975;
}
.stat-card span { color: var(--muted); }

.section { padding: 84px 0; }
.section-dark {
  background: linear-gradient(180deg, #0a1f3a 0%, #0d2b4e 100%);
  color: #fff;
}
.section-head {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.9rem, 3vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
}
.section-head p { margin: 0; color: var(--muted); }
.section-head-light p,
.section-head-light .eyebrow,
.section-dark .section-head p { color: rgba(255,255,255,0.8); }
.section-dark .eyebrow { background: rgba(255,255,255,0.08); }

.cards-grid {
  display: grid;
  gap: 22px;
}
.expertise-grid { grid-template-columns: repeat(4, 1fr); }
.info-card,
.project-card,
.reason-card {
  border-radius: var(--radius);
}
.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  padding: 24px;
}
.card-illustration {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}
.info-card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.info-card p { margin: 0; color: var(--muted); }

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.reason-card {
  padding: 24px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
}
.reason-card h3 { margin-top: 0; }
.reason-card p { margin-bottom: 0; color: rgba(255,255,255,0.82); }

.project-grid { grid-template-columns: repeat(4, 1fr); }
.project-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.project-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #eaf2ff;
}
.project-body { padding: 20px; }
.project-body h3 { margin: 0 0 8px; }
.project-body p { margin: 0 0 14px; color: var(--muted); }
.text-link {
  color: var(--primary);
  font-weight: 700;
}

.technologies-section {
  background: linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}
.tech-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.tech-list span {
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(10, 37, 72, 0.06);
  font-weight: 600;
  color: #18407f;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.partner-logo {
  min-height: 88px;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 20px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-weight: 800;
  color: #23457d;
}

.contact-section {
  background: linear-gradient(180deg, #08182f 0%, #0d2546 100%);
  color: #fff;
}
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: start;
}
.contact-grid p { color: rgba(255,255,255,0.82); }
.contact-points {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: rgba(255,255,255,0.88);
}
.contact-points li + li { margin-top: 10px; }
.contact-form {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(12px);
  border-radius: 26px;
  padding: 24px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 14px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.92);
  color: var(--text);
  border-radius: 16px;
  padding: 15px 16px;
  font: inherit;
}
.contact-form textarea {
  min-height: 150px;
  resize: vertical;
  margin-bottom: 14px;
}

.site-footer {
  background: #061325;
  color: rgba(255,255,255,0.78);
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.footer-content p { margin: 0; }

@media (max-width: 1100px) {
  .hero-grid,
  .contact-grid,
  .expertise-grid,
  .project-grid,
  .reasons-grid,
  .partners-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: absolute;
    top: 78px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border-radius: 22px;
    background: rgba(8, 24, 47, 0.98);
    border: 1px solid rgba(255,255,255,0.08);
  }
  .nav-menu.open { display: flex; }
  .nav-cta { width: 100%; }

  .hero-grid,
  .contact-grid,
  .expertise-grid,
  .project-grid,
  .reasons-grid,
  .partners-grid,
  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero { padding-top: 48px; }
  .section { padding: 68px 0; }
  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }
}
