:root {
  --primary: #1E3A8A;
  --secondary: #F97316;
  --background: #FFFFFF;
  --background-secondary: #F3F4F6;
  --text-primary: #1F2937;
  --text-secondary: #6B7280;
  --luxury: #D97706;
  --budget: #10B981;
  --border: #E5E7EB;
  --skeleton: #D1D5DB;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-strong: 0 18px 40px rgba(31, 41, 55, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--text-primary);
  background: var(--background);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

img,
iframe {
  max-width: 100%;
}

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(229, 231, 235, 0.75);
  backdrop-filter: blur(14px);
}

.navbar {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  color: var(--primary);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text-secondary);
  font-weight: 600;
}

.nav-links a {
  transition: color 0.3s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--secondary);
}

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

.nav-toggle {
  width: 44px;
  height: 44px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--primary);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 16px 72px;
  background: var(--background-secondary);
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: var(--background);
  pointer-events: none;
}

.hero-skeleton {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-skeleton.is-hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(920px, 100%);
  text-align: center;
  animation: heroFade 1s ease forwards;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--secondary);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(3rem, 12vw, 7.8rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0;
}

.tagline {
  margin: 24px auto 0;
  color: var(--text-primary);
  font-size: clamp(1.15rem, 3.4vw, 2rem);
  font-weight: 700;
}

.hero-actions {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.3s ease, background-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-primary {
  color: #fff;
  background: var(--primary);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background: #172f70;
}

.btn-secondary {
  color: #fff;
  background: var(--secondary);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  background: #ea580c;
}

.btn-outline {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(255, 255, 255, 0.82);
}

.btn-outline:hover,
.btn-outline:focus-visible {
  color: #fff;
  background: var(--primary);
}

.section {
  padding: 88px 0;
}

.section-muted {
  background: var(--background-secondary);
}

.section-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.two-column,
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

h2 {
  margin: 0;
  color: var(--text-primary);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
  font-size: 1.15rem;
  line-height: 1.25;
}

p {
  color: var(--text-secondary);
}

.section-note {
  max-width: 560px;
  margin: 12px 0 0;
  font-weight: 700;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.legal-page h1 {
  margin: 24px 0 8px;
  color: var(--primary);
  font-size: clamp(2.2rem, 6vw, 4rem);
  line-height: 1.05;
}

.legal-page h2 {
  margin-top: 32px;
  font-size: clamp(1.35rem, 3vw, 2rem);
}

.legal-page a:not(.logo) {
  color: var(--primary);
  font-weight: 800;
}

.steps-grid,
.car-grid {
  display: grid;
  gap: 22px;
}

.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.step-card,
.car-card,
.contact-panel,
.modal-panel {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
  box-shadow: var(--shadow);
}

.step-card {
  padding: 28px;
}

.step-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--primary);
  font-weight: 800;
}

.step-card a {
  color: var(--primary);
  font-weight: 800;
}

.step-card a[href^="tel"],
.contact-details a[href^="tel"],
address a[href^="tel"] {
  white-space: nowrap;
}

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

.filter-group {
  display: flex;
  gap: 10px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--background);
}

.filter-btn {
  min-width: 82px;
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  color: var(--text-secondary);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
  transition: color 0.3s ease, background-color 0.3s ease, transform 0.3s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.active {
  color: #fff;
  background: var(--primary);
}

.filter-btn:hover,
.filter-btn:focus-visible {
  transform: translateY(-2px);
}

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

.car-card {
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.car-card:hover,
.car-card:focus-within {
  transform: scale(1.05);
  box-shadow: var(--shadow-strong);
}

.car-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  display: block;
  background: var(--background-secondary);
}

.car-body {
  padding: 18px;
}

.card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: capitalize;
}

.badge.budget {
  background: var(--budget);
}

.badge.luxury {
  background: var(--luxury);
}

.detail-button {
  width: 100%;
  margin-top: 16px;
}

