* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font: inherit;
    /*will-change: all;*/
}

*:before,
*:after {
    box-sizing: border-box;
    will-change: all;
}

article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
nav,
section,
summary {
    display: block;
}

audio,
canvas,
progress,
video {
    display: inline-block;
    vertical-align: baseline;
}

audio:not([controls]) {
    display: none;
    height: 0;
}

/*
[hidden],
template {
	display: none;
}
*/

html {
    font-family: sans-serif;
    -ms-text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    -webkit-focus-ring-color: rgba(255, 255, 255, 0);
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    font-size: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}

a {
    background: transparent;
}

*:focus,
*:active,
*:hover {
    outline: 0;
}

hr {
    box-sizing: content-box;
    height: 0;
}

aside ul, ul.list-links {
    list-style: none;
}

.lection ul, .lection ol {
    padding: 5px;
    margin-left: 20px;
}

.lection li {
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #080808;
}

pre {
    white-space: pre-wrap;
    -moz-tab-size: 4;
    -o-tab-size: 4;
    tab-size: 4;
}

q {
    quotes: '\201C' '\201D' '\2018' '\2019';
}

img {
    border: 0;
}

svg:not(:root) {
    overflow: hidden;
}

button,
input {
    line-height: normal;
}

button,
select {
    text-transform: none;
}

button {
    overflow: visible;
}

button,
html input[type='button'],
input[type='reset'],
input[type='submit'] {
    cursor: pointer;
    -webkit-appearance: button;
}

button[disabled],
html input[disabled] {
    cursor: default;
}

input[type='checkbox'],
input[type='radio'] {
    box-sizing: border-box;
}

input[type='number']::-webkit-inner-spin-button,
input[type='number']::-webkit-outer-spin-button {
    height: auto;
}

input[type='search'] {
    box-sizing: content-box;
    -webkit-appearance: textfield;
}

input[type='search']::-webkit-search-cancel-button,
input[type='search']::-webkit-search-decoration {
    -webkit-appearance: none;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
    padding: 0;
    border: 0;
}

textarea {
    overflow: auto;
    vertical-align: top;
}

button,
input,
select[multiple],
textarea {
    background-image: none;
}

input,
select,
textarea {
    border-radius: 0;
    box-shadow: none;
}

input,
textarea {
    resize: none;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

[placeholder]:focus::-webkit-input-placeholder {
    color: transparent;
}

[placeholder]:focus::-moz-placeholder {
    color: transparent;
}

[placeholder]:focus:-ms-input-placeholder {
    color: transparent;
}

/*
[placeholder]:focus::placeholder {
	color: transparent;
}
*/

table {
    border-spacing: 0;
    border-collapse: collapse;
}

b, strong {
    font-weight: bold;
}

html,
body {
    height: 100%;
}

body {
    width: 100%;
    min-width: 1145px;
    font: 300 16px/1.4 'Arial', sans-serif;
    color: #000;
    background-color: #ffffff;
}

#wrap {
    min-height: 100%;
}

#main {
    padding-bottom: 210px;
    /*overflow: auto;*/
}

#main_inner {
    padding-bottom: 60px;
    /*overflow: auto;*/
}

.footer {
    position: relative;
    margin-top: -210px;
    clear: both;
    height: 210px;
}

.footer_inner {
    position: relative;
    margin-top: -60px;
    clear: both;
    height: 60px;
}

.main {
    margin-bottom: 40px;
    margin-left: 100px; /*325px;*/
    width: 800px;
}

.container {
    position: relative;
    margin: 0 auto;
    padding-right: 10px;
    padding-left: 10px;
    width: 1145px;
}

.title-page {
    margin-top: 25px;
    margin-bottom: 20px;
    font-size: 30px;
    text-align: center;
    /*text-transform: uppercase;*/
}

.title-page:after {
    content: "";
    display: block;

    width: 110px;
    height: 2px;

    margin: 10px auto 0;

    background-color: #b0007f;
}

.subtitle-page {
    margin-bottom: 30px;

    color: #5f6b70;
    font: 400 18px/24px 'Scada', sans-serif;
    text-align: center;
}

.title-block {
    margin-top: 10px;
    margin-bottom: 20px;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    color: #007493;
}

