/* ===== ОСНОВА БЛОКА ===== */

.price-section {
  padding: 80px 40px;
  background-color: #595959;
  box-sizing: border-box;
  font-family: "Tilda Sans", Arial, sans-serif;
  color: #ffffff;
}

.price-layout {
  max-width: 1460px;
  margin: 0 auto;
  display: flex;
  gap: 80px;
}

/* ===== ЛЕВАЯ КОЛОНКА (ДЕСКТОП) ===== */

.price-sidebar {
  min-width: 260px;
}

.price-sidebar-title {
  font-size: 52px;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.price-sidebar-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* пункт списка категорий */
.price-group-tab {
  font-size: 20px;
  line-height: 1.3;
  cursor: pointer;
  opacity: 0.7;
  padding-left: 18px;
  border-left: 1px solid transparent;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}

/* активный пункт */
.price-group-tab.active {
  opacity: 1;
  transform: translateX(4px);
  border-left-color: #ff6b2c;
  color: #ff6b2c;
}

/* ===== ПРАВАЯ ЧАСТЬ ===== */

.price-main {
  flex: 1;
}

.price-content {
  position: relative;
}

/* обёртка — обычный поток, высота = высоте активной панели */
.price-groups-wrapper {
  position: relative;
  max-width: 85%;
}

@media screen and (max-width:960px){
    .price-groups-wrapper {
      max-width: 100%;
}
}

/* панель одной категории:
   по умолчанию скрыта, но остаётся в потоке, чтобы высота считалась от активной */
.price-group-panel {
  display: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* активная панель — видна и анимируется */
.price-group-panel.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

/* список карточек внутри категории */
.price-cards {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ===== КАРТОЧКА УСЛУГИ ===== */

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease;
}

.price-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.price-card-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.price-card-price {
  text-align: right;
  font-size: 22px;
  font-weight: 600;
  white-space: nowrap;
}

.price-card-price-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.65;
}

/* ===== МОБИЛЬНЫЙ SELECT ===== */

.price-mobile-filter {
  display: none;        /* включаем только на мобиле */
  margin-bottom: 20px;
  border: 1px solid #fe7a59;
  border-radius: 999px;
}

/* чтобы не вылазил за границы */
/* ===== МОБИЛЬНЫЙ SELECT С ГАЛОЧКОЙ ===== */

.price-mobile-select {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 48px 12px 16px; /* место под стрелку справа */
  font-size: 16px;
  border-radius: 999px;
  border: none;
  outline: none;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;

  /* кастомная галочка */
  background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%23ffffff' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
  background-size: 14px 9px;
}


/* ===== АДАПТИВ ===== */

@media (max-width: 960px) {
  .price-layout {
    flex-direction: column;
    gap: 40px;
  }

  /* скрываем левую колонку, показываем селект */
  .price-sidebar {
    display: none;
  }

  .price-mobile-filter {
    display: block;
  }

  .price-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .price-card-price {
    text-align: left;
  }

  .price-section {
    padding: 50px 20px;
  }
}

@media (max-width: 480px) {
  .price-sidebar-title {
    font-size: 36px;
  }

  .price-card-title {
    font-size: 18px;
  }

  .price-card-price {
    font-size: 18px;
  }
}

/* ============================
   БЛОК-СБРОС (обязательно)
============================ */
.bg-review-block,
.bg-review-block * {
    box-sizing: border-box;
}
.bg-review-block input,
.bg-review-block textarea,
.bg-review-block select {
    font: inherit;
}

/* ============================
   КОРНЕВОЙ БЛОК
============================ */
.bg-review-block {
    font-family: var(--t-text-font);
    width: 100%;
    overflow: hidden;
    background: #595959;
}

.bg-review-block__container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 60px;
}

/* ============================
   ЛЕЙБЛ
============================ */
.bg-reviews-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 14px;
    border-radius: 8px;
    background: #FE7A59;
    color: #ffffff;
    font-family: var(--t-headline-font);
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ============================
   ЗАГОЛОВОК
