:root {
  --red: #d61d22;
  --red-dark: #b8181c;
  --ink: #161b20;
  --muted: #5d6165;
  --bg: #fdfdfd;
  --soft: #f6f5f4;
  --card: #fafafa;
  --line: #e3e1de;
  --footer: #181e23;
  --footer-text: #f5f5f5;
  --shadow: 0 6px 30px rgba(20, 20, 20, 0.08);
  --max: 1152px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

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

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

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

.wrap {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
}

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

.logo { line-height: 1; flex: 0 0 auto; }

.logo-name {
  display: block;
  color: var(--red);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.logo-sub {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 13px;
}

.nav a {
  color: var(--muted);
  padding: 8px 0;
}

.nav a:hover,
.nav a.is-active { color: var(--ink); }

.nav a.is-active {
  font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--ink);
}

.menu-item { position: relative; }

.menu-item > a { display: inline-flex; align-items: center; gap: 4px; }

.submenu {
  display: none;
  position: absolute;
  top: calc(100% - 2px);
  left: -16px;
  min-width: 280px;
  padding: 8px 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.menu-item:hover .submenu,
.menu-item:focus-within .submenu { display: block; }

.submenu a {
  display: block;
  padding: 8px 16px;
  color: var(--ink);
}

.submenu a:hover { background: var(--soft); color: var(--red); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 24px;
}

.phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  height: 48px;
  padding: 0 28px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.btn:hover { background: var(--red-dark); }

.btn-sm {
  height: 44px;
  padding: 0 20px;
  gap: 8px;
  font-size: 12px;
}

.btn-light {
  background: #fff;
  color: var(--red);
}

.btn-light:hover { background: #fff5f5; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 440px;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.hero-media img {
  width: 70%;
  height: 100%;
  margin-left: auto;
  object-fit: cover;
  object-position: center;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #fdfdfd 0%, #fdfdfd 30%, rgba(253, 253, 253, 0.95) 40%, rgba(253, 253, 253, 0) 64%);
}

.photo-note {
  position: absolute;
  right: 12px;
  bottom: 48px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(253, 253, 253, 0.85);
  color: var(--muted);
  font-size: 10px;
}

.hero-copy {
  padding: 64px 0 96px;
}

.hero h1 {
  max-width: 540px;
  margin: 0;
  font-size: 46px;
  font-weight: 800;
  line-height: 1.16;
}

.hero p {
  max-width: 460px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.hero .btn { margin-top: 28px; }

.estimate {
  position: relative;
  z-index: 2;
  margin-top: -32px;
}

.estimate-card {
  padding: 24px;
  border: 1px solid rgba(227, 225, 222, 0.7);
  border-radius: 6px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.estimate-card h2 {
  margin: 0 0 20px;
  font-size: 20px;
}

.estimate-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  align-items: end;
}

.estimate-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: end;
}

.estimate-bottom > .field,
.estimate-bottom > .estimate-actions {
  flex: 1 1 calc(50% - 8px);
  min-width: min(100%, 460px);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.field input,
.field select {
  height: 44px;
  padding: 0 12px;
}

.field textarea {
  min-height: 96px;
  padding: 12px;
  resize: none;
  overflow: hidden;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid rgba(214, 29, 34, 0.25);
  border-color: var(--red);
}

.estimate-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.estimate-actions .btn-telegram,
.estimate-actions .btn-telegram:hover { background: #2aabee; color: #fff; }
.estimate-actions .btn-telegram:hover { background: #1a96d4; }
.estimate-actions .btn-viber,
.estimate-actions .btn-viber:hover { background: #7360f2; color: #fff; }
.estimate-actions .btn-viber:hover { background: #5b48d6; }

.section { padding: 56px 0 24px; }

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.section-head h2,
.about h2,
.steps h2 {
  margin: 0;
  font-size: 28px;
}

.section-head p { margin: 0; color: var(--muted); font-size: 14px; }

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px 24px;
  margin-top: 36px;
}

.service {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: start;
}

.icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fde8e8;
  color: var(--red);
}

.service h3 { margin: 6px 0 8px; font-size: 16px; }

.service p,
.fleet-copy p,
.step p,
.about p,
.faq p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.fleet {
  margin-top: 28px;
  padding: 40px 0;
  background: var(--soft);
}

.fleet-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fleet-controls p { margin: 0; }

.fleet-nav { display: flex; gap: 8px; }

.fleet-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.fleet-btn:hover { border-color: var(--red); color: var(--red); }

.fleet-btn:disabled {
  opacity: 0.35;
  cursor: default;
  color: var(--ink);
  border-color: var(--line);
}

.fleet-carousel {
  display: flex;
  gap: 24px;
  margin-top: 28px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.fleet-carousel::-webkit-scrollbar { display: none; }

.fleet-carousel:focus { outline: none; }

.fleet-carousel .vehicle {
  flex: 0 0 calc(50% - 12px);
  min-width: 0;
  scroll-snap-align: start;
}

.fleet-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.fleet-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #d5d3d0;
  cursor: pointer;
}

.fleet-dots button.is-active { background: var(--red); }

.vehicle {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border-radius: 6px;
  background: var(--card);
}

.vehicle img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
}

.vehicle img.show-front { object-position: left center; }

.vehicle figure { position: relative; margin: 0; }

.vehicle figcaption {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(253, 253, 253, 0.9);
  color: var(--muted);
  font-size: 10px;
}

.fleet-copy { padding: 24px; }

.fleet-copy h3 { margin: 0; font-size: 18px; }

.fleet-copy p { margin-top: 12px; }

.meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.meta:first-of-type { margin-top: 20px; }

.steps-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: start;
  margin-top: 32px;
}

.step {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 14px;
}

.num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fde8e8;
  color: var(--red);
  font-weight: 700;
}

.step h3 { margin: 4px 0 6px; font-size: 16px; }

.arrow {
  align-self: center;
  color: #c8c6c3;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
}

.about p + p,
.faq p { margin-top: 14px; }

.about a { color: var(--red); text-decoration: underline; }

.service h3 a:hover,
.fleet-copy h3 a:hover { color: var(--red); }

.story { padding-top: 20px; }

.footer-brand .logo-sub { color: rgba(245, 245, 245, 0.7); }

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

.faq details + details { margin-top: 12px; }

.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
}

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

.faq summary::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
}

