/*CSS VARIABLES & BASE*/
:root {
  --primary: #2c3e50;
  --secondary: #3498db;
  --accent: #2ecc71;
  --dark: #1a1a1a;
  --light: #f8f9fa;
  --gray: #6c757d;
  --border-radius: 8px;
  --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  --transition: all 0.3s ease;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #fff;
  background: linear-gradient(135deg, #0c0e15 0%, #1a2a3a 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/*CONTAINER & LAYOUT*/
@media (min-width: 1200px) {
  .container {
    max-width: 1450px !important;
  }
}

/*LOGO & BRANDING*/
.logo-image {
  max-width: 35px;
  margin-right: 8px;
}

.navbar-brand {
  display: flex;
  align-items: center;
  color: #fff !important;
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-brand__text {
  font-size: 25px;
  font-weight: 700;
  color: #fff !important;
  margin-right: 50px;
  margin-left: 8px;
}

/*NAVBAR */
.navbar {
  background: #121722;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
  margin-right: 25px;
}

.nav-link {
  color: #b8b8b8 !important;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
  transition: var(--transition);
  font-size: 20px;
}

.nav-link:hover {
  color: #fff !important;
}

.nav-item.active .nav-link {
  color: #fff !important;
  font-weight: 700;
}

.nav-item.active .nav-link::after {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/*BUTTONS */
.buttons {
  color: #fff;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent), #1abc9c);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  margin-right: 1rem;
}

.open_clean_form {
    color: #fff;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent), #1abc9c);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  font-size: 1.05rem;
  text-decoration: none;
  display: inline-block;
  margin-right: 1rem;
}

.buttons:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
}

.buttons-light {
  color: #fff;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.15);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(5px);
  font-size: 1.2rem;
  text-decoration: none;
  display: inline-block;
}

.buttons-light:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.btn-primary {
  color: #fff;
  border-radius: 30px;
  background: linear-gradient(90deg, var(--accent), #1abc9c);
  border: none;
  padding: 0.8rem 2rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(46, 204, 113, 0.4);
  font-size: 1.05rem;
  height: auto;
  line-height: 1.5;
}

.btn-primary:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(46, 204, 113, 0.6);
  text-decoration: none;
}

/*HEADER SECTION*/
.header {
  background: url(../images/header_background.png);
  background-repeat: no-repeat;
  background-position: right;
  background-size: contain;
  display: flex;
  min-height: 850px;
  align-items: center;
  padding-top: 90px;
  position: relative;
  overflow: hidden;
}

.header::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(12, 15, 21, 0.7) 0%, rgba(26, 42, 58, 0.95) 70%);
  z-index: -1;
}

.header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 30% 30%, rgba(46, 204, 113, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 70% 70%, rgba(52, 152, 219, 0.1) 0%, transparent 30%);
  z-index: -1;
}

.header-text__h1 {
  color: #fff;
  font-size: 60px;
  font-weight: 750;
  letter-spacing: 1px;
  margin-bottom: 20px;
  background: linear-gradient(to right, var(--accent), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  line-height: 1.2;
}

.header-text__p {
  font-size: 22px;
  opacity: 0.8;
  margin-bottom: 30px;
  max-width: 700px;
}

/*FORM INPUTS & LOGIN*/
.inputs {
  width: 100%;
  background: rgba(20, 25, 35, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  text-align: center;
  color: #fff;
  transition: var(--transition);
}

.inputs:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(46, 204, 113, 0.2);
}

.login-links {
  display: block;
  color: var(--gray);
  transition: var(--transition);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
}

.login-links:hover {
  color: var(--accent);
  text-decoration: none;
  padding-left: 1.25rem;
  background: rgba(46, 204, 113, 0.1);
  border-color: rgba(46, 204, 113, 0.2);
}

/*MODAL WINDOW*/
.modal-content {
  background: rgba(30, 40, 60, 0.95);
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
}

.modal-title {
  color: #fff;
  font-size: 1.5rem;
}

.close {
  color: var(--gray) !important;
  opacity: 1;
  transition: var(--transition);
}

.close:hover {
  color: var(--accent) !important;
}

.modal-body {
  padding: 1.5rem;
}

/* NOTIFICATIONS - Исправленный стиль */
.notification {
  /* Позиционирование поверх всех элементов */
  position: absolute;
  top: 90px; /* Отступ сверху (высота navbar + отступ) */
  left: 40%;
  transform: translateX(-50%); /* Центрирование по горизонтали */
  transform: translateY(10px);
  z-index: 1050; /* Выше чем navbar (1000) и header */
  
  /* Размеры и форма "куба" */
  width: 90%;
  max-width: 600px; /* Ограничение ширины для блочного вида */
  min-height: 100px; /* Минимальная высота */
  
  /* Оформление */
  background: rgba(30, 40, 60, 0.95); /* Плотный фон, чтобы текст не просвечивал */
  padding: 25px 30px;
  border-radius: var(--border-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  
  /* Анимация появления */
  opacity: 0;
  animation: slideDown 0.4s ease forwards;
}

/* Анимация появления */
@keyframes slideDown {
  from {
    opacity: 0;
    top: 60px;
  }
  to {
    opacity: 1;
    top: 80px;
  }
}

.notification > h2 {
  color: #fff;
  font-size: 22px;
  margin: 0 0 10px 0; /* Отступ только снизу */
  font-weight: 700;
  line-height: 1.3;
}

.notification > p {
  margin: 0;
  padding: 0;
  color: #fff;
  opacity: 0.85;
  font-size: 15px;
  line-height: 1.5; /* Улучшенная читаемость */
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
  .notification {
    top: 70px;
    width: 95%;
    padding: 20px;
  }
  
  .notification > h2 {
    font-size: 18px;
  }
  
  .notification > p {
    font-size: 13px;
  }
}
/* RESPONSIVE DESIGN (Mobile First)*/
@media (max-width: 768px) {
body {
background-attachment: scroll;
}
  
  .header-text__h1 {
    font-size: 32px;
  }
  
  .header-text__p {
    font-size: 14px;
  }
  
  .buttons,
  .buttons-light {
    width: 100%;
    max-width: 300px;
    margin-bottom: 10px;
    display: block;
    text-align: center;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 300px;
    margin-top: 15px;
  }
  
  .navbar {
    padding: 0.75rem 0;
  }
}

@media (max-width: 480px) {
  .header-text__h1 {
    font-size: 28px;
  }
  
  .navbar-brand__text {
    font-size: 18px;
    margin-right: 20px;
  }
}

/*Content-block*/
.content-block {
    transform: translateY(100px);
    border-radius: 3px;
    background: linear-gradient(#0c0e15 0%, #1a2a3a 100%);
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.4);
    padding: 25px;
}

.content-block__name {
  font-weight: 600;
  margin-bottom: 12px;
}
.content-block__body {
  margin-left: -10px;
}

/* Принудительно скрыть backdrop */
.modal-backdrop.show {
    display: none !important;
    opacity: 0 !important;
}

/* Разблокировать прокрутку */
body.modal-open {
    overflow: auto !important;
    padding-right: 0 !important;
}

/* Карта новостей */

.card-body {
    background: linear-gradient(#0c0e15 0%, #1a2a3a 100%);
}

.card-img-top {
    background: #0c0e15;
}

.card-title {
  font-size: 30px;
}

.card-text {
  font-size: 18px;
}

/* content-block1 */
.content-block1 {
  margin-top: 10px;
  width: 430px;
}