ins.adsbygoogle[data-ad-status="unfilled"] {
    display: none !important;
}


@font-face {
    font-display: swap;              /* Текст сразу показывается системным шрифтом, затем заменяется */
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2');
    font-weight: 400;                 /* Normal (Regular) */
    font-style: normal;
}

/* Подключение Montserrat Bold */

@font-face {
    font-display: swap;
    font-family: 'OpenSans';
    src: url('../fonts/OpenSans-Bold.woff2') format('woff2');
    font-weight: 700;                 /* Bold */
    font-style: normal;
}


.em-prot::before { content: "info";
}

.em-prot::after { content: "@jobnes.com";
}


html {
  position: relative;
  min-height: 100%;
  overflow-x: hidden;
}


body {
    margin: 0;
    font-family: 'OpenSans', Arial, Helvetica, sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #000;
    line-height: 1.5;
    min-width: 320px;
    margin-bottom: 40px;
    overflow-x: hidden;
}


input, textarea, select, button {
    font-family: inherit;
}


a img {
    border:none;
}


a {
    color:#3D5A80;
}


a:hover {
    color:#334D70;
}


.content_wrapper {
    max-width: 990px;
    padding: 0 10px;
    margin: 0 auto;
    box-sizing: border-box;
}


.content_wrapper h1 {
    font-size: 20px;
    font-weight: 900;
    line-height: 1.2;
    margin: 15px 10px 10px;
}


/*breadcrumbs*/


.breadcrumbs {
    margin: 16px 10px 10px;
    color: #999;
    font-size: 14px;
}


.breadcrumbs ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px;
}


.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}


.breadcrumbs li a,
.breadcrumbs li span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 300px;
    display: block;
    padding: 0 3px;
    color: #3D5A80;
    text-decoration: none;
}

.breadcrumbs li span {
    color: #757575;
}

.breadcrumbs li a:hover {
    color: #334D70;
    text-decoration: underline;
}

.breadcrumbs li:first-child span {
    padding: 0;
}


.breadcrumbs li:before {
    content: "\203A";
    color: #ccc;
    font-size: 16px;
    line-height: 1;
    padding: 0 1px;
}


.breadcrumbs li:first-child:before {
    content: '';
    padding: 0;
}

/*first_screen*/


.first_screen {
    background-color: #3D5A80;
    position:relative;
}


.search_top {
    position: absolute;
    top: 10px;
    right: 15px;
    width: 46px;
    height: 46px;
    display: none;
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}


.mainpage .first_screen {
    background:
        linear-gradient(rgba(61, 90, 128, 0.45), rgba(61, 90, 128, 0.95)),
        url(../img/logo-main.avif) no-repeat center;
    background-size: cover;
}


.first_screen .first_screen_container {
    padding: 10px 15px;
    max-width: 960px;
    margin: 0 auto;
}


.mainpage .first_screen .first_screen_container {
    padding: 30px 15px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}


.first_screen .logo {
    float: left;
    margin: 14px 0px;
    display: block;
    text-transform: uppercase;
}


.first_screen .logo img {
    height: 50px;
    width: auto;
}

.mainpage .first_screen .logo img {
    display: block;
    margin: 0 auto;
}

body:not(.mainpage) .first_screen .logo img {
    display: block;
    margin: 0;
}


.mainpage .first_screen .logo img {
    height: 80px;
}


.first_screen .logo:visited img,
.first_screen .logo:hover img,
.first_screen .logo:active img,
.first_screen .logo:focus img {
}


.mainpage .first_screen .logo {
    margin: 0 auto 10px;
    float: none;
    text-align: center;
    font-size: 60px;
}


/*search_form*/


.search_form {
    border-radius: 20px;
    margin-left: 190px;
}


.mainpage .search_form {
    margin:0;
    background: #3D5A80;
    padding: 20px 20px 15px;
}


.mainpage .search_form.active {
    padding:20px;
}


.search_form form {
    display: flex;
    overflow: hidden;
    max-height: 50px;
}


.search_form .inputs_wrapper {
    overflow: hidden;
    display: flex;
}


.search_form input {
    border: none;
    padding: 0 15px;
    outline: none;
    font-size: 16px;
    height: 50px;
    box-sizing: border-box;
}


.search_form .search_word {
    border-radius: 10px 0 0 10px;
    overflow: hidden;
    flex: 1;
}


.search_form .search_word input {
    width:100%;
    background: #fff;
}


.mainpage .search_form .search_word input {
    background: #efefef;
}


.search_form .search_city {
    border-radius: 0 10px 10px 0;
    width: 240px;
    overflow: hidden;
    position: relative;
}


.search_form .search_city input {
    padding-left: 40px;
    box-sizing: border-box;
    background-color: #e2e2e2;
    width: 100%;
}


.search_form .search_city:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    top: 15px;
    left: 12px;
    background-color: #888;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}


.search_form .search_button {
    width: 140px;
    border: none;
    background: #fff;
    color: #000;
    font-size: 17px;
    font-weight: 700;
    outline: none;
    cursor: pointer;
    border-radius: 50px;
    height: 50px;
    line-height: 50px;
}


.search_form .form_wr {
    flex: 1;
    padding-right: 0;
}


.search_form .search_button:hover {
    background: #e2e2e2;
}


.search_form .search_button:active {
    background: #e2e2e2;
}


.search_bottomline {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}


.search_form .examples {
    font-size: 13px;
    color: #fff;
    line-height: 1;
}


.search_form .examples a {
    color: #fff;
}


.mainpage .search_form .examples,
.mainpage .search_form .examples a {
    color: #fff;
}


.search_form .extended_search_button {
    font-size: 15px;
    letter-spacing: 0.5px;
    cursor: pointer;
    line-height: 1;
    color: #fff;
}


.search_form .extended_search_button:hover {
    color: #e2e2e2;
}


.mainpage .search_form .extended_search_button {
    color:#fff;
}


.mainpage .search_form .extended_search_button:hover {
    color: #e2e2e2;
}


.search_form .selects_wrapper {
    margin: 10px -5px 0;
    display: flex;
}


.mainpage .search_form .selects_wrapper {
    margin-top: 15px;
}


.select {
    position: relative;
    width: 50%;
    box-sizing: border-box;
    padding: 0 5px;
    white-space: nowrap;
}


.select .select_field {
    border-radius: 10px;
    background: #fff;
    line-height: 50px;
    padding: 0 15px;
    box-sizing: border-box;
    position: relative;
    cursor: default;
    font-size: 16px;
    text-align: left;
}


.mainpage .select .select_field {
    background: #efefef;
}


.select .select_field:before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    top: 17px;
    right: 9px;
    background-color: #888;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}


.select ul {
    padding: 10px 5px;
    margin: 0;
    list-style: none;
    border-top: none;
    background: #fff;
    position: absolute;
    width: calc(100% - 10px);
    box-sizing: border-box;
    top: 50px;
    left: 5px;
    display: none;
    z-index: 2;
    text-align: left;
    box-shadow: 0 3px 5px #00000030;
    border-radius: 0 0 10px 10px;
}


.select ul li {
    border-radius: 2px;
    line-height: 40px;
    padding: 0 10px;
    cursor: default;
}


.select ul li:hover {
    background: #efefef;
}


.select.active .select_field {
    background: #e2e2e2;
    border-radius: 10px 10px 0 0;
}


.select.active .select_field:before {
    background-position: -9px -114px;
}


