body {
  font-family: 'Roboto', sans-serif;
  margin: 0;
  padding: 0;
  color: #333;
  padding-top: 52px; /* Отступ для фиксированной шапки */
  background: #f5f5f5;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 52px; /* Уменьшаем высоту */
  background: linear-gradient(to bottom, rgba(32, 31, 31, 0.9) 0%, rgba(59, 58, 58, 0.75) 100%);
  backdrop-filter: blur(15px); /* Размытие для эффекта стекла */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  z-index: 1000;
}


.container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 0 30px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 25px; /* Расстояние между логотипом и разделителем */
  margin-left: 70px; /* Убираем лишний отступ */
}

.logo img {
  width: 200px;
  height: auto;
  transition: transform 0.3s ease-in-out;
  
}

.logo-divider {
  width: 2px;
  height: 50px; /* Высота линии */
  background-color: #8004b1; /* Цвет линии */
  display: inline-block;
}
.logo span {
  font-weight: bold;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 1.2;
}

.logo img:hover {
  transform: scale(1.05); /* Легкое увеличение при наведении */
}

nav {
  flex-grow: 1;
  display: flex;
  justify-content: center; /* Центрируем текст */
  align-items: center;
  margin-right: 60px; /* Убираем смещение */
}
nav ul {
  display: flex;
  list-style: none;
  gap: 40px;
  margin: 0;
  padding: 0;
}

nav ul li {
  display: inline;
}

nav ul li a {
  text-decoration: none;
  color: #fff; /* Белый текст */
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease-in-out;
}

nav ul li a:hover {
  color: #a38ae5; /* Светло-фиолетовый при наведении */
}

.hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  height: 40vh; /* Уменьшили высоту в 2 раза */
  min-height: 300px;
  max-height: 400px;
  padding-top: 30px;
  padding-bottom: 30px;
  background: linear-gradient(to bottom, rgba(15,15,15,1), rgba(0,0,0,0.9));
  color: white;
  position: relative;
  width: 100%;
  z-index: 1;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08); /* Светлый разделитель */
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); /* Глубина */
}



.hero h1, 
.hero h2, 
.hero .subtitle {
  color: #ffffff !important; /* Чистый белый цвет */
  max-width: 900px; /* Ограничиваем ширину */
  z-index: 2; /* Выше всех */
}

.hero .subtitle {
  font-size: 16px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.8);
}

.hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  font-weight: 500; /* Делаем текст менее жирным */
  color: #222;
  text-align: center; /* Выравнивание по центру */
  line-height: 1.2; /* Добавляем межстрочное расстояние */
  max-width: 800px; /* Делаем ширину заголовка фиксированной */
  margin-bottom: 10px; /* Отступ вниз */
  white-space: normal;
  text-shadow: 0px 4px 15px rgba(255, 255, 255, 0.3);
}

.hero p {
  font-size: 14px;
  color: #9e9e9e; /* Делаем текст серым */
  max-width: 600px; /* Ограничиваем ширину подзаголовка */
  text-align: center; /* Центрируем текст */
  margin: 0 auto; /* Делаем подзаголовок строго под заголовком */
  text-shadow: none;
  color: rgba(255, 255, 255, 0.8);

}

.hero::before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 80%);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.about {
  width: 100%;
  padding: 20px 5px 40px; /* Уменьшили верхний отступ */
  min-height:unset;
  height: auto; /* Автоматическая высота */
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%),
              linear-gradient(180deg, #2a0a5e 0%, #e9e3f1 100%);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;
  overflow: visible !important;
  position: relative; /* 👈 ДОБАВЬ ЭТО */
  will-change: opacity, transform;
  backface-visibility: hidden;
  perspective: 1000px;
  border: none; /* временно отключим */
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 0.1s;
  max-height: 280px; /* свернутая высота */
  padding-top: 60px; /* добавляем отступ сверху */
  z-index: 10; 
  
}

@keyframes fadeInUp {
  to {
      opacity: 1;
      transform: translateY(0);
  }
}
.about h2 {
font-size: 42px;
font-weight: 600;
color: #fff;
text-align: center;
padding-left: 20px;
margin: -40px auto 20px auto; /* 🔝 подняли и дали отступ вниз */
opacity: 1 !important;
transform: none !important;
filter: none !important;
white-space: nowrap; /* 🔒 не переносится */
}


