/* Детальная новость (novosty) */

/* Astra separate-container: дефолт 5.34em сверху/снизу — в макете нет */
.single-novosty.ast-separate-container .ast-article-single,
.single-novosty.ast-separate-container .ast-article-post,
.single-novosty .ast-separate-container .ast-article-single,
.single-novosty .ast-separate-container .ast-article-post {
    padding: 0;
    border-bottom: 0;
}

.single-novosty.ast-separate-container #primary {
    padding-top: 0;
    padding-bottom: 0;
}

.single-novosty .title-area,
.novosty-detail .title-area {
    padding: 26px 0 7px;
}

.single-novosty .title-area .breadcrumbs,
.novosty-detail .title-area .breadcrumbs {
    padding-bottom: 7px;
}

.single-novosty .title-area .entry-title,
.novosty-detail .title-area .entry-title {
    margin-bottom: 0;
}

.novosty-detail-intro {
    padding-top: 10px;
}

.novosty-detail-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 20px;
    margin: 0 0 20px;
}

.novosty-detail-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.novosty-detail-dates__item {
    font-family: "Spectral", serif;
    font-size: 16px;
    line-height: 1.5;
    color: rgba(67, 67, 67, 0.6);
    white-space: nowrap;
}

.novosty-rating-top {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.novosty-rating-top__value {
    font-family: "Spectral", serif;
    font-size: 16px;
    line-height: 1.5;
    color: #434343;
}

/* Звёзды read-only (верхний рейтинг) */
.novosty-stars {
    display: inline-flex;
    align-items: center;
}

.novosty-star {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px 18px;
}

.novosty-star--empty {
    background-image: url("../../images/novosty/star-top-empty.svg");
}

.novosty-star--full {
    background-image: url("../../images/novosty/star-top-filled.svg");
}

.novosty-star--partial {
    position: relative;
    background-image: url("../../images/novosty/star-top-empty.svg");
}

.novosty-star--partial::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url("../../images/novosty/star-top-filled.svg") no-repeat center / 18px 18px;
    clip-path: inset(0 calc(100% - var(--fill, 50%)) 0 0);
}

/* TOC: плоский список h2, как в макете 175:35 / 175:235 */
.novosty-toc {
    margin: 0 0 28px;
    max-width: 912px;
}

.novosty-toc__list {
    margin: 0;
    padding-left: 0;
    list-style: none;
}

.novosty-toc__item {
    position: relative;
    margin: 0;
    padding-left: 27px;
}

.novosty-toc__item::before {
    content: "\2022";
    position: absolute;
    left: 8px;
    color: #af855b;
    font-size: 18px;
    line-height: 1.5;
}

.novosty-toc__link {
    font-family: "Spectral", serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #434343;
    text-decoration: none;
}

.novosty-toc__link:hover,
.novosty-toc__link:focus {
    color: #af855b;
    text-decoration: underline;
    text-underline-position: from-font;
}

.single-novosty .title-area .container-custom,
.novosty-detail.title-area .container-custom,
.single-novosty .novosty-detail-intro.container-custom,
.single-novosty .my-page-content.container-custom,
.novosty-detail.my-page-content.container-custom {
    max-width: 910px;
}

.single-novosty .my-page-content.container-custom,
.novosty-detail.my-page-content.container-custom {
    overflow: visible;
}

.single-novosty .entry-content h2.novosty-heading,
.single-novosty .entry-content h2,
.single-novosty .entry-content h2 a,
.novosty-detail .entry-content h2,
.novosty-detail .entry-content h2 a {
    font-family: "Spectral", serif !important;
    font-weight: 500 !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    color: #434343 !important;
    margin: 1.4em 0 0.35em;
    scroll-margin-top: 80px;
}

.single-novosty .entry-content h3.novosty-heading,
.single-novosty .entry-content h3,
.single-novosty .entry-content h3 a,
.novosty-detail .entry-content h3,
.novosty-detail .entry-content h3 a {
    font-family: "Spectral", serif !important;
    font-weight: 500 !important;
    font-size: 28px !important;
    line-height: 1.25 !important;
    color: #434343 !important;
    margin: 1.2em 0 0.3em;
    scroll-margin-top: 80px;
}

.single-novosty .entry-content p,
.novosty-detail .entry-content p {
    font-family: "Spectral", serif;
    font-size: 16px;
    line-height: 1.5;
    color: #434343;
}

/* Блок оценки */
.novosty-rate-wrap {
    background: #f5f5f5;
    padding: 30px 0;
    margin: 40px 0 0;
}

