
/* =========================================================
   Общие настройки
   ========================================================= */
    * {
        box-sizing: border-box;
    }

    body {
        margin: 0;
        background: #EEEEEE;
        color: #2b2b2b;
        font-family: Arial, Helvetica, sans-serif;
    }

    .container {
        width: 100%;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 15px;
    }

    .sr-page-btn {
        appearance: none;
        -webkit-appearance: none;

        border: none;
        background: none;

        padding: 0;

        cursor: pointer;

        color: #222;
        font-size: 16px;
        font-weight: 400;
    }

    .sr-page-btn.is-active {
        color: #BF4250;
        font-weight: 700;
    }

    .sr-page-btn:disabled {
        opacity: 0.4;
        cursor: default;
    }

    .sr-pagination-dots {
        display: inline-flex;
        align-items: center;
        padding: 0 6px;
        color: #666666;
        font-weight: 600;
    }

    #pagination-container {
        display: flex;
        align-items: center;
        gap: 26px;
        flex-wrap: wrap;
    }

    .sr-page-btn:first-child,
    .sr-page-btn:last-child {
        font-size: 28px;
        line-height: 1;
        font-weight: 300;
    }

    .sr-page-btn:hover {
        color: #BF4250;
    }

/* =========================================================
   Шапка
   ========================================================= */
    .sr-header {
        position: sticky;
        top: 0;
        z-index: 1000;

        background: #3C4854;
        min-height: 82px;
    }

    .sr-header__container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 12px 15px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .sr-header__logo {
        height: 55px;
        display: block;
    }

    .sr-header__back {
        color: #ffffff;
        text-decoration: none;
        font-size: 15px;
        font-weight: 600;
    }

    .sr-header__back:hover {
        color: #CFBFA6;
    }

/* =========================================================
   Блок заголовка
   ========================================================= */

   .sr-hero {
        margin: 30px 0 20px;
    }

    .sr-title {
        margin: 0 0 10px;
        font-size: 32px;
        font-weight: 700;
    }

    .sr-subtitle {
        margin: 0;
        color: #666666;
        font-size: 15px;
    }

