.hccr {
  --hccr-submenu-w: 460px;
  --hccr-gap: clamp(40px, 7vw, 100px);
  --hccr-grid-w: calc(min(100vw, var(--main_column, 1024px)) - 40px);
  --hccr-shift: max(
  	calc((var(--hccr-gap) + var(--hccr-submenu-w)) / 2),
  	calc((var(--hccr-grid-w) - 100vw) / 2 + var(--hccr-gap) + var(--hccr-submenu-w) + 30px)
  );
  padding: 48px 0;
  color: #000;
  overflow-x: hidden;
  overflow-x: clip;
}
.hccr__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hccr__layout {
  position: relative;
  transition: transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.1s;
}
.hccr__grid {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  width: calc(100% + 26px);
  margin: 0 -13px;
}
.hccr__card {
  margin: 0 13px 30px;
  width: 100%;
  max-width: calc(33.3333333% - 26px);
  cursor: pointer;
}
.hccr__card:hover .hccr__card-title, .hccr__card.is-active .hccr__card-title {
  background-color: #454545;
  color: #fff;
}
.hccr__card-title {
  padding: 20px 3px;
  background-color: #fff;
  text-align: center;
  font-weight: 700;
  transition: 0.5s;
}
.hccr__card-img {
  width: 100%;
  height: auto;
  display: block;
  position: relative;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hccr__card-img::before {
  content: "";
  padding-top: 76%;
  display: block;
}
.hccr__submenus {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% + var(--hccr-gap));
  width: var(--hccr-submenu-w);
  opacity: 0;
  visibility: hidden;
  transform: translateX(120px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.hccr__panel {
  position: sticky;
  top: 150px;
}
.hccr__panel-head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 30px;
}
.hccr__close {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 5px 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  cursor: pointer;
}
.hccr__close:hover .hccr__close-icon::before, .hccr__close:hover .hccr__close-icon::after {
  background-color: #454545;
}
.hccr__close-icon {
  position: relative;
  width: 30px;
  height: 30px;
}
.hccr__close-icon::before, .hccr__close-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 7px;
  background-color: #e8ebef;
  transition: background-color 0.3s;
}
.hccr__close-icon::before {
  transform: translate(-50%, -50%) rotate(45deg);
}
.hccr__close-icon::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}
.hccr .submenu {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: 1fr auto;
  gap: 30px;
  align-items: end;
}
.hccr .submenu.is-active {
  display: grid;
  animation: hccr-fade-in 0.4s ease both;
}
.hccr .submenu__featured {
  grid-column: 2/4;
  grid-row: 1/3;
  position: relative;
  padding: 0 0 36px 38px;
}
.hccr .submenu__featured::before {
  content: "";
  position: absolute;
  top: 32px;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #e8ebef;
}
.hccr .submenu__featured-card {
  position: relative;
  margin-right: -5px;
}
.hccr .submenu__featured-img {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hccr .submenu__featured-img::before {
  content: "";
  padding-top: 62%;
  display: block;
}
.hccr .submenu__featured-title {
  margin: 0;
  padding: 20px 10px;
  background-color: #fff;
  text-align: center;
  font-weight: 700;
}
.hccr .submenu__preview {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #454545;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hccr .submenu__preview.is-visible {
  opacity: 1;
}
.hccr .submenu__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 78px;
  padding: 10px;
  border-left: 5px solid #e8ebef;
  border-bottom: 5px solid #e8ebef;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  color: #000;
}
.hccr .submenu__item::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: #454545;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.hccr .submenu__item.is-disabled {
  color: #d5dce6;
  pointer-events: none;
  cursor: default;
}
.hccr .submenu__item-label {
  position: relative;
  transition: color 0.25s ease, transform 0.25s ease;
}
.hccr .submenu__item-arrow {
  position: absolute;
  bottom: 12px;
  left: 50%;
  width: 24px;
  height: 8px;
  margin-left: -12px;
  color: #fff;
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
@media (hover: hover) {
  .hccr .submenu a.submenu__item:hover::before {
    opacity: 1;
    transform: translate(4px, -5px);
  }
  .hccr .submenu a.submenu__item:hover .submenu__item-label {
    color: #fff;
    transform: translate(4px, -11px);
  }
  .hccr .submenu a.submenu__item:hover .submenu__item-arrow {
    opacity: 1;
    transform: translate(4px, -5px);
  }
}
.hccr .submenu a.submenu__item:focus-visible::before {
  opacity: 1;
  transform: translate(4px, -5px);
}
.hccr .submenu a.submenu__item:focus-visible .submenu__item-label {
  color: #fff;
  transform: translate(4px, -11px);
}
.hccr .submenu a.submenu__item:focus-visible .submenu__item-arrow {
  opacity: 1;
  transform: translate(4px, -5px);
}
.hccr.active-submenu .hccr__layout {
  transform: translateX(calc(var(--hccr-shift) * -1));
  transition-delay: 0s;
}
.hccr.active-submenu .hccr__submenus {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
  transition: opacity 0.5s ease 0.3s, transform 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.2s, visibility 0s linear 0.2s;
}
@media (max-width: 767px) {
  .hccr__grid {
    justify-content: center;
  }
  .hccr__card {
    max-width: min(320px, 100% - 26px);
  }
  .hccr.active-submenu .hccr__layout {
    transform: none;
  }
  .hccr__submenus, .hccr.active-submenu .hccr__submenus {
    position: fixed;
    top: var(--hccr-top, 0);
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1000;
    width: auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    opacity: 1;
  }
  .hccr__submenus {
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0.5s;
  }
  .hccr.active-submenu .hccr__submenus {
    transform: translateX(0);
    transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1), visibility 0s linear 0s;
  }
  .hccr__panel {
    position: static;
    padding: 0 20px 40px;
  }
  .hccr__panel-head {
    position: sticky;
    top: 0;
    z-index: 2;
    margin: 0 -20px 30px;
    padding: 10px 20px;
    background-color: #fff;
    border-bottom: 3px solid #e8ebef;
  }
  .hccr .submenu {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    gap: 20px;
    align-items: stretch;
  }
  .hccr .submenu__featured {
    grid-column: 1/-1;
    grid-row: auto;
    justify-self: center;
    width: 100%;
    max-width: 320px;
    margin-bottom: 10px;
  }
  .hccr .submenu__item {
    min-height: 70px;
    font-size: 13px;
  }
}

@media (max-width: 767px) {
  html.hccr-lock,
  html.hccr-lock body {
    overflow: hidden;
  }
}
@keyframes hccr-fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
