﻿.header {
  height: var(--header-height);
  width: 100%;
  display: flex;
  justify-content: center;
  position: fixed;
  top: 0;
  z-index: 20;
  transition: background 0.25s ease;
}

.skip-link {
  position: absolute;
  top: -80px;
  left: 12px;
  z-index: 30;
  padding: 10px 18px;
  background: #111;
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-link:focus-visible,
.skip-link:focus {
  top: 12px;
}

.header-container {
  position: relative;
  height: 100%;
  width: min(100%, var(--max-content-width));
  margin-inline: auto;
  padding: 25px var(--page-padding);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-link {
  height: 100%;
  display: inline-flex;
  align-items: center;
}

.logo-simple {
  height: 100%;
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: none;
}

.header-white {
  background: rgba(255, 255, 255, 1);
}

.menu {
  position: relative;
}

.menu-toggle {
  height: 46px;
  width: 46px;
  border: none;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle::-webkit-details-marker {
  display: none;
}

.menu-toggle::marker {
  content: "";
}

.menu-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: white;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease;
}

.header-white .logo-simple {
  filter: invert(100%);
}

.header-white .menu-line {
  background: #111;
}

.menu[open] .menu-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu[open] .menu-line:nth-child(2) {
  opacity: 0;
}

.menu[open] .menu-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: auto;
  right: 0;
  width: min(220px, calc(100vw - (2 * var(--page-padding))));
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px) scale(0.98);
  transform-origin: top right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.menu[open] .header-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.header-menu a {
  padding: 10px 12px;
  border-radius: 10px;
  transition: background 0.2s ease;
}

.header-menu a:hover,
.header-menu a:focus-visible {
  background: rgba(0, 0, 0, 0.08);
  outline: none;
}
