:root {
  --black: #020202;
  --panel: #080808;
  --line: #d79b00;
  --gold: #f3bd25;
  --red: #ed1117;
  --dark-red: #9b0003;
  --text: #f7f7f7;
  --muted: #cfcfcf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(170, 0, 0, .16), transparent 24rem),
    linear-gradient(180deg, #050505 0%, #000 54%, #060606 100%);
}

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

button,
select {
  font: inherit;
}

select,
input,
textarea {
  border: 1px solid var(--line);
  color: #fff;
  background: #050505;
  color-scheme: dark;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--gold);
  outline: 2px solid rgba(243, 189, 37, .28);
  outline-offset: 2px;
  box-shadow: 0 0 0 3px rgba(237, 17, 23, .16);
}

select option,
select optgroup {
  color: #fff;
  background: #050505;
}

select option:checked {
  color: #050505;
  background: var(--gold);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 260px 1fr;
  align-items: center;
  min-height: 112px;
  padding: 0 64px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, .94);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .55);
}

.logo {
  display: flex;
  align-items: center;
  width: 240px;
  height: 104px;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 36px;
}

.main-nav a {
  position: relative;
  padding: 35px 0 32px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  transition: color .22s ease;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 23px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--red);
  transform: scaleX(0);
  transition: transform .22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
}

.main-nav a.nav-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
}

.main-nav a.nav-whatsapp:hover {
  color: #25d366;
}

.main-nav a.nav-whatsapp::after {
  background: #25d366;
}

.main-nav a:hover::after,
.main-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 7, .88);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  border-radius: 999px;
  background: #fff;
  transition: transform .24s ease, opacity .18s ease, background .2s ease;
}

.menu-toggle:hover span {
  background: var(--gold);
}

.nav-toggle:focus-visible + .menu-toggle {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 8px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 7, 7, .88);
  font-weight: 900;
  text-transform: uppercase;
}

.phone-link strong,
.phone-link small {
  display: block;
}

.phone-link strong {
  font-size: 17px;
  letter-spacing: .2px;
}

.phone-link small {
  margin-top: 2px;
  color: #f1f1f1;
  font-size: 12px;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.hero {
  position: relative;
  min-height: 390px;
  padding: 64px 64px 28px;
  overflow: hidden;
  background:
    linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .96) 24%, rgba(0, 0, 0, .45) 66%, rgba(0, 0, 0, .85) 100%),
    radial-gradient(circle at 73% 4%, rgba(242, 0, 0, .65), transparent 25rem),
    linear-gradient(125deg, #070707, #111 35%, #030303);
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  right: -8%;
  top: 70px;
  width: 75%;
  height: 4px;
  background: linear-gradient(90deg, transparent, #ff1019 20%, #fff 32%, #ff1118 46%, transparent);
  box-shadow: 0 0 18px #ff1019;
  transform: rotate(-7deg);
}

.hero::after {
  left: 27%;
  bottom: 30px;
  width: 160px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #d40000, #ff2d24);
  box-shadow: 0 0 22px #c90000;
  transform: rotate(-62deg);
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: 390px;
}

.hero-copy p:first-child {
  margin: 0 0 4px;
  color: #f5f5f5;
  font-size: 31px;
  font-style: italic;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(3rem, 5vw, 4.55rem);
  line-height: .9;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
  text-shadow: 0 7px 0 rgba(114, 74, 0, .42);
}

.hero-copy span:not(.whatsapp-icon) {
  display: block;
  width: 82px;
  height: 4px;
  margin: 15px 0 12px;
  background: var(--red);
}

.hero-text {
  max-width: 350px;
  margin: 0 0 23px;
  color: #f2f2f2;
  font-size: 18px;
  line-height: 1.25;
}

.primary-button,
.sell-banner a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 25px;
  border-radius: 6px;
  color: #fff;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fb1d22, #c50008);
  box-shadow: 0 12px 24px rgba(170, 0, 0, .34);
  transition: transform .2s ease, filter .2s ease;
}

.primary-button:hover,
.sell-banner a:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.hero-cars {
  position: absolute;
  right: 72px;
  bottom: 28px;
  left: 420px;
  z-index: 2;
  height: 285px;
}

