/* Cars Legends — японский автоспорт: синий, гоночные полосы, узкий курсив */
:root {
  --blue: #0F2547;
  --blue-2: #142F59;
  --ink: #0C1C36;
  --white: #F6F7F4;
  --steel: #AAB7CB;
  --red: #E23B2E;
  --orange: #F18A27;
  --yellow: #F6C445;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", sans-serif;
  --text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--blue);
  color: var(--white);
  font: 400 17px/1.5 var(--text);
  -webkit-font-smoothing: antialiased;
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 420px);
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

/* ---------- Колонка с брендом (справа) ---------- */
.hero__aside {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 44px 40px 28px;
  background: var(--blue-2);
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.aside-top { display: flex; flex-direction: column; gap: 12px; }

.logo { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.logo__word {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 64px;
  line-height: 0.9;
  letter-spacing: 0.005em;
}
.logo__stripes { display: grid; gap: 4px; }
.logo__stripes i { display: block; height: 5px; transform: skewX(-30deg); transform-origin: 0 100%; }
.logo__stripes i:nth-child(1) { width: 92px; background: var(--red); }
.logo__stripes i:nth-child(2) { width: 72px; background: var(--orange); }
.logo__stripes i:nth-child(3) { width: 52px; background: var(--yellow); }

.aside-top__tagline { margin: 0; font-weight: 600; font-size: 21px; line-height: 1.35; max-width: 22ch; }
.aside-top__sub { margin: 0; color: var(--steel); font-size: 15px; }

/* «Почему выбирают нас» — табличка со срезанным углом */
.card {
  margin-block: auto;
  padding: 22px 26px 26px;
  background: var(--white);
  color: var(--ink);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
}
.card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #4A5C79;
  font-weight: 600;
  font-size: 15px;
}
.card__head::before { content: ""; width: 20px; height: 4px; background: var(--red); transform: skewX(-30deg); }
.benefit__title {
  margin: 0 0 10px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: 36px;
  line-height: 0.98;
}
.benefit__text { margin: 0; max-width: 30ch; }

/* ---------- Фото, полосы, заголовок (слева) ---------- */
.hero__visual {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  grid-template-rows: 1fr auto auto;
  padding: 44px max(56px, calc((100% - 1120px) / 2)) 48px;
  container-type: inline-size;
}
.photo {
  position: relative;
  min-height: 300px;
  margin: 0;
  background: var(--blue-2);
  clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%);
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
  display: block;
}

/* Гоночные полосы под фото: от левого края экрана */
.stripes {
  display: grid;
  gap: 7px;
  margin: 22px 0 30px calc(-1 * max(56px, (100cqw - 1120px) / 2));
}
.stripes i {
  display: block;
  height: 13px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
  transform-origin: 0 50%;
  animation: sweep 0.75s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.stripes i:nth-child(1) { width: 96%; background: var(--red); animation-delay: 0.15s; }
.stripes i:nth-child(2) { width: 88%; background: var(--orange); animation-delay: 0.25s; }
.stripes i:nth-child(3) { width: 80%; background: var(--yellow); animation-delay: 0.35s; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.visual-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px 40px;
}
.caption {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(52px, 5.6vw, 92px);
  line-height: 0.9;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 66px;
  margin-right: 8px;
  padding: 0 34px;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 700;
  font-size: 19px;
  text-align: center;
  text-decoration: none;
  transform: skewX(-12deg);
  transition: background-color 0.15s;
}
.cta span { display: block; transform: skewX(12deg); }
.cta:hover { background: #FFD76A; }
.cta:focus-visible { outline-color: var(--white); }

/* ---------- Мобильная версия ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__visual { grid-column: 1; grid-row: 1; grid-template-rows: auto auto auto; padding: 20px 16px 28px; }
  .hero__aside { grid-column: 1; grid-row: 2; gap: 28px; padding: 32px 16px 24px; border-left: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .photo { min-height: 0; aspect-ratio: 4 / 3; clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%); }
  .stripes { margin: 16px 0 22px -16px; gap: 5px; }
  .stripes i { height: 10px; }
  .visual-bottom { flex-direction: column; align-items: stretch; gap: 20px; }
  .caption { font-size: clamp(40px, 12.4vw, 60px); }
  .cta { margin: 0 8px; padding: 0 16px; font-size: 18px; }
  .logo__word { font-size: 52px; }
  .card { margin-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .stripes i { animation: none; }
  .cta { transition: none; }
}
