/* Responsive mega-menu layouts from the Website Redesign design system. */
.header .mega-menu,
.header .mega-menu * {
  box-sizing: border-box;
}

.header.__submenu-active {
  box-shadow: none;
}

.header .mega-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.header .mega-menu a {
  color: #000;
  text-decoration: none;
}

.header .mega-menu__section-title {
  color: #474747;
  font: 600 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
  margin: 0 0 12px;
  padding: 0 0 12px;
  border-bottom: 1px solid #cfcfcf;
}

.header .mega-menu .mega-menu-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid #cfcfcf;
  border-radius: 12px;
  background: #fff;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.header .mega-menu-card:hover,
.header .mega-menu-card:focus-visible {
  border-color: #00bf63;
  background: #e8fff4;
  outline: 0;
}

.header .mega-menu-card__icon {
  display: block;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 1px 8px 0 0;
  object-fit: contain;
}

.header .mega-menu-card__heading,
.header .mega-menu-card__title,
.header .mega-menu-card__description {
  display: block;
}

.header .mega-menu-card__heading {
  display: flex;
  align-items: flex-start;
  width: 100%;
  min-width: 0;
}

.header .mega-menu-card__title {
  color: #000;
  font: 600 14px/22px "Open Sans", Helvetica, Arial, sans-serif;
}

.header .mega-menu-card__description {
  width: 100%;
  color: #949494;
  font: 400 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
  margin-top: 8px;
}

.header .mega-menu-group-toggle {
  display: flex;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 12px 16px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #000;
  text-align: left;
  cursor: pointer;
}

.header .mega-menu-group-toggle__copy,
.header .mega-menu-group-toggle__title,
.header .mega-menu-group-toggle__description {
  display: block;
}

.header .mega-menu-group-toggle__copy {
  flex: 1 1 auto;
  min-width: 0;
}

.header .mega-menu-group-toggle__title {
  font: 600 14px/22px "Open Sans", Helvetica, Arial, sans-serif;
}

.header .mega-menu-group-toggle__description {
  color: #949494;
  font: 400 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
  margin-top: 2px;
}

.header .mega-menu-group-toggle__chevron {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.header .mega-menu__group-list > li.is-active > .mega-menu-group-toggle {
  color: #08864a;
}

.header .mega-menu__pages {
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}

.header .mega-menu__pages.is-active {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0s;
}

.header .mega-menu__pages.is-fading-out {
  opacity: 0;
}

.header .mega-menu-featured,
.header .mega-menu-featured__image,
.header .mega-menu-featured__title {
  display: block;
}

.header .mega-menu-featured__image {
  width: 100%;
  height: 146px;
  margin-bottom: 12px;
  overflow: hidden;
  border-radius: 12px;
}

.header .mega-menu-featured__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header .mega-menu-featured__title {
  font: 600 16px/22px "Open Sans", Helvetica, Arial, sans-serif;
}

.header .mega-menu__posts-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 12px;
  border-bottom: 1px solid #cfcfcf;
}

.header .mega-menu__posts-heading .mega-menu__section-title {
  flex: 1 1 auto;
  margin: 0;
  border: 0;
}

.header .mega-menu__posts-heading > a {
  
  font: 600 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
  white-space: nowrap;
}

.header .mega-menu__posts-heading > a:hover {
  color: #00BF63;
}

.header .mega-menu-post-card,
.header .mega-menu-post-card__image,
.header .mega-menu-post-card__title,
.header .mega-menu-post-card__meta {
  display: block;
}

.header .mega-menu-post-card__image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 8px;
  background: #f7f7f7;
}

.header .mega-menu-post-card__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.header .mega-menu-post-card__title {
  margin-top: 12px;
  font: 600 14px/22px "Open Sans", Helvetica, Arial, sans-serif;
}

.header .mega-menu-post-card__meta {
  margin-top: 12px;
  color: #949494;
  font: 400 14px/20px "Open Sans", Helvetica, Arial, sans-serif;
}

@media (min-width: 1241px) {
  .header .mega-menu .mega-menu-card {
    min-height: 96px;
  }

  .header .menu-header-list .mega-menu {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    padding: 118px 66px 40px;
  }

  .header .menu-header-list > li.__opened > .mega-menu {
    display: block;
  }

  .header .mega-menu__body {
    position: relative;
    width: 100%;
  }

  .header .mega-menu--two-level .mega-menu__body {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr) 260px;
    gap: 28px;
  }

  .header .mega-menu__groups {
    grid-column: 1;
  }

  .header .mega-menu__group-list {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    padding: 8px !important;
    overflow: hidden;
    border-radius: 12px;
    background: #f7f7f7;
  }

  .header .mega-menu__group-list > li > .mega-menu-group-toggle {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .header .mega-menu__group-list > li {
    position: static;
  }

  .header .mega-menu__group-list > li.is-active > .mega-menu-group-toggle {
    padding-left: 13px;
    border-left: 3px solid #00bf63;
    background: #fff;
  }

  .header .mega-menu__pages {
    position: absolute;
    top: 0;
    right: 288px;
    left: 288px;
    visibility: hidden;
  }

  .header .mega-menu__pages.is-active {
    visibility: visible;
  }

  .header .mega-menu__pages .mega-menu__card-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px;
  }

  .header .mega-menu--one-level .mega-menu__card-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px 16px;
  }

  .header .mega-menu__featured {
    grid-column: 3;
    width: 260px;
  }

  .header .mega-menu--one-level .mega-menu__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 32px;
  }

  .header .mega-menu--one-level .mega-menu__featured {
    grid-column: 2;
  }

  .header .mega-menu--top-posts .mega-menu__post-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
  }
}

