.main_about {
  background: rgba(242, 242, 242, 1);
  min-height: 774px;
  position: relative;
  z-index: 1;
}

.main_about-mob,
.main_about-mob_card,
.main_about-mob_card_info {
  display: none;
}

.main_about::before {
  content: "";
  background: url(../img/about-page-about-background.png) right / 100% no-repeat;
  position: absolute;
  top: -110px;
  right: 0;
  bottom: 129px;
  left: auto;
  z-index: 1;
  height: 785px;
  width: 560px;
}

.main_about_title {
  color: rgba(166, 182, 219, 1);
  font-size: 40px;
  font-weight: 700;
  line-height: 48.01px;
  padding: 52px 110px 0;
  height: 122px;
  white-space: nowrap;
}

.main_about_logo {
  position: absolute;
  top: 45px;
  right: 90px;
  width: 555px;
  height: 218px;
  z-index: 2;
}

.main_about_card {
  background: rgba(255, 255, 255, 1);
  box-shadow: -2px -2px 4px 0px rgba(0, 0, 0, 0.25);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin: 0 110px;
  min-height: 530px;
  padding: 6px 0 0 5px;
}

.main_about_card_foto {
  align-items: center;
  display: flex;
  gap: 71px;
  z-index: 1;
}

.main_about_card_foto img {
  height: 330px;
  max-width: 313px;
  width: 100%;
}

.main_about_card_foto section {
  display: flex;
  flex-direction: column;
  gap: 9px;
  max-width: 360px;
}

.main_about_card_foto p {
  color: rgba(69, 69, 72, 1);
  font-weight: 500;
  line-height: 21.6px;
}

.main_about_card_info {
  display: flex;
  justify-content: space-around;
  padding: 0 54px 0 49px;
  position: relative;
  z-index: 2;
}

.main_about_card_info hr {
  background-color: rgba(26, 49, 143, 1);
  border: none;
  color: rgba(26, 49, 143, 1);
  height: 1px;
  position: absolute;
  top: 65px;
  max-width: 1268px;
  width: 100%;
}

.main_about_card_info_block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 119px;
  max-width: 300px;
}

.main_about_card_info_block h3 {
  color: rgba(26, 49, 143, 1);
  font-size: 64px;
  font-weight: 700;
  line-height: 58px;
}

.main_about_card_info_block p {
  color: rgba(26, 49, 143, 1);
  font-weight: 500;
  line-height: 21.6px;
}

@media screen and (min-width: 1280px) and (max-width: 1500px) {
  .main_about_logo {
    top: 0px;
    width: 455px;
  }
  
}

@media screen and (min-width: 1101px) and (max-width: 1279px) {
  .main_about_logo {
    top: 0px;
    width: 455px;
  }

  .main_about_card_foto {
    align-items: flex-end;
  }

  .main_about_card_info {
    padding: 0 10px;
    text-align: center;
  }
}

@media screen and (min-width: 768px) and (max-width: 1100px) {
  .main_about::before { 
    content: none;
  }

  .main_about_card_foto {
    gap: 20px;
    align-items: flex-end;
  }

   .main_about_title {
    padding: 30px 20px 0;
    height: fit-content;
  }

  .main_about_logo {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 200px;
    height: 80px;
  }

  .main_about_card {
    margin: 0 20px;
  }

  .main_about_card_info {
    padding: 0 10px;
    text-align: center;
  }
}
@media screen and (max-width: 767px) {
  .main_about::before {
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    z-index: -1;
    width: 164px;
    height: 230px;
    background-size: 100%;
  }

  .main_about {
    padding-bottom: 85px;
    min-height: fit-content;
  }

  .main_about_title {
    line-height: 21.6px;
    padding: 34px 10px 17px;
  }

  .main_about_logo {
    width: 135px;
    height: 53px;
    top: 45px;
    right: 0;
  }

  .main_about_card {
    gap: 16px;
    margin: -45px 10px;
    background: rgba(255, 255, 255, 1);
    border-radius: 10px;
    padding: 30px 30px 53px;
  }

  .main_about_card_foto {
    flex-direction: column;
    gap: 16px;
  }

  .main_about_card_foto img {
    border-radius: 10px;
    box-shadow: -1.4619531631469727px -1.4619531631469727px 2.9239063262939453px
      0px rgba(0, 0, 0, 0.25);
    max-width: 240px;
  }

  .main_about_card_info {
    display: none;
  }

  .main_about-mob {
    background: rgba(242, 242, 242, 1);
    flex-direction: column;
    display: flex;
    padding: 0 10px 42px;
    position: relative;
    z-index: 1;
  }

  .main_about-mob::before {
    content: "";
    background: url(../img/about-background-mob.png) right top no-repeat;
    position: absolute;
    top: -0px;
    right: 0;
    bottom: 0px;
    z-index: -1;
    height: 191px;
    width: 164px;
  }

  .main_about-mob-title {
    margin: 2px 0;
  }

  .main_about-mob_card {
    display: flex;
    gap: 23px;
    flex-direction: column;
    padding: 26px 10px 30px;
  }

  .main_about_card_foto section {
    display: none;
  }

  .main_about-mob_card section:first-child {
    display: flex;
    flex-direction: column;
    gap: 5px;
    color: rgba(69, 69, 72, 1);
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    padding: 0 20px;
  }

  .main_about-mob_card_info {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    row-gap: 3px;
  }

  .main_about-mob_card_info hr {
    background-color: rgba(26, 49, 143, 1);
    border: none;
    color: rgba(26, 49, 143, 1);
    height: 1px;
    width: calc((98% - 20px) / 3);
  }

  .main_about-mob_card_info h3 {
    color: rgba(26, 49, 143, 1);
    white-space: nowrap;
    font-size: 24px;
    font-weight: 700;
    line-height: 28.8px;
    width: calc((100% - 20px) / 3);
    text-align: center;
  }

  .main_about-mob_card_info:last-child h3 {
    white-space: nowrap;
  }

  .main_about-mob_card_info p {
    color: rgba(26, 49, 143, 1);
    font-size: 12px;
    font-weight: 500;
    line-height: 14.4px;
    width: 100%;
    text-align: center;
  }
}
