/* ============================================================
   АзияМебель Академия — Custom Styles
   ============================================================ */

/* --- Base --- */
html, body {
  scroll-behavior: smooth;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
  width: 100%;
}

/* html/body: белый фон для safe-area зон при скролле.
   Фон хиро теперь покрывается фиксированным слоем .hero-fixed-bg */
html {
  background-color: #ffffff;
}

/* Фиксированный фон хиро — покрывает весь физический экран,
   включая safe-area сверху (статус-бар) и снизу (Home-индикатор).
   Скрывается через JS когда хиро уходит за экран при скролле. */
.hero-fixed-bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #030a07;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(47, 132, 82, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(31, 107, 61, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 5% 70%, rgba(26, 84, 50, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(47, 132, 82, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 25% 35%, rgba(15, 49, 29, 0.6) 0%, transparent 40%),
    linear-gradient(165deg, #020805 0%, #061410 25%, #0a1f14 50%, #051008 75%, #020604 100%);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #1a5432;
  border-radius: 3px;
}

/* --- Gradient text --- */
.text-gradient {
  background: linear-gradient(135deg, #2f8452 0%, #1a5432 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- Premium Gold System --- */
.text-gold {
  color: #cca135; /* Плотное темное золото */
}
.text-gold-light {
  color: #ffe082; /* Светлое золото для текстов на темном фоне */
}
.bg-gold {
  background-color: #d4af37; /* Основной золотой цвет */
}
.bg-gold-gradient {
  background: radial-gradient(100% 100% at 50% 0%, #ffeaa7 0%, #d4af37 50%, #b38712 100%);
  color: #030a07 !important; /* Глубокий темно-зеленый текст для отличного контраста */
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    inset 0 6px 12px rgba(255, 255, 255, 0.6),
    inset 0 -6px 12px rgba(138, 98, 14, 0.5),
    0 10px 20px -5px rgba(212, 175, 55, 0.6);
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.5);
  transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.bg-gold-gradient:hover {
  background: radial-gradient(100% 100% at 50% 0%, #fff0b8 0%, #dfb841 50%, #c49619 100%);
  box-shadow: 
    inset 0 8px 16px rgba(255, 255, 255, 0.7),
    inset 0 -8px 16px rgba(138, 98, 14, 0.6),
    0 15px 30px -8px rgba(212, 175, 55, 0.7);
  transform: translateY(-2px) scale(1.02);
}
.bg-gold-gradient:active {
  box-shadow: 
    inset 0 4px 8px rgba(255, 255, 255, 0.4),
    inset 0 -4px 8px rgba(138, 98, 14, 0.4),
    0 5px 10px -3px rgba(212, 175, 55, 0.5);
  transform: translateY(1px) scale(0.98);
}

/* --- Hero background --- */
.hero-screen {
  /* В сочетании с viewport-fit=cover, 100vh / 100dvh растягивает секцию 
     на весь физический экран, включая области под статус-баром и индикатором Home */
  min-height: 100vh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

.hero-header-bar {
  padding-top: env(safe-area-inset-top, 0px);
}

.hero-pattern {
  position: relative;
  isolation: isolate;
  /* Фон убран — отображается через фиксированный слой .hero-fixed-bg,
     который покрывает весь экран включая safe-area зоны */
}

/* Сетка теперь отрисовывается на интерактивном canvas, поэтому CSS-версия отключена */
.hero-pattern::before {
  content: none;
}

.hero-pattern::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% 100%, rgba(0, 0, 0, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 70% 50% at 50% 50%, transparent 35%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

/* --- Utilities --- */
.text-outline {
  text-shadow: 
    -1px -1px 0 rgba(0, 0, 0, 0.25),  
     1px -1px 0 rgba(0, 0, 0, 0.25),
    -1px  1px 0 rgba(0, 0, 0, 0.25),
     1px  1px 0 rgba(0, 0, 0, 0.25),
     0 6px 16px rgba(0, 0, 0, 0.6),
     0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.7;
}

.hero-glow--1 {
  top: -8%;
  right: -5%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(47, 132, 82, 0.35) 0%, transparent 70%);
}

.hero-glow--2 {
  bottom: -15%;
  left: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(26, 84, 50, 0.3) 0%, transparent 70%);
}

.hero-glow--3 {
  top: 40%;
  left: 35%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(31, 107, 61, 0.15) 0%, transparent 70%);
  filter: blur(60px);
}

.hero-glow--4 {
  top: 15%;
  left: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(82, 159, 113, 0.12) 0%, transparent 70%);
  filter: blur(40px);
}

@keyframes heroShimmer {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

.hero-glow--1 { animation: heroShimmer 8s ease-in-out infinite; }
.hero-glow--2 { animation: heroShimmer 10s ease-in-out infinite reverse; }

/* --- Hero photo --- */
.hero-photo {
  position: relative;
  line-height: 0;
}

.hero-photo--pinned {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.hero-photo__glow {
  position: absolute;
  bottom: 0;
  right: 0;
  left: auto;
  transform: none;
  width: 70%;
  height: 55%;
  background: radial-gradient(ellipse, rgba(212, 175, 55, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
}

.hero-photo__img {
  position: absolute;
  left: 50px;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  max-width: none;
  height: calc(100svh - 100px);
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: bottom left;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
}

@media (min-width: 640px) {
  .hero-photo__img {
    position: relative;
    left: auto;
    bottom: auto;
    height: 76vh;
    max-width: 85%;
    margin: 0;
    object-position: bottom right;
  }
}

@media (min-width: 1024px) {
  .hero-photo--pinned {
    width: 72%;
    justify-content: flex-end;
    padding-right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  }

  .hero-photo__img {
    height: 90svh;
    max-width: 100%;
    width: auto;
    margin-left: auto;
    transform: none;
  }
}

/* --- Card hover lift --- */
.card-hover {
  transition: box-shadow 0.3s ease;
}
.card-hover:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.animate-fadeInUp {
  animation: fadeInUp 0.7s ease forwards;
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.stat-number {
  animation: countUp 0.6s ease forwards;
}

/* --- Placeholder image blocks --- */
.img-placeholder {
  background: linear-gradient(135deg, #d5e8da 0%, #7eb894 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5432;
  font-size: 14px;
  font-weight: 500;
}

/* --- Week tab (active state) --- */
.week-tab.active {
  background-color: #1a5432;
  color: white;
}

/* --- Mobile menu transition --- */
.mobile-menu {
  transition: max-height 0.3s ease, opacity 0.3s ease;
}

/* --- Section title underline --- */
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, #2f8452, #1a5432);
  border-radius: 2px;
  margin-top: 12px;
}
.section-title.center::after {
  margin-left: auto;
  margin-right: auto;
}

/* --- Week card style --- */
.week-card {
  border: 1px solid rgba(47, 132, 82, 0.18);
}

/* --- Floating Bottom Navbar Dock --- */
#navbar {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 100px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  width: 90%;
  max-width: 1140px;
  border-radius: 32px; /* Фиксированное скругление, чтобы при открытии меню форма оставалась прямоугольной с такими же углами, а не становилась овалом */
  background: rgba(255, 255, 255, 0.45); /* Повышенная прозрачность для эффекта стекла */
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  border: 1px solid rgba(47, 132, 82, 0.35); /* Тонкая зелёная обводка */
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.06), 
    inset 0 1px 2px rgba(255, 255, 255, 0.6); /* Внутренний отблеск/блик на стекле */
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, border-radius 0.3s ease, background 0.3s ease;
}

#navbar.navbar--expanded {
  /* Removed border-radius and background overrides to keep pill shape and glass effect */
}

#navbar.navbar--visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

/* --- Floating nav indicator --- */
.nav-indicator {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  background-color: #1a5432; /* Наш глубокий темно-зеленый */
  box-shadow: 0 4px 12px rgba(26, 84, 50, 0.15);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  border-radius: 9999px;
}

#desktop-nav a {
  position: relative;
  z-index: 1; /* Текст ссылки поверх индикатора */
  padding: 0.4rem 0.9rem;
  border-radius: 9999px;
  transition: color 0.25s ease, background-color 0.25s ease;
  font-weight: 600;
}

#desktop-nav a.active {
  color: #ffffff !important; /* Белый текст для активной ссылки */
}

#desktop-nav a:hover:not(.active) {
  background-color: rgba(26, 84, 50, 0.06);
  color: #1a5432;
}

#mobile-nav a:not(.bg-brand-700) {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  transition: all 0.3s ease;
  width: max-content;
}

