/* Link-button styles  */
.as_b {
  background: var(--color-accent-red);
  padding: 14px 41px;
  width: fit-content;

  cursor: pointer;

  font-size: var(--font-l);
  color: white;
  text-decoration: none;

  border-radius: 8px;
  border: none;
}

.as_black_b {
  background: black;
  padding: 14px 41px;
  width: fit-content;

  cursor: pointer;

  font-size: var(--font-m);
  color: white;
  text-decoration: none;

  border-radius: 8px;
  border: 1px solid white;
}

.as_red_b {
  background: var(--color-accent-red);
  padding: 14px 41px;
  width: fit-content;
  height: 48px;

  cursor: pointer;

  font-size: var(--font-m);
  color: white;
  text-decoration: none;

  border-radius: 8px;
  border: none;
}

.as_blank {
  background: transparent;
  padding: 14px 41px;
  width: fit-content;
  height: fit-content;

  cursor: pointer;

  font-size: var(--font-s);
  font-weight: 600;
  text-decoration: none;
}

/* Common classes  */
.items-section {
  margin: 0 auto;
  padding: 40px 10px;
  gap: 20px;
  max-width: var(--content-width);
}

.item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(192px, 1fr));
  gap: 20px;
}

/* Ads goods styles  */
.ads-goods {
  display: grid;
  max-width: var(--content-width);
  padding: 0 10px;
  margin: 20px auto;
  grid-template-columns: 3fr 2fr;
  border-radius: 16px;
}

.ads-goods__content {
  gap: 20px;
  padding: 30px;
  background-color: black;
  border-radius: 16px 0 0 16px;
}

.ads-goods__content > p {
  line-height: 1.3;
  font-weight: 300;
}

.ads-goods__image {
  border-radius: 0 16px 16px 0;

  background-image: url(../images/seat.png);
  background-size: cover;
  background-repeat: no-repeat;
}

/* Common benefits styles */
.common-benefits > h2 {
  margin-bottom: 30px;
}

.common-benefit__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.common-benefit__card {
  gap: 10px;
}

/* CWU - contact with us */
.cwu__container {
  display: grid;
  grid-template-columns: 3fr 1fr;

  background: white;
  -webkit-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  -moz-box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);
  box-shadow: 0px 4px 8px 0px rgba(34, 60, 80, 0.2);

  border-radius: 14px;
}

.cwu__text {
  align-items: start;
  justify-content: center;
  padding: 20px 60px;
  gap: 20px;
  max-width: 500px;
}

.cwu__image {
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  gap: 20px;
  max-width: 500px;
}

/* Company story styles  */

.company-story__container {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  padding: 30px 0;
}

.company-story__text {
  gap: 20px;
}

.company-story__text > p {
  line-height: 1.2;
}

.company-story_image,
.company-story_image > img {
  height: 100%;
  width: 100%;
}

.company-story_image > img {
  object-fit: cover;
}

/* Ads job styles */
.ads-job__banner {
  position: relative;
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 30px;

  height: 330px;
  max-height: 330px;

  background: var(--color-accent-red);
  border-radius: 16px;
}

.ads-job__text {
  padding: 40px;
  height: 100%;
  justify-content: center;
  gap: 30px;
}

.ads-job__image {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
}

.ads-job__image,
.ads-job__image > img {
  height: 330px;
  max-height: 330px;
}

.ads-job__image > img {
  object-fit: cover;
  clip-path: polygon(26% 0, 100% 0%, 75% 100%, 0% 100%);
  width: 70%;
}

.ads-job__link {
  border: 1px solid white;
}

/* Car model slider */
.car-model-slider__container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  position: relative;
}

#car-model-slider {
  overflow-x: hidden;
}

#car-model-slider .swiper-wrapper {
  transition-timing-function: linear !important;
}

.car-model-slider__shield {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}

.car-model-slider__item,
.car-model-slider__item > img {
  height: 132px;
  width: 211px;
}

.car-model-slider__item {
  justify-content: center;
  align-items: center;
}

.car-model-slider__item > img {
  object-fit: contain;
}

/* Media queries */

@media (max-width: 980px) {
  .company-story__container {
    display: flex;
    flex-flow: column wrap;
    gap: 15px;

    grid-template-columns: none;
  }

  .company-story_image,
  .company-story_image > img {
    max-height: 300px;
  }

  .company-story_image > img {
    object-position: top;
  }

  .as_b,
  .as_black_b,
  .as_blank,
  .as_red_b {
    font-size: var(--font-m);
    padding: 10px 20px;
  }
}

@media (max-width: 810px) {
  .cwu__container {
    grid-template-columns: 1fr 1fr;
  }

  .cwu__image,
  .cwu__image > img {
    width: 100%;
  }

  .ads-job__banner {
    height: 200px;
  }

  .ads-job__text {
    gap: 0;
    justify-content: space-between;
    padding: 20px 30px;
  }

  .ads-job__image,
  .ads-job__image > img {
    height: 200px;
  }
}

@media (max-width: 700px) {
  .items-section {
    padding: 20px 10px;
  }

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

  .cwu__text {
    align-items: center;
    max-width: none;
    text-align: center;
  }

  .cwu__image {
    display: none;
  }
}

@media (max-width: 600px) {
  .ads-job__banner {
    height: 150px;
  }

  .ads-job__image > img {
    width: 90%;
  }

  .ads-job__image,
  .ads-job__image > img {
    height: 150px;
  }

  .ads-goods__image {
    display: none;
  }

  .ads-goods {
    grid-template-columns: 1fr;
  }

  .ads-goods__content {
    border-radius: 16px;
  }
}