@media (min-width: 1441px) {
  .header .menu-header-list .mega-menu {
    padding-right: 110px;
    padding-left: 110px;
  }
}

@media (min-width: 1600px) {
  .header .mega-menu--one-level .mega-menu__card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1691px) {
  .header .mega-menu__pages .mega-menu__card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1240.98px) {
  .header .menu-header {
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
  }

  .header .menu-mob-header,
  .header .menu-mob-footer {
    flex: 0 0 auto;
  }

  .header .menu-mob-body {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .header.__submenu-active .menu-mob-header {
    box-shadow: none;
  }

  .header .menu-mob-body .menu-header-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
  }

  .header .menu-mob-body .menu-header-list > li {
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #cfcfcf;
    border-radius: 12px;
    background: #fff;
  }

  .header .menu-mob-body .menu-header-list > li.__opened {
    margin: 0;
    padding: 0;
    border-color: #cfcfcf;
    background: #fff;
  }

  .header .menu-mob-body .menu-header-list > li > a,
  .header .menu-mob-body .menu-header-list > li.__opened > a {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 16px;
    color: #000;
    font: 600 16px/22px "Open Sans", Helvetica, Arial, sans-serif;
  }

  .header .menu-mob-body .menu-header-list > li.__opened > a {
    color: #08864a !important;
  }

  .header .menu-header-list > li.menu-item-has-children > a::after,
  .header .menu-header-list > li.menu-item-has-children.__opened > a::after {
    right: 16px;
    top: 17px;
    width: 20px;
    height: 20px;
    margin: 0;
    padding: 0;
    background-color: currentColor;
  }

  .header .menu-header-list > li.menu-item-has-children.__opened > a::after {
    transform: rotate(180deg);
  }

  .header .menu-mob-body .menu-header-list > li > .mega-menu {
    position: static;
    display: none;
    width: auto;
    margin: 0;
    padding: 0 16px 12px;
    border: 0;
  }

  .header .menu-mob-body .menu-header-list > li.__opened > .mega-menu {
    display: block;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .header .mega-menu__section-title,
  .header .mega-menu__featured,
  .header .mega-menu__posts-heading .mega-menu__section-title {
    display: none;
  }

  .header .mega-menu__group-list,
  .header .mega-menu__card-grid,
  .header .mega-menu__post-grid {
    display: grid !important;
    column-count: initial !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }

  .header .mega-menu__group-list {
    gap: 2px;
  }

  .header .mega-menu__group-list > li {
    margin: 0 !important;
  }

  .header .mega-menu li {
    margin-bottom: 0 !important;
  }

  .header .mega-menu__group-list > li.is-active {
    overflow: hidden;
    border-left: 3px solid #00bf63;
    border-radius: 8px;
    background: #fbfbfb;
  }

  .header .mega-menu__group-list > li.is-active > .mega-menu-group-toggle {
    padding-left: 13px;
  }

  .header .mega-menu-group-toggle__chevron {
    width: 8px;
    height: 8px;
    flex-basis: 8px;
    transform: rotate(45deg);
  }

  .header .is-active > .mega-menu-group-toggle .mega-menu-group-toggle__chevron {
    transform: rotate(225deg);
  }

  .header .mega-menu__pages {
    display: none;
    padding: 4px 12px 12px;
  }

  .header .mega-menu__pages.is-active {
    display: block;
  }

  .header .mega-menu__card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
  }

  .header .menu-mob-body .menu-item-has-children.__opened .mega-menu .mega-menu-card {
    padding: 12px;
  }

  .header .mega-menu__post-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px 12px;
  }

  .header .mega-menu__posts {
    display: flex;
    flex-direction: column;
  }

  .header .mega-menu__posts-heading {
    order: 2;
    margin: 16px 0 0;
    border: 0;
  }

  .header .mega-menu__posts-heading > a {
    display: block;
  }
}

@media (min-width: 768px) and (max-width: 1240.98px) {  
  .header .mega-menu .mega-menu-card {
    min-height: 76px;
  }
}

@media (max-width: 1023.98px) {
  .header .menu-mob-body .menu-header-list {
    margin: 0 24px;
  }
}

@media (max-width: 767.98px) {
  .header .menu-mob-body .menu-header-list {
    gap: 12px;
  }

  .header .mega-menu__card-grid,
  .header .mega-menu__post-grid {
    grid-template-columns: 1fr;
  }

  .header .mega-menu-card {
    padding: 12px;
  }

  .header .mega-menu-card__icon,
  .header .mega-menu-card__description {
    display: none;
  }

  .header .mega-menu-post-card__image {
    height: 180px;
  }
}

@media (min-width: 1024px) and (max-width: 1240.98px) {
  .header .menu-header.__open .menu-mob-header .tablet-menu-languages {
    display: none;
  }

  .header .menu-mob-footer {
    display: block;
    padding: 20px 86px;
    border-top: 1px solid #cfcfcf;
  }

  .header .menu-mob-footer .menu-social-links {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    width: auto;
    column-gap: 8px;
  }

  .header .menu-mob-footer .btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(90deg, rgb(93 217 157 / 27%) 10.2%, rgb(46 204 128 / 39%) 50.51%, rgb(93 217 157 / 37%) 100.38%);
    backdrop-filter: blur(5px);
  }

  .header .menu-mob-footer .btn-icon img {
    width: 25px;
    height: 25px;
  }

  .header .menu-mob-body .menu-header-list {
    padding: 21px 66px 50px;
  }
}