.car {
  position: absolute;
  bottom: 0;
  object-fit: cover;
  border-radius: 50% 50% 12px 12px / 10% 10% 8px 8px;
  filter: saturate(1.05) contrast(1.13) drop-shadow(0 24px 28px rgba(0, 0, 0, .85));
  mix-blend-mode: screen;
}

.car-left {
  left: 4%;
  width: 34%;
  height: 218px;
}

.car-center {
  left: 27%;
  z-index: 3;
  width: 38%;
  height: 260px;
}

.car-right {
  right: 0;
  width: 39%;
  height: 235px;
}

.quality-badge {
  position: absolute;
  top: 34px;
  right: 68px;
  z-index: 4;
  width: 126px;
  min-height: 136px;
  padding: 21px 10px 12px;
  clip-path: polygon(50% 0, 100% 13%, 100% 66%, 50% 100%, 0 66%, 0 13%);
  color: #fff;
  text-align: center;
  text-transform: uppercase;
  background: linear-gradient(180deg, #151515, #060606);
  border: 4px solid var(--gold);
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .65));
}

.quality-badge strong {
  font-size: 14px;
  line-height: 1.16;
  font-style: italic;
}

.quality-badge span {
  display: block;
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
}

.search-panel {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: 230px repeat(5, minmax(130px, 1fr)) 210px;
  gap: 20px;
  align-items: center;
  width: calc(100% - 128px);
  margin: -1px auto 25px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: rgba(3, 3, 3, .96);
}

.search-title {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--red);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.magnifier {
  position: relative;
  width: 21px;
  height: 21px;
  border: 3px solid var(--red);
  border-radius: 50%;
}

.magnifier::after {
  position: absolute;
  right: -9px;
  bottom: -8px;
  width: 12px;
  height: 3px;
  content: "";
  background: var(--red);
  transform: rotate(45deg);
}

.search-panel label {
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding: 8px 13px 7px;
  border: 1px solid #3a3a3a;
  border-radius: 4px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  background: #090909;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.search-panel label:hover,
.search-panel label:focus-within {
  border-color: var(--line);
  background: #050505;
  box-shadow: 0 0 0 2px rgba(215, 155, 0, .16), inset 0 0 0 1px rgba(237, 17, 23, .18);
}

.search-panel select {
  width: 100%;
  min-height: 28px;
  border: 0;
  border-radius: 3px;
  color: #fff;
  font-size: 13px;
  background: #050505;
  outline: 0;
  cursor: pointer;
}

.search-panel select:hover {
  color: var(--gold);
}

.search-panel select:focus {
  color: #fff;
  outline: 0;
  box-shadow: none;
}

.search-panel select option {
  color: #fff;
  background: #050505;
}

.search-panel select option:checked {
  color: #050505;
  background: var(--gold);
}

.search-panel button {
  min-height: 50px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  background: linear-gradient(180deg, #ee171b, #b90006);
  cursor: pointer;
}

.featured {
  position: relative;
  margin: 0 64px;
  padding: 0 22px 18px;
  border-right: 1px solid #333;
  border-left: 1px solid #333;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 17px;
}

.section-heading h2 {
  position: relative;
  margin: 0;
  font-size: 29px;
  line-height: 1;
  font-style: italic;
  font-weight: 950;
  text-transform: uppercase;
}

.section-heading h2::after {
  position: absolute;
  bottom: -11px;
  left: 0;
  width: 96px;
  height: 4px;
  content: "";
  background: var(--red);
}

.section-heading h2 span {
  color: var(--red);
}

.section-heading a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  text-transform: uppercase;
}

.section-heading a span {
  color: var(--red);
  font-size: 23px;
}

.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(190px, 1fr));
  gap: 20px;
}

.vehicle-card {
  overflow: hidden;
  border: 1px solid #555;
  border-radius: 6px;
  background: linear-gradient(180deg, #161616 0%, #050505 76%);
  box-shadow: 0 15px 28px rgba(0, 0, 0, .42);
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.vehicle-card:hover {
  border-color: var(--line);
  box-shadow: 0 21px 34px rgba(0, 0, 0, .62), 0 0 18px rgba(214, 0, 0, .18);
  transform: translateY(-5px);
}

.vehicle-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.vehicle-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.06) saturate(.95);
  transition: transform .28s ease;
}

