:root {
  --ink: #141414;
  --hero: #1a1a1a;
  --strip: #202020;
  --paper: #f4f4f2;
  --red: #e10600;
  --dim-dark: #8a8a8a;
  --dim-light: #6d6d6a;
  --line-dark: rgba(255, 255, 255, .12);
  --line-light: rgba(0, 0, 0, .14);
  --pad: clamp(20px, 5vw, 64px);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* ---------- общие детали ---------- */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(28px, 5vw, 56px);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--dim-dark);
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--red);
  flex: none;
}
.block--paper .eyebrow { color: var(--dim-light); }

h1, h2, h3 { font-weight: 600; letter-spacing: -.02em; margin: 0; }

h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
}
h1 span { display: block; }
h1 .dim { color: var(--dim-dark); }

h2 {
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
}
h2 span { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-width: 260px;
  padding: 20px 24px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .15s;
}
.btn { position: relative; overflow: hidden; }
.btn::before,
.btn::after {
  content: "";
  position: absolute;
  border: 1px solid #fff;
  transition: transform .3s ease;
}
/* горизонтальные линии тянутся слева направо */
.btn::before {
  inset: 0;
  border-width: 1px 0;
  transform: scaleX(0);
  transform-origin: left;
}
/* вертикальные — сверху вниз, с небольшой задержкой */
.btn::after {
  inset: 0;
  border-width: 0 1px;
  transform: scaleY(0);
  transform-origin: top;
  transition-delay: .12s;
}
.btn:hover { background: var(--red); }
.btn:hover::before { transform: scaleX(1); }
.btn:hover::after { transform: scaleY(1); }
.btn--dark::before,
.btn--dark::after { border-color: var(--ink); }
.btn__arrow {
  font-size: 18px;
  transition: transform .25s cubic-bezier(.2, .7, .3, 1);
}
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