.subtitle {
    margin-top: 30px;
    margin-bottom: 40px;
    font: 400 18px/24px 'Scada', sans-serif;
    text-align: center;
    text-transform: uppercase;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.pull-left {
    float: left;
}

.pull-right {
    float: right;
}

select {
    /*margin-top: 7px;*/
    margin-bottom: 7px;
    padding: 6px 25px 5px 8px;
    width: auto;
    max-width: 100%; /*200px;*/
    cursor: pointer;
    text-indent: .01px;
    text-overflow: ''; /* for IE */
    -webkit-appearance: none;
    color: #222;
    background: #fff url('../images/arrow.png') right center no-repeat;
    border-radius: 5px; /* for FF */

    -moz-appearance: none;
    -ms-appearance: none;
    appearance: none !important;
}

select::-ms-expand {
    display: none;
}

noscript, #adblock-warning {
    margin: 15px 0 30px;
    padding: 10px 0;
    display: block;
    font-size: 19px;
    font-weight: 500;
    text-align: center;
    color: #fff;
    background-color: #ff0101;
}

noscript {
    text-transform: uppercase;
}

.footer {
    color: #fff;
}

.footer__top {
    padding-top: 22px;
    padding-bottom: 32px;
    min-height: 150px;
    font-size: 24px;
    font-weight: 400;
    line-height: 24px;
    text-align: center;
    background-color: #145b6e/*#67cae5*/;
}

.footer__top p {
    margin-bottom: 24px;
}

.footer__btm {
    padding-top: 30px;
    padding-bottom: 30px;
    font-size: 18px;
    font-weight: 300;
    line-height: 30px;
    background-color: #0a5c7a;
}

.footer__btm:after {
    display: table;
    clear: both;
    content: '';
}

.footer__nav {
    float: right;
}

.footer__nav li {
    margin-left: 35px;
    display: inline-block;
}

.footer__nav a {
    text-decoration: none;
    color: #fff;
    text-shadow: 0 0 #000;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.footer__nav a:hover {
    text-shadow: 1px 1px #000;
}

.header {
    text-align: center;
}

.header:after {
    display: table;
    clear: both;
    content: '';
}

.header__left {
    float: left;
}

.header__right {
    position: relative;
    max-width: 200px;
    margin-top: 5px;
    margin-bottom: 15px;
    float: right;
    text-align: right;
    min-height: 55px;
}

.navigation {
    min-height: 30px;
    background-color: #145b6e/*#67cae5*/;
}

.nav {
    text-align: center;
}

.nav-inner {
    display: block; /*none;*/
}

.nav__item {
    margin-right: 60px;
    /*@media (max-width: 767px)
               display block*/
    display: inline-block;
}

.nav__item:last-child {
    margin-right: 0;
}

.nav__link, .form__nav__link {
    padding-top: 7px;
    padding-bottom: 5px;
    display: block;
    font-size: 14px;
    line-height: 18px;
    text-decoration: none;
    text-shadow: 0 0 #fff;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.nav__link {
    color: #fff;
    text-transform: uppercase;
}

.nav__link:hover {
    text-shadow: 1px 1px #000;
}

.breadcrumbs {
    margin-top: 15px;
    margin-bottom: 25px;
}

.breadcrumbs li {
    display: inline-block;
}

.breadcrumbs li a,
.breadcrumbs li span {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    text-decoration: none;
    color: #000;
}

.breadcrumbs li a.active,
.breadcrumbs li span.active {
    text-transform: uppercase;
    color: #145b6e/*#67cae5*/;
}

.breadcrumbs li a:hover {
    text-decoration: underline;
}

.breadcrumbs li + li:before {
    padding: 0 5px;
    content: '/\00a0';
    color: #ccc;
}

.btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    color: #fff;
    border: none;
    border-radius: 5px;
    box-shadow: 0 3px 0 0 rgba(24, 24, 25, .16);
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
    /*
    -webkit-transform: rotate(0deg) scale(1.003) skew(-14deg) translate(0px);
    -o-transform: rotate(0deg) scale(1.003) skew(-14deg) translate(0px);
    transform: rotate(0deg) scale(1.003) skew(-14deg) translate(0px);

     */
}

.btn:hover {
    text-shadow: 1px 1px #000;
}

.btn_blue {
    background-color: #145b6e/*#67cae5*/;
}

.btn_dark-blue {
    background-color: #238eab;
}

.btn_green {
    background-color: #84ea4e;
}

.btn_green-2 {
    background-color: #27722a/*#83ef88*/;
    margin-left: 5px;
}

.btn_block {
    margin-top: 2px;
    margin-bottom: 3px;
    padding: 5px 50px;
    display: inline-block;
}

.error {
    padding: 15px 15px 10px;
    color: red;
    text-align: center;
    font-weight: bold;
}

.warning {
    padding: 15px 15px 10px;
    color: darkorange;
}

.form__row {
    position: relative;
    margin-bottom: 20px;
    overflow: hidden;
}

.form__row .error-message {
    margin-top: 5px;
    color: rgb(248, 28, 28);
}

