:root {
  --page: #f6f8f5;
  --text: #17202c;
  --muted: #637083;
  --line: rgba(23, 32, 44, 0.12);
  --white: #ffffff;
  --green: #216b58;
  --green-dark: #123f35;
  --blue: #244d7a;
  --amber: #d9902f;
  --ink: #111820;
  --shadow: 0 22px 58px rgba(18, 30, 42, 0.13);
  --wrap: min(1168px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(90deg, rgba(23, 32, 44, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(23, 32, 44, 0.05) 1px, transparent 1px),
    var(--page);
  background-size: 58px 58px;
}

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

button,
input,
textarea {
  font: inherit;
}

.wrap {
  width: var(--wrap);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 245, 0.9);
  backdrop-filter: blur(16px);
}

.topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

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

.brand-icon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border-radius: 8px;
  background: center / cover no-repeat url("favicon.svg");
}

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

.brand strong {
  font-size: 16px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.desktop-nav,
.topbar-contact,
.mobile-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.desktop-nav a,
.messenger-link {
  padding: 9px 10px;
  border-radius: 8px;
  color: #364557;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a:hover,
.messenger-link:hover {
  background: rgba(33, 107, 88, 0.1);
  color: var(--green-dark);
}

.phone-link {
  font-weight: 800;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 999px;
  background: var(--ink);
}

.mobile-menu {
  width: var(--wrap);
  margin: 0 auto 12px;
  padding: 12px;
  flex-direction: column;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.mobile-menu[hidden] {
  display: none !important;
}

.mobile-menu a {
  padding: 12px;
  font-weight: 800;
}

.hero-section {
  padding: clamp(42px, 7vw, 92px) 0 48px;
}

.hero-layout,
.cost-layout,
.route-layout,
.questions-layout,
.lead-layout {
  display: grid;
  gap: clamp(20px, 4vw, 44px);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(340px, 0.88fr);
  align-items: stretch;
}

.hero-copy,
.diagnostic-panel,
.cost-item,
.car-card,
.route-step,
.trust-item,
.faq-item,
.lead-copy,
.lead-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(28px, 5vw, 52px);
}

.label {
  margin: 0 0 14px;
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

.hero-text {
  max-width: 690px;
  margin-bottom: 28px;
  color: #4e5b6d;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
}

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

.primary-btn,
.ghost-btn,
.dark-btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 22px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: var(--green-dark);
  box-shadow: 0 16px 34px rgba(18, 63, 53, 0.22);
}

.ghost-btn {
  color: var(--green-dark);
  border-color: rgba(33, 107, 88, 0.25);
  background: #fff;
}

.dark-btn {
  width: 100%;
  color: #fff;
  background: var(--ink);
}

.primary-btn:hover,
.ghost-btn:hover,
.dark-btn:hover {
  transform: translateY(-1px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 34px 0 0;
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbf8;
}

.hero-metrics dt {
  font-size: 24px;
  font-weight: 800;
}

.hero-metrics dd {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.4;
}

.diagnostic-panel {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 4vw, 34px);
  color: #fff;
  background:
    linear-gradient(180deg, rgba(17, 24, 32, 0.2), rgba(17, 24, 32, 0.9)),
    url("assets/img/toyota-rav4.jpg") center / cover;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.diagnostic-panel h2 {
  margin: auto 0 18px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.5;
}

.section {
  padding: clamp(58px, 8vw, 92px) 0;
}

.section-title {
  max-width: 790px;
}

.section-title h2,
.lead-copy h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.4vw, 52px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-title p:not(.label),
.lead-copy p {
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.cost-strip {
  padding: 48px 0;
  background: #fff;
  border-block: 1px solid var(--line);
}

.cost-layout {
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  align-items: start;
}

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

.cost-item {
  min-height: 190px;
  padding: 22px;
  box-shadow: none;
}

.cost-item span,
.car-body span,
.route-step b {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cost-item h3,
.route-step h3,
.trust-item h3 {
  margin: 34px 0 10px;
  font-size: 22px;
}

.cost-item p,
.route-step p,
.trust-item p,
.faq-item p,
.car-body p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.58;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.car-card {
  overflow: hidden;
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.car-card:hover {
  transform: translateY(-3px);
  border-color: rgba(33, 107, 88, 0.35);
  box-shadow: var(--shadow);
}

.car-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  background: #dde4e0;
}

.car-body {
  display: grid;
  gap: 9px;
  padding: 18px;
}

.car-body h3 {
  margin: 0;
  font-size: 22px;
}

.car-body strong {
  margin-top: 6px;
  font-size: 25px;
}

.car-body small {
  color: var(--green);
  font-weight: 800;
}

.route-section {
  background: #edf2ef;
}

.route-layout {
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1.28fr);
}

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

.route-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 22px;
  box-shadow: none;
}

.route-step b {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 77, 122, 0.22);
  border-radius: 8px;
  background: #fff;
}

.route-step h3 {
  margin-top: 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.trust-item {
  min-height: 210px;
  padding: 24px;
  box-shadow: none;
}

.trust-item h3 {
  margin-top: 44px;
}

.questions-layout {
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
}

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

.faq-item {
  padding: 22px;
  box-shadow: none;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 18px;
  font-weight: 800;
}

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

.faq-item p {
  margin-top: 14px;
}

.lead-section {
  padding-bottom: 96px;
}

.lead-layout {
  grid-template-columns: minmax(280px, 0.82fr) minmax(340px, 1.18fr);
  align-items: start;
}

.lead-copy,
.lead-form {
  padding: clamp(24px, 4vw, 34px);
}

.contact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.contact-list a {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--green-dark);
  font-weight: 800;
}

.lead-form {
  display: grid;
  gap: 16px;
}

.lead-form label:not(.agree-line) {
  display: grid;
  gap: 8px;
}

.lead-form label span {
  color: #344154;
  font-size: 14px;
  font-weight: 800;
}

.lead-form input,
.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--text);
  background: #fbfcfd;
  outline: none;
  resize: vertical;
}

.lead-form input:focus,
.lead-form textarea:focus {
  border-color: rgba(33, 107, 88, 0.62);
  box-shadow: 0 0 0 4px rgba(33, 107, 88, 0.12);
}

.agree-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.agree-line input {
  width: 18px;
  height: 18px;
}

.form-submit {
  width: 100%;
}

.form-state {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.form-state.is-error {
  color: #b93820;
}

.form-state.is-success {
  color: var(--green-dark);
}

.footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

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

.footer p {
  margin: 0;
  color: var(--muted);
}

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

.reveal-delay {
  transition-delay: 0.1s;
}

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

@media (max-width: 1080px) {
  .desktop-nav,
  .topbar-contact {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-layout,
  .cost-layout,
  .route-layout,
  .questions-layout,
  .lead-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .topbar-inner {
    min-height: 68px;
  }

  .hero-section {
    padding-top: 34px;
  }

  .hero-copy,
  .diagnostic-panel,
  .lead-copy,
  .lead-form {
    padding: 22px;
  }

  h1 {
    font-size: clamp(34px, 11vw, 48px);
  }

  .hero-metrics,
  .cost-grid,
  .car-grid,
  .trust-grid {
    grid-template-columns: 1fr;
  }

  .route-step {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 24px 0;
  }
}
