/* Quiet, evolutionary refresh for registration and personal-area forms. */

.personal-area-shell .top-head {
    margin-bottom: 24px;
}

.personal-area-shell .top-head-bar.lk {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    background: #fff;
    overflow: visible;
}

.personal-area-shell .top-head-bar.lk > li {
    float: none;
}

.personal-area-shell .top-head-bar.lk > li > a {
    font-weight: 600;
}

.account-form-page,
.account-auth-page {
    color: #333;
    font-family: 'PT Sans', sans-serif;
}

.account-form-page {
    max-width: 1080px;
    margin: 0 auto 56px;
}

.account-form-header {
    max-width: 760px;
    margin: 0 0 28px;
}

.account-form-header h1,
.auth-card__header h1,
.account-status-card h1 {
    margin: 7px 0 10px;
    color: #2f2f2f;
    font: 600 34px/42px 'PT Serif', serif;
    text-transform: none;
}

.account-form-header > p,
.auth-card__header > p,
.account-status-card > p {
    margin: 0;
    color: #626262;
    font-size: 17px;
    line-height: 25px;
}

.account-eyebrow {
    display: inline-block;
    color: #c92f3d;
    font-size: 12px;
    font-weight: 700;
    line-height: 18px;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account-back-link,
.account-secondary-link {
    color: #176b91;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 107, 145, .28);
}

.account-back-link {
    display: table;
    margin-bottom: 20px;
    font-size: 14px;
}

.account-back-link:hover,
.account-secondary-link:hover {
    color: #e63241;
    border-bottom-color: rgba(230, 50, 65, .35);
}

.account-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    margin: 0 0 28px;
    padding: 0;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    background: #e5e5e5;
    overflow: hidden;
    list-style: none;
}

.account-flow li {
    display: grid;
    grid-template-columns: 32px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    align-items: center;
    min-height: 62px;
    margin: 0;
    padding: 12px 16px;
    left: auto;
    background: #fff;
}

.account-flow li > span {
    grid-row: 1 / span 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #c9c9c9;
    border-radius: 50%;
    color: #777;
    font-size: 13px;
    font-weight: 700;
}

.account-flow li strong {
    align-self: end;
    color: #444;
    font-size: 15px;
    line-height: 18px;
}

.account-flow li small {
    align-self: start;
    color: #929292;
    font-size: 12px;
    line-height: 15px;
}

.account-flow li.is-complete > span {
    border-color: #6d9c37;
    background: #6d9c37;
    color: #fff;
}

.account-flow li.is-current {
    background: #fff8ed;
}

.account-flow li.is-current > span {
    border-color: #e63241;
    background: #e63241;
    color: #fff;
}

.form.account-form {
    padding: 0;
}

.account-section {
    margin: 0 0 18px;
    padding: 26px 28px 28px;
    border: 1px solid #e5e5e5;
    border-radius: 9px;
    background: #fff;
    box-sizing: border-box;
}

.account-section__heading {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid #ececec;
}

