/* services */

.services {
  background-image: url(../img/services.jpg);
}

/* working  */

.working {
  background-image: url(../img/bg.png);
  background-size: cover;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.services-item {
  border-radius: 22px;
  padding: 16px;
  background: #d8dafd;

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 130%;
    text-align: center;
    color: #030809;
    margin-bottom: 22px;
  }

  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 162%;
    text-align: center;
    color: #030809;
    margin-bottom: 22px;
  }

  ul {
    padding-left: 20px;
    list-style: disc;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;

    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 162%;
    text-align: center;
    color: #030809;
  }
}

@media screen and (min-width: 768px) {
  .services-list {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .services-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .services-list {
    width: 940px;
    margin: 0 auto;
  }
}

/* price  list  */

.price-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.price-item {
  border-radius: 22px;
  padding: 22px;
  background: #3b44f6;
}

.price-title {
  margin-bottom: 22px;

  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 28px;
    line-height: 130%;
    text-align: center;
    color: #fff;
    margin-bottom: 12px;
  }

  h5 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 32px;
    line-height: 130%;
    text-align: center;
    color: #030809;
    border-radius: 22px;
    padding: 12px;
    background: #fff;
  }
}

.price-item-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  list-style: disc;
  padding-left: 20px;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 162%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 768px) {
  .price-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .price-item {
    width: calc((100% - 22px) / 2);
  }
}

@media screen and (min-width: 1436px) {
  .price-list {
    justify-content: center;
    align-items: center;
  }

  .price-item {
    width: calc((100% - 44px) / 3);
  }
}

/* services text section  */

@media screen and (min-width: 1436px) {
  .services-text {
    font-size: 16px;
    max-width: 496px;
  }
}

/* contact */

.contact {
  background-image: url(../img/contact.jpg);
}

/* map  */

.map {
  background: linear-gradient(
    180deg,
    rgba(245, 244, 249, 0.4) 0%,
    rgba(152, 156, 247, 0.35) 47.6%,
    rgba(59, 68, 246, 0.3) 100%
  );
}

.map-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  height: 500px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid #000;
}

.leaflet-container {
  background: #000;
}

.map-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 162%;
  color: #030809;
}

.map-text {
  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 162%;
  color: #030809;
}

.map-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 162%;
  color: #030809;

  a {
    font-weight: 300;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.map-list {
  display: flex;
  flex-direction: column;
  padding-left: 20px;
  list-style: disc;

  font-family: var(--font-family);
  font-weight: 300;
  font-size: 16px;
  line-height: 162%;
  color: #030809;
}

.soc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;

  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  line-height: 178%;
  color: #3b44f6;

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

.map-flex {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

@media screen and (min-width: 1436px) {
  .map-container {
    flex-direction: row;
    align-items: center;
    gap: 64px;
  }

  .map-frame {
    width: 700px;
    flex-shrink: 0;
  }
}

/* ********************* */

.hidden {
  display: none;
}

.menu-transform {
  transform: translateY(0);
}

.click {
  background-image: url(../img/minus.png);
  transform: rotate(180deg);
}

.popup-click {
  transform: translateY(130%) translateX(-50%);
}

.overflow {
  overflow: hidden;
}
