:root {
  --bg: #f7fafc;
  --surface: #ffffff;
  --surface-muted: #eef3f7;
  --text: #1e293b;
  --text-muted: #5b6b7a;
  --line: #dce6ee;
  --blue: #2563eb;
  --cyan: #2dd4bf;
  --violet: #6366f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(220, 230, 238, 0.25) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(220, 230, 238, 0.25) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: -3;
}

#tech-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -2;
  transform: translate3d(var(--bg-shift-x, 0px), var(--bg-shift-y, 0px), 0);
  transition: transform 0.2s ease-out;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(247, 250, 252, 0.72);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.burger span {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-contacts {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-contacts > a:not(.btn) {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.2);
}

.nav-contacts .btn-primary {
  color: #fff;
}

.btn-ghost {
  color: var(--blue);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.btn-sm {
  padding: 10px 14px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  padding: 84px 0 56px;
}

.kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.15);
  color: #245492;
  font-weight: 600;
  font-size: 14px;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(34px, 5vw, 54px);
  line-height: 1.08;
}

.lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
}

.cta-row {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-badges {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.hero-badges article,
.glass-card,
.card,
.contact-card,
.map,
.timeline div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
}

.hero-badges article {
  padding: 14px;
}

.hero-badges h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

.hero-badges p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.glass-card {
  min-height: 320px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 10%, rgba(45, 212, 191, 0.22), transparent 40%),
    radial-gradient(circle at 90% 90%, rgba(99, 102, 241, 0.22), transparent 45%),
    rgba(255, 255, 255, 0.76);
  box-shadow: 0 20px 50px rgba(22, 35, 56, 0.06);
}

.section {
  padding: 54px 0;
}

.section h2 {
  margin: 0 0 20px;
  font-size: clamp(27px, 3vw, 38px);
}

.section p {
  margin: 0 0 16px;
  line-height: 1.75;
  color: var(--text-muted);
}

.grid {
  display: grid;
  gap: 14px;
}

.cards {
  grid-template-columns: repeat(3, 1fr);
}

.services {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  padding: 20px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
  transform: translateY(-3px);
  border-color: #bdd5ea;
  box-shadow: 0 12px 28px rgba(30, 41, 59, 0.06);
}

.card h3 {
  margin: 0 0 10px;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.timeline div {
  padding: 16px;
}

.timeline span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-muted);
  align-items: center;
  justify-content: center;
  color: var(--blue);
  font-weight: 700;
}

.timeline p {
  margin: 14px 0 0;
}

.contacts-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 14px;
}

.contact-card {
  padding: 22px;
}

.requisites {
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.requisites p {
  margin: 0 0 8px;
  line-height: 1.55;
}

.map {
  width: 100%;
  min-height: 360px;
}

.footer {
  margin-top: 30px;
  border-top: 1px solid var(--line);
  background: #edf4fb;
}

.footer .container {
  padding: 30px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .nav {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(30, 41, 59, 0.1);
  }

  .header.nav-open .nav {
    display: flex;
  }

  .burger {
    display: inline-flex;
  }

  .header.nav-open .burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .header.nav-open .burger span:nth-child(2) {
    opacity: 0;
  }

  .header.nav-open .burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-contacts > a:not(.btn) {
    display: none;
  }

  .hero,
  .contacts-wrap,
  .cards,
  .services,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-badges {
    grid-template-columns: 1fr;
  }
}
