.container--buy {
  flex-direction: column;
  gap: 0;
  padding: 30px 20px 0 20px;
  overflow-y: auto;
  height: 1000px;
  min-height: 0;
}

.buy-page-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.buy-page-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-bottom: 24px;
  line-height: 1.5;
}

/* слайдер устройств */
.buy-devices-card {
  background: rgba(255,255,255,0.059);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 12px;
}

.buy-devices-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.buy-devices-card-title {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}

.buy-devices-count {
  display: flex;
  align-items: center;
  gap: 8px;
}

.buy-devices-count-num {
  font-size: 22px;
  font-weight: 700;
  min-width: 32px;
  text-align: center;
}

.buy-devices-count-label {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}

.buy-slider-wrap {
  position: relative;
  padding: 0 4px;
}

.buy-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 10px;
  background: rgba(255,255,255,0.12);
  outline: none;
  cursor: pointer;
}

.buy-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #b637bc;
  cursor: pointer;
  box-shadow: 0 0 0 4px rgba(182,55,188,0.25);
  transition: box-shadow 0.2s;
}

.buy-slider::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 7px rgba(182,55,188,0.3);
}

.buy-slider-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.buy-slider-label {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
}

/* сетка месяцев */
.buy-months-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.buy-month-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  background: rgba(255,255,255,0.059);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 14px;
  color: white;
  font-family: inherit;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
  text-align: left;
}

.buy-month-btn.selected {
  border-color: #b637bc;
  background: rgba(182,55,188,0.12);
}

.buy-month-btn-label {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}

.buy-month-btn-price {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.buy-month-btn-per {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
}

/* звёздочка "лучший выбор" */
.buy-month-btn-star {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 0 4px rgba(255,220,0,0.7));
}

/* карточка итоговой цены */
.buy-price-card {
  background: rgba(255,255,255,0.059);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  overflow: hidden;
  margin-bottom: 12px;
}

.buy-price-amount {
  font-size: 52px;
  font-weight: 700;
  line-height: 1;
}

.buy-price-period {
  font-size: 14px;
  color: rgba(255,255,255,0.45);
}

.buy-discount-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #b637bc;
  color: white;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 50px;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.buy-discount-badge.visible {
  opacity: 1;
  transform: scale(1);
}

.buy-per-device {
  font-size: 12px;
  color: rgba(255,255,255,0.3);
  margin-top: 4px;
}

/* кнопка оплаты */
.buy-pay-button {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 6rem;
  border-radius: 50px;
  border: none;
  background: #b637bc;
  color: white;
  font-size: 16px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}

.buy-pay-button:hover {
  background: #9b2ea1;
}

.buy-pay-button:active {
  transform: scale(0.98);
}
