.yr {
    --green: #0f5157;
    --text: #526166;
    --muted: #9a9d99;
    --cream: #f8f7f0;
    --border: #e4e3dc;
    --star: #ffb400;

    color: var(--text);
}

.yr * {
    box-sizing: border-box;
}


/* HEADER */

.yr__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 15px;
}

.yr__subtitle {
    margin-bottom: 10px;
    color: #BCBBB4;
    font-size: 16px;
    font-weight: 600;
}

.yr__title {
    margin: 0;
    color: #154952;
    font-size: 32px;
    font-weight: 600;
    line-height: 1;
    font-family: "Museo Sans Cyrl", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

.yr__yandex {
    display: flex;
    min-width: 360px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 4px 24px rgba(0, 0, 0, .04);
    border-radius: 8px;
    align-items: center;
    justify-content: space-between;
}

.yr__yandex-left {
    max-width: 105px;
}

.yr__yandex-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
}

.yr__yandex-middle {
    height: 100px;
    width: 1px;
    background-color: #D9D9D9;
}

.yr__yandex-right img {
    max-width: 175px;
}


.yr__yandex-right a {
    background-color: #FCFCFA;
    border: 1px #D8D8D8 solid;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    padding: 9px 40px;
    font-weight: 400;
}

.yr__yandex-rating {
    padding-right: 25px;
}

.yr__yandex-rating strong {
    display: block;
    margin-bottom: 6px;
    color: #46565b;
    font-size: 16px;
}

.yr__stars {
    color: var(--star);
    font-size: 19px;
    letter-spacing: 1px;
    white-space: nowrap;
    line-height: 1;
}

.yr__yandex-divider {
    width: 1px;
    margin: 0 25px 0 0;
    background: #ddd;
}

.yr__yandex-info {
    display: flex;
    flex-direction: column;
}

.yr__yandex-info strong {
    color: #303b3e;
}

.yr__yandex-info span {
    margin: 5px 0 12px;
    color: #999;
    font-size: 11px;
}

.yr__yandex-info a {
    padding: 8px 20px;
    border: 1px solid #ddd;
    color: #555;
    font-size: 12px;
    text-align: center;
    text-decoration: none;
}


/* FEATURED */

.yr-featured {
    display: grid;
    grid-template-columns: 41% 57%;
    min-height: 370px;
    padding: 24px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 2px 14px rgba(0,0,0,.03);
}

.yr-gallery {
    min-width: 0;
}

.yr-gallery__main {
    position: relative;
    height: 275px;
    overflow: hidden;
    border-radius: 15px;
    background: #eee;
}

.yr-gallery__image {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
    opacity: 0;
    object-fit: cover;
    transition: opacity .25s ease;
    cursor: pointer;
}

.yr-gallery__image.is-active {
    opacity: 1;
}

.yr-gallery__arrow {
    position: absolute;
    z-index: 5;
    top: 50%;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0,0,0,.1);
    color: #fff;
    font-size: 35px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.yr-gallery__arrow--prev {
    left: 16px;
}

.yr-gallery__arrow--next {
    right: 16px;
}

.yr-gallery__counter {
    position: absolute;
    z-index: 5;
    bottom: 10px;
    left: 50%;
    padding: 5px 12px;
    border-radius: 12px;
    background: rgba(0,0,0,.45);
    color: #fff;
    font-size: 13px;
    transform: translateX(-50%);
}

.yr-gallery__thumbs {
    display: flex;
    gap: 8px;
    margin-top: 9px;
    overflow: hidden;
}

.yr-gallery__thumb {
    width: 74px;
    height: 64px;
    flex: 0 0 74px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 11px;
    background: none;
    cursor: pointer;
}

.yr-gallery__thumb.is-active {
    border-color: var(--green);
}

.yr-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* featured text */

.yr-featured__content {
    display: flex;
    padding: 0 25px 4px 42px;
    flex-direction: column;
}

.yr-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.yr-author__avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.yr-author__name {
    display: block;
    color: var(--green);
    font-size: 18px;
    line-height: 1;
    margin-bottom: 5px;
}

.yr-author__date {
    margin-top: 7px;
    color: #546264;
    font-size: 13px;
    font-weight: 300;
    line-height: 1;
}

.yr-featured__text {
    margin-top: 25px;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 300;
}

.yr-read {
    width: max-content;
    margin-top: 28px;
    padding: 12px 22px;
    border: 0;
    border-radius: 9px;
    background: #dbe7e6;
    color: var(--green);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.yr-read:hover {
    background: #cbd2d1;
    transition: 0.3s;
}

.yr-read span {
    margin-left: 12px;
}

.yr-featured__quote {
    display: flex;
    align-items: center;
    align-self: flex-end;
    gap: 18px;
    margin-top: auto;
    color: #aaa79f;
    font-size: 13px;
}

.yr-featured__quote span {
    width: 70px;
    height: 1px;
    background: #c9c6bd;
}


/* SMALL CARDS */

.yr-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 18px;
}

.yr-card {
    display: flex;
    min-height: 245px;
    padding: 22px;
    flex-direction: column;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 2px 12px rgba(0,0,0,.03);
}

.yr-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
}

.yr-card__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
}

.yr-card__author strong {
    color: var(--green);
    font-size: 18px;
    line-height: 1;
}

.yr-card__meta {
    display: flex;
    align-items: center;
    gap: 24px;
}

.yr-card__meta .yr__stars {
    font-size: 17px;
}

.yr-card__meta span {
    color: #546264;
    font-size: 13px;
    font-weight: 300;
}

.yr-card__text {
    display: -webkit-box;
    margin-top: 20px;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    font-weight: 300;
}

