/* 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;
  }
}
