.category-nav {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100%;
  max-width: none;
  margin: auto;
  border-top: 1px solid #222;
  border-bottom: 1px solid #222;
}

.category-nav a {
  position: relative;
  display: grid;
  place-items: center;
  height: 64px;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 700;
  border-right: 1px solid #222;
  transition: filter .18s, transform .18s;
}

.category-nav a:first-child { border-left: 1px solid #222; }
.category-nav a:hover { filter: brightness(1.08); }
.category-nav a:active { transform: translateY(1px); }
.category-nav i {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-bottom: 7px solid #fff;
}

.category-nav .stories { background: #d83d60; }
.category-nav .knowledge-link { background: #ed6b22; }
.category-nav .issues { background: #16805f; }
.category-nav .market { background: #3b75a8; }
.category-nav .useful { background: #7657b8; }

.menu-button { display: none; }

@media (min-width: 621px) and (max-width: 940px) {
  .desktop-nav { display: flex; gap: 14px; }
  .desktop-nav a { font-size: 12px; }
  .header-inner { grid-template-columns: 180px 1fr auto; gap: 12px; }
}

@media (max-width: 620px) {
  .menu-button { display: block; }
  .category-nav {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .category-nav::-webkit-scrollbar { display: none; }
  .category-nav a {
    min-width: 155px;
    height: 52px;
    flex: 1 0 auto;
    scroll-snap-align: start;
    font-size: 13px;
  }
}

/* Shared public header */
.home-header{border-top-color:#10271f}.home-header-inner{height:92px;grid-template-columns:235px minmax(320px,650px) auto;justify-content:space-between;gap:clamp(18px,3vw,42px)}.home-brand{display:flex;align-items:center}.home-brand img{width:214px;height:auto;max-height:55px;object-fit:contain;object-position:left center}.header-search{width:100%;height:48px;margin:0}.header-search span{font-size:22px}.header-search button{min-width:116px}.language-switcher{display:flex;align-items:center;gap:7px;padding-left:20px;border-left:1px solid var(--line)}.language-switcher a{min-width:59px;height:42px;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 10px;border:1px solid #ddd3cb;border-radius:22px;color:#71675f;background:#fff;text-decoration:none;font-size:12px;transition:.18s}.language-switcher a:hover{border-color:#9d806d;color:#6f5746}.language-switcher a.active{border-color:#10271f;color:#fff;background:#10271f;box-shadow:0 4px 12px rgba(16,39,31,.16)}.language-switcher svg{width:21px;height:14px;display:block;border-radius:2px;box-shadow:0 0 0 1px rgba(0,0,0,.14)}.language-switcher b{font-size:11px;letter-spacing:.08em}
@media(max-width:900px){.home-header-inner{height:auto;min-height:132px;padding-block:13px;grid-template-columns:1fr auto}.home-brand img{width:180px}.header-search{grid-column:1/-1;grid-row:2}.language-switcher{grid-column:2;grid-row:1;padding-left:12px}}
@media(max-width:520px){.home-header-inner{width:calc(100% - 28px);min-height:126px;gap:10px}.home-brand img{width:145px;max-height:44px}.language-switcher{gap:4px;padding-left:7px}.language-switcher a{min-width:45px;height:36px;padding:0 7px}.language-switcher svg{width:18px;height:12px}.language-switcher b{font-size:9px}.header-search{height:44px}.header-search button{min-width:82px;padding:0 13px;font-size:11px}}