.account-section__heading > span {
    display: flex;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f4a23d;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.account-section__heading h2 {
    margin: 0 0 4px;
    color: #333;
    font: 600 22px/28px 'PT Serif', serif;
}

.account-section__heading p {
    margin: 0;
    color: #777;
    font-size: 14px;
    line-height: 20px;
}

.account-field {
    margin: 0 0 24px;
}

.account-field:last-child {
    margin-bottom: 0;
}

.account-form .account-field > label:first-child,
.account-form .account-field__label,
.account-form .vacancy-choice-field legend > label,
.account-form .vacancy-choice-field legend {
    display: block;
    margin: 0 0 9px;
    color: #353535;
    font-size: 15px;
    font-weight: 700;
    line-height: 20px;
}

.account-form .required {
    color: #e63241;
}

.account-form .iField,
.account-form .row .iField,
.auth-form .iField {
    width: 100%;
    height: 46px;
    padding: 0 13px;
    border: 1px solid #bdbdbd;
    border-radius: 5px;
    background: #fff;
    box-sizing: border-box;
    float: none;
    color: #303030;
    font-size: 16px;
    line-height: 44px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.account-form .iField:focus,
.auth-form .iField:focus,
.account-form .redactor_box:focus-within {
    border-color: #17749e;
    box-shadow: 0 0 0 3px rgba(23, 116, 158, .12);
    outline: none;
}

.account-form .iField::placeholder,
.auth-form .iField::placeholder {
    color: #999;
}

.field-help,
.field-meta,
.account-form .input-hint {
    color: #777;
    font-size: 13px;
    line-height: 18px;
}

.field-help {
    margin: 7px 0 0;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin: -3px 0 11px;
}

.field-meta .field-help {
    margin: 0;
}

.selection-count {
    color: #176b91;
    white-space: nowrap;
}

.account-form .ferror {
    min-height: 0;
    margin: 6px 0 0;
    color: #c02f3a;
    font-size: 13px;
    line-height: 17px;
}

.account-error-summary,
.account-alert {
    margin: 0 0 22px;
    padding: 16px 18px;
    border: 1px solid #e0a4a9;
    border-radius: 7px;
    background: #fff5f5;
    color: #7c252d;
    font-size: 14px;
    line-height: 20px;
}

.account-error-summary ul {
    margin: 8px 0 0 20px;
}

.account-alert p {
    margin: 5px 0 0;
}

.account-alert--success {
    border-color: #b7d69a;
    background: #f5faef;
    color: #416124;
}

.account-inline-note {
    margin: 0 0 26px;
    padding: 17px 18px;
    border-left: 4px solid #17749e;
    border-radius: 4px;
    background: #f2f8fb;
    color: #35515e;
    font-size: 14px;
    line-height: 20px;
}

.account-inline-note--success {
    border-left-color: #6d9c37;
    background: #f5faef;
    color: #416124;
}

.account-inline-note p {
    margin: 4px 0 0;
}

.account-primary-button.round-button {
    width: auto;
    min-width: 220px;
    padding: 0 25px;
    border-color: #e63241;
    background: #e63241;
    color: #fff;
    line-height: 44px;
}

.account-primary-button.round-button:hover {
    border-color: #c92f3d;
    background: #c92f3d;
}

/* VK identity gate for classified adverts and realty */
.account-verification-card {
    box-sizing: border-box;
    max-width: 690px;
    margin: 28px auto 64px;
    padding: 36px 38px;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 32px rgba(32, 55, 78, .08);
}

.account-verification-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: #0077ff;
    color: #fff;
    font: 700 18px/1 'PT Sans', sans-serif;
}

.account-verification-card h2 {
    margin: 0 0 16px;
    font: 700 30px/36px 'PT Serif', serif;
    color: #263746;
}

.account-verification-card p {
    max-width: 590px;
    margin: 0 0 12px;
    font: 400 16px/24px 'PT Sans', sans-serif;
    color: #526272;
}

.account-verification-card__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 26px;
}

.advert-vk-notice {
    position: relative;
    margin-bottom: 22px;
    padding-right: 160px;
}

.advert-vk-notice__link {
    position: absolute;
    top: 50%;
    right: 18px;
    transform: translateY(-50%);
    font-weight: 700;
}

@media (max-width: 700px) {
    .account-verification-card {
        margin: 16px 12px 40px;
        padding: 26px 22px;
    }

    .account-verification-card__actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .advert-vk-notice {
        padding-right: 18px;
    }

    .advert-vk-notice__link {
        position: static;
        display: inline-block;
        margin-top: 10px;
        transform: none;
    }
}

/* Registration */

.account-auth-page {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    gap: 24px;
    align-items: start;
    max-width: 980px;
    margin: 14px auto 64px;
}

.auth-card,
.auth-help-card,
.account-status-card {
    border: 1px solid #e3e3e3;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(25, 25, 25, .06);
}

.auth-card {
    padding: 34px 38px 36px;
}

.auth-card__header {
    margin-bottom: 26px;
}

.auth-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.auth-form__row .account-field {
    min-width: 0;
}

.auth-form .account-field > label:first-child {
    display: block;
    margin-bottom: 8px;
    color: #353535;
    font-size: 15px;
    font-weight: 700;
}

.auth-form .account-field > label span {
    color: #888;
    font-size: 12px;
    font-weight: 400;
}

.auth-captcha {
    margin: 0 0 23px;
}

.auth-form__actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.auth-form__actions p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.auth-social {
    margin-top: 30px;
    text-align: center;
}

