/* =========================
   Header
========================= */

.site-header {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  z-index: 90;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #f1f1f1;
  backdrop-filter: blur(12px);
}

main {
  padding-top: 70px;
}

body.admin-bar .site-header {
  top: 32px;
}

.mobile-header {
  height: 62px;
  display: none;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-icon-button,
.mobile-call {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  border: 0;
  background: transparent;
  color: #111111;
  line-height: 1;
}

.mobile-icon-button {
  justify-content: flex-start;
}

.mobile-call {
  justify-content: flex-end;
}

.mobile-icon-button svg,
.mobile-call svg {
  width: 24px;
  height: 24px;
}

.mobile-icon-button .icon-menu {
  display: flex;
  align-items: center;
}

.mobile-icon-button .icon-close {
  display: none;
  align-items: center;
}

body.mobile-menu-open .mobile-icon-button .icon-menu {
  display: none;
}

body.mobile-menu-open .mobile-icon-button .icon-close {
  display: flex;
}

.mobile-logo {
  position: absolute;
  left: 50%;
  width: 116px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-50%);
}

.desktop-header {
  height: 70px;
  width: auto;
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 190px;
  align-items: center;
  gap: 18px;
  padding-left: 18px;
  padding-right: 18px;
}

.desktop-logo {
  width: 120px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  flex-shrink: 0;
}

.site-logo {
  border: 0;
  background: transparent;
}

.site-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
}

.desktop-nav {
  min-width: 0;
  font-size: 16px;
}

.desktop-nav ul {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 1.4vw, 28px);
  padding: 0;
  margin: 0;
  list-style: none;
}

.desktop-nav a,
.header-phone {
  color: #3f3f3f;
  font-size: clamp(14px, 1.25vw, 17.6px);
  font-weight: 400;
  line-height: 55px;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone {
  justify-self: end;
  max-width: 100%;
  overflow: hidden;
  font-size: clamp(13px, 1vw, 17.6px);
  text-align: right;
  text-overflow: ellipsis;
}

.desktop-nav a:hover,
.desktop-nav li:hover > a,
.desktop-nav .current-menu-item > a,
.desktop-nav .current_page_item > a,
.header-phone:hover {
  color: #111111;
}

/* Mobile menu */

.mobile-menu-overlay {
  position: fixed;
  left: 0;
  right: 0;
  top: 62px;
  bottom: 0;
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  background: rgba(216, 240, 255, 0);
  backdrop-filter: blur(0);
  transition: 0.25s ease;
}

body.admin-bar .mobile-menu-overlay {
  top: 94px;
}

body.mobile-menu-open .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
  background: rgba(216, 240, 255, 0.78);
  backdrop-filter: blur(2px);
}

.mobile-menu-bg {
  position: absolute;
  inset: 0;
  border: 0;
  background: transparent;
}

.mobile-menu-list {
  position: relative;
  z-index: 2;
  width: min(82%, 330px);
  padding: 42px 20px 20px;
}

.mobile-menu-list ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.mobile-menu-list a {
  display: block;
  padding: 12px 0;
  color: #111111;
  font-size: 16px;
  font-weight: 700;
}