.about h2, .about p {
  text-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
}

.about p {
  font-size: 18px;
  line-height: 1.6;
  color: #ddd;
  text-align: left;
  max-width: 600px;
  flex: 2;
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}


.goals {
  text-align: center;
  background: #f5f5f5;
  padding: 60px 20px;
  padding-top: 20px; /* Уменьшает отступ сверху */
  margin-top: -50px; /* Поднимаем секцию выше */
  position: relative;
  overflow: hidden;
}

.goals h2 {
  font-size: 50px !important; /* Принудительное применение */
  font-weight: 500 !important; /* Принудительный жирный */
  color: #333 !important; /* Цвет */
  text-align: center !important; /* Центрирование */
  margin-bottom: 30px !important; /* Отступ снизу */
  font-family: 'Roboto', sans-serif !important; /* Используемый шрифт */
  
}


.goals-grid {
  display: flex;
  grid-template-columns: repeat(3, 1fr); /* Три карточки в ряд */
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 2; /* Чтобы карточки были выше линий */
  justify-content: center;
  align-items: stretch; /* Выравнивает карточки по высоте */

}

.goal-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.1);
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Прижимает содержимое вверх */
  flex: 1; /* Равномерное растяжение */
  min-height: 100%; /* Устанавливаем минимальную высоту */
}

.goal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 12px 25px rgba(0, 0, 0, 0.15);
}

.goal-card img {
  width: 50px;
  height: 50px;
}

.goal-card h3 {
  min-height: 70px; /* Одинаковая высота заголовков */
  display: flex;
  align-items: center;
  justify-content: center;
}

.goal-card p {
  flex-grow: 1; /* Текст заполняет пространство равномерно */
  display: flex;
  align-items: flex-start; /* Поднимает текст выше */
  text-align: center;
  justify-content: center;
}

.goal-card i {
  font-size: 50px; /* Увеличение размера иконки */
  color: #5a4385 !important; /* Цвет */
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #f2f2f2;
  color: #333;
  font-size: 16px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.04);

}

.footer-divider {
  height: 2px;
  background: linear-gradient(to bottom, rgba(32, 31, 31, 0.95), rgba(59, 58, 58, 0.75));
  margin-top: 40px;
}

.footer .container {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 1000px;
  width: 100%;
}
.footer-logo img {
  width: 200px; /* Увеличиваем размер логотипа */
  height: auto;
}


.footer-info {
  text-align: left;
}

.footer-info p {
  margin: 5px 0;
  color: #555;
}

.footer-info a {
  color: #333;
  text-decoration: none;
}

.footer-info a:hover {
  color: #333;
  text-decoration: underline;
}
.medium-logo {
  width: 120px; /* Средний размер логотипа */
  height: auto;
}

.services {
  text-align: center;
  padding: 80px 0;
  background: #fff;
  max-width: 100%;
  padding: 80px 0 40px;
  min-height: 300px; /* Устанавливаем минимальную высоту блока */

}

.services h2 {
  font-size: 50px; /* Увеличенный размер шрифта */
  font-weight: 500; /* Средняя жирность */
  color: #333; /* Цвет темно-серый */
  text-align: center; /* Центрирование */
  margin-bottom: 50px; /* Увеличенный отступ вниз */
  margin-top: -60px; /* Поднимаем заголовок вверх */
}



.carousel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  width: 80%; /* Теперь блок шире */
  max-width: 960px; /* Ограничение максимальной ширины */
  margin: 0 auto;
}
.carousel-wrapper {
  display: flex;
  transition: transform 0.5s ease-in-out; /* Плавная анимация */
  will-change: transform;
  overflow: hidden; /* Обрезаем лишние слайды */
  width: 100%;
}

.carousel-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex-grow: 1;
  transition: transform 0.5s ease-in-out;
  will-change: transform;
  overflow: hidden;
  width: 100%;
}

.carousel-content img {
  width: 60px;
  height: 60px;
  margin-bottom: 40px; /* Увеличение расстояния между иконкой и текстом */
}