.select.active ul {
    display:block;
}
/*animation*/


.search_form.active form {
    max-height: 115px;
    overflow: inherit;
    transition: all 0.2s linear 0s;
}


.search_form.active .search_bottomline {
    display:none;
}


.search_form.end_anim,
.search_form.end_anim .form_wr {
    overflow: inherit;
}

/*link*/


.link {
    text-transform: uppercase;
    text-decoration: none;
    color: #3D5A80;
    display: block;
    width: fit-content;
    text-align: center;
    padding: 12px 28px;
    box-sizing: border-box;
    background: transparent;
    border: 2px solid #3D5A80;
    border-radius: 30px;
    margin: 30px auto 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: background 0.2s, color 0.2s;
}


.link:hover {
    background: #3D5A80;
    color: #fff;
}


.link:active {
    background: #334D70;
    border-color: #334D70;
    color: #fff;
}


/*filters*/


.filters {
    margin:35px auto 40px;
    overflow: hidden;
}


.mainpage .filters {
    max-width:1030px;
}


.caption {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
    line-height: 1;
}

hr + .caption {
    margin-top: 28px;
}


.filters .filters_wrapper {
    margin: 0 -40px;
    overflow: hidden;
    display: flex;
    flex-wrap: wrap;
    padding: 0 10px;
}


.filters .filter {
    width: 33.3333%;
    overflow: hidden;
    padding: 4px 36px;
    color: #000;
    box-sizing: border-box;
}


.filters .name {
    float: left;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    width: 75%;
}

.filters .city .name {
    font-weight: bold;
}

/* Сворачиваемый блок регионов на главной страны */
.regions-collapsible:not(.expanded) .filter:nth-child(n+22) {
    display: none;
}
@media screen and (max-width: 1365px) {
    .regions-collapsible:not(.expanded) .filter:nth-child(n+15) {
        display: none;
    }
}
@media screen and (max-width: 639px) {
    .regions-collapsible:not(.expanded) .filter:nth-child(n+8) {
        display: none;
    }
}

.regions-toggle {
    display: block;
    margin: 12px auto 0;
    background: none;
    border: none;
    color: #3D5A80;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 12px;
    text-decoration: underline;
    text-underline-offset: 2px;
}


.filters .filter:hover .name {
    color: #3D5A80;
    text-decoration: none;
}


.filters .count {
    color: #707070;
    float: right;
    font-size: 13px;
    background: #f7f7f7;
    padding: 4px 10px;
    border-radius: 30px;
}


.filters .logo {
    width: 25%;
    padding: 0 10px;
    box-sizing: border-box;
}


.filters .logo .image {
    box-sizing: border-box;
    padding: 20px;
    display: block;
    height: 100px;
    overflow: hidden;
    text-decoration: none;
}


.filters .logo .title {
    text-align: center;
    color: #000;
    height: 38px;
    overflow: hidden;
    margin: 10px 10px 0;
}


.filters .logo .title span {
    display: inline-block;
    vertical-align: middle;
}


.filters .logo .title:before {
    display: inline-block;
    vertical-align: middle;
    height: 38px;
}


.filters .logo .image_container {
    background-image: url(../img/no-logo.svg);
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    height: 100%;
}


.employers .filters .logo .image:hover,
.filters .logo .image:hover {
    border: 2px solid #ffffff;
    opacity: 0.7;
}


.filters.companies .caption {
    margin: 0 0 10px;
}


.companies .filters_wrapper {
    margin:0 -10px;
}


.employers .filters {
    padding:0;
    max-width: none;
}


.employers .filters .logo {
    margin-bottom: 20px;
}


.employers .filters .logo .image {
    padding: 0px;
    height: auto;
    background: #f7f7f7;
    border-radius: 10px;
}


.employers .filters .logo .image_container {
    height: 100px;
    margin: 10px;
}

/*footer*/


.footer {
    background: #3D5A80;
    overflow: hidden;
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #fff;
}


.footer .content_wrapper {
    display: flex;
    justify-content: center;
    padding: 6px 15px;
    font-size: 14px;
}

.footer-line {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.footer-sep {
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    align-items: center;
    gap: 8px;
}

/*vacancies_page*/


.vacancies_count {
    margin: 4px 10px 16px;
    color: #757575;
    font-size: 13px;
}


.one_vacancy {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    margin-bottom: 10px;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.one_vacancy:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.09);
    border-color: #d0d0d0;
}


.rec {
    /* border-top: 1px solid #e1e1e1; */
    overflow: hidden;
}


.one_vacancy:first-child {
    border-top: 1px solid #e8e8e8;
}

.one_vacancy.bigvacancy .long_description {
    position:relative;
    transition:all 1s linear;
    background:white;
}

.one_vacancy.bigvacancy .showbigvacancy {
    width: 100%;
    margin-top: 0;
    background: white;
    cursor: pointer;
    display:block;
}


.one_vacancy_container {
    padding: 18px 20px;
    text-decoration: none;
    overflow: hidden;
    display: block;
    color: #000;
}


.reccont {
    padding: 0px 0 0px;
    text-decoration: none;
    overflow: hidden;
    display: block;
    color:#000;
}

/* с выделением рекламного блока

.one_vacancy_container:hover, .reccont:hover {
    background: #fbfbfb;
    color:#000;
}
*/


