:root {
  --bg: #060b12;
  --bg-2: #0a1019;
  --panel: #0f1722;
  --panel-2: #141e2d;
  --panel-3: #192535;
  --text: #f5f8fc;
  --text-soft: #cbd5e1;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --cyan: #17d9ff;
  --cyan-soft: #76eaff;
  --steel: #bfc7d1;
  --line: #243244;
  --line-soft: rgba(191, 199, 209, 0.13);
  --warning: #d6a23a;
  --success: #68d391;
  --danger: #ef7f6a;
  --shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
  --font-title: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
  --header-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #050910 0%, var(--bg) 38%, #08111a 100%),
    var(--bg);
  font-family: var(--font-body);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid var(--line-soft);
  background: rgba(6, 11, 18, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  height: 100%;
}

.brand img {
  width: 150px;
  height: auto;
}

.nav-menu {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--steel);
  font-size: 0.89rem;
  font-weight: 700;
}

.nav-menu a {
  transition: color 170ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cyan-soft);
}

.header-cta,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-weight: 800;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.header-cta {
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid rgba(23, 217, 255, 0.38);
  color: var(--text);
  background: rgba(23, 217, 255, 0.08);
  font-size: 0.86rem;
}

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

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  cursor: pointer;
}

.nav-toggle span {
  width: 18px;
  height: 2px;
  background: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 34px;
  border-bottom: 1px solid var(--line-soft);
  background:
    linear-gradient(90deg, rgba(23, 217, 255, 0.08) 0 1px, transparent 1px 80px),
    linear-gradient(180deg, rgba(23, 217, 255, 0.06) 0 1px, transparent 1px 80px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(430px, 0.97fr);
  align-items: center;
  gap: 42px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: var(--cyan-soft);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-title);
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(2.45rem, 5vw, 4.65rem);
  line-height: 0.99;
}

.hero-claim {
  margin-bottom: 12px;
  color: var(--cyan-soft);
  font-weight: 800;
  line-height: 1.35;
}

.hero-subtitle {
  max-width: 660px;
  margin-bottom: 16px;
  color: var(--text-soft);
  font-size: 1.03rem;
  line-height: 1.58;
}

.hero-line {
  margin-bottom: 24px;
  color: var(--steel);
  font-weight: 800;
}

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

.btn {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
}

.btn-primary {
  color: #041018;
  border-color: var(--cyan);
  background: linear-gradient(180deg, var(--cyan-soft), var(--cyan));
  box-shadow: 0 14px 34px rgba(23, 217, 255, 0.18);
}

.btn-secondary {
  color: var(--text);
  border-color: rgba(191, 199, 209, 0.22);
  background: rgba(15, 23, 34, 0.86);
}

.diagnostic-panel {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(118, 234, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(20, 30, 45, 0.98), rgba(10, 16, 25, 0.98)),
    var(--panel);
  box-shadow: var(--shadow);
}

