:root {
  --navy-950: #081a2d;
  --navy-900: #0b2138;
  --navy-800: #0e2a47;
  --navy-700: #12355b;
  --blue-600: #2563eb;
  --amber-400: #f5a524;
  --amber-500: #e8960f;
  --amber-600: #c97a00;
  --amber-700: #9a5b00;
  --amber-50: #fff7e8;
  --green-700: #15803d;
  --red-700: #b91c1c;

  --ink: #0f172a;
  --ink-muted: #475569;
  --line: #e2e8f0;
  --surface: #ffffff;
  --surface-soft: #f5f7fa;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 10px 30px rgb(15 23 42 / 0.08);

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-height: 68px;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  color-scheme: light;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--navy-800);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.75rem, 1.25rem + 2vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
}

p {
  margin: 0;
}

a {
  color: var(--blue-600);
}

:focus-visible {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

section[id] {
  scroll-margin-top: calc(var(--header-height) + 8px);
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

.container-narrow {
  max-width: 820px;
}

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

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--navy-800);
  color: #fff;
  font-weight: 700;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.button-primary {
  background: var(--amber-400);
  color: var(--navy-800);
}

.button-primary:hover {
  background: var(--amber-500);
}

.button-secondary {
  background: var(--surface);
  border-color: #cbd5e1;
  color: var(--navy-800);
}

.button-secondary:hover {
  border-color: var(--navy-800);
}

.button-large {
  min-height: 54px;
  padding-inline: 26px;
  font-size: 1.05rem;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgb(255 255 255 / 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: inherit;
  text-decoration: none;
}

.brand-name {
  color: var(--navy-800);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-accent {
  color: var(--amber-600);
  font-weight: 700;
}

.site-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--amber-700);
}

.header-call {
  min-height: 44px;
  padding: 10px 12px;
}

.header-call-number {
  display: none;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-800);
  cursor: pointer;
}

.nav-toggle .icon {
  width: 24px;
  height: 24px;
}

/* Mobile menu: a panel under the header, opened by main.js. */
.site-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: block;
}

.site-nav li a {
  display: block;
  padding: 14px var(--gutter);
  border-top: 1px solid var(--line);
}

@media (min-width: 480px) {
  .header-call-number {
    display: inline;
  }

  .header-call {
    padding-inline: 16px;
  }
}

@media (min-width: 960px) {
  .nav-toggle {
    display: none;
  }

  .site-nav {
    position: static;
    display: block;
    background: none;
    border: 0;
    box-shadow: none;
  }

  .site-nav ul {
    display: flex;
    gap: 28px;
  }

  .site-nav li a {
    display: inline;
    padding: 0;
    border: 0;
  }

  .header-inner {
    gap: 32px;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 7vw, 88px);
  background:
    radial-gradient(circle at 85% 15%, rgb(245 165 36 / 0.18), transparent 45%),
    linear-gradient(180deg, var(--amber-50) 0%, var(--surface) 100%);
}

.hero-inner {
  display: grid;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--amber-700);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(1.85rem, 1.2rem + 3.4vw, 3.5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lead {
  max-width: 36rem;
  margin-top: 20px;
  color: var(--ink-muted);
  font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem);
}

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

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: var(--navy-800);
  font-weight: 600;
}

.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-points .icon {
  color: var(--green-700);
}

.hero-art img {
  width: min(100%, 540px);
  height: auto;
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
  }
}

/* ---------- Sections ---------- */

.section {
  padding-block: clamp(56px, 8vw, 104px);
}

.section-soft {
  background: var(--surface-soft);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(28px, 4vw, 44px);
}

.section-lead {
  margin-top: 14px;
  color: var(--ink-muted);
  font-size: 1.08rem;
}

.status-message {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink-muted);
}

.status-message.is-error {
  color: var(--red-700);
}

.fine-print {
  margin-top: 24px;
  color: var(--ink-muted);
  font-size: 0.92rem;
}

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--amber-50);
  color: var(--amber-700);
}

.feature-icon .icon {
  width: 24px;
  height: 24px;
}

