:root {
  --black: #050505;
  --ink: #0a0a0a;
  --white: #ffffff;
  --yellow: #ffd500;
  --yellow-dark: #d7ac00;
  --graphite: #858585;
  --line: #262626;
  --line-strong: #393939;
  --page: min(1440px, calc(100vw - 80px));
  --display: "Arial Black", "Arial Narrow", Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --hand: "Comic Sans MS", "Segoe Print", cursive;
  color-scheme: dark;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: var(--yellow) var(--black);
  overflow-x: hidden;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
textarea {
  font: inherit;
}

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

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

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 100;
  padding: 12px 16px;
  color: var(--black);
  background: var(--yellow);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.section-shell,
.site-header {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 20;
  height: 112px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  width: fit-content;
  white-space: nowrap;
  font-style: italic;
  line-height: 1;
}

.brand-lego {
  font: 900 italic 19px/1 var(--display);
  letter-spacing: -0.08em;
}

.brand-garage,
.brand-mini {
  font: 700 17px/1 var(--hand);
}

.brand-x,
.brand-mini {
  color: var(--yellow);
}

.desktop-nav {
  display: flex;
  gap: 52px;
  color: #b0b0b0;
  font-size: 14px;
}

.desktop-nav a,
.site-footer nav a {
  position: relative;
  padding-block: 8px;
  transition: color 180ms ease;
}

.desktop-nav a::after,
.site-footer nav a::after {
  position: absolute;
  content: "";
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--yellow);
  transition: right 180ms ease;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible,
.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--white);
}

.desktop-nav a:hover::after,
.desktop-nav a:focus-visible::after,
.site-footer nav a:hover::after,
.site-footer nav a:focus-visible::after {
  right: 0;
}

