:root {
  --navy: #071a33;
  --blue: #0b376d;
  --ink: #102033;
  --muted: #64748b;
  --line: #d9e2ed;
  --soft: #f3f7fb;
  --white: #ffffff;
  --accent: #20b486;
  --accent-dark: #12805d;
  --amber: #f4b740;
  --shadow: 0 24px 70px rgba(7, 26, 51, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Roboto, Montserrat, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  letter-spacing: 0;
}

body.menu-open {
  overflow: hidden;
}

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

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 12px max(16px, calc((100vw - 1160px) / 2));
  color: var(--white);
  background: rgba(7, 26, 51, 0.78);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #71d4ff);
  color: var(--navy);
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

.nav {
  display: flex;
  gap: 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.nav a:hover,
.header-phone:hover {
  color: var(--accent);
}

.header-phone {
  color: var(--white);
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 118px 0 64px;
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image:
    linear-gradient(90deg, rgba(7, 26, 51, 0.9), rgba(7, 26, 51, 0.55)),
    url("https://images.unsplash.com/photo-1502877338535-766e1452684a?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-overlay {
  background:
    radial-gradient(circle at 22% 24%, rgba(32, 180, 134, 0.24), transparent 30%),
    linear-gradient(180deg, transparent 70%, rgba(7, 26, 51, 0.95));
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.25;
}

.hero-text {
  max-width: 640px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 14px 22px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.button-primary {
  background: linear-gradient(180deg, #36d59d, var(--accent));
  color: #052018;
  box-shadow: 0 16px 36px rgba(32, 180, 134, 0.35);
}

.button-primary:hover {
  background: linear-gradient(180deg, #57e3b2, #24bf8e);
}

.button-soft {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-row {
  margin-top: 22px;
}

.contact-row a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.86);
}

.lead-card,
.final-form,
.quiz-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.lead-card {
  padding: 26px;
}

.lead-card h2 {
  font-size: 28px;
}

.lead-card p {
  color: var(--muted);
  line-height: 1.55;
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
  color: #27384d;
  font-size: 14px;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 13px 14px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(32, 180, 134, 0.15);
}

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  line-height: 1.4;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
}

.section {
  padding: 88px 0;
}

.muted {
  background: var(--soft);
}

.trust-strip {
  padding: 26px 0;
  background: #edf5f3;
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.strip-grid div {
  padding: 18px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #dce9e6;
}

.strip-grid strong,
.strip-grid span {
  display: block;
}

.strip-grid span {
  margin-top: 5px;
  color: var(--muted);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head p:not(.eyebrow),
.quiz-copy p,
.final-grid > div p {
  color: var(--muted);
  line-height: 1.7;
}

.cards {
  display: grid;
  gap: 18px;
}

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

.card,
.service-card,
.steps article,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

.card {
  padding: 24px;
}

.card p,
.service-card p,
.steps p,
.faq-list p {
  color: var(--muted);
  line-height: 1.65;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  border-radius: 12px;
  background: #e6f7f1;
  color: var(--accent-dark);
  font-weight: 900;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}

.quiz-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.quiz-card {
  padding: 28px;
  border-color: var(--line);
}

.quiz-progress {
  display: grid;
  gap: 10px;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.quiz-progress div {
  height: 8px;
  border-radius: 999px;
  background: #e6edf5;
  overflow: hidden;
}

.quiz-progress i {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), #65c7ff);
  transition: width 0.25s ease;
}

.quiz-options {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.quiz-option {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 700;
}

.quiz-option:hover,
.quiz-option.active {
  border-color: var(--accent);
  background: #effbf7;
}

.quiz-nav {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.quiz-card .button-soft {
  color: var(--ink);
  background: #eef4fa;
  border-color: var(--line);
}

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

.service-card {
  min-height: 220px;
  padding: 26px;
}

.service-card.featured {
  border-color: rgba(32, 180, 134, 0.45);
  background: linear-gradient(180deg, #ffffff, #effbf7);
}

.service-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--amber);
  color: #422c00;
  font-size: 13px;
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  gap: 36px;
}

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

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

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

.faq-list p {
  margin: 14px 0 0;
}

.final-cta {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 26, 51, 0.94), rgba(11, 55, 109, 0.78)),
    url("https://images.unsplash.com/photo-1449965408869-eaa3f722e40d?auto=format&fit=crop&w=1600&q=82") center/cover;
}

.final-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.final-grid > div p {
  color: rgba(255, 255, 255, 0.78);
}

.final-form {
  padding: 26px;
}

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

.form-grid label:last-child {
  grid-column: 1 / -1;
}

.form-status {
  min-height: 22px;
  margin: 12px 0 0;
  color: var(--accent-dark);
  font-weight: 800;
}

.form-status.error {
  color: #b42318;
}

.site-footer {
  padding: 42px 0 88px;
  background: #061324;
  color: rgba(255, 255, 255, 0.74);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
}

.footer-grid strong {
  color: #fff;
}

.footer-grid p {
  max-width: 620px;
  margin: 10px 0 0;
  line-height: 1.6;
}

.footer-grid .company-details {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-links a:hover {
  color: var(--accent);
}

.sticky-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #052018;
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(32, 180, 134, 0.38);
}

.legal-page {
  padding: 120px 0 70px;
  background: var(--soft);
}

.legal-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  line-height: 1.75;
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .hero-grid,
  .quiz-layout,
  .final-grid,
  .faq-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .site-header {
    min-height: 64px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 98px;
  }

  .hero-actions .button,
  .lead-card .button,
  .final-form .button {
    width: 100%;
  }

  .strip-grid,
  .benefits-grid,
  .steps,
  .service-grid,
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 62px 0;
  }

  .lead-card,
  .quiz-card,
  .final-form,
  .legal-card {
    padding: 22px;
  }

  .sticky-contact {
    display: inline-flex;
  }
}
