:root {
  color-scheme: dark;
  --ink: #f7f8f3;
  --muted: #aeb5ad;
  --line: rgba(247, 248, 243, 0.16);
  --panel: rgba(13, 16, 16, 0.68);
  --panel-strong: rgba(20, 24, 23, 0.9);
  --forest: #0a1f1c;
  --steel: #24302f;
  --copper: #c88f4a;
  --lime: #c8ff6a;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #070908;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

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

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

.site-header {
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(7, 9, 8, 0.42);
  border-bottom: 1px solid transparent;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  left: 0;
  padding: 18px clamp(18px, 4vw, 58px);
  position: fixed;
  right: 0;
  top: 0;
  transition: background 180ms ease, border-color 180ms ease, padding 180ms ease;
  z-index: 20;
}

.site-header[data-scrolled="true"] {
  background: rgba(7, 9, 8, 0.82);
  border-color: var(--line);
  padding-bottom: 13px;
  padding-top: 13px;
}

.brand {
  align-items: center;
  display: inline-flex;
  min-width: max-content;
}

.brand-logo {
  height: 40px;
  object-fit: contain;
  width: auto;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: center;
}

.site-nav a,
.header-cta {
  color: rgba(247, 248, 243, 0.78);
  font-size: 14px;
  font-weight: 700;
}

.site-nav a:hover,
.header-cta:hover {
  color: var(--white);
}

.header-cta {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 12px 16px;
}

.menu-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: none;
  height: 40px;
  padding: 0;
  width: 40px;
}

.menu-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  margin: 7px auto;
  width: 24px;
}

.hero {
  align-items: end;
  display: grid;
  min-height: 92vh;
  overflow: hidden;
  padding: 142px clamp(18px, 5vw, 72px) 56px;
  position: relative;
}

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

.hero-media img {
  height: 100%;
  object-fit: cover;
  object-position: center 72%;
  transform: scaleX(-1);
  width: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 9, 8, 0.92), rgba(7, 9, 8, 0.55) 46%, rgba(7, 9, 8, 0.22)),
    linear-gradient(0deg, #070908 0%, rgba(7, 9, 8, 0.08) 38%);
}

.hero-content {
  max-width: 820px;
  min-width: 0;
  position: relative;
  width: 100%;
  z-index: 2;
}

.eyebrow,
.section-label {
  color: var(--lime);
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 18px;
  text-transform: uppercase;
}

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

h1 {
  font-size: 96px;
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 28px;
  max-width: 940px;
}

h2 {
  font-size: 62px;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 0;
}

h3 {
  font-size: 22px;
  line-height: 1.15;
  margin-bottom: 12px;
}

.hero-copy {
  color: rgba(247, 248, 243, 0.82);
  font-size: 21px;
  line-height: 1.6;
  margin-bottom: 34px;
  max-width: 700px;
}

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

.button {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 15px;
  font-weight: 800;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

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

.button.primary {
  background: var(--lime);
  color: #07100e;
}

.button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

.button.ghost {
  border: 1px solid rgba(247, 248, 243, 0.3);
  color: var(--ink);
}

.hero-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  bottom: 56px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  max-width: 540px;
  overflow: hidden;
  position: absolute;
  right: clamp(18px, 5vw, 72px);
  width: min(40vw, 540px);
  z-index: 3;
}

.hero-panel div {
  background: rgba(255, 255, 255, 0.045);
  padding: 20px;
}

.hero-panel span {
  display: block;
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
}

.hero-panel p {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  margin: 8px 0 0;
}

section {
  padding: clamp(72px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.section-band {
  background:
    linear-gradient(135deg, rgba(200, 255, 106, 0.08), transparent 36%),
    linear-gradient(180deg, #0b1010, #111715);
}

.cars.section-band {
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.cars.section-band .section-heading {
  position: relative;
  z-index: 2;
}

.intro-grid {
  display: grid;
  gap: clamp(28px, 6vw, 78px);
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 0.75fr);
  margin: 0 auto;
  max-width: 1220px;
}

.intro-grid p,
.about p,
.contact-copy p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
}

.process {
  background: #070908;
}

.section-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 38px;
  max-width: 1220px;
}

.process-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 auto;
  max-width: 1220px;
}

.process-card {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  min-height: 260px;
  padding: 24px;
}

.process-card span {
  color: var(--copper);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 74px;
}

.process-card p {
  color: var(--muted);
  line-height: 1.65;
}

.car-gallery {
  align-items: stretch;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  margin: 0 auto;
  max-width: 1220px;
}

.feature-car {
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  margin: 0;
  min-height: 0;
  overflow: hidden;
  position: relative;
}

.feature-car img,
.gallery-stack img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.feature-car figcaption {
  background: linear-gradient(0deg, rgba(7, 9, 8, 0.8), transparent);
  bottom: 0;
  left: 0;
  padding: 120px 30px 28px;
  position: absolute;
  right: 0;
}

