/* Const */
:root {
    --radius: 7px;
}

body:not(.customize-support) .admin_hide {
    display: none;
}

body.customize-support .admin_hide {
    position: relative;
}

body.customize-support .admin_hide:after {
    content: 'Видно только админам';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    border: 1px dashed red;
    line-height: 100%;
    vertical-align: bottom;
    text-align: right;
    font-size: 10px;
    color: red;
    opacity: 0.5;
}

@media(max-width: 600px) {
    .debug {
        display: none !important;
    }
}

/* Global */
.w-grid-none.type_message {
    margin-top: 30px;
    border-radius: var(--radius);
}

.grid_height_100 .w-grid-item-h {
    height: 100% !important;
    box-shadow: 0 15px 35px 0 var(--color-content-overlay);
}

.shadow_box_green ,
.shadow_box {
    background: var(--color-content-bg);
    box-shadow: 0 15px 35px 0 var(--color-content-overlay);
    border-radius: var(--radius);
    padding: 40px;
}

.shadow_box_green {
    background: var(--color-subfooter-bg);
}

.title_box_title {
    text-align: center;
}

.title_box_text {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 30px auto;
}

.title_box_button {
    margin-top: 20px;
}

@media(max-width: 600px) {
    .shadow_box.title_box {
        padding: 0;
        box-shadow: unset;
    }

    .shadow_box_green {
        padding: 20px;
    }

    .title_box_title {
        text-align: left;
    }

    .title_box_text {
        text-align: left;
        max-width: 800px;
        margin: 0 auto 0 auto;
    }
    .title_box_button {
        margin-top: 0px;
    }
}

.underline_link a {
    border-bottom: 1px solid var(--color-content-text);
}

.w-btn-label {
    vertical-align: middle;
}

.rank-math-breadcrumb {
    padding: 20px 0 20px 50px;
}
.rank-math-breadcrumb p a {
    color: var(--color-content-text)
}

.rank-math-breadcrumb p *:first-child {
    font-weight: 700;
}
.rank-math-breadcrumb .separator {
    padding: 0 10px;
    line-height: 1;
    vertical-align: text-top;
}

@media(max-width: 600px) {
    .rank-math-breadcrumb {
        padding: 20px 0 20px 0;
    }

    .rank-math-breadcrumb .separator {
        padding: 0 ;
    }

    .rank-math-breadcrumb .separator img {
        width: 20px;
    }

}

.g-filters {
    gap: 16px;
    margin-bottom: 60px;
}

.g-filters-item,
.base_filter .w-filter-item-value {
    font-size: 16px !important;
    line-height: 1.20 !important;
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0;
    border-radius: 20px !important;
    padding: 0.5em 1.4em;
    background: transparent;
    border: 1px solid var(--color-content-primary);
    color: var(--color-content-primary)!important;
}

.g-filters-item.active,
.base_filter .w-filter-item-value.selected {
    color: var(--color-content-bg)!important;
    background: var(--color-content-primary)!important;
}

.g-filters-item:hover,
.base_filter .w-filter-item-value:hover {
    color: var(--color-content-bg)!important;
}

.base_filter.w-filter.state_desktop[class*="style_switch_"] .w-filter-item-value>label {
    padding: 0;
}

.base_filter .w-filter-item-values {
    gap: 16px;
}

.g-loadmore {
    margin-top: 60px;
}


/* Backgrounds */
main {
    position: relative;
}

body.page .l-canvas main:before,
body.archive .l-canvas main:before{
    content: '';
    position: absolute;
    width: 100%;
    height: min(600px, 50%);
    right: 0;
    left: 0;
    bottom: 0;
    background: linear-gradient(0deg, #C8ECD3 0%, rgba(164, 245, 245, 0.00) 74.78%);
}

.background_wrapper {
    display: none;
}

body.page:not(.home) .background_wrapper,
body.archive:not(.home) .background_wrapper {
    display: block;
    position: relative;
    height: 20vw;
}

body.page .background_wrapper:before,
body.archive .background_wrapper:before {
    content: '';
    position: absolute;
    top: 0;
    right: -4%;
    left: 0;
    bottom: 0;
    background: url(https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/11/listik.svg) no-repeat top right;
    background-size: 30%;
}

body.page .background_wrapper:after,
body.archive .background_wrapper:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: -4%;
    bottom: 0;
    background: url(https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/cat_pattern_left.svg) no-repeat bottom left;
    background-size: 10%;
}


