/* ВАРИАНТ 4: МОБИЛЬНЫЙ СТИЛЬ С БОЛЬШИМИ КНОПКАМИ */

/* УБИРАЕМ ОТСТУПЫ У ГЛАВНОЙ СТРАНИЦЫ */
#homepage.page {
  padding: 0 !important;
  background: transparent !important;
}

/* СКРЫВАЕМ СТАРЫЕ ЭЛЕМЕНТЫ */
.homepage-header,
.hero-section,
.mobile-welcome {
  display: none !important;
}

.homepage-mobile {
  padding: 20px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  min-height: calc(100vh - 80px);
  color: #0f172a;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
}

/* ЗАГОЛОВОК С КНОПКАМИ */
.mobile-header {
  padding: 100px 20px 10px 20px; /* Увеличили верхний отступ для системных кнопок Telegram */
}

/* ВЫРАВНИВАНИЕ КНОПОК ПО ШИРИНЕ БЛОКОВ */
.mobile-header .header-buttons {
  padding: 0; /* Убираем внутренние отступы */
  margin: 0; /* Убираем внешние отступы */
  gap: 12px; /* Промежуток между кнопками */
}

.mobile-header .btn-enhanced {
  flex: 1; /* Кнопки растягиваются на всю доступную ширину */
  max-width: none; /* Убираем ограничение ширины */
  justify-content: center; /* Центрируем содержимое кнопки */
}

/* ЗАГОЛОВОК ВЫБОРА */
.choice-title-section {
  padding: 28px 20px 24px 20px;
  text-align: center;
}

.choice-title-eyebrow {
  display: block;
  font-size: 13px;
  color: #667eea;
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}

.main-choice-title {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 14px 0;
  line-height: 1.2;
  letter-spacing: -0.3px;
}

.choice-title-underline {
  width: 44px;
  height: 3px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 2px;
  margin: 0 auto;
}

/* ИСПОЛЬЗУЕМ СТАНДАРТНЫЕ КНОПКИ .btn-enhanced ИЗ STYLE.CSS */

/* КОМПАКТНЫЕ КНОПКИ */
.mobile-choices {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 40px;
  padding: 0 20px;
  margin-top: 20px;
}

