*{
    margin: 0;
}

a {
    text-decoration: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    border: 0;
    clip: rect(0 0 0 0)
  }

body{
    background:#000000 url(img/bg.jpg) top 39px center no-repeat;
    margin: 0;
    padding: 0;
    font-family: 'PT Sans Narrow', Arial,sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    color: #ffffff;
    text-transform: uppercase;
}

.menu{
    margin-bottom: 59px;
}

.menu_nav{
    display: flex;
    flex-wrap: wrap;
}

.menu_block{
    background-color: #000000;
    width: 100%;
    margin-bottom: 60px;
}

.wrapper{
    width: 940px;
    margin: 0 auto;
    padding-right: 10px;
    padding-left: 10px;
}

.menu_block .wrapper{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.menu_list{
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.menu_link{
    position: relative;
    display: block;
    padding-top: 25px;
    padding-bottom: 23px;
    font-size: 16px;
    color:#ffffff ;
}

.active::after{
  position: absolute;
  content: '';
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: #ffffff;
}

.menu_link:hover{
    background-color: #1e1e1e;
}

.menu_link:active{
    color: #6c6969;
}

.menu_logo{
    margin: 0 auto;
    order: 1;
}

.menu_item{
    margin-left: 14px;
    margin-right: 13px;
    list-style: none;
}

.menu_item:last-child{
    margin-right: 0;
}

.menu_login .menu_link{
    padding-left: 38px;
    padding-right: 22px;
}

.menu_link{
    padding-left: 7px;
    padding-right: 6px;
}

.menu_login{
    position: relative;
}

.menu_login .menu_link::before{
    position: absolute;
    left: 10px;
    top: 29px;
    content: '';
    width: 14px;
    height: 14px;
    opacity: 0.3;
    background-image: url(img/login.svg);
}

.menu_login:hover .menu_link::before{
    opacity: 0.6;
}

.advantages{
    margin-top: 61px;
    margin-bottom: 78px;
}
 

.advantages_list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
    padding: 0;
}
 
.advantages_item{
    width: 300px;
    text-align: center;
    color: #f7f4f1;
}

.advantages_title{
    position: relative;
    margin-bottom: 61px;
    font-size: 30px;
    line-height: 42px;
}

.advantages_title::after{
    position: absolute;
    top: 54px;
    left: 140px;
    content: '';
    width: 20px;
    height: 20px;
    background-color: #f7f4f1;
    transform: rotate(45deg);
}

.info_content{
    display: flex;
    background-color: #f8f5f2;
    background-image:url(img/bg-info.png) ;
    color: #000000;
    margin-bottom: 36px;
}

.info_content:nth-child(3){
    margin-bottom: 65px;
}

.news,.gallery,.contacts,.appointment{
    width: 410px;
    padding-left: 80px;
    padding-top: 55px;
}

.gallery{
    padding-left: 100px;
    padding-top: 54px;
}

.news_title,.gallery_title{
    font-size: 30px;
}

.news_paragraph{
    padding-top: 28px;
}

.news_item:nth-child(2) .news_paragraph{
    padding-top: 20px;
}

.news_list{
    padding: 0;
    list-style: none;
}

.news_time{
    text-transform: lowercase;
}

.button{
    display: block;
    width: 140px;
    padding-top: 11px;
    padding-bottom: 9px;
    text-align: center;
    background-color: #000000;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font: inherit;
    text-transform: uppercase;
}

.button:hover{
    background-color: #916a18;
}

.button_news{
    margin-top: 28px;
    margin-bottom: 50px;
}
 

.gallery_block{
    padding-top: 31px;
    padding-bottom: 31px;
}

.gallery_block img{
    border: 7px solid #ffffff;
}

.gallery_buttons{
    display: flex;
    width: 300px;
    justify-content: space-between;
}
 
.contacts_title,.appointment_title{
    font-size: 30px;
    padding-bottom: 29px;
}

.contacts_paragraph{
    padding-bottom: 20px;
}

.contacts_paragraph:nth-child(3){
    padding: 0;
}

.button_block{
    display: flex;
    flex-wrap: wrap;
}

.contacts_button{
    margin-right: 20px;
    margin-top: 22px;
    margin-bottom: 99px;
    width: 140px;
}

.appointment{
    padding-left: 100px;
}

.appointment_title{
    padding-bottom: 0;
}

.appointment_paragraph{
    padding-top: 29px;
    padding-bottom: 12px;
}

.appointment_form{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 300px;
}

.appointment_data, .appointment_data input{
    width: 139px;
 
}

.appointment_data label {
    padding-left: 17px;
}

.appointment_data input{
    padding-left: 15px;
    padding-top: 7px;
    padding-bottom: 7px;
    margin-top: 7px;
    margin-bottom: 9px;
    color: rgba(0, 0, 0, 0.7);
    font: inherit;
    box-sizing: border-box;
    border: 2px solid #000101;
}

.appointment_button{
    width: 100%;
    margin-top: 11px;
}

.footer{
    background-color: #252525;
    background-image: url(img/bg-footer.jpg);
}

.footer .wrapper{
    display: flex;
    padding-top: 58px;
    padding-bottom: 45px;
}

 .footer_paragraph {
    width: 307px;
}

.footer_dev .footer_paragraph{
    width: 140px;
    margin-bottom: 14px;
}

.footer_search-link{
    color: #ffffff;
    text-decoration: underline;
}

.footer_search-link:hover{
    color: #916a18;
}

.footer_social{
    margin-left: 93px;
}

.footer_list {
    display: flex;
    flex-wrap: wrap;
    padding: 0;
    list-style: none;
}

.footer_title {
    text-align: center;
    margin-bottom: 15px;
}

.footer_link {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
    background-color: #000000;
    width: 43px;
    height: 43px;
    color: #ffffff;
    font-size: 0;
    text-align: center;
}

.footer_link:hover{
    background-color: #ffffff;
}

.footer_link:hover svg path{
    fill: #000000;
}

.footer_dev{
    margin-left: 253px;
    text-align: center;
}


/* item */


.item{
    background: #fdfaf7 url(img/bg-info.png);
}   

.menu_block--item{
    margin-bottom: 0;
}

.menu_link--logo{
    padding-bottom: 16px;
}

.main{
    color: #000000;
    margin-bottom: 27px;
}

.nav_main{
    margin-bottom: 53px;
}

.main-title{
    margin-bottom: 24px;
}

.main_list{
    padding:0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
}

.main_item{
    position: relative;
    padding-right: 45px;
}

.main_item:last-child{
    margin:0;
    color:#aba9a7;
}

.main_item:last-child::after{
    display: none;
}

.main_item::after{
    position: absolute;
    top: 9px;
    right: 23px;
    content: '';
    width: 7px;
    height: 7px;
    background-color: #000000;
    transform: rotate(45deg);
}

.main_link{
    color: #000000;
}

.product{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.product_list{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 460px;
    padding:0;
    list-style: none;
}

.product_item{
    width: 140px;
    box-shadow: 0 0 15px 0 rgba(0, 1, 1, 0.2);
    background-color: #ffffff;
    margin-bottom: 15px;
}

.product_item:first-child{
    width: 460px;
}

.product_description{
    width: 389px;
    padding-top: 19px;
}

.description_block{
    display: flex;
    justify-content:space-between;
    margin-bottom: 29px;
}

.description_block:nth-child(3){
    justify-content: start;
    margin-bottom: 63px;
}

.description_title{
    font-size: 24px;
    margin-bottom: 32px;
}

.description_list{
    padding: 0;
    padding-left: 20px;
    list-style: none;
}

.description_item{
    position: relative;
}

.description_item::before{
    position: absolute;
    top: 8px;
    left:-18px;
    content: '';
    width: 7px;
    height: 7px;
    background-color: #000000;
    transform: rotate(45deg);
}

.product_price{
    width:109px;
    padding-top: 9px;
    text-align: center;
    background-color: #e5e5e5;
}

.product_paragraph{
    margin-bottom: 36px;
}

.product_button{
    width: 78px;
}

.footer--shadow{
    position: relative;
}

.footer--shadow::before{
    content: '';
    position: absolute;
    width: 100%;
    height: 40px;
    top: 0;
    background-image: url(img/footer-shadow.png);
}

/*Price*/ 

.nav_price{
    margin-bottom: 58px;
}

.price_title{
    position: relative;
    margin-bottom: 73px;
    text-align: center;
    font-size: 48px;
}

.price_title::before,.price_title::after{
    position: absolute;
    content: '';
    top: 13px;
    width: 160px;
    height: 2px;
    background-color: #000000;
}

.price_title::before{
    left: 0;
}

.price_title::after{
    right: 0;
}

.price_block{
    display: flex;
    flex-wrap: wrap;
    justify-content:space-between;
    margin-bottom: 74px;
}

.brand-name_title,.services_title,.about_title{
    font-size: 24px;
    line-height: 30px;
    margin-bottom: 30px;
}

.brand-name_list{
    list-style:none;
    padding-left:18px;
}

.brand-name_item{
    margin-bottom: 13px;
    position:relative;
}

.brand-name_item::before{
    position: absolute;
    top: 8px;
    left:-18px;
    content: '';
    width: 7px;
    height: 7px;
    background-color: #000000;
    transform: rotate(45deg);
}

.services{
    width: 460px;
}

.services_title{
    margin-bottom: 36px;
}

.services_table{
    width: 460px;
    border: 2px solid black;
    border-collapse: collapse;
}

.services_table td,tr{
    border: 2px solid black;
    padding-top: 7px;
    padding-bottom: 9px;
}

.services_name{
    width: 210px;
    padding-left: 20px;
}

.services_price{
    width: 230px;
    text-align: center;
}

.about{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.about_title{
    width: 100%;
}

.about_paragraph{
    width: 462px;
}

.brand-name,.services{
    margin-bottom: 44px;
}

/*shop*/ 

.goods{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.goods_form .button {
    width: 114px;
}

.goods_filter{
    padding: 0;
    margin-bottom: 47px;
    border:none;
}

.goods_filter:nth-child(2){
    margin-bottom: 37px;
}

.goods_block:nth-child(2){
    width: 172px;
}

.goods_block:nth-child(3){
    width: 700px;
}

.goods_title{
    padding-top: 7px;
    padding-bottom: 11px;
    text-transform: none;
    line-height: 18px;
}

.goods_link{
    color: #000000;
}

.goods_title,
.goods_price{
    font-size: 14px;
    padding-left: 16px;
    padding-right: 16px;
}

.goods_price{
    display: flex;  
    padding-bottom: 16px;
    min-height: 44px;
}

.goods_cost{
    padding-top: 11px;
    width: 109px;
    text-align: center;
    background-color: #e5e5e5;
}

.goods_button{
    width: 78px;
}

.goods_leg{
    margin-bottom: 20px;
    font-size: 24px;
    line-height: 30px;
}

.goods_filter:nth-child(2) .goods_leg{
    margin-bottom: 26px;
}

.goods_list{
    padding: 0;
    margin-bottom: 45px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    list-style: none;
}

.goods_item{
    width: 220px;
    background-color: #ffffff;
    box-shadow: 0 0 15px 0 rgba(0, 1, 1, 0.2);
}

.goods_item:hover{
    box-shadow: 3.2px 3.8px 25px 0 rgba(0, 1, 1, 0.3);
}

.goods_item:nth-child(-n+3){
    margin-bottom: 20px;
}

.pagination_list{
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin-bottom: 22px;
}

.pagination_link{
    display: block;
    background-color: #000000;
    padding: 10px 18px;
    margin-right: 8px;
    color: #ffffff;
}

.pagination_link:hover{
    background-color: #663d15;
}

.pagination_link--active{
    background-color: #ffffff;
    color: #000000;
}

.pagination_link--active:hover{
    background-color: #ffffff;
}

.goods_checkbox{
    margin-bottom: 13px;
     
}

.goods_checkbox:hover,
.goods_radio:hover{
    color: #663d15;
}
 

.goods_radio{
    margin-bottom: 10px;
}

.goods_checkbox:last-child{
    margin-bottom: 0;
}

label{
    display: block;
    position: relative;
    padding-left: 42px;
    cursor: pointer;
}
 
 input[type="checkbox"],input[type="radio"]{
  display: none;
}

input[type="checkbox"] + label::before,
input[type="radio"]+label::before{
    position: absolute;
    content: '';
    left: 0;
    border: 2px solid #000000;
    width: 18px;
    height: 18px;
}

input[type="checkbox"]:checked + label::after,
input[type="radio"]:checked+label::after{
    position: absolute;
    content: '';
    left: 5px;
    top: 5px;
    background-image: url(img/cancel.svg) ;
    background-repeat: no-repeat;
    width: 12px;
    height: 12px; 
}

input[type="radio"]+label::before{
    border-radius: 20px;
}

input[type="radio"]:checked+label::after{
    width: 8px;
    height: 8px;
    background: black;
    border-radius: 20px;
    left: 7px;
    top: 7px;
}

.user_block,.map{
    display: none;
    position: fixed;
    margin-left: auto;
    margin-right: auto;
    padding-left: 80px;
    padding-right: 80px;
    padding-top: 55px;
    padding-bottom: 58px;
    left: 0;
    top: 120px;
    right: 0;
    width: 300px;
    background: #fdfaf7 url(img/bg-info.png);
    box-shadow: 3.2px 3.8px 25px 0 rgba(0, 1, 1, 0.3);
    color: #000000;  
    animation-name: spin;
    animation-duration: 2s; 
}

@keyframes spin {
    0%   { transform: translateY(0); }
    10%  { transform: translateY(-154px); }
    30%  { transform: translateY(40px); }
    70%  { transform: translateY(50px); }
    70%  { transform: translateY(0); }
}

 
.user_title{
    font-size: 30px;
    margin-bottom: 24px;
}

.user_paragraph{
    margin-bottom: 10px;
}

.user_data{
    position: relative;
    display: flex;
    margin-bottom: 9px;
}

.user_data::after {
    position: absolute;
    content: '';
    background-image: url(./img/user.svg) ;
    right: 17px;
    top: 14px;
    width: 13px;
    height: 13px;
}

.user_data:nth-child(2){
    margin-bottom: 16px;
}

.user_data:nth-child(3){
    margin-bottom: 13px;
}
 
.user_data:nth-child(2)::after{
    background-image: url(img/lock.svg);
    height: 15px;
}

.user_data:nth-child(3)::after{
    display: none;
}

.user_data label{
    padding:0;
    font-size: 0;
}

.user_data label:nth-child(2){
    padding-left: 30px;
    font-size: inherit;    
}

.user_data input{
    position: relative;
    border: 2px solid #000000;
    padding: 11px;
    padding-right: 44px;
    width: 100%;
    font-weight: 700;
}
 
.user_data input::placeholder{
    font-family: 'PT Sans Narrow', Arial,sans-serif;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

.user_link{
    color: inherit;
    margin-left: auto;
    text-decoration: underline;
}

.user_button{
    width: 100%;
}

.close{
    position: absolute;
    top: 9px;
    right: -31px;
    font-size: 0;
    content: '';
    width: 18px;
    height: 18px;
    background: url(img/cross.svg) center no-repeat; 
    background-size: 18px;
    border: none;
    cursor: pointer;
}
 
.map {
    width: 780px;
    padding: 0;
    min-height: 573px;
    box-sizing: border-box;
    background-color: #ffffff;
    border: 7px solid #ffffff;
    box-shadow: 0px 30px 50px 0 rgba(0, 1, 1, 0.75);
}

.map_img{
    width: 100%;
 }

.actived{
    display: block;
}
