:root {
  --ink: #f7f7f4;
  --muted: #b7b2a7;
  --line: rgba(232, 214, 167, 0.22);
  --paper: #050505;
  --surface: #10100f;
  --surface-strong: #ffffff;
  --accent: #d8b866;
  --accent-dark: #f4df9d;
  --green: #d8b866;
  --shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
  --radius-card: 16px;
  --radius-button: 12px;
  --radius-modal: 18px;
  --radius-pill: 999px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 82% 8%, rgba(216, 184, 102, 0.16), transparent 26%),
    linear-gradient(180deg, #050505, #0d0d0c 52%, #050505);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.day-mode {
  --ink: #171511;
  --muted: #6c6252;
  --line: rgba(150, 114, 44, 0.22);
  --paper: #f5f1e8;
  --surface: #fffaf0;
  --accent: #b9892d;
  --accent-dark: #6f4f17;
  --green: #8a641f;
  --shadow: 0 22px 55px rgba(70, 52, 19, 0.18);
  background:
    radial-gradient(circle at 78% 6%, rgba(216, 184, 102, 0.24), transparent 24%),
    linear-gradient(180deg, #fffaf0, #f2eadc 54%, #fffaf0);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  background: rgba(5, 5, 5, 0.54);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
  backdrop-filter: blur(18px) saturate(140%);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(5, 5, 5, 0.34);
  border-bottom-color: rgba(232, 214, 167, 0.18);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

body.day-mode .site-header {
  background: rgba(255, 250, 240, 0.48);
}

body.day-mode .site-header.is-scrolled {
  background: rgba(255, 250, 240, 0.34);
  border-bottom-color: rgba(150, 114, 44, 0.18);
  box-shadow: 0 18px 42px rgba(70, 52, 19, 0.14);
}

.brand,
.main-nav,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  position: relative;
  gap: 10px;
  font-weight: 800;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(216, 184, 102, 0.22);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 28px rgba(216, 184, 102, 0.1);
  overflow: hidden;
  isolation: isolate;
}

.brand::before {
  position: absolute;
  inset: -1px;
  z-index: -1;
  content: "";
  background: linear-gradient(135deg, rgba(244, 223, 157, 0.44), rgba(216, 184, 102, 0.08));
}

.brand::after {
  position: absolute;
  inset: 1px;
  z-index: -1;
  content: "";
  background: rgba(8, 8, 8, 0.88);
  border-radius: 15px;
}

body.day-mode .brand::after {
  background: rgba(255, 250, 240, 0.88);
}

.brand-logo {
  display: block;
  width: 104px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(216, 184, 102, 0.22));
}

.main-nav {
  gap: clamp(12px, 3vw, 34px);
  color: var(--muted);
  font-weight: 700;
  font-size: 0.95rem;
}

.main-nav a:hover {
  color: var(--ink);
}

.header-menu {
  position: relative;
  margin-left: auto;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  place-items: center;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  border-radius: var(--radius-pill);
}