.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }

.q {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fde8e8;
  color: var(--red);
  font-size: 14px;
}

.faq details p { padding: 0 16px 16px 56px; }

.cta {
  background: var(--red);
  color: #fff;
}

.cta-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 0;
}

.cta h2 { margin: 0 0 8px; font-size: 28px; }

.cta p { margin: 0; font-size: 14px; }

.site-footer {
  background: var(--footer);
  color: var(--footer-text);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1fr;
  gap: 32px;
  padding: 48px 0 36px;
}

.site-footer h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.footer-brand .logo-name { font-size: 22px; }

.footer-brand p,
.site-footer a,
.site-footer li {
  color: rgba(245, 245, 245, 0.78);
  font-size: 14px;
  line-height: 1.6;
}

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

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

.site-footer li + li { margin-top: 8px; }

.fb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
}

.contact-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.legal {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(245, 245, 245, 0.55);
  font-size: 12px;
}

.mobile-panel { display: none; }

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

  .menu-toggle { display: inline-grid; place-items: center; }

  .header-bar { min-height: 76px; }

  .mobile-panel.is-open {
    display: block;
    padding: 8px 24px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
  }

  .mobile-panel a {
    display: block;
    padding: 10px 0;
    color: var(--ink);
    font-weight: 500;
  }

  .hero { min-height: 0; }

  .hero-media { position: relative; height: 240px; }

  .hero-media img { width: 100%; }

  .hero-wash {
    background: linear-gradient(180deg, rgba(253, 253, 253, 0) 55%, #fdfdfd 100%);
  }

  .photo-note { bottom: 12px; }

  .hero-copy { padding: 8px 0 28px; }

  .hero h1 { font-size: 34px; }

  .estimate { margin-top: 0; }

  .estimate-grid,
  .services,
  .steps-row,
  .split,
  .footer-grid,
  .vehicle { grid-template-columns: 1fr; }

  .fleet-carousel .vehicle { flex-basis: 100%; }

  .fleet-controls { flex-wrap: wrap; }

  .arrow { display: none; }

  .cta-bar,
  .legal { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 32px)); }

  .estimate-card { padding: 16px; }
}
