/*
 * StudyHub.AZ Card Styles
 * Filename: cards.css
 * Author: Ostwind by Dr.FC
 * Карточки и блоки
 */

/*
╔═══════════════════════════════════════════════════════════════════════════════╗
║                    🏗️ STUDYHUB.AZ CSS АРХИТЕКТУРА                            ║
║                         📂 ФАЙЛ: cards.css                                   ║
╚═══════════════════════════════════════════════════════════════════════════════╝

🎯 НАЗНАЧЕНИЕ ФАЙЛА:
├─ Все типы карточек и блоков
├─ Специализированные карточки для пользователей
├─ stat-card, feature-card, department-cards
└─ Тарифные карточки и настройки

👥 ЦЕЛЕВЫЕ ГРУППЫ (15+ ЛЕТ ОПЫТА В IT):
🧑‍💻 Программисты: "Вауу! Matrix эффекты, hologram glitch, cyber pulse!"
  → .tech-card-wow (cyber borders, matrix glow, hologram)
👔 Директора: "Красиво! Золото, мрамор, diamond sparkle!"
  → .executive-card-luxury (marble, gold, diamond effects)
👩‍🏫 Учителя: "Удобно! Читаемость, focus highlight, comfort!"
  → .teacher-card-comfort (readable, focus, gentle animations)
👨‍👩‍👧‍👦 Родители: "Серьезная компания! Security shields, certificates!"
  → .parent-card-trust (security, certificates, authority)
🎓 Ученики: "Современный! Neon glow, gaming effects, trendy!"
  → .student-card-modern (neon, gaming, trendy glass)

💎 РЕЗУЛЬТАТ: Стили готовы к использованию и полностью соответствуют 
архитектуре StudyHub.AZ с 15+ летним опытом в IT!

📐 АРХИТЕКТУРНЫЕ ПРАВИЛА:
✅ Только стили карточек и блоков
✅ Использование переменных из vars.css
✅ Интеграция с animations.css
✅ Hover-эффекты и transitions
❌ Запрещены: медиа-запросы, layout стили, utilities

🔗 СВЯЗИ:
├─ vars.css предоставляет цвета и эффекты
├─ animations.css предоставляет @keyframes
├─ components.css использует карточки в сетках
└─ device-файлы адаптируют размеры карточек
*/

/* === TARIFF CARDS === */
.tariff-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px;
  width: 100%;
  max-width: 300px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
}

.tariff-card:hover {
  transform: translateY(-6px);
}

.tariff-card-header-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
}

.tariff-id-admin {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.tariff-status-admin {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tariff-status-admin.status-active {
  background: rgba(11, 122, 62, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.tariff-status-admin.status-inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid #9ca3af;
}

.tariff-card h2 {
  font-size: 1.6rem;
  color: #1c1c1e;
  margin-bottom: 10px;
}

.tariff-card .description {
  font-size: 0.95rem;
  color: #444;
  margin: 10px 0 20px;
  min-height: 50px;
}

.tariff-card .price {
  font-size: 1.4rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: 20px;
  line-height: 1.6;
}

.tariff-card .price-yearly {
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  display: block;
  margin-top: 8px;
}

.tariff-details {
  list-style: none;
  text-align: left;
  font-size: 0.95rem;
  padding: 0;
  margin: 0 0 20px;
}

.tariff-details li {
  margin: 6px 0;
  color: #333;
}

.tariff-card .button {
  margin-top: auto;
  align-self: center;
}

.tariff-actions-admin {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

.tariff-actions-admin .btn {
  width: 100%;
  justify-content: center;
  padding: 10px 16px;
  font-size: 0.9rem;
}

.tariff-card.tariff-active {
  border: 2px solid var(--color-success);
}

.tariff-card.tariff-inactive {
  border: 2px solid var(--color-border);
  opacity: 0.85;
}

/* === FEATURE CARDS === */
.feature-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100%;
  max-width: 280px;
  min-width: 0; /* Предотвращает нарушение ширины */
  background: var(--glass-bg);
  backdrop-filter: var(--backdrop-filter);
  border: 1px solid var(--glass-border);
  padding: 24px;
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transition: var(--transition);
  justify-self: center;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  height: auto;
  min-height: auto;
  max-height: none;
  /* word-wrap управляется глобально в base.css */
  /* Видимость обеспечивается базовыми стилями в base.css */
  opacity: 1;
  visibility: visible;
  transform: none;
}

.feature-item::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.feature-item:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-strong), 0 0 30px rgba(102, 126, 234, 0.2);
}

.feature-item:hover::before {
  transform: scale(1);
}

.feature-item img {
  font-size: 2rem;
  margin-bottom: 12px;
  color: var(--color-accent);
}

.feature-item h3 {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-size: 1.2rem;
  color: #1c1c1e;
  margin-bottom: 10px;
  /* word-wrap управляется глобально в base.css */
}

.feature-item p {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  font-size: 0.95rem;
  color: #444;
  /* word-wrap управляется глобально в base.css */
  line-height: 1.4;
}

/* === ANIMATE.CSS АНИМАЦИИ ДЛЯ FEATURE ITEMS === */
/* Анимации при загрузке страницы */
.feature-item.animate__fadeInUp {
  animation: fadeInUp 0.6s ease forwards;
  /* Обеспечиваем видимость после анимации */
  animation-fill-mode: forwards;
}

/* === AOS DELAY ДЛЯ ПОСЛЕДОВАТЕЛЬНОСТИ === */
.feature-item[data-aos-delay="100"] { animation-delay: 0.1s; }
.feature-item[data-aos-delay="200"] { animation-delay: 0.2s; }
.feature-item[data-aos-delay="300"] { animation-delay: 0.3s; }
.feature-item[data-aos-delay="400"] { animation-delay: 0.4s; }
.feature-item[data-aos-delay="500"] { animation-delay: 0.5s; }
.feature-item[data-aos-delay="600"] { animation-delay: 0.6s; }

/* === FEATURE ITEM BUTTON IMPROVEMENTS === */
.feature-button-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.feature-button-wrapper h3 {
  text-align: center;
  margin: 8px 0;
  font-size: 1.2rem;
  color: #1c1c1e;
}

.feature-item .sub-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.feature-item .button-link,
.feature-item .main-button {
  width: 100%;
  text-align: left;
  margin: 0;
  padding: 10px 16px;
  font-size: 0.9rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
}

.feature-item .button-link i,
.feature-item .main-button i {
  color: white !important;
  margin-right: 8px;
  font-size: 0.9rem;
}

.feature-item .button-link {
  background: linear-gradient(to right, var(--color-primary), var(--color-accent));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
}

.feature-item .main-button {
  background: linear-gradient(to right, var(--color-accent), var(--color-primary));
  color: white;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  transition: var(--transition);
  font-weight: 600;
}

.feature-item .button-link:hover,
.feature-item .main-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



/* === STATISTICS CARDS === */
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.stat-icon {
  margin-bottom: 15px;
}

.stat-info h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.stat-info span {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--color-primary);
}

