/* Grid */
.service {
  margin-top: 47px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.service h3 {
  font-size: 20px;
  line-height: 105%;
  font-weight: 400;
  color: #000000;
  text-align: center;
}
.service__grid {
  display: grid;
  justify-content: center;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(4, 156px);
  gap: 16px 17px;
  margin-top: 16px;
}
.service__grid a {
  display: flex;
  align-items: flex-end;
  border-radius: 20px;
  padding: 20px 16px;
  background-position: center right -20px !important;
  background-repeat: no-repeat !important;
  background-size: 60% 100% !important;
  cursor: pointer;
}
.service__grid span {
  color: #ffffff;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
}
@media (min-width: 600px) {
  .service__grid a {
    background-size: 50% 100% !important;
  }
}
@media (min-width: 1200px) {
  .service {
    margin-top: 72px;
  }
  .service__grid {
    grid-template-columns: repeat(4, 250px);
    grid-template-rows: repeat(2, 204px);
    gap: 40px 18px;
  }
  .service__grid a {
    padding: 24px;
    background-position: top right !important;
    background-size: 60% 100% !important;
  }
  .service__grid span {
    font-size: 20px;
    line-height: 24px;
  }
  .service h3 {
    font-size: 35px;
  }
}

.service__banner-wrapper {
  margin-top: 28px;
  width: 100%;
  border-radius: 16px;
  box-sizing: border-box;
  height: 369px;

  background:
    url(../../../img/service/service-banner/discount50.svg),
    url(../../../img/service/service-banner/image.png), #f6f6f6;
  background-size:
    130px 130px,
    351px;
  background-position:
    right 7px top 2px,
    right bottom;
  background-repeat: no-repeat, no-repeat;
}
.service__banner {
  padding: 52px 16px 0;
  color: #202020;
}
.service__banner h4 {
  max-width: 208px;
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
}
.service__banner p {
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  margin-top: 14px;
}
.service__banner button {
  color: #ffffff;
  font-size: 16px;
  line-height: 16px;
  font-weight: 400;
  background: #f90000;
  border-radius: 16px;
  margin-top: 17px;
  padding: 8px 21px;
  cursor: pointer;
}
@media (min-width: 1200px) {
  .service__banner-wrapper {
    background-position:
      right top,
      left -30px bottom;
    background-size:
      276px 276px,
      394px;
    height: 251px;
  }
  .service__banner {
    padding: 39px 0 0 442px;
  }
  .service__banner h4 {
    max-width: 340px;
    font-size: 32px;
    line-height: 36px;
  }
  .service__banner p {
    font-size: 16px;
    line-height: 20px;
    margin-top: 16px;
  }
  .service__banner button {
    font-size: 15px;
    line-height: 15px;
    font-weight: 500;
    padding: 12px 24px;
    margin-top: 32px;
  }
}

/*! Service Page */
/* 
Common
*/
.service-page__heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #000000;
  gap: 12px;

  @media (min-width: 1200px) {
    gap: 20px;
  }
}
.service-page__heading h3 {
  font-size: 20px;
  line-height: 105%;
  font-weight: 400;
  text-align: center;

  @media (min-width: 1200px) {
    font-size: 35px;
  }
}
.service-page__heading p {
  font-size: 12px;
  line-height: 16px;
  font-weight: 400;
  text-align: center;

  @media (min-width: 1200px) {
    font-size: 20px;
    line-height: 24px;
  }
}

/* 
Banner
*/
.service-page__banner {
  position: relative;
  background: url(../../../img/service/page/hero.webp), #d9d9d9;
  height: fit-content;
  padding: 40px 24px;
  border-radius: 20px;
  color: white;

  @media (min-width: 1200px) {
    padding: 62px 31px;
    border-radius: 30px;
  }
}
.service-page__banner__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: unset;
  @media (min-width: 1200px) {
    max-width: 50%;
  }

  h1 {
    font-size: 24px;
    line-height: 30px;
    font-weight: 500;

    @media (min-width: 1200px) {
      font-size: 43px;
      line-height: 49px;
    }
  }
  p {
    font-size: 14px;
    line-height: 18px;
    font-weight: 400;

    @media (min-width: 1200px) {
      font-size: 25px;
      line-height: 29px;
    }
  }
}
.service-page__more {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  padding: 12px 24px;
  width: 100%;
  max-width: 234px;
  background: #f90000;
  border-radius: 999px;
  margin-top: 28px;
}
.service-page__socials {
  display: none;
  flex-direction: row;
  gap: 20px;
  position: absolute;
  bottom: 40px;
  right: 24px;
  align-items: flex-start;
  height: fit-content;

  @media (min-width: 1200px) {
    display: flex;
    top: 62px;
    right: 31px;
  }

  a {
    background: white;
    border-radius: 999px;
    padding: 8px;
  }
}
.service-page__section {
  margin-top: 28px;

  @media (min-width: 1200px) {
    margin-top: 52px;
  }
}

