.main-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  line-height: 140%;
  color: var(--text);
  margin-bottom: 32px;
}

#about {
  padding-top: 124px;
  padding-bottom: 64px;
}

.about-wrap {
  position: relative;
  padding: 48px 32px;

  p {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 18px;
    line-height: 156%;
    color: var(--text);
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
  }
}

.frame-desc {
  display: none;
}

.frame-mob {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.about-wolf {
  position: absolute;
  bottom: -24px;
  right: 52px;
  width: 232px;
}

@media screen and (min-width: 768px) {
  .frame-mob {
    display: none;
  }

  .frame-desc {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
  }

  .about-wrap {
    padding: 60px;
  }
}

@media screen and (min-width: 1435px) {
  #about {
    padding-top: 164px;
  }

  .about-flex {
    display: flex;
    flex-direction: row-reverse;
    gap: 64px;
  }

  .about-wrap {
    width: 642px;
    flex-shrink: 0;
    padding: 86px 60px;

    p {
      font-size: 20px;
    }
  }

  .about-wolf {
    width: 290px;
  }
}

/* contact  */

#contact {
  padding-top: 124px;
  padding-bottom: 64px;
}

.contact-flex {
  display: flex;
  flex-direction: column;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 20px;
  padding: 40px 20px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  padding-bottom: 158px;
  position: relative;
  overflow: visible;
}

.soldier {
  width: 160px;
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 999;
}

.contact-wrap {
  p {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 20px;
    line-height: 140%;
    color: var(--text);
    margin-bottom: 12px;
  }

  a,
  span {
    font-family: var(--font-family);
    font-weight: 400;
    font-size: 20px;
    line-height: 140%;
    color: var(--text);
  }

  a:hover,
  a:focus {
    text-decoration: underline;
  }
}

/* важно: у контейнера карты должна быть высота */
.map-frame {
  height: 220px;
  border-radius: 24px;
  overflow: hidden;
}

.leaflet-container {
  background: #fff;
}

@media screen and (min-width: 1435px) {
  #contact {
    padding-top: 162px;
    padding-bottom: 108px;
  }

  .contact-text {
    max-width: 887px;
    margin: 0 auto;
    text-align: center;
    margin-bottom: 32px;
  }

  .contact-flex {
    flex-direction: row;
    padding: 34px 62px;
  }

  .map-frame {
    display: block;
    width: 482px;
    height: 362px;
    flex-shrink: 0;
  }

  .soldier {
    width: auto;
  }

  .contact-wrap {
    width: 374px;

    p {
      font-size: 18px;
    }
  }
}

/* form  */

#form {
  padding-top: 102px;
  padding-bottom: 64px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

#consultation-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 12px;

  input,
  textarea {
    border: none;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    padding: 16px 20px;
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.6);
    width: 100%;
    resize: none;
    outline: none;
    width: 100%;

    font-family: var(--font-family);
    font-weight: 200;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
    transition: background-color 0.3s ease;
  }

  input::placeholder,
  textarea::placeholder {
    font-family: var(--font-family);
    font-weight: 200;
    font-size: 16px;
    line-height: 150%;
    color: var(--text);
  }
}

.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;
}

.form-btn {
  margin: 0 auto;
  margin-top: 48px;
  transition: transform 0.3s ease;
}
.form-btn:hover,
.form-btn:focus {
  transform: scale(0.95);
}

.form-img {
  margin: 0 auto;
  margin-top: 34px;
}

@media screen and (min-width: 1435px) {
  #form {
    padding-top: 164px;
    position: relative;
  }

  .form-title {
    position: absolute;
    top: 250px;
    left: 55%;
    transform: translateX(-50%);
    width: 447px;

    .about-text {
      margin: 0;
    }
  }

  .form-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
  }

  .form-img {
    width: 330px;
    margin: 0;
  }

  #consultation-form {
    width: 423px;
  }
}
