html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

body {
  font-style: normal;
  font-size: 13px;
  font-family: "Cuprum", Arial, sans-serif;
}

a {
  text-decoration: none;
}

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

/* Стили заголовков */

.section-title {
  margin: 0;

  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
}

.section-title--colored {
  color: #32425c;
}

.products__title {
  margin: 0 30px;
  margin-top: 10px;
  margin-bottom: 5px;

  text-align: center;
}

.wrapper {
  width: 940px;
  margin: 0 auto;
}

.wrapper--row {
  display: flex;
}

/* Хэдер */

.header {
  display: flex;
  flex-direction: column;
  min-height: 320px;
  padding-bottom: 60px;

  background-color: #f4f7f9;
}

.header__top {
  margin-bottom: 46px;

  background-color: #293449;
}

.header__logo {
  width: 220px;
  min-height: 42px;
}

.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 220px;
  height: 42px;

  background-color: #ee3643;
  box-shadow: 0 5px 0 0 #b52933;
}

.header__logo .logo__image {
  width: 109px;
  height: 19px;
}

.footer__logo {
  height: 63px;
  margin-bottom: 32px;
}

.footer__logo .logo__image {
  width: 138px;
  height: 24px;
}


.logo:hover,
.logo:focus {
  background-color: #ca2c37;
  box-shadow: 0 5px 0 0 #9a212a;
}

.logo[href]:active {
  background-color: #ba2732;
  box-shadow: 0 5px 0 0 #8e1e26;
}

.header__search {
  flex-grow: 1;
}

.search-form {
  position: relative;

  display: flex;
}

.search-form__input {
  flex-grow: 1;
  padding-left: 49px;

  font-size: 17px;
  line-height: 18px;
  color: #000000;

  background-color: #293449;
  border: none;
}

.search-form__input::placeholder {
  color: #ffffff;

  opacity: 1;
}

.search-form__input:hover {
  background-color: #212a3a;
}

.search-form__input:focus {
  color: #000000;

  background-color: #ffffff;
}

.search-form__input:not(placeholder-shown) {
  color: #ffffff;
}

.search-form:hover .search {
  opacity: 1;
}

.search {
  fill: #ffffff;
}

.search-form__button {
  padding: 0 25px;

  font-size: 17px;
  line-height: 18px;
  color: #ffffff;

  background-color: transparent;
  border: none;
  cursor: pointer;
}

.search-form__input:focus + .search {
  opacity: 1;

  fill: #ee3643;
}

.search-form__button:hover,
.search-form__button:focus {
  background-color: #212a3a;
}

.search-form__button:active {
  color: rgba(255, 255, 255, 0.6);

  background-color: #161d29;
}

.user-navigation {
  display: flex;
  margin: 0;
  padding: 0;

  list-style: none;
}

.user-navigation__item {
  display: flex;
  min-width: 150px;
  height: 100%;
}

.user-navigation__button {
  position: relative;

  width: 100%;
  padding-top: 12px;
  padding-bottom: 12px;

  font-size: 17px;
  line-height: 18px;
  text-align: center;
  color: #ffffff;
  text-decoration: none;

  background-color: #293449;
}

.user-navigation__button--bookmarks {
  padding-left: 18px;
}

.user-navigation__button--cart {
  padding-left: 50px;

  text-align: left;
}

.header__icon {
  position: absolute;
  top: 12px;
  left: 18px;

  width: 17px;
  height: 17px;

  background-repeat: no-repeat;
  opacity: 0.3;
}

.cart {
  background-image: url("../img/icon-cart.svg");
}

.button--to-cart .cart {
  position: absolute;
  top: 11px;
  left: 14px;

  width: 17px;
  height: 17px;

  background-repeat: no-repeat;
  opacity: 0.3;
}

.bookmarks {
  left: 17px;

  width: 14px;
  height: 16px;

  background-image: url("../img/icon-bookmark.svg");
}

.user-navigation__button:hover,
.user-navigation__button:focus {
  background-color: #212a3a;
}

.user-navigation__button:hover .header__icon,
.user-navigation__button:focus .header__icon {
  opacity: 1;
}

.user-navigation__button:active .header__icon {
  opacity: 0.5;
}

.user-navigation__button:active {
  color: rgba(255, 255, 255, 0.6);

  background-color: #161d29;
}

.user-navigation__button--checkout {
  background-color: #63a63e;
}

.user-navigation__button--checkout:hover,
.user-navigation__button--checkout:focus {
  background-color: #5fbb2d;
}

.user-navigation__button--checkout:active {
  color: rgba(255, 255, 255, 0.5);

  background-color: #518534;
}

.user-navigation__button--cart-non-empty {
  background-color: #ee3643;
}

.user-navigation__button--cart-non-empty:hover,
.user-navigation__button--cart-non-empty:focus {
  background-color: #ca2c37;
}

.user-navigation__button--cart-non-empty:active {
  background-color: #ba2732;
}

.header__middle {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 39px;
  padding-left: 53px;
}

.header__site-description {
  align-self: center;
  width: 216px;
  margin: 0;
  margin-right: 51px;

  font-style: italic;
  font-size: 16px;
  line-height: 23px;
  color: #ee3643;
}

.header__contacts {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  min-width: 270px;
  margin: 0;
  margin-right: auto;
  padding: 0;

  list-style: none;
}

