:root {
  --primary-color: #FF6600; /* Основной цвет (был #00c3ff) */
  --primary-dark: #e65c00; /* Тёмный оттенок для hover */
  --primary-light: #ff944d; /* Светлый оттенок */
  --background-light: #f5f7fa; /* Светлый фон */
  --text-dark: #333; /* Тёмный текст */
  --text-gray: #666; /* Серый текст */
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--background-light);
  margin: 0;
  padding: 0;
}

h1 {
  color: var(--primary-color);
  text-shadow: none; /* Убираем тень для светлой темы */
}

.subtitle {
  color: var(--text-gray);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

h1 {
  text-align: center;
  color: var(--primary-color);
  margin: 0;
  font-size: 2.5em;
}

.subtitle {
  text-align: center;
  color: var(--text-gray);
  margin: 0;
  padding: 5px 0;
}

/* Удалить полностью, так как он скрыт */
.subscription-header {
  display: none;
}

.subscription-menu {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 1160px;
  margin: 0;
  padding: 0;
  transform: translateY(0);
  will-change: transform;
}

.subscription-option {
  background: white;
  border: 1px solid #ddd; /* Светлая рамка */
  color: var(--text-dark);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  height: fit-content;
  display: flex;
  flex-direction: column;
}

.subscription-option:hover {
  border-color: var(--primary-color);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.subscription-option.selected {
  border: 2px solid var(--primary-color);
  box-shadow: 0 0 20px rgba(255, 102, 0, 0.2);
}

.price-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 15px 0;
}

.price {
  font-size: 3em;
  font-weight: 800;
  color: var(--primary-color);
  margin: 0;
  line-height: 1;
}

.plan-badge {
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.9em;
}

.plan-details {
  margin: 15px 0;
}

.plan-desc {
  color: var(--text-gray);
  margin: 5px 0;
}

.discount {
  color: #4caf50; /* Зелёный для скидки */
  font-weight: 600;
  margin: 5px 0;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-features li {
  padding: 8px 0;
  color: var(--text-gray);
  position: relative;
  padding-left: 25px;
}

.plan-features li:before {
  content: '✓';
  color: #4caf50; /* Зелёный для галочки */
  position: absolute;
  left: 0;
}

.payment-form {
  max-width: 500px;
  margin: 30px auto;
}

.input-wrapper {
  position: relative;
  margin-bottom: 15px;
  width: 100%;
}

.input-wrapper input {
  width: 100%;
  padding: 12px 40px 12px 40px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1em;
  box-sizing: border-box;
  background: white;
  color: var(--text-dark);
}

.input-wrapper input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 2px rgba(255, 102, 0, 0.2);
}

.input-wrapper.account-field {
  position: relative;
  width: 100%;
}

.input-wrapper.account-field input {
  padding-right: 120px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
}

.optional-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 102, 0, 0.1);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  white-space: nowrap;
  z-index: 1;
}

button {
  width: 100%;
  padding: 15px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background 0.3s ease;
}

button:hover {
  background: var(--primary-dark);
}

#message {
  text-align: center;
  color: #ff4444;
  margin-top: 10px;
}

.rub-price {
  font-size: 0.7em;
  color: var(--text-gray);
  display: block;
  margin-top: 5px;
}

.monthly-price {
  font-size: 0.85em;
  color: var(--text-dark);
  opacity: 0.8;
  display: block;
  margin-top: 3px;
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
    width: 95%;
  }

  .subscription-option h3 {
    font-size: 1.5em;
    margin-bottom: 8px;
  }

  .subscription-menu {
    grid-template-columns: 1fr;
    gap: 15px;
    width: 85%;
    margin: 0 auto;
  }

  .payment-form {
    width: 100%;
    max-width: none;
    padding: 0 10px;
  }

  .input-wrapper {
    width: 100%;
    max-width: none;
  }

  .input-wrapper input {
    width: 100%;
    font-size: 16px;
    padding: 12px 35px;
  }

  .input-wrapper.account-field input {
    padding-right: 95px;
  }

  .optional-badge {
    font-size: 0.7em;
    padding: 2px 6px;
    right: 8px;
  }

  .subscription-option {
    margin: 0;
    padding: 15px;
    text-align: center;
    height: auto;
  }

  .price-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .price {
    text-align: center;
    margin: 0 auto;
  }

  .plan-badge {
    margin: 0 auto;
  }

  button {
    width: 100%;
    margin: 0;
    padding: 12px;
  }

  .rub-price,
  .monthly-price {
    font-size: 0.65em;
  }
}

@media (max-width: 380px) {
  .container {
    width: 98%;
    padding: 5px;
  }

  .subscription-option {
    padding: 12px;
  }

  .price {
    font-size: 2.5em;
  }

  .input-wrapper.account-field input {
    padding-right: 85px;
    font-size: 14px;
  }

  .optional-badge {
    font-size: 0.65em;
    padding: 2px 4px;
  }
}