.site-header {
  border-bottom: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
}

.site-header__inner {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  min-height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  font-size: 1.3rem;
  font-weight: 700;
}

.site-header__actions,
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 2.5rem;
  padding: 0 0.9rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-color);
  text-decoration: none;
}

.site-nav__link:hover {
  background: #eef3fb;
}

.site-nav__link--active {
  border-color: #bfd3f8;
  background: #e8f0ff;
  color: var(--accent-hover-color);
}

.page {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 0 auto;
  padding: 2rem 0 3rem;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-title {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  line-height: 1.1;
}

.page-subtitle {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.2;
}

.page-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.flash {
  width: min(calc(100% - 2rem), var(--page-width));
  margin: 1rem auto 0;
  padding: 0.9rem 1rem;
  border: 1px solid #b7d5b3;
  border-radius: 12px;
  background: #ecf8ea;
}

.flash--alert {
  border-color: #efc2bd;
  background: #fff1ef;
}

@media (max-width: 820px) {
  .site-header__inner {
    width: min(calc(100% - 1rem), var(--page-width));
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 0.8rem 0;
  }

  .page {
    width: min(calc(100% - 1rem), var(--page-width));
    padding-top: 1rem;
  }

  .page-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