.header__contacts-item--box {
  position: relative;

  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 4px;

  border: solid 3px #ffffff;
}

.header__phone {
  margin-top: 9px;
  margin-bottom: 9px;
  margin-left: 19px;

  font-style: normal;
  font-size: 21px;
  line-height: 21px;
  color: #ee3643;
  text-decoration: none;
}

.header__address {
  margin: 0;
  padding: 0;

  font-style: normal;
  font-size: 14px;
  line-height: 24px;
  color: #32425c;
}

.header__contacts-item--box::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 12px;

  width: 19px;
  height: 19px;

  background: url("../img/icon-phone.svg") no-repeat;
}

.profile {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  max-width: 300px;
  margin: 0;
  padding: 0;

  list-style: none;
}

.profile__item {
  position: relative;
}

.profile__button {
  display: flex;
  align-items: center;
  min-width: 121px;
  height: 100%;
  padding-top: 12px;
  padding-bottom: 12px;

  font-size: 21px;
  line-height: 21px;
  font-family: "Cuprum", Arial, sans-serif;
  color: #000000;
  text-decoration: none;

  background-color: #ffffff;
}

.profile__button--sign-in {
  max-width: 121px;
  margin-right: 10px;
  padding-right: 15px;
}

.profile__button--sign-up {
  justify-content: center;
  width: 150px;
  padding-right: 15px;
  padding-left: 15px;

  text-align: center;
}

.profile__button--username {
  width: 259px;
}

.profile__button--sign-out {
  width: 40px;
  min-width: 40px;
  padding-right: 10px;
  padding-left: 10px;
}

.profile__button:hover,
.profile__button:focus {
  color: #ee3643;
}

.profile__button--username:hover,
.profile__button--username:focus {
  color: #000000;
}

.profile__button:active {
  color: rgba(0, 0, 0, 0.3);
}

.profile__icon {
  flex-shrink: 0;
  margin-right: 14px;

  fill: #c5c5c5;
}

.profile__icon--userpic {
  margin-top: -1px;
  margin-left: 13px;
}

.profile__icon--sign-in {
  margin-left: 14px;
}

.profile__button:hover .profile__icon,
.profile__button:focus .profile__icon {
  fill: #32425c;
}

.profile__button:active .profile__icon {
  fill: #c5c5c5;
}

.profile__link {
  display: inline-block;
  margin-top: 7px;
  margin-right: 15px;
  margin-left: 18px;

  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 18px;
  font-family: "Cuprum", Arial, sans-serif;
  vertical-align: middle;
  color: #32425c;
  text-decoration: none;
  font-stretch: normal;
  letter-spacing: normal;

  box-shadow: 0 -1px #f4f7f9 inset,
  0 -2px #32425c inset;
}

.profile__link {
  position: relative;
}

.profile__item:nth-of-type(4n)::before {
  content: "";
  position: absolute;
  top: 14px;
  left: 1px;

  width: 4px;
  height: 4px;

  font-size: 16px;

  background: #32425c;
  border-radius: 50%;
}

.profile__link:hover,
.profile__link:focus {
  color: #ee3643;

  box-shadow: 0 -1px #f4f7f9 inset,
  0 -2px #ee3643 inset;
}

.profile__link:active {
  color: rgba(50, 66, 92, 0.3);

  box-shadow: 0 -1px #f4f7f9 inset,
  0 -2px rgba(50, 66, 92, 0.3) inset;
}

.main-nav__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  padding-right: 23px;
  padding-left: 20px;

  list-style: none;
  font-size: 17px;
  line-height: 17px;

  background-color: #32425c;
  box-shadow: inset 0 -5px 0 0 #293449;
}

.main-nav__item {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
}

.main-nav__link {
  padding-top: 20px;
  padding-bottom: 23px;

  text-align: center;
  color: #ffffff;
  text-decoration: none;
}

.main-nav__link:hover,
.main-nav__link:focus {
  background-color: #293449;
}

.main-nav__link[href]:active {
  color: rgba(255, 255, 255, 0.5);
}

.companies-list {
  padding: 0;

  list-style: none;
  font-size: 18px;
  line-height: 20px;
}

.companies-list__item {
  position: relative;

  padding-bottom: 20px;
  padding-left: 36px;
}

.companies-list__item::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;

  width: 25px;
  height: 2px;

  background-color: #ee3643;
}

/* Main */

/*    Для каталога */

.main__wrapper {
  display: flex;
  flex-direction: column;
  width: 940px;
  margin: 0 auto;
}

.page-title {
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
}

/*    Для каталога */

.page-title__backdrop {
  display: flex;
  align-items: center;
  min-height: 89px;
  margin-bottom: 20px;
  padding-left: 28px;

  color: #32425c;

  background-color: #f2f6f8;;
}

.products {
  display: flex;
  flex-wrap: wrap;
  width: 700px;
  margin: 0;
  padding: 0;

  list-style: none;
}

.products__item {
  margin-right: 20px;
  margin-bottom: 20px;
}

.products__item:nth-child(3n) {
  margin-right: 0;
}

.product {
  position: relative;

  display: flex;
  flex-direction: column;
  width: 220px;
  min-height: 318px;
  padding-bottom: 20px;

  text-align: center;

  border: solid 1px #eaeaea;
}

.product:hover,
.product:focus {
  box-shadow: 0 10px 25px 0 rgba(41, 52, 73, 0.5);
}