@media(max-width: 768px) {
    section.custom_bg .l-section-img {
        background-size: 6% !important;
    }
}


/* Header */
header:not(.sticky) {
    border-top: 10px solid var(--color-footer-bg);
}

header .at_middle .l-subheader-h {
    background: var(--color-content-primary);
    border-radius: var(--radius);
    padding: 20px;
}

header.sticky .at_middle .l-subheader-h {
    margin-top: 5px;
    box-shadow: 0 0 10px 0 #00000036, 0px -10px 10px 0px white;
}



.no-touch .at_top .w-nav.type_desktop .menu-item.current-menu-item.level_1 .w-nav-title {
    font-weight: 900;
}


.no-touch .w-nav.type_desktop .hover_underline .menu-item.current-menu-item.level_1 .w-nav-title:after {
    bottom: -2px;
    opacity: 1;
}

nav:not(.type_mobile) #menu-item-162 {
    border: 1px solid var(--color-content-bg);
    border-radius: 20px;
    padding: 1px 7px 0 7px;
    font-weight: 900;
    line-height: 2.5;
}

.no-touch .w-nav.type_desktop .menu-item i {
    width: auto;
}

.header_hor .w-nav.type_desktop.spread>.w-nav-list {
    justify-content: space-around;
}

body:not(.rtl) .w-search.layout_simple input {
    line-height: 2;
    min-height: unset;
}

.l-subheader.at_middle .type_mobile .w-nav-list.level_1 {
	background: var(--color-content-bg) !important;
    margin: 10px 1rem;
    border-radius: var(--radius);
    box-shadow: 0 0 10px 0 #00000036 !important;
}

.l-subheader.at_middle .type_mobile .w-nav-list.level_1 .menu-item a {
    color: var(--color-content-text) !important;
}

@media(min-width: 1025px) and (max-width: 1150px) {
    .l-subheader.at_middle .w-nav.type_desktop .hover_underline .w-nav-title {
        font-size: 16px;
    }
}


@media(max-width: 1024px) {
    .l-subheader-cell.at_right > *,
    .l-subheader-cell.at_right > * .w-text-h i,
    .l-subheader-cell.at_right > * .w-search-open,
    .l-subheader-cell.at_right > * .w-nav-control {
        width: auto !important;
        padding: 0 5px !important;
        margin: 0 !important;
    }

    .w-nav-icon>div {
        border-width: 2px !important;
    }

    header .at_middle .l-subheader-h {
        background: var(--color-content-bg);
        border-radius: var(--radius);
        padding: 20px;
        color: var(--color-content-heading);
    }
}

/* Cookie */
.l-cookie.pos_bottom {
    height: 100px;
    background: #FDF9F5;
    font-size: 19px;
    padding: 0 calc((100vw - var(--site-content-width)) / 2);
    justify-content: space-between;
    box-shadow: unset;
}

.l-cookie.pos_bottom a {
    color: var(--color-content-primary);
}

/* Footer */
.footer_menu ul {
    display: flex;
    flex-direction: row;
    gap: 68px;
    font-size: 16px;
    text-decoration: underline;
}

.footer_menu ul li {
    margin: 0;
}

@media(max-width: 1024px) {
    .footer_wrapper {
        flex-direction: column;
        gap: 1rem;
    }

    .footer_menu ul {

    }
}

@media(max-width: 900px) {
    .footer_menu ul {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
}

/* Main */
.main_navigator {
    grid-gap: 3px !important;
}

.main_navigator > .vc_column_container {
    background: var(--color-content-bg);
    border-radius: var(--radius);
    cursor: pointer;
}

.main_navigator > .vc_column_container .vc_column-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main_navigator .w-text {
    color: var(--color-content-heading);
    text-align: center;
    font-size: 22px;
    line-height: 70px;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main_navigator .w-image {
    background: #CBE4FF;
    flex-grow: 1;
    display: flex;
    align-items: center;
    padding: 20px 20px 40px 20px;
    border-radius: var(--radius);
}
.main_navigator .w-image .w-image-h {
    flex: 1 1 0;
}


.main_navigator .w-image img {
    width: 100%;
}

@media (max-width: 1280px) and (min-width: 1024px) {
    .main_navigator.g-cols .w-text-value {
        font-size: 16px;
    }
}


@media (max-width: 1024px) {
    .main_navigator.g-cols {
        grid-template-columns: 1fr;
        grid-gap: 10px !important;
    }

    .main_navigator > .wpb_column > .vc_column-inner {
        flex-direction: row-reverse;
        justify-content: flex-end;
        align-items: center;
        gap: 1rem;
        background: #CBE4FF;
        border-radius: var(--radius);
    }

    .main_navigator .w-image {
        flex-basis: 40%;
        flex-grow: 0;
        flex-shrink: 0;
        padding: 10px;
    }

    .main_navigator .w-text {
        text-align: left;
        line-height: 1.2;
        font-size: 18px;
    }

    .w-popup.navigator_popup.align_none {
        display: none;
    }
}

/* Situation Grid */

#situation_grid {
    display: none;
}

body.home #situation_grid {
    display: block;
    height: 0;
    overflow: hidden;
}

