/*
 * layout.css — mobile-first layout for wacker-center.ru
 *
 * style.css keeps the visual skin (colors, backgrounds, icons, typography).
 * This file owns layout: containers, grids, spacing and responsive states.
 * Base rules target 320px; wider layouts are added with min-width queries.
 *
 * Sections:
 *   1. Foundations
 *   2. Header & navigation
 *   3. Home
 *   4. Catalog
 *   5. Product
 *   6. Cart & forms
 *   7. Content & footer
 */

/* 1. Foundations */

:root {
  --container-width: 1000px;
  --page-gutter: 16px;
}

html {
  -webkit-text-size-adjust: 100%;
}

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

img {
  height: auto;
}

.width,
.width-into {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
  box-sizing: border-box;
}

/* Pre-existing bug: width:100% + horizontal padding without border-box
   gave the fixed cookie bar a 100px overflow on every page. */
.cookie-bar {
  box-sizing: border-box;
}

.text-block img,
.text-block video {
  max-width: 100%;
  height: auto;
}

.text-block iframe {
  max-width: 100%;
}

.text-block table {
  max-width: 100%;
}

.text-block {
  overflow-wrap: anywhere;
}

@media (max-width: 1023px) {
  .text-block table {
    display: block;
    overflow-x: auto;
  }
}

@media (max-width: 1023px) {
  .menu-cat,
  .text-area {
    float: none;
    width: auto;
  }

  .text-area {
    padding-top: 16px;
  }
}

@media (min-width: 1024px) {
  .width,
  .width-into {
    padding-left: 0;
    padding-right: 0;
  }
}

/* 2. Header & navigation */

.mobile-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
}

.mobile-bar__burger {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 11px 10px;
  border: 0;
  background: none;
  cursor: pointer;
  flex: 0 0 auto;
}

.mobile-bar__burger span {
  display: block;
  height: 2px;
  margin: 4px 0;
  background: #333;
  border-radius: 1px;
}

.mobile-bar__logo {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-bar__logo img {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
}

.mobile-bar__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.mobile-bar__phone,
.mobile-bar__cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  position: relative;
  color: #333;
  text-decoration: none;
}

.mobile-bar__count {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: #f5c600;
  color: #333;
  font-size: 11px;
  line-height: 18px;
  text-align: center;
}

.drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
}

body.nav-open .drawer {
  visibility: visible;
}

.drawer__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  transition: opacity 0.2s ease;
}

body.nav-open .drawer__overlay {
  opacity: 1;
}

.drawer__panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 85%;
  max-width: 360px;
  background: #fff;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
}

body.nav-open .drawer__panel {
  transform: none;
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #eee;
  flex: 0 0 auto;
}

.drawer__logo img {
  display: block;
  width: 120px;
  height: auto;
}

.drawer__close {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.drawer__close span {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #333;
}

.drawer__close span:first-child {
  transform: rotate(45deg);
}

.drawer__close span:last-child {
  transform: rotate(-45deg);
}

.drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 8px 16px 32px;
}

.drawer__group {
  padding: 8px 0;
  border-bottom: 1px solid #eee;
}

.drawer__label {
  display: block;
  margin-bottom: 6px;
  color: #777;
  font-size: 12px;
  text-transform: uppercase;
}

.drawer__select,
.drawer__search input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #fff;
  color: #333;
  font-size: 16px;
  box-sizing: border-box;
}

.drawer__search {
  display: flex;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid #eee;
}

.drawer__search button {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid #ccc;
  border-radius: 3px;
  background: #f5c600;
  font-size: 16px;
  cursor: pointer;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
}

.drawer__link {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  color: #333;
  text-decoration: none;
  line-height: 22px;
}

.drawer__link:active,
.drawer__link:focus {
  color: #000;
}

.drawer__link--group {
  font-weight: 700;
}

.drawer__link--sub {
  padding-left: 12px;
  font-size: 14px;
  color: #555;
}

.drawer__toggle {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 11px 0;
  border: 0;
  background: none;
  color: #333;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  position: relative;
}

