/* Шапка: на главной прозрачная поверх первого экрана, на остальных страницах — на сливовой полосе. */

.site-header {
  position: relative;
  z-index: 30;
  padding: 0 16px;
  background: var(--hero-bg);
}
.page-home .site-header {
  position: absolute;
  inset: 0 0 auto;
  background: transparent;
}

.site-header__bar {
  position: relative;
  max-width: 1344px;
  margin-inline: auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 600;
  font-size: 1.1875rem;
  line-height: 1;
  color: #FFFFFF;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.logo:hover { color: #FFFFFF; }
.logo__mark { color: var(--peach); display: inline-flex; }

/* --- бургер и выпадающее меню (до 1180 px) --- */

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  color: #FFFFFF;
  cursor: pointer;
  transition: background-color 0.2s;
}
.burger:hover { background: rgba(255, 255, 255, 0.16); }
.burger__close,
.burger[aria-expanded="true"] .burger__open { display: none; }
.burger[aria-expanded="true"] .burger__close { display: inline-flex; }
.no-js .burger { display: none; }

.nav {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: 24px;
  background: var(--sheet-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.4);
  backdrop-filter: blur(26px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16), 0 30px 50px -18px rgba(0, 0, 0, 0.55);
}
.nav.is-open { display: flex; animation: rise 0.3s var(--ease-out) both; }

.nav__list { display: flex; flex-direction: column; }
.nav__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  color: var(--on-dark-nav);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.nav__link:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.08); }
.nav__cta { width: 100%; }

/* меню без пунктов (на главной пока только первый экран): кнопка «Обсудить проект» видна сразу */
.site-header--simple .nav {
  position: static;
  display: flex;
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.site-header--simple .nav__cta { width: auto; min-height: 44px; padding: 0 16px; font-size: 14px; }
@media (max-width: 419px) {
  .site-header--simple .nav__cta { width: 44px; padding: 0; }
  .site-header--simple .nav__cta span {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }
}

/* без JS меню просто стоит под логотипом */
.no-js .site-header__bar { height: auto; min-height: 64px; flex-wrap: wrap; }
.no-js .nav { position: static; display: flex; width: 100%; background: none; box-shadow: none; padding: 0 0 8px; }

/* --- десктоп: меню в строку --- */

@media (min-width: 1180px) {
  .site-header { padding: 0 48px; }
  .site-header__bar { height: 88px; }
  .logo { font-size: 1.375rem; }
  .burger { display: none; }
  .nav,
  .no-js .nav {
    position: static;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 24px;
    width: auto;
    padding: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
    animation: none;
  }
  .nav { flex: 1; justify-content: flex-end; }
  .nav__list { flex-direction: row; gap: 4px; margin-inline: auto; }
  .nav__link { min-height: 44px; font-size: 0.9375rem; }
  .nav__cta { width: auto; min-height: 44px; padding: 0 20px; font-size: 14px; }
  .no-js .site-header__bar { height: 88px; flex-wrap: nowrap; }
}