.form__row_select {
    overflow: visible;
}

.form__row_with_padd {
    padding-right: 15px;
    padding-left: 15px;
}

.form__input, .form__row input, .form__row select {
    margin-right: 10px;
    margin-left: 10px;
    margin-bottom: 3px;
    padding: 7px 10px;
    border: 1px solid #c1c1c1;
    border-radius: 5px;
}

.form__row select {
    padding: 5px 10px;
}

.form__input_link {
    margin-right: 0;
    width: 360px;
}

.form__label {
    position: relative;
    margin-top: 1px;
    margin-bottom: 1px;
    padding-right: 35px;
    padding-left: 3px;
    display: inline-block;
    font-size: 18px;
    font-weight: 400;
    cursor: pointer;
}

.form__label:last-child {
    margin-right: 0;
}

.form__label-check:before {
    position: absolute;
    right: 0;
    content: '';
    border: 1px solid #c1c1c1;
}

.form__label-check:after {
    position: absolute;
    display: none;
    content: '';
    background-color: #b0b0b0;
}

.form__label-check {
    margin-right: 12px;
}

.form__label-check:before {
    top: -1px;
    width: 24px;
    height: 24px;
    border-radius: 3px;
}

.form__label-check:after {
    top: 5px;
    right: 6px;
    width: 12px;
    height: 12px;
}

.form__check {
    position: absolute;
    display: block;
    width: 0;
    height: 0;
    opacity: 0;
}

.form__check:checked + .form__label-check:after {
    display: block;
}

.ico {
    display: inline-block;
}

.ico_header {
    margin: 0 auto 7px;
    display: block;
}

.i-contribute {
    width: 22px;
    height: 15px;
    background-image: url('../images/sprite.png');
    background-position: -147px -128px;
}

.i-question {
    width: 19px;
    height: 21px;
    background-image: url('../images/sprite.png');
    background-position: -96px -99px;
}

.i-search {
    width: 13px;
    height: 13px;
    background-image: url('../images/sprite.png');
    background-position: -175px -99px;
}

.main-content ul {
    margin-top: 30px;
    margin-left: 10px;
}

.main-content ul li {
    margin-top: 5px;
}

.main-content ul li a {
    position: relative;
    margin-bottom: 10px;
    display: block;
    text-decoration: none;
    color: #000;
}

.main-content ul li a:hover {
    text-decoration: underline;
}

.main-content ul li a:before {
    position: absolute;
    top: 7px;
    left: -15px;
    display: block;
    width: 8px;
    height: 8px;
    content: '';
    background-color: #145b6e/*#67cae5*/;
}

.note {
    margin-top: 20px;
    margin-bottom: 5px;
    font-size: 16px;
    font-weight: 100;
    /*font-style: italic;*/
    line-height: 25px;
    color: #080808;
}

.pager {
    margin: 20px auto 10px;
    overflow: hidden;
    list-style-type: none;
}

.pager__next {
    float: right;
    max-width: 45%;
}

.pager__previous {
    float: left;
    max-width: 45%;
}

.pager a {
    font-size: 14px;
    font-weight: 400;
    text-decoration: none;
    text-transform: uppercase;
    color: #000;
}

.pager a:hover {
    font-weight: 500;
}

.row {
    position: relative;
    margin-bottom: 10px;
}

.row:after {
    display: table;
    clear: both;
    content: '';
}

.table-container {
    margin: 0 0 1em;
    overflow-y: auto;
    width: 100%;

    _overflow: auto;
}

.table-container::-webkit-scrollbar {
    width: 14px;
    height: 14px;
    -webkit-appearance: none;
}

.table-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, .3);
    border: 3px solid #fff;
    border-radius: 8px;
}

.table {
    margin: 5px auto;
    border: 1px solid #c1c1c1;
}

.table td {
    padding: 5px 10px;
    font-weight: 400;
    /*white-space: nowrap;*/
    border: 1px solid #c1c1c1;
    background-color: #fff;
}

.table tr.table__row__underlined{
    border-bottom: 2px solid black;
}

.table td.table__title, .table td.table__cell__highlighted{
    font-weight: bold;
    background-color: #e2e2e2;
}

.table td.table__title{
    text-align: center;
}

.copyright {
    float: left;
}

.description_text-more {
    margin-top: 20px;
    display: none;
}

.description_text-more ul {
    margin: 0 15px;
    list-style: disc;
}

.page-block .form-calculator {
    color: #080808;
}

.page-block .form-calculator p {
    font-size: 18px;
    font-weight: 300;
    line-height: 1.3;
    padding-bottom: 15px;
}