.menu-panel {
  position: static;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  padding: 6px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.menu-panel.is-open {
  display: flex;
}

.menu-panel a {
  padding: 10px 12px;
  border-radius: var(--radius-button);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
  font-weight: 800;
  white-space: nowrap;
}

.menu-panel a:hover {
  background: rgba(216, 184, 102, 0.14);
}

.theme-toggle {
  width: auto;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius-button);
  color: #050505;
  background: linear-gradient(135deg, #fff3c4, var(--accent));
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  text-align: left;
}

body.day-mode .menu-panel {
  background: rgba(255, 250, 240, 0.64);
}

body.day-mode .menu-panel a {
  color: #171511;
}

.menu-panel a[href^="tel"] {
  color: #050505;
  background: linear-gradient(135deg, #fff3c4, var(--accent));
}

body.day-mode .menu-toggle {
  background: rgba(185, 137, 45, 0.1);
}

body.day-mode .menu-toggle span {
  background: #171511;
}

.header-call,
.button {
  border: 0;
  border-radius: var(--radius-button);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-call,
.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

body.day-mode .button.secondary {
  color: #171511;
  background: rgba(255, 255, 255, 0.62);
}

.button.primary,
.filter-button {
  color: #050505;
  background: linear-gradient(135deg, #fff3c4, var(--accent) 56%, #9e7935);
  box-shadow: 0 14px 34px rgba(216, 184, 102, 0.26);
}

.button.primary:hover,
.filter-button:hover {
  background: linear-gradient(135deg, #fff7d8, var(--accent-dark));
}

.hero {
  position: relative;
  min-height: clamp(620px, 88vh, 820px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  align-items: center;
  gap: clamp(20px, 5vw, 74px);
  padding: clamp(92px, 10vw, 130px) clamp(18px, 6vw, 84px) clamp(86px, 9vw, 124px);
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.62) 48%, rgba(0, 0, 0, 0.88)),
    url("assets/hyundai-venue-luxury.webp");
  background-position: center;
  background-size: cover;
  filter: saturate(0.72) contrast(1.08) brightness(0.82);
}

body.day-mode .hero-media {
  background-image:
    linear-gradient(90deg, rgba(255, 250, 240, 0.9), rgba(255, 250, 240, 0.36) 48%, rgba(255, 250, 240, 0.82)),
    url("assets/hyundai-venue-luxury.webp");
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 230px;
  content: "";
  background: linear-gradient(0deg, #050505, rgba(5, 5, 5, 0));
}

body.day-mode .hero::after {
  background: linear-gradient(0deg, #fffaf0, rgba(255, 250, 240, 0));
}

.hero-content {
  width: min(720px, calc(100% - 36px));
  margin: 0;
  color: white;
}

body.day-mode .hero-content,
body.day-mode .hero-copy {
  color: #171511;
}

body.day-mode .hero-copy {
  color: rgba(23, 21, 17, 0.76);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-dark);
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(3.1rem, 9vw, 7.3rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-shadow: 0 22px 55px rgba(0, 0, 0, 0.5);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.08rem;
}

.hero-copy {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1.05rem, 2.2vw, 1.32rem);
  line-height: 1.55;
}

.hero-visual {
  position: relative;
  min-height: 430px;
  perspective: 1100px;
  --tilt-x: 6deg;
  --tilt-y: -14deg;
}

.mustang-card {
  position: absolute;
  inset: 18px 0 40px;
  border: 1px solid rgba(216, 184, 102, 0.32);
  border-radius: var(--radius-card);
  background-image:
    linear-gradient(180deg, rgba(5, 5, 5, 0.04), rgba(5, 5, 5, 0.2)),
    url("assets/buick-encore-luxury.webp");
  background-position: center;
  background-size: cover;
  box-shadow:
    0 42px 90px rgba(0, 0, 0, 0.68),
    0 0 0 1px rgba(216, 184, 102, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: rotateY(var(--tilt-y)) rotateX(var(--tilt-x)) translateZ(16px);
  transform-style: preserve-3d;
  animation: mustangFloat 5.2s ease-in-out infinite;
  transition: transform 180ms ease-out;
}

body.day-mode .mustang-card {
  box-shadow:
    0 34px 78px rgba(82, 58, 18, 0.28),
    0 0 0 1px rgba(185, 137, 45, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.mustang-card::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: var(--radius-card);
  transform: translateZ(38px);
}

.mustang-card::after {
  position: absolute;
  inset: auto 12% -46px;
  height: 80px;
  content: "";
  background: radial-gradient(ellipse, rgba(216, 184, 102, 0.28), rgba(255, 255, 255, 0) 68%);
  filter: blur(10px);
  transform: rotateX(72deg);
}

.hero-price {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  color: #050505;
  background: linear-gradient(135deg, #fff4c8, #d8b866);
  border-radius: var(--radius-button);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 900;
  box-shadow: var(--shadow);
  transform: translateZ(72px);
  animation: priceFloat 5.2s ease-in-out infinite;
}

@keyframes mustangFloat {
  0%,
  100% {
    transform: rotateY(var(--tilt-y)) rotateX(var(--tilt-x)) translate3d(0, 0, 16px);
  }

  50% {
    transform: rotateY(calc(var(--tilt-y) + 4deg)) rotateX(calc(var(--tilt-x) - 2deg))
      translate3d(0, -14px, 34px);
  }
}

@keyframes priceFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 72px);
  }

  50% {
    transform: translate3d(-8px, -10px, 92px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mustang-card,
  .hero-price {
    animation: none;
  }
}

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

.search-band {
  width: min(1180px, calc(100% - 36px));
  margin: -48px auto 0;
  position: relative;
  z-index: 2;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

select,
input,
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  color: #050505;
  font: inherit;
  padding: 0 12px;
}

textarea {
  padding: 12px;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 112px auto;
}

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

.section-note {
  flex: 1 0 100%;
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.car-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(216, 184, 102, 0.045)),
    var(--surface);
  border: 1px solid rgba(216, 184, 102, 0.28);
  border-radius: var(--radius-card);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  transform: rotateY(-5deg) rotateX(3deg);
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

body.day-mode .car-card,
body.day-mode .rule-item,
body.day-mode .empty-state {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(216, 184, 102, 0.12)),
    var(--surface);
}

.car-card:hover {
  border-color: rgba(244, 223, 157, 0.5);
  box-shadow: 0 34px 86px rgba(0, 0, 0, 0.52);
  transform: rotateY(0deg) rotateX(0deg) translateY(-4px);
}

.car-image-wrap {
  position: relative;
  overflow: hidden;
}

.car-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
}

.car-image-wrap::after {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  content: "";
  background: linear-gradient(0deg, rgba(5, 5, 5, 0.84), rgba(5, 5, 5, 0));
}

.discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 1;
  padding: 8px 10px;
  color: #050505;
  background: linear-gradient(135deg, #fff3c4, var(--accent));
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 950;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.32);
}

.car-body {
  padding: 18px;
  transform: translateZ(18px);
}

.car-meta,
.car-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.car-meta {
  margin-bottom: 10px;
}

.tag {
  padding: 6px 9px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 900;
}

.status-tag {
  color: #132414;
  background: linear-gradient(135deg, #dcf7d7, #91d989);
}

.car-title {
  margin-bottom: 8px;
  font-size: 1.16rem;
}

.price {
  color: var(--accent-dark);
  font-size: 1.28rem;
  font-weight: 900;
}

.rent-car-button {
  width: 100%;
  margin-top: 14px;
}

.car-specs {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(216, 184, 102, 0.07));
  color: var(--muted);
  text-align: center;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.trust-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(216, 184, 102, 0.05));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.trust-grid span {
  display: inline-grid;
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  place-items: center;
  color: #050505;
  background: linear-gradient(135deg, #fff3c4, var(--accent));
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 950;
}

.trust-grid p {
  color: var(--muted);
  line-height: 1.55;
}

body.day-mode .trust-grid article {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(216, 184, 102, 0.12)),
    var(--surface);
}

.services {
  width: 100%;
  margin-bottom: 0;
  padding: 96px clamp(18px, 5vw, 64px);
  background:
    radial-gradient(circle at 20% 0, rgba(216, 184, 102, 0.12), transparent 28%),
    #0c0c0c;
  color: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body.day-mode .services {
  background:
    radial-gradient(circle at 20% 0, rgba(216, 184, 102, 0.2), transparent 28%),
    #fff7e8;
  color: #171511;
}

body.day-mode .service-grid article {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(216, 184, 102, 0.12));
}

body.day-mode .service-grid p {
  color: rgba(23, 21, 17, 0.68);
}

.services .section-heading,
.service-grid {
  width: min(1180px, 100%);
  margin-left: auto;
  margin-right: auto;
}

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

.service-grid article {
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(216, 184, 102, 0.04));
}

.service-grid span {
  display: inline-block;
  margin-bottom: 28px;
  color: var(--accent-dark);
  font-weight: 900;
}

.service-grid p {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.55;
}

.rules-list {
  display: grid;
  gap: 10px;
  max-width: 720px;
}

.rule-item {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(216, 184, 102, 0.045));
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  color: var(--muted);
  overflow: hidden;
}

.rule-item summary {
  display: grid;
  position: relative;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 15px 16px;
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.rule-item summary::-webkit-details-marker {
  display: none;
}

.rule-item summary::after {
  content: "...";
  color: var(--accent-dark);
  font-size: 1.25rem;
  letter-spacing: 0;
  transition: transform 180ms ease;
}

.rule-item[open] summary::after {
  transform: rotate(90deg);
}

.rule-item summary small {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.rule-item p {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 560px) {
  .rule-item summary {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .rule-item summary::after {
    position: absolute;
    right: 16px;
  }
}

.reviews-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}

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

.review-card,
.review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07), rgba(216, 184, 102, 0.045));
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.18);
}

