:root {
  --bg: #0d0d0f;
  --panel: #18181b;
  --panel-2: #222226;
  --text: #f3f3f4;
  --muted: #adadb5;
  --line: rgba(255, 255, 255, 0.13);
  --red: #ff1d1d;
  --red-dark: #b80910;
  --white: #ffffff;
  --green: #7cb342;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 82px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(13, 13, 15, 0.88), rgba(13, 13, 15, 0.42));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
  font-weight: 950;
  font-style: italic;
  line-height: 1;
}

.brand-mark {
  color: var(--red);
  font-size: 22px;
}

.brand-text {
  color: var(--white);
  font-size: 18px;
}

.topbar nav {
  display: flex;
  gap: clamp(12px, 3vw, 34px);
  color: #d7d7dc;
  font-size: 14px;
  font-weight: 650;
}

.top-phone {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 28px;
  padding: 96px clamp(18px, 5vw, 72px) 30px;
  overflow: hidden;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  background-image: url("/assets/hero-testdrive.png");
  background-size: cover;
  background-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(13, 13, 15, 0.22) 0%, rgba(13, 13, 15, 0.48) 42%, rgba(13, 13, 15, 0.94) 74%),
    linear-gradient(180deg, rgba(13, 13, 15, 0.2) 0%, rgba(13, 13, 15, 0.92) 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.32;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.05) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.04) 25%, transparent 25%);
  background-size: 22px 22px;
  pointer-events: none;
}

.hero-content,
.event-card {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-content {
  max-width: 840px;
}

.kicker,
.section-label {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(54px, 7vw, 96px);
  line-height: 0.84;
  font-weight: 950;
  text-transform: uppercase;
}

.hero-lead {
  max-width: 620px;
  color: #e4e4e7;
  font-size: clamp(17px, 1.8vw, 22px);
  line-height: 1.34;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 24px;
  font-weight: 850;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.primary {
  background: var(--red);
  color: var(--white);
}

.ghost {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.09);
}

.event-card {
  align-self: end;
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.event-card div {
  padding: 20px;
  background: rgba(16, 16, 18, 0.82);
}

.event-card span,
.booking-form span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.event-card strong {
  font-size: 19px;
}

.section,
.event-info-strip,
.booking-band,
.footer {
  padding-inline: clamp(18px, 5vw, 72px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 8vw, 110px);
  padding-top: 78px;
  padding-bottom: 56px;
  border-top: 1px solid var(--line);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 58px);
  line-height: 0.98;
  font-weight: 950;
  text-transform: uppercase;
}

.intro > p,
.section-head > p,
.booking-copy p {
  color: #cfcfd5;
  font-size: clamp(17px, 1.45vw, 20px);
  line-height: 1.55;
}

.event-info-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  background:
    linear-gradient(135deg, rgba(255, 29, 29, 0.08), transparent 34%),
    var(--panel);
  border-block: 1px solid var(--line);
  padding-top: 28px;
  padding-bottom: 28px;
}

.event-info-card {
  position: relative;
  min-height: 190px;
  display: grid;
  align-content: end;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 12, 14, 0.72);
  padding: 24px;
}

.event-info-card::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 24px;
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--red);
}

.event-info-card p {
  max-width: 100%;
  margin: 0;
  color: #e8e8ea;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 700;
  line-height: 1.42;
}

.models-section {
  padding-top: 78px;
  padding-bottom: 82px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  margin-bottom: 34px;
}

.section-head p {
  max-width: 520px;
  margin-bottom: 0;
}

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

.model-card {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 29, 29, 0.12), transparent 34%),
    var(--panel);
  overflow: hidden;
  padding: 24px;
}

.model-photo {
  display: block;
  width: calc(100% + 48px);
  height: 190px;
  margin: -24px -24px 22px;
  object-fit: cover;
  background: #0f0f12;
}

.model-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  text-transform: uppercase;
}

.model-card h3 {
  margin: 20px 0 12px;
  font-size: 30px;
  line-height: 1;
}

.model-card p {
  min-height: 108px;
  color: #c9c9cf;
  line-height: 1.45;
}

.time-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.time-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: #ededf0;
  font-size: 13px;
  font-weight: 800;
}

.booking-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(26px, 7vw, 86px);
  padding-top: 72px;
  padding-bottom: 72px;
  background:
    linear-gradient(115deg, rgba(255, 29, 29, 0.16), transparent 42%),
    var(--panel-2);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.booking-form label {
  display: block;
}

.booking-form input,
.booking-form select,
.admin-panel input,
.admin-panel textarea {
  width: 100%;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101013;
  color: var(--text);
  padding: 0 14px;
  font: inherit;
}

.booking-form button,
.form-status,
.consent-field {
  grid-column: 1 / -1;
}

.consent-field {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.consent-field input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  accent-color: var(--red);
}

.consent-field span {
  margin: 0;
  line-height: 1.35;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: #dcdce1;
  font-weight: 750;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-top: 28px;
  padding-bottom: 28px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer div {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer strong {
  color: var(--white);
}

.credit {
  color: rgba(255, 255, 255, 0.42);
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar nav {
    display: none;
  }

  .hero,
  .intro,
  .booking-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 116px;
    align-items: start;
  }

  .event-card {
    width: 100%;
    max-width: none;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(48px, 11vw, 82px);
    line-height: 0.88;
    overflow-wrap: anywhere;
  }

  .hero-lead {
    max-width: 100%;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    max-width: 100%;
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .event-info-strip {
    grid-template-columns: 1fr;
  }

  .event-info-card {
    min-height: auto;
    gap: 14px;
  }

  .section-head {
    display: block;
  }
}

@media (max-width: 620px) {
  .topbar {
    align-items: center;
    padding-block: 14px;
  }

  .top-phone {
    display: none;
  }

  .hero {
    padding-top: 92px;
    padding-bottom: 28px;
  }

  section {
    scroll-margin-top: 66px;
  }

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

  .hero-lead {
    font-size: 17px;
  }

  .models-grid,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .event-info-strip {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .event-info-card {
    padding: 18px;
  }

  .section,
  .booking-band,
  .footer {
    padding-inline: 18px;
  }

  .model-card {
    min-height: auto;
  }

  .footer {
    display: block;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .models-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  }

  h1 {
    font-size: clamp(56px, 7vw, 86px);
  }
}

@media (max-width: 430px) {
  .brand-text {
    font-size: 15px;
  }

  .brand-mark {
    font-size: 19px;
  }

  .event-card div {
    padding: 16px;
  }

  .model-card h3 {
    font-size: 26px;
  }
}