.carousel-content p {
  font-size: 22px; /* Размер шрифта */
  font-weight: 300; /* Легкий вес шрифта */
  color: #555; /* Светло-серый цвет */
  font-family: 'Roboto', sans-serif; /* Использование шрифта Roboto */
  text-align: center; /* Выравнивание по центру */
  letter-spacing: 0.5px; /* Немного увеличенный межбуквенный интервал */
}

.carousel-content i {
  font-size: 50px; /* Увеличиваем размер иконок */
  margin-bottom: 40px; 
  color: #7157a5 !important;
  
}

.slide {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100px; /* Устанавливаем минимальную высоту */
  text-align: center;
  flex-grow: 1;
}

.slide p {
  min-height: 50px; /* Делаем высоту одинаковой для всех */
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide.active {
  min-width: 100%; /* Каждый слайд занимает всю ширину */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-in-out;
}

.carousel button {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 2px solid #aaa;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  padding: 0; /* Убираем внутренний отступ */
}

.carousel button::before {
  font-size: 36px; /* Увеличиваем стрелку внутри кнопки */
  font-weight: bold; /* Делаем её жирнее */
}
.carousel button:hover {
  background: rgba(0, 0, 0, 0.1);
}

.carousel-dots {
  margin-top: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  margin: 5px;
  background: #7157a5!important; 
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background: #5a4385 !important; 
}

.slide {
  display: none;
}

.slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 1;
  position: relative;
}
.subtitle {
  font-size: 4px; /* Уменьшаем размер текста */
  font-weight: 400;
  font-style: italic;
  color: #999; /* Делаем текст немного светлее */
  text-align: center;
  max-width: 600px; /* Сужаем ширину текста */
  margin: 5px auto 0 auto; /* Добавляем небольшой отступ сверху */
  letter-spacing: 0.1px; /* Минимальная разрядка */
  transition: transform 0.3s ease, font-size 0.3s ease; /* Плавная анимация */
}

.subtitle:hover {
  font-size: 20px; /* Увеличенный размер при наведении */
  transform: scale(1.1); /* Немного увеличиваем */
  color: #666; /* Делаем текст чуть темнее */
}

/* Общие стили (по умолчанию для десктопа) */

/* 1. Адаптация для планшетов (ширина до 1024px) */
@media (max-width: 1024px) {
  .container {
      max-width: 90%;
      padding: 0 20px;
  }

  .hero h1 {
      font-size: 42px;
      font-weight: 500;
      text-shadow: 0px 4px 15px rgba(255, 255, 255, 0.3);
      margin-bottom: 10px;
  }

  .goal-card {
      flex-direction: column; /* Меняем расположение контента */
      text-align: center;
  }
}

@media (max-width: 768px) {
  .about {
      flex-direction: column; /* Блоки станут вертикальными */
      text-align: center; /* Центрирование текста */
      padding: 40px 15px;
  }

  .about h2 {
      font-size: 32px; /* Уменьшаем заголовок */
      text-align: center; /* Центрируем */
      padding: 0;
      margin-bottom: 15px;
  }

  .about p {
      font-size: 16px;
      text-align: center; /* Центрируем текст */
      max-width: 90%; /* Ограничиваем ширину */
  }

  @media (max-width: 768px) {
      /* Шапка */
      .header {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
        padding: 12px 20px;
        background: linear-gradient(to bottom, rgba(32, 31, 31, 0.95), rgba(59, 58, 58, 0.85));
        backdrop-filter: blur(15px);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        position: fixed;
        top: 0;
        width: 100%;
        z-index: 1000;
      }
    
      /* Логотип */
      .logo {
        margin: 0 auto;
        padding: 8px 0;
        text-align: center;
        width: 100%;
      }
    
      .logo img {
        width: 180px;
        height: auto;
      }
    
      /* Меню */
      nav {
        width: 100%;
        margin-top: 8px;
      }
    
      nav ul {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
        padding: 0;
        margin: 0;
      }
    
      nav ul li {
        width: 100%;
        text-align: center;
      }
    
      nav ul li a {
        display: block;
        font-size: 16px;
        color: #fff;
        padding: 10px;
        transition: background 0.2s ease;
      }
    
      nav ul li a:hover {
        background: rgba(255, 255, 255, 0.05);
      }
    
      /* Выпадающее меню */
      .dropdown-menu {
        position: static;
        width: 100%;
        background: rgba(28, 28, 30, 0.95);
        padding: 0;
        margin-top: 4px;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        margin-bottom: 10px; /* ⬅️ добавили отступ вниз */
      }
    
      .dropdown-menu li a {
        font-size: 15px;
        padding: 10px 16px;
        display: block;
        color: #fff;
        white-space: normal;
        word-wrap: break-word;
      }
    
      /* Сдвиг вниз контента под фиксированную шапку */
      .hero,
      .about,
      .goals {
        padding-top: 130px;
      }
    
      .footer {
        flex-direction: column;
        text-align: center;
      }
    }
    
    


  /* Адаптация заголовка "Цели и направления" */
  .goals-grid {
      display: flex;
      flex-direction: column; /* Блоки в столбик */
      align-items: center;
      gap: 20px;
  }

  .goal-card {
      width: 100%;
      text-align: center;
      padding: 20px;
  }

  /* Карусель "Наши возможности" */
  .carousel {
      width: 100%;
      overflow: hidden;
      display: flex;
      flex-direction: column;
      align-items: center;
  }

  .carousel-content {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
      text-align: center;
  }

  .carousel button {
      width: 35px;
      height: 35px;
      font-size: 18px;
  }
}