.mobile-choice {
  background: white;
  border-radius: 20px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.mobile-choice:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.mobile-choice:active {
  transform: translateY(-2px) scale(1.01);
}

/* ЗАГОЛОВОК ВЫБОРА */
.choice-header-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.choice-emoji {
  font-size: 24px;
}

.choice-badge {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.premium-badge {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  color: white;
}

.business-badge {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

/* КОНТЕНТ ВЫБОРА */
.choice-content-mobile {
  margin-bottom: 16px;
}

.choice-title-mobile {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.choice-desc-compact {
  font-size: 14px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* КОМПАКТНЫЕ ФИЧИ */
.features-compact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
}

.feature-compact {
  font-size: 13px;
  color: #475569;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.premium-mobile .feature-compact {
  border-left: 2px solid #fbbf24;
  padding-left: 8px;
}

.business-mobile .feature-compact {
  border-left: 2px solid #8b5cf6;
  padding-left: 8px;
}

.choice-benefits-mobile {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.benefit-tag {
  background: #f1f5f9;
  color: #475569;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid #e2e8f0;
}

.choice-description-mobile {
  font-size: 15px;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* ДЕТАЛЬНЫЕ ФИЧИ */
.detailed-features-mobile {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-item-mobile {
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
  padding: 8px 12px;
  background: rgba(248, 250, 252, 0.8);
  border-radius: 8px;
  border-left: 3px solid #e2e8f0;
  transition: all 0.2s ease;
}

.premium-mobile .feature-item-mobile {
  border-left-color: #fbbf24;
}

.business-mobile .feature-item-mobile {
  border-left-color: #8b5cf6;
}

.feature-item-mobile:hover {
  background: rgba(248, 250, 252, 1);
  transform: translateX(2px);
}

/* ДЕЙСТВИЕ */
.choice-action-mobile {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.price-block-mobile {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-prefix {
  font-size: 14px;
  color: #64748b;
  font-weight: 500;
}

.price-big {
  font-size: 32px;
  font-weight: 800;
  color: #0f172a;
}

.action-arrow-mobile {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.premium-arrow {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.35);
}

.business-arrow {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.arrow-symbol {
  font-size: 20px;
  color: white;
  font-weight: bold;
  transition: transform 0.2s ease;
}

.mobile-choice:hover .action-arrow-mobile {
  transform: scale(1.1);
}

.mobile-choice:hover .arrow-symbol {
  transform: translateX(2px);
}

/* ШИРОКАЯ КНОПКА */
.action-btn-wide {
  width: 100%;
  height: 52px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-wide-text {
  font-size: 16px;
  color: white;
  font-weight: 700;
  letter-spacing: 0.3px;
  transition: transform 0.2s ease;
}

.mobile-choice:hover .action-btn-wide {
  transform: scale(1.02);
  box-shadow: 0 6px 24px rgba(102, 126, 234, 0.45);
}

.mobile-choice:hover .btn-wide-text {
  transform: translateX(2px);
}

.action-btn-wide--sm {
  height: 40px;
  border-radius: 20px;
  margin-top: 2px;
}

.action-btn-wide--sm .btn-wide-text {
  font-size: 14px;
  font-weight: 600;
}

/* ДЕКОРАЦИИ */
.choice-decoration-mobile {
  position: absolute;
  top: 0;
  right: 0;
  width: 100px;
  height: 100px;
  pointer-events: none;
  overflow: hidden;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.floating-element {
  position: absolute;
  font-size: 16px;
  opacity: 0.3;
  animation: floatAround 8s ease-in-out infinite;
}

.element-1 {
  top: 10px;
  right: 10px;
  animation-delay: 0s;
}

.element-2 {
  top: 30px;
  right: 40px;
  animation-delay: 2s;
}

.element-3 {
  top: 50px;
  right: 15px;
  animation-delay: 4s;
}

@keyframes floatAround {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33% { transform: translateY(-8px) rotate(120deg); }
  66% { transform: translateY(4px) rotate(240deg); }
}

.platform-icons {
  position: relative;
  width: 100%;
  height: 100%;
}

.platform-icon {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  color: white;
  animation: platformFloat 6s ease-in-out infinite;
}

.fb-icon {
  background: #1877f2;
  top: 15px;
  right: 15px;
}

.google-icon {
  background: #4285f4;
  top: 35px;
  right: 35px;
  animation-delay: 2s;
}

.instagram-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  top: 55px;
  right: 10px;
  animation-delay: 4s;
}

@keyframes platformFloat {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-6px) scale(1.1); }
}

/* СТАТИСТИКА */
.mobile-stats {
  display: flex;
  gap: 12px;
  padding: 0 20px;
}

.stat-card-mobile {
  flex: 1;
  background: white;
  border-radius: 16px;
  padding: 16px 12px;
  text-align: center;
  border: 1px solid #e2e8f0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-card-mobile:hover {
  background: #f8fafc;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.stat-icon-mobile {
  font-size: 24px;
  margin-bottom: 8px;
}

.stat-number-mobile {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #0f172a;
}

.stat-text-mobile {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

/* СКРЫВАЕМ ДРУГИЕ ВАРИАНТЫ */
.homepage-cards {
  display: none;
}

.homepage-mobile {
  display: block !important;
}

/* АДАПТИВНОСТЬ */
@media (min-width: 480px) {
  .mobile-choices {
    max-width: 400px;
    margin: 0 auto 32px auto;
  }
  
  .mobile-stats {
    max-width: 400px;
    margin: 0 auto;
  }
}

/* Десктоп: убираем 100vw трюк, всё должно быть внутри 480px body */
@media (min-width: 600px) {
  .homepage-mobile {
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding: 20px 0;
  }

  /* На десктопе нет Telegram статус-бара сверху — убираем лишний отступ */
  .mobile-header {
    padding: 20px 20px 10px 20px;
  }

  .mobile-choices {
    padding: 0 20px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }

  .mobile-stats {
    padding: 0 20px;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
  }
}
