.fv-site-header__menu-toggle { display: none; }
.fv-catalog-popup[hidden],
.fv-mobile-menu[hidden],
.fv-catalog-popup__tabpanel[hidden],
.fv-catalog-popup__category[hidden] { display: none; }

.fv-catalog-popup {
  position: fixed;
  z-index: 1100;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  box-sizing: border-box;
  padding: clamp(36px, 5vh, 72px) var(--fv-page-gutter);
  background: rgba(13, 15, 20, 0.72);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.fv-catalog-popup--open { opacity: 1; }

.fv-catalog-popup__panel {
  display: flex;
  width: min(calc(100vw - 2 * var(--fv-page-gutter)), 1680px);
  max-width: 100%;
  max-height: calc(100vh - 2 * clamp(36px, 5vh, 72px));
  max-height: calc(100dvh - 2 * clamp(36px, 5vh, 72px));
  box-sizing: border-box;
  flex-direction: column;
  overflow: hidden;
  border-radius: clamp(18px, 2vw, 28px);
  background: #fff;
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.32);
  transform: translateY(-12px);
  transition: transform 0.18s ease;
}

.fv-catalog-popup--open .fv-catalog-popup__panel { transform: translateY(0); }

.fv-catalog-popup__tabs {
  position: relative;
  display: flex;
  min-height: 74px;
  flex: 0 0 auto;
  align-items: stretch;
  padding-inline: 20px 76px;
  border-bottom: 1px solid #e8eaee;
}

