:root {
  --navy: #061a3a;
  --navy-2: #0b244b;
  --teal: #009b9f;
  --teal-dark: #007b86;
  --ink: #101828;
  --muted: #526174;
  --line: #e6ecf3;
  --soft: #f6f9fc;
  --white: #ffffff;
  --warning: #f59e0b;
  --success: #10b981;
  --shadow: 0 18px 50px rgba(6, 26, 58, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 45%, #ffffff 100%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(230,236,243,0.8);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 1.05rem;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  font-size: 0.82rem;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--navy-2);
  font-weight: 600;
  font-size: 0.95rem;
}
.main-nav a { opacity: 0.9; }
.main-nav a:hover { color: var(--teal-dark); }
.nav-cta {
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff !important;
  background: var(--navy);
  opacity: 1 !important;
}
.menu-toggle { display: none; }

.section-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 74px 24px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 46px;
  align-items: center;
  min-height: 620px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--teal-dark);
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 22px;
  color: var(--navy);
  font-size: clamp(2.5rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}
h2 {
  color: var(--navy);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}
h3 { color: var(--navy); }
.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin: 28px 0 16px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 12px 24px rgba(0, 123, 134, 0.16); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.btn-secondary { color: var(--teal-dark); background: white; border-color: rgba(0, 123, 134, 0.35); }
.btn-wide { width: 100%; }
.microcopy { color: var(--muted); font-size: 0.94rem; }

.hero-visual {
  position: relative;
  min-height: 390px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 70% 10%, rgba(0, 155, 159, 0.13), transparent 35%),
    linear-gradient(145deg, #f8fbff, #edf7fb);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.visual-card {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  box-shadow: 0 16px 35px rgba(6, 26, 58, .10);
}
.visual-card-main {
  left: 10%;
  top: 16%;
  width: 72%;
  height: 56%;
  border-radius: 24px;
  padding: 28px;
}
.visual-bar {
  width: 46%;
  height: 13px;
  border-radius: 999px;
  background: #dce8f2;
  margin-bottom: 38px;
}
.chart-line {
  width: 100%;
  height: 72px;
  background:
    linear-gradient(135deg, transparent 48%, var(--teal) 49% 51%, transparent 52%),
    linear-gradient(70deg, transparent 58%, var(--teal-dark) 59% 61%, transparent 62%);
  border-bottom: 1px solid #dce8f2;
}
.chart-bars { display: flex; align-items: flex-end; gap: 12px; height: 74px; margin-top: 20px; }
.chart-bars span { width: 15%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, #00c3b7, #007b86); }
.chart-bars span:nth-child(1){ height: 35%; }
.chart-bars span:nth-child(2){ height: 58%; }
.chart-bars span:nth-child(3){ height: 48%; }
.chart-bars span:nth-child(4){ height: 82%; }
.visual-card-floating {
  right: 7%;
  bottom: 15%;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 275px;
  padding: 18px;
  border-radius: 20px;
}
.bot-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: var(--navy);
  font-size: 1.35rem;
}
.visual-card-floating span { display: block; color: var(--muted); font-size: .86rem; margin-top: 4px; }
.visual-card-floating em { margin-left: auto; color: var(--teal-dark); font-style: normal; font-weight: 900; }

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading.narrow { max-width: 690px; margin-inline: auto; text-align: center; }
.section-heading p:not(.eyebrow) { color: var(--muted); line-height: 1.7; font-size: 1.05rem; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card,
.diagnostic-card,
.result-card,
.contact-card,
.steps article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 36px rgba(6, 26, 58, 0.06);
}
.service-card { padding: 26px; }
.icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
  border-radius: 16px;
  color: var(--teal-dark);
  background: #e9fbfb;
  font-weight: 900;
  font-size: 1.4rem;
}
.icon.small { width: 40px; height: 40px; margin: 0; font-size: 1.05rem; }
.service-card p,
.steps p { color: var(--muted); line-height: 1.6; }

.diagnostic-section { background: linear-gradient(180deg, transparent, rgba(235, 248, 251, 0.45), transparent); border-radius: 40px; }
.diagnostic-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .78fr);
  gap: 22px;
  align-items: start;
}
.diagnostic-card,
.result-card { padding: 26px; }
.card-heading {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 22px;
}
.card-heading h3 { margin-bottom: 4px; }
.card-heading p { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 16px; color: var(--navy); font-weight: 800; font-size: .9rem; }
input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid #d8e2ec;
  border-radius: 12px;
  background: white;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(0, 155, 159, 0.12); }
textarea { resize: vertical; }
.optional { color: var(--muted); font-weight: 600; }
.privacy-note { margin: 14px 0 0; color: var(--muted); font-size: .86rem; text-align: center; }
.empty-state {
  display: grid;
  place-items: center;
  min-height: 360px;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  border: 1px dashed #cfdae6;
  border-radius: 18px;
  background: #fbfdff;
}
.hidden { display: none !important; }
.result-content { display: grid; gap: 14px; }
.result-item {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fbfdff;
}
.result-item strong { display: block; color: var(--navy); margin-bottom: 6px; }
.result-item p, .result-item ul { margin: 0; color: var(--muted); line-height: 1.55; }
.result-item ul { padding-left: 18px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; }
.badge { display: inline-flex; padding: 7px 9px; border-radius: 999px; background: #e9fbfb; color: var(--teal-dark); font-weight: 800; font-size: .78rem; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps article { padding: 24px; }
.steps strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  color: white;
  background: var(--navy);
  margin-bottom: 18px;
}
.contact-section {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.contact-section p { color: var(--muted); line-height: 1.65; }
.contact-card { padding: 26px; display: grid; gap: 12px; }
.contact-card a:not(.btn) { color: var(--navy); font-weight: 800; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: .9rem;
}
.site-footer span:first-child { color: var(--navy); font-weight: 900; }

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: white;
  }
  .menu-toggle span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--navy); border-radius: 10px; }
  .main-nav {
    position: absolute;
    left: 24px;
    right: 24px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: white;
    box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .hero, .diagnostic-layout, .contact-section { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 48px; }
  .service-grid, .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .site-header { padding: 14px 16px; }
  .section-shell { padding: 50px 16px; }
  .hero-visual { min-height: 260px; }
  .visual-card-floating { width: 230px; right: 4%; }
  .form-grid, .service-grid, .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .btn { width: 100%; }
  .diagnostic-card, .result-card { padding: 18px; }
  .site-footer { flex-direction: column; padding: 22px 16px; }
}