.feature p {
  margin-top: 8px;
  color: var(--ink-muted);
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Packages ---------- */

.package-grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 680px) {
  .package-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1180px) {
  .package-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.package-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.package-kicker,
.result-kicker {
  color: var(--amber-700);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.package-title {
  margin-top: 8px;
  font-size: 1.6rem;
  font-weight: 800;
}

.package-tagline {
  margin-top: 6px;
  color: var(--ink-muted);
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.95rem;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-list .icon {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  color: var(--green-700);
}

.package-price {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--navy-800);
}

.price-prefix {
  color: var(--ink-muted);
  font-weight: 600;
}

.price strong {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.price-note {
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.package-card .button {
  margin-top: 18px;
}

/* ---------- Calculator ---------- */

.calculator-card {
  display: grid;
  gap: 32px;
  padding: clamp(20px, 4vw, 40px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
}

@media (min-width: 900px) {
  .calculator-card {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}

.calculator-form {
  display: grid;
  gap: 22px;
  align-content: start;
}

.calculator-form fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.calculator-form legend,
.field > label {
  display: block;
  margin-bottom: 8px;
  padding: 0;
  color: var(--navy-800);
  font-weight: 700;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.segmented legend {
  grid-column: 1 / -1;
}

.segmented label {
  position: relative;
}

.segmented input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.segmented span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-800);
  font-weight: 700;
  text-align: center;
}

.segmented input:checked + span {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: #fff;
}

.segmented input:focus-visible + span {
  outline: 3px solid var(--blue-600);
  outline-offset: 2px;
}

.input-with-unit {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: var(--surface);
}

.input-with-unit:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px rgb(37 99 235 / 0.2);
}

.input-with-unit input {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 10px 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 700;
}

.input-with-unit input:focus {
  outline: none;
}

.input-with-unit input[aria-invalid="true"] {
  color: var(--red-700);
}

.unit {
  padding-right: 14px;
  color: var(--ink-muted);
  font-weight: 600;
  white-space: nowrap;
}

.field-hint {
  margin-top: 6px;
  color: var(--ink-muted);
  font-size: 0.88rem;
}

.field-error {
  margin-top: 6px;
  color: var(--red-700);
  font-size: 0.9rem;
  font-weight: 600;
}

.choice-group {
  display: grid;
  gap: 8px;
}

.choice-group label,
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}

.choice-group input,
.checkbox input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--navy-800);
}

.calculator-output {
  display: grid;
  gap: 16px;
  align-content: start;
}

.result {
  padding: 24px;
  border-radius: 20px;
  background: var(--amber-50);
  border: 1px solid #f6dca8;
}

.result-title {
  margin-top: 6px;
  color: var(--navy-800);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.result .price {
  margin-top: 8px;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid #f0d49b;
}

.result-stats div {
  min-width: 0;
}

.result-stats dt {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.result-stats dd {
  margin: 2px 0 0;
  color: var(--navy-800);
  font-size: 1.1rem;
  font-weight: 800;
}

.result-note {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface);
  color: var(--navy-800);
  font-size: 0.95rem;
}

.result .button {
  width: 100%;
  margin-top: 20px;
}

.assumptions {
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.assumptions summary {
  color: var(--navy-800);
  font-weight: 700;
  cursor: pointer;
}

.assumptions ul {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--ink-muted);
}

/* ---------- Steps ---------- */

.steps {
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

.step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  counter-increment: step;
}

.step::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--navy-800);
  color: #fff;
  font-weight: 800;
}

.step p {
  margin-top: 8px;
  color: var(--ink-muted);
}

/* ---------- FAQ ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: var(--navy-800);
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  flex: none;
  color: var(--amber-700);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  padding: 0 20px 20px;
  color: var(--ink-muted);
}

/* ---------- Contact ---------- */

.section-contact {
  padding-top: 0;
}

.contact-card {
  display: grid;
  gap: 28px;
  padding: clamp(20px, 5vw, 56px);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 0%, rgb(245 165 36 / 0.14), transparent 45%),
    linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: #fff;
}

.contact-card h2 {
  color: #fff;
}

.contact-copy p {
  margin-top: 12px;
  color: #c9d6e6;
  font-size: 1.08rem;
}

.contact-actions {
  display: grid;
  gap: 14px;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.16);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.contact-link:hover {
  background: rgb(255 255 255 / 0.14);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 14px;
  background: var(--amber-400);
  color: var(--navy-800);
}

.contact-icon .icon {
  width: 24px;
  height: 24px;
}

.contact-label {
  display: block;
  color: #c9d6e6;
  font-size: 0.85rem;
}

.contact-value {
  display: block;
  font-size: clamp(0.98rem, 0.85rem + 0.8vw, 1.3rem);
  font-weight: 800;
  overflow-wrap: anywhere;
}

@media (min-width: 900px) {
  .contact-card {
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
  }
}

/* ---------- Footer ---------- */

.site-footer {
  padding-block: 40px;
  background: var(--navy-950);
  color: #c9d6e6;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer .brand-name {
  color: #fff;
}

.site-footer .brand-accent {
  color: var(--amber-400);
}

.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
}

.site-footer a {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--amber-400);
}

.footer-legal {
  color: #8da2bb;
  font-size: 0.85rem;
}

/* ---------- Privacy page ---------- */

.legal-page {
  padding-block: clamp(40px, 6vw, 72px) clamp(56px, 8vw, 96px);
}

.legal-page h1 {
  font-size: clamp(2rem, 1.4rem + 2.4vw, 2.75rem);
  font-weight: 800;
}

.legal-meta {
  margin-top: 8px;
  color: var(--ink-muted);
}

.legal-page h2 {
  margin-top: 36px;
  font-size: 1.3rem;
  font-weight: 800;
}

.legal-page p,
.legal-page ul {
  margin-top: 12px;
}

.legal-page ul {
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 6px;
}

/* ---------- 404 ---------- */

.not-found {
  display: grid;
  align-items: center;
  min-height: 100vh;
  padding-block: 64px;
  background: linear-gradient(180deg, var(--amber-50) 0%, var(--surface) 100%);
}

.not-found h1 {
  margin-top: 40px;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  font-weight: 800;
}

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
