body.catalog-open {
  overflow-y: scroll;
  position: fixed;
  width: 100%;
  /* top: calc(-1 * var(--scroll-position)); */
}
body.catalog-open .header {
  /* pointer-events: none; */
  background-color: var(--primary-accent2);
}
body.catalog-open--catalog .header {
  z-index: 9999;
  position: relative;
  background-color: var(--primary-accent);
}
body.catalog-open--catalog .header * {
  color: var(--primary-color) !important;
  fill: var(--primary-color) !important;
}
body.catalog-open--catalog .header-menu a[title="Каталог"] .link__text {
  color: var(--primary-accent2) !important;
}
body.catalog-open--catalog a:not([title="Каталог"]):hover * {
  color: var(--primary-accent3) !important;
}
body.catalog-open--catalog a:not([title="Каталог"]):hover {
  color: var(--primary-accent3) !important;
}
body.catalog-open--catalog a:not([title="Каталог"]):not(.catalog-button):hover .icon * {
  fill: var(--primary-accent) !important;
}
body.catalog-open--catalog .search-button:hover * {
  fill: var(--primary-accent) !important;
}
  
.catalog-button-wrap {
  @media screen and (max-width: 640px) {
    display: none;
  }
}

.catalog-button {
  --button-color-hover: var(--primary-accent2);
  --button-background-hover: transparent;
  
  cursor: pointer;
  width: 46px;
  min-width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background-color: var(--button-background-hover);
}
body.catalog-open--information .catalog-popup-menu[data-popup-menu-name="information"] .catalog-button {
  --button-background-hover: var(--primary-color);
}
.catalog-button .icon {
  --icon-size: 46px
}
body.catalog-open--information .catalog-popup-menu[data-popup-menu-name="information"] .catalog-button .icon--menu {
  display: none;
}
.catalog-button .icon--close {
  --icon-size: 16px;
  display: none;
}
body.catalog-open--information .catalog-popup-menu[data-popup-menu-name="information"] .catalog-button .icon--close {
  display: flex;
}
body[class*="-full-width"] .catalog-button .icon {
  --icon-fill: var(--primary-accent);
}
body[class*="-full-width"] .catalog-button:hover .icon {
  --icon-fill: var(--primary-accent3);
}

.catalog-wrap {
  z-index: 9995;
  position: fixed;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  padding-top: 25px;
  padding-bottom: 50px;
  background-color: var(--primary-accent);
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease, top .3s ease;
  overflow-y: auto;
  height: 100vh;

  @media screen and (max-width: 640px) {
    padding-top: 0;
    padding-bottom: 30px;
    z-index: 9999;
  }
}
.catalog-popup-menu .catalog-wrap {
  height: auto;
  max-height: min-content;
  overflow: hidden;
  padding-bottom: 0;
  /* border-bottom: 2px solid var(--primary-accent2); */
  box-shadow: 0 2px 8px 0 var(--primary-opacity5);

  @media screen and (max-width: 640px) {
    max-height: none;
    overflow: initial;
  }
}
body.catalog-open .catalog-popup-menu[data-popup-menu-name] .catalog-wrap {
  @media screen and (max-width: 640px) {
    overflow-y: auto;
    padding-bottom: 60px;
  }
}
.header-top ~ .header .catalog-wrap {
  height: calc(100vh - 130px);

  @media screen and (max-width: 640px) {
    height: calc(100vh - 40px);
  }
}
body.catalog-open .catalog-wrap {
  /* opacity: 1; */
  /* pointer-events: all; */
}
body.catalog-open .header-top ~ .header .catalog-wrap {
  top: 130px;

  @media screen and (max-width: 640px) {
    top: 40px;
  }
}
.catalog-wrap .container {
  width: 100%;
}

.catalog-menu-title {
  display: none;
  position: relative;

  width: 100%;
  height: 56px;
  margin-bottom: 24px;
  text-transform: uppercase;
  color: var(--primary-accent4);
  font-weight: 400;
  font-size: calc(16px + 0 * var(--window-resize));
  border-bottom: 1px solid var(--primary-accent9);

  /* @media screen and (max-width: 640px) { */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
  /* } */
}
.catalog-menu-close {
  position: absolute;
  right: 0;
  top: 50%;
  margin-top: -1px;
  transform: translateY(-50%);
}

.catalog-columns {
  display: flex;
  column-gap: 24px;
  align-items: start;
  justify-content: space-between;

  margin-top: 140px;

  padding-top: 25px;
  padding-bottom: 65px;
  padding-left: calc(var(--container-offset) + 66 * var(--window-resize));
  padding-right: calc(var(--container-offset) + 66 * var(--window-resize));

  @media screen and (max-width: 640px) {
    margin-top: 100px;
    row-gap: 40px;
    flex-wrap: wrap;
    flex-direction: column;
  }
}
.catalog-menu-title ~ .catalog-columns {
  margin-top: 0;
}

.catalog-column {
  display: flex;
  row-gap: 40px;
  column-gap: 24px;
  width: 50%;

  @media screen and (max-width: 1280px) {
    flex-wrap: wrap;
  }
}
.catalog-column--pages {
  width: 40%;

  @media screen and (max-width: 1025px) {
    width: 50%;
  }

  @media screen and (max-width: 640px) {
    width: 100%;
  }
}
.catalog-column--collections {
  width: 60%;
  
  @media screen and (max-width: 1025px) {
    width: 50%;
  }
  
  @media screen and (max-width: 640px) {
    display: none;
  }
}
.catalog-column--banners {
  @media screen and (max-width: 1025px) {
    /* display: none; */
    width: 100%;
  }
}
.page-menu {
  display: flex;
  row-gap: 30px;
  flex-direction: column;
  width: 50%;

  @media screen and (max-width: 1280px) {
    width: 100%;
  }
}
.page-menu-title {
  font-weight: 500;
  font-size: calc(18px + 6 * var(--window-resize));
  color: var(--primary-accent4);
}
.page-links {
  display: flex;
  row-gap: 36px;
  flex-direction: column;
  align-items: start;
}
.page-links a.link {
  font-weight: 500;
  font-size: calc(16px + 2 * var(--window-resize));
}

.menu-collection {
  width: calc(50% - 12px);

  @media screen and (max-width: 1025px) {
    width: 100%;
  }
}