/* =========================== post-head =========================== */

.post-head {
    max-width: 1200px;
    margin-inline: auto;
}

.post-head h1 {
    padding: 0;
}

.post-excerpt {
    max-width: 888px;
    margin-block: 20px 44px;
    font: var(--l1);
    color: var(--base-100);
}

.post-excerpt p {
    margin-block: 0;
}

.post-head .post-info {
    margin-block: 32px 0;
}

.post-info .button {
    margin-left: auto;
}

.post-cover {
    margin-block: 44px 80px;
}

.post-head .separator {
    margin-bottom: 64px;
}

@media (max-width: 1440px) {
    .post-head {
        max-width: 800px;
    }

    .post-excerpt {
        margin-block: 8px 36px;
    }

    .post-cover {
        margin-block: 40px 64px;
    }

    .post-head .separator {
        margin-bottom: 48px;
    }
}

@media (max-width: 992px) {
    .post-head {
        max-width: unset;
    }

    .post-excerpt {
        margin-block: 12px 20px;
    }

    .post-head .post-info {
        margin-block: 12px 0;
    }

    .post-info .button {
        width: 100%;
        margin-left: unset;
        margin-bottom: 24px;
        order: 2;
    }

    .post-cover {
        margin-block: 24px;
    }

    .post-head .separator {
        margin-block: 24px;
    }
}

/* =========================== END post-head =========================== */





/* =========================== post-grid =========================== */

.post-grid {
    display: grid;
    justify-content: center;
    /*grid-template-columns: min(22vw, 420px) min(46.4vw, 890px) min(22vw, 420px);*/
    grid-template-columns: 1fr min(46.4vw, 890px) 1fr;
    grid-template-areas: "nav content .";
}

.post-content {
    position: relative;
    grid-area: content;
    font: var(--t1);
}


@media (max-width: 1440px) {
    .post-grid {
        grid-template-columns: 1fr min(46.25vw, 592px) 1fr;
    }
}

@media (max-width: 992px) {
    .post-grid {
        grid-template-columns: 100%;
        grid-template-areas: "nav" "content";
        gap: 0;
    }
}

/* =========================== END post-grid =========================== */





/* =========================== post-navigation =========================== */

.post-navigation-wrapper {
    grid-area: nav;
    width: min(18.125vw, 348px);
}

.post-navigation {
    position: sticky;
    top: calc(104px + 24px);
    font: var(--a2);
}

.post-navigation__title {
    color: var(--base-100);
}

.post-navigation__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;

    height: 75vh;
    overflow-y: auto;
}

.post-navigation__list li {
    margin-bottom: 20px;
}

.post-navigation__list li a {
    color: var(--base-0);
    text-decoration: none;
    transition: 0.2s ease-in;
}

.post-navigation__list li a.active,
.post-navigation__list li a:hover {
    color: var(--violet-800);
}

.post-navigation__list li a.active:before {
    content: "} ";
}

@media (max-width: 1440px) {
    .post-navigation-wrapper {
        width: min(19vw, 241px);
    }

    .post-navigation {
        top: calc(92px + 24px);
    }
}

@media (max-width: 992px) {
    .post-navigation-wrapper {
        width: 100%;
    }

    .post-navigation {
        position: fixed;
        top: calc(100% - 52px);
        left: 0;
        right: 0;
        padding: 16px;
        background: var(--base-800);
        border-top: 1px solid var(--base-300);

        transform: translateY(110%);
        transition: .2s ease;
        z-index: 100;
    }

    .post-navigation.into-view {
        transform: translateY(0);
    }

    .post-navigation__title {
        display: flex;
        justify-content: space-between;
    }

    .post-navigation__title::after {
        content: "";
        width: 20px;
        height: 20px;
        background: url('data:image/svg+xml,<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.76953 8.60872L5.9362 12.4421L4.76953 11.2754L9.76953 6.27539L14.7695 11.2754L13.6029 12.4421L9.76953 8.60872Z" fill="white"/></svg>');
    }

    .post-navigation__list {
        height: 0;
        margin: 0;
        transition: 0.2s ease;
    }

    .post-navigation.active {
        top: 0;
    }

    .post-navigation.active .post-navigation__title::after {
        transform: rotate(180deg);
    }

    .post-navigation.active .post-navigation__list {
        margin-top: 20px;
        height: calc(100vh - 52px);
    }
}

