/* FILEO navigation design, TEST candidate 2026-09-12.
   Load after template_styles.css. Popup, sticky top offsets and commerce remain legacy-owned. */

@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line,
  html body .header-desktop .top-line .region > .header-grey-line {
    box-sizing: border-box;
    padding-inline: max(32px, calc((100% - 1440px) / 2));
  }
  html body .header-desktop .top-line .region > .header-grey-line {
    min-height: 38px;
    padding-block: 5px;
  }
  html body .header-desktop .header-grey-line__info { margin-right: 32px; }
  html body .header-desktop .header-grey-line__phone { margin-right: 24px; }
  html body header:not(.minified) .header-desktop .header__nav__line {
    padding-block: 8px;
    align-items: center;
  }
  html body .header-desktop .header__nav__line-left {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content minmax(0, 1fr);
    align-items: center;
    width: 100%;
    max-width: 1440px;
    margin-inline: auto;
    gap: 0;
  }
  html body .header-desktop .header__nav__line-left > .logo-wrap {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-self: start;
    width: 390px;
    max-width: calc(100% - 16px);
    margin: 0;
    gap: 12px;
  }
  html body .header-desktop .header__nav__line-left .logo {
    float: none;
    flex: 0 0 140px;
    width: 140px;
    max-width: 100%;
    margin: 0;
    line-height: 0;
  }
  html body .header-desktop .header__nav__line-left .logo svg { display: block; width: 100%; height: auto; }
  html body .header-desktop .header__nav__line-left .logo_desc {
    min-width: 0;
    padding: 0;
    line-height: 16px;
    font-size: 11px;
    white-space: nowrap;
  }
  html body .header-desktop .header__nav__line-left > .nav-block {
    grid-column: 2;
    grid-row: 1;
    width: max-content;
    max-width: none;
    max-height: none;
    margin: 0;
  }
  html body .header-desktop .nav-block-wrap { text-align: center; }
  html body .header-desktop .nav > .nav__ul {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.1vw, 32px);
    width: max-content;
    margin: 0;
    padding: 0;
  }
  html body .header-desktop .nav > .nav__ul > .nav__li {
    float: none;
    flex: 0 0 auto;
    margin-right: 0;
    padding-right: 0;
  }
  html body .header-desktop .nav > .nav__ul > .nav__li > a {
    white-space: nowrap;
    font-family: Montserrat, sans-serif;
    font-weight: 400 !important;
  }
  html body .header-desktop .nav > .nav__ul > .nav__li > a:is(.active, .underline, .fileo-nav-current) { font-weight: 500 !important; }
  html body .header-desktop .fileo-nav-search {
    grid-column: 3;
    grid-row: 1;
    justify-self: start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0 0 0 clamp(16px, 2vw, 30px);
    color: #444;
    text-decoration: none;
  }
  html body .header-desktop .fileo-nav-search .search-ico {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin: 0;
    padding: 0;
    transform: none;
  }
  html body .header-desktop .fileo-nav-search:focus-visible { outline: 1px solid #872F3E; outline-offset: 1px; }
  html body .header-desktop .top-actions-first { gap: 24px; }
  html body .header-desktop .fileo-toolbar-favorites,
  html body .header-desktop .top-actions-first .login-ico { font-weight: 400; }
}

@media (min-width: 1025px) and (max-width: 1439px) {
  html body .header-desktop .header__nav__line-left .logo_desc { display: none; }
}

