/* Single Post Styles */

/* fix header margin-bottom for single post */
.header {
    margin-bottom: 20px;
}

body {
    overflow-x: visible;
}

/* post__path start */

.post__path {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 29px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.1;
    color: #CCCBD8;
    flex-wrap: wrap;
}

.post__path-current {
    color: #272737;
}

/* post__path end */

/* post__header start */

.post__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 55px;
    position: relative;
    background-color: #FFF;
}

.post__header::before {
    content: "";
    position: absolute;
    top: 50px;
    left: -672px;
    width: 886px;
    height: 775px;
    background: url('../img/last-left-x2.png') no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

.post__header::after {
    content: "";
    position: absolute;
    right: -380px;
    top: -270px;
    width: 682px;
    height: 710px;
    background: url('../img/last-right-x2.png') no-repeat right center;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 1260px) {
    .post__header::before {
        left: -622px;
    }
    
    .post__header::after {
        right: -313px;
    }
}


@media (max-width: 768px) {
    .post__header::before {
        top: 120px;
        left: -622px;
        width: 886px;
        height: 775px;
    }
    
    .post__header::after {
        top: 30px;
        right: -290px;
        width: 682px;
        height: 710px;
    }
}


.post__header-image {
    width: 60%;
    height: 100%;
    object-fit: cover;
    border-radius: 18px;
}

.post__header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-direction: column;

}

.post__header-content-title {
    font-size: 32px;
    font-weight: 600;
    line-height: 1.2;
    color: #262B48;
    margin-bottom: 12px;
}
.post__header-content-text {
    font-size: 20px;
    font-weight: 400;
    line-height: 1.3;
    color: #262B48;
    margin-bottom: 24px;
}

.post__header-content-tags {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.post__header-content-tag {
    padding: 12px;
    font-weight: 500;
    font-size: 14px;
    border-radius: 30px;
}

.post__header-content-details {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #A2A2AA;
}

@media (max-width: 768px) {
    .post__header {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: flex-start;
        gap: 16px;
        margin-bottom: 40px;
    }

    .post__header-image {
        width: 100%;
        height: auto;
        object-fit: cover;
        border-radius: 8px;
        margin-bottom: 0;
    }

    .post__header-content-title {
        font-size: 20px;
    }
    .post__header-content-text {
        font-size: 14px;
        margin-bottom: 12px;
    }   

}

/* post__header end */

.post__content {
    padding: 0 16px;
    box-sizing: border-box;
}

/* article start */
.post__article {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 145px;
    position: relative;
}

/* post__smm start */

.post__smm-sticky {
    position: absolute;
    left: -90px;
    height: 100%;
}

.post__smm {
    position: sticky;
    top: 140px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    gap: 12px;
}

.post__smm-item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border-radius: 70px;
    background: #E93F2E;
    transition: background 300ms ease;
    cursor: pointer;
}

.post__smm-item:hover {
    background: #cc3123;
}
@media (max-width: 768px) {

}
/* post__smm end */



/* side  start */
.post__side {
    width: 472px;
    position: sticky;
    top: 140px;
    flex-shrink: 0;
}

.post__side-banner {
    padding: 32px 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    border-radius: 16px;
    background: #FFF;
    box-shadow: 0px 77px 22px 0px rgba(221, 44, 42, 0.00), 0px 50px 20px 0px rgba(221, 44, 42, 0.00), 0px 28px 17px 0px rgba(221, 44, 42, 0.02), 0px 12px 12px 0px rgba(221, 44, 42, 0.03), 0px 3px 7px 0px rgba(221, 44, 42, 0.03);
    backdrop-filter: blur(102px);
    overflow: hidden;
}

.post__side-banner-logo {
    height: 32px;
    margin-bottom: 23px;
}

.post__side-banner-title {
    font-size: 24px;
    font-weight: 600;
    line-height: 130%;
    margin-bottom: 8px;
}

.post__side-banner-description {
    font-size: 16px;
    font-weight: 400;
    line-height: 130%;
    margin-bottom: 15px;
    max-width: 290px;
}