.diagnostic-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(191, 199, 209, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(191, 199, 209, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.7;
}

.panel-header,
.xray-grid,
.xray-footer {
  position: relative;
  z-index: 1;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.panel-header span,
.xray-label,
.xray-item span,
.xray-map small,
.xray-footer span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-header strong {
  display: block;
  margin-top: 5px;
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.08rem;
}

.risk-badge {
  padding: 6px 9px;
  border: 1px solid rgba(214, 162, 58, 0.38);
  border-radius: 999px;
  color: #f4d58b !important;
  background: rgba(214, 162, 58, 0.08);
}

.xray-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 86px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.xray-column {
  display: grid;
  gap: 8px;
}

.xray-label {
  display: block;
  padding: 0 2px 4px;
  color: var(--cyan-soft);
}

.xray-item {
  min-height: 58px;
  padding: 10px 11px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(6, 11, 18, 0.42);
}

.xray-item.source {
  border-left: 2px solid rgba(214, 162, 58, 0.8);
}

.xray-item.result {
  border-left: 2px solid rgba(23, 217, 255, 0.8);
}

.xray-item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-weight: 900;
  line-height: 1.2;
}

.xray-item span {
  display: block;
  text-transform: none;
  line-height: 1.28;
}

.xray-map {
  display: grid;
  grid-template-rows: 14px 1fr auto 1fr 14px;
  justify-items: center;
  align-items: center;
  min-height: 100%;
  padding-top: 26px;
}

.map-dot {
  width: 11px;
  height: 11px;
  border: 1px solid var(--warning);
  border-radius: 50%;
  background: rgba(214, 162, 58, 0.18);
}

.map-dot.active {
  border-color: var(--cyan);
  background: var(--cyan);
}

.map-line {
  width: 1px;
  height: 100%;
  min-height: 38px;
  background: linear-gradient(180deg, transparent, var(--line), transparent);
}

.xray-map div {
  width: 100%;
  padding: 10px 8px;
  border: 1px solid rgba(23, 217, 255, 0.28);
  border-radius: 6px;
  background: rgba(23, 217, 255, 0.08);
  text-align: center;
}

.xray-map strong {
  display: block;
  color: var(--cyan-soft);
  font-family: var(--font-title);
  font-size: 0.83rem;
}

.xray-map small {
  display: block;
  margin-top: 4px;
  text-transform: none;
  line-height: 1.25;
}

.xray-footer {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.xray-footer span {
  padding: 8px 9px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: rgba(15, 23, 34, 0.78);
  text-align: center;
  text-transform: none;
}

.section {
  padding: 36px 0;
  border-bottom: 1px solid var(--line-soft);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 18px;
}

.section-heading h2 {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--text);
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.12;
}

.compact-grid,
.system-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.info-card,
.system-list article,
.compare-card,
.step,
.fit-list li,
.contact-form,
.diagnosis-note {
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(20, 30, 45, 0.92), rgba(15, 23, 34, 0.92));
}

.info-card,
.system-list article {
  min-height: 136px;
  padding: 16px;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.info-card:hover,
.system-list article:hover,
.fit-list li:hover {
  transform: translateY(-2px);
  border-color: rgba(23, 217, 255, 0.28);
  background: linear-gradient(180deg, rgba(25, 37, 53, 0.98), rgba(15, 23, 34, 0.96));
}

.card-code {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan-soft);
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 800;
}

.info-card h3,
.system-list h3,
.compare-card h3,
.step h3 {
  margin-bottom: 8px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.24;
}

.info-card p,
.system-list p,
.step p,
.diagnosis-copy p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.46;
}

.system-list article {
  position: relative;
  padding-left: 44px;
}

.system-list article::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 12px;
  height: 12px;
  border: 1px solid var(--cyan);
  border-radius: 3px;
  background: rgba(23, 217, 255, 0.08);
}

.comparison-board {
  display: grid;
  grid-template-columns: 1fr 52px 1fr;
  gap: 12px;
  align-items: stretch;
}

.compare-card {
  padding: 18px;
}

.compare-title {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}

.compare-title span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compare-title strong {
  color: var(--text);
  font-family: var(--font-title);
  font-size: 1.05rem;
}

.compare-card ul,
.fit-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.compare-card li,
.fit-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-weight: 700;
}

.compare-card li {
  padding: 8px 0;
}

.compare-card li::before,
.fit-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
}

.current li::before {
  background: var(--warning);
}

.compare-arrow {
  display: grid;
  place-items: center;
  color: var(--cyan);
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 800;
}

.future {
  border-color: rgba(23, 217, 255, 0.32);
}

.process-grid,
.fit-grid,
.diagnosis-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 26px;
  align-items: start;
}

.process-grid .section-heading,
.fit-grid .section-heading,
.diagnosis-grid .section-heading {
  display: block;
  margin-bottom: 0;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.step {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  min-height: 132px;
  padding: 16px;
}

.step > span {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 217, 255, 0.34);
  border-radius: 6px;
  color: var(--cyan-soft);
  background: rgba(23, 217, 255, 0.08);
  font-family: var(--font-title);
  font-weight: 800;
}

