/* Pricing Section Styles */
#pricing {
  background: #1b1b1b;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pricing-card {
  --pricing-card-parallax-y: 0px;
  --pricing-card-hover-y: 0px;
  background: #1b1b1b;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 20px 24px 40px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transform: translate3d(0, calc(var(--pricing-card-parallax-y) + var(--pricing-card-hover-y)), 0);
  will-change: transform;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.pricing-card:hover {
  --pricing-card-hover-y: -12px;
  background: #242424;
  border-color: rgba(11, 62, 177, 0.75); /* Синий оттенок при наведении на карточку */
  box-shadow: 0 15px 45px rgba(11, 62, 177, 0.23);
}

.pricing-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
}

.pricing-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 32px;
  flex-grow: 1;
  color: #ffffff;
  opacity: 0.8;
}

/* Стиль кнопок: синий цвет как у "Раннее бронирование" */
.pricing-card .btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px 24px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: none;
  letter-spacing: 1px;
  text-decoration: none;
  
  /* Основной синий цвет из app.css */
  background-color: #0b3eb1; 
  color: #ffffff;
  border: none;
  border-radius: 999px; /* Скругление как у оригинала */
  
  /* Эффект тени как в оригинале */
  box-shadow: 0 12px 24px rgba(11, 62, 177, 0.28);
  transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease;
  cursor: pointer;
}

.pricing-card .btn:hover {
  transform: translateY(-2px);
  /* Цвет при наведении из app.css */
  background-color: #2c83f9; 
  box-shadow: 0 16px 28px rgba(11, 62, 177, 0.32);
}

.pricing-cta {
  text-align: center;
  margin-top: 48px;
}

.pricing-cta .pricing-cta__btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: min(434px, calc(100vw - 48px)) !important;
  min-height: 53px;
  padding: 17px 38px !important;
  font-size: clamp(1.1rem, 1.55vw, 1.47rem) !important;
  line-height: 1.1;
  transform: none;
}

.pricing-cta .pricing-cta__btn:hover {
  transform: translateY(-2px);
}



/* Новые стили для деталей тарифа */
.pricing-details {
  margin-bottom: 0;
}

.pricing-details .price {
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 4px;
}

.pricing-details .period {
  font-size: 0.9rem;
  color: #ffffff !important;
  font-weight: 400;
  margin-bottom: 0;
}

.pricing-details .format {
  font-size: 0.9rem;
  color: #ffffff !important;
  font-weight: 400;
  margin-bottom: 2px;
}

/* Корректировка отступа текста описания */
.pricing-card p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.95rem;
  line-height: 1.6;
  
  /* Устанавливаем чисто белый цвет */
  color: #ffffff !important; 
  
  /* Убедитесь, что opacity установлена на 1, если ранее она была снижена */
  opacity: 1 !important; 
  
  margin-top: 1.6em;
  margin-bottom: 4px;
  flex-grow: 1;
}



/* Белый цвет для "Стоимость обучения" */
.text-white {
/*  color: #FFD700 !important; /* Насыщенный золотой */
 

 /*color: #102072;
  background: linear-gradient(145deg, rgba(201, 131, 38, 0.96), rgba(255, 214, 139, 0.94) 52%, rgba(172, 115, 67, 0.97));
*/
  color: #ffffff !important; /* Основной белый цвет */
  opacity: 0.8 !important;   /* Прозрачность как у описания в .pricing-card p */
  
  /* Сброс предыдущих эффектов градиента */
  background: none !important;
  -webkit-text-fill-color: initial !important;
  
  /* Сохранение размеров и позиционирования */
  font-size: 2rem !important; 
  display: block !important;
  text-shadow: none;
  /*text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Небольшая тень для объема */
}