.fv-catalog-popup__tab {
  position: relative;
  display: inline-flex;
  min-width: 230px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 0;
  background: transparent;
  color: #737984;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.fv-catalog-popup__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--fv-color-accent);
  content: "";
  opacity: 0;
  transform: scaleX(0.45);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.fv-catalog-popup__tab:hover,
.fv-catalog-popup__tab:focus-visible,
.fv-catalog-popup__tab--active { color: var(--fv-color-accent-dark); }
.fv-catalog-popup__tab--active::after { opacity: 1; transform: scaleX(1); }

.fv-catalog-popup__close {
  position: absolute;
  top: 15px;
  right: 20px;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e3e5ea;
  border-radius: 50%;
  background: #f5f6f8;
  color: #353942;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
}

.fv-catalog-popup__close:hover,
.fv-catalog-popup__close:focus-visible { border-color: var(--fv-color-accent); background: var(--fv-color-accent); color: #fff; }
.fv-catalog-popup__tabpanel { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; }

.fv-catalog-popup__body {
  display: grid;
  min-height: clamp(440px, 48vh, 520px);
  grid-template-columns: clamp(250px, 19vw, 310px) minmax(0, 1fr);
}

.fv-catalog-popup__primary { padding: 18px; background: #f4f5f7; }

.fv-catalog-popup__category-link {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
  border-radius: 13px;
  color: #3d424d;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.fv-catalog-popup__category-link:hover,
.fv-catalog-popup__category-link:focus-visible,
.fv-catalog-popup__category-link--active { background: #fff; color: var(--fv-color-accent-dark); text-decoration: none; }
.fv-catalog-popup__secondary { min-width: 0; padding: clamp(24px, 3vw, 42px); }
.fv-catalog-popup__category { min-width: 0; }
.fv-catalog-popup__all { display: inline-flex; min-height: 40px; align-items: center; margin-bottom: 12px; color: var(--fv-color-text); font-size: clamp(18px, 1.5vw, 24px); font-weight: 700; text-decoration: none; }
.fv-catalog-popup__all:hover,
.fv-catalog-popup__all:focus-visible { color: var(--fv-color-accent-dark); text-decoration: none; }
.fv-catalog-popup__children { display: grid; margin: 0; padding: 0; gap: 0 30px; list-style: none; }
.fv-catalog-popup__children--two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.fv-catalog-popup__child { min-width: 0; border-bottom: 1px dashed #e6e8ec; }
.fv-catalog-popup__child-link { display: flex; min-height: 52px; align-items: center; color: #4f5561; line-height: 1.35; text-decoration: none; }
.fv-catalog-popup__child-link:hover,
.fv-catalog-popup__child-link:focus-visible { color: var(--fv-color-accent-dark); text-decoration: none; }

.fv-catalog-popup__packaging-grid {
  display: grid;
  min-height: clamp(440px, 48vh, 520px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 24px clamp(28px, 3.2vw, 52px);
  padding: clamp(30px, 2.8vw, 46px) clamp(32px, 3.5vw, 58px);
}

.fv-catalog-popup__packaging-group { min-width: 0; }
.fv-catalog-popup__packaging-title { display: flex; min-height: 30px; align-items: center; margin: 0; color: var(--fv-color-accent-dark); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.fv-catalog-popup__packaging-title--subgroup { margin-top: 12px; }
.fv-catalog-popup__packaging-subgroup { min-width: 0; }
.fv-catalog-popup__packaging-list { display: grid; margin: 4px 0 0; padding: 0; gap: 0; list-style: none; }
.fv-catalog-popup__packaging-item { min-width: 0; }
.fv-catalog-popup__packaging-link { display: flex; min-height: 34px; align-items: center; color: #505661; line-height: 1.3; text-decoration: none; }
.fv-catalog-popup__packaging-link:hover,
.fv-catalog-popup__packaging-link:focus-visible { color: var(--fv-color-accent-dark); text-decoration: none; }
.fv-catalog-popup__empty { color: #848994; }
html.fv-page--catalog-open,
body.fv-page--catalog-open { overflow: hidden; overscroll-behavior: none; }

.fv-mobile-menu { position: fixed; z-index: 1200; inset: 0; display: flex; box-sizing: border-box; justify-content: flex-end; padding: 16px; background: rgba(13, 15, 20, 0.74); opacity: 0; transition: opacity 0.18s ease; }
.fv-mobile-menu--open { opacity: 1; }
.fv-mobile-menu__panel { display: flex; width: min(100%, 390px); max-width: 100%; height: calc(100vh - 32px); height: calc(100dvh - 32px); box-sizing: border-box; flex-direction: column; overflow-x: hidden; overflow-y: auto; padding: 22px; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32); transform: translateX(18px); transition: transform 0.18s ease; }
.fv-mobile-menu--open .fv-mobile-menu__panel { transform: translateX(0); }
.fv-mobile-menu__header { display: flex; align-items: center; justify-content: space-between; }
.fv-mobile-menu__logo { color: var(--fv-color-text); font-size: 23px; font-weight: 700; text-decoration: none; }
.fv-mobile-menu__logo span { color: var(--fv-color-accent); }
.fv-mobile-menu__logo:hover,
.fv-mobile-menu__logo:focus-visible { color: var(--fv-color-accent-dark); text-decoration: none; }
.fv-mobile-menu__close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #f4f5f7; color: #343841; font: inherit; font-size: 27px; cursor: pointer; }
.fv-mobile-menu__close:hover,
.fv-mobile-menu__close:focus-visible { background: var(--fv-color-accent); color: #fff; }
.fv-mobile-menu__navigation { display: grid; margin-top: 20px; }
.fv-mobile-menu__catalog,
.fv-mobile-menu__link { display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 12px; color: #3f4550; font-size: 16px; font-weight: 600; text-decoration: none; }
.fv-mobile-menu__catalog { min-height: 58px; margin-bottom: 8px; padding: 0 18px; border-radius: 17px; background: #15161a; color: #fff; }
.fv-mobile-menu__link { padding: 0 4px; border-bottom: 1px solid #e8eaee; }
.fv-mobile-menu__catalog:hover,
.fv-mobile-menu__catalog:focus-visible { background: var(--fv-color-accent); color: #fff; text-decoration: none; }
.fv-mobile-menu__link:hover,
.fv-mobile-menu__link:focus-visible { color: var(--fv-color-accent-dark); text-decoration: none; }
.fv-mobile-menu__catalog-icon { width: 18px; height: 14px; border: 2px solid #fff; transform: rotate(30deg); }
.fv-mobile-menu__quote { width: 100%; margin-top: auto; }

@media (max-width: 991px) {
  .fv-site-header__catalog-toggle--desktop { display: none; }
  .fv-site-header__menu-toggle { display: inline-flex; width: 46px; height: 46px; flex: 0 0 46px; align-items: center; justify-content: center; flex-direction: column; gap: 4px; margin-left: 0; padding: 0; border: 0; border-radius: 50%; background: #15161a; cursor: pointer; }
  .fv-site-header__menu-toggle:hover,
  .fv-site-header__menu-toggle:focus-visible { background: var(--fv-color-accent); }
  .fv-site-header__menu-line { width: 18px; height: 2px; border-radius: 2px; background: #fff; }
  .fv-site-header__quote { display: none; }
  .fv-catalog-popup { display: none; }
}

@media (min-width: 992px) {
  .fv-mobile-menu { display: none; }
}

@media (max-width: 620px) {
  .fv-mobile-menu { justify-content: center; padding: 0; }
  .fv-mobile-menu__panel { width: 100%; max-width: none; height: 100vh; height: 100dvh; padding: 20px clamp(18px, 5vw, 28px); }
}
