:root {
  --bg: #07090d;
  --bg-soft: #0d1118;
  --panel: #111722;
  --panel-strong: #171f2b;
  --text: #f7f9fc;
  --muted: #aeb8c7;
  --line: rgba(255, 255, 255, 0.11);
  --red: #f04444;
  --red-deep: #9d1f2e;
  --blue: #5bd8ff;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 8%, rgba(240, 68, 68, 0.18), transparent 26rem),
    radial-gradient(circle at 84% 5%, rgba(91, 216, 255, 0.12), transparent 30rem),
    linear-gradient(180deg, #090b10 0%, var(--bg) 40%, #050609 100%);
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 18px;
  left: 50%;
  width: min(1180px, calc(100% - 32px));
  min-height: 66px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.78);
  box-shadow: 0 14px 48px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--red), #ff824d);
  color: #fff;
  box-shadow: 0 0 34px rgba(240, 68, 68, 0.35);
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

nav a:hover,
.header-action:hover {
  color: var(--text);
}

.header-action {
  padding: 12px 16px;
  border-radius: 7px;
  background: var(--text);
  color: #071018;
  font-size: 14px;
  font-weight: 900;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

main {
  overflow: hidden;
}

.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: minmax(0, 0.83fr) minmax(0, 1.17fr);
  align-items: center;
  gap: 42px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 112px 0 42px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 620px;
  font-size: clamp(48px, 6.1vw, 92px);
  line-height: 0.91;
  font-weight: 900;
}

.hero-copy p {
  max-width: 540px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 7px;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.btn svg,
.perk-list svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--red), #ff6a3a);
  color: #fff;
  box-shadow: 0 16px 44px rgba(240, 68, 68, 0.28);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.hero-media {
  position: relative;
  min-height: clamp(430px, 58vh, 610px);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 9, 13, 0.66), transparent 40%),
    linear-gradient(0deg, rgba(7, 9, 13, 0.55), transparent 40%);
  pointer-events: none;
}

.hero-stat {
  position: absolute;
  z-index: 2;
  min-width: 168px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 9, 13, 0.72);
  backdrop-filter: blur(14px);
}

.hero-stat span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.hero-stat strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.hero-stat-left {
  left: 22px;
  bottom: 24px;
}

.hero-stat-right {
  right: 22px;
  top: 92px;
}

.section-panel,
.perks,
.order {
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
}

.section-panel {
  padding: 72px 0;
}

.inventory.section-panel {
  padding-top: 56px;
}

.section-heading {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: end;
  margin-bottom: 34px;
}

.section-number {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

h2 {
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1;
  font-weight: 900;
}

.section-heading p:last-child,
.perks-copy > p:last-child,
.order > div > p {
  color: var(--muted);
  line-height: 1.7;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.filter {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.filter.is-active {
  background: var(--text);
  color: #081018;
}

.car-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.car-card {
  position: relative;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.25);
}

.car-card img {
  height: 100%;
  transition: transform 500ms ease;
}

.car-card:hover img {
  transform: scale(1.045);
}

.car-info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 90px 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(4, 5, 8, 0.92) 64%);
}

.car-info h3 {
  font-size: 22px;
  line-height: 1.1;
}

.car-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.perks {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: 34px;
  align-items: stretch;
  padding: 72px 0;
}

.perks-media {
  min-height: 620px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.perks-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(23, 31, 43, 0.94), rgba(12, 15, 22, 0.94));
}

.perks-copy h2 {
  margin-top: 10px;
}

.perk-list {
  display: grid;
  gap: 18px;
  margin-top: 34px;
}

.perk-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.perk-list svg {
  width: 30px;
  height: 30px;
  color: var(--red);
}

.perk-list h3 {
  font-size: 18px;
}

.perk-list p {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.65;
}

.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 250px;
  gap: 16px;
}

.gallery-mosaic img {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
}

.gallery-mosaic .wide {
  grid-column: span 2;
}

.gallery-mosaic .tall {
  grid-row: span 2;
}

.order {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.75fr);
  gap: 38px;
  align-items: center;
  margin-top: 42px;
  margin-bottom: 80px;
  padding: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(240, 68, 68, 0.18), transparent 36%),
    linear-gradient(180deg, var(--panel-strong), #0a0d13);
  box-shadow: var(--shadow);
}

.order h2 {
  margin-top: 12px;
}

.order > div > p {
  max-width: 540px;
  margin-top: 18px;
}

.order-form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

select,
input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  padding: 0 14px;
  font: inherit;
  font-size: 15px;
  outline: none;
}

select:focus,
input:focus {
  border-color: rgba(91, 216, 255, 0.72);
}

option {
  background: #111722;
}

.order-form .btn {
  width: 100%;
}

.form-note {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(1240px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
  }

  nav {
    display: none;
  }

  .hero,
  .perks,
  .order {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 112px;
  }

  .hero-media,
  .perks-media {
    min-height: 460px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    width: calc(100% - 20px);
  }

  .header-action {
    display: none;
  }

  .hero,
  .section-panel,
  .perks,
  .order,
  footer {
    width: min(100% - 24px, 1240px);
  }

  .hero {
    padding-top: 96px;
    padding-bottom: 12px;
    gap: 28px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  .hero-copy p {
    font-size: 16px;
    line-height: 1.58;
    margin-top: 22px;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-media,
  .perks-media {
    min-height: 190px;
  }

  .hero-stat {
    min-width: 132px;
    padding: 12px;
  }

  .hero-stat-right {
    top: 18px;
  }

  .car-grid,
  .gallery-mosaic {
    grid-template-columns: 1fr;
  }

  .car-card {
    min-height: 360px;
  }

  .gallery-mosaic {
    grid-auto-rows: 230px;
  }

  .gallery-mosaic .wide,
  .gallery-mosaic .tall {
    grid-column: span 1;
    grid-row: span 1;
  }

  .perks-copy,
  .order {
    padding: 24px;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
