/* header */
/* КОСТЫЛЬ повышаем специфичность селектора */
/* чтобы перебить стили из style.css */
header.header {
    /* для страницы со старым style.css */
    box-sizing: border-box;

    /* запрещаем хэдеру сжиматься, если у body flex-direction: column */
    /* и на странице есть еще элементы с flex-grow: 1 */
    flex-shrink: 0;
    
    position: relative;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
    background: #36156b;

    font-family: "PT-Root-UI", sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.5;
    color: #002033;
}
@media(min-width: 1200px) {
    header.header {
        font-size: 18px;
    }
}

.container-header {
    /* для страницы со старым style.css */
    box-sizing: border-box;

    width: 100%;
    min-width: auto;
    max-width: 1470px;
    margin: auto;
    padding-right: 10px;
    padding-left: 10px;
    position: relative;
    height: 100%;
}
@media (min-width: 991px) {
    .container-header {
        padding-right: 15px;
        padding-left: 15px;
    }
}
@media(min-width: 1200px) {
    .container-header {
        position: static;
    }
    header.header {
        height: 82px;
        padding-top: 0;
        padding-bottom: 0;
    }
    body:not(.h-page) header.header {
        border-bottom-color: rgba(0, 32, 51, .08);
        background: #fff;
    }
    .header__logo {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 15px;
        height: 32px;
        margin: auto;
        margin-right: 31px;
    }
}
@media(min-width: 1440px) {
    .header__logo {
        left: 40px;
    }
}
.header__logo-link {
    font-family: "Roboto Slab", serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    text-transform: none;
}
header.header .header__logo-link,
header.header .header__logo-link:hover,
.h-page .header__logo-link,
.h-page .header__logo-link:hover {
    color: #f5ab00;
    text-decoration: none;
}

