:root {
  --bg: #f5f8fc;
  --surface: #ffffff;
  --text: #0d1f3a;
  --muted: #5e6d85;
  --primary: #0e2f63;
  --primary-2: #1f5dbb;
  --accent: #2f86ff;
  --border: #dbe5f3;
  --shadow: 0 12px 35px rgba(9, 31, 70, 0.12);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, 92%);
  margin-inline: auto;
}

.section {
  padding: 88px 0;
}

.muted {
  background: #eef4fc;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

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

.logo {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--primary);
}

.site-nav {
  display: flex;
  gap: 26px;
  align-items: center;
}

.site-nav a {
  color: #334b70;
  font-weight: 500;
  transition: color .25s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 1.3rem;
  border-radius: 10px;
  padding: 6px 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 22px rgba(17, 62, 130, 0.33);
}

.btn-outline {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--primary);
}

.hero {
  background: radial-gradient(circle at 70% 20%, #e7f0ff 0%, #f7faff 40%, #f5f8fc 100%);
}

.hero-grid {
  display: grid;
  gap: 36px;
  align-items: center;
  grid-template-columns: 1.15fr .85fr;
}

.eyebrow {
  display: inline-block;
  color: var(--primary-2);
  font-weight: 600;
  margin-bottom: 12px;
}

h1, h2, h3, h4 {
  margin-top: 0;
  line-height: 1.25;
}

h1 {
  font-size: clamp(2rem, 4.2vw, 3.35rem);
  margin-bottom: 16px;
}

.lead {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 60ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.hero-visual .panel {
  background: #fff;
  border: 1px solid #d9e5f8;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.metric {
  background: #f4f8ff;
  border: 1px solid #dbe7fa;
  border-radius: 14px;
  padding: 12px;
}

.metric strong {
  display: block;
  color: var(--primary);
  font-size: 1.05rem;
}

.section-head {
  margin-bottom: 28px;
}

.section-head h2 {
  max-width: 22ch;
}

.card-grid {
  display: grid;
  gap: 18px;
}

.two-cols {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-cols {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature-card,
.contact-card,
.service-card,
.value-card,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(27, 56, 100, .07);
}

.card,
.service-card,
.value-card,
.contact-card {
  padding: 22px;
}

.card ul,
.product-block ul,
.service-card ul {
  margin: 14px 0 18px;
  padding-left: 18px;
  color: var(--muted);
}

.text-link {
  color: var(--primary-2);
  font-weight: 600;
}

.feature-card {
  padding: 18px;
  font-weight: 500;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-tags span {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 500;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 16px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.cta-section {
  padding-top: 64px;
}

.cta-box {
  background: linear-gradient(130deg, #0b2a59, #1a4fa0);
  color: #fff;
  border-radius: 22px;
  padding: 42px;
  box-shadow: var(--shadow);
}

.cta-box h2,
.cta-box p {
  color: #fff;
}

.site-footer {
  margin-top: 62px;
  background: #0a1f40;
  color: #cfdbf3;
}

.footer-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 52px 0 32px;
}

.footer-grid h3,
.footer-grid h4 {
  color: #fff;
  margin-bottom: 10px;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(181, 205, 246, 0.2);
  text-align: center;
  padding: 14px;
  font-size: 0.9rem;
}

.page-hero {
  padding: 74px 0 58px;
  background: linear-gradient(165deg, #f7fbff 0%, #ecf3ff 100%);
}

.page-hero h1 {
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--muted);
  max-width: 68ch;
}

.value-grid,
.service-grid,
.contact-grid,
.product-grid,
.compare-grid {
  display: grid;
  gap: 18px;
}

.value-grid,
.compare-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-grid,
.product-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 8px 24px rgba(13, 44, 95, 0.08);
}

.architecture {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin: 16px 0;
}

.node {
  background: #eaf2ff;
  border: 1px solid #cddcf7;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
}

.arrow {
  color: var(--primary-2);
  font-weight: 700;
}

.contact-grid {
  grid-template-columns: 1.2fr .8fr;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field.full {
  grid-column: 1 / -1;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #cedcf4;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fbfdff;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 134, 255, 0.15);
}

.error {
  color: #bf1f2b;
  font-size: .86rem;
  min-height: 1em;
}

.map-mock {
  min-height: 220px;
  border-radius: 14px;
  margin-top: 18px;
  background: linear-gradient(140deg, #dae8ff, #f2f7ff);
  border: 1px dashed #9ab6e3;
  display: grid;
  place-items: center;
  color: #24529e;
  font-weight: 600;
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: .25s;
  box-shadow: var(--shadow);
}

.back-to-top.show {
  opacity: 1;
  pointer-events: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: .65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .hero-grid,
  .contact-grid,
  .service-grid,
  .product-grid,
  .two-cols,
  .three-cols,
  .value-grid,
  .compare-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .desktop-only {
    display: none;
  }

  .menu-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 79px;
    left: 4%;
    right: 4%;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    background: #fff;
    border: 1px solid var(--border);
    padding: 14px;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 70px 0;
  }

  .cta-box {
    padding: 30px;
  }
}
