/*
Theme Name: Ohota
Theme URI: https://wordpress.org
Author: anonym
Author URI: https://wordpress.org/


This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned with others.
*/
	
	body {
    margin: 0px;
    padding: 0px;
    background: #d7dee0;
}

form {
    margin: 0px;
    padding: 0px;
}

.warrper {
    max-width: 1004px;
    margin-left: auto;
    margin-right: auto;
}

.main_header {
    position: relative;
    width: 100%;
    height: 627px;
    background: url(../images/main_header.jpg) no-repeat;
    background-size: contain;
}

.header {
    margin-top: 26px;
    height: 428px;
    background: url(../images/header.jpg) no-repeat;
    background-size: contain;
}

.header_telephone {
    position: absolute;
    top: 40px;
    left: 65%;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.7em;
}

.header_telephone p {
    display: block;
    margin: 0;
}

/* .header_telephone p:nth-child(2) {
    font-weight: bold;
} */

.header_telephone a {
    text-decoration: none;
    font-weight: bold;
    color: black;
}

.main_logo {
    position: relative;
    top: 4%;
    left: 1%;
    width: 23%;
    height: 30%;
    margin: 0 auto;
    
}

.main_logo a {
    display: block;
    width: 100%;
    height: 100%;
}

.main_menu_block {
    
}

.menu_block {
    padding:145px 0px 0px 0px;
}

.menu {
    margin: 380px 0 0 0;
    background-color: #fff;
    box-shadow: 0px 2px 30px 0px #b5b7b7;
    width: 100%;
    height: 74px;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    text-align: center;
    font-family: Arial;
    font-size: 16px;
    font-style: italic;
    color: #596669;
}

.menu a {
    display: inline-block;
    padding-top: 16px;
}

.menu_common a {
    display: inline-block;
    padding-top: 16px;
}

.menu_common {
    margin: 60px 0 0 0;
    background: url(../images/bar_common.png) no-repeat;
    background-size: 100% 80px;
    width: 900px;
    height: 74px;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    text-align: center;
    font-family: Arial;
    font-size: 16px;
    font-style: italic;
    color: #596669;
}

