@media (max-width: 1150px) {
	h2.flag {
		line-height: 30px;
		padding: 10px 40px;
	}
	.header-middle {
		position: relative;
		z-index: 11;
	}
	.header-middle-wrapper {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: center;
		align-items: center;
		justify-content: flex-start;
	}
	.hamburger {
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
	}
	.custom-nav-container {
		position: relative;
		z-index: 10;
		justify-content: flex-start;
	}
	.custom-nav-wrapper {
		display: block;
		height: auto;
		width: auto;
		background-color: var(--red);
		position: absolute;
		top: 100%;
		left: 0;
		padding: 30px 20px 20px;
		width: 100%;
		max-width: 400px;
		transition: transform .4s;
		transform: translateX(-100%);
	}
	.menu-is-open .custom-nav-wrapper {
		transform: translateX(0);
	}
	ul.top-menu {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
	}
	ul.top-menu li {
		margin-bottom: 25px;
	}
	.custom-nav-container a {
		font-size: 20px;
	}
	.header-catalog-child {
		display: none;
	}
	.header-catalog-wrapper {
			visibility: hidden!important;
			opacity: 0!important;
			transition: opacity .3s 0s, visibility 0s .3s!important;
	}
	.header-catalog-is-open .header-catalog-wrapper,
	.bx-no-touch .header-catalog-container:hover .header-catalog-wrapper {
			opacity: 1!important;
			visibility: visible!important;
			transition: opacity .3s 0s, visibility 0s 0s!important;
	}
	.basket-container {
		position: absolute;
		top: calc(100% + 2px);
		right: 20px;
	}
	.basket-total-price {
		color: var(--white);
	}
	.basket-link path {
		fill: var(--white)!important;
	}
	.basket-count-description {
		background-color: var(--white);
		color: var(--black);
	}
	.header-phones p {
		position: absolute;
		height: 50px;
		top: 100%;
		text-align: left;
		left: 50%;
		transform: translateX(-50%);
		display: -webkit-flex;
		display: -moz-flex;
		display: -ms-flex;
		display: -o-flex;
		display: flex;
		-ms-align-items: center;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
	.header-phones p a {
		color: var(--white);
	}
	.header-address p {
		font-size: 14px;
		margin-bottom: 15px;
	}
	.header-address, .header-phones {
		-ms-align-self: center;
		align-self: center;
		justify-content: center;
		-ms-align-items: center;
		align-items: center;
		text-align: center;
	}
	.header-address .custom-button, .header-phones .custom-button {
		margin-top: 0;
	}
	.header-address, .header-phones {
		padding-top: 15px;
		padding-bottom: 0;
	}
	.logo {
		width: 200px;
		font-size: 15px;
	}
	.logo img {
		width: 100%;
		height: auto;
	}

	.main-categories-wrapper {
		max-width: 800px;
	}
	.main-category {
		-webkit-flex-direction: row;
		-moz-flex-direction: row;
		-ms-flex-direction: row;
		-o-flex-direction: row;
		flex-direction: row;
		justify-content: flex-start;
		-ms-align-items: center;
		align-items: center;
		width: 100%;
		margin-right: 0;
	}
	.main-category img {
		margin-right: 20px;
		height: 70px;
		width: 100px;
	}
	.main-category h3 {
		font-size: 16px;
		line-height: 18px;
		text-align: left;
	}

	.bottom-menu {
		display: none;
	}
}

@media (max-width: 1000px) {
	h2.flag {
		font-size: 20px;
		padding: 10px 30px;
		line-height: 25px;
	}
	.header-bottom {
		padding-top: 20px;
	}
	.header-bottom-wrapper {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: stretch;
		align-items: stretch;
		height: 100px;
	}
	.products-slider {
		-ms-align-self: center;
		align-self: center;
		max-width: 960px;
	}
	.product-item {
    width: calc((100% - 20px) / 3);
    min-width: calc((100% - 20px) / 3);
	}
	.product-item:nth-of-type(4n) {
		margin-right: 10px;
	}
	.product-item:nth-of-type(3n) {
		margin-right: 0px;
	}
	.search-form {
		order: -1;
		height: 45px;
		width: 100%;
		flex-grow: unset;
	}
	.header-catalog-container {
		height: 45px;
		width: 100%;
		min-width: 100%;
		flex-grow: unset;
		margin-right: 0;
	}

	.main-banner {
		margin-top: -120px;
	}

	.advantage {
		width: 100%;
		padding: 0;
		margin-bottom: 20px;
		justify-content: center;
	}

	.main-form-container .subheader,
	.main-form-text h2 {
		font-size: 25px;
	}

	.category-item {
    width: calc((100% - 36px) / 3);
  }

  .catalog-element-top {
  	-webkit-flex-direction: column;
  	-moz-flex-direction: column;
  	-ms-flex-direction: column;
  	-o-flex-direction: column;
  	flex-direction: column;
  	-ms-align-items: flex-start;
  	align-items: flex-start;
  }
  .product-item-detail-right {
  	padding-left: 0;
  	padding-top: 30px;
  }
  .product-item-detail-slider-container {
  	width: 100%;
  	max-width: 450px;
  }
  .product-item-detail-slider-image img {
  	max-height: 99%;
  }
}

@media (max-width: 900px) {
	.footer-top-wrapper {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: center;
		align-items: center;
		text-align: center;
	}
	.footer-info {
		-ms-align-items: center;
		align-items: center;
		text-align: center;
		margin-top: 25px;
		margin-bottom: 25px;
	}
	.footer-contacts {
		-ms-align-items: center;
		align-items: center;
		text-align: center;
	}
	.close-custom-popup, .popup-window-titlebar-close-icon {
		top: 10px;
		right: 10px;
	}
	.close-custom-popup:after, .close-custom-popup:before, .popup-window-titlebar-close-icon:after, .popup-window-titlebar-close-icon:before {
		background-color: var(--black);
	}
	.main-banner-panels {
		display: none;
	}
	.main-banner {
		min-height: 0;
		max-height: unset;
		height: auto;
	}
	.main-banner-header {
		font-size: 30px;
	}
	.main-banner-container {
		padding-top: 140px;
		height: auto;
	}
	.main-banner-container ul {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: center;
		align-items: center;
		justify-content: center;
	}
	.main-banner-container li {
		width: auto;
	}
	
	.main-text-container {
		margin-bottom: 40px;
	}
	.main-categories-container {
		margin-bottom: 0;
	}

	.main-categories-wrapper {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: stretch;
		align-items: stretch;
		max-width: 450px;
	}
	.main-categories-inner {
		width: 100%;
		margin-bottom: 25px;
	}
	.products-slider {
		max-width: 640px;
	}
	.product-item {
		width: calc((100% - 10px) / 2);
		min-width: calc((100% - 10px) / 2);
	}
	.product-item:nth-of-type(3n) {
		margin-right: 10px;
	}
	.product-item:nth-of-type(2n) {
		margin-right: 0px;
	}
	.catalog-top {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: flex-start;
		align-items: flex-start;
	}
	div.modern-page-navigation a, span.modern-page-current, span.modern-page-dots {
		margin-left: 0;
		margin-right: 20px;
	}
}

@media (max-width: 650px) {
	.inputs-row {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
	}
	.inputs-row .input-wrapper {
		width: 100%;
	}
	.basket-total-price {
		display: none;
	}
	.advantage img {
		width: 60px;
		height: 60px;
	}
	.custom-inputs textarea {
		height: 90px;
	}
	.category-item {
    width: calc((100% - 24px) / 2);
  }
}
@media (max-width: 550px) {
	.product-items {
		justify-content: center;
	}
	.product-item {
    width: 100%;
    min-width: unset;
    max-width: 320px;
	}
	.product-item.custom-slide {
		min-width: 100%;
	}
	.product-items .product-item {
    margin-right: 0!important;
	}
	.products-slider {
		max-width: 320px;
	}
	.categories {
		-webkit-flex-direction: column;
		-moz-flex-direction: column;
		-ms-flex-direction: column;
		-o-flex-direction: column;
		flex-direction: column;
		-ms-align-items: center;
		align-items: center;
	}
	.category-item {
		width: 100%;
		max-width: 360px;
  }
}