#situation_filter > .w-filter-list {
    gap: 0.5rem !important;
    margin: 0;
}

#situation_filter .w-filter-item {
    margin: 2rem 0 0 0;
}


#situation_filter .w-filter-item:before {
    line-height: 2;
    position: absolute;
    top: -2rem;
    left: 0;
    right: -100%;
}

#situation_filter .w-filter-item[data-source="tax|stage"]:before {
    content: "Этап, который вы проходите";
}
#situation_filter .w-filter-item[data-source="tax|methods"]:before {
    content: "Способ лечения";
}
#situation_filter .w-filter-item[data-source="tax|metastasis"]:before {
    content: "Наличие метастазов";
}
#situation_filter .w-filter-item[data-source="tax|subtype"]:before {
    content: "Молекулярный подтип заболевания";
}

#situation_filter .w-filter-item-title {
    position: relative;
    width: auto;
    min-height: unset !important;
    line-height: 1.2;
    padding: 0.5rem 3.8rem 0.5rem 1rem;
}

#situation_grid.w-grid.cols_2 .w-grid-item.size_2x1, #situation_grid.w-grid.cols_2 .w-grid-item.size_2x2 {
    width: 50%;
}

#situation_filter #situation_button {
    margin-right: auto;
    margin-top: 1rem;
}

.w-filter.state_desktop.style_drop_default .w-filter-item-reset {
    color: var(--color-content-primary);
}

#situation_filter .w-filter.state_desktop.style_drop_default .w-filter-item-reset {
    bottom: 8px;
    right: 0.5em;
    top: unset;
    transform: unset;
    color: var(--color-content-primary);
}

#situation_filter .w-filter-item.has_value .w-filter-item-title {
    font-size: 0;
}

#situation_filter .w-filter-item.has_value .w-filter-item-title span {
    white-space: normal;
    line-height: 1.2;
    font-size: var(--inputs-font-size);
}

#situation_filter .w-filter-item.has_value .w-filter-item-title > span::first-letter {
    font-size: 0 !important;
}

@media(min-width: 1025px) {
    #situation_filter > .w-filter-list {
        display: grid;
        grid-template-rows: 1fr 1fr;
        grid-template-columns: 1fr 1fr;
    }
    #situation_filter .w-filter-item {
        align-self: start;
        justify-self: start;
    }

}

@media (max-width: 1024px) {
    #situation_filter .w-filter-item {
        width: 100%;
    }
    #situation_filter .w-filter-item-title {
        width: 100%;
    }

    #situation_filter #situation_button {
        margin: 1rem auto 0 auto;
    }

}

/* Grid - Preview */
.article_preview article .w-grid-item-h{
    border-radius: 8px;
    box-shadow: 0 1rem 2rem 0 var(--color-content-overlay);
}

.article_preview_icon {
    margin-top: -50px;
    margin-left: -50px;
    width: 130px;
    height: 130px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(180deg, rgb(148 220 190 / 40%) 50%, rgba(255, 255, 255, 0.00) 84.9%);
    border-radius: 50%;
}

.article_preview_icon.red_icon {
    background: linear-gradient(180deg, rgb(237 126 119 / 40%) 50%, rgba(255, 255, 255, 0.00) 84.9%);
}
.article_preview_icon.red_icon svg path {
    fill: rgb(237 126 119);
}


.article_preview_icon svg {
    margin: 15px 0 0 15px;
}

.article_preview_link {

}

.pin_preview {
    transform: rotate(45deg);
}

