@charset "UTF-8";

/* SteelLand 2.0.7 — final authentication, modal and legacy-layout corrections. */

/* Header dialogs */
.modal,
.modal_auth,
.modal_search {
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.modal.sl-overlay-open,
.modal_auth.sl-overlay-open,
.modal_search.sl-overlay-open {
    display: flex !important;
}

.modal .layout,
.modal_auth .layout,
.modal_search .layout {
    display: contents;
    min-height: 0;
}

.modal .layout_inner,
.modal_auth .layout_inner,
.modal_search .layout_inner {
    position: relative;
    width: min(100%, 760px);
    max-height: calc(100vh - 48px);
    margin: 0;
    padding: clamp(22px, 4vw, 38px);
    overflow: auto;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(5, 18, 28, .32);
}

.modal_auth .layout_inner { width: min(100%, 520px); }
.modal_search .layout_inner { width: min(100%, 600px); }

.modal .header_content,
.modal_auth .header_content,
.modal_search .header_content {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 2;
    width: auto;
    margin: 0;
}

.close-link,
.close-link-auth,
.close-link-search { padding: 0; }

.close-link a,
.close-link-auth a,
.close-link-search a {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0;
    border: 1px solid rgba(255,255,255,.32);
    background: rgba(22, 36, 46, .72);
    box-shadow: 0 7px 22px rgba(0,0,0,.2);
}

.close-link .icon-close,
.close-link-auth .icon-close,
.close-link-search .icon-close {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    font-size: 0 !important;
}

.close-link .icon-close::before,
.close-link .icon-close::after,
.close-link-auth .icon-close::before,
.close-link-auth .icon-close::after,
.close-link-search .icon-close::before,
.close-link-search .icon-close::after {
    content: "";
    position: absolute;
    top: 11px;
    left: 1px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #fff;
}

.close-link .icon-close::before,
.close-link-auth .icon-close::before,
.close-link-search .icon-close::before { transform: rotate(45deg); }
.close-link .icon-close::after,
.close-link-auth .icon-close::after,
.close-link-search .icon-close::after { transform: rotate(-45deg); }

/* Login */
.sl-login-page {
    display: grid;
    justify-items: center;
    gap: 18px;
    min-height: 48vh;
}

.sl-login-card {
    width: min(100%, 480px);
    padding: clamp(20px, 4vw, 34px);
    border: 1px solid var(--sl-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--sl-shadow-md);
    font-family: var(--sl-font-ui);
    text-align: left;
}

.modal_auth .sl-login-card {
    width: 100%;
    padding: 0;
    border: 0;
    box-shadow: none;
}

.sl-login-card__header h2 {
    margin: 0 0 6px;
    font-size: clamp(23px, 3vw, 30px);
}

.sl-login-card__header p {
    margin: 0 0 22px;
    color: var(--sl-text-soft);
    font-size: 14px;
}

.sl-login-form {
    display: grid;
    gap: 14px;
}

.sl-login-field {
    display: grid;
    gap: 7px;
    color: var(--sl-heading);
    font-size: 13px;
    font-weight: 600;
}

.sl-login-field input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--sl-border-strong);
    border-radius: 10px;
    color: var(--sl-text);
    background: #fff;
    font-size: 16px;
}

.sl-login-field input:focus {
    border-color: var(--sl-primary);
    outline: 3px solid rgba(40,120,173,.14);
}

.sl-login-submit {
    width: 100%;
    min-height: 48px;
    margin: 4px 0 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, var(--sl-primary), var(--sl-primary-dark));
    font-weight: 700;
}

.sl-login-links {
    display: flex;
    justify-content: center;
    gap: 10px 18px;
    flex-wrap: wrap;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--sl-border);
}

.sl-login-links a { font-size: 14px; font-weight: 600; }

.sl-login-page__note {
    width: min(100%, 680px);
    padding: 15px 18px;
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    color: var(--sl-text-soft);
    background: var(--sl-surface-soft);
    font-family: var(--sl-font-ui);
    font-size: 14px;
    text-align: center;
}