.auth-social h2 {
    margin: 18px 0 4px;
    color: #444;
    font-size: 17px;
    font-weight: 700;
}

.auth-social > p {
    margin: 0 0 15px;
    color: #777;
    font-size: 13px;
}

.auth-social__divider {
    position: relative;
    height: 20px;
    color: #888;
    text-align: center;
}

.auth-social__divider:before {
    position: absolute;
    top: 10px;
    right: 0;
    left: 0;
    height: 1px;
    background: #e3e3e3;
    content: '';
}

.auth-social__divider span {
    position: relative;
    padding: 0 12px;
    background: #fff;
    font-size: 12px;
}

.auth-help-card {
    position: sticky;
    top: 20px;
    padding: 28px 26px;
}

.auth-help-card h2 {
    margin: 8px 0 24px;
    color: #333;
    font: 600 22px/29px 'PT Serif', serif;
}

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

.account-route li {
    position: relative;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 0 0 24px;
    left: auto;
}

.account-route li:not(:last-child):after {
    position: absolute;
    top: 29px;
    bottom: 3px;
    left: 14px;
    width: 1px;
    background: #d9d9d9;
    content: '';
}

.account-route li > span {
    position: relative;
    z-index: 1;
    display: flex;
    flex: 0 0 29px;
    align-items: center;
    justify-content: center;
    width: 29px;
    height: 29px;
    border: 1px solid #ccc;
    border-radius: 50%;
    background: #fff;
    color: #777;
    font-size: 12px;
    font-weight: 700;
}

.account-route li.is-current > span {
    border-color: #e63241;
    background: #e63241;
    color: #fff;
}

.account-route strong,
.account-route small {
    display: block;
}

.account-route strong {
    margin-top: 2px;
    color: #444;
    font-size: 15px;
    line-height: 18px;
}

.account-route small {
    margin-top: 2px;
    color: #888;
    font-size: 12px;
    line-height: 16px;
}

.auth-help-card__note {
    margin: 2px 0 0;
    padding: 14px;
    border-radius: 5px;
    background: #f5faef;
    color: #4f672f;
    font-size: 13px;
    line-height: 19px;
}

/* Vacancy form */

.vacancy-form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 252px;
    gap: 22px;
    align-items: start;
}

.vacancy-form-main {
    min-width: 0;
}

.vacancy-choice-field {
    min-width: 0;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
}

.vacancy-editor-form input.hidden:not([type="hidden"]) {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    opacity: 0;
}

.vacancy-choice-grid {
    display: block;
}

.vacancy-choice-grid > span {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.vacancy-choice-grid .ncheckbox {
    position: relative;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 10px 11px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    float: none;
    transition: border-color .15s ease, background-color .15s ease;
}

.vacancy-choice-grid .ncheckbox:hover {
    border-color: #a8bbc3;
    background: #f8fbfc;
}

.vacancy-choice-grid .ncheckbox.is-selected {
    border-color: #6d9c37;
    background: #f5faef;
}

.vacancy-choice-grid .ncheckbox.is-disabled {
    background: #f4f4f4;
    opacity: .55;
}

.vacancy-choice-grid .ncheckbox label {
    display: block;
    height: auto;
    min-height: 20px;
    color: #444;
    font-size: 14px;
    line-height: 20px;
}

.vacancy-choice-grid input:focus + label,
.employment-options .radio:focus-within,
.vacancy-consent input:focus + label {
    outline: 2px solid #17749e;
    outline-offset: 3px;
}

.employment-options {
    display: block;
}

.employment-options > span {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 180px));
    gap: 10px;
}