@media(max-width: 450px) {
    .article_preview_icon {
        margin-top: -35px;
        margin-left: -35px;
        width: 80px;
        height: 80px;
    }
    .article_preview_icon svg {
        width: 30px;
        margin: 5px 0 0 5px;
    }
}

/* Author */
.post_author.vcard {
    align-items: flex-start;
    gap: 40px;
}

.post_author.avapos_left .post-author-ava {
    margin-right: 0;
}

.post-author-ava img {
    border: 7px solid var(--color-content-secondary);
}

.post-author-meta,
.post-author-info {
    font-size: 20px;
    line-height: 27px;
}

.post-author-meta:before {
    content: 'Автор:';
    font-weight: 700;
}

.custom_author .w-iconbox-icon {


}

.custom_author .w-iconbox-icon img {
    border-radius: 50%;
    border: 7px solid var(--color-content-secondary);
}

.custom_author .w-iconbox-title:before {
    content: "Автор:";
    display: block;
    font-weight: 700;
}

.authors-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.author-row {
    display: flex;
    gap: 2rem;
}

.author-image img {
    width: 73px;
    border-radius: 50%;
    border: 7px solid var(--color-content-secondary);
}

.author-info {
    flex: 2;
}

.author-label {
    font-weight: bold;
}

.author-name {

}

.author-bio {

}


/* Block with Sidebar */
.bvsb .vc_col-sm-3 {
    width: calc(270px + 1.5rem);
}

.bvsb .vc_col-sm-3 .vc_column-inner {
    padding-right: 0 !important;
}

.bvsb .vc_col-sm-9 {
    width: calc(100% - 270px - 1.5rem);
}

.bvsb .vc_col-sm-9 .vc_column-inner {
    padding-left: 30px !important;
}

/* TOC */
div#ez-toc-container {
    padding: 0 !important;
    border: unset;
    border-radius: var(--radius);
}

.ez-toc-title-container {
    background: var(--color-alt-content-primary);

    text-align: center;

    border-radius: var(--radius) var(--radius) 0 0;
    padding: 20px;
    line-height: 1;
}

div#ez-toc-container .ez-toc-title {
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
    color: var(--color-content-bg);
}

 #ez-toc-container nav {
    border-left:1px solid var(--color-content-primary);
    border-right:1px solid var(--color-content-primary);
    border-bottom:1px solid var(--color-content-primary);
    border-radius: 0 0 var(--radius) var(--radius);
}

.ez-toc-counter nav ul li a::before {
    content: '';
}

#ez-toc-container a,
#ez-toc-container a:visited,
#ez-toc-container a:hover {
    display: block;
    font-size: 19px;
    line-height: 27px;
    padding: 7px 24px;
    color: var(--color-content-heading) !important;
    text-decoration: none;
}

#ez-toc-container a.active_anchor {
    background: #E2BDB94D;
    border-left: 5px solid var(--color-alt-content-link);

}



/* Sources */
.sources_block {

}

.sources_block.with_collapsible_content > .toggle-links > button {
    line-height: 1.20!important;
    font-weight: 400;
    font-style: normal;
    text-transform: none;
    letter-spacing: 0em;
    border-radius: 20px;
    padding: 0.5em 1.4em;
    background: transparent;
    vertical-align: middle;
    border: 1px solid var(--color-content-faded);
    color: var(--color-content-faded)!important;
}

/* Next-Prev */
.post_navigation-item-arrow {
    display: none;
}

.post_navigation.layout_simple .post_navigation-item {
    padding: 0;
    position: relative;
}

.post_navigation.layout_simple a.post_navigation-item:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    height: 8px;
    width: 120px;
    background: url('https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/arrow-with-dot-left.svg') no-repeat;
}

.post_navigation.layout_simple a.post_navigation-item.to_next:after {
    right: 0;
    left: unset;
    background: url('https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/arrow-with-dot-right.svg') no-repeat;
}

.post_navigation-item-meta {
    color: var(--color-content-link-hover);
    opacity: 1;
}

.post_navigation-item-title {
    font-size: 19px;
}

    /* Rating */
.rtng-rating-total,
.rtng-text.rtng-vote-title {
    display: none;
}

.rtng-active,
.rtng-star-rating {
    margin-top: 40px;
    display: flex;
    gap: 40px;
}

.rtng-star .dashicons {
    font-family: "fontawesome";
    font-weight: 700;
    color: var(--color-content-bg);
    font-size: 30px;
}

