.resources-menu { position: relative; flex: none; z-index: 30; }
.resources-menu > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #777b7e;
  color: #f4f4f2;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}
.resources-menu > summary::-webkit-details-marker { display: none; }
.resources-menu > summary:hover, .resources-menu > summary:focus-visible,
.resources-menu[open] > summary { border-color: #e93243; background: #242628; }
.resources-chevron { margin-left: 4px; color: #aeb2b4; font-size: 18px; line-height: 10px; }
.resources-menu[open] .resources-chevron { transform: rotate(180deg); }
.resource-brand {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  flex: none;
  font-size: 10px;
  line-height: 1;
  color: #fff;
}
.resource-youtube { background: #e62d37; border-radius: 5px; }
.resource-telegram { background: #2aa8e8; border-radius: 50%; transform: rotate(-25deg); }
.resource-download { background: #cf1430; border-radius: 4px; font-size: 16px; font-weight: 700; }
.resources-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  width: min(320px, calc(100vw - 24px));
  padding: 8px;
  border: 1px solid #777b7e;
  background: #181b1d;
  box-shadow: 0 24px 50px #000c, inset 0 1px #ffffff17;
}
.resources-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.resources-panel > p {
  margin: 4px 10px 8px;
  color: #aeb2b4;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}
.resource-item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  min-height: 40px;
  padding: 8px 10px;
  border-top: 1px solid #ffffff13;
  font-size: 13px;
  animation: resource-enter .28s both;
  animation-delay: calc(var(--step) * 35ms);
}
.resource-item span:nth-child(2) { min-width: 0; }
.resource-item > span:last-child { color: #b3b9bb; }
a.resource-item:hover, a.resource-item:focus-visible { background: #303437; color: #fff; }
@keyframes resource-enter {
  from { opacity: 0; transform: translateY(-7px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
  .resources-menu { order: 2; }
  .header-action { order: 2; margin-left: auto; }
  .header nav { order: 3; }
}
@media (max-width: 720px) {
  .resources-menu > summary { padding: 6px 8px; }
  .resources-title { font-size: 11px; }
  .resources-panel { left: min(-110px, calc(100vw - 332px)); }
}
@media (max-width: 460px) {
  .header { gap: 8px; }
  .header .logo { position: relative; display: block; width: 94px; height: 48px; overflow: hidden; }
  .header .logo img { position: absolute; top: 50%; left: 0; transform: translateY(-50%); }
  .resources-menu { margin-left: auto; }
  .header-action { display: block; order: 3; width: 100%; margin-left: 0; text-align: center; }
  .header nav { order: 4; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; width: 100%; overflow: visible; white-space: normal; }
  .header nav a { display: grid; place-items: center; min-width: 0; min-height: 44px; padding: 6px 3px; text-align: center; font-size: 11px; line-height: 1.15; white-space: normal; }
  .resources-panel { left: auto; right: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  .resource-item { animation: none; }
}