.form-calculator .form__row p {
    padding-bottom: 2px;
}

.page-block .form-calculator strong {
    margin-right: 10px;
    font-size: 18px;
}

.page-block .form-calculator em {
    font-size: 18px;
    font-style: italic;
}

.form-search {
    position: relative;
    margin-top: 15px;
    margin-bottom: 15px;
}

.form-search__input {
    padding-right: 30px;
    max-width: 163px;
    font-size: 12px;
    background-color: rgb(255, 255, 255);
    border: none;
}

.form-search__btn {
    position: absolute;
    top: 1px;
    right: 0;
    width: 22px;
    height: 20px;
    background-color: #e2e2e2;
    border: #e6e6e7;
}

.graph {
    margin-bottom: 20px;
    padding: 20px;
    /*background-color: #fff;*/
    border-bottom: 3px solid #fff;
}

.graph__inner {
    margin-bottom: 20px;
    text-align: center;
}

.graph__btns {
    margin-bottom: 20px;
    text-align: center;
}

.graph__btns .btn {
    margin-bottom: 10px;
    margin-left: 9px;
    padding: 5px 23px;
    display: inline-block;
    line-height: 1.3;
    text-decoration: none;
    color: #fff;
}

.graph__btns .btn:first-child {
    margin-left: 0;
}

.graph .row {
    margin-top: 10px;
    margin-bottom: 10px;
}

.graph p {
    margin-bottom: 5px;
    font-size: 18px;
    font-weight: 300;
}

.graph strong {
    font-size: 18px;
    font-weight: 400;
}

.graph em {
    font-size: 18px;
    font-style: italic;
}

.graph a {
    font-weight: 400;
    line-height: 24px;
    text-decoration: underline;
    color: #47c2e3;
}

.lection h2,
.lection h3,
.lection .related-calculators {
    margin: 15px 15px 0;
    font-weight: 400;
    text-transform: uppercase;
}

.lection h2 a,
.lection h3 a,
.lection .related-calculators a {
    margin-left: 5px;
    font-weight: 300;
    text-decoration: underline;
    text-transform: none;
    color: #145b6e/*#67cae5*/;
}

.lection h2 a:hover,
.lection h3 a:hover,
.lection .related-calculators a:hover {
    font-weight: 400;
    text-decoration: none;
}

.lection p {
    padding: 15px 15px 10px;
    font-size: 16px;
    font-weight: 400;
    line-height: 25px;
    color: #080808;
}

.lection .important,
.lection .example,
.lection .exercise,
.lection .proof {
    padding: 5px;
    overflow: auto; /* for formulas */
    /*background-color: #eaeaea;*/
}

.lection img, .extended-description img {
    max-width: 95% !important;
    height: auto !important;
}

.extended-description h2 {
    margin: 32px 0 14px;
    padding-bottom: 7px;

    font-size: 22px;
    font-weight: 600;
    line-height: 1.3;

    color: #145b6e;
    text-align: left;

    border-bottom: 1px solid #c6dfe5;
}

.extended-description h3, .extended-description h4{
    margin: 10px 0;
    font-weight: bold;
}

.extended-description li > h3{
    font-style: italic;
    display: inline;
    font-weight: normal;
}

.extended-description div > h4{
    display: inline;
}

.extended-description li > h3:after{
    content: ": ";
}

.extended-description div > h4:after{
    content: " ";
}

.extended-description li > h3 + p{
    display: inline;
}

.extended-description div > h4 + p{
    display: inline;
}

@media screen and (max-width: 767px) {
    .lection .important img,
    .lection .example img,
    .lection .exercise img,
    .lection .proof img,
    .extended-description img{
        float: none !important;
        display: block;
        margin: auto;
    }
}

.lection .important,
.lection .example,
.lection .exercise {
    margin-top: 10px;
}

.lection .important {
    border: 1px solid #f95116;
}

.lection .example,
.lection .exercise {
    border: 1px solid #0a5c7a;
}

.lection .proof {
    border-right: 2px dotted #b4b4b4;
    border-bottom: 2px dotted #b4b4b4;
    border-left: 2px dotted #b4b4b4;
}

.links-item {
    margin-top: 5px;
    display: block;
    font-weight: 400;
    text-decoration: underline;
    color: #145b6e/*#67cae5*/;
}

.links-item:hover {
    text-decoration: none;
    color: #0d36da;
}

.list-number {
    margin-bottom: 20px;
    list-style: decimal;
    list-style-position: inside;
    text-indent: 15px;
}

.list-number_small {
    margin-top: 20px;
    font-size: 16px;
}