.carousel button {
      width: 40px; /* Уменьшаем размер кнопок */
      height: 40px;
      font-size: 18px; /* Делаем стрелки меньше */
      position: absolute;
      top: 50%; /* Центрируем кнопки */
      transform: translateY(-50%);
  }

  .carousel .prev {
      left: 5px; /* Подвигаем влево */
  }

  .carousel .next {
      right: 5px; /* Подвигаем вправо */
  }

  .carousel-content {
      text-align: center;
      padding: 20px 10px;
  }

  .carousel-dots {
      margin-top: 15px;
  }


/* 3. Адаптация для маленьких экранов (ширина до 480px) */
@media (max-width: 480px) {
  .hero h1 {
      font-size: 24px;
  }

  .hero p {
      font-size: 14px;
  }

  .carousel-content p {
      font-size: 18px;
  }

  .goal-card {
      padding: 20px;
  }

  .footer {
      flex-direction: column;
      text-align: center;
  }
}

img {
  max-width: 100%;
  height: auto;
}

button {
  font-size: 1rem;
  padding: 10px 20px;
}

h1 {
  font-size: 5vw; /* Меняется в зависимости от ширины экрана */
}

.highlight-text {
  color: inherit; 
  font-weight: normal;
  display: inline-block;
  transition: color 1s ease-in-out, transform 1s ease-in-out;
}

.highlight-text.animated {
  color: #FF0000; /* Красный цвет, как в примере */
  transform: scale(1.1); /* Увеличение текста */
}

html {
  scroll-behavior: smooth;
}


.animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 1), rgba(0, 0, 0, 1));
  overflow: hidden;
  z-index: -1;
}


.divider {
  height: 2px;
  background: linear-gradient(to right, #ccc, transparent);
  margin: 40px 0;
}


/* Адаптация для мобильных устройств */
@media (max-width: 1024px) {
  .goals-grid {
      grid-template-columns: 1fr; /* Одна колонка для мобильных */
      gap: 20px;
  }
}

.separator {
  height: 2px;
  display: none; /* Или просто */
  background: transparent;
  margin: 40px 0;
  box-shadow: 0 2px 10px rgba(200, 200, 200, 0.5);
  margin-bottom: 20px;
}

.blur-effect {
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent);
  filter: blur(50px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
  0% {
      opacity: 0;
      transform: translateY(20px);
  }
  100% {
      opacity: 1;
      transform: translateY(0);
  }
}

#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.section-divider {
  width: 100%;
  height: 12px; /* Высота разделителя (можно увеличить) */
  background-color: white; /* Белый цвет */
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Тень, как у Apple */
}

@keyframes fadeInScale {
  0% {
      opacity: 0;
      transform: scale(0.8);
      filter: blur(5px);
  }
  100% {
      opacity: 1;
      transform: scale(1);
      filter: blur(0);
  }
}