/* === GLOBAL DEPARTMENT ITEMS === */
.global-dept-item {
  background: var(--color-bg-card);
  border-radius: var(--radius);
  padding: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.global-dept-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.dept-info {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex: 1;
}

.dept-info i {
  font-size: 1.4rem;
  color: var(--color-accent);
  min-width: 24px;
}

.dept-info span {
  font-weight: 500;
  color: var(--color-text-main);
}

/* === DEPARTMENT STATUS BADGES === */
.department-status {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.department-status.global {
  background: rgba(12, 60, 120, 0.1);
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.department-status.local {
  background: rgba(11, 122, 62, 0.1);
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.department-status.linked {
  background: rgba(106, 27, 154, 0.1);
  color: #6a1b9a;
  border: 1px solid #6a1b9a;
}

/* === SETTINGS BOX === */
.settings-box {
  max-width: 600px;
  margin: var(--space-xl) auto;
  padding: var(--space-lg);
  background: var(--color-bg-card);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
  position: relative;
  overflow: hidden;
}

.settings-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* === VERIFY DEVICE BOX === */
.verify-device-box {
  max-width: 430px;
  width: 85%;
  margin: 50px auto;
  padding: var(--space-lg);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--color-bg-card);
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.8s ease-in-out;
  position: relative;
  overflow: hidden;
}

.verify-device-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  animation: verifyGlow 2s ease-in-out infinite;
}

/* === VERIFY BOX ЭФФЕКТЫ === */
.verify-device-box {
  animation: verifyBoxAppear 0.6s ease-out !important;
  position: relative !important;
}

.verify-device-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent), var(--color-primary));
  border-radius: 12px 12px 0 0;
  animation: verifyGlow 2s ease-in-out infinite;
}

/* Анимация verifyBoxAppear перенесена в animations.css */

/* === LOADING STATE === */
.global-dept-item.loading {
  position: relative;
  overflow: hidden;
}

.global-dept-item.loading::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.6), 
    transparent);
  animation: loadingShimmer 1.5s infinite;
}

/* === EMPTY STATE === */
.empty-global-depts {
  text-align: center;
  padding: var(--space-xl) 0;
  color: var(--color-text-muted);
}

.empty-global-depts i {
  font-size: 2rem;
  margin-bottom: var(--space-md);
  color: var(--color-gray);
}

.empty-global-depts p {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
}

.empty-global-depts .button {
  margin-top: var(--space-md);
}

/* === SELECTED DEPT STYLE === */
.global-dept-item.selected {
  background: var(--color-bg-linked);
  color: var(--color-status-linked);
  border-color: var(--color-status-linked);
}

/* === ANIMATIONS === */
.global-dept-item {
  animation: departmentFadeIn 0.4s ease-out;
  animation-fill-mode: both;
}

.global-dept-item:nth-child(1) { animation-delay: 0.1s; }
.global-dept-item:nth-child(2) { animation-delay: 0.2s; }
.global-dept-item:nth-child(3) { animation-delay: 0.3s; }
.global-dept-item:nth-child(4) { animation-delay: 0.4s; }
.global-dept-item:nth-child(5) { animation-delay: 0.5s; }

/* === КОРПОРАТИВНЫЕ КАРТОЧКИ === */
.stat-card-modern {
  background: var(--corporate-bg-strong);
  border: var(--professional-border);
  border-radius: 12px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
  box-shadow: var(--corporate-shadow);
  animation: slideInUp 0.6s var(--transition-bounce);
  animation-fill-mode: both;
}

.stat-card-modern:nth-child(1) { animation-delay: 0.1s; }
.stat-card-modern:nth-child(2) { animation-delay: 0.2s; }
.stat-card-modern:nth-child(3) { animation-delay: 0.3s; }
.stat-card-modern:nth-child(4) { animation-delay: 0.4s; }

.stat-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-accent);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.stat-card-modern:hover {
  transform: translateY(-4px);
  box-shadow: var(--executive-shadow);
  border-color: var(--text-corporate-accent);
}

.stat-card-modern:hover::before {
  transform: scaleX(1);
}

.stat-icon-modern {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--gradient-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
  box-shadow: var(--premium-shadow);
}

.stat-card-modern:hover .stat-icon-modern {
  transform: scale(1.1);
  background: var(--gradient-executive);
  box-shadow: var(--executive-shadow);
}

.stat-icon-modern i {
  font-size: 20px;
  color: white;
  text-shadow: none;
}

.stat-title-modern {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-corporate-muted);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-shadow: none;
}

.stat-value-modern {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--text-corporate-primary);
  line-height: 1;
  font-family: var(--font-main);
  text-shadow: none;
}

/* === КОРПОРАТИВНЫЕ КАРТОЧКИ ФУНКЦИЙ === */
.feature-card-modern {
  background: var(--corporate-bg-strong);
  border: var(--professional-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--corporate-shadow);
  animation: fadeInUp 0.8s var(--transition-bounce);
  animation-fill-mode: both;
}

.feature-card-modern:nth-child(odd) { 
  animation-delay: 0.1s;
}
.feature-card-modern:nth-child(even) { 
  animation-delay: 0.2s;
}

.feature-card-modern::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.05) 0%, transparent 70%);
  transform: scale(0);
  transition: transform 0.6s ease;
  pointer-events: none;
}

.feature-card-modern:hover::before {
  transform: scale(1);
}

.feature-card-modern:hover {
  transform: translateY(-6px);
  box-shadow: var(--executive-shadow);
  border-color: var(--text-corporate-accent);
}

.feature-header-modern {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.feature-icon-modern {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--gradient-cyber);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  flex-shrink: 0;
  box-shadow: var(--neural-pulse);
}

.feature-card-modern:hover .feature-icon-modern {
  background: var(--gradient-neural);
  transform: rotate(360deg) scale(1.15);
  box-shadow: var(--cyber-glow);
}

.feature-icon-modern i {
  font-size: 28px;
  color: white;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.6);
}

.feature-title-modern {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-ultra-primary);
  margin: 0;
  line-height: 1.3;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.feature-description-modern {
  font-size: 1rem;
  color: var(--text-ultra-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* === 🧑‍💻 КАРТОЧКИ ДЛЯ ПРОГРАММИСТОВ - "ВАУУ!" === */
.tech-card-wow {
  background: var(--code-syntax-bg);
  border: var(--cyber-border);
  border-radius: 16px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

.tech-card-wow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--neural-shimmer);
  transition: left 0.8s ease;
}

.tech-card-wow:hover::before {
  left: 100%;
}

.tech-card-wow:hover {
  transform: translateY(-8px) rotateX(5deg);
  box-shadow: var(--matrix-glow), 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: cyberPulse 2s infinite;
}

.tech-card-wow .tech-icon {
  width: 64px;
  height: 64px;
  background: var(--hologram-gradient);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.4s ease;
}

.tech-card-wow:hover .tech-icon {
  animation: hologramGlitch 1s ease-in-out;
  transform: scale(1.1);
}

.tech-card-wow .tech-title {
  color: var(--tech-neon-blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
}

.tech-card-wow .tech-description {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* === 👔 КАРТОЧКИ ДЛЯ ДИРЕКТОРОВ - "КРАСИВО" === */
.executive-card-luxury {
  background: linear-gradient(135deg, var(--premium-marble) 0%, rgba(255, 255, 255, 0.95) 100%);
  border: 2px solid var(--luxury-platinum);
  border-radius: 24px;
  padding: 36px;
  position: relative;
  overflow: hidden;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 4px 16px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  text-align: left; /* Все содержимое по умолчанию выравнивается слева */
}

/* Гарантия выравнивания для полей формы внутри карточек */
.executive-card-luxury.settings-form-block input,
.executive-card-luxury.settings-form-block select,
.executive-card-luxury.settings-form-block textarea {
  text-align: left !important;
  direction: ltr !important;
}

.executive-card-luxury::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold-accent), var(--luxury-gold), var(--gold-accent));
  background-size: 200% 100%;
}