/* =========================================================
   Блок статистики
   ========================================================= */
   .sr-stats {
        background: #ffffff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
    }

    .sr-stats__main {
        margin-bottom: 15px;
    }

    .sr-stats__rating {
        font-size: 46px;
        font-weight: 700;
        color: #BF4250;
    }

    .sr-stats__total {
        margin-top: 8px;
        font-size: 18px;
        color: #666666;
    }

    .sr-stats__text-count {
        margin-top: 4px;
        font-size: 15px;
        color: #666;
    }

    .sr-stats__updated {
        margin-top: 12px;
        font-size: 13px;
        color: #888;
    }

    .sr-stats__sources {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
/* =========================================================
   Счетчик площадок
   ========================================================= */
   .sr-source-counter {
        display: flex;
        align-items: center;
        gap: 8px;

        background: #F8F2DA;

        border-radius: 10px;
        padding: 8px 12px;
    }

    .sr-source-counter img {
        width: 26px;
        height: 26px;
        object-fit: contain;
    }
/* =========================================================
   Панель фильтров
   ========================================================= */
   .sr-toolbar {
        display: flex;
        justify-content: space-between;
        gap: 15px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }

/* =========================================================
   Сортировка
   ========================================================= */    
   .sr-sort {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-top: 5px;
    }

    .sr-sort select {
        padding: 8px 12px;
    }
/* =========================================================
   Карточки отзывов
   ========================================================= */

    .sr-list {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }

    .sr-card {
        background: #ffffff;
        border: 1px solid #e6e6e6;
        border-radius: 12px;
        padding: 18px 22px;
    }

    .sr-card__head {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        margin-bottom: 10px;
    }

    .sr-author {
        display: flex;
        align-items: flex-start;
        min-width: 0;
    }

    .sr-author__meta {
        min-width: 0;
    }

    .sr-author__name {
        font-size: 16px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 4px;
    }

    .sr-stars {
        font-size: 18px;
        color: #f2b01e;
        line-height: 1;
    }

    .sr-side {
        display: flex;
        align-items: center;
        gap: 10px;
        flex-shrink: 0;
    }

    .sr-date {
        font-size: 13px;
        color: #6b6b6b;
    }

    .sr-source {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        text-decoration: none;
    }

    .sr-source__icon {
        width: 34px;
        height: 34px;
        border-radius: 50%;
        border: 1px solid #e6e6e6;
        object-fit: contain;
        background: #ffffff;
    }

    .sr-source__ext {
        color: #6b6b6b;
    }

    .sr-card__body {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .sr-text {
        font-size: 15px;
        line-height: 1.5;
        white-space: pre-wrap;
    }

    .sr-gallery {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .sr-gallery__item {
        width: 88px;
        height: 88px;
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e6e6e6;
        background: #ffffff;
        cursor: pointer;
        padding: 0;
    }

    .sr-gallery__item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .sr-product {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-top: 12px;
        border-top: 1px solid #eeeeee;
    }

    .sr-product__img {
        width: 60px;
        height: 80px; /* 3:4 */
        border-radius: 10px;
        overflow: hidden;
        border: 1px solid #e6e6e6;
        flex-shrink: 0;
    }

    .sr-product__img img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
    }

    .sr-product__info {
        display: flex;
        flex-direction: column;
        gap: 3px;
    }

    .sr-product__name {
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        color: #2b2b2b;
        line-height: 1.35;
    }

    .sr-product__name:hover {
        text-decoration: underline;
    }

    .sr-product__variant {
        font-size: 13px;
        color: #7a7a7a;
        line-height: 1.3;
    }

    .sr-reply {
        border-top: 1px solid #eeeeee;
        padding-top: 12px;
    }

    .sr-reply__summary {
        cursor: pointer;
        font-size: 14px;
        font-weight: 600;
        color: #6b6b6b;
    }

    .sr-reply__body {
        margin-top: 10px;
        padding: 12px;
        background: #f8f8f8;
        border: 1px solid #ececec;
        border-radius: 10px;
    }

    .sr-reply__text {
        line-height: 1.5;
    }

/* =========================================================
   Футер
   ========================================================= */   
    .sr-footer {
        margin-top: 40px;
        background: #3C4854;
        color: #ffffff;
    }

    .sr-footer__container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px 15px;
        text-align: center;
        font-size: 14px;
    }




/* =========================================================
   Lightbox
   ========================================================= */

    .sr-lightbox-open {
        overflow: hidden;
    }

    .sr-lightbox[hidden] {
        display: none;
    }

    .sr-lightbox {
        position: fixed;
        inset: 0;
        z-index: 9999;
    }

    .sr-lightbox__backdrop {
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.75);
    }

    .sr-lightbox__dialog {
        position: absolute;
        inset: 0;

        display: flex;
        align-items: center;
        justify-content: center;

        padding: 30px;
    }

    .sr-lightbox__image {

        max-width: min(1000px, 80vw);
        max-height: 80vh;

        border-radius: 12px;

        background: #fff;

        display: block;
    }

    .sr-lightbox__close {

        position: absolute;

        top: 20px;
        right: 20px;

        width: 42px;
        height: 42px;

        border: 0;

        border-radius: 50%;

        background: rgba(255,255,255,.95);

        font-size: 28px;

        cursor: pointer;
    }

    .sr-lightbox__nav {

        position: absolute;

        top: 50%;

        transform: translateY(-50%);

        width: 48px;
        height: 48px;

        border: 0;

        border-radius: 50%;

        background: rgba(255,255,255,.95);

        font-size: 32px;

        cursor: pointer;
    }

    .sr-lightbox__content {
        position: relative;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .sr-lightbox__nav--prev {
        left: -60px;
    }

    .sr-lightbox__nav--next {
        right: -60px;
    }

    .sr-lightbox__close:hover,
    .sr-lightbox__nav:hover {
        background: #ffffff;
    }


/* =======================================
   Распределение оценок
======================================= */

    .sr-stats {
        display: flex;
        align-items: center;
        gap: 40px;
        flex-wrap: wrap;
    }

    .sr-stats__main {
        min-width: 180px;
    }

    .sr-stats__distribution {
        flex: 0 0 420px;
    }

    .sr-stats__right {

        width: 260px;

        display: flex;
        flex-direction: column;
        gap: 12px;

    }

    .sr-rating-row {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 6px;
    }

    .sr-rating-stars {
        width: 70px;
        text-align: right;
        flex-shrink: 0;
        font-size: 13px;
        color: #f2b01e;
        white-space: nowrap;
    }

    .sr-rating-bar {
        flex: 1;
        height: 8px;
        background: #e3e3e3;
        border-radius: 20px;
        overflow: hidden;
    }

    .sr-rating-bar__fill {
        height: 100%;
        background: #BF4250;
        border-radius: 20px;
    }

    .sr-rating-count {
        width: 40px;
        text-align: right;
        font-size: 13px;
        color: #555;
    }

/* =======================================
   Блок площадок
======================================= */

    .sr-sources-title {

        margin: 0;

        font-size: 14px;
        color: #666;

        line-height: 1.4;

    }

    .sr-source-counter {

        text-decoration: none;
        color: inherit;

        transition:
            transform .15s ease,
            box-shadow .15s ease;

    }

    .sr-source-counter:hover {

        transform: translateY(-2px);

        box-shadow:
            0 2px 8px rgba(0,0,0,.08);

    }

/* =========================================================
   Мобильные версии
   ========================================================= */  
   @media (max-width: 768px) {

        .sr-header__container {
            flex-direction: row;
            justify-content: space-between;
            align-items: center;
        }

        .sr-header__logo {
            height: 50px;
        }

        .sr-header__back {
            font-size: 13px;
        }

        .sr-title {
            font-size: 18px;
            line-height: 1.25;
            margin-bottom: 12px;
        }

        .sr-stats {
            padding: 15px;
            flex-direction: column;
            align-items: stretch;
            gap: 10px;
        }

        .sr-stats__rating {
            font-size: 24px;
        }

        .sr-toolbar {
            flex-direction: column;
            align-items: stretch;
        }

        .sr-sort select {
            width: 100%;
            max-width: 250px;
        }

        .sr-subtitle {
            font-size: 15px;
        }

        .sr-stats__distribution {
            flex: none;
            width: 100%;
            min-width: 0;
        }

        .sr-stats__right {
            width: 100%;
        }

        .sr-rating-row {
            margin-bottom: 4px;
        }

        .sr-lightbox__dialog {
            padding: 15px;
        }

        .sr-lightbox__image {
            max-width: 95vw;
            max-height: 75vh;
        }

        .sr-lightbox__nav {
            width: 40px;
            height: 40px;
            font-size: 26px;
        }

    }
