:root {
  --ink: #111820;
  --muted: #5b6872;
  --panel: #ffffff;
  --paper: #eef1ec;
  --cream: #fbf8f1;
  --line: #d9d6cc;
  --dark: #071923;
  --green: #0a7c4a;
  --red: #b52a2f;
  --steel: #63717c;
  --gold: #d6a739;
  --shadow: 0 24px 65px rgba(17, 24, 32, .16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--cream);
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(251, 248, 241, .94);
  border-bottom: 1px solid rgba(17, 24, 32, .08);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 950; }
.brand span {
  width: 36px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--red));
  font-size: 11px;
}
.topbar nav { display: flex; align-items: center; gap: 24px; font-size: 14px; font-weight: 850; color: #35434e; }
.actions { display: flex; align-items: center; gap: 8px; }
.lang, .call-mini {
  border: 1px solid var(--line);
  background: #fff;
  min-width: 42px;
  height: 36px;
  padding: 0 13px;
  border-radius: 7px;
  font-weight: 950;
  color: var(--ink);
}
.call-mini { display: inline-grid; place-items: center; color: #fff; background: var(--dark); border-color: var(--dark); }

.hero {
  min-height: calc(100svh - 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 590px);
  align-items: center;
  gap: clamp(32px, 6vw, 92px);
  padding: clamp(52px, 8vw, 116px) clamp(22px, 5vw, 74px);
  background:
    linear-gradient(100deg, rgba(251,248,241,.98), rgba(251,248,241,.78)),
    radial-gradient(circle at 80% 25%, rgba(10,124,74,.13), transparent 28%),
    var(--cream);
}
.hero-copy { max-width: 800px; }
.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 12px;
  font-weight: 950;
  color: var(--red);
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(43px, 6vw, 88px);
  line-height: .94;
  letter-spacing: 0;
}
.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #3f4d58;
  font-size: 17px;
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.primary, .secondary {
  min-height: 46px;
  display: inline-grid;
  place-items: center;
  padding: 0 22px;
  border-radius: 7px;
  font-weight: 950;
  border: 1px solid var(--dark);
  text-align: center;
}
.primary { background: var(--dark); color: #fff; }
.secondary { background: #fff; color: var(--ink); border-color: var(--line); }
.metric-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.metric-row div {
  width: 126px;
  min-height: 82px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.metric-row strong { color: var(--green); font-size: 25px; line-height: 1; }
.metric-row span { color: var(--muted); font-size: 12px; font-weight: 850; }

.hero-media {
  position: relative;
  min-height: 540px;
}
.photo {
  position: absolute;
  object-fit: cover;
  border: 7px solid #fff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.photo.workshop { width: 86%; right: 0; top: 74px; aspect-ratio: 4/3; }
.photo.diagnostic { width: 58%; left: 0; bottom: 36px; aspect-ratio: 4/3; }
.photo.tire { width: 44%; left: 9%; top: 0; aspect-ratio: 4/3; }

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--dark);
  color: #fff;
}
.quick-strip a, .quick-strip div {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px clamp(18px, 3vw, 42px);
  border-right: 1px solid rgba(255,255,255,.09);
}
.quick-strip span { color: var(--gold); font-size: 12px; font-weight: 950; }
.quick-strip strong { font-size: 16px; }

.section, .proof-section, .contact { padding: clamp(62px, 8vw, 112px) clamp(22px, 5vw, 74px); }
.modules { background: var(--paper); }
.section-head { max-width: 920px; margin-bottom: 28px; }
.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 60px);
  line-height: 1;
  letter-spacing: 0;
}
.mode-grid {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 24px;
}
.tabs { display: grid; gap: 10px; align-content: start; }
.tab {
  min-height: 58px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  color: var(--ink);
  background: #fff;
  font-weight: 950;
  cursor: pointer;
}
.tab.active { color: #fff; border-color: var(--green); background: var(--green); }
.panel {
  min-height: 206px;
  display: grid;
  align-content: end;
  padding: 28px;
  color: #fff;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7,25,35,.93), rgba(7,25,35,.56)),
    url("images/image_05.jpg") center/cover;
}
.panel p { margin: 0; max-width: 720px; line-height: 1.55; }
.panel p:first-child { color: var(--gold); font-weight: 950; }
.panel h3 { margin: 8px 0 12px; font-size: 26px; line-height: 1.1; }
.service-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.service-cards article {
  min-height: 208px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.service-cards span { color: var(--red); font-weight: 950; }
.service-cards h3 { margin: 26px 0 12px; }
.service-cards p { margin: 0; color: var(--muted); line-height: 1.6; }

.proof-section { background: var(--cream); }
.gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  align-items: stretch;
}
.gallery-main { position: relative; margin: 0; min-height: 620px; border-radius: 8px; overflow: hidden; background: #fff; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main figcaption {
  position: absolute;
  left: 18px;
  bottom: 18px;
  max-width: calc(100% - 36px);
  padding: 10px 13px;
  color: #fff;
  background: rgba(7,25,35,.88);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 950;
}
.thumbs { display: grid; gap: 14px; grid-template-rows: repeat(6, 1fr); }
.thumb {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  cursor: pointer;
}
.thumb.active { border-color: var(--red); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }

.contact {
  background:
    linear-gradient(90deg, rgba(251,248,241,.95), rgba(251,248,241,.84)),
    url("images/image_01.jpg") center/cover fixed;
}
.contact-card {
  max-width: 1060px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 30px;
  align-items: center;
  padding: clamp(28px, 5vw, 44px);
  background: rgba(255,255,255,.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.contact-card h2 { margin: 0 0 12px; font-size: clamp(34px, 4vw, 56px); line-height: 1; }
.contact-card p:not(.eyebrow) { margin: 0; color: var(--muted); line-height: 1.65; }
.contact-actions { display: grid; gap: 10px; }
.source { max-width: 1060px; margin: 28px 0 0; color: #33414c; font-size: 13px; line-height: 1.6; }

.sticky {
  position: fixed;
  left: 14px;
  right: 14px;
  bottom: 14px;
  z-index: 30;
  min-height: 52px;
  display: none;
  place-items: center;
  color: #fff;
  background: var(--red);
  border-radius: 8px;
  font-weight: 950;
  box-shadow: var(--shadow);
}
.sticky.is-hidden { display: none; }

@media (max-width: 980px) {
  .topbar nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-media { min-height: 440px; }
  h1 { font-size: clamp(39px, 10vw, 66px); }
  .quick-strip { grid-template-columns: repeat(2, 1fr); }
  .service-cards, .gallery, .contact-card { grid-template-columns: 1fr; }
  .mode-grid { grid-template-columns: 1fr; }
  .gallery-main { min-height: 430px; }
  .thumbs { grid-template-columns: repeat(6, 1fr); grid-template-rows: none; }
  .thumb { min-height: 84px; }
  .contact { background-attachment: scroll; }
}

@media (max-width: 640px) {
  .topbar { padding: 10px 12px; min-height: 58px; }
  .brand strong { max-width: 124px; font-size: 13px; line-height: 1.1; }
  .call-mini { display: none; }
  .hero { padding: 32px 14px 44px; gap: 20px; }
  .lead { font-size: 15px; line-height: 1.55; }
  .hero-actions { display: grid; }
  .metric-row { display: grid; grid-template-columns: 1fr; }
  .metric-row div { width: 100%; min-height: 70px; }
  .hero-media { min-height: 360px; }
  .photo { border-width: 5px; }
  .photo.workshop { width: 88%; top: 62px; }
  .photo.diagnostic { width: 74%; bottom: 22px; }
  .photo.tire { width: 46%; left: 2%; }
  .quick-strip { grid-template-columns: 1fr; }
  .quick-strip a, .quick-strip div { min-height: 88px; padding: 18px 16px; }
  .section, .proof-section, .contact { padding: 56px 14px; }
  .section-head h2 { font-size: 34px; }
  .panel { min-height: 228px; padding: 20px; }
  .service-cards article { min-height: 0; padding: 22px; }
  .gallery-main { min-height: 330px; }
  .thumbs { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .thumb { min-height: 76px; }
  .contact-card { padding: 22px; }
  .contact-actions .primary, .contact-actions .secondary { width: 100%; }
  .sticky:not(.is-hidden) { display: grid; }
}