.drawer__toggle:after {
  content: "";
  position: absolute;
  right: 4px;
  top: 20px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #333;
  border-bottom: 2px solid #333;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.drawer__toggle[aria-expanded="true"]:after {
  transform: rotate(-135deg);
}

.drawer__submenu[hidden] {
  display: none;
}

.drawer__contacts {
  padding: 16px 0;
  font-size: 14px;
}

.drawer__contacts strong,
.drawer__contacts a {
  display: block;
  padding: 4px 0;
  color: #333;
}

@media (max-width: 1023px) {
  .header,
  .header.slider {
    height: auto;
    background-size: cover;
  }

  .header .width-into {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
  }

  .header .header-bucket,
  .header .header-top,
  .header .top {
    display: none;
  }
}

@media (min-width: 1024px) {
  .mobile-bar {
    display: none;
  }

  .drawer {
    display: none;
  }
}

/* "Узнать больше" CTAs — CSS recreation of the legacy sprites
   (item-read-more.png, readmore.png): light state + dark hover.
   No image assets, so stretching for touch targets can no longer
   expose a second sprite state. */
.item-read_more,
.cart-item a.readmore {
  position: relative;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
  background: #fbd300;
  color: #fff;
  font: 700 13px/1 'PT Sans', sans-serif;
  text-transform: uppercase;
  text-decoration: none;
  text-indent: 0;
  overflow: hidden;
  clip-path: polygon(
    0 0,
    calc(100% - 13px) 0,
    100% 50%,
    calc(100% - 13px) 100%,
    0 100%
  );
  -webkit-clip-path: polygon(
    0 0,
    calc(100% - 13px) 0,
    100% 50%,
    calc(100% - 13px) 100%,
    0 100%
  );
}

.item-read_more {
  width: 186px;
  height: 40px;
  padding: 0 0 0 20px;
}

.cart-item a.readmore {
  position: absolute;
  width: 174px;
  height: 34px;
  margin: 0 0 0 2px;
  bottom: 52px;
  padding: 0 0 0 18px;
}

.item-read_more::before,
.cart-item a.readmore::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.05) 0 2px,
      rgba(0, 0, 0, 0.04) 2px 4px
    ),
    #949494;
  clip-path: polygon(
    0 0,
    calc(100% - 17px) 0,
    calc(100% - 4px) 50%,
    calc(100% - 17px) 100%,
    0 100%
  );
  -webkit-clip-path: polygon(
    0 0,
    calc(100% - 17px) 0,
    calc(100% - 4px) 50%,
    calc(100% - 17px) 100%,
    0 100%
  );
}

.item-read_more:hover::before,
.item-read_more:focus::before,
.cart-item a.readmore:hover::before,
.cart-item a.readmore:focus::before {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(255, 255, 255, 0.055) 0 2px,
      rgba(0, 0, 0, 0.08) 2px 4px
    ),
    #1e1e1e;
}

.item-read_more span,
.cart-item a.readmore span {
  position: relative;
  z-index: 1;
  display: block;
  white-space: nowrap;
}

.item-read_more::after {
  content: "\203A";
  position: absolute;
  z-index: 2;
  right: 30px;
  top: 50%;
  width: 26px;
  height: 26px;
  margin-top: -13px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #fff;
  font: 700 20px/22px 'PT Sans', sans-serif;
  text-align: center;
}

.cart-item a.readmore::after {
  content: "\203A";
  position: absolute;
  z-index: 2;
  right: 12px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  box-sizing: border-box;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  color: #fff;
  font: 700 17px/18px 'PT Sans', sans-serif;
  text-align: center;
}

/* 3. Home */