/* =========================== END post-navigation =========================== */





/* =========================== post elements =========================== */

.post-content .vc_row {
    margin: 0;
}

.post-content .vc_row:first-child h2:first-child {
    padding-top: 0;
}

.post-content .vc_column_container>.vc_column-inner {
    padding: 0;
}

.post-content .wpb_content_element {
    margin-bottom: 16px;
}

.post-content iframe {
    max-width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    background: var(--base-300);
}

.post-content .video-placeholder {
    display: none;
    aspect-ratio: 16 / 9;
    background: var(--base-300) url("../../common/img/video-placeholder.svg") no-repeat center/contain;
}

.post-content .wpb_single_image,
.post-content .wpb_raw_code {
    padding-block: 16px 32px;
    margin: 0;
}

.post-content .wpb_single_image .vc_figure-caption,
.post-content .wp-caption-text {
    margin-top: 16px;
    font: var(--t2);
    color: var(--base-100);
}

.post-content figure {
    max-width: 100%;
    margin: 0;
}

.post-content .wp-caption {
    max-width: 100%;
}

.post-content .side-widget {
    position: absolute;
    left: calc(100% + 48px);

    width: min(22vw, 420px);
    font: var(--t2);
}

.side-widget__thumb {
    margin-bottom: 16px;
}

.post-content .vc_general.vc_cta3.vc_cta3-style-classic,
.accent-block {
    margin: 32px 0 48px;
    padding: 40px;

    font: var(--t2);
    color: var(--base-0);
    background: var(--base-700);
    border-radius: 0;
    border: none;
}
.post-content .vc_cta3 h2 {
    padding-top: 0;
}
.post-content .vc_cta3 p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1440px) {
    .post-content .wpb_content_element {
        margin-bottom: 12px;
    }

    .post-content .wpb_single_image,
    .post-content .wpb_raw_code {
        padding-block: 12px 28px;
        margin: 0;
    }

    .post-content .wpb_single_image .vc_figure-caption {
        margin-top: 12px;
    }

    .post-content .side-widget {
        left: calc(100% + 32px);
        width: min(22vw, 280px);
    }

    .side-widget__thumb {
        margin-bottom: 12px;
    }

    .post-content .vc_general.vc_cta3.vc_cta3-style-classic, .accent-block {
        margin-block: 28px 40px;
        padding: 32px;
    }
}

@media (max-width: 992px) {
    .post-content .wpb_single_image,
    .post-content .wpb_raw_code {
        padding-block: 12px 24px;
        margin: 0;
    }

    .post-content .wpb_single_image .vc_figure-caption {
        margin-top: 8px;
    }

    .post-content .side-widget {
        position: static;
        width: 100%;
        margin-block: 12px;
    }

    .post-content .vc_general.vc_cta3.vc_cta3-style-classic, .accent-block {
        margin-block: 12px 24px;
        padding: 24px;
    }
}





/* =========================== quote =========================== */

.quote__author {
    display: flex;
    align-items: center;
    gap: 24px;
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--base-800);
}

.quote__author-img {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
}

.quote__author-info p {
    margin-bottom: 0;
    color: var(--base-100);
}

.quote p:last-child {
    margin-bottom: 0;
}

