:root {
  --navy: #071B33;
  --navy-2: #0C2745;
  --blue: #1E5F94;
  --blue-soft: #EAF3FA;
  --paper: #F8FAFC;
  --white: #FFFFFF;
  --line: #D7E1EC;
  --text: #1B2633;
  --muted: #526273;
  --gold: #C7A85A;
  --shadow: 0 24px 60px rgba(7, 27, 51, 0.13);
  --shadow-soft: 0 12px 30px rgba(7, 27, 51, 0.08);
  --radius: 10px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(7, 27, 51, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 27, 51, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
}

img { max-width: 100%; }
a { color: inherit; text-decoration: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(30, 95, 148, 0.34);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -90px;
  left: 18px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-weight: 800;
}

.skip-link:focus { top: 18px; }

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

.narrow { max-width: 860px; }

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

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy);
  font-weight: 850;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 9px;
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  box-shadow: 0 10px 18px rgba(7, 27, 51, 0.16);
}

.brand-text { font-size: 1.05rem; letter-spacing: 0; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #2f3f51;
  font-weight: 750;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--navy);
  background: var(--blue-soft);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy);
  font-weight: 850;
  box-shadow: 0 12px 24px rgba(7, 27, 51, 0.16);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 21px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 86px 0 78px;
  background:
    radial-gradient(circle at 72% 18%, rgba(30, 95, 148, 0.16), transparent 30%),
    linear-gradient(135deg, #FFFFFF 0%, #F4F8FC 56%, #EAF3FA 100%);
}

.premium-hero::after,
.method-section::before {
  content: "";
  position: absolute;
  inset: auto 0 0 auto;
  width: 38%;
  height: 70%;
  background: linear-gradient(135deg, transparent 0 48%, rgba(7, 27, 51, 0.035) 48% 52%, transparent 52%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.86fr);
  align-items: center;
  gap: 68px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1, h2, h3, p, li { overflow-wrap: anywhere; }

h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.6rem, 5vw, 4.85rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}

h2 {
  margin: 0 0 14px;
  color: var(--navy);
  font-size: clamp(1.85rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.14rem;
  line-height: 1.28;
}

.hero-subtitle,
.page-hero p,
.section-heading p,
.diagnostic-copy p,
.split p,
.about-copy p,
.problem-text {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-subtitle { max-width: 720px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

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

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  box-shadow: 0 14px 28px rgba(7, 27, 51, 0.22);
}

.btn-secondary {
  color: var(--navy);
  background: var(--white);
  border-color: var(--line);
  box-shadow: var(--shadow-soft);
}

.text-link {
  display: inline-flex;
  align-items: center;
  margin-top: 18px;
  color: var(--blue);
  font-weight: 850;
}

.text-link::after {
  content: "→";
  margin-left: 8px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span,
.software-panel span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(30, 95, 148, 0.18);
  border-radius: 999px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 800;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(215, 225, 236, 0.95);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-visual picture {
  display: block;
  overflow: hidden;
  border-radius: 12px;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(7, 27, 51, 0.04), rgba(7, 27, 51, 0.14));
  pointer-events: none;
}

.hero-visual figcaption {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
  z-index: 1;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.66);
  border-radius: 10px;
  color: var(--navy);
  background: rgba(255, 255, 255, 0.92);
  font-weight: 850;
  box-shadow: var(--shadow-soft);
}

.section {
  position: relative;
  padding: 86px 0;
}

.section-muted,
.page-hero,
.results-section,
.diagnostic-section {
  background: var(--paper);
}

.page-hero {
  padding: 78px 0 68px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.problem-choice-grid,
.result-grid,
.method-grid,
.pricing-grid,
.solution-list,
.footer-grid,
.about-layout,
.contact-layout,
.diagnostic-layout,
.split {
  display: grid;
  gap: 24px;
}

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

.problem-choice,
.result-card,
.method-step,
.price-format,
.solution-block,
.control-panel,
.software-block,
.scope-card,
.commitment-panel,
.contact-card,
.contact-form,
.diagnostic-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(7, 27, 51, 0.03);
}

.problem-choice,
.result-card,
.method-step,
.price-format,
.control-panel,
.software-block,
.scope-card,
.commitment-panel,
.contact-card,
.diagnostic-card {
  padding: 28px;
}

.problem-choice {
  display: flex;
  min-height: 360px;
  flex-direction: column;
}

.problem-choice strong {
  display: block;
  margin-top: auto;
  padding-top: 18px;
  color: var(--navy);
}

.choice-number,
.method-step span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 9px;
  color: var(--white);
  background: var(--navy);
  font-weight: 850;
}

