/* #region HOME SERVICES ===== */
.home-services {
  padding: 50px 16px;
  font-family: 'SF Pro Display', Arial, sans-serif;
  color: #000000;
  background-color: #ffffff;
  border-radius: 20px;
}

.home-services__container {
  max-width: 1280px;
  margin: 0 auto;
}

.home-services__title {
  margin: 0 0 30px;
  font-family: 'SF Pro Display', Arial, sans-serif;
  font-weight: 700;
  font-size: 36px;
  line-height: 100%;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.home-services__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.home-services__item {
  min-width: 0;
}

.home-services__card {
  position: relative;
  display: flex;
  flex-direction: column-reverse;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  background-color: #fff3c4; /* тимчасовий фон для карток без кольору */
}

.home-services__card:visited,
.home-services__card:hover,
.home-services__card:focus,
.home-services__card:active {
  color: inherit;
  text-decoration: none;
}

.home-services__card--1,
.home-services__card--10 {
  background-color: #0A84FF;
}

.home-services__card--2,
.home-services__card--7 {
  background-color: #BFD3EA;
}

.home-services__card--3 {
  background-color: #E4B56C;
}

.home-services__card--4 {
  background-color: #6FCF97;
}

.home-services__card--5 {
  background-color: #FF5170;
}

.home-services__card--9 {
  background-color: #F2C94C;
}

.home-services__card--6 {
  background-color: #D7D7D7;
}

.home-services__card--8 {
  background-color: #BB6BD9;
}

.home-services__content {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
  padding: 12px;
}

.home-services__card-title {
  margin: 0;
  font-family: 'SF Pro Display', Arial, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: -0.03em;
}

.home-services__media {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex: 1 1 auto;
  min-height: 90px;
  pointer-events: none;
}

.home-services__media picture {
  display: block;
  width: 90%;
  height: 100%;
  max-height: calc(100% - 20px);
  margin: 0 auto;
}

.home-services__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.4s ease;
}

.home-services__card:hover .home-services__media img {
  transform: scale(1.05);
}

.home-services__card--media-edge .home-services__media {
  justify-content: flex-end;
}

.home-services__card--media-edge .home-services__media picture {
  width: 100%;
  height: 100%;
  max-height: calc(100% - 16px);
  margin: 0;
}

.home-services__card--media-edge .home-services__media img {
  width: 100%;
  height: 100%;
  max-height: none;
  margin: 0;
  object-position: right center;
  transform-origin: right center;
}

.home-services__actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 40px;
}

.home-services__button {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 55px;
  padding: 20px 40px 23px;
  border: 1px solid #0A84FF;
  border-radius: 100px;
  font-family: 'SF Pro Display', Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 140%;
  letter-spacing: normal;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.home-services__button--outline {
  background-color: transparent;
  color: #0A84FF;
}

.home-services__button--solid {
  background-color: #0A84FF;
  color: #ffffff;
}

@media (hover: hover) {
  .home-services__button--outline:hover {
    background-color: rgba(10, 132, 255, 0.08);
  }

  .home-services__button--solid:hover {
    background-color: #0066CC;
    color: #ffffff;
  }
}
/* #endregion HOME SERVICES ===== */

@media (min-width: 768px) {
  .home-services {
    padding: 70px 32px;
  }

  .home-services__title {
    font-size: 40px;
  }

  .home-services__list {
    gap: 12px;
  }

  .home-services__card {
    flex-direction: row;
    align-items: stretch;
  }

  .home-services__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-start;
    flex: 1 1 50%;
    min-width: 0;
    padding: 16px;
  }

  .home-services__media {
    flex: 1 1 50%;
    min-height: 0;
    height: auto;
  }

  .home-services__card-title {
    font-size: 18px;
  }

  .home-services__card--5 .home-services__card-title,
  .home-services__card--9 .home-services__card-title {
    white-space: nowrap;
  }

  .home-services__actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .home-services__button {
    width: auto;
    min-width: 217px;
    max-width: 256px;
    height: 62px;
    padding: 20px 40px;
  }
}

@media (min-width: 992px) {
  .home-services {
    padding: 90px 40px 110px;
  }

  .home-services__title {
    font-size: 48px;
    margin-bottom: 40px;
  }

  .home-services__list {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .home-services__content {
    padding: 20px 0px 20px 20px;
  }

  .home-services__media {
    align-items: center;
  }

  .home-services__media picture {
    width: 110%;
    max-height: calc(100% - 20px);
    margin: 0 10px 0 0;
  }

  .home-services__card--media-edge .home-services__media picture {
    width: 100%;
    max-height: none;
    margin: 0;
  }

  .home-services__card--media-edge .home-services__media img {
    object-position: right center;
  }

  .home-services__card-title {
    font-size: 20px;
  }

  .home-services__actions {
    margin-top: 50px;
    gap: 20px;
  }
}

@media (min-width: 1200px) {
  .home-services__title {
    font-size: 54px;
    margin-bottom: 50px;
  }

  .home-services__list {
    gap: 20px;
  }

  .home-services__card-title {
    font-size: 22px;
  }
}

@media (min-width: 1400px) {
  .home-services__title {
    font-size: 60px;
    margin-bottom: 60px;
  }

  .home-services__list {
    gap: 24px;
  }

  .home-services__card {
    height: 210px;
  }

  .home-services__card-title {
    font-size: 24px;
  }

  .home-services__actions {
    gap: 24px;
  }
}
