/* --- Модалка --- */
.plans-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(26, 15, 10, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 20000;
}
.plans-overlay[hidden] { display: none; }

.plans-modal {
  width: 100%;
  max-width: 860px; /* Увеличили под 2 колонки */
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.plans-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e0d8;
}
.plans-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: #2c1810;
}
.plans-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid #e5e0d8;
  background: transparent;
  color: #7a6b63;
  cursor: pointer;
}
.plans-close:hover { background: #f5f3eb; }

/* --- 2 Колонки --- */
.plans-body-split {
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50% на 50% */
}

/* Левая часть (Преимущества) */
.plans-left {
  padding: 40px;
  background: #fdfbf7; /* Легкий кремовый фон */
  border-right: 1px solid #e5e0d8;
}
.plan-title {
  font-size: 28px;
  font-weight: 800;
  color: #2c1810;
  margin: 0 0 8px;
}
.plan-price-large {
  font-size: 48px;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 16px;
  line-height: 1;
}
.plan-price-large span {
  font-size: 18px;
  color: #7a6b63;
  font-weight: 500;
}
.plan-subtitle {
  font-size: 15px;
  color: #7a6b63;
  margin-bottom: 32px;
  line-height: 1.5;
}

.plan-features-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.plan-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  color: #2c1810;
  margin-bottom: 16px;
  line-height: 1.4;
}
.plan-features-list li i {
  color: #4a7c4a;
  margin-top: 3px;
}

/* Правая часть (Оплата) */
.plans-right {
  padding: 40px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-box {
  width: 100%;
  max-width: 320px;
  text-align: center;
}
.payment-box h4 {
  font-size: 18px;
  margin: 0 0 8px;
  color: #2c1810;
}
.payment-box p {
  font-size: 14px;
  color: #7a6b63;
  margin-bottom: 24px;
}

/* Кнопка Оплатить */
.btn-pay {
  width: 100%;
  padding: 16px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  background: #2c1810;
  color: #ffffff;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 12px;
}
.btn-pay:hover:not(:disabled) {
  background: #8a521c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(138, 82, 28, 0.3);
}
.btn-pay:disabled { opacity: 0.6; cursor: not-allowed; }

/* Кнопка Отмена */
.btn-cancel {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  background: transparent;
  color: #7a6b63;
  border: 1px solid #e5e0d8;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-cancel:hover { background: #f5f3eb; color: #2c1810; }

.payment-footnote {
  font-size: 11px;
  color: #9aa3b2;
  margin-top: 24px;
  line-height: 1.4;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
  .plans-body-split {
    grid-template-columns: 1fr; /* В одну колонку */
  }
  .plans-left {
    border-right: none;
    border-bottom: 1px solid #e5e0d8;
    padding: 24px;
  }
  .plans-right {
    padding: 24px;
  }
}