.price-main {
  padding: 40px 0 60px;
}

.price-main .section-title {
  margin-bottom: 24px;
}

.price-intro {
  margin: 0 0 28px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
  text-align: center;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Карточки ---------- */
.price-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  transition: background 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.price-card:hover {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.price-card-title {
  margin: 0 0 20px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}

.price-row {
  margin-bottom: 16px;
}
.price-row:last-child { margin-bottom: 0; }

.price-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 6px;
}

/* ---------- Стили для всех select на странице ---------- */
.price-input,
.price-select {
  width: 100%;
  max-width: 320px;
  padding: 12px 14px;
  font-family: var(--font);
  font-size: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s;
}

.price-select {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="rgba(255,255,255,0.7)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 12px;
  padding-right: 36px;
}

/* Стили для опций внутри select */
.price-select option {
  background-color: var(--black);
  color: var(--white);
  padding: 10px;
}

.price-select option:hover,
.price-select option:focus {
  background-color: var(--blue);
  color: var(--white);
}

.price-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.price-input:focus,
.price-select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
  background: rgba(255, 255, 255, 0.12);
}

/* Кастомный селект с иконкой (для категории) */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
}
.custom-select-wrapper .custom-select-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1rem;
  pointer-events: none;
  z-index: 1;
  transition: color 0.2s;
}
.custom-select-wrapper select {
  width: 100%;
  padding: 12px 14px 12px 42px;
  background: rgba(255, 255, 255, 0.08);
  appearance: none;
  -webkit-appearance: none;
}
.custom-select-wrapper select:focus + .custom-select-icon {
  color: var(--blue);
}

/* Кастомные контролы для number полей */
.price-number-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
  max-width: 320px;
}
.price-number-wrapper .price-input {
  width: 100%;
  padding-right: 48px;
  -moz-appearance: textfield;
  appearance: textfield;
}
.price-number-wrapper .price-input::-webkit-outer-spin-button,
.price-number-wrapper .price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.price-number-controls {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 36px;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}
.price-number-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  padding: 0;
}
.price-number-btn:hover {
  color: var(--blue);
  background: rgba(37, 99, 235, 0.15);
}
.price-number-btn.up {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.price-number-btn i {
  pointer-events: none;
}

.price-row-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}
.price-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
}
.price-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
.price-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
}
.price-checkbox-group .price-checkbox-label {
  margin-bottom: 0;
}
.price-hint {
  margin: 8px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}
.price-fieldset {
  margin: 20px 0 0;
  padding: 0;
  border: none;
}
.price-legend {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 10px;
  padding: 0;
}
.price-radios {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.price-radio-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}
/* Кастомные радио-кнопки */
.price-radio-label input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: transparent;
  margin: 0;
  cursor: pointer;
  transition: all 0.2s ease;
}
.price-radio-label input[type="radio"]:checked {
  border-color: var(--blue);
  background-color: var(--blue);
  box-shadow: inset 0 0 0 3px rgba(10, 10, 10, 0.9);
}
.price-radio-label input[type="radio"]:focus {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.5);
}
.price-radio-label input[type="radio"]:hover {
  border-color: var(--blue);
}
.price-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
}

/* Плавное появление информации о категории */
.price-category-info {
  margin: 12px 0 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.3s ease, max-height 0.4s ease, margin 0.3s ease;
}
.price-category-info.is-visible {
  opacity: 1;
  max-height: 200px;
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.95);
}

/* ---------- Блок результата ---------- */
.price-result-card {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.2s;
}
.price-result-card.is-visible {
  opacity: 1;
  pointer-events: auto;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.2);
}
.price-result-title {
  margin: 0 0 16px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
}
.price-result-total-wrap {
  margin: 0 0 16px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.9);
}
.price-result-total-label { margin-right: 8px; }
.price-result-total {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--blue);
  display: inline-block;
  transition: transform 0.2s;
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}
.price-result-total.pulse {
  animation: pulse 0.3s ease;
}
.price-breakdown {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 12px;
}
.price-breakdown-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.price-breakdown-item:last-child { border-bottom: none; }
.price-breakdown-label { color: rgba(255, 255, 255, 0.8); }
.price-breakdown-value {
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
}
.price-notice {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius);
}
.price-notice p { margin: 0; line-height: 1.5; }

/* ---------- Адаптив ---------- */
@media (max-width: 768px) {
  .price-main { padding: 32px 0 48px; }
  .price-card { padding: 20px; }
}
@media (max-width: 640px) {
  .price-grid { grid-template-columns: 1fr; }
  .price-input, .price-select { max-width: none; }
  .price-result-total { font-size: 1.5rem; }
}

/* ---------- Тултипы для дополнительных услуг ---------- */
.price-checkbox-label {
  position: relative;
}
.price-checkbox-label:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  margin-bottom: 8px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.4;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: normal;
  max-width: 250px;
  width: max-content;
  pointer-events: none;
  z-index: 10;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  opacity: 0;
  animation: tooltipFade 0.2s ease forwards;
}
.price-checkbox-label:hover::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 15px;
  margin-bottom: 4px;
  border-width: 5px;
  border-style: solid;
  border-color: rgba(0, 0, 0, 0.85) transparent transparent transparent;
  transform: rotate(180deg);
  z-index: 11;
  pointer-events: none;
}
@keyframes tooltipFade { to { opacity: 1; } }
@media (max-width: 600px) {
  .price-checkbox-label:hover::after {
    left: 0; right: auto; max-width: 200px; font-size: 0.75rem;
  }
  .price-checkbox-label:hover::before { left: 10px; }
}

footer {
  border: none;
  box-shadow: none;
}
