@font-face {
    font-family: 'Exo';
    src: url('/wp-content/themes/gosta/font/Exo/Exo20-SemiBoldItalic.woff2') format('woff2');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

/* Post Aside - Start */
.post-aside {
    position: relative;
    padding-top: 48px;
    height: 100%;
    width: calc(30% - 12px);
}

.post-aside__inner {
    display: flex;
    flex-direction: column;
    gap: 48px;
    position: sticky;
    top: 155px;
}

.page-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #fbfbfb;
    padding: 16px;
    margin-top: 32px;
    border-radius: 12px;
}

.page-tags .tag:before {
    content: "#";
    font-style: italic;
    margin-right: 2px;
    color: #595965;
}

/* Ads Banner - Start */
.ads-banner-1 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    background: #06065f;
    border-radius: 12px;
    overflow: hidden;
}

.ads-banner-1:before {
    content: "";
    display: flex;
    position: absolute;
    top: -17px;
    right: -67px;
    width: 245px;
    height: 245px;
    background: url(/wp-content/themes/gosta/img/banners/banner-main.webp);
    background-repeat: no-repeat;
    background-position: 0% 0%;
    background-size: contain;
    z-index: 1;
}

.ads-banner-1 * {
    color: #fff;
    z-index: 2;
}

.ads-banner-1 .h3 {
    z-index: 100;
    position: relative;
}

.ads-banner-1 p {
    font-size: 16px;
    line-height: 24px;
    margin: 16px 0 48px 0;
}

.ads-banner-1 .huge-g {
    position: absolute;
    left: -6px;
    top: -77px;
    color: transparent;
    font-size: 180px;
    line-height: 1;
    -webkit-text-stroke: 1px #0000ef;
    z-index: 1;
}

.ads-banner-2 {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    /* background: url(/wp-content/themes/gosta/img/ads/ads-banner-sidebar.webp);
	background-size: cover; */
    border-radius: 12px;
    overflow: hidden;
}

.background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    /* Помещает изображение позади остальных элементов */
    border-radius: 12px;
}

.ads-banner-2 p {
    font-size: 16px;
    line-height: 24px;
    margin: 16px 0 48px 0;
}

.slider {
    position: relative;
    overflow: hidden;
    /* Скрывает слайды, выходящие за пределы контейнера */
    width: 100%;
    /* Ширина слайдера */
    height: 400px;
    /* Высота слайдера, можно настроить под ваши нужды */
}

.slide {
    position: absolute;
    /* Позволяет накладывать слайды друг на друга */
    width: 100%;
    /* Ширина слайда равна ширине слайдера */
    height: 100%;
    /* Высота слайда равна высоте слайдера */
    transition: transform 0.5s ease, opacity 0.5s ease;
    /* Плавный переход для эффекта появления */
    opacity: 0;
    /* По умолчанию все слайды скрыты */
}

.slide.active {
    opacity: 1;
    /* Прозрачность активного слайда */
    transform: translate3d(0, 0, 0);
    /* Активный слайд по центру */
}

.slider-navigation {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ccc;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #333;
    /* Цвет активной точки */
}


.ca-seo-structure {
    height: 304px;
    overflow: hidden;
    position: relative;
    width: 100%;
}

.ca-seo-structure .ca-seo-slide {
    height: 100%;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 0;
    transform: translateX(100%);
    transition: opacity 1s ease, transform 1s ease;
    width: 100%;
}

.ca-seo-structure .ca-seo-slide.active {
    opacity: 1;
    transform: translateX(0);
    z-index: 1;
}

.ca-seo-structure .ca-seo-slide.past {
    opacity: 0;
    transform: translateX(-100%);
    z-index: 0;
}

.ca-seo-structure .ca-seo-slide-nav {
    padding: 20px 10px;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    z-index: 2;
    /* Убедитесь, что навигация поверх слайдов */
    display: flex;
    /* Используем flexbox для размещения элементов */
    justify-content: space-between;
    /* Размещаем элементы по краям */

    opacity: 0;
    /* Скрываем навигацию по умолчанию */
    transition: opacity 0.3s ease;
    /* Плавный переход */
    pointer-events: none;
}

