.ym-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1045;
  width: 100%;
}

.ym-nav {
  position: relative;
  color: #182126;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(246, 248, 249, 0.98) 100%
  );
  box-shadow: 0 16px 40px rgba(13, 26, 32, 0.08);
}

.ym-header.is-menu-open .ym-nav,
.ym-header.is-scrolled .ym-nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.995) 0%,
    rgba(244, 246, 247, 0.995) 100%
  );
}

.ym-nav__shell {
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 clamp(20px, 3vw, 48px);
}

.ym-nav__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 72px;
  border-bottom: 1px solid rgba(24, 33, 38, 0.08);
}

.ym-nav__brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.ym-nav__brand-image {
  display: block;
  width: clamp(150px, 1px, 214px);
  height: auto;
}

.ym-nav__utility {
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: clamp(12px, 1.15vw, 24px);
  height: 100%;
  margin-left: auto;
}

.ym-nav__utility-item {
  position: relative;
  display: flex;
  align-items: stretch;
  height: 100%;
}

.ym-nav__utility-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: rgba(24, 33, 38, 0.74);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
  appearance: none;
}

.ym-nav__utility-link:hover,
.ym-nav__utility-link:focus-visible,
.ym-nav__utility-link--toggle[aria-expanded="true"] {
  color: #143f90;
  opacity: 1;
  text-decoration: none;
}

.ym-nav__utility-link--toggle {
  cursor: pointer;
}

.ym-nav__utility-link--submenu {
  cursor: pointer;
}

.ym-nav__utility-item--has-children.is-open .ym-nav__utility-link--submenu {
  color: #143f90;
}

.ym-nav__utility-arrow {
  width: 7px;
  height: 7px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.ym-nav__utility-item--has-children.is-open .ym-nav__utility-arrow {
  transform: rotate(225deg);
}

.ym-nav__utility-submenu {
  position: absolute;
  top: calc(100% + 26px);
  left: 0;
  z-index: -1;
  min-width: 220px;
  padding: 10px 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 33, 38, 0.08);
  border-top: 0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 14px 30px rgba(13, 26, 32, 0.1);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s ease;
}

.ym-nav__utility-submenu::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 26px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(24, 33, 38, 0.08);
  border-bottom: 0;
}

.ym-nav__utility-item--has-children.is-open .ym-nav__utility-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.ym-nav__utility-submenu-link {
  display: block;
  padding: 10px 14px;
  color: rgba(24, 33, 38, 0.82);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ym-nav__utility-submenu-link:hover,
.ym-nav__utility-submenu-link:focus-visible {
  color: #143f90;
  background: rgba(20, 63, 144, 0.05);
  text-decoration: none;
}

.ym-nav__chevron {
  width: 8px;
  height: 8px;
  margin-top: -2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.ym-header.is-menu-open .ym-nav__chevron {
  transform: rotate(225deg);
}

.ym-nav__bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 2.8vw, 48px);
  height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  border-top: 1px solid transparent;
  transform: translate3d(0, -8px, 0);
  transition:
    height 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.16s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.18s ease,
    visibility 0s linear 0.24s;
  will-change: height, opacity, transform;
}

.ym-header.is-menu-open .ym-nav__bottom {
  height: 56px;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  border-top-color: rgba(24, 33, 38, 0.06);
  transform: translate3d(0, 0, 0);
  transition-delay: 0s;
}

.ym-nav__category {
  position: relative;
  padding: 4px 0 14px;
  border: 0;
  background: transparent;
  color: rgba(24, 33, 38, 0.78);
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  cursor: pointer;
  transition: color 0.2s ease;
}

.ym-nav__category::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #143f90;
  opacity: 0;
  transform: scaleX(0.45);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.ym-nav__category:hover,
.ym-nav__category:focus-visible,
.ym-nav__category.is-active {
  color: #182126;
}

.ym-nav__category:hover::after,
.ym-nav__category:focus-visible::after,
.ym-nav__category.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.ym-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate3d(0, -12px, 0);
  transition:
    opacity 0.18s ease,
    transform 0.26s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 0.26s;
  will-change: opacity, transform;
}

.ym-header.is-menu-open .ym-mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate3d(0, 0, 0);
  transition-delay: 0.03s, 0.03s, 0s;
}

.ym-mega-menu__inner {
  max-width: 1760px;
  margin: 0 auto;
  padding: 18px clamp(20px, 3vw, 48px) 30px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 1) 0%,
    rgba(249, 250, 251, 1) 100%
  );
  border-radius: 0 0 28px 28px;
  box-shadow: 0 24px 44px rgba(13, 26, 32, 0.12);
  opacity: 0.01;
  transform: translate3d(0, -8px, 0);
  backface-visibility: hidden;
  transition:
    opacity 0.2s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.ym-header.is-menu-open .ym-mega-menu__inner {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.ym-mega-menu__panel {
  display: none;
}

.ym-mega-menu__panel.is-active {
  display: block;
}

.ym-mega-menu__subcats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(33, 49, 56, 0.12);
}