.post__side-banner-button {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 10px 40px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    background: radial-gradient(92.39% 92.39% at 22.06% 19.23%, #F9D1CD 0%, #EC5B4D 43%, #DB2525 69%, #E93F2E 85%, #F5B0A9 100%);
}

.post__side-banner-button:hover {
    background: #E93F2E;
}

.post__side-banner-img {
    position: absolute;
    bottom: 0;
    right: 0;
    height: 100%;
}

@media (max-width: 1350px) {
    .post__smm-sticky {
        display: none;
    } 
}

@media (max-width: 1260px) {
    .post__side {
        display: none;
    }   

    .post__article {
        display: block;
    }
    
    .post__content {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .post__article {
        margin-bottom: 50px;
    }
}


.post__side-menu {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 16px;
    border-radius: 16px;
    background: #FFF;

}

.post__menu-element {
    padding: 8px 16px;
    color: #A2A2AA;
    font-size: 20px;
    font-weight: 400;
    line-height: 120%;
    cursor: pointer;
}

.post__menu-element:hover {
    color: #E93F2E;
}

.post__menu-element.active {
    color: #272737;
    position: relative;
}

.post__menu-element.active::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: url('../img/menu-active.svg') no-repeat center center;
}

.menu-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* side  end */

/* banner start */

.post__banner {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 155px;
    position: relative;
    border-radius: 16px;
    background-color: #FFF;
}

.post__banner-wrapper {
    overflow: hidden;
    border-radius: 16px;
    position: relative;
    padding: 40px;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

.post__banner-content {
    max-width: 580px;
}

.post__banner-logo {
    height: 32px;
    margin-bottom: 32px;
}
.post__banner-description {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 12px;
}

.post__banner-title {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: #E93F2E;
    margin-bottom: 32px;
}

.post__banner-button {
    display: inline-block;
    text-decoration: none;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 13.5px 40px;
    color: #FFF;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    background: radial-gradient(92.39% 92.39% at 22.06% 19.23%, #F9D1CD 0%, #EC5B4D 43%, #DB2525 69%, #E93F2E 85%, #F5B0A9 100%);
}

.post__banner-button:hover {
    background: #E93F2E;
}

.post__banner-img {
    position: absolute;
    right: -6px;
    bottom: 0px;
    width: 576px;
    height: auto;
}

.post__banner-img-mobile {
    display: none;
}

.post__banner-circle,
.post__banner-rhombus {
    position: absolute;
}

.post__banner-circle {
    width: 113px;
    height: auto;
    top: -43px;
    left: 33%;
    z-index: -1;
}

.post__banner-rhombus {
    width: 35px;
    height: auto;
    bottom: -32px;
    left: 7px;
}

.post__banner::before {
    content: "";
    position: absolute;
    top: -142px;
    left: -193px;
    width: 1046px;
    height: 656px;
    background: url('../img/banner-back-x2.png') no-repeat left bottom;
    background-size: contain;
    pointer-events: none;
    z-index: -1;
}


@media (max-width: 1080px) {
    .post__banner-img {
        display: none;
    }

    .post__banner-img-mobile {
        display: block;
        position: absolute;
        right: -1px;
        top: -1px;
        height: 158px;
    }
}



@media (max-width: 768px) {

    .post__banner {
        margin-bottom: 40px;
        
    }

    .post__banner-wrapper {
        padding: 32px 24px;
    }


    .post__banner-content {
        max-width: 265px;
    }


    .post__banner-logo {
        height: 24px;
        margin-bottom: 24px;
    }
    .post__banner-description {
        font-size: 14px;
        margin-bottom: 12px;
        max-width: 240px;
    }
    
    .post__banner-title {
        font-size: 24px;
        line-height: 1.2;
        margin-bottom: 24px;
    }




    .post__banner-circle {
        width: 78px;
        height: auto;
        top: -10px;
        left: -12px;
        z-index: -1;
    }
    
    .post__banner-rhombus {
        width: 35px;
        height: auto;
        bottom: -20px;
        left: auto;
        right: 27px;
        transform: rotate(30deg);
    }
    
    .post__banner::before {
        content: "";
        position: absolute;
        top: -142px;
        left: -193px;
        width: 1046px;
        height: 656px;
        background: url('../img/banner-back-x2.png') no-repeat left bottom;
        background-size: contain;
        pointer-events: none;
        z-index: -1;
    }
}


/* banner end */







/* carousel start */

.post__carousel {
    margin-bottom: 65px;
}

.post__carousel-header {
    padding: 0 16px;
    margin-bottom: 24px;
}

.post__carousel__title {
    font-size: 24px;
    font-weight: 600;
}

/* carousel end */


/* Дефолтные отступы для контента поста */
.post__content p {
    font-size: clamp(14px, 2.5vw, 16px);
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1rem;
    margin-top: 0;
}

.post__content h1,
.post__content h2, 
.post__content h3,
.post__content h4,
.post__content h5,
.post__content h6 {
    font-size: clamp(20px, 3.5vw, 24px);
    font-weight: 500;
    line-height: 1.3;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

.post__content h1:first-child,
.post__content h2:first-child,
.post__content h3:first-child,
.post__content h4:first-child,
.post__content h5:first-child,
.post__content h6:first-child,
.post__content p:first-child {
    margin-top: 0;
}

.wp-block-image {
    margin: 40px 0;
    width: calc(100% + 32px);
    margin-left: -16px;
    height: auto;
}

/* Дефолтные отступы для контента поста end */