:root {
  --basic-black: #000000;
  --basic-dark: #363636;
  --basic-white: #ffffff;
  --basic-dark-grey: #464646;
  --basic-grey: #7E7E7E;
  --basic-light-grey: #E5E5E5;

  --special-yellow: #F7E296;
  --special-green: #91C92F;
  --special-dark-yellow: #F0C52E;
  
  --dark-rgb: 0, 0, 0;
  --special-search-rgb: rgb(var(--dark-rgb));
  --special-search: rgba(var(--dark-rgb), 0.3);

  --white-rgb: 255, 255, 255;
  --special-white-rgb: rgb(var(--white-rgb));
  --special-white: rgba(var(--white-rgb), 0.7);

}

@font-face {
  font-family: "Gilroy";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/gilroy/gilroy-light.woff2") format("woff2"), 
       url("../fonts/gilroy/gilroy-light.woff") format("woff");
}

@font-face {
  font-family: "Gilroy";
  font-weight: 800;
  font-style: normal;
  src: url("../fonts/gilroy/gilroy-bold.woff2") format("woff2"), 
       url("../fonts/gilroy/gilroy-bold.woff") format("woff");
}

@font-face {
  font-family: "OpenSans";
  font-weight: normal;
  font-style: normal;
  src: url("../fonts/opensans/opensans-regular.woff2") format("woff2"), 
       url("../fonts/opensans/opensans-regular.woff") format("woff");
}

@font-face {
  font-family: "OpenSans";
  font-weight: bold;
  font-style: normal;
  src: url("../fonts/opensans/opensans-bold.woff2") format("woff2"), 
       url("../fonts/opensans/opensans-bold.woff") format("woff");
}

@font-face {
  font-family: "OpenSans";
  font-weight: normal;
  font-style: italic;
  src: url("../fonts/opensans/opensans-italic.woff2") format("woff2"), 
       url("../fonts/opensans/opensans-italic.woff") format("woff");
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;
}

/* Глобальные параметры */

body {
  min-width: 1160px;
  margin: 0;
  padding: 0;
  font-family: "OpenSans", "Arial", sans-serif;
  font-size: 15px;
  font-weight: 300;
  line-height: 20px;
  color: var(--basic-black);
  background-color: var(--basic-white);
}

a {
  text-decoration: none;
}

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

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

.list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page {
  height: 100%;
}

.wrapper-page {
  min-height: 100%;
  display: grid;
  grid-template-rows: min-content 1fr min-content;
  align-content: start;
}

.container-page {
  width: 1160px;
  padding: 40px 20px 0;
  margin: 0 auto;
}

.title {
  font-family: "Gilroy", "Arial", sans-serif;
  font-size: 47px;
  font-style: normal;
  font-weight: 800;
  line-height: 58px;
}

.button {
  display: block;
  font-family: "Gilroy", "Arial", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--basic-black);
}

/*Блок Header*/

.header {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--special-yellow);
  padding: 0 60px 50px;
}

.header::after {
  content: "";
  width: 1160px;
  height: 186px;
  position: absolute;
  top: 15px;
  left: -20px;
  z-index: -1;
}

.header .logo {
  position: relative;
  bottom: 15px;
  margin-bottom: 15px;
}

.header-middle {
  display: flex;
  justify-content: space-between;
  margin-bottom: 50px;
} 

.header-middle a {
  color: var(--basic-black);
}

.header-middle .sign-in {
  margin: auto;
}

.header-middle .compare {
  margin-right: 63px;
}

/*Форма поиска*/

.site-search {
  background-color: var(--special-yellow);
  padding-left: 22px;
  border: none;
}

.site-search::placeholder {
  color: var(--special-search);
}

/*Стили для навигации*/

.header .list-menu {
  display: flex;
  justify-content: space-between;
}

.list-menu a {
  font-family: "Gilroy", "Arial", sans-serif;
  font-style: normal;
  font-weight: 800;
  font-size: 18px;
  color: var(--basic-black);
  line-height: 22px;
  text-transform: uppercase;
}