.product__visuals {
  position: relative;

  order: -1;
  width: auto;

  line-height: 0;
}

.product__image {
  order: -1;
  max-width: 100%;
  height: auto;
}

.product__image--hidden {
  opacity: 0;
}

.product__title {
  margin-top: 9px;
  margin-bottom: 9px;
  padding: 0 25px;

  font-style: normal;
  font-weight: bold;
  font-size: 18px;
  line-height: 20px;
  font-family: "PT Sans", Arial, sans-serif;
  text-align: center;
  color: #000000;
}

.product__prices {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 66px;
  margin: 0;
  margin-top: auto;
  padding: 0;

  list-style: none;
}


.product__price {
  margin-bottom: 10px;

  font-weight: bold;
  font-size: 17px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
}

.product__price--old {
  margin-bottom: 10px;

  color: #999999;
  text-decoration: line-through;
}

.product__price--new {
  position: relative;

  width: 133px;
  margin: 0 auto;
  padding: 10px 20px;

  color: #ffffff;

  background-color: #ee3643;
  border-radius: 3px;
}

.product__price--new::after {
  content: "";
  position: absolute;
  top: 0;
  right: -26px;

  width: 0;
  height: 0;

  border: 19px solid #ffffff;
  border-left-color: #ee3643;
}

.product__link {
  color: #000000;
  text-decoration: none;
}

.action-buttons {
  position: absolute;
  top: 0;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;

  background-color: #ffffff;
  opacity: 0;
}

.action-buttons--show {
  opacity: 1;
}

.product:hover .action-buttons {
  opacity: 1;
}

.product__visuals:focus-within .action-buttons {
  opacity: 1;
}

.action-buttons__button {
  margin: 4px 0;
}

.button {
  display: inline-block;
  min-width: 135px;
  min-height: 38px;
  padding: 7px 20px;

  font-size: 14px;
  line-height: 18px;
  font-family: "Cuprum", Arial, sans-serif;
  vertical-align: middle;
  text-align: center;
  color: #ffffff;
  text-transform: uppercase;

  background-color: #ee3643;
  border: 3px solid transparent;
  border-radius: 3px;
  cursor: pointer;
}

.button--middle {
  min-width: 195px;
}

.button:hover,
.button:focus {
  background-color: #ca2c37;
}

.button:active {
  background-color: #ba2732;
}

.button--bookmark {
  color: #32425c;

  background-color: #ffffff;
  border-color: #63a63e;
}

.button--bookmark:hover,
.button--bookmark:focus {
  background-color: #ffffff;
  border-color: #32425c;
}

.button--bookmark:active {
  color: rgba(50, 66, 92, 0.3);

  background-color: #ffffff;
  border-color: rgba(50, 66, 92, 0.3);
}

.button--to-cart {
  position: relative;

  color: #ffffff;

  background-color: #63a63e;
  border: none;
  box-shadow: inset 0 -3px 0 0 #367315;
}

.button--to-cart:hover,
.button--to-cart:focus {
  background-color: #5fbb2d;
}

.button--to-cart:hover .cart,
.button--to-cart:focus .cart {
  opacity: 1;
}

.button--to-cart:active {
  background-color: #518534;
  box-shadow: none;
}

.tag {
  position: absolute;
  top: -1px;
  right: -1px;

  width: 60px;
  height: 59px;
  overflow: hidden;

  font-size: 0;
}

.promo__tag {
  top: 0;
  right: 0;
}

.tag-new {
  background-image: url("../img/new-flag.png");
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  max-width: 700px;
  margin-top: 32px;
  margin-right: 0;
  margin-bottom: 30px;
  margin-left: 0;
  padding: 0;

  list-style: none;
}

.pagination__item {
  margin-right: 10px;
  margin-bottom: 10px;
}

.pagination__button {
  display: inline-block;
  min-width: 38px;
  padding: 9px;

  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  vertical-align: middle;
  text-align: center;
  color: #000000;
  text-transform: uppercase;
  text-decoration: none;

  border: solid 1px #e5e5e5;
  border-radius: 3px;
}

.pagination__button--next {
  min-width: 140px;
}

.pagination__button:hover,
.pagination__button:focus {
  border-color: #bdc6ca;
  outline: none;
}

.pagination__button:active {
  border-color: #ee3643;
}

.pagination__button--current {
  color: #ffffff;

  background-color: #ee3643;
  border-color: transparent;
}
.pagination__button--current:hover {
  border-color: transparent;
}

/* Хлебные крошки */

.inner-navigation {
  order: -1;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  margin-top: 21px;
  margin-bottom: 20px;
  padding: 0;

  list-style: none;
  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
}

.breadcrumbs__link {
  color: #000000;
}

.breadcrumbs__item {
  position: relative;

  margin-right: 10px;
  margin-left: 30px;
}

.breadcrumbs__item::before {
  content: "";
  position: absolute;
  top: 2px;
  left: -22px;

  width: 8px;
  height: 12px;

  background-image: url("../img/icon-right-small.svg");
  background-repeat: no-repeat;
}

.breadcrumbs__link--home {
  display: inline-block;
  width: 14px;
  height: 12px;

  vertical-align: middle;

  background-image: url("../img/icon-home.svg");
  background-repeat: no-repeat;
}

.breadcrumbs__item:first-child::before {
  display: none;
}
.breadcrumbs__item:first-child {
  margin-left: 0;
}