@media (max-width: 1023px) {
  .item-area,
  .item-area_body,
  .item-area_bottom,
  .item-area_head,
  .item-area-html {
    width: auto;
    float: none;
    position: static;
  }

  .item-area_bottom_left,
  .item-area_bottom_right {
    float: none;
    width: auto;
    margin: 0 0 16px;
  }

  .bx-slider_wrap,
  .bxslider {
    width: 100%;
    max-width: 100%;
  }

  /* style.css forces overflow:visible on the slider viewport (needed for
     the desktop preview). On mobile that lets off-screen slides extend
     document scrollWidth during transitions. */
  .bx-slider_wrap .bx-viewport {
    overflow: hidden !important;
  }

  .banner,
  .wrp-banner,
  .bx-wrapper,
  .bx-viewport {
    max-width: 100%;
    height: auto;
  }

  .bx-slider_wrap img,
  .bxslider img,
  .banner img,
  .wrp-banner img,
  .big-img_container img {
    max-width: 100%;
    height: auto;
  }

  .bx_pager {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }

  .item-area_gallery,
  .big-img_container {
    position: static;
    margin-top: 16px;
  }
}

/* 4. Catalog */

@media (max-width: 1023px) {
  .menu-cat {
    margin-bottom: 16px;
    z-index: auto;
  }

  .menu-cat a.catalog {
    min-height: 44px;
    box-sizing: border-box;
    padding: 12px 44px 12px 14px;
    border-radius: 3px;
  }

  #catalogID {
    display: none;
  }

  /* Desktop hover flyouts are unusable on touch and otherwise add
     hundreds of pixels to scrollWidth once the catalog is opened. */
  #catalogID .catalog-sub_menu,
  #catalogID .catalog_sub_menu {
    display: none;
  }

  #catalogID .catalog-body ul li a {
    display: block;
    min-height: 44px;
    padding: 10px 0;
    box-sizing: border-box;
  }

  .catblock.absolute {
    position: static;
  }

  .catblock-close {
    display: none;
  }

  .catalog-area h1 {
    font-size: 22px;
    line-height: 1.25;
  }

  .breadcrumbs {
    float: none;
    width: auto;
    max-width: 100%;
    overflow-wrap: anywhere;
    line-height: 1.6;
  }

  .breadcrumbs a,
  .breadcrumbs span {
    white-space: normal;
  }

  .cart-item-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 0;
  }

  /* Desktop markup batches cards into equal-height rows; on mobile the
     wrapper must not be a flex item of its own. */
  .cart-item-area > .js-same-wrapper {
    display: contents;
  }

  .scrollable-carousel {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 12px;
  }

  .scrollable-carousel > .cart-item {
    flex: 1 1 100%;
    margin: 0;
  }

  .cart-item {
    display: block;
    flex: 1 1 100%;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 12px 12px 124px;
    box-sizing: border-box;
  }

  .cart-item .c-i-pic {
    height: auto;
    min-height: 140px;
  }

  .cart-item .c-i-pic img {
    max-width: 100%;
    height: auto;
  }

  .cart-item a.read-more {
    display: block;
    overflow-wrap: anywhere;
  }

  .cart-item a.readmore {
    left: 12px;
    right: 12px;
    bottom: 66px;
    width: auto;
    height: 44px;
    margin: 0;
  }

  a.to-cart {
    width: auto;
    height: auto;
    min-height: 44px;
    line-height: 34px;
    box-sizing: border-box;
  }

  .cart-item a.to-cart {
    left: 12px;
    right: 12px;
    width: auto;
  }

  a.cat-see-all {
    display: block;
    min-height: 44px;
    height: auto;
    line-height: 44px;
    box-sizing: border-box;
  }

  /* Touch target: 44px tall on phones; the CSS shape scales with it. */
  .item-read_more {
    height: 44px;
  }

  a.b-read_more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px 0 0;
    bottom: 12px;
    left: 12px;
  }

  a.readmore {
    min-height: 44px;
  }

  .inst-area {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 16px;
  }

  .inst-item {
    display: block;
    flex: 1 1 100%;
    /* Legacy `.inst-area.inst-area-3 .inst-item` fixes width by class;
       inline-block cards must stretch to the mobile column. */
    width: auto !important;
    margin: 0;
    padding: 10px;
    box-sizing: border-box;
    text-align: center;
  }

  .inst-item img {
    max-width: 100%;
    height: auto;
  }

  .catalog-cat {
    margin-left: 0;
  }

  .pagination a {
    display: inline-block;
    min-width: 44px;
    min-height: 44px;
    padding: 0 8px;
    line-height: 44px;
    box-sizing: border-box;
  }

  .pagination a.active {
    padding: 0 8px;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .cart-item {
    flex: 1 1 calc(50% - 12px);
  }

  .scrollable-carousel > .cart-item {
    flex: 1 1 calc(50% - 12px);
  }

  .inst-item {
    flex: 1 1 calc(50% - 12px);
  }
}