.dashicons-star-empty:before,
.dashicons-star-filled:before {
    content: "\f005" !important;
    text-shadow: 0 0 2px #F3E9D4;
}

.dashicons-star-filled:before {
    color: #FFC444;
}

span.rtng-text.rtng-thankyou {
    font-size: 1rem;
    color: var(--color-content-text) !important;
    position: relative;
    bottom: unset !important;
    left: unset !important;
    padding-top: 1rem;
    display: block;
}

/* Rating Popup */
.w-popup-wrap .rtng-star-rating {
    justify-content: center;
}

/* Element Preview Top */
.size_2x1 .element_preview_top {
    flex-direction: row;
    align-items: center;
    column-gap: 30px;
}

.size_2x1 .element_preview_top .post_image {
    min-width: calc(50% - 15px);
    max-width: calc(50% - 15px);
    margin-bottom: 0 !important;
}

.size_2x1 .element_preview_top .post_image > div {
    display: none;
}

.size_2x1 .element_preview_top .post_image img {
    position: initial!important;
}

.history_grid_content_hidden {
    display: none;
}


/* Favorites */
.favorites_icon {
    transform: translateY(-50%);
}

/* Grids */
@media(max-width: 768px) {

}

/* Project */
.author_image_wrapper {
    width: 100%;
    position: relative;
    background: url("https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/emp-1.svg") center center no-repeat;
    background-size: contain;
}

.authors_grid article:nth-child(3n+1) .author_image_wrapper {
    background: url("https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/emp-1.svg") center center no-repeat;
}

.authors_grid article:nth-child(3n+2) .author_image_wrapper {
    background: url("https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/emp-2.svg") center center no-repeat;
}

.authors_grid article:nth-child(3n+3) .author_image_wrapper {
    background: url("https://xn--d1aciabllghjswp.xn--p1ai/wp-content/uploads/2023/10/emp-3.svg") center center no-repeat;
}


.author_image_wrapper:before {
    content: '';
    padding-bottom: 100%;
}

.author_image_wrapper .post_image {
    position: absolute;
    width: 60%;
    bottom: 10%;
    right: 10%;

}

@media(max-width: 600px) {
    .author_wrapper {
        flex-direction: row;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .author_image_wrapper {
        flex-basis: 30%; /* Задает базовую ширину */
        flex-grow: 0; /* Указывает, что элемент не будет расти за пределы своей базовой ширины */
        flex-shrink: 0;
        background-size: contain !important;
    }
}

/* Map */
#map {
    border-radius: var(--radius);
    overflow: hidden;
}
/* Firefox */
.clinics_list_wrapper {
    scrollbar-width: thin;
    scrollbar-color: var(--color-content-secondary) var(--color-content-bg);
    padding-right: 60px;
}

@media(max-width: 600px) {
    .clinics_list_wrapper {
        padding-right: 0;
    }
}

/* Chrome, Edge and Safari */
.clinics_list_wrapper::-webkit-scrollbar {
    height: 7px;
    width: 7px;
}
.clinics_list_wrapper::-webkit-scrollbar-track {
    border-radius: 5px;
    background-color: var(--color-content-bg);
}


.clinics_list_wrapper::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: var(--color-content-secondary);
    border: 1px solid var(--color-content-bg);
}

.clinics_list_wrapper::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-content-link-hover);
}

.clinics_list_wrapper::-webkit-scrollbar-thumb:active {
    background-color: var(--color-content-link-hover);
}


@media (min-width: 601px) and (max-width: 768px) {
    #clinics_filter .w-filter-list {
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }
}

@media (min-width: 769px) {
    #clinics_filter .w-filter-list {
        display: grid;
        justify-content: center;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr;
    }
}


/* Школа */
header.id_3466 .at_middle .l-subheader-h {
    background: var(--color-content-link);
}

.technical-info-block {
    margin-top: 20px;
    padding: 10px;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    font-size: 13px;
    line-height: 1.1;
}
.technical-info-block strong {
    font-weight: bold;
}

.school_grid_content {
    display: none;
}

.school_grid .w-grid-list article:nth-child(10) {
    grid-column: 1 / -1;
}

.school_grid .w-grid-list article:nth-child(10) .school_grid_content {
    display: block;
}

.school_grid .w-grid-list article:nth-child(10) .post_image {
    max-width: 30% !important;
    min-width: 30% !important;
    display: flex;
    justify-content: center;
}