@media (max-width: 1440px) {
    .quote__author {
        gap: 20px;
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .quote__author-img {
        width: 64px;
        height: 64px;
    }
}

@media (max-width: 992px) {
    .quote__author {
        gap: 16px;
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .quote__author-img {
        width: 48px;
        height: 48px;
    }
}





/* =========================== check-list =========================== */

.check-list__head {
    padding-bottom: 24px;
    margin-bottom: 24px;
    border-bottom: 3px solid var(--base-800);
}

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

.check-list__title {
    padding-bottom: 0;
}

.check-list__text {
    margin-top: 12px;
}

.check-list__label {
    position: relative;
    margin-bottom: 24px;
    cursor: pointer;
}

.check-list__label:last-child {
    margin-bottom: 0;
}

.check-list__label>input[type=checkbox] {
    position: absolute;
    left: 0;
    z-index: -1;
    opacity: 0;
}

.check-list__label span {
    display: flex;
    align-items: center;
    gap: 20px;
}

.check-list__label span::before {
    content: "";
    display: block;
    height: 24px;
    width: 24px;
    background: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3 21V3H21V21H3ZM5 19H19V5H5V19Z" fill="white"/></svg>') no-repeat center / contain;
    transition: all .25s ease;
}

.check-list__label input[type=checkbox]:checked+span::before {
    background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M10.6 16.2L17.65 9.15L16.25 7.75L10.6 13.4L7.75 10.55L6.35 11.95L10.6 16.2ZM3 21V3H21V21H3ZM5 19H19V5H5V19Z" fill="%2305A571"/></svg>');
}

.check-list__label input[type=checkbox]:checked+span {
    text-decoration: line-through;
    text-decoration-color: currentColor;
}

@media (max-width: 1440px) {
    .check-list__head {
        padding-bottom: 20px;
        margin-bottom: 20px;
    }

    .check-list__label {
        margin-bottom: 20px;
    }

    .check-list__label span {
        gap: 16px;
    }

    .check-list__label span::before {
        height: 20px;
        width: 20px;
    }
}

@media (max-width: 992px) {
    .check-list__head {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }

    .check-list__label {
        margin-bottom: 16px;
    }

    .check-list__label span {
        gap: 12px;
    }
}





/* =========================== prompt =========================== */

.prompt {
    font: var(--a2);
}

.prompt__title {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 3px solid var(--base-800);
    font: var(--a1);
    color: var(--red-800);
}

.prompt__text {
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: pre-wrap;
}
.prompt__text.show {
    -webkit-line-clamp: none;
}

.prompt__bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 3px solid var(--base-800);
}

@media (max-width: 1440px) {
    .prompt__title {
        padding-bottom: 16px;
        margin-bottom: 16px;
    }
    .prompt__bottom {
        padding-top: 16px;
        margin-top: 16px;
    }
}

@media (max-width: 992px) {
    .prompt__title {
        padding-bottom: 12px;
        margin-bottom: 12px;
    }
    .prompt__bottom {
        padding-top: 12px;
        margin-top: 12px;
    }
}





/* =========================== banner =========================== */

.banner_constructor {
    position: relative;
    margin-block: 48px 16px;
    padding: 72px 64px;

    color: var(--base-0);
    background: var(--base-700);
}

.banner_constructor::before,
.banner_constructor::after {
    content: "";
    position: absolute;
    left: 0;
    display: block;
    width: 100%;
    height: 18px;
}

.banner_constructor::before {
    top: 0;
    background: linear-gradient(to top, var(--base-600) 0% 33.34%, var(--base-500) 33.34% 66.67%, var(--base-400) 66.67% 100%);
}

.banner_constructor::after {
    bottom: 0;
    background: linear-gradient(to bottom, var(--base-600) 0% 33.34%, var(--base-500) 33.34% 66.67%, var(--base-400) 66.67% 100%);
}

.banner_constructor .image-wrapper {
    margin-bottom: 24px;
}

.banner_constructor .h3 {
    padding: 0 0 12px;
}

.banner_constructor .text-content {
    margin-bottom: 48px;
    font: var(--t1);
}

.banner_constructor .text-content p:last-child {
    margin-bottom: 0;
}

.banner_constructor .ads {
    margin-top: 64px;
    font: var(--t3);
    color: var(--base-100);
}

@media (max-width: 1440px) {
    .banner_constructor {
        padding: 50px 32px;
    }

    .banner_constructor .image-wrapper {
        margin-bottom: 20px;
    }

    .banner_constructor .h3 {
        margin-bottom: 8px;
    }

    .banner_constructor .text-content {
        margin-bottom: 32px;
    }

    .banner_constructor .ads {
        margin-top: 48px;
    }
}

@media (max-width: 992px) {
    .banner_constructor {
        margin-block: 40px 12px;
        padding: 50px 20px;
    }

    .banner_constructor .image-wrapper {
        margin-bottom: 16px;
    }

    .banner_constructor .h3 {
        margin-bottom: 4px;
    }

    .banner_constructor .text-content {
        margin-bottom: 24px;
    }

    .banner_constructor .ads {
        margin-top: 32px;
    }
}





/* =========================== recommendations =========================== */
.recommendations {
    margin-bottom: 48px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--base-600);
}