.review-card {
  padding: 20px;
  min-height: 220px;
  animation: reviewFade 420ms ease both;
}

.review-card p {
  color: var(--muted);
  line-height: 1.55;
  display: -webkit-box;
  min-height: 98px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.review-card strong {
  color: var(--ink);
}

.stars {
  margin-bottom: 12px;
  color: var(--accent-dark);
  font-size: 1.08rem;
  letter-spacing: 0;
}

.rating-picker {
  display: flex;
  gap: 2px;
  width: fit-content;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.rating-star {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition:
    transform 140ms ease,
    background 140ms ease,
    color 140ms ease;
}

.rating-star:hover,
.rating-star.is-active {
  color: var(--accent-dark);
  background: rgba(216, 184, 102, 0.12);
}

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

.review-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 20px;
}

.review-form h3 {
  margin-bottom: 4px;
}

.review-form textarea {
  min-height: 130px;
  resize: vertical;
}

.delete-review-button[hidden] {
  display: none;
}

.review-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

body.day-mode .review-card,
body.day-mode .review-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(216, 184, 102, 0.12)),
    var(--surface);
}

body.day-mode .rating-picker {
  background: rgba(185, 137, 45, 0.06);
}

body.day-mode .rating-star {
  color: rgba(23, 21, 17, 0.26);
  background: transparent;
}