.sl-form-message {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 9px;
    font-size: 14px;
}
.sl-form-message--error {
    border: 1px solid #efb5b5;
    color: #812828;
    background: #fff2f2;
}

/* Header search */
.modal_search .search-container,
.modal_search .search-form,
.modal_search form { width: 100%; }

.modal_search form {
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    gap: 10px;
    align-items: center;
}

.modal_search .s_input_head {
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 15px;
    border: 1px solid var(--sl-border-strong);
    border-radius: 10px;
    color: var(--sl-text);
    background: #fff;
    font-size: 17px;
}

.modal_search .s_button_head {
    min-width: 105px;
    min-height: 50px;
    margin: 0;
    border: 0;
    border-radius: 10px;
    color: #fff;
    background: var(--sl-primary);
    font-weight: 700;
}

/* Sidebar search fields */
form[name="search_form"],
form[name="search_form_help"] { position: relative; }

form[name="search_form"] .searchinput,
form[name="search_form_help"] .searchinput {
    width: 100%;
    min-height: 44px;
    padding: 10px 48px 10px 12px;
    border: 1px solid var(--sl-border-strong);
    border-radius: 9px;
    color: var(--sl-text);
    background: #fff;
}

form[name="search_form"] input.searchbutton,
form[name="search_form_help"] input.searchbutton {
    position: absolute;
    top: 0;
    right: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0 9px 9px 0;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
}

form[name="search_form_help"] label,
.catalog-search__all {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-family: var(--sl-font-ui);
    font-size: 14px;
    font-weight: 500;
}

form[name="search_form_help"] input[type="checkbox"],
.catalog-search__all input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* City alphabet */
.town-groups {
    grid-template-columns: repeat(auto-fit, minmax(64px, 1fr));
    gap: 10px;
}

.town-groups .sub > button {
    min-height: 48px;
    justify-content: center;
    padding: 10px;
    border: 1px solid #2678ad;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(180deg, #3994ca, #176694);
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(27, 104, 150, .14);
}

.town-groups .sub > ul {
    position: absolute;
    z-index: 20;
    width: min(320px, calc(100vw - 32px));
    max-height: 340px;
    margin-top: 7px;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--sl-shadow-md);
    list-style: none;
}

.town-groups .sub { position: relative; }
.town-groups .sub > ul a {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 9px;
    border-radius: 7px;
}

/* Catalogue root */
.page-cat-root .content {
    display: grid;
    grid-template-columns: minmax(250px, 310px) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
    max-width: 1240px;
    margin-inline: auto;
}

.page-cat-root .left,
.page-cat-root .center,
.page-cat-root .right {
    float: none;
    width: auto;
    margin: 0;
}

.page-cat-root .center { text-align: left; }
.page-cat-root .right { display: none !important; }

.page-cat-root .center > .coll { width: 100%; }
.page-cat-root .center .margin_left_10:has(.main_cat) {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-left: 0;
}
.page-cat-root .center .margin_left_10:has(.main_cat) > .sub_head,
.page-cat-root .center .margin_left_10:has(.main_cat) > .lil_line {
    grid-column: 1 / -1;
}
.page-cat-root .main_cat {
    float: none !important;
    width: auto !important;
    min-height: 170px;
    margin: 0 !important;
    padding: 14px 10px;
    border: 1px solid var(--sl-border);
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--sl-shadow-sm);
}
.page-cat-root .main_cat img {
    width: 74px;
    height: 58px;
    object-fit: contain;
}
.page-cat-root .cat_vip {
    display: block;
    min-height: 40px;
    margin: -14px -10px 12px;
    padding: 8px;
    color: #fff;
    background: var(--sl-primary);
    font-size: 12px;
    line-height: 1.2;
}

/* Vacancy detail */
.page-job-detail main.center,
.page-job-detail .main_font,
.page-job-detail .brief,
.page-job-detail h1,
.page-job-detail h2 { text-align: left !important; }
.page-job-detail main.center > .coll > table,
.page-job-detail main.center .bg_light_green {
    border: 1px solid var(--sl-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--sl-shadow-sm);
}
.page-job-detail main.center .main_font { line-height: 1.65; }