/* 5. Product */

@media (max-width: 1023px) {
  .menu-fav {
    width: auto;
    float: none;
    box-sizing: border-box;
    padding: 10px 12px;
    margin: 12px 0;
  }

  .menu-fav > ul > li,
  .menu-fav > ul > li.first,
  .menu-fav > ul > li.mf-u_center {
    display: block;
    width: auto;
    white-space: normal;
  }

  .menu-fav > ul > li > a {
    display: block;
    min-height: 44px;
    padding: 12px 0;
    box-sizing: border-box;
  }

  .card-area,
  .card-area-body {
    display: block;
  }

  .card-left,
  .card-slideshow,
  .card-right,
  .wrp-cart-tabs {
    width: auto;
    float: none;
    margin-left: 0;
    margin-right: 0;
  }

  .card-left {
    margin-bottom: 16px;
  }

  .card-slideshow {
    height: auto;
    padding: 10px;
    box-sizing: border-box;
  }

  .c-a-gig_img {
    width: 100%;
    float: none;
  }

  .c-a-gig_img a.fancybox {
    display: block;
    margin: 0;
  }

  .c-a-gig_img img {
    max-width: 100%;
    height: auto;
  }

  .c-a-thumbs {
    width: 100%;
    height: auto;
    float: none;
    margin: 10px 0 0;
  }

  .c-a-thumbs .holder {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .c-a-thumbs ul {
    display: flex;
    gap: 6px;
    width: max-content;
  }

  .c-a-thumbs ul li {
    display: block;
  }

  .c-a-thumbs .card-arrow-top,
  .c-a-thumbs .card-arrow-bottom {
    display: none;
  }

  .card-right {
    min-height: 0;
    margin-top: 16px;
  }

  .card-area h1 {
    font-size: 22px;
    line-height: 28px;
  }

  .card-options-left,
  .card-options-right {
    width: auto;
    height: auto;
    float: none;
    padding: 0;
    margin: 0 0 12px;
  }

  .card-options-right-in-cart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
  }

  .card-options-right-in-cart .f-button {
    flex: 1 1 auto;
    min-height: 44px;
    box-sizing: border-box;
  }

  .wrp-cart-tabs {
    padding: 16px 0 0;
  }

  .wrp-cart-tabs .cart-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .wrp-cart-tabs .cart-tabs-nav li {
    float: none;
  }

  .wrp-cart-tabs table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  .card-area-body .menu-cat {
    margin-top: 16px;
  }

  .search-area {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    padding: 12px;
  }

  .s-a-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }

  span.s-a-f-head,
  .s-a-f-reset,
  span.s-a-f-result {
    float: none;
  }

  .s-a-sort {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .f-field {
    float: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
  }

  label.s-a-sort_field,
  label.s-a-sort_field_2 {
    float: none;
    width: auto;
  }

  input.s-a-sort_field {
    float: none;
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    font-size: 16px;
  }

  .f-select label {
    display: block;
    margin-bottom: 6px;
  }

  .f-select .ik_select_link {
    width: 100%;
    box-sizing: border-box;
  }
}

/* 6. Cart & forms */