body.day-mode .rating-star:hover,
body.day-mode .rating-star.is-active {
  color: var(--accent-dark);
  background: rgba(216, 184, 102, 0.2);
}

@keyframes reviewFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.contact-band {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 34px;
  width: min(1180px, calc(100% - 36px));
  margin: 112px auto;
  align-items: center;
}

.contact-band p {
  color: var(--muted);
  line-height: 1.6;
}

.open-request-form {
  width: fit-content;
  justify-self: end;
}

.form-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 20, 23, 0.68);
}

.form-modal.is-hidden,
.success-modal.is-hidden {
  display: none;
}

.success-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(5, 5, 5, 0.74);
  backdrop-filter: blur(14px);
}

.success-panel {
  width: min(520px, 100%);
  padding: 34px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  background:
    radial-gradient(circle at 50% 0, rgba(216, 184, 102, 0.18), transparent 36%),
    #111;
  box-shadow: var(--shadow);
}

body.day-mode .success-panel {
  background:
    radial-gradient(circle at 50% 0, rgba(216, 184, 102, 0.22), transparent 36%),
    #fffaf0;
}

.success-mark {
  display: inline-grid;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  place-items: center;
  color: #081108;
  background: linear-gradient(135deg, #fff3c4, var(--accent));
  border-radius: var(--radius-pill);
  font-size: 1.6rem;
  font-weight: 950;
}

.success-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.invoice-line {
  padding: 12px;
  border: 1px solid rgba(216, 184, 102, 0.24);
  border-radius: var(--radius-button);
  background: rgba(216, 184, 102, 0.08);
}

.invoice-line strong {
  color: var(--accent-dark);
}

.success-whatsapp a,
.submit-whatsapp-help a {
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 28px;
  background:
    radial-gradient(circle at 100% 0, rgba(216, 184, 102, 0.12), transparent 35%),
    #111;
  border: 1px solid var(--line);
  border-radius: var(--radius-modal);
  box-shadow: var(--shadow);
}

body.day-mode .modal-panel {
  background:
    radial-gradient(circle at 100% 0, rgba(216, 184, 102, 0.2), transparent 35%),
    #fffaf0;
}

.modal-panel h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
}

