/* ============================================
   BOTTOM HEADER Component
   Появляется при прокрутке страницы вниз
   Pixel Perfect из Figma
   ============================================ */

.bottom-header {
  position: fixed;
  bottom: 30px; /* отступ снизу 30px */
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  justify-content: center;
  transform: translateY(calc(100% + 30px)); /* учитываем отступ при скрытии */
  transition: transform 0.3s ease-out;
  opacity: 0;
  pointer-events: none;
}

.bottom-header.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.bottom-header__container {
  position: relative;
  width: 850px; /* точная ширина меню при 1920px */
  height: 80px; /* точная высота из Figma */
  background: rgba(13, 14, 15, 0.95); /* фон с прозрачностью */
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245, 247, 251, 0.05);
  border-radius: 16px; /* скругление углов */
  margin: 0 auto;
  padding: 0 24px; /* внутренние отступы */
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.3); /* тень для глубины */
}

.bottom-header__left {
  display: flex;
  align-items: center;
  gap: 20px; /* расстояние между логотипом и меню 20px */
  flex-shrink: 0;
}

.bottom-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.bottom-header__logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.bottom-header__logo-link:hover {
  opacity: 0.8;
}

.bottom-header__logo-icon {
  width: 149.12px;
  height: 27px;
  display: block;
}

.bottom-header__menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  margin-top: 3px; /* опускаем навигацию вниз на 3px */
}

.bottom-header__menu-item {
  display: inline-block;
}

.bottom-header__menu-link {
  padding: 3px 10px 5px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.26em;
  color: var(--color-text-primary);
  border-radius: 8px;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  background: transparent;
  text-decoration: none;
}

.bottom-header__menu-link:hover {
  background: rgba(245, 247, 251, 0.05);
}

.bottom-header__menu-link--active {
  background: rgba(245, 247, 251, 0.05) !important;
  backdrop-filter: blur(4px);
  border-radius: 10px;
}

.bottom-header__cta-btn {
  padding: 10px 16px 11px;
  font-family: var(--font-primary);
  font-weight: 600;
  font-size: 16px;
  line-height: 1.0625em;
  color: #000000;
  background: var(--color-text-primary);
  border-radius: 10px;
  box-shadow: 0px 3.408731698989868px 20px 0px rgba(0, 0, 0, 0.25);
  transition: all var(--transition-base);
  border: none;
  cursor: pointer;
}

.bottom-header__cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0px 4px 24px rgba(0, 0, 0, 0.3);
}

/* Для больших экранов (> 2000px) - центрируем меню */
@media (min-width: 2001px) {
  .bottom-header__container {
    width: 850px;
  }
}

/* Для экранов 1920px */
@media (min-width: 1920px) and (max-width: 2000px) {
  .bottom-header__container {
    width: 850px;
  }
}

/* Для экранов меньше 1920px - адаптивная ширина */
@media (max-width: 1919px) {
  .bottom-header__container {
    width: calc(100% - 60px); /* отступы по 30px с каждой стороны */
    max-width: 850px;
  }
}

/* Скрываем на мобильных устройствах */
@media (max-width: 1024px) {
  .bottom-header {
    display: none;
  }
}

