.wm-site-header {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 48px));
  min-height: 88px;
  margin: 12px auto 0;
  padding: 0 18px;
  position: sticky;
  top: 10px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: visible;
  border: 1px solid #dce3df;
  border-radius: 24px;
  color: #071d2b;
  background: rgba(248, 250, 246, 0.94);
  box-shadow: 0 16px 45px rgba(7, 29, 43, 0.09);
  backdrop-filter: blur(18px);
}

.wm-site-header *,
.wm-site-header *::before,
.wm-site-header *::after {
  box-sizing: border-box;
}

.wm-header-brand {
  min-width: 188px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #071d2b;
  text-decoration: none;
}

.wm-header-logo {
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(126, 164, 37, 0.35);
  border-radius: 14px;
  background: #cbf36a;
  box-shadow: 0 8px 20px rgba(112, 148, 31, 0.18);
}

.wm-header-logo img {
  width: 32px;
  height: 32px;
  display: block;
}

.wm-header-brand > span:last-child,
.wm-header-brand strong,
.wm-header-brand small {
  display: block;
}

.wm-header-brand strong {
  color: #071d2b;
  font-size: 16px;
  line-height: 1.3;
}

.wm-header-brand small {
  margin-top: 3px;
  color: #63757c;
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.wm-nav-shell {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(14px, 2vw, 28px);
}

.wm-main-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 1.5vw, 22px);
}

.wm-main-nav a {
  min-height: 38px;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  position: relative;
  border: 0;
  border-radius: 0;
  color: #53666e;
  background: transparent;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
  text-decoration: none;
  white-space: nowrap;
}

.wm-main-nav a::after {
  width: 0;
  height: 2px;
  position: absolute;
  right: 0;
  bottom: 2px;
  border-radius: 999px;
  background: #8eb72b;
  content: "";
  transition: width 0.18s ease;
}

.wm-main-nav a:hover,
.wm-main-nav a.active {
  color: #071d2b;
}

.wm-main-nav a:hover::after,
.wm-main-nav a.active::after {
  width: 100%;
}

.wm-main-nav .wm-countdown-link {
  min-height: 36px;
  padding: 8px 12px;
  border: 1px solid rgba(126, 164, 37, 0.45);
  border-radius: 12px;
  color: #20343c;
  background: rgba(203, 243, 106, 0.34);
}

.wm-main-nav .wm-countdown-link::after {
  display: none;
}

.wm-main-nav .wm-countdown-link:hover,
.wm-main-nav .wm-countdown-link.active {
  color: #071d2b;
  background: #cbf36a;
}

.wm-header-search {
  width: clamp(165px, 16vw, 205px);
  height: 42px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid #dce3df;
  border-radius: 14px;
  background: #ffffff;
}

.wm-header-search input {
  min-width: 0;
  height: 100%;
  flex: 1;
  padding: 0 13px;
  border: 0;
  outline: 0;
  color: #071d2b;
  background: transparent;
  font: inherit;
  font-size: 9px;
}

.wm-header-search button {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border: 0;
  color: #071d2b;
  background: transparent;
  cursor: pointer;
}

.wm-header-search svg,
.wm-theme-toggle svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.wm-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wm-theme-toggle,
.wm-menu-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid #dce3df;
  border-radius: 13px;
  color: #071d2b;
  background: #ffffff;
  cursor: pointer;
}

.wm-menu-toggle {
  padding: 11px 9px;
  display: none;
  align-content: center;
  gap: 5px;
}

.wm-menu-toggle span {
  width: 100%;
  height: 2px;
  display: block;
  border-radius: 999px;
  background: currentColor;
  transition: 0.18s ease;
}

.wm-menu-toggle.is-open span:first-child {
  transform: translateY(7px) rotate(45deg);
}

.wm-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.wm-menu-toggle.is-open span:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.wm-sr-only {
  width: 1px;
  height: 1px;
  padding: 0;
  position: absolute;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.dark-mode .wm-site-header {
  border-color: #29414b;
  color: #edf4f6;
  background: rgba(6, 22, 30, 0.94);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

body.dark-mode .wm-header-brand,
body.dark-mode .wm-header-brand strong,
body.dark-mode .wm-main-nav a {
  color: #edf4f6;
}

body.dark-mode .wm-header-brand small {
  color: #aebdc2;
}

body.dark-mode .wm-main-nav a:hover,
body.dark-mode .wm-main-nav a.active {
  color: #cbf36a;
}

body.dark-mode .wm-main-nav .wm-countdown-link {
  border-color: rgba(203, 243, 106, 0.38);
  color: #dce8c0;
  background: rgba(203, 243, 106, 0.1);
}

body.dark-mode .wm-main-nav .wm-countdown-link:hover,
body.dark-mode .wm-main-nav .wm-countdown-link.active {
  color: #071d2b;
  background: #cbf36a;
}

body.dark-mode .wm-header-search,
body.dark-mode .wm-theme-toggle,
body.dark-mode .wm-menu-toggle {
  border-color: #29414b;
  color: #edf4f6;
  background: #0b222c;
}

body.dark-mode .wm-header-search input {
  color: #edf4f6;
}

@media (max-width: 1060px) {
  .wm-menu-toggle {
    display: grid;
  }

  .wm-nav-shell {
    padding: 16px;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: grid;
    align-items: stretch;
    justify-content: stretch;
    gap: 13px;
    border: 1px solid #dce3df;
    border-radius: 20px;
    background: #f8faf6;
    box-shadow: 0 22px 55px rgba(7, 29, 43, 0.16);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
  }

  .wm-nav-shell.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .wm-main-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: stretch;
    gap: 9px;
  }

  .wm-main-nav a,
  .wm-main-nav .wm-countdown-link {
    width: 100%;
    min-height: 54px;
    padding: 13px 18px;
    justify-content: center;
    border: 1px solid #e2e7e3;
    border-radius: 15px;
    background: #ffffff;
    font-size: 11px;
    text-align: center;
  }

  .wm-main-nav a::after {
    display: none;
  }

  .wm-main-nav .wm-countdown-link {
    grid-column: 1 / -1;
    border-color: rgba(126, 164, 37, 0.45);
    background: rgba(203, 243, 106, 0.34);
  }

  .wm-header-search {
    width: 100%;
    height: 48px;
  }

  .wm-header-search button {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  body.dark-mode .wm-nav-shell {
    border-color: #29414b;
    background: #0b222c;
  }

  body.dark-mode .wm-main-nav a {
    border-color: #29414b;
    background: #102a35;
  }
}

@media (max-width: 560px) {
  .wm-site-header {
    width: calc(100% - 24px);
    min-height: 76px;
    margin-top: 8px;
    padding: 0 12px;
    top: 8px;
    border-radius: 20px;
  }

  .wm-header-brand {
    min-width: 0;
  }

  .wm-header-logo {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    border-radius: 12px;
  }

  .wm-header-logo img {
    width: 30px;
    height: 30px;
  }

  .wm-header-brand strong {
    font-size: 14px;
  }

  .wm-header-brand small {
    max-width: 126px;
    overflow: hidden;
    font-size: 7px;
    text-overflow: ellipsis;
  }

  .wm-theme-toggle,
  .wm-menu-toggle {
    width: 39px;
    height: 39px;
    flex-basis: 39px;
  }

  .wm-nav-shell {
    padding: 16px;
    gap: 15px;
  }
}