.employment-options .radio {
    position: relative;
    display: flex;
    align-items: center;
    width: auto;
    min-height: 52px;
    margin: 0;
    padding: 12px 13px 12px 46px;
    border: 1px solid #dedede;
    border-radius: 6px;
    background: #fff !important;
    box-sizing: border-box;
    float: none;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

.employment-options .radio.active,
.employment-options .radio.is-selected {
    border-color: #6d9c37;
    background: #f5faef !important;
}

.employment-options .radio:before {
    position: absolute;
    top: 50%;
    left: 15px;
    width: 18px;
    height: 18px;
    border: 2px solid #b8bec1;
    border-radius: 50%;
    background: #fff;
    box-sizing: border-box;
    content: '';
    transform: translateY(-50%);
}

.employment-options .radio.is-selected:before {
    border-color: #e63241;
}

.employment-options .radio.is-selected:after {
    position: absolute;
    top: 50%;
    left: 20px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e63241;
    content: '';
    transform: translateY(-50%);
}

.employment-options .radio input[type='radio'] {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    opacity: 0;
}

.employment-options .radio label {
    display: block;
    width: 100%;
    margin: 0;
    color: #444;
    cursor: pointer;
    font-size: 14px;
    line-height: 20px;
}

.work-format-options > span {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.vacancy-radio-help {
    margin: -3px 0 11px;
}

.salary-inputs {
    display: flex;
    gap: 10px;
    align-items: end;
    max-width: 500px;
}

.salary-inputs label {
    flex: 1;
    min-width: 0;
    color: #777;
    font-size: 13px;
}

.salary-inputs label > span {
    display: block;
    margin-bottom: 5px;
}

.account-form .salary-inputs .iField.price {
    width: 100%;
}

.salary-currency {
    padding-bottom: 11px;
    color: #555;
    font-size: 18px;
}

.vacancy-description-field #redactor_block,
.vacancy-description-field .redactor_box {
    width: 100%;
    box-sizing: border-box;
}

.vacancy-description-field .redactor_box {
    border-radius: 5px;
    overflow: hidden;
}

.vacancy-legal-note {
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #ead7b8;
    border-radius: 6px;
    background: #fffaf0;
    color: #62533e;
    font-size: 13px;
    line-height: 19px;
}

.vacancy-legal-note summary {
    cursor: pointer;
    color: #5d4a2e;
    font-weight: 700;
}

.vacancy-legal-note p {
    margin: 10px 0 0;
}

.vacancy-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}

.vacancy-contact-grid .account-field:last-child {
    grid-column: 1 / span 2;
}

.vacancy-consent {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    margin-top: 2px;
    padding: 14px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    background: #fafafa;
}

.vacancy-consent .vacancy-consent__input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    float: none;
}

.vacancy-consent > label {
    display: block;
    min-height: 20px;
    margin: 0;
    color: #444;
    font-size: 14px;
    line-height: 20px;
}

.vacancy-consent .ferror {
    grid-column: 2;
}

.vacancy-form-aside {
    position: sticky;
    top: 18px;
}

.vacancy-summary-card {
    padding: 22px 20px;
    border: 1px solid #ddd;
    border-radius: 9px;
    background: #f8fafb;
}

.vacancy-summary-card h2 {
    margin: 8px 0 8px;
    color: #333;
    font: 600 20px/26px 'PT Serif', serif;
}

.vacancy-summary-card > p {
    margin: 0;
    color: #666;
    font-size: 13px;
    line-height: 19px;
}

.vacancy-summary-card__company {
    margin: 13px 0 18px !important;
    padding-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.vacancy-summary-card__company strong {
    color: #333;
    font-size: 15px;
}

.vacancy-publication-offer {
    margin: 14px 0 13px;
    padding: 16px;
    border: 1px solid #c8dcb4;
    border-radius: 7px;
    background: #f3f9ed;
}

.vacancy-publication-offer span,
.vacancy-publication-offer small {
    display: block;
    color: #58713f;
    font-size: 12px;
    line-height: 17px;
}

.vacancy-publication-offer strong {
    display: block;
    margin: 3px 0;
    color: #334723;
    font: 700 29px/34px 'PT Serif', serif;
}

.vacancy-summary-list {
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
}

.vacancy-summary-list li {
    position: relative;
    margin: 0 0 10px;
    padding-left: 20px;
    left: auto;
    color: #626262;
    font-size: 12px;
    line-height: 17px;
}

.vacancy-summary-list li:before {
    position: absolute;
    top: 1px;
    left: 0;
    color: #6d9c37;
    font-weight: 700;
    content: '✓';
}

.vacancy-actions {
    position: sticky;
    z-index: 20;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    margin-top: 2px;
    padding: 17px 20px;
    border: 1px solid #dedede;
    border-radius: 8px 8px 0 0;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 -7px 20px rgba(0, 0, 0, .07);
}

.vacancy-actions > div {
    display: flex;
    gap: 17px;
    align-items: center;
}

.vacancy-actions > div > span {
    color: #888;
    font-size: 12px;
}

/* Company form and status */

.company-account-form .account-section .row {
    max-width: 660px;
}

.company-account-form .account-section .row .iField,
.company-account-form .account-section .row textarea.iField,
.company-account-form .account-section .row select.iField {
    width: 100%;
    max-width: 660px;
}

.company-account-form .account-section .row textarea.iField {
    min-height: 110px;
    padding: 10px 13px;
    line-height: 20px;
}

.company-account-form .input-hint {
    max-width: 660px;
    margin: 0 0 9px;
}

.company-account-form .row.buttons {
    display: flex;
    max-width: none;
    justify-content: flex-end;
    margin: 8px 0 0;
}

.account-status-card {
    max-width: 720px;
    padding: 34px 38px;
}

.account-status-card--compact {
    box-shadow: none;
}

.account-status-card--warning {
    border-color: #e7c7a5;
    background: #fffaf3;
}

.account-status-card h2 {
    margin: 0 0 8px;
    color: #333;
    font: 600 24px/31px 'PT Serif', serif;
}

.account-status-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 20px;
    align-items: center;
    margin-top: 25px;
}