.ym-mega-menu__subcat {
  padding: 10px 16px;
  border: 1px solid rgba(54, 73, 82, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.76);
  color: #33434b;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.ym-mega-menu__subcat:hover,
.ym-mega-menu__subcat:focus-visible,
.ym-mega-menu__subcat.is-active {
  background: #143f90;
  border-color: #143f90;
  color: #fff;
  transform: translateY(-1px);
}

.ym-mega-menu__group {
  display: none;
}

.ym-mega-menu__group.is-active {
  display: block;
  animation: ym-nav-fade-up 0.28s ease;
}

.ym-mega-menu__group-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.ym-mega-menu__eyebrow {
  display: block;
  margin-bottom: 8px;
  color: #738189;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.ym-mega-menu__title {
  margin: 0;
  color: #192227;
  font-family: "Estricta Bold", "Roboto", sans-serif;
  font-size: clamp(28px, 2vw, 34px);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.ym-mega-menu__view-all {
  color: #233139;
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.ym-mega-menu__view-all:hover,
.ym-mega-menu__view-all:focus-visible {
  color: #143f90;
  text-decoration: none;
}

.ym-mega-menu__cards {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  padding: 6px 4px 30px;
  margin: 0 -4px;
  touch-action: pan-x;
}

.ym-mega-menu__cards::-webkit-scrollbar {
  height: 10px;
}

.ym-mega-menu__cards::-webkit-scrollbar-track {
  background: rgba(24, 33, 38, 0.08);
  border-radius: 999px;
}

.ym-mega-menu__cards::-webkit-scrollbar-thumb {
  background: rgba(24, 33, 38, 0.24);
  border-radius: 999px;
}

.ym-mega-menu__cards::-webkit-scrollbar-thumb:hover {
  background: rgba(24, 33, 38, 0.38);
}

.ym-product-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 0 0 clamp(210px, 16vw, 236px);
  min-height: 280px;
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(244, 247, 248, 0.98) 100%
  );
  box-shadow: 0 18px 38px rgba(17, 30, 36, 0.08);
  text-decoration: none;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.ym-product-card:hover,
.ym-product-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(17, 30, 36, 0.16);
  text-decoration: none;
}

.ym-product-card__media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 170px;
  margin-bottom: 18px;
  padding: 16px;
  border-radius: 18px;
  background: radial-gradient(
    circle at top,
    rgba(184, 197, 204, 0.45) 0%,
    rgba(230, 235, 237, 0) 70%
  );
}

.ym-product-card__media img {
  width: auto;
  max-width: 100%;
  max-height: 148px;
  object-fit: contain;
}

.ym-product-card__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #d7dfe3;
  color: #2b3940;
  text-transform: uppercase;
  font-family: "Estricta Bold", "Roboto", sans-serif;
  font-size: 28px;
  font-weight: 700;
}

.ym-product-card__meta {
  margin-bottom: 8px;
  color: #7a8890;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.ym-product-card__name {
  color: #182126;
  text-transform: uppercase;
  font-family: "Estricta Regular", "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.05;
}

.ym-product-card--empty {
  justify-content: center;
  align-items: flex-start;
}

.ym-nav__mobile-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 72px;
  height: 72px;
  margin-left: auto;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid rgba(24, 33, 38, 0.08);
  border-radius: 0;
  background: transparent;
}

.ym-nav__mobile-toggle:focus {
  box-shadow: none;
}

.ym-nav__mobile-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #182126;
}

.ym-mobile-menu {
  width: 100% !important;
  max-width: 100%;
  background: rgba(35, 35, 35, 0.92);
  color: #182126;
}

.ym-mobile-menu__viewport {
  padding: 0;
  overflow: hidden;
}

.ym-mobile-menu__sheet {
  position: relative;
  height: calc(100vh - 32px);
  padding: 22px 14px 28px;
  overflow: hidden;
  background: #f4f2f3;
  border: 1px solid rgba(0, 0, 0, 0.16);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.2);
}

.ym-mobile-menu__panel {
  position: absolute;
  inset: 0;
  display: none;
  padding: 22px 14px 28px;
  overflow-y: auto;
  /* background: #f4f2f3; */
  background: #ffffff;
}

.ym-mobile-menu__panel.is-active {
  display: block;
  animation: ym-nav-fade-up 0.2s ease;
}