.executive-card-luxury::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.03) 0%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}

.executive-card-luxury:hover {
  box-shadow: 
    0 20px 60px rgba(0, 0, 0, 0.15),
    0 8px 32px rgba(0, 0, 0, 0.08),
    0 0 0 1px rgba(255, 215, 0, 0.1);
  border-color: var(--luxury-gold);
}

.executive-card-luxury:hover::after {
  opacity: 0.8;
  /* Убираем анимацию для лучшей читаемости */
}

.executive-card-luxury .luxury-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--royal-gradient) 0%, var(--luxury-gold) 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  box-shadow: 
    0 8px 24px rgba(255, 215, 0, 0.3),
    0 4px 12px rgba(0, 0, 0, 0.1);
}

.executive-card-luxury:hover .luxury-icon {
  box-shadow: 
    0 12px 32px rgba(255, 215, 0, 0.4),
    0 8px 24px rgba(0, 0, 0, 0.15);
}

.executive-card-luxury .luxury-icon::after {
  content: '✦';
  position: absolute;
  top: -10px;
  right: -10px;
  color: var(--luxury-gold);
  font-size: 18px;
  opacity: 0.7;
  /* Убираем анимацию для лучшей читаемости */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.6);
}

.executive-card-luxury .luxury-title {
  color: var(--text-primary-medium);
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  font-weight: 800;
  margin-bottom: 20px;
  text-shadow: 0 2px 4px rgba(30, 43, 79, 0.1);
  line-height: 1.3;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
}

.executive-card-luxury:hover .luxury-title {
  color: var(--text-primary-dark);
  transform: scale(1.02);
}

.executive-card-luxury .luxury-value {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 900;
  color: var(--text-primary-dark);
  line-height: 1;
  font-family: var(--font-main);
  text-shadow: 0 3px 6px rgba(30, 43, 79, 0.15);
  margin: 24px 0 16px 0;
  letter-spacing: -0.02em;
  transition: all 0.4s ease;
  position: relative;
}

.executive-card-luxury:hover .luxury-value {
  transform: scale(1.05);
  text-shadow: 0 4px 8px rgba(30, 43, 79, 0.2);
}

.executive-card-luxury .trust-guarantee {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: var(--executive-navy);
  opacity: 0.8;
  transition: all 0.4s ease;
  position: relative;
}

.executive-card-luxury:hover .trust-guarantee {
  opacity: 1;
  color: var(--text-body-secondary);
}

/* Финансовые карточки с особыми эффектами */
.executive-card-luxury.financial-card {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.05) 0%, 
    var(--premium-marble) 50%, 
    rgba(0, 128, 0, 0.05) 100%);
  border-color: var(--luxury-gold);
}

.executive-card-luxury.financial-card .luxury-value {
  color: var(--text-primary-dark);
  animation: financialPulse 2s ease-in-out infinite;
}

.executive-card-luxury.financial-card:hover {
  background: linear-gradient(135deg, 
    rgba(255, 215, 0, 0.1) 0%, 
    var(--premium-marble) 50%, 
    rgba(0, 128, 0, 0.1) 100%);
}

/* Анимации для карточек */
@keyframes luxuryFloat {
  0%, 100% { transform: translateY(-8px) scale(1.02); }
  50% { transform: translateY(-12px) scale(1.03); }
}

@keyframes luxuryGlow {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes financialPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

@keyframes diamondSparkle {
  0%, 100% { opacity: 1; transform: scale(1) rotate(0deg); }
  50% { opacity: 0.7; transform: scale(1.2) rotate(180deg); }
}

@keyframes goldShimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* === 👩‍🏫 КАРТОЧКИ ДЛЯ УЧИТЕЛЕЙ - "УДОБНО" === */
.teacher-card-comfort {
  background: var(--teacher-soft-bg);
  border: var(--gentle-border);
  border-radius: 12px;
  padding: var(--comfort-spacing);
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(116, 185, 255, 0.1);
  cursor: pointer;
}

.teacher-card-comfort:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(116, 185, 255, 0.2);
  animation: productivityGlow 2s ease-in-out infinite;
}

.teacher-card-comfort:focus-within {
  animation: focusHighlight 1s ease-in-out;
}

.teacher-card-comfort .comfort-icon {
  width: 56px;
  height: 56px;
  background: var(--productivity-gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.teacher-card-comfort:hover .comfort-icon {
  animation: gentleBounce 1s ease-in-out;
}

.teacher-card-comfort .comfort-title {
  color: var(--readable-contrast);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 12px;
  line-height: 1.4;
}

.teacher-card-comfort .comfort-description {
  color: var(--readable-contrast);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
}

.teacher-card-comfort .comfort-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  color: var(--teacher-calm-blue);
  font-size: 0.9rem;
  font-weight: 500;
}

/* === 👨‍👩‍👧‍👦 КАРТОЧКИ ДЛЯ РОДИТЕЛЕЙ - "ДОВЕРИЕ" === */
.parent-card-trust {
  background: var(--institutional-bg);
  border: var(--certificate-border);
  border-radius: 16px;
  padding: 28px;
  transition: all 0.4s ease;
  box-shadow: var(--authority-shadow);
  position: relative;
  overflow: hidden;
}

.parent-card-trust::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--security-shield);
}

.parent-card-trust:hover {
  transform: translateY(-4px);
  box-shadow: var(--authority-shadow), 0 12px 40px rgba(12, 60, 120, 0.2);
  animation: securityShield 3s ease-in-out infinite;
}

.parent-card-trust .trust-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--security-shield);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: bold;
  font-size: 14px;
}

.parent-card-trust:hover .trust-badge {
  animation: certificateStamp 0.8s ease-out;
}

.parent-card-trust .trust-icon {
  width: 60px;
  height: 60px;
  background: var(--stability-gradient);
  border: 2px solid var(--trust-deep-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.parent-card-trust .trust-title {
  color: var(--trust-deep-blue);
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-shadow: 0 1px 2px rgba(12, 60, 120, 0.1);
}

.parent-card-trust .trust-description {
  color: var(--reliable-gray);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.parent-card-trust .trust-guarantee {
  margin-top: 16px;
  padding: 12px;
  background: rgba(12, 60, 120, 0.05);
  border-radius: 8px;
  border-left: 4px solid var(--trust-forest-green);
  font-size: 0.9rem;
  color: var(--trust-forest-green);
  font-weight: 600;
}

/* === 🎓 КАРТОЧКИ ДЛЯ УЧЕНИКОВ - "СОВРЕМЕННЫЙ" === */
.student-card-modern {
  background: var(--trendy-glass);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--interactive-bounce);
  cursor: pointer;
}

.student-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gen-z-gradient);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: -1;
}

