:root {
  --primary-text-color: #757575;
  --title-text-color: #212121;
  --accent-text-studio-color: #000000;
  --accent-color: #2196F3;
  --secondary-text-color: #FFFFFF;
  --primary-bg-color: #2F303A;
  --secondary-bg-color: #F5F4FA;
  --accent-text-link-color: rgba(255, 255, 255, 0.6);
  --border-color: #EEEEEE;
  --border-line-color: #ECECEC;
  --gradient: rgba(47, 48, 58, 0.4);
  --social-links-color: #AFB1B8;
  --accent-bg-links-color: rgba(255, 255, 255, 0.1);
  --overlay-color:rgba(33, 150, 243, 0.9);
  --backdrop-color: rgba(0, 0, 0, 0.2);
  --modal-button-border-color:rgba(0, 0, 0, 0.1);
  --text-picture-bg-color: rgba(47, 48, 58, 0.8);
  --contacts-input-bg-color:rgba(255, 255, 255, 0.3);
  --input-border: rgba(33, 33, 33, 0.2);
  --placeholder-color: rgba(117, 117, 117, 0.5);
}
 
body {
  font-family: Roboto;
  font-style: normal;
  font-weight: normal;
  color: var(--primary-text-color);
  background-color: var(--secondary-text-color);
}

.container {  
  width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;

   /* outline: 1px solid blue;  */
}

.border-line {  
  border: 1px solid var(--border-line-color);  
} 

.inline-item {
  position: relative;
  height: 80px; 
  display: flex;
  align-items: center;
}

/* Шапка сайта */
.Webstudio { 
  display: flex;
  margin: 0px;
  margin-right: 93px; 
  
  font-family: Raleway;
  font-weight: bold;
  font-size: 26px;
  line-height: 1.2;  
  letter-spacing: 0.03em;
  color: var(--accent-text-studio-color);
}

.web {
  color: var(--accent-color);
}

.studio-white {
  color: var(--secondary-text-color);
}

.list {
  display: flex;
  margin:0px;
}

.list,
.links {
  list-style: none;
}

.list .list-links {
  display: flex;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
 
  font-weight: 500;
  font-size: 14px;
  line-height: 1.14;
  text-decoration: none;
  color: var(--title-text-color);

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

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

.list .current {
  fill: var(--accent-color);
  color: var(--accent-color);
} 

.list .list-links:hover,
.list .list-links:focus {
  color: var(--accent-color);
}

.line {
  position: relative;
}
.line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  display: block;
  width: 100%;
  height: 4px;  

  border-radius: 2px;
  background-color: var(--accent-color); 
}

.address {  
  margin-left: auto; 
}
.nav-contact {
   display: flex;    
}