/* Sidebar lead story contrast */
.top_side_news img { border-radius: 8px; }
.top_side_news h2 a,
.top_side_news h3 a { color: var(--sl-primary-dark) !important; }
.top_side_news .date { color: var(--sl-text-soft); }

/* Remove obsolete fixed empty heights inside modern dialogs. */
.modal_auth .h50,
.modal_search .h50 { display: none; }

@media (max-width: 980px) {
    .page-cat-root .content { grid-template-columns: minmax(0,1fr); }
    .page-cat-root .left { display: none; }
    .page-cat-root .center .margin_left_10:has(.main_cat) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .modal,
    .modal_auth,
    .modal_search { padding: 12px; }
    .modal .layout_inner,
    .modal_auth .layout_inner,
    .modal_search .layout_inner {
        max-height: calc(100vh - 24px);
        padding: 20px 16px;
        border-radius: 14px;
    }
    .modal .header_content,
    .modal_auth .header_content,
    .modal_search .header_content { top: 8px; right: 8px; }
    .close-link a,
    .close-link-auth a,
    .close-link-search a { width: 42px; height: 42px; }
    .modal_search form { grid-template-columns: minmax(0,1fr); }
    .modal_search .s_button_head { width: 100%; }
    .page-cat-root .center .margin_left_10:has(.main_cat) { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .town-groups { grid-template-columns: repeat(4,minmax(0,1fr)); }
}

@media (max-width: 420px) {
    .page-cat-root .center .margin_left_10:has(.main_cat) { grid-template-columns: minmax(0,1fr); }
    .town-groups { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sl-login-links { flex-direction: column; align-items: stretch; text-align: center; }
}

/* Unified compact search controls. */
.sl-inline-search {
    display: grid;
    grid-template-columns: minmax(0,1fr) 44px;
    align-items: stretch;
    width: 100%;
}
.sl-inline-search input[type="search"] {
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--sl-border-strong);
    border-right: 0;
    border-radius: 9px 0 0 9px;
    color: var(--sl-text);
    background: #fff;
}
.sl-search-submit {
    display: grid;
    width: 44px;
    min-width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    place-items: center;
    border: 1px solid var(--sl-border-strong);
    border-left: 0;
    border-radius: 0 9px 9px 0;
    color: var(--sl-primary-dark);
    background: #fff;
}
.sl-search-submit:hover { color: #fff; background: var(--sl-primary); }
.sl-help-search { display: grid; gap: 10px; }
.sl-search-scope {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-family: var(--sl-font-ui);
    font-size: 13px;
    font-weight: 500;
}
.sl-search-scope input { width: 18px; height: 18px; margin: 0; }

/* Popular-news lead card: guaranteed contrast on every image. */
.pop_news .top_img { border-radius: 10px; background: #182431; }
.pop_news .top_img > img { display: block; min-height: 160px; object-fit: cover; }
.pop_news .pops {
    padding: 48px 10px 12px;
    background: linear-gradient(0deg, rgba(6,16,24,.96) 0%, rgba(6,16,24,.78) 55%, rgba(6,16,24,0) 100%);
}
.pop_news .pops table { width: 100%; border: 0 !important; background: transparent !important; }
.pop_news .pops td { border: 0 !important; background: transparent !important; }
.pop_news .pops a { color: #fff !important; text-shadow: 0 1px 2px rgba(0,0,0,.8); }
.pop_news .pops .main_zagfont { font-size: 16px; line-height: 1.25; }


/* Final 2.0.7 alignment refinements. */
.page-cat-root .center,
.page-job-detail main.center { min-width: 0; }
.page-cat-root .center > * { max-width: 100%; }
.modal_search .search-form { margin: 0; padding: 0; }
.modal_search .layout_inner { min-height: 0 !important; }
.modal_auth .auth { width: 100%; }
.modal_auth .sl-login-card__header { padding-right: 42px; }
.page-job-detail .center .main_font p,
.page-job-detail .center .main_font li { text-align: left !important; }
.page-job-detail .center .main_font { max-width: 760px; margin-inline: auto; }
