

.app-header {
  background: rgba(255, 250, 251, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  z-index: 1000;

  
  --mm-bg: #fffafb;
  --mm-text: #22143f;
  --mm-primary: #5b2d8e;
  --mm-overlay-bg: rgba(34, 20, 63, 0.42);
  --mm-drawer-width: 280px;
}

.app-header .module-inner {
  padding-block: var(--space-2);
}

.header-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: var(--space-3);
}


.site-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo:hover {
  text-decoration: none;
}

.site-logo img {
  height: 2.1rem;
  width: auto;
}


.site-nav {
  font-size: var(--fluid-font-sm);
}

.site-nav ul {
  gap: var(--space-1);
}

.nav-item {
  position: relative;
}

.nav-link {
  color: var(--ink);
  letter-spacing: 0.02em;
  font-weight: 500;
  border-radius: var(--radius);
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--violet);
  text-decoration: none;
}

.nav-link::after {
  content: '';
  display: block;
  height: 2px;
  width: 0;
  margin-top: 3px;
  background: var(--amber);
  animation: none;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  width: 100%;
  animation: fade-in 0.35s ease-in both;
}

.header-phone {
  margin-left: auto;
  font-size: var(--fluid-font-sm);
  font-weight: 600;
  color: var(--violet);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.header-phone:hover {
  color: var(--violet-deep);
}


.header-toggle {
  margin-left: auto;
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
  align-items: center;
}

.header-toggle span {
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.header-toggle:hover span {
  background: var(--violet);
}

.header-close {
  color: var(--ink);
  border-radius: var(--radius);
  min-width: 44px;
  min-height: 44px;
}

.header-close:hover {
  color: var(--violet);
}


.site-nav a {
  border-bottom-color: var(--line);
}


.bottom-bar-link {
  flex: 1 1 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  font-weight: 500;
  color: var(--night-text);
  padding: 6px 4px;
  border-radius: var(--radius);
}

.bottom-bar-link:hover,
.bottom-bar-link:focus-visible {
  color: var(--paper);
  text-decoration: none;
}

.bottom-bar-link-accent {
  background: var(--amber);
  color: var(--ink);
  font-weight: 700;
  margin: 2px;
}

.bottom-bar-link-accent:hover,
.bottom-bar-link-accent:focus-visible {
  color: var(--ink);
}

@media (max-width: 768px) {
  .app-header {
    position: sticky;
    top: 0;
  }

  .header-phone {
    display: none;
  }

  .site-nav {
    font-size: 1rem;
  }
}