#mobile-nav a.active:not(.bg-brand-700) {
  color: #ffffff !important;
  background-color: #1a5432;
  font-weight: 600;
}

#mobile-nav a:hover:not(.active):not(.bg-brand-700) {
  background-color: rgba(26, 84, 50, 0.06);
  color: #1a5432;
}

/* --- Mobile Menu Smooth Height Animation --- */
.mobile-menu-wrapper {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  pointer-events: none;
  transition: grid-template-rows 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease, padding 0.4s ease, margin 0.4s ease;
  padding-top: 0;
  padding-bottom: 0;
  margin-top: 0;
}
.mobile-menu-wrapper.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  pointer-events: auto;
  padding-top: 1rem;
  padding-bottom: 1rem;
  margin-top: 0.5rem;
}
.mobile-menu-inner {
  overflow: hidden;
}


/* --- Infinite Horizontal Marquee Gallery --- */
.marquee-track {
  display: flex;
  width: max-content;
  user-select: none;
  will-change: transform; /* Аппаратное ускорение (GPU) */
}

#marquee-container::-webkit-scrollbar {
  display: none; /* Скрываем скроллбар нативно */
}

#marquee-container img {
  pointer-events: none; /* Отключаем события мыши на картинках, чтобы клик шел на контейнер */
  user-select: none;
  -webkit-user-drag: none;
}


