.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgb(0 0 0 / 70%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  padding: 10px; /* Запас для мобильных */
}

.modal-content {
  margin: 0;
  padding: 20px 10px 20px 20px;
  position: relative;
  background: #f8f8f8;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  width: 100%;
  max-width: 500px;
  max-height: 90%; /* 80vh; */
  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;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(248, 248, 248, 0.9);
  backdrop-filter: blur(2px);
  border: 1px solid #e9e9e9;
  transition: all 0.2s ease;
}

.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: #b20009;
  font-size: 1.2em;
  font-weight: bold;
  padding-bottom: 2px;
}

.modal-subheader {
  color: #570004;
  font-size: 0.8em;
  font-style: italic;
}

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

.modal-info h4 {
  color: #910000;
  font-size: 14px;
}

.modal-info ul, .modal-info p {
  font-size: 13px;
  color: #555;
  margin: 0.5em 0;
  padding-left: 0;
  padding-bottom: 10px;
  list-style-type: none;
}

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

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

/* Стили для скроллбара */
.modal-scrollable-content::-webkit-scrollbar {
  width: 4px;
}

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

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

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