* {
    box-sizing: border-box;
}

body {
    background: #304e70 linear-gradient(to bottom, #a5c8e6 275px, #304e70) no-repeat;
    display: flex;
    flex-direction: column;
    margin: 0;
    height: 100%;
    font-family: 'Lucida Grande', Verdana, Arial, sans-serif;
}

a {
    text-decoration: none;
    transition: 0.2s ease-out 0s;
}
img {
    border: none;
    max-width: 100%;
    height: auto;
}
h1, h2 {
    font-size: 24px;
}


.menu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.block {
    width: 90vw;
    margin: auto;
}
.flex {
    display: flex;
}




#header {
    background: url(images/main_bg.jpg) repeat-x top center;
    flex: 1 0 275px;
    padding-top: 30px;
}
    #logo {
        order: 1;
        float: left;
        flex: 1 0 100px;
        max-width: 100px;
        margin-right: 12px;
        z-index: 1;
        font-size: 0;
    }
    #site_title {
        order: 2;
        position: relative;
        float: left;
    }
        #site_title img {
            position: absolute;
            top: 0;
            right: 10px;
        }
        .stxlogo {
            position: relative;
            float: left;
            font-size: 25px;
            color: #3b3b3b;
            text-align: left;
            font-weight: bold;
            z-index: 1;
            margin-right: 20px;
        }
    .impair {
        order: 3;
        position: relative;
        float: right;
        z-index: 1;
    }
        .impair input {
            background: none;
            border: 0;
            outline: 0;
            font-size: 26px;
            text-transform: uppercase;
            cursor: pointer;
            padding: 0;
            border-bottom: 1px solid transparent;
        }
        .impair input.imp_on {
            background: url(images/eye.png) no-repeat left center;
            padding-left: 40px;
        }
        .impair input:hover {
            border-color: #000;
        }


#top_menu {
}
    #top_menu ul {
        justify-content: space-evenly;
    }
        #top_menu li {
            flex-grow: 0.2;
            margin-left: 10px;
            margin-right: 10px;
            border: solid #84a0b9;
            border-width: 2px 4px 0;
            padding: 5px 20px;
            text-align: center;
        }
            #top_menu li a {
                font-size: 14px;
                color: #304e70;
                font-family: Tahoma, Geneva, sans-serif;
            }
            #top_menu li a:hover {
                color: #fff;
            }

#page {
    flex: 1 0 auto;
    margin-top: 25px;
    padding-bottom: 30px;
}
    #left_column {
        flex: 0 0 220px;
        margin-right: 40px;
    }
        #left_column .title {
            background: url(images/line.png) repeat-x center bottom;
            font-size: 16px;
            color: #fff;
            font-weight: bold;
            margin-bottom: 20px;
            padding-bottom: 6px;
            text-align: center;
        }
        #left_column ul {
            background: #b9d1e7;
            padding: 15px 20px;
            box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.6) inset;
            border-radius: 3px;
        }
            #left_column li {
                line-height: 20px;
                margin-bottom: 6px;
            }
                #left_column li a {
                    display: block;
                    font-size: 12px;
                    color: #345;
                    font-weight: bold;
                }
                #left_column li a:hover {
                    color: #111;
                }
    #right_column {
        flex-basis: 100%;
    }
        #breadcrumb {
            background: url(images/line.png) repeat-x center bottom;
            margin-bottom: 20px;
            padding-bottom: 6px;
            font-size: 14px;
            color: #fff;
        }
            #breadcrumb a {
                color: #000;
            }
            #breadcrumb a:hover {
                color: #4f8aaf;
            }
        #content {
            background: #d2e5f6;
            padding: 15px 20px;
            box-shadow: 0 0 6px 1px rgba(0, 0, 0, 0.6) inset;
            border-radius: 3px;
        }
            #content a {
                color: #000;
            }
            #content a:hover {
                color: #4f8aaf;
                border-bottom: 1px solid;
            }

#footer {
    flex: 0 1 auto;
}
    #footer .flex {
        justify-content: space-between;
        align-items: center;
        padding: 15px 10px;
        border-top: 5px double #436183;
    }
        #footer .phone {
            font-size: 26px;
            color: #fff;
            text-align: center;
        }








@media screen and (max-width: 1300px) {
    #site_title img {
        left: 100%;
        right: auto;
    }
}


@media screen and (max-width: 1100px) {
    #header > .flex {
        flex-wrap: wrap;
    }
        .impair {
            order: 1;
            flex: 1 0 100%;
            margin-bottom: 20px;
            text-align: right;
        }
        #logo {
            order: 2;
            flex: 1 0 18%;
            margin-right: 2%;
        }
        #site_title {
            order: 3;
            flex: 0 0 80%;
        }
            .stxlogo {
                background: rgba(255, 255, 255, 0.4);
                padding: 5px 10px;
                margin: 0;
            }
            #site_title img {
                top: -52px;
                left: auto;
                right: 0;
            }
}