.brands {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  margin-bottom: 65px;
  padding: 0;

  list-style: none;
}

.popular-brands__title {
  color: #32425c;
}

.popular-products__list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;

  list-style: none;
}

.popular-products__item {
  margin-right: 20px;
  margin-bottom: 20px;
}

.popular-products__item:nth-child(4n) {
  margin-right: 0;
}

.section__wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-top: 26px;
  padding-right: 24px;
  padding-bottom: 25.5px;
  padding-left: 28px;

  background-color: #f9f5f0;
}

.button--to-all {
  min-width: 253px;
}

.brands__item {
  display: flex;
  min-width: 220px;
  min-height: 145px;
  margin-right: 20px;
  margin-bottom: 20px;

  border: solid 1px #eaeaea;
}

.brands__item:nth-child(4n) {
  margin-right: 0;
}

.brands__link {
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
}

.brands__link:hover,
.brands__link:focus {
  outline: none;
  box-shadow: 0 10px 25px 0 rgba(41, 52, 73, 0.5);
}

.brands__link:active {
  box-shadow: 0 4px 10px 0 rgba(41, 52, 73, 0.5);
  opacity: 0.3;
}

.brands__image {
  margin: auto;
}

.services {
  padding-top: 65px;

  background-color: #f4f7f9;
}

.services__wrapper {
  width: 940px;
  margin-right: auto;
  margin-left: auto;
}

.slider-wrapper {
  display: flex;
}

.services__title {
  margin-top: 0;
  margin-bottom: 26px;

  font-weight: normal;
  font-size: 30px;
  line-height: 1;
  font-family: "Cuprum", Arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
}

.services__paragraph {
  display: flex;
  flex-direction: column;
  width: 400px;
  margin-bottom: 24px;

  font-size: 13px;
  line-height: 1.85;
  font-family: "PT Sans", Arial, sans-serif;
  color: #000000;
}

.slider-controls {
  position: relative;

  display: flex;
  flex-direction: column;
  width: 240px;
  margin: 0;
  padding: 0;
  padding-top: 45px;
  padding-bottom: 46px;
}

.slider-controls::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;

  width: 10px;
  height: 279px;

  background-image: url("../img/shadow.png");
  background-repeat: no-repeat;
}

.slider-controls__item {
  max-width: 240px;
  padding-top: 14px;
  padding-bottom: 18px;
  padding-left: 22px;

  font-style: normal;
  font-weight: bold;
  font-size: 21px;
  line-height: 1.43;
  font-family: "Cuprum", Arial, sans-serif;
  text-align: left;
  color: #ffffff;
  letter-spacing: normal;

  background-color: #32425c;
  box-shadow: 0 -1px 0 0 #293449 inset, inset 0 1px 0 0 #405069;
  cursor: pointer;
}

.slider-controls__item:hover {
  background-color: #293449;
}

.slider-list {
  flex-grow: 1;
  min-height: 316px;
  margin-bottom: 0;
  padding-left: 80px;

  list-style: none;

  background-repeat: no-repeat;
  background-position: bottom right;
}

.service-slide {
  display: none;
}

.service-slide__title {
  margin-top: 30px;
  margin-bottom: 25px;

  font-weight: normal;
  font-size: 36px;
  line-height: 1;
  font-family: "Cuprum", Arial, sans-serif;
  color: #32425c;
  text-transform: uppercase;
  letter-spacing: normal;
}

/* Применение фона при активном инпуте */

.slide-1:checked ~ .slider-list {
  background-image: url("../img/delivery.png");
}

.slide-2:checked ~ .slider-list {
  background-image: url("../img/guarantee.png");
}

.slide-3:checked ~ .slider-list {
  background-image: url("../img/credit.png");
}

/* Отображение слайдов при активном инпуте */

.slide-1:checked ~ .slider-list .slide-1,
.slide-2:checked ~ .slider-list .slide-2,
.slide-3:checked ~ .slider-list .slide-3 {
  display: block;
}

/* Стилизация состояний лейблов */

.slide-1:checked ~ .slider-controls label[for="slide-1"],
.slide-2:checked ~ .slider-controls label[for="slide-2"],
.slide-3:checked ~ .slider-controls label[for="slide-3"] {
  color: #32425c;

  background-color: #ffffff;
  box-shadow: none;
}

/* Базовый аутлайн */

.slide-1:focus ~ .slider-controls label[for="slide-1"],
.slide-2:focus ~ .slider-controls label[for="slide-2"],
.slide-3:focus ~ .slider-controls label[for="slide-3"] {
  outline: 1px dotted gray;
}

.about-us {
  width: 640px;
  min-height: 536px;
  padding-top: 79px;
  padding-right: 40px;
  padding-bottom: 40px;
}

.about-us__title {
  margin-bottom: 26px;
}

.about-us__paragraph {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  margin-bottom: 20px;

  line-height: 24px;
  font-family: "PT Sans", Arial, sans-serif;
  word-spacing: 1px;
}

.companies-list {
  margin: 10px 0;

  font-size: 18px;
  line-height: 20px;
}

.about-us__button {
  min-width: 220px;
  margin-top: 7px;
  margin-bottom: 45px;
}

.contact {
  width: 300px;
  padding-top: 79px;
  padding-bottom: 40px;
}

.contact__title {
  margin-bottom: 26px;
}

