* {
    box-sizing: border-box;
    padding: 0;
    margin: 0;
    font-size: 16px;
    color: #333;
}

html, body {
    height: 1px;
    min-height: 100%;
}

a, a:visited, a:active {
    color: #f78e55;
    text-decoration: none;
    font-weight: bold;
}

a:hover {
    text-decoration: underline;
}

h1, h2, h3, h4, h5 {
    color: #00aa44;
    font-family: Arial;
    padding: 15px;
}

h1 {
    font-size: 20px;
    text-align: center;
}

sup, strong {
    color: inherit;
}

p {
    padding: 10px 0;
}

hr {
    margin: 10px 0;
}

input {
    border: 1px solid #eb4c08;
    border-radius: 3px;
    padding: 3px;
}

input:focus, button:focus {
    outline: none;
}

button,
input[type=button],
input[type=submit] {
    background-color: #eb4c08;
    color: white;
    border: 1px solid #eb4c08;
    padding: 4px 6px;
    border-radius: 5px;
}

button:hover,
input[type=button]:hover,
input[type=submit]:hover {
    box-shadow: 3px 3px 6px 0 #333, inset 1px 1px 4px 0 white;
}

button:active,
input[type=button]:active,
input[type=submit]:active {
    box-shadow: 1px 1px 6px 0 #333, inset -1px -1px 4px 0 white;
}

ul, ol {
    padding-left: 20px;
}

#wrapper {
    box-shadow: 0px 0px 25px 0px #999;
    width: 1140px;
    margin: 0 auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    background-color: white;
}

header .topline {
    background-color: #efefef;
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
}

header .topline a {
    color: #343a40;
    font-weight: normal;
}

header .topline a i, header .topline span {
    color: inherit;
}

header .topline a:hover, header .topline span:hover {
    color: #00aa44;
}

header .middleline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
}

header .middleline div {
    padding-right: 5px;
}

header .middleline h3 {
    font-size: 28px;
    font-weight: bold;
    color: #00aa44;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-style: italic;
    line-height: 30px;
    padding-right: 5px;
}

header .middleline .company, header .middleline .phone {
    padding: 5px 5px 5px 0;
}

header .middleline .company {
    font-size: 18px;
}

header .bottomline {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
}

nav.main_menu {
    width: 100%;
}

main {
    display: flex;
    flex-direction: row;
    flex: 1;
}

.main_menu > ul {
    display: flex;
    padding: 0;
    align-items: stretch;
    padding: 0;
}

.main_menu li {
    list-style: none;
    border-right: 1px solid white;
    text-align: center;
    flex: 1 1;
    position: relative;
}

.main_menu li:last-child {
    border-right: none;
}

.main_menu a, .main_menu a:visited {
    display: block;
    width: 100%;
    height: 100%;
    color: white;
    text-decoration: none;
    font-weight: bold;
    font: bold 16px Arial;
    padding: 10px;
    background-color: #eb4c08;
    transition: background-color .2s linear 0s,
        color .2s linear 0s;
}

.main_menu a:hover {
    background-color: white;
    color: #eb4c08;
}


.drop_down:after, .drop_right:after {
    content: "\f0d7";
    font: bold 14px FontAwesome;
    color: white;
    display: flex;
    position: absolute;
    right: -12px;
    top: 0;
    height: 100%;
    padding-right: 15px;
    align-items: center;
}

.drop_down:hover > ul, .drop_right:hover > ul {
    display: block;
}

.drop_down > ul, .drop_right > ul {
    display: none;
    position: absolute;
    width: 100%;
}

.drop_down li, .drop_right li {
    border-right: 0;
    border: 1px solid white;
    border-bottom: none;
}

.drop_down li:last-child {
    border-bottom: 1px solid white;
    border-right: 1px solid white;
}

.drop_right:after {
    content: "\f0da";
}

.drop_right ul {
    z-index: 1;
    left: 100%;
    top: 0;
    display: none;
}

.drop_right:hover > ul {
    display: block;
}

aside.left {
    float: left;
    width: 200px;
}

aside h3 {
    margin-top: 15px;
    background-color: #eb4c08;
    color: white;
    text-align: center;
    font-size: 16px;
    font-family: Arial;
    font-weight: bold;
    padding: 4px;
    border-radius: 0px 7px 0 0;
}

aside.right h3 {
    border-radius: 7px 0px 0 0;
}

