/* Меню «Услуги» и полоса хабов. Посадочные sbor73, 02.11.2026. */

.nav-services {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-services__btn {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  padding: 0;
}

#site-header .nav-services {
  align-self: center;
  height: auto;
}

#site-header .nav-services__btn,
#site-header .nav-services__btn:hover,
#site-header .nav-services__btn:focus,
#site-header .nav-services__btn:focus-visible,
#site-header .nav-services__btn:active {
  height: auto !important;
  min-height: 0 !important;
  line-height: 1.25 !important;
  overflow: visible !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  transform: none !important;
  padding: 0 !important;
  filter: none !important;
}

.nav-services__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.08);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(20, 20, 20, 0.12);
  z-index: 80;
}

.nav-services__menu a {
  position: relative;
  display: block;
  padding: 10px 12px 12px;
  border-radius: 10px;
  color: #141414;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
  text-decoration: none;
  white-space: nowrap;
  background: transparent;
  transition: color 0.2s ease;
}

.nav-services__menu a::after {
  content: '';
  position: absolute;
  left: 12px;
  bottom: 6px;
  width: 0;
  height: 2px;
  background: #2cc919;
  border-radius: 2px;
  transition: width 0.2s ease;
}

.nav-services__menu a:hover,
.nav-services__menu a:focus-visible {
  background: transparent;
  color: #2cc919;
}

.nav-services__menu a:hover::after,
.nav-services__menu a:focus-visible::after {
  width: calc(100% - 24px);
}

.mobile-services {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 4px 0 8px;
  padding: 8px 0 4px;
  border-bottom: 1px solid #e8e8e8;
}

.mobile-services__label {
  padding: 4px 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #178a0c;
}

.accept-hubs {
  width: min(1120px, calc(100% - 32px));
  margin: 8px auto 28px;
}

.accept-hubs__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #178a0c;
}

.accept-hubs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.accept-hubs__list a,
.calc-hubs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(44, 201, 25, 0.35);
  color: #141414;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.accept-hubs__list a:hover,
.calc-hubs a:hover,
#right-title:hover,
#mobile-title:hover {
  background: #eefbe8;
  color: #178a0c;
}

#right-title,
#mobile-title {
  color: inherit;
  text-decoration: none;
}

.calc-hubs {
  margin: 0 0 12px;
}

#site-header:has(.nav-services:hover),
#site-header:has(.nav-services:focus-within),
#site-header:has(.nav-services__menu:not([hidden])) {
  overflow: visible !important;
}

#site-header:has(.nav-services:hover) .site-header__inner,
#site-header:has(.nav-services:focus-within) .site-header__inner,
#site-header:has(.nav-services__menu:not([hidden])) .site-header__inner,
#site-header:has(.nav-services:hover) > .site-container,
#site-header:has(.nav-services:focus-within) > .site-container,
#site-header:has(.nav-services__menu:not([hidden])) > .site-container {
  overflow: visible !important;
}

@media (min-width: 768px) {
  #site-header,
  #site-header .site-header__inner,
  #site-header .site-header__nav,
  #site-header .nav-services {
    overflow: visible !important;
  }
}

#prices tr.is-filtered-out {
  display: none !important;
}

.lp-shared-lead {
  width: 100%;
  max-width: 100%;
  margin: 8px 0 12px;
  padding-left: max(var(--site-gutter, 24px), env(safe-area-inset-left, 0px));
  padding-right: max(var(--site-gutter, 24px), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

/* Баннер cookie — прямой ребёнок body. Общее правило body > * ставит
   position: relative, и белая плашка оказывается в потоке под футером. */
#cookie-consent.cookie-consent {
  position: fixed !important;
  z-index: 180 !important;
  top: auto !important;
  bottom: 16px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: min(52rem, calc(100% - 32px)) !important;
  max-width: min(52rem, calc(100% - 32px)) !important;
  margin: 0 !important;
}

#cookie-consent.cookie-consent [hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  #cookie-consent.cookie-consent .cookie-consent__inner {
    flex-direction: row;
    align-items: center;
    gap: 16px;
  }

  #cookie-consent.cookie-consent .cookie-consent__actions {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .site-footer__inner--bottom {
    padding-top: 10px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 767px) {
  #cookie-consent.cookie-consent {
    bottom: calc(var(--bottom-bar-height, 6.75rem) + 8px) !important;
    width: calc(100% - 16px) !important;
    max-width: calc(100% - 16px) !important;
  }
}

