/*
	xs:    376
	sm:    576
	md:    768
	lg:    992
	xl:    1200
	xxl:   1400
	xxxl:  1920
*/

/*
	font-size: calc(24px + 16 * ((100vw - 320px) / (1280 - 320)));
	font-size: calc(20px + (50 - 20) * ( (100vw - 320x) / (1200 - 320)));

	1) 40px - максимальный размер шрифта.
	2) 24px - минимальный размер шрифта.
	3) 16 -- разница межу Мак и Мин значениями
	4) 1280 - 320  мин-мах   ширина обертки
*/

@media (max-width: 959px) {
  .header-content {
    padding: 0;
  }

  .badge-black-friday {
    display: none;
  }

  .main-blog {
    margin-top: 0;
  }
}

@media (max-width: 919px) {
  .header-logo {
    width: 180px;
    left: calc(50% - 90px);
  }

  .header-social {
    display: none;
  }

  .bar-icons--wrap {
    position: relative;
    min-width: 108px;
  }

  .st-text--content {
    padding: 10px 20px 50px;
  }

  .main-brands--item {
    flex: 0 0 8em;
  }
}

@media (max-width: 768px) {

  h1,
  h2,
  h3,
  h4,
  h5,
  h6,
  .page-products--h1 {
    letter-spacing: normal;
  }

  .header-logo {
    width: 180px;
    left: calc(50% - 90px);
  }

  .search-main--wrap.fixed {
    position: absolute;
    top: 62px;
  }

  .search-found--title {
    margin: 0 0 30px;
  }

  .section--title {
    margin: 0 0 30px;
  }

  .sw-slide img {
    min-height: 227px;
  }

  .main-brands--item {
    flex: 0 0 17vw;
  }

  /* Section Text */

  .st-text--content {
    padding: 18px 10px 22px;
  }

  .section-text--right:before {
    top: -15px;
  }

  .show .st-text--open-btn {
    bottom: -18px;
  }

  .st-text--content h1 {
    line-height: 1.1;
  }

  /* Section Articles anons */
  .section.section-art--wrap {
    padding: 40px 0 25px;
  }

  .section-art--content,
  .section-tags--wrap {
    padding: 0;
  }

  .section-art--row {
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 8px 0;
    margin: 0 0 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
  }

  .section-art--item {
    flex: 0 0 240px;
    margin: 0 8px;
    scroll-snap-align: center;
  }

  .section-art--category {
    align-items: flex-start;
    flex-wrap: nowrap;
    justify-content: space-between;
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .sac-category--item {
    padding: 6px 12px;
  }

  /* Footer */
  footer {
    background: inherit;
    margin: 0;
  }

  .footer-content {
    background: inherit;
    flex-wrap: wrap;
    justify-content: space-between;
  }

  .footer-block--center {
    background: var(--footer-bg);
    border-radius: var(--box-br);
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0 auto;
    order: 0;
  }

  .subscript-form {
    padding: 70px 0 50px;
  }

  .footer-block--left,
  .footer-block--right {
    background: var(--footer-bg);
    border-radius: var(--box-br);
    max-width: 100%;
    padding: calc(28px + 4 * ((100vw - 320px) / (780 - 320))) calc(6px + 22 * ((100vw - 320px) / (780 - 320)));
    flex: 1 1 48%;
    order: 1;
  }

  .fb-sub-title {
    padding: 15px 10px 0;
  }

  .footer-block--bottom {
    padding-bottom: 0;
    order: 4;
  }

  .fb-sign,
  .fb-soc a svg {
    color: var(--footer-bg);
    --fill: var(--footer-bg);
  }

  .fb-sign--link {
    color: #3c6ebf;
    text-decoration: underline;
  }

  .sf-icon {
    height: 100%;
    top: 0;
  }

  /* END Footer */
}

@media (max-width: 659px) {
  header {
    margin: 0 0 5px;
  }

  .header-content,
  .header-fixed .header-content {
    position: relative;
  }

  .header-logo {
    top: 6px;
  }

  .header-social {
    display: flex;
    top: 12px;
    left: 2vw;
  }

  .go-back-btn {
    display: flex;
  }

  .badge-black-friday {
    display: flex;
    top: 12px;
    right: 2vw;
    scale: 0.9;
  }

  .main-h1 {
    margin: 0;
  }

  .h1-sub--title {
    max-width: 300px;
    margin: 0 auto 26px;
    line-height: 1.25;
  }

  .page-h1 {
    padding: 0 35px;
    line-height: 1.2;
  }

  .aside {
    align-items: center;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    top: auto;
    bottom: 0;
    left: 0;
  }

  .aside.right-bar {
    left: auto;
    right: 0;
  }

  .cart-mini.box-panel {
    justify-content: center;
  }

  .cart-mini--wrap {
    margin: 15px 0 76px;
  }

  /* Mega menu */
  .mega-menu {
    background: rgba(170, 170, 170, 0.7);
    border-radius: 0;
    position: fixed;
    width: 100%;
    margin: 0 auto;
    height: 100vh;
    left: 0;
    top: 0;
  }

  .mega-menu:after {
    border-radius: inherit;
  }

  .mega-menu--title {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    padding: 5px 10px 10px;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
  }

  .mega-menu--title .i-menu {
    position: relative;
    width: 35px;
    height: 35px;
    margin-right: 10px;
    --fill: #22272f;
  }

  .mega-menu--title .i-close {
    background: var(--box-cont-bg);
    top: 20px;
    right: 20px;
    transform: translateX(15px);
    transition: transform 0.3s var(--box-trs) 0.4s, opacity 0.4s ease 0.2s;
  }

  .mega-menu--nav {
    position: relative;
    padding: 15px 12px 100px;
    overflow: auto;
    height: 100vh;
  }

  .nav-item--btn {
    border-radius: var(--box-br);
    backdrop-filter: var(--box-blur);
    justify-content: flex-start;
    margin: 0 0 2px;
    max-width: 100%;
    padding: 14px 10px;
    font-size: 16px;
    text-overflow: ellipsis;
  }

  .nav-item--btn:after,
  .nav-item.show:after {
    display: none;
  }

  .nav-item--btn:before {
    content: "";
    background: url(/icons/menu-active-bottom2.svg) no-repeat center center/100%;
    position: absolute;
    top: 61px;
    left: 20px;
    width: 32px;
    height: 14px;
    opacity: 0;
    transform: scale3d(1, 0.3, 1);
    transform-origin: top center;
    transition: 0.3s;
  }

  .nav-item--icon {
    margin-right: 5px;
  }

  .nav-item--btn .i-close {
    display: block;
    position: absolute;
    width: 15px;
    height: 15px;
    top: 25px;
    right: 20px;
    transform: rotate(45deg);
    transition: 0.2s;
    --fill: var(--win-title);
    opacity: 1;
  }

  .show .nav-item--btn .i-close {
    transform: rotate(90deg);
  }

  .nav-list {
    border-radius: inherit;
    position: relative;
    padding: 0;
    left: -12px;
    top: 3px;
    max-height: 0vh;
    margin-bottom: 0;
    width: calc(100% + 24px);
    transition: 0.5s ease-in-out;
  }

  .nav-item.show .nav-list {
    max-height: 100vh;
    margin-bottom: 15px;
    padding: 15px 0;
  }

  .nav-list--link {
    display: none;
  }

  .nav-list--scroll {
    overflow-x: auto;
    justify-content: flex-start;
    padding: 0 10px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 10px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }

  .nav-list--scroll::-webkit-scrollbar {
    display: none;
  }

  .nav-list--title {
    margin: 0 0 15px;
    display: flex;
    align-items: center;
    color: #fff;
  }

  .nav-list--title .nav-list--icon {
    margin: 0 10px 0 0;
  }

  .nav-list--column {
    flex: 0 0 200px;
    box-shadow: none;
    scroll-snap-align: center;
  }

  .nav-list--column a {
    font-size: 14px;
    padding: 8px 8px;
    color: #a2b0b9;
    text-decoration: none;
  }

  .nav-list--column a:hover {
    background: rgba(51, 59, 68, 0.6);
  }

  .item-width--title p {
    padding: 10px 20px 0;
  }

  /* Cart mini */
  .cart-mini {
    top: auto;
    bottom: 76px;
    width: 100vw;
    min-width: 320px;
    right: 0;
    min-height: 400px;
  }

  /* Search panel */
  .search-panel {
    box-shadow: none;
    top: 0;
    left: 0;
  }

  /* Win. contacts */
  .win-contact {
    top: auto;
    bottom: 76px;
    left: 0;
    width: 280px;
  }

  .win-contact--block {
    font-size: 14px;
  }

  /* Log-in-btn */
  .log-in--menu {
    top: auto;
    bottom: 67px;
  }

  .log-in--menu:before {
    top: auto;
    bottom: -20px;
  }

  /* Win. login */
  .win-modal.win-login {
    max-width: 380px;
  }

  .win-login--section-left {
    flex: 1 1 100%;
    padding: 30px 18px;
  }

  .win-login--section-right {
    display: none;
  }

  .win-login--close {
    top: 8px;
    right: 8px;
  }

  /* Section */
  .section-title.content-wrap {
    margin: 0 0 20px;
    padding: 0 3vw;
    text-align: left;
  }

  /* Section text */
  .section-text--content {
    flex-wrap: wrap;
  }

  .section-text--left,
  .section-text--right {
    flex: 0 1 100%;
    position: relative;
    top: 0;
    max-width: 100%;
  }

  .section-text--left {
    margin: 0 auto 10px;
    padding: 0 1vw;
  }

  /* Footer */
  .footer-block--center {
    padding: 20px 15px;
  }

  .footer-block--bottom {
    margin: 32px auto 46px;
  }

  .country-switch--wrap {
    left: 12px;
    top: 18px;
  }
}

@media (max-width: 489px) {
  .h1-test {
    margin: 0 0 30px;
  }

  .sw-slide--title {
    font-size: 13px;
    padding: 10px 18px;
    white-space: inherit;
  }

  .main-brands--item {
    flex: 0 1 20vw;
  }

  .cart-mini--prod-list {
    padding: 2.5vw;
  }

  .cart-mini--total-wrap {
    padding: 20px 2.5vw;
    max-width: calc(100% - 5vw);
  }
}

@media (max-width: 470px) {
  .main-slider.swiper {
    padding: 0 2.5vw 34px;
  }

  .tab-btn--wrap .tab-btn svg {
    width: 30px;
    height: 30px;
  }

  .footer-block--bottom {
    margin: 28px auto 68px;
  }

  .comments-wrap {
    margin: 36px 0;
  }

  .header-social,
  .badge-black-friday {
    display: none;
  }
}

@media (max-width: 409px) {
  .tab-btn--wrap .tab-btn {
    margin: 0 2px;
    padding: 10px 5px;
  }

  .tab-cont--row .tab-img {
    flex: 0 2 70px;
    margin-right: 0px;
  }

  .tab-btn--wrap .tab-btn svg {
    width: 26px;
    height: 26px;
  }

  .tab-btn--wrap .tab-btn svg {
    margin-right: 6px;
  }
}

@media (max-width: 404px) {

  .mega-menu--btn,
  .log-in--btn {
    padding: 10px 8px;
    margin: 0 5px 0 0;
  }

  .log-in--btn {
    margin: 0 0 0 5px;
  }

  /* Footer */
  .fb-title {
    padding: 0 5px;
    font-size: 14px;
  }

  .fb-sub-title {
    padding: 10px 0 0 5px;
    font-size: 13px;
  }

  .fb-link {
    padding: 6px 5px;
    font-size: 13px;
  }

  .search-panel {
    max-width: 100vw;
  }
}

@media (max-width: 374px) {
  .cart-mini.box-panel {
    padding: 0;
  }

  .cart-mini--prod-list {
    padding: 1vw;
  }

  .cart-mini--total-wrap {
    padding: 20px 1vw;
    max-width: calc(100% - 2vw);
  }

  .win-modal.win-login {
    max-width: calc(100% - 20px);
    margin: 0 auto;
  }

  .win-order-info {
    padding: 8px 0;
  }

  .tab-btn--wrap .tab-btn svg {
    width: 22px;
    height: 22px;
  }

  .header-btn {
    padding: 8px 10px;
  }

  .bar-icons--wrap {
    min-width: auto;
  }
}