
html {
    font-family: 'Yandex Sans Display', sans-serif;
    background-color: #FAFAFA;
    scroll-behavior: smooth;
}



/* -------------------- components -------------------- */

.container {
    max-width: 1220px;
    width: 100%;
    height: auto;
    padding: 20px 10px;
    margin: 0 auto;
}

h2 {
    font-size: 30px;
    font-weight: 600;
}

/* -------------------- HEADER DESKTOP -------------------- */

header {
    width: 100%;
    height: 50px;
    max-height: 50px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: #fff;
}

.header>ul{
    display: flex;
    align-items: center;
    font-family: 'Yandex Sans Display', sans-serif;

}

.header {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    box-shadow: 0 0 6px #ccccccae;
}

.logo {
    
    height: 50px;
    width: auto;
}


.header_route, .header_route_category {
    color: #E62222;
    margin-left: 5px;
}

.header_route>a, .header_route_category>a {
    color: #000;
    margin-left: 5px;
}




.header>ul:last-of-type>li {
    font-size: 16px;
    position: relative;
    display: inline-block;
    text-decoration: none;
    padding-bottom: 1px;
}

.header>ul:last-of-type>li+li {
    margin-left: 20px;
}

.header>ul:last-of-type>li::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 1px;
    background-color: #E62222;
    transition: width 0.3s ease;
}

.header>ul:last-of-type>li:hover::after{
    width: 100%;
}




/* -------------------- CONTACT -------------------- */

.contact {
    margin-top: 40px;
    background-image: url(./images/background.png);
    background-size: contain;
    background-repeat: no-repeat;
    
}

.container {
    animation: SectionAnim 0.5s ease forwards;
    animation-delay: 0.2s;
    transform: translateY(-20px);
    opacity: 0;
}

@keyframes SectionAnim {
    to {
        opacity: 1;
        transform: translateY(0px);
    }
}

.container>h5 {
    text-align: center;
    font-weight: 600;
    margin-top: 20px;
    font-size: 18px;
}

.container>h5>a {
    color: #E62222;
}



.contact_card {
    margin-top: 15px;
}

.contact_card>h3 {
    font-size: 24px;
    color: #E62222;
    font-weight: 600;
}

.contact_card>.address {
    margin-left: 10px;
    display: flex;
    font-size: 18px;
    font-weight: 600;
    margin-top: 5px;
}

.contact_card>.address>h3 {
    margin-right: 10px;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}


.contact_card>.address>h3:hover {
    color: #484848;
}


.contact_card>.address>a {
    color: #E62222;
}

.contact_card>.address>a:hover {
    color: #ff5151;
}

.address>a+a {
    border-left: 1px solid #E62222;
    padding-left: 5px;
    margin-left: 5px;
}

.contact_card>a {
    margin-left: 10px;
    font-weight: 600;
    color: #636363;

}


.contact_wrapper {
    display: flex;
    justify-content: space-between;
}

.map_container {
    position: sticky;
    top: 80px;
    margin-top: 15px;
    width: 500px;
    height: 500px;
}

.reset_btn {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 14px;
    border: none;
    border-radius: 6px;
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: opacity 0.3s ease;
    padding: 8px 12px;
}
#resetViewBtn:hover {
  opacity: 0.85;
}


/* -------------------- FOOTER -------------------- */

.footer {
    background-image: url(./images/footer.png);
    background-size: cover;
    height: 150px;
    text-align: center;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    padding: 60px 0 10px;
}

.footer>h5 {
    color: #737A80;
    font-size: 18px;
    
}

.footer>h6 {
    color: #545D63;
    font-size: 16px;
}


.orientation {
    z-index: 1000;
    background-color: #FAFAFA;
    height: 100vh;
    width: 100vw;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
}

.orientation>h1 {
    margin-top: 10px;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    max-width: 400px;
    line-height: 1;
}

@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: landscape){
    .orientation {
        opacity: 1;
        visibility: visible;
    }
}




@media (max-width: 1200px) {
    .map_container {
        top: 55px;
        max-width: 620px !important;
        width: 100% !important;
        height: 250px !important;
    }

    .contact_wrapper {
        flex-direction: column-reverse;
        align-items: center;
    }

    .contact_wrapper>.left {
        margin: 0 auto;
    }
}

@media (max-width: 650px) {

    .map_container {
        height: 200px !important;
    }
    .contact_card {
        width: 100% ;
        margin-top: 30px;
        display: flex;
        flex-direction: column;
    }

    .contact_card>h3 {
        font-size: 30px;
        font-weight: 800;
        margin-left: 10px;
    }

    .address {
        display: flex;
        flex-direction: column;
        margin-left: 20px !important;
    }

    .address>h3 {
        font-size: 22px;
        font-weight: 700;
    }

    .address>a {
        font-size: 20px;
        font-weight: 700;
    }

    .contact_card>a {
        font-size: 18px;
        margin-left: 20px;
    }


    .address>a + a {
        border: none;
        margin: 0;
        padding: 0;
    }


}

@media (max-width: 500px) {
    .footer>h5, .footer>h6{
        font-size: 14px !important;
    }

}
