/* assets/css/price-short.css */

.price-short {
  padding: 56px 0 72px;
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  position: relative;
  z-index: 5;
}

@media (min-width: 900px) {
  .price-short {
    padding: 72px 0 88px;
  }
}

.price-short-header {
  max-width: 100%;
  margin: 0 0 28px;
  text-align: left;
}

.price-short-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted2, #6b7280);
}

.price-short-title {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text, #0f172a);
}

@media (min-width: 900px) {
  .price-short-title {
    font-size: 28px;
  }
}

.price-short-subtitle {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted, #4b5563);
}

/* Grid */
.price-short-grid {
  margin-top: 28px;
  display: grid;
  gap: 18px;
  overflow: visible;
}

@media (min-width: 900px) {
  .price-short-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Card */
.price-short-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  overflow: visible;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  z-index: 1;
}

.price-short-card:hover {
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.1);
  border-color: rgba(14, 165, 233, 0.4);
}

.price-short-card.active {
  z-index: 100;
}

.price-short-card:nth-child(1) {
  border-top: 3px solid #0ea5e9;
  background: linear-gradient(180deg, #f0f9ff 0%, #ffffff 60%);
}

.price-short-card:nth-child(2) {
  border-top: 3px solid #22c55e;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 60%);
}

.price-short-card:nth-child(3) {
  border-top: 3px solid #fb923c;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 60%);
}

.price-short-card:nth-child(4) {
  border-top: 3px solid #8b5cf6;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 60%);
}

/* Заголовок карточки (всегда видимый) */
.price-short-card-header {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.price-short-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.3;
}

.price-short-card-price {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #0ea5e9;
}

/* Строка с описанием и кнопкой */
.price-short-card-footer-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.price-short-card-subtitle {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted, #4b5563);
  flex: 1;
}

/* Кнопка раскрытия */
.price-short-card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.price-short-card-toggle:hover {
  background: rgba(148, 163, 184, 0.06);
  border-color: rgba(14, 165, 233, 0.4);
}

.price-short-toggle-text {
  font-size: 13px;
  font-weight: 600;
  color: #0ea5e9;
  white-space: nowrap;
}

.price-short-card-chevron {
  flex-shrink: 0;
  color: #0ea5e9;
  stroke-width: 2;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-short-card.active .price-short-card-chevron {
  transform: rotate(180deg);
}

/* Раскрывающийся контент - обновлено для плавной анимации */
.price-short-card-body {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  opacity: 0;
  transition:
    grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s ease;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 10;
}

.price-short-card.active .price-short-card-body {
  grid-template-rows: 1fr;
  opacity: 1;
}

.price-short-card-body-inner {
  overflow: hidden;
  padding: 0 18px;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.price-short-card.active .price-short-card-body-inner {
  padding: 12px 18px 18px;
}

.price-short-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 10px;
  display: grid;
  gap: 5px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #4b5563);
}

.price-short-card-list li::before {
  content: '✓';
  color: #0ea5e9;
  margin-right: 6px;
  font-weight: 600;
}

.price-short-card-hint {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted2, #6b7280);
  font-style: italic;
}

.price-short-card-cta {
  width: 100%;
  justify-content: center;
  display: none;
}

/* Показываем кнопку внутри карточки только на десктопе */
@media (min-width: 900px) {
  .price-short-card-cta {
    display: inline-flex;
  }

  .price-short-footer-btn {
    display: none;
  }
}

/* Footer */
.price-short-footer {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.price-short-footer-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted2, #6b7280);
}

/* ========== Mobile ========== */
@media (max-width: 900px) {
  .price-short {
    padding: 40px 0 80px;
  }

  .price-short-header {
    margin-bottom: 20px;
  }

  .price-short-title {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .price-short-subtitle {
    font-size: 14px;
  }

  .price-short-grid {
    gap: 12px;
    margin-top: 20px;
  }

  .price-short-card-header {
    padding: 14px 16px 12px;
    gap: 6px;
  }

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

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

  .price-short-card-footer-row {
    gap: 10px;
  }

  .price-short-card-subtitle {
    font-size: 13px;
  }

  .price-short-card-toggle {
    padding: 5px 8px;
  }

  .price-short-toggle-text {
    font-size: 12px;
  }

  .price-short-card-chevron {
    width: 16px;
    height: 16px;
  }

  .price-short-card-body-inner {
    padding: 0 16px;
  }

  .price-short-card.active .price-short-card-body-inner {
    padding: 10px 16px 16px;
  }

  .price-short-card-list {
    gap: 4px;
    font-size: 12px;
  }

  .price-short-card-hint {
    font-size: 12px;
    margin-bottom: 0;
  }

  .price-short-footer {
    align-items: stretch;
    margin-top: 20px;
  }

  .price-short-footer .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
  }

  .price-short-footer-note {
    font-size: 12px;
    text-align: center;
  }
}

@media (max-width: 400px) {
  .price-short-title {
    font-size: 20px;
  }

  .price-short-card-header {
    padding: 12px 14px 10px;
  }

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

  .price-short-card-price {
    font-size: 16px;
  }

  .price-short-card-footer-row {
    gap: 8px;
  }

  .price-short-card-subtitle {
    font-size: 12px;
  }

  .price-short-card-list {
    font-size: 11px;
  }

  .price-short-card-hint {
    font-size: 11px;
  }
}
