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

@media screen and (min-width: 1920px) {
    body {
    	font-size: 26px;
    } 

    .wrapLogo2 {
        text-align: center;
        display: block;
    }



    .wrapTextMenuTop {
        margin-top: 150px;
        margin-bottom: 50px;
    }



    
}


@media screen and (max-width: 1920px) {
    body {
    	font-size: 22px;
    } 

    .wrapLogo2 {
        text-align: center;
        display: block;
    }



    .wrapTextMenuTop {
        margin-top: 150px;
        margin-bottom: 50px;
    }
    
}


@media only screen and (max-width: 1600px) {
    body {
    	font-size: 18px;
    }
    
}


@media only screen and (max-width: 1366px) {
    body {
    	font-size: 16px;
    } 
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 8em 1.2em 8em;
    }

    #background {
        padding-top: 500px;
    }
    
    #background .leftTop p {
        font-size: 16px;
    }

}

/* Large Devices, Wide Screens */


@media only screen and (max-width: 1024px) {

    body {
    	font-size: 15px;
    }  
    
    main {
        width: 100%;
        height: 100%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 25em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 8em 1.2em 8em;
    }  
    
}


/* Medium Devices, Desktops */
@media only screen and (max-width : 992px) {
    body {
    	font-size: 15px;
    }  
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 8em 1.2em 8em;
    }  
    
}


/* Small Devices, Tablets */
@media screen and (max-width : 768px) {
    body {
    	font-size: 14px;
    }
    
    #video_controle .video_img {
        background: url("../images/main-sm.jpg") 
        center center; 
    }
    
    main {
        width: 100%;
        height: 60%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 21em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 2em 1.2em 2em;
    }
    
    .slick-slide {
      margin: 0px 1em;
  }

}

/* Extra Small Devices, Phones */
@media only screen and (max-width : 480px) {
    body {
    	font-size: 13px;
    }

    main {
        width: 100%;
        height: 70%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 17em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 1em 1.2em 1em;
    }
    
    #nav {
        right: 4em;
        margin: 0;
    }

    .list_block {
        padding-top: 0.2em;
    }
    
    .w_list {
        margin: 0.8em auto 0 auto;
        height: 2px;
    }
    
    .menu_bar .menu_weight, .menu_bar .menu_cost { 
        padding: 0.5em 0 0 0;
        margin: 0;
    }
    
    .menu_bar .menu_weight p, .menu_bar .menu_cost p {
        text-align: left;
    }

    .logo2 {
        padding: 0;
        margin: 0 0 0 -70px;
        font-size: 2.5em;
    }

}


/* ----------- iPhone 6 ----------- */


/* Portrait */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 667px) 
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) { 

    body {
    	font-size: 11px;
    }

    #video_controle .video_img {
        background: url("../images/main-xs.jpg") 
        center center; 
    }
    
    main {
        width: 100%;
        height: 80%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 20em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 1em 1.2em 1em;
    }

    .wrapPopupImg img {
        width: 300px;
    }

}

/* Landscape */
@media only screen 
and (min-device-width: 375px) 
and (max-device-width: 667px) 
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) { 

    body {
    	font-size: 11px;
    }

    #video_controle .video_img {
        background: url("../images/main-sm.jpg") 
        center center; 
    }
    
    main {
        width: 100%;
        height: 100%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 16em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 1em 1.2em 1em;
        font-size: 1.5em;
    }  


    .menu_bar .menu_weight, .menu_bar .menu_cost { 
        padding: 0.5em 0 0 0;
        margin: 0;
    }
    
    .menu_bar .menu_weight p, .menu_bar .menu_cost p {
        text-align: left;
    }

    .popup ul li a {
        padding: 0.5em 1.8em 0.4em 1.8em;
    }

}


/* ----------- iPhone 5 ----------- */



/* Portrait */
@media only screen
and (min-device-width: 320px)
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: portrait) {

    body {
        font-size: 11px;
    }
    
    #video_controle .video_img {
        background: url("../images/main-xs.jpg") 
        center center; 
    }

    main {
        width: 100%;
        height: 80%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 19em 0 0 0;
    }

    .first_frame p {
        padding: 1em 5em;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 1em 1.2em 1em;
        font-size: 1.4em;
    }

    #about {
        padding-bottom: 10px;
    }

    .main_coneiner_wite {

    }

    .gallary {
        margin-top: 0;
    }

    .icoMenu {
        margin-bottom: 80px;
    }

    .icoMenu img {
        width: 300px;
        height: 300px;
    }

    .wrapLogoMenu {
        font-size: 2em;
    }

    .contacts h1 {
        padding-top: 80px;
    }

    .wrapPopupImg img {
        height: 160px;
    }

    .gallary .advantages img {
        width: 14em;
    }

    .text>h2>.h2gallary {
        padding-top: 25px;
    }

}

/* Landscape */
@media only screen 
and (min-device-width: 320px) 
and (max-device-width: 568px)
and (-webkit-min-device-pixel-ratio: 2)
and (orientation: landscape) {

    body {
    	font-size: 11px;
    }

    #video_controle .video_img {
        background: url("../images/main-sm.jpg") 
        center center; 
    }
    
    main {
        width: 100%;
        height: 100%;
    }
    
    .first_frame .first_frame_h1 {
        margin: 14em 0 0 0;
    }
    
    .main_coneiner p, .main_coneiner_wite p,
    .main_coneiner_red p, .contacts p {
        padding: 0 1em 1.2em 1em;
    }


    .menu_bar .menu_weight, .menu_bar .menu_cost { 
        padding: 0.5em 0 0 0;
        margin: 0;
    }
    
    .menu_bar .menu_weight p, .menu_bar .menu_cost p {
        text-align: left;
    }

    .popup ul li a {
        padding: 0.5em 1.8em 0.4em 1.8em;
    }

    .gallary .advantages img {
        width: 14em;
    }

    .text>h2>.h2gallary {
        padding-top: 25px;
    }

}




/*==========  Mobile First Method  ==========*/

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {

}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 480px) {

}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {

}

/* Medium Devices, Desktops */
@media only screen and (min-width : 992px) {

}

/* Large Devices, Wide Screens */
@media only screen and (min-width : 1200px) {

}