@keyframes fadeInRight {
  0% {
      opacity: 0;
      transform: translateX(0px); /* Оставляем на месте */
  }
  100% {
      opacity: 1;
      transform: translateX(0);
  }
}


/* Эффект медленного переливания фона */
@keyframes fadeBackground {
  0% { opacity: 0.2; transform: scale(1); }
  100% { opacity: 0.4; transform: scale(1.1); }
}

/* [data-aos] {
  transform: none !important;
  opacity: 1 !important;
} */


.logo a,
.logo img,
nav ul li a {
  cursor: pointer;
}

.goal-text {
  min-height: 130px; /* Устанавливаем минимальную высоту */
  display: flex;
  align-items: center; /* Выравниваем текст по центру */
}

nav ul li a.active {
  color: #a38ae5;
  font-weight: 700;
}

.project-logos {
  padding: 60px 20px;
  background: #f5f5f5;
  text-align: center;
  overflow-x: hidden;
}

.project-logos h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
  margin-top: -20px; /* подними на 20px вверх */
}

.logos-slider {
  position: relative;
  width: 100%;
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 60px;
  animation: scrollLeft 40s linear infinite;
  width: max-content;
}

.project-logo {
  filter: grayscale(100%) brightness(80%);
  transition: filter 0.3s ease-in-out, transform 0.3s ease;
  height: 60px;
}

/* 🔹 Fade-эффекты по бокам */
.logos-slider::before,
.logos-slider::after {
  content: '';
  position: absolute;
  top: 0;
  width: 100px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.logos-slider::before {
  left: 0;
  background: linear-gradient(to right, #f5f5f5 0%, transparent 100%);
}

.logos-slider::after {
  right: 0;
  background: linear-gradient(to left, #f5f5f5 0%, transparent 100%);
}

.project-logo:hover {
  filter: none;
  transform: scale(1.1);
  cursor: pointer;
}

@keyframes scrollLeft {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%); /* Логично только если контент продублирован */
  }
}

/* Адаптивность */
@media (max-width: 768px) {
  .project-logo {
      height: 40px;
  }

  .logos-container {
      max-width: 1200px;
      margin: 0 auto;
      overflow: hidden;
      position: relative;
      padding: 0 20px; /* Добавим отступы слева и справа */
  }
  
  .logos-wrapper {
      max-width: 1200px;
      margin: 0 auto;
      overflow: hidden; /* ⬅️ скрывает выход за границы */
      position: relative;
    }

}

.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: #1c1b1f; /* тёмно-серый */
  color: #fff;
  margin: 8% auto;
  padding: 40px;
  border-radius: 20px;
  width: 90%;
  max-width: 500px;
  box-shadow: 0 0 30px rgba(0,0,0,0.5);
  position: relative;
  text-align: left;
  animation: fadeInUp 0.4s ease-out;
}

.modal-content h3 {
  font-size: 24px;
  margin-bottom: 20px;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 25px;
  font-size: 28px;
  color: #ccc;
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.doc-list {
  list-style: none;
  padding: 0;
}

.doc-list li {
  margin: 10px 0;
}

.doc-list a {
  color: #a38ae5; /* фиолетовый акцент */
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
}

.doc-list a:hover {
  text-decoration: underline;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 110%;
  left: 0;  
  min-width: 360px;
  z-index: 999;
  animation: fadeDropdown 0.25s ease-out forwards;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateX(0);
  padding: 14px 0;
  background: rgba(28, 28, 30, 0.95); /* немного темнее и менее прозрачный */
  border-radius: 10px;
  box-shadow: 0 12px 25px rgba(0,0,0,0.35);
  backdrop-filter: blur(10px);

}

@keyframes fadeDropdown {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown:hover .dropdown-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.dropdown-menu li {
  padding: 0;
}

.dropdown-menu li a {
  color: #ffffff; /* белый по умолчанию */
  font-size: 15px;
  padding: 12px 20px;
  display: block;
  transition: background 0.2s ease, color 0.2s ease;
  border-radius: 6px;
}

.dropdown-menu li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #a38ae5; /* фиолетовый при наведении */
}

nav ul li.dropdown {
  position: relative;
}

@media (max-width: 768px) {
  .dropdown-menu {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    background: #1c1b1f;
    border-radius: 0;
  }

  .dropdown-menu li a {
    padding: 10px 16px;
    font-size: 16px;
  }
}

.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.logos-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 0 20px;
}