.address .adress-color {
  display: flex;
  align-items: center;
  margin-right: 30px;  
  
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
  color: var(--primary-text-color);

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.icon-contacts { 
  margin-right: 10px;   
  fill: currentColor;
}

.address .adress-color:last-child {
  margin-right: 0px;
}

.address .adress-color:hover,
.address .adress-color:focus {  
  color: var(--accent-color);
  fill: var(--accent-color);  
} 

/* /Шапка сайта */

/* Верхняя секция сайта */
.hero-container {
  padding-top: 200px;
  padding-bottom: 200px; 
}
.hero {    
  text-align: center; 
  background-color: var(--primary-bg-color);
}
.overlay {  
  margin-left: auto;
  margin-right: auto;
  background-image: url("../img/hero-img.jpg");

  background-image: linear-gradient(
    to right, 
    var(--gradient),
    var(--gradient) 
    ), url("../img/hero-img.jpg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover; 
}
 

.hero .hero-text { 
  margin: 0px;
  margin-bottom: 30px; 
  margin-left: auto; 
  margin-right: auto;
  width: 640px; 
  text-align: center; 
  text-transform: uppercase; 
 
  font-weight: 900;
  font-size: 44px;
  line-height: 1.4;
  color: var(--secondary-text-color);
}

.hero .button {
  display: inline-block;
  border-radius: 4px;
  padding: 10px 32px;
  width: 200px;  
  
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  line-height: 1.9;  
  color: var(--secondary-text-color);
  background-color: var(--accent-color);
} 
/* /Верхняя секция сайта */

/* Услуги */
.list-bar,
.images {
  padding: 0px;
  margin: 0px;
  display: flex;
  justify-content: space-between; 
  list-style: none;
}

.list-description {     
  width: 270px;
  
}
.icon {
  width: 270px;
  height: 120px;  
  margin-bottom: 30px;
  padding: 25px 100px;
  border-radius: 4px;
  background-color: var(--secondary-bg-color); 
}

.subtitle {
  margin: 0px;
  margin-bottom: 10px;
  text-transform: uppercase;   

  font-weight: bold;
  font-size: 14px;
  line-height: 1.14;
  letter-spacing: 0.03em;
  color: var(--title-text-color);
}

.first-description {
  margin-top: 0px; 
  margin-bottom: 0px; 
  padding-top: 3.5px;
  padding-bottom: 3.5px;
     
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.first-description:last-child {
    margin-right: 0px;
}
 /* /Услуги */

/* Картинки - описание деятельности */
.title-bar {
  padding-bottom: 94px;
}

.images .list-images { 
  position: relative;
  width: 370px;
  height: 294px;       
}
.text-picture {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  bottom: 0;
  width: 370px;
  height: 70px;

  font-weight: bold;
  font-size: 14px;
  line-height: 1.142;  
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
  background-color: var(--text-picture-bg-color);
}

.titles {
  margin: 0px;
  margin-bottom: 50px; 
    
  font-weight: bold;
  font-size: 36px;
  line-height: 1.2;
  text-align: center;
  color: var(--title-text-color);
}
/* /Картинки - описание деятельности */

/* Наша команда */
.photo {
  display: block; 
}
.team { 
  padding-top: 94px;
  padding-bottom: 94px;
  background-color: var(--secondary-bg-color);
}
.team-bottom {
  margin-bottom: 0px;
}

.team-photo {
  width: 270px;   
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.12), 0px 1px 1px rgba(0, 0, 0, 0.14), 0px 2px 1px rgba(0, 0, 0, 0.2);
  border-radius: 0px 0px 4px 4px;
}

.text {
  margin: 0px;
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  color: var(--title-text-color);
}

.description {
  margin: 0px;
  margin-bottom: 16px;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
}

.team-profile {  
  padding-top: 30px;
  padding-bottom: 30px;
  background-color: var(--secondary-text-color);
}

.team-links { 
  width: 270px;
  display: flex;
  justify-content: space-around; 
  padding: 0px 30px; 
}

.icons-bar {
  display: inline-flex;
  list-style: none;  
}

.icons-bar:last-child {
  margin-right: 0px;
}

.icon-links {
  width: 44px;
  height: 44px;
  margin-right: 10px;
  padding: 12px; 
  border-radius: 50%;
  color: var(--social-links-color);

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.social-icons {
  display: inline-flex; 
  align-items: center;   
  fill: currentColor;
}

.icon-links:hover,
.icon-links:focus {  
  background-color: var(--accent-color);
  color: var(--secondary-text-color); 
}  
  
/* /Наша команда */

/*Постоянные клиенты*/
.clients-container {
  padding-top: 94px;
  padding-bottom: 94px;
}

.clients {
  display: flex;  
  align-items: center; 
  justify-content: space-around; 
  padding: 0px;
  margin: 0px;
}

.clients-logo {  
  list-style: none;
  width: 170px;
  height: 90px;
}  

 .regular-clients { 
  display: flex;
  align-items: center;
  justify-content: center;  
  width: 100%;
  height: 100%;
  border: 1px solid var(--social-links-color) ;
  border-radius: 4px; 
  background-color: var(--secondary-text-color); 
  color:  var(--social-links-color) ;

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1), border 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.icon-logo {    
  fill: currentColor;
}

.regular-clients:hover,
.regular-clients:focus {
  background-color: var(--secondary-text-color); 
  border: 1px solid var(--accent-color);
  color: var(--accent-color);
}
/*/Постоянные клиенты*/

/* Контакты */
.contacts { 
  background-color: var(--primary-bg-color);
}
.padding-contacts {   
  padding-top: 60px;
  padding-bottom: 60px;  
}

.adress .location {
  margin: 0px;
  margin-bottom: 9px;
  margin-right: 70px;
  
  font-style: normal; 
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em;
  color: var(--secondary-text-color);
}

.adress .address-color {
  display: block;
  margin-bottom: 9px;
  text-decoration: none;  
  
  font-style:normal;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.03em; 
  color: var(--accent-text-link-color);
}

.adress .address-color:last-child {
  margin-bottom: 0px;
}

  .box-container { 
  display: flex;
  align-items: baseline;  
  
} 
.logo {  
  margin-bottom: 20px;  
} 

.subtitle-text {
  margin: 0px;
  margin-bottom: 20px; 

  font-weight: bold;
  font-size: 14px;
  line-height: 1.142;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
}

.address-bar {
  display: flex;
  margin: 0px;
  padding: 0px;
  cursor: pointer;
}

.icon-color { 
  width: 44px;
  height: 44px;
  margin-right: 10px; 
  padding: 12px; 
  border-radius: 50%;  
  background-color: var(--accent-bg-links-color);

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.icon-color:last-child {
  margin-right: 0px;  
}
.icon-color:hover,
.icon-color:focus {
  background-color: var(--accent-color);
}

.icon-fill {
  fill: var(--secondary-text-color);
}
.form {
   display: flex; 
   align-items: flex-end; 
   
   width: 570px; 
}
.form-field {
  margin-left: 93px;
  margin-right: 12px;
}

.contact-label {
  display: block;
  margin-bottom: 20px; 
  
  font-weight: bold;
  font-size: 14px;
  line-height: 1.142;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--secondary-text-color);
}
.contact-input {
  width: 358px;
  height: 50px;
  border: 0;
  padding: 0;
  padding-left: 16px;

  color: var(--accent-text-link-color);
  background-color: var(--primary-bg-color);
  border: 1px solid var(--contacts-input-bg-color);
  border-radius: 4px;
  outline: none;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.15));

  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-input::placeholder {
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0.03em;

  color: var(--accent-text-link-color);
}

.form-field:hover .contact-input {
  border: 1px solid var(--accent-color); 
}

.form-field:focus-within > .contact-input {
  border: 1px solid var(--accent-color);   
}

.contact-button {
  border: 0;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0 29px;
  width: 200px;
  height: 50px;  

  background-color: var(--accent-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border-radius: 4px;
  cursor: pointer;
}

.button-text {
  margin-right: 10px;
  text-align: center; 

  font-weight: bold;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.06em;
  
  
  color: var(--secondary-text-color);
  
}
.icon-send {
  display: flex;
  align-items: center;
  width: 24px;
  height: 24px;

  fill: var(--secondary-text-color);

}
/* /Контакты */

/* Модалка */
.backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color:var(--backdrop-color) ;
  
  opacity: 1;
  transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.backdrop.is-hidden {
  opacity: 0;
  pointer-events: none;  
 
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-top: 40px; 

  width: 528px;
  height: 581px;
  
  cursor: pointer;
  background-color: var(--secondary-text-color);
}
.modal-button {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  padding: 0px;
  /* outline: none; */
  cursor: pointer;
  border: 1px solid var(--modal-button-border-color);
  border-radius: 50%;
  background-color: var(--secondary-text-color); 

  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-button:hover .x-button { 
  fill: var(--accent-color); 
} 
.modal-button:focus-within > .x-button {
  fill: var(--accent-color);
}

 .data {   
  position: absolute; 
  top: 42%;
  left: 50%;
  
  transform: translate(-50%, -50%);
  width: 448px;
  height: 342px;
  cursor: pointer;
} 

 .form-title {
  margin: 0;
  margin-bottom: 12px;

  font-weight: bold;
  font-size: 20px;
  line-height: 1.15;
  text-align: center;
  letter-spacing: 0.03em;

  color: var(--title-text-color);
} 
.data-form {  
  padding: 0;
  margin: 0;  
  list-style: none;
  
}

.data-list {
  position: relative;  
  display: flex;
  flex-direction: column; 
}

.modal-label {
  margin-bottom: 4px; 
  cursor: pointer; 
}

.modal-input {   
  margin-bottom: 10px;
  padding-left: 42px ;
  width: 448px;
  height: 40px;

  border: 1px solid var(--input-border);
  border-radius: 4px;  
  outline: none;

  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.icon-data {
  position: absolute;
  top: 33px;
  left: 15px;  
  fill: var(--title-text-color);

  transition: fill 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.data-list:hover .modal-input {
  border: 1px solid var(--accent-color); 
  background-color: var(--secondary-text-color);
  
}

.data-list:hover .data-icon {
 fill: var(--accent-color); 
 
}

.data-list:focus-within > .modal-input {
  border: 1px solid var(--accent-color); 
  background-color: var(--secondary-text-color);
}

.data-list:focus-within > .icon-data {
fill: var(--accent-color);
} 

.comment {
  width: 448px;
  height: 120px;
  resize: none;
  padding: 12px 16px;
  margin-bottom: 20px;
  border: 1px solid var(--input-border);
  border-radius: 4px;
  
  outline: none;

  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}
.comment::placeholder {
  font-size: 14px;
  line-height: 1.142;
  letter-spacing: 0.01em;

  color: var(--placeholder-color);
}
.data-list:hover .comment {
  border: 1px solid var(--accent-color); 
  background-color: var(--secondary-text-color);
}

.data-list:focus-within > .comment {
  border: 1px solid var(--accent-color); 
  background-color: var(--secondary-text-color);
} 

.checkbox { 
  position: absolute; 
  left: 52px;
  bottom: 110px; 
  cursor: pointer; 

  transition: border 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.checkbox-input {
  width: 1px;
  height: 1px;
  margin: -1px;
  border: 0;
  padding: 0;
  clip: rect(0 0 0 0);
  overflow: hidden;

  position: absolute;
}

.check-box {
  position: absolute;
  top: 3px;
  left: 7px; 
  
  width: 16px;
  height: 15px;
  margin-left: -8px;

  border: 2px solid var(--title-text-color);
  border-radius: 4px;
  background-color: var(--secondary-text-color);
}
.checkbox-input:checked + .check-box {
  border-color: var(--accent-color);
  background-color: var(--accent-color);
  background-image: url(../img/icon-check.svg);
  background-size: contain;
 background-origin:border-box;
}
.checkbox-input:focus-within + .check-box {
  border-color: var(--accent-color);
}

.contract-term {
  display: inline-block;   
  padding-left: 23px;

  font-size: 14px;
  line-height: 1.714;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.contract-link {
  padding-left: 0;
  text-decoration: none;
  color: var(--accent-color);
  outline: none;
}
.send {
  position: absolute;
  left: 164px;
  bottom: 40px; 
  width: 200px;
  height: 50px;
  
  background-color: var(--accent-color);
  box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.15);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
}

.btn-text {  
  text-align: center;

  font-weight: bold;
  font-size: 16px;
  line-height: 1.875;
  letter-spacing: 0.06em;
  color: var(--secondary-text-color)
}
/* /Модалка */

/*Portfolio*/

/*Кнопки*/
.section-bar {
  padding-top: 94px;
  padding-bottom: 94px;
}

.links {
  display: flex;
  justify-content: center;
  margin: 0px;
  padding: 0px;  
}

.links-button {
  margin-bottom: 50px;
  margin-right: 8px;
}

.links-button:last-child {
  margin-right: 0px;
}

.links .links-description {
  display: inline-block;
  border-radius: 2px;
  text-decoration: none;
  padding: 6px 22px;

  font-weight: 500;
  font-size: 16px;
  line-height: 1.62;  
  color: var(--title-text-color);
  background-color: var(--secondary-bg-color);

  transition: color 250ms cubic-bezier(0.4, 0, 0.2, 1), background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.links-description:hover,
.links-description:focus {
  color: var(--secondary-text-color);
  background-color: var(--accent-color);
}
/*/Кнопки*/


/* Описание картинок */

.image-description {
  list-style: none;
  padding: 0px;
  margin: 0px;  
  display: flex; 
  flex-wrap: wrap;
  justify-content: space-between;   
}
.border {
  padding: 0px;
  margin: 0px;
  margin-bottom: 30px;
  width: 370px;
  
  background-color: var(--secondary-text-color);
  border: 1px solid var(--border-color);

  transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1);
  }

.border:nth-last-child(-n+3) {
  margin-bottom: 0px;
}

.border:hover,
.border:focus {
  box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.12), 0px 4px 4px rgba(0, 0, 0, 0.06), 1px 4px 6px rgba(0, 0, 0, 0.16);
}

.portfolio-links {
  display: block;
  text-decoration: none;
}

.image-description .title-bar {
  margin: 0px;
  padding-bottom: 0px;
  margin-bottom: 4px;
  font-weight: bold;
  font-size: 18px;
  line-height: 2;
  color: var(--title-text-color);
}

.image-description .description-bar {
  margin: 0px;
  margin-bottom: 4px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--primary-text-color); 
}

.site-bar {
padding: 20px 24px;
background-color: var(--secondary-text-color);
}
/* /Описание картинок */

/* Выезжающий блок */
.border:hover .product-overlay {
  transform: translateY(-100%);
  }

.thumb {
  position: relative;
  overflow: hidden;
  }

.product-overlay {
  position: absolute;
  left: 0;
  bottom: -100%;
  width: 100%;
  height: 100%;
  
  padding: 63px 24px;
  
  transition: transform 250ms cubic-bezier(0.4, 0, 0.2, 1);
  background-color: var(--overlay-color);
}

.thumb-text {
  position: absolute;
  margin: 0px;
  width: 322px;
  
  font-size: 18px;
  line-height: 1.555;
  letter-spacing: 0.03em; 
  color: var(--secondary-text-color);

/* /Выезжающий блок */