.list-title {
    margin-bottom: 20px;
    margin-left: 10px;
    font-weight: 400;
}

.logo {
    position: absolute;
    left: 50%;
    border-radius: 5px;
    box-shadow: 0 0 0 0 #000;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.logo:hover {
    box-shadow: 1px 1px 4px 1px #000;
}

.marker {
    position: relative;
}

.marker:before {
    position: absolute;
    top: 4px;
    left: -22px;
    display: block;
    width: 12px;
    height: 12px;
    content: '';
    border-radius: 50%;
}

.marker_green:before {
    background-color: #a8e744;
}

.marker_red:before {
    background-color: #e73535;
}

.page-block {
    margin-bottom: 22px;
    padding: 22px;
    overflow: auto;

    background-color: #f7fbfc;

    border: 1px solid #c6dfe5;
    border-radius: 8px;
}

.page-block_marg-none {
    margin-bottom: 0;
}

#calculator-description {
    background-color: #eef8fb;

    border: 1px solid #78b8c7;
    border-top: 3px solid #b0007f;

    border-radius: 8px;
}

.lection {
    overflow: auto;
}

.page-block p {
    margin-bottom: 16px;
    padding-bottom: 15px;

    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.01em;

    color: #080808;
}

.page-block li p {
    margin-bottom: 0;
}

.page-block ol,
.page-block ul {
    margin-left: 20px;
    padding-bottom: 15px;
}

.page-block ol li,
.page-block ul li {
    margin-bottom: 12px;
}

.page-block ol li:last-child,
.page-block ul li:last-child {
    margin-bottom: 0;
}

.page-block .form__input, .page-block .form__row input, .page-block .form__row select {
    width: 400px;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

.page-block .form__input_point, .form__row input[type=number], .form__row select {
    width: 170px !important;
}

.matrix {
    margin-top: 15px;
}

.matrix table tr td {
    padding-right: 10px;
}

.page-block .matrix__item {
    margin-right: 1.2%;
    margin-bottom: 10px;
    margin-left: 0;
    padding: 7px;
    width: 100% !important;
}

.matrix__item:nth-child(3n) {
    margin-right: 0;
}

.results {
    margin-bottom: 20px;
    font-size: 16px;
    font-weight: 400;
}

.social {
    margin-right: 15px;
    margin-bottom: 15px;
    display: inline-block;
}

.social__item {
    margin-right: 5px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    box-shadow: 0 0 0 0 #238eab;
    -webkit-transition: all .3s;
    -o-transition: all .3s;
    transition: all .3s;
}

.social__item:hover {
    box-shadow: 0 0 3px 1px #238eab;
}

.social__item_google {
    width: 18px;
    height: 18px;
    background-image: url('../images/sprite.png');
    background-position: -123px -99px;
}

.social__item_vk {
    width: 18px;
    height: 18px;
    background-image: url('../images/sprite.png');
    background-position: -149px -99px;
}

.social__item_fb {
    width: 18px;
    height: 17px;
    background-image: url('../images/sprite.png');
    background-position: -96px -128px;
}

.social__item_twitt {
    width: 17px;
    height: 17px;
    background-image: url('../images/sprite.png');
    background-position: -122px -128px;
}

.studio {
    padding-top: 30px;
    display: block;
    text-align: right;
}

.studio:after {
    display: table;
    clear: both;
    content: '';
}

.studio img {
    margin-top: 3px;
    display: inline-block;
    width: 230px;
    height: auto;
}

.terms-text {
    margin-top: 10px;
    margin-bottom: 10px;
    padding-right: 20px;
    padding-left: 20px;
}

.trigger {
    position: absolute;
    right: 0;
    bottom: 0;
    display: none;
    float: right;
    width: 40px;
    height: 30px;
    font-size: 32px;
    cursor: pointer;
    /*@media screen and (max-width: 767px)
           display block*/
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

.trigger:before {
    position: absolute;
    top: 5px;
    left: 0;
    width: 100%;
    height: 12px;
    content: '';
    border-top: 4px solid #000;
    border-bottom: 4px solid #000;
}

div.adsbygoogle {
    margin: 15px auto;
    overflow: hidden;
    width: 728px;
    height: 90px;
    display: none;
}

div.adsbygoogle.highlighted {
    box-shadow: 0px 0px 1.2em hsla(193, 71%, 65%, 1); /* hsla(50, 15%, 52%, 1);*/
    display: block;
}

aside div.adsbygoogle {
    width: 160px;
    height: 600px;
}

#z-ad-1 {
    display: none;
}

@media (max-width: 768px) {
    div.adsbygoogle {
        width: 300px;
        overflow: hidden;
        min-height: 50px;
        max-height: 250px;
        height: auto;
    }

    #z-ad-1.highlighted {
        display: block;
    }
}

