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

.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;
  }
}
</style>