/* Variables */

:root {
  --basic-blue: #293449;
  --basic-blue2: #32425c;
  --basic-red: #ee3643;
  --basic-green: #63a63e;
  --basic-grey: #f9f5f0;
  --basic-greylight: rgba(197, 197, 197, 0.3);
  --basic-grey2: rgba(0, 0, 0, 0.0001);
  --basic-orange: #ffbf47;
  --basic-white: #ffffff;
  --basic-black: #000000;

  --special-light-blue: #3bbce3;
  --special-pink: #dc91d8;
  --special-green: #8ed78f;
  --special-green2: #367315;
  --special-green3: #5fbb2d;
  --special-green4: #518534;
  --special-blue4: #1d2739;
  --special-orange: #ffd180;
  --special-orange2: #ffc047;
  --special-blue2: linear-gradient(0deg, #212a3a, #212a3a);
  --special-blue3: #405069;
  --special-black: #161d29;
  --special-grey: rgba(169, 169, 169, 0.3);
  --special-greylight: #f1f5f7;
  --special-grey2: #f3f7f9;
  --special-grey3: #f7f3ec;
  --special-grey4: #c5c5c5;
  --special-grey5: #f2f6f8;
  --special-grey6: #d7dcde;
  --special-grey7: #00ca74;
  --special-grey8: #ababab;
  --special-grey9: #cfcfcf;
  --special-grey10: #b5b5b5;
  --special-grey11: #e5e5e5;
  --special-grey12: #f4f4f4;
  --special-grey13: #f1f1f1;
  --special-red: #ca2c37;
  --special-darkred: #ba2732;
  --special-brown: #eaeaea;
  --special-line-through: #a9a9a9;
}

a {
  text-decoration: none;
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  white-space: nowrap;
  clip-path: inset(100%);
  clip: rect(0 0 0 0);
  overflow: hidden;
}

.page {
  height: 100%;
}

.page-body {
  margin: 0;
  padding: 0;
  font-family: "Cuprum", Arial, sans-serif;
  min-height: 100%;
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  align-content: start;
  overflow-x: hidden;
}

.container {
  width: 940px;
  margin: 0 auto;
  padding: 0 10px;
}

.main-navigation-list,
.features-list,
.features-slider,
.goods-list,
.brands-list,
.services-list,
.footer-navigation-list,
.additional-list,
.social-list {
  list-style: none;
}

/*Main-navigation*/

.main-header {
  width: 100%;
  min-height: 320px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: min-content min-content;
  background: var(--special-grey2);
}

.upper-navigation {
  background-color: var(--basic-blue);
  font-size: 18px;
  line-height: 24px;
}

.upper-navigation-wrapper {
  background: var(--basic-blue);
  width: 100%;
  height: 42px;
}

.upper-navigation {
  position: relative;
  width: 940px;
  display: grid;
  grid-template-columns: 220px 271px 1fr 1fr 1fr;
  margin: 0 auto;
  height: 42px;
}

/*Логотип*/

.main-header-logo-span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 47px;
  background-color: var(--basic-red);
  box-shadow: inset 0px -5px 0px rgba(0, 0, 0, 0.24);
}

.main-header-logo-span:active {
  background: var(--special-darkred);
}

.main-header-logo {
  padding-top: 1px;
}

/*Поиск*/

.form-search {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  width: 271px;
  height: 42px; /*
  padding-top: 1px;*/
}

.search-svg {
  position: absolute;
  height: 17px;
  left: 17px;
  top: 12px;
  opacity: 0.3;
}

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

.input-search:focus + .search-svg path {
  fill: var(--basic-red);
}

.input-search:focus + .search-svg {
  opacity: 1;
}

.input-search {
  background: var(--basic-blue);
  color: var(--basic-white);
  width: 271px;
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  padding-left: 40px;
  height: 42px;
  border: none;
}

.input-search:hover {
  color: var(--basic-black);
}

.input-search:focus {
  background-color: var(--basic-white);
  color: var(--basic-black);
  border: none;
  outline: none;
}

.input-search::placeholder {
  color: var(--basic-white);
  line-height: 24px;
  padding-left: 3px;
}

/*Закладки, корзина, оформить заказ*/

.purchase {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  column-gap: 9px;
  height: 41px;
  font-size: 18px;
  line-height: 24px;
  padding-top: 1px;
}

.purchase:active {
  background-color: var(--special-black);
  color: var(--basic-white);
  opacity: 0.5;
}

.attention {
  background-color: var(--basic-red);
}

.bookmarks-svg {
  margin-bottom: 2px;
  margin-left: -6px;
  opacity: 0.3;
}

.bookmarks-svg:hover {
  opacity: 1;
}

.bookmarks-svg:active {
  opacity: 0.3;
}

.cart {
  padding-right: 2px;
}

.bookmarks {
  padding-left: 1px;
}

.cart-svg {
  margin-bottom: 3px;
  padding-left: 13px;
  opacity: 0.3;
}

