:root {
  --red: #e8302a;
  --red-soft: #f0453d;
  --dark: #1c1c1c;
  --dark-2: #141414;
  --grey: #d4d4d4;
  --gold: #d6a851;
  --text-dark: #1a1a1a;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--dark);
  color: #fff;
  font-family: "Inter", "Noto Sans Georgian", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

.wrap {
  width: min(100% - 40px, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(20, 20, 20, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
  font-size: 15px;
}
.brand img { width: 36px; height: 36px; border-radius: 50%; }
.brand b { font-weight: 900; }
.brand i { color: var(--red); font-style: normal; }

.site-nav {
  margin-left: auto;
  display: flex;
  gap: 26px;
  font-size: 15px;
}
.site-nav a {
  text-decoration: none;
  color: rgba(255, 255, 255, .78);
}

.lang { display: flex; gap: 6px; }
.lang button {
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255, 255, 255, .6);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  transition: .15s;
}
.lang button:hover { background: var(--red); border-color: var(--red); color: #fff; }
.lang button[aria-current="true"] {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

/* ---------- hero ---------- */

.hero {
  background: var(--dark-2);
}

.hero__stage {
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 2.6 / 1;
}

.hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  opacity: 0;
  transition: opacity .4s ease;
}
.hero__stage.is-ready .hero__bg { opacity: 1; }

/* слой с машиной лежит ровно поверх фона — оба кадра одного размера */
.hero__car {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  will-change: transform, opacity;
}

/* до загрузки картинок машина ждёт за левым краем */
.hero__stage:not(.is-ready) .hero__car {
  opacity: 0;
  transform: translate3d(-26%, 0, 0) scale(1.04);
}

.hero__stage.is-ready .hero__car {
  animation: car-in 1.3s cubic-bezier(.17, .74, .26, 1) both;
}

.hero__stage.is-ready .hero__bg {
  animation: bg-in 1.6s ease-out both;
}

@keyframes car-in {
  0% {
    opacity: 0;
    transform: translate3d(-26%, 0, 0) scale(1.04);
    filter: blur(7px);
  }
  30% { opacity: 1; }
  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes bg-in {
  from { transform: scale(1.035); }
  to { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stage:not(.is-ready) .hero__car { opacity: 1; transform: none; }
  .hero__stage.is-ready .hero__car,
  .hero__stage.is-ready .hero__bg,
  .stripes span:hover { animation: none; }
}

.hero__panel {
  width: 100%;
  margin: 0;
  padding-inline: clamp(20px, 5vw, 64px);
  position: relative;
  z-index: 2;
  background: linear-gradient(135deg, #232323, #171717);
  border: 1px solid rgba(255, 255, 255, .08);
  border-left: 4px solid var(--red);
  padding-block: clamp(24px, 3vw, 36px);
}

.hero__sub {
  margin: 0 0 20px;
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  line-height: 1.35;
  max-width: 720px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; fill: currentColor; }
.btn--wa { background: #25d366; color: #06331a; }
.btn--tg { background: #2aabee; color: #04283a; }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, .3);
  color: #fff;
  letter-spacing: .02em;
}

.btn--wa:hover { background: #0f9d48; color: #fff; }
.btn--tg:hover { background: #1477a8; color: #fff; }
.btn--ghost:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* ---------- common blocks ---------- */

.section-title {
  margin: 0 0 clamp(28px, 4vw, 48px);
  font-size: clamp(38px, 7vw, 84px);
  font-weight: 900;
  letter-spacing: -.01em;
  line-height: .95;
  text-transform: uppercase;
}
.section-title--dark { color: var(--text-dark); }

.grid { display: grid; gap: clamp(24px, 3.5vw, 44px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.card h3 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.25;
}
.card p { margin: 0; }

/* ---------- services ---------- */

.services {
  background: var(--grey);
  color: var(--text-dark);
  padding: clamp(56px, 8vw, 110px) 0;
}
.services .card h3 { color: var(--red); }

.services__wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
}
.services__car { width: 100%; height: auto; }

/* ---------- advantages ---------- */

.advantages {
  background: var(--dark);
  padding: clamp(40px, 6vw, 72px) 0;
}
.advantages .card h3 { color: var(--red-soft); }
.advantages .card p { color: rgba(255, 255, 255, .88); }

.stripes {
  display: flex;
  gap: clamp(8px, 1.4vw, 18px);
  justify-content: center;
  margin: clamp(24px, 4vw, 56px) 0;
}
.stripes span {
  width: clamp(56px, 11vw, 150px);
  height: clamp(56px, 9vw, 120px);
  transform: skewX(-20deg);
}
.stripes span:hover { animation: stripe-blink .5s ease-in-out infinite alternate; }

@keyframes stripe-blink {
  from { opacity: 1; }
  to { opacity: .15; }
}

.stripes span:nth-child(1) { background: #c81616; }
.stripes span:nth-child(2) { background: #6f2020; }
.stripes span:nth-child(3) { background: #6a1e1e; }
.stripes span:nth-child(4) { background: #631c1c; }

/* ---------- contacts ---------- */

.contacts {
  position: relative;
  padding: clamp(64px, 9vw, 120px) 0;
  background: url("img/f1.webp") center / cover no-repeat;
  isolation: isolate;
}
.contacts::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .86), rgba(0, 0, 0, .58));
  z-index: -1;
}

.contacts__wrap {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  flex-wrap: wrap;
}
.contacts__logo {
  width: clamp(120px, 18vw, 200px);
  border-radius: 8px;
}
.contacts__body { flex: 1 1 320px; }
.contacts__lead {
  margin: 0 0 20px;
  font-size: 18px;
  color: rgba(255, 255, 255, .85);
  max-width: 560px;
}
.contacts__line { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; }
.contacts__line a { text-decoration: none; }
.contacts .hero__actions { margin-top: 24px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 22px clamp(16px, 4vw, 40px);
  background: var(--dark-2);
  border-top: 1px solid rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .55);
  font-size: 14px;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .services__wrap { grid-template-columns: minmax(0, 1fr); }
  .services__car { max-width: 460px; margin-inline: auto; }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .site-nav { display: none; }
  .lang { margin-left: auto; }
  .grid--2, .grid--3 { grid-template-columns: minmax(0, 1fr); }
  .hero__stage { aspect-ratio: 16 / 9; }
  .hero__panel { margin-top: 0; }
  .stripes span { height: 46px; }
}
