*, *::before, *::after {
    box-sizing: border-box; /*inherit;*/
}

a{
    text-decoration: none;
}
/* Шапка с навигацией */
.topnav{
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 2;
}
.site-header{
    display: inline-block;
    margin-block-start: 0.67em;
    margin-block-end: 0.67em;
    margin-inline-start: 16px;
    margin-inline-end: 16px;
    white-space: nowrap;
}
.site-header a{
    color: #444;
    outline: none!important;
    transition: all 0.2s;
    cursor: pointer;
    font-size: 3rem;
    font-style: normal;
    font-weight: 400;
    text-rendering: optimizeLegibility;
    text-decoration: none;
    line-height: inherit;
}
.site-header a:hover {
    color: #0078a0;
}
.menu-container{
    overflow: hidden;
    background-color: #333;
}
.menu-container a i{
    border: solid 2px #eee; 
    border-radius: 4px; 
    padding: 3px;
}
.menu-item{
    padding: 14px 24px;
    cursor: pointer;
    float: left;
    display: block;
    color: #eee;
    font-family: 'Open sans', sans-serif;
    text-decoration: none;
    text-transform: uppercase;
    text-align: center;
    font-size: 1rem;
    transition: 0.3s;
}
.svg-icon{
    padding: 0;
    background-size: contain;
    background-origin: content-box;
    height: 1rem;
    /*width: 18px;*/
}
.right{
    float: right;
    padding: 14px 16px;
}
.menu-item:hover,
.menu-item:focus{
    background-color: #000;
}
.menu-item.hided{display: none;}
.icon{
    display: none;
}

/* Содержимое страницы навигации по расчетам */
.container,
.adaptive-ad{
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex-grow: 1;
    -ms-flex: 1;
    flex-grow: 1;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-direction: normal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
    margin: 0;
}
.side-adv{
    display: block;
    margin: 0 0 0 2px;
    padding: 1px 24px;
    min-width: 250px;
    max-width: 250px;

}
.bottom-adv{
    display: block;
    width: 100%;
    margin: 2px 0 0 0;
    padding: 1px 24px;

}

/* Блок контактов (подвал) */
.bottom{
    bottom: 0;
    width: 100%;
    background-color: rgba(20,20,20,0.9);
    padding: 16px 24px;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -ms-flex-item-align: end;
    align-self: flex-end;
}
.info-plate{
    width: 400px;
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-direction: normal;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}
.info{
    font-size: .8rem;
    color: #9a9;
    text-align: left;
}
.title{
    margin-bottom: 8px;
    -ms-flex-item-align: center;
    align-self: center;
    text-transform: uppercase;
    font-weight: 900;
    font-size: .9rem;
    color: #bcb;
}
.contact-holder{
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -moz-box-pack: center;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    float: right;
}
.contact{
    font-size: 1.2rem;
    padding: 4px 8px;
    color: #555;
}
.contact:hover{
    color: #929693;
}
/* Конец блока контактов (подвал) */

.leftnav,
.main-content{

    margin: 0;
    padding: 1px 24px;
    display: block;
}
.leftnav{
    width: 264px;
    -webkit-box-flex: 0;
    -moz-box-flex: 0;
    -webkit-flex-grow: 0;
    flex-grow: 0;
}
.main-content{
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex-grow: 1;
    flex-grow: 1;
}
h4{
    font-weight: normal;
    text-transform: uppercase;
    color: #444;
    font-size: 1rem;
}
.sidemenu-list,
.main-list{
    padding-inline-start: 8px;
    margin: 4px 16px 24px 16px;
    margin-bottom: 1rem;
    list-style-position: outside;
    line-height: 1.6;
}
.category-name,
.name{
    color: #008CBA;
    text-decoration: none;
    font-weight: 400;
    font-size: 1rem;
}
.category-name:hover,
.name:hover,
.category-name:focus
.name:focus{
    text-decoration: underline;
}
.hamburger{
    margin: 14px 0 0 24px;
    float: left;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.2rem;
}
.category-name{
    margin-top: 0;
}
.main-links{
    display: block;
    float: left;
    padding: 0 24px;
}