/* --- Video Review Slider Container --- */
#studentsSlider {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 20px 1rem 40px 1rem;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: none;
  cursor: grab;
  will-change: scroll-position;
  /* Ограничиваем область перерисовки для почель внутри */
  contain: content;
}

#studentsSlider::-webkit-scrollbar {
  display: none;
}

#studentsSlider.grabbing {
  cursor: grabbing;
  user-select: none;
  scroll-behavior: auto;
  pointer-events: auto;
}

/* Отключаем hover-эффекты карточек во время скролла — главный виновник фризов */
#studentsSlider.is-scrolling .video-review-card,
#studentsSlider.is-scrolling .video-review-card * {
  /* Отключено для предотвращения блокировки кликов */
}

/* --- Кнопки навигации слайдера отзывов --- */
.slider-nav-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b5563;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease;
  flex-shrink: 0;
}

.slider-nav-btn:hover {
  background: #1a5c35;
  border-color: #1a5c35;
  color: #ffffff;
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(26, 92, 53, 0.35);
}

.slider-nav-btn:active {
  transform: scale(0.97);
}

.slider-nav-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* --- Students Slide (как .program-slide .students-section) --- */
.video-review-card {
  flex: 0 0 337px;
  height: 600px;
  background: #ffffff;
  border-radius: 24px;
  position: relative;
  /* Только transform в transition — box-shadow требует repaint и тормозит скролл */
  transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  cursor: pointer;
  /* contain ограничивает перерисовку до пределов карточки */
  contain: layout style;
}



@media (max-width: 480px) {
  .video-review-card {
    flex: 0 0 281px;
    height: 500px;
  }
}