.student-card-modern:hover::before {
  opacity: 0.1;
}

.student-card-modern:hover {
  transform: translateY(-10px) rotateZ(2deg);
  box-shadow: var(--gaming-glow), 0 20px 40px rgba(139, 92, 246, 0.3);
  animation: neonGlow 2s ease-in-out infinite;
}

.student-card-modern .modern-icon {
  width: 64px;
  height: 64px;
  background: var(--gen-z-gradient);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: all 0.4s ease;
  box-shadow: var(--modern-neon);
}

.student-card-modern:hover .modern-icon {
  animation: trendyBounce 1s var(--interactive-bounce);
  transform: scale(1.1) rotateY(180deg);
}

.student-card-modern .modern-title {
  color: var(--student-vibrant-purple);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(139, 92, 246, 0.3);
}

.student-card-modern .modern-description {
  color: var(--student-electric-blue);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500;
}

.student-card-modern .modern-feature {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(139, 92, 246, 0.1);
  border-radius: 20px;
  color: var(--student-neon-pink);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.student-card-modern:hover .modern-feature {
  animation: gamingEffect 1s ease-in-out;
}

/* === 💎 ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ LUXURY КАРТОЧЕК === */
.luxury-value {
  font-size: clamp(3.2rem, 6vw, 4rem);
  font-weight: 900;
  color: var(--executive-navy);
  line-height: 1;
  font-family: var(--font-main);
  text-shadow: 0 3px 6px rgba(30, 43, 79, 0.15);
  margin: 20px 0 12px 0;
  letter-spacing: -0.02em;
}

/* Улучшение читаемости для luxury карточек */
/* Исключить settings-form-block — стили заданы в components.css */
.executive-card-luxury:not(.settings-form-block) {
  padding: clamp(28px, 6vw, 40px);
  line-height: 1.6;
}

.executive-card-luxury .trust-guarantee {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
}

/* === EXECUTIVE HEADER STYLES === */
.executive-header-premium {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 40px;
    padding-bottom: 28px;
    border-bottom: 2px solid rgba(255, 215, 0, 0.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.8) 100%);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.08),
        0 4px 16px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.executive-header-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        rgba(30, 43, 79, 0.02) 50%, 
        rgba(255, 215, 0, 0.05) 100%);
    z-index: -1;
}

.executive-header-premium::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.03), 
        transparent);
    animation: glassShimmer 10s ease-in-out infinite;
    z-index: -1;
}

.executive-logo-crown {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, 
        var(--luxury-gold) 0%, 
        var(--royal-gradient) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow: 
        0 8px 24px rgba(255, 215, 0, 0.3),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.executive-logo-crown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transform: translateX(-100%);
    transition: transform 0.8s ease;
}

.executive-logo-crown:hover::before {
    transform: translateX(100%);
}

.executive-logo-crown:hover {
    transform: scale(1.15) rotate(8deg);
    box-shadow: 
        0 12px 36px rgba(255, 215, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.15);
}

.executive-logo-crown::after {
    content: '👑';
    font-size: 28px;
    z-index: 1;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.executive-main-title {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text-primary-dark);
    margin: 0 0 12px 0;
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-shadow: 0 2px 4px rgba(30, 43, 79, 0.1);
}

.executive-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.3rem);
    color: var(--text-body-secondary);
    margin: 0;
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: 0.01em;
}

@keyframes glassShimmer {
    0%, 100% { 
        transform: translateX(-100%) translateY(-100%) rotate(0deg);
        opacity: 0;
    }
    50% { 
        transform: translateX(100%) translateY(100%) rotate(180deg);
        opacity: 0.5;
    }
}

.luxury-icon-large {
  color: var(--icon-primary);
  font-size: 48px;
}

.luxury-icon-medium {
  color: var(--icon-primary);
  font-size: 24px;
}

/* === STATUS BADGES === */
.status-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 2px solid #10b981;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge-inactive {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 2px solid #9ca3af;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
}

.status-badge-global {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(139, 92, 246, 0.1);
  color: #7c3aed;
  border: 2px solid #8b5cf6;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-left: 8px;
}

/* === 🔧 API ADMIN CARD STYLES === */
.stat-card {
  background: white;
  border-radius: var(--api-border-radius);
  padding: 25px;
  box-shadow: var(--api-shadow-light);
  border: 1px solid var(--api-border-color);
  transition: var(--api-transition);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  box-shadow: var(--api-shadow-medium);
  transform: translateY(-2px);
  border-color: var(--api-primary-color);
}

.stat-card h3 {
  color: var(--api-text-color);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stat-card .stat-title {
  text-align: center;
}

.stat-card .stat-value {
  color: var(--api-text-color);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-align: center !important;
  display: block;
  width: 100%;
}

.stat-subtitle {
  color: var(--api-text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-primary {
  border-left: 4px solid var(--api-primary-color);
}

.stat-success {
  border-left: 4px solid var(--api-success-color);
}

.stat-danger {
  border-left: 4px solid var(--api-danger-color);
}

.stat-warning {
  border-left: 4px solid var(--api-warning-color);
}

.stat-info {
  border-left: 4px solid var(--api-info-color);
}

.token-card {
  background: white;
  border-radius: var(--api-border-radius);
  padding: 20px;
  box-shadow: var(--api-shadow-light);
  border: 1px solid var(--api-border-color);
  transition: var(--api-transition);
  position: relative;
}

.token-card:hover {
  box-shadow: var(--api-shadow-medium);
  transform: translateY(-2px);
  border-color: var(--api-primary-color);
}

.active-btn {
  background: var(--api-primary-gradient) !important;
  color: white !important;
  border: 2px solid var(--api-primary-color) !important;
  box-shadow: 0 0 15px rgba(102, 126, 234, 0.4) !important;
  transform: translateY(-2px) !important;
  position: relative;
  overflow: hidden;
}

.active-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: activeShimmer 2s infinite;
}

.active-btn:hover {
  background: var(--api-primary-gradient) !important;
  transform: translateY(-3px) !important;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.6) !important;
}

.dashboard-status {
  margin-bottom: 20px;
} 

/* === SUPER ADMIN HERO SECTION === */
/* .hero-section-modern определен в components.css - удалено дублирование */

/* === SUPER ADMIN STAT CARDS === */

.stat-card {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-light) 100%);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--color-border);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.stat-icon {
    font-size: 2rem;
    color: var(--color-accent);
    margin-bottom: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.stat-content {
    text-align: center;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
    text-align: center;
    font-weight: 500;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--color-text-main);
    text-align: center !important;
    width: 100%;
    display: block;
    margin-bottom: 5px;
}

.stat-trend {
    font-size: 0.8rem;
    font-weight: 500;
}

