/*
 * HELEOS responsive foundation.
 * Stage 1: global shell, header/navigation, footer and universal mobile guards.
 * Desktop layout above 1055px intentionally keeps the legacy presentation.
 */

.mobile-header-actions {
  display: none;
}

.mobile-menu-toggle,
.mobile-personal-link {
  -webkit-tap-highlight-color: transparent;
}

@media (max-width: 1055px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
  }

  .content-width {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding-left: 16px;
    padding-right: 16px;
    box-sizing: border-box;
  }

  .page-content {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-content img,
  .page-content iframe,
  .page-content video {
    max-width: 100%;
  }

  .header .top-stripe {
    height: auto;
    min-height: 0;
    padding: 0;
  }

  div.content-width-custom {
    display: grid;
    grid-template-columns: minmax(130px, 175px) 1fr auto auto;
    grid-template-areas:
      "logo spacer cart actions"
      "search search search search";
    align-items: center;
    gap: 10px 12px;
    width: 100%;
    margin-top: 0;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .header .top-stripe .item.logo,
  div.content-width-custom div.logo {
    grid-area: logo;
    float: none;
    width: 100%;
    min-width: 0;
    max-width: 175px;
    height: auto;
    min-height: 0;
    max-height: none;
    margin: 0 !important;
    overflow: visible;
    background: transparent;
  }

  .header .top-stripe .item.logo > div {
    height: auto !important;
    min-height: 48px;
    padding-top: 0 !important;
    display: flex;
    align-items: center;
  }

  .header .top-stripe .item.logo a {
    display: block;
    width: 100%;
  }

  .header .top-stripe .item.logo img {
    display: block;
    width: 100% !important;
    max-width: 175px;
    height: auto;
  }

  div.content-width-custom .item.contacts,
  div.content-width-custom .item.contacts-mail {
    display: none;
  }

  .content-width-custom .search-line,
  div.content-width-custom .search-line {
    grid-area: search;
    flex: none;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .search-box-custom {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .search-box-custom input {
    min-width: 0;
    box-sizing: border-box;
    font-size: 16px;
    line-height: 22px;
  }

  .header .top-stripe .item.cart,
  .header .top-stripe .item.cart.cart-custom {
    grid-area: cart;
    float: none;
    width: auto !important;
    min-width: 44px;
    margin: 0;
  }

  div.basket-custom__container a {
    width: 44px;
    height: 44px;
    max-width: 44px;
    max-height: 44px;
  }

  .mobile-header-actions {
    grid-area: actions;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
  }

  .mobile-personal-link,
  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    padding: 0;
    border: 1px solid #d7deeb;
    border-radius: 8px;
    background: #fff;
    box-sizing: border-box;
    cursor: pointer;
  }

  .mobile-personal-link img {
    display: block;
    width: 24px;
    height: 24px;
    object-fit: contain;
  }

  .mobile-menu-toggle {
    flex-direction: column;
    gap: 4px;
    appearance: none;
    white-space: nowrap;
  }

  .mobile-menu-toggle__line {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #2150ba;
    transition: transform .2s ease, opacity .2s ease;
  }

  .header.is-mobile-menu-open .mobile-menu-toggle__line:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .header.is-mobile-menu-open .mobile-menu-toggle__line:nth-child(2) {
    opacity: 0;
  }

  .header.is-mobile-menu-open .mobile-menu-toggle__line:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .header .bottom-stripe {
    display: none;
    margin-bottom: 12px;
    background: #2150ba;
  }

  .header.is-mobile-menu-open .bottom-stripe {
    display: block;
  }

  .header .bottom-stripe .content-width,
  .header .bottom-stripe .content-width-custom2 {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
  }

  .header .bottom-stripe .menu {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: visible;
  }

  .header .bottom-stripe .menu a,
  .header .bottom-stripe .menu a.home {
    float: none;
    display: block;
    width: 100%;
    height: auto;
    min-height: 46px;
    margin: 0;
    padding: 14px 18px;
    border-bottom: 1px solid rgba(255,255,255,.18);
    box-sizing: border-box;
    text-align: left;
    font-size: 15px;
    line-height: 18px;
  }

  .header .bottom-stripe .menu a:hover,
  .header .bottom-stripe .menu a.selected {
    color: #2150ba;
    background: #fff;
  }

  .header .bottom-stripe .personal-link {
    display: none;
  }

  .page-content .slide-to-top {
    right: 16px;
    bottom: 20px;
    margin-left: 0;
  }

  .footer .content-width,
  .footer .content-width--p {
    min-height: 0;
    padding: 24px 16px;
  }

  .footer .border {
    display: none;
  }

  .footer .item.menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 32px;
    width: 100%;
    margin: 0;
  }

  .footer .item.menu .column {
    display: block;
    min-width: 0;
    margin: 0;
  }

  .footer .item.menu .column a {
    line-height: 1.4;
  }

  .footer .item.menu .column a.title {
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
  }

  .footer .item.menu .column.counters {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .content-width {
    padding-left: 12px;
    padding-right: 12px;
  }

  div.content-width-custom {
    grid-template-columns: minmax(118px, 150px) 1fr auto auto;
    gap: 8px;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .header .top-stripe .item.logo,
  div.content-width-custom div.logo,
  .header .top-stripe .item.logo img {
    max-width: 150px;
  }

  .footer .item.menu {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .footer .item.menu .column.counters {
    grid-column: auto;
  }

  .footer .content-width,
  .footer .content-width--p {
    padding: 22px 14px;
  }
}

@media (max-width: 390px) {
  div.content-width-custom {
    grid-template-columns: minmax(112px, 132px) 1fr auto auto;
    column-gap: 6px;
  }

  .header .top-stripe .item.logo,
  div.content-width-custom div.logo,
  .header .top-stripe .item.logo img {
    max-width: 132px;
  }

  .mobile-personal-link,
  .mobile-menu-toggle,
  div.basket-custom__container a {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    max-height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mobile-menu-toggle__line {
    transition: none;
  }
}


/* HELEOS mobile stage 2: catalog, product grid and mobile smart filter. */
.catalog-filter__open-mobile,
.catalog-filter__mobile-header,
.catalog-filter__mobile-actions {
  display: none;
}

.catalog-filter__mobile-panel {
  width: 100%;
  min-width: 0;
}

@media (max-width: 1055px) {
  body.is-catalog-filter-open {
    overflow: hidden;
    touch-action: none;
  }

  .new-design {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .new-design .catalog-list-main,
  .new-design .catalog-list-main > div,
  .new-design .catalog-list-main__right,
  .new-design .catalog-list-main__right-body,
  .new-design .catalog-list-main__items,
  .new-design .catalog-list-items__body {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .new-design .catalog-list-main__body {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .new-design .catalog-list-main__filter {
    width: 100%;
    min-width: 0;
    margin: 0 0 18px;
  }

  .new-design .catalog-filter__open-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    gap: 9px;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid #d9dfeb;
    border-radius: 8px;
    background: #fff;
    color: #303778;
    font: 600 16px/1.2 "Onest", Arial, sans-serif;
    box-shadow: 0 5px 18px rgba(31, 48, 84, .07);
    cursor: pointer;
    white-space: nowrap;
  }

  .new-design .catalog-filter__open-mobile::before {
    font-size: 18px;
  }

  .new-design .catalog-filter__body,
  .new-design .catalog-filter__body.active {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: stretch;
    justify-content: flex-end;
    width: 100%;
    height: 100%;
    min-height: 100dvh;
    padding: 0;
    background: rgba(22, 31, 49, .48);
    overscroll-behavior: contain;
  }

  .new-design .catalog-filter__body.active {
    display: flex;
  }

  .new-design .catalog-filter__mobile-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    width: min(430px, 92vw);
    max-width: 100%;
    height: 100%;
    min-height: 0;
    margin: 0 0 0 auto;
    padding: 0;
    background: #fff;
    box-shadow: -18px 0 46px rgba(18, 34, 62, .22);
    overflow: hidden;
  }

  .new-design .catalog-filter__mobile-header {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 62px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e9f0;
    background: #fff;
    color: #20293d;
  }

  .new-design .catalog-filter__mobile-header strong {
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
  }

  .new-design .catalog-filter__close-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    min-width: 42px;
    padding: 0;
    border: 1px solid #dde3ec;
    border-radius: 8px;
    background: #f7f8fa;
    color: #2d3650;
    font: 400 30px/1 Arial, sans-serif;
    cursor: pointer;
  }

  .new-design .catalog-filter__properteis {
    display: block;
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 4px 16px 96px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .new-design .catalog-filter__property {
    width: 100%;
    max-width: 100%;
  }

  .new-design .catalog-filter__property-name {
    line-height: 1.3;
  }

  .new-design .catalog-filter__property-body label,
  .new-design .catalog-filter__property--checkbox label {
    min-height: 42px;
  }

  .new-design .catalog-filter__mobile-actions {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 4;
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.35fr);
    gap: 10px;
    width: 100%;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    border-top: 1px solid #e3e8ef;
    background: rgba(255, 255, 255, .98);
  }

  .new-design .catalog-filter__mobile-reset,
  .new-design .catalog-filter__mobile-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 15px;
    line-height: 1.15;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
  }

  .new-design .catalog-filter__mobile-reset {
    border: 1px solid #d8dee8;
    background: #fff;
    color: #343d50;
  }

  .new-design .catalog-filter__mobile-apply {
    border: 1px solid #353678;
    background: #353678;
    color: #fff;
  }

  .new-design .catalog-filter__mobile-apply .js-catalog-filter-count:not(:empty)::before {
    content: "(";
    margin-left: 5px;
  }

  .new-design .catalog-filter__mobile-apply .js-catalog-filter-count:not(:empty)::after {
    content: ")";
  }

  .new-design .catalog-filter__buttons,
  .new-design .bx_filter_container_modef {
    display: none !important;
  }

  .new-design .catalog-list-items__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
  }

  .new-design .catalog-list-items__item {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: none;
  }

  .new-design .item__body {
    min-width: 0;
    padding: 16px;
  }

  .new-design .item__top {
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 230px;
    flex-basis: 230px;
    background-size: contain;
    background-color: #fff;
  }

  .new-design .item__title,
  .new-design .item_desc {
    overflow-wrap: anywhere;
  }

  .new-design .item__buy-button {
    min-height: 44px;
    white-space: nowrap;
  }

  .npd-product-detail {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }
}

@media (max-width: 620px) {
  .new-design .catalog-list-items__items {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .new-design .item__body {
    padding: 14px;
  }

  .new-design .item__top {
    min-height: clamp(230px, 72vw, 320px);
    flex-basis: clamp(230px, 72vw, 320px);
  }

  .new-design .item__buy-button {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .new-design .catalog-filter__mobile-panel {
    width: 100vw;
  }

  .new-design .catalog-filter__mobile-actions {
    grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .new-design .catalog-filter__mobile-reset,
  .new-design .catalog-filter__mobile-apply {
    min-height: 44px;
    padding-left: 9px;
    padding-right: 9px;
    font-size: 14px;
  }

  .new-design .catalog-filter__properteis {
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .new-design .catalog-filter__mobile-panel {
    scroll-behavior: auto;
  }
}

/* HELEOS mobile stage 3: home page and legacy content pages. */
@media (max-width: 1055px) {
  .page-content > .h1 {
    padding-left: 0;
  }

  .page-content > .h1 h1,
  .catalog_header_line h1 {
    max-width: 100%;
    margin-top: 18px;
    margin-bottom: 18px;
    overflow-wrap: anywhere;
    font-size: clamp(24px, 4vw, 32px);
    line-height: 1.18;
  }

  .crumbs {
    margin-top: 24px;
    padding-left: 0;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .crumbs a,
  .crumbs span {
    display: inline;
    margin-left: 4px;
    margin-right: 4px;
  }

  /* Home banner: keep the artwork useful without consuming most of a mobile screen. */
  .main_banners_slider,
  .main_banners_slider .bx-wrapper,
  .main_banners_slider .bx-viewport,
  .main_banners_slider ul {
    width: 100%;
    max-width: 100%;
  }

  .main_banners_slider li {
    height: clamp(190px, 29vw, 270px);
    background-position: center center;
  }

  /* Main catalog tiles: replace the legacy five-float row with a responsive grid. */
  .catalogs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    max-width: 100%;
    margin: 24px 0 34px;
    padding-left: 0;
    overflow: visible;
    text-align: left;
  }

  .catalogs .catalogs-item,
  .min-height-hack .catalogs .catalogs-item {
    float: none;
    width: auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    text-align: center;
  }

  .catalogs .catalogs-item .tile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 100%;
    min-height: 178px;
    padding: 16px 10px;
    box-sizing: border-box;
  }

  .catalogs .catalogs-item .tile .img {
    height: 112px;
    background-position: center center;
    background-size: contain;
  }

  .catalogs .catalogs-item .tile .title {
    min-height: 0;
    margin-top: 12px;
    overflow-wrap: anywhere;
    font-size: 13px;
    line-height: 1.28;
  }

  .catalogs .catalogs-item .subitems {
    width: 100%;
    margin-top: 14px;
    box-sizing: border-box;
  }

  /* Home information block. */
  .main-info-block .colored {
    padding: 32px;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .main-info-block .colored h3 {
    margin-bottom: 10px;
    font-size: 18px !important;
    line-height: 1.3;
  }

  .main-info-block .colored table,
  .main-info-block .colored tbody,
  .main-info-block .colored tr {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .main-info-block .colored tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  .main-info-block .colored td {
    display: block;
    width: auto !important;
    min-width: 0;
    padding: 0 !important;
  }

  .main-info-block .colored p,
  .main-info-block .colored li,
  .main-info-block .why-us .items .why-us-item .title,
  .main-info-block .why-us .items .why-us-item .title * {
    font-size: 15px;
    line-height: 1.5;
  }

  .main-info-block .why-us {
    margin: 34px 0;
    padding-bottom: 28px;
  }

  .main-info-block .why-us .head-title {
    padding: 0;
    font-size: 18px;
    line-height: 1.4;
  }

  .main-info-block .why-us .items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 18px;
    width: 100%;
    margin-top: 24px;
    overflow: visible;
  }

  .main-info-block .why-us .items .why-us-item {
    float: none;
    width: auto;
    min-width: 0;
  }

  /* Home / contacts map. */
  .main-page-map {
    width: 100%;
    max-width: 100%;
    margin-top: 28px;
  }

  .main-page-map .title {
    padding: 0 0 16px;
    font-size: 16px;
    line-height: 1.4;
  }

  .main-page-map .big_ymap,
  .main-page-map .bx-yandex-view-layout,
  .main-page-map .bx-yandex-view-map {
    width: 100% !important;
    max-width: 100%;
  }

  .main-page-map .text_block {
    top: 70px;
    left: 20px;
    width: min(260px, calc(100% - 40px));
    box-sizing: border-box;
  }

  .contacts-list .block-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 22px;
    margin: 24px 0 34px;
    padding: 0;
  }

  .contacts-list .block-items .item {
    min-width: 0;
    margin: 0;
    padding: 10px 10px 10px 38px;
    overflow-wrap: anywhere;
  }

  .contacts-list .block-items .item *,
  .contacts-list .block-items .item {
    font-size: 15px;
    line-height: 1.45;
  }

  .contacts-list .block-items .item img {
    left: 4px;
    bottom: auto;
    top: 10px;
    width: 24px;
    height: auto;
  }

  /* Legacy content wrappers. */
  .about-project,
  .for-customer,
  .delivery-page,
  .article_detail,
  .articles_big_list,
  .seo-stage3-page {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .about-project,
  .for-customer,
  .article_detail .descr,
  .articles_big_list .item .descr {
    font-size: 16px;
    line-height: 1.55;
  }

  .about-project p,
  .for-customer p {
    line-height: 1.55;
  }

  .about-project img,
  .for-customer img,
  .delivery-page img,
  .article_detail img,
  .articles_big_list img,
  .main-info-block img {
    max-width: 100%;
    height: auto;
  }

  .about-project table,
  .for-customer table,
  .article_detail table,
  .articles_big_list table,
  .delivery-page .cost table {
    width: 100% !important;
    max-width: 100%;
    box-sizing: border-box;
  }

  .article_detail .image {
    display: block;
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 20px;
  }

  .articles_big_list {
    margin-top: 26px;
  }

  .articles_big_list .item {
    margin-bottom: 30px;
  }

  .articles_big_list .item .title {
    overflow-wrap: anywhere;
    font-size: 17px;
    line-height: 1.35;
  }

  .for-customer blockquote,
  .about-project blockquote,
  .article_detail blockquote {
    max-width: 100%;
    margin-left: 18px;
    margin-right: 0;
  }

  .for-customer .btn,
  .page-content > div > .btn {
    max-width: 100%;
    box-sizing: border-box;
    overflow-wrap: anywhere;
  }

  .for-customer .btn img,
  .page-content > div > .btn img {
    max-width: 32px;
    height: auto;
  }

  /* Requisites: retain the semantic table on tablet, stack each row on phones below. */
  .requisites {
    table-layout: fixed;
    max-width: 100%;
  }

  .requisites tr td,
  .requisites tr td:nth-child(even) {
    padding: 12px 16px;
    overflow-wrap: anywhere;
  }

  /* Delivery page: remove desktop-only assumptions while retaining data readability. */
  .delivery-anchor-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 8px 0 18px;
  }

  .delivery-anchor-menu * {
    margin: 0;
  }

  .delivery-page h3 {
    margin: 26px 0 18px;
    font-size: 19px;
    line-height: 1.35;
  }

  .delivery-page .delivery-terms,
  .delivery-page .routes {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  .delivery-page .delivery-terms td,
  .delivery-page .routes td {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .delivery-page .services,
  .delivery-page .cost {
    margin-bottom: 34px;
  }

  .delivery-page .services img {
    max-width: 100%;
  }

  .delivery-page .cost {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .delivery-page .cost table {
    min-width: 560px;
  }

  .delivery-page .hall {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 100%;
  }

  .delivery-page .hall img {
    float: none !important;
    width: min(40%, 320px) !important;
    margin: 0 !important;
  }

  /* SEO/content hubs were already partially responsive; normalize their outer spacing. */
  .seo-stage3-page {
    margin-bottom: 34px;
    font-size: 16px;
  }

  .seo-stage3-related,
  .seo-stage3-product-links {
    max-width: 100%;
    padding: 20px;
    box-sizing: border-box;
  }
}

@media (max-width: 760px) {
  .main_banners_slider li {
    height: clamp(150px, 43vw, 210px);
  }

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

  .catalogs .catalogs-item .tile {
    min-height: 156px;
    padding: 13px 8px;
  }

  .catalogs .catalogs-item .tile .img {
    height: 92px;
  }

  .main-info-block .colored {
    padding: 22px 18px;
  }

  .main-info-block .colored tr {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .main-info-block .why-us .items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 14px;
  }

  .main-page-map .text_block {
    position: static;
    width: 100%;
    margin: 0 0 12px;
    padding: 14px;
    box-shadow: none;
    border: 1px solid #dfe3ea;
    line-height: 1.5;
  }

  .contacts-list .block-items {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .requisites,
  .requisites tbody {
    display: block;
    width: 100%;
  }

  .requisites tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
    border-bottom: 1px solid #d7d7d7;
    background: #fff !important;
  }

  .requisites tr td,
  .requisites tr td:nth-child(even) {
    display: block;
    width: auto;
    padding: 10px 12px;
    border: 0;
    box-sizing: border-box;
  }

  .requisites tr td:first-child:not(:only-child) {
    padding-bottom: 4px;
    font-weight: 600;
  }

  .requisites tr td:nth-child(2) {
    padding-top: 4px;
  }

  .delivery-page .delivery-terms,
  .delivery-page .delivery-terms tbody,
  .delivery-page .delivery-terms tr,
  .delivery-page .routes,
  .delivery-page .routes tbody,
  .delivery-page .routes tr {
    display: block;
    width: 100%;
  }

  .delivery-page .delivery-terms tr,
  .delivery-page .routes tr {
    margin-bottom: 0;
  }

  .delivery-page .delivery-terms td,
  .delivery-page .routes td {
    display: block;
    width: 100% !important;
    padding: 14px 0 !important;
    box-sizing: border-box;
  }

  .delivery-page .delivery-terms td + td,
  .delivery-page .routes td + td {
    border-top: 1px solid #e4e4e4;
  }

  .delivery-page .delivery-terms td > img {
    width: 46px;
    margin: 0 16px 14px 0;
  }

  .delivery-page .hall {
    display: block;
  }

  .delivery-page .hall img {
    display: block;
    width: 100% !important;
    max-width: 520px;
    margin: 0 0 12px !important;
  }

  .seo-stage3-lead,
  .seo-stage3-related,
  .seo-stage3-product-links {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .page-content > .h1 h1,
  .catalog_header_line h1 {
    font-size: 23px;
  }

  .main_banners_slider li {
    height: clamp(135px, 45vw, 178px);
  }

  .catalogs {
    margin-top: 18px;
  }

  .catalogs .catalogs-item .tile {
    min-height: 146px;
  }

  .catalogs .catalogs-item .tile .img {
    height: 82px;
  }

  .catalogs .catalogs-item .tile .title {
    font-size: 12px;
  }

  .main-info-block .why-us .items {
    grid-template-columns: 1fr;
  }

  .main-info-block .why-us .items .why-us-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    text-align: left;
  }

  .main-info-block .why-us .items .why-us-item .img {
    width: 58px;
    height: 52px;
    margin: 0;
    background-size: contain;
  }

  .for-customer blockquote,
  .about-project blockquote,
  .article_detail blockquote {
    margin-left: 10px;
  }

  .delivery-page .cost table {
    min-width: 520px;
  }
}

/*
 * Stage 4: cart, checkout, account/forms and final legacy responsive guards.
 * Keep desktop presentation intact; normalize transaction flows only below 1055px.
 */
@media (max-width: 1055px) {
  /* Prevent old form/table widgets from forcing the document wider than the viewport. */
  .cart_page,
  .order-checkout,
  .bx_order_make,
  .bx-auth,
  .bx-auth-reg,
  .bx-auth-profile,
  .client_orders_list,
  .public-request-form,
  .msg_to_mngr_form,
  .fancybox-overlay .one_click_popup {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .cart_page *,
  .order-checkout *,
  .bx-auth *,
  .bx-auth-reg *,
  .bx-auth-profile *,
  .public-request-form *,
  .msg_to_mngr_form * {
    box-sizing: border-box;
  }

  /* Basket remains a real table, but scrolling is contained inside the basket block. */
  .cart_page .bx_ordercart .bx_ordercart_order_table_container,
  .bx_order_make .bx_ordercart .bx_ordercart_order_table_container {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_table_container > table,
  .bx_order_make .bx_ordercart .bx_ordercart_order_table_container > table {
    min-width: 760px;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay {
    width: 100%;
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_left,
  .cart_page .bx_ordercart .bx_ordercart_order_pay_right,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_left,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_right {
    float: none;
    width: 100%;
    max-width: 100%;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_right,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_right {
    margin-top: 12px;
    text-align: right;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_sum,
  .bx_order_make .bx_ordercart .bx_ordercart_order_sum {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_sum td,
  .bx_order_make .bx_ordercart .bx_ordercart_order_sum td {
    white-space: normal;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 10px 14px;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center span,
  .cart_page .bx_ordercart .bx_ordercart_order_pay_center a,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center span,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center a {
    line-height: 1.35;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center span,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center span {
    margin: 0;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center .checkout,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center .checkout,
  .bx_order_make #ORDER_CONFIRM_BUTTON {
    position: static;
    top: auto;
    margin: 0;
    min-height: 44px;
    padding: 11px 18px;
    line-height: 22px;
    white-space: nowrap;
  }

  /* One-click basket/product dialogs. */
  .cart_page .one_click_popup,
  .fancybox-overlay .one_click_popup {
    width: min(100%, 390px);
    max-width: calc(100vw - 32px);
    overflow: visible;
  }

  .cart_page .one_click_popup form {
    width: 100%;
    padding: 18px;
  }

  .cart_page .one_click_popup table,
  .cart_page .one_click_popup tbody,
  .cart_page .one_click_popup tr,
  .cart_page .one_click_popup td {
    width: 100%;
  }

  .cart_page .one_click_popup input:not([type="button"]),
  .fancybox-overlay .one_click_popup input,
  .fancybox-overlay .one_click_popup textarea,
  .fancybox-overlay .one_click_popup select {
    max-width: 100%;
  }

  /* Checkout form: replace the float-based desktop layout with a fluid two-column flow. */
  .bx_order_make #sale_order_props {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, .75fr);
    gap: 26px;
    width: 100%;
    max-width: 100%;
    overflow: visible;
  }

  .bx_order_make #sale_order_props .props,
  .bx_order_make #sale_order_props .info {
    float: none;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] {
    display: grid;
    grid-template-columns: minmax(110px, .42fr) minmax(180px, 1fr);
    gap: 7px 14px;
    align-items: center;
    width: 100%;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] .title,
  .bx_order_make #sale_order_props .props [data-property-id-row] .field,
  .bx_order_make #sale_order_props .props [data-property-id-row] .bx_description {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] .field,
  .bx_order_make #sale_order_props .props [data-property-id-row] .bx_description {
    grid-column: 2;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] .field input,
  .bx_order_make #sale_order_props .props [data-property-id-row] .field textarea,
  .bx_order_make #sale_order_props .props [data-property-id-row] .field select,
  .bx_order_make #sale_order_props input[type="text"],
  .bx_order_make #sale_order_props input[type="email"],
  .bx_order_make #sale_order_props input[type="tel"],
  .bx_order_make #sale_order_props textarea,
  .bx_order_make #sale_order_props select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-right: 0 !important;
    padding: 8px 10px;
    font-size: 16px;
  }

  .bx_order_make #ORDER_DESCRIPTION {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 110px;
    font-size: 16px;
    resize: vertical;
  }

  .bx_order_make .map,
  .bx_order_make [id*="map"],
  .bx_order_make iframe {
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .bx_order_make .bx_section,
  .bx_order_make .section,
  .bx_order_make .bx_block,
  .bx_order_make .bx_element,
  .bx_order_make .delivery,
  .bx_order_make .pay_system {
    max-width: 100%;
    min-width: 0;
  }

  /* Authentication / registration / account pages. */
  .bx-auth,
  .bx-auth-reg {
    display: block;
    margin: 28px auto;
    padding: 34px clamp(22px, 7vw, 70px);
  }

  .bx-auth input[type="text"],
  .bx-auth input[type="password"],
  .bx-auth input[type="email"],
  .bx-auth-reg table input,
  .bx-auth-reg table select,
  .bx-auth-reg table textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    font-size: 16px;
  }

  .bx-auth .container.login label,
  .bx-auth .container.pass label {
    position: static;
    display: block;
    margin-bottom: 5px;
  }

  .bx-auth .container.pass #bx_auth_secure {
    position: static;
  }

  .personal-left-part {
    float: none;
    width: 100%;
    padding-right: 0;
    margin-bottom: 24px;
  }

  .bx-auth-profile .form_row {
    display: grid;
    grid-template-columns: minmax(160px, .45fr) minmax(0, 1fr);
    gap: 10px 18px;
    align-items: start;
  }

  .bx-auth-profile .form_row .title,
  .bx-auth-profile .form_row .input {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
  }

  .bx-auth-profile .form_row .input input,
  .bx-auth-profile .form_row .input textarea,
  .bx-auth-profile .form_row .input select {
    width: 100%;
    max-width: 100%;
    font-size: 16px;
  }

  .client_orders_list {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .client_orders_list .bx_my_order {
    min-width: 720px;
  }

  /* Feedback/contact form columns. */
  .feedback-forms {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 230px);
    gap: 26px;
  }

  .feedback-forms .item,
  .feedback-forms .item.downloads {
    display: block;
    width: 100%;
    max-width: 100%;
    margin-right: 0;
    padding-left: 0;
  }

  .feedback-forms .item .description {
    height: auto;
    min-height: 45px;
  }

  /* Old product-card template still exists for several legacy sections. */
  .product_detail {
    max-width: 100%;
    box-sizing: border-box;
  }

  .product_detail .controls {
    position: static;
    width: 100%;
    max-width: 100%;
    margin-bottom: 24px;
  }

  .product_detail .controls .buy {
    float: none;
  }

  .product_detail .images {
    float: none;
    width: 100%;
    max-width: 100%;
    margin-top: 20px;
  }

  .product_detail .images .main {
    float: none;
    display: block;
    max-width: 100%;
    margin: 0 auto;
  }

  .product_detail .images .other,
  .product_detail .images .mini-icons-props {
    margin-left: 0;
  }

  .product_detail .tabs {
    width: 100%;
    max-width: 100%;
  }

  .product_detail .tabs .contents .item .row .title,
  .product_detail .tabs .contents .item .row .val {
    max-width: 100%;
  }

  .bx_compare {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .bx_compare .data-table {
    min-width: 680px;
  }

  .forgot-password input,
  .forgot-password textarea,
  .forgot-password select {
    max-width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }

  /* Bitrix public forms and feedback forms. */
  .public-request-form .form-item input,
  .public-request-form .form-item textarea,
  .public-request-form select,
  .msg_to_mngr_form input[type="text"],
  .msg_to_mngr_form input[type="email"],
  .msg_to_mngr_form input[type="tel"],
  .msg_to_mngr_form input[type="password"],
  .msg_to_mngr_form textarea,
  .msg_to_mngr_form select {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    font-size: 16px;
  }

  .public-request-form button,
  .public-request-form input[type="submit"],
  .msg_to_mngr_form input[type="submit"] {
    min-height: 44px;
    max-width: 100%;
    margin-left: 0;
    white-space: nowrap;
  }

  .msg_to_mngr_form .form-table,
  .msg_to_mngr_form .form-table tbody,
  .msg_to_mngr_form .form-table tr,
  .msg_to_mngr_form .form-table td,
  .msg_to_mngr_form .form-table th {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  /* Final guard for legacy inline widths in transaction/account surfaces. */
  .cart_page [style*="width"],
  .order-checkout [style*="width"],
  .bx-auth [style*="width"],
  .bx-auth-reg [style*="width"],
  .bx-auth-profile [style*="width"],
  .public-request-form [style*="width"],
  .msg_to_mngr_form [style*="width"] {
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  .cart_page .bx_ordercart .title,
  .bx_order_make .bx_ordercart .title {
    margin: 14px 0;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_table_container > table,
  .bx_order_make .bx_ordercart .bx_ordercart_order_table_container > table {
    min-width: 680px;
  }

  .cart_page .bx_ordercart .bx_ordercart_photo_container,
  .bx_order_make .bx_ordercart .bx_ordercart_photo_container {
    width: 72px;
    height: 72px;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_table_container table tbody td,
  .bx_order_make .bx_ordercart .bx_ordercart_order_table_container table tbody td {
    padding-left: 10px;
    padding-right: 10px;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center {
    display: grid;
    grid-template-columns: 1fr;
    text-align: left;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_pay_center .checkout,
  .bx_order_make .bx_ordercart .bx_ordercart_order_pay_center .checkout,
  .bx_order_make #ORDER_CONFIRM_BUTTON {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    min-height: 48px;
    text-align: center;
  }

  .bx_order_make #sale_order_props {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] {
    grid-template-columns: 1fr;
    gap: 5px;
    padding-bottom: 12px;
    border-bottom: 1px solid #edf0f5;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] .field,
  .bx_order_make #sale_order_props .props [data-property-id-row] .bx_description {
    grid-column: 1;
  }

  .bx_order_make #sale_order_props .props [data-property-id-row] .title {
    font-weight: 600;
  }

  .bx_order_make #sale_order_props .info .item img {
    float: none;
    display: block;
    margin: 0 0 8px;
  }

  .bx-auth,
  .bx-auth-reg {
    margin: 18px auto;
    padding: 24px 18px;
  }

  .bx-auth .container.controls,
  .bx-auth-reg .controls {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .bx-auth .container.controls a,
  .bx-auth .container.controls input,
  .bx-auth-reg .controls .text,
  .bx-auth-reg .controls input {
    float: none;
    width: 100%;
    max-width: 100%;
  }

  .bx-auth .container.controls input,
  .bx-auth-reg .controls input,
  .bx-auth-profile [type="submit"] {
    min-height: 44px;
  }

  .bx-auth-reg table,
  .bx-auth-reg tbody,
  .bx-auth-reg tr,
  .bx-auth-reg td {
    display: block;
    width: 100%;
    max-width: 100%;
  }

  .bx-auth-reg table td {
    padding: 4px 0 10px;
  }

  .bx-auth-profile .form_row {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 12px;
  }

  .bx-auth-profile [type="submit"] {
    float: none;
    width: 100%;
  }

  .feedback-forms {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feedback-forms .item,
  .feedback-forms .item.downloads {
    padding-top: 14px;
  }

  .product_detail {
    padding: 14px;
  }

  .product_detail .product-title {
    font-size: 19px;
    line-height: 1.3;
  }

  .product_detail .tabs .labels {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .product_detail .tabs .labels .item,
  .product_detail .tabs .labels .item:last-child {
    float: none;
    width: 100%;
    padding: 11px 6px;
    border-bottom: 1px solid #6490ff;
    border-radius: 5px;
  }

  .product_detail .tabs .contents .item .row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }

  .product_detail .tabs .contents .item .row .title,
  .product_detail .tabs .contents .item .row .val {
    float: none;
  }

  .product_detail .tabs .contents .item .row .title {
    font-weight: 600;
  }

  .public-request-form {
    padding-left: 0;
    padding-right: 0;
  }

  .msg_to_mngr_form .form-table,
  .msg_to_mngr_form .form-table tbody,
  .msg_to_mngr_form .form-table tr,
  .msg_to_mngr_form .form-table td,
  .msg_to_mngr_form .form-table th {
    display: block;
  }

  .fancybox-wrap,
  .fancybox-inner,
  .fancybox-skin {
    max-width: calc(100vw - 24px) !important;
    box-sizing: border-box;
  }

  .fancybox-overlay .one_click_popup .form-row .title,
  .fancybox-overlay .one_click_popup .form-row .input {
    display: block;
    width: 100%;
  }

  .fancybox-overlay .one_click_popup input[type="button"] {
    float: none !important;
    width: 100%;
    min-height: 42px;
    margin: 8px 0 0;
  }
}

@media (max-width: 480px) {
  .cart_page .bx_ordercart .bx_ordercart_order_table_container > table,
  .bx_order_make .bx_ordercart .bx_ordercart_order_table_container > table {
    min-width: 620px;
  }

  .cart_page .bx_ordercart .bx_ordercart_order_sum td,
  .bx_order_make .bx_ordercart .bx_ordercart_order_sum td {
    padding: 5px 6px;
    font-size: 15px !important;
  }

  .cart_page #allSum_FORMATED,
  .cart_page #allSum_FORMATED * {
    font-size: 18px;
  }

  .cart_page .one_click_popup table,
  .cart_page .one_click_popup tbody,
  .cart_page .one_click_popup tr,
  .cart_page .one_click_popup td {
    display: block;
  }

  .cart_page .one_click_popup td {
    padding: 3px 0;
  }

  .cart_page .one_click_popup input:not([type="button"]) {
    width: 100%;
    min-height: 42px;
    font-size: 16px;
    text-align: left;
  }

  .cart_page .one_click_popup input[type="button"] {
    width: 100%;
    min-height: 42px;
  }

  .client_orders_list .bx_my_order {
    min-width: 660px;
  }
}