/* header-nav */
.header__nav-parent {
    height: 100%;
}
.header__nav-parent--user {
    position: absolute;
    top: 0;
    right: 50px;
    bottom: 0;
    margin: auto;
}
@media(min-width: 1200px) {
    .header__nav-parent--user {
        display: none;
    }
}
.header-nav__note {
    display: inline-block;
    padding-left: 8px;
    opacity: .6;
    color: #f7f6fb;
}
.header-nav__note--user {
    padding-left: 0;
}
@media(min-width: 1200px) {
    .header-nav__note {
        opacity: 1;
        color: #50209e;
    }
}
.header-nav {
    width: 100%;
    height: 100%;
    margin: 0;
}
@media(max-width: 1199px) {
    .header-nav {
        display: none;
        overflow-y: auto;
        background: #36156b;

        -webkit-overflow-scrolling: touch;
    }
    .toggle-nav--open+ .header-nav {
        position: fixed;
        z-index: 100;
        top: 59px;
        bottom: 0;
        left: 0;
        display: -ms-flexbox;
        display: -webkit-flex;
        display:         flex;
        -webkit-align-content: stretch;
        -ms-flex-line-pack: stretch;
                align-content: stretch;
        -webkit-align-items: stretch;
                align-items: stretch;
        -ms-flex-align: stretch;
        -webkit-flex-direction: column-reverse;
            -ms-flex-direction: column-reverse;
                flex-direction: column-reverse;
        -webkit-flex-wrap: nowrap;
            -ms-flex-wrap: nowrap;
                flex-wrap: nowrap;
        -ms-flex-pack: end;
        -webkit-justify-content: flex-end;
                justify-content: flex-end;
        width: 100%;
    }
}
.toggle-nav,
.toggle-nav::before {
    position: absolute;
    top: 0;
    bottom: 0;
    margin: auto;
}
.toggle-nav {
    right: 15px;
    width: 30px;
    height: 30px;
    border: none;
    outline: none;
    background: none;
    box-shadow: none;

    -webkit-appearance: none;
            appearance: none;
}
.toggle-nav::before {
    right: 0;
    left: 0;
    width: 28px;
    height: 10px;
    content: "";
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='28' height='10' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 9h18M1 1h26' stroke='%23FFCD29' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
.toggle-nav--user::before {
    width: 18px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 19v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 9a4 4 0 100-8 4 4 0 000 8z' stroke='%23FFCD29' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.toggle-nav--open::before {
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M16.5 1.5l-15 15M1.5 1.5l15 15' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
@media(min-width: 1200px) {
    .toggle-nav--menu {
        display: none;
    }
}
.body--header-nav-open {
    overflow: hidden;
}
.header-nav__reg {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-nav__reg--on {
    display: -ms-flexbox;
    display: -webkit-flex;
    display: flex;
}
@media(max-width: 1199px) {
    .header-nav #current> .header-nav__link::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        width: 4px;
        content: "";
        background: #f5ab00;
    }
    .header-nav__reg--off {
        display: -ms-flexbox;
        display: -webkit-flex;
        display:         flex;
    }
    .header-nav__reg--on {
        display: none;
    }
    .header-nav__reg #current .header-nav__link::before {
        display: none;
    }
}
.header-nav__menu {
    list-style: none;
    padding: 0;
    margin: 0;
}
@media(min-width: 1200px) {
    .header__accounting,
    .header-nav__menu,
    .header-nav__reg {
        display: -ms-flexbox;
        display: -webkit-flex;
        display:         flex;
        -webkit-align-content: stretch;
        -ms-flex-line-pack: stretch;
                align-content: stretch;
        -ms-flex-pack: start;
        -webkit-justify-content: flex-start;
                justify-content: flex-start;
        height: 100%;
        margin-left: 12%;
    }
    .header-nav__item {
        display: -ms-flexbox;
        display: -webkit-flex;
        display:         flex;
        -webkit-align-content: center;
        -ms-flex-line-pack: center;
                align-content: center;
        -webkit-align-items: center;
                align-items: center;
        -ms-flex-align: center;
        -ms-flex-pack: center;
        -webkit-justify-content: center;
                justify-content: center;
        height: 100%;
    }
    .header-nav__item--m-help {
        display: none;
    }
    .header-nav__link {
        position: relative;
    }
    .header-nav__item:hover::after,
    .header-nav #current::after {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        width: 40px;
        height: 4px;
        margin-right: auto;
        margin-left: auto;
        content: "";
        border-radius: 4px 4px 0 0;
        background: #f5ab00;
    }
    body:not(.h-page) .header-nav__item:hover:after,
    body:not(.h-page) .header-nav #current::after {
        background: #431a84;
    }
    body:not(.user) .header-nav__reg .header-nav__item:last-child::after {
        display: none;
    }
}
@media(min-width: 1600px) {
    .header__accounting,
    .header-nav__menu,
    .header-nav__reg {
        margin-left: 6%;
    }
}
@media(min-width: 1800px) {
    .header-nav__menu {
        margin-left: -24px;
    }
}
.header-nav__item {
    position: relative;
}
.header-nav__link {
    font-family: "PT-Root-UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    display: block;
    color: #fff;
    text-decoration: none;
}
@media (min-width: 1200px) {
    .header-nav__link {
        font-size: 17px;
    }
}
.header-nav__text {
    color: inherit;
}
@media (min-width: 1200px) and (max-width: 1800px) {
    .header-nav__link[href="https://blog.seodroid.ru/"]::before {
        content: "Блог";
    }
    .header-nav__link[href="https://blog.seodroid.ru/"] .header-nav__text {
        display: none;
    }
}
@media (min-width: 1200px) and (max-width: 1279px) {
    .header-nav__item--help .header-dropdown {
        left: -81px;
    }
}
@media (min-width: 1280px) and (max-width: 1439px) {
    .header-nav__item--help .header-dropdown {
        left: -62px;
    }
}
@media (min-width: 1200px) and (max-width: 1919px) {
    .header-nav__item--help .header-nav__text-substr {
        display: none;
    }
}
.header-nav__menu .header-nav__link {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}
.header-nav__link:hover {
    text-decoration: none;
    color: #fff;
}
@media(min-width: 1200px) {
    .header-nav__item {
        padding: 0 10px;
    }
    .header-nav__menu .header-nav__link {
        height: 100%;
        padding: 0;
        border-bottom: none;
    }
    body:not(.h-page) .header-nav__link {
        color: #431a84;
    }
}
@media(min-width: 1280px) {
    .header-nav__item {
        padding-right: 12px;
        padding-left: 12px;
    }
}
@media (min-width: 1600px) {
    .header-nav__item {
        padding-right: 24px;
        padding-left: 24px;
    }
}
.header-dropdown__link,
.header-nav__link,
.header-nav__text {
    display: -ms-flexbox;
    display: -webkit-flex;
    display:         flex;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
            align-content: center;
    -webkit-align-items: center;
            align-items: center;
    -ms-flex-align: center;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    -ms-flex-pack: start;
    -webkit-justify-content: flex-start;
            justify-content: flex-start;
}
@media(min-width: 1200px) {
    .header-nav__link[href$="/possibilities"]::before,
    .header-nav__link[href$="/quick-start"]::before {
        display: inline-block;
        margin-right: 12px;
        content: "";
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    .header-nav__link[href$="/possibilities"]::before {
        width: 20px;
        height: 23px;
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1.5l-10 12h9l-1 8 10-12h-9l1-8z' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .header-nav__link[href$="/quick-start"]::before {
        width: 22px;
        height: 23px;
        background-image: url("data:image/svg+xml,%3Csvg width='22' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 21.5c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 15.5a4 4 0 100-8 4 4 0 000 8zM3.93 4.43l4.24 4.24M13.83 14.33l4.24 4.24M13.83 8.67l4.24-4.24M13.83 8.67l3.53-3.53M3.93 18.57l4.24-4.24' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    body:not(.h-page) .header-nav__link[href$="/possibilities"]::before {
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1.5l-10 12h9l-1 8 10-12h-9l1-8z' stroke='%23431A84' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    body:not(.h-page) .header-nav__link[href$="/quick-start"]::before {
        background-image: url("data:image/svg+xml,%3Csvg width='22' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 21.5c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z' stroke='%23431A84' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 15.5a4 4 0 100-8 4 4 0 000 8zM3.93 4.43l4.24 4.24M13.83 14.33l4.24 4.24M13.83 8.67l4.24-4.24M13.83 8.67l3.53-3.53M3.93 18.57l4.24-4.24' stroke='%23431A84' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
}
@media(max-width: 1199px) {
    .header-nav__menu .header-nav__item> .header-nav__link--ps> .header-nav__text::before,
    .header-nav__menu .header-nav__item> .header-nav__link--qs> .header-nav__text::before {
        display: inline-block;
        margin-right: 12px;
        content: "";
        background-color: transparent;
        background-repeat: no-repeat;
        background-position: center;
        background-size: cover;
    }
    .header-nav__menu .header-nav__item> .header-nav__link--ps> .header-nav__text::before {
        width: 20px;
        height: 23px;
        background-image: url("data:image/svg+xml,%3Csvg width='20' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 1.5l-10 12h9l-1 8 10-12h-9l1-8z' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .header-nav__menu .header-nav__item> .header-nav__link--qs> .header-nav__text::before {
        width: 22px;
        height: 23px;
        background-image: url("data:image/svg+xml,%3Csvg width='22' height='23' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11 21.5c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10z' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M11 15.5a4 4 0 100-8 4 4 0 000 8zM3.93 4.43l4.24 4.24M13.83 14.33l4.24 4.24M13.83 8.67l4.24-4.24M13.83 8.67l3.53-3.53M3.93 18.57l4.24-4.24' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
}
/* header-nav__reg */
.header-nav__reg .header-nav__link[href="/login"],
.header-nav__reg .header-nav__link--user {
    display: -ms-flexbox;
    display: -webkit-flex;
    display:         flex;
    -webkit-align-content: center;
    -ms-flex-line-pack: center;
            align-content: center;
    -webkit-align-items: center;
            align-items: center;
    -ms-flex-align: center;
    -webkit-flex-direction: row;
        -ms-flex-direction: row;
            flex-direction: row;
    -webkit-flex-wrap: nowrap;
        -ms-flex-wrap: nowrap;
            flex-wrap: nowrap;
    -ms-flex-pack: center;
    -webkit-justify-content: center;
            justify-content: center;
}
.header-nav__reg .header-nav__link[href="/login"]::before {
    width: 18px;
    height: 20px;
    margin-right: 13px;
    content: "";
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 19v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 9a4 4 0 100-8 4 4 0 000 8z' stroke='%23fff' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* js-user-name */
.header-nav__link--user {
    min-width: 130px;
    height: 37px;
}
.js-user-name {
    display: none;
}
.js-user-name--ready {
    display: block;
}
.header__user-title {
    /* для страницы со старым style.css */
    box-sizing: border-box;

    font-size: 14px;
}
@media(min-width: 1200px) {
    .header__user-title {
        font-size: 17px;
    }
}
.header__user-title-text.js-user-name--ready {
    opacity: 1;
}
.header-nav__note.js-user-name--ready {
    opacity: .6;
}
/* /js-user-name */
@media(max-width: 1199px) {
    .header-nav__reg {
        padding: 15px;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }
    .header-nav__reg .header-nav__item {
        margin-right: 15px;
    }
    .header-nav__reg .header-nav__link {
        height: 40px;
        padding: 10px 22px;
        border-radius: 4px;
        background: rgba(255, 255, 255, .2);
    }
}
@media(min-width: 1200px) {
    .header__accounting,
    .header-nav__reg {
        position: absolute;
        top: 0;
        right: 15px;
        bottom: 0;
        margin: auto;
    }
    .header-nav__reg .header-nav__link--user,
    .header-nav__reg .header-nav__link[href="/login"] {
        line-height: 1;
        width: 100%;
        padding: 10px 22px;
        border-radius: 4px;
    }
    body:not(.h-page) .header-nav__reg .header-nav__link--user,
    body:not(.h-page) .header-nav__reg .header-nav__link[href="/login"],
    .header-nav__reg .header-nav__link--user,
    .header-nav__reg .header-nav__link[href="/login"] {
        color: #fff;
        background: #674d99;
    }
    .header-nav__reg .header-nav__item:hover .header-nav__link--user,
    .header-nav__reg .header-nav__link--user:active,
    .header-nav__reg .header-nav__link--user:focus,
    .header-nav__reg .header-nav__link--user:hover,
    .header-nav__reg .header-nav__link[href="/login"]:active,
    .header-nav__reg .header-nav__link[href="/login"]:focus,
    .header-nav__reg .header-nav__link[href="/login"]:hover {
        color: #fff;
        background: #503970;
    }
    .h-page .header-nav__reg .header-nav__link--user,
    .h-page .header-nav__reg .header-nav__link[href="/login"] {
        color: #503970;
        background: #ffcd29;
    }
    .h-page .header-nav__reg .header-nav__item:hover .header-nav__link--user,
    .h-page .header-nav__reg .header-nav__link--user:active,
    .h-page .header-nav__reg .header-nav__link--user:focus,
    .h-page .header-nav__reg .header-nav__link--user:hover,
    .h-page .header-nav__reg .header-nav__link[href="/login"]:active,
    .h-page .header-nav__reg .header-nav__link[href="/login"]:focus,
    .h-page .header-nav__reg .header-nav__link[href="/login"]:hover {
        color: #503970;
        background: #ffe770;
    }
    .h-page .header-nav__reg .header-nav__link[href="/login"]::before {
        background-image: url("data:image/svg+xml,%3Csvg width='18' height='20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M17 19v-2a4 4 0 00-4-4H5a4 4 0 00-4 4v2M9 9a4 4 0 100-8 4 4 0 000 8z' stroke='%23503970' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    }
    .header-nav__reg .header-nav__item:last-child {
        padding-top: 0;
        padding-right: 0;
        padding-bottom: 0;
    }
}
@media(min-width: 1440px) {
    .header__accounting,
    .header-nav__reg {
        right: 40px;
    }
}
/* header-dropdown */
.header-dropdown {
    display: none;
}
.header-dropdown__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.header-dropdown__link {
    display: flex;
    padding: 10px 15px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
}
.header-dropdown__link:hover {
    text-decoration: none;
    color: #8e2de2;
}
.header-dropdown__e-svg {
    display: none;
    margin-right: 12px;
}
@media(max-width: 1199px) {
    .header-dropdown {
        padding-top: 7px;
        padding-bottom: 7px;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }
    .header-nav__link--open+ .header-dropdown {
        display: block;
    }
}
@media(min-width: 1200px) {
    .header-dropdown {
        position: absolute;
        z-index: 10;
        top: 100%;
        display: none;
        padding: 24px 20px;
        border: 1px solid rgba(0, 32, 51, .08);
        border-radius: 4px;
        background: #fff;
        box-shadow: 0 4px 4px rgba(0, 32, 51, .04), 0 8px 24px rgba(0, 32, 51, .12);
    }
    .header-dropdown--user {
        right: 0;
    }
    .header-nav__item:hover .header-dropdown {
        display: block;
    }
    .header-dropdown__item:not(:last-child) {
        margin-bottom: 24px;
    }
    .header-dropdown__link {
        padding: 0;
        font-size: 17px;
        color: #002033;
    }
    .header-dropdown__e-svg {
        display: block;
    }
    .header-dropdown__e-svg path {
        stroke: #431a84;
    }
    .header-dropdown__link--help {
        color: #431A84;
    }
}
.header-nav__item--dropdown .header-nav__link::after {
    width: 10px;
    height: 7px;
    margin-left: 14px;
    content: "";
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5.5l-4-4-4 4' stroke='%23fff' stroke-width='1.7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}
@media (min-width: 1200px) and (max-width: 1439px) {
    .header-nav__item--dropdown .header-nav__link::after {
        margin-left: 5px;
    }
}
@media(max-width: 1199px) {
    .header-nav__item--dropdown .header-nav__link::after {
        position: absolute;
        top: 0;
        right: 15px;
        bottom: 0;
        margin: auto;
        -webkit-transform: scale(1) rotate(180deg);
                transform: scale(1) rotate(180deg);
    }
    .header-nav__item--dropdown .header-nav__link--open::after {
        -webkit-transform: scale(1) rotate(0);
                transform: scale(1) rotate(0);
    }
}
@media(min-width: 1200px) {
    body:not(.h-page) .header-nav__link--quick-start::after {
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 5.5l-4-4-4 4' stroke='%23431A84' stroke-width='1.7'/%3E%3C/svg%3E");
    }
    .header-nav__item--dropdown .header-nav__link::after {
        -webkit-transform: scale(1) rotate(180deg);
                transform: scale(1) rotate(180deg);
    }
    .header-nav__item--dropdown:hover .header-nav__link::after {
        -webkit-transform: scale(1) rotate(0);
                transform: scale(1) rotate(0);
    }
}
.header-nav__reg .header-nav__link--user::after {
    display: block;
    width: 12px;
    height: 12px;
    margin-left: 10px;
    content: "";
    border-radius: 50%;
    background-color: #22c38e;
    background-image: none;
}