.vehicle-card:hover .vehicle-image img {
  transform: scale(1.06);
}

.year,
.owner {
  position: absolute;
  border-radius: 5px;
  color: #fff;
  font-weight: 900;
  background: #101010;
}

.year {
  top: 8px;
  left: 9px;
  padding: 4px 10px;
  border: 1px solid var(--red);
  font-size: 14px;
}

.owner {
  right: 8px;
  bottom: 8px;
  padding: 5px 10px;
  font-size: 11px;
  text-transform: uppercase;
  background: linear-gradient(180deg, #e0181d, #b60006);
}

.vehicle-card h3,
.vehicle-card p,
.vehicle-card ul,
.vehicle-card strong {
  margin-right: 14px;
  margin-left: 14px;
}

.vehicle-card h3 {
  margin-top: 11px;
  margin-bottom: 2px;
  font-size: 18px;
  line-height: 1.05;
  text-transform: uppercase;
}

.vehicle-card p {
  margin-top: 0;
  margin-bottom: 9px;
  color: #f1f1f1;
  font-size: 12px;
  text-transform: uppercase;
}

.vehicle-card ul {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 0;
  color: #e6e6e6;
  font-size: 12px;
  list-style: none;
}

.vehicle-card li::before {
  margin-right: 4px;
  color: #fff;
  content: "⌁";
}

.vehicle-card strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red);
  font-size: 22px;
  text-align: center;
}

.slider-control {
  position: absolute;
  top: 46%;
  z-index: 3;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 5px;
  color: #fff;
  font-size: 35px;
  line-height: 1;
  background: linear-gradient(180deg, #f11b20, #b90005);
  cursor: pointer;
}

.slider-control.prev {
  left: -34px;
}

.slider-control.next {
  right: -34px;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 6px 64px 11px;
  padding: 13px 28px;
  border: 1px solid #555;
  border-radius: 7px;
  background: rgba(7, 7, 7, .93);
}

.benefits article {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 18px;
  align-items: center;
  min-height: 88px;
  padding: 0 26px;
  border-right: 1px solid #333;
}

.benefits article:last-child {
  border-right: 0;
}

.benefits article > span {
  color: var(--line);
  font-size: 50px;
  font-weight: 800;
  text-align: center;
}

.benefits h3 {
  margin: 0 0 9px;
  font-size: 18px;
  line-height: 1;
  font-style: italic;
  text-transform: uppercase;
}

.benefits em {
  display: block;
  color: var(--red);
  font-style: italic;
}

.benefits p {
  margin: 0;
  color: #d7d7d7;
  font-size: 12px;
  line-height: 1.25;
  text-transform: uppercase;
}

.sell-banner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 330px;
  align-items: center;
  gap: 34px;
  min-height: 100px;
  padding: 18px 260px;
  border-top: 1px solid var(--line);
  background:
    radial-gradient(circle at 50% 100%, rgba(255, 38, 38, .35), transparent 20rem),
    linear-gradient(90deg, #8e0000, #f21818 48%, #8c0000);
}

.sell-banner h2 {
  margin: 0;
  font-size: 27px;
  font-style: italic;
  text-transform: uppercase;
}

.sell-banner p {
  margin: 0;
  padding-left: 40px;
  border-left: 1px solid rgba(255, 255, 255, .35);
  font-size: 17px;
  line-height: 1.25;
}

.sell-banner a {
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--gold);
  background: #050505;
  box-shadow: none;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.6fr .9fr;
  gap: 30px;
  width: auto;
  margin: 34px 64px 0;
  padding: 32px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 10, 10, .98), rgba(0, 0, 0, .98));
}

.footer-brand img {
  display: block;
  width: min(300px, 100%);
  height: auto;
  margin: -30px 0 -18px;
  object-fit: contain;
}

.footer-brand p,
.footer-store p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.footer-section h2 {
  margin: 0 0 16px;
  color: var(--gold);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-stores {
  display: grid;
  gap: 14px;
}

.footer-store,
.footer-social a {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.footer-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-store .footer-icon {
  width: 26px;
  height: 26px;
}

.footer-store strong {
  display: block;
  margin-bottom: 2px;
  color: #fff;
}

.footer-store a,
.footer-social a {
  color: #fff;
  font-weight: 800;
  transition: color .2s ease, border-color .2s ease;
}

.footer-store a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold);
  font-size: 13px;
  text-transform: uppercase;
}

