/* Homepage — language from TGK / КорСтоп / Стривер / AutoButler */

.home {
  background: #d7d7e0;
  font-family: Arial, "Segoe UI", sans-serif;
}

.home-top {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.home-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--red);
  color: #fff;
  font-family: Oswald, Arial, sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

.logo-text {
  display: grid;
  line-height: 1.05;
}

.logo-text b {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.logo-text i {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  display: grid;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.hero-media {
  position: absolute;
  inset: 0;
  background-color: #2a2a32;
  background-image:
    linear-gradient(105deg, rgba(12, 12, 16, 0.82) 0%, rgba(12, 12, 16, 0.45) 42%, rgba(12, 12, 16, 0.18) 100%),
    linear-gradient(180deg, rgba(12, 12, 16, 0.15) 0%, rgba(12, 12, 16, 0.55) 100%),
    url("/assets/hero-garage.webp");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-in {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 16px 40px;
  color: #f4f4f6;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 246, 0.72);
}

.hero h1 {
  margin: 0 0 16px;
  max-width: 100%;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-weight: 600;
  font-size: clamp(30px, 9vw, 84px);
  line-height: 0.95;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  white-space: normal;
  overflow-wrap: anywhere;
}

.hero-lead {
  margin: 0 0 24px;
  max-width: 32rem;
  font-size: 17px;
  line-height: 1.45;
  color: rgba(244, 244, 246, 0.82);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.btn-tgk {
  background: #111;
}

.hero .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.proof-item b {
  display: block;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 28px;
  line-height: 1;
  font-weight: 600;
}

.proof-item span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(244, 244, 246, 0.65);
}

.band {
  padding: 48px 0 24px;
}

.band-alt {
  background: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.55);
}

.band-in {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px 24px;
}

.band-head {
  margin-bottom: 18px;
  max-width: 40rem;
}

.band-head h2 {
  margin: 0 0 8px;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.band-head p {
  margin: 0;
  color: #4d4d57;
}

.service-card-row {
  display: grid;
  gap: 16px;
}

@media (min-width: 900px) {
  .service-card-row {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card {
  display: grid;
  text-decoration: none;
  background: #111;
  color: #fff;
  overflow: hidden;
  max-width: none;
}

.service-card-media {
  position: relative;
  min-height: 220px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.35)),
    url("/assets/card-car.webp") center/cover no-repeat;
}

.service-card-media-fit {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.4)),
    url("/assets/lead-engine.webp") center 40%/cover no-repeat;
}

.service-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 6px 10px;
  background: rgba(30, 30, 34, 0.72);
  font-size: 12px;
  font-weight: 700;
}

.service-card-body {
  padding: 18px 16px 16px;
}

.service-card-body h3 {
  margin: 0 0 12px;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.service-card-body ul {
  margin: 0 0 16px;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.72);
}

.service-card-body li { margin: 4px 0; }

.service-card-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.service-card-more i {
  color: var(--red);
  font-style: normal;
}

.service-card:hover .service-card-more i {
  transform: translateX(3px);
  display: inline-block;
}

.blog-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  border: 1px dashed #bbb;
  background: #fff;
  color: #888;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.place-row { display: grid; gap: 8px; max-width: 420px; }

.place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px;
  background: #fff;
  text-decoration: none;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 22px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.place b { color: var(--red); }

.brand-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 700px) {
  .brand-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 1000px) {
  .brand-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

.brand-tile {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px;
  background: #fff;
  text-decoration: none;
  min-height: 72px;
  min-width: 0;
  overflow: hidden;
}

.brand-tile span {
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: clamp(14px, 4vw, 20px);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tile b {
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--red);
}

.brand-tile:hover {
  outline: 2px solid #111;
  outline-offset: 0;
}

.map-frame {
  position: relative;
  display: block;
  width: 100%;
  height: min(62vw, 520px);
  min-height: 360px;
  overflow: hidden;
  background: #e8e6ef;
  border: 1px solid #ddd;
  z-index: 0;
}

.map-frame > ymaps {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

/* Не раздуваем внутренние контролы Карт на весь контейнер */
.map-frame .ymaps-2-1-map-copyrights-promo,
.map-frame [class*="copyrights-promo"],
.map-frame [class*="gototech"] {
  display: none !important;
}

.map-fallback {
  display: grid;
  place-items: center;
  padding: 24px;
  color: #4d4d57;
  text-align: center;
}

.map-fallback p {
  margin: 0;
  max-width: 28rem;
}

.ymap-balloon {
  font: 14px/1.35 Arial, "Segoe UI", sans-serif;
  max-width: 240px;
}

.ymap-balloon a {
  color: #111;
  text-decoration: none;
}

.ymap-balloon a:hover {
  text-decoration: underline;
}

.ymap-balloon-meta {
  margin-top: 6px;
  color: #666;
  font-size: 12px;
}

.map-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding: 16px;
  background: #fff;
  text-decoration: none;
  font-family: Oswald, Arial Narrow, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.map-caption b { color: var(--red); }

.lead-layout {
  display: grid;
  gap: 16px;
  align-items: stretch;
}

.home-lead {
  max-width: none;
  padding: 20px;
  border: 1px solid #ddd;
}

.home-lead .btn {
  margin-top: 16px;
}

.home-lead .note {
  margin-top: 12px;
}

.lead-media {
  min-height: 280px;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28)),
    url("/assets/lead-engine.webp") center 40%/cover no-repeat;
  border: 1px solid #ddd;
}

.home-foot {
  padding: 28px 0 48px;
  color: #5a5a66;
  font-size: 13px;
}

.home-foot a { color: #5a5a66; }

@media (min-width: 900px) {
  .hero-in { padding: 72px 16px 56px; }
  .lead-layout {
    grid-template-columns: minmax(280px, 1fr) minmax(280px, 1.1fr);
    gap: 20px;
  }
  .lead-media {
    min-height: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: min(92vh, 720px);
  }
  .hero-in {
    padding: 36px 16px 28px;
  }
  .hero-proof {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    max-width: 100%;
  }
  .proof-item b { font-size: clamp(18px, 5.5vw, 22px); }
  .proof-item span { font-size: 11px; }
  .top-actions .nav-link:last-child { display: none; }
  .map-frame {
    height: 280px;
    min-height: 260px;
  }
  .service-card-media { min-height: 180px; }
  .brand-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}


.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 12px;
}
.blog-card {
  display: block;
  background: #fff;
  padding: 16px;
  text-decoration: none;
}
.blog-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.25;
}
.blog-card p {
  margin: 0;
  color: var(--muted, #5c5c5c);
  font-size: 14px;
}
