html, body {
    height: 100%;
    background-color: #e7e7e7;
    overflow: hidden;
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: 100%;
    line-height: 150%;
}

.clearfix {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}



.page {
    height: 90.659%;
}

.wrapper{
    height: 100%;
}

/*----хэдер----*/

header {
    overflow: hidden;
    position: relative;
    height: 8.65%;
}

header div {
    float: left;
    height: 100%;
    border: 0;
    display: block;
    overflow: hidden;
}

header div .vertical_align_element{
    vertical-align: middle;
    display: table-cell;
    height: 100%;
}

header .elecard_logo {
    width: 13.177%;
    height: 100%;
    display: table;
    margin-left: 0.5%;
    margin-right: 0.5%;
}

header .elecard_logo img {
    width: 100%;
}

header .elecard_logo a {
    height: 100%;
    width: 100%;
}

header .elecard_phone{
    width: 14.177%;
    height: 100%;
    display: table;
    text-align: right;
    white-space: nowrap;
}

header .elecard_phone span a,
header .elecard_phone span a:hover
header .elecard_phone span a:active{
    text-decoration: none;
    color: black;
}

header .server-time {
    width: 24.426%;
    font-weight: bold;
    height: 100%;
    display: table;
    text-align: right;
}

header .server-time time{
    vertical-align: middle;
    display: table-cell;
    white-space: nowrap;
}

header .legends{
    width: 47%;
    height: 100%;
}

header .legends div{
    width: 44%;
    height: 100%;
    display: table;
}

header .legends .no_coupons{
    text-align: left;
    padding: 0 0 0 3%;
}

header .legends .coupons{
    text-align: right;
    padding: 0 3% 0 0;
}

header .legends div img{
    vertical-align:middle;
    padding-right: 2%;
    width: 21.408%;
    height: 33%;
}

/*----Мэйн----*/

main {
    margin: 0px auto;
    width: 100%;
    height: 91.35%;
    display: inline-block;
}

main > div.table_header{
    height: 7.868%;
    width: 100%;
    display: table;
    line-height: 100%;
}

main > div.table_header div{
    height: 100%;
    display: table-cell;
    vertical-align: middle;
    text-align: center;
    font-weight: bold;
}

div.cabinet{
    width: 5%;
    font-weight: bold;
}

div.speciality{
    width: 16%;
    font-weight: bold;
}

div.fio{
    width: 30%;
    font-weight: bold;
}

div.week_day{
    width: 7%;
    font-weight: bold;
}

div.week_day span.CouponsCount{
    font-weight: normal;
    vertical-align: bottom;
    text-align: center;
    width: 100%;
    bottom: 0px;
    position: absolute;
    display: table-cell;
    margin: 0px auto 10%;
}

main > div.table_content{
    height: 92.132%;
    width: 100%;
    display: flex;
    overflow: hidden;
}

main div.table_content div.table{
    background-color: #e7e7e7;
}

main .table_content div,
main .table_content div section {
    height: 100%;
}

.table_content div.week_day.show_coupon{
    padding-bottom: 1%;
}


/*----Футер----*/

footer {
    position: relative;
    height: 5.341%;
    padding-top: 1%;
    padding-bottom: 1%;
    overflow: hidden;
    white-space: nowrap;
}

footer img,
footer table,
footer tr,
footer td,
footer th,
footer p,
footer span,
footer div{
    padding: 0;
    margin: 0;
    position: relative;
}


/*
footer > div{
    top: 25%;
    position: relative;
    height: 50%;
    display: table;
    vertical-align: middle;
    width: 100%;
}

footer.NoMarquee{
    text-align: center;
}

footer span.bottom_banner{
    font-weight: bold;
    white-space: nowrap;
}*/



/* FONT-SIZE */

@media screen and (max-width: 420px){
    body{
        font-size: 60%;
        line-height: 90%;
    }

    header {
        font-size: 55%;
    }

    main > div.table_header{
        font-size: 70%;
    }

    main > div:nth-child(2){
        font-size: 70%;
    }

    #table div.data-rows div.row {
        line-height: 110%;
    }

    .table_content div.week_day{
        font-size: 65%;
    }

    footer span.bottom_banner{
        /*font-size: 100%;*/
    }

    span.CouponsCount{
        font-size: 60%;
    }
}

@media screen and (min-width: 421px) and (max-width: 640px){
    body{
        font-size: 80%;
        line-height: 90%;
    }

    header {
        font-size: 70%;
    }

    main > div.table_header{
        font-size: 90%;
    }

    main > div:nth-child(2){
        font-size: 70%;
    }

    #table div.data-rows div.row {
        line-height: 110%;
    }

    .table_content div.week_day{
        font-size: 90%;
    }

    footer span.bottom_banner{
        /*font-size: 100%;*/
    }

    span.CouponsCount{
        font-size: 80%;
    }
}

@media screen and (min-width: 641px) and (max-width: 1024px){
    header {
        font-size: 90%;
    }

    main > div.table_header{
        font-size: 100%;
    }

    main > div:nth-child(2){
        font-size: 80%;
    }

    #table div.data-rows div.row {
        line-height: 110%;
    }

    .table_content div.week_day{
        font-size: 90%;
    }

    div.week_day span.CouponsCount{
        margin: 0px auto 18%;
    }

    footer span.bottom_banner{
        /*font-size: 150%;*/
    }

    span.CouponsCount{
        font-size: 80%;
    }

}

@media screen and (min-width: 1025px) and (max-width: 1366px) {
    header {
        font-size: 117%;
    }

    main > div.table_header{
        font-size: 120%;
        line-height: 105%;
    }

    main > div:nth-child(2){
        font-size: 100%;
    }

    #table div.data-rows div.row {
        line-height: 110%;
    }

    footer span.bottom_banner{
        /*font-size: 200%;*/
    }

    span.CouponsCount{
        font-size: 80%;
    }

}

@media screen and (min-width: 1367px) and (max-width: 1680px) {
    header {
        font-size: 140%;
    }

    main > div.table_header{
        font-size: 140%;
    }

    main > div:nth-child(2){
        font-size: 117%;
    }

    #table div.data-rows div.row {
        line-height: 100%;
    }

    .table_content div.week_day{
        font-size: 100%;
    }

    footer span.bottom_banner{
        /*font-size: 200%;*/
    }

    span.CouponsCount{
        font-size: 100%;
    }
}

@media screen and (min-width: 1681px) and (max-width: 1920px) {

    body {
        font-size: 110%;
    }

    header {
        font-size: 155%;
    }

    main > div.table_header{
        font-size: 160%;
        line-height: 110%;
    }

    main > div:nth-child(2){
        font-size: 150%;
    }

    #table div.data-rows div.row {
        line-height: 100%;
    }

    .table_content div.week_day{
        font-size: 98%;
    }

    .table_content div.fio{
        font-size: 110%;
    }

    div.week_day span.CouponsCount{
        margin: 0px auto 6%;
    }

    footer span.bottom_banner{
        /*font-size: 300%;*/
    }

    span.CouponsCount{
        font-size: 80%;
    }

}

section#table{
    -webkit-transition: all 3s ease-in-out;
    -moz-transition: all 3s ease-in-out;
    -o-transition: all 3s ease-in-out;
    -ms-transition: all 3s ease-in-out;
    transition: all 3s ease-in-out;
}