* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

html, body {
    height: 1px;
    min-height: 100%;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    outline: none;
}

p {
    padding: 10px 0;
}

ul, ol {
    padding: 10px 0 10px 35px;
}

li {
    padding: 2px 0;
}

button, input[type="buttom"], input[type="submit"] {
    padding: 3px 5px;
}

#wrapper {
    width: 985px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
}

main {
    display: flex;
    flex-direction: row;
    flex: 1 0 auto;
    padding-top: 15px;
}

header {
    /*background: url('/logo1.png') no-repeat 20px 10px;*/
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    flex-grow: 0;
    flex-wrap: wrap;
    position: relative;
    font-size: 18px;
    line-height: 22px;
    border-bottom: 1px solid #FF9900;
    padding-bottom: 30px;
}

header div.logo {
    padding-left: 0;
    padding-right: 15px;
    align-self: center;
}

header > .first {
    /*margin-left: 150px;*/
    flex: 1 0;
    /*outline: 1px solid red;*/
    display: flex;
    flex-wrap: wrap;
    padding: 2px 5px;
}

header > .first > span {
    display: block;
    width: 100%;
    flex-shrink: 0;
    text-align: center;
    color: #4078bc;
    font-size: 42px;
    font-style: italic;
    font-weight: bold;
    padding: 20px 10px 10px 10px;
}

header > .first > div {
    flex: 1 0;
    padding: 0 5px;
}

header > .first p {
    padding: 0;
}

header > .first a {
    color: red;
    white-space: nowrap;
}

header > .second {
    flex-shrink: 0;
    width: 200px;
    text-align: center;
    align-self: center;
}

header > .pluso {
    position: absolute;
    bottom: 14px;
    left: 0;
    padding-left: 4px;
}

nav.main_menu {
    clear: both;
}

nav.main_menu ul {
    display: flex;
    padding: 5px 0;
    align-items: stretch;
    border-bottom: 1px solid #FF9900;
    justify-content: space-between;
}

nav.main_menu li {
    list-style: none;
    text-align: center;
    flex: 1 1 auto;
    position: relative;
}

nav.main_menu li a {
    font-size: 18px;
    white-space: nowrap;
    text-decoration: none;
}

article {
    width: 690px;
    line-height: 22px;
    flex: 1 1 auto;
    float: left;
    overflow-x: auto;
    overflow-y: hidden; /* bug fix for firefox */
}

aside.left {
    float: left;
    width: 165px;
    transition: left 0.2s ease-out;
}

aside.right {
    float: right;
    width: 108px;
    transition: right 0.2s ease-out;
}

aside ul {
    padding: 0;
    margin: 0;
}

aside li {
    list-style: none;
    padding-bottom: 10px;
}

aside.left li {
    font-weight: bold;
    font-style: italic;
}

footer {
    width: 100%;
    text-align: center;
    border-top: 1px solid black;
}

footer ul {
    padding: 10px 5px;
    width: 170px;
}

footer ul li, #footer_phones p {
    text-align: left;
    list-style: none;
    padding-bottom: 10px;
}

footer ul:last-child {
    width: 200px;
}

#footer_container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

#footer_phones {
    width: 200px;
    padding: 10px 5px;
}

#footer_phones a {
    color: red;
}

.clear {
    clear: both;
}

.red {
    color: red;
}

.center {
    text-align: center;
}

.font26 {
    font-size: 26px;
}

.font24 {
    font-size: 24px;
}

.pic-grid::after {
    display: block;
    content: "";
    clear: both;
}

.pic-grid > p {
    float: left;
    width: 32%;
    margin-right: 5px;
    text-align: center;
}

.pic-grid > p:last-child {
    margin: 0;
}

.left {
    float: left;
}

.gallery,
.gallery-disabled {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    flex: 1 0;
}

.gallery.col2 div,
.gallery-disabled.col2 div {
    max-width: 50%;
}

