/* Эксперт рекомендует — карточка в листинге и страница рекомендации */

.recommendation-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #eaeaea;
    height: 100%;
    align-self: stretch;
}

.recommendation-card__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
    min-height: 100%;
    height: 100%;
    padding: 21px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
}

.recommendation-card__inner::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(4, 23, 41, 0) 37.7%, rgba(4, 23, 41, 0.9) 64.9%);
    pointer-events: none;
}

.recommendation-card__badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 1px 6px;
    border-radius: 5px;
    background: #eaba87;
    color: #00141f;
    font: 400 12px/17px "Hero New", sans-serif;
    letter-spacing: -0.36px;
}

.recommendation-card__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.recommendation-card__expert {
    color: #eaba87;
    font: 500 14px/1.2 "Hero New", sans-serif;
}

.recommendation-card__title {
    color: #fff;
    font: 500 24px/1.2 "Hero New", sans-serif;
}

.recommendation-card__teaser {
    color: #f6f3ee;
    font: 400 12px/13.8px "Hero New", sans-serif;
}

.recommendation-card__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 56px;
    border-radius: 50px;
    background: #fff;
    color: #00141f;
    font: 600 16px/18px "Hero New", sans-serif;
}

@media (max-width: 767px) {
    .recommendation-card__inner {
        padding: 16px;
    }

    .recommendation-card__title {
        font-size: 18px;
    }

    .recommendation-card__btn {
        height: 48px;
    }
}

/* Список рекомендаций */
.recommendations-list-page {
    padding-top: 30px;
    padding-bottom: 60px;
}

.recommendations-list-page__title {
    margin: 0 0 40px;
    font: 500 36px/1.2 "Hero New", sans-serif;
    color: #00141f;
}

.recommendations-list-page__grid {
    margin-bottom: 40px;
}

/* Детальная страница — токены из Figma LPNmNCyiDPDBLBlVmtuRgG */
.recommendation-page {
    padding-bottom: 80px;
}

.recommendation-page > .grid-container {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* Hero: ширина контента 1260, фото справа + градиент */
.recommendation-hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    color: #fff;
    background: #041729;
}

.recommendation-hero__photo {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 42.857%;
    background-size: cover;
    background-position: center top;
}

.recommendation-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgb(4, 23, 41) 0%,
        rgb(4, 23, 41) 42%,
        rgba(4, 23, 41, 0.9) 52%,
        rgba(4, 23, 41, 0) 78%
    );
    pointer-events: none;
}

.recommendation-hero__content {
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    width: 100%;
    max-width: 680px;
    height: 100%;
    padding: 96px 80px 0;
}

.recommendation-hero__label {
    margin-bottom: 20px;
    font: 500 14px/17px "Hero New", sans-serif;
    color: #eaba87;
}

.recommendation-hero__title {
    margin: 0 0 20px;
    font: 600 48px/1.1 "Hero New", sans-serif;
    letter-spacing: -1.44px;
    color: #fff;
}

.recommendation-hero__text {
    margin-bottom: 20px;
    font: 400 18px/1.45 "Hero New", sans-serif;
    color: #fff;
}

.recommendation-hero__expert {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.recommendation-hero__expert-photo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1px solid #eaba87;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    box-sizing: border-box;
}

.recommendation-hero__expert-name {
    font: 500 15px/21px "Hero New", sans-serif;
    color: #fff;
}

.recommendation-hero__expert-desc {
    margin-top: 1px;
    font: 400 13px/18px "Hero New", sans-serif;
    color: #a2afb7;
}

.recommendation-hero__actions {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
}

.recommendation-hero__cta.btn {
    width: 230px;
    height: 56px;
    padding: 0 21px;
    border-radius: 50px !important;
    border: 1px solid #00141f !important;
    background: #fff !important;
    color: #00141f !important;
    font: 600 16px/18px "Hero New", sans-serif !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
}

.recommendation-hero__cta.btn:hover {
    background: #eaba87 !important;
    border-color: #eaba87 !important;
    color: #00141f !important;
}