/*Выпадающее меню*/

.drop-down-menu {
  display: none;
}

/*Слайдер*/

.section-slider {
  position: relative;
  width: 100%;
  bottom: 85px;
  margin-bottom: 80px;
}

.section-slider::before {
  content: "";
  width: 100px;
  height: 7px;
  background-color: var(--basic-white);
  position: absolute;
  top: 50px;
  left: 57%;
  transform: translateX(-50%);

}

/*Карточка слайдера*/

.card-box {
  font-family: "Gilroy", "Arial", sans-serif;
  display: flex;
  justify-content: space-around;
  padding: 20px;
}

.card-box::before {
  content: "";
  width: 100%;
  height: 88px;
  background-color: var(--special-yellow);
  position: absolute;
  left: 0;
  top: 45px;
  z-index: -1;
}

.card-box::after {
  font-style: normal;
  font-weight: 800;
  font-size: 179px;
  line-height: 219px;
  text-transform: uppercase;
  position: absolute;
  top: -15px;
  right: 45px;
  color: var(--basic-white);
  z-index: 1;
}

.card-box-first::after {
  content: "01";
}

.card-box-second::after {
  content: "02";
}

.card-box-three::after {
  content: "03";
}

.image-card {
  display: flex;
  justify-content: center;
  width: 526px;
  margin: 0;
  object-fit: contain;
}

.image-card img {
  align-self: center;
}

.card-desc {
  width: 495px;
  z-index: 3;
}

.card-desc .title {
  margin-top: 75px;
}

.card-desc .text-card {
  font-family: "OpenSans", "Arial", sans-serif;
  margin-bottom: 60px;
}

.button-card-box {
  margin-bottom: 60px;
}

.table-card {
  width: 100%;
}

.table-card th {
  font-style: normal;
  font-weight: 300;
  font-size: 36px;
  line-height: 42px;
  letter-spacing: 0.1em;
  padding-bottom: 5px;
}

.slide {;
  display: none;
}

.active-slide {
  display: block;
}

/*Управление слайдером*/

.slider-dots {
  display: flex;
  position: absolute;
  right: 100px;
  bottom: 30%;
}

.item-dots {
  margin-left: 10px;
  margin-right: 10px;
}

.button-dots {
  background-color: var(--basic-white);
  position: relative;
  width: 12px;
  height: 12px;
  border: 1px solid var(--basic-black);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
}

.button-active::before {
  content: "";
  width: 6px;
  height: 6px;
  border: 1px solid var(--basic-black);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}

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

.list-popular {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.link-popular {
  width: 160px;
  display: block;
  position: relative;
  font-family: "Gilroy", "Arial", sans-serif;
  font-size: 18px;
  color: var(--basic-black);
}

.link-popular::before {
  content: "";
  width: 100%;
  height: 160px;
  background-color: var(--special-yellow);
  background-repeat: no-repeat;
  background-position: 50%;
  position: absolute;
  top: 0;
  left: 0;
}


.vertual::before {
  background-image: url("../img/vertual.svg");
}

.monopod::before {
  background-image: url("../img/monopod.svg");
}

.action-camera::before {
  background-image: url("../img/action-camera.svg");
}

.fitness-bracelets::before {
  background-image: url("../img/fitness-bracelets.svg");
}

.smart-watch::before {
  background-image: url("../img/smart-watch.svg");
}

.quadrocopters::before {
  background-image: url("../img/quadrocopters.svg");
}

.link-popular h4 {
  padding-top: 180px;
}

/*Блок услуги*/

.services {
  padding-top: 73px;
  margin-bottom: 70px;
}

.background-services {
  background-color: var(--basic-light-grey);
  padding-bottom: 75px;
}

.container-page-services {
  display: grid;
  grid-template-columns: 1fr 3fr;
  padding: 0;
}

.list-tabs-button,
.list-tabs-text {
  position: relative;
}

.list-tabs-button {
  bottom: 30px;
  margin-right: 100px;
}

.list-tabs-button::after {
  content: "";
  width: 7px;
  height: 320px;
  background-color: var(--basic-black);
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);

}

