* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  color: #111;
  background: #fff;
  text-rendering: optimizeLegibility;
}

a,
button,
[role="button"],
.s-header-type-1__burger {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
.s-header-type-1__burger:focus-visible {
  outline: 2px solid #111;
  outline-offset: 3px;
}

.sb-fixed-block {
  box-shadow: 0 1px 0 rgba(17, 17, 17, 0.06);
}

.sb-button-primary,
.sb-button-secondary,
.auth-button,
.auth-link-button {
  min-height: 44px;
}

.sb-text-opacity {
  opacity: 1 !important;
  color: rgba(17, 17, 17, 0.68) !important;
}

.s-contacts-type-1 .sb-text-opacity span {
  color: rgba(17, 17, 17, 0.72) !important;
}

.sb-image-ratio-1x1,
.s-product-page-type-1__image-wrapper,
.s-contacts-type-1__map {
  overflow: hidden;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.55;
  }

  .site-wrapper,
  .sb-container {
    width: 100%;
    max-width: 100%;
  }

  .sb-container {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .sb-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  [class*="sb-col_"] {
    max-width: 100% !important;
    flex: 0 0 100% !important;
    width: 100% !important;
  }

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

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  p,
  li,
  a {
    overflow-wrap: anywhere;
    word-break: normal;
    letter-spacing: 0;
  }

  .sb-font-h1 {
    font-size: 38px !important;
    line-height: 1.08 !important;
  }

  .sb-font-h2 {
    font-size: 28px !important;
    line-height: 1.16 !important;
  }

  .sb-font-h3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
  }

  .sb-font-h4 {
    font-size: 21px !important;
    line-height: 1.25 !important;
  }

  .sb-font-p1,
  .sb-font-p2,
  .sb-font-p3,
  .sb-text-editor {
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .s-header-type-1__wrapper {
    min-height: 72px !important;
    padding: 12px 0 !important;
    flex-wrap: nowrap !important;
    gap: 14px;
  }

  .s-header-type-1__wrapper_square-logo {
    min-height: 72px !important;
  }

  .sb-logotype-wrapper_adaptive_size-s_square {
    width: 64px !important;
    height: 48px !important;
  }

  .s-header-type-1__burger {
    right: 0 !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 999px;
  }

  .s-header-type-1__burger-line {
    left: 8px !important;
    width: 28px !important;
    height: 2px !important;
  }

  .s-header-type-1__burger-line::before,
  .s-header-type-1__burger-line::after {
    height: 2px !important;
  }

  .s-header-type-1__menu-wrapper {
    width: min(340px, 100vw) !important;
    padding-top: 72px !important;
  }

  .s-header-type-1__menu-wrapper.js-menu_open {
    left: -18px !important;
  }

  body.sb-body_overflow::after {
    display: none !important;
    content: none !important;
    z-index: 90 !important;
    background-color: transparent !important;
    pointer-events: none !important;
  }

  .s-header-type-1.js-active {
    z-index: 10020 !important;
    overflow: visible !important;
  }

  .s-header-type-1.js-active .s-header-type-1__wrapper {
    z-index: 10023 !important;
  }

  .s-header-type-1.js-active .s-header-type-1__burger {
    z-index: 10025 !important;
  }

  .s-header-type-1.js-active .s-header-type-1__menu-wrapper.js-menu_open {
    z-index: 10021 !important;
    pointer-events: auto;
  }

  .s-header-type-1.js-active .s-header-type-1__menu {
    background: #fff;
    box-shadow: 16px 0 36px rgba(17, 17, 17, 0.12);
  }

  .s-header-type-1.js-active .s-header-type-1__menu-wrapper.js-menu_open .sb-background {
    z-index: 0 !important;
    pointer-events: none;
    background: #fff !important;
  }

  .s-header-type-1.js-active .s-header-type-1__link-wrapper,
  .s-header-type-1.js-active .sb-submenu-dropdown {
    position: relative;
    z-index: 2;
  }

  .s-header-type-1__wrapper_square-logo .s-header-type-1__menu-wrapper {
    padding-top: 72px !important;
  }

  .s-header-type-1__menu {
    width: 100%;
    padding: 24px 18px 32px !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .s-header-type-1__link-wrapper {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    overflow: visible !important;
  }

  .s-header-type-1__link-item {
    width: 100%;
    margin-top: 0 !important;
  }

  .s-header-type-1__link,
  .sb-submenu-value {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 0;
    white-space: normal;
    line-height: 1.35;
    text-decoration: none;
  }

  .sb-submenu {
    padding: 2px 0 8px 14px;
  }

  .sb-submenu-value {
    min-height: 40px;
    color: rgba(17, 17, 17, 0.72);
  }

  .s-main-type-3,
  .s-main-type-11 {
    min-height: 72dvh !important;
    padding-top: 104px !important;
    padding-bottom: 56px !important;
  }

  .s-history-type-1,
  .s-contacts-type-1,
  .s-footer-customer-type-5,
  .s-text-list-type-1,
  .s-product-page-type-1 {
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .s-history-type-1__image-wrapper {
    margin-top: 0 !important;
    margin-bottom: 18px !important;
  }

  .s-history-type-1__text,
  .s-contacts-type-1,
  .s-text-list-type-1 {
    text-align: left;
  }

  .s-main-type-3__buttons {
    width: 100%;
    flex-direction: column;
    gap: 12px;
  }

  .s-main-type-3__button + .s-main-type-3__button {
    margin-top: 0 !important;
  }

  .sb-button-primary,
  .sb-button-secondary {
    width: 100%;
    min-height: 48px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 18px !important;
    white-space: normal;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .sb-container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .s-header-type-1__menu-wrapper.js-menu_open {
    left: -16px !important;
  }

  .sb-font-h1 {
    font-size: 34px !important;
  }

  .sb-font-h2 {
    font-size: 25px !important;
  }

  .sb-font-p1,
  .sb-font-p2,
  .sb-font-p3,
  .sb-text-editor {
    font-size: 15px !important;
  }
}