.feature-car span {
  color: var(--lime);
  display: block;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.feature-car strong {
  display: block;
  font-size: 40px;
  line-height: 1;
}

.gallery-stack {
  display: grid;
  gap: 14px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  min-height: 0;
}

.gallery-stack img {
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  height: auto;
  min-height: 0;
}

.vehicle-showcase {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1220px;
}

.vehicle-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

.vehicle-photo,
.detail-photo {
  appearance: none;
  background: #101514;
  border: 0;
  color: inherit;
  cursor: zoom-in;
  display: block;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: 100%;
}

.vehicle-photo {
  aspect-ratio: 4 / 3;
}

.vehicle-photo img,
.detail-photo img {
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
  width: 100%;
}

.vehicle-photo:hover img,
.vehicle-photo:focus-visible img,
.detail-photo:hover img,
.detail-photo:focus-visible img {
  transform: scale(1.035);
}

.vehicle-photo:focus-visible,
.detail-photo:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
}

.vehicle-info {
  padding: 22px;
}

.vehicle-info span {
  color: var(--lime);
  display: block;
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.vehicle-info h3 {
  margin-bottom: 10px;
}

.vehicle-info p {
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

.detail-gallery {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px auto 0;
  max-width: 1220px;
}

.detail-photo {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.detail-photo::after {
  background: linear-gradient(180deg, transparent 45%, rgba(7, 9, 8, 0.72));
  content: "";
  inset: 0;
  position: absolute;
}

.detail-photo span {
  bottom: 16px;
  font-size: 13px;
  font-weight: 800;
  left: 16px;
  position: absolute;
  right: 16px;
  text-align: left;
  z-index: 2;
}

.gallery-modal {
  align-items: center;
  background: rgba(5, 7, 7, 0.92);
  display: grid;
  inset: 0;
  justify-items: center;
  padding: 28px;
  position: fixed;
  z-index: 60;
}

.gallery-modal[hidden] {
  display: none;
}

.gallery-modal figure {
  margin: 0;
  max-width: min(1180px, 86vw);
  width: 100%;
}

.gallery-modal img {
  background: #101514;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: 82vh;
  object-fit: contain;
  width: 100%;
}

.gallery-modal figcaption {
  color: rgba(247, 248, 243, 0.78);
  font-size: 14px;
  font-weight: 700;
  margin-top: 12px;
  text-align: center;
}

.modal-close,
.modal-control {
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  display: inline-flex;
  font-size: 34px;
  height: 46px;
  justify-content: center;
  position: fixed;
  transition: background 180ms ease, transform 180ms ease;
  width: 46px;
  z-index: 70;
}

.modal-close:hover,
.modal-control:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.modal-close {
  font-size: 30px;
  right: 28px;
  top: 24px;
}

.modal-prev {
  left: 28px;
}

.modal-next {
  right: 28px;
}

.about {
  align-items: start;
  background: #070908;
  border-top: 1px solid rgba(247, 248, 243, 0.08);
  display: grid;
  gap: clamp(28px, 6vw, 78px);
  grid-template-columns: minmax(18px, 1fr) minmax(0, 660px) minmax(320px, 520px) minmax(18px, 1fr);
  isolation: isolate;
  margin: 0;
  max-width: none;
  position: relative;
  z-index: 2;
}

.about > div {
  grid-column: 2;
}

.about > p {
  grid-column: 3;
  margin-bottom: 0;
}

.services {
  padding-bottom: clamp(48px, 6vw, 86px);
  padding-top: clamp(48px, 6vw, 86px);
}

.service-list {
  border-top: 1px solid var(--line);
  margin: 0 auto;
  max-width: 1220px;
}

.service-list div {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(220px, 0.4fr) 1fr;
  padding: 28px 0;
}

.service-list strong {
  font-size: 24px;
}

.service-list span {
  color: var(--muted);
  font-size: 18px;
}

.contact {
  align-items: start;
  background: #070908;
  display: grid;
  gap: clamp(28px, 6vw, 78px);
  grid-template-columns: minmax(18px, 1fr) minmax(0, 660px) minmax(320px, 520px) minmax(18px, 1fr);
  margin: 0;
  max-width: none;
}

.contact-copy {
  grid-column: 2;
}

.contact-form {
  grid-column: 3;
}

.contact-form {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 18px;
  padding: 24px;
}

label {
  color: rgba(247, 248, 243, 0.78);
  display: grid;
  font-size: 13px;
  font-weight: 800;
  gap: 8px;
  text-transform: uppercase;
}

input,
textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
  padding: 15px 14px;
  resize: vertical;
}

input:focus,
textarea:focus {
  border-color: var(--lime);
  outline: 0;
}

.hidden-field {
  display: none;
}

.form-status {
  color: rgba(247, 248, 243, 0.72);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  min-height: 22px;
}

.form-status[data-state="success"] {
  color: var(--lime);
}

.form-status[data-state="error"] {
  color: #ffb4a9;
}

.site-footer {
  align-items: end;
  background: #111715;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 34px;
  justify-content: space-between;
  padding: 40px clamp(18px, 5vw, 72px);
}

.site-footer p,
address {
  color: var(--muted);
  font-style: normal;
}

address {
  display: grid;
  gap: 8px;
  text-align: right;
}

.dashboard-page {
  background: #070908;
  min-height: 100vh;
}

.dashboard-header {
  align-items: center;
  background: rgba(7, 9, 8, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.dashboard-nav {
  align-items: center;
  display: flex;
  gap: 18px;
}

.dashboard-nav a,
.text-button {
  color: rgba(247, 248, 243, 0.78);
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.dashboard-nav a[aria-current="page"],
.dashboard-nav a:hover,
.text-button:hover {
  color: var(--ink);
}

.text-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.dashboard-main {
  display: grid;
  gap: 22px;
  margin: 0 auto;
  max-width: 1220px;
  padding: 64px clamp(18px, 5vw, 72px);
}

.dashboard-hero {
  padding: 0 0 28px;
}

.dashboard-hero h1 {
  font-size: 56px;
  max-width: 860px;
}

.dashboard-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  max-width: 760px;
}

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

.metric-card,
.dashboard-panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-card {
  display: grid;
  gap: 12px;
  padding: 24px;
}

.metric-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  font-size: 48px;
  line-height: 1;
}

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

.dashboard-panel {
  padding: 24px;
}

.dashboard-panel h2 {
  font-size: 28px;
  margin-bottom: 20px;
}

.table-list,
.recommendation-list {
  display: grid;
  gap: 10px;
}

.table-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 14px 0 4px;
}

.table-row span {
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.table-row small {
  color: rgba(247, 248, 243, 0.52);
}

.table-row strong {
  font-size: 18px;
}

.recommendation-card {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.recommendation-card span {
  color: var(--lime);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.recommendation-card h3 {
  font-size: 20px;
  margin: 8px 0;
}

.recommendation-card p,
.empty-state,
.form-note,
.system-message {
  color: var(--muted);
  line-height: 1.65;
}

.auth-panel,
.admin-panel {
  align-self: start;
}

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

.checkbox-label {
  align-items: center;
  display: flex;
  gap: 10px;
  text-transform: none;
}

.checkbox-label input {
  accent-color: var(--lime);
  height: 18px;
  width: 18px;
}

.system-message {
  background: rgba(200, 255, 106, 0.08);
  border: 1px solid rgba(200, 255, 106, 0.24);
  border-radius: var(--radius);
  margin: 0;
  padding: 14px 16px;
}

@media (max-width: 1040px) {
  h1 {
    font-size: 72px;
  }

  h2 {
    font-size: 48px;
  }

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

  .hero-panel {
    margin-top: 48px;
    position: relative;
    right: auto;
    width: 100%;
  }

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

  .car-gallery,
  .vehicle-showcase,
  .detail-gallery,
  .intro-grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .about > div,
  .about > p,
  .contact-copy,
  .contact-form {
    grid-column: auto;
  }

  .feature-car {
    aspect-ratio: 4 / 3;
  }

  .vehicle-photo,
  .detail-photo {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding-left: 20px;
    padding-right: 20px;
  }

  .brand-logo {
    height: 38px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav {
    background: rgba(7, 9, 8, 0.96);
    border-bottom: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    justify-content: start;
    padding: 10px 0 8px;
  }

  .site-header[data-open="true"] .site-nav {
    display: grid;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: 100vh;
    padding-bottom: 28px;
  }

  h1 {
    font-size: 42px;
    max-width: 10ch;
  }

  h2 {
    font-size: 36px;
  }

  .hero-copy {
    font-size: 16px;
    max-width: 31ch;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel span {
    font-size: 34px;
  }

  .feature-car strong {
    font-size: 28px;
  }

  .vehicle-info {
    padding: 18px;
  }

  .gallery-modal {
    padding: 14px;
  }

  .gallery-modal figure {
    max-width: 100%;
  }

  .modal-close {
    right: 14px;
    top: 14px;
  }

  .modal-prev {
    bottom: 16px;
    left: 14px;
  }

  .modal-next {
    bottom: 16px;
    right: 14px;
  }

  .hero-panel,
  .process-grid,
  .service-list div {
    grid-template-columns: 1fr;
  }

  .hero-panel div {
    padding: 16px;
  }

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

  .process-card span {
    margin-bottom: 38px;
  }

  .section-heading {
    align-items: start;
    display: block;
  }

  .feature-car {
    aspect-ratio: 4 / 5;
  }

  .gallery-stack {
    grid-template-rows: none;
  }

  .site-footer {
    align-items: start;
    display: grid;
  }

  address {
    text-align: left;
  }

  .dashboard-header,
  .dashboard-nav,
  .dashboard-columns,
  .admin-layout,
  .stats-grid {
    display: grid;
    grid-template-columns: 1fr;
  }

  .dashboard-hero h1 {
    font-size: 36px;
  }
}
