/* ═══ REVIEWS MODAL ═══ */
.modal-reviews {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .3s ease;
    padding: 20px;
}
.modal-reviews.active {
    opacity: 1; pointer-events: all;
}
.rm-inner {
    background: #faf6f3;
    border-radius: 28px;
    padding: 36px;
    max-width: 820px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    transform: scale(0.92) translateY(20px);
    transition: transform .4s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.rm-inner::-webkit-scrollbar { width: 4px; }
.rm-inner::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 4px; }
.modal-reviews.active .rm-inner {
    transform: scale(1) translateY(0);
}
.rm-close {
    position: absolute; top: 16px; right: 16px;
    background: rgba(0,0,0,0.05);
    border: none; border-radius: 50%;
    width: 40px; height: 40px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all .2s; z-index: 10;
}
.rm-close:hover { background: rgba(0,0,0,0.1); transform: rotate(90deg); }

/* ═══ HERO ═══ */
.rm-hero {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}
.rm-hero-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.rm-big-rating {
    font-size: 56px;
    font-weight: 900;
    color: #2d2d2d;
    line-height: 1;
}
.rm-big-stars {
    font-size: 18px;
    color: #f5a623;
    letter-spacing: 2px;
    margin: 4px 0 8px;
}
.rm-total {
    font-size: 13px;
    color: #888;
}
.rm-total b { color: #555; }

/* Распределение */
.rm-distrib { width: 100%; margin-top: 12px; }
.rm-dist-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}
.rm-dist-row span {
    font-size: 10px;
    color: #999;
    min-width: 22px;
}
.rm-dist-row span:last-child { text-align: right; }
.rm-dist-bar {
    flex: 1;
    height: 4px;
    background: rgba(0,0,0,0.06);
    border-radius: 4px;
    overflow: hidden;
}
.rm-dist-fill {
    height: 100%;
    background: #f5a623;
    border-radius: 4px;
    transition: width 1s ease;
}

/* Награды */
.rm-hero-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.rm-awards {
    display: flex;
    gap: 10px;
}
.rm-award {
    width: 80px;
    height: 80px;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rm-award-ya {
    background: #f5f5f5;
    border: 1px solid #eee;
}
.rm-award-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.rm-award-dk {
    background: linear-gradient(160deg, #0c1a33, #152847);
    border: 1px solid rgba(212,162,76,0.2);
}
.rm-award-dk-inner { text-align: center; }
.rm-aw-label {
    font-size: 6px;
    font-weight: 800;
    color: #D4A24C;
    letter-spacing: 1px;
}
.rm-aw-year {
    font-size: 14px;
    font-weight: 900;
    color: #D4A24C;
    letter-spacing: 2px;
}
.rm-aw-score {
    font-size: 9px;
    font-weight: 700;
    color: #D4A24C;
}
.rm-award-av {
    background: linear-gradient(160deg, #e8f7ff, #fff);
    border: 1px solid rgba(0,170,255,0.15);
    gap: 4px;
}
.rm-award-av span {
    font-size: 7px;
    font-weight: 700;
    color: #00638f;
    text-align: center;
    line-height: 1.2;
}
.rm-yandex-widget {
    opacity: 0.8;
    transition: opacity .2s;
}
.rm-yandex-widget:hover { opacity: 1; }

/* ═══ ВИДЕО СТОРИС ═══ */
.rm-video-section {
    margin-bottom: 20px;
}
.rm-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-bottom: 12px;
}
.rm-stories {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x mandatory;
}
.rm-stories::-webkit-scrollbar { height: 0; }
.rm-story {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.rm-story-ring {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e8879a, #f5a623, #e8879a);
    padding: 3px;
    transition: transform .2s;
}
.rm-story:hover .rm-story-ring {
    transform: scale(1.08);
}
.rm-story-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #faf6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    color: #888;
    border: 2px solid #faf6f3;
}
.rm-story-name {
    font-size: 10px;
    font-weight: 600;
    color: #666;
}

/* Сторис оверлей */
.rm-story-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s;
}
.rm-story-overlay.active {
    opacity: 1;
    pointer-events: all;
}
.rm-story-close {
    position: absolute;
    top: 20px; right: 20px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 44px; height: 44px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: background .2s;
}
.rm-story-close:hover { background: rgba(255,255,255,0.25); }
.rm-story-progress {
    position: absolute;
    top: 12px; left: 20px; right: 20px;
    height: 3px;
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.rm-story-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 0;
    transition: width 0.1s linear;
}
.rm-story-video {
    max-width: 360px;
    max-height: 80vh;
    border-radius: 20px;
    object-fit: cover;
}
.rm-story-author {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* ═══ ТАБЫ ═══ */
.rm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.rm-tab {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.5);
    font-size: 12px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all .2s;
}
.rm-tab:hover { background: rgba(255,255,255,0.8); }
.rm-tab.active {
    background: #2d2d2d;
    color: #fff;
    border-color: #2d2d2d;
}
.rm-tab.active svg rect { opacity: 0.7; }
.rm-tab-count {
    font-size: 10px;
    opacity: 0.6;
}

/* ═══ MASONRY ═══ */
.rm-masonry {
    columns: 2;
    column-gap: 14px;
}
.rm-review {
    break-inside: avoid;
    background: rgba(255,255,255,0.7);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(0,0,0,0.04);
    transition: all .2s;
}
.rm-review:hover {
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.rm-review.hidden {
    display: none;
}
.rm-rev-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.rm-rev-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.rm-rev-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.rm-rev-name {
    font-size: 13px;
    font-weight: 700;
    color: #2d2d2d;
}
.rm-rev-meta {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 10px;
    color: #999;
}
.rm-rev-stars {
    font-size: 11px;
    color: #f5a623;
    letter-spacing: 1px;
    flex-shrink: 0;
}
.rm-rev-text {
    font-size: 13px;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* ═══ CTA ═══ */
.rm-cta {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(0,0,0,0.06);
    display: flex;
    justify-content: center;
}
.rm-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 28px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s;
}
.rm-cta-ya {
    background: #FC3F1D;
    color: #fff;
}
.rm-cta-ya:hover {
    background: #e0351a;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252,63,29,0.3);
}
