
/* HEADER */

.header{
  font-weight: 500;
  font-size: 13px;
}

.contacts{
  display: flex;
  justify-content: space-between;
  height: 70px;
  align-items: center;
}

.adress .link:visited{
  color: var(--primery-text-color);
}

.nav .list{
  display: flex;   
}

.nav .item{ 
  flex-basis: calc(100%/4);
  border: 1px solid var(--primery-title-color);
}

.nav .item:first-child{
  border-left: none;
}

.nav .item:last-child{
  border-right: none;
}

.nav-link,
.footer-item{
  display: flex;
  align-items: center;
  justify-content: center; 
  color: inherit;

  height: 47px;

  transition: color 250ms var(--function-transition), background-color 250ms var(--function-transition);
}

.nav-link:hover,
.nav-link:focus{
  color: var(--accent-color);
  background-color: #ffffffaa
}

/* HERO */

.hero{
  max-width: 1920px;
  height: 900px;
  margin-left: auto;
  margin-right: auto;

  background-image: url(../images/bgc.jpg);
  background-repeat: no-repeat;
  background-size: cover;
}

.buttons-list .item{
  display: inline-block;
}

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

.hero>.container{
  margin-top: 579px;
}

/* DESCRIPTION */

.description .container{
  padding-top: 60px;
  padding-right: 187px;
  padding-left: 190px;
  min-height: 656px;
  border: 3px solid #C4C4C4;
  text-align: center;
}

.title{
  font-family: "Playfair Display", sans-serif;
  font-weight: 700;
  font-size: 35px;
}

.description .title{
  margin-bottom: 40px;
}

.description .title::after{
  content: " ";
  margin-top: 40px;
  margin-right: auto;
  margin-left: auto;
  display: block;
  width: 160px;
  border-bottom: 1px solid #FFFFFF;
}

.text{
  margin-bottom: 35px;
  font-weight: 400;
  font-size: 16px;
}

.wineglass{
  margin-top: 50px;
}

/* NOVELTY */

.novelty{
  background-color: var(--bg-color);
}

.novelty>.container{
  display: flex;
  flex-basis: calc(100%/2);
  border-top: solid 1px var(--accent-color);
  padding-top: 60px;
}

.right-aside{
  margin-right: 90px;
}

.novelty .text,
.novelty .subtitle{
  color:var(--secondary-text-color);
}

.novelty .text{
  font-size: 14px;
}

.novelty .subtitle{
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 36px;
}

.novelty .subtitle::after{
  content: "";
  display: block;
  width: 30%;
  height: 1px;
  background-color: #282828;

  margin-top: 35px;
  margin-bottom: 35px;
}

.table{
  font-size: 14px;
  font-weight: 400;
  border: 2px solid transparent;
  border-collapse: collapse;

  margin-bottom: 40px;
}

.table th{
  padding-top: 15px;

  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
  text-align: center;
}

.table td{
  border: 1px solid #282828;
  border-top: 1px solid transparent;

  padding-bottom: 15px;

}

.row>.table-data{
  padding-bottom: 0;
}

