/* Base styles (Mobile First) */
.about__banner {
  display   : flex;
  background: url(../assets/images/banner-about-background-desktop.webp) no-repeat center center/cover;
  height    : 300px;
}

.page__main__content {
  padding    : 0 21px;
  text-align : left;
  line-height: 0.8;
  font-weight: 500;
}


.page__main__description {
  font-size  : 17px;
  line-height: 23px;
  color      : #4f4f4f;
  margin     : 0;
  max-width: 1000px;
  margin   : 0 auto;
}

/* Values section */
.about__values {
  display: flex;

  justify-content: center;
  flex-wrap      : wrap;
  padding        : 0 20px;
}

.about__values-item {
  display       : flex;
  flex-direction: column;
  align-items   : center;
  border-radius : 18px;
  overflow      : hidden;


  min-height: 540px;
  background: #fff;
  box-shadow: none;
  text-align: left;
}

.about__values-image {
  width: 100%;

  border-radius: 18px 18px 0 0;
  object-fit   : cover;
  display      : block;
}

.about__values-text {
  flex           : 1 1 auto;
  display        : flex;
  flex-direction : column;
  justify-content: flex-start;
  width          : 100%;
  padding        : 18px 16px 24px 16px;
  box-sizing     : border-box;
}

.about__values-title {

  font-weight: normal;
  text-align : center;
  margin     : 12px 0;
  color      : #222;
  line-height: 1.2;
}

.about__values-description {
  font-size    : 18px;
  line-height  : 1.7;
  color        : #333;
  margin-bottom: 10px;
}

.about__values-text ul.about__values-description {
  list-style  : disc inside;
  padding-left: inherit;
  margin      : 0;
}

.about__values-text ul.about__values-description li {
  margin-bottom: 8px;
  font-size    : 18px;
  color        : #333;
  line-height  : 1.7;
  list-style   : disc;
}

.about__values-text ul.about__values-description li:first-child {
  margin-top: 10px;
}



/* Media Queries */

/* Tablet small */
@media (max-width: 600px) {
  .about__values-title {
    margin       : 0;
    margin-bottom: 12px;
    font-size    : 22px;
    font-weight  : 700;
    line-height  : 34px;
  }

  .about__values-description {
    font-size: 16px
  }

  .about__values-text ul.about__values-description li {
    font-size: 16px;
  }

  .about__values-item {
    width    : calc(100% - 20px);
    margin   : 10px;
    max-width: 100%;
  }

  .about__banner {
    height             : 300px;
    background-position: center;
  }

  .page__main__description {
    font-size  : 16px;
    line-height: 1.5;
  }

}

@media (width >=768px) and (width < 1024px) {
  .about__banner {
    background: url(../assets/images/banner-about-background-desktop.webp) no-repeat center center/cover;
    height    : 400px;
  }


  .page__main__description {
    font-size  : 18px;
    line-height: 1.6;

  }

  .about__values-item {
    width : calc(50% - 20px);
    margin: 10px;
  }
}

@media (width < 1024px) {
  .about__banner {
    background: url(../assets/images/banner-about-background-mobile.webp) no-repeat center center/cover;
    height    : 400px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .about__banner {
    background: url(../assets/images/banner-about-background-desktop.webp) no-repeat center center/cover;
    height    : 500px;
  }

  .about__values-item {

    margin   : 10px;
    max-width: 630px;
  }

  .about__values {
    padding   : 0 60px;
    margin-top: -42px;
    gap       : 42px;
  }

}