.contact__paragraph {
  display: flex;
  flex-direction: column;
  margin-top: 24px;
  margin-bottom: 20px;

  line-height: 24px;
  font-family: "PT Sans", Arial, sans-serif;
}

.contact__button {
  width: 100%;
  margin-top: 40px;
}

.about-product {
  min-height: 261px;

  background-color: #f4f7f9;
}

.about-product__wrapper {
  width: 940px;
  margin: 0 auto;
  padding-top: 65px;
  padding-bottom: 45px;
}

.about-product__title {
  margin-bottom: 26px;

  word-spacing: 1px;
}

.about-product__paragraph {
  margin: 0;
  padding: 0;
  padding-bottom: 20px;

  line-height: 24px;
  font-family: "PT Sans", Arial, sans-serif;
  word-spacing: 40%;
}

/* Футер */

.footer {
  display: flex;
  flex-direction: column;
  min-height: 300px;

  font-style: normal;
  font-size: 18px;
  line-height: 24px;
  color: #ffffff;

  background-color: #32425c;
}

.footer__wrapper {
  display: flex;
  justify-content: space-between;
  width: 940px;
  margin: 0 auto;
  margin-bottom: 50px;
}

.footer__wrapper--left {
  min-width: max-content;
}

.footer__wrapper--bottom {
  align-items: center;
  margin-bottom: 0;
  padding-right: 15px;
  padding-left: 1px;
}

.footer__paragraph {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.footer__links {
  display: flex;
  justify-content: space-between;
  min-width: 284px;
}

.footer__paragraph--copyright {
  min-width: 270px;
}

.footer__feedback {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
  padding-right: 52px;
}

.footer__developed-by {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 0;
}

.footer__contacts {
  margin: 0;
  padding: 0;
  padding-left: 3px;

  list-style: none;
  font-style: normal;
  line-height: 24px;
}

.footer__bottom {
  padding-top: 35px;
  padding-bottom: 30px;

  font-size: 16px;
  line-height: 18px;

  background-color: #293449;
}

.footer__address {
  margin: 0;
  padding: 0;
}

.footer__phone {
  color: #ffffff;
}

.footer__nav {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  margin: 0;
  margin-top: 20px;
  padding: 0;

  list-style: none;
}

.footer__nav-row {
  margin: 0;
  padding: 0;
}

.footer__nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
}

.footer__nav-item {
  margin-top: 17px;
  margin-bottom: 17px;
  margin-left: 60px;

  list-style: none;
}

.footer__nav-item:first-of-type {
  margin-left: 0;
}

.footer__nav-link {
  font-size: 18px;
  line-height: 24px;
  color: #f1f5f7;
}

.footer__nav-link:hover,
.footer__nav-link:focus {
  text-decoration: underline;
}

.footer__nav-link:active {
  color: rgba(241, 245, 247, 0.5);
  text-decoration: none;
}

.footer__nav-link--colored {
  color: #ffd180;
}

.footer__nav-link--colored:active {
  color: rgba(255, 209, 128, 0.5);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  min-width: 132px;
  margin: 0;
  padding: 0;

  list-style: none;
}

.socials__item {
  margin: 0;
  margin-right: 3px;
  padding: 0;

  list-style: none;
}

.socials__item:last-child {
  margin-right: 0;
}

.socials__link {
  display: inline-block;
  width: 42px;
  height: 42px;

  vertical-align: middle;

  background-color: #212a3a;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 50%;
}

.socials__link--vk {
  background-image: url("../img/icon-vk.svg");
}

.socials__link--fb {
  background-image: url("../img/icon-fb.svg");
}

.socials__link--ig {
  background-image: url("../img/icon-inst.svg");
}

.socials__link:hover,
.socials__link:focus {
  background-color: #ee3643;
}

.feedback__link,
.feedback__copyright-link {
  color: #ffd180;
}

.feedback__link:hover,
.feedback__copyright-link:hover,
.feedback__link:focus,
.feedback__copyright-link:focus {
  text-decoration: underline;
}

.feedback__copyright-link:active,
.feedback__link:active {
  color: #ee3643;
  text-decoration: none;
}

.catalog-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
}

.sorting {
  display: flex;
  align-items: center;
  width: 700px;
  min-height: 38px;
  margin-bottom: 20px;
  padding-right: 17px;

  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;

  background-color: #f7f3ec;
  border-radius: 4px;
}

.sorting__title {
  flex-shrink: 0;
  width: 240px;
  margin-top: 10px;
  margin-bottom: 10px;
  padding-left: 19px;

  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  text-transform: uppercase;
}

.sorting__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 355px;
  margin: 0;
  padding: 0;

  list-style: none;
}

.sorting__item {
  margin-top: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
}

.sorting-order {
  display: flex;
  flex-shrink: 0;
  justify-content: space-between;
  width: 43px;
  margin: 0;
  margin-left: auto;
  padding: 0;

  list-style: none;
}

.sorting__property {
  color: rgba(0, 0, 0, 0.3);
  text-transform: uppercase;

  border-bottom: 1px dotted #ee3643;
}

.sorting__item:first-of-type {
  margin-left: 0;
}

.sorting__item:last-of-type {
  margin-right: 0;
}

.order {
  fill: #c5c5c5;
}

.order--current {
  fill: #ee3643;
}

.order-descending {
  transform: rotate(180deg);
}

