/* Подключение стилей информационного блока */
@import url('templates/infoBlock.css');
/* Подключение стилей нумерованного информационного блока */
@import url('templates/infoBlockNumList.css');
/* Подключение стилей карточек инструкторов */
@import url('templates/instructorCards.css');
/* Подключение стилей публикаций LinkedIn */
@import url('templates/linkedinPosts.css');
/* Подключение стилей слайдбара */
@import url('templates/sidebar.css');
/* Подключение стилей таблицы */
@import url('templates/table.css');
/* Подключение стилей кнопок */
@import url('templates/button.css');
/* Подключение стилей форм */
@import url('templates/form.css');
/* Подключение стилей заголовка страницы */
@import url('templates/pageHeader.css');
@import url('templates/cards.css');
@import url('templates/instructions.css');
/* Подключение стилей компонента ввода с кнопкой */
@import url('templates/inputWithButton.css');
/* Подключение стилей хедера и футера */
@import url('templates/headerFooter.css');
/* Подключение стилей FAQ аккордеона */
@import url('templates/faqAccordion.css');
/* Подключение стилей временной шкалы */
@import url('templates/timeline.css');
/* Подключение стилей временной шкалы */
@import url('templates/timeline2.css');
/* Подключение стилей панели статистики */
@import url('templates/statsPanel.css');
/* Подключение стилей слайдера отзывов */
@import url('templates/testimonials.css');
/* Подключение стилей таблицы функций */
@import url('templates/featureTable.css');
/* Подключение стилей героической секции */
@import url('templates/heroSection.css');
/* Подключение стилей карточек особенностей */
@import url('templates/featureCards.css');
/* Подключение стилей членов команды */
@import url('templates/teamMembers.css');
/* Подключение стилей контактной формы */
@import url('templates/contactForm.css');
/* Подключение стилей для секции FAQ */
@import url('templates/faqSection.css');
/* Подключение стилей страницы ошибок */
@import url('errorPage.css');
/* Подключение стилей компонента загрузки */
@import url('templates/loader.css');
/* Подключение стилей для страницы "В разработке" */
@import url('templates/underConstruction.css');
/* Подключение стилей для страницы "В разработке" */
@import url('templates/consentBanner.css');

/* Обязательно включаем для всех элементов */
* {
  box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea, #764ba2);
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
    color: #333;
    overflow-x: hidden;
}

/* ==================================================================== */
/* =============================== 1. Main Page ====================== */
.main {
    margin: 0;
    padding: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #fdfbfb, #ebedee);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .main .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    height: 100%;
    width: 100%;
    gap: 0; /* Убираем зазоры между блоками */
  }
  
  .main .box {
    background: white;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .main .box:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  }
  
  /* Анимация появления */
  .main .animate {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s forwards ease-out;
  }
  
  .main .delay-1 {
    animation-delay: 0.3s;
  }
  
  @keyframes fadeUp {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Кнопки */
  .main .button-group {
    margin-top: 1.5rem;
    display: flex;
    gap: 1rem;
  }
  
  .main .btn {
    background-color: #5c67f2;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease;
  }
  
  .main .btn:hover {
    background-color: #4a54e1;
  }
  
  /* Логотип */
  .main .logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #5c67f2;
    margin-bottom: 1rem;
  }
  
  .main .subtitle {
    font-size: 1rem;
    color: #666;
    text-align: center;
    max-width: 300px;
  }
  
  /* Тексты */
  .main h1, .main h2 {
    margin-bottom: 1rem;
    text-align: center;
  }
  
  .main p {
    text-align: center;
    max-width: 400px;
  }
  
  /* Адаптив для мобильных устройств */
  @media (max-width: 768px) {
    .main .grid-container {
      grid-template-columns: 1fr;
      grid-template-rows: auto;
    }
  
    .main .button-group {
      flex-direction: column;
      width: 100%;
      align-items: center;
    }
  
    .main .btn {
      width: 80%;
    }
  }
  
/* ==================================================================== */
/* =============================== 2. Login Page ====================== */  
.cabinet-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f4f7fa; /* Легкий фон для страницы */
    margin: 0; /* Убираем возможные отступы */
    width: 100%; /* Убедимся, что контейнер занимает всю ширину экрана */
}

.cabinet {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.1), -4px -4px 10px rgba(255, 255, 255, 0.9);
    padding: 30px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-sizing: border-box; /* Убираем возможные проблемы с размерами */
    transition: all 0.3s ease;
}

.cabinet:hover {
    box-shadow: 6px 6px 12px rgba(0, 0, 0, 0.12), -6px -6px 12px rgba(255, 255, 255, 0.9);
}

.cabinet-title {
    font-size: 24px;
    color: #333333;
    margin-bottom: 20px;
}

.cabinet-description {
    font-size: 16px;
    color: #666666;
    margin-bottom: 25px;
}

.cabinet-input {
    width: 93%;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 8px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 16px;
    color: #333;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.cabinet-input:focus {
    outline: none;
    border-color: #6c7b8b;
    box-shadow: 0 0 8px rgba(108, 123, 139, 0.5);
}

.cabinet-button {
    width: 100%;
    padding: 12px;
    background-color: #6c7b8b;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cabinet-button:hover {
    background-color: #5b6c7a;
}