/* Содержимое страницы расчетов */
spacategory, spaname{
    display: none;
}
.spa{
    display: block;
    padding: 16px 24px;

    box-shadow: 3px 3px 6px rgba(0,0,0,0.1);
}
.spa img{
    display: block;
}
.spa p{
    display: inline-block;
    width: 100%;
    font-size: 1.1rem;
}
.spa hr{
    display: block;
    background-color: #0078a0;
    height: 1px;
}
.spa h1{
    text-align: center;
    margin: 0;
}
.spa h3{
    margin: 16px 0;
    padding: 4px 16px;
    width: inherit;
}
.spa input[type=button]{
    display: block;
    width: 95%;
    margin: 24px auto 0 auto;
    font-size: .9rem;
}
.spa input[type=number]{
    font-size: .9rem;
}
.spa i{
    display: block;
    font-size: 1rem;
}
.spa span{
    margin: 0;
}
.spa img{
    max-width: 100%;
    height: auto;
}
.input,
.output{
    display: inline-block;
    border: solid 1.5px #999;
    border-radius: 12px;
    padding: 32px 24px 16px 24px;
    margin: 8px 0;
    min-width: 350px;
}
.horizontal{
    -webkit-box-pack: justify;
    -moz-box-pack: justify;
    -ms-flex-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-direction: normal;
    -webkit-box-orient: horizontal;
    -moz-box-direction: normal;
    -moz-box-orient: horizontal;
    -webkit-flex-direction: row;
    -ms-flex-direction: row;
    flex-direction: row;
}
.vertical{
    -webkit-box-direction: normal;
    -webkit-box-orient: vertical;
    -moz-box-direction: normal;
    -moz-box-orient: vertical;
    -webkit-flex-direction: column;
    -ms-flex-direction: column;
    flex-direction: column;
}
.input:before{
	display: block;
    content: "Введите данные";
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: .8rem;
    padding: 0 8px;
    position: absolute;
    background-color: #000;
    transform: translateY(-38px);
}
.output:before{
    content: "Результаты вычислений";
    font-family: Geneva, Arial, Helvetica, sans-serif;
    font-size: .8rem;
    padding: 0 8px;
    position: absolute;
    background-color: #000;
    transform: translateY(-38px);
}
object{
    pointer-events: none;
}
spa-input,
spa-collection{
    display: none;
}
.field, 
.collection{
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: none;
    flex-wrap: nowrap; 
    padding: 3px 0; 
    width: 100%;
}
.input-label{
    display: inline-block;
    float: left;
    margin: 0;
    word-wrap: break-word;
    -webkit-box-flex: 1;
    -moz-box-flex: 1;
    -webkit-flex-grow: 1;
    flex-grow: 1; 
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
}
.collection-label{
    width: 100%;
    text-align: center;
    font-family: inherit;
    font-weight: 600;
    font-size: 1.05rem;
    margin: 0;
}
.inner{
    display: -webkit-box;
    display: -moz-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    float: right;
    padding: 0; 
    margin: auto 0 0 8px;
}

/* Убираем блок рекламы вниз */
@media screen and (max-width: 1140px){
    .adaptive-ad{
        -webkit-box-direction: normal;
        -webkit-box-orient: vertical;
        -moz-box-direction: normal;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .side-adv{
        display: block;
        min-width: 0;
        max-width: 100%;
        width: 100%;
        margin: 2px 0 0 0;
    }
}

/* Скрываем подписи к пунктам меню */
@media screen and (max-width: 1000px){
    .fadable1000{display: none;}
}

/* Меняем внешний вид верхнего блока */
@media screen and (max-width: 740px){
    .site-header a{font-size: 2rem;}
    .menu-item:not(.icon){display: none;}
    .icon{
        display: block;
        float: left;
    }
    body{margin-top: 114px;}
    .leftnav{
        transform: translateX(-265px);
        display: none;
    }
    .leftnav.adapt{
        transform: translateX(0);
        display: block;
    }
    .hamburger{
        display: block;
    }
    .field:not(.nowrap){
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        -webkit-box-direction: normal;
        -webkit-box-orient: vertical;
        -moz-box-direction: normal;
        -moz-box-orient: vertical;
        -webkit-flex-direction: column;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .input-label{
        -webkit-box-flex: 0;
        -moz-box-flex: 0;
        -webkit-flex-grow: 0;
        flex-grow: 0;
        word-break: break-all;
    }
    .inner{
        width: 100%;
        margin-left: 0;
    }

}
@media screen and (max-width: 740px) {
    .menu-container.responsive {position: relative;}
    .menu-container.responsive .menu-item {
        float: none;
        display: block;
        text-align: left;
    }
    .menu-container.responsive .right{
        padding: 14px 24px;
    }
    .menu-container.responsive .right .svg-icon{
        padding: 0;
    }
    .adaptive-ad.responsive, 
    .spa.responsive{
        margin-top: 342px;
    }
}