.sorting__property:hover,
.sorting__property:focus {
  color: rgba(0, 0, 0, 1);

  border-bottom: 1px solid #ee3643;
}

.sorting__property:active {
  color: #ee3643;

  border: none;
}

.sorting__property--current {
  color: #ee3643;

  border-bottom: none;
}

/* Промо-блок */

.promo {
  position: relative;

  padding-top: 59px;
  padding-bottom: 33px;
}

.promo__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin: 0;
  padding: 0;

  list-style: none;
}

.promo__item:first-child,
.promo__item:nth-child(3n+6) {
  margin-left: 0;
}

.promo__item:nth-child(4),
.promo__item:nth-child(5) {
  margin-left: 600px;
}

.promo__item {
  position: relative;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  min-width: 300px;
  min-height: 123px;
  margin-bottom: 20px;
  margin-left: 20px;
  padding-top: 10px;
  padding-right: 25px;
  padding-bottom: 15px;
  padding-left: 20px;

  color: #ffffff;

  background-repeat: no-repeat;
}

.promo__item-title {
  max-width: 150px;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: 3px;

  font-weight: bold;
  font-size: 24px;
  line-height: 30px;
  font-family: "Cuprum", Arial, sans-serif;
  color: #ffffff;
}

.promo__item--materials {
  background-color: #ffbf47;
  background-image: url("../img/icon-bucket.svg");
  background-position: center right 43px;
}

.promo__item--tools {
  background-color: #3bbce3;
  background-image: url("../img/icon-drill.svg");
  background-position: center right 28px;
}

.promo__item--machinery {
  background-color: #dc91d8;
  background-image: url("../img/icon-bulldozer.svg");
  background-position: center right 31px;
}

.promo__item--discounts {
  background-color: #8ed78f;
  background-image: url("../img/icon-discount-cart.svg");
  background-position: center right 45px;
}

.promo__item--delivery {
  background-color: #ffc047;
  background-image: url("../img/icon-delivery-truck.svg");
  background-position: center right 31px;
}

.promo__item-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 135px;
  max-width: 145px;
  margin-bottom: 7px;
  margin-left: 5px;
  padding-top: 10px;
  padding-right: 22px;
  padding-bottom: 10px;
  padding-left: 22px;

  font-size: 14px;
  line-height: 18px;
  font-family: "Cuprum", Arial, sans-serif;
  color: #ffffff;
  text-transform: uppercase;

  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 3px;
  opacity: 1;
}

.promo__item:nth-of-type(3n+5) .promo__item-link,
.promo__item:nth-of-type(3) .promo__item-link,
.promo__item:nth-of-type(4) .promo__item-link {
  margin-left: 3px;
}

.promo__item-link:focus,
.promo__item-link:hover {
  background-color: rgba(0, 0, 0, 0.2);
}

.promo__item-link:active,
.promo__item-link:active {
  background-color: rgba(0, 0, 0, 0.3);
}

/* Промо-слайдер */

.carousel {
  position: absolute;
  top: 202px;
  left: 0;

  width: 620px;
  height: 266px;
  margin: 0 auto;
}

.carousel__image {
  width: 100%;
  height: 100%;

  object-fit: cover;
}

.carousel__track-container {
  position: relative;

  height: 100%;
  overflow: hidden;

  background-color: lightgreen;
}

.carousel__track {
  position: relative;

  height: 100%;
  margin: 0;
  padding: 0;

  list-style: none;
}

.carousel__slide {
  position: absolute;
  top: 0;
  bottom: 0;

  width: 100%;

  background-color: #000000;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 1;

  width: 22px;
  height: 40px;
  padding: 0;

  font-size: 0;

  background-color: transparent;
  background-image: url("../img/icon-arrow.svg");
  background-repeat: no-repeat;
  background-position: center;
  border: none;
  transform: translateY(-50%);
  cursor: pointer;
}

.carousel__button:focus {
  outline: 2px solid #ee3643;
  outline-offset: 5px;
}

.carousel__button--previous {
  left: 25px;
}

.carousel__button--next {
  right: 20px;

  transform: rotate(180deg) translateY(50%);
}

.carousel__link {
  position: absolute;
  bottom: 22px;
  left: 25px;
}

.slide__content {
  position: absolute;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  padding-bottom: 22px;
  padding-left: 25px;

  color: #ffffff;
}

.slide__title {
  margin-top: 22px;
  margin-bottom: 3px;

  font-size: 36px;
  line-height: 1;
  font-family: "Cuprum", Arial, sans-serif;
  color: #ffffff;
  text-transform: uppercase;
}

.slide__paragraph {
  margin: 0;

  font-size: 18px;
  line-height: 1.33;
  font-family: "Cuprum", Arial, sans-serif;
  color: #ffffff;
}

.carousel__nav {
  position: absolute;
  bottom: 36px;
  left: 50%;
  z-index: 1;

  display: flex;
  justify-content: center;

  transform: translateX(-50%);
}

.carousel__indicator {
  width: 10px;
  height: 10px;
  margin-right: 5px;
  margin-left: 5px;
  padding: 0;

  font-size: 0;

  background-color: #ffffff;
  border: 0;
  border: 2px solid transparent;
  border-radius: 50%;
  cursor: pointer;
}

.carousel__indicator.current-slide {
  background-color: #ee3643;
  border-color: #ffffff;
}