.one_vacancy_topline {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.one_vacancy_topline h2 {
    padding-right: 36px;
}


.one_vacancy h2 {
    font-weight: 600;
    font-size: 17px;
    line-height: 1.3;
    color: #3D5A80;
    margin: 0 0 6px;
}

.one_vacancy h2 a {
    text-decoration: none;
    color: inherit;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.one_vacancy .salary {
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
    position: relative;
    white-space: nowrap;
    display: inline-block;
    margin: 2px 0 0;
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 6px;
}


.one_vacancy.bigvacancy .salary {
    float:none;
}


.one_vacancy .salary.rub,
.one_vacancy .salary.has-currency {
    padding-right: 28px;
}

.one_vacancy .salary.rub:before,
.one_vacancy .salary.has-currency:before {
    content: var(--currency-symbol, " \20BD");
    display: inline;
    position: absolute;
    top: 3px;
    right: 8px;
    width: 16px;
    height: 22px;
}


.one_vacancy .company_city {
    display: flex;
    margin: 4px 0 10px;
    flex-wrap: wrap;
    gap: 4px 0;
}


.one_vacancy .company_city div {
    float: left;
    font-size: 14px;
    position: relative;
    line-height: 20px;
    color: #757575;
}


.one_vacancy .company_city .company {
    margin-right: 20px;
    padding-left: 30px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: calc(100% - 30px);
}


.one_vacancy .company_city .city {
    padding-left: 22px;
}


.one_vacancy .company_city .icon {
    width: 14px;
    height: 14px;
    display: inline-block;
    position: absolute;
    top: 3px;
    left: 0;
    background-color: #aaa;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}


.one_vacancy .company_city .city .icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}


.one_vacancy .company_city .company .icon {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18v-2H3v2zm0-4h18v-2H3v2zm2-4h14v-2H5v2zm0-4h14V7H5v2zm0-4h14V3H5v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18v-2H3v2zm0-4h18v-2H3v2zm2-4h14v-2H5v2zm0-4h14V7H5v2zm0-4h14V3H5v2z'/%3E%3C/svg%3E");
}


.one_vacancy .time {
    font-size: 13px;
    margin-top: 10px;
    color: #757575;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
}

.one_vacancy .time .time-source {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
}

/*pagination*/


.pagination {
    text-align: center;
}


.pagination ul {
    list-style: none;
    font-size:30px;
    font-weight: bold;
    display: inline-block;
    padding: 0 70px;
    margin: 0;
    position: relative;
}


.pagination li,
.pagination .arrows div {
    display: inline-block;
    border-radius: 49%;
    vertical-align: middle;
    margin: 5px 6px;
    z-index: 10;
    position: relative;
}


.pagination .arrows {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    margin: 0;
    z-index: 0;
}


.pagination li a {
    color: #000;
    text-decoration:none;
}


.pagination li a:hover {
    color: #006aff;
}


.pagination .prev {
    float: left;
}


.pagination .next {
    float: right;
}


.pagination .current {
    background-color:#006aff;
    line-height: 44px;
    padding: 0 14px;
    color: #fff;
}


.pagination .prev a,
.pagination .next a {
    line-height: 44px;
    padding: 0 22px;
}


.pagination .prev:hover,
.pagination .next:hover {
    background-color:#eee;
}

/*vacancy_page*/

/* Серый фон страницы вакансии */
.vacancy_page {
    padding-bottom: 20px;
}

/* ===== Шапка-карточка ===== */

.vcard {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 10px;
    background: #fff;
}

.vcard-top {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    margin-bottom: 12px;
}

.vcard .vcard-title {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    flex: 1;
}

.vcard-salary {
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    display: inline-block;
    background: #f0f4f8;
    padding: 3px 10px;
    border-radius: 6px;
}

.vcard-salary.rub::after,
.vcard-salary.has-currency::after {
    content: var(--currency-symbol, " \20BD");
    display: inline;
}

.vcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 14px;
    color: #555;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    align-items: center;
}

.vcard-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.vcard-meta-item a,
.vacancy-city-link {
    color: #3D5A80;
    text-decoration: none;
}

.vcard-meta-source {
    margin-left: auto;
    font-size: 13px;
    color: #757575;
}

.vcard-source-name {
    color: #757575;
}

.vcard-meta-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    background-color: #999;
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.vcard-meta-icon--company {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18v-2H3v2zm0-4h18v-2H3v2zm2-4h14v-2H5v2zm0-4h14V7H5v2zm0-4h14V3H5v2z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 21h18v-2H3v2zm0-4h18v-2H3v2zm2-4h14v-2H5v2zm0-4h14V7H5v2zm0-4h14V3H5v2z'/%3E%3C/svg%3E");
}

.vcard-meta-icon--city {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z'/%3E%3C/svg%3E");
}

/* ===== Описание-карточка ===== */

.vdesc {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 10px;
    background: #fff;
}

.vdesc-title {
    font-size: 16px;
    font-weight: 700;
    color: #222;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.vdesc-body {
    font-size: 15px;
    line-height: 1.7;
    color: #333;
}

.vdesc-body p { margin: 0 0 10px; }
.vdesc-body ul, .vdesc-body ol { padding-left: 20px; margin: 0 0 10px; }
.vdesc-body li { margin-bottom: 4px; }

/* ===== Контакты-карточка ===== */

.vcontact {
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.vcontact-text {
    font-size: 14px;
    color: #757575;
}

.btn-contact {
    display: inline-block;
    padding: 10px 24px;
    color: #3D5A80;
    border: 2px solid #3D5A80;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    background: transparent;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.btn-contact:hover {
    background: #3D5A80;
    color: #fff;
}

/* ===== Остальное ===== */

.long_description {
    font-size: inherit;
    line-height: 1.7;
}

.gotovac {
    margin: 20px auto;
    float: none;
    width: 310px;
    background: transparent;
    color: #3D5A80;
    border: 2px solid #3D5A80;
    transition: background 0.2s, color 0.2s;
}

.gotovac:hover {
    background: #3D5A80;
    color: #fff;
}

.positions {
    margin-top: 20px;
    max-height: 0px;
    overflow:hidden;
}

.positions a {
    font-size: 14px;
    color: #757575;
    padding-right: 10px;
    line-height: 20px;
    display: inline-block;
}


.open_positions {
    font-size: 16px;
    font-weight: bold;
    margin: 0 auto;
    display: block;
    text-align: center;
    /* max-width: 300px; */
}


/*articles*/


.article_forblog {
    overflow: hidden;
    position: relative;
    margin-bottom: 60px;
}


.article_forblog .image,.article_forblog .text img {
    max-width: 300px;
    display: block;
    float: left;
    margin-right: 30px;
    font-size: 0;
    height:auto;
    border-radius: 10px;
}


.article_forblog .image img {
    width:100%;
}


.article_forblog .readmore {
    position: absolute;
    bottom: 0;
    right: 0;
}


.article img {
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    display: block;
}


.article .text {
    border-bottom: 1px solid #ddd;
    padding-bottom: 40px;
}

/*last_articles*/


.caption-small {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 24px;
    text-align: center;
}


.last_articles .article-caption {
    color: #000;
    font-size: 16px;
    line-height: 1.3;
    font-weight: 700;
    text-align: left;
    margin: 0 0 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}


.last_articles {
    display: flex;
    flex-wrap: wrap;
    margin: 0 10px;
}


.last_articles a {
    text-decoration:none;
}


.last_articles .article {
    width: 33.3333%;
    padding: 0 20px 10px;
    box-sizing: border-box;
    position: relative;
}


.last_articles .text {
    margin: 0 0 5px;
    color: #555;
    border: none;
    padding: 0;
    text-align: left;
}


.last_articles .link {
    display: inline-block;
    width: auto;
    margin-top: 12px;
    position: static;
    font-size: 13px;
    padding: 6px 16px;
    text-transform: none;
    letter-spacing: 0;
}


.last_articles img {
    margin-bottom: 15px;
    border-radius: 10px;
}


.similar_vacancies .one_vacancy h2 a {
    text-decoration:none;
}


.similar_vacancies .one_vacancy:first-child {
    border-top:none;
}


/*media_queries*/


/* ========== MEDIA QUERIES ========== */

/* Для экранов шириной до 1365px (включены старые 1365, 1279, 1023) */

@media screen and (max-width: 1365px) {
    .content_wrapper {
        max-width: 980px;
}

    .search_bottomline {
        margin-top: 4px;
}

    .search_form .extended_search_button {
        font-size: 14px;
}

    .first_screen .first_screen_container {
        padding: 7px 15px;
}

    /* стили из @media (max-width:1279px) */
    .sticky {
        display: none;
}

    /* стили из @media (max-width:1023px) */
    .filters .filter {
        width: 50%;
}

    .first_screen .logo {
        float: none;
        margin: 0 0 20px;
        text-align: left;
}

    .first_screen.active .first_screen_container {
        height: auto;
        overflow: inherit;
}

    .first_screen.active .search_top {
        display: none;
}

    .mainpage .search_top {
        display: none;
}

    .last_articles {
        margin: 10px 10px 0;
}

    .last_articles .article {
        padding: 20px 10px 60px;
}

    .last_articles .link {
        width: calc(100% - 20px);
}

    .filters .logo {
        width: 33.3333%;
}

    .mainpage .filters .logo {
        width: 25%;
}

    .pagination ul {
        padding: 0;
}

    .pagination .arrows {
        position: inherit;
        display: block;
}

    .pagination .prev,
    .pagination .next {
        float: none;
}

    .search_top {
        display: block;
}

    body:not(.mainpage) .first_screen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
}
    body:not(.mainpage) .first_screen.header-hidden {
        transform: translateY(-100%);
}

    body:not(.mainpage) .first_screen .first_screen_container {
        box-sizing: border-box;
        max-height: 68px;
        padding: 9px 75px 9px 15px;
}

    body:not(.mainpage) .first_screen .logo {
        width: fit-content;
}

    body:not(.mainpage) .first_screen.active .first_screen_container {
        max-height: 400px;
        overflow: visible;
        box-sizing: border-box;
        padding: 9px 15px;
}

    body:not(.mainpage) .first_screen.active .search_top {
        display: block;
        top: 6px;
        -webkit-transform: none;
        transform: none;
}

    body:not(.mainpage) #main-content {
        padding-top: 68px;
}

    body:not(.mainpage) .search_top {
        width: 56px;
        height: 56px;
        top: 6px;
        -webkit-transform: none;
        transform: none;
        -webkit-mask-size: 36px 36px;
        mask-size: 36px 36px;
}

    .search_form {
        margin: 0 auto;
}

    .first_screen .first_screen_container {
        max-height: 60px;
        overflow: hidden;
        transition: max-height 0.25s ease, padding-right 0.25s ease;
}

    .mainpage .first_screen .first_screen_container {
        height: auto;
        overflow: inherit;
        max-height: none;
}

    /* salary chip + column layout moved to base rules */
}