.my-page-content .novosty-rate-wrap {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.novosty-rate {
    box-sizing: border-box;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
    padding: 18px 16px 20px;
    background: #fff;
    border: 1px solid #af855b;
    text-align: center;
}

.novosty-rate__title {
    font-family: "Spectral", serif;
    font-size: 20px;
    line-height: 1.3;
    color: #434343;
    margin: 0 0 8px;
}

.novosty-rate__meta {
    font-family: "Spectral", serif;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(67, 67, 67, 0.8);
    margin: 0 0 14px;
}

.novosty-rate__stars {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.novosty-rate__star {
    box-sizing: border-box;
    width: 20px;
    height: 20px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background-color: transparent !important;
    box-shadow: none !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    background-image: url("../../images/novosty/star-rate-empty.svg");
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.novosty-rate__star:hover,
.novosty-rate__star:focus,
.novosty-rate__star.is-hover,
.novosty-rate__star.is-active {
    background-color: transparent !important;
    border-color: transparent !important;
    color: inherit;
    background-image: url("../../images/novosty/star-rate-filled.svg");
}

.novosty-rate.is-rated .novosty-rate__star,
.novosty-rate.is-busy .novosty-rate__star {
    cursor: default;
    pointer-events: none;
}

.novosty-rate__message {
    margin-top: 10px;
    font-family: "Spectral", serif;
    font-size: 14px;
    color: #434343;
}

.novosty-rate__message.is-error {
    color: #a94442;
}

.novosty-breadcrumbs__sep {
    opacity: 0.7;
}

/* Навигация prev/next между новостями */
.single-novosty nav.post-navigation {
    margin: 24px 0 0;
    padding: 16px 0 0;
    border-top: 1px solid #eee;
    overflow: visible;
}

.single-novosty.ast-separate-container nav.post-navigation {
    padding-left: 0;
    padding-right: 0;
}

.single-novosty nav.post-navigation .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.single-novosty nav.post-navigation .nav-previous,
.single-novosty nav.post-navigation .nav-next {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
}

.single-novosty nav.post-navigation .nav-next {
    text-align: right;
}

.single-novosty nav.post-navigation .nav-previous a,
.single-novosty nav.post-navigation .nav-next a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    height: auto;
    line-height: 1.5;
    font-family: "Spectral", serif;
    font-size: 16px;
    color: #434343;
    text-align: inherit;
    white-space: nowrap;
    background: transparent;
}

.single-novosty nav.post-navigation .nav-next a {
    justify-content: flex-end;
    margin-left: auto;
}

.single-novosty nav.post-navigation a:hover,
.single-novosty nav.post-navigation a:focus {
    color: #af855b;
}

.single-novosty nav.post-navigation .ast-left-arrow,
.single-novosty nav.post-navigation .ast-right-arrow {
    flex-shrink: 0;
    line-height: 1;
}

@media (max-width: 420px) {
    .single-novosty nav.post-navigation .nav-links {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .single-novosty nav.post-navigation .nav-previous,
    .single-novosty nav.post-navigation .nav-next {
        width: 100%;
        text-align: left;
    }

    .single-novosty nav.post-navigation .nav-previous {
        margin-bottom: 0;
    }

    .single-novosty nav.post-navigation .nav-previous a,
    .single-novosty nav.post-navigation .nav-next a {
        width: auto;
        justify-content: flex-start;
    }

    .single-novosty nav.post-navigation .nav-next a {
        margin-left: 0;
    }
}

/* Товары: 175:99 / 175:71 / 175:130 / 175:297 */
.novosty-related {
    margin: 70px 0 30px;
    overflow: visible;
}

.novosty-related--inline {
    margin: 28px 0;
}

.entry-content .novosty-related {
    max-width: 100%;
}

.novosty-related__title {
    margin: 0 0 16px;
    padding: 0;
    font-family: "Spectral", serif;
    font-weight: 500 !important;
    font-size: 32px !important;
    line-height: normal !important;
    color: #434343 !important;
    text-align: center;
}

.novosty-related__slider {
    position: relative;
}

.novosty-related__item {
    isolation: isolate;
    background: #f5f5f5;
    text-align: center;
}

.novosty-related__link {
    display: block;
    padding: 24px 12px 20px;
    text-decoration: none;
    color: #434343;
}

.novosty-related__link:hover,
.novosty-related__link:focus {
    color: #434343;
    text-decoration: none;
}

.novosty-related__photo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 140px;
    margin: 0 0 16px;
}

.novosty-related__slider.owl-carousel .owl-item img,
.novosty-related__image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 140px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.novosty-related__name {
    display: block;
    margin: 0 0 6px;
    font-family: "Spectral", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #434343;
}

.novosty-related__price,
.novosty-related__price .amount,
.novosty-related__price ins {
    font-family: "Spectral", serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: #af855b;
    text-decoration: none;
}

.novosty-related__price del {
    margin-right: 6px;
    color: rgba(67, 67, 67, 0.45);
    text-decoration: line-through;
}

.novosty-related__slider.owl-carousel .owl-nav {
    display: block;
}

.novosty-related__slider.owl-carousel .owl-nav button {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 40px;
    height: 40px;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 0;
    transform: translateY(-50%);
}

.novosty-related__slider.owl-carousel .owl-nav button:hover,
.novosty-related__slider.owl-carousel .owl-nav button:focus {
    opacity: 0.7;
    transform: translateY(-50%);
}

.novosty-related__slider.owl-carousel .owl-nav button span {
    display: none;
}

.novosty-related__slider.owl-carousel .owl-nav button img {
    display: block;
    width: 40px;
    height: 40px;
}

.novosty-related__slider.owl-carousel .owl-nav .owl-prev {
    left: -46px;
}

.novosty-related__slider.owl-carousel .owl-nav .owl-next {
    right: -46px;
}

.novosty-related__slider.owl-carousel .owl-nav .owl-prev img {
    transform: rotate(180deg);
}

.novosty-related__slider.owl-carousel .owl-dots {
    display: none;
}

@media (min-width: 841px) {
    .novosty-related__slider.owl-carousel .owl-nav button:hover,
    .novosty-related__slider.owl-carousel .owl-nav button:focus {
        background: transparent !important;
    }
}

@media (max-width: 840px) {
    .single-novosty .title-area,
    .novosty-detail .title-area {
        padding-bottom: 24px;
    }

    .novosty-detail-intro {
        padding-top: 20px;
    }

    .single-novosty .entry-content h2.novosty-heading,
    .single-novosty .entry-content h2,
    .single-novosty .entry-content h2 a,
    .novosty-detail .entry-content h2,
    .novosty-detail .entry-content h2 a {
        font-size: 28px !important;
    }

    .single-novosty .entry-content h3.novosty-heading,
    .single-novosty .entry-content h3,
    .single-novosty .entry-content h3 a,
    .novosty-detail .entry-content h3,
    .novosty-detail .entry-content h3 a {
        font-size: 22px !important;
    }

    .novosty-related__slider.owl-carousel .owl-nav button {
        border-radius: 50% !important;
    }

    .novosty-related__slider.owl-carousel .owl-nav button img {
        display: none !important;
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-prev {
        left: -16px;
        background: url("../../images/novosty/chevron-circle-left.svg") no-repeat center / 40px 40px !important;
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-prev:hover,
    .novosty-related__slider.owl-carousel .owl-nav button.owl-prev:focus {
        background: url("../../images/novosty/chevron-circle-left.svg") no-repeat center / 40px 40px !important;
        opacity: 0.85;
        transform: translateY(-50%);
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-next {
        right: -16px;
        background: url("../../images/novosty/chevron-circle-right.svg") no-repeat center / 40px 40px !important;
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-next:hover,
    .novosty-related__slider.owl-carousel .owl-nav button.owl-next:focus {
        background: url("../../images/novosty/chevron-circle-right.svg") no-repeat center / 40px 40px !important;
        opacity: 0.85;
        transform: translateY(-50%);
    }
}

@media (max-width: 480px) {
    .single-novosty .title-area,
    .novosty-detail .title-area {
        padding-bottom: 26px;
    }

    .novosty-detail-meta {
        gap: 20px;
    }

    .single-novosty .entry-content h2.novosty-heading,
    .single-novosty .entry-content h2,
    .single-novosty .entry-content h2 a,
    .novosty-detail .entry-content h2,
    .novosty-detail .entry-content h2 a {
        font-size: 24px !important;
    }

    .novosty-related {
        margin-top: 50px;
    }

    .novosty-related__photo {
        height: 110px;
        margin-bottom: 12px;
    }

    .novosty-related__slider.owl-carousel .owl-item img,
    .novosty-related__image {
        max-height: 110px;
    }

    .novosty-related__link {
        padding: 16px 8px 14px;
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-prev {
        left: -12px;
    }

    .novosty-related__slider.owl-carousel .owl-nav button.owl-next {
        right: -12px;
    }
}