.is-hidden {
  display: none;
}

/* Фильтр */

.filter {
  width: 220px;
  margin-right: 20px;
}

.filter__title-backdrop {
  display: flex;
  min-height: 38px;
  margin-bottom: 12px;
  padding-left: 18px;

  background-color: #f7f3ec;
  border-radius: 4px;
}

.price-input__wrapper {
  position: relative;

  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 21px;
}

.filter__title {
  margin-top: 10px;
  margin-bottom: 10px;

  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.slider {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 80px;
  margin-top: 2px;
  margin-bottom: 9px;

  background-color: #f7f3ec;
  border-radius: 4px;
}

.slider__range {
  width: 180px;
  height: 2px;

  background: linear-gradient(to right,
  #07ca7c 0, #07ca7c 83%,
  #d7dcde 0, #d7dcde 100%
  );
}

.slider__control {
  width: 20px;
  height: 20px;

  background: rgb(255,255,255);
  background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(171,171,171,1) 0%, rgba(171,171,171,1) 2px, rgba(255,255,255,1) 2px, rgba(255,255,255,1) 100%);
  border: none;
  border-radius: 50%;
  box-shadow: 0 2px 0 #e2e3de;
  cursor: pointer;
}

.slider__control--start {
  position: relative;
  left: 20px;
}

.slider__control--end {
  position: relative;
  right: 40px;
}

.option {
  margin-bottom: 17px;
}

.check {
  position: relative;

  display: flex;
  align-items: center;
  min-height: 23px;

  font-size: 15px;
  line-height: 20px;
  font-family: "PT Sans", Arial, sans-serif;
  text-transform: uppercase;

  cursor: pointer;
}

.check__box {
  width: 27px;
  height: 23px;
  margin-right: 7px;

  background-image: url("../img/checkbox-off.svg");
  background-repeat: no-repeat;
}

.check__box::after {
  content: "";

  width: 0;
  height: 0;

  background-image: url("../img/slider-image-hammer-drill.jpg");
  visibility: hidden;
}

.check:hover .check__box,
.check__input:focus + .check__box {
  background-image: url("../img/checkbox-off--focused.svg");
}

.check__input:checked + .check__box {
  background-image: url("../img/checkbox-on.svg");
}

.check__input:checked:hover + .check__box,
.check__input:checked:focus + .check__box {
  background-image: url("../img/checkbox-on--focused.svg");
}

.check__input:disabled + .check__box {
  background-image: url("../img/checkbox-off--disabled.svg");
}

.check__input:checked:disabled + .check__box {
  background-image: url("../img/checkbox-on--disabled.svg");
}

.radio {
  position: relative;

  display: flex;
  align-items: center;

  font-size: 15px;
  line-height: 20px;
  font-family: "PT Sans", Arial, sans-serif;
  text-transform: uppercase;

  cursor: pointer;
}

.radio__box {
  width: 25px;
  height: 25px;
  margin-right: 10px;

  background-image: url("../img/radio-off.svg");
  background-repeat: no-repeat;
}

.radio__input:checked + .radio__box {
  background-image: url("../img/radio-on.svg");
}

.radio:hover .radio__box,
.radio__input:focus + .radio__box {
  background-image: url("../img/radio-off--focused.svg");
}

.radio__input:checked:hover + .radio__box,
.radio__input:checked:focus + .radio__box {
  background-image: url("../img/radio-on--focused.svg");
}

.radio__input:disabled + .radio__box {
  background-image: url("../img/checkbox-off--disabled.svg");
}

.radio__input:checked:disabled + .radio__box {
  background-image: url("../img/radio-on--disabled.svg");
}

.group-title {
  margin-bottom: 11px;
  padding: 0;

  font-weight: bold;
  font-size: 17px;
  line-height: 30px;
  font-family: "PT Sans", Arial, sans-serif;
  text-transform: uppercase;
}

.group-title--price {
  letter-spacing: 0.5px;
}

.filter-form__price-input {
  width: 95px;
  height: 38px;
  padding-right: 7px;
  padding-left: 12px;

  font-size: 17px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  text-align: center;
  color: #000000;

  background-color: #f7f3ec;
  border: none;
  border-radius: 4px;
}

.filter-form__price-input--till {
  padding-right: 8px;
  padding-left: 10px;
}

.divider {
  width: 9px;
  height: 1px;
  margin-right: auto;
  margin-left: auto;

  background-color: #444444;
}

.filter-form__label {
  position: relative;

  display: flex;
  align-items: center;
  margin-top: 7px;
  margin-bottom: 12px;

  font-size: 15px;
  line-height: 20px;
  font-family: "PT Sans", Arial, sans-serif;
  color: #000000;
  text-transform: uppercase;
}

.filter-form__group {
  display: flex;
  flex-direction: column;
  align-items: start;
  margin: 0;
  margin-bottom: 18px;
  padding: 0;
  padding-bottom: 4px;

  border: none;
  border-bottom: 1px solid #e5e5e5;
}

.filter-form__group:last-of-type {
  border-bottom: none;
}

.filter-form__submit {
  min-width: 140px;
  margin-top: 33px;
  padding-top: 10px;

  font-size: 13px;
  line-height: 18px;
  font-family: "PT Sans", Arial, sans-serif;
  color: #000000;

  background-color: #ffffff;
  border: 1px solid #e5e5e5;
}