.contact-details {
  display: grid;
  gap: 14px;
  margin: 28px 0;
}

.contact-details p {
  margin: 0;
  display: grid;
  gap: 4px;
}

.contact-details strong {
  color: var(--text-primary);
}

.contact-details a {
  color: var(--primary);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.contact-details span {
  color: var(--text-secondary);
}

.contact-panel {
  padding: 18px;
  display: grid;
  gap: 18px;
}

.inquiry-form,
.newsletter-form {
  display: grid;
  gap: 10px;
}

.checkbox-field {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--text-secondary);
  font-size: 0.94rem;
  font-weight: 600;
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
}

.checkbox-field a,
.security-note a {
  color: var(--primary);
  font-weight: 800;
}

label {
  color: var(--text-primary);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--text-primary);
  background: #fff;
}

input:focus,
textarea:focus {
  border-color: var(--primary);
  outline: 3px solid rgba(30, 58, 138, 0.15);
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--primary);
  font-weight: 700;
}

.security-note {
  margin: 0;
  font-size: 0.88rem;
}

.map-frame {
  width: 100%;
  min-height: 260px;
  border: 0;
  border-radius: 8px;
  background: var(--background-secondary);
}

.site-footer {
  padding: 46px 0 26px;
  color: #fff;
  background: var(--primary);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.1fr auto;
  gap: 28px;
  align-items: start;
}

.footer-logo,
.site-footer p,
.site-footer a,
.site-footer span {
  color: #fff;
}

address {
  display: grid;
  gap: 8px;
  font-style: normal;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--secondary);
  transform: translateY(-2px);
}

.social-links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copyright {
  width: min(1180px, calc(100% - 32px));
  margin: 28px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.legal-links {
  width: min(1180px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-links a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.skeleton {
  background: var(--skeleton);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-image {
  width: 100%;
  aspect-ratio: 16 / 10;
}

.skeleton-card {
  padding-bottom: 18px;
}

.skeleton-line {
  height: 16px;
  width: 80%;
  margin: 18px 18px 0;
  border-radius: 999px;
}

.skeleton-line.short {
  width: 48%;
}

.skeleton-line.wide {
  width: 92%;
}

.skeleton-button {
  height: 44px;
  margin: 18px;
  border-radius: 8px;
}

.is-hidden {
  display: none !important;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.55);
  backdrop-filter: blur(8px);
}

.modal-panel {
  position: relative;
  width: min(620px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  padding: 24px;
  animation: modalIn 0.28s ease both;
}

.modal-panel:focus {
  outline: none;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-primary);
  background: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 18px;
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.spec-list div {
  padding: 12px;
  border-radius: 8px;
  background: var(--background-secondary);
}

.spec-list dt {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 700;
}

.spec-list dd {
  margin: 4px 0 0;
  color: var(--text-primary);
  font-weight: 800;
}

.feature-list {
  margin: 10px 0 0;
  padding-left: 20px;
  color: var(--text-secondary);
}

.contact-modal-panel {
  width: min(760px, 100%);
}

.modal-map {
  min-height: 300px;
}

.newsletter-panel {
  width: min(460px, 100%);
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  width: min(560px, calc(100% - 36px));
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.cookie-banner h2 {
  margin: 0 0 8px;
  font-size: 1.15rem;
}

.cookie-banner p {
  margin: 0;
}

.cookie-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cookie-actions a {
  color: var(--primary);
  font-weight: 800;
}

@keyframes heroFade {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 480px) {
  .car-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .car-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .car-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

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

  .two-column,
  .contact-layout,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  .navbar {
    min-height: 66px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: 66px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links.open {
    display: flex;
  }

  .section {
    padding: 64px 0;
  }

  .section-heading-row {
    align-items: stretch;
    flex-direction: column;
  }

  .filter-group {
    width: 100%;
    overflow-x: auto;
  }

  .filter-btn {
    flex: 1;
  }

  .hero-actions .btn {
    width: min(100%, 320px);
  }

  .spec-list {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