/* Для экранов шириной до 767px */

@media screen and (max-width: 767px) {
    .mainpage .filters .logo,
    .filters .logo {
        width: 50%;
}

    .vacancy_page .link {
        width: 100%;
        max-width: 360px;
}

    .last_articles .article {
        width: 100%;
}

    .article_forblog .image,
    .last_articles .image {
        float: none;
        width: 100%;
        max-width: 400px;
        display: block;
}

    .last_articles .article-caption {
        text-align: left;
}

    .last_articles .text img {
        max-width: 300px;
        display: block;
        float: left;
        margin-right: 30px;
        font-size: 0;
        height: auto;
}

    .article_forblog .readmore {
        width: 240px;
        float: right;
        position: static;
        margin-top: 40px;
}

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

    .last_articles .article {
        padding-bottom: 20px;
}

    .last_articles .link {
        width: 240px;
        float: right;
        position: static;
        margin-top: 40px;
}

    .caption-small {
        margin-bottom: 5px;
}

    .search_form .search_button {
        width: 140px;
}

    .search_form .search_city {
        width: 210px;
}

    .filters .logo .image {
        padding: 23px;
}
}

/* Для экранов шириной до 639px */

@media screen and (max-width: 639px) {
    .mainpage .search_form {
        max-width: 300px;
        margin: 0 auto;
}

    .filters .filter {
        width: 100%;
        max-width: 420px;
}

    .filters.cities .filters_wrapper,
    .filters.branches .filters_wrapper {
        justify-content: center;
}

    .filters .link {
        /* width: 100%; */
        max-width: 360px;
        min-width: 0;
}

    .employers .filters .logo {
        width: 100%;
}

    .search_form {
        margin-bottom: 10px;
}

    .mainpage .search_form {
        margin-bottom: 0;
}

    .search_bottomline {
        display: none;
}

    .search_form form {
        flex-direction: column;
        max-height: none;
        overflow: inherit;
}

    .search_form .form_wr {
        padding: 0;
        display: flex;
        flex-direction: column;
}

    .search_form .inputs_wrapper {
        flex-direction: column;
}

    .search_form .selects_wrapper {
        flex-direction: column;
        margin: 20px 0 10px;
}

    .search_form .search_word {
        border-radius: 10px;
        margin-bottom: 10px;
}

    .search_form .search_city {
        width: 100%;
        border-radius: 10px;
}

    .select {
        width: 100%;
        padding: 0;
        margin-bottom: 10px;
}

    .search_form .search_button {
        width: 100%;
        height: 60px;
        line-height: 60px;
}

    .search_form.active form {
        max-height: none;
}

    .select ul {
        width: 100%;
        left: 0;
}

    .filters .logo .image {
        padding: 15px;
}

    .last_articles .text img {
        float: none;
        margin: 0 auto 20px;
}

    .last_articles .link {
        float: none;
        margin-top: 12px;
        margin-left: auto;
        margin-right: 0;
}

    .infoblock {
        width: 100%;
        box-sizing: border-box;
        padding: 12px 16px;
        margin: 16px 0 20px;
        border: 1px solid #e8e8e8;
        border-radius: 12px;
        background: #fff;
        display: block;
}

    .infoblock li .name {
        width: 110px;
        font-size: 13px;
}

    .article_forblog .image,
    .article_forblog .text img {
        float: none;
        margin: 0 0 20px;
}

    .article_forblog .readmore {
        float: none;
        margin: 20px 0 0;
}

    /* vacancy page mobile */
    .vcard,
    .vdesc,
    .vcontact {
        padding-left: 10px;
        padding-right: 10px;
}

    .vcard-title {
        font-size: 18px;
}

    .vcard-salary {
        font-size: 16px;
}

    .vcard-meta-source {
        margin-left: 0;
        width: 100%;
}

    .vcontact {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
}

    .btn-contact {
        text-align: center;
        width: 100%;
        box-sizing: border-box;
}

    .back-to-results {
        font-size: 13px;
}
}


a.knopka {
  color: #fff; /* цвет текста */
  text-decoration: none; /* убирать подчёркивание у ссылок */
  user-select: none; /* убирать выделение текста */
  background: rgb(212,75,56); /* фон кнопки */
  padding: .7em 1.5em; /* отступ от текста */
  outline: none; /* убирать контур в Mozilla */
}

a.knopka:hover { background: rgb(232,95,76);
} /* при наведении курсора мышки */

a.knopka:active { background: rgb(152,15,0);
} /* при нажатии */


.more_link {
    font-size: 13px;
    font-weight: 600;
    color: #3D5A80;
    background: transparent;
    border: 1.5px solid #3D5A80;
    padding: 6px 16px;
    border-radius: 20px;
    text-decoration: none;
    display: inline-block;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}


.more_link:hover {
    background: #3D5A80;
    color: #fff;
}


/* кнопки навигации по страницам */

.arrow-5,
a.arrow-5 {
    background: transparent;
    border: 2px solid #3D5A80;
    text-align: center;
    color: #3D5A80;
    padding: 11px 24px;
    margin: 20px 4px;
    text-decoration: none;
    border-radius: 30px;
    display: inline-block;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
    width: auto;
    min-width: 100px;
    max-width: 180px;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}


.arrow-5-right,
.arrow-5-left {
    position: relative;
    z-index: 10;
}


.arrow-5-right::after,
.arrow-5-left::after {
    content: none;
}


.arrow-5-left::before {
    content: '\2190 ';
}

.arrow-5-right::after {
    content: ' \2192';
    display: inline;
    position: static;
    width: auto;
    height: auto;
    border: none;
    margin: 0;
    padding: 0;
}

.arrow-5-left::after {
    content: none;
}


.arrow-5-right:hover,
.arrow-5-left:hover {
    background: #3D5A80;
    color: #fff;
}


.arrow-5-right:hover:after {
    border: none;
}

.arrow-5-left:hover:after {
    border: none;
}