/* Slide content — занимает всю карточку */
.video-review-card .slide-content {
  padding: 0;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Плашки имени/группы/instagram — абсолютно поверх видео */
.video-review-card .slide-header {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 0;
}

/* Плашка имени — тёмно-зелёный фон, белый текст */
.student-name-label {
  background: rgba(26, 92, 53, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Плашка группы — зелёный фон светлее, белый текст */
.student-group-label {
  background: rgba(47, 132, 82, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 6px 14px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Иконка Instagram — как плашка группы (зелёный фон, белая иконка) */
.student-instagram-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(47, 132, 82, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  text-decoration: none;
}

.student-instagram-link:hover {
  background: rgba(26, 92, 53, 0.95);
  transform: scale(1.1);
  border-color: rgba(255, 255, 255, 0.25);
}

.student-instagram-link svg {
  width: 16px;
  height: 16px;
}

/* Видео-контейнер */
.video-review-card .video-container {
  width: 100%;
  height: 100%;
  position: relative;
  background: #000;
  cursor: pointer;
}

.student-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: translate3d(0, 0, 0);
  backface-visibility: hidden;
}

/* Затемняющий оверлей с кнопкой Play */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 5;
}

.video-review-card:hover .video-overlay {
  background: rgba(0, 0, 0, 0.1);
}

/* Кнопка Play — глассморфизм с зелёным текстом */
.play-button {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1a5c35;
  border: 1px solid rgba(47, 132, 82, 0.4);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2),
              inset 0 1px 0 0 rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-button svg {
  width: 30px;
  height: 30px;
  margin-left: 0;
}

.play-button .play-icon {
  margin-left: 3px; /* треугольник чуть правее для визуального центра */
}

.play-button .pause-icon {
  margin-left: 0;
}

.video-review-card:hover .play-button {
  transform: scale(1.1);
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(47, 132, 82, 0.6);
}

/* Состояние воспроизведения */
.video-review-card.playing .video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* При наведении во время воспроизведения — ничего не показываем */
.video-review-card.playing:hover .video-overlay {
  opacity: 0;
  pointer-events: none;
}

/* Скрываем Play, показываем Pause когда видео играет */
.video-review-card.playing .play-icon {
  display: none !important;
}

.video-review-card.playing .pause-icon {
  display: block !important;
  margin-left: 0;
}

.video-review-card.playing .student-name-label {
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.video-review-card.playing:hover .student-name-label {
  opacity: 1;
}

/* Hide scrollbar globally for slider */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ===========================
   PRICING SECTION
=========================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
  max-width: 1200px;
  margin: 0 auto;
}

@media (min-width: 768px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }

.pricing-card {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  min-height: 580px;
}

.pricing-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(47, 132, 82, 0.12);
}

.pricing-card.popular {
  border: 2px solid #2f8452;
  background: linear-gradient(145deg, #f0fdf4 0%, #fff 100%);
}

.popular-badge {
  position: absolute;
  top: -12px;
  right: 1.25rem;
  background: #2f8452;
  color: #fff;
  padding: 0.3rem 0.85rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-header {
  text-align: center;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f0f0f0;
}

.plan-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #1a3a28;
  margin: 0 0 0.2rem;
}

.plan-title--vip {
  color: #2f8452;
}

.plan-type {
  color: #2f8452;
}

}

.pricing-price-box {
  margin: 0.75rem 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
}

.old-price-val {
  font-size: 1.1rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
  line-height: 1.2;
}

.new-price-val {
  font-size: 1.6rem;
  font-weight: 900;
  color: #2f8452;
  line-height: 1.2;
}

.currency-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
}

.price-on-request {
  font-size: 1.35rem;
  font-weight: 800;
  color: #2f8452;
  margin: 0.25rem 0;
}

.plan-subtitle {
  font-size: 0.85rem;
  color: #6b7280;
  margin: 0;
}

.pricing-features {
  flex-grow: 1;
  margin-bottom: 0.75rem;
}

.pricing-features .feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.875rem;
  line-height: 1.4;
}

.feature-icon {
  flex-shrink: 0;
  font-weight: 700;
  width: 16px;
  margin-top: 0.05rem;
}