.cabinet-logo {
    margin-top: 20px;
    font-size: 18px;
    font-weight: 500;
    color: #333;
}

/* ==================================================================== */
/* =============================== 3. Alerts ====================== */  

.alert {
  padding: 15px 20px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.4;
  font-family: Arial, sans-serif;
  width: 100%;
  box-sizing: border-box;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

@media (max-width: 600px) {
  .alert {
      font-size: 14px;
      padding: 12px 16px;
  }
}

/* Стили для интеграции сайдбара с контентом */
.page-container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    background: transparent;
    padding: 0;
    margin: 0;
}

.content-wrapper {
    flex: 1;
    transition: margin-left var(--transition-speed) ease;
    width: calc(100% - var(--sidebar-width));
    margin-left: var(--sidebar-width);
    padding: 0 15px;
    background: transparent;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .content-wrapper {
        margin-left: 0;
        width: 100%;
    }
    
    body.overflow-hidden {
        overflow: hidden;
    }
}

/* Стили для кнопки показа сайдбара на мобильных устройствах */
.btn-show-sidebar {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1060; /* Увеличиваем z-index, чтобы кнопка была поверх сайдбара */
    background-color: #6f42c1;
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    display: none;
}

/* Показываем кнопку только на мобильных устройствах */
@media (max-width: 768px) {
    .btn-show-sidebar {
        display: flex;
    }
}

/* Блокировка прокрутки при открытом мобильном меню */
body.overflow-hidden {
    overflow: hidden;
}

/* Исправление градиентного фона - добавить в конец файла */

html, body {
    min-height: 100vh !important;
    height: auto !important;
}

body {
    background: linear-gradient(135deg, #667eea, #764ba2) !important;
    background-attachment: fixed !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
}

.container, .page-container, .content-wrapper, .table-component {
    background: transparent !important;
}

/* Для блоков с фиксированной высотой */
.cabinet-container, .main {
    background: transparent !important;
}

/* Изменение стилей для контейнеров с фиксированной высотой */
.container.py-4 {
    min-height: 100vh;
    height: auto;
}

/* Убедимся, что футер не разрывает градиент */
footer {
    background: transparent !important;
}

/* Стили для новой главной страницы */
.home-hero {
  display: flex;
  flex-direction: column;
  justify-content: center; /* вертикальное центрирование */
  align-items: center;
  height: 100vh; /* Полная высота видимого экрана */
  padding: 0 2rem; /* Убираем вертикальные отступы */
  text-align: center;
  position: relative; /* Для точного позиционирования */
  top: 0; /* Компенсация скрытого хедера */
}

.home-logo {
  font-size: 5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1rem;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -1px;
}

.home-tagline {
  font-size: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 3rem;
  max-width: 700px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.home-buttons {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 4rem;
  justify-content: center; /* Добавляем центрирование по горизонтали */
  width: 100%; /* Убедимся, что контейнер кнопок занимает всю доступную ширину */
}

.home-buttons .sp-btn {
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.home-buttons .sp-btn:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.home-nav-bar {
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 1.25rem;
  max-width: 800px;
  width: 100%;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-nav-links {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.home-nav-link {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.1rem;
  transition: transform 0.3s, color 0.3s;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.home-nav-link:hover {
  color: #e0e0e0;
  transform: translateY(-3px);
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .home-logo {
    font-size: 3.5rem;
  }
  
  .home-tagline {
    font-size: 1.25rem;
  }
  
  .home-buttons {
    flex-direction: column;
  }
  
  .home-nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

.home-content {
  max-width: 900px;
  margin: 0 auto;
  /* Небольшой сдвиг вверх для визуального центрирования */
  transform: translateY(-2vh);
}

/* Увеличиваем отступ между кнопками и навигационным баром */
.home-buttons {
  margin-bottom: 5rem;
}

.home-minimal-header {
  background-color: transparent;
}

.home-minimal-footer.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Добавьте эти стили в конец файла */

/* Анимации для главной страницы */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Применяем анимации к элементам главной страницы */
.home-logo {
  animation: fadeInDown 0.8s ease-out forwards;
}

.home-tagline {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out 0.3s forwards;
}

.home-buttons {
  opacity: 0;
  animation: scaleIn 0.6s ease-out 0.6s forwards;
}

.home-nav-bar {
  opacity: 0;
  animation: fadeIn 0.8s ease-out 0.9s forwards;
}

/* Анимация для кнопок с разной задержкой */
.home-buttons .sp-btn:nth-child(1) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.home-buttons .sp-btn:nth-child(2) {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.5s ease-out 0.9s forwards;
}

/* Анимация для навигационных ссылок с каскадной задержкой */
.home-nav-links li {
  opacity: 0;
  transform: translateY(10px);
}

.home-nav-links li:nth-child(1) {
  animation: fadeInUp 0.4s ease-out 1.1s forwards;
}

.home-nav-links li:nth-child(2) {
  animation: fadeInUp 0.4s ease-out 1.2s forwards;
}

.home-nav-links li:nth-child(3) {
  animation: fadeInUp 0.4s ease-out 1.3s forwards;
}

.home-nav-links li:nth-child(4) {
  animation: fadeInUp 0.4s ease-out 1.4s forwards;
}