.burger {
  display: none;
}

.brand {
  cursor: pointer;
}

.easter-toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border-radius: 999px;
  background-color: #1b4965;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 18px 40px rgba(13, 27, 42, 0.24);
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.easter-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

body.dark-mode .easter-toast {
  background-color: #a8dadc;
  color: #0d1b2a;
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    text-align: center;
  }

  .brand {
    grid-column: 2;
    justify-self: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    transform: translateX(-18px);
  }

  .brand-mark {
    width: 62px;
    height: 50px;
  }

  .brand h1 {
    font-size: clamp(1.7rem, 7vw, 2.25rem);
  }

  .header-actions {
    grid-column: 3;
    position: relative;
    justify-self: end;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .burger {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid rgba(27, 73, 101, 0.18);
    border-radius: 999px;
    background-color: rgba(95, 168, 211, 0.16);
    cursor: pointer;
  }

  .easter-toast {
    right: 16px;
    bottom: 16px;
    border-radius: 22px;
  }

  .dark-toggle {
    gap: 4px;
    padding: 4px;
  }

  .mode-icon {
    width: 1rem;
    font-size: 0.95rem;
  }

  .slider {
    width: 46px;
    height: 24px;
  }

  .slider::before {
    width: 18px;
    height: 18px;
  }

  .dark-toggle input:checked ~ .slider::before {
    transform: translateX(22px);
  }

  .burger .line {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background-color: var(--primary);
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .burger.active .line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .burger.active .line:nth-child(2) {
    opacity: 0;
  }

  .burger.active .line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-header .header-actions nav {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    width: min(78vw, 290px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(27, 73, 101, 0.12);
    border-radius: 22px;
    background-color: var(--card);
    box-shadow: 0 18px 45px rgba(13, 27, 42, 0.18);
  }

  .site-header .header-actions.menu-open nav {
    display: flex;
  }

  .site-header .header-actions nav a {
    width: 100%;
    padding: 13px 16px;
    text-align: left;
  }

  body.dark-mode .burger {
    border-color: rgba(168, 218, 220, 0.22);
    background-color: rgba(168, 218, 220, 0.12);
  }

  body.dark-mode .site-header .header-actions nav {
    border-color: rgba(168, 218, 220, 0.16);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 360px) {
  .brand-mark {
    display: none;
  }
}