.slider:hover .ca-seo-slide-nav {
    opacity: 1;
    /* Показываем навигацию при наведении */
    pointer-events: auto;
    /* Включаем события мыши на видимых элементах */
}

.ca-seo-structure .slide-prev {
    cursor: pointer;
    position: relative;
    /* Для правильного позиционирования псевдоэлемента */
    margin-left: 10px;
    /* Отступ слева для расстояния от края */
}

.ca-seo-structure .slide-prev::after {
    border-top: 1px solid #FBFBFB;
    border-left: 1px solid #FBFBFB;
    border-radius: 1px;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    transform: rotate(-45deg);
    /* Поворот для создания стрелки */
    position: absolute;
    /* Позиционирование относительно родителя */
    top: 50%;
    /* Центрируем по вертикали */
    left: 50%;
    /* Центрируем по горизонтали */
    transform: translate(-50%, -50%) rotate(-45deg);
    /* Центрируем стрелку */
}

.ca-seo-structure .slide-next {
    cursor: pointer;
    position: relative;
    /* Для правильного позиционирования псевдоэлемента */
    margin-right: 10px;
    /* Отступ справа для расстояния от края */
}

.ca-seo-structure .slide-next::before {
    border-top: 1px solid #FBFBFB;
    border-right: 1px solid #FBFBFB;
    border-radius: 1px;
    content: '';
    display: block;
    height: 20px;
    width: 20px;
    transform: rotate(45deg);
    /* Поворот для создания стрелки */
    position: absolute;
    /* Позиционирование относительно родителя */
    top: 50%;
    /* Центрируем по вертикали */
    left: 50%;
    /* Центрируем по горизонтали */
    transform: translate(-50%, -50%) rotate(45deg);
    /* Центрируем стрелку */
}



.ca-seo-structure .ca-seo-slide-dots {
    position: absolute;
    bottom: 4px;
    z-index: 1;
    text-align: center;
    width: 100%;

    opacity: 0;
    /* Скрываем навигацию по умолчанию */
    transition: opacity 0.3s ease;
    /* Плавный переход */
    pointer-events: none;
}

.slider:hover .ca-seo-slide-dots {
    opacity: 1;
    /* Показываем навигацию при наведении */
    pointer-events: auto;
    /* Включаем события мыши на видимых элементах */
}

.ca-seo-structure .slide-dot {
    border: 1px solid #FBFBFB;
    border-radius: 50%;
    cursor: pointer;
    display: inline-block;
    height: 8px;
    width: 8px;
    margin: 0 4px;
}

.ca-seo-structure .slide-dot.active {
    background-color: #DADAEC;
}


/* Ads Banner - End */

/* Aside posts - Start */
.featured-articles,
.popular-articles {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.post-aside .post-card {
    width: 100%;
}

.post-aside .post-tags {
    position: relative;
    top: 0;
    left: 0;
}

.post-aside .post-card>.post-title {
    height: 87px;
}

/* Aside posts - End */

/* Sub banner - Start*/
.sub-banner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 24px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--blue);
    color: #fbfbfb;
}

.sub-banner .huge-g {
    position: absolute;
    right: 15px;
    bottom: 0px;
    -webkit-text-stroke: 0.7px #00ffce;
    color: transparent;
    font-size: 165px;
    line-height: 100%;
}

/* Sub banner - End*/

