.acm {
  --acm-accent: #a50851;
  --acm-soft: #faf4f7;
  position: relative;
  z-index: 90;
  background: #fff;
  color: #242b31;
  border-bottom: 1px solid #e4e7e5;
}
.acm--lcdj {
  --acm-accent: #2f5f50;
  --acm-soft: #f4f3ed;
}
.acm,
.acm * {
  box-sizing: border-box;
}
.acm__bar {
  max-width: 1320px;
  margin: auto;
  padding: 0 20px;
}
.acm__items {
  display: flex;
  align-items: stretch;
  justify-content: center;
  flex-wrap: wrap;
}
.acm__entry {
  margin: 0;
}
.acm summary,
.acm__direct {
  cursor: pointer;
  display: block;
  padding: 15px 13px;
  font: 650 14px/1.4 sans-serif;
  color: #242b31;
  text-decoration: none;
  list-style: none;
}
.acm summary::-webkit-details-marker {
  display: none;
}
.acm summary::after {
  content: '⌄';
  margin-left: 7px;
}
.acm details[open] > summary,
.acm summary:hover,
.acm__direct:hover {
  color: var(--acm-accent);
  background: var(--acm-soft);
}
.acm__panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e4e7e5;
  box-shadow: 0 16px 24px rgba(0, 0, 0, 0.12);
  max-height: 70vh;
  overflow: auto;
}
.acm__panel-inner {
  max-width: 1320px;
  padding: 24px 32px;
  margin: auto;
}
.acm__all {
  display: inline-block;
  margin-bottom: 22px;
  font-weight: 750;
  color: var(--acm-accent);
}
.acm a {
  text-decoration: none;
}
.acm__columns {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.acm h3 {
  font: 750 14px/1.5 sans-serif;
  margin: 0 0 12px;
}
.acm h3 a {
  color: #242b31;
}
.acm ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.acm li {
  margin: 0 0 5px;
}
.acm li a {
  display: block;
  padding: 5px 0;
  color: #4c5750;
  font-size: 14px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.acm li a:hover,
.acm h3 a:hover {
  color: var(--acm-accent);
  text-decoration: underline;
}
.acm__catalog {
  display: inline-block;
  margin-top: 22px;
  color: var(--acm-accent);
  font-weight: 650;
}
.acm a:focus-visible,
.acm summary:focus-visible,
.acm button:focus-visible {
  outline: 2px solid var(--acm-accent);
  outline-offset: -2px;
}
.acm__mobile {
  display: none;
}
@media (max-width: 1024px) {
  .acm__columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 767px) {
  .acm__bar {
    padding: 0 16px;
  }
  .acm__mobile {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background: #fff;
    color: var(--acm-accent);
    border: 0;
    border-radius: 0;
    padding: 14px 0;
    min-height: 48px;
    font-weight: 750;
  }
  .acm__items {
    display: block;
    max-height: calc(100dvh - 170px);
    overflow-y: auto;
  }
  .acm button.acm__mobile,
  .acm button.acm__mobile:hover,
  .acm button.acm__mobile:focus {
    background: #fff !important;
    color: var(--acm-accent) !important;
  }
  .acm.acm--js:not(.acm--expanded) .acm__items {
    display: none;
  }
  .acm summary,
  .acm__direct {
    padding: 14px 8px;
    border-top: 1px solid #edf0ed;
  }
  .acm__panel {
    position: static;
    box-shadow: none;
    max-height: none;
  }
  .acm__panel-inner {
    padding: 18px 8px;
  }
  .acm__columns {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .acm li a {
    min-height: 40px;
    padding: 10px 0;
  }
}