.stat-trend.text-success {
    color: var(--color-success);
}

.stat-trend.text-danger {
    color: var(--color-error);
} 

/* === STAT CARD STYLES FROM UTILITIES.CSS === */
/* Перемещено из utilities.css для соблюдения архитектуры */

/* === INFO BOX STYLES FROM COMPONENTS.CSS === */
/* Перемещено из components.css для соблюдения архитектуры */

.info-box-components {
    background: var(--api-light-bg);
    border-radius: var(--api-border-radius);
    padding: 20px;
    border-left: 4px solid var(--api-primary-color);
}

.info-box-components h4 {
    color: var(--api-text-color);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
}

.info-box-components h4 i {
    margin-right: 8px;
    color: var(--api-primary-color);
}

.info-box-components p {
    color: var(--api-text-muted);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.5;
}

.stat-card-utilities {
    background: linear-gradient(135deg, var(--color-bg-card) 0%, var(--color-bg-secondary) 100%);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    border-left: 4px solid var(--color-accent);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card-utilities::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card-utilities:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.stat-card-utilities:hover::before {
    opacity: 1;
}

.stat-card-utilities h3 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* === INFO BOX STYLES FROM UTILITIES.CSS === */
/* Перемещено из utilities.css для соблюдения архитектуры */

.info-box {
    background: linear-gradient(135deg, var(--color-bg-secondary) 0%, var(--color-bg-card) 100%);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border-left: 4px solid var(--color-info);
    position: relative;
    overflow: hidden;
}

.info-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(23, 162, 184, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.info-box:hover::before {
    opacity: 1;
}

.info-box h4 {
    margin: 0 0 10px 0;
    color: var(--color-primary);
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.info-box h4 i {
    margin-right: 8px;
    color: var(--color-info);
}

.info-box p {
    margin: 0 0 8px 0;
    color: var(--color-text);
    font-size: 0.9rem;
    line-height: 1.4;
    position: relative;
    z-index: 1;
} 

/* === STAT CARD STYLES FROM COMPONENTS.CSS === */
/* Перемещено из components.css для соблюдения архитектуры */

.stat-card-components {
  background: white;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 2px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.stat-card-components:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  border-color: var(--api-primary-color);
}

.stat-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.stat-card-link .stat-card {
  text-align: center;
}

.stat-card-link .stat-value {
  text-align: center !important;
}

.stat-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.stat-icon-components {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--api-primary-gradient);
    display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.stat-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--api-text-muted);
  margin: 0 0 10px 0;
}

.stat-value-components {
    font-size: 2rem;
  font-weight: 800;
  color: var(--api-text-color);
  margin: 0;
}

/* Цветовые варианты для статистики */
.stat-card-primary .stat-icon {
  background: var(--api-primary-gradient);
}

.stat-card-success .stat-icon {
  background: var(--api-accent-gradient);
}

.stat-card-info .stat-icon {
  background: linear-gradient(135deg, #17a2b8, #138496);
}

.stat-card-warning .stat-icon {
  background: linear-gradient(135deg, #ffc107, #e0a800);
}

/* === SUPER ADMIN STAT CARD STYLES FROM COMPONENTS.CSS === */
/* Перемещено из components.css для соблюдения архитектуры */

.stat-card-super-admin {
  position: relative;
  z-index: 1;
}

.stat-card-super-admin::before {
  z-index: 0;
}

.stat-icon-super-admin {
  position: relative;
  z-index: 2;
}

.stat-icon-super-admin::after {
  z-index: 1;
}

.stat-content-super-admin {
  position: relative;
  z-index: 2;
} 

/* === STAT CARD STYLES FROM BUTTONS.CSS === */
/* Перемещено из buttons.css для соблюдения архитектуры */

.stat-card-buttons {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.stat-card-buttons::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.02), rgba(0,0,0,0.01));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
    pointer-events: none;
}

.stat-card-buttons:hover::before {
    opacity: 1;
}

.stat-card-buttons:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--color-primary);
}

.stat-card-link-buttons {
    text-decoration: none;
    color: inherit;
}

.stat-card-link-buttons:hover {
    text-decoration: none;
    color: inherit;
}

.stat-icon-buttons {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.stat-icon-buttons::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 16px;
}

.stat-card-buttons:hover .stat-icon-buttons::after {
    opacity: 1;
}

.stat-content-buttons h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin: 0 0 10px 0;
}

.stat-value-buttons {
    font-size: 2rem;
    font-weight: 800;
    color: var(--color-text-main);
    margin: 0;
}

/* Цветовые варианты для статистики */
.stat-card-primary-buttons .stat-icon {
    background: var(--color-primary);
}

.stat-card-success-buttons .stat-icon {
    background: var(--color-accent);
}

.stat-card-info-buttons .stat-icon {
    background: #17a2b8;
}

.stat-card-warning-buttons .stat-icon {
    background: #ffc107;
} 

/* === 📊 СЕТКА СТАТИСТИКИ ДИРЕКТОРА === */
.luxury-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 32px 0;
  position: relative;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(0, 0, 0, 0.02) 100%);
  border-radius: 24px;
  backdrop-filter: blur(10px);
}

/* На больших экранах (≥1025px) - 4 карточки в одну строку */
/* Математический расчет:
 * - Максимальная ширина контейнера: 1600px
 * - Padding контейнера: 20px * 2 = 40px
 * - Gap между карточками: 24px
 * - Количество карточек: 4
 * - Количество промежутков: 3 (между 4 карточками)
 * - Общая ширина промежутков: 3 * 24px = 72px
 * - Рабочая ширина для карточек: 1600px - 40px - 72px = 1488px
 * - Ширина одной карточки: 1488px / 4 = 372px
 */
.luxury-stats-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 215, 0, 0.02), transparent);
  border-radius: 24px;
  pointer-events: none;
}

/* Частицы для фона */
.luxury-stats-grid .particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--luxury-gold);
  border-radius: 50%;
  opacity: 0.6;
  animation: particleFloat 6s ease-in-out infinite;
}

.luxury-stats-grid .particle:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.luxury-stats-grid .particle:nth-child(2) { top: 20%; right: 15%; animation-delay: 1s; }
.luxury-stats-grid .particle:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 2s; }
.luxury-stats-grid .particle:nth-child(4) { bottom: 20%; right: 25%; animation-delay: 3s; }
.luxury-stats-grid .particle:nth-child(5) { top: 50%; left: 5%; animation-delay: 4s; }
.luxury-stats-grid .particle:nth-child(6) { top: 60%; right: 10%; animation-delay: 5s; }
.luxury-stats-grid .particle:nth-child(7) { bottom: 50%; left: 15%; animation-delay: 6s; }
.luxury-stats-grid .particle:nth-child(8) { bottom: 40%; right: 20%; animation-delay: 7s; }
.luxury-stats-grid .particle:nth-child(9) { top: 30%; left: 50%; animation-delay: 8s; }

