@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');

* {  
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

a {
    color: #000;
    text-decoration: none;
    transition: .4s;
}


ul, li {
    list-style: none;
}

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

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(#9aa482, #868f71);
    background-size: 100%;
    font-family: 'Merriweather', serif;
}

h1 {
    font-size: 30px;
}

html {
    margin: 0;
    padding: 0;
}

main { 
    margin: 0 auto;
    max-width: 1280px;
    width: 100%;
    background-color: #9aa482;
    border-color: #d0a16a;      
    background-image: url(../img/bg.svg);
    background-repeat: repeat;
    background-size: auto;
    box-shadow: 0px 0px 8px 0 #242424;
}

.conteiner {
    margin: auto;
    padding: 0 24px;
}


/*header*/

header.conteiner {
    position: sticky;
    top: 0;
    padding: 0 4px 4px;
    border-radius: 0 0 22px 22px;
    z-index: 2;
}

.header {
    position: relative;
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 58px;
    padding: 4px;
    background-color: #ffffff;
    border-radius: 0 0 22px 22px;
    box-shadow: 0 0 8px 0 #000;
}


.header__section {
    display: flex;
    justify-content: center;
    flex: 1 1 33.33%;
    text-align: center;
}


.header__title {
    cursor: default;
    font-size: 26px;
    line-height: 30px;
    font-weight: 700;
    text-transform: uppercase;
    font-family: 'Merriweather', serif;
}

.header__logo {
    height: 52px;
}

.header-number {
    font-size: 16px;
    line-height: 18px;
    text-transform: uppercase;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}
.number {
    transition: color .3s;
    color: #000;
}

.header-number:hover {
    transform: scale(1.2);
}



.number:hover {
    color: aliceblue;
}

/*master*/
.master {
    display: flex;
    flex-wrap: wrap-reverse;
    justify-content: space-evenly;
    align-items: center;    
    margin-top: 18px;
    gap: 15px;
}

.master-img {
    max-width: 328px;
}

.master-img > img {
    border-radius: 12px;
    max-width: 100%;
}

/*banner*/
.banner-conteiner {
    margin-top: -20px;
    padding: 0;
    box-shadow: 0 0 8px 0px black;
}

.banner {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 231px 24px;
    color: #ffffff;
    background-image: url(../img/barber-work.jpg);
    background-repeat: no-repeat;
    background-position: center;
    text-shadow: 0px 0px 9px #000000;
}

.banner b {
    color: #fff;
}

.banner-title {
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    max-width: 482px;
    background-color: rgba(0, 0, 0, 0.208);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    line-height: 47px;
    box-shadow: 0 0px 12px 0px black;
}
/*barber*/
.barber {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 32px;
    padding: 24px 0;
}

.barber-img {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    max-width: 100%;
    gap: 20px;
}
.barber-img > img {
    max-height: 224px;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.barber-img > img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 36px 0px black;
}

.barber-title {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 580px;
    padding: 28px 35px;
    border-radius: 28px;
    background: rgba(0, 0, 0, 0.082);
}

/*price*/
.price-title {
    width: 100%;
}
.price{
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #6a715c75;
    font-size: 18px;
    line-height: 22px;
}

.price > p:first-child {
    font-weight: 700;
}

/*info*/
.info-none {
    border: 0;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items:baseline;
    padding: 24px 0;
    border-top: solid 2px #6a715c75;
    border-bottom: solid 2px #6a715c75;
}
.info-title {
    text-align: center;
    width: 200px;
}

.info-title img {
    transition: filter .3s, transform .3s;
}

.info-title:hover img { 
    filter: drop-shadow(2px 2px 6px rgba(0, 0, 0, 1));
    transform: scale(1.1);
}

.info-title:hover .number {
    color: aliceblue;
}



/*about-us*/
.about-us {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    padding: 24px 0;
}

.about-us--title {
    max-width: 444px;
    gap: 22px;
}

.about-us--title > h2 {
    text-align: center;
    padding-top: 12px;
}
/*interior*/
.interior-block {
    display: flex;
    justify-content: center ;
    max-width: 400px;
}

.interior {
    display: flex;
    justify-content: space-around;
    gap: 15px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.interior > img {
    position: relative;
    border-radius: 12px;
    max-height: 198px;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.interior > img:hover {
    transform: scale(1.3);
    box-shadow: 0 0px 36px 0px black;
    z-index: 1;
}

.full-space {
    padding: 12px 20px;
    margin: 0 auto;
    max-width: 1076px;
}

.full-space > img { 
    position: relative;
    border-radius: 12px;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.full-space > img:hover {
    transform: scale(1.05);
    box-shadow: 0 0px 36px 0px black;
    z-index: 1;    
}



/*location*/
.location-title {
    width: 292px;
    padding: 12px;
    margin: 24px auto;
    text-align: center;
    line-height: 38px;
}

/*history*/
.history {
    border-top: solid 2px #6a715c75;
    flex-direction: row-reverse;
    justify-content: space-evenly;
}

.history-title {
    gap: 18px;
    max-width: 507px;

}

.history-title > h2 {
    text-align: center;
}

.history-title > p {
    font-size: 14px;
}

.history-img > img {
    height: 402px;
    border-radius: 12px;
    transition: all 0.5s cubic-bezier(0.075, 0.82, 0.165, 1);
}

.history-img > img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 36px 0px black;
}

footer {
    height: 400px;
    margin-top: 53px;
    background-image: url(../img/map-boss.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

/*media*/
@media screen and (max-width: 600px) {
    .header-number{
        font-size: 12px;
        line-height: 14px;
    }
    
    .header-number:hover {
        transform: scale(1.1);
    }

    header.conteiner {
        padding: 0;
    }

    .header__section:nth-child(2) {
        flex: 0 1 22.33%;
    }
}