/* кнопки навигации по страницам */


.divider {
    background: #f0f4f8;
    padding: 8px 14px;
    margin: 10px 0;
    font-size: 14px;
    color: #3D5A80;
    font-weight: 600;
    border-left: 3px solid #3D5A80;
    border-radius: 0 10px 10px 0;
}


.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    border: 0;
}

/* ===== similar_vacancies ===== */


.similar_vacancies {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    margin: 15px 0;
}


.similar_vacancies .sv-head {
    font-size: 15px;
    font-weight: 700;
    color: #000;
    padding: 10px 14px;
    border-bottom: 1px solid #e1e1e1;
    background: #f7f7f7;
}


.similar_vacancies .sv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.similar_vacancies .sv-item {
    padding: 12px 14px;
    border-right: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
}


.similar_vacancies .sv-item:nth-child(3n) {
    border-right: none;
}

/* убираем нижнюю границу у последней строки */

.similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n+1),
.similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n+2),
.similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n),
.similar_vacancies .sv-item:last-child {
    border-bottom: none;
}


.similar_vacancies .sv-title {
    display: block;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 4px;
    line-height: 1.3;
    color: #3D5A80;
}


.similar_vacancies .sv-salary {
    font-size: 14px;
    font-weight: 700;
    color: #000;
    margin-bottom: 4px;
}


.similar_vacancies .sv-salary.rub::after,
.similar_vacancies .sv-salary.has-currency::after {
    content: var(--currency-symbol, " \20BD");
    display: inline;
}


.similar_vacancies .sv-meta {
    font-size: 13px;
    color: #757575;
}

/* ===== мобильные: список с левой полосой =====  */

@media screen and (max-width: 1365px) {

    .similar_vacancies .sv-grid {
        grid-template-columns: 1fr;
}

    .similar_vacancies .sv-item {
        border-right: none;
        border-left: 3px solid #3D5A80;
        border-bottom: 1px solid #e1e1e1;
}

    .similar_vacancies .sv-item:last-child {
        border-bottom: none;
}

    /* сбрасываем nth-child правила десктопа */
    .similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n+1),
    .similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n+2),
    .similar_vacancies .sv-item:nth-last-child(-n+3):nth-child(3n) {
        border-bottom: 1px solid #e1e1e1;
}

    .similar_vacancies .sv-item:last-child {
        border-bottom: none;
}
}

/* autocomplete fix */

.search_form form { overflow: visible;
}

.search_form .inputs_wrapper { overflow: visible;
}

.search_form .search_city { overflow: visible;
}

.search_form .search_word { overflow: visible;
}

/* === новый дизайн поискового блока === */

.mainpage .search_form {
    background: #f0f5f0;
    border: 1px solid #ccdacc;
    border-radius: 16px;
    padding: 20px;
}


.mainpage .search_form form {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-height: none;
    overflow: visible;
    gap: 8px;
    align-items: center;
}


.mainpage .search_form .form_wr {
    display: flex;
    flex-direction: row;
    gap: 8px;
    padding: 0;
    flex: 1;
}


.mainpage .search_form .inputs_wrapper {
    display: flex;
    flex-direction: row;
    overflow: visible;
    gap: 8px;
    flex: 1;
}


.mainpage .search_form .search_word {
    flex: 1;
    border-radius: 8px;
    overflow: visible;
}


.mainpage .search_form .search_word input {
    background: #fff;
    border: 1.5px solid #ccdacc;
    border-radius: 8px;
    height: 48px;
    width: 100%;
}


.mainpage .search_form .search_word input:focus {
    border-color: #3D5A80;
    outline: none;
}


.mainpage .search_form .search_city {
    width: 200px;
    border-radius: 8px;
    overflow: visible;
    position: relative;
}


.mainpage .search_form .search_city input {
    background: #fff;
    border: 1.5px solid #ccdacc;
    border-radius: 8px;
    height: 48px;
    width: 100%;
}


.mainpage .search_form .search_city input:focus {
    border-color: #3D5A80;
    outline: none;
}


.mainpage .search_form .search_button {
    background: #3D5A80;
    color: #fff;
    border-radius: 8px;
    height: 48px;
    width: 120px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}


.mainpage .search_form .search_button:hover {
    background: #334D70;
}


.mainpage .search_form .examples {
    color: #555;
    margin-top: 10px;
}


.mainpage .search_form .examples a {
    color: #1a7a45;
}

/* мобильные */

@media screen and (max-width: 639px) {
    .mainpage .search_form form {
        flex-direction: column;
}

    .mainpage .search_form .form_wr {
        flex-direction: column;
        width: 100%;
}

    .mainpage .search_form .inputs_wrapper {
        flex-direction: column;
}

    .mainpage .search_form .search_city {
        width: 100%;
}

    .mainpage .search_form .search_button {
        width: 100%;
        height: 52px;
        background: transparent;
        border: 2px solid #3D5A80;
        color: #3D5A80;
        border-radius: 30px;
        font-size: 15px;
        font-weight: 700;
        letter-spacing: 0.5px;
        box-sizing: border-box;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
}

    .mainpage .search_form .search_button:hover {
        background: rgba(61, 90, 128, 0.08);
}
}
/* === конец === */

/* === шапка на внутренних страницах === */

.search_form .search_word {
    border-radius: 10px;
    overflow: visible;
}


.search_form .search_word input {
    background: #fff;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
}


.search_form .search_word input:focus {
    border-color: #3D5A80;
    outline: none;
}


.search_form .search_city {
    width: 200px;
    border-radius: 10px;
    overflow: visible;
}


.search_form .search_city input {
    background: #f5f5f5;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    width: 100%;
}


.search_form .search_city input:focus {
    border-color: #3D5A80;
    outline: none;
}


.search_form .inputs_wrapper {
    gap: 8px;
    overflow: visible;
}


.search_form .search_button {
    border-radius: 50px;
    background: #fff;
    color: #000;
}


.search_form .search_button:hover {
    background: #f0f0f0;
}


@media screen and (max-width: 639px) {
    .search_form .search_city {
        width: 100%;
}
}
/* === конец === */

/* === современные кнопки на главной === */

.filters .link {
    margin: 24px auto 8px;
    padding: 12px 32px;
}


/* ===== page-h1 ===== */

.page-h1 {
    font-size: 20px;
    margin: 16px 10px 6px;
    line-height: 1.2;
    font-weight: 900;
}
.mainpage .page-h1 {
    text-align: center;
}

/* ===== few-results-notice ===== */

.few-results-notice {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f0f4f8;
    border-left: 3px solid #3D5A80;
    border-radius: 0 10px 10px 0;
}

.few-results-notice p {
    margin: 0 0 6px;
}

.few-results-notice a {
    text-decoration: none;
    color: #3D5A80;
}

/* ===== tag-block / tag-list / tag-item ===== */

.tag-block {
    margin: 16px 0;
    padding: 0 10px;
}

.tag-block__title {
    margin: 0 0 10px;
    font-size: 15px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 4px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 14px;
}

.tag-item--all {
    background: #f0f4f8;
    border-color: #3D5A80;
}

.tag-item__link {
    text-decoration: none;
    color: #3D5A80;
}

.tag-item__link--all {
    font-weight: 500;
}

.tag-item__count {
    margin-left: 5px;
    color: #757575;
    font-size: 12px;
}

/* ===== vacancy page ===== */