.cart-svg:hover {
  opacity: 1;
}

.cart-svg:active {
  opacity: 0.3;
}

.accept {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  height: 41px;
  font-size: 18px;
  line-height: 24px;
  padding-top: 1px;
  padding-left: 3px;
  background-color: var(--basic-green);
}

.accept:active {
  color: var(--basic-white);
  opacity: 0.5;
}

/*Medium-navigation*/

.medium-navigation {
  width: 940px;
  margin: 0 auto;
  display: grid;
  grid-template-rows: minmax(158px, auto) min-content;
}

.itallic-block {
  justify-self: start;
  margin-left: 30px;
  font-style: italic;
  font-size: 16px;
  line-height: 23px;
  color: var(--basic-red);
}

.contacts-phone-block {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-self: center;
  justify-content: center;
  margin-right: 28px;
  margin-bottom: -5px;
}

.address-user-cabinet {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  width: 940px;
  margin: 0 auto;
  align-items: center;
}

.contacts-phone {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 21px;
  line-height: 30px;
  width: 270px;
  height: 45px;
  color: var(--basic-red);
  background: var(--special-grey2);
  border: 3px solid var(--basic-white);
  box-sizing: border-box;
  padding-left: 26px;
  margin-bottom: 2px;
}

.contacts-phone::before {
  content: "";
  width: 19px;
  height: 19px;
  background-image: url("../img/icon/phone.svg");
  position: absolute;
  left: 35px;
}

.header-address {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 24px;
  color: var(--basic-blue2);
}

.user-cabinet-menu {
  display: flex;
  flex-wrap: wrap;
  column-gap: 10px;
  align-items: center;
  justify-content: center;
  justify-self: end;
}

.pre-log-in {
  margin-bottom: 22px;
}

.user-cabinet-login {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 21px;
  height: 45px;
  background-color: var(--basic-white);
  border: none;
  padding-left: 45px;
  padding-right: 27px;
  color: var(--basic-black);
}

.user-cabinet-login::before {
  content: "";
  position: absolute;
  width: 20px;
  height: 17px;
  background-image: url("../img/icon/log-in.svg");
  opacity: 0.3;
  left: 18px;
}

.user-cabinet-login:hover::before {
  opacity: 1;
}

.user-cabinet-login:focus::before {
  opacity: 0.3;
}

.user-cabinet:hover {
  color: var(--basic-red);
}

.user-cabinet-login:hover {
  color: var(--basic-red);
}

.user-cabinet:active {
  color: var(--basic-greylight);
}

.user-cabinet-login:active {
  color: var(--basic-greylight);
}

/*Навигационные ссылки*/

.main-navigation {
  min-height: 60px;
  background-color: var(--basic-blue2);
  box-shadow: inset 0px -5px 0px var(--basic-blue);
}

.main-navigation-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-left: 30px;
  margin-right: 30px;
}

.upper-navigation a,
.main-navigation-item a,
.footer-navigation-item a,
.social-list-item a {
  color: var(--basic-white);
}

.main-navigation-item a:hover {
  background-color: var(--basic-blue);
}

.main-navigation-item a:active {
  opacity: 0.5;
  background: var(--special-blue4);
}

.main-navigation-item a {
  display: block;
  padding-top: 16px;
  padding-bottom: 20px;
  padding-left: 23px;
  padding-right: 23px;
  font-size: 18px;
  line-height: 24px;
}

/*Материалы, инструменты, техника и т.д.*/

.features {
  position: relative;
  padding-top: 59px;
  padding-bottom: 58px;
}

.features-list {
  display: grid;
  grid-template-columns: 300px 300px 300px;
  grid-template-rows: 123px 123px 123px;
  gap: 20px;
  padding: 0;
  margin: 0;
}

.feature-list-item:nth-child(1) {
  position: relative;
  background-color: var(--basic-orange);
}

.feature-list-item:nth-child(1)::after {
  content: "";
  position: absolute;
  width: 44px;
  height: 65px;
  right: 43px;
  bottom: 27px;
  background-image: url("../img/icon/bucket.svg");
}

.feature-list-item:nth-child(2) {
  position: relative;
  background-color: var(--special-light-blue);
}

.feature-list-item:nth-child(2)::after {
  content: "";
  position: absolute;
  width: 75px;
  height: 61px;
  right: 31px;
  bottom: 28px;
  background-image: url("../img/icon/drill.svg");
}

.feature-list-item:nth-child(3) {
  position: relative;
  background-color: var(--special-pink);
}

.feature-list-item:nth-child(3)::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 62px;
  right: 31px;
  bottom: 30px;
  background-image: url("../img/icon/tractor.svg");
}

.feature-list-item:nth-child(5) {
  position: relative;
  background-color: var(--special-orange2);
}

.feature-list-item:nth-child(5)::after {
  content: "";
  position: absolute;
  width: 78px;
  height: 63px;
  right: 31px;
  bottom: 28px;
  background-image: url("../img/icon/delivery.svg");
}