@keyframes particleFloat {
  0%, 100% { 
    transform: translateY(0px) translateX(0px) scale(1);
    opacity: 0.6;
  }
  25% { 
    transform: translateY(-10px) translateX(5px) scale(1.1);
    opacity: 0.8;
  }
  50% { 
    transform: translateY(-5px) translateX(-5px) scale(0.9);
    opacity: 0.4;
  }
  75% { 
    transform: translateY(5px) translateX(10px) scale(1.2);
    opacity: 0.7;
  }
}

/* Адаптивность для мобильных устройств */
/* Адаптивные стили перенесены в mobile.css согласно архитектуре */ 

/* === 🏢 СЕТКА УПРАВЛЕНИЯ ДИРЕКТОРА === */
.enterprise-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin: 40px 0;
    padding: 24px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.05) 0%, 
        rgba(0, 0, 0, 0.02) 100%);
    border-radius: 24px;
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
}

/* Медиа-запросы перенесены в соответствующие файлы согласно архитектуре */

.enterprise-grid-premium::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, 
        transparent, 
        rgba(255, 215, 0, 0.02), 
        transparent);
    border-radius: 24px;
    pointer-events: none;
}

.enterprise-grid-premium .executive-card-luxury {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.95) 0%, 
        rgba(255, 255, 255, 0.9) 100%);
    border: 2px solid rgba(255, 215, 0, 0.2);
    border-radius: 20px;
    padding: 28px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.enterprise-grid-premium .executive-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--luxury-gold), 
        var(--royal-gradient), 
        var(--luxury-gold));
    background-size: 200% 100%;
    animation: goldShimmer 5s ease-in-out infinite;
}

.enterprise-grid-premium .executive-card-luxury:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: var(--luxury-gold);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 215, 0, 0.15);
}

.enterprise-grid-premium .executive-card-luxury .luxury-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, 
        var(--royal-gradient) 0%, 
        var(--luxury-gold) 100%);
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.1);
}

.enterprise-grid-premium .executive-card-luxury .luxury-title {
    font-size: clamp(1.6rem, 2.8vw, 2rem);
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, 
        var(--executive-navy) 0%, 
        var(--luxury-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.enterprise-grid-premium .executive-card-luxury .luxury-description {
    font-size: clamp(1rem, 2vw, 1.1rem);
    line-height: 1.6;
    margin-bottom: 24px;
    color: var(--executive-navy);
    opacity: 0.8;
}

/* Адаптивность для сетки управления */
/* Адаптивные стили перенесены в mobile.css согласно архитектуре */

/* === 🎭 АНИМАЦИИ ДЛЯ КАРТОЧЕК ДИРЕКТОРА === */
.card-fade-in {
    opacity: 0;
    transform: translateY(30px);
    animation: cardFadeIn 0.8s ease-out forwards;
}

.card-delay-1 { animation-delay: 0.1s; }
.card-delay-2 { animation-delay: 0.2s; }
.card-delay-3 { animation-delay: 0.3s; }
.card-delay-4 { animation-delay: 0.4s; }
.card-delay-5 { animation-delay: 0.5s; }
.card-delay-6 { animation-delay: 0.6s; }
.card-delay-7 { animation-delay: 0.7s; }
.card-delay-8 { animation-delay: 0.8s; }

.hover-lift {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
}

.card-modern {
    position: relative;
    overflow: hidden;
}

.breath-animation {
    animation: breath 4s ease-in-out infinite;
}

.icon-glow {
    position: relative;
}

.icon-glow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.icon-glow:hover::after {
    transform: translate(-50%, -50%) scale(1.5);
}

.icon-hover {
    transition: all 0.3s ease;
}

.icon-hover:hover {
    transform: scale(1.1) rotate(5deg);
}

.icon-modern {
    position: relative;
}

.luxury-icon-medium {
    font-size: 24px;
    color: var(--luxury-gold);
}

.luxury-icon-large {
    font-size: 32px;
    color: var(--luxury-gold);
}

.text-shine {
    position: relative;
    overflow: hidden;
}

.text-shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    transition: left 0.6s ease;
}

.text-shine:hover::before {
    left: 100%;
}

.value-pulse {
    animation: valuePulse 2s ease-in-out infinite;
}

.value-modern {
    position: relative;
}

.financial-glow {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.hover-glow:hover {
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
}

/* Анимации */
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes breath {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes valuePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* === 🔘 СТИЛИ КНОПОК В КАРТОЧКАХ ДИРЕКТОРА === */
/* .btn определен в buttons.css - используем специфичные селекторы для карточек */
.tariff-card .btn,
.executive-card-luxury .btn,
.enterprise-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.tariff-card .btn::before,
.executive-card-luxury .btn::before,
.enterprise-card .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.tariff-card .btn:hover::before,
.executive-card-luxury .btn:hover::before,
.enterprise-card .btn:hover::before {
    left: 100%;
}

.tariff-card .btn:hover,
.executive-card-luxury .btn:hover,
.enterprise-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.tariff-card .btn:active,
.executive-card-luxury .btn:active,
.enterprise-card .btn:active {
    transform: translateY(0);
}

/* Основные варианты кнопок */
/* .btn-primary определен в buttons.css - используем специфичные селекторы для карточек */
.tariff-card .btn-primary,
.executive-card-luxury .btn-primary {
    background: linear-gradient(135deg, var(--luxury-gold) 0%, var(--royal-gradient) 100%);
    color: var(--executive-navy);
    border-color: var(--luxury-gold);
}

.tariff-card .btn-primary:hover,
.executive-card-luxury .btn-primary:hover {
    background: linear-gradient(135deg, var(--royal-gradient) 0%, var(--luxury-gold) 100%);
    border-color: var(--royal-gradient);
}

.btn-secondary {
    background: linear-gradient(135deg, var(--luxury-platinum) 0%, var(--premium-marble) 100%);
    color: var(--executive-navy);
    border-color: var(--luxury-platinum);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, var(--premium-marble) 0%, var(--luxury-platinum) 100%);
    border-color: var(--luxury-gold);
}

.btn-warning {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: var(--executive-navy);
    border-color: #ffc107;
}

.btn-warning:hover {
    background: linear-gradient(135deg, #ff9800 0%, #ffc107 100%);
    border-color: #ff9800;
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #20c997 100%);
    color: white;
    border-color: #17a2b8;
}

.btn-info:hover {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    border-color: #20c997;
}

.btn-add {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    border-color: #28a745;
}

.btn-add:hover {
    background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
    border-color: #20c997;
}

.btn-view {
    background: linear-gradient(135deg, #6f42c1 0%, #e83e8c 100%);
    color: white;
    border-color: #6f42c1;
}

.btn-view:hover {
    background: linear-gradient(135deg, #e83e8c 0%, #6f42c1 100%);
    border-color: #e83e8c;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #fd7e14 0%, #dc3545 100%);
    border-color: #fd7e14;
}

/* Размеры кнопок */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 16px 28px;
    font-size: 1rem;
}

/* Кнопки с иконками */
.btn i {
    font-size: 1em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: scale(1.1);
}

/* Адаптивность для кнопок */
/* Адаптивные стили перенесены в mobile.css согласно архитектуре */

/* === 📈 КАРТОЧКИ СТАТИСТИКИ ДИРЕКТОРА === */
.luxury-stats-grid .executive-card-luxury {
    background: linear-gradient(135deg, 
        var(--premium-marble) 0%, 
        rgba(255, 255, 255, 0.95) 100%);
    border: 2px solid var(--luxury-platinum);
    border-radius: 20px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.08),
        0 3px 12px rgba(0, 0, 0, 0.04);
}

.luxury-stats-grid .executive-card-luxury::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        var(--gold-accent), 
        var(--luxury-gold), 
        var(--gold-accent));
    background-size: 200% 100%;
    animation: goldShimmer 4s ease-in-out infinite;
}

.luxury-stats-grid .executive-card-luxury:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.12),
        0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--luxury-gold);
}