.list-tabs-text {
  bottom: 80px;
  padding: 0 195px 0 20px;
  position: relative;
}

.item-tabs-text::after {
  content: "";
  position: absolute;
  top: 60%;
  right: 20px;
  transform: translateY(-50%);
}

.item-tabs-text-delivery::after {
  width: 136px;
  height: 164px;
  background-image: url("../img/delivery-icon.svg");
}

.item-tabs-text-guarantee::after {
  width: 171px;
  height: 195px;
  background-image: url("../img/guarantee-icon.svg");
}

.item-tabs-text-credit::after {
  width: 156px;
  height: 188px;
  background-image: url("../img/credit-icon.svg");
}

.list-tabs-text .title {
  letter-spacing: 0.2em;
}

.link-tabs {
  width: 277px;
  display: block;
  font-family: "Gilroy", "Arial", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--basic-black);
  padding: 9px 19px;
  margin: 10px 0;
}


.item-tabs-text {
  display: none;
}

.item-tabs-text.active {
  display: block;
}

.item-tabs .active {
  color: var(--special-yellow);
  background-color: var(--basic-black);
}

.tabs-text {
  letter-spacing: 0.1em;
}

/* Популярные производители */

.list-generator {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 90px;
}

/* Блок о нас и контакты */

.about-us-contacts {
  display: flex;
  justify-content: space-between;
  margin-bottom: 85px;
}

.about-us {
  position: relative;
  width: 473px;
}

.about-us::before,
.contacts::before {
  content: "";
  width: 80px;
  height: 7px;
  background-color: var(--basic-black);
  position: absolute;
  top: 0;
  left: 0;
}

.contacts {
  position: relative;
  width: 560px;
}

.about-us-contacts p {
  margin-bottom: 40px;
}

.delivery-methods li {
  position: relative;
  font-style: normal;
  font-weight: 800;
  font-size: 16px;
  line-height: 28px;
  margin-bottom: 20px;
  padding-left: 24px;
}

.delivery-methods li::before {
  content: "";
  width: 8px;
  height: 8px;
  background-color: var(--basic-white);
  border: 2px solid var(--basic-light-grey);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.about-us .button,
.contacts .button {
  margin-top: 85px;
}

/* FOOTER */

.footer {
  background-color: var(--basic-dark);
}

.section-footer-top {
  margin-bottom: 70px;
}

.footer-logo path {
  fill: var(--special-dark-yellow);
}

.footer-top {
  display: flex;
  justify-content: space-between;
}

.list-footer-top {
  display: flex;
  margin-bottom: 40px;
}

.list-footer-top .item-footer-top:not(:last-child) {
  margin-right: 40px;
}

.item-footer-top a {
  color: var(--special-white);
  padding: 5px 8px;
}

.footer-middle {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  align-items: center;
}

.adress-tel {
  color: var(--basic-white);
}

.footer-tel {
  text-align: end;
}

.footer-menu {
  display: flex;
  justify-content: space-evenly;
}

.footer-menu a {
  font-family: "Gilroy", "Arial", sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  color: var(--basic-white);
}

.footer-bottom {
  position: relative;
  display: grid;
  grid-template-columns: 1fr min-content;
  margin-bottom: 65px;
}

.footer-bottom::before {
  content: "";
  width: 80px;
  height: 7px;
  background-color: var(--special-dark-yellow);
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.footer-bottom .socials {
  display: flex;
  justify-content: center;
  margin-left: 27px;
}

.socials li {
  margin: 0 10px;
}

.social-icon {
  display: block;
  width: 32px;
  height: 32px;
}

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

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

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

.logo-html {
  width: 27px;
  height: 34px;
  display: block;
  background-image: url("../img/logo-html.svg");
}