html body .header-desktop .nav .nav-popup__ul a {
  font-family: Montserrat, sans-serif !important;
  font-weight: 400 !important;
}
html body .header-desktop .nav .nav-popup__ul > li > a.nav-popup__category.fileo-nav-accent,
html body .header-desktop .nav .nav__ul > .nav__li > a.fileo-nav-accent,
html body .catalog-side-bar__ul a.fileo-nav-accent,
html body .side-bar__ul_small a.fileo-nav-accent {
  color: var(--fileo-nav-link-color, #872F3E) !important;
  font-weight: 500 !important;
}
html body .header-desktop .nav .nav-popup__ul a.active { font-weight: 500 !important; }
html body .header-desktop .nav .nav__ul > .nav__li:hover > a,
html body .header-desktop .nav .nav__ul > .nav__li > a:focus-visible { color: var(--fileo-nav-link-color, #872F3E) !important; }

/* Keep SVG size and all four mobile actions on one shared axis; preserve the 45/66px shell. */
html body header .fileo-toolbar-icon { width: 22px !important; height: 22px !important; fill: none !important; }
html body header .fav__count[data-count-empty="true"],
html body header .cart__count[data-count-empty="true"] { display: none !important; }
@media (max-width: 1024px) {
  html body .header-mobile .header-mob__right { align-items: center; gap: 4px; }
  html body .header-mobile .header-mob__right > .header-mob__left__el,
  html body .header-mobile .header-mob__right > .header-mob__right__el { flex: 0 0 36px; width: 36px; }
  html body .header-mobile .header-mob__right .top-search,
  html body .header-mobile .header-mob__right .top-favorite,
  html body .header-mobile .header-mob__right .account-ic,
  html body .header-mobile .header-mob__right .show-rails,
  html body .header-mobile .header-mob__right .top-line-block__cart,
  html body .header-mobile .header-mob__right .show-cart-block { width: 36px !important; }
  html body .header-mobile .menu-ic[role="button"]:focus-visible { outline: 1px solid #872F3E; outline-offset: 5px; }
}

/* Existing category destinations stay intact; only dedicated buttons disclose subcategories. */
html body .content-catalog .aside .nav .nav-popup__category,
html body .content-catalog .aside .nav .nav-popup__subcategory,
html body .catalog-side-bar__ul a,
html body .side-bar__ul_small a {
  font-family: Montserrat, sans-serif !important;
  font-weight: 400 !important;
}
html body .content-catalog .aside .nav .nav-popup__category.active,
html body .content-catalog .aside .nav .nav-popup__subcategory.active,
html body .catalog-side-bar__ul a.active,
html body .side-bar__ul_small a.active {
  font-weight: 500 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
html body .content-catalog .aside .nav .nav-popup__category.fileo-nav-accent {
  color: var(--fileo-nav-link-color, #872F3E) !important;
  font-weight: 500 !important;
}
/* Keep the divider's lower gap above the legacy sidebar row margin: 1px !important. */
html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li.fileo-nav-accent-end {
  border-bottom: 1px solid #D9DADA;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}
html body .content-catalog .aside .nav .nav-popup__ul .children,
html body .catalog-side-bar__ul .catalog-side-bar__subul,
html body .side-bar__ul_small {
  box-sizing: border-box;
  border-left: 1px solid #D9DADA;
  padding-left: 12px;
}
html body .content-catalog .aside .nav .nav-popup__ul .children {
  left: 0;
  width: auto;
  margin: 5px 0 8px 8px;
  padding-top: 0;
}
html body .content-catalog .aside .nav .fileo-sidebar-parent { position: relative; }
html body .content-catalog .aside .nav .fileo-sidebar-parent > .nav-popup__category {
  box-sizing: border-box;
  max-width: calc(100% - 28px);
  padding-right: 4px;
}
html body .content-catalog .aside .nav .fileo-sidebar-toggle {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  color: #444;
  background: transparent;
  border: 0;
  border-radius: 0;
  cursor: pointer;
}
html body .content-catalog .aside .nav .fileo-sidebar-toggle::after {
  content: '';
  display: block;
  width: 5px;
  height: 5px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: rotate(45deg);
}
html body .content-catalog .aside .nav .fileo-sidebar-toggle[aria-expanded="true"]::after { transform: rotate(135deg); }
html body .content-catalog .aside .nav .fileo-sidebar-toggle:focus-visible { outline: 1px solid #872F3E; outline-offset: -2px; }
html body .content-catalog .aside .nav .fileo-sidebar-parent > .children[hidden] { display: none !important; }

/* Mobile disclosures retain their existing controls, scroll lock and measured header offset. */
html body #menu-mob.fileo-menu-modern a,
html body #menu-mob.fileo-menu-modern .fileo-menu-catalog-button { font-family: Montserrat, sans-serif !important; font-weight: 400 !important; }
html body #menu-mob.fileo-menu-modern > .fileo-menu-new > a,
html body #menu-mob.fileo-menu-modern a[href="/katalog/delovoy_stil/"],
html body #menu-mob.fileo-menu-modern a[href="/katalog/soon/"],
html body #menu-mob.fileo-menu-modern a.fileo-nav-accent,
html body #menu-mob.fileo-menu-modern a.active,
html body #menu-mob.fileo-menu-modern .fileo-menu-catalog-button[aria-expanded="true"] { font-weight: 500 !important; }
html body #menu-mob.fileo-menu-modern > .fileo-menu-new > a,
html body #menu-mob.fileo-menu-modern a[href="/katalog/delovoy_stil/"],
html body #menu-mob.fileo-menu-modern a[href="/katalog/soon/"],
html body #menu-mob.fileo-menu-modern a.fileo-nav-accent { color: var(--fileo-nav-link-color, #872F3E) !important; }
html body #menu-mob.fileo-menu-modern ul,
html body #menu-mob.fileo-menu-modern .desc_menu,
html body #menu-mob.fileo-menu-modern #fileo-mobile-contacts-submenu { border-left: 1px solid #D9DADA; }
html body #menu-mob.fileo-menu-modern > li.fileo-menu-divider { background: #D9DADA; }
html body .fileo-menu-contact { border-top-color: #D9DADA; }

/* Control boxes follow the measured product grid; fixed top/height belong to existing sticky code. */
html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center;
  column-gap: 12px;
  width: var(--fileo-controls-width, 85%) !important;
  max-width: 100%;
  margin-left: var(--fileo-controls-offset, 15%) !important;
  margin-right: 0 !important;
  padding-inline: 0 !important;
}
html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls.minified {
  left: var(--fileo-controls-left, 0px) !important;
  margin-left: 0 !important;
}
html body .content-catalog .fileo-catalog-controls > .top-catalog-part {
  position: relative;
  top: auto;
  width: auto;
  min-width: 0;
  max-width: none;
  margin: 0;
}
html body .content-catalog .fileo-catalog-controls > .top-catalog-part__sort {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 4px 14px;
}
html body .content-catalog .fileo-catalog-controls > .paginataion-wrap,
html body .content-catalog .fileo-catalog-controls > .search--title {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  width: auto;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}
html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-wrap {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
}
html body .content-catalog .fileo-catalog-controls .manage-bar__pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 100%;
  margin: 0;
}
html body .content-catalog .fileo-catalog-controls .manage-bar__pagination li { float: none; }
html body .content-catalog .fileo-catalog-controls > .top-catalog-part__view { grid-column: 3; grid-row: 1; }
html body .content-catalog .fileo-catalog-controls .top-catalog-part__view .manage-bar {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-end;
  flex-direction: row;
  width: 100%;
  height: auto;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
}
html body .content-catalog .fileo-catalog-controls .manage-bar__select-wrap { min-width: 0; margin: 0; }
html body .content-catalog .fileo-catalog-controls .manage-bar__select-sorting,
html body .content-catalog .fileo-catalog-controls .manage-bar__select-quantity,
html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-link,
html body .content-catalog .fileo-catalog-controls .manage-bar__title,
html body .content-catalog .fileo-catalog-controls .js-filter-ico { font-family: Montserrat, sans-serif; font-weight: 400; }
html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-link.active { color: #872F3E; font-weight: 500; }
html body .content-catalog .fileo-catalog-controls .select__dropdown { z-index: 30; }
@media (max-width: 1024px) {
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
    width: var(--fileo-controls-width, 100%) !important;
    margin-left: var(--fileo-controls-offset, 0px) !important;
  }
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls.minified { margin-left: 0 !important; }
}
@media (min-width: 768px) and (max-width: 1200px) {
  html body .content-catalog .fileo-catalog-controls .top-catalog-part__view .manage-bar { gap: 12px; }
  html body .content-catalog .fileo-catalog-controls > .top-catalog-part__sort { gap: 4px 8px; }
}
@media (max-width: 767px) {
  /* Beat the legacy !important hide even when Bitrix emits that stylesheet later. */
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block:has(> .breadcrumbs-block_mod-bg) {
    display: block !important;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 14px;
    padding: 0 12px;
  }
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block > .breadcrumbs-block_mod-bg {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block > .breadcrumbs-block_mod-bg > .breadcrumbs {
    margin: 0;
    padding: 0;
    min-height: 16px;
  }
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    column-gap: 6px;
  }
  html body .content-catalog .fileo-catalog-controls > .top-catalog-part__sort { display: flex !important; }
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-wrap.margin-0 { display: flex; }
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-wrap.mob-hidden,
  html body .content-catalog .fileo-catalog-controls .manage-bar__view-type-wrap.js-catalog-view { display: none !important; }
  html body .content-catalog .fileo-catalog-controls #catalog-sort-select-1,
  html body .content-catalog .fileo-catalog-controls .js-filter-ico {
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    top: auto;
    right: auto;
    left: auto;
    width: 40px;
    min-width: 0;
    height: 40px;
    margin: 0;
    padding: 0;
  }
  html body .content-catalog .fileo-catalog-controls #catalog-sort-select-1::after { display: none; }
  html body .content-catalog .fileo-catalog-controls #catalog-sort-select-1 .view-pc,
  html body .content-catalog .fileo-catalog-controls .js-filter-ico .view-pc { display: none !important; }
  html body .content-catalog .fileo-catalog-controls #catalog-sort-select-1 .view-mb,
  html body .content-catalog .fileo-catalog-controls .js-filter-ico .view-mb { display: flex !important; }
  html body .content-catalog .fileo-catalog-controls .filter-mb-icon { display: flex; align-items: center; justify-content: center; }
  html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    min-height: 36px;
    padding: 0 3px;
  }
  /* The SVG is a CSS background: keep its drawing small inside the 22 x 36px target. */
  html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-link.next-page,
  html body .content-catalog .fileo-catalog-controls .manage-bar__pagination-link.prev-page {
    background-size: 6px 9px !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }
  html body .content-catalog .fileo-catalog-controls .select__dropdown-sorting {
    left: 0;
    right: auto;
    width: max-content;
    min-width: 200px;
    max-width: calc(100vw - 24px);
  }
}

/* Override legacy dealer-menu emphasis in cookie-consent.css, including hover. */
@media (min-width: 1025px) {
 html body .header-desktop .nav-block .nav > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) > a { font-weight: 400 !important; }
 html body .header-desktop .nav-block .nav > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) > a:is(.active, .underline, .fileo-nav-current) { font-weight: 500 !important; }
}

/* Keep the selected accent consistent with the other accent destinations. */
html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category.fileo-nav-accent.active {
  color: var(--fileo-nav-link-color, #872F3E) !important;
  font-weight: 500 !important;
}

/* Visible catalogue search: keep the centered desktop menu and the mobile fixed shell. */
html body .fileo-header-search { box-sizing: border-box; min-width: 0; color: #444; }
html body .fileo-header-search .search-wrap {
  position: relative; display: block; float: none;
  width: 100%; max-width: none; height: auto; margin: 0; padding: 0;
}
html body .fileo-header-search form.search {
  position: relative; display: flex; align-items: center;
  box-sizing: border-box; width: 100%; min-width: 0; height: 40px;
  margin: 0; padding: 0; background: #fff;
  border: 1px solid #D9DADA; border-radius: 2px;
  transition: border-color .15s ease;
}
html body .fileo-header-search form.search:focus-within { border-color: #872F3E; }
html body .fileo-header-search .search__input {
  position: static; box-sizing: border-box; display: block;
  width: 100%; min-width: 0; max-width: none; height: 100%;
  margin: 0; padding: 0 44px 0 12px;
  border: 0; border-radius: 2px; outline: 0; background: transparent;
  font-family: Montserrat, sans-serif; font-size: 12px; font-weight: 400;
  line-height: normal; color: #333; text-align: left;
}
html body .fileo-header-search .search__input::placeholder { color: #777; opacity: 1; }
html body .fileo-header-search .search__input:focus::placeholder { color: #777; opacity: 1; }
html body .fileo-header-search .search__placeholder { display: none !important; }
html body .fileo-header-search .search-button-wrap {
  position: absolute; display: flex; align-items: center; justify-content: center;
  top: 0; right: 0; bottom: 0; left: auto;
  width: 40px; height: 100%; margin: 0; padding: 0; transform: none;
}
html body .fileo-header-search .search-button-wrap::before {
  position: absolute; left: 50%; top: 50%; right: auto; bottom: auto;
  width: 20px; height: 20px; margin: 0; transform: translate(-50%, -50%);
  background-position: center; background-size: 20px 20px; background-repeat: no-repeat;
  pointer-events: none;
}
html body .fileo-header-search .search__button {
  position: relative; display: block; box-sizing: border-box;
  width: 100%; height: 100%; margin: 0; padding: 0;
  border: 0; border-radius: 0; background: transparent; cursor: pointer;
}
html body .fileo-header-search .search__button:focus-visible {
  outline: 2px solid #872F3E; outline-offset: -3px;
}
html body .fileo-header-search--mobile { display: none; }
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line-left > .fileo-header-search--desktop {
    grid-column: 3; grid-row: 1; justify-self: start;
    width: 300px; max-width: calc(100% - 20px); min-width: 0;
    margin: 0 0 0 20px; padding: 0;
  }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  html body .fileo-header-search--desktop .search__input { padding-left: 8px; padding-right: 36px; }
  html body .fileo-header-search--desktop .search-button-wrap { width: 34px; }
}
@media (max-width: 1024px) {
  html body .content-wrap > .fileo-header-search--mobile {
    display: block; width: calc(100% - 24px); max-width: 600px;
    margin: 12px auto; padding: 0;
  }
  html body .fileo-header-search--mobile form.search { height: 44px; }
  html body .fileo-header-search--mobile .search__input { font-size: 16px; padding-right: 48px; }
  html body .fileo-header-search--mobile .search__input::placeholder { font-size: 13px; }
  html body .fileo-header-search--mobile .search-button-wrap { width: 44px; }
}

/* Smaller desktop search requested after reviewing the live header. */
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line-left > .fileo-header-search--desktop {
    width: 260px; min-height: 40px; display: flex; align-items: center;
  }
  html body .fileo-header-search--desktop form.search { height: 34px; }
  html body .fileo-header-search--desktop .search__input { padding-right: 38px; }
  html body .fileo-header-search--desktop .search-button-wrap { width: 34px; }
  html body .fileo-header-search--desktop .search-button-wrap::before {
    width: 18px; height: 18px; background-size: 18px 18px;
  }
}

/* Align the search magnifier with the bag and restore desktop account/favorite icons. */
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line-left > .fileo-header-search--desktop {
    justify-self: end;
  }
  html body .fileo-header-search--desktop .search-button-wrap::before {
    left: calc(50% + 4px);
  }
  html body .header-desktop .top-actions-first .login-ico,
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites {
    display: inline-flex; position: relative; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin: 0; padding: 0; flex: none;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-icon {
    display: block; margin: 0; transform: none;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count {
    display: block; position: absolute; top: -1px; left: auto; right: -7px;
    min-width: 12px; height: 14px; margin: 0; padding: 0 2px;
    background: #ebebeb; color: #444; font-size: 10px; font-weight: 400;
    line-height: 14px; text-align: center; font-variant-numeric: tabular-nums;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count::before,
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count::after {
    content: none;
  }
}

/* Uniform Montserrat Medium for accent categories; override legacy href-based 600. */
html body .content-catalog .aside .nav .nav-popup__ul > li > a.nav-popup__category.fileo-nav-accent[href],
html body .header-desktop .nav .nav-popup__ul > li > a.nav-popup__category.fileo-nav-accent[href],
html body #menu-mob.fileo-menu-modern a.fileo-nav-accent[href] {
  font-weight: 500 !important;
}

/* The existing brand description stays on two lines without pushing the centered menu. */
@media (min-width: 1440px) and (max-width: 1535px) {
  html body .header-desktop .header__nav__line-left > .logo-wrap { gap: 8px; }
  html body .header-desktop .header__nav__line-left .logo {
    flex-basis: 120px;
    width: 120px;
  }
}

/* Compact desktop submenus: remove stacked link and list-item vertical spacing. */
@media (min-width: 1025px) {
  html body .content-catalog .aside .nav .nav-popup__ul .children > li,
  html body .catalog-side-bar__subul > li,
  html body .side-bar__ul_small > li {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  html body .content-catalog .aside .nav .nav-popup__ul .children > li > a.nav-popup__subcategory,
  html body .catalog-side-bar__subul > li > a,
  html body .side-bar__ul_small > li > a {
    box-sizing: border-box;
    min-height: 22px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    line-height: 1.25;
  }
}

/* Keep compact category rows consistent on every desktop sidebar. */
@media (min-width: 1025px) {
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li:not(.fileo-nav-accent-end),
  html body .catalog-side-bar__ul > li:not(.fileo-nav-accent-end),
  html body .side-bar__ul:not(.side-bar__ul_small) > li:not(.fileo-nav-accent-end) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }
  html body .content-catalog .aside .nav .fileo-sidebar-toggle {
    width: 28px;
    height: 24px;
  }
}

/* Reduce the homepage's legacy header reserve by 16px on desktop. */
@media (min-width: 1025px) {
  html body.main_page > .content-wrap {
    padding-top: 111px !important;
  }
}
@media (min-width: 1025px) and (max-width: 1280px) {
  html body.main_page > .content-wrap {
    padding-top: 154px !important;
  }
}

/* Align the desktop category list with the first product row. */
@media (min-width: 1025px) {
  html body .content-catalog .catalog__content .aside {
    margin-top: 0 !important;
  }
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul {
    margin-top: 0 !important;
  }
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li.fileo-nav-accent-end {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
    margin-bottom: 8px !important;
  }
}

/* FILEO approved color for the New and Coming Soon navigation destinations. */
:root { --fileo-new-soon-color: #8C2227; }
html body a:is([href="/katalog/new/"], [href="/katalog/?filter=new"], [href="/katalog/soon/"]),
html body .header-desktop.fileo-menu-managed .nav .nav__ul > .nav__li > a.fileo-nav-accent:any-link:is([href="/katalog/?filter=new"], [href="/katalog/soon/"]),
html body .header-desktop.fileo-menu-managed .nav > .nav__ul > .nav__li.picture > .nav-popup .wrap-menu a:is([href="/katalog/?filter=new"], [href="/katalog/soon/"]),
html body .content-catalog .aside .nav .nav__ul .nav-popup__ul a.nav-popup__category.fileo-nav-accent:any-link:is([href="/katalog/?filter=new"], [href="/katalog/soon/"]),
html body #menu-mob.fileo-menu-modern a.fileo-nav-accent:any-link:is([href="/katalog/?filter=new"], [href="/katalog/soon/"]) {
  --fileo-nav-link-color: var(--fileo-new-soon-color);
  color: var(--fileo-nav-link-color) !important;
}

/* Keep the compact desktop brand readable without changing the sticky bar height. */
@media (min-width: 1025px) {
  html body header.minified .header-desktop .header-grey-line__logo {
    width: 120px;
    max-width: none;
    height: auto;
    line-height: 0;
  }
  html body header.minified .header-desktop .header-grey-line__logo > svg {
    display: block;
    width: 100%;
    height: auto;
  }
}

/* Compact the desktop catalogue introduction and align the sort controls. */
@media (min-width: 1025px) {
  html body.katalog > .content-wrap:has(.content-catalog) {
    padding-top: 111px !important;
  }
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block > .breadcrumbs-block_mod-bg {
    min-height: 0;
  }
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block > .breadcrumbs-block_mod-bg > .breadcrumbs {
    padding-top: 8px;
  }
  html body .content-catalog > .catalog__title {
    margin-bottom: 20px;
  }
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls:not(.minified) {
    margin-bottom: 16px !important;
  }
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-sorting,
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-quantity {
    display: inline-flex;
    align-items: center;
    height: 28px;
    box-sizing: border-box;
    line-height: 16px;
  }
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-sorting {
    margin-left: 0;
    padding-left: 0;
  }
  html body .content-catalog .fileo-catalog-controls .manage-bar__select-sorting > .view-pc {
    line-height: inherit;
  }
  html body .content-catalog .fileo-catalog-controls .select__dropdown {
    top: 100%;
  }
}

/* Partnership FAQ: use the same disclosure chevron as the catalog menu. */
html body .fileo-partnership .fp-accordion details > summary::after {
  content: '';
  top: 50%;
  right: 6px;
  width: 5px;
  height: 5px;
  color: #444;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
html body .fileo-partnership .fp-accordion details[open] > summary::after {
  content: '';
  transform: translateY(-50%) rotate(135deg);
}

/* Search results start on the same desktop heading line as the catalog. */
@media (min-width: 1025px) {
  html body .content-catalog.fileo-search-content > h1.catalog__title {
    margin-top: 0 !important;
  }
}

/* About company details: match the catalog and partnership FAQ chevrons. */
html body .fileo-about .fileo-about__detail > summary::before {
  content: none;
}
html body .fileo-about .fileo-about__detail > summary::after {
  top: 50%;
  right: 26px;
  width: 5px;
  height: 5px;
  background: none;
  color: #444;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}
html body .fileo-about .fileo-about__detail[open] > summary::after {
  transform: translateY(-50%) rotate(135deg);
}

/* Desktop header shares the catalog's outer grid; keep the existing header height. */
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line,
  html body .header-desktop .top-line .region > .header-grey-line {
    padding-inline: 40px;
  }
  html body .header-desktop .header__nav__line-left { max-width: none; }
  html body .header-desktop .logo svg,
  html body .header-desktop .header-grey-line__logo > svg { overflow: visible; }
  html body .header-desktop .nav-block .nav > .nav__ul > .nav__li > a[href] {
    font-weight: 500 !important;
  }
  html body .fileo-header-search--desktop form.search { height: 30px; }

  /* Reserve space beside each 22px icon, including multi-digit counts. */
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites,
  html body .header-desktop .top-actions-first .top-line-block__cart {
    box-sizing: border-box; position: relative; display: inline-flex;
    align-items: center; justify-content: flex-start; flex: none;
    width: 52px; height: 28px; margin: 0; padding: 0;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites { padding-left: 3px; }
  html body .header-desktop .top-actions-first .cart__body {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; margin: 0; padding: 0;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count,
  html body .header-desktop .top-actions-first .top-line-block__cart .cart__count {
    position: absolute; top: auto; bottom: 0; left: 28px; right: auto;
    min-width: 0; width: auto; height: 12px; margin: 0; padding: 0;
    background: transparent; border-radius: 0; color: #444;
    font-size: 10px; font-weight: 400; line-height: 12px;
    text-align: left; font-variant-numeric: tabular-nums;
  }
  html body.katalog .content-wrap:has(.content-catalog) > .breadcrumbs-block > .breadcrumbs-block_mod-bg {
    width: 100%; max-width: none; margin-left: 0;
  }
}
@media (min-width: 1025px) and (max-width: 1279px) {
  html body .header-desktop .nav > .nav__ul { gap: 12px; }
}

/* One native modal replaces the office chooser when the basket contains products. */
html body dialog#fileo-office-guard {
  box-sizing: border-box; position: fixed; border: 0; border-radius: 0;
  top: 50%; bottom: auto; left: 50%; right: auto;
  width: 520px; max-width: calc(100vw - 32px); max-height: calc(100vh - 32px);
  min-height: 0; height: auto; margin: 0; padding: 28px;
  transform: translate(-50%, -50%); overflow-y: auto; background: #fff; color: #222;
}
html body dialog#fileo-office-guard::backdrop { background: rgba(0, 0, 0, .65); }
html body #fileo-office-guard h2 {
  margin: 0 24px 18px 0; padding: 0; font-size: 20px; line-height: 26px;
  text-transform: none; text-align: left;
}
html body #fileo-office-guard p {
  margin: 0; padding: 0; font-size: 14px; line-height: 21px; color: #444;
  text-align: left; white-space: pre-line;
}
html body #fileo-office-guard .fileo-office-guard__actions {
  display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px;
}
html body #fileo-office-guard .fileo-office-guard__actions > * {
  box-sizing: border-box; float: none; display: inline-flex;
  align-items: center; justify-content: center;
  width: auto; min-width: 120px; height: 36px; min-height: 0; margin: 0; padding: 0 16px;
  border: 1px solid #555; border-radius: 0; background: #fff; color: #222;
  font-size: 12px; line-height: 18px; text-decoration: none; cursor: pointer;
}
html body #fileo-office-guard .fileo-office-guard__actions > a {
  border-color: #8C2227; background: #8C2227; color: #fff;
}
html body #fileo-office-guard .fileo-office-guard__close {
  position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
  min-height: 0; padding: 0; margin: 0; border: 0; background: transparent;
  color: #444; font-size: 24px; line-height: 28px; cursor: pointer;
}
@media (max-width: 565px) {
  html body dialog#fileo-office-guard { padding: 24px; }
  html body #fileo-office-guard .fileo-office-guard__actions > * { flex: 1; height: 42px; }
}

/* Keep desktop toolbar compact; reserve only the space each count needs. */
@media (min-width: 1025px) {
  html body .header-desktop .header-grey-line .top-actions-first { gap: 12px; }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites,
  html body .header-desktop .top-actions-first .top-line-block__cart {
    width: auto;
    min-width: 28px;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count,
  html body .header-desktop .top-actions-first .top-line-block__cart .cart__count {
    position: static;
    align-self: flex-end;
    flex: none;
  }
  html body .header-desktop .top-actions-first .fileo-toolbar-favorites .fav__count {
    margin-left: 3px;
  }
}

/* Slightly stronger desktop navigation, preserving its current type size. */
@media (min-width: 1025px) {
  html body .header-desktop .nav-block .nav > .nav__ul > .nav__li > a[href],
  html body .header-desktop .nav-block .nav > .nav__ul > .nav__li > a[href]:is(.active, .underline, .fileo-nav-current) {
    font-weight: 600 !important;
  }
}

/* Homepage collection CTA and the first photo pair, 2026-09-14. */
@media (min-width: 1025px) {
  html body.main_page .fileo-home-wrap > a.banner-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 120px !important;
    height: 28px !important;
    padding: 0 12px !important;
    margin: 24px auto !important;
    border: 1px solid #202020 !important;
    background: #fff !important;
    color: #000000 !important;
    font-size: 11px !important;
    line-height: 18px !important;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease !important;
    text-decoration: none;
  }

  html body.main_page .fileo-home-wrap > a.banner-btn:hover,
  html body.main_page .fileo-home-wrap > a.banner-btn:focus-visible {
    background: #202020 !important;
    border-color: #202020 !important;
    color: #fff !important;
  }

  html body.main_page .fileo-home-wrap > a.banner-btn:focus-visible {
    outline: 2px solid #8C2227 !important;
    outline-offset: 3px !important;
  }

  html body.main_page .fileo-home-wrap {
    margin-bottom: 0 !important;
  }

  html body.main_page .fileo-home-wrap + .dekstop-constructor > .container:first-child .double_banners {
    margin-top: 0 !important;
    align-items: flex-start !important;
  }
}

/* Black, readable view numbers with a restrained selected weight.
   Use server-rendered classes so this also applies before layout JS runs. */
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li,
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li::before,
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li::after {
  color: #000 !important;
  font-weight: 400 !important;
}
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li::before {
  font-family: Montserrat, Arial, sans-serif !important;
  font-size: 13px !important;
  line-height: 20px !important;
  letter-spacing: 0;
}
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li.active,
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li.active::before,
html body .content-catalog .js-catalog-view .manage-bar__view-type.js-manage-bar__view-type > li.active::after {
  color: #000 !important;
  font-weight: 500 !important;
}

/* Compact mobile navigation: sentence case, readable narrow-screen rows. */
@media (max-width: 1024px) {
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern a,
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern > li.fileo-mobile-contacts > a.menu-mob__category-main,
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern .fileo-menu-catalog-button {
    min-height: 32px;
    padding: 6px 44px 6px 0 !important;
    font-size: 14px !important;
    line-height: 20px !important;
    letter-spacing: 0;
    text-transform: none !important;
  }
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern .fileo-menu-toggle {
    height: 32px;
  }
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern .fileo-menu-toggle::after {
    top: 13px;
  }
  html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern > li.fileo-menu-divider {
    margin: 8px 0;
  }
  html body .fileo-mobile-menu-wrap .fileo-menu-contact {
    margin-top: 10px;
  }
}

/* The collection CTA is neutral on mobile too; section navigation keeps its accent. */
@media (max-width: 1024px) {
  html body.main_page .fileo-home-wrap > a.banner-btn {
    color: #000000 !important;
  }
  html body.main_page .fileo-home-wrap > a.banner-btn:hover,
  html body.main_page .fileo-home-wrap > a.banner-btn:focus-visible {
    background: #202020 !important;
    color: #fff !important;
  }
}

/* Desktop sidebar: quiet disclosures on the right, darker during interaction. */
@media (min-width: 1025px) {
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category {
    margin-left: 0 !important;
    max-width: calc(100% - 28px) !important;
    padding-right: 0 !important;
  }
  html body .content-catalog .aside .nav .fileo-sidebar-toggle {
    left: auto;
    right: 0;
    width: 28px;
    color: #949494;
    transition: color 120ms ease;
  }
  html body .content-catalog .aside .nav .fileo-sidebar-parent:hover > .fileo-sidebar-toggle,
  html body .content-catalog .aside .nav .fileo-sidebar-parent:focus-within > .fileo-sidebar-toggle {
    color: #333333;
  }
  html body .content-catalog .aside .nav .fileo-sidebar-parent > .children {
    margin-left: 8px;
  }
}

/* Current sidebar group: quiet emphasis; underline only during interaction. */
@media (min-width: 1025px) {
  html body .content-catalog .aside .nav .nav-popup__category.active,
  html body .content-catalog .aside .nav .nav-popup__subcategory.active {
    font-weight: 500 !important;
    text-decoration: none !important;
  }
  html body .content-catalog .aside .nav .nav-popup__category.active:hover,
  html body .content-catalog .aside .nav .nav-popup__subcategory.active:hover,
  html body .content-catalog .aside .nav .nav-popup__category.active:focus-visible,
  html body .content-catalog .aside .nav .nav-popup__subcategory.active:focus-visible {
    text-decoration: underline !important;
  }
}

/* Keep sidebar categories neutral, including legacy active/hover backgrounds. */
@media (min-width: 1025px) {
  html body .content-catalog .aside .nav a.nav-popup__category,
  html body .content-catalog .aside .nav a.nav-popup__subcategory {
    background: transparent !important;
  }
}

/* Sidebar groups open only on request; consistent link interaction. */
@media (min-width: 1025px) {
  html body .content-catalog .aside .nav a.nav-popup__category,
  html body .content-catalog .aside .nav a.nav-popup__subcategory {
    text-decoration: none !important;
  }
  html body .content-catalog .aside .nav a.nav-popup__category:hover,
  html body .content-catalog .aside .nav a.nav-popup__subcategory:hover,
  html body .content-catalog .aside .nav a.nav-popup__category:focus-visible,
  html body .content-catalog .aside .nav a.nav-popup__subcategory:focus-visible {
    text-decoration: underline !important;
  }
}

/* Keep a tall sidebar below the header; scroll its list instead of moving its top. */
@media (min-width: 1025px) {
  html body .content-catalog .catalog__content .aside > .nav {
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
  }
}

/* Homepage photo editorial: remove the redundant CTA and empty staggered rows. */
html body.main_page .fileo-home-wrap > a.banner-btn {
  display: none !important;
}
@media (min-width: 1025px) {
  html body.main_page .fileo-home-wrap { margin-bottom: 20px !important; }
  html body.main_page .dekstop-constructor:has(> .container > .double_banners.trend) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 20px;
    width: calc(100% - 80px);
    max-width: 1440px;
    margin: 0 auto 40px;
  }
  html body.main_page .dekstop-constructor > .container:has(> .double_banners.trend) {
    width: 100%; min-width: 0; max-width: none; margin: 0; padding: 0;
  }
  html body.main_page .dekstop-constructor .double_banners.trend {
    display: flex !important; flex-direction: column; align-items: stretch !important;
    gap: 20px; width: 100%; margin: 0 !important; padding: 0 !important;
  }
  html body.main_page .dekstop-constructor .double_banners--revers.trend {
    flex-direction: column-reverse;
  }
  html body.main_page .dekstop-constructor .double_banners.trend > .banner_wrap {
    display: block; width: 100% !important; max-width: none; margin: 0 !important;
    padding: 0 !important; align-self: auto;
  }
  html body.main_page .dekstop-constructor .double_banners.trend > .banner_wrap > .dot-title,
  html body.main_page .dekstop-constructor .double_banners.trend > .banner_wrap > .banner {
    display: none;
  }
  html body.main_page .dekstop-constructor .double_banners.trend .catalog_banner,
  html body.main_page .dekstop-constructor .double_banners.trend .catalog_banner > a {
    display: block; width: 100% !important; height: auto !important; margin: 0 !important;
    padding: 0 !important;
  }
  html body.main_page .dekstop-constructor .double_banners.trend img.main-banner-bg {
    display: block; width: 100% !important; height: auto !important; max-height: none;
    object-fit: contain;
  }
}

@media (min-width: 1025px) {
  html body.main_page .dekstop-constructor .double_banners.trend img.main-banner-bg {
    min-height: 0 !important;
  }
}

/* The home hero starts at the actual expanded header edge, including editor-panel flow. */
@media (min-width: 1025px) {
  html body.main_page > .content-wrap {
    padding-top: var(--fileo-home-header-space, 95px) !important;
  }
  html body.main_page header.minified .top-line {
    min-height: 0;
  }
}

/* FILEO: mobile footer, 2026-09-16. Desktop layout is unchanged. */
@media (max-width: 767px) {
  html body .footer .footer-info { align-items: flex-start; gap: 16px; }
  html body .footer .footer-info .footer__logo {
    flex: 0 0 100px;
    width: 100px;
    min-width: 0;
  }
  html body .footer .footer-info .footer-social {
    flex: 0 0 auto;
    width: auto;
    min-width: 130px;
  }
  html body .footer .footer-info .social-wrap { gap: 6px; }
  html body .footer .footer-info .social-item { margin: 0; padding: 0; }
  html body .footer .footer-nav--mob { width: 100%; min-width: 0; }
  html body .footer .footer-nav--mob .footer-center-block__item-ul {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 4px 16px;
    width: 100%;
    margin: 12px 0 24px;
    padding: 0;
  }
  html body .footer .footer-nav--mob .footer-center-block__item-ul li {
    width: auto !important;
    min-width: 0;
    margin: 0;
    padding: 0;
    text-align: left;
  }
  html body .footer .footer-nav--mob .footer-center-block__item-ul li a {
    display: block;
    box-sizing: border-box;
    width: 100%;
    min-height: 32px;
    padding: 6px 0;
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
    text-align: left;
    text-transform: none;
    white-space: normal;
    overflow-wrap: anywhere;
  }
  html body .footer .footer__contact__info > div[itemtype="http://schema.org/Organization"],
  html body .footer .footer__contact__info > .fileo-footer-cheboksary {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 260px;
    margin: 0 0 14px;
    text-align: center;
    font-family: Onest, Arial, sans-serif;
    font-size: 12px !important;
    line-height: 18px !important;
  }
  html body .footer .footer__contact__info [itemprop="address"],
  html body .footer .footer__contact__info [itemprop="address"] span,
  html body .footer .footer__contact__info .fileo-footer-cheboksary span,
  html body .footer .footer__contact__info .fileo-footer-cheboksary a {
    font-family: Onest, Arial, sans-serif;
    font-size: 12px;
    line-height: 18px;
  }
  html body .footer .fileo-footer-legal {
    box-sizing: border-box;
    padding: 16px 20px calc(72px + env(safe-area-inset-bottom, 0px)) !important;
    font-family: Onest, Arial, sans-serif;
  }
  html body .footer .fileo-footer-legal p {
    max-width: 480px;
    margin: 0 auto 8px !important;
    font-family: Onest, Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 17px;
    overflow-wrap: anywhere;
  }
  html body .footer .fileo-footer-legal .fileo-cookie-settings-link {
    max-width: 100%;
    min-height: 32px;
    white-space: normal;
    font-family: Onest, Arial, sans-serif;
    font-size: 11px;
    line-height: 17px;
  }
}

/* Mobile visitors can sign in from the header and product; keep chat unobstructed. */
@media (max-width: 1024px) {
  html body #reminder { display: none !important; }
}

/* Mobile catalogue notices must not cover products. */
@media (max-width: 1024px) {
 html body .bottom-info.auth_pls { display:none !important; }
 .fileo-chat-open { font: 13px/1.5 Montserrat,sans-serif; background:transparent; color:inherit; border:1px solid #777; padding:8px 14px; margin:16px auto; display:block; cursor:pointer; }
}

/* 2026-09-23: stable complete desktop header and native catalog sticky layout. */
@media (min-width: 1025px) {
  html body.katalog .content-wrap { overflow: clip; }
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
    position: sticky !important;
    top: var(--fileo-header-bottom, 95px) !important;
    left: auto !important;
    background: #fff;
    z-index: 20;
  }
  html body .catalog__content aside > .nav {
    position: sticky !important;
    top: calc(var(--fileo-header-bottom, 95px) + 12px) !important;
    width: auto !important;
    max-height: calc(100vh - var(--fileo-header-bottom, 95px) - 24px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
  html body .partners_link_wrap.minified { top: var(--fileo-header-bottom, 95px) !important; }
}

/* Keep the modal filter actions clear; restore Jivo automatically on close. */
html body.active-filter jdiv,
html body.active-filter #jivo-iframe-container {
  display: none !important;
}

/* Paired sizes are one SKU: keep the complete label above its quantity. */
html body .product__size-item:has(.fileo-paired-size) {
  width: 64px !important; max-width: none !important;
}
html body .cart-mob-popup__quantity:has(> .cart-mob-popup__quantity-header.fileo-paired-size),
html body .cart-mob-popup__quantity:has(> .cart-mob-popup__quantity-header.fileo-paired-size) > .cart-mob-popup__quantity-btns,
html body .cart-mob-popup__quantity:has(> .cart-mob-popup__quantity-header.fileo-paired-size) .cart-mob-popup__quantity-text,
html body .cart-mob-popup__quantity:has(> .cart-mob-popup__quantity-header.fileo-paired-size) button,
html body .cart-mob-popup__quantity:has(> .fileo-paired-size) > .cart-mob-popup__quantity-header.fileo-paired-size {
  width: 56px !important; max-width: none !important; box-sizing: border-box;
}
html body .cart-mob-popup__quantity:has(> .fileo-paired-size) > .cart-mob-popup__quantity-header.fileo-paired-size {
  --fileo-font-current: Montserrat, sans-serif; white-space: nowrap; font-family: Montserrat, sans-serif !important; font-size: 12px !important;
}
html body .fileo-paired-size-note {
  display: block; clear: both; width: 100%; margin: 0 0 10px;
  font: 13px/1.5 Onest, sans-serif; color: #595959;
}

/* Mobile controls share one full-height row; keep the desktop back-to-top button. */
@media (max-width: 767px) {
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
    min-height: 40px;
  }
  html body .content-catalog .fileo-catalog-controls > .top-catalog-part__sort {
    height: 40px;
    align-items: center;
  }
  html body .content-catalog .fileo-catalog-controls #catalog-sort-select-1 {
    max-width: none;
    flex: 0 0 40px;
  }
}
@media (max-width: 1024px) {
  html body .top-wrap { display: none !important; }
}

/* One mobile footer rhythm; leave the desktop footer unchanged. */
.fileo-footer-mobile-mark, .fileo-footer-heading { display: none; }
.fileo-footer-actions { display: contents; }
@media (max-width: 767px) {
 html body .footer { background: #f4f4f4; }
 html body .footer .footer-desktop { padding: 0; }
 html body .footer .footer-top { padding: 32px 20px 0; background: transparent; }
 html body .footer .footer-center-block,
 html body .footer .footer-center-block__item,
 html body .footer .footer-flex-wrap { display: block; width: 100%; margin: 0; padding: 0; }
 html body .footer .footer-info { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; margin: 0 0 24px; padding: 0; width: 100%; }
 html body .footer .footer-info .footer__logo { display: block; flex: none; width: 116px; margin: 0; }
 html body .footer .footer-info .footer__logo > svg:not(.fileo-footer-mobile-mark) { display: none; }
 html body .footer .footer-info .footer__logo > .fileo-footer-mobile-mark { display: block; width: 116px; max-width: 116px !important; height: auto !important; }
 html body .footer .footer-info .footer-social { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; width: 100%; min-width: 0; padding: 0; margin: 0; }
 html body .footer .social-label, html body .footer .social-label span { --fileo-font-current: Onest, sans-serif; font-family: Onest, sans-serif !important; font-size: 12px !important; line-height: 18px; font-weight: 400; text-transform: none; margin: 0; color: #595959; }
 html body .footer .social-label { width: auto; max-width: none; }
 html body .footer .social-label br { display: none; }
 html body .footer .social-wrap { display: flex; gap: 10px; margin: 0; padding: 0; }
 html body .footer .social-item { margin: 0 !important; padding: 0 !important; }
 html body .footer .social-item a { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
 html body .footer .social-item img { display: block; width: 32px; height: 32px; object-fit: contain; }
 html body .footer .footer-nav--mob { padding: 20px 0; border-top: 1px solid #dedede; border-bottom: 1px solid #dedede; margin: 0; }
 html body .footer .footer-nav--mob .footer-center-block__item-ul { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 4px 16px; margin: 0; }
 html body .footer .footer-nav--mob .footer-center-block__item-ul li a { --fileo-font-current: Montserrat, sans-serif; font-family: Montserrat, sans-serif !important; font-size: 13px !important; line-height: 20px; min-height: 40px; padding: 10px 0; overflow-wrap: normal; }
 html body .footer .footer__contact__info { display: block; width: 100%; max-width: none; margin: 0; padding: 24px 0; text-align: left; }
 html body .footer .fileo-footer-heading { display: block; --fileo-font-current: Montserrat, sans-serif; font-family: Montserrat, sans-serif !important; font-size: 13px; line-height: 20px; font-weight: 500; margin: 0 0 12px; }
 html body .footer .footer__contact__info .header-grey-line__phone { display: block; width: auto; margin: 0 0 12px; padding: 0; text-align: left; }
 html body .footer .footer__contact__info .footer_phone { --fileo-font-current: Montserrat, sans-serif; font-family: Montserrat, sans-serif !important; font-size: 17px !important; line-height: 24px; font-weight: 500; text-align: left; margin: 0; }
 html body .footer .fileo-footer-actions { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; width: 100%; margin: 0 0 24px; }
 html body .footer .fileo-footer-actions > button { --fileo-font-current: Montserrat, sans-serif; box-sizing: border-box; display: flex; justify-content: center; align-items: center; width: 100%; max-width: none !important; min-width: 0; min-height: 44px; height: auto; margin: 0; padding: 10px 8px; border: 1px solid #777; background: transparent; color: #202020; font-family: Montserrat, sans-serif !important; font-size: 12px !important; line-height: 18px; font-weight: 400; text-transform: none; white-space: normal; }
 html body .footer .footer__contact__info > div[itemtype="http://schema.org/Organization"],
 html body .footer .footer__contact__info > .fileo-footer-cheboksary { max-width: none; margin: 0 0 16px !important; text-align: left; }
 html body .footer .footer__contact__info > .fileo-footer-cheboksary { margin-bottom: 0 !important; }
 html body .footer .footer__contact__info [itemprop="address"],
 html body .footer .footer__contact__info [itemprop="address"] span,
 html body .footer .footer__contact__info .fileo-footer-cheboksary,
 html body .footer .footer__contact__info .fileo-footer-cheboksary span,
 html body .footer .footer__contact__info .fileo-footer-cheboksary a { --fileo-font-current: Onest, sans-serif; font-family: Onest, sans-serif !important; font-size: 13px !important; line-height: 20px !important; }
 html body .footer .fileo-footer-legal { border-top: 1px solid #dedede; margin: 0 20px; padding: 20px 0 calc(24px + env(safe-area-inset-bottom, 0px)) !important; background: transparent; color: #595959; }
 html body .footer .fileo-footer-legal p { --fileo-font-current: Onest, sans-serif; max-width: none; font-family: Onest, sans-serif !important; font-size: 11px !important; line-height: 17px; text-align: left !important; margin: 0 0 10px !important; }
 html body .footer .fileo-footer-legal p:last-child { margin-bottom: 0 !important; }
 html body .footer .fileo-footer-legal .fileo-cookie-settings-link { --fileo-font-current: Onest, sans-serif; font-family: Onest, sans-serif !important; font-size: 12px !important; line-height: 18px; text-align: left; padding: 6px 0; min-height: 32px; }
}

/* Catalog controls stay below the fixed header and all of its dropdowns. */
@media (min-width: 1025px) {
  html body .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls {
    z-index: 10;
  }
  html body .header-desktop.fileo-menu-managed .nav__li.picture > .nav-popup {
    min-height: 0 !important;
    max-height: calc(100vh - var(--fileo-header-bottom, 95px) - 12px);
    max-height: calc(100dvh - var(--fileo-header-bottom, 95px) - 12px);
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
  }
}

/* Let the desktop sidebar use its existing column instead of shrink-to-fit width. */
@media (min-width: 1025px) {
  html body .content-catalog .catalog__content .aside > .nav {
    display: block;
    width: 100%;
    box-sizing: border-box;
  }
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul {
    padding-right: 0;
  }
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li:not(.fileo-sidebar-parent) > a.nav-popup__category {
    max-width: 100% !important;
  }
}

/* Reserve room for desktop category names and a separate disclosure target. */
@media (min-width: 1025px) {
  html body .content-catalog .catalog__content .aside {
    min-width: 180px;
  }
  html body .content-catalog .aside > .nav > .nav__ul > .nav-popup__ul > li.fileo-sidebar-parent > a.nav-popup__category {
    padding-right: 12px !important;
  }
}

/* 2026-09-24: align desktop search with the sales-office text above it. */
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line-left.fileo-search-aligned { position: relative; }
  html body .header-desktop .header__nav__line-left.fileo-search-aligned > .fileo-header-search--desktop {
    position: absolute;
    grid-area: auto;
    left: var(--fileo-search-left);
    bottom: 0;
    width: var(--fileo-search-width);
    max-width: none;
    margin: 0;
  }
}

/* Compact mobile search: the existing Bitrix form opens only on demand. */
html body .fileo-mobile-search-toggle { display:none; }
@media (max-width:1024px) {
  html:not(.fileo-mobile-search-open) body .title-search-result { display:none !important; }
  html.fileo-mobile-search-open body .title-search-result { z-index:1101 !important; }
  html body .header-mobile .fileo-mobile-search-toggle {
    display:flex; align-items:center; justify-content:center; flex:0 0 36px;
    width:36px; height:44px; margin:0; padding:0; border:0; background:none;
    color:#333; cursor:pointer;
  }
  html body .fileo-mobile-search-toggle:focus-visible,
  html body .fileo-mobile-search-close:focus-visible { outline:2px solid #8C2227; outline-offset:-2px; }
  html body .content-wrap > .fileo-header-search--mobile { display:none; }
  html body .content-wrap > .fileo-header-search--mobile.is-open {
    display:grid; grid-template-columns:minmax(0,1fr) 44px; gap:4px;
    position:fixed; z-index:1100; top:0; left:0; right:0;
    width:100%; max-width:none; margin:0; padding:12px;
    background:#fff; border-bottom:1px solid #e5e5e5;
    box-shadow:0 3px 12px rgb(0 0 0 / 8%);
  }
  html body .fileo-mobile-search-close {
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; padding:0; margin:0; border:0;
    color:#333; background:none; cursor:pointer;
  }
}

/* Desktop header: common lower line for logo, navigation and search. */
@media (min-width: 1025px) {
  html body .header-desktop .header__nav__line-left { align-items: end; }
  html body .header-desktop .header__nav__line-left > .logo-wrap { align-items: flex-end; }
  html body .header-desktop .nav-block .nav { display: block; }
  html body .header-desktop .nav-block .nav > .nav__ul > .nav__li > a[href] {
    display: flex;
    align-items: flex-end;
    box-sizing: border-box;
    height: 30px !important;
    min-height: 30px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    line-height: 14px !important;
  }
  html body .header-desktop .header__nav__line-left > .fileo-header-search--desktop { align-items: flex-end; }
}



/* Compact mobile footer spacing; preserve type, links and desktop layout. */
@media (max-width: 767px) {
  html body .footer .footer-top { padding-top: 24px; }
  html body .footer .footer-info { gap: 12px; margin-bottom: 16px; }
  html body .footer .footer-nav--mob { padding-block: 12px; }
  html body .footer .footer-nav--mob .footer-center-block__item-ul {
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 2px 12px;
  }
  html body .footer .footer-nav--mob .footer-center-block__item-ul li a {
    min-height: 32px;
    padding-block: 6px;
  }
  html body .footer .footer__contact__info { padding-block: 16px; }
  html body .footer .fileo-footer-heading { margin-bottom: 8px; }
  html body .footer .fileo-footer-actions { margin-bottom: 16px; }
}

/* Favorites have no mobile sorting/filter controls; do not reserve an empty toolbar. */
@media (max-width: 767px) {
  html body .content-catalog--is-favorite > .catalog__title-wrap:not(:has(.manage-bar__pagination-wrap a)) {
    display: none !important;
  }
  html body .content-catalog--is-favorite > h1.catalog__title {
    margin-bottom: 16px;
  }
}


/* Keep the filter in the last mobile column when page-size controls are present. */
@media(max-width:767px){
 html body.katalog .content-catalog .catalog__title-wrap.top-catalog.fileo-catalog-controls:has(.fileo-count-menu){grid-template-columns:40px minmax(0,1fr) 96px!important;column-gap:6px!important}
 html body .content-catalog .fileo-catalog-controls.top-catalog:has(.fileo-count-menu)>.top-catalog-part__view{width:96px!important;min-width:96px!important;max-width:96px!important;justify-self:end;height:44px}
 html body .content-catalog .fileo-catalog-controls.top-catalog:has(.fileo-count-menu)>.top-catalog-part__view>.manage-bar{display:grid!important;grid-template-columns:44px 40px;gap:12px!important;width:96px!important;min-width:96px;max-width:96px;height:44px;align-items:center!important;overflow:visible!important}
 html body .content-catalog .fileo-catalog-controls .top-catalog-part__view .fileo-count-menu{grid-column:1;grid-row:1;width:44px;min-width:44px;max-width:44px}
 html body .content-catalog .fileo-catalog-controls .top-catalog-part__view .js-filter-ico{grid-column:2;grid-row:1;display:flex!important;visibility:visible;opacity:1;width:40px!important;min-width:40px!important;max-width:40px;justify-self:end}
}

/* A35: align the desktop bottom pager with the product grid. */
@media(min-width:1025px){
 html body .content-catalog:has(.fileo-catalog-controls)>.paginataion-wrap--bottom{box-sizing:border-box;width:var(--fileo-controls-width,85%);margin-left:var(--fileo-controls-offset,15%);margin-right:0;padding-inline:0}
 html body .content-catalog:has(.fileo-catalog-controls)>.paginataion-wrap--bottom .manage-bar__pagination{margin:0}
}

/* A38, 2026-10-23: the sidebar is separate from the header menu. */
html body :is(.aside .nav, .header-desktop .nav, #menu-mob) a.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"] {
  color: #8C2227 !important;
}
html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern.fileo-menu-reference a.menu-mob__category-main.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"] {
  color: #8C2227 !important;
}
/* Business-style burgundy applies to desktop per FILEO_COLOR_RULES.
   Preserve the explicitly graphite compact-menu item. */
@media (min-width:1025px) {
  html body :is(.aside .nav, .header-desktop .nav) a.nav-popup__category[href="/katalog/delovoy_stil/"] { color: #8C2227 !important; }
}

/* A38: full-width desktop menu and backdrop; keep header/content gutters intact. */
@media (min-width:1025px) {
 html body .header-desktop.fileo-menu-managed .nav__li.picture > .nav-popup,
 html body .header-desktop.fileo-menu-managed .nav-block > .overside {
  left:var(--fileo-panel-left,0px)!important;
  right:var(--fileo-panel-right,0px)!important;
  width:auto!important;
  max-width:none!important;
 }
}

/* A38, 2026-10-25: Evening Collection outline sparkle, mobile menu only (owner decision).
   Decorative CSS only: accessible label, target URL and menu hierarchy unchanged. */
html body :is(.aside .nav, #menu-mob) a.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"],
html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern.fileo-menu-reference li > a.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"] {
  color: #8C2227 !important;
  text-decoration: none !important;
}
html body #menu-mob a.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"]::before,
html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern.fileo-menu-reference li > a.nav-popup__category[href="/katalog/vechernyaya_kollektsiya/"]::before {
  content: "" !important;
  display: inline-block !important;
  opacity: 1 !important;
  position: static;
  transform: none !important;
  inset: auto;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  margin: 0 .5em 0 0;
  vertical-align: -.1em;
  background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2024%2024%22%3E%3Cpath%20d%3D%22M12%202C10.6%208.4%208.4%2010.6%202%2012c6.4%201.4%208.6%203.6%2010%2010%201.4-6.4%203.6-8.6%2010-10-6.4-1.4-8.6-3.6-10-10Z%22%20fill%3D%22none%22%20stroke%3D%22%238C2227%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  border: 0;
  pointer-events: none;
}

/* A38: one interaction style for desktop catalog, new and sale menus.
   Keep layout and weight stable; keyboard focus remains visible. */
@media (min-width: 1025px) {
 html body .header-desktop .nav > .nav__ul > .nav__li > .nav-popup .wrap-menu a[class][href],
 html body .content-catalog .aside .nav .nav-popup__ul a[class][href] {
  text-decoration: none !important;
  border-bottom-color: transparent !important;
 }
 html body .header-desktop .nav > .nav__ul > .nav__li > .nav-popup .wrap-menu a[class][href]:is(:hover, :focus, :focus-visible),
 html body .content-catalog .aside .nav .nav-popup__ul a[class][href]:is(:hover, :focus, :focus-visible) {
  color: #8C2227 !important;
  text-decoration: none !important;
  border-bottom-color: transparent !important;
 }
 html body .header-desktop .nav > .nav__ul > .nav__li > .nav-popup .wrap-menu a[class][href]:focus-visible,
 html body .content-catalog .aside .nav .nav-popup__ul a[class][href]:focus-visible {
  outline: 1px solid #8C2227 !important;
  outline-offset: 3px;
 }
}

/* A38: Big sizes is a direct desktop mega-menu destination.
   Preserve the catalog taxonomy, mobile menu and sidebar subcategories. */
@media (min-width: 1025px) {
 html body .header-desktop .nav .nav-popup .wrap-menu li:has(> a[href="/katalog/bolshie-razmery/"]) > .children {
  display: none !important;
 }
}

/* A38: visible indicators only for expandable desktop menu categories. */
@media (min-width: 1025px) {
 html body .header-desktop .nav > .nav__ul > .nav__li > .nav-popup .wrap-menu li.menu_arrow:has(> .children):not(:has(> a[href="/katalog/bolshie-razmery/"])) > a[class][href] {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  padding-right: 24px !important;
 }
 html body .header-desktop .nav > .nav__ul > .nav__li > .nav-popup .wrap-menu li.menu_arrow:has(> .children):not(:has(> a[href="/katalog/bolshie-razmery/"])) > a[class][href]::after {
  content: "" !important;
  display: block !important;
  position: absolute;
  top: 50%;
  right: 10px;
  width: 5px;
  height: 5px;
  margin: 0;
  background: none;
  border: 0;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 1;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
 }
}

/* A38: shared typography and compact dropdown surface for service navigation. */
@media (min-width: 1025px) {
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) {
  padding-bottom: 8px !important;
  margin-bottom: -8px !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) > :is(.nav-popup, .fileo-nav-dealers-dropdown) {
  top: 100% !important;
  left: 0 !important;
  right: auto !important;
  width: 184px !important;
  min-width: 184px !important;
  max-width: calc(100vw - 32px) !important;
  min-height: 0 !important;
  height: auto !important;
  box-sizing: border-box !important;
  padding: 4px !important;
  margin: 0 !important;
  border: 1px solid #dedbd4 !important;
  border-radius: 4px !important;
  background: #fff !important;
  box-shadow: 0 6px 18px rgba(22,22,20,.08) !important;
  transform: none !important;
  transition: none !important;
  animation: none !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .nav-popup a:is(.nav-popup__category, .nav-popup__subcategory)[href],
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .fileo-nav-dealers-link[href] {
  font-family: Montserrat, sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  transition: none !important;
  text-decoration: none !important;
  border-bottom-color: transparent !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) :is(a.nav-popup__category, a.fileo-nav-dealers-link)[href] {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
  min-height: 36px !important;
  padding: 6px 10px !important;
  margin: 0 !important;
  white-space: normal !important;
  color: #202020 !important;
  background: transparent !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .nav-popup a:is(.nav-popup__category, .nav-popup__subcategory)[href]:is(:hover, :focus, :focus-visible),
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .fileo-nav-dealers-link[href]:is(:hover, :focus, :focus-visible),
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) :is(a.nav-popup__category, a.fileo-nav-dealers-link)[href]:is(:hover, :focus, :focus-visible) {
  color: #8C2227 !important;
  text-decoration: none !important;
  border-bottom-color: transparent !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .nav-popup a:is(.nav-popup__category, .nav-popup__subcategory)[href]:focus-visible,
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li .fileo-nav-dealers-link[href]:focus-visible {
  outline: 1px solid #8C2227 !important;
  outline-offset: 2px;
 }
}


@media (min-width: 1025px) {
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li:is(.partnership, .fileo-nav-has-dealers) :is(a.nav-popup__category, a.fileo-nav-dealers-link)[href]:is(:hover, :focus-visible),
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li > .nav-popup .wrap-menu a.nav-popup__category:is([href="/katalog/?filter=new"], [href="/katalog/soon/"], [href="/katalog/vechernyaya_kollektsiya/"], [href="/katalog/delovoy_stil/"]):is(:hover, :focus-visible) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
 }
}
/* A38: equal weight and rhythm for the four sidebar accent destinations. */
@media (min-width: 1025px) {
 html body .content-catalog > .catalog__content > .aside .nav > .nav__ul > .nav-popup__ul > li:has(> a.nav-popup__category:is([href="/katalog/?filter=new"], [href="/katalog/vechernyaya_kollektsiya/"], [href="/katalog/soon/"], [href="/katalog/delovoy_stil/"])) {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
 }
 html body .content-catalog > .catalog__content > .aside .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category:is([href="/katalog/?filter=new"], [href="/katalog/vechernyaya_kollektsiya/"], [href="/katalog/soon/"], [href="/katalog/delovoy_stil/"]),
 html body .content-catalog > .catalog__content > .aside .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category:is([href="/katalog/?filter=new"], [href="/katalog/vechernyaya_kollektsiya/"], [href="/katalog/soon/"], [href="/katalog/delovoy_stil/"]):is(:hover, :focus, :focus-visible) {
  font-weight: 500 !important;
  color: #8C2227 !important;
  text-decoration: none !important;
  border-bottom-color: transparent !important;
 }
}

/* A38: fixed two-column placement and one controlled desktop flyout. */
@media (min-width: 1025px) {
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] .nav__li.catalog-hover.picture > .nav-popup .wrap-menu > .nav-popup__ul {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(var(--fileo-menu-rows, 13), auto) !important;
  grid-auto-flow: column !important;
  align-content: start !important;
  align-items: start !important;
  column-count: auto !important;
  column-gap: 28px !important;
  row-gap: 0 !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] .nav__li.catalog-hover.picture .nav-popup__ul > li > .children {
  display: none !important;
  top: var(--fileo-child-top, 0px) !important;
  max-height: min(50vh, calc(100vh - 160px)) !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] .nav__li.catalog-hover.picture .nav-popup__ul > li.fileo-submenu-open > .children {
  display: block !important;
 }
}

@media(min-width:1025px){html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] .nav__li.catalog-hover.picture > .nav-popup .wrap-menu{column-count:auto!important;column-width:auto!important;}}

/* A38: compact header catalogue; flyouts are outside document layout. */
@media (min-width: 1025px) {
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture > .nav-popup {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
  min-height: 0 !important;
  align-items: start !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .nav-popup__categories {
  align-items: start !important;
 }
 /* Photographs keep the shared LIVE image rules, independent of compact list spacing. */
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .wrap-menu > .nav-popup__ul > li > a.nav-popup__category[href] {
  font-size: 13px !important;
  line-height: 20px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  margin-top: 0 !important;
  margin-bottom: 2px !important;
  min-height: 0 !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .nav-popup__ul > li > .children {
  position: fixed !important;
  left: var(--fileo-child-left, 0px) !important;
  top: var(--fileo-child-top, 0px) !important;
  right: auto !important;
  bottom: auto !important;
  width: 224px !important;
  max-width: calc(100vw - 24px) !important;
  max-height: var(--fileo-child-maxheight, min(360px, calc(100vh - 160px))) !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior: contain;
  background: #fff !important;
  border: 1px solid #e3e0db !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 14px rgba(0,0,0,.08) !important;
  z-index: 100010 !important;
  transform: none !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .children > li > a.nav-popup__subcategory[href] {
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 18px !important;
  padding: 2px 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
 }
}

@media (min-width:1025px) {

html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .wrap-menu > .nav-popup__ul > li > a.nav-popup__category[href] { height:22px !important; box-sizing:border-box !important; }
html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li.catalog-hover.picture .children > li > a.nav-popup__subcategory[href] { line-height:17px !important; }
}

/* A38: Shine campaign uses FILEO typography and accent without layout changes. */
@media (min-width: 1025px) {
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li > .nav-popup .wrap-menu a.nav-popup__category[href="/katalog/vremya_siyat_20/"],
 html body .content-catalog > .catalog__content > .aside .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category[href="/katalog/vremya_siyat_20/"] {
  font-family: Montserrat, Arial, sans-serif !important;
  font-weight: 500 !important;
  color: #8C2227 !important;
 }
 html body header .header-desktop.fileo-menu-managed .nav-block nav.nav[data-fileo-managed] > .nav__ul > .nav__li > .nav-popup .wrap-menu a.nav-popup__category[href="/katalog/vremya_siyat_20/"]:is(:hover, :focus-visible),
 html body .content-catalog > .catalog__content > .aside .nav > .nav__ul > .nav-popup__ul > li > a.nav-popup__category[href="/katalog/vremya_siyat_20/"]:is(:hover, :focus-visible) {
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
 }
}
html body .fileo-mobile-menu-wrap #menu-mob.fileo-menu-modern.fileo-menu-reference > li > a.menu-mob__category-main.nav-popup__category[href="/katalog/vremya_siyat_20/"] {
 color: #8C2227 !important;
}

/* Mobile header: reserve the real logo width and a stable gap before search. */
@media (max-width: 1024px) {
  html body .header-mobile .logo-block-mob-wrap { gap: 12px; }
  html body .header-mobile .header-mob__left { flex: 0 0 auto; min-width: 0; height: auto !important; gap: 12px; }
  html body .header-mobile .header-mob__left > .header-mob__left__el { margin: 0; flex: 0 0 22px; }
  html body .header-mobile .logo-mobile { display: block; flex: none; height: auto !important; line-height: 0; width: clamp(72px, calc(100vw - 250px), 110px) !important; }
  html body .header-mobile .logo-mobile img { display: block; width: 100% !important; max-width: 100% !important; height: auto !important; }
  html body .header-mobile .header-mob__right { flex: 0 0 auto; gap: 4px; margin-left: auto; }
}