.luxury-stats-grid .executive-card-luxury .luxury-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, 
        var(--royal-gradient) 0%, 
        var(--luxury-gold) 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    box-shadow: 
        0 6px 20px rgba(255, 215, 0, 0.25),
        0 3px 10px rgba(0, 0, 0, 0.1);
}

.luxury-stats-grid .executive-card-luxury .luxury-title {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary-medium);
    text-align: center;
}

.luxury-stats-grid .executive-card-luxury .luxury-value {
    font-size: clamp(2rem, 3.5vw, 2.5rem);
    font-weight: 900;
    color: var(--text-primary-dark);
    text-align: center;
    margin-bottom: 16px;
    line-height: 1;
}

.luxury-stats-grid .executive-card-luxury .trust-guarantee {
    font-size: clamp(0.9rem, 2vw, 1rem);
    color: var(--text-body-secondary);
    text-align: center;
    font-weight: 500;
}

.luxury-stats-grid .executive-card-luxury .luxury-date {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    color: var(--text-body-secondary);
    text-align: center;
    font-weight: 500;
    margin-bottom: 16px;
    padding: 8px 12px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 215, 0, 0.1);
}

.luxury-stats-grid .executive-card-luxury .luxury-description {
    font-size: clamp(0.9rem, 1.8vw, 1rem);
    color: var(--text-body-secondary);
    text-align: center;
    font-weight: 500;
    margin-bottom: 16px;
    line-height: 1.4;
    padding: 8px 12px;
    background: rgba(11, 20, 38, 0.03);
    border-radius: 8px;
    border: 1px solid rgba(11, 20, 38, 0.05);
}

/* Финансовые карточки */
.luxury-stats-grid .financial-card {
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.05) 0%, 
        var(--premium-marble) 50%, 
        rgba(0, 128, 0, 0.05) 100%);
    border-color: var(--luxury-gold);
}

.luxury-stats-grid .financial-card .luxury-value {
    color: var(--text-primary-dark);
    text-shadow: 0 0 10px rgba(11, 20, 38, 0.3);
}

/* Адаптивность для карточек статистики */
/* Адаптивные стили перенесены в mobile.css согласно архитектуре */

/* === 🔘 СТИЛИ КНОПОК В КАРТОЧКАХ ДИРЕКТОРА === */
.button-grid-modern {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.button-grid-modern .btn {
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.button-grid-modern .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.2), 
        transparent);
    transition: left 0.5s ease;
}

.button-grid-modern .btn:hover::before {
    left: 100%;
}

.button-grid-modern .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

/* Адаптивность для кнопок в карточках */
/* Адаптивные стили перенесены в mobile.css согласно архитектуре */ 

/* === 🖥️ ДЕСКТОПНЫЕ ОГРАНИЧЕНИЯ ДЛЯ КАРТОЧЕК === */
/* Адаптивные стили перенесены в tablet.css и desktop.css согласно архитектуре */

/* === FEATURE SECTION HEADER === */
.section-features h2[data-aos="fade-up"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-features h2[data-aos="fade-up"].aos-animate {
  opacity: 1 !important;
  transform: translateY(0) !important;
  visibility: visible !important;
}

/* === FALLBACK ДЛЯ ЗАГОЛОВКА БЕЗ AOS === */
.section-features h2:not([data-aos]) {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* === TOP SECTION ANIMATIONS === */
.section-top .top-text[data-aos="fade-right"] {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-top .top-text[data-aos="fade-right"].aos-animate {
  opacity: 1 !important;
  transform: translateX(0) !important;
  visibility: visible !important;
}

.section-top .top-image[data-aos="fade-left"] {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-top .top-image[data-aos="fade-left"].aos-animate {
  opacity: 1 !important;
  transform: translateX(0) !important;
  visibility: visible !important;
}

/* === FALLBACK ДЛЯ TOP SECTION БЕЗ AOS === */
.section-top .top-text:not([data-aos]),
.section-top .top-image:not([data-aos]) {
  opacity: 1 !important;
  transform: none !important;
  visibility: visible !important;
}

/* === MAIN BUTTON VISIBILITY === */
.main-button {
  opacity: 1 !important;
  visibility: visible !important;
  transform: none !important;
  transition: all 0.3s ease !important;
}

.main-button:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

/* === ENSURE ALL FEATURE ELEMENTS ARE VISIBLE === */
.feature-item *,
.section-features h2,
.section-top h1,
.section-top p,
.section-top .main-button {
  opacity: 1 !important;
  visibility: visible !important;
}

/* === FEATURE SECTION HEADER === */
.section-features h2.animate__fadeInDown {
  animation: fadeInDown 0.6s ease forwards !important;
  /* Обеспечиваем видимость после анимации */
  animation-fill-mode: forwards !important;
}

/* === TOP SECTION ANIMATIONS === */
.section-top .top-text .animate__fadeInLeft {
  animation: fadeInLeft 0.6s ease forwards !important;
  animation-fill-mode: forwards !important;
}

.section-top .top-text .animate__fadeInUp {
  animation: fadeInUp 0.6s ease forwards !important;
  animation-fill-mode: forwards !important;
}

.section-top .top-text .animate__zoomIn {
  animation: zoomIn 0.6s ease forwards !important;
  animation-fill-mode: forwards !important;
}

.section-top .top-image .animate__fadeInRight {
  animation: fadeInRight 0.6s ease forwards !important;
  animation-fill-mode: forwards !important;
}

/* === 🎴 УЛУЧШЕННЫЕ КАРТОЧКИ ТАРИФОВ === */
.tariffs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.tariff-card-modern {
  background: var(--color-bg-card);
  border: 2px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  position: relative;
}

.tariff-card-modern::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.tariff-card-modern:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  border-color: var(--color-accent);
}

.tariff-card-modern:hover::before {
  transform: scaleX(1);
}

.tariff-card-modern.tariff-active {
  border-color: var(--color-success);
}

.tariff-card-modern.tariff-active::before {
  background: linear-gradient(90deg, var(--color-success), var(--color-accent));
}

.tariff-card-modern.tariff-inactive {
  border-color: var(--color-border);
  opacity: 0.85;
}

/* Card Header */
.tariff-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(11, 122, 62, 0.05) 100%);
  border-bottom: 1px solid var(--color-border);
}

.tariff-card-badge {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tariff-id-badge {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(102, 126, 234, 0.1);
  color: var(--color-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  width: fit-content;
}

.tariff-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.tariff-status-badge.status-active {
  background: rgba(11, 122, 62, 0.1);
  color: var(--color-success);
  border: 1px solid var(--color-success);
}

.tariff-status-badge.status-inactive {
  background: rgba(156, 163, 175, 0.1);
  color: #6b7280;
  border: 1px solid #9ca3af;
}

.tariff-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.tariff-card-modern:hover .tariff-card-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

/* Card Body */
.tariff-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.tariff-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin: 0;
  line-height: 1.3;
}

.tariff-card-description {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* Pricing Section */
.tariff-pricing-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(11, 122, 62, 0.05) 100%);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--color-border);
}