/* Карта сайта в подвале — две колонки, без пустой полосы снизу */
.site-footer__nav:not(.site-footer__nav--docs) {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 18px !important;
  row-gap: 8px !important;
  align-items: start !important;
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.85fr) minmax(300px, 1.45fr) minmax(0, 0.9fr) !important;
  }
}

@media (max-width: 767px) {
  .nav-services {
    display: none;
  }

  /* Бургер выше нижней панели. Кнопки страницы не торчат из-под меню. */
  #mobile-drawer.flex {
    z-index: 220 !important;
  }

  body:has(#mobile-drawer.flex) .mobile-bottom-bar,
  body:has(#mobile-drawer.flex) .mobile-bottom-bar *,
  body:has(#mobile-drawer.flex) .calc-drawer:not(.is-open),
  body:has(#mobile-drawer.flex) .calc-drawer:not(.is-open) * {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .mobile-drawer-panel__phone {
    white-space: nowrap;
    line-height: 1.3;
  }

  /* Иконка машинки не наезжает на подпись. Подпись в потоке, слева от неё иконка. */
  .site-leadgen__cta .fos-btn > span,
  .site-leadgen__cta .fos-btn > .desktop-waste-cta__text,
  .site-leadgen__cta .desktop-waste-cta > span,
  .waste-stage-multi__cta .fos-btn > span,
  .waste-stage-multi__cta .desktop-waste-cta > span,
  .address-stage__cta .fos-btn > span,
  .address-stage__cta .desktop-waste-cta > span,
  #prices .fos-btn-pair .fos-btn > span,
  #b2b .fos-btn > span,
  #about .fos-btn > span,
  #eco .fos-btn > span,
  #fleet .fos-btn > span {
    position: static !important;
    inset: auto !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
    flex: 0 1 auto !important;
    text-align: left !important;
  }

  .site-leadgen__cta .fos-btn,
  .waste-stage-multi__cta .fos-btn,
  .address-stage__cta .fos-btn,
  #prices .fos-btn-pair .fos-btn,
  #b2b .fos-btn,
  #about .about-stage__cta .fos-btn,
  #eco .eco-stage__cta .fos-btn,
  #fleet .fleet-stage__cta .fos-btn {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
  }

  .site-leadgen__cta .fos-btn > i,
  .site-leadgen__cta .fos-btn > .fos-btn__icon,
  .waste-stage-multi__cta .fos-btn > i,
  .address-stage__cta .fos-btn > i,
  #prices .fos-btn-pair .fos-btn > i,
  #b2b .fos-btn > i,
  #about .fos-btn > i,
  #eco .fos-btn > i,
  #fleet .fos-btn > i {
    position: static !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    transform: none !important;
    margin: 0 !important;
  }
}

@media (min-width: 768px) and (max-width: 1360px) {
  #site-header .site-header__nav {
    gap: 0.35rem !important;
  }

  #site-header .site-header__nav .nav-link,
  #site-header .nav-services__btn {
    font-size: 12px !important;
  }

  #site-header .site-header__logo-word {
    max-width: 108px !important;
  }
}

@media (min-width: 768px) and (max-width: 1180px) {
  #site-header .site-header__nav {
    gap: 0.22rem !important;
  }

  #site-header .site-header__nav .nav-link,
  #site-header .nav-services__btn {
    font-size: 11px !important;
  }

  #site-header .site-header__logo-word {
    display: none !important;
  }

  #site-header .site-header__socials {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 859px) {
  #site-header .site-header__nav a[data-nav-section="info"],
  #site-header .site-header__nav a[data-nav-section="news"] {
    display: none !important;
  }
}