.logos-slider {
  width: 100%;
  overflow: hidden; /* обязательно! */
  position: relative;
}

.logo-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scrollLeft 40s linear infinite;
  padding-left: 10px; /* добавляем безопасный отступ */
  padding-right: 10px;
}

.about {
  transition: none !important;
  transform: none !important;
  animation: none !important;
  will-change: auto !important;
}

#about {
  will-change: auto !important;
  transition: none !important;
  animation: none !important;
  transform: none !important;
  opacity: 1 !important;
  position: relative !important;
  backface-visibility: hidden;
}

.footer-divider-apple {
  width: 100%;
  height: 30px;
  background: linear-gradient(to top, #f2f2f2 0%, #ffffff 100%);
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 5;
  margin-top: 60px;
}

.wave-divider {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  background: transparent;
  position: relative;
  z-index: 1;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 80px;
  transform: translateY(1px);
}

.wave-divider {
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: none;
  z-index: 2;
}

.wave-divider svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.wave-divider path {
  fill: url(#waveGradient);
}

.wave path {
  transition: fill 1s ease-in-out;
}

.about-container {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 60px 20px;
  color: white;
}

.about-lead {
  font-size: 18px;
  margin-bottom: 25px;
  color: rgba(255, 255, 255, 0.85);
}

.about-btn {
  background-color: #a38ae5;
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background-color: #866cd1;
}

.about-full-info {
  display: none;
  margin-top: 20px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
}

#about,
#goals,
#services {
  scroll-margin-top: 100px;
}

/* --- Фикс скачка при якорной прокрутке --- */

section[id] {
  scroll-margin-top: 100px; /* Учитываем фиксированную шапку */
}


/* Обнуляем возможные наследованные transition/animation */
#about,
#goals,
#services {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

/* На всякий случай обнулим scroll-behavior на html */
html {
  scroll-behavior: smooth;
}

.about {
  background: radial-gradient(circle at top center, #4b2c91, #0f0f1a);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}


.about h2 {
  font-size: 48px;
  margin-bottom: 30px;
  font-weight: 700;
}

.about-lead {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 25px;
}

.about-btn {
  background: #a38ae5;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #866cd1;
}


.about-full-info.open {
  max-height: 500px; /* достаточно для всего текста */
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
 }

 .about {
  background: radial-gradient(circle at top center, #4b2c91, #0f0f1a);
  color: white;
  padding: 100px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.about h2 {
  font-size: 48px;
  margin-bottom: 30px;
  font-weight: 700;
}

.about-lead {
  font-size: 20px;
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: 25px;
}

.about-btn {
  background: #a38ae5;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #866cd1;
}

.about-full-info {
  display: none;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(20px);
  transition: all 0.5s ease;
  margin-top: 0;
}

.about-full-info.open {
  display: block;
  max-height: 500px;
  opacity: 1;
  transform: translateY(0);
  margin-top: 20px;
}

.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.about {
  display: flex;
  flex-direction: column;
  justify-content: center; /* по вертикали */
  align-items: center;     /* по горизонтали */
  text-align: center;
  height:auto;
  background: radial-gradient(circle at top center, #4b2c91, #0f0f1a);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 60px 20px 40px; /* верх - бок - низ */

}

.about h2 {
  font-size: 40px;
  margin-bottom: 16px;
  font-weight: 700;
  margin-top: 0;

}

.about-lead {
  font-size: 18px;
  line-height: 1.6;
  max-width: 700px;
  opacity: 0.95;
  margin-bottom: 25px;
}

.about-btn {
  background: #a38ae5;
  border: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
}

.about-btn:hover {
  background: #866cd1;
}

.about-full-info {
  display: none;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.05); /* легкая прозрачность */
  border: 1px solid rgba(255, 255, 255, 0.2); /* светлая рамка */
  border-radius: 20px; /* скругления */
  padding: 30px 40px;
  max-width: 800px;
  margin: 30px auto 0;
  backdrop-filter: blur(10px); /* стеклянный эффект */
  transition: all 0.4s ease;
  opacity: 0;
  transform: translateY(20px);
  overflow: hidden;
}

.about-full-info.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.about-btn {
  background: #a38ae5;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.about-btn:hover {
  background: #866cd1;
}

.about-btn .arrow {
  transition: transform 0.3s ease;
  display: inline-block;
}

.about-btn.open .arrow {
  transform: rotate(180deg);
}

.about-full-info {
  display: none;
  margin-top: 30px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 25px 30px;
  color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  font-size: 16px;
  line-height: 1.6;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s ease;
}

.about-full-info.open {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.about-btn span {
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.about-btn.open span {
  transform: rotate(180deg);
}

.about-description {
background: rgba(255, 255, 255, 0.08);
backdrop-filter: blur(10px);
padding: 30px 40px;
border-radius: 20px;
max-width: 800px;
margin: 20px auto 0;
font-size: 16px;
line-height: 1.6;
color: rgba(255, 255, 255, 0.95);
text-align: center;
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

html, body {
overflow-x: hidden;
}

/* ---- COOKIE BANNER ---- */
.cookie-banner {
position: fixed;
left: 0;
bottom: 0;
width: 100%;
padding: 18px 24px;
background: rgba(28, 28, 30, 0.95);
backdrop-filter: blur(8px);
color: #fff;
font-size: 15px;
line-height: 1.4;
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 20px;
transform: translateY(110%);          /* скрыт за пределами экрана */
transition: transform 0.4s ease-out; /* плавный выезд */
z-index: 3000;                       /* выше всего остального */
}

.cookie-banner.show {
transform: translateY(0);            /* появляется снизу */
}

.cookie-banner a {
color: #a38ae5;
text-decoration: underline;
}

.cookie-btn {
flex-shrink: 0;
background: #a38ae5;
border: none;
border-radius: 8px;
padding: 10px 20px;
font-size: 15px;
font-weight: 500;
color: #fff;
cursor: pointer;
transition: background 0.3s ease;
}

.cookie-btn:hover {
background: #866cd1;
}

@media (max-width: 600px) {
.about {
  padding: 24px 0 32px 0;         /* Верх/низ поменьше, по бокам убираем */
  min-height: unset;
  height: auto;
  max-height: unset;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}
.about h2 {
  font-size: 26px;
  margin-bottom: 16px;
  margin-top: 0;
  white-space: normal;
  text-align: center;
  padding: 0 16px;
}
.about-description,
.about p {
  font-size: 15px;
  line-height: 1.5;
  max-width: 94vw;
  padding: 18px 10px 24px 10px;
  background: rgba(70, 40, 120, 0.82); /* Можно сделать чуть темнее для читаемости */
  border-radius: 18px;
  margin: 0 8px 0 8px;
  text-align: left;
  box-shadow: 0 2px 16px rgba(40,0,40,0.12);
  color: #fff;
  word-break: break-word;
  /* Сглаживаем нижний fade */
  background: linear-gradient(
    to bottom,
    rgba(70, 40, 120, 0.93) 80%,
    rgba(255,255,255,0.04) 100%
  );
}
}

/* Скрываем гамбургер на десктопе */
.hamburger { display: none; }

/* Показываем меню на десктопе */
nav.main-nav { display: flex; }

/* Мобилка */
@media (max-width: 768px) {
  /* Показываем гамбургер */
  .hamburger {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: #fff;
  }

  /* Прячем основное меню */
  nav.main-nav {
    display: none;
    position: absolute;
    top: 52px;  /* под шапкой */
    left: 0;
    width: 100%;
    background: #1c1b1f;
    flex-direction: column;
    z-index: 1000;
  }
  /* Открытие меню */
  nav.main-nav.open {
    display: flex;
  }

  /* Стили пунктов */
  nav.main-nav li a {
    display: block;
    padding: 12px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    text-decoration: none;
  }

  /* Подменю «Документы» */
  .dropdown .dropdown-menu {
    display: none;
  }
  .dropdown.open .dropdown-menu {
    display: block;
  }
}

body.menu-open {
  overflow: hidden;
  touch-action: none;
}