@media all and (max-width: 1023px) {
    .account-form-page,
    .account-auth-page {
        padding-right: 16px;
        padding-left: 16px;
    }

    .vacancy-form-layout {
        grid-template-columns: minmax(0, 1fr) 230px;
    }
}

@media all and (max-width: 820px) {
    .account-auth-page,
    .vacancy-form-layout {
        grid-template-columns: 1fr;
    }

    .auth-help-card,
    .vacancy-form-aside {
        position: static;
    }

    .auth-help-card {
        grid-row: 1;
    }

    .vacancy-form-aside {
        grid-row: 1;
    }

    .vacancy-summary-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: 0 20px;
    }

    .vacancy-summary-card .account-eyebrow,
    .vacancy-summary-card__company {
        grid-column: 1 / span 2;
    }

    .vacancy-summary-list {
        margin-top: 8px;
    }
}

@media all and (max-width: 600px) {
    .personal-area-shell .top-head-bar.lk {
        display: block;
        border-radius: 0;
    }

    .account-form-header h1,
    .auth-card__header h1,
    .account-status-card h1 {
        font-size: 28px;
        line-height: 35px;
    }

    .account-flow {
        grid-template-columns: 1fr;
    }

    .account-flow li {
        min-height: 50px;
        padding: 9px 13px;
    }

    .account-section,
    .auth-card,
    .auth-help-card,
    .account-status-card {
        padding: 22px 18px;
        border-radius: 7px;
    }

    .account-section__heading {
        margin-bottom: 20px;
    }

    .auth-form__row,
    .vacancy-choice-grid > span,
    .vacancy-contact-grid,
    .vacancy-summary-card {
        grid-template-columns: 1fr;
    }

    .vacancy-contact-grid .account-field:last-child,
    .vacancy-summary-card .account-eyebrow,
    .vacancy-summary-card__company {
        grid-column: auto;
    }

    .employment-options > span {
        grid-template-columns: 1fr 1fr;
    }

    .work-format-options > span {
        grid-template-columns: 1fr;
    }

    .field-meta,
    .auth-form__actions,
    .vacancy-actions,
    .vacancy-actions > div {
        align-items: stretch;
        flex-direction: column;
    }

    .selection-count {
        white-space: normal;
    }

    .auth-form__actions .round-button,
    .vacancy-actions .round-button,
    .company-account-form .round-button {
        width: 100%;
    }

    .vacancy-actions {
        position: static;
        align-items: stretch;
        border-radius: 7px;
    }

    .vacancy-actions > div > span {
        display: none;
    }
}

@media all and (max-width: 380px) {
    .account-form-page,
    .account-auth-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .employment-options > span,
    .salary-inputs {
        display: grid;
        grid-template-columns: 1fr;
    }

    .salary-currency {
        display: none;
    }

    .auth-captcha {
        max-width: 100%;
        overflow: hidden;
    }

    .auth-captcha .g-recaptcha {
        transform: scale(.88);
        transform-origin: left top;
    }
}