/* 
Specials
*/
.section-page__specials-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 28px;

  @media (min-width: 1200px) {
    gap: 32px;
  }
}
.section-page__specials {
  display: flex;
  flex-direction: column;

  @media (min-width: 768px) {
    gap: 32px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(auto-fill, 250px);
  }

  img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0 0 24px 24px;
    max-height: 250px;
    @media (min-width: 768px) {
      max-height: unset;
      border-radius: 24px;
    }
  }
}
.section-page__special-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 24px 24px 0 0;
  width: 100%;
  padding: 24px;
  background-color: #efefef;

  @media (min-width: 768px) {
    border-radius: 24px;
  }
  @media (min-width: 1200px) {
    padding: 32px;
  }

  div {
    h3 {
      font-size: 16px;
      line-height: 120%;
      font-weight: 500;
      margin-bottom: 8px;

      @media (min-width: 1200px) {
        font-size: 20px;
        margin-bottom: 16px;
      }
    }
    p {
      font-size: 10px;
      line-height: 14px;
      font-weight: 400;

      @media (min-width: 1200px) {
        font-size: 14px;
        line-height: 18px;
      }
    }
    p[red] {
      color: #f90000;
    }
  }
  button {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    padding: 12px 24px;
    background: #f90000;
    border-radius: 999px;
    margin-top: 28px;
    width: 100%;

    @media (min-width: 1200px) {
      width: fit-content;
    }
  }
}

/* 
Services
*/
.service-page__services-card {
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  padding: 12px 24px;
  background: #f90000;
  border-radius: 999px;
  margin-top: 28px;
  width: 100%;

  @media (min-width: 768px) {
    width: 50%;
    margin-inline: auto;
  }
}

/* 
Price
*/
.service-page__price-wrapper {
  border-radius: 20px;
  background: #f6f6f6;
  padding: 40px 32px;
  margin-top: 24px;

  @media (min-width: 1200px) {
    margin-top: 44px;
  }
}
.service-page__price-rows {
  display: flex;
  gap: 16px;
  flex-direction: column;
  min-width: max-content;
}
.service-page__price-row.heading {
  margin-bottom: 24px;
}
.service-page__price-row {
  grid-template-columns: 150px repeat(1, 100px);
  display: grid;
  justify-content: space-between;
  padding-block: 4px;
  border-bottom: 1px solid #d9d9d9;
  font-weight: 300;
  min-width: max-content;

  @media (min-width: 1200px) {
    grid-template-columns: 300px repeat(1, 250px);
  }
}

/*
Brands
*/
.service-page__brand-wrapper {
  margin-top: 24px;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;

  img {
    width: auto;
    height: 40px;
    aspect-ratio: 1 / 1;

    @media (min-width: 1200px) {
      height: 64px;
    }
  }
}

/*
Advantages
*/
.service-page__advantages-wrapper {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  grid-template-rows: repeat(5, 166px);
  gap: 20px;
  margin-top: 24px;

  @media (min-width: 768px) {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 166px);
    gap: 12px;
  }
}
.service-page__advantages__point {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
  color: #000000;
  background: #efefef;
  border-radius: 15px;

  img {
    height: 24px;
  }

  h4 {
    font-size: 15px;
    line-height: 19px;
    font-weight: 500;
  }
  p {
    font-size: 12px;
    line-height: 16px;
    font-weight: 400;
  }

  @media (min-width: 1200px) {
    padding: 16px;
    border-radius: 12px;

    img {
      height: 26px;
    }
    h4 {
      font-size: 16px;
      line-height: 20px;
    }
    p {
      font-size: 14px;
      line-height: 18px;
    }
  }
}

/*
Reviews
*/
.service__page__reviews {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin-top: 24px;

  a[review] {
    cursor: pointer;
    flex-shrink: 0;
    scroll-snap-align: start;

    img {
      width: min(90vw, 600px);

      @media (min-width: 768px) {
        width: 600px;
      }
    }
  }
}

/*
Form
*/
.service-page__form {
  background: #202020;
  padding: 24px 16px;
  border-radius: 24px;

  @media(min-width: 1200px) {
    padding: 40px 20px;
  }

  .service-page__heading {
    color: white;
  }
}

.service-page__form-wrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  margin-top: 24px;
  gap: 100px;

  img[car] {
    display: none;
    max-height: 300px;

    @media(min-width: 1200px) {
      display: block;
    }
  }
}

.service-page__form__inputs--text,
.service-page__form__button-wrapper--desktop {
  flex-direction: column !important;
}
.service-page__form__input-wrapper,
.service-page__form__button {
  max-width: unset !important;
}
