@font-face {
  font-family: Raleway;
  src: url("../font/Raleway.ttf");
}
:root {
  --page-width: 1200px;
  --color-text: rgb(36, 36, 36);
  --color-background-1: #f0f0f0;
  --color-background-2: #fff;
  --color-accent: #ff2259;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: Raleway;
  background-color: var(--color-background-1);
  color: var(--color-text);
}

main {
  margin-bottom: 48px;
}

footer {
  margin-top: auto;
  background-color: var(--color-background-2);
  padding: 32px max(8px, calc((100% - var(--page-width)) / 2));
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 16px 0 #0000004d;

  gap: 24px;
  > div {
    display: flex;
    justify-content: center;
    gap: 48px;
  }
}

header {
  display: flex;
  background-color: var(--color-background-2);
  align-items: center;
  height: 96px;
  gap: 16px;
  margin-bottom: 0;
  position: sticky;
  top: 0;
  z-index: 99999;
  box-shadow: 0 0 16px 0 #0000004d;

  a {
    color: var(--color-text);
    text-decoration: none;
  }

  .logo {
    font-size: 32px;
    font-weight: 800;
    margin-right: auto;
    transition: all 220ms;
  }

  .logo-img {
    height: 64px;
  }
}

em {
  color: var(--color-accent);
  font-style: normal;
}

.scroll {
  header {
    height: 48px;
  }

  .logo {
    font-size: 24px;
  }
}

.row {
  padding-inline: max(8px, calc((100% - var(--page-width)) / 2));
  display: flex;
  gap: 16px;
}

.banner {
  background-color: var(--color-text);
  color: var(--color-background-2);
  padding-top: 128px;
  padding-bottom: 64px;

  h1 {
    font-size: 72px;
    font-weight: 800;
    margin-top: 16px;
  }
}

.intro {
  text-transform: uppercase;
  font-weight: 570;
  letter-spacing: 1px;
}

.plate {
  padding: 6px;
  padding-left: 32px;
  border: 2px solid black;
  width: fit-content;
  height: fit-content;
  background-color: white;
  color: black;
  position: relative;
  font-weight: 700;
  font-size: 24px;
}

.plate::before {
  position: absolute;
  top: 0;
  left: 0;
  content: "PL";
  background-color: rgb(0, 60, 255);
  color: white;
  height: calc(100% - 14px);
  width: 24px;
  text-align: center;
  padding-top: 14px;
  font-size: 14px;
}

@media (max-width: 767px) {
  .row {
    flex-direction: column;
  }

  header.row {
    flex-direction: row;
  }
}

.card {
  background-color: var(--color-background-2);
  border-radius: 0;
  flex: 1;
  padding: 12px;
}

.row-1-by-1 {
  gap: 64px;
  > div {
    flex: 1 !important;
  }
}

.row-card {
  display: flex;
  flex: 1;
}

.background {
  background-color: var(--color-background-2);
}

.p-y {
  padding-block: 24px;
}

.cars {
  margin-bottom: 16px;
}

.car {
  transition: all 220ms;
  box-shadow: 0 0 16px 0 #0000004d;
  display: flex;
  flex-direction: column;
  flex: 1;
  background-color: var(--color-text);
  border-radius: 0;
  overflow: hidden;
  color: var(--color-background-1);
  font-weight: 500;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  .car-img {
    position: relative;
    overflow: hidden;

    img {
      width: 100%;
      max-height: 320px;
      object-fit: cover;
      display: block;
      transition: all 220ms;
    }
  }

  .car-desc::after {
    content: "";
    position: absolute;
    width: 100%;
    bottom: 100%;
    left: 0;
    height: 64px;
    /* background: linear-gradient(0deg, rgba(0, 0, 0, 0.39) 0%, transparent 100%); */
  }

  .car-desc {
    position: relative;
    bottom: 0;
    background-color: var(--color-text);
    width: auto;
    padding-bottom: 12px;
    padding: 12px;
    border-top: 3px solid var(--color-accent);
  }

  .title {
    font-size: 24px;
  }

  .details {
    margin-top: 12px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    font-size: 18px;
  }
}

.price {
  font-size: 24px;
  color: var(--color-accent);
}

.car:hover {
  box-shadow: 0 0 16px 0 #000000e0;

  .car-img {
    img {
      transform: scale(1.1);
    }
  }
}

@media (max-width: 767px) {
  .cars {
    flex-direction: column;
  }
}

.car-page {
  padding: 0;
  overflow: hidden;

  .main-img {
    width: 100%;
    max-height: 600px;
    object-fit: cover;
    display: block;
  }

  .car-desc {
    padding: 12px;
  }
}

.underline-hover {
  position: relative;
}

.underline-hover::after {
  position: absolute;
  content: "";
  width: 0%;
  height: 3px;
  background-color: var(--color-accent);
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 220ms;
}

.underline-hover:hover::after {
  width: 100%;
}