.recommendation-hero__price {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.recommendation-hero__price-cur {
    font: 600 40px/1 "Hero New", sans-serif;
    letter-spacing: -1.2px;
    color: #fff;
}

.recommendation-hero__price-old {
    font: 600 19px/1 "Hero New", sans-serif;
    letter-spacing: -1.2px;
    color: #999;
    text-decoration: line-through;
}

.recommendation-story {
    display: grid;
    grid-template-columns: 602px 1fr;
    gap: 64px;
    align-items: start;
}

.recommendation-gallery__main {
    border: 1px solid #e5e5e5;
    overflow: hidden;
    margin-bottom: 20px;
    background: #f7f7f7;
}

.recommendation-gallery__main img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.recommendation-gallery__thumbs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.recommendation-gallery__slider {
    display: flex;
    gap: 10px;
    overflow: hidden;
    flex: 1;
}

.recommendation-gallery__thumb {
    flex: 0 0 81px;
    width: 81px;
    height: 81px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    position: relative;
    box-sizing: border-box;
}

.recommendation-gallery__thumb.is-active,
.recommendation-gallery__thumb:hover {
    border-color: #484dcd;
}

.recommendation-gallery__thumb--video .recommendation-gallery__play {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8.8px 0 8.8px 13.6px;
    border-color: transparent transparent transparent #fff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.recommendation-gallery__arrow {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c4c4c4;
}

.recommendation-story__eyebrow {
    margin-bottom: 22px;
    font: 400 12px/14px Arial, Helvetica, sans-serif;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #9b765c;
}

.recommendation-story__title {
    margin: 0 0 22px;
    font: 400 40px/1.15 "Hero New", sans-serif;
    letter-spacing: -1.2px;
    color: #222;
}

.recommendation-story__divider {
    width: 65px;
    height: 1px;
    margin-bottom: 22px;
    background: #b78b68;
}

.recommendation-story__body {
    font: 400 18px/1.55 "Hero New", sans-serif;
    color: #454545;
}

.recommendation-story__body p {
    margin: 0 0 18px;
}

.recommendation-story__sign {
    margin-top: 22px;
    font: 400 15px/1.7 "Hero New", sans-serif;
    color: #9b765c;
}

/* Impress: беж только у шапки и совета, плитки на белом, ширина = контент */
.recommendation-impress {
    overflow: hidden;
}

.recommendation-impress__head {
    background: #f5f2ec;
    text-align: center;
    padding: 59px 165px 50px;
}

.recommendation-impress__eyebrow {
    margin-bottom: 18px;
    font: 400 12px/14px Arial, Helvetica, sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9b765c;
}

.recommendation-impress__title {
    margin: 0;
    font: 400 30px/1.3 "Hero New", sans-serif;
    letter-spacing: -0.9px;
    color: #222;
}

.recommendation-impress__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 50px 68px;
    background: #fff;
}

.recommendation-impress__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 169px;
    margin: 15px;
    padding: 21px 0 26px;
    border-top: 0.8px solid #c9b49f;
    border-bottom: 0.8px solid #c9b49f;
    background: transparent;
}

.recommendation-impress__num {
    font: 400 13px/15px Arial, Helvetica, sans-serif;
    letter-spacing: 2px;
    color: #a27b5f;
}

.recommendation-impress__card-title {
    margin: 0;
    font: 500 21px/1.35 "Hero New", sans-serif;
    letter-spacing: -0.63px;
    text-transform: uppercase;
    color: #222;
}

.recommendation-impress__card-text {
    font: 400 15px/1.7 "Hero New", sans-serif;
    color: #555;
}

.recommendation-impress__card-text p {
    margin: 0;
}

.recommendation-advice {
    text-align: center;
    margin: 0;
    padding: 61px 251px;
    border: 1px solid #ddd6cc;
    background: #f5f2ec;
}

.recommendation-advice__eyebrow {
    margin-bottom: 18px;
    font: 400 12px/14px Arial, Helvetica, sans-serif;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #9b765c;
}