/* Синий для "Выбери свой тариф" */
.text-blue {
  /* Цвет и градиент как у названия тарифов (.tariff-name) */
  background: linear-gradient(90deg, #2c83f9, #0b3eb1) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  
  /* Увеличенный размер как у названия тарифов */
  font-size: 2rem !important; 
  
  /* Дополнительные параметры для корректного отображения градиента */
  display: block !important;
  opacity: 1 !important;;
}





/* Название тарифа — используем основной синий цвет бренда */
.pricing-card h3.tariff-name {
  /*color: #2c83f9; /* Акцентный голубой для яркости на черном фоне */
  /*text-shadow: 0 0 15px rgba(44, 131, 249, 0.3); /* Легкое свечение */
  /*margin-bottom: 20px;*/
  color: #ffffff; /* Оставляем белый для максимальной читаемости суммы */
  background: linear-gradient(90deg, #2c83f9, #0b3eb1); /* Градиент в палитре сайта */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  width: 100%;
  max-width: 100%;
  font-size: 1.425rem;
  line-height: 1.12;
  overflow-wrap: anywhere;
  word-break: normal;
  display: block;
}

/* Стоимость — используем цвет, гармонирующий с кнопками и ссылками */
.pricing-details .price.tariff-price {
  /*color: #ffffff; /* Оставляем белый для максимальной читаемости суммы */
  /*background: linear-gradient(90deg, #2c83f9, #0b3eb1); /* Градиент в палитре сайта */
  color: #102072;
  background: linear-gradient(145deg, rgba(201, 131, 38, 0.96), rgba(255, 214, 139, 0.94) 52%, rgba(172, 115, 67, 0.97));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.54rem;
  font-weight: 400;  /* Убрана жирность (с 800 до 400) */
  display: flex;
  min-height: clamp(58px, 5vw, 72px);
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  line-height: 1.1 !important; /* Уменьшает расстояние между строками */
  margin-top: 5px;            /* Небольшой отступ сверху для баланса */
  margin-bottom: 0;
}

.pricing-details .tariff-price--discount {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.pricing-meta {
  margin-bottom: 0;
}

.pricing-details + p {
  margin-top: 1.6em !important;
}

.pricing-details .price-old {
  background: none;
  color: rgba(255, 255, 255, 0.68);
  -webkit-text-fill-color: currentColor;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

.pricing-details .price-current {
  display: block;
  color: #102072;
  background: linear-gradient(145deg, rgba(201, 131, 38, 0.96), rgba(255, 214, 139, 0.94) 52%, rgba(172, 115, 67, 0.97));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Дополнительный акцент для выделенной карточки (Base) */
.pricing-card--featured h3.tariff-name {
  color: #ffffff;
  background-color: #0b3eb1; /* Инверсия для выделенного тарифа */
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
}





/* Выделение новых строк синим акцентом */
/*.pricing-card .accent-line {
/*  color: #2c83f9; /* Акцентный синий из вашей палитры */
/*  font-weight: 400;
  margin-bottom: 8px;
  opacity: 1; /* Убираем прозрачность, чтобы текст был ярче */
/*}

/* Увеличим отступ у последней строки перед кнопкой */
/*.pricing-card .accent-line:last-of-type {
  margin-bottom: 24px;
}
*/


/* Первая строка — Акцентный синий */
.pricing-card .line-testing {
  font-size: 0.9rem;
  color: #ffffff !important;
  font-weight: 400;
  /*margin-bottom: 2px;*/
/* Убираем верхний отступ и задаем небольшой нижний */
  margin-top: 0 !important;
  margin-bottom: 12px;
}

/* Вторая строка — Зеленый (символ успеха/завершения) */
.pricing-card .line-certificate {
  font-size: 0.9rem;
  color: #ffffff !important;
  font-weight: 400;
  margin-bottom: 24px; /* Отступ перед кнопкой */
}

/* Убираем лишние отступы у параграфа, если они мешают */
.pricing-card p {
  margin-top: 1.6em;
  margin-bottom: 20px;
}








/* Акцентный тариф */
.pricing-card--featured {
  border: 1px solid rgba(11, 62, 177, 0.4);
}

@media (max-width: 1200px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .text-white {
    font-size: clamp(1.08rem, 5.2vw, 1.4rem) !important;
    line-height: 1.15;
  }

  .text-blue {
    font-size: clamp(1.25rem, 6.2vw, 1.68rem) !important;
    line-height: 1.08;
  }

  .pricing-card h3.tariff-name {
    font-size: clamp(1.05rem, 5vw, 1.24rem);
  }

  .pricing-details .price.tariff-price {
    font-size: clamp(1.16rem, 5.6vw, 1.34rem);
    min-height: clamp(44px, 12vw, 58px);
  }

  .pricing-card p {
    font-size: clamp(0.88rem, 3.7vw, 0.95rem);
  }

  .pricing-cta .pricing-cta__btn {
    font-size: clamp(0.98rem, 4.6vw, 1.14rem) !important;
  }
}

@media (max-width: 580px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
