:root {
  --bg: #0b0c0e;
  --bg-alt: #131518;
  --card: #1a1d21;
  --border: #26292e;
  --text: #eceef0;
  --text-dim: #9aa0a8;
  --accent: #e2231a;
  --accent-blue: #1c69d4;
  --accent-green: #1b7a4d;
  --m-blue: #1c69d4;
  --m-purple: #4b2e83;
  --radius: 10px;
  --maxw: 1180px;
  font-size: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: "Rajdhani", Inter, sans-serif; font-weight: 700; letter-spacing: 0.01em; margin: 0 0 12px; }
h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: 0.005em; }
h3 { font-size: 20px; }
p { color: var(--text-dim); margin: 0 0 14px; }

.m-stripe {
  display: inline-flex;
  width: 46px;
  height: 17px;
  background: url('../assets/img/brands/bmw-m.svg') no-repeat center / contain;
  margin-bottom: 18px;
}
.m-stripe span { display: none; }

.eyebrow-row { display: flex; align-items: center; gap: clamp(8px, 1.2vw, 14px); margin-bottom: 14px; }
.eyebrow-row .eyebrow-icon { width: clamp(20px, 2.6vw, 34px); height: auto; flex-shrink: 0; }
.eyebrow {
  color: var(--accent-blue);
  text-transform: uppercase;
  font-size: clamp(15px, 1.8vw, 19px);
  letter-spacing: 0.12em;
  font-weight: 700;
  display: block;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(11,12,14,0.82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.scrolled { border-bottom-color: var(--border); }
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: "Rajdhani", sans-serif;
  font-weight: 700;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .m-stripe { margin-bottom: 0; }
.logo small:not(.logo-rating) { display: block; font-size: 11px; font-weight: 400; color: var(--text-dim); letter-spacing: 0.08em; }
.logo-rating { display: none; }
.logo-rating .stars { color: #ffb020; letter-spacing: 1px; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 15px; color: var(--text-dim); transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { font-weight: 600; font-size: 16px; white-space: nowrap; }
.header-actions .header-call { display: none; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  appearance: none;
  transition: transform 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #ff2c34; }
.btn-outline { border-color: rgba(255,255,255,0.4); color: var(--text); background: rgba(255,255,255,0.05); }
.btn-outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.1); }
.btn-wa { background: #25d366; color: #06210f; }
.btn-tg { background: #2aabee; color: #06202f; }
.btn-sm { padding: 8px 16px; font-size: 13px; }

.burger { display: none; background: none; border: none; color: var(--text); font-size: 26px; cursor: pointer; }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 60px 0 0 0;
  background: var(--bg);
  z-index: 99;
  display: none;
  flex-direction: column;
  padding: 24px 20px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
  font-size: 18px;
}
.mobile-menu .btn { margin-top: 20px; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 140px 0 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,12,14,0.55) 0%, rgba(11,12,14,0.55) 40%, rgba(11,12,14,0.97) 96%), url('../assets/img/hero-engine.jpg') center 30%/cover no-repeat;
}
.hero-content { position: relative; z-index: 2; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 100px;
  font-size: 13px;
  margin-bottom: 22px;
}
.hero-badge .stars { color: #ffb020; letter-spacing: 1px; }
.hero h1 {
  font-size: clamp(34px, 6vw, 64px);
  max-width: 820px;
  line-height: 1.05;
  margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero h1.brand-list { display: flex; flex-direction: column; gap: 10px; }
.hero h1 .lead-line {
  display: block;
  font-size: clamp(34px, 6vw, 64px);
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.hero h1 .brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(24px, 3.6vw, 38px);
  line-height: 1.15;
}
.hero h1 .brand-icon {
  width: 1.6em;
  height: 1.6em;
  flex-shrink: 0;
  border-radius: 22%;
  border: 2px solid rgba(255,255,255,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.14em;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
}
.hero h1 .brand-icon img { width: 100%; height: 100%; object-fit: contain; }
.hero .lead { font-size: 18px; max-width: 560px; margin-bottom: 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 42px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: "Rajdhani", sans-serif; font-size: 30px; }
.hero-stats div span { font-size: 13px; color: var(--text-dim); }

/* Sections */
section { padding: 90px 0; border-top: 1px solid var(--border); scroll-margin-top: 96px; }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Brands strip */
.brands-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.brands-strip .container { display: flex; align-items: center; justify-content: center; gap: 48px; flex-wrap: wrap; color: var(--text-dim); font-family: "Rajdhani", sans-serif; font-weight: 700; font-size: 20px; letter-spacing: 0.06em; }

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.service-card {
  background: var(--bg-alt);
  padding: 30px 26px;
  transition: background 0.15s;
}
.service-card:hover { background: var(--card); }
.service-card .icon { display: block; margin-bottom: 16px; color: var(--accent-blue); }
.service-card .icon svg { width: 28px; height: 28px; }
.service-card h3 { margin-bottom: 8px; }
.service-card p { margin: 0; font-size: 14px; }

/* Specialization split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split img { border-radius: var(--radius); }
.care-video {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
@media (min-width: 901px) {
  .split-img-left img { order: -1; }
}
.feature-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 15px; }
.feature-list li::before { content: "—"; color: var(--accent-green); font-weight: 700; }

/* Gallery */
.gallery-tabs { display: flex; gap: 10px; margin-bottom: 28px; flex-wrap: wrap; }
.gallery-tabs button {
  background: none; border: 1px solid var(--border); color: var(--text-dim);
  padding: 8px 16px; border-radius: 100px; font-size: 13px; cursor: pointer; transition: 0.15s;
}
.gallery-tabs button.active, .gallery-tabs button:hover { border-color: var(--accent-blue); color: var(--text); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 10px;
}
.gallery-grid figure {
  margin: 0; position: relative; overflow: hidden; border-radius: 8px; cursor: pointer;
}
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s; }
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid figure.tall { grid-row: span 2; }

/* Reviews */
.reviews-banner {
  display: flex;
  align-items: center;
  gap: 30px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 40px;
  flex-wrap: wrap;
}
.reviews-score { text-align: center; }
.reviews-score strong { font-family: "Rajdhani", sans-serif; font-size: 56px; line-height: 1; display: block; }
.reviews-score .stars { color: #ffb020; letter-spacing: 2px; font-size: 18px; }
.reviews-banner .rb-text { flex: 1; min-width: 240px; }
.reviews-banner .rb-text p { margin: 0; }

/* Review carousel */
.review-carousel { margin-top: 40px; }
.review-slides { position: relative; min-height: 300px; }
.review-page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.review-page.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
}
.review-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-family: "Rajdhani", sans-serif; font-size: 17px;
  flex-shrink: 0;
}
.review-name { font-weight: 600; font-size: 14px; }
.review-level { font-size: 12px; color: var(--text-dim); }
.review-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.review-stars { color: #ffb020; letter-spacing: 1px; font-size: 13px; }
.review-date { font-size: 12px; color: var(--text-dim); }
.review-text { color: var(--text); font-size: 14px; line-height: 1.55; margin: 0 0 14px; flex: 1; }
.review-source { font-size: 11px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-top: auto; }
.review-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
.review-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.review-dots span.active { background: var(--accent-blue); transform: scale(1.25); }
@media (max-width: 900px) {
  .review-page { grid-template-columns: 1fr; position: static; opacity: 1; transform: none; display: none; }
  .review-page.active { display: grid; }
  .review-slides { min-height: 0; }
}

/* Contacts */
.contacts-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px;
}
.contact-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.contact-row:last-child { border-bottom: none; }
.contact-row .ic { font-size: 20px; width: 26px; flex-shrink: 0; }
.contact-row .lbl { font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-row .val { font-size: 16px; font-weight: 600; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours-table td { padding: 5px 0; font-size: 14px; color: var(--text-dim); }
.hours-table td:last-child { text-align: right; color: var(--text); font-weight: 600; }
.hours-table tr.today td { color: var(--accent); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); min-height: 420px; }
.map-wrap iframe { width: 100%; height: 100%; min-height: 420px; border: 0; }

/* CTA band */
.cta-band {
  border-top: 1px solid var(--border);
  padding: 60px 0;
  text-align: center;
  background: linear-gradient(180deg, var(--bg), var(--bg-alt));
}
.cta-band h2 { margin-bottom: 8px; }
.cta-band .btn-row { display: flex; justify-content: center; gap: 14px; margin-top: 26px; flex-wrap: wrap; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; }
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-row .fine { font-size: 13px; color: var(--text-dim); }
.footer-socials { display: flex; gap: 16px; }

@media (max-width: 900px) {
  .nav-links, .header-actions .phone-link, .header-actions .btn-outline { display: none; }
  .burger { display: block; }
  .split { grid-template-columns: 1fr; gap: 30px; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .contacts-grid { grid-template-columns: 1fr; }
  .reviews-banner { justify-content: center; text-align: center; }
  .site-header .container { height: 60px; }
  .logo { font-size: 15px; gap: 8px; white-space: nowrap; }
  .logo small:not(.logo-rating) { display: none; }
  .m-stripe { width: 34px; height: 13px; }
  .header-actions { gap: 8px; }
  .header-actions .header-wa { display: none; }
  .header-actions .header-call { display: inline-flex; padding: 7px 12px; font-size: 12px; }
  .logo-rating { display: block; font-size: 10px; color: var(--text-dim); letter-spacing: 0.02em; margin-top: 1px; }
  .hero-badge { display: none; }
  .mobile-menu { inset: 60px 0 0 0; }
}
@media (max-width: 560px) {
  .services-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .hero { padding-top: 96px; }
  .hero-stats { gap: 22px; }
}

/* Request modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal-box {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 440px; width: 100%; padding: 32px 28px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 14px; right: 14px;
  background: none; border: none; color: var(--text-dim);
  font-size: 20px; line-height: 1; cursor: pointer; padding: 4px;
}
.modal-close:hover { color: var(--text); }
.modal-box h3 { font-size: 26px; margin-bottom: 6px; }
.modal-sub { font-size: 14px; margin-bottom: 22px; }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.field input[type="text"], .field input[type="tel"] {
  width: 100%; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 6px;
  padding: 11px 12px; color: var(--text); font-size: 15px; font-family: inherit;
}
.field input:focus { outline: none; border-color: var(--accent-blue); }
.field-radio-row { margin-bottom: 18px; }
.field-radio-row > span { display: block; font-size: 12px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.radio-group { display: flex; flex-wrap: wrap; gap: 12px 20px; }
.radio-group label { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text); cursor: pointer; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; font-size: 13px; color: var(--text-dim); cursor: pointer; }
.consent-row a { color: var(--accent-blue); text-decoration: underline; }
.consent-row input { margin-top: 3px; flex-shrink: 0; }
.modal-thanks p { color: var(--text); margin-bottom: 20px; }