.yr-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: auto;
}

.yr-card__photos {
    display: flex;
    gap: 10px;
}

.yr-card__photo {
    position: relative;
    width: 65px;
    height: 55px;
    overflow: hidden;
    border-radius: 9px;
}

.yr-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yr-card__photo span {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    inset: 0;
    background: rgba(13,72,77,.65);
    color: #fff;
    font-size: 15px;
}

.yr-card__read {
    padding: 0 0 4px;
    border: 0;
    border-bottom: 1px solid var(--green);
    background: none;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    height: 26px;
    font-size: 16px;
    transition: 0.3s;
}

.yr-card__read:hover {
    color: #6f8e90;
    border-color: #6f8e90;
    transition: 0.3s;
}

.yr-card__read span {
    margin-left: 6px;
}


/* ALL REVIEWS */

.yr__all {
    margin-top: 28px;
    text-align: center;
}

.yr__all a {
    display: inline-flex;
    gap: 14px;
    padding: 6px 22px;
    border: 1px solid var(--green);
    border-radius: 10px;
    color: var(--green);
    font-weight: 600;
    text-decoration: none;
    align-items: center;
    font-size: 16px;
}


/* MODAL */

.yr-modal {
    position: fixed;
    z-index: 99999;
    display: none;
    inset: 0;
}

.yr-modal.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.yr-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(11,38,40,.82);
}

.yr-modal__window {
    position: relative;
    z-index: 2;
    width: min(680px, calc(100vw - 30px));
    max-height: calc(100vh - 40px);
    padding: 30px 45px 18px;
    overflow-y: auto;
    border-radius: 18px;
    background: #fff;
}

.yr-modal__close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 45px;
    height: 45px;
    border: 0;
    background: none;
    color: var(--green);
    font-size: 44px;
    font-weight: 200;
    cursor: pointer;
}

.yr-modal__author {
    padding-right: 55px;
}

.yr-modal__text {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 300;
}


/* ФОТОГРАФИИ В МОДАЛКЕ */

.yr-modal-gallery {
    margin-top: 20px;
}

.yr-modal-gallery__photos {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.yr-modal-gallery__photo {
    width: 105px;
    height: 105px;
    flex: 0 0 105px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: #eee;
    cursor: pointer;
}

.yr-modal-gallery__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* RESPONSE */

.yr-response {
    margin-top: 20px;
    padding: 16px 20px;
    border-radius: 10px;
    background: #f8f7f1;
}

.yr-response__head {
    display: flex;
    align-items: center;
    gap: 15px;
}

.yr-response__head strong {
    color: #5b6568;
}

.yr-response__head span {
    color: #919898;
    font-size: 11px;
}

.yr-response__text {
    display: -webkit-box;
    margin-top: 8px;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.35;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}


/* MODAL FOOTER */

.yr-modal__footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 14px;
}

.yr-modal__yandex {
    padding: 7px 20px;
    border-radius: 8px;
    background: var(--green);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    gap: 13px;
    display: flex;
    align-items: center;
    transition: 0.3s;
}

.yr-modal__yandex:hover{
    color: #fff;
    background: #375f63;
    transition: 0.3s;
}

.yr-modal__close-button {
    padding: 6px 22px;
    border: 1px solid var(--green);
    border-radius: 8px;
    background: #fff;
    color: var(--green);
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

.yr-modal__close-button:hover {
    color: #9d6000;
    transition: 0.3s;
}

body.yr-modal-open {
    overflow: hidden;
}


@media (max-width: 900px) {

    .yr__head {
        display: block;
    }

    .yr__yandex {
        width: 100%;
        margin-top: 25px;
    }

    .yr-featured {
        grid-template-columns: 1fr;
    }

    .yr-featured__content {
        padding: 30px 5px 5px;
    }

    .yr-cards {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 600px) {
    .yr-card__author strong {
        font-size: 14px;
    }

    .yr__stars {
        font-size: 13px;
    }

    .yr-card__meta span {
        font-size: 9px;
    }

    .yr-card__meta {
        flex-direction: column;
        align-items: start;
        gap: 0px;
    }
    .yr-card__read {
        height: 17px;
        font-size: 10px;
    }
    .yr-card__bottom {
        margin-top: 10px;
    }
    .yr-response__head {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 0px;
    }
    .yr__all a {
        font-size: 11px;
    }


    .yr__title {
        font-size: 27px;
    }

    .yr__yandex {
        min-width: 0;
        padding: 15px;
    }

    .yr-featured {
        padding: 12px;
    }

    .yr-gallery__main {
        height: 240px;
    }

    .yr-featured__quote {
        display: none;
    }

    .yr-modal__window {
        width: 100%;
        max-height: 94vh;
        padding: 25px 20px 15px;
        border-radius: 15px 15px 0 0;
    }

    .yr-modal.is-open {
        align-items: flex-end;
    }

    .yr-modal__footer {
        flex-direction: column;
    }

    .yr-modal__yandex,
    .yr-modal__close-button {
        width: 100%;
        text-align: center;
        font-size: 11px;
    }
}

.trust-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 26px 0;
}

.trust-divider__line {
    width: 74px;
    height: 2px;
    flex-shrink: 0;

    background: #B1AFA2;
}

.trust-divider__text {
    color: #B1AFA2;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .trust-divider {
        gap: 14px;
        padding: 25px 0;
    }

    .trust-divider__line {
        flex: 1;
        width: auto;
        min-width: 30px;
    }

    .trust-divider__text {
        font-size: 14px;
        white-space: normal;
    }
}

/* Fancybox всегда выше модалки отзыва */
.fancybox__container {
    z-index: 1000000 !important;
}