.gallery.col3 div,
.gallery-disabled.col3 div {
    max-width: 33%;
}

.gallery.col4 div,
.gallery-disabled.col4 div {
    max-width: 25%;
}

.gallery.col5 div,
.gallery-disabled.col5 div {
    max-width: 20%;
}

.gallery.col6 div,
.gallery-disabled.col6 div {
    max-width: 16%;
}

.gallery > div,
.gallery-disabled > div {
    /*padding: 5px;*/
}

.download {
    font-weight: bold;
    font-size: 20px;
    margin-top: 20px;
    margin-right: 5px;
    margin-bottom: 10px;
    margin-left: 5px;
    font-style: italic;
    color: #0066CC;
}

.size {
    margin: 10px;
    border: 1px solid #009900;
    padding: 15px;
    text-align: center;
    font-size: 20px;
    color: #009900;
    font-weight: bold;
}

.pic165x150 img {
    width: 165px;
    height: 150px;
}

.pic165x150 p, .pic165x165 p {
    width: 165px;
}

.pic165x165 img {
    width: 165px;
    height: 165px;
}

.pic165x124 img {
    width: 165px;
    height: 124px;
}

.pic230px p, .pic230px img {
    width: 230px;
}

.video {
    margin-top: 15px;
    margin-bottom: 15px;
    text-align: center;
    padding: 0;
}

.text_bottom {
    font-size: 22px;
    color: #FF0000;
    line-height: 28px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.pricetable {
	text-align: center;
	margin-top: 10px;
}

.scroll {
    display: block;
    overflow: auto;
}

#radio_left_sidebar_open,
#radio_right_sidebar_open,
#radio_main_menu_open,
#radio_menu_close {
    display: none;
}

#label_main_menu_open,
#label_main_menu_close,
#label_left_sidebar_open,
#label_left_sidebar_close,
#label_right_sidebar_open,
#label_right_sidebar_close {
    padding: 0;
    z-index: 1000;
}

/*from common.css*/
.clear {
    clear: both;
}
.b {
    font-weight: bold;
}
#personalbar {
    margin: 10px 0;
}
#personalbar ul {
    margin: 0;
    padding: 0;
}
#personalbar li {
    list-style: none;
    padding: 3px 3px 5px 3px;
}
#personalbar li:hover {
    background-color: #e6e6e6;
}
#personalbar a {
    color: blue;
}
#personalbar a:visited {
    color: blue;
}

.error_block, .success_block {
    padding: 10px;
    border-radius: 10px;
    margin: 20px 0;
}

.error_block {
    background-color: #ffcccc;
    border: 2px solid #cc0000;
}

.success_block {
    background-color: #ccffcc;
    border: 2px solid #00cc00;
}

.error_block:before, .success_block:before {
    content: "!";
    float: left;
    color: white;
    width: 20px;
    height: 20px;
    padding: 10px;
    border-radius: 20px;
    margin-right: 10px;
    text-align: center;
    font-family: Arial;
    font-weight: bold;
    font-size: 26px;
    display: block;
    vertical-align: middle;
    box-shadow: inset 5px 5px 5px rgba(255, 255, 255, .3);
}

.error_block:before {
    background-color: #dd0000;
}

.success_block:before {
    background-color: #00dd00;
}

.error_block:after, .success_block:after {
    content: "";
    clear: both;
    display: block;
}

input.captcha_input {
    width: 60px;
}

img.captcha {
    cursor: pointer;
}

.preloading {
    display: block;
    width: 1px;
    height: 1px;
    overflow: hidden;
    position: absolute;
    margin-left: -100000px;
}

.long_input {
    width: 100%!important;
}

.medium_input {
    width: 170px!important;
}

.right {
    float: right;
}

.cke_notification {
    background-color: yellow;
    padding: 5px 28px 5px 5px;
    border-radius: 35px;
    border: 4px solid green;
    box-shadow: 5px 5px 15px #444;
}