.form-note {
  color: var(--muted);
  line-height: 1.45;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-button);
  background: #fff;
  color: #050505;
  cursor: pointer;
  font: inherit;
  font-size: 1.45rem;
  line-height: 1;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.full-span,
.contact-form input[name="phone"],
.contact-form select,
.contact-form input[name="insuranceNumber"],
.contact-form button {
  grid-column: 1 / -1;
}

.field-error,
.form-status,
.file-preview {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.35;
}

.field-error {
  min-height: 18px;
  color: #ffb4a9;
}

body.day-mode .field-error {
  color: #9b1c12;
}

.form-status {
  min-height: 20px;
  color: var(--muted);
}

.form-status.success {
  color: #9fe3b1;
}

.form-status.error {
  color: #ffb4a9;
}

body.day-mode .form-status.success {
  color: #1f6a35;
}

body.day-mode .form-status.error {
  color: #9b1c12;
}

.submit-whatsapp-help {
  padding: 14px;
  border: 1px solid rgba(216, 184, 102, 0.28);
  border-radius: var(--radius-card);
  background: rgba(216, 184, 102, 0.08);
}

.submit-whatsapp-help.is-hidden {
  display: none;
}

.submit-whatsapp-help strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.submit-whatsapp-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

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

.privacy-note {
  padding: 14px;
  border: 1px solid rgba(216, 184, 102, 0.28);
  border-radius: var(--radius-card);
  background: rgba(216, 184, 102, 0.08);
}

.privacy-note strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.privacy-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.upload-field {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.05);
}

.upload-field input[type="file"] {
  min-height: auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.88);
}

.file-preview {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-form button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.35);
  opacity: 0.72;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  color: #fff;
  font-weight: 800;
}

body.day-mode .footer-links {
  color: #171511;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.footer-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.footer-links a:hover {
  color: var(--accent-dark);
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-visual {
    min-height: 320px;
    order: -1;
  }

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

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

  .contact-band {
    grid-template-columns: 1fr;
  }

  .reviews-layout,
  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .open-request-form {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .site-header {
    align-items: center;
  }

  .main-nav {
    display: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    min-width: min(280px, calc(100vw - 36px));
    padding: 8px;
    background: rgba(12, 12, 12, 0.96);
    box-shadow: var(--shadow);
  }

  .menu-panel.is-open {
    display: grid;
  }

  .menu-panel a {
    padding: 12px;
    color: #fff;
  }

  body.day-mode .menu-panel {
    background: rgba(255, 250, 240, 0.98);
  }

  .theme-toggle {
    width: 100%;
    text-align: left;
  }

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

  .section,
  .contact-band {
    margin: 76px auto;
  }

  .services {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .hero-media {
    background-position: 58% center;
  }

  .hero-content {
    width: 100%;
  }

  .hero-visual {
    min-height: 240px;
  }

  .mustang-card {
    inset: 0 0 34px;
    transform: rotateY(-8deg) rotateX(4deg) translateZ(8px);
  }

  .search-grid,
  .car-grid,
  .trust-grid,
  .service-grid,
  .upload-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .car-card {
    transform: none;
  }

  .section-heading {
    display: block;
  }

  .contact-form input[name="phone"],
  .contact-form select,
  .contact-form input[name="insuranceNumber"],
  .contact-form button {
    grid-column: auto;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