.footer-store a:hover,
.footer-social a:hover {
  color: var(--red);
}

.footer-social {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer-social a {
  align-items: center;
  min-height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 15px;
  z-index: 50;
  display: block;
  width: 60px;
  height: 60px;
  overflow: hidden;
  border-radius: 999px;
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, .32))
    drop-shadow(0 0 5px rgba(255, 255, 255, .34));
  transition: background .2s ease, transform .2s ease;
}

.whatsapp-float img {
  display: block;
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.whatsapp-float:hover {
  filter:
    drop-shadow(0 12px 22px rgba(0, 0, 0, .36))
    drop-shadow(0 0 7px rgba(255, 255, 255, .42));
  transform: translateY(-2px);
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 220px 1fr;
    padding: 0 32px;
  }

  .main-nav {
    gap: 22px;
  }

  .search-panel {
    grid-template-columns: repeat(3, 1fr);
  }

  .search-title {
    grid-column: 1 / -1;
  }

  .vehicle-grid {
    grid-template-columns: repeat(3, minmax(210px, 1fr));
  }

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

  .benefits article:nth-child(2) {
    border-right: 0;
  }

  .sell-banner {
    padding-right: 64px;
    padding-left: 64px;
  }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 14px;
    padding: 10px 18px 16px;
  }

  .logo {
    width: 210px;
    height: 92px;
  }

  .menu-toggle {
    display: grid;
  }

  .nav-toggle:checked + .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-toggle:checked + .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked + .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .main-nav {
    grid-column: 1 / -1;
    display: grid;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    border: 0 solid rgba(215, 155, 0, .4);
    border-radius: 8px;
    opacity: 0;
    background: rgba(5, 5, 5, .96);
    transform: translateY(-8px);
    transition: max-height .28s ease, opacity .22s ease, transform .28s ease, padding .28s ease, border-width .28s ease;
  }

  .nav-toggle:checked ~ .main-nav {
    max-height: 340px;
    padding: 8px 0;
    border-width: 1px;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a {
    padding: 13px 16px;
    border-bottom: 1px solid #202020;
  }

  .main-nav a.nav-whatsapp {
    justify-content: flex-start;
  }

  .main-nav a:last-child {
    border-bottom: 0;
  }

  .main-nav a::after {
    right: 16px;
    bottom: 8px;
    left: 16px;
  }

  .hero {
    min-height: 640px;
    padding: 34px 22px;
  }

  .hero-cars {
    right: 16px;
    bottom: 35px;
    left: 16px;
    height: 260px;
  }

  .quality-badge {
    top: 285px;
    right: 24px;
  }

  .search-panel,
  .featured,
  .benefits {
    width: calc(100% - 32px);
    margin-right: auto;
    margin-left: auto;
  }

  .search-panel {
    grid-template-columns: 1fr;
  }

  .featured {
    padding-right: 12px;
    padding-left: 12px;
  }

  .vehicle-grid,
  .benefits,
  .sell-banner,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer {
    width: calc(100% - 32px);
    padding: 24px;
  }

  .benefits article {
    border-right: 0;
    border-bottom: 1px solid #333;
  }

  .benefits article:last-child {
    border-bottom: 0;
  }

  .slider-control {
    display: none;
  }

  .sell-banner {
    gap: 14px;
    padding: 22px;
    text-align: center;
  }

  .sell-banner p {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 560px) {
  .hero-copy p:first-child {
    font-size: 24px;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

  .hero-text {
    font-size: 16px;
  }

  .car-left,
  .car-right {
    opacity: .78;
  }

  .car-left {
    width: 50%;
  }

  .car-center {
    left: 18%;
    width: 62%;
  }

  .car-right {
    width: 50%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .benefits {
    padding: 8px;
  }

  .benefits article {
    grid-template-columns: 54px 1fr;
    padding: 10px;
  }

  .site-footer {
    margin-top: 28px;
    padding: 22px 18px 86px;
  }

  .footer-social a {
    width: 100%;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 15px;
    width: 54px;
    height: 54px;
  }

  .whatsapp-float img {
    width: 54px;
    height: 54px;
  }
}