@media (max-width: 767px) and (min-width: 590px) {
    .form-search {
        float: left;
    }
}

@media (max-width: 1199px) {
    body {
        min-width: 0;
    }

    .main {
        width: 800px;
    }

    .container {
        max-width: 1125px;
    }
}

@media (max-width: 1160px) {
    .main {
        margin-left: 300px;
        width: auto;
    }

    .nav-inner {
        display: block;
    }

    .container {
        max-width: 820px;
    }

    .copyright {
        margin-top: 30px;
        font-size: 14px;
        margin-left: 35px;
    }

    .matrix__item {
        margin-right: 0;
    }
}

@media screen and (max-width: 1160px) {
    .main {
        margin-left: 0;
    }

    #left-menu {
        float: none !important;
    }

    aside div.adsbygoogle.highlighted {
        display: none;
    }

}

@media (max-width: 837px) {
    .container {
        padding-right: 15px;
        padding-left: 15px;
        max-width: 100%;
    }

    .footer__nav {
        float: none;
    }

    .footer__nav li {
        /*display: block;*/
    }

    .header__left{
        float: right;
    }

    .header__right {
        margin-top: 20px;
        margin-right: 20px;
        width: 100%;
        text-align: center;
        min-height: auto;
    }

    .nav__item {
        margin-right: 40px;
    }

    .ico_header {
        margin-right: 10px;
        margin-bottom: 7px;
        float: left;
    }

    .form-search {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .list-title {
        margin-left: 20px;
    }

    .logo {
        position: relative;
        left: auto;
        float: left;
    }

    .terms-text {
        margin-right: 20px;
        margin-left: 20px;
        padding-right: 0;
        padding-left: 0;
    }
}

@media (max-width: 479px) {
    .nav__item {
        margin-right: 10px;
    }

    .nav__link, .form__nav__link {
        font-size: 10px;
    }

    .header__left {
        display: none;
    }

    .header__right {
        margin-top: 10px;
        margin-right: 0;
        width: 50%;
        min-height: auto;
    }

    .form-search__input {
        max-width: 145px;
    }

}

@media (max-width: 400px) {
    .page-block .form__input, .page-block .form__row input, .page-block .form__row select, .page-block .form__row textarea {
        width: 210px;
    }
}

@media (min-width: 401px) and (max-width: 530px) {
    .page-block .form__input, .page-block .form__row input, .page-block .form__row select, .page-block .form__row textarea {
        width: 250px;
    }
}

.related-notes .links-item {
    display: inline-block;
    padding-left: 5px;
}

.no-links-description {
    display: block;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
}

.helplabel {
    margin-left: 10px;
    font-size: 14px;
    color: rgb(90, 90, 90);
    margin-top: 5px;
    clear: both;
}

img {
    vertical-align: middle;
    border: none;
}

.title .MathJax {
    font-weight: bold;
}

#MathJax_Zoom {
    overflow: auto !important;
}


ol[type=a] li {
    margin: 5px;
}

.input-group {
    color: #333;
    margin: -5px 2px 10px;
}

.input-group label {
    margin: 5px 5px 5px 0;
    font-weight: bold;
    float: left;
}

.input-group .field-error-group {
    max-width: 100%;
}

.input-group .error-message {
    color: #cc0033;
    font-size: 14px;
    line-height: 15px;
    margin: 5px 0 0;
}

.input-group.form-error label {
    color: #cc0033;
}

.input-group.form-error input, .input-group.form-error select {
    background-color: #fce4e4;
    border: 1px solid #cc0033;
    outline: none;
}

.values-table {
    border-collapse: collapse;
    border: 1px solid black;
    margin: auto;
}

.values-table td {
    border: 1px solid black;
    padding: 5px;
}

.plain-formula {
    cursor: pointer;
    width: 100%;
    margin: 10px 5px;
    font-weight: normal;
    padding: 7px 10px;
    border: 1px solid #c1c1c1;
    border-radius: 5px;
}

.plain-formula-trigger, .plain-matrix-input-trigger {
    cursor: pointer;
    color: orange;
    text-decoration: none;
    margin: 5px;
    font-weight: bold;
    font-family: "Bitstream Vera Sans Mono", Monaco, "Courier New", Courier, monospace;
}

.plain-formula-trigger:hover, .plain-matrix-input-trigger:hover {
    color: darkorange;
}

.formula-delimiter {
    display: none;
}