.stud-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 64px;
  padding: 16px 30px;
  overflow: hidden;
  border: 1px solid #ffe45d;
  border-radius: 2px;
  color: var(--black);
  background-color: var(--yellow);
  background-image:
    radial-gradient(circle at 14px 14px, #ffe35a 0 7px, #e5b900 7.5px 8.5px, transparent 9px),
    radial-gradient(circle at 42px 42px, #ffe35a 0 7px, #e5b900 7.5px 8.5px, transparent 9px);
  background-size: 56px 56px;
  box-shadow: 0 7px 0 #9e7e00, 0 13px 24px rgba(0, 0, 0, 0.4);
  font: 900 italic 18px/1 var(--display);
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.stud-button::after {
  position: absolute;
  z-index: -1;
  content: "";
  inset: 8px 18px;
  background: rgba(255, 213, 0, 0.88);
  box-shadow: 0 0 16px 12px rgba(255, 213, 0, 0.88);
}

.stud-button:hover,
.stud-button:focus-visible {
  transform: translateY(3px);
  filter: brightness(1.05);
  box-shadow: 0 4px 0 #9e7e00, 0 9px 17px rgba(0, 0, 0, 0.45);
}

.stud-button:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
a:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 4px;
}

.stud-button svg {
  width: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stud-button--header {
  justify-self: end;
  min-height: 58px;
  padding-inline: 26px;
  font-size: 15px;
}

.menu-toggle,
.mobile-menu {
  display: none;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding-top: 178px;
  padding-bottom: 84px;
  display: grid;
  grid-template-columns: minmax(440px, 0.82fr) minmax(580px, 1.18fr);
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 4;
  padding-bottom: 50px;
}

.hero h1,
.about h2,
.services h2,
.booking h2,
.contacts h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(58px, 5.25vw, 92px);
  line-height: 0.96;
}

.hero h1 span,
.about h2 span,
.booking h2 span {
  color: var(--yellow);
  font-family: var(--hand);
  font-weight: 700;
  letter-spacing: -0.035em;
  text-transform: none;
}

.hero h1 span {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.72em;
  line-height: 1.02;
  transform: rotate(-1.5deg);
}

.hero-copy > p {
  max-width: 570px;
  margin: 36px 0 34px;
  color: #b1b1b1;
  font-size: 17px;
  line-height: 1.7;
}

.stud-button--hero {
  min-width: 260px;
}

.hero-cars {
  position: relative;
  z-index: 2;
  height: min(670px, 72vh);
  align-self: end;
}

.hero-cars::before {
  position: absolute;
  content: "";
  inset: -12% -12% 0 -8%;
  z-index: -1;
  opacity: 0.25;
  background-image: radial-gradient(circle, #5a5a5a 0 2px, transparent 2.5px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 34%, transparent 90%);
}

.hero-floor {
  position: absolute;
  left: -6%;
  right: -7%;
  bottom: 5%;
  height: 28%;
  background: radial-gradient(ellipse, rgba(255, 213, 0, 0.13), transparent 64%);
  transform: perspective(300px) rotateX(65deg);
  filter: blur(4px);
}

.car {
  position: absolute;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, 0.92));
  animation: settle 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.car--yellow {
  width: 38%;
  left: 0;
  bottom: 19%;
  z-index: 1;
}

.car--green {
  width: 40%;
  left: 30%;
  bottom: 9%;
  z-index: 3;
  animation-delay: 120ms;
}

.car--red {
  width: 36%;
  right: 0;
  bottom: 20%;
  z-index: 2;
  animation-delay: 240ms;
}

@keyframes settle {
  from { opacity: 0; transform: translateY(34px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #777;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.scroll-cue svg {
  width: 20px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.5;
}

.about {
  position: relative;
  min-height: 760px;
  display: grid;
  grid-template-columns: 70px minmax(380px, 0.82fr) minmax(520px, 1.18fr);
  gap: 42px;
  align-items: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.section-number,
.service-index {
  color: #4a4a4a;
  font: 700 12px/1 var(--body);
  letter-spacing: 0.2em;
}

.section-number {
  align-self: start;
  padding-top: 84px;
}

.about-copy {
  position: relative;
  z-index: 2;
  padding-block: 120px;
}

.about h2 {
  font-size: clamp(50px, 4.5vw, 76px);
  line-height: 0.98;
}

.about h2 span {
  display: block;
  margin-top: 18px;
  font-size: 0.73em;
  transform: rotate(-1deg);
}

.about-copy p {
  max-width: 590px;
  margin: 22px 0 0;
  color: var(--graphite);
  line-height: 1.8;
}

.about-copy .about-lead {
  margin-top: 50px;
  color: #c2c2c2;
  font-size: 18px;
}

.about-car {
  position: relative;
  height: 100%;
  min-height: 680px;
}

.about-car::before {
  position: absolute;
  content: "";
  inset: 11% 0 8% 8%;
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.about-car img {
  position: absolute;
  width: 112%;
  max-width: none;
  right: -15%;
  bottom: -2%;
  mix-blend-mode: screen;
  transform: scale(1.08);
  filter: contrast(1.05);
}

.detail-note {
  position: absolute;
  z-index: 2;
  top: 16%;
  right: 7%;
  color: var(--yellow);
  font: 700 13px/1 var(--hand);
  transform: rotate(4deg);
}

.services {
  padding-block: 130px 150px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 50px;
  margin-bottom: 62px;
}

.section-label {
  display: block;
  margin-bottom: 18px;
  color: var(--yellow);
  font: 800 11px/1 var(--body);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.services h2,
.contacts h2 {
  font-size: clamp(46px, 4.6vw, 72px);
  line-height: 0.95;
}

.section-heading > p {
  max-width: 430px;
  margin: 0 0 5px;
  color: var(--graphite);
  line-height: 1.65;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.service-item {
  position: relative;
  min-height: 340px;
  padding: 42px 42px 38px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  transition: background 220ms ease;
}

.service-item:hover {
  background: #0c0c0c;
}

.service-index {
  display: block;
  margin-bottom: 32px;
}

.service-icon {
  position: absolute;
  top: 37px;
  right: 36px;
  width: 50px;
  height: 50px;
  fill: none;
  stroke: var(--yellow);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-item h3 {
  max-width: 300px;
  margin: 0 0 19px;
  font: 700 27px/1.12 var(--hand);
}

.service-item p {
  max-width: 340px;
  margin: 0;
  color: var(--graphite);
  line-height: 1.65;
}

.service-item a {
  position: absolute;
  left: 42px;
  bottom: 38px;
  color: #b9b9b9;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.service-item a span {
  margin-left: 8px;
  color: var(--yellow);
}

.service-item a:hover,
.service-item a:focus-visible {
  color: var(--white);
}

.booking {
  display: grid;
  grid-template-columns: minmax(390px, 0.74fr) minmax(580px, 1.26fr);
  gap: 110px;
  padding-block: 130px;
  border-top: 1px solid var(--line);
}

.booking-heading {
  position: relative;
}

.booking-heading .section-number {
  position: absolute;
  top: -76px;
  padding: 0;
}

.booking h2 {
  font-size: clamp(50px, 4.9vw, 76px);
  line-height: 0.96;
}

.booking h2 span {
  display: inline-block;
  margin-top: 10px;
  transform: rotate(-2deg);
}

.booking-heading > p {
  max-width: 430px;
  margin: 38px 0 0;
  color: var(--graphite);
  line-height: 1.7;
}

.booking-form {
  display: grid;
  gap: 18px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.booking-form label:not(.consent) {
  display: grid;
  gap: 10px;
  color: #a5a5a5;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-form input,
.booking-form textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  padding: 20px 22px;
  color: var(--white);
  background: #070707;
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 180ms ease, background 180ms ease;
}

.booking-form textarea {
  min-height: 148px;
  resize: vertical;
}

.booking-form input:hover,
.booking-form textarea:hover {
  border-color: #595959;
}

.booking-form input:focus,
.booking-form textarea:focus {
  border-color: var(--yellow);
  background: #0d0d0d;
  outline-color: var(--yellow);
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #8a8a8a;
  font-size: 13px;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--yellow);
}

.stud-button--submit {
  width: 100%;
  min-height: 74px;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.stud-button--submit:disabled {
  cursor: wait;
  filter: grayscale(1);
}

.form-status {
  min-height: 22px;
  margin: 2px 0 0;
  color: var(--graphite);
  font-size: 13px;
  line-height: 1.55;
}

.form-status--notice { color: #d8bd48; }
.form-status--success { color: #8fd79b; }
.form-status--error { color: #ff8e81; }

.contacts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: end;
  padding-block: 90px;
  border-top: 1px solid var(--line);
}

.contact-state {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 28px;
  border: 1px solid var(--line-strong);
  color: #a0a0a0;
  line-height: 1.6;
}

.contact-state p {
  margin: 0;
}

.contact-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-top: 6px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 5px rgba(255, 213, 0, 0.12);
}

.contact-state--configured {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.contact-state--configured > * {
  display: grid;
  gap: 8px;
}

.contact-state--configured span {
  color: var(--graphite);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-state--configured strong {
  color: var(--white);
  font-size: 16px;
}

.site-footer {
  min-height: 142px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 50px;
  border-top: 1px solid var(--line);
  color: #6f6f6f;
  font-size: 13px;
}

.site-footer > p {
  margin: 0;
}

.site-footer nav {
  justify-self: end;
  display: flex;
  gap: 34px;
}

.mobile-booking {
  display: none;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1180px) {
  :root { --page: min(100% - 48px, 1120px); }

  .desktop-nav { gap: 30px; }
  .hero { grid-template-columns: 0.9fr 1.1fr; }
  .hero-cars { height: 570px; }
  .about { grid-template-columns: 40px minmax(340px, 0.9fr) minmax(440px, 1.1fr); gap: 24px; }
  .service-item { padding-inline: 30px; }
  .service-item a { left: 30px; }
  .booking { gap: 64px; }
}

@media (max-width: 900px) {
  :root { --page: calc(100% - 40px); }

  body { padding-bottom: 76px; }

  .site-header {
    position: absolute;
    height: 88px;
    grid-template-columns: 1fr auto;
  }

  .desktop-nav,
  .stud-button--header { display: none; }

  .menu-toggle {
    display: grid;
    gap: 7px;
    width: 46px;
    height: 46px;
    padding: 13px 9px;
    border: 1px solid var(--line-strong);
    color: var(--white);
    background: var(--black);
    cursor: pointer;
  }

  .menu-toggle > span:not(.sr-only) {
    width: 100%;
    height: 2px;
    background: currentColor;
    transition: transform 180ms ease;
  }

  .menu-toggle[aria-expanded="true"] > span:nth-last-child(2) { transform: translateY(4.5px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] > span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

  .mobile-menu {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    display: grid;
    padding: 20px;
    border: 1px solid var(--line-strong);
    background: #0c0c0c;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  }

  .mobile-menu[hidden] { display: none; }

  .mobile-menu a {
    padding: 16px 8px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-menu a:last-child { color: var(--yellow); border-bottom: 0; }

  .hero {
    min-height: auto;
    padding-top: 144px;
    padding-bottom: 76px;
    grid-template-columns: 1fr;
  }

  .hero-copy { padding-bottom: 10px; }
  .hero h1 { max-width: 730px; font-size: clamp(54px, 9vw, 76px); }
  .hero-cars { height: 520px; margin-top: -38px; }
  .scroll-cue { display: none; }

  .about {
    min-height: auto;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding-top: 50px;
  }

  .about-copy { padding: 60px 0 30px; }
  .about-car { grid-column: 1 / -1; min-height: 520px; }
  .about-car img { width: 92%; right: -6%; }

  .section-heading { align-items: flex-start; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .booking { grid-template-columns: 1fr; gap: 70px; }
  .booking-heading > p { max-width: 580px; }
  .contacts { grid-template-columns: 1fr; gap: 42px; align-items: start; }
  .contact-state--configured { grid-template-columns: 1fr; }

  .site-footer {
    grid-template-columns: 1fr auto;
    padding-block: 36px;
  }

  .site-footer > p { display: none; }

  .mobile-booking {
    position: fixed;
    z-index: 30;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding-inline: 22px;
    color: var(--black);
    background: var(--yellow);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.65);
    font: 900 italic 17px/1 var(--display);
    text-transform: uppercase;
  }
}

@media (max-width: 620px) {
  :root { --page: calc(100% - 28px); }

  .brand { gap: 6px; }
  .brand-lego { font-size: 16px; }
  .brand-garage,
  .brand-mini { font-size: 14px; }

  .hero { padding-top: 126px; }
  .hero h1 { font-size: clamp(41px, 13vw, 64px); }
  .hero h1 span { margin-top: 10px; font-size: 0.66em; }
  .hero-copy > p { margin-top: 26px; font-size: 15px; }
  .stud-button--hero { width: calc(100% - 8px); }
  .hero-cars { height: 330px; margin-top: -4px; }
  .car--yellow { width: 42%; left: -3%; bottom: 25%; }
  .car--green { width: 44%; left: 28%; bottom: 11%; }
  .car--red { width: 40%; right: -3%; bottom: 26%; }

  .about {
    display: block;
    padding-top: 72px;
  }

  .about > .section-number { padding: 0; }
  .about-copy { padding: 34px 0 10px; }
  .about h2 { font-size: 46px; }
  .about-copy .about-lead { margin-top: 34px; font-size: 16px; }
  .about-car { min-height: 360px; }
  .about-car img { width: 118%; right: -31%; }
  .detail-note { right: 0; }

  .services { padding-block: 92px; }
  .section-heading { display: grid; gap: 28px; margin-bottom: 42px; }
  .services h2,
  .contacts h2 { font-size: 44px; }
  .service-grid { grid-template-columns: 1fr; }
  .service-item { min-height: 300px; padding: 32px 26px; }
  .service-icon { top: 29px; right: 24px; width: 42px; }
  .service-item a { left: 26px; bottom: 30px; }

  .booking { gap: 54px; padding-block: 96px; }
  .booking h2 { font-size: 46px; }
  .booking-heading .section-number { top: -46px; }
  .field-row { grid-template-columns: 1fr; }
  .booking-form input,
  .booking-form textarea { padding: 17px 16px; }
  .stud-button--submit { min-height: 66px; font-size: 15px; }

  .contacts { padding-block: 76px; }
  .contact-state { padding: 22px; }

  .site-footer { grid-template-columns: 1fr; gap: 24px; }
  .site-footer nav { justify-self: start; gap: 22px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
