.sitemap {
  padding: 60px 40px;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  transition: height 1s;
}
.sitemap__body{
  position: relative;
}
.sitemap__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  grid-template-rows: auto;
  gap: 5px;
}
.sitemap__list.sitemap__list--main.sitemap__list--hidden {
  display: none;
}
.sitemap__link,
.sitemap-overlay__link{
  font-size: 14px;
}
.sitemap__open{
  background-image: url(../img/arrow-right.svg);
  background-repeat: no-repeat;
  background-position: 5px center;
  background-color: transparent;
  background-size: 7px;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
}
.sitemap__item__wrapper {
  display: flex;
  align-items: center;
}
.sitemap__inner-list {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}
.sitemap-overlay{
  max-height: 50vh;
}
.sitemap-overlay__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  grid-template-rows: auto;
  gap: 5px;
  max-height: 90%;
  overflow-y: auto;
  overflow-x: hidden;
}
.sitemap-overlay__item{
  display: flex;
  align-items: center;
  padding-right: 30px;
}
.sitemap-overlay__back {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 16px;
  background-color: transparent;
  color: #000;
  border: none;
  margin-bottom: 15px;
}
.sitemap-overlay__back:before{
  content: "";
  width: 20px;
  height: 20px;
  background-image: url(../img/custom-slick--prev.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  background-size: 15px;
  border: none;
  padding: 10px;
  cursor: pointer;
}


.sitemap__header {
  position: relative;
  margin-bottom: 30px;
}
.sitemap__search {
  border: none;
  border-bottom: 1px solid;
  border-radius: 0;
  width: 100%;
  font-size: 16px;
  padding: 5px 10px;
}
.sitemap__res {
  display: flex;
  flex-direction: column;
}
.sitemap__res-inner {
  display: flex;
  flex-direction: column;
}
.sitemap__search-results {
  max-height: 40vh;
  overflow-y: auto;
  overflow-x: hidden;
  opacity: 0;
  position: absolute;
  z-index: 1;
  padding: 20px;
  width: 100%;
  transition: opacity 0.5s ease-in-out;
  display: flex;
  gap: 20px;
  scrollbar-gutter: stable;
  flex-direction: column;
  box-shadow: 0 4px 4px rgb(0 0 0 / .25);
  border-radius: 6px;
  background-color: #fff;
}
.sitemap__search-results--active {
  opacity: 1;
  transition: opacity 0.175s ease-in-out;
}
.sitemap__res-title {
  font-size: 14px;
  font-weight: 500;
  padding-top: 10px;
  padding-bottom: 10px;
  position: sticky;
  top: -20px;
  background-color: #ffffff;
}
.sitemap__link.sitemap__link--result {
  margin-left: 15px;
  padding-bottom: 10px;
}
.sitemap__search-close{
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 5px;
  right: 0;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background-image: url(../img/close-icon.svg);
  background-repeat: no-repeat;
  background-position: center;
  background-color: transparent;
  background-size: 15px;
  border: none;
  padding: 15px;
  transition: opacity 0.3s ease-in-out;
}
.sitemap__search-close.sitemap__search-close--active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease-in-out;
}
@keyframes showBlock {
  0% {
    opacity: 0;
    display: none;
  }
  100% {
    opacity: 1;
    display: block;
  }
}
@keyframes hideBlock {
  0% {
    opacity: 1;
    display: block;
  }
  100% {
    opacity: 0;
    display: none;
  }
}
.sitemap__title {
  font-size: 24px;
  text-align: center;
  margin-bottom: 20px;
}
.select-text {
  background-color: yellow;
}
@media (max-width: 768px) {
  .sitemap__list,
  .sitemap-overlay__list{
    grid-template-columns: 1fr;
  }
}
@media (max-width: 1024px) {
  .sitemap {
    padding: 15px 20px;
  }
  .sitemap__search-results {
    max-height: 60vh;
    width: calc(100vw - 20px);
    left: -10px;
  }
  .sitemap-overlay__list {
    gap: 15px;
  }
  .sitemap__link, .sitemap-overlay__link {
    font-size: 16px;
    text-decoration: underline;
    text-decoration-color: #bbbbbb;
  }
  .sitemap__link.sitemap__link--result {
    padding-bottom: 20px;
  }
  .sitemap__item__wrapper,
  .sitemap-overlay__item{
    position: relative;
  }
  .sitemap__open {
    background-image: url(../img/icon-plus.svg);
    background-position: center;
    position: absolute;
    right: 0;
    background-size: 15px;
  }
  .sitemap__list{
    gap: 15px;
  }
}
@media (max-width: 375px) {
  .sitemap {
    padding: 15px 10px;
  }
  .sitemap-overlay__item {
    padding-right: 35px;
  }
}