/*==========  Desktop First Method  ==========*/

/* Large Devices, Wide Screens */
@media only screen and (max-width : 1200px) {
    .heading {
        padding: 25px 40px;
        margin: 40px 40px;
    }
}



/* Medium Devices, Desktops */
@media only screen and (max-width : 1024px) {
    .container {
        margin-left: 20px;
        margin-right: 20px;
    }
}

/* Small Devices, Tablets */
@media only screen and (max-width : 768px) {
    .burger {
        position: relative;
        width: 35px;
        height: 35px;
        margin: auto 0;
        -webkit-transition: .3s;
        -moz-transition: .3s;
        -o-transition: .3s;
        transition: .3s;
        cursor: pointer;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
    }
    .burger:hover .burger-line:not(:first-child):not(:last-child),
    .burger:focus .burger-line:not(:first-child):not(:last-child) {
        opacity: 0;
    }
    .burger:hover .burger-line:first-child,
    .burger:focus .burger-line:first-child {
        transform: rotate(-45deg);
        margin-top: 58%;

    }
    .burger:hover .burger-line:last-child,
    .burger:focus .burger-line:last-child {
        transform: rotate(45deg);
        margin-top: -58%;
    }
    .burger-line {
        position: relative;
        display: block;
        width: 100%;
        height: 3px;
        background-color: #15189D;
        -webkit-transition: .3s;
        -moz-transition: .3s;
        -o-transition: .3s;
        transition: .3s;
    }
    .menu {
        z-index: 1000;
        position: absolute;
        top: 0;
        left: -100%;
        background-color:#B20C2E;
        height: 100vh;
        width: 80%;
        -webkit-transition: .5s;
        -moz-transition: .5s;
        -o-transition: .5s;
        transition: .5s;
    }
    .menu_list {
        margin-top: 32px;
        display: block;
        width: 40%;
    }
    .list_item {
        margin-bottom: 12px;
    }
    .list-link {
        font-size: 24px;
        color: #fff;
    }
    #close-menu {
        position: absolute;
        display: block;
        width: 50px;
        height: 50px;
        padding: 8px;
    }
    .menu-active { left: 0; }

    /* Services */
    .services {
        margin: 50px auto;
    }
    .heading {
        font-size: 22px;
        padding: 20px 30px;
        margin: 20px 40px;
    }
    /* Footer start */
    .footer {
        padding: 20px 0;
        display: block;
    }
    .footer-block {
        margin-left: 40px;
        margin-bottom: 32px;
    }
    .footer_map {
        width: 80%;
        height: 250px;
    }
    .footer_heading {
        font-size: 22px;
    }
    /* Footer end */

    /* Time content start */
    .time_content {
        margin: 30px auto;
        max-width: 500px;
    }
    .time_heading {
        font-size: 24px;
    }
    /* Time content end */
    
    /* About picture start */
    .about_picture {
        min-height: 400px;
    }
    .about_picture_heading {
        font-size: 28px;
        margin-left: 24px;
        margin-right: 24px;   
    }
    .about_content {
        padding: 24px 25px;
    }
    .about_content_heading {
        margin-bottom: 20px;
        font-size: 26px;
    }
    .about_content_text {
        font-size: 18px;
        color: #555555;
        line-height: 1.5;
        text-align: justify;
    }

    /* About picture end */

    .news-text {
        font-size: 18px;
        line-height: 26px;
        margin-bottom: 30px;
        margin-top: 20px;
    }
    .news-title {
        margin-bottom: 10px;
    }
    .simple-block_heading {
        font-size: 25px;
    }
    .wrapper {
        height: 350px;
    }
}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    .menu {
        width: 100%;
    }
    .menu_list {
        width: 70%;
    }
    .list-link {
        font-size: 18px;
    }
    /* Payment form start */
    .payment_form {
        width: 300px;
    }
    .payment_form_input {
        font-size: 14px;
    }
    /* Payment form end */

    /* Services */
    .services {
        margin: 20px auto;
    }
    .heading {
        font-size: 18px;
        padding: 20px;
        margin: 20px 20px;
    }

    /* Footer start */
    .footer-block {
        margin-left: 10px;
        margin-bottom: 32px;
    }
    .footer_map {
        width: 95%;
        height: 200px;
    }
    /* Footer end */

    /* Time content start */
    .time_content {
        margin-left: 15px;
        margin-right: 15px;
    }
    .time_heading {
        font-size: 18px;
        margin-top: 10px;
        margin-bottom: 28px;
    }
    .time_block {
        flex-basis: 300px;
        padding: 23px 15px;
    }
    .time_block_heading {
        font-size: 20px;
    }    
    .time_thead th {
        padding: 8px 16px;    
        font-size: 14px;
    }
    .time_tbody {
        font-size: 14px;
    }
    /* Time content end */

    /* About picture start */
    .about_picture {
        min-height: 300px;
    }
    .about_picture_heading {
        font-size: 22px;
    }
    .about_content, .about_content_pictures {
        box-shadow: 0 0 6px rgba(0, 0, 0, .3);
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .about_content_heading {
        font-size: 18px;
        margin-bottom: 10px;
    }
    .about_content_text {
        font-size: 12px;
    }
    .about_content_pictures {
        padding: 15px;
    }
    .small-pictures img:first-child {
        margin-right: 10px;
    }
    .large-pictures img {
        margin-top: 10px;
    }
    /* About picture end */
    .logo {
        margin: auto 0;
        height: 60%;
    }
    .news-text {
        font-size: 14px;
        line-height: 20px;
        margin-bottom: 15px;
        margin-top: 10px;
    }
    .simple-block {
        padding: 13px 13px;
    }
    .news {
        margin-top: 15px;
        margin-bottom: 15px;
    }
    .wrapper {
        height: 180px;
    }
}
@media only screen and (max-width : 380px) {
    .wrapper {
        height: 150px;
    }
}

/* Custom, iPhone Retina */
@media only screen and (max-width : 320px) {
    /* About picture start */
    .about_picture_heading {
        margin-top: 10px;
    }
    /* About picture end */
    .news-text {
        font-size: 12px;
        line-height: 17px;
    }

}