.feature-item.included .feature-icon { color: #16a34a; }
.feature-item.excluded .feature-icon { color: #d1d5db; }
.feature-item.included .feature-text { color: #1a3a28; }
.feature-item.excluded .feature-text { color: #9ca3af; }

.pricing-access {
  text-align: center;
  padding: 0.6rem;
  background: #f8fafb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}

.access-text {
  margin: 0;
  font-size: 0.8rem;
  color: #6b7280;
  line-height: 1.5;
}

.access-text strong {
  color: #1a3a28;
  font-weight: 700;
  font-size: 0.95rem;
}

.pricing-footer { margin-top: auto; }

.pricing-button {
  width: 100%;
  margin-top: 0.75rem;
  background: #2f8452;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid #2f8452;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.02em;
}

.pricing-button:hover {
  background: #1a5c35;
  border-color: #1a5c35;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 132, 82, 0.35);
}

/* ===========================
   PRICING MODAL
=========================== */
.pricing-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.pricing-modal.is-open {
  display: flex;
}

.pricing-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

.pricing-modal__container {
  position: relative;
  background: #fff;
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: modalSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalSlideUp {
  from { opacity: 0; transform: translateY(40px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.pricing-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e5e7eb;
  gap: 0.75rem;
  background: #f9fafb;
}

.pricing-modal__tabs {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pricing-modal__tab {
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #6b7280;
  transition: all 0.2s;
}

.pricing-modal__tab.active,
.pricing-modal__tab:hover {
  background: #2f8452;
  color: #fff;
  border-color: #2f8452;
}

.pricing-modal__close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s;
}

.pricing-modal__close:hover {
  background: #fee2e2;
  color: #dc2626;
  border-color: #fca5a5;
}

.pricing-modal__body {
  padding: 1.75rem 1.5rem;
}

.pricing-modal__content {
  display: none;
}

.pricing-modal__content.active {
  display: block;
}

.pricing-modal__plan-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: #1a3a28;
  margin: 0 0 0.25rem;
}

.pricing-modal__plan-subtitle {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 0.5rem;
}

.pricing-modal__price-display {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1.25rem;
}

.pricing-modal__price-display .old-price {
  font-size: 1rem;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.pricing-modal__price-display .new-price {
  font-size: 1.75rem;
  font-weight: 850;
  color: #2f8452;
}

.pricing-modal__form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-modal__form input {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #1a3a28;
  background: #f9fafb;
  transition: border-color 0.2s;
  outline: none;
  box-sizing: border-box;
}

.pricing-modal__form input:focus {
  border-color: #2f8452;
  background: #fff;
}

.pricing-modal__form button[type="submit"] {
  margin-top: 0.5rem;
  background: #2f8452;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-modal__form button[type="submit"]:hover {
  background: #1a5c35;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(47, 132, 82, 0.35);
}

@media (max-width: 640px) {
  .pricing-card { min-height: auto; }
  .pricing-modal__tabs { gap: 0.3rem; }
  .pricing-modal__tab { font-size: 0.72rem; padding: 0.3rem 0.6rem; }
}

/* --- Footer Hero Background --- */
.footer-hero {
  position: relative;
  isolation: isolate;
  background-color: #030a07;
  background-image:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(47, 132, 82, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 20%, rgba(31, 107, 61, 0.2) 0%, transparent 50%),
    radial-gradient(ellipse 45% 50% at 5% 70%, rgba(26, 84, 50, 0.25) 0%, transparent 45%),
    radial-gradient(circle at 70% 65%, rgba(47, 132, 82, 0.12) 0%, transparent 35%),
    radial-gradient(circle at 25% 35%, rgba(15, 49, 29, 0.6) 0%, transparent 40%),
    linear-gradient(165deg, #020805 0%, #061410 25%, #0a1f14 50%, #051008 75%, #020604 100%);
}

/* --- Декоративный орнамент сверху --- */
.footer-ornament-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(47, 132, 82, 0.2) 20%,
    rgba(82, 159, 113, 0.6) 50%,
    rgba(47, 132, 82, 0.2) 80%,
    transparent 100%
  );
}

/* --- Блик снизу --- */
.footer-glow-bottom {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 180px;
  background: radial-gradient(ellipse at bottom, rgba(47, 132, 82, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

/* --- Логотип --- */
.footer-logo-wrap {
  transition: opacity 0.2s;
}
.footer-logo-wrap:hover { opacity: 0.8; }

.footer-logo-img {
  height: 3.5rem;
  width: auto;
}

.footer-brand-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.footer-brand-text span {
  color: #529f71;
}

/* --- Тэглайн --- */
.footer-tagline {
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.38);
  max-width: 320px;
}

/* --- Кнопки соцсетей --- */
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.04);
  color: rgba(255,255,255,0.5);
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.footer-social-btn:hover {
  background: rgba(47, 132, 82, 0.18);
  border-color: rgba(47, 132, 82, 0.45);
  color: #6dbf8f;
  transform: translateY(-2px);
}

/* --- Заголовки колонок --- */
.footer-col-title {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.5rem;
}

/* --- Список навигации --- */
.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.footer-nav-list a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}
.footer-nav-list a:hover {
  color: #fff;
  padding-left: 4px;
}

/* --- Список контактов --- */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.footer-contact-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Иконка контакта */
.footer-contact-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(47, 132, 82, 0.12);
  border: 1px solid rgba(47, 132, 82, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #529f71;
}
.footer-contact-icon svg {
  width: 14px;
  height: 14px;
}
.footer-contact-icon--wa {
  background: rgba(37, 211, 102, 0.1);
  border-color: rgba(37, 211, 102, 0.2);
  color: #25d366;
}
.footer-contact-icon--ig {
  background: rgba(193, 53, 132, 0.1);
  border-color: rgba(193, 53, 132, 0.2);
  color: #c13584;
}

/* Текст контакта */
.footer-contact-city {
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.95);
  margin: 0 0 2px;
  line-height: 1.4;
}
.footer-contact-addr {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.4;
}
.footer-contact-link {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 2;
}
.footer-contact-link:hover { color: #fff; }

/* --- Разделитель --- */
.footer-divider-wrap { padding: 0; }
.footer-divider-line {
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 20%,
    rgba(255,255,255,0.1) 50%,
    rgba(255,255,255,0.06) 80%,
    transparent 100%
  );
}

/* --- Нижняя строка --- */
.footer-copyright {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  margin: 0;
}
.footer-bottom-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.footer-bottom-links a {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.22);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,0.5); }
.footer-dot {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.15);
}

/* --- Missing Tailwind Utilities (Purged from tailwind.css) --- */
.pt-20 { padding-top: 5rem; }
.pt-16 { padding-top: 4rem; }
.pt-5  { padding-top: 1.25rem; }
.pb-24 { padding-bottom: 6rem; }
.pb-20 { padding-bottom: 5rem; }
.pb-16 { padding-bottom: 4rem; }
.pt-6 { padding-top: 1.5rem; }
.pt-1 { padding-top: 0.25rem; }
.pb-28 { padding-bottom: 12rem !important; }
.text-brand-400 { color: #529f71; }
.text-brand-500 { color: #2f8452; }
.hover\:text-brand-400:hover { color: #529f71; }
.tracking-\[0\.18em\] { letter-spacing: 0.18em; }
.mb-7 { margin-bottom: 1.75rem; }
.opacity-60 { opacity: 0.6; }
.gap-2\.5 { gap: 0.625rem; }
.gap-3 { gap: 0.75rem; }
.gap-6 { gap: 1.5rem; }
.gap-7 { gap: 1.75rem; }
.gap-12 { gap: 3rem; }
.flex-col { flex-direction: column; }
.pt-32 { padding-top: 8rem; }

@media (min-width: 640px) {
  .sm\:flex-row { flex-direction: row; }
}

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:col-span-5 { grid-column: span 5 / span 5; }
  .md\:col-span-3 { grid-column: span 3 / span 3; }
  .md\:col-span-4 { grid-column: span 4 / span 4; }
  .md\:grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .lg\:gap-16 { gap: 4rem; }
  .lg\:px-20 { padding-left: 5rem; padding-right: 5rem; }
}

/* ===== Floating Social Buttons ===== */

@keyframes floatSocialIn {
  0%   { opacity: 0; transform: translateY(30px) scale(0.7); }
  70%  { opacity: 1; transform: translateY(-6px) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatBob {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-5px); }
}

@keyframes pulseWa {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 0 rgba(37,211,102,0.5); }
  60%       { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 10px rgba(37,211,102,0); }
}

@keyframes pulseIg {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 0 rgba(214,36,159,0.45); }
  60%       { box-shadow: 0 4px 16px rgba(0,0,0,0.22), 0 0 0 10px rgba(214,36,159,0); }
}

.float-social-dock {
  position: fixed;
  right: 1.25rem;
  bottom: 7rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.float-social-btn {
  position: relative;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  animation:
    floatSocialIn 0.6s cubic-bezier(0.34,1.56,0.64,1) forwards,
    floatBob 3.5s ease-in-out infinite;
  transition: transform 0.22s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s;
}
.float-social-btn svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
.float-social-btn:hover {
  transform: scale(1.15) translateY(-3px) !important;
  animation-play-state: paused;
}

/* WhatsApp */
.float-social-btn--wa {
  background: #25d366;
  animation-delay: 0.3s, 0.9s;
  animation-duration: 0.6s, 3.5s;
  animation:
    floatSocialIn 0.6s 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards,
    floatBob 3.5s 0.9s ease-in-out infinite,
    pulseWa 2.4s 1.2s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.float-social-btn--wa:hover {
  background: #20bd5a;
  box-shadow: 0 8px 28px rgba(37,211,102,0.45) !important;
}

/* Instagram */
.float-social-btn--ig {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  animation:
    floatSocialIn 0.6s 0.55s cubic-bezier(0.34,1.56,0.64,1) forwards,
    floatBob 3.5s 1.4s ease-in-out infinite,
    pulseIg 2.4s 1.6s ease-in-out infinite;
  box-shadow: 0 4px 16px rgba(0,0,0,0.22);
}
.float-social-btn--ig:hover {
  box-shadow: 0 8px 28px rgba(214,36,159,0.45) !important;
}

/* Tooltip */
.float-social-tooltip {
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15,20,15,0.88);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s;
}
.float-social-tooltip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-left-color: rgba(15,20,15,0.88);
}
.float-social-btn:hover .float-social-tooltip {
  opacity: 1;
}

/* Missing Tailwind responsive classes */
@media (min-width: 640px) {
  .sm\:hidden { display: none !important; }
  .sm\:flex { display: flex !important; }
  .sm\:block { display: block !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:flex-wrap { flex-wrap: wrap !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:items-start { align-items: flex-start !important; }
}

/* Fix About Us badge overflow on mobile */
@media (max-width: 639px) {
  .float-social-dock {
    display: none !important;
  }
  .about-badge-mobile-fix {
    right: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    bottom: -1.5rem !important;
    padding: 1rem 1.5rem !important;
    width: max-content !important;
    text-align: center !important;
  }
}