.menu a:link {color:#596669;text-decoration:none;margin:0px 15px 0px 15px;}
.menu a:visited {color:#596669;text-decoration:none;margin:0px 15px 0px 15px;}
.menu a:hover{color:#596669;text-decoration:underline;margin:0px 15px 0px 15px;}
.menu a:visited:hover {color:#596669;text-decoration:underline;margin:0px 15px 0px 15px;}

.menu_common a:link {color:#596669;text-decoration:none;margin:0px 15px 0px 15px;}
.menu_common a:visited {color:#596669;text-decoration:none;margin:0px 15px 0px 15px;}
.menu_common a:hover{color:#596669;text-decoration:underline;margin:0px 15px 0px 15px;}
.menu_common a:visited:hover {color:#596669;text-decoration:underline;margin:0px 15px 0px 15px;}

.footer {
    max-width: 97%;
    height: 207px;
    background: url(../images/footer.jpg);
}

.footer_text {
    -ms-flex-item-align: end;
        align-self: flex-end;
    font-family: Arial;
    color: #3f4a4d;
    font-size: 11px;
    width: 180px;
    padding-bottom: 10px;
}

.footer_text a {
    text-decoration: none;
    color: black;
}

.footer_text span {
    display: inline-block;
    padding-top: 4px;
}

.artgorka {
    margin-left: 18px;
    -ms-flex-item-align: end;
        align-self: flex-end;
    width: 301px;
    height: 90px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.artgorka_text {
    margin: auto;
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    font-family: Arial;
    color: #3f4a4d;
    font-size: 11px;
}

.artgorka_text a:link {color:#596669;text-decoration:none;}
.artgorka_text a:visited {color:#596669;text-decoration:none;}
.artgorka_text a:hover{color:#596669;text-decoration:underline;}
.artgorka_text a:visited:hover {color:#596669;text-decoration:underline;}

.artgorka_logo {
    -ms-flex-item-align: center;
        -ms-grid-row-align: center;
        align-self: center;
    margin: 0 24px 16px 10px;
    width: 89px;
}

.content {
    margin-top: 10px;
    padding: 20px 30px 30px 30px;
    font-family: Georgia;
    font-size: 14px;
    color: #3f4a4d;
}

.content h1 {
    font-size: 16px;
    text-transform: uppercase;
    font-weight: normal;
    font-style: italic;
}

.content_common {
    padding: 0 30px 30px 30px;
    font-family: Georgia;
    font-size: 14px;
    color: #3f4a4d;
}

.content_common h1{
    font-size: 16px;
    text-transform: uppercase;
    font-weight: normal;
    font-style: italic;
}

.index_gallery {
    margin: 0 auto;
    padding-bottom: 50px;
    padding-left: 10px;
    -ms-flex-item-align: start;
        align-self: flex-start;
}

.index_gallery_title {
    width: 300px;
    position: relative;
    z-index: 2;
    text-align: center;
    font-family: Georgia;
    font-size: 16px;
    color: #3f4a4d;
    padding-top: 10px;
    margin: 0 auto;
}

.index_gallery_title a:link {color:#596669;text-decoration:none;}
.index_gallery_title a:visited {color:#596669;text-decoration:none;}
.index_gallery_title a:hover{color:#596669;text-decoration:underline;}
.index_gallery_title a:visited:hover {color:#596669;text-decoration:underline;}

.window {
    position: absolute;
    z-index: 1;
}

.index_gallery_img {
    position: relative;
    max-width: 100%;
    height: auto;
    text-align: center;
    padding: 4px 62px;
    z-index: 2;
}

.index_gallery_img img {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0 auto;
}

.index_block {
    width: 100%;
    margin: 0 auto;
    background: #edebe7;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
}

.main_tbl td {
    background: #edebe7;
    padding: 10px 10px 10px 10px;
    margin: 2px;
    vertical-align: top;
}

.main_tbl1 thead {
    font-size: 12px;
}

.main_tbl1 td {
    background: #edebe7;
    padding: 5px 10px 5px 10px;
    margin: 2px;
    vertical-align: top;
    width: 90px;
}

.small_td {
    font-size: 11px;
}

.news_item {
    padding: 0px 0px 20px 0px;
}

.news_item_title {
    font-size: 16px;
    font-style: italic;
}

.news_item_title a:link {color:#1d5362;text-decoration:underline;}
.news_item_title a:visited {color:#1d5362;text-decoration:underline;}
.news_item_title a:hover{color:#596669;text-decoration:underline;}
.news_item_title a:visited:hover {color:#596669;text-decoration:underline;}

.photos {
    /* width: 736px; */
    margin-left: auto;
    margin-right: auto;
    padding: 0px 0px 0px 30px;
}

.photo_block {
    width: 154px;
    float: left;
    clear: none;
    padding: 0px 30px 30px 0px;
}

.pages {
    text-align: center;
}

.pages a:link {color:#1d5362;text-decoration:underline;margin:0px 5px 0px 5px;}
.pages a:visited {color:#1d5362;text-decoration:underline;margin:0px 5px 0px 5px;}
.pages a:hover{color:#596669;text-decoration:underline;margin:0px 5px 0px 5px;}
.pages a:visited:hover {color:#596669;text-decoration:underline;margin:0px 5px 0px 5px;}

.pages_pn {
    font-family: Arial;
    font-size: 12px;
}

.pages_pn a:link {color:#3f4a4d;text-decoration:none;margin:0px 8px 0px 8px;}
.pages_pn a:visited {color:#3f4a4d;text-decoration:none;margin:0px 8px 0px 8px;}
.pages_pn a:hover{color:#3f4a4d;text-decoration:underline;margin:0px 8px 0px 8px;}
.pages_pn a:visited:hover {color:#3f4a4d;text-decoration:underline;margin:0px 8px 0px 8px;}

.pages_a {
    font-family: Arial;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

.pages_a a:link {color:#ffffff;text-decoration:underline;padding:2px 8px 2px 8px;background:#3f4a4d;}
.pages_a a:visited {color:#ffffff;text-decoration:underline;padding:2px 8px 2px 8px;background:#3f4a4d;}
.pages_a a:hover{color:#ffffff;text-decoration:underline;padding:2px 8px 2px 8px;background:#3f4a4d;}
.pages_a a:visited:hover {color:#ffffff;text-decoration:underline;padding:2px 8px 2px 8px;background:#3f4a4d;}

.pages_b {
    font-family: Arial;
    font-size: 14px;
    color: #ffffff;
    text-align: center;
}

.pages_b a:link {color:#3f4a4d;text-decoration:none;padding:2px 8px 2px 8px;background:none;}
.pages_b a:visited {color:#3f4a4d;text-decoration:none;padding:2px 8px 2px 8px;background:none;}
.pages_b a:hover{color:#3f4a4d;text-decoration:underline;padding:2px 8px 2px 8px;background:none;}
.pages_b a:visited:hover {color:#3f4a4d;text-decoration:underline;padding:2px 8px 2px 8px;background:none;}



/* ==================================================================== */
.banner {
    width: 980px;
    height: 200px;
    background: url(../images/ohotabaza53_banner_1140.png) no-repeat;
    background-position: center center;
	background-origin: content-box;
    margin-bottom: 20px;
}

.banner a {
    display: block;
    width: 180px;
    height: 45px;
    position: relative;
    left: 3px;
    top: 133px;
    margin: 0 auto;
} 

.active {
    text-decoration: underline !important;
}

.scrollup {
    z-index: 3;
    width: 40px;
    height: 40px;
    opacity: 0.3;
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none;
    text-indent: -9999px; 
    background: url('../images/icon_top.png') no-repeat;
}

.bagpack {
    display: block;
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.flex {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
}

.flex_hunting {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}

.flex_leisure {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
}

.flex_contacts {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
}

.flex_header {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.flex_footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}

.flex_photo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

.flex_oder_1 {
    -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
            order: 1;
}

.flex_order_2 {
    -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
            order: 2;
}

.flex_order_3 {
    -webkit-box-ordinal-group: 4;
        -ms-flex-order: 3;
            order: 3;
}

.lakes {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    line-height: 18px;
    -ms-flex-pack: distribute;
        justify-content: space-around;
}

.lakes div:nth-child(1) {
    width: 250px;
}

.lakes div:nth-child(2) {
    width: 280px;
}

.lakes div:nth-child(3) {
    width: 320px;
}

.lakes h4 {
    margin-bottom: 0;
    margin-top: 6px;
}

.lakes p {
    margin-top: 0;
}

.main_text_first {
    width: 624px;
    text-align: justify;
}

.main_text_second {
    width: 628px;
    text-align: justify;
    margin-top: -10px;
    margin-bottom: 50px;
}

.main_text_second span {
    font-weight: bold;
}


.padding_bottom_20 {
    padding-bottom: 20px;
}

.margin_right_30 {
    margin-right: 30px;
}

.margin_bottom_0 {
    margin-bottom: 0;
}

.margin_bottom_10 {
    margin-bottom: 10px;
}

.margin_bottom_20 {
    margin-bottom: 20px;
}

.margin_bottom_40 {
    margin-bottom: 40px;
}

.margin_top_20 {
    margin-top: 20px;
}

.margin_top_60 {
    margin-top: 60px;
}

.hunting_rules {
    -ms-flex-item-align: start;
        align-self: flex-start;
}

.hunting_rules_firstP {
    margin-bottom: 7px;
}

.hunting_rules_secondP {
    position: relative;
    top: -5px;
}

.hunting_rules ul {
    margin: 4px 0;
}

.hunting_rules li {
    padding: 3px 0;
}

.hunting_rules h2 {
    font-size: 16px;
    font-style: italic;
    margin: 30px 0 0 0;
}

.hunting_rules a:visited {
    color: blue;
}

.hunting_info {
    -ms-flex-item-align: start;
        align-self: flex-start;
    text-align: justify;
}

.main_tbl1 {
    width: 946px;
}

.main_tbl {
    width: 646px;
}

.leisure {
    margin-top: 0;
}

.leisure p {
    text-align: justify;
}

.dosug_h1 {
    margin-bottom: 0;
}

.leisure_table {
    width: 646px;
}

.leisure_table td {
    background: #edebe7;
    padding: 10px 10px 10px 10px;
    margin: 2px;
    vertical-align: top;
}

.suvorov_place {
    width: 656px;
}

.suvorov_place h3 {
    margin-top: 50px;
    margin-bottom: 0;
}

.opechenski_posad {
    margin-top: 30px;
    width: 656px;
}

.opechenski_posad span:first-child {
    font-weight: 100;
}

.ensemble {
    margin-top: 30px;
    width: 656px;
}

.borovichi_palace {
    margin-top: 30px;
}

.borovichi_palace_table {
    width: 656px;
}

.borovichi_palace_table td {
    background: #edebe7;
    padding: 10px 10px 10px 10px;
    margin: 2px;
    vertical-align: top;
}

.p_after_h {
    margin-top: 0;
    font-size: 16px;
}


.dosug_img_first {
    margin-top: 52px;
    width: 250px;
    padding-left: 30px;
}

.dosug_img_second {
    margin-top: 108px;
    width: 250px;
    padding-left: 30px;
}

.dosug_img_three {
    margin-top: 84px;
    width: 250px;
    padding-left: 30px;
}

.dosug_img_fourth {
    margin-top: 84px;
    width: 256px;
    padding-left: 30px;
    margin-bottom: 10px;
}

.dosug_img_five {
    margin-top: 84px;
    width: 256px;
    padding-left: 30px;
}

.placing {
    max-width: 550px;
}

.placing_ul_first {
    line-height: 20px;
    text-align: justify;
    list-style-type: decimal;
}

.placing_ul_first li {
    margin: 14px 0;
}

.yandex_map {
    overflow: hidden;
}

.yandex_map h1 {
    margin-bottom: 20px;
}

.personal_info {
    width: 400px;
    margin: 32px 0 0 20px;
}

.personal_info a {
    text-decoration: none;
    color: black;
}

.selling {
    max-width: 700px;
    margin: 0 auto;
}

.selling h1 {
    text-indent: 50px;
    text-align: center;
    padding-bottom: 5px;
}

.selling p {
    text-indent: 50px;
    text-align: justify;
}

.selling_heading {
    text-align: center !important;
    padding: 5px 0;
}

.toggler_bar {
   display: none;
}

.toggler_bar_telephone {
    text-align: center;
    width: 148px;
    height: 32px;
    border: 1px solid #BDBDBD;
    border-radius: 50px;
}

.toggler_bar_telephone p {
    margin: 7px 0 7px 0;
}

.toggler_bar_letter a {
    width: 30px;
    height: 30px;
    display: inline-block;
    background: rgb(97, 204, 97);
    border: 3px solid rgb(147,237,143);
    border-radius: 50px;
}

.toggler_bar_telephone a {
    text-decoration: none;
    color: black;
}

.toggler_bar_letter img {
    position: relative;
    top: 7px;
    left: 7px;
}

.toggler_bar_magnifer a {
    width: 30px;
    height: 30px;
    display: inline-block;
    background: rgb(97, 204, 97);
    border: 3px solid rgb(147,237,143);
    border-radius: 50px;
}

.toggler_bar_magnifer img {
    position: relative;
    top: 6px;
    left: 6px;
}
/* ============================gamb.menu=========================== */

.toggler {
    display: none;
    border-radius: 5px;
    width: 40px;
    background-color: rgb(97, 204, 97);
    position: relative;
    top: 11px;
    color: black;
    text-align: left;
    height: 38px;
    font-family: 'Arial';
    -ms-flex-item-align: start;
        align-self: flex-start;
}

.toggler:hover {
    background-color: white;
    -webkit-transition: .5s all;
    transition: .5s all;
}

.toggler:hover .burger-line {
    background-color: grey;
}

#check-menu {
    display: none;
}

.toggler label {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
    line-height: 20px;
}

.burger-line {
    position: absolute;
    top: 12px;
    left: 10px;
    width: 20px;
    height: 1px;
    background-color: white;
    -webkit-transition: .5s all;
    transition: .5s all;
}

.second, .third {
    top: 20px;
}

.fourth {
    top: 28px;
}

.toggler-menu{
    z-index: 2;
    display: block;
    position: absolute;
    left: -30%;
    width: 210px;
    bottom: 0;
    -webkit-transform: translateY(103%);
            transform: translateY(103%);
    max-height: 0;
    font-size: 0px;
    overflow: hidden;
    -webkit-transition: .5s all;
    transition: .5s all;
}

.toggler a {
    display: inline-block;
    width: 90%;
    padding: 20px 0 20px 20px;
    color: black;
    text-decoration: none;
    /* text-indent: 30px; */
    border-bottom: 1px solid lightgrey;
    background-color: white;
}

.toggler a:nth-child(1) {
    border-top: 1px solid lightgrey;
}


.toggler a:last-child {
    border-bottom: none;
}

.toggler a:hover{
    background-color: rgb(201, 250, 201);
    /* color: white; */
}

#check-menu:checked ~ .toggler-menu{
    max-height: 1150px;
    font-size: 16px;
}

#check-menu:checked ~ .first{
    display: none;
}

#check-menu:checked ~ .second{
    -webkit-transform: rotate(45deg);
            transform: rotate(45deg);
}

#check-menu:checked ~ .third{
    -webkit-transform: rotate(-45deg);
            transform: rotate(-45deg);
}

#check-menu:checked ~ .fourth{
    display: none;
}

/* =====================gamb.menu end======================== */


@media screen and (max-width: 1011px) {
    .flex_order_1 {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
    }
    .flex_order_2 {
        -webkit-box-ordinal-group: 2;
            -ms-flex-order: 1;
                order: 1;
    }
    .main_text_second {
        margin-bottom: 20px;
    }
    .hunting_table {
        overflow-x: scroll;
    }
}

@media screen and (max-width: 1000px) {
    
    .menu a {
        margin: 0 1% !important;
    }
    .menu_common a {
        margin: 0 1% !important;
    }
    .leisure {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    .dosug_img_first, .dosug_img_second, .dosug_img_three, .dosug_img_fourth, .dosug_img_five {
        margin-top: 40px;
    }
    .flex_footer {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .artgorka {
        -webkit-box-ordinal-group: 2;
            -ms-flex-order: 1;
                order: 1;
    }
    .footer_text {
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
    }
}

@media screen and (max-width: 875px) {
    .dosug_img_first, .dosug_img_second, .dosug_img_three, .dosug_img_fourth, .dosug_img_five {
        padding-left: 0;
    }
}

@media screen and (max-width: 768px) {
    .main_header {
        height: 420px;
    }
    .header {
        height: 300px;
    }
    .menu {
        margin-top: 0px;
		height:auto;
		    list-style: none;
    text-align: left;
		padding-left: 13px;
    }
    .menu_common {
        margin-top: 0;
        position: relative;
        top: 14px;
    }
    .content {
        margin-top: 10px;
    }
    .content_common {
        margin-top: 30px;
    }
    .flex_contacts {
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
    }
    .flex_footer {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
    }
    .artgorka {
        -ms-flex-item-align: center;
            -ms-grid-row-align: center;
            align-self: center;
        -webkit-box-ordinal-group: 2;
            -ms-flex-order: 1;
                order: 1;
        position: relative;
        top: -60px;
    }
    .footer_text {
        position: relative;
        top: -70px;
        left: -80px;
        -webkit-box-ordinal-group: 3;
            -ms-flex-order: 2;
                order: 2;
        padding-bottom: 0;
    }
    .lakes div:nth-child(1), .lakes div:nth-child(2) {
        width: 320px;
    }
}

@media screen and (max-width: 725px) {
    .toggler_bar {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -ms-flex-pack: distribute;
            justify-content: space-around;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 100%;
        height: 60px;
        background-color: white;
    }
    .toggler {
        display: block;
        bottom: 4px;
    }
    .main_header {
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    .header {
        margin-top: 0;
        height: 500px;
        background: url(../images/main_header.jpg);
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    .main_menu_block, .menu_block {
        display: none;
    }
    .main_logo {
        width: 100px;
        height: 150px;
    }
    .content {
        padding-top: 0;
    }
    .content_common {
        margin-top: 0;
    }
    .content h1{
        padding-bottom: 12px;
    }
    .content_common h1{
        padding-bottom: 12px;
    }
    .footer {
        background: url(../images/footer360.jpg);
        background-size: cover;
    }
    .footer_text {
        left: 10px;
    }
    .content h1, h3 {
        text-align: center;
    }
    .content_common h1 {
        text-align: center;
    }
    .p_after_h {
        text-align: center !important;
    }
    .header_telephone {
        display: none;
    } 
}

@media screen and (max-width: 720px) {
    .banner {
        background: url(../images/ohotabaza53_banner_720.png) no-repeat;
        background-position: center center;
        background-origin: content-box;
    }
    .banner a {
        left: 0;
    }
}

@media screen and (max-width: 700px) {
    .wrapper_leisure, .borovichi_palace {
        overflow-x: scroll;
    }
}

@media screen and (max-width: 533px) {
    .banner {
        background: url(../images/ohotabaza53_banner_320.png) no-repeat;
        background-position: center center;
        background-origin: content-box;
    }
}

@media screen and (max-width: 480px) {
    .toggler_bar {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -ms-flex-pack: distribute;
            justify-content: space-around;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        width: 100%;
        height: 60px;
        background-color: white;
    }
    .toggler {
        display: block;
        bottom: 4px;
    }
    .main_header {
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    .header {
        margin-top: 0;
        height: 420px;
        background: url(../images/main_header.jpg);
        background-size: cover;
        background-position: center;
        overflow: hidden;
    }
    .main_menu_block, .menu_block {
        display: none;
    }
    .main_logo {
        width: 100px;
        height: 150px;
    }
    .content {
        padding-top: 0;
    }
    .content_common {
        margin-top: 0;
    }
    .content h1{
        padding-bottom: 12px;
    }
    .content_common h1{
        padding-bottom: 12px;
    }
    .footer {
        background: url(../images/footer360.jpg);
        background-size: cover;
    }
    .footer_text {
        width: 120px;
        left: -20px;
    }
    .content h1, h3 {
        text-align: center;
    }
    .content_common h1 {
        text-align: center;
    }
    .p_after_h {
        text-align: center !important;
    }
}

@media screen and (max-width: 380px) {
    .footer_text {
        width: 120px;
        left: -10px;
    }
}

@media screen and (max-width: 360px) {
    .index_gallery {
        padding-left: 0;
    }
    .footer_text {
        top: -70px;
    }
}

@media screen and (max-width: 330px) {
    .footer_text {
        left: 0;
        width: 120px;
    }
    .artgorka {
        width: auto;
    }
    .artgorka_text {
        margin-top: 10px;
    }
}

@media screen and (max-width: 320px) {
    .footer {
        background: url(../images/footer320.jpg);
        background-size: cover;
    }
    .index_gallery {
        position: relative;
        left: -4px;
    }
}

#content, .footer {    max-width: 1004px;
    margin-left: auto;
    margin-right: auto;}

	