.recommendation-advice__quote {
    position: static;
    max-width: none;
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    font: 400 30px/1.35 "Hero New", sans-serif;
    letter-spacing: -0.9px;
    color: #222;
}

.recommendation-advice__quote:before {
    display: none;
}

.recommendation-advice__text {
    font: 400 16px/1.75 "Hero New", sans-serif;
    color: #555;
}

.recommendation-advice__text p {
    margin: 0;
}

.recommendation-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    padding: 45px 73px;
    background: #fff;
}

.recommendation-stats__item {
    text-align: center;
    margin: 10px;
    padding: 23px 16px 24px;
    border: 1px solid #d9d1c7;
    background: #fff;
}

.recommendation-stats__value {
    margin-bottom: 8px;
    font: 400 28px/1.15 Arial, Helvetica, sans-serif;
    color: #9b765c;
}

.recommendation-stats__label {
    font: 400 12px/1.15 Arial, Helvetica, sans-serif;
    letter-spacing: 1.5px;
    color: #555;
    text-transform: none;
}

.recommendation-product__heading {
    margin: 0 0 40px;
    text-align: center;
    font: 500 36px/1.15 "Hero New", sans-serif;
    color: #00141f;
}

.recommendation-product__card {
    display: grid;
    grid-template-columns: 560px 1fr;
    gap: 60px;
    border: 1px solid #e5e5e5;
    align-items: start;
}

.recommendation-product__image {
    position: relative;
    border-right: 1px solid #e5e5e5;
    padding: 21px;
    box-sizing: border-box;
}

.recommendation-product__image a {
    display: block;
    position: relative;
}

.recommendation-product__image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.recommendation-product__discount {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    padding: 1px 6px;
    background: #e31e24;
    color: #fff;
    font: 500 12px/17px "Hero New", sans-serif;
}

.recommendation-product__info {
    padding: 20px 40px 20px 0;
}

.recommendation-product__collection {
    display: inline-block;
    margin-bottom: 12px;
    font: 400 12px/14px "Hero New", sans-serif;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6b70eb;
    text-decoration: none;
}

.recommendation-product__title {
    margin: 0 0 16px;
    font: 500 36px/1.15 "Hero New", sans-serif;
}

.recommendation-product__title a {
    color: #00141f;
    text-decoration: none;
}

.recommendation-product__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 16px;
}

.recommendation-product__reviews-link,
.recommendation-product__meta .to-favorite {
    font: 400 14px/18px "Hero New", sans-serif;
    color: #6b70eb;
    text-decoration: none;
}

.recommendation-product__details {
    margin-bottom: 16px;
    font: 400 14px/18px "Hero New", sans-serif;
    color: #00141f;
}

.recommendation-product__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.recommendation-product__benefit {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #e31e24;
    overflow: hidden;
}

.recommendation-product__benefit-pct {
    padding: 6px 14px;
    background: #e31e24;
    color: #fff;
    font: 500 16px/20px "Hero New", sans-serif;
}

.recommendation-product__benefit-sum {
    padding: 6px 18px;
    color: #e31e24;
    font: 500 14px/20px "Hero New", sans-serif;
    background: #fff;
}

.recommendation-product__buttons {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 320px;
}

.recommendation-product__buttons .btn {
    width: 100%;
    min-width: 0;
    text-align: center;
}

.recommendation-page .recommendation-product__buttons .btn.to-cart {
    color: #fff;
}

.recommendation-page .recommendation-product__buttons .btn.to-cart span:first-child {
    display: block;
}

.recommendation-page .recommendation-product__buttons .btn.to-cart span:last-child {
    display: none;
}

.recommendation-page .recommendation-product__buttons .btn.to-cart.in-cart span:first-child {
    display: none;
}

.recommendation-page .recommendation-product__buttons .btn.to-cart.in-cart span:last-child {
    display: block;
}

.recommendation-product__link {
    font: 400 14px/18px "Hero New", sans-serif;
    color: #6b70eb;
    text-decoration: none;
}

