.hd {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--hd);
  color: var(--dark-text);
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.hd.stuck,
.menu-open .hd {
  background: rgba(var(--dark-rgb), 0.94);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.hd-in {
  max-width: 1360px;
  height: 100%;
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 1.9rem;
  line-height: 1;
  direction: ltr;
}
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--dark);
  display: grid;
  place-items: center;
  rotate: -8deg;
}
.paw-mark {
  width: 22px;
  height: 22px;
}
.links {
  display: flex;
  gap: 30px;
  font-weight: 800;
  font-size: 0.97rem;
}
.lk {
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}
.lk::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.35s var(--ease);
}
.lk:hover::after,
.lk.on::after {
  transform: scaleX(1);
}
.hd-tools {
  display: flex;
  align-items: center;
  gap: 12px;
}
.dash-link {
  font-weight: 800;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 999px;
  border: 2px dashed rgba(254, 239, 202, 0.4);
  white-space: nowrap;
}
.dash-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lang {
  min-width: 74px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 2px solid rgba(254, 239, 202, 0.4);
  background: transparent;
  font-weight: 800;
  font-size: 0.95rem;
  color: inherit;
}
.lang:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.hd-cta {
  padding: 11px 22px;
  font-size: 0.95rem;
  white-space: nowrap;
}
.burger {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 0;
  background: var(--accent);
  place-content: center;
  gap: 5px;
}
.burger i {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 3px;
  background: var(--dark);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.burger[aria-expanded='true'] i:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger[aria-expanded='true'] i:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded='true'] i:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 35;
  padding: calc(var(--hd) + 24px) var(--gutter) 32px;
  background: var(--dark);
  color: var(--dark-text);
  display: flex;
  flex-direction: column;
  gap: 24px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-16px);
  transition: opacity 0.35s ease, transform 0.45s var(--ease), visibility 0s 0.45s;
}
.sheet.open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}
.sheet-links {
  display: grid;
}
.sheet-link {
  padding: 14px 0;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 2rem;
  border-bottom: 2px dashed rgba(254, 239, 202, 0.18);
  opacity: 0;
  transform: translateX(-20px);
  transition: opacity 0.4s ease, transform 0.5s var(--ease);
}
html[dir='rtl'] .sheet-link {
  transform: translateX(20px);
}
.sheet.open .sheet-link {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.12s + var(--i) * 60ms);
}
.sheet-link.on {
  color: var(--accent);
}
.sheet-cta {
  align-self: flex-start;
}
.sheet-dash {
  align-self: flex-start;
}

@media (max-width: 1180px) {
  .links,
  .hd-tools > .dash-link,
  .hd-cta {
    display: none;
  }
  .burger {
    display: grid;
  }
}
@media (min-width: 1181px) {
  .sheet {
    display: none;
  }
}
@media (max-width: 560px) {
  .logo {
    font-size: 1.6rem;
  }
  .logo-mark {
    width: 36px;
    height: 36px;
  }
}