/* Share - Start */
.share-article {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.share-article a.btn {
    padding: 14px 24px;
    width: 100%;
}

.share-article img {
    height: 16px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.share-article a:hover img {
    filter: brightness(1) invert(0);
}

/* Share - End */

.sticky-block {
    position: sticky;
    top: 180px;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 80px;
}

@media (max-width: 1279px) {
    .post-aside {
        width: 100%;
        padding-top: 0px;
        gap: 24px;
    }

    .tag-block {
        display: flex;
        flex-direction: column;
        order: 1;
    }

    .page-tags {
        margin-top: 16px;
    }

    .post-aside>.ads-banner-1,
    .featured-articles,
    .popular-articles {
        display: none;
    }

    .ads-banner-1 {
        padding: 20px;
    }

    .ads-banner-1 .btn {
        width: 100%;
    }

    .ads-banner-1 .h3 {
        width: 280px;
        font-size: 20px;
        line-height: 24px;
    }

    .ads-banner-1 .huge-g {
        -webkit-text-stroke: 1px #0000ef;
        bottom: 155px;
    }

    .ads-banner-1 p {
        width: 140px;
    }

    .sub-banner {
        padding: 20px;
        order: 3;
    }

    .sub-banner .huge-g {
        right: -65px;
        top: -53px;
        font-size: 190px;
        -webkit-text-stroke: 1px #00ffce;
    }

    .sub-banner .h4 {
        margin-bottom: 0px;
    }

    .sticky-block {
        position: relative;
        top: 0;
        gap: 24px;
        order: 2;
    }

    .share-article {
        gap: 16px;
    }
}

/* Post Aside - End */

/* Post Middle - Start */
.post-middle {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    padding-bottom: 48px;
    overflow: initial;
}

article {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 32px;
    width: calc(70% - 12px);
}

.post-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.post-author {
    width: 100%;
    color: #595965;
}

.post-author a {
    color: var(--dark-blue);
}

.post-navigation {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--gray);
    padding: 24px 38px;
    border-radius: 12px;
    overflow: hidden;
}

.post-navigation img {
    position: absolute;
    width: 115px;
    top: -52px;
    right: 67px;
}

.post-navigation .navigation-head {
    margin-bottom: 12px;
}

.post-navigation .navigation-inner {
    display: flex;
    flex-direction: column;
}

.post-navigation .h2:not(.navigation-head),
.post-navigation .h3,
.post-navigation .h4 {
    position: relative;
    padding-left: 20px;
    font-size: 16px;
    line-height: 20px;
    margin-top: 12px;
    font-weight: 400;
}

.post-navigation .h3 {
    margin-top: 8px;
}

.post-navigation .h3+.h3 {
    margin-top: 2px;
}

.post-navigation .h2:not(.navigation-head):before,
.post-navigation .h3:before,
.post-navigation .h4:before {
    content: "";
    position: absolute;
    top: 6px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 100%;
    background: var(--blue);
}

.post-navigation .h3 {
    padding-left: 36px;
}

.post-navigation .h4 {
    padding-left: 48px;
}

.post-navigation .h3:before {
    top: 8px;
    left: 23px;
    width: 5px;
    height: 5px;
}

.post-navigation .h4:before {
    top: 8px;
    left: 35px;
    width: 5px;
    height: 5px;
}

.gosta-post-en .post-content p {
    line-height: 22px;
}

.post-content p {
    width: 100%;
}

.post-content .video-item iframe {
    width: 100%;
    height: auto;
    border: none;
    aspect-ratio: 16/9;
}

.post-content .holiday-data {
    position: absolute;
    top: 35px;
    left: 0;
    background: #0000ef;
    color: #fff;
    padding: 20px 30px;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
    font-size: 18px;
    font-weight: 400;
}

table+figcaption {
    margin-top: 8px;
}

table tr td {
    min-width: auto;
}

@media (max-width: 1279px) {
    .post-middle {
        padding-bottom: 48px;
    }

    article {
        width: 100%;
    }

    .post-time {
        display: none !important;
    }

    .holiday-data {
        top: 25px;
        padding: 15px 25px;
        border-top-right-radius: 10px;
        border-bottom-right-radius: 10px;
        font-size: 16px;
    }

    .post-navigation {
        padding: 0;
    }

    .post-navigation img {
        width: 58px;
        top: -55px;
        right: 20px;
    }

    .post-navigation .h2:not(.navigation-head) {
        font-size: 14px;
        line-height: 20px;
        padding-left: 16px;
        margin-top: 10px;
    }

    .post-navigation .h3 {
        padding-left: 30px;
        font-size: 14px;
        line-height: 18px;
        font-weight: 400;
    }

    .post-navigation .h3:before {
        top: 6px;
        left: 19px;
    }

    .post-navigation .h4 {
        font-size: 14px;
    }

    .gosta-post-en .post-content p {
        line-height: 20px;
    }
}

/* Post Middle - End */

/* Chart start */
.synastry-container {
    background: #fff;
    border: 1px solid #000;
    min-width: 400px;
    max-width: 575px;
    padding: 20px 40px 40px !important;
    margin: 0 auto;
    --ratio: 1.5;
    --s0: 1rem;
    --s1: calc(var(--s0)* var(--ratio));
    --s2: calc(var(--s1)* var(--ratio));
    --s3: calc(var(--s2)* var(--ratio));
    --s4: calc(var(--s3)* var(--ratio));
    --s5: calc(var(--s4)* var(--ratio));
    --s6: calc(var(--s5)* var(--ratio));
    --gold: #ba9545;
    --cream: #f1ede8;
    --purple: #3c3744;
    --green: #35583b;
    --blue: #54a8d0;
    --red: #ed4337;
    --bg-black: #0f1217;
    --bg-gray: #f8f6f6;
    --text-black: #1b1b1b;
    --text-gray: #7a7a7a;
    --text-gray-light: #b7bec6;
    --button-primary: #1a291b;
    --button-secondary: #f1ede8;
    --button-black: #1c1c1c;
    --border-gray: #bbb;
    --border-gray-med: #e5e5e5;
    --border-gray-light: #f8f8f8;
}

.synastry-container .h1 {
    font-size: 2rem;
    margin-top: 0;
    color: #000;
}

.synastry-container .h1+.desc {
    margin: 15px 0;
}

.synastry-container .h2 {
    margin: 0;
    margin-bottom: calc(var(--s0) * var(--ratio));
    color: #ba9545;
    text-transform: uppercase;
    font-size: .8rem;
}

.synastry-container label {
    color: #000;
    display: block;
    width: 100%;
}

.synastry-container div {
    display: block;
    color: #000;
    width: 100%;
}

.synastry-container input {
    border: 0;
    width: 100%;
    border-bottom: 2px solid #bbb;
    padding-bottom: calc(var(--s-2) / var(--ratio));
    border-radius: 0;
    margin-top: var(--s0);
    line-height: 1.15;
    outline: none;
}

.synastry-container input:user-invalid {
    border-color: red;
}

.synastry-container section {
    margin-bottom: var(--s2);
}

.synastry-container .date-group input {
    width: 19%;
    margin: var(--s-4);
}

.synastry-container .time-group input {
    width: 18%;
    text-transform: uppercase;
}

/*.synastry-container {*/

.radio {
    display: grid;
    grid-template-columns: min-content auto;
    grid-gap: .5em;
    font-size: 1.1rem;
    padding-top: var(--s0);
    padding-bottom: var(--s-3);
    padding-left: var(--s0);
    width: auto;
}

.radio__label {
    line-height: 1.1
}

.radio__input {
    display: flex
}

.radio__input input {
    opacity: 0;
    width: 0;
    height: 0
}

.radio-before .radio__control {
    display: grid;
    place-items: center
}

.radio-before input+.radio__control::before {
    content: "";
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px #3b3644, inset 0 0 0 5px #3b3644;
    border-radius: 50%;
    transition: 180ms transform ease-in-out;
    transform: scale(0)
}

.radio-before input:checked+.radio__control::before {
    transform: scale(1)
}

.radio__control {
    display: block;
    width: 1rem;
    height: 1rem;
    border-radius: 100%;
    background-color: #fff;
    border: 2px solid var(--border-gray)
}

.checkbox {
    display: grid;
    grid-template-columns: min-content auto;
    grid-gap: .5rem;
    color: #000
}

.checkbox__control {
    display: inline-grid;
    width: 1rem;
    height: 1rem;
    border: 2px solid var(--border-gray);
    background-color: #fff;
    transition: border .1s ease-out;
    transition: background-color .1s ease-out
}

.checkbox__control svg {
    transition: transform 50ms ease-in 10ms;
    transform: scale(0);
    transform-origin: center
}

.checkbox__input {
    display: grid;
    grid-template-areas: "checkbox"
}

.checkbox__input>* {
    grid-area: checkbox
}

.checkbox__input input {
    opacity: 0;
    width: 1rem;
    height: 1rem
}

.checkbox__input input:checked+.checkbox__control svg {
    transform: scale(1)
}

.checkbox__input input:checked+.checkbox__control {
    border: 2px solid var(--purple);
    background-color: var(--purple)
}

.checkbox__input input:checkbox:disabled+.checkbox__control {
    color: var(--border-gray)
}

.checkbox--disabled {
    color: var(--border-gray)
}

.date-group,
.time-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.date-container>:last-child>* {
    justify-content: flex-start;
}

.date-group {
    margin-bottom: var(--s0);
}

.date-group input,
.time-group input {
    text-align: center;
    font-size: 1.1rem;
}

input,
.date-group {
    margin-top: var(--s0);
}

a.button {
    background-color: var(--button-primary);
    text-transform: uppercase;
    font-size: 1.1rem;
    padding: var(--s-1) var(--s3);
    border: none;
    color: #fff;
    height: 45px;
    display: block;
    text-align: center;
    line-height: 45px;
    text-decoration: none;
}
}