#calc-sec-container{
    margin-top: 10px;
    max-height: 200px;
    overflow-y: auto;
    padding: 2px;
}
.calc-sec{
    font-size: 11px;
    padding: 2px;
    border: 1px solid;
    border-radius: 10%;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.sec1 {
    background-color: #F28585;
    border-color: #BF2F2F;
}
.sec2 {
    background-color: #F2BB85;
    border-color: #BF772F;
}
.sec3 {
    background-color: #F2F285;
    border-color: #BFBF2F;
}
.sec4 {
    background-color: #BBF285;
    border-color: #77BF2F;
}
.sec5 {
    background-color: #85F285;
    border-color: #2FBF2F;
}
.sec6 {
    background-color: #85F2BB;
    border-color: #2FBF77;
}
.sec7 {
    background-color: #85F2F2;
    border-color: #2FBFBF;
}
.sec8 {
    background-color: #85BBF2;
    border-color: #2F77BF;
}
.sec9 {
    background-color: #8585F2;
    border-color: #2F2FBF;
}
.sec10 {
    background-color: #BB85F2;
    border-color: #772FBF;
}
.sec11 {
    background-color: #F285F2;
    border-color: #BF2FBF;
}
.sec12 {
    background-color: #F285BB;
    border-color: #BF2F77;
}

/* New Layout CSS starts here */

/* ========================================
   Main site header
   ======================================== */

.emh-site-header {
    background: #ffffff;
    padding: 6px 0;
}

.emh-site-header__inner {
    width: calc(100% - 30px);
    max-width: 1140px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.emh-site-header__logo {
    display: block;
    flex-shrink: 0;
}

.emh-site-header__logo img {
    display: block;
    max-width: 100%;
    height: auto;
}


/* Main links on right side */

.emh-site-header__menu {
    display: flex;
    align-items: center;
    gap: 38px;
}

.emh-site-header__link {
    position: relative;

    color: #174f5c;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;

    text-decoration: none;
    transition: color 0.2s ease;
}

.emh-site-header__link::after {
    content: "";
    position: absolute;

    left: 50%;
    bottom: -7px;

    width: 0;
    height: 2px;

    background: #b0007f;

    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.emh-site-header__link:hover {
    color: #b0007f;
}

.emh-site-header__link:hover::after {
    width: 100%;
}


/* ========================================
   Calculator section navigation
   ======================================== */

.emh-section-nav {
    background: #eaf5f7;

    border-top: 1px solid #79aeb8;
    border-bottom: 1px solid #79aeb8;
}

.emh-section-nav__inner {
    width: calc(100% - 30px);
    max-width: 1140px;
    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.emh-section-nav__link {
    display: block;

    padding: 11px 14px;

    color: #174f5c;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.emh-section-nav__link:hover {
    background: #d6ebef;
    color: #b0007f;
}


/* ========================================
   Mobile
   ======================================== */

@media (max-width: 700px) {

    .emh-site-header__inner {
        flex-direction: column;
        gap: 12px;
    }

    .emh-site-header__menu {
        gap: 24px;
        padding-bottom: 7px;
    }

    .emh-site-header__link {
        font-size: 16px;
    }

    .emh-section-nav__inner {
        padding: 0 8px;
    }

    .emh-section-nav__link {
        padding: 9px 10px;
        font-size: 14px;
    }
}

/* ========================================
   Main page layout
   ======================================== */

.emh-page-shell {
    width: calc(100% - 30px);
    max-width: 1140px;
    margin: 0 auto;
}

.emh-page-content {
    width: 800px;
    max-width: 100%;
    margin: 0 auto;
}

.emh-page-sidebar {
    display: none;
    width: 300px;
}


/* ========================================
   Layout with sidebar advertisement
   Used later when ads are enabled
   ======================================== */

@media (min-width: 1180px) {

    .emh-page-shell--with-sidebar {
        display: grid;
        grid-template-columns: 800px 300px;
        column-gap: 40px;
        align-items: start;
    }

    .emh-page-shell--with-sidebar .emh-page-content {
        margin: 0;
    }

    .emh-page-shell--with-sidebar .emh-page-sidebar {
        display: block;
    }
}


/* ========================================
   Mobile / narrow screens
   ======================================== */

@media (max-width: 830px) {

    .emh-page-shell {
        width: calc(100% - 30px);
    }

    .emh-page-content {
        width: 100%;
    }

    .emh-page-sidebar {
        display: none !important;
    }
}

/* ========================================
   New footer
   ======================================== */


/*
   Replace the old negative-margin sticky footer system
   with a normal flexible page layout.
*/

body {
    height: auto;
    min-height: 100vh;

    display: flex;
    flex-direction: column;
}

#wrap {
    min-height: 0;
    flex: 1 0 auto;
}

#main,
#main_inner {
    padding-bottom: 0;
}


/* Footer */

.emh-footer {
    position: relative;
    flex-shrink: 0;

    height: auto;
    margin-top: 60px;

    background: #145b6e;
    border-top: 3px solid #b0007f;
}

.emh-footer__inner {
    width: calc(100% - 30px);
    max-width: 1140px;
    min-height: 78px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* Copyright */

.emh-footer__copyright {
    color: rgba(255, 255, 255, 0.9);

    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}


/* Footer navigation */

.emh-footer__nav {
    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;
    gap: 32px;

    list-style: none;
}

.emh-footer__nav li {
    margin: 0;
    padding: 0;
}

.emh-footer__link {
    position: relative;

    color: #ffffff;

    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;

    text-decoration: none;

    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.emh-footer__link::after {
    content: "";

    position: absolute;
    left: 50%;
    bottom: -6px;

    width: 0;
    height: 2px;

    background: #ffffff;

    transform: translateX(-50%);
    transition: width 0.2s ease;
}

.emh-footer__link:hover {
    color: #ffffff;
}

.emh-footer__link:hover::after {
    width: 100%;
}


/* ========================================
   Footer mobile
   ======================================== */

@media (max-width: 700px) {

    .emh-footer {
        margin-top: 40px;
    }

    .emh-footer__inner {
        min-height: 0;
        padding: 22px 0;

        flex-direction: column;
        justify-content: center;

        gap: 18px;

        text-align: center;
    }

    .emh-footer__nav {
        justify-content: center;
        flex-wrap: wrap;

        gap: 12px 24px;
    }

    .emh-footer__copyright {
        font-size: 13px;
    }

    .emh-footer__link {
        font-size: 14px;
    }
}

/* Normal content links, but not links styled as buttons */

.page-block a:not(.btn) {
    color: #0645ad;
    font-weight: 600;

    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;

    transition:
        color 0.2s ease,
        text-decoration-color 0.2s ease;
}

.page-block a:not(.btn):visited {
    color: #551a8b;
}

.page-block a:not(.btn):hover {
    color: #b0007f;
    text-decoration-color: #b0007f;
}

.page-block a:not(.btn):focus-visible {
    outline: 2px solid #b0007f;
    outline-offset: 3px;
    border-radius: 2px;
}

/* ========================================
   Calculator "What to do?" dropdown
   ======================================== */

#calculator-description .select2-container {
    width: 430px !important;
    max-width: 100%;
}

#calculator-description
.select2-container--default
.select2-selection--single {
    height: 46px;

    background-color: #ffffff;

    border: 1px solid #78b8c7;
    border-radius: 6px;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

#calculator-description
.select2-container--default
.select2-selection--single
.select2-selection__rendered {
    padding-left: 14px;
    padding-right: 42px;

    color: #27363b;
    font-size: 16px;
    font-weight: 400;
    line-height: 44px;
}

#calculator-description
.select2-container--default
.select2-selection--single
.select2-selection__placeholder {
    color: #5d6b70;
}

#calculator-description
.select2-container--default
.select2-selection--single
.select2-selection__arrow {
    width: 40px;
    height: 44px;
}

#calculator-description
.select2-container--default.select2-container--focus
.select2-selection--single,
#calculator-description
.select2-container--default.select2-container--open
.select2-selection--single {
    border-color: #b0007f;
}

.select2-container--default .select2-dropdown {
    background-color: #ffffff;
    border: 1px solid #78b8c7;
    border-radius: 6px;
}

.select2-container--default .select2-results__option {
    padding: 9px 12px;

    font-size: 15px;
    line-height: 1.4;
}

.select2-container--default
.select2-results__option--highlighted[aria-selected] {
    background-color: #145b6e;
    color: #ffffff;
}

.select2-container--default
.select2-results__option[aria-selected="true"] {
    background-color: #eef8fb;
    color: #222222;
}

/* Calculator action buttons */

.emh-btn {
    min-width: 120px;
    padding: 10px 20px;

    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;

    border-radius: 6px;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


/* Primary action */

.emh-btn--primary {
    color: #ffffff;
    background-color: #145b6e;
    border: 1px solid #145b6e;
}

.emh-btn--primary:hover {
    background-color: #0e4a5a;
    border-color: #0e4a5a;
}


/* Secondary action */

.emh-btn--secondary {
    margin-left: 8px;

    color: #3e4c50;
    background-color: #ffffff;
    border: 1px solid #aebfc3;
}

.emh-btn--secondary:hover {
    color: #145b6e;
    background-color: #eef8fb;
    border-color: #78b8c7;
}