@media screen and (max-width: 900px) {
    .block {
        width: 100%;
        padding: 0 10px;
    }

    #top_menu ul {
        flex-direction: column;
    }
        #top_menu li {
            border: none;
            margin: 0;
            padding: 5px 0;
        }
            #top_menu li a {
                font-size: 16px;
            }

    #menu_toggle {
        background: rgba(164, 199, 229, 0.2) url(images/menu.png) no-repeat center;
        position: fixed;
        top: 15px;
        left: 15px;
        right: auto;
        bottom: auto;
        z-index: 1000;
        width: 36px;
        height: 32px;
        cursor: pointer;
        transition: 0.3s ease-out 0s;
        -webkit-tap-highlight-color: transparent;
    }
    #menu_toggle.active {
        background: rgba(48, 78, 112, 0.2);
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        width: auto;
        height: auto;
    }

    #page > .flex {
        flex-direction: column;
    }
        #left_column {
            background: #a4c7e5;
            position: fixed;
            top: 0;
            left: -100%;
            bottom: 0;
            z-index: 1001;
            width: 320px;
            transition: 0.4s ease-out 0s;
            margin: 0;
            padding: 15px 10px;
            overflow: auto;
        }
        #left_column.active {
            left: 0;
            box-shadow: 0 0 6px 1px #304e70;
        }
            #left_column .title {
                padding-bottom: 15px;
            }
            #left_column ul {
                background: none;
                box-shadow: none;
                border-radius: 0;
                padding: 0 5px;
            }
        #right_column {
            order: 1;
            margin-bottom: 30px;
        }
}


@media screen and (max-width: 700px) {
    h1 {
        word-break: break-word;
    }

    .stxlogo {
        font-size: 22px;
    }
    #site_title img {
        top: 0;
        width: 400px;
    }

    #content {
        padding: 10px;
    }
        #content table {
            display: flex;
            border: none;
            /*border: 1px solid #304e70;*/
        }
            #content tr {
                display: flex;
            }
                #content td {
                    flex: 1;
                    width: auto;
                    border: none;
                    padding-left: 10px;
                    padding-right: 10px;
                
                }
                 #content .nums{
                    display: none;
                
                }
                
                #content .programs td:first-child {
                    flex: 0 0 8%;
                }
                #content .programs td:last-child {
                    flex: 0 0 20%;
                }
                #content .programs td[colspan] {
                    flex: 1;
                }
                    #content td span {
                        font-size: inherit !important;
                    }

}


@media screen and (max-width: 640px) {
    #logo {
        display: flex;
        align-items: flex-end;
        justify-content: center;
        max-width: none;
        height: 170px;
    }
        #logo img {
            height: 76px;
        }
    #site_title {
        display: flex;
        align-items: flex-end;
        padding-right: 12px;
    }
        .stxlogo {
            font-size: 18px;
            min-height: 76px;
        }
}


@media screen and (max-width: 500px) {
    .impair input {
        font-size: 20px;
    }

    .stxlogo {
        font-size: 18px;
    }

    #breadcrumb {
        text-align: center;
    }

    #menu_toggle {
        top: 76px;
        left: auto;
        right: 15px;
    }
    #menu_toggle.active {
        background: url(images/close.png) no-repeat center;
        background-size: 26px;
        width: 26px;
        height: 26px;
        top: 22px;
        right: 10px;
        left: auto;
        bottom: auto;
        z-index: 1002;
    }

    #left_column {
        width: 100%;
        text-align: center;
    }
        #left_column .title {
            padding-left: 30px;
            padding-right: 30px;
        }

    #content td {
        word-break: break-word;
        font-size: 0.8em;
    }

    #footer > .flex {
        flex-direction: column;
    }
        #footer .copyright {
            order: 2;
            margin-top: 20px;
        }
        #footer .phone {
            order: 1;
        }
}


@media screen and (max-width: 400px) {
    h1, h2 {
        font-size: 18px;
    }

    .impair {
        height: 235px;
        text-align: center;
    }
        .impair input {
            display: inline-block;
            white-space: normal;
        }
    #logo {
        flex: 1 0 100%;
        margin: 0;
        text-align: center;
        height: auto;
    }
        #logo img {
            max-width: 150px;
            height: auto;
        }
    #site_title {
        flex: 1 0 100%;
        position: static;
        margin: 10px 0 20px;
    }
        #site_title img {
            top: 80px;
            width: auto;
        }
        .stxlogo {
            background: none;
            text-align: center;
            margin: 0 -10px;
        }
}


@media screen and (max-width: 360px) {
    #site_title img {
        margin-bottom: 30px;
    }
}