.vacancy-infoblock-wrap {
    display: none; /* старый infoblock скрыт — используем vcard */
}

.back-to-results {
    display: inline-block;
    margin: 10px 0 8px;
    text-decoration: none;
    color: #757575;
    font-size: 13px;
    transition: color 0.15s;
}

.back-to-results:hover {
    color: #3D5A80;
}

/* ===== ad-block ===== */

.ad-block {
    padding: 5px;
}

/* ===== mainpage ===== */

.mainpage-intro {
    padding: 25px 10px 0;
    text-align: center;
}

.about-block {
    font-size: 16px;
    padding: 10px;
    text-align: left;
}
.about-block h2 {
    font-size: 18px;
    font-weight: 700;
}

.about-block__text {
    max-height: 4.8em;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
    line-height: 1.6;
}

.about-block__text::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2em;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
    transition: opacity 0.3s;
}

.about-block__text.expanded {
    max-height: 2000px;
}

.about-block__text.expanded::after {
    opacity: 0;
}

.about-block__toggle {
    background: none;
    border: none;
    color: #3D5A80;
    cursor: pointer;
    font-size: 14px;
    padding: 6px 0;
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.about-block__all-countries {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    color: #3D5A80;
    font-size: 14px;
    padding: 6px 0;
    margin-bottom: 10px;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.about-block__all-countries img {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 2px;
}

hr {
    border: none;
    border-top: 1px solid #e8e8e8;
    margin: 20px 0;
}

.last_articles_wrapper .filters {
    margin-top: 0;
    padding-top: 0;
}

/* ===== blog ===== */

.content-pad {
    padding: 0 10px;
}

.blog-h1 {
    margin-bottom: 24px;
}

.blog-item {
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid #eee;
}

.blog-item__image-link {
    display: block;
    margin-bottom: 14px;
}

.blog-item__image {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    border-radius: 6px;
}

.blog-item__date {
    color: #757575;
    font-size: 13px;
    margin-bottom: 8px;
}

.blog-item__title-link {
    text-decoration: none;
    color: inherit;
}

.blog-item__title {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.4;
}

.blog-item__excerpt {
    font-size: 15px;
    line-height: 1.6;
    color: #444;
}

.blog-item__more {
    display: inline-block;
    margin-top: 14px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    color: #3D5A80;
    border: 1.5px solid #3D5A80;
    padding: 6px 16px;
    border-radius: 20px;
    transition: background 0.2s, color 0.2s;
}

.blog-item__more:hover {
    background: #3D5A80;
    color: #fff;
}

/* ===== article page ===== */

.article-h1 {
    margin-bottom: 8px;
}

.article-date {
    color: #757575;
    font-size: 13px;
    margin-bottom: 20px;
}

.article-cover {
    margin-bottom: 20px;
}

.article-cover__img {
    width: 100%;
    max-width: 700px;
    height: auto;
    border-radius: 6px;
}

.article-body {
    line-height: 1.7;
    font-size: 15px;
}

.article-related {
    margin-top: 32px;
    padding-top: 20px;
}

.article-related__title {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: bold;
}

.article-related__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.article-related__link {
    text-decoration: none;
    color: #1a73e8;
    font-size: 14px;
    line-height: 1.4;
}

.article-cta {
    margin-top: 28px;
    padding: 14px 16px;
    background: #f5f5f5;
    border-radius: 6px;
}

.article-cta__label {
    margin: 0 0 8px;
    font-size: 14px;
}

.article-cta__link {
    color: #1a73e8;
    font-size: 14px;
    text-decoration: none;
}

/* ===== footer links ===== */

.footer-link,
.footer a {
    color: #fff;
    text-decoration: none;
}

.footer-link:hover,
.footer a:hover {
    color: #ccc;
    text-decoration: underline;
}

.lang-switch { white-space: nowrap; }
.lang-switch__current { font-weight: bold; color: #fff; }
.lang-switch__link { color: #ccc; text-decoration: underline; }
.lang-switch__link:hover { color: #fff; }
.lang-switch__sep { color: #999; margin: 0 2px;
}

/* ===== last_articles widget ===== */

.article_inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.last_articles__img-link {
    display: block;
    margin-bottom: 12px;
}

.last_articles__img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 6px;
}

.last_articles__date {
    color: #757575;
    font-size: 12px;
    margin-bottom: 6px;
}

.last_articles__title-link {
    text-decoration: none;
    color: inherit;
}

.last_articles__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    flex-grow: 1;
}

.last_articles__more {
    margin-top: 12px;
    margin-left: auto;
    margin-right: 0;
}

/* ===== ad-center (реклама, центрирование без <center>) ===== */

.ad-center {
    text-align: center;
}
/* === A3: Share button === */
.vshare {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    margin-bottom: 16px;
}
.btn-share {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #3D5A80;
    color: #3D5A80;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    font-family: inherit;
}
.btn-share:hover {
    background: #3D5A80;
    color: #fff;
}
.vshare-copied {
    font-size: 13px;
    color: #1a7a45;
    opacity: 0;
    transition: opacity 0.3s;
}
.vshare-copied.visible {
    opacity: 1;
}

/* === A1: Recently viewed === */
.recently-viewed {
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
}
.recently-viewed__head {
    padding: 10px 14px;
    border-bottom: 1px solid #e1e1e1;
    background: #f7f7f7;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}
.recently-viewed__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}
.recently-viewed__item {
    display: block;
    padding: 11px 14px;
    border-right: 1px solid #e1e1e1;
    border-bottom: 1px solid #e1e1e1;
    text-decoration: none;
    transition: background 0.15s;
}
.recently-viewed__item:hover { background: #f7f7f7; }
.recently-viewed__item:nth-child(3n) { border-right: none; }
.rv-title {
    display: block;
    color: #3D5A80;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}
.rv-meta {
    display: block;
    font-size: 12px;
    color: #757575;
}
@media (max-width: 600px) {
    .recently-viewed__list { grid-template-columns: 1fr; }
    .recently-viewed__item { border-right: none; }
}


/* ===== Панель фильтров поиска ===== */

.search_form form {
    flex-direction: column;
    max-height: none;
    overflow: visible;
}

.form_row {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    flex: 1;
    gap: 8px;
}

.form_row .form_wr {
    flex: 1;
}

body:not(.mainpage) .form_row .form_wr {
    padding-right: 0;
}

.search_actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Кнопка «Фильтры» */

.filter_toggle_label {
    display: none;
}

.filter_toggle_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
}

.filter_toggle_btn:hover { background: rgba(255,255,255,0.25); }
.filter_toggle_btn.active { background: rgba(255,255,255,0.3); }

.filter_toggle_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    flex-shrink: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm3 5h10v2H7zm3 5h4v2h-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm3 5h10v2H7zm3 5h4v2h-4z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.filter_badge {
    display: none;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

/* Панель фильтров */

.filter_panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.28s ease, opacity 0.2s ease;
}

.search_form.filters_open .filter_panel {
    max-height: 400px;
    opacity: 1;
    overflow: visible;
}

.filter_panel_inner {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    padding: 10px 0 4px;
    align-items: center;
}

.filter_group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
}

.filter_group_label {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 600;
    white-space: nowrap;
}

.filter_chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
    background: transparent;
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
    white-space: nowrap;
    user-select: none;
}

.filter_chip input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
    margin: 0;
    padding: 0;
}

.filter_chip:hover {
    background: rgba(255,255,255,0.12);
    border-color: rgba(255,255,255,0.5);
}

.filter_chip:has(input:checked) {
    background: rgba(255,255,255,0.92);
    color: #3D5A80;
    border-color: transparent;
    font-weight: 600;
}

/* Фиксированный хедер листингов (≤1365px) */

@media screen and (max-width: 1365px) {
    body:not(.mainpage) .first_screen.filters_open .first_screen_container {
        max-height: 400px;
        overflow: visible;
    }
}

/* Главная страница — fix: форма должна быть колонкой (иначе скрытая панель сжимает поле поиска) */

.mainpage .search_form form {
    flex-direction: column;
    align-items: stretch;
}

/* Главная страница — светлая тема */

.mainpage .filter_toggle_btn {
    background: rgba(61,90,128,0.1);
    color: #3D5A80;
    border: 1.5px solid rgba(61,90,128,0.25);
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.mainpage .filter_toggle_btn:hover { background: rgba(61,90,128,0.18); }
.mainpage .filter_toggle_btn.active { background: rgba(61,90,128,0.22); }
.mainpage .filter_toggle_icon { background-color: #3D5A80; }
.mainpage .filter_group_label { color: #666; }
.mainpage .filter_panel_inner { text-align: left; }

.mainpage .filter_chip {
    border-color: rgba(61,90,128,0.25);
    color: #555;
    background: transparent;
}

.mainpage .filter_chip:hover {
    background: rgba(61,90,128,0.08);
    border-color: rgba(61,90,128,0.4);
}

.mainpage .filter_chip:has(input:checked) {
    background: #3D5A80;
    color: #fff;
    border-color: transparent;
}

/* Мобильные (≤639px) */

@media screen and (max-width: 639px) {
    .form_row {
        flex-direction: column;
        gap: 8px;
    }

    .search_actions {
        flex-direction: row;
        width: 100%;
        gap: 8px;
    }

    /* Найти: высота как у полей ввода, прямоугольное скругление */
    .search_form .search_button {
        height: 50px;
        line-height: 50px;
        border-radius: 10px;
        flex: 1;
        width: auto;
    }

    /* Фильтры: квадратная иконка-кнопка */
    .filter_toggle_btn {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .filter_panel_inner {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .filter_group_label {
        width: 100%;
    }
}

@media screen and (max-width: 639px) {
    .one_vacancy_container {
        padding: 14px 16px;
    }
    .one_vacancy .fav-btn,
    .one_vacancy .fav-remove-btn {
        top: 12px;
        right: 12px;
    }
}

/* Главная мобильная: override стиля search_button */

@media screen and (max-width: 639px) {
    .mainpage .search_form .search_button {
        height: 48px;
        line-height: 48px;
        border-radius: 8px;
        background: #3D5A80;
        color: #fff;
        border: none;
        flex: 1;
        width: auto;
        letter-spacing: normal;
        font-size: 15px;
        font-weight: 700;
    }

    .mainpage .filter_toggle_btn {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }
}

/* ===== Дополнительные фиксы ===== */

/* Листинги: кнопка "Найти" — квадратное скругление как у полей */
body:not(.mainpage) .search_form .search_button {
    border-radius: 10px;
}

/* Мобильные листинги (≤639px): убрать правый отступ у form_wr (создавал зазор) */
@media screen and (max-width: 639px) {
    body:not(.mainpage) .form_row .form_wr {
        padding-right: 0;
    }
}

/* Десктоп листинги (>1365px): логотип и форма поиска — flex с вертикальным центрированием */
@media screen and (min-width: 1366px) {
    body:not(.mainpage) .first_screen {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        transition: transform 0.3s ease;
    }
    body:not(.mainpage) .first_screen.header-hidden {
        transform: translateY(-100%);
    }
    body:not(.mainpage) #main-content {
        padding-top: 76px;
    }
    body:not(.mainpage) .first_screen .first_screen_container {
        display: flex;
        align-items: center;
        gap: 20px;
    }
    body:not(.mainpage) .first_screen .logo {
        float: none;
        margin: 0;
        flex-shrink: 0;
    }
    body:not(.mainpage) .search_form {
        flex: 1;
        margin-left: 0;
    }
}

/* Листинги ≤1365px: увеличить max-height при активном хедере чтобы влезли фильтры */
@media screen and (max-width: 1365px) {
    body:not(.mainpage) .first_screen.active .first_screen_container {
        max-height: 600px;
    }
}

/* ===== Кнопка фильтра в шапке (мобильные листинги) ===== */

.filter_header_btn {
    display: none;
    position: absolute;
    top: 6px;
    right: 79px; /* левее search_top (right:15 + width:56 + gap:8) */
    width: 56px;
    height: 56px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.filter_header_icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    opacity: 0.85;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm3 5h10v2H7zm3 5h4v2h-4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 6h16v2H4zm3 5h10v2H7zm3 5h4v2h-4z'/%3E%3C/svg%3E");
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.filter_header_btn.active .filter_header_icon {
    opacity: 1;
}

@media screen and (max-width: 1365px) {
    body:not(.mainpage) .filter_header_btn {
        display: block;
    }
    /* Скрыть кнопку «Фильтры» в форме — она теперь в шапке */
    body:not(.mainpage) .filter_toggle_btn {
        display: none;
    }
    /* Расширить правый отступ контейнера для трёх кнопок (поиск + фильтр + избранное) */
    body:not(.mainpage) .first_screen:not(.active) .first_screen_container {
        padding-right: 207px;
    }
}

/* ===== Мобильные листинги (≤639px): грид-раскладка формы ===== */

@media screen and (max-width: 639px) {
    /* Убрать margin-bottom у search_word (создавал неравный отступ) — для всех форм */
    .search_form .search_word {
        margin-bottom: 0;
    }
}

@media screen and (max-width: 639px) {
    /* Листинги: перестроить форму в сетку: поиск на всю ширину, город + кнопка рядом */
    body:not(.mainpage) .search_form form {
        display: grid;
        grid-template-columns: 1fr auto;
        grid-template-areas:
            "word word"
            "city btn"
            "panel panel";
        gap: 8px;
        flex-direction: unset; /* снять flex */
    }
    body:not(.mainpage) .form_row     { display: contents; }
    body:not(.mainpage) .form_wr      { display: contents; }
    body:not(.mainpage) .inputs_wrapper { display: contents; }

    body:not(.mainpage) .search_word   { grid-area: word; }
    body:not(.mainpage) .search_city   { grid-area: city; width: auto; }
    body:not(.mainpage) .search_actions {
        grid-area: btn;
        display: flex;
        align-items: stretch;
        width: auto;
        flex-direction: row;
    }
    body:not(.mainpage) .filter_panel  { grid-area: panel; }

    /* Кнопка «Найти»: компактная, квадратная */
    body:not(.mainpage) .search_form .search_button {
        width: 110px;
        height: 50px;
        line-height: 50px;
        border-radius: 10px;
        flex: none;
    }

}

/* Бейдж на кнопке фильтра в шапке (мобильные листинги) */
.filter_badge_h {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

/* ===== Избранное: сердечко на карточке вакансии ===== */

.fav-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.fav-icon {
    display: block;
    width: 20px;
    height: 20px;
    background-color: #aaa;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    transition: background-color 0.15s;
}

.fav-btn:hover .fav-icon {
    background-color: #e63946;
}

.fav-btn.active .fav-icon {
    background-color: #e63946;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

/* media overrides for fav-btn removed — now absolutely positioned via base rule */

/* ===== Избранное: кнопка удаления на странице /favorites ===== */

.fav-remove-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    margin: 0;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}

.fav-remove-btn .fav-icon {
    background-color: #e63946;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E");
}

.fav-remove-btn:hover .fav-icon {
    background-color: #aaa;
}

/* ===== Избранное: кнопка на странице вакансии ===== */

.btn-fav-vacancy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 2px solid #3D5A80;
    color: #3D5A80;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
    width: auto;
    height: auto;
    position: static;
    top: auto;
    margin-right: 0;
}

.btn-fav-vacancy .fav-icon {
    width: 16px;
    height: 16px;
    background-color: #3D5A80;
}

.btn-fav-vacancy:hover {
    background: rgba(61, 90, 128, 0.08);
}

.btn-fav-vacancy:hover .fav-icon {
    background-color: #e63946;
}

.btn-fav-vacancy.active {
    border-color: #e63946;
    color: #e63946;
}

.btn-fav-vacancy.active .fav-icon {
    background-color: #e63946;
}

.btn-fav-vacancy.active:hover {
    background: rgba(230, 57, 70, 0.06);
}

/* ===== Избранное: десктопная кнопка в search_actions ===== */

.fav_toggle_btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    padding: 0;
    border: none;
    border-radius: 12px;
    background: rgba(255,255,255,0.15);
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s;
    position: relative;
    text-decoration: none;
}

.fav_toggle_btn:hover { background: rgba(255,255,255,0.25); }

.fav_toggle_icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background-color: currentColor;
    flex-shrink: 0;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.fav_badge {
    display: none;
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #e63946;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.mainpage .fav_toggle_btn {
    background: rgba(61,90,128,0.1);
    color: #3D5A80;
    border: 1.5px solid rgba(61,90,128,0.25);
    width: 48px;
    height: 48px;
    border-radius: 8px;
}

.mainpage .fav_toggle_btn:hover { background: rgba(61,90,128,0.18); }
.mainpage .fav_toggle_icon { background-color: #3D5A80; }

@media screen and (max-width: 639px) {
    .fav_toggle_btn {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 10px;
    }

    .mainpage .fav_toggle_btn {
        flex: 0 0 48px;
        width: 48px;
        height: 48px;
        border-radius: 8px;
    }
}

/* ===== Избранное: мобильная кнопка в шапке ===== */

.fav_header_btn {
    display: none;
    position: absolute;
    top: 6px;
    right: 143px;
    width: 56px;
    height: 56px;
    border: none;
    background: transparent;
    cursor: pointer;
    z-index: 10;
    text-decoration: none;
}

.fav_header_icon {
    display: block;
    width: 100%;
    height: 100%;
    background-color: #fff;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    -webkit-mask-size: 28px 28px;
    mask-size: 28px 28px;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

.fav_badge_h {
    display: none;
    position: absolute;
    top: 6px;
    right: 6px;
    min-width: 16px;
    height: 16px;
    padding: 0 3px;
    border-radius: 8px;
    background: #e63946;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    line-height: 1;
}

@media screen and (max-width: 1365px) {
    body:not(.mainpage) .fav_header_btn {
        display: block;
    }
    body:not(.mainpage) .fav_toggle_btn {
        display: none;
    }
}

/* ===== Избранное: страница /favorites ===== */

.favorites-empty {
    text-align: center;
    padding: 60px 20px;
    color: #757575;
    font-size: 16px;
}

.favorites-empty .fav-icon-inline {
    display: inline-block;
    width: 18px;
    height: 18px;
    vertical-align: middle;
    background-color: #aaa;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16.5 3c-1.74 0-3.41.81-4.5 2.09C10.91 3.81 9.24 3 7.5 3 4.42 3 2 5.42 2 8.5c0 3.78 3.4 6.86 8.55 11.54L12 21.35l1.45-1.32C18.6 15.36 22 12.28 22 8.5 22 5.42 19.58 3 16.5 3zm-4.4 15.55l-.1.1-.1-.1C7.14 14.24 4 11.39 4 8.5 4 6.5 5.5 5 7.5 5c1.54 0 3.04.99 3.57 2.36h1.87C13.46 5.99 14.96 5 16.5 5c2 0 3.5 1.5 3.5 3.5 0 2.89-3.14 5.74-7.9 10.05z'/%3E%3C/svg%3E");
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

/* ===== Избранное: тултип «нет сохранённых» ===== */

.fav-empty-tooltip {
    position: absolute;
    z-index: 10000;
    background: #3D5A80;
    color: #fff;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.fav-empty-tooltip.visible {
    opacity: 1;
}

/* ===== cookie consent banner ===== */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #3D5A80;
    color: #fff;
    z-index: 9999;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.15);
}

.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    font-size: 14px;
}

.cookie-banner__text {
    margin: 0;
}

.cookie-banner__link {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner__link:hover {
    color: #ccc;
}

.cookie-banner__btn {
    background: #fff;
    color: #3D5A80;
    border: none;
    padding: 8px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    white-space: nowrap;
    font-weight: 700;
}

.cookie-banner__btn:hover {
    background: #e8e8e8;
}

.cookie-banner__buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.cookie-banner__btn--reject:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 600px) {
    body {
        margin-bottom: 95px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        text-align: center;
    }

    .footer-line {
        flex-direction: column;
        gap: 2px;
    }

    .footer-sep--main {
        display: none;
    }

    .footer-bottom {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .footer .content_wrapper {
        padding: 10px 15px;
    }
}


/* ============================
   Global homepage
   ============================ */

.global-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin-bottom: 0;
}
.global-page main#main-content {
    flex: 1;
}
.global-page .footer {
    position: relative;
    margin-top: auto;
}

.global-hero {
    text-align: center;
    padding: 0 20px 40px;
}
.global-hero h1 {
    font-size: 1.8em;
    font-weight: 300;
    color: #fff;
    margin: 0 0 6px;
    letter-spacing: 0.01em;
}
.global-hero p {
    font-size: 0.95em;
    color: rgba(255,255,255,0.6);
    margin: 0 0 20px;
}

.suggest-banner {
    display: inline-block;
    margin: 0 auto;
    padding: 10px 24px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 40px;
    color: rgba(255,255,255,0.9);
    font-size: 0.9em;
}
.suggest-banner a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: border-color 0.2s;
}
.suggest-banner a:hover {
    border-bottom-color: #fff;
}

.countries-section {
    padding: 40px 0 20px;
}
.countries-section h2 {
    font-size: 1.15em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}
.country-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.country-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #eaedf0;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}
.country-card:hover {
    border-color: #3D5A80;
    box-shadow: 0 2px 12px rgba(61,90,128,0.1);
    transform: translateY(-1px);
}
.country-card .flag {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    line-height: 0;
}
.country-card .flag img {
    width: 100%;
    height: 100%;
    display: block;
}
.country-card .name {
    font-size: 1.05em;
    font-weight: 600;
    color: #212529;
}
.country-card .name-local {
    font-size: 0.82em;
    color: #8c939a;
    margin-top: 1px;
}

.articles-section {
    padding: 30px 0 20px;
}
.articles-section h2 {
    font-size: 1.15em;
    font-weight: 600;
    color: #333;
    margin: 0 0 20px;
}