.feature-list-item:nth-child(6) {
  position: relative;
  background-color: var(--special-green);
}

.feature-list-item:nth-child(6)::after {
  content: "";
  position: absolute;
  width: 59px;
  height: 72px;
  right: 45px;
  bottom: 25px;
  background-image: url("../img/icon/big-cart.svg");
}

.feature-list-item h3 {
  position: absolute;
  color: var(--basic-white);
  font-weight: bold;
  font-size: 24px;
  line-height: 30px;
  left: 22.5px;
  top: -3px;
}

.feature-list-item {
  position: relative;
}

.feature-list-item a {
  display: flex;
  flex-wrap: wrap;
  position: absolute;
  left: 22px;
  bottom: 21px;
  align-items: center;
  justify-content: center;
  width: 135px;
  height: 38px;
  text-transform: uppercase;
  font-size: 14px;
  line-height: 18px;
  color: var(--basic-white);
  background: rgba(255, 255, 255, 0.3);
}

.feature-list-item a:hover {
  background-color: var(--basic-greylight);
}

.feature-list-item a:active {
  background-color: var(--special-grey);
}

/*Слайдер*/

.slider-item {
  display: none;
  position: relative;
  background-color: var(--basic-blue);
  width: 620px;
  height: 266px;
  grid-row: 2/3;
  grid-column: 1/3;
}

.feature-list-item:nth-child(5) {
  grid-column: 3/4;
  grid-row: 3/4;
}

.slider-item h3 {
  font-weight: bold;
  font-size: 36px;
  line-height: 36px;
  text-transform: uppercase;
  color: var(--basic-white);
  position: absolute;
  left: 24px;
  top: -13px;
}

.slider-item p {
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--basic-white);
  position: absolute;
  top: 47px;
  left: 24px;
}

.slider-item .open-button {
  position: absolute;
  bottom: 27px;
  left: 24px;
}

.slider-item .slider-button-2 {
  position: absolute;
  right: 14px;
  top: 121px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.slider-item .slider-button-1 {
  position: absolute;
  left: 18px;
  top: 121px;
  border: none;
  background: transparent;
  cursor: pointer;
}
/*
.slider-button-1::before {
  position: absolute;
  content: "";
  width: 22px;
  height: 40px;
  background-image: url("../img/icon/left.svg");
  left: -2px;
}

.slider-button-2::after {
  position: absolute;
  content:"";
  width: 22px;
  height: 40px;
  background-image: url("../img/icon/left.svg");
  transform: rotate(180deg);
  top: 0;
  right: -2px;
}
*/
.slider-controls {
  display: flex;
  flex-wrap: wrap;
  width: 30px;
  justify-content: space-between;
  position: absolute;
  bottom: 95px;
  left: 305px;
  z-index: 20;
}

.slide-current {
  display: block;
}

.slider-controls .current {
  background: var(--basic-white);
}

.slider-controls-button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--basic-white);
  background-color: var(--basic-red);
  padding: 0;
}

.open-button {
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  width: 192px;
  height: 38px;
  border: none;
}

.open-button:hover {
  background-color: var(--special-red);
}

.open-button:focus {
  background-color: var(--special-darkred);
}

/*Популярные товары*/

.popular {
  display: grid;
  grid-template-columns: 3fr 1fr;
  align-items: center;
  background-color: var(--basic-grey);
  padding-left: 28px;
  padding-right: 14px;
  min-height: 89px;
}

.popular .open-button {
  margin-top: -1px;
  justify-self: end;
}

.for-margin-right {
  margin-right: 5px;
}

/*Карточки товаров*/

.goods .goods-list {
  display: grid;
  grid-template-columns: 220px 220px 220px 220px;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-top: 21px;
  margin-bottom: 70px;
}

.bfg-9000 {
  margin-left: 6px;
  margin-top: -7px;
}

.goods-list-2 {
  display: grid;
  grid-template-columns: 220px 220px 220px;
  column-gap: 20px;
  padding: 0;
  margin: 0;
}

.goods-list-item {
  display: grid;
  grid-template-rows: 159px min-content;
  width: 220px;
  min-height: 318px;
  border: 1px solid var(--special-brown);
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: bold;
  box-sizing: border-box;
}

.goods-list-2 .goods-list-item {
  margin-bottom: 18px;
}

.temporable-1 {
  display: flex;
  flex-wrap: wrap;
  width: 220px;
  height: 159px;
  align-items: center;
  justify-content: center;
}

.temporable-1 a {
  margin-top: 13px;
  margin-right: 13px;
}

.temporable {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  column-gap: 0;
  width: 220px;
  height: auto;
  align-items: center;
  padding-top: 15px;
  margin-left: -2px;
}

.goods-list-item:hover {
  box-sizing: border-box;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.goods-list-item:hover .hidden-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  z-index: 20;
}

/*
.goods-list-item:focus-within .hidden-block {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  z-index: 20;
}
*/

.goods-list-item:hover .temporable-1 {
  display: none;
}

