:root {
  --black: #0b0b0b;
  --charcoal: #1a1a1a;
  --graphite: #252525;
  --text: #f3f3f3;
  --muted: #bbbbbb;
  --gold: #c9a34e;
  --gold-soft: #e0c37a;
  --shadow: 0 16px 35px rgba(0, 0, 0, 0.28);
  --radius-lg: 20px;
  --radius-md: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at 5% 8%, #202020, #0b0b0b 40%), linear-gradient(120deg, #0b0b0b 25%, #171717 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.section-title {
  font-size: clamp(1.7rem, 2.9vw, 2.7rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 0.75rem;
}

.section-subtitle {
  color: var(--muted);
  max-width: 750px;
  margin-bottom: 2rem;
}

.cars-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.cars-header .section-title {
  margin-bottom: 0;
}

.cars-sort-form {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 180px;
  margin-left: auto;
}

.cars-sort-form label {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.cars-sort-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border-radius: 999px;
  border: 1px solid rgba(201, 163, 78, 0.45);
  background-color: rgba(18, 18, 18, 0.95);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23d6b15f' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  color: #f4f6fa;
  padding: 0.68rem 2.35rem 0.68rem 0.95rem;
  font: inherit;
  outline: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.cars-sort-form select option {
  color: #111;
}

.cars-sort-form select:focus {
  border-color: rgba(214, 177, 95, 0.9);
  box-shadow: 0 0 0 3px rgba(214, 177, 95, 0.18);
}

.accent {
  color: var(--gold-soft);
}

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1100;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, backdrop-filter 0.3s ease;
  background: rgba(10, 10, 10, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.site-header.scrolled {
  background: rgba(11, 11, 11, 0.95);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.navbar {
  padding: 0.95rem 0;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  color: #fff;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, rgba(201, 163, 78, 0.26), rgba(201, 163, 78, 0.04));
  border: 1px solid rgba(201, 163, 78, 0.45);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
  margin-left: 0.55rem;
  margin-right: 0.55rem;
  position: relative;
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.28s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link:focus-visible::after {
  width: 100%;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.45);
}

.navbar-toggler-icon {
  filter: invert(1);
}

.btn-gold,
.btn-outline-light-gold {
  border-radius: 999px;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
}

.btn-gold {
  background: linear-gradient(135deg, #bb943f, #d6b15f);
  border: 0;
  color: #111;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #c9a34e, #e4c778);
}

.btn-outline-light-gold {
  border: 1px solid rgba(201, 163, 78, 0.7);
  color: #fff;
}

.btn-outline-light-gold:hover {
  background: rgba(201, 163, 78, 0.12);
  color: #fff;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.lang-link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  color: #ddd;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  padding: 0.28rem 0.5rem;
  min-width: 36px;
  text-align: center;
  transition: all 0.2s ease;
}

.lang-link:hover {
  border-color: rgba(201, 163, 78, 0.8);
  color: #fff;
}

.lang-link.active {
  color: #0f0f0f;
  background: var(--gold);
  border-color: var(--gold);
}

.hero {
  min-height: 40vh;
  padding: 8.5rem 0 4.5rem;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 7, 7, 0.75), rgba(7, 7, 7, 0.55), rgba(12, 12, 12, 0.82)), radial-gradient(circle at 78% 28%, rgba(201, 163, 78, 0.2), transparent 50%);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.hero-content {
  position: relative;
  max-width: 760px;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 4.45rem);
  line-height: 1.12;
  margin-bottom: 0.9rem;
  letter-spacing: 0.3px;
}

.hero p {
  color: #d8d8d8;
  font-size: clamp(1rem, 1.9vw, 1.3rem);
  margin-bottom: 2rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.features {
  padding: 5.5rem 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.feature-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-md);
  padding: 1.4rem 1.2rem;
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(201, 163, 78, 0.5);
}

.feature-card i {
  color: var(--gold);
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.cars {
  padding: 2rem 0 5rem;
}

.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.4rem;
}

.car-card {
  background: linear-gradient(180deg, rgba(29, 29, 29, 0.96), rgba(16, 16, 16, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
  box-shadow: var(--shadow);
  height: 100%;
}

.car-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 38px rgba(0, 0, 0, 0.44);
  border-color: rgba(201, 163, 78, 0.4);
}

.car-media {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.car-media-wrap {
  position: relative;
}

.car-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.car-badge i {
  color: var(--gold-soft);
}

.car-body {
  padding: 1.15rem;
}

.car-title {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}

.car-price {
  font-size: 1.05rem;
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.price-city {
  color: var(--muted);
  font-weight: 500;
}

.car-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.spec {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem;
  text-align: center;
  font-size: 0.83rem;
  color: #dfdfdf;
}

.spec span {
  color: var(--muted);
  display: block;
  font-size: 0.72rem;
}

.car-actions {
  display: flex;
  gap: 0.65rem;
}

.gomore-btn {
  flex: 1;
  border-radius: 10px;
  font-weight: 600;
  background: rgba(201, 163, 78, 0.17);
  border: 1px solid rgba(201, 163, 78, 0.62);
  color: #fff;
  transition: background-color 0.2s ease;
}

.gomore-btn:hover {
  background: rgba(201, 163, 78, 0.32);
  color: #fff;
}

.about {
  padding: 3rem 0 5rem;
}

.about-box {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow);
}

.about-media {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.about-content {
  padding: 2rem;
}

.about-content p {
  color: #dadada;
  margin-bottom: 0.85rem;
}

.about-rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.2rem;
  margin-bottom: 0;
  padding: 0.52rem 0.82rem;
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(201, 163, 78, 0.3), rgba(201, 163, 78, 0.12));
  border: 1px solid rgba(201, 163, 78, 0.5);
}

.about-rating-star {
  color: #ffd980;
  font-size: 1rem;
  line-height: 1;
}

.hp-logo {
  margin-top: 1rem;
  max-height: 60px;
  width: auto;
  background: #fff;
  border-radius: 10px;
  padding: 0.4rem 0.6rem;
}

.why {
  background: linear-gradient(140deg, #111, #1a1a1a);
  padding: 5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.why-card {
  padding: 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.why-card:hover {
  transform: translateY(-4px);
  border-color: rgba(201, 163, 78, 0.6);
}

.why-card i {
  color: var(--gold);
  margin-right: 0.35rem;
}

.terms {
  padding: 3rem 0 1.2rem;
}

.terms-card {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(201, 163, 78, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
}

.terms-card .section-subtitle {
  margin-bottom: 1rem;
}

.terms-source {
  margin: 0 0 1rem;
  color: #d9d9d9;
}

.terms-source a {
  color: var(--gold-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.terms-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.terms-focus {
  border-radius: 12px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.34);
}

.terms-focus h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.terms-focus p {
  margin: 0;
  color: #e6e6e6;
}

.terms-focus-return {
  border-color: rgba(214, 177, 95, 0.5);
  background: linear-gradient(145deg, rgba(214, 177, 95, 0.15), rgba(0, 0, 0, 0.34));
}

.terms-focus-fines {
  border-color: rgba(224, 96, 96, 0.56);
  background: linear-gradient(145deg, rgba(224, 96, 96, 0.18), rgba(0, 0, 0, 0.34));
}

.terms-list {
  margin: 0;
  padding-left: 1.25rem;
  color: #e8e8e8;
  display: grid;
  gap: 0.55rem;
}

.terms-list li::marker {
  color: var(--gold-soft);
}

@media (max-width: 900px) {
  .terms-focus-grid {
    grid-template-columns: 1fr;
  }
}

.gallery {
  padding: 5rem 0;
}

.masonry {
  columns: 3 240px;
  column-gap: 1rem;
}

.masonry img {
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  break-inside: avoid;
  transition: transform 0.24s ease;
}

.masonry img:hover {
  transform: scale(1.015);
}

.partners {
  padding: 1.4rem 0 1.1rem;
}

.partners-card {
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.partner-item {
  min-height: 96px;
  border-radius: 14px;
  border: 1px solid rgba(201, 163, 78, 0.3);
  background: rgba(0, 0, 0, 0.33);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.partner-item:hover {
  transform: translateY(-2px);
  border-color: rgba(201, 163, 78, 0.6);
  background: rgba(0, 0, 0, 0.45);
}

.partner-item img {
  max-width: 180px;
  max-height: 48px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.partner-fallback {
  font-weight: 700;
  font-size: 1.06rem;
  color: #f1f1f1;
  letter-spacing: 0.02em;
}

@media (max-width: 700px) {
  .partners-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

.contact-cta {
  padding: 3rem 0 5rem;
}

.cta-panel {
  border-radius: var(--radius-lg);
  padding: 2.3rem;
  background: linear-gradient(120deg, rgba(201, 163, 78, 0.18), rgba(201, 163, 78, 0.06));
  border: 1px solid rgba(201, 163, 78, 0.4);
  box-shadow: var(--shadow);
}

.cta-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 1.3rem 0;
}

.cta-item {
  background: rgba(0, 0, 0, 0.35);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.9rem;
}

.cta-info {
  display: grid;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.cta-info-row {
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-info-row strong {
  color: #fff;
  font-size: 0.95rem;
}

.cta-info-row p {
  margin: 0;
  color: #dedede;
  line-height: 1.55;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: #060606;
  padding: 2.2rem 0;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links,
.social-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-links a,
.social-links a {
  color: #d2d2d2;
  font-size: 0.95rem;
}

.footer-links a:hover,
.social-links a:hover {
  color: var(--gold-soft);
}

.modal-content {
  background: linear-gradient(180deg, #1a1a1a, #101010);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-close {
  filter: invert(1);
}

.modal-gallery {
  margin-bottom: 1rem;
}

.modal-main-image {
  width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.modal-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.3rem;
}

.modal-thumbs img {
  width: 78px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
}

.modal-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1rem 0;
}

.modal-meta .spec {
  font-size: 0.82rem;
}

.no-cars {
  border: 1px dashed rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  padding: 1.4rem;
  color: #cecece;
  text-align: center;
}

@media (max-width: 1199px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .why-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  .hero {
    min-height: 42vh;
    padding: 7.5rem 0 3.5rem;
  }

  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-media {
    height: 210px;
  }

  .cars-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .cars-sort-form {
    width: 100%;
    min-width: 0;
  }

  .modal-meta,
  .car-specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-wrap {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 575px) {
  .features-grid,
  .why-grid,
  .modal-meta,
  .car-specs {
    grid-template-columns: 1fr;
  }
}
