/* site-nav-v1: общее раскрывающееся меню «Услуги» для шапок сайта */
.site-dd { position: relative; display: inline-flex; align-items: center; }
.site-dd-btn {
  display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0;
  border: 0; background: transparent; color: rgba(255,255,255,.85);
  font: inherit; font-size: 15px; line-height: 1.4; white-space: nowrap; cursor: pointer;
}
.site-dd-btn:hover, .site-dd.open .site-dd-btn { color: #7cc7ff; }
.site-dd-btn:focus-visible { outline: 2px solid #7cc7ff; outline-offset: 4px; }
.site-dd-caret {
  width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-2px) rotate(45deg); transition: transform .2s;
}
.site-dd .site-dd-menu {
  position: absolute; top: 100%; left: 50%; z-index: 60;
  display: flex; flex-direction: column; min-width: 230px; padding: 8px; margin-top: 6px;
  border: 1px solid rgba(74,163,255,.3); border-radius: 14px; background: #0b1222;
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.site-dd .site-dd-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
@media (hover: hover) {
  .site-dd:hover .site-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .site-dd:hover .site-dd-caret { transform: translateY(1px) rotate(225deg); }
}
.site-dd.open .site-dd-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.site-dd.open .site-dd-caret { transform: translateY(1px) rotate(225deg); }
.site-dd .site-dd-menu a {
  display: block; min-height: 0; width: auto; padding: 10px 14px; border-radius: 10px;
  color: rgba(255,255,255,.88); font-size: 15px; line-height: 1.4; text-align: left;
  text-decoration: none; white-space: nowrap;
}
.site-dd .site-dd-menu a:hover,
.site-dd .site-dd-menu a:focus-visible { background: rgba(74,163,255,.12); color: #7cc7ff; outline: none; }
.site-dd .site-dd-menu a[aria-current="page"],
.svc-nav > a[aria-current="page"] { color: #7cc7ff; }

/* Страницы со шапкой svc-header: на планшете и телефоне услуги показаны сразу списком */
@media (max-width: 1100px) {
  .svc-nav .site-dd { display: block; width: 100%; }
  .svc-nav .site-dd .site-dd-btn { display: none; }
  .svc-nav .site-dd .site-dd-menu {
    position: static; min-width: 0; margin: 0 0 4px; padding: 0 0 6px 10px;
    border: 0; border-bottom: 1px solid rgba(74,163,255,.15); border-radius: 0;
    background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none;
  }
  .svc-nav .site-dd .site-dd-menu::before {
    content: "Услуги"; position: static; display: block; height: auto; margin-left: -10px; padding: 10px 14px 4px;
    color: #7cc7ff; font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  }
  .svc-nav .site-dd .site-dd-menu a { display: flex; align-items: center; min-height: 44px; padding: 10px 14px; }
  .svc-header > .logo { margin-right: auto; }
}
.svc-header > .logo { flex-shrink: 0; }
@media (max-width: 620px) {
  .svc-header > .logo { flex: 1 1 auto; min-width: 0; }
  .svc-header:has(> .logo) > .back-link { order: 2; margin-bottom: 0; }
}

/* Главная: группа «Услуги» в мобильном меню и непрозрачный фон меню */
.mobile-menu .site-mobile-group {
  margin: 0; padding: 10px 14px 4px; color: #7cc7ff;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
}
.mobile-menu .site-mobile-sub {
  display: flex; flex-direction: column; padding-left: 10px; margin-bottom: 4px;
  border-bottom: 1px solid rgba(74,163,255,.15);
}
@media (max-width: 1024px) {
  .header .mobile-menu {
    background: #0b1222; backdrop-filter: none; -webkit-backdrop-filter: none;
    max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); overflow-y: auto; overscroll-behavior: contain;
  }
  .mobile-menu .site-mobile-sub .mobile-menu-link { min-height: 44px; }
}

/* Главная, компьютер 1025–1439 px: в шапке не хватает места, убираем кнопки-дубли пунктов меню */
@media (min-width: 1025px) and (max-width: 1439px) {
  .header-actions .btn-primary { display: none; }
}
@media (min-width: 1025px) and (max-width: 1179px) {
  .header-actions .btn-ghost { display: none; }
}
.header.svc-header { z-index: 40; }
