:root {
  --bg: #f6f9fb;
  --surface: #ffffff;
  --surface-strong: #eef5f8;
  --ink: #172331;
  --muted: #5b6978;
  --line: #dbe6ee;
  --blue: #1767d8;
  --blue-dark: #0f4f9f;
  --green: #1f9d6a;
  --amber: #f2b84b;
  --shadow: 0 18px 45px rgba(28, 54, 80, 0.14);
  --radius: 8px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(23, 103, 216, 0.36);
  outline-offset: 3px;
}

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

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

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  width: 52px;
  height: 52px;
  display: block;
  flex: 0 0 auto;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-text small {
  color: var(--muted);
  font-weight: 600;
  margin-top: 3px;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
}

.main-nav a {
  padding: 10px 12px;
  color: #2f3c48;
  border-radius: 6px;
  font-weight: 650;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--blue-dark);
  background: #edf5ff;
}

.header-phone {
  margin-left: 8px;
  padding: 10px 14px;
  color: #fff;
  background: var(--green);
  border-radius: var(--radius);
  font-weight: 800;
  white-space: nowrap;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 620px;
  display: grid;
  align-items: stretch;
  background-image:
    linear-gradient(90deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.92) 44%, rgba(247, 250, 252, 0.3) 100%),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  z-index: -1;
  background: linear-gradient(180deg, rgba(246, 249, 251, 0), var(--bg));
}

.hero-grid {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
  align-items: center;
  gap: 34px;
  padding: 46px 0 58px;
}

.hero-copy {
  max-width: 760px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  padding: 8px 10px;
  color: #0d4631;
  background: #e7f7ef;
  border: 1px solid #bfe8d3;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 5vw, 60px);
}

h2 {
  font-size: clamp(28px, 3vw, 42px);
}

h3 {
  font-size: 21px;
}

.hero-copy p {
  max-width: 720px;
  margin: 18px 0 0;
  color: #394756;
  font-size: clamp(18px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.phone-large {
  display: inline-flex;
  align-items: center;
  min-height: 58px;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(23, 103, 216, 0.22);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.btn:hover,
.phone-large:hover,
.header-phone:hover {
  filter: brightness(0.96);
}

.btn.secondary {
  color: var(--blue-dark);
  background: #fff;
  border-color: var(--line);
}

.btn.full {
  width: 100%;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 720px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.hero-facts li {
  padding: 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(219, 230, 238, 0.9);
  border-radius: var(--radius);
  font-weight: 750;
}

.lead-form {
  align-self: center;
  padding: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(219, 230, 238, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.lead-form h2 {
  font-size: 25px;
  margin-bottom: 6px;
}

.lead-form p {
  margin: 0 0 16px;
  color: var(--muted);
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.field span {
  color: #354352;
  font-size: 14px;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #cfdce6;
  border-radius: 6px;
}

.field textarea {
  min-height: 84px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
}

.form-status {
  min-height: 20px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.form-status[data-type="success"] {
  color: #137a50;
}

.form-status[data-type="warning"] {
  color: #a05c00;
}

.form-status[data-type="error"] {
  color: #b42318;
}

.lead-form button:disabled {
  cursor: progress;
  opacity: 0.72;
}

.band {
  padding: 68px 0;
}

.band.white {
  background: #fff;
}

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

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

.section-head p {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

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

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

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

.service-card,
.info-card,
.review-card,
.vehicle-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.service-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eef2;
}

.story-section + .story-section {
  padding-top: 0;
}

.story-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 34px;
}

.story-section.reverse .story-copy {
  order: 2;
}

.story-copy {
  max-width: 560px;
}

.story-copy p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.story-media {
  margin: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 14px 34px rgba(28, 54, 80, 0.1);
}

.story-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e8eef2;
}

.card-body {
  padding: 18px;
}

.price {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 6px 9px;
  color: #0d4631;
  background: #e7f7ef;
  border-radius: 6px;
  font-weight: 850;
}

.service-card p,
.info-card p,
.review-card p,
.vehicle-card p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.mini-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 11px;
  color: var(--blue-dark);
  background: #eef6ff;
  border-radius: 6px;
  font-weight: 800;
}

.process {
  counter-reset: step;
}

.process .info-card {
  padding: 22px;
}

.process .info-card::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 14px;
  color: #fff;
  background: var(--blue);
  border-radius: 6px;
  font-weight: 900;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature-list strong {
  display: block;
  margin-bottom: 7px;
  font-size: 18px;
}

.feature-list span {
  color: var(--muted);
}

.link-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.link-cloud a {
  padding: 10px 12px;
  color: #24475f;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 750;
}

.service-map {
  border-top: 1px solid var(--line);
}

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

details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

summary {
  position: relative;
  padding: 18px 48px 18px 18px;
  cursor: pointer;
  font-weight: 850;
  list-style: none;
}

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

summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue);
  font-size: 24px;
  font-weight: 700;
}

details[open] summary::after {
  content: "-";
}

.faq-content {
  padding: 0 18px 18px;
  color: var(--muted);
}

.faq-content p {
  margin: 0 0 12px;
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.vehicle-card {
  padding: 22px;
}

.vehicle-specs {
  display: grid;
  gap: 7px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
  color: #334252;
}

.vehicle-specs strong {
  color: var(--ink);
}

.review-card {
  padding: 22px;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: #334252;
  font-weight: 800;
}

.stars {
  color: #ba7a00;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.contact-panel {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-list {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list a {
  color: var(--blue-dark);
  font-weight: 850;
}

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

.map-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.map-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
}

.map-card-head h3 {
  margin: 0;
}

.map-frame {
  display: block;
  width: 100%;
  height: 330px;
  border: 0;
  background: #e8eef2;
}

.site-footer {
  padding: 42px 0;
  color: #dce8f2;
  background: #172331;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 24px;
}

.site-footer a {
  color: #fff;
}

.site-footer p {
  margin: 8px 0 0;
  color: #b9c8d7;
}

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

.copyright {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #b9c8d7;
  font-size: 14px;
}

@media (max-width: 1040px) {
  .grid.cards-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

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

  .story-section.reverse .story-copy {
    order: 0;
  }
}

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

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

  .main-nav {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 16px 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 36px rgba(20, 35, 50, 0.12);
  }

  body.nav-open .main-nav {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .header-phone {
    display: none;
  }

  .hero {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(247, 250, 252, 0.98) 0%, rgba(247, 250, 252, 0.88) 55%, rgba(247, 250, 252, 0.46) 100%),
      var(--hero-image);
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 38px 0 46px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .section-head,
  .contact-grid,
  .map-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    display: grid;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 16px, var(--container));
  }

  .brand {
    gap: 8px;
  }

  .brand-mark {
    width: 46px;
    height: 46px;
  }

  .brand-text small {
    display: none;
  }

  h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 18px;
  }

  .phone-large {
    width: 100%;
    justify-content: center;
    font-size: 26px;
  }

  .btn.secondary {
    width: 100%;
  }

  .grid.cards-3,
  .grid.cards-4,
  .feature-list {
    grid-template-columns: 1fr;
  }

  .band {
    padding: 48px 0;
  }

  .lead-form {
    padding: 16px;
  }

  .card-actions {
    display: grid;
  }

  .map-frame {
    height: 280px;
  }
}
