*:root {
  --hover-color: #2196f3;
  --main-color: #212121;
  --text-color: #757575;
}
body {
  font-family: Roboto, sans-serif;
  margin: 0;

}
.list {
  list-style-type: none;
}
.link {
  text-decoration: none;
  display: inline-block;
}
.hidden {
  position: absolute;
  white-space: nowrap;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  margin: -1px;
}
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
}
ul {
  margin: 0;
  padding-left: 0;
}
button {
  cursor: pointer;
}
address {
  font-style: normal;
}
.container {
  width: 1200px;
  padding-left: 15px;
  padding-right: 15px;
  margin: 0 auto;
}
img{
  display: block;
}
.flex{
  display: flex;
}
/* -----------------------------------HEADER------------------------------------ */
span {
  color: var(--hover-color);
  font-family: Raleway, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.78px;
}
.header{
  padding-top: 24px;
  padding-bottom: 25px;
  border-bottom: 1px solid #ECECEC;
}
.header .container{
  display: flex;
  align-items: center;
}
.header-nav{
  display: flex;
  align-items: center;
}
.header-logo {
  color: #000;
  font-family: Raleway, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.78px;
  margin-right: 93px;
}
.header-list-item{
  position: relative;
}
.nav-link {
  color: var(--main-color);
  font-family: Roboto;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.28px;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
 
}
.nav-link:hover,
.header-link:hover {
  color: var(--hover-color);
  fill: var(--hover-color);
}
.nav-link:focus,
.header-link:focus {
  color: var(--hover-color);
}
.current-page {
  color: var(--hover-color);
}
.current-page::after{
  content: '';
  display: block;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: #2196F3;
  position: absolute;
  bottom: -32px;
  left: 0px;
}
.header-link {
  color: var(--text-color);
  font-family: Roboto;
  font-size: 14px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.28px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 1px;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.header-list,
.header-list-second{
  display: flex;
  align-items: center;
}
.header-list-second{
  margin-left: auto;
  gap: 40px;
}
.header-list{
  gap: 50px;
}

/* --------------HERO------------------ */
.hero {
  background-color: #212121;
  background-image: linear-gradient(rgba(47, 48, 58, 0.40), rgba(47, 48, 58, 0.40)),  url(../img/Hero-BG-optmz.jpg);
  background-repeat: no-repeat;
  max-width: 1600px;
  background-size: cover;
  background-position: center;
  margin: 0 auto;
  padding-top: 200px;
  padding-bottom: 200px;

}
.hero-title {
  color: #fff;
  text-align: center;
  text-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  font-family: Roboto;
  font-size: 44px;
  font-weight: 900;
  line-height: 1.36;
  letter-spacing: 2.64px;
  text-transform: uppercase;
  max-width: 696px;
  margin-bottom: 30px;
  margin-right: auto;
  margin-left: auto;
}
.hero-btn {
  color: #fff;
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.87;
  letter-spacing: 0.96px;
  background-color: var(--hover-color);
  cursor: pointer;
  display: block;
  margin: 0 auto;
  padding: 10px 32px;
  border-radius: 4px;
  background: #2196f3;
  border: transparent;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.hero-btn:hover{
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.15);
}
/* --------------Features------------------ */
.features-list{
  display: flex;
  gap: 30px;
}
.features-svg-item{
  width: 270px;
  height: 120px;
  flex-shrink: 0;
  border-radius: 4px;
  background-color: #F5F4FA;
  padding: 25px 100px;
  margin-bottom: 30px;
}
.features-item-title {
  color: var(--main-color);
  font-family: Roboto;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.features-item-txt {
  color: var(--text-color);
  font-family: Roboto;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.42px;
}
.features{
  padding-top: 94px;
  padding-bottom: 94px;
}
/* --------------WORK-Workers------------------ */
.work-title,
.workers-title {
  color: var(--main-color);
  text-align: center;
  font-family: Roboto;
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.08px;
}
.work-title{
  margin-bottom: 50px;
}
.work-list{
  display: flex;
  gap: 30px;
}
.work-list-item{
  position: relative;
}
.under-txt{
  color: #FFF;
  text-align: center;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  display: block;
  width: 100%;
  height: 70px;
  background: rgba(47, 48, 58, 0.80);
  position: absolute;
  bottom: 0px;
  left: 0px;
  padding-top: 27px;
}
.workers-title{
  padding-bottom: 50px;
}
.workers-list{
  display: flex;
  gap: 30px;
}
.workers-item{
  border-radius: 0px 0px 4px 4px;
  box-shadow: 0px 2px 1px 0px
   rgba(0, 0, 0, 0.20),
    0px 1px 1px 0px 
    rgba(0, 0, 0, 0.14), 
    0px 1px 3px 0px 
    rgba(0, 0, 0, 0.12);

}
.workers-item-title {
  color: var(--main-color);
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  letter-spacing: 0.48px;
  margin-bottom: 10px;
}
.workers-item-txt {
  color: var(--text-color);
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  line-height: normal;
  letter-spacing: 0.48px;
}
.list-soc{
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}
.soc-link-item{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  /* padding: 12px; */
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background-color, fill, 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.soc-item-svg{
  fill: #afb1b8;
}
.soc-link-item:hover,
.soc-link-item:focus{
  background-color: var(--hover-color);
  color: #fff;
}
.soc-link-item:hover .soc-item-svg,
.soc-link-item:focus .soc-item-svg{
  fill: #ffffff;
}

.Work{
  padding-bottom:94px;
}
.workers{
  padding-top: 94px;
  padding-bottom: 94px;
  background-color:  #F5F4FA;
}
.workers-name{
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: #ffffff;
}

/* ===============================REGULAR-CUSTUMERS================= */
.Regular-customers{
  padding-top: 94px;
  padding-bottom: 94px;
}
.Regular-customers-title{
  color: #212121;
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 1.08px;
  margin-bottom: 50px;
}
.Regular-customers-list{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}
.Regular-customers-item-link{
  width: 170px;
  height: 92px;
  border-radius: 4px;
  border: 1px solid #AFB1B8;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color, fill, 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.Regular-customers-link-svg{
  fill: #AFB1B8;
}
.Regular-customers-item-link:hover,
.Regular-customers-item-link:focus{
  border: 1px solid var(--hover-color);
}
.Regular-customers-item-link:hover svg,
.Regular-customers-item-link:focus svg{
  fill: var(--hover-color);
  transition: fill, 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
/* ===============================FOOTER================= */
.footer {
  background-color: #212121;
  padding-bottom: 60px;
  padding-top: 60px;
}
.footer-container1{
  margin-right: 94px;
}
.footer-logo {
  color: #fff;
  font-family: Raleway, sans-serif;
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.78px;
  display: inline-block;
  margin-bottom: 20px;
}
.footer-hero-link {
  color: #fff;
  font-family: Roboto;
  font-size: 14px;
  font-style: normal;
  line-height: 1.71;
  letter-spacing: 0.42px;
  display: inline-block;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-list{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-link {
  color: rgba(255, 255, 255, 0.6);
  font-family: Roboto;
  font-size: 14px;
  line-height: 1.71;
  letter-spacing: 0.42px;
  display: inline-block;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footer-hero-link:hover,
.footer-link:hover {
  color: var(--hover-color);
}
.footer-hero-link:focus,
.footer-link:focus {
  color: var(--hover-color);
}
.footer-container2{
  padding-top: 12px;
}
.footer-txt{
  color: #FFF;
  font-family: Roboto;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: 0.42px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.footer-listTwo{
  display: flex;
  gap: 10px;
}
.footerTwo-item-link{
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.footerTwo-item-link:hover,
.footerTwo-item-link:focus{
  background-color: var(--hover-color);
}
.footerTwo-link-svg{
  fill: #FFF;
}

/* ===============================PORTFOLIO================= */
.portfolio{
  padding-top: 94px;
  padding-bottom: 50px;
}
.portfolio-list{
  display: flex;
  gap: 8px;
  justify-content: center;
}
.portfolio-item-btn {
  color: var(--main-color);
  text-align: center;
  font-family: Roboto;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.48px;
  cursor: pointer;
  padding: 6px 22px;
  border-color: transparent;
  border-radius: 4px;
  background: #F5F4FA;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);

}
.portfolio-item-btn:hover {
  border-radius: 4px;
  color: #fff;
  background-color: var(--hover-color);
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.12), 0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0px 3px 1px 0px rgba(0, 0, 0, 0.10);
}
.portfolio-item-btn:focus {
  border-radius: 4px;
  color: #fff;
  background-color: var(--hover-color);
  box-shadow: 0px 2px 2px 0px rgba(0, 0, 0, 0.12), 0px 1px 2px 0px rgba(0, 0, 0, 0.08), 0px 3px 1px 0px rgba(0, 0, 0, 0.10);
}
.Categories{
  padding-bottom: 94px;
}
.categories-name{
 padding: 20px 24px;
  border-top: 0;
  border: 1px solid #EEE;
  background: #FFF;
}
.Categories-list{
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}
.Categories-list-item{
  width: 370px;
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.Categories-list-item:hover{
  box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.16), 0px 4px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
}
.Categories-list-item:focus{
  box-shadow: 1px 4px 6px 0px rgba(0, 0, 0, 0.16), 0px 4px 4px 0px rgba(0, 0, 0, 0.06), 0px 1px 1px 0px rgba(0, 0, 0, 0.12);
  visibility: hidden;
}
.Categories-item-title {
  color: var(--main-color);
  font-family: Roboto;
  font-size: 18px;
  font-weight: 700;
  line-height: 2;
  letter-spacing: 1.08px;
}
.Categories-item-txt {
  color: var(--text-color);
  font-family: Roboto;
  font-size: 16px;
  line-height: 1.87;
  letter-spacing: 0.48px;
  margin-top: 4px;
}
.tumb{
  width: inherit;
  position: relative;
  overflow: hidden;
}
.txt{
  color: #FFF;
  font-family: Roboto;
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.55; 
  letter-spacing: 0.54px;
  background: rgba(33, 150, 243, 0.90);

  position: absolute;
  top: 0px;
  left: 0px;
  display: block;
  width: 100%;
  height: 100%;
  padding: 63px 24px;
  transform: translateY(101%);
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.Categories-link-item:hover .txt{
  transform: translateY(0);
  transition: 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop{
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  background-color: rgba(0, 0, 0, 0.2);
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1),
    visibility 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.backdrop.is-hidden .modal {
  transform: translate(-50%, -50%) scale(0);
}
.is-hidden{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.modal{
  width: 528px;
  height: 580px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  border-radius: 4px;
  box-shadow: 0px 2px 1px 0px rgba(0, 0, 0, 0.2),0px 1px 1px 0px rgba(0, 0, 0, 0.14),0px 1px 3px 0px rgba(0, 0, 0, 0.12);
  background: rgb(255, 255, 255);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-btn{
  border-radius: 50%;
  width: 30px;
  height: 30px;
  padding: 6px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background-color: transparent;
  position: absolute;
  top: 8px;
  right: 8px;
}
