.body {
  background-image: url(../images/bg.png);
  background-position: bottom left;
}

#about {
  padding-top: 102px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.about-title {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 44px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 20px;

  span {
    color: var(--pink);
  }
}

.about-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 18px;
  color: #fff;
  margin-bottom: 24px;
}

.about-flex {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.about-wrap {
  p {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 32px;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  li {
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 1.2;
    color: #fff;
  }

  span {
    font-weight: 700;
    color: var(--pink);
  }
}

@media screen and (min-width: 1442px) {
  #about {
    padding-top: 162px;
    padding-bottom: 108px;
  }

  .about-title {
    font-size: 56px;
    text-align: center;
    margin-bottom: 24px;
  }

  .about-text {
    font-size: 18px;
    text-align: center;
    margin-bottom: 36px;
  }

  .about-flex {
    flex-direction: row;
  }

  .about-wrap {
    p {
      font-size: 18px;
      margin-bottom: 32px;
    }

    ul {
      gap: 28px;
    }

    li {
      font-size: 18px;
    }

    img {
      margin: 0;
      width: 815px;
      flex-shrink: 0;
    }
  }
}

/* contact  */

#contact {
  padding-top: 102px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.contact-wrap {
  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
    margin-bottom: 20px;
  }

  a,
  span {
    display: inline;
    font-family: var(--font-family);
    font-weight: 500;
    font-size: 16px;
    line-height: 150%;
    color: #fff;
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }

  ul {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 36px;
  }

  li {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 18px;
    line-height: 156%;
    color: var(--pink);

    a {
      color: #fff;
    }
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  height: 420px;
  border-radius: 24px;
  overflow: hidden;
}

.leaflet-container {
  background: #fff;
}

@media screen and (min-width: 1442px) {
  #contact {
    padding-top: 162px;
    padding-bottom: 108px;
  }

  .contact-flex {
    flex-direction: row;
  }
  .map-frame {
    display: block;
    width: 697px;
    height: 420px;
    flex-shrink: 0;
  }

  .contact-wrap {
    p {
      font-size: 18px;
    }

    li {
      font-size: 24px;
    }
  }
}

/* form  */

#form {
  padding-top: 102px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.form-title {
  border-bottom: 1px solid #cf0089;
  margin-bottom: 40px;

  .about-text {
    margin: 0;
  }
}

.form-wrap {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-bottom: 40px;
}

#consultation-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;

  input,
  textarea {
    border: none;
    padding: 10px 8px;
    border: 1px solid var(--pink);
    border-radius: 8px;
    padding: 12px 40px;
    width: 100%;
    background: none;
    resize: none;
    outline: none;
    width: 100%;

    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 156%;
    color: #fff;
    transition: background-color 0.3s ease;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--second-family);
    font-weight: 500;
    font-size: 18px;
    line-height: 156%;
    color: #fff;
  }
}

.form-btn {
  font-family: var(--font-family);
  margin-top: 48px;
  font-weight: 600;
  font-size: 16px;
  line-height: 150%;
  color: #fff;
  border-radius: 8px;
  padding: 16px 23px;
  border: none;
  outline: none;
  transition: background-image 0.3s ease;
  background-image: linear-gradient(163deg, #ff00a9 0%, #990065 100%);
}

.form-btn:hover,
.form-btn :focus {
  background: linear-gradient(163deg, #990065 0%, #ff00a9 100%);
}

.modal-form {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 6px;
  font-size: 16px;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-form.show {
  opacity: 1;
}

.form-text {
  font-family: var(--font-family);
  font-weight: 700;
  font-size: 24px;
  line-height: 133%;
  text-align: center;
  color: #fff;
}

@media screen and (min-width: 1442px) {
  #form {
    padding-top: 162px;
    padding-bottom: 108px;
  }

  .form-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 78px;

    .about-title {
      margin: 0;
    }

    .about-text {
      margin: 0;
      text-align: end;
      width: 540px;
    }
  }

  .form-wrap {
    flex-direction: row;
    gap: 48px;
    margin-bottom: 64px;
  }

  .consultation-form {
    width: 450px;
    flex-shrink: 0;
  }
}