.hidden-block {
  display: none;
}

.purchase-buttons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  gap: 10px;
}

.accept-buy {
  position: relative;
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  display: inline-grid;
  grid-auto-flow: column;
  column-gap: 8px;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  color: var(--basic-white);
  background: var(--basic-green);
  box-shadow: inset 0px -3px 0px var(--special-green2);
  border-radius: 2px;
  width: 135px;
  height: 38px;
  margin-left: -2px;
}

.accept-buy:hover {
  background: var(--special-green3);
}

.accept-buy:active {
  background: var(--special-green4);
}

.accept-buy .cart-svg {
  opacity: 0.3;
  margin-left: -22px;
}

.to-bookmarks {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-transform: uppercase;
  color: var(--basic-blue);
  border: 3px solid var(--basic-green);
  box-sizing: border-box;
  border-radius: 2px;
  width: 135px;
  height: 38px;
  margin-left: -2px;
  padding-top: 2px;
}

.to-bookmarks:hover {
  border: 3px solid var(--basic-blue2);
}

.to-bookmarks:active {
  opacity: 0.5;
}

.temporable s {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 141px;
  height: 38px;
  margin-bottom: 4px;
  margin-left: 3px;
  font-size: 17px;
  line-height: 18px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-align: center;
  text-decoration-line: line-through;
  text-transform: uppercase;
  color: var(--special-line-through);
}

.temporable h3 {
  font-size: 18px;
  line-height: 20px;
  color: var(--basic-black);
  text-align: center;
  margin-top: 5px;
  margin-left: 18px;
  margin-right: 17px;
  margin-bottom: -2px;
}

.goods-list-item b {
  font-size: 17px;
  line-height: 18px;
  display: grid;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  color: var(--basic-white);
  width: 141px;
  height: 38px;
  border-radius: 3px;
  background-color: var(--basic-red);
  background-image: linear-gradient(
      225deg,
      var(--basic-white) 13px,
      transparent 13px
    ),
    linear-gradient(315deg, var(--basic-white) 13px, transparent 13px);
  margin-left: 12px;
  margin-bottom: 10px;
}

.user-cabinet {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  line-height: 21px;
  height: 45px;
  background-color: var(--basic-white);
  border: none;
  padding-left: 24px;
  padding-right: 24px;
  column-gap: 10px;
  color: var(--basic-black);
}

/*Заголовки на cuprum*/
.goods h2,
.brands h2,
.service-list-item h3,
.wrapper-h2 h1 {
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--basic-blue);
}

/*Кнопки с ценой, красные все*/
.open-button,
.purchase-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  color: var(--basic-white);
  background-color: var(--basic-red);
}

.purchase-button {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 17px;
  line-height: 18px;
}

/*Карточка с товаром*/

.goods-list-item {
  position: relative;
}

.new::before {
  position: absolute;
  content: "";
  width: 70px;
  height: 70px;
  background-image: url("../img/icon/new.svg");
  top: 0;
  right: 0;
  z-index: 20;
}

/*Сервисы*/

.section-service-wrapper {
  /*
  width: 100%;
  */
  margin: 0 auto;
  background-color: var(--special-greylight);
}

.index-columns {
  display: grid;
  grid-template-columns: 2fr 1fr;
  padding-bottom: 67px;
  padding-top: 71px;
}

.services {
  padding-top: 65px;
}

.services-wrapper {
  display: grid;
  grid-template-columns: 240px 1fr;
}

.services h2 {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--basic-black);
  margin: 0;
  margin-bottom: 25px;
}

.services-list {
  position: relative;
  margin: 0;
  padding: 0;
  margin-left: 80px;
  margin-top: -22px;
}

.services-buttons::before {
  position: absolute;
  content: "";
  width: 10px;
  height: 279px;
  background-image: url("../img/icon/stroke.png");
  bottom: -20px;
  right: 0;
  z-index: 20;
}

.services p {
  margin-top: 0;
  margin-bottom: 60px;
  width: 400px;
}

.service-list-item p,
.services p {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 24px;
  color: var(--basic-black);
}

.service-list-item p {
  width: 280px;
}

.service-list-item {
  position: relative;
}

.service-list-item:nth-child(1)::after {
  position: absolute;
  content: "";
  width: 468px;
  height: 261px;
  background-image: url("../img/big-delivery.png");
  right: 0;
  top: 22px;
}

.service-list-item:nth-child(2)::after {
  position: absolute;
  content: "";
  width: 389px;
  height: 283px;
  background-image: url("../img/warrant-image.png");
  right: -9px;
  top: -3px;
}

.service-list-item:nth-child(3)::after {
  position: absolute;
  content: "";
  width: 465px;
  height: 285px;
  background-image: url("../img/credit-image.png");
  right: -10px;
  top: -1px;
}

.service-list-item:nth-child(2) p {
  width: 315px;
  margin-top: -5px;
}

.service-list-item:nth-child(3) p {
  width: 280px;
  height: 15px;
}