.recommendation-reviews__layout {
    display: grid;
    grid-template-columns: 1fr 305px;
    gap: 80px;
    align-items: start;
}

.recommendation-reviews__title {
    margin: 0 0 32px;
    font: 500 36px/1.15 "Hero New", sans-serif;
    color: #00141f;
}

.recommendation-reviews__empty {
    font: 400 16px/1.5 "Hero New", sans-serif;
    color: #8a8a8a;
}

.recommendation-reviews__cta {
    position: sticky;
    top: 120px;
    padding: 40px 24px;
    border: 1px solid #eaeaea;
    text-align: center;
}

.recommendation-reviews__stars {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.recommendation-reviews__more {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}

.recommendation-similar .often-buy-title {
    text-align: center;
}

.recommendation-similar .product-item img {
    opacity: 1 !important;
}

.recommendation-similar .product-item .images-wrap,
.recommendation-similar .product-item .slide {
    min-height: 180px;
}

@media (max-width: 1279px) {
    .recommendation-page > .grid-container {
        gap: 48px;
    }

    .recommendation-hero__content {
        padding: 64px 40px 0;
        max-width: 560px;
    }

    .recommendation-hero__title {
        font-size: 36px;
    }

    .recommendation-story {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .recommendation-impress__head {
        padding: 48px 40px 40px;
    }

    .recommendation-impress__grid {
        padding: 40px 24px;
    }

    .recommendation-advice {
        padding: 48px 40px;
    }

    .recommendation-stats {
        padding: 32px 24px;
    }

    .recommendation-product__card {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .recommendation-product__info {
        padding: 20px 20px 20px 0;
    }

    .recommendation-reviews__layout {
        grid-template-columns: 1fr 260px;
        gap: 40px;
    }
}

@media (max-width: 1023px) {
    .recommendation-hero {
        height: auto;
        min-height: 520px;
    }

    .recommendation-hero__photo {
        left: 0;
        opacity: 0.45;
    }

    .recommendation-hero__gradient {
        background: linear-gradient(
            180deg,
            rgba(4, 23, 41, 0.55) 0%,
            rgba(4, 23, 41, 0.85) 45%,
            rgba(4, 23, 41, 0.96) 100%
        );
    }

    .recommendation-hero__content {
        max-width: none;
        height: auto;
        padding: 48px 24px 40px;
    }

    .recommendation-hero__title {
        font-size: 32px;
    }

    .recommendation-story {
        grid-template-columns: 1fr;
    }

    .recommendation-impress__grid {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }

    .recommendation-stats {
        grid-template-columns: 1fr;
        padding: 24px 16px;
    }

    .recommendation-product__card {
        grid-template-columns: 1fr;
    }

    .recommendation-product__image {
        border-right: 0;
        border-bottom: 1px solid #e5e5e5;
    }

    .recommendation-product__info {
        padding: 20px;
    }

    .recommendation-product__buttons {
        max-width: none;
    }

    .recommendation-reviews__layout {
        grid-template-columns: 1fr;
    }

    .recommendation-reviews__cta {
        position: static;
    }
}

@media (max-width: 767px) {
    .recommendation-page > .grid-container {
        gap: 40px;
    }

    .recommendation-hero__title {
        font-size: 28px;
        letter-spacing: -0.8px;
    }

    .recommendation-hero__actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .recommendation-hero__cta.btn {
        width: 100%;
    }

    .recommendation-story__title,
    .recommendation-product__title,
    .recommendation-product__heading,
    .recommendation-reviews__title,
    .recommendation-impress__title,
    .recommendations-list-page__title {
        font-size: 24px;
        letter-spacing: -0.5px;
    }

    .recommendation-impress__head {
        padding: 40px 20px;
    }

    .recommendation-advice {
        padding: 40px 20px;
    }

    .recommendation-advice__quote {
        font-size: 22px;
    }

    .recommendation-product__buttons .btn {
        width: 100%;
    }
}
