/* === PLANS.CSS — Web + Mobile (2 в ряд), песочно‑оранжевая палитра + анимированная Telegram-кнопка === */
/* Фон секции сделан монотонным (без градиентов), логика и стили остальных элементов сохранены */

.plans {
  padding: 100px 0;
  background: #fff8f0; /* монотонный песочный фон вместо градиента */
  position: relative;
  overflow: hidden;
}

/* Заголовок — градиент по песочно‑оранжевой палитре */
.plans .section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 24px;
  font-family: 'Montserrat', sans-serif;
  background: linear-gradient(120deg, #5a4736, #a9793b, #e0b15a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.telegram-note--intro {
  font-size: 1.1rem;
  color: #6b635b;
  text-align: center;
  margin: 0 auto 48px;
  max-width: 900px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  line-height: 1.7;
}

/* === GRID для карточек (Desktop) === */
.price-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 карточки */
  gap: 16px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.price {
  padding: 20px 12px;
  border-radius: 18px;
  background: #ffffff; /* белый фон для всех карточек */
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid rgba(229, 231, 235, 0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.price:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(199, 140, 67, 0.12);
  border-color: rgba(199, 140, 67, 0.25);
}

.price h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
  font-family: 'Montserrat', sans-serif;
}

.price .amount {
  font-size: 1.6rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 8px 0 12px;
  font-family: 'Montserrat', sans-serif;
}

/* === Price Icon === */
.price-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* Цвета иконок для 4 карточек */
.price:nth-child(1) .price-icon { background: #f8f9fa; color: #1a1a1a; } /* White */
.price:nth-child(2) .price-icon { background: #cd7f32; } /* Bronze */
.price:nth-child(3) .price-icon { background: #c0c0c0; } /* Silver */
.price:nth-child(4) .price-icon { background: linear-gradient(135deg, #df8b2b, #f0b85a); } /* Platinum — янтарь */

/* Platinum — выделение, но фон остаётся белым как у остальных */
.price:nth-child(4) {
  background: #ffffff;                /* белый фон */
  border: 2px solid #df8b2b;          /* янтарная рамка */
  transform: scale(1.03);             /* лёгкое акцентирование */
  box-shadow:
    0 14px 32px rgba(199, 140, 67, 0.18),  /* тёплая тень */
    0 0 0 0 rgba(0,0,0,0);                 /* для совместимости со стэком теней */
  z-index: 2;
}
.price:nth-child(4):hover {
  box-shadow: 0 18px 40px rgba(199, 140, 67, 0.24);
}
.price:nth-child(4) h3 { color: #5a4736; font-weight: 700; }
.price:nth-child(4) .amount { font-size: 1.8rem; }

/* Лейбл лучший выбор — янтарный */
.best-value {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #df8b2b, #f0b85a);
  color: white;
  padding: 3px 10px;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 6px 16px rgba(199, 140, 67, 0.25);
}

/* === Кнопка Telegram — янтарный градиент + шиммер === */
.telegram-action {
  text-align: center;
  margin-top: 80px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

.btn-telegram {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: linear-gradient(135deg, #df8b2b, #f0b85a);
  color: white !important;
  border-radius: 24px;
  font-size: 1.1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(199, 140, 67, 0.28), inset 0 -2px 6px rgba(0,0,0,0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  overflow: hidden; /* для блика */
  text-align: center;
}

.btn-telegram:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(199, 140, 67, 0.34), inset 0 -2px 8px rgba(0,0,0,0.14);
  background: linear-gradient(135deg, #f0b85a, #df8b2b);
}

/* Шиммерная анимация на кнопке */
.btn-telegram::after {
  content: '';
  position: absolute;
  top: -120%;
  left: -30%;
  width: 60%;
  height: 300%;
  background: linear-gradient(120deg, rgba(255,255,255,0.0) 0%, rgba(255,255,255,0.35) 45%, rgba(255,255,255,0.0) 100%);
  transform: rotate(25deg);
  transition: transform 0.6s ease;
  opacity: 0.7;
}
.btn-telegram:hover::after {
  transform: translateX(260%) rotate(25deg);
}

.btn-telegram:focus-visible {
  outline: 3px solid rgba(240, 184, 90, 0.55);
  outline-offset: 2px;
}

.btn-telegram .telegram-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1); /* белая иконка */
  transition: transform 0.25s ease;
}
.btn-telegram:hover .telegram-icon {
  transform: scale(1.08);
}

.telegram-note {
  font-size: 0.9rem;
  color: #6b635b;
  line-height: 1.8;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  padding: 0 20px;
}

/* === Адаптив Mobile (2 в ряд) === */
@media (max-width: 768px) {
  .plans { padding: 70px 0; }
  .plans .section-title { font-size: 2rem; }

  .price-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .price {
    padding: 16px 10px;
  }

  .price h3 {
    font-size: 0.95rem;
    margin-bottom: 6px;
  }

  .price .amount {
    font-size: 1.2rem;
    margin: 6px 0 10px;
  }

  .price-icon {
    width: 28px;
    height: 28px;
    font-size: 1rem;
    margin-bottom: 6px;
  }

  .price:nth-child(4) {
    transform: none; /* без масштабирования на мобиле */
  }

  .btn-telegram {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .btn-telegram .telegram-icon {
    width: 18px;
    height: 18px;
  }

  .telegram-note {
    font-size: 0.8rem;
    text-align: center;
    line-height: 1.6;
    padding: 0 12px;
  }
}

/* Предпочтение уменьшенного движения */
@media (prefers-reduced-motion: reduce) {
  .btn-telegram,
  .btn-telegram::after {
    transition: none !important;
    animation: none !important;
  }
}
