.nav-main-wrapper {
  position: fixed;
  background-color: rgba(0, 0, 0, 0.3);
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: 0.2s opacity;
}
.nav-main-wrapper .nav {
  background-color: var(--white);
  width: 100%;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  overflow: hidden;
  box-shadow: 0px 0px 0px 2px var(--yellow);
  max-height: calc(100vh - 10px);
  position: relative;
  top: -20px;
  transition: 0.2s top;
  width: min(100%, 900px);
}
.nav-main-wrapper .nav .to-main {
  padding: 17px 20px 13px 20px;
  width: 100%;
  box-sizing: border-box;
  display: inline-block;
  text-align: center;
  font-weight: 600;
  position: relative;
}
.nav-main-wrapper .nav .to-main .close-main-nav {
  position: absolute;
  aspect-ratio: 1;
  height: 100%;
  background-color: var(--white);
  top: 0;
  right: 0;
  background-image: url("/images/close.svg");
  background-size: 50%;
}
.nav-main-wrapper .nav .nav-lines {
  width: 100%;
  max-height: 100%;
  overflow-y: auto;
  overflow-y: overlay;
}
.nav-main-wrapper .nav .nav-lines .rub-title {
  padding: 17px 20px 13px 20px;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--yellow);
  color: var(--white);
  text-transform: uppercase;
  padding-top: 18px;
  font-weight: 600;
}
.nav-main-wrapper .nav .nav-lines .nav-line {
  padding: 17px 20px 13px 20px;
  width: 100%;
  box-sizing: border-box;
  width: 100%;
  gap: 9px;
}
.nav-main-wrapper .nav .nav-lines .nav-line:not(:last-child) {
  border-bottom: 2px solid var(--yellow);
}
.nav-main-wrapper .nav .nav-lines .nav-line .count {
  color: var(--yellow);
  font-weight: 300;
}
.nav-main-wrapper.open {
  opacity: 1;
  pointer-events: all;
  transition: 0.25s opacity;
}
.nav-main-wrapper.open .nav {
  top: 0;
  transition: 0.35s top;
}