aside > ul {
    padding: 5px 0;
    border-right: 5px solid #eb4c08;
    box-shadow: 3px 3px 15px 0 #999;
    margin: 15px 0 20px 0;
}

aside.right > ul {
    box-shadow: -3px 3px 15px 0 #999;
    border-left: 5px solid #eb4c08;
    border-right: none;
}

aside > h3 + ul {
    margin-top: 0;
}

aside li {
    list-style: none;
}

aside a {
    display: block;
    width: 100%;
    height: 100%;
    padding: 3px 10px;
    transition: background-color .2s linear 0s,
        color .2s linear 0s;
    color: #eb4c08 !important;
    font-weight: normal;
}

aside a:hover {
    background-color: #eb4c08;
    color: white !important;
    text-decoration: none;
}

article {
    padding: 20px;
    float: left;
    width: 635px;
    flex: 1 1 auto;
    color: #333;
    overflow: auto;
    line-height: 1.4;
}

article img {
    /*padding: 10px;*/
    margin: 10px;
    max-width: 100%;
    /*box-shadow: 0 0 4px 0 black;*/
}

article iframe {
    max-width: 100%;
}

article table {
    max-width: 100%;
}

aside.right {
    float: left;
    width: 150px;
}

aside {
    transition: flex 0.2s ease-out;
}

footer {
    padding: 20px 20px 30px 20px;
    clear: both;
    width: 100%;
    align-self: flex-end;
    text-align: center;
    border-top: 5px solid #eb4c08;
    margin-top: 50px;
}

footer p {
    padding: 10px;
}

.green {
    color: #00aa44;
}

.link_color {
    color: #f78e55;
}

.white {
    color: white;
}

.b {
    font-weight: bold;
}

.i {
    font-style: italic;
}

.skype {
    color: #06acee;
}

.left {
    float: left;
}

.right {
    float: right;
}

.text_left {
    text-align: left;
}

.text_right {
    text-align: right;
}

.text_center {
    text-align: center;
}

#cb_left_sidebar_open,
#cb_right_sidebar_open,
#cb_main_menu_open,
#cb_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;
}

.mobile_hide {
    display: block;
}

.mobile_show {
    display: none;
}

@media (max-width: 1100px) {
    #wrapper {
        width: 100%;
    }

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

    aside.left, aside.right {
        flex: 0;
        width: 0;
        overflow: hidden;
    }

    #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: #eb4c08;
        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;
        /*padding: 15px 15px 15px 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;
        /*padding: 15px 0 15px 15px;*/
    }

    #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;
    }

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

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

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

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

    #cb_left_sidebar_open:checked ~ #wrapper aside.left,
    #cb_right_sidebar_open:checked ~ #wrapper aside.right {
        flex: 1;
        overflow: visible;
    }

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

    #label_main_menu_open,
    #label_main_menu_close {
        cursor: pointer;
        align-self: flex-end;
        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;
    }

    #cb_main_menu_open:checked ~ #wrapper #label_main_menu_open {
        display: none;
    }

    #cb_main_menu_open:checked ~ #wrapper #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;
    }

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

    nav.main_menu > ul > li {
        border-bottom: 1px solid white;
    }

    nav.main_menu li.drop_down > ul, nav.main_menu li.drop_right > ul {
        position: static;
        padding-left: 15px;
        background-color: white;
        overflow: hidden;
        height: 0;
        transform: scaleY(0);
        transform-origin: top;
        transition: transform 0.26s ease;
    }

    .drop_right:after {
        content: "\f0d7";
    }

    nav.main_menu li.drop_down:hover > ul, nav.main_menu li.drop_right:hover > ul {
        height: auto;
        transform: scaleY(1);
    }

    .drop_down:hover:after, .drop_right:hover:after {
        content: "";
    }
}

@media (max-width: 550px) {
    header .topline a span {
        display: none;
    }

    header .middleline {
        flex-wrap: wrap;
    }

    header .middleline h3 {
        font-size: 18px;
        width: calc(100vw - 95px);
    }

    header .middleline > div:last-child {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-around;
    }

    header .middleline .company {
        text-align: center;
    }

    header .middleline .phone {
        padding: 5px;
    }

    article img {
        margin: 10px 0;
    }

    .mobile_hide {
        display: none;
    }

    .mobile_show {
        display: block;
    }
}