.recommendations__title {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 3px solid var(--base-600);
}

.recommendations .post-item:not(:last-child) {
    margin-bottom: 48px;
}

@media (max-width: 1440px) {
    .recommendations {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .recommendations__title {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .recommendations .post-item:not(:last-child) {
        margin-bottom: 32px;
    }
}

@media (max-width: 992px) {
    .recommendations {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .recommendations__title {
        margin-bottom: 24px;
        padding-bottom: 24px;
    }

    .recommendations .post-item:not(:last-child) {
        margin-bottom: 28px;
    }
}





/* =========================== faq =========================== */

.faq__list {
    margin: 32px 0 48px;
    padding: 0;
    list-style: none;
}

.faq__item {
    margin-bottom: 0 !important;
    padding: 24px;
    font: var(--t2);
    background: var(--base-700);
    border-bottom: 3px solid var(--base-800);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    font: var(--t2);
    font-weight: 600;
    cursor: pointer;
    transition: 0.5s;
}

.faq__question:after {
    content: "";
    display: block;
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11 21V13H3V11H11V3H13V11H21V13H13V21H11Z" fill="%2305A571"/></svg>') no-repeat center;
}
.faq__question.active:after {
    background-image: url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 13V11H20V13H4Z" fill="%2305A571"/></svg>');
}

.faq__answer {
    display: none;
    margin-top: 12px;
}

.faq__answer p:last-child {
    margin-bottom: 0;
}





/* =========================== share =========================== */

.post-share {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-block: 48px 16px;
}

.post-share__title {
    font: var(--a1);
    color: var(--base-100);
}

.post-share a {
    color: var(--base-0);
    text-decoration: none;
}

@media (max-width: 1440px) {
    .post-share {
        gap: 24px;
        margin-block: 40px 16px;
    }
}

@media (max-width: 992px) {
    .post-share {
        margin-block: 32px 12px;
    }
}





/* =========================== Новости =========================== */

.news {
    margin-block: 80px 48px;
}

.news__inner {
    position: relative;
}

.news__inner::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    display: block;
    width: 72px;
    height: 100%;
    background: linear-gradient(to left, var(--base-600) 0% 33.34%, var(--base-500) 33.34% 66.67%, var(--base-400) 66.67% 100%);
}

.news__title {
    margin-bottom: 40px;
    font: var(--a1);
    color: var(--red-800);
}

.news__list {
    max-width: 508px;
}

.news__list .post-item:not(:last-child) {
    margin-bottom: 40px;
}

.news__list .post-info {
    margin-bottom: 12px;
}

@media (max-width: 1440px) {
    .news {
        margin-block: 64px 32px;
    }

    .news__inner::after {
        width: 60px;
    }

    .news__title {
        margin-bottom: 24px;
    }

    .news__list {
        max-width: 356px;
    }

    .news__list .post-item:not(:last-child) {
        margin-bottom: 24px;
    }

    .news__list .post-info {
        margin-bottom: 4px;
    }
}

@media (max-width: 992px) {
    .news {
        margin-block: 52px 24px;
        padding: 20px;
    }

    .news__inner::after {
        display: none;
    }

    .news__list {
        max-width: unset;
    }

    .news__title {
        margin-bottom: 20px;
    }

    .news__list .post-item:not(:last-child) {
        margin-bottom: 20px;
    }
}

/* =========================== END Новости =========================== */





/* =========================== scroll-top =========================== */

@media (max-width: 992px) {
    .scroll-top {
        display: none;
        /*bottom: calc(24px + 53px);*/
    }
}





/* =========================== single-news =========================== */

.single-news article:not(:last-child) {
    margin-bottom: 100px;
}

@media (max-width: 1440px) {
    .single-news article:not(:last-child) {
        margin-bottom: 64px;
    }
}