.cke_notification_message {
    padding: 0;
    display: inline;
    font-family: Arial;
    color: green;
}

.cke_notification_close {
    display: inline-block;
    background-color: #cc0000;
    color: white;
    padding: 3px 5px;
    text-decoration: none;
    font: 10px Helvetica bold;
    border-radius: 15px;
    position: absolute;
    top: 10px;
    right: 8px;
}

.cke_notification_close:focus {
    outline: none;
}

.green {
    color: green;
}

.red {
    color: red;
}

.center {
    text-align: center;
}
/*end from common.css*/

.captcha_placeholder {
    vertical-align: middle;
}

#loading_shield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .9) url('/images/squareloading.gif') center center no-repeat;
    display: none;
    z-index: 100;
}

.socialBtn i {
    display: inline-block;
    color: white;
    width: 25px;
    height: 25px;
    border: none;
    border-radius: 4px;
    background-color: #498bfa;
    font-size: 16px;
    text-decoration: none;
    margin: 0 2px 0 0;
    text-align: center;
    line-height: 25px;
    cursor: pointer;
}

.socialBtn i:hover {
    background-color: #7babfb;
}

.socialBtn i.fa-vk {
    background-color: #4D75A3;
}

.socialBtn i.fa-vk:hover {
    background-color: #6a8fb9;
}

.socialBtn i.fa-viber {
    background-color: #8950a1;
    font-size: 13px;
}

.socialBtn i.fa-viber:hover {
    background-color: #a16db7;
}

.socialBtn i.fa-whatsapp {
    background-color: #25d366;
}

.socialBtn i.fa-whatsapp:hover {
    background-color: #4be083;
}

.socialBtn i.fa-telegram {
    background-color: #37AEE2;
}

.socialBtn i.fa-telegram:hover {
    background-color: #64c0e8;
}

.socialBtn i.fa-odnoklassniki {
    background-color: #E67E17;
}

.socialBtn i.fa-odnoklassniki:hover {
    background-color: #ec9844;
}