============================ */
.bg-reviews-title {
    font-family: var(--t-headline-font);
    font-size: 62px;
    line-height: 1.2;
    font-weight: 600;
    letter-spacing: 0;
    color: #FE7A59;
    text-transform: uppercase;
    margin: 20px 0 0;
}

/* ============================
   СТРОКА УПРАВЛЕНИЯ (рейтинг + стрелки)
============================ */
.bg-review-block__controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 32px 0 40px;
    flex-wrap: wrap;
}

/* ============================
   РЕЙТИНГ КОМПАНИИ
============================ */
.bg-review-rating {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #FE7A59;
}

.bg-review-rating__value {
    font-family: var(--t-headline-font);
    font-size: 58px;
    line-height: 0.86;
    font-weight: 500;
    letter-spacing: -0.06em;
    color: #fff;
}

.bg-review-rating__right {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 2px;
}

.bg-review-rating__stars {
    color: #f6c42e;
    font-size: 24px;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.bg-review-rating__count {
    font-family: var(--t-text-font);
    font-size: 16px;
    line-height: 1.15;
    color: #fff;
    white-space: nowrap;
}

/* ============================
   СТРЕЛКИ НАВИГАЦИИ
============================ */
.bg-review-block__arrows {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bg-review-block__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 2px solid #FE7A59;
    border-radius: 50px;
    background: transparent;
    color: #FE7A59;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, opacity 0.25s ease, transform 0.25s ease;
}

.bg-review-block__arrow:hover {
    background: #FE7A59;
    color: #ffffff;
}

.bg-review-block__arrow.is-disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* ============================
   СЛАЙДЕР — КОНТЕЙНЕР
============================ */
.bg-review-cards {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 20px;
    border-radius: 20px;
    background: #fe7a59;
}

/* ============================
   СЛАЙДЕР — ВЬЮПОРТ
============================ */
.bg-review-block__viewport {
    overflow-x: auto;
    overflow-y: hidden;
    cursor: grab;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    user-select: none;
}

.bg-review-block__viewport::-webkit-scrollbar {
    display: none;
}

.bg-review-block__viewport.is-dragging {
    cursor: grabbing;
    scroll-behavior: auto;
}

/* ============================
   СЛАЙДЕР — ТРЕК
============================ */
.bg-review-block__track {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
}

/* ============================
   КАРТОЧКА ОТЗЫВА
============================ */
.bg-review-card {
    flex: 0 0 450px;
    height: 375px;
    padding: 26px 24px 22px;
    border-radius: 10px;
    background: #fff;
    color: #222;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bg-review-card__stars {
    margin-bottom: 42px;
    color: #f0bc0e;
    font-size: 25px;
    line-height: 1;
    letter-spacing: -1px;
    white-space: nowrap;
}

.bg-review-card__text {
    font-family: var(--t-text-font);
    font-size: 16px;
    line-height: 1.36;
    display: -webkit-box;
    -webkit-line-clamp: 7;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bg-review-card__bottom {
    margin-top: auto;
}

.bg-review-card__meta {
    display: none;
}

/* Кнопка внутри карточки — переопределяем .t-btnflex для контекста */
.bg-review-card__button {
    width: 100%;
    min-height: 58px;
    border: 2px solid #fe7a59;
    border-radius: 5px !important;
    background: transparent !important;
    padding: 14px 18px;
    text-decoration: none !important;
    color: #fe7a59 !important;
    font-family: var(--t-text-font);
    font-size: 16px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.25s ease, color 0.25s ease;
    justify-content: center;
}

.bg-review-card__button:hover {
    background: #fe7a59 !important;
    color: #fff !important;
}

.bg-review-card__button .t-btnflex__text {
    color: inherit;
}

/* Пустое состояние */
.bg-review-cards__empty {
    font-family: var(--t-text-font);
    font-size: 18px;
    line-height: 1.4;
    color: #FE7A59;
    padding: 40px 0;
}

/* ============================
   1. ДЕСКТОП 1440+ (по умолчанию)
============================ */

/* ============================
   2. ДЕСКТОП 1200–1439
============================ */
@media screen and (max-width: 1599px) and (min-width: 1200px) {
    
    .bg-review-block__container {
        max-width: 1200px;
        padding: 0 20px;
    }
    
    .bg-reviews-title {
        font-size: 50px;
    }

    .bg-review-rating__value {
        font-size: 54px;
    }

    .bg-review-rating {
        gap: 14px;
    }

    .bg-review-rating__stars {
        font-size: 22px;
    }

    .bg-review-card {
        flex: 0 0 310px;
    }

    .bg-review-card__button {
        min-height: 56px;
        font-size: 14px;
        padding: 13px 16px;
    }
}

/* ============================
   3. ПЛАНШЕТЫ 640–1199 (две карточки)
============================ */
@media screen and (max-width: 1199px) and (min-width: 640px) {
    .bg-review-block__container {
        padding: 0 10px;
    }
    
    .bg-reviews-title {
        font-size: 45px;
    }

    .bg-review-rating {
        gap: 14px;
    }

    .bg-review-rating__value {
        font-size: 56px;
    }

    .bg-review-block__track {
        gap: 16px;
    }
    
    .bg-review-block__arrows {
        width: 100%;
        display: none;
        justify-content: flex-end;
    }

    .bg-review-card {
        flex: 0 0 calc(50% - 8px);
        height: 425px;
        padding: 24px 22px 22px;
    }

    .bg-review-card__stars {
        margin-bottom: 36px;
        font-size: 23px;
    }

    .bg-review-card__text {
        font-size: 15px;
    }

    .bg-review-card__button {
        min-height: 56px;
        font-size: 14px;
        padding: 13px 16px;
    }
    
    /* SNAP для планшетов */
    .bg-review-block__viewport {
        scroll-snap-type: x mandatory;
    }
    
    .bg-review-card {
        scroll-snap-align: start;
    }
}

/* ============================
   4. МОБИЛЬНЫЕ 320–639 (одна карточка)
============================ */
@media screen and (max-width: 639px) and (min-width: 320px) {
    
    .bg-review-block__container {
        padding: 0 10px;
    }
    
    
    .bg-reviews-label {
        min-height: 26px;
        padding: 0 12px;
        font-size: 10px;
    }

    .bg-reviews-title {
        font-size: 30px;
        margin-top: 14px;
    }

    .bg-review-block__controls {
        margin: 20px 0 24px;
    }
    
    .bg-review-block__arrows {
        width: 100%;
        display: none;
        justify-content: flex-end;
    }

    .bg-review-rating {
        gap: 10px;
    }

    .bg-review-rating__value {
        font-size: 42px;
    }

    .bg-review-rating__stars {
        font-size: 18px;
    }

    .bg-review-rating__count {
        font-size: 13px;
    }

    .bg-review-block__track {
        gap: 10px;
    }

    .bg-review-card {
        flex: 0 0 100%;
        height: 320px;
        padding: 22px 18px 18px;
        border-radius: 14px;
    }

    .bg-review-card__stars {
        margin-bottom: 28px;
        font-size: 21px;
    }

    .bg-review-card__text {
        font-size: 15px;
        -webkit-line-clamp: 8;
    }

    .bg-review-card__button {
        min-height: 52px;
        font-size: 12px;
        padding: 12px 14px;
    }
    
    /* SNAP для мобильных */
    .bg-review-block__viewport {
        scroll-snap-type: x mandatory;
    }
    
    .bg-review-card {
        scroll-snap-align: start;
    }
}

/* ============================
   5. ЭКРАНЫ МЕНЬШЕ 320px
============================ */
@media screen and (max-width: 319px) {
    
    .bg-review-block__container {
        padding: 0 10px;
    }


    .bg-reviews-title {
        font-size: 26px;
    }

    .bg-review-card {
        flex: 0 0 100%;
        height: 370px;
    }

    .bg-review-card__text {
        font-size: 14px;
    }
    
    /* SNAP для маленьких экранов */
    .bg-review-block__viewport {
        scroll-snap-type: x mandatory;
    }
    
    .bg-review-card {
        scroll-snap-align: start;
    }
}