.tariff-price-main {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-item-monthly,
.price-item-yearly {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-label {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
}

.price-discount-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-success);
  color: white;
  border-radius: 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.price-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-text-main);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-accent);
}

.price-per-month {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

/* Limits Section */
.tariff-limits-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: rgba(102, 126, 234, 0.03);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.tariff-limit-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.limit-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(11, 122, 62, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 16px;
  flex-shrink: 0;
}

.limit-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.limit-label {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.limit-value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-main);
}

.limit-value i {
  font-size: 1.2rem;
  color: var(--color-accent);
}

/* Features Section */
.tariff-features-section {
  padding: 16px;
  background: rgba(11, 122, 62, 0.03);
  border-radius: 12px;
  border: 1px solid var(--color-border);
}

.features-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-main);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Закомментировано конфликтующее правило, которое делало .feature-item flex-контейнером с горизонтальным направлением */
/* .feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--color-text-main);
} */

.feature-check {
  color: var(--color-success);
  font-size: 1rem;
}

/* Card Footer */
.tariff-card-footer {
  padding: 20px 24px;
  background: rgba(102, 126, 234, 0.02);
  border-top: 1px solid var(--color-border);
}

.tariff-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tariff-actions .btn-action {
  flex: 1;
  min-width: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.tariff-actions .btn-action span {
  display: none;
}

/* Медиа-запрос перенесен в tablet.css согласно архитектуре */

.tariff-actions .btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tariff-actions .btn-action i {
  font-size: 0.9rem;
}

/* === 🎯 БЕЙДЖИ В МОДАЛЬНЫХ ОКНАХ === */
/* Бейджи для использования внутри модальных окон */
.modal-badge-success {
  background: #28a745;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.modal-badge-warning {
  background: #ffc107;
  color: #212529;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.modal-badge-danger {
  background: #dc3545;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

/* === DEPARTMENT CARDS === */
.department-not-linked {
  opacity: 0.6;
  border: 2px dashed #ccc !important;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
}

.department-not-linked .luxury-title {
  color: #6c757d !important;
}

.department-not-linked .luxury-icon {
  opacity: 0.5;
}

.department-card-clickable {
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
}

.department-card-clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  border-color: var(--color-status-own) !important;
}

.department-card-clickable:hover .luxury-title {
  color: var(--color-status-own);
}

.department-card-clickable::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 123, 255, 0.05) 0%, rgba(0, 123, 255, 0.02) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: inherit;
  pointer-events: none;
}

.department-card-clickable:hover::after {
  opacity: 1;
}

.department-card-clickable .luxury-icon {
  position: relative;
}

.department-card-clickable .luxury-icon::after {
  content: '🔗';
  position: absolute;
  top: -8px;
  right: -8px;
  font-size: 14px;
  opacity: 0;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.department-card-clickable:hover .luxury-icon::after {
  opacity: 1;
  transform: scale(1.1);
}

.department-card-clickable[title]:hover::before {
  content: attr(title);
  position: absolute;
  top: -35px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
}

/* === SCHEDULE MODULE (из schedule.css) === */
.calendar-day {
  background: var(--color-bg-main);
  backdrop-filter: blur(15px);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 4px 12px var(--color-shadow);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  animation: bounceIn 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.calendar-day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  animation: pulse-border 2s ease-in-out infinite;
}

.calendar-day.today::before {
  background: var(--color-success);
  animation: glow-border 2s ease-in-out infinite;
}

.calendar-day:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 10px 28px var(--color-shadow);
  background: #ffffff;
}

.day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--color-border);
  position: relative;
  z-index: 1;
}

.day-date {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 4px;
}

.day-weekday {
  font-size: 0.9rem;
  color: #6b7280;
  font-weight: 500;
}

.event {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.95));
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 20px;
  transition: var(--transition);
  position: relative;
  cursor: pointer;
  overflow: hidden;
  animation: slideInLeft 0.6s ease-out;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-primary);
}

.event::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--color-primary), var(--color-accent));
  border-radius: var(--radius) 0 0 var(--radius);
  animation: pulse-event 3s ease-in-out infinite;
}

.event:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(248, 250, 252, 1));
  border-color: var(--color-primary);
  border-left-width: 6px;
}

.event:hover .event-title {
  color: var(--color-primary);
}

.event:hover .event-time {
  background: rgba(59, 130, 246, 0.15);
}

.event-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #1a202c;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  line-height: 1.4;
}

.event-title i {
  color: var(--color-primary);
  font-size: 1.1rem;
  min-width: 16px;
}

.event-time {
  font-size: 1rem;
  color: #4a5568;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  background: rgba(59, 130, 246, 0.1);
  padding: 6px 12px;
  border-radius: 6px;
  width: fit-content;
}

.event-time i {
  color: var(--color-primary);
  font-size: 0.9rem;
}

.event-description {
  font-size: 0.95rem;
  color: #2d3748;
  line-height: 1.6;
  margin-bottom: 16px;
  background: rgba(0, 0, 0, 0.02);
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #e2e8f0;
}

.event-location {
  font-size: 0.9rem;
  color: #4a5568;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  background: rgba(16, 185, 129, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.event-location i {
  color: #10b981;
  font-size: 0.8rem;
}

.event-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  opacity: 0.8;
  transition: var(--transition);
}

.event:hover .event-actions {
  opacity: 1;
}

.event-type-badge {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 16px;
  margin-left: 10px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  animation: fadeIn 0.3s ease-out;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.event-type-badge[data-type="lesson"] {
  background: linear-gradient(135deg, #10b981, #059669);
}

.event-type-badge[data-type="meeting"] {
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.event-type-badge[data-type="exam"] {
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.event-type-badge[data-type="consultation"] {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
}

.empty-day {
  text-align: center;
  color: #6b7280;
  font-style: italic;
  padding: 40px 20px;
  background: linear-gradient(135deg, rgba(107, 114, 128, 0.08), rgba(156, 163, 175, 0.08));
  border-radius: var(--radius);
  border: 2px dashed var(--color-border);
  animation: fadeIn 0.8s ease-out;
}

.empty-day i {
  font-size: 2rem;
  margin-bottom: 12px;
  color: #6b7280;
  animation: floating 3s ease-in-out infinite;
}

.empty-day p {
  margin: 0;
  font-size: 0.95rem;
}

.schedule-card .event-title {
  color: #1c1c1e !important;
  font-weight: 600;
  opacity: 1 !important;
}