:root {
  --vh: 1vh;
}

/* Базовые стили */
html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

/* Логотип */
.logo {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  height: 40px; 
  width: auto;
}

.logo-main {
  top: 150px;
  left: 50%;
  height: 60px; 
}

/* Контейнер секций */
.sections-container {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  /* Добавим стек по оси Z чтобы избежать наложения */
  z-index: 1;
}

/* Секции */
.section {
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  width: 100%;
  position: fixed; /* Меняем с absolute на fixed */
  top: 0;
  left: 0;
  overflow: hidden;
  visibility: visible; /* Добавляем явную видимость */
  opacity: 1; /* Добавляем явную непрозрачность */
  transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1.000);
}

/* Навигационные точки */
.navigation {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.nav-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  margin: 10px 0;
  cursor: pointer;
  transition: 0.3s;
}

.nav-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* Стили для светлых секций */
.light-section ~ .navigation .nav-dot {
  background: rgba(26, 26, 46, 0.5); /* темно-синий с прозрачностью */
}

.light-section ~ .navigation .nav-dot.active {
  background: #1a1a2e; /* темно-синий */
}

/* Темные и светлые секции */
.dark-section {
  background: linear-gradient(
    135deg,
    #1a1a2e 0%,
    #16213e 50%,
    #1f3d85 100%
);
  color: #ffffff;
}

.light-section {
  background: linear-gradient(
        45deg,
        #e5e7eb 0%,    /* Значительно темнее */
        #d1d5db 50%,    /* Средний серый */
        #9ca3af 100%    /* Более темный серый */
    );
color: #1a1a1a;
}

/* Оверлей для фоновых изображений */
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.dark-section .overlay {
  background: rgba(0, 0, 0, 0.5);
}

.light-section .overlay {
  background: rgba(255, 255, 255, 0.5);
}

/* Меню */
.menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 1000;
  transition: 0.5s;
}

.menu.active {
  right: 0;
}

/* Гамбургер меню */
.hamburger {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  cursor: pointer;
  color: white;
  transition: color 0.3s ease;
}

/* Изменение цвета гамбургера на светлых секциях */
.light-section:first-child ~ .hamburger,
.light-section.active ~ .hamburger {
    color: #1a1a2e; /* темно-синий */
}

/* Контент секций */
.content {
  position: relative;
  z-index: 2;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

/* Карточки и блоки с информацией */
.card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dark-section .card {
  background: rgba(0, 0, 0, 0.6);
}

/* Ссылки */
a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.dark-section a:hover {
  color: #60a5fa;
}

.light-section a:hover {
  color: #2563eb;
}

/* Списки */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Адаптивность */
@media (max-width: 768px) {
  .hide-mobile {
    display: none;
  }

  .navigation {
      right: 10px;
  }

  .logo {
    height: 20px; 
    top: 20px; 
  }

  .logo-main {
    top: 100px;
    left: 50%;
    height: 40px; 
  }

  .nav-dot {
      width: 8px;
      height: 8px;
      margin: 8px 0;
  }

  .hamburger {
      top: 15px;
      right: 15px;
  }

  .content {
      padding: 0 20px;
  }

  h1 {
      font-size: 2.5rem;
  }

  h2 {
      font-size: 2rem;
  }
}


.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.bg-opacity-90 {
  backdrop-filter: blur(5px);
}

.rounded-lg {
  border-radius: 0.5rem;
}

.shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .desktop-image-min img {
      max-height: 60vh;
      object-fit: contain;
      margin: 0 auto;
  }
}

/* Контактная информация */
.contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  color: inherit;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 8px;
}

@media (min-width: 768px) {
  .contact-link {
      padding: 8px;
      gap: 12px;
  }
}

.contact-link:hover,
.contact-link:visited,
.contact-link:active {
  color: #DC2626 !important;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(5px);
}

.contact-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .contact-icon {
      width: 24px;
      height: 24px;
  }
}

/* Стили социальных сетей */
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 8px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.1);
}

.social-link img {
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .social-link {
      padding: 8px;
  }
  
  .social-link img {
      width: 32px;
      height: 32px;
  }
}

.social-link:hover {
  background: rgba(220, 38, 38, 0.1);
  transform: scale(1.1);
}

/* Стили видео */
.video-container {
  width: 100%;
  max-width: 270px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .video-container {
      max-width: 360px;
  }
}

.video-wrapper {
  position: relative;
  padding-top: 177.78%; /* Соотношение 9:16 */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 
      0 10px 15px -3px rgba(0, 0, 0, 0.4),
      0 4px 6px -4px rgba(0, 0, 0, 0.4),
      0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-wrapper:hover {
  transform: translateY(-2px);
  box-shadow: 
      0 20px 25px -5px rgba(0, 0, 0, 0.1),
      0 8px 10px -6px rgba(0, 0, 0, 0.1),
      0 0 0 1px rgba(0, 0, 0, 0.05);
}

.video-content {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width:768px) {
  .centered-items {
    display: flex;
    justify-content: center;
    align-items: center;
  }
}

/* Дополнительные медиа запросы для маленьких экранов */
@media (max-width: 375px) {
  .content {
      padding-left: 8px;
      padding-right: 8px;
  }

  .contact-link span {
      font-size: 14px;
  }

  .video-container {
      max-width: 240px;
  }

  .contact-icon {
      width: 16px;
      height: 16px;
  }

  .social-link img {
      width: 20px;
      height: 20px;
  }
}