/* Блок изолирован от глобальных стилей Woodmart (кнопки, ссылки, типографика). */
.ig-reviews-section{max-width:1492px;margin:0 auto;font-family:system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;box-sizing:border-box;overflow:visible}
.ig-reviews-section *,.ig-reviews-section *::before,.ig-reviews-section *::after{box-sizing:border-box}
/* Та же ширина и центрирование, что у слайдера — левый край табов = левый край карточек */
.ig-reviews-tabs-wrap{width:100%;max-width:min(1360px,100%);margin:0 auto 28px}
.ig-reviews-tabs{display:flex;gap:4px;padding:6px;background:#ebebeb;border-radius:999px;width:fit-content;max-width:100%}
.ig-reviews-tab{display:inline-flex;align-items:center;gap:8px;padding:10px 18px;border:none!important;border-radius:999px!important;background:transparent!important;color:#000!important;font-family:"SF Pro Text","SF Pro Display",-apple-system,"Segoe UI",sans-serif!important;font-size:16px!important;font-weight:400!important;line-height:1.25!important;letter-spacing:normal!important;text-transform:none!important;min-height:0!important;box-shadow:none!important;cursor:pointer;transition:background .15s ease,box-shadow .15s ease}
.ig-reviews-tab:hover{background:rgba(255,255,255,.35)!important;color:#000!important}
.ig-reviews-tab.is-active{background:#fff!important;box-shadow:0 1px 3px rgba(0,0,0,.08)!important;color:#000!important}
.ig-reviews-tab .ig-icon{width:22px;height:22px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-size:11px;font-weight:700;flex-shrink:0}
.ig-reviews-tab .ig-icon--y{background:#fc3f1d}
.ig-reviews-tab .ig-icon--g{background:#2fad00}
/* Слайдер по ширине как табы; стрелки вне потока (absolute), иначе flex «съедает» ~124px и сужает карточки */
.ig-reviews-slider-wrap{position:relative;width:100%;max-width:min(1492px,100%);margin:0 auto;min-height:283px;--ig-arrow:50px;--ig-arrow-gap:12px;overflow:visible}
.ig-reviews-slider{position:relative;overflow:hidden;--slide-gap:16px;--slide-width:280px;width:100%;max-width:min(1360px,100%);margin:0 auto;min-width:0;touch-action:pan-y;cursor:grab}
.ig-reviews-slider.ig-reviews-dragging{cursor:grabbing!important;touch-action:none}
.ig-reviews-slider.ig-reviews-dragging *{user-select:none}
.ig-reviews-track{display:flex;gap:var(--slide-gap);transition:transform .35s ease}
.ig-review-card{flex:0 0 min(437px,var(--slide-width));width:min(437px,var(--slide-width));background:#fff!important;border:1px solid #e5e5e5!important;border-radius:24px!important;padding:24px 32px;height:283px;display:flex;flex-direction:column;min-width:0;box-shadow:none!important}
.ig-review-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:12px}
.ig-review-user{display:flex;gap:12px;min-width:0}
.ig-review-avatar{width:44px;height:44px;border-radius:50%;background:#e5e5e5;flex-shrink:0}
.ig-review-date{font-family:"Roboto",Arial,sans-serif;font-size:12px;font-weight:400;color:#474747}
.ig-review-name{font-family:"Roboto",Arial,sans-serif;font-size:16px;font-weight:500;color:#000}
.ig-review-stars{color:#ffd700;font-size:16px;line-height:1;flex-shrink:0}
.ig-review-text{font-family:"Inter",Arial,sans-serif;font-size:14px;font-weight:400;color:#000;line-height:1.5;margin:0;flex:1;min-height:0;padding-bottom:6px}
.ig-review-text-content{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}
.ig-review-card.is-expanded{height:auto;min-height:283px}
/* !important — иначе правила с clamp в @media (max-width:768px) перебивают разворот на мобилке. */
.ig-review-card.is-expanded .ig-review-text-content{display:block!important;overflow:visible!important;-webkit-line-clamp:unset!important;-webkit-box-orient:unset!important}
.ig-review-more{font-family:"Inter",Arial,sans-serif;font-size:14px;font-weight:700!important;color:#000!important;border:none!important;background:none!important;background-color:transparent!important;padding:0!important;margin:0!important;min-height:0!important;box-shadow:none!important;text-transform:none!important;letter-spacing:normal!important;cursor:pointer;display:inline;vertical-align:baseline;line-height:inherit;touch-action:manipulation;position:relative;z-index:2}
.ig-review-more:hover{color:#000!important;opacity:.85}
.ig-review-source{font-size:12px;color:#666!important;text-decoration:underline;margin-top:14px;display:block}
.ig-review-source:hover{color:#333!important}
.ig-reviews-empty{padding:24px;color:#666}
.ig-reviews-btn{position:absolute;top:50%;transform:translateY(-50%);width:var(--ig-arrow);height:var(--ig-arrow);padding:0!important;border:none!important;cursor:pointer;background:transparent!important;box-shadow:none!important;min-height:0!important;z-index:3}
/* Левый край слайдера совпадает с (100% − min(1360,100%))/2 — стрелка слева от колонки, без сужения трека */
.ig-reviews-btn--prev{left:calc((100% - min(1360px,100%)) / 2 - var(--ig-arrow-gap) - var(--ig-arrow))}
.ig-reviews-btn--next{right:calc((100% - min(1360px,100%)) / 2 - var(--ig-arrow-gap) - var(--ig-arrow))}
.ig-reviews-btn-inner{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%;background:#ebebeb!important;color:#333!important;font-size:22px!important;line-height:1!important;box-shadow:0 2px 10px rgba(0,0,0,.12)!important;transition:background .2s ease,box-shadow .2s ease,color .2s ease}
.ig-reviews-btn:hover .ig-reviews-btn-inner{background:#e0e0e0!important;color:#111!important;box-shadow:0 3px 12px rgba(0,0,0,.15)!important}
.ig-reviews-btn:disabled{opacity:.35;cursor:not-allowed}
.ig-reviews-btn:disabled .ig-reviews-btn-inner{box-shadow:none!important}
@media (max-width:900px){.ig-reviews-tabs-wrap,.ig-reviews-slider-wrap{max-width:100%}}
@media (max-width:768px){
  .ig-reviews-btn{display:none!important}
  .ig-reviews-tabs-wrap{width:100%;max-width:100%}
  .ig-reviews-tabs{width:100%;gap:3px;padding:4px!important;flex-wrap:nowrap}
  .ig-reviews-tab{flex:1 1 0;min-width:0;justify-content:center;padding:8px 8px!important;gap:5px!important;font-size:14px!important}
  .ig-reviews-tab .ig-icon{width:18px;height:18px;font-size:10px}
  .ig-review-card{height:auto!important;min-height:283px;padding:20px 20px 18px}
  /* На мобилке — 5 строк, затем «Ещё» (на десктопе — 4 строки в базовых стилях). */
  .ig-review-text-content{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:5!important;overflow:hidden!important}
}
@media (max-width:640px){
  .ig-reviews-tabs-wrap{width:100%;max-width:100%;margin-bottom:20px}
  .ig-reviews-tabs{width:100%;flex-wrap:nowrap;overflow-x:visible;scrollbar-width:none;-ms-overflow-style:none;gap:2px!important;padding:4px!important}
  .ig-reviews-tabs::-webkit-scrollbar{display:none}
  .ig-reviews-tab{white-space:nowrap;flex:1 1 0;min-width:0;padding:7px 6px!important;gap:4px!important;font-size:13px!important}
  .ig-reviews-slider-wrap{--ig-arrow:40px;--ig-arrow-gap:8px}
  .ig-review-card{height:auto;min-height:283px;padding:20px 20px 18px}
}