.result-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 34px;
  align-items: start;
}

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

.control-panel {
  border-top: 5px solid var(--gold);
}

.control-panel h3 {
  font-size: 1.35rem;
}

.method-section {
  overflow: hidden;
  background: var(--white);
}

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

.software-block {
  margin-top: 24px;
}

.software-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.diagnostic-layout,
.contact-layout,
.about-layout,
.split {
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: start;
}

.diagnostic-card,
.contact-form {
  display: grid;
  gap: 18px;
  box-shadow: var(--shadow);
}

.diagnostic-result {
  padding: 18px;
  border: 1px solid rgba(30, 95, 148, 0.22);
  border-radius: 10px;
  background: var(--blue-soft);
}

.diagnostic-result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--navy);
}

.solution-list {
  gap: 28px;
}

.solution-block {
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  padding: 32px;
}

.solution-details ul,
.scope-card ul,
.commitment-panel ul,
.contact-card ul {
  display: grid;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 0;
  list-style: none;
}

.solution-details li,
.scope-card li,
.commitment-panel li,
.contact-card li {
  position: relative;
  padding-left: 24px;
  color: var(--muted);
}

.solution-details li::before,
.scope-card li::before,
.commitment-panel li::before,
.contact-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.solution-details strong {
  display: block;
  margin: 18px 0;
  color: var(--navy);
}

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

.price-format {
  border-top: 5px solid var(--blue);
}

.price-format p {
  color: var(--muted);
}

.about-copy p,
.scope-card p,
.contact-card p,
.result-card p,
.method-step p,
.problem-choice p,
.software-block p {
  color: var(--muted);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-wide { grid-column: 1 / -1; }

.contact-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 30px;
}

label {
  color: var(--navy);
  font-weight: 800;
}

input,
textarea,
select {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--text);
  background: #FCFDFE;
  font: inherit;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--blue);
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.privacy-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.contact-line {
  display: grid;
  gap: 4px;
  padding-top: 18px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-line strong {
  color: var(--navy);
}

.contact-line span {
  color: var(--muted);
}

.site-footer {
  color: #DDE8F3;
  background: var(--navy);
}

.footer-grid {
  grid-template-columns: 1.25fr 0.8fr 1fr;
  padding: 48px 0;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  color: var(--navy);
  background: var(--white);
}

.site-footer h2 {
  margin-bottom: 10px;
  color: var(--white);
  font-size: 1rem;
}

.site-footer a,
.site-footer p {
  display: block;
  margin: 7px 0;
  color: #DDE8F3;
}

.footer-bottom {
  padding: 18px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  color: #B8C8D8;
  font-size: 0.92rem;
}

.response-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--paper);
}

.response-card {
  width: min(720px, 100%);
  padding: 36px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.response-card.error {
  border-top-color: #B45353;
}

.response-card.success {
  border-top-color: var(--gold);
}

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

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

@media (max-width: 1024px) {
  .hero-grid,
  .result-layout,
  .diagnostic-layout,
  .contact-layout,
  .about-layout,
  .split,
  .solution-block {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .problem-choice-grid,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .navbar {
    min-height: 68px;
  }

  .nav-toggle {
    display: inline-block;
    order: 3;
  }

  .nav-cta {
    display: none;
  }

  .nav-menu {
    position: absolute;
    left: 14px;
    right: 14px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    width: 100%;
  }

  .hero,
  .page-hero,
  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: 2.22rem;
  }

  h2 {
    font-size: 1.78rem;
  }

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

  .problem-choice-grid,
  .result-grid,
  .method-grid,
  .pricing-grid,
  .contact-form,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .hero-visual figcaption {
    position: static;
    margin-top: 12px;
  }
}

@media (max-width: 380px) {
  .brand-text {
    font-size: 0.98rem;
  }

  .problem-choice,
  .result-card,
  .method-step,
  .price-format,
  .solution-block,
  .control-panel,
  .software-block,
  .scope-card,
  .commitment-panel,
  .contact-card,
  .diagnostic-card,
  .contact-form {
    padding: 22px;
  }
}

@media (min-width: 1440px) {
  .container {
    width: min(1240px, calc(100% - 80px));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

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