.service-list-item .open-button {
  min-width: 195px;
  border-radius: 3px;
}

.services-buttons {
  position: relative;
  margin-top: 9px;
  margin-bottom: 99px;
}

.services-button {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: start;
  padding-left: 22px;
  padding-bottom: 5px;
  background: var(--basic-blue2);
  box-shadow: 0px 1px 0px var(--basic-blue),
    inset 0px 1px 0px var(--special-blue3);
  color: var(--basic-white);
  width: 240px;
  height: 62px;
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 21px;
  line-height: 30px;
  border: none;
  margin: 0;
}

.current {
  background: var(--basic-white);
  color: var(--basic-black);
  box-shadow: none;
}

.current:hover {
  color: var(--basic-white);
}

.services-button:hover {
  background: var(--basic-blue);
}

.services-button:active {
  background: var(--basic-white);
  color: var(--basic-black);
  border: none;
}

/*Brands*/

.brand-list-item {
  width: 220px;
  height: 145px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--special-brown);
  box-sizing: border-box;
}

.brand-list-item img {
  object-fit: contain;
}

.brand-list-item:hover {
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

.brand-list-item:active {
  opacity: 0.5;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
}

/*about-us, contacts */

.about-us h2,
.contacts h2 {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--basic-black);
  margin: 0;
  margin-bottom: 23px;
}

.contacts h2 {
  margin-left: 13px;
}

.about-us p,
.contacts p {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 24px;
  color: var(--basic-black);
}

.contacts p {
  margin-left: 13px;
}

.second-p {
  margin-top: 27px;
}

.contacts img {
  margin-left: 13px;
  margin-top: 20px;
}

.partners-list {
  list-style: none;
  margin-left: -3px;
}

.partners-list-item {
  font-family: "Cuprum", "Arial", sans-serif;
  position: relative;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--basic-black);
  margin-bottom: 13px;
}

.partners-list-item:nth-child(1) {
  margin-top: -15px;
}

.partners-list-item::before {
  position: absolute;
  content: "";
  width: 25px;
  height: 2px;
  background-color: var(--basic-red);
  left: -37px;
  top: 12px;
}

.about-us-button {
  width: 220px;
  height: 38px;
  margin-top: 20px;
}

.contacts-button {
  width: 300px;
  height: 38px;
  margin-left: 13px;
  margin-top: 20px;
}

/*Footer*/

.main-footer {
  width: 100%;
  margin: 0 auto;
  min-height: 300px;
}

.footer-navigation-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  margin-top: 38px;
  margin-left: 132px;
}

.additional-list {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-left: 54px;
  margin-top: 5px;
}

.logo-navigation {
  display: grid;
  grid-template-columns: 220px 1fr;
}

.footer-contacts-additional {
  display: grid;
  grid-template-columns: 321px 1fr;
  margin-top: 14px;
}

.social-list,
.footer-navigation-list,
.additional-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.footer-contacts .contacts-phone,
.footer-contacts .footer-address {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--special-grey2);
}

.footer-contacts {
  width: 325px;
  padding-left: 1px;
}

.footer-copyright {
  display: grid;
  grid-template-columns: 235px auto 137px 111px;
  grid-template-rows: 107px;
  gap: 51px;
}

.footer-copyright .copyright {
  display: flex;
  flex-wrap: wrap;
  margin-left: 1px;
  align-items: center;
  justify-content: start;
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 18px;
  color: var(--basic-white);
}

.right-side {
  display: flex;
  flex-wrap: wrap;
  flex-direction: column;
  justify-self: start;
  justify-content: center;
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 16px;
  line-height: 18px;
  color: var(--basic-white);
}

.copyright a {
  color: var(--special-orange);
}

.copyright a:hover {
  text-decoration: underline;
}

.copyright a:focus {
  color: var(--special-darkred);
}

.right-side a {
  color: var(--special-orange);
}

.right-side a:hover {
  text-decoration: underline;
}

.right-side a:focus {
  color: var(--special-darkred);
}

.social-list {
  align-items: center;
  justify-self: center;
}

.navigation-footer {
  background-color: var(--basic-blue2);
  height: 193px;
}

.logo-navigation-span {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 220px;
  height: 68px;
  background: var(--basic-red);
  box-shadow: inset 0px -5px 0px rgba(0, 0, 0, 0.24);
}

.footer-copyright-wrapper {
  background-color: var(--basic-blue);
  min-height: 107px;
}

.footer-address {
  font-size: 18px;
  line-height: 24px;
  color: var(--special-grey2);
}

.footer-contacts a {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--special-grey2);
}

.footer-navigation-item {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--special-greylight);
}

.additional-list-item a {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  color: var(--special-orange);
}

.additional-list-item a:hover,
.footer-navigation-item a:hover {
  text-decoration: underline;
}

.additional-list-item a:active,
.footer-navigation-item a:active {
  opacity: 0.5;
  text-decoration: none;
}

.social-list-item a {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  position: relative;
  background: var(--special-blue2);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 4px;
  margin-top: 2px;
}