.ym-mobile-menu__back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #141414;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ym-mobile-menu__back-icon {
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.ym-mobile-menu__divider {
  width: 30px;
  height: 3px;
  margin: 28px 0 18px;
  background: #141414;
}

.ym-mobile-menu__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ym-mobile-menu__list--nested {
  gap: 6px;
}

.ym-mobile-menu__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  background: transparent;
  color: #151515;
  text-align: left;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

.ym-mobile-menu__row--nested.is-active {
  padding-bottom: 6px;
}

.ym-mobile-menu__arrow {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.ym-mobile-menu__arrow--toggle {
  transition: transform 0.2s ease;
}

.ym-mobile-menu__row--nested.is-active .ym-mobile-menu__arrow--toggle {
  transform: rotate(135deg);
}

.ym-mobile-menu__nested-group {
  display: flex;
  flex-direction: column;
}

.ym-mobile-menu__products {
  display: none;
  padding: 4px 0 8px;
}

.ym-mobile-menu__products.is-active {
  display: block;
}

.ym-mobile-menu__product-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 15px;
  scroll-snap-type: x proximity;
}

.ym-mobile-product {
  display: flex;
  flex: 0 0 94px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: #131313;
  text-decoration: none;
  scroll-snap-align: start;
}

.ym-mobile-product--single {
  align-items: flex-start;
}

.ym-mobile-product__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 86px;
  height: 56px;
}

.ym-mobile-product__media img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ym-mobile-product__placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #d8d8d8;
  color: #2b3940;
  text-transform: uppercase;
  font-family: "Estricta Bold", "Roboto", sans-serif;
  font-size: 20px;
  font-weight: 700;
}

.ym-mobile-product__name {
  width: 100%;
  color: #141414;
  text-align: center;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
}

.ym-mobile-product--single .ym-mobile-product__name {
  text-align: left;
}

.ym-mobile-menu__secondary {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.ym-mobile-menu__secondary-link {
  padding: 8px 0;
  color: rgba(20, 20, 20, 0.78);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ym-mobile-menu__secondary-group {
  display: flex;
  flex-direction: column;
}

.ym-mobile-menu__secondary-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: rgba(20, 20, 20, 0.78);
  text-align: left;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.ym-mobile-menu__secondary-group.is-open .ym-mobile-menu__secondary-toggle {
  color: #143f90;
}

.ym-mobile-menu__secondary-group.is-open .ym-mobile-menu__arrow--toggle {
  transform: rotate(135deg);
}

.ym-mobile-menu__secondary-children {
  display: none;
  padding: 2px 0 6px 14px;
}

.ym-mobile-menu__secondary-group.is-open .ym-mobile-menu__secondary-children {
  display: flex;
  flex-direction: column;
}

.ym-mobile-menu__secondary-link--child {
  padding: 7px 0;
  font-size: 11px;
}

.ym-mobile-menu__secondary-link:hover,
.ym-mobile-menu__secondary-link:focus-visible {
  color: #143f90;
  text-decoration: none;
}

.ym-header .dropdown-item {
  display: block;
  padding: 10px 20px;
  color: rgba(24, 33, 38, 0.78);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.ym-header .dropdown-item:hover,
.ym-header .dropdown-item:focus-visible {
  color: #143f90;
  text-decoration: none;
}

.ym-header .nav-link-style-dropdown {
  color: #182126;
  font-weight: 700;
}

.ym-mobile-menu__links {
  margin-top: 10px;
  border-top: 1px solid rgba(24, 33, 38, 0.08);
}

.link-mobile {
  padding: 0;
  border-bottom: 1px solid rgba(24, 33, 38, 0.08);
}

.link-mobile a {
  display: block;
  padding: 16px 20px;
  color: rgba(24, 33, 38, 0.84);
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Roboto", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
}

.link-mobile a:hover,
.link-mobile a:focus-visible {
  color: #143f90;
  text-decoration: none;
}

@keyframes ym-nav-fade-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1199px) {
  .ym-nav__utility {
    gap: 12px;
  }

  .ym-nav__utility-link {
    font-size: 11px;
  }

  .ym-nav__bottom {
    gap: 24px;
  }

  .ym-nav__category {
    font-size: 12px;
  }
}

@media (max-width: 991.98px) {
  .ym-nav {
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.995) 0%,
      rgba(247, 248, 249, 0.995) 100%
    );
  }

  .ym-nav__shell {
    padding: 0 0 0 18px;
  }

  .ym-nav__top {
    min-height: 72px;
    gap: 16px;
    border-bottom: 0;
  }

  .ym-nav__brand-image {
    width: 148px;
  }

  .ym-nav__bottom,
  .ym-header.is-menu-open .ym-nav__bottom,
  .ym-mega-menu,
  .ym-header.is-menu-open .ym-mega-menu {
    display: none;
  }
}
