:root {
  --bg: #f5f6f4;
  --surface: #ffffff;
  --text: #1c2024;
  --muted: #606873;
  --line: #dfe4e2;
  --accent: #d92727;
  --accent-dark: #a91616;
  --ink: #111418;
  --steel: #27313d;
  --yellow: #f2c94c;
  --radius: 8px;
  --shadow: 0 18px 45px rgba(18, 28, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 10px clamp(16px, 4vw, 56px);
  background: rgba(245, 246, 244, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 58px;
  padding: 4px 0;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 54px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav a {
  min-height: 42px;
  padding: 10px 14px;
  color: var(--steel);
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
}

.site-nav a:hover {
  background: #e9eeec;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  border-radius: var(--radius);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 11px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.menu-button span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  --spot-x: 70%;
  --spot-y: 44%;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(40px, 7vw, 90px) clamp(16px, 5vw, 72px);
  background:
    radial-gradient(circle at var(--spot-x) var(--spot-y), rgba(242, 201, 76, 0.42), transparent 220px),
    linear-gradient(105deg, rgba(17, 20, 24, 0.95) 0%, rgba(32, 39, 47, 0.88) 52%, rgba(217, 39, 39, 0.68) 100%),
    url("assets/optimized/service-electric.jpg") center right / cover no-repeat;
  color: #ffffff;
  overflow: hidden;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(38px, 6vw, 62px);
  line-height: 1;
  letter-spacing: 0;
}

.brand-highlight {
  color: var(--yellow);
}

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

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

.hero-text {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
}

.button.primary {
  background: var(--accent);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button.secondary {
  background: #ffffff;
  color: var(--ink);
}

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

.hero-facts div {
  padding-top: 16px;
  border-top: 2px solid rgba(255, 255, 255, 0.22);
}

.hero-facts dt {
  font-size: 26px;
  font-weight: 950;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.hero-media {
  --car-x: 0;
  --car-y: 0;
  --car-r: 0;
  position: relative;
  align-self: end;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.34));
  transform: translate3d(calc(var(--car-x) * 1px), calc(var(--car-y) * 1px), 0) rotate(calc(var(--car-r) * 1deg));
  transition: transform 260ms ease, filter 260ms ease;
  will-change: transform;
}

.hero-media:hover {
  filter: drop-shadow(0 36px 42px rgba(242, 201, 76, 0.28));
}

.hero-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 0;
  border-radius: 0;
}

.hero-media::before {
  position: absolute;
  left: 8%;
  right: 4%;
  bottom: 1%;
  z-index: 1;
  content: "";
  height: 18%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.48), transparent 68%);
  transform: translateY(18px);
}

.hero-badge {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 950;
  text-transform: uppercase;
  background: var(--yellow);
  border: 2px solid rgba(17, 20, 24, 0.9);
  border-radius: var(--radius);
  box-shadow: 5px 5px 0 rgba(217, 39, 39, 0.9);
  pointer-events: none;
}

.badge-top {
  top: 7%;
  right: 8%;
}

.badge-bottom {
  left: 4%;
  bottom: 12%;
}

.quick-request {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin: -42px clamp(16px, 5vw, 72px) 0;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-request strong {
  display: block;
  margin-bottom: 6px;
  font-size: 22px;
}

.quick-request span,
.lead-form span {
  color: var(--muted);
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) 150px 190px;
  gap: 12px;
  align-items: end;
}

.lead-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 800;
}

.lead-form input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  background: #f7f8f7;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.form-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.captcha-field input {
  text-align: center;
}

.form-status {
  grid-column: 1 / -1;
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.form-status.is-success {
  color: #157347;
}

.form-status.is-error {
  color: var(--accent);
}

.section {
  padding: clamp(58px, 8vw, 104px) clamp(16px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-heading p:not(.eyebrow),
.split-section p,
.corporate-strip p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
}

.services-grid,
.advantages-grid,
.diagnostics-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card,
.advantages-grid div,
.diagnostics-grid article,
.team-grid article {
  min-height: 190px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.service-card {
  position: relative;
  overflow: hidden;
  min-height: 230px;
  color: #ffffff;
  isolation: isolate;
  cursor: pointer;
  transform: translateY(0);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card::before,
.service-card::after {
  position: absolute;
  inset: 0;
  content: "";
  transition: transform 320ms ease, opacity 220ms ease;
}

.service-card::before {
  z-index: -2;
  background: var(--service-bg) center / cover no-repeat;
  transform: scale(1.03);
}

.service-card::after {
  z-index: -1;
  background:
    radial-gradient(circle at var(--card-x, 80%) var(--card-y, 10%), rgba(242, 201, 76, 0.34), transparent 180px),
    linear-gradient(180deg, rgba(17, 20, 24, 0.38), rgba(17, 20, 24, 0.92));
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(242, 201, 76, 0.85);
  box-shadow: 0 24px 58px rgba(17, 20, 24, 0.26);
  outline: none;
  transform: translateY(-7px);
}

.service-card:hover::before,
.service-card:focus-visible::before {
  transform: scale(1.12);
}

.service-card h3 {
  max-width: 94%;
  color: #ffffff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.42);
}

.service-card p {
  color: rgba(255, 255, 255, 0.82);
}

.service-card h3::after {
  display: block;
  width: 44px;
  height: 4px;
  margin-top: 13px;
  content: "";
  background: var(--yellow);
  border-radius: 999px;
  transition: width 220ms ease;
}

.service-card:hover h3::after,
.service-card:focus-visible h3::after {
  width: 96px;
}

.service-card::selection {
  background: var(--yellow);
  color: var(--ink);
}

.service-to {
  --service-bg: url("assets/optimized/service-to.jpg");
}

.service-engine {
  --service-bg: url("assets/optimized/service-engine.jpg");
}

.service-cooling {
  --service-bg: url("assets/optimized/service-cooling.jpg");
}

.service-gearbox {
  --service-bg: url("assets/optimized/service-gearbox.jpg");
}

.service-ac {
  --service-bg: url("assets/optimized/service-ac.jpg");
}

.service-body {
  --service-bg: url("assets/optimized/service-body.jpg");
}

.service-electric {
  --service-bg: url("assets/optimized/service-electric.jpg");
}

.service-lights {
  --service-bg: url("assets/optimized/service-lights.jpg");
}

.service-tires {
  --service-bg: url("assets/optimized/service-tires.jpg");
}

.advantages-grid p,
.diagnostics-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.diagnostics-section {
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.96) 0%, rgba(17, 20, 24, 0.9) 50%, rgba(17, 20, 24, 0.68) 100%),
    url("assets/optimized/diagnostics-bg.jpg") center right / cover no-repeat;
  color: #ffffff;
}

.diagnostics-section .section-heading p:not(.eyebrow),
.diagnostics-grid p {
  color: rgba(255, 255, 255, 0.72);
}

.diagnostics-grid article {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none;
}

.diagnostics-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 950;
  border-radius: 50%;
}

.center-button {
  margin-top: 28px;
}

.split-section {
  display: block;
  background: #ffffff;
}

.split-section > div {
  max-width: 860px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 24px 0 28px;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--steel);
  font-weight: 700;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  content: "✓";
  color: var(--accent);
  font-weight: 950;
}

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