.social-list-item a:hover,
.social-list-item a:focus {
  background: var(--basic-red);
}

/*Catalog*/

.log-in-log-out {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;

  font-size: 21px;
  line-height: 21px;
  min-height: 45px;
  background-color: var(--basic-white);
  height: 45px;
  padding: 0;
  margin-right: -15px;
  margin-top: 4px;
  min-width: 299px;
}

.log-in {
  color: var(--basic-black);
  margin-top: -3px;
}
.log-in-svg {
  padding-left: 5px;
  padding-top: 3px;
  margin-right: 15px;
  margin-bottom: -3px;
}

.log-out-svg {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-right: 6px;
}

.log-in-svg,
.log-out-svg {
  opacity: 0.3;
}

.log-in:hover .log-in-svg,
.log-out-svg:hover {
  opacity: 1;
}

.log-in:active .log-in-svg,
.log-out-svg:active {
  opacity: 0.3;
}
.log-in-cabinet {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-top: 7px;
  margin-left: 15px;
  color: var(--basic-blue2);
}

.log-in-cabinet-item:nth-child(1)::after {
  position: absolute;
  content: "";
  width: 4px;
  height: 4px;
  background: var(--basic-blue2);
  border-radius: 50%;
  top: 7px;
  left: 89px;
}

.log-in-cabinet-item a:hover {
  color: var(--basic-red);
}

.log-in-cabinet-item a:active {
  color: var(--special-grey4);
}

.log-in-cabinet-item a {
  color: var(--basic-blue2);
}

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

.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: start;
  flex-wrap: wrap;
  margin-top: 20px;
}

.breadcrumbs-list-item {
  position: relative;
}

.breadcrumbs-list-item:nth-child(2) {
  margin-left: 55px;
}

.breadcrumbs-list-item:nth-child(3) {
  margin-left: 41px;
}

.breadcrumbs-list-item:nth-child(4) {
  margin-left: 42px;
}

.breadcrumbs-list-item a {
  list-style: none;
  position: relative;
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  text-transform: uppercase;
  color: var(--basic-black);
}

.breadcrumbs-list-item a::after {
  position: absolute;
  content: "";
  width: 6.5px;
  height: 10.3px;
  background-image: url("../img/icon/right-small.svg");
  right: -25px;
  top: 3px;
}

.breadcrumbs-list-item:nth-child(1) a::before {
  position: absolute;
  content: "";
  width: 14px;
  height: 12px;
  background-image: url("../img/icon/home.svg");
  top: 4px;
}

.breadcrumbs-list-item:nth-child(1) a::after {
  left: 30px;
  bottom: 0px;
}

.wrapper-h2 {
  background-color: var(--special-grey5);
  padding-left: 0;
  padding-right: 0;
}

.wrapper-h2 h1 {
  padding-top: 29px;
  padding-bottom: 30px;
  padding-left: 29px;
}

.filters-block {
  display: grid;
  grid-template-columns: 220px 680px;
  grid-template-rows: 38px;
  justify-content: start;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
  padding-left: 0;
  padding-right: 0;
}