.filter-form__submit:hover,
.filter-form__submit:focus {
  background-color: #ffffff;
  border-color: #bdc6ca;
}

.filter-form__submit:active {
  background-color: #ffffff;
  border-color: #ee3643;
}

/* Карта */

.modal-map {
  position: fixed;
  top: calc(50vh - 223px);
  left: 50%;

  display: block;
  margin-left: -470px;

  font-size: 0;
  line-height: 0;

  background-color: #565656;
  box-shadow: 0 0 14.7px 1.3px rgba(47, 42, 43, 0.5);
}

.modal-map__iframe {
  position: absolute;

  border: none;
}

.map__link {
  display: inline-block;
  margin-top: 11px;

  line-height: 0;
  vertical-align: middle;
}

.close-button {
  position: absolute;
  top: 14px;
  right: 8px;

  width: 25px;
  height: 25px;
  margin: 0;
  padding: 0;

  background-color: transparent;
  border: none;
  cursor: pointer;
}

.close-button::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;

  width: 25px;
  height: 3px;

  background-color: #ee3643;
  transform: rotate(45deg);
}

.close-button::after {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;

  width: 25px;
  height: 3px;

  background-color: #ee3643;
  transform: rotate(-45deg);
}

/* Форма обратной связи */

.feedback-form {
  position: relative;
  top: calc(50vh - 215px);
  left: 50%;

  display: flex;
  flex-direction: column;
  width: 620px;
  min-height: 430px;
  margin-left: -310px;
  padding-top: 55px;
  padding-right: 80px;
  padding-bottom: 37px;
  padding-left: 80px;

  background-color: #ffffff;
  box-shadow: 0 20px 40px 0 rgba(0, 0, 0, 0.75),
  0 7px 0 0 #ee3643 inset;
}

.feedback-form__contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.feedback-form__field {
  display: flex;
  flex-direction: column;
}

.feedback-form__field--resizable {
  flex-grow: 1;
}

.feedback-form__caption {
  margin-bottom: 8px;

  font-size: 18px;
  line-height: 18px;
  font-family: "Cuprum", Arial, sans-serif;
}

.feedback-form__input {
  min-width: 220px;
  min-height: 38px;
  margin-bottom: 22px;
  padding-left: 16px;

  font-family: "PT Sans", Arial, sans-serif;

  border: solid 2px #dee3e4;
  border-radius: 3px;
}

.feedback-form__input--message {
  flex-grow: 1;
  min-height: 114px;
  margin-bottom: 37px;
  padding-top: 10px;
  padding-bottom: 10px;

  resize: none;
}

.feedback-form__input::placeholder {
  color: #a9a9a9;
}

.feedback-form__input:hover {
  border-color: #b5b5b5;
}

.feedback-form__input:focus {
  border-color: #ee3643;
  outline: none;
}

.feedback-form__button {
  width: 100%;
  margin-top: 37px;
  padding: 0;
}

/* Анимация формы обратной связи */

@keyframes bounce {
  0% {
    transform: translateY(-2000px);
  }

  70% {
    transform: translateY(30px);
  }

  90% {
    transform: translateY(-10px);
  }

  100% {
    transform: translateY(0);
  }
}

/* Анимация после ввода некорректных данных */

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: translateX(-10px);
  }

  20%,
  40%,
  60%,
  80% {
    transform: translateX(10px);
  }
}


/* Модальное окно добавления товара в корзину */

.added-to-cart {
  position: fixed;
  top: calc(50vh - 141px);
  left: 50%;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 620px;
  min-height: 282px;
  margin-left: -310px;

  font-family: "Cuprum", Arial, sans-serif;

  background-color: #ffffff;
  box-shadow: 0 20px 40px 0 rgba(41, 52, 73, 0.75),
  0 7px 0 0 #ee3643 inset;
}

.modal-message {
  height: 170px;
  margin: 0;
  padding-top: 75px;

  font-size: 30px;
  line-height: 30px;
  text-align: center;
  text-indent: 54px;
}

.modal-message::before {
  content: "";
  position: absolute;
  top: 55px;
  left: 81px;

  width: 66px;
  height: 66px;

  background-image: url("../img/icon-modal-success.svg");
}

.added-to-cart__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-top: 37px;
  padding-right: 80px;
  padding-bottom: 17px;
  padding-left: 80px;

  background-color: #f1f1f1;
}

.added-to-cart__button {
  min-width: 220px;
  margin-right: 20px;
  margin-bottom: 20px;
}

.added-to-cart__button:nth-of-type(2n) {
  margin-right: 0;
}

.close-modal-button {
  color: #000000;

  background-color: #ffffff;
}

.close-modal-button:hover,
.close-modal-button:focus {
  background-color: #ffffff;
  border-color: #ee3643;
}


.added-to-cart--show {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;

  animation: bounce 0.6s;
}

.modal-windows__title {
  height: 0;

  font-size: 0;
}

.modal {
  position: fixed;

  display: none;
}

.modal-show {
  display: block;

  animation: bounce 0.6s;
}

.modal-error {
  animation: shake 0.6s;
}

/* Скрывает доступно */

.visually-hidden {
  position: absolute;

  width: 1px;
  height: 1px;
  overflow: hidden;

  white-space: nowrap;

  clip: rect(1px 1px 1px 1px);
  clip: rect(1px, 1px, 1px, 1px);
}