@media (max-width: 767px) {
    .synastry-container {
        min-width: 100%;
        padding: 20px !important;
    }
}

/* Chart End */

.author-content {
    display: flex;
    gap: 20px;
    align-items: center;
}

.author-content .wp-block-image {
    display: inline-block;
    border-radius: 50%;
    overflow: hidden;
}

.author-content .wp-block-image img {
    aspect-ratio: 1;
}

.author-content>*:last-child {
    flex: 1;
}

@media (max-width: 480px) {
    .author-content {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
}

.swiper,
.content-crousel {
    width: 100%;
    min-width: 0;
}

.swiper-wrapper,
.content-crousel .wp-block-gallery {
    align-items: flex-end;
    display: flex;
}

.content-crousel .wp-block-image {
    flex-shrink: 0;
    cursor: pointer;
}

.content-crousel .swiper-pagination {
    position: static;
    margin-top: 15px;
}

.swiper-pagination-bullet-active {
    background: var(--dark-blue);
}

/*.grid-ads {*/
/*    display: grid;*/
/*    grid-template-columns: 70% 30%;*/
/*    gap: 24px;*/
/*    grid-template-areas: "article ads"*/
/*    "article aside";*/
/*    grid-template-rows: max-content 1fr;*/
/*}*/
/*.grid-ads article {*/
/*    grid-area: article;*/
/*    width: 100%;*/
/*}*/
/*.grid-ads .post-aside {*/
/*    grid-area: aside;*/
/*    width: 100%;*/
/*    top: 0 !important;*/
/*    padding-top: 0;*/
/*}*/

/*.info-top {*/
/*    grid-area: ads;*/
/*    position: relative;*/
/*    border-radius: 12px;*/
/*    overflow: hidden;*/
/*    background: #E9E9E9;*/
/* height: 202px; */
/*    font-family: 'HarmonyOS Sans';*/
/*    aspect-ratio: 16 / 9;*/
/*}*/
/* .info-top * {
    color: #fff;
} */
/* .info-top:before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    background: rgba(0,0,0, 80%);
} */
/*.info-top__img {*/
/*    position: absolute;*/
/*    right: 0;*/
/*    top: 0;*/
/*    bottom: 0;*/
/*    z-index: 1;*/
/*    height: 100%;*/
/*}*/
/*.info-top__inner {*/
/*    position: relative;*/
/*    z-index: 2;*/
/*    padding-top: 23px;*/
/*    padding-left: 22px;*/
/*    padding-bottom: 20px;*/
/*    max-width: 265px;*/
/*}*/
/*.info-top__inner .logo {*/
/*    margin-bottom: 22px;*/
/*}*/
/*.info-top__title {*/
/*    font-size: 19px;*/
/*    color: #121212;*/
/*    font-weight: 900;*/
/*    margin-bottom: 12px;*/
/*}*/
/*.info-top__text {*/
/*    font-size: 11px;*/
/*    font-weight: 300;*/
/*    margin-bottom: 16px;*/
/*    color: #121212;*/
/*}*/
/*.info-top__text strong {*/
/*    font-weight: 700;*/
/*}*/
/*.info-top__btn {*/
/*    background: #121212;*/
/*    display: inline-flex;*/
/*    font-weight: 700;*/
/*    font-size: 13px;*/
/*    color: #E9E9E9;*/
/*    padding: 9px 25px;*/
/*    border-radius: 20px;*/
/*    transition: all .4s ease-in-out;*/
/*}*/
/*.info-top__btn:hover{*/
/*    background: #fff;*/
/*    color: #121212;*/
/*}*/

/*@media (max-width: 1279px) {*/
/*    .grid-ads {*/
/*        display: flex;*/
/*        gap: 24px;*/
/*    }*/
/*    .info-top {*/
/* height: 90px; */
/* aspect-ratio: unset; */
/*        width: 100%;*/
/*    }*/
/*    .info-top__img {*/
/* display: none; */
/*    }*/
/*    .info-top__inner {*/
/*        padding: 13px 22px;*/
/* max-width: 100%; */
/*    }*/
/*    .info-top__inner .logo {*/
/* display: none; */
/*    }*/
/*    .info-top__row {*/
/* display: flex;
        align-items: flex-end;
        gap: 10px;
        justify-content: space-between; */
/*    }*/
/*    .info-top__title {*/
/*        font-size: 14px;*/
/*        margin-bottom: 7px;*/
/*    }*/
/*    .info-top__text {*/
/*        font-size: 10px;*/
/* margin-bottom: 0; */
/*        line-height: 130%;*/
/*    }*/
/*    .info-top__text br {*/
/* display: none; */
/*    }*/
/*    .info-top__btn {*/
/*        font-size: 11px;*/
/*    }*/
/*}*/







/* CLS PROTECTION - ОБНОВЛЕННАЯ ВЕРСИЯ */

/* Базовые стили для всех изображений с защитой от CLS */
.post-content .wp-block-image img {
    display: block;
    max-width: 100%;
    height: auto;
    /* contain: layout style size; */
    background-color: #f5f5f5;
    /* Фон на случай медленной загрузки */
    /* aspect-ratio: 16 / 9; */
}

/* Убираем конфликтующие стили */
/* .post-content .wp-block-image img:not([width]):not([height]) {
    aspect-ratio: 16 / 9;
    min-height: 200px;
    background-color: #f5f5f5;
    object-fit: cover;
} */

/* Принудительное резервирование места для изображений с aspect-ratio */
.post-content .wp-block-image img[style*="aspect-ratio"] {
    /* contain: layout style size; */
    background-color: #f8f8f8;
}

/* Защита для figure элементов */
.post-content figure {
    margin: 0;
    contain: layout style;
    background-color: transparent;
}

/* Специальная обработка для picture элементов */
.post-content picture {
    display: block;
    contain: layout style;
    background-color: transparent;
}

.post-content picture img {
    width: 100%;
    height: auto;
    /* contain: layout style size; */
}

/* Защита от CLS во время загрузки */
.post-content .wp-block-image img[src=""],
.post-content .wp-block-image img:not([src]) {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 37%, #f0f0f0 63%);
    background-size: 400% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
    min-height: 200px;
    contain: layout style size;
}

@keyframes skeleton-loading {
    0% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Защита для WordPress блоков */
.post-content .wp-block-image {
    margin: 0;
    contain: layout style;
}

.post-content .wp-block-image img {
    width: 100%;
    height: auto;
    /* contain: layout style size; */
}

/* Защита для галерей */
.post-content .wp-block-gallery {
    contain: layout style;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    transition-property: transform;
    transition-timing-function: var(--swiper-wrapper-transition-timing-function, initial);
    box-sizing: content-box
}

.post-content .wp-block-gallery figure {
    contain: layout style;
    margin: 0;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    position: relative;
    transition-property: transform;
    display: block
}

.swiper-horizontal>.swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal,
.swiper-pagination-custom,
.swiper-pagination-fraction {
    bottom: -3px !important;
}

.swiper-pagination-bullet-active {
    background: var(--dark-blue) !important;
}

/* Дополнительная защита для LCP изображения */
/* .post-content img[fetchpriority="high"] {
    contain: layout style size;
    will-change: auto;
    background-color: #f8f8f8;
} */

/* Защита для изображений в начале контента (LCP) */
/* .post-content > *:first-child img,
.post-content > *:nth-child(2) img,
.post-content > p:first-of-type img {
    contain: layout style size;
    background-color: #f8f8f8;
} */

/* Мобильная оптимизация */
@media (max-width: 1279px) {
    .post-content .wp-block-image img {
        contain: layout style;
        min-height: 100px;
        /* Уменьшенная минимальная высота для мобильных */
    }

    .post-content .wp-block-image img:not([width]):not([height]) {
        min-height: 150px;
    }

    /* Скелетон-эффект для загружающихся изображений на мобильных */
    .post-content .wp-block-image img:not([src]) {
        min-height: 150px;
    }
}

/* Убираем старые конфликтующие стили */
.post-content .wp-block-image img[style*="aspect-ratio: 6.66"] {
    min-height: auto;
    /* Убираем фиксированную высоту */
    max-height: none;
    /* Убираем ограничение */
}

/* Специальная обработка баннерных изображений */
.post-content .wp-block-image img[style*="aspect-ratio"][data-discover-quality="standard"] {
    min-height: 60px;
}

/* Квадратные изображения */
.post-content .wp-block-image img[style*="aspect-ratio: 1"] {
    min-height: auto;
}

/* play-warning */
.category-gambling .post-content,
.category-gambling-en .post-content {
    padding-bottom: 0;
}

.play-warning .head {
    background: var(--blue);
    color: #FDFAFF;
    padding: 12px 16px;
    border-radius: 8px 8px 0 0;
}

.play-warning .content {
    border-radius: 0 0 8px 8px;
    background: #F6EFFF;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 16px;
}

.play-warning a {
    font-weight: bold;
    text-decoration: underline;
    color: var(--blue);
}

.play-warning strong {
    font-weight: bold;
}

/* support-category */

.support-category {
    padding: 20px;
    border-left: 5px solid var(--dark-blue);
    background: var(--gray);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.support-category > div {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* pros_cons style START */
figure.wp-block-table.pros_cons table tr td {
    background: rgba(255, 0, 0, 5%);
}

figure.wp-block-table.pros_cons table tr td:first-child {
    background: rgba(15, 206, 0, 5%);
}

figure.wp-block-table.pros_cons table:not(:has(thead)) tr:first-child td,
figure.wp-block-table.pros_cons table tr th {
    background: rgba(255, 0, 0, 25%);
    border-color: var(--gray-light);
    color: #242632;
}

figure.wp-block-table.pros_cons table tr td {
    border-color: var(--gray-light);
}

figure.wp-block-table.pros_cons table:not(:has(thead)) tr:first-child td:first-child,
figure.wp-block-table.pros_cons table tr th:first-child {
    background: rgba(15, 206, 0, 25%);
}

/* pros_cons style END */

.ny-countdown {
    background: #E90016;
    background: radial-gradient(circle, rgba(233, 0, 22, 1) 0%, rgba(117, 0, 11, 1) 66%, rgba(58, 0, 6, 1) 100%);
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.ny-countdown img {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
}

.ny-countdown__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    padding: 42px 0;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.ny-countdown .title {
    font-weight: 500;
    color: #8D000E;
    font-size: 18px;
    text-align: center;
    padding: 10px 24px;
    border-radius: 12px;
    background: #FFFFFF;
}

.ny-countdown .inner-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ny-countdown__row {
    display: flex;
    gap: 8px;
}

.ny-countdown__row .block {
    font-size: 24px;
    color: #6D000B;
    font-weight: 500;
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    background: #FFFFFF;
    flex-grow: 1;
    flex-basis: 0;
}

.ny-countdown__row .block.time {
    min-width: 160px;
}

.ny-countdown .date {
    font-weight: 400;
    color: #8D000E;
    font-size: 18px;
    text-align: center;
    padding: 10px 24px;
    border-radius: 12px;
    background: #FFFFFF;
}

@media (max-width: 650px) {
    .ny-countdown img {
        bottom: 0;
        right: auto;
        left: 50%;
        transform: translate(-50%, -50%);
        max-width: unset;
        height: 100%;
        top: 50%;
        width: auto;
    }

    .ny-countdown .title,
    .ny-countdown .date {
        font-size: 16px;
    }

    .ny-countdown__inner {
        padding: 50px 20px;
    }

    .ny-countdown .inner-block {
        width: 100%;
    }

    .ny-countdown__row .block {
        font-size: 22px;
    }
}