.table-data{
  padding-left: 30px;
  padding-right: 30px;

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

.table.title{
  font-family: "Playfair Display";
  font-weight: 700;
  font-size: 18px;
}

.novelty .btn{
  color:var(--primery-text-color);
}

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

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

/* REGISTRATION */

.registration .container{
  padding-top: 60px;
  padding-right: 187px;
  padding-left: 190px;
  min-height: 656px;
  border: 3px solid #C4C4C4;
}

.form{
  position: relative;
  margin-right: auto;
  margin-left: auto;
  padding-bottom: 80px;
  padding-right: 5px;
  padding-left: 5px;
  width: 550px;
}

.form-title{
  text-align: center;

  color:var(--primery-title-color);
}

.form::before{
  content: "";
  display: block;
  width: 30%;
  height: 1px;
  background-color: var(--primery-text-color);

  margin-top: 40px;
  margin-bottom: 40px;

 margin-left: auto;
 margin-right: auto;
}

.form .text{
  text-align: center;
}

.form-list{
  display: flex;
  margin-bottom: 35px;
  list-style: none;
}

.form-item{
  position: relative;
}

.form-item input{
  border: none;
  border-bottom: 1px solid #FFFFFF;
  outline: none;
  width: 250px;
  height: 40px;
  padding: 5px;
  padding-left: 75px;
  background-color: inherit;
  

  font-weight: 400;
  font-size: 16px;
  color: currentColor;

  transition: border-bottom-color 250ms var(--timing-function);
}

.form-item input:hover,
.form-item input:focus{
  border-bottom-color: var(--accent-color);
}

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

.form-label{
  position: absolute;
  top: 25%;
}

.form-adress{
  font-weight: 400;
  font-size: 16px;

  margin-bottom: 35px;
  padding: 5px;
  border-bottom: 1px solid #fff;
}

.form-submit{
  display: flex;
  width: 541px;
  min-height: 50px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px 30px;
  
  background-color: transparent;
  justify-content: center;
  align-items: center;
  
  font-weight: 500;
  font-size: 16px;
  line-height: 1.25;
  text-align: center;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primery-title-color);

  border: 1px solid #FFFFFF;
  cursor: pointer;

  transition: border-color 250ms var(--timing-function), color 250ms var(--function-transition), background-color 250ms var(--function-transition);
}

.form-submit:hover,
.form-submit:focus{
  border-color: var(--accent-color);
  color: var(--accent-color);
  background-color: #ffffffaa;
}

/* FOOTER */

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

.footer .container{
  padding-top: 35px;
  padding-bottom: 35px;
}

.footer-item .nav-link{
  width: 100%;
  color: #ffffffaa;
  font-size: 12px;

  transition: color 250ms var(--function-transition);
}

.footer-item .nav-link:hover,
.footer-item .nav-link:focus{
  color: var(--accent-color);
}

.nav .footer-item{
 border-top: 1px solid #FFFFFF;
}

.footer .list{
  display: flex;
}


.footer-item{
  flex-basis:calc(100%/3);
  border-bottom:1px solid #FFFFFF;
}

.footer-contacts .footer-item{
  border-left: 1px solid #FFFFFF;
  border-right: 1px solid #FFFFFF;

  text-transform: uppercase;

  transition: color 250ms var(--function-transition), 
  background-color 250ms var(--function-transition);
}

.footer-contacts .footer-item:first-child{
  border-left: none;
}

.footer-contacts .footer-item:last-child{
  border-right: none;
}

/* .footer-contacts .footer-item:hover,
.footer-contacts .footer-item:focus{
  background-color: #ffffffaa;
  color: var(--accent-color);
} */


.list-inner {
  width: 100%;
}

.inner-item{
  flex-basis: calc(100%/3);
}

/* BACKDROP + MODAL */

.backdrop{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;

  opacity: 1;
  background-color: rgba(0, 0, 0, 0.2);

  transition: opacity 250ms var(--timing-function);
}

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

.backdrop.is-hidden .modal{
  transform: translate(-50%, -50%) scale(0.85);
  
}

.modal{  
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);

  transition: transform 250ms var(--timing-function);
  width: 90%;
  height: 90%;
  padding: 40px;
  background-color: var(--bg-color);

  border-radius: 4px;
  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);

  overflow: auto;
}

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

  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border: 1px solid rgba(0, 0, 0, .1);
  border-radius: 50%;

  cursor: pointer;
  background-color: #ffffff;
  transition: color 250ms var(--timing-function);

}

.close-button:hover,
.close-button:focus{
  color: var(--accent-color);
}

.product-list{
  display: flex;
  margin: -15px;
  flex-wrap: wrap;
  
}

.product-card{
  display: flex;
  width: 600px;
  margin: 20px;
  list-style: none;
  color: var(--secondary-text-color);

  align-items: flex-start;
}

.product-img{
  width: 240px;
  margin-right: 15px;
}