.filters-wrapper {
  background: var(--special-grey3);
  width: 220px;
  height: 38px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.filters-wrapper-long {
  background: var(--special-grey3);
  width: 700px;
  height: 38px;
  display: grid;
  grid-template-columns: 220px 370px 70px;
  gap: 20px;
  align-items: center;
}

.filters-block h2 {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  color: var(--basic-black);
  text-transform: uppercase;
  margin: 0;
  padding: 0;
  margin-left: 18px;
}

.filters-block h2:nth-child(2) {
  margin-left: 20px;
}

.filters-goods-wrapper {
  display: grid;
  grid-template-columns: 220px 700px;
  gap: 20px;
}

.sort-list {
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  margin-left: 1px;
}

.sort-list-buttons {
  display: flex;
  justify-content: space-around;
}

.sort-list-button:nth-child(2) {
  margin-right: 5px;
}

.sort-list-item:nth-child(2) {
  margin-left: 70px;
}
.sort-list-item:nth-child(3) {
  margin-left: 65px;
}

.sort-list-item a {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  color: var(--basic-black);
  opacity: 0.3;
  text-transform: uppercase;
  border-bottom: 1px dotted var(--basic-red);
}

.sort-list-item a:hover {
  opacity: 1;
  border-bottom: 1px solid var(--basic-red);
}

.active-item a {
  color: var(--basic-red);
  border: none;
  opacity: 1;
}

.sort-list-button {
  position: relative;
  opacity: 0.3;
  border: none;
  background: transparent;
}

.sort-list-button:hover {
  opacity: 1;
}

.active-button path {
  fill: var(--basic-red);
}

.active-button {
  opacity: 1;
}

/*Крутилки цены*/
.price,
.price-range {
  background-color: var(--special-grey3);
}

.price-range {
  width: 220px;
  height: 80px;
  margin-bottom: 9px;
  border-radius: 5px;
}

.price {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 17px;
  line-height: 18px;
  text-align: center;
  width: 96px;
  height: 38px;
  border-radius: 5px;
  border: none;
}

.price::placeholder {
  padding-left: 12px;
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 17px;
  line-height: 18px;
  color: var(--basic-black);
}

.range-controls {
  position: relative;
  padding-top: 39px;
  padding-bottom: 39px;
  padding-right: 20px;
  padding-left: 20px;
}

.range-controls .scale {
  width: 180px;
  height: 2px;
  background: var(--special-grey6);
}

.range-controls .bar {
  width: 70%;
  height: 2px;
  background: var(--special-grey7);
}

.range-controls .toggle {
  position: absolute;
  top: 29px;
  width: 4px;
  height: 4px;
  padding: 0;
  border: 8px solid var(--basic-white);
  background-color: var(--special-grey8);
  border-radius: 50%;
  box-shadow: 0 2px 1px 0 var(--special-grey9);
  cursor: pointer;
}

.toggle-min {
  left: 20px;
}

.toggle-max {
  left: 160px;
}

/*FILTERS*/

.filters,
.perforators-list {
  font-family: "PT Sans", "Arial", sans-serif;
}

.filters {
  width: 220px;
  margin-top: -15px;
}

.filters fieldset {
  padding: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid var(--special-grey3);
}

.filters .first-fieldset {
  padding-bottom: 23px;
}

.second-fieldset legend {
  padding-top: 16px;
}

.filters .second-fieldset {
  padding-bottom: 8px;
}

.third-fieldset legend {
  padding-top: 18px;
}

.filters .third-fieldset {
  margin-bottom: 14px;
}

.filters fieldset:nth-last-child {
  margin-bottom: 37px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  text-transform: uppercase;
  color: var(--basic-black);
}

.filters legend {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 17px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--basic-black);
  margin-bottom: 12px;
}

.filters h2 {
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  color: var(--basic-black);
  background-color: var(--special-grey3);
}

.brands-checkbox-list,
.brands-radio-list,
.sort-list,
.perforators-list,
.page-list,
.breadcrumbs-list {
  list-style: none;
}

.brands-checkbox-list,
.brands-radio-list {
  margin: 0;
  padding: 0;
  line-height: 19px;
}

.brands-checkbox-list-item {
  margin-bottom: 20px;
}

.brands-radio-list li {
  margin-bottom: 23px;
}

.brands-checkbox-list-item label {
  text-transform: uppercase;
  margin-left: 7px;
  margin-top: 5px;
}

.brands-radio-list label {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  margin-left: 7px;
  margin-top: 10px;
}

.brands-checkbox,
.brands-radio {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 15px;
  line-height: 19px;
  text-transform: uppercase;
  color: var(--basic-black);
}

.brands-checkbox:hover,
.brands-radio:hover {
  background-color: var(--special-grey10);
}
.brands-checkbox:active + label,
.brands-radio:active + label {
  opacity: 0.3;
}
.brands-checkbox:disabled + label,
.brands-radio:disabled + label {
  opacity: 0.3;
}

.brands-checkbox-list,
.brands-radio-list {
  margin-left: 28px;
}

.brands-checkbox-list-item label {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
}

.brands-checkbox + label::before {
  position: absolute;
  content: "";
  width: 23px;
  height: 23px;
  background-image: url("../img/icon/checkbox-off.svg");
  left: -35px;
  top: -2px;
}

.brands-checkbox:checked + label::after {
  position: absolute;
  content: "";
  width: 27px;
  height: 23px;
  background-image: url("../img/icon/checkbox-on.svg");
  left: -35px;
  top: -2px;
}

.brands-radio + label::before {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background-image: url("../img/icon/radio-off.svg");
  left: -35px;
  top: -1px;
}

.brands-radio:checked + label::after {
  position: absolute;
  content: "";
  width: 25px;
  height: 25px;
  background-image: url("../img/icon/radio-on.svg");
  left: -35px;
  top: -1px;
}

.show {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  border: none;
  width: 220px;
  height: 38px;
  border: 1px solid var(--special-grey11);
  background-color: transparent;
  text-transform: uppercase;
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
}

.page-list {
  display: grid;
  grid-template-columns: min-content min-content min-content min-content;
  gap: 10px;
  margin-top: 30px;
  margin-bottom: 34px;
  padding: 0;
}

.page-list-item a {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 18px;
  color: var(--basic-black);
  background: var(--basic-white);
  border: 1px solid var(--special-grey11);
  box-sizing: border-box;
  border-radius: 2px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  min-height: 38px;
  min-width: 38px;
}

/*Корзина popup*/

.continue-purchasing {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 14px;
  line-height: 18px;
  align-items: center;
  text-align: center;
  text-transform: uppercase;
  color: var(--basic-black);
  background: var(--basic-white);
}

.cart-popup p {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: bold;
  font-size: 24px;
  line-height: 30px;
  align-items: center;
  text-align: center;
  color: var(--basic-black);
}

