.modal {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.modal[aria-hidden="false"] {
  display: block;
  opacity: 1;
}
.modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
}
.modal__container {
  position: relative;
  background: #fff;
  border-radius: 30px;
  width: 80vw;
  max-width: 1400px;
  max-height: 92%;
  overflow-y: auto;
  padding: 60px 32px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.modal__wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.modal-form {
  margin-top: 32px;
}
.modal__left h2 {
  font-size: 46px;
}
.modal__right {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.modal__right p.popup-menu .menu {
  font-size: 32px;
  font-weight: 500;
}
.modal__contacts {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.modal__contacts img,
.modal__contacts svg {
  height: 32px;
  width: 32px;
}
.modal__contacts .offer__nav_menu_item_social {
  display: flex;
  gap: 20px;
  align-items: center;
}
.modal__img {
  height: 100%;
  width: 100%;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  border-radius: 30px;
  background-image: url("../images/offer.webp");
}
.modal__close {
  color: #212529;
  background: 0 0;
  border: none;
  font-size: 32px;
  width: min-content;
  height: auto;
  text-align: center;
  cursor: pointer;
  position: absolute;
  top: 20px;
  right: 32px;
  transition: 0.3s ease;
}
.modal__close:hover {
  color: red;
}
.modal input {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #212529;
  border-radius: 30px;
  padding: 12px 32px;
  width: 100%;
  border: none;
  background-color: #eee;
}
.modal textarea {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--font-color-dark);
  border-radius: var(--border);
  padding: 12px var(--padding);
  width: 100%;
  resize: none;
  border: none;
  background-color: #eee;
}
.modal select {
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: #212529;
  border-radius: 30px;
  padding: 12px 32px;
  width: 100%;
  border: none;
  background-color: #eee;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23212529'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 12px;
  transition:
    background-color 0.3s ease,
    color 0.3s ease;
}
.flex {
  display: flex;
  align-items: center;
  gap: 12px;
  background-color: #eee;
  padding: 0 0 0 32px;
  border-radius: 30px;
}
.flex label {
  font-weight: 500;
}
.flex select {
  flex: 1;
  background-color: #007bff;
  color: #fff;
}
.modal select:focus {
  outline: 0;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}
#modal-2 .modal__wrap,
#modal-3 .modal__wrap,
#modal-4 .modal__wrap,
#modal-5 .modal__wrap {
  padding-top: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}
#modal-2 .modal__container,
#modal-3 .modal__container {
  max-width: 600px;
  width: 90%;
  padding: 32px;
}
#modal-4 .modal__container,
#modal-5 .modal__container,
#modal-6 .modal__container {
  max-width: fit-content;
}
#modal-2 p,
#modal-3 p,
#modal-4 p,
#modal-5 p {
  max-width: 95%;
  font-size: 30px;
}
#modal-2 h2,
#modal-3 h2,
#modal-4 h2,
#modal-5 h2 {
  text-align: center;
  font-size: 24px;
}
#modal-2 .modal__contacts,
#modal-3 .modal__contacts,
#modal-4 .modal__contacts,
#modal-5 .modal__contacts {
  align-items: center;
  text-align: center;
}
.modal__qr {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.modal__qr .button {
  background-color: #28a319;
}
.modal__qr .button:hover {
  background-color: #28a319;
}
.qr__img {
  max-height: 300px;
  object-fit: contain;
}
.mob {
  display: none;
}
@media screen and (max-width: 1200px) {
  .modal__wrap {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .modal__container {
    overflow-x: hidden;
    max-height: 90%;
    overflow-y: auto;
    padding: 20px 20px;
  }
}
@media screen and (max-width: 480px) {
  #modal-2 h2,
  #modal-3 h2,
  #modal-4 h2,
  #modal-5 h2,
  .modal__left h2 {
    font-size: 24px;
  }
  .pc {
    display: none;
  }
  .mob {
    display: block;
  }
  .modal__close {
    top: 10px;
    right: 20px;
  }
  .modal-form {
    margin-top: 20px;
  }
  .modal input,
  .modal select,
  .modal textarea {
    padding: 8px 16px;
    border-radius: 14px;
  }
  .modal label {
    padding: 0 16px;
    font-size: 16px;
    text-align: left;
  }
  .flex {
    border-radius: 14px;
    align-items: flex-start;
    padding: 8px 0 0 0;
    flex-direction: column;
  }
  .form-check label {
    font-size: 12px;
  }
  #modal-2 .modal__container,
  #modal-3 .modal__container,
  #modal-4 .modal__container,
  #modal-5 .modal__container,
  .modal__container {
    max-width: 100vw;
    width: 100%;
    height: 100%;
    max-height: 100%;
    padding: 40px 20px 100px;
    box-shadow: none;
  }
  .modal__overlay {
    background: #fff;
  }
  #modal-2 p,
  #modal-3 p,
  #modal-4 p,
  #modal-5 p,
  .modal__right p {
    font-size: 18px;
    max-width: 100%;
    text-align: center;
  }
  .modal__contacts .offer__nav_menu_item_social {
    flex-wrap: wrap;
    justify-content: center;
  }
  .modal__img {
    display: none;
  }
  #modal-2 .modal__wrap,
  #modal-3 .modal__wrap,
  #modal-4 .modal__wrap,
  #modal-5 .modal__wrap {
    padding-top: 0;
  }
  .modal .button {
    padding: 12px 20px;
    font-size: 14px;
  }
}