.nav__link { display: inline-flex; align-items: center; gap: 6px; }
.nav__link .arrow { transition: transform .25s cubic-bezier(.2, .7, .3, 1); }
.nav__link:hover .arrow { transform: translate(3px, -3px); }
.btn--dark {
  background: transparent;
  color: inherit;
  border: 1px solid var(--line-light);
  min-width: 200px;
}
.btn--dark:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--wa:hover { background: #25d366; border-color: #25d366; color: #06331a; }
.btn--tg:hover { background: #2aabee; border-color: #2aabee; color: #04283a; }
.btn--wa::before, .btn--wa::after,
.btn--tg::before, .btn--tg::after { display: none; }

/* ---------- шапка ---------- */

.top {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  padding: 18px var(--pad);
  background: var(--ink);
  border-bottom: 1px solid var(--line-dark);
}

.brand { display: flex; align-items: center; gap: 14px; }
.brand img { width: 44px; height: 44px; border-radius: 50%; }
.brand__text { display: flex; flex-direction: column; gap: 4px; }
.brand__text b { font-size: 15px; font-weight: 600; letter-spacing: .06em; }
.brand__text i {
  font-style: normal;
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--dim-dark);
}

.nav {
  display: flex;
  gap: clamp(18px, 2.5vw, 36px);
  margin-left: auto;
  font-size: 14px;
  color: #e6e6e6;
}
.nav a { position: relative; padding-bottom: 4px; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .28s cubic-bezier(.2, .7, .3, 1);
}
.nav a:hover::after { transform: scaleX(1); }

.top__side { display: flex; align-items: center; gap: 20px; }

.phone {
  position: relative;
  isolation: isolate;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 10px 6px;
  border-bottom: 2px solid var(--red);
}
.phone::before {
  content: "";
  position: absolute;
  inset: -1px 0 0;
  z-index: -1;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.phone:hover::before { transform: scaleY(1); }

.lang {
  position: relative;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.lang__thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  background: var(--red);
  transform: translateX(var(--thumb-x, 0)) scaleX(var(--thumb-squish, 1));
  transition: transform .38s cubic-bezier(.34, 1.4, .64, 1);
}
.lang[data-active="ru"] { --thumb-x: 100%; }
/* пока плашка едет, её слегка растягивает по ходу движения */
.lang.is-moving { --thumb-squish: 1.16; }
.lang button {
  position: relative;
  min-width: 40px;
  font: inherit;
  font-size: 11px;
  letter-spacing: .1em;
  padding: 5px 10px;
  color: var(--dim-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: color .25s;
}
.lang button[aria-current="true"] { color: #fff; }

/* ---------- герой ---------- */

.hero {
  position: relative;
  padding: clamp(36px, 6vw, 72px) var(--pad) 0;
  background: var(--hero);
  overflow: hidden;
}
.hero {
  /* интерьер Порша фоном, притушенный, чтобы текст читался */
  background:
    linear-gradient(90deg, rgba(20, 20, 20, .9) 18%, rgba(20, 20, 20, .28) 58%, rgba(20, 20, 20, .4)),
    url("img/interior.webp") center / cover no-repeat,
    var(--hero);
}

/* тот же фон, но размытый: маска гасит его вправо, поэтому справа кадр резче */
.hero__blur {
  position: absolute;
  inset: 0;
  background: url("img/interior.webp") center / cover no-repeat;
  filter: blur(7px);
  -webkit-mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 78%);
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto -10%;
  height: 120%;
  background:
    linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .05) 38.2%, transparent 38.5%),
    linear-gradient(105deg, transparent 62%, rgba(255, 255, 255, .04) 62.2%, transparent 62.4%);
  pointer-events: none;
}

.hero > * { position: relative; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding-bottom: clamp(32px, 5vw, 64px);
  /* высота считается по самому длинному переводу, иначе блок прыгает при смене языка */
  min-height: clamp(420px, 46vw, 560px);
}
.hero__text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero__text .btn { min-width: 300px; }
/* грузинские буквы шире — иначе заголовок расползается на четыре строки */
:lang(ka) h1 { font-size: clamp(28px, 3.4vw, 46px); }
:lang(ka) h2 { font-size: clamp(26px, 3vw, 40px); }
h1 { min-height: 2.1em; }

.hero__visual { margin: 0; }
.hero__car img { width: 100%; will-change: transform, opacity; }

/* до загрузки машина стоит целиком за левым краем экрана */
.hero:not(.is-ready) .hero__car img {
  opacity: 0;
  transform: translate3d(-115%, 0, 0);
}
.hero.is-ready .hero__car img {
  animation: car-in 1.2s cubic-bezier(.17, .74, .26, 1) both;
}

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

/* красные полосы из фирменного стиля — под машиной */
.stripes {
  display: flex;
  gap: 10px;
  margin-top: clamp(18px, 2.5vw, 28px);
}
.stripes span {
  width: clamp(48px, 7vw, 92px);
  height: clamp(20px, 2.4vw, 30px);
  transform: skewX(-20deg);
}
.stripes span:nth-child(1) { background: var(--red); }
.stripes span:nth-child(2) { background: #a30400; }
.stripes span:nth-child(3) { background: #700300; }
.stripes span:nth-child(4) { background: #470200; }
.stripes span { transition: filter .25s ease; }
.stripes span:hover { filter: brightness(.5); }

.stripes--foot { margin: 0; }
.stripes--foot span {
  width: clamp(30px, 4vw, 46px);
  height: 14px;
}

.hero.is-ready .stripes span { animation: stripe-in .5s ease both; }
.hero.is-ready .stripes span:nth-child(1) { animation-delay: .45s; }
.hero.is-ready .stripes span:nth-child(2) { animation-delay: .55s; }
.hero.is-ready .stripes span:nth-child(3) { animation-delay: .65s; }
.hero.is-ready .stripes span:nth-child(4) { animation-delay: .75s; }

@keyframes stripe-in {
  from { opacity: 0; transform: skewX(-20deg) translateX(-24px); }
  to { opacity: 1; transform: skewX(-20deg) translateX(0); }
}
.hero__visual figcaption {
  margin-top: clamp(20px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim-dark);
}
.hero__visual figcaption b { color: #d8d8d8; font-weight: 500; }
.hero__visual figcaption span { letter-spacing: .04em; text-transform: none; font-size: 12px; }

.lead {
  margin: clamp(20px, 3vw, 32px) 0 clamp(24px, 3.5vw, 40px);
  max-width: 420px;
  min-height: 4.8em;
  color: #cfcfcf;
}

.hero__foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-top: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim-dark);
}

/* ---------- полоса географии ---------- */

.geo {
  display: flex;
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: 26px var(--pad);
  background: var(--strip);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.geo__label { color: var(--dim-dark); }
.geo__list li { position: relative; transition: color .2s; }
.geo__list li:hover { color: #fff; }
.geo__list li::before {
  content: attr(data-flag);
  position: absolute;
  right: calc(100% + 8px);
  top: 50%;
  transform: translate(6px, -50%);
  opacity: 0;
  font-size: 14px;
  transition: opacity .2s, transform .2s;
}
.geo__list li:hover::before { opacity: 1; transform: translate(0, -50%); }

.geo__list {
  display: flex;
  flex: 1;
  justify-content: space-between;
  gap: clamp(16px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
  color: #e2e2e2;
}

/* ---------- секции ---------- */

.block { padding: clamp(56px, 8vw, 110px) var(--pad); }
.block--paper { background: var(--paper); color: var(--ink); }
.block--dark { background: var(--hero); }

.block__head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: end;
  padding-bottom: clamp(32px, 5vw, 56px);
}
.block__lead { margin: 0; color: var(--dim-light); max-width: 380px; }
.block--dark .block__lead { color: #bdbdbd; }

.cols {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-light);
}
.block--dark .cols { border-top-color: var(--line-dark); }
.cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.col__num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--red);
}
.col__num::after {
  content: "";
  width: 0;
  margin-top: 1px;
  height: 1px;
  background: var(--red);
  transition: width .3s cubic-bezier(.2, .7, .3, 1);
}
.col:hover .col__num::after { width: 42px; }
.col h3 { font-size: 18px; margin-bottom: 10px; }
.col p { margin: 0; color: var(--dim-light); }
.block--dark .col p { color: #b8b8b8; }

/* ---------- наш подход ---------- */

.approach {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.approach h2 { margin-bottom: clamp(28px, 4vw, 48px); max-width: 12ch; }
.approach__car {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.approach__car img { width: 100%; }

.blinker {
  position: absolute;
  top: 54%;
  width: 13%;
  aspect-ratio: 1;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255, 176, 32, .95), rgba(255, 140, 0, .35) 55%, transparent 72%);
  opacity: 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
.blinker--left { left: 16%; }
.blinker--right { left: 84%; }

.approach__car.blink .blinker { animation: blink 480ms steps(1, end) 2; }

@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

/* ---------- контакты ---------- */

.contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  padding-top: clamp(28px, 4vw, 44px);
  border-top: 1px solid var(--line-light);
}
.contacts__lines { display: flex; flex-direction: column; gap: 10px; }
.contacts__phone {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 600;
  letter-spacing: -.02em;
}
.contacts__mail { font-size: clamp(16px, 2vw, 20px); color: var(--dim-light); }

.contacts__phone,
.contacts__mail {
  position: relative;
  align-self: flex-start;
  transition: color .2s;
}
.contacts__phone::after,
.contacts__mail::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s cubic-bezier(.2, .7, .3, 1);
}
.contacts__phone:hover,
.contacts__mail:hover { color: var(--red); }
.contacts__phone:hover::after,
.contacts__mail:hover::after { transform: scaleX(1); }
.contacts__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- подвал ---------- */

.foot__site { text-align: right; }

.foot {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px var(--pad);
  background: var(--ink);
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--dim-dark);
}

/* ---------- адаптив ---------- */

@media (max-width: 1000px) {
  .cols--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .approach { grid-template-columns: minmax(0, 1fr); }
  .approach__car { max-width: 420px; margin-inline: auto; }
  .block__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .top { gap: 16px; }
  .top__side { margin-left: auto; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__visual { order: 2; }
  .geo { flex-wrap: wrap; gap: 14px; }
  .geo__list { flex-wrap: wrap; justify-content: flex-start; gap: 14px 22px; }
  .cols--4, .cols--3 { grid-template-columns: minmax(0, 1fr); }
  .btn { width: 100%; }
}

@media (max-width: 520px) {
  .phone { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .hero:not(.is-ready) .hero__car img { opacity: 1; transform: none; }
  .hero.is-ready .hero__car img,
  .hero.is-ready .stripes span,
  .approach__car.blink .blinker { animation: none; }
  .lang__thumb { transition: none; }
}
