@import url(https://fonts.googleapis.com/css?family=Roboto:100,100i,300,300i,400,400i,500,500i,700,700i,900,900i&subset=cyrillic,cyrillic-ext);

* {
    font-family: 'Roboto', sans-serif;
}
body{
    background-color: rgb(242, 242, 242);
    color: #333;
}
main{
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-height: 100vh;
    padding: 15px;
}
main.block{
    overflow: hidden;
    height: 100vh;
}
.panel{
    display: flex;
    gap: 10px;
    background: #fff;
    border-radius: 15px;
    box-shadow: 8px 14px 38px rgba(39, 44, 49, .06), -8px -14px 38px rgba(39, 44, 49, .06);
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}
.logo-block{
    display: flex;
    align-items: center;
    width: 100%;
    gap: 15px;
}
.logo-block > img{
    width: auto;
    height: auto;
    max-height: 70px;
    object-fit: contain;
}
.logo-block > .caption{
    flex-grow: 1;
    padding: 0 0 0 10px;
    background-color: #ffffff;
    line-height: 1;
    text-align: left;
}
.caption{
    display: flex;
    flex-direction: column;
    line-height: 1;
    text-align: center;
    background-color: #f2f2f2;
    padding: 5px;
    border-radius: 10px;
}
.logo-block > .caption > h1{
    margin: 0;
    font-size: 40px;
    font-weight: 700;
    line-height: 1;
}
.logo-block > .caption > h2{
    margin: 0;
    font-size: 20px;
    line-height: 1;
}
.content{
    display: flex;
    gap: 15px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}
.content .caption h4{
    font-size: 18px;
    font-weight: bold;
    margin: 0;
}
.content > .contacts{
    display: flex;
    flex-direction: column;
    min-width: 350px;
}
.content > .contacts > .item{
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px;
    text-decoration: none;
    color: #333333;
    border: 1px solid #f2f2f2;
    border-radius: 10px;
}
.content > .contacts > a.item:hover{
    background-color: #f2f2f2;
    transition: all .3s ease-in-out;
}
.content > .contacts > a.item:hover .icon{
    background-color: #ffffff;
}
.content > .contacts > .item .icon{
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f2f2f2;
    height: 50px;
    width: 50px;
    border-radius: 10px;
    transition: all .3s ease-in-out;
}
.content > .contacts > .item i{
    font-size: 28px;
}
.content > .contacts > .item > .item-content{
    line-height: 1.2;
    font-weight: 500;
    font-size: 18px;
}
.content > .contacts > .item > .item-content > *{
    margin-bottom: 0;
}
.soc-links{
    display: flex;
    justify-content: center;
}
.soc-links a{
    font-size: 34px;
    height: 60px;
    width: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    text-decoration: none;
    transition: all .3s ease-in-out;
}
.soc-links a:hover{
    opacity: .7;
}
.soc-links a.whatsapp{
    background-color: #00c000;
    color: #fff;
}
.content > .map{
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    max-width: calc(100% - 350px - 15px);
}
#mapYandex{
    height: 100%;
}
.content > .map > .map-container{
    overflow: hidden;
    flex-grow: 1;
    border-radius: 10px;
}
.content > .map > .text-address{
    text-align: center;
    line-height: 1.2;
    border-radius: 10px;
    padding: 5px;
    border: 1px solid #f2f2f2;
}
.content > .map > .text-address > *{
    margin-bottom: 0;
    font-size: 18px;
    font-weight: 500;
}
#openLanguage{
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 0 auto 0;
    background-color: #fff;
    padding: 5px 16px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: all .5s ease-in-out;
}
#openLanguage:hover{
    background-color: #333333;
    color: #ffffff;
}
#languageSelection{
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100%;
    min-height: 100vh;
    background-color: #000000c2;
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
#languageSelection.show{
    display: flex;
}
#languageSelection > .btn-container{
    background-color: #fff;
    padding: 15px;
    border-radius: 15px;
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
#languageSelection > .btn-container > *{
    padding: 10px 15px;
    border-radius: 5px;
    background-color: #fff;
    border: 1px solid #f2f2f2;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
}
#languageSelection > .btn-container > *:hover{
    background-color: #f2f2f2;
    transition: all .3s ease-in-out;
}
@media (max-width: 768px) {
    .logo-block{
       flex-direction: column;
        gap: 0;
    }
    .logo-block > .caption{
        padding: 0 0 10px 0;
        text-align: center;
        order: 1;
    }
    .logo-block > img{
        order: 0;
        max-height: 50px;
    }
    .logo-block > .caption > h1,
    .logo-block > .caption > h2{
        line-height: 1.2;
    }
    .content{
        flex-wrap: wrap;
    }
    .content > .contacts,
    .content > .map{
        width: 100%;
        max-width: inherit;
    }
    #mapYandex{
        height: 300px;
    }
}