.long a {
  width: 140px;
}

.page-list-item a:hover {
  border: 1px solid var(--special-grey4);
}

.page-list-item a:focus {
  border: 1px solid var(--basic-red);
}

.active a {
  background: var(--basic-red);
  color: var(--basic-white);
  border: none;
  border-radius: 3px;
}

.about-perforators-wrapper {
  width: 100%;
  margin: 0 auto;
  background: var(--special-greylight);
  min-height: 261px;
}

.about-perforators h2 {
  font-family: "Cuprum", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 30px;
  line-height: 30px;
  text-transform: uppercase;
  color: var(--basic-black);
  padding-top: 64px;
}

.about-perforators p {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 24px;
  color: var(--basic-black);
  padding-bottom: 68px;
}

.feature-list-item {
  width: 300px;
  height: 123px;
}

.brands-list {
  display: grid;
  grid-template-columns: 220px 220px 220px 220px;
  grid-template-rows: 145px 145px;
  gap: 20px;
  align-items: center;
  margin: 0;
  padding: 0;
  margin-top: 20px;
}

.brands {
  padding-bottom: 70px;
}

.about-us .open-button {
  margin-top: 20px;
}

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

.feedback {
  display: none;
  grid-template-rows: 310px 105px;
  width: 620px;
  height: 420px;
  margin: 0 auto;
  border-top: 7px solid var(--basic-red);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 20;
  background: var(--basic-white);
}

.feedback-show {
  display: grid;
  animation: bounce 0.6s;
}

.feedback-error {
  animation: shake 0.6s;
}
.feedback-form {
  display: grid;
  grid-template-columns: 220px 220px;
  grid-template-rows: 60px 60px;
  gap: 20px;
  padding-top: 40px;
  padding-left: 81px;
  padding-right: 80px;
  width: 460px;
  height: 270px;
}

.feedback-item:nth-child(3) {
  width: 100%;
  margin-top: 5px;
}

.feedback-item:nth-child(3) .feedback-item-input {
  width: 460px;
  height: 114px;
}

.feedback-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  width: 620px;
  height: 112px;
}

.feedback-label {
  font-style: normal;
  font-weight: normal;
  font-size: 18px;
  line-height: 24px;
  color: var(--basic-black);
}

.feedback-item-input {
  font-family: "PT Sans", "Arial", sans-serif;
  font-style: normal;
  font-weight: normal;
  font-size: 13px;
  line-height: 24px;
  width: 220px;
  height: 38px;
  border: 2px solid var(--special-grey4);
  box-sizing: border-box;
  border-radius: 2px;
  color: var(--special-line-through);
  border: 2px solid var(--special-grey4);
  box-sizing: border-box;
  border-radius: 2px;
  margin-top: 10px;
  padding-left: 8px;
}

.feedback-item-input::placeholder {
  color: var(--special-line-through);
}

.feedback-item-input::placeholder:nth-child(3) {
  padding-top: 5px;
}

.feedback-bottom {
  background-color: var(--special-grey12);
}

.big-button {
  width: 460px;
  height: 38px;
}

.close-button-feedback {
  position: absolute;
  right: 5px;
  top: 13px;
  border: none;
  background: transparent;
}

/*Всплывающее окно с картой*/

.modal-map {
  display: none;
  position: relative;
  width: 943px;
  height: 449px;
  top: 200px;
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 20;
  border: none;
  border-top: 7px solid var(--basic-red);
}

.modal-map-show {
  display: block;
  animation: bounce 0.6s;
}

.modal-map img {
  display: block;
}

.modal-map iframe {
  border: none;
}

.modal-map .close-button {
  position: absolute;
  right: 5px;
  top: 10px;
  background: transparent;
  border: 0;
}

.modal {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: auto;
}

/*Всплывающее окно с товаром в корзине*/

.cart-popup {
  display: none;
  position: fixed;
  grid-template-rows:
    163px
    112px;
  width: 620px;
  height: 275px;
  border-top: 7px solid var(--basic-red);
  background: var(--basic-white);
  box-shadow: 0px 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 100;
  left: 35px;
}

.cart-popup-show {
  display: grid;
  animation: bounce 0.6s;
}

.cart-popup-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  background: var(--special-grey13);
  height: 112px;
}

.cart-popup-buttons .open-button {
  margin-right: 10px;
}

.continue-purchasing {
  width: 192px;
  height: 38px;
  border: none;
}

.cart-popup-up {
  display: flex;
  flex-wrap: wrap;
  position: relative;
  align-items: center;
  justify-content: center;
}

.cart-popup-up p::before {
  position: absolute;
  content: "";
  width: 66px;
  height: 66px;
  background-image: url("../img/icon/icon-mark.svg");
  left: 80px;
  top: 48px;
}

.close-button-cart-popup {
  position: absolute;
  right: 6px;
  top: 10px;
  border: none;
  background: transparent;
}

/*Animations*/
@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);
  }
}