.avito-button {
  gap: 10px;
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.avito-button:hover {
  background: #f7f8f7;
  border-color: rgba(17, 20, 24, 0.16);
}

.avito-button img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 6px;
}

.map-button {
  gap: 10px;
  background: #ffffff;
  color: var(--ink);
  border-color: var(--line);
}

.map-button:hover {
  background: #f7f8f7;
  border-color: rgba(17, 20, 24, 0.16);
}

.map-button img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.corporate-strip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  padding: clamp(46px, 6vw, 76px) clamp(16px, 5vw, 72px);
  background: var(--accent);
  color: #ffffff;
}

.corporate-strip .eyebrow {
  color: var(--yellow);
}

.corporate-strip h2 {
  margin-bottom: 10px;
}

.corporate-strip p {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
}

.process-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--ink);
  color: #ffffff;
}

.process-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
  font-size: 18px;
}

.process-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(217, 39, 39, 0.35), rgba(242, 201, 76, 0.18)),
    #20262d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.process-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-section {
  background:
    linear-gradient(180deg, rgba(245, 246, 244, 0.92), rgba(245, 246, 244, 0.98)),
    url("assets/optimized/process-bg.jpg") center / cover no-repeat;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.team-grid article {
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.team-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  background: #f0f1ef;
}

.team-grid strong {
  display: block;
  padding: 14px 16px 16px;
  font-size: 18px;
}

.advantages-section {
  background: #eef1ef;
}

.advantages-grid div {
  min-height: 150px;
}

.advantages-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 18px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1.05fr);
  gap: clamp(24px, 5vw, 70px);
  background: var(--ink);
  color: #ffffff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.contact-address {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.88);
  font-style: normal;
  font-size: 18px;
  font-weight: 800;
}

.contact-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #ffffff;
}

.contact-icon img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.contact-text {
  display: grid;
  gap: 4px;
}

.contact-link > span:not(.contact-icon),
.contact-text span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
}

.contact-link strong {
  font-size: 20px;
  overflow-wrap: anywhere;
}



.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.4fr auto;
  align-items: center;
  gap: 16px;
  padding: 26px clamp(16px, 5vw, 72px);
  background: #ffffff;
  color: var(--muted);
}

.site-footer a {
  font-weight: 800;
  text-decoration: none;
}

.footer-brand {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 950;
}

.footer-info {
  display: grid;
  gap: 4px;
}

.footer-top {
  color: var(--steel);
}

@media (max-width: 920px) {
  .hero,
  .contact-section,
  .quick-request,
  .corporate-strip,
  .process-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-media {
    max-width: 520px;
  }

  .services-grid,
  .advantages-grid,
  .diagnostics-grid,
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .lead-form {
    grid-template-columns: 1fr;
  }
}

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

  .menu-button {
    display: block;
  }

  .header-phone {
    display: none;
  }

  .site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 76px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .site-header.is-open .site-nav {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
  }

  .hero {
    padding-top: 34px;
    background:
      linear-gradient(180deg, rgba(17, 20, 24, 0.96), rgba(34, 39, 45, 0.92)),
      url("assets/optimized/service-electric.jpg") center bottom / cover no-repeat;
  }

  .hero-media {
    display: none;
  }

  h1 {
    font-size: 40px;
  }

  .hero-text,
  .section-heading p:not(.eyebrow),
  .split-section p,
  .contact-copy p {
    font-size: 16px;
  }

  .hero-actions,
  .hero-actions .button,
  .parts-actions,
  .parts-actions .button,
  .button.primary,
  .button.secondary {
    width: 100%;
  }

  .hero-facts,
  .services-grid,
  .advantages-grid,
  .diagnostics-grid,
  .team-grid,
  .contact-actions {
    grid-template-columns: 1fr;
  }

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

  .quick-request {
    margin: -28px 16px 0;
    padding: 18px;
  }

  .service-card,
  .advantages-grid div,
  .diagnostics-grid article,
  .team-grid article {
    min-height: auto;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
