/* Основные стили для секции */
.section-services {
  position: relative;
  z-index: 1;
  text-align: center;
  padding-top: 100px;
  padding-bottom: 100px;
}

.services__title {
  color: var(--brandAccentPrimary);
  font-family: MBold;
  font-size: 34px;
  line-height: 1.2;
}

.services__subtitle {
  max-width: 480px;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

/* Стили для блока услуг */
.services__items {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 50px;
}

/* Стили для каждого элемента услуги */
.services__item {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  text-align: left;
  max-width: 370px;
  flex: 1 1 370px;
  overflow: hidden;
}

.services__item .services__item-banner > img {
  transition: all 0.4s ease-in-out;
  display: flex;
  width: 100%;
}

.services__item-banner {
  height: 278px;
  overflow: hidden;
  width: 100%;
}

.services__item:hover .services__item-banner > img {
  transform: scale(1.1);
}

.services__item-content {
  padding: 30px 25px;
}

.services__item h3 {
  font-family: "MsemiBold";
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: #2b3337;
}

.services__item p {
  font-size: 1rem;
  color: #2b3337;
  margin-bottom: 10px;
}

.services__icons {
  margin-top: 25px;
}

.services__icons img {
  display: flex;
}

.services__icons a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 5px;
}

.services__icons a:hover {
  text-decoration: none;
}
.services__icons a:hover span {
  color: #124dd9;
}

.services__icons a:hover span svg path {
  fill: #124dd9;
}

.services__icons span {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-family: "MMedium";
  color: #2b3337;
}

.services__icons span:hover {
  text-decoration: none;
  cursor: pointer;
}

/* Мобильная адаптация */
@media (max-width: 1099px) {
  .services__items {
    flex-wrap: wrap;
  }
}
@media (max-width: 768px) {
  .services__items {
    align-items: center;
  }

  .services__item {
    flex: auto;
    max-width: 355px;
  }
}
@media (max-width: 576px) {
  .section-services {
    padding: 80px 0;
  }
  .services__title {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .services__subtitle {
    font-size: 14px;
  }
  .services__items {
    margin-top: 30px;
  }
  .services__item h3 {
    font-size: 20px;
    margin-bottom: 8px;
  }
  .services__item p {
    font-size: 16px;
  }
  .services__item-banner {
    height: auto;
  }
  .services__item-content {
    padding: 22px 25px;
  }
  .services__icons span {
    font-size: 15px;
  }
  .services__icons a {
    gap: 5px;
  }
}
