.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    background: linear-gradient(rgba(10, 12, 22, 0.89), rgba(12, 14, 22, 0.822));
}

.modal-overlay:not(.hidden) { display: flex; }
  
.modal-window {
    position: relative;
    background: #fff;
    color: #000;
    width: 100%;
    max-width: 1380px;
    max-height: 92vh;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    overflow: auto;
}
  
.modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8f9fa;
}
  
.modal-content {
    padding: 20px;
    max-height: 70vh; /* Максимальная высота для скролла */
    overflow-y: auto; /* Добавление скролла при необходимости */
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 10px;
}

.close-btn {
  font-size: 24px;
  font-weight: bold;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
  border: none;
  border-radius: 10px;
  font-family: 'TTDaysSans-Black';
  background-color: #fff;
}

.close-btn:hover { color: #333; }

.modal-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.asText {
    background:none;
    border:none;
    margin:0;
    padding:0;
    color: #4CAF50;
    cursor: pointer;
}
.asText:hover { color: #06c50c; transition-delay: 0.15s }
.asText:active { color: #058109; }

#cookie-accept {
    margin-left: 12px; 
    padding: 8px 14px; 
    background: #4CAF50; 
    color: #fff; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer;
}

#cookie-accept:hover { background-color: #06c50c; transition-delay: 0.15s }

#cookie-accept:active { background-color: #058109; } 

#cookie-banner {
    position: fixed; 
    bottom: 0; 
    left: 0; 
    right: 0; 
    background: rgba(0,0,0,0.85); 
    color: #fff; 
    padding: 16px; 
    text-align: center; 
    z-index: 1000; 
    display: none;
}

.cookies-text-block h4 {
    text-align: center;
    margin-top: 2rem;
}