/* .body-no-scroll {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
} */

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  z-index: 1001;
  padding: 10px;
}

.modal-content {
  margin: 10px auto;
  padding: 20px 10px 20px 20px;
  position: relative;
  background: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow);
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #707070;
  z-index: 1001;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgba(248, 248, 248, 0.9);
  backdrop-filter: blur(2px);
  border: 1.5px solid #e9e9e9;
  transition: all 0.2s ease;
  outline: none;
}

.close-btn:hover {
  color: #cb0a14;
  background: rgba(255, 255, 255, 0.95);
  border-color: #cb0a14;
  transform: rotate(90deg);
}

.modal-header-container {
  top: 0;
  padding-bottom: 5px;
  margin-bottom: 5px;
  border-bottom: 1px solid #e9e9e9;
}

.modal-header {
  color: #2a4fa9;
  font-size: 1.2em;
  font-weight: 600;
  padding-bottom: 2px;
}

.modal-subheader {
  color: #6e7b9c;
  font-size: 0.9em;
  font-weight: 400;
}

.modal-scrollable-content {
  overflow-y: auto;
  flex: 1;
  padding-right: 10px; /* Чтобы компенсировать скроллбар */
  margin-right: -5px; /* Придвигаем скроллбар ближе к краю */  
}

.modal-info h4 {
  margin: 0 auto;
  margin-block: 20px 5px;
  color: #2a4fa9;
  font-weight: 600;
  font-size: clamp(12px, 5vw, 14px);  
}

.modal-info ul,
.modal-info p {
  font-size: 13px;
  color: #000;
  padding-left: 0;
  margin-top: 2px;
  list-style-type: none;
}

.modal-info ul li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

ul li::before {
  content: "•";
  position: absolute;
  left: 5px;
  color: #555;
}

/* Стили для скроллбара */

.modal-scrollable-content::-webkit-scrollbar {
  width: 5px;
}

.modal-scrollable-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.modal-scrollable-content::-webkit-scrollbar-thumb {
  background: #dedede;
  border-radius: 5px;
}

.modal-scrollable-content::-webkit-scrollbar-thumb:hover {
  background: #b6b4b4;
}