﻿.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  min-height: 80px;
}

.site-header--scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 32px rgba(15, 23, 42, 0.07);
}

.site-header__bar {
  position: relative;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}

.site-header__start,
.site-header__actions,
.site-header__nav {
  display: flex;
  align-items: center;
}

.site-header__start {
  flex: 1 1 auto;
  min-width: 0;
  gap: clamp(1.5rem, 2vw, 2.5rem);
}

.site-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  padding: 0;
  color: var(--text-strong);
  text-decoration: none;
  background: none;
}

.site-header__brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  color: var(--brand-dark);
}

.site-header__layers-icon {
  width: 100%;
  height: 100%;
}

.site-header__brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -.025em;
}

/* display:flex Р·Р°РґР°С‘С‚СЃСЏ С‡РµСЂРµР· .site-header__nav вЂ” РЅРµ РґСѓР±Р»РёСЂРѕРІР°С‚СЊ .desktop-menu,
   РёРЅР°С‡Рµ РЅР° РјРѕР±РёР»РєРµ СЃРїРµС†РёС„РёС‡РЅРѕСЃС‚СЊ .site-header .desktop-menu Р±СЊС‘С‚ display:none Сѓ __nav */
.site-header .desktop-menu {
  align-items: center;
  min-width: 0;
}

.site-header .module,
.site-header .module-menu {
  min-width: 0;
}

.site-header .module-menu .menu-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 1.8vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header .module-menu .menu-item {
  display: flex;
  align-items: center;
}

.site-header .module-menu .menu-item > a,
.site-header .module-menu .submenu-item > a {
  padding: 0;
  background: none;
  color: #334155;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
  text-decoration: none;
}

.site-header .module-menu .menu-item > a:hover,
.site-header .module-menu .submenu-item > a:hover {
  color: var(--text-strong);
}

.site-header .module-menu .menu-item > a.router-link-active,
.site-header .module-menu .menu-item > a.router-link-exact-active,
.site-header .module-menu .submenu-item > a.router-link-active,
.site-header .module-menu .submenu-item > a.router-link-exact-active {
  color: var(--text-strong);
  font-weight: 700;
  text-decoration: none;
}

.site-header .module-menu .submenu {
  display: none;
}

.site-header__actions {
  flex: 0 0 auto;
  gap: 1.4rem;
}

.site-header__login,
.site-header__account {
  padding: 0 .2rem;
  background: none;
  color: #334155;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  text-decoration: none;
  transition: color .15s ease, background .15s ease;
}

.site-header__login:hover,
.site-header__account:hover {
  color: var(--text-strong);
}

.site-header__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.25rem;
  border-radius: .5rem;
  border: none;
  background: #171717;
  color: #fff;
  font-size: .875rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 1px 2px #0f172a0f;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
}

.site-header__cta:hover {
  background: #1e293b;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
}

.site-header__cta:active {
  transform: translateY(1px);
}

.site-header__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  cursor: pointer;
}

.site-header__burger svg {
  width: 2.25rem;
  height: 2.25rem;
  margin: auto;
}

.site-header__burger svg[hidden] {
  display: none !important;
}

/* Full-screen mobile sheet вЂ” Ч›ЧћЧ• Header.jsx + РЎРўРђР Р«Р™/src/css/header.css */
.site-header__overlay[hidden] {
  display: none !important;
}

.site-header__overlay {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100vh;
  min-height: 100dvh;
  z-index: 55;
  background: rgba(248, 248, 248, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: calc(7.5rem + env(safe-area-inset-top, 0px)) var(--container-padding-x, 24px)
    calc(2rem + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
}

.site-header__overlay-inner {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  max-width: 375px;
  margin: 0 auto;
}

.site-header__overlay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  font-family: inherit;
}

a.site-header__overlay-btn {
  text-decoration: none;
}

.site-header__overlay-btn.is-active {
  background: #171717;
  color: #fff;
  border-color: #171717;
}

.site-header__overlay-btn--account {
  gap: 0.5rem;
}

.site-header__overlay .module {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.site-header__overlay .module-menu .menu-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header__overlay .module-menu .menu-item,
.site-header__overlay .module-menu .submenu-item {
  width: 100%;
}

.site-header__overlay .module-menu .menu-item > a,
.site-header__overlay .module-menu .submenu-item > a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 1rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.site-header__overlay .module-menu .menu-item > a.router-link-active,
.site-header__overlay .module-menu .menu-item > a.router-link-exact-active,
.site-header__overlay .module-menu .submenu-item > a.router-link-active,
.site-header__overlay .module-menu .submenu-item > a.router-link-exact-active {
  background: #171717;
  color: #fff;
  border-color: #171717;
}

.site-header__overlay .module-menu .submenu {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0;
  padding: 0 0.75rem 0 0;
  list-style: none;
}

.site-header-overlay-enter-active,
.site-header-overlay-leave-active {
  transition: opacity 0.22s ease;
}

.site-header-overlay-enter-from,
.site-header-overlay-leave-to {
  opacity: 0;
}

.main-content {
  padding-top: calc(4rem + 1rem);
}

.modules-content-top {
  padding-top: calc(4rem + 1rem);
}

.modules-content-top + .main-content {
  padding-top: 0;
}

@media (max-width: 1199px) {
  .site-header .module-menu .menu-list {
    gap: 1.25rem;
  }

  .site-header__actions {
    gap: 1rem;
  }
}

@media (max-width: 960px) {
  .site-header__nav,
  .site-header__actions {
    display: none !important;
  }

  /* CMS-РјРµРЅСЋ РІ РїРѕР»РѕСЃРєРµ С…РµРґРµСЂР° СЃРєСЂС‹С‚Рѕ; РІ РјРѕР±. РѕРІРµСЂР»РµРµ вЂ” РїРѕРґ .site-header__overlay (РЅРµ РІРЅСѓС‚СЂРё __bar) */
  .site-header__bar .module-menu {
    display: none !important;
  }

  .site-header__burger {
    display: inline-flex;
  }


  .site-header__brand-text {
    font-size: 1.18rem;
  }

  .main-content {
    padding-top: calc(4rem + 0.75rem);
  }

  .modules-content-top {
    padding-top: calc(4rem + 0.75rem);
  }

  .modules-content-top + .main-content {
    padding-top: 0;
  }
}