@media (max-width: 769px) {
    #label_left_sidebar_open:before,
    #label_left_sidebar_close:before,
    #label_right_sidebar_open:before,
    #label_right_sidebar_close:before {
        font-family: FontAwesome;
        font-size: 25px;
        display: block;
        position: fixed;
        top: 50%;
        padding: 5px;
        transition: opacity 0.3s ease-in 0s;
        color: #333333;
        background-color: white;
        border-radius: 100%;
    }

    #label_left_sidebar_close:before,
    #label_right_sidebar_close:before {
        box-shadow: 0 0 8px 5px #999;
        opacity: 1;
    }

    #label_left_sidebar_open:before,
    #label_left_sidebar_close:before {
        left: 0;
    }

    #label_left_sidebar_open:before,
    #label_right_sidebar_close:before {
        content: "\f138"; /* > arrow */
    }

    #label_right_sidebar_open:before,
    #label_right_sidebar_close:before {

        right: 0;
    }

    #label_right_sidebar_open:before,
    #label_left_sidebar_close:before {
        content: "\f137"; /* <  arrow */
    }

    #label_left_sidebar_close:before,
    #label_right_sidebar_close:before {
        display: none;
    }

    #radio_left_sidebar_open:checked ~ #wrapper #label_left_sidebar_open:before {
        display: none;
    }

    #radio_left_sidebar_open:checked ~ #wrapper #label_left_sidebar_close:before {
        display: block;
    }

    #radio_right_sidebar_open:checked ~ #wrapper #label_right_sidebar_open:before {
        display: none;
    }

    #radio_right_sidebar_open:checked ~ #wrapper #label_right_sidebar_close:before {
        display: block;
    }

    #radio_left_sidebar_open:checked ~ #wrapper aside.left{
        display: block;
        left: 0;
    }

    #radio_right_sidebar_open:checked ~ #wrapper aside.right {
        display: block;
        right: 0;
    }

    #radio_main_menu_open:checked ~ #wrapper nav.main_menu {
        visibility: visible;
    }

    #radio_main_menu_open:checked ~ #wrapper nav.main_menu ul {
        height: auto;
        transform: scaleY(1);
    }

    #label_main_menu_open,
    #label_main_menu_close {
        display: block;
        cursor: pointer;
        position: fixed;
        top: 0;
        left: 0;
        padding: 5px 4px;
        width: 40px;
        height: 40px;
        background-color: white;
        border: 2px solid white;
        border-radius: 4px;
        opacity: .95;
    }

    #label_main_menu_close {
        opacity: 1;
        box-shadow: 1px 1px 6px 0 #333, inset -1px -1px 4px 0 white;
        display: none;
    }

    #radio_main_menu_open:checked ~ #label_main_menu_open {
        display: none;
    }

    #radio_main_menu_open:checked ~ #label_main_menu_close {
        display: block;
    }

    #label_main_menu_open::before,
    #label_main_menu_close::before {
        content: "";
        display: block;
        padding: 4px;
        border-top: 2px solid #343a40;
        border-bottom: 2px solid #343a40;
    }

    #label_main_menu_open::after,
    #label_main_menu_close::after {
        content: "";
        display: block;
        padding: 4px;
        border-bottom: 2px solid #343a40;
    }

    * {
        max-width: 100%;
        height: auto;
    }
    #wrapper {
        width: 100%;
    }

    header {
        height: auto;
        padding-bottom: 20px;
    }

    header div.logo {
        align-self: flex-start;
        padding-top: 40px;
    }

    header p {
        margin: 0;
        padding: 10px 5px;
    }

    header > div {
        width: auto;
        font-size: 16px;
        margin-right: 5px;
    }

    header > .first span {
        font-size: 24px;
        line-height: 1.1em;
        padding: 10px 0;
        display: block;
    }

    header .pluso {
        position: static;
        text-align: center;
    }

    nav.main_menu {
        visibility: hidden;
        position: fixed;
        overflow: auto;
        top: 45px;
        left: 0;
        max-height: 100%;
        max-width: 90%;
        background-color: rgba(250,250,250,.8);
        backdrop-filter: blur(7px);
        border: none;
        padding: 0 10px;
        z-index: 1000;
    }

    nav.main_menu ul {
        display: block;
        overflow: hidden;
        height: 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.4s ease;
        border: none;
    }

    nav.main_menu li {
        border: none;
    }

    article {
        flex: 1 0;
        padding: 0 15px;
    }

    aside.left, aside.right {
        /*display: none;*/
        position: fixed;
        background-color: rgba(250,250,250,.8);
        backdrop-filter: blur(7px);
        overflow: hidden;
        max-width: 80%;
        height: 100%;
        max-height: 100%;
        overflow: auto;
        padding: 50px 10px 10px 10px;
        /*color: white;*/
        top: 0;
    }

    aside.left {
        left: -180px;
        width: 180px;
    }

    aside.right {
        right: -150px;
        width: 150px;
    }

    img {
        max-width: 100%;
        height: auto;
    }

    .video iframe {
        height: calc(100vw * 9 / 16);
    }

    .gallery.col2 div, .gallery.col3 div, .gallery.col4 div,
    .gallery.col5 div, .gallery.col6 div,
    .gallery-disabled.col2 div, .gallery-disabled.col3 div, .gallery-disabled.col4 div,
    .gallery-disabled.col5 div, .gallery-disabled.col6 div {
        max-width: none;
    }

    .gallery > div,
    .gallery-disabled > div {
        padding: 5px;
    }
}

@media (max-width: 600px) {
    header .second {
        display: flex;
        justify-content: space-between;
        flex: 1 0;
        width: 100%;
    }
}

@media (max-width: 309px) {
    div.logo img {
        width: 60px;
    }
}