@media (max-width: 1023px) {
  .in-cart-left,
  .in-cart-right {
    width: auto;
    float: none;
  }

  .order-top {
    display: none;
  }

  .order-item {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr);
    gap: 8px 10px;
    position: relative;
    padding: 12px 30px 12px 0;
  }

  .order-item-thumb {
    grid-column: 1;
    grid-row: 1;
    float: none;
  }

  .order-item-link {
    grid-column: 2;
    grid-row: 1;
    float: none;
    width: auto;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .order-item-price {
    grid-column: 1 / -1;
    grid-row: 2;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
  }

  .order-item-price span {
    float: none;
    width: auto;
    height: auto;
    line-height: 1.4;
  }

  .order-item-summ {
    grid-column: 2;
    grid-row: 2;
    float: none;
    width: auto;
    margin: 0;
    padding: 0;
    align-self: center;
    justify-self: end;
    color: #333;
    font-weight: 700;
  }

  a.cart-close-btn {
    position: absolute;
    top: 6px;
    right: 0;
  }

  .s-wrp-price {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .s-plus,
  .s-minus {
    width: 44px;
    height: 44px;
    box-sizing: border-box;
  }

  a.order-button,
  button.reg-button {
    float: none;
    width: 100%;
    height: 56px;
    line-height: 56px;
    box-sizing: border-box;
  }

  .order-bottom .card-shipping {
    max-width: 100%;
  }

  .summ-zakaz {
    position: sticky;
    bottom: 0;
    z-index: 5;
    margin-top: 16px;
  }

  .reg-form-left,
  .reg-form-right,
  .reg-form-left-body-left,
  .reg-form-left-body-right {
    float: none;
    width: auto;
  }

  .reg-form-left,
  .reg-form-right {
    margin-bottom: 16px;
  }

  .reg-form-left-body-left,
  .reg-form-left-body-right {
    margin-bottom: 10px;
  }

  .c-input-left,
  .c-input-right {
    float: none;
    width: auto;
    margin: 0 0 12px;
  }

  .c-form {
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contacts-branch {
    float: none;
    width: auto;
    max-width: 100%;
    margin: 0 0 16px;
  }

  .contacts-branch .branch-head a {
    font-size: 20px;
    line-height: 1.3;
  }

  .contacts-branch .branch-head {
    height: auto;
    min-height: 44px;
    line-height: 1.4;
    padding: 8px 8px 8px 12px;
  }

  .i-wr,
  .i-wr input,
  .i-wr textarea,
  .i-wr select,
  .form input,
  .form select,
  .form textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .c-form .c-input-bottom textarea,
  .c-form .i-wr input,
  .c-form .i-wr textarea,
  .reg-form .i-wr input,
  .reg-form .i-wr textarea {
    width: 100%;
    box-sizing: border-box;
  }

  .c-form input[type="text"],
  .c-form input[type="email"],
  .c-form textarea,
  .c-input-bottom textarea,
  .reg-form input,
  .reg-form select,
  .reg-form textarea {
    font-size: 16px;
  }

  .feedback-recaptcha-wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

  .recaptcha-wrapper {
    max-width: 100%;
    overflow-x: auto;
  }

  .i-wr input,
  .i-wr textarea,
  .i-wr select,
  .form input,
  .form select,
  .form textarea,
  input,
  select,
  textarea {
    font-size: 16px;
  }

  .form input,
  .form select,
  .form textarea {
    min-height: 44px;
  }

  .form textarea {
    min-height: 120px;
  }
}

/* 7. Content & footer */

@media (max-width: 1023px) {
  .bottom {
    min-width: 0;
    height: auto;
    padding: 16px 0;
  }

  .b-item_list,
  .b-item_list.sec,
  .b-item_list.last {
    float: none;
    width: auto;
    margin: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  }

  .footer__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding: 10px 0;
    border: 0;
    background: none;
    color: #666;
    font: inherit;
    text-align: left;
    cursor: pointer;
  }

  .footer__toggle .b-item_list_head {
    margin: 0;
  }

  .footer__toggle:after {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid #666;
    border-bottom: 2px solid #666;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
  }

  .footer__toggle[aria-expanded="true"]:after {
    transform: rotate(-135deg);
  }

  .footer__submenu {
    padding-bottom: 10px;
  }

  .b-item_list ul li a {
    display: block;
    min-height: 36px;
    padding: 8px 0;
    font-size: 14px;
  }

  .euro-rate {
    position: static;
    padding: 12px 0;
  }

  .footer {
    height: auto;
    padding: 16px 0;
  }

  .footer .copyright {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

  .f-menu {
    float: none;
    margin: 0;
    padding: 0;
  }

  .f-menu ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
  }

  .f-menu ul li {
    float: none;
    margin: 0;
  }

  .f-menu ul li a {
    display: inline-block;
    padding: 8px 0;
    font-size: 14px;
  }
}

@media (min-width: 1024px) {
  .footer__toggle {
    display: inline-block;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: default;
    pointer-events: none;
  }

  .footer__toggle:after {
    display: none;
  }

  .footer__submenu {
    display: block;
  }
}

/* Content pages */

@media (max-width: 1023px) {
  /* Catalog and content are siblings in the DOM, but on mobile the
     catalog toggle must stay on top while banner/news move below the
     main content. display:contents lifts the sidebar children into the
     page column without changing desktop markup. */
  .content > .width > .width-into {
    display: flex;
    flex-direction: column;
  }

  .content > .width > .width-into > .menu-cat {
    display: contents;
  }

  .content > .width > .width-into > * {
    order: 3;
  }

  .content > .width > .width-into > .menu-cat > .catalog-block {
    order: 1;
  }

  .content > .width > .width-into > .menu-fav {
    order: 2;
  }

  .content > .width > .width-into > .text-area {
    order: 4;
  }

  .content > .width > .width-into > .menu-cat > .banner {
    order: 5;
  }

  .content > .width > .width-into > .menu-cat > .news {
    order: 6;
  }

  .content > .width > .width-into > .clear {
    display: none;
  }

  .banners-area,
  .banners-list {
    width: auto;
    max-width: 100%;
  }

  .error-area {
    min-height: 0;
    background-size: cover;
    padding: 16px 0 0;
  }

  #logo.error {
    position: static;
    margin: 0 auto 12px;
    text-align: center;
  }

  #logo.error img {
    max-width: 220px;
    height: auto;
  }

  .traktor {
    position: static;
    width: 100%;
    height: 180px;
    margin: 0 auto;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
  }

  .error-text {
    position: static;
    padding: 16px 0 24px;
  }

  .about-left,
  .about-right,
  .wrp-about-new .about-left,
  .wrp-about-new .about-right,
  .wrp-partners .about-left,
  .wrp-partners .about-right,
  .content__left,
  .content__right {
    float: none;
    width: auto;
  }

  .carousel {
    width: auto;
    max-width: 100%;
    margin: 16px 0;
    padding: 4px;
    overflow-x: auto;
    box-sizing: border-box;
  }

  .carousel ul {
    display: flex;
    gap: 8px;
    white-space: nowrap;
  }

  .carousel ul li {
    flex: 0 0 auto;
  }

  .shipping-new .right {
    position: static;
    width: auto;
    text-align: left;
  }

  .shipping-new .left {
    position: static;
    width: auto;
    text-align: left;
  }

  .easy_pay {
    margin-left: 0;
    margin-right: 0;
  }

  .wrp-easy-pay_item {
    float: none;
    width: auto;
    margin: 0 0 12px;
  }

  .pay-cash,
  .pay-cash.sec {
    float: none;
    width: auto;
    margin: 0 0 16px;
  }

  .pay-cash img {
    float: none;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 0 8px;
  }

  .content__map {
    max-width: 100%;
    overflow: hidden;
  }

  .content__map img,
  img.contacts-map {
    max-width: 100%;
    height: auto;
  }
}

@media (min-width: 1024px) and (max-width: 1099px) {
  .easy_pay {
    margin-left: 0;
    margin-right: 0;
  }

  .ik_select_link {
    max-width: 100%;
  }

  /* Desktop hover submenus in the 320px catalog column poke a few pixels
     past the viewport at exactly 1024px. Clip instead of clipping them at
     wider sizes where they fit. */
  .content {
    overflow-x: clip;
  }
}

@media (prefers-reduced-motion: reduce) {
  .drawer__overlay,
  .drawer__panel,
  .drawer__toggle:after,
  .footer__toggle:after {
    transition: none;
  }
}