.fit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.fit-list li {
  min-height: 58px;
  padding: 13px 14px;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.diagnosis-section {
  padding-bottom: 42px;
}

.diagnosis-copy h2 {
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
  line-height: 1.12;
}

.diagnosis-copy p {
  max-width: 450px;
  color: var(--text-soft);
}

.diagnosis-note {
  display: grid;
  gap: 7px;
  max-width: 440px;
  margin-top: 20px;
  padding: 14px;
}

.diagnosis-note strong {
  color: var(--cyan-soft);
  font-size: 0.86rem;
}

.diagnosis-note span {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.42;
}

.contact-form {
  padding: 18px;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(191, 199, 209, 0.16);
  border-radius: 6px;
  color: var(--text);
  background: rgba(6, 11, 18, 0.56);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

input {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  padding: 12px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted-2);
}

input:focus,
textarea:focus {
  border-color: rgba(23, 217, 255, 0.7);
  background: rgba(6, 11, 18, 0.82);
  box-shadow: 0 0 0 3px rgba(23, 217, 255, 0.12);
}

.form-feedback {
  min-height: 20px;
  margin: 0 0 12px;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 800;
}

.form-submit {
  width: 100%;
  border: 0;
  cursor: pointer;
}

.site-footer {
  padding: 26px 0;
  background: #04070c;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 22px;
  align-items: center;
  color: var(--muted);
}

.footer-brand img {
  width: 136px;
  margin-bottom: 8px;
}

.footer-brand p,
.footer-inner span {
  margin: 0;
  font-size: 0.86rem;
}

.footer-inner nav {
  display: flex;
  gap: 18px;
  color: var(--steel);
  font-size: 0.86rem;
  font-weight: 800;
}

.footer-inner nav a:hover {
  color: var(--cyan-soft);
}

.footer-inner > span {
  justify-self: end;
  text-align: right;
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 460ms ease, transform 460ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 12px 20px 18px;
    border-bottom: 1px solid var(--line-soft);
    background: rgba(6, 11, 18, 0.98);
    transform: translateY(-120%);
    transition: transform 210ms ease;
  }

  .nav-menu.is-open {
    transform: translateY(0);
  }

  .nav-menu a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .header-cta {
    display: none;
  }

  .hero-grid,
  .process-grid,
  .fit-grid,
  .diagnosis-grid {
    grid-template-columns: 1fr;
  }

  .diagnostic-panel {
    max-width: 760px;
  }

  .section-heading {
    display: block;
  }

  .compact-grid,
  .system-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .comparison-board {
    grid-template-columns: 1fr;
  }

  .compare-arrow {
    min-height: 34px;
    transform: rotate(90deg);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner > span {
    justify-self: start;
    text-align: left;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 64px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand img {
    width: 132px;
  }

  .hero {
    padding: 38px 0 30px;
  }

  h1 {
    font-size: 2.42rem;
  }

  .hero-subtitle {
    font-size: 0.96rem;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .section {
    padding: 30px 0;
  }

  .compact-grid,
  .system-list,
  .steps,
  .fit-list,
  .form-grid,
  .xray-grid,
  .xray-footer {
    grid-template-columns: 1fr;
  }

  .info-card,
  .system-list article,
  .step {
    min-height: auto;
  }

  .diagnostic-panel,
  .contact-form {
    padding: 14px;
  }

  .xray-map {
    grid-template-columns: 14px 1fr minmax(110px, auto) 1fr 14px;
    grid-template-rows: auto;
    min-height: auto;
    padding: 2px 0;
  }

  .map-line {
    width: 100%;
    height: 1px;
    min-height: 1px;
  }

  .compare-title {
    display: grid;
  }

  .footer-inner nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }
}
