/* ===== MODERN RESPONSIVE STYLES 2025 ===== */

/* ===== BURGER MENU ===== */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  cursor: pointer;
  padding: 12px;
  position: relative;
  z-index: 1000;
  backdrop-filter: blur(20px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-toggle:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 2px;
}

.nav-toggle.is-active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
  transform: translateX(-20px);
}

.nav-toggle.is-active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MODERN LANGUAGE DROPDOWN ===== */
.language-dropdown, .lang-dropdown {
  position: relative;
  display: none; /* Hidden by default */
}

.language-dropdown.mobile-only {
  display: none; /* Hidden on desktop */
}

/* ===== DESKTOP LANGUAGE BUTTONS ===== */
.top-language {
  display: flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.lang-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.lang-btn.active {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.language-dropdown .dropdown-toggle, .lang-dropdown .lang-btn {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 8px 16px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(20px);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

.language-dropdown .dropdown-toggle:hover, .lang-dropdown .lang-btn:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.language-dropdown .dropdown-toggle::after {
  content: '▼';
  font-size: 10px;
  transition: transform 0.3s ease;
}

.language-dropdown.active .dropdown-toggle::after {
  transform: rotate(180deg);
}

.language-dropdown .dropdown-menu, .lang-dropdown .lang-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  padding: 12px;
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.language-dropdown.active .dropdown-menu, .lang-dropdown.active .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.language-dropdown .dropdown-menu a, .lang-dropdown .lang-menu .lang-option {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
  margin: 2px 0;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.language-dropdown .dropdown-menu a:hover, .lang-dropdown .lang-menu .lang-option:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
  transform: translateX(4px);
}

.language-dropdown .dropdown-menu a.active, .lang-dropdown .lang-menu .lang-option.active {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
  color: white;
}

/* ===== TOP BAR RESPONSIVENESS ===== */
@media (max-width: 767px) {
  .top-bar {
    padding: 12px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.15);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1001;
    backdrop-filter: blur(20px);
  }
  
  .top-container {
    padding: 0 20px;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
  }
  
  .top-left {
    gap: 16px;
    flex: 1;
    align-items: center;
  }
  
  .top-right {
    gap: 12px;
    flex-shrink: 0;
    align-items: center;
  }
  
  .online-status {
    font-size: 12px;
    padding: 6px 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 20px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 500;
  }
  
  .status-dot {
    width: 8px;
    height: 8px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
  }
  
  .top-icons {
    gap: 8px;
  }
  
  .icon-link {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
  }
  
  .icon-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .icon-link i {
    font-size: 16px;
  }
  
  .top-cta-btn {
    font-size: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 500;
  }
  
  .top-cta-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  }
  
  .top-language {
    display: none; /* Hide old language buttons on mobile */
  }
  
  .language-dropdown.mobile-only {
    display: block; /* Show dropdown on mobile */
  }
  
  .header {
    top: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .hero {
    margin-top: 140px;
  }
  
  /* Mobile logo adjustments */
  .logo {
    max-width: 120px;
  }
  
  .logo img {
    max-height: 40px;
    width: auto;
  }
}

@media (max-width: 575px) {
  .top-bar {
    padding: 8px 0;
  }
  
  .top-container {
    padding: 0 16px;
    flex-direction: row;
    gap: 8px;
    justify-content: space-between;
  }
  
  .top-left {
    flex: 1;
    justify-content: flex-start;
    gap: 12px;
    align-items: center;
  }
  
  .top-right {
    flex-shrink: 0;
    justify-content: flex-end;
    gap: 8px;
    align-items: center;
  }
  
  .online-status {
    font-size: 11px;
    padding: 4px 8px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: 16px;
  }
  
  .top-icons {
    gap: 6px;
  }
  
  .icon-link {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .icon-link:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.08) 100%);
    transform: translateY(-1px) scale(1.05);
  }
  
  .icon-link i {
    font-size: 14px;
  }
  
  .top-cta-btn {
    font-size: 11px;
    padding: 6px 12px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
  }
  
  .header {
    top: 48px;
  }
  
  .hero {
    margin-top: 120px;
  }
  
  /* Small mobile logo adjustments */
  .logo {
    max-width: 100px;
  }
  
  .logo img {
    max-height: 32px;
    width: auto;
  }
}

/* ===== MOBILE NAVIGATION ===== */
@media (max-width: 991px) {
  /* Скрыть email кнопку на мобильной */
  .right-controls .btn.ghost {
    display: none;
  }
  
  /* Старая навигация скрыта - теперь используется новый drawer */
  .nav-links {
    display: none !important;
  }
}

/* ===== HERO SECTION RESPONSIVENESS ===== */
@media (max-width: 767px) {
  .hero {
    padding: 60px 20px !important;
    text-align: center !important;
    background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%) !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .hero::before {
    display: none !important;
  }
  
  .hero img {
    width: 100% !important;
    height: 70vh !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  
  .hero .content::before {
    display: none !important;
  }
  
  .hero .content {
    position: relative !important;
    bottom: auto !important;
    top: 20px !important;
    padding: 48px 32px !important;
    border-radius: 28px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95) 0%, rgba(139, 92, 246, 0.85) 50%, rgba(167, 139, 250, 0.95) 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(25px) !important;
    text-align: center !important;
    left: auto !important;
    transform: none !important;
    width: calc(100% - 40px) !important;
    max-width: 500px !important;
    z-index: 10 !important;
    overflow: visible !important;
  }
  
  /* Принудительное центрирование текста */
  .hero .content h1 {
    text-align: center !important;
    font-size: 36px !important;
    line-height: 1.2 !important;
    margin-bottom: 20px !important;
    font-weight: 800 !important;
    color: white !important;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3) !important;
  }
  
  .hero .content p {
    text-align: center !important;
    font-size: 22px !important;
    line-height: 1.5 !important;
    margin-bottom: 16px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }
  
  .hero .content .lead {
    text-align: center !important;
    font-size: 20px !important;
    line-height: 1.5 !important;
    margin-bottom: 32px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .hero-cta {
    flex-direction: column !important;
    gap: 16px !important;
    margin-top: 28px !important;
    text-align: center !important;
  }
  
  .hero-cta .btn {
    width: 100% !important;
    padding: 18px 32px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    border-radius: 18px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }
  
  .hero-cta .btn:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35) !important;
  }
  
  /* Специальные стили для кнопки поддержки */
  .hero-cta .btn.wa-pill {
    font-size: 16px !important;
    padding: 16px 24px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
  
  .hero-cta .btn.wa-pill span {
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }
  
  .hero-cta .btn.wa-pill i {
    font-size: 18px !important;
    margin-right: 8px !important;
  }
}

@media (max-width: 575px) {
  .hero {
    padding: 40px 16px !important;
    text-align: center !important;
    background: linear-gradient(180deg, #f6f7ff 0%, #ffffff 100%) !important;
    position: relative !important;
    overflow: visible !important;
  }
  
  .hero::before {
    display: none !important;
  }
  
  .hero img {
    width: 100% !important;
    height: 60vh !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }
  
  .hero .content::before {
    display: none !important;
  }
  
  .hero .content {
    position: relative !important;
    bottom: auto !important;
    top: 20px !important;
    padding: 36px 24px !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.98) 0%, rgba(139, 92, 246, 0.88) 50%, rgba(167, 139, 250, 0.98) 100%) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25) !important;
    text-align: center !important;
    left: auto !important;
    transform: none !important;
    width: calc(100% - 32px) !important;
    max-width: 450px !important;
    z-index: 10 !important;
    overflow: visible !important;
  }
  
  /* Принудительное центрирование текста для маленьких экранов */
  .hero .content h1 {
    text-align: center !important;
    font-size: 28px !important;
    line-height: 1.2 !important;
    margin-bottom: 16px !important;
    font-weight: 800 !important;
    color: white !important;
  }
  
  .hero .content p {
    text-align: center !important;
    font-size: 18px !important;
    line-height: 1.5 !important;
    margin-bottom: 12px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.95) !important;
  }
  
  .hero .content .lead {
    text-align: center !important;
    font-size: 16px !important;
    line-height: 1.5 !important;
    margin-bottom: 24px !important;
    font-weight: 400 !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }
  
  .hero-cta {
    gap: 12px !important;
    margin-top: 24px !important;
    text-align: center !important;
  }
  
  .hero-cta .btn {
    padding: 16px 28px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: 16px !important;
  }
  
  /* Специальные стили для кнопки поддержки на маленьких экранах */
  .hero-cta .btn.wa-pill {
    font-size: 14px !important;
    padding: 14px 20px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 100% !important;
    min-height: auto !important;
  }
  
  .hero-cta .btn.wa-pill span {
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
  }
  
  .hero-cta .btn.wa-pill i {
    font-size: 16px !important;
    margin-right: 6px !important;
  }
}

/* ===== ДОПОЛНИТЕЛЬНЫЕ ГАРАНТИИ ЦЕНТРОВКИ ===== */
@media (max-width: 767px) {
  /* Принудительное центрирование всех элементов внутри .hero .content */
  .hero .content * {
    text-align: center !important;
  }
  
  /* Специально для кнопок */
  .hero .content .btn {
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Специально для иконок в кнопках */
  .hero .content .btn i {
    margin-right: 8px !important;
  }
}

@media (max-width: 575px) {
  /* Принудительное центрирование всех элементов внутри .hero .content */
  .hero .content * {
    text-align: center !important;
  }
  
  /* Специально для кнопок */
  .hero .content .btn {
    text-align: center !important;
    justify-content: center !important;
  }
  
  /* Специально для иконок в кнопках */
  .hero .content .btn i {
    margin-right: 6px !important;
  }
}

/* ===== MODERN CARD STYLES ===== */
@media (max-width: 991px) {
  .section-header h2 {
    font-size: 40px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
  }
  
  .section-header p {
    font-size: 20px;
    color: #6b7280;
    line-height: 1.6;
    font-weight: 400;
  }
  
  .section-header {
    margin-bottom: 56px;
    padding: 0 24px;
  }
  
  .service-cards {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }
  
  .service-card {
    padding: 32px 28px;
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid rgba(124, 58, 237, 0.1);
    border-radius: 28px;
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .service-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 80px rgba(124, 58, 237, 0.2);
    border-color: rgba(124, 58, 237, 0.3);
  }
  
  .service-icon {
    width: 72px;
    height: 72px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.4);
  }
  
  .service-icon i {
    font-size: 32px;
    color: white;
  }
  
  .service-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #1f2937;
    margin-bottom: 16px;
  }
  
  .service-card p {
    font-size: 18px;
    margin-bottom: 24px;
    color: #6b7280;
    line-height: 1.6;
  }
  
  .service-card a {
    padding: 14px 28px;
    font-size: 16px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    color: white;
    border-radius: 16px;
    font-weight: 700;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  .service-card a:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(124, 58, 237, 0.5);
  }
}

/* ===== UTILITY CLASSES ===== */
@media (max-width: 575px) {
  .container {
    padding: 0 20px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .section-header {
    margin-bottom: 48px;
  }
  
  .btn, .nav-links a, .icon-link {
    min-height: 48px;
    min-width: 48px;
  }
  
  .card, .service-card, .stat-card, .achievement-card, .admin-card {
    margin-bottom: 24px;
  }
  
  input, textarea, select {
    font-size: 16px;
    padding: 16px 20px;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    transition: all 0.3s ease;
  }
  
  input:focus, textarea:focus, select:focus {
    border-color: #7c3aed;
    box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.1);
    outline: none;
  }
}

/* ===== ADMIN PANEL MOBILE OPTIMIZATION ===== */
@media (max-width: 767px) {
  .admin-panel {
    padding: 40px 16px !important;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
  }
  
  .admin-panel .section-header {
    margin-bottom: 32px !important;
    padding: 0 8px !important;
  }
  
  .admin-panel .section-header h2 {
    font-size: 28px !important;
    font-weight: 800 !important;
    color: #1f2937 !important;
    margin-bottom: 12px !important;
    text-align: center !important;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #c084fc 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
  }
  
  .admin-panel .section-header p {
    font-size: 16px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-align: center !important;
    margin: 0 !important;
  }
  
  .admin-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    max-width: 100% !important;
    padding: 0 8px !important;
  }
  
  .admin-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid rgba(124, 58, 237, 0.1) !important;
    border-radius: 16px !important;
    padding: 24px 20px !important;
    text-align: center !important;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.08) !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  
  .admin-card h3 {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 8px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .admin-card p {
    font-size: 14px !important;
    color: #6b7280 !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    margin-bottom: 16px !important;
    text-align: center !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
  }
  
  .admin-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%) !important;
    color: #fff !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    transition: all 0.3s ease !important;
    letter-spacing: 0.5px !important;
    min-width: 80px !important;
    text-align: center !important;
  }
  
  .admin-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3) !important;
  }
  
  .admin-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.2) !important;
  }
  
  .admin-icon {
    font-size: 36px !important;
    margin-bottom: 16px !important;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)) !important;
  }
}

@media (max-width: 575px) {
  .admin-panel {
    padding: 32px 12px !important;
  }
  
  .admin-panel .section-header {
    margin-bottom: 24px !important;
    padding: 0 4px !important;
  }
  
  .admin-panel .section-header h2 {
    font-size: 24px !important;
    margin-bottom: 8px !important;
  }
  
  .admin-panel .section-header p {
    font-size: 14px !important;
  }
  
  .admin-grid {
    gap: 16px !important;
    padding: 0 4px !important;
  }
  
  .admin-card {
    padding: 20px 16px !important;
    border-radius: 14px !important;
  }
  
  .admin-card h3 {
    font-size: 16px !important;
    margin-bottom: 6px !important;
  }
  
  .admin-card p {
    font-size: 13px !important;
    margin-bottom: 14px !important;
  }
  
  .admin-btn {
    font-size: 12px !important;
    padding: 8px 16px !important;
    border-radius: 10px !important;
    min-width: 70px !important;
  }
  
  .admin-btn:hover {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25) !important;
  }
  
  .admin-btn:active {
    transform: translateY(0) !important;
    box-shadow: 0 3px 12px rgba(16, 185, 129, 0.2) !important;
  }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ===== PRINT STYLES ===== */
@media print {
  .nav-toggle,
  .nav-links,
  .language-dropdown,
  .top-icons,
  .btn {
    display: none !important;
  }
  
  .hero {
    padding: 20px 0;
  }
  
  .container {
    max-width: none;
    padding: 0;
  }
}

/* ===== FINAL HERO FIXES ===== */
/* Гарантированное исправление центровки для мобильной версии */
@media (max-width: 767px) {
  .hero .content {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    z-index: 10 !important;
    bottom: auto !important;
    top: 20px !important;
    padding: 48px 32px !important;
    border-radius: 28px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.95) 0%, rgba(139, 92, 246, 0.85) 50%, rgba(167, 139, 250, 0.95) 100%) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(25px) !important;
    width: calc(100% - 40px) !important;
    max-width: 500px !important;
    overflow: visible !important;
  }
  
  /* МАКСИМАЛЬНО СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ ТЕКСТА */
  .hero .content h1,
  .hero .content p,
  .hero .content .lead,
  .hero .content span,
  .hero .content div,
  .hero .content a {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  /* Принудительное центрирование всех дочерних элементов */
  .hero .content * {
    text-align: center !important;
  }
}

/* ===== АБСОЛЮТНАЯ ГАРАНТИЯ ЦЕНТРОВКИ ===== */
/* Стили с максимальной специфичностью для перезаписи всех конфликтов */
@media (max-width: 767px) {
  body .hero .content,
  html body .hero .content,
  .hero .content {
    text-align: center !important;
  }
  
  body .hero .content h1,
  html body .hero .content h1,
  .hero .content h1 {
    text-align: center !important;
  }
  
  body .hero .content p,
  html body .hero .content p,
  .hero .content p {
    text-align: center !important;
  }
  
  body .hero .content .lead,
  html body .hero .content .lead,
  .hero .content .lead {
    text-align: center !important;
  }
  
  body .hero .content span,
  html body .hero .content span,
  .hero .content span {
    text-align: center !important;
  }
  
  body .hero .content div,
  html body .hero .content div,
  .hero .content div {
    text-align: center !important;
  }
  
  body .hero .content a,
  html body .hero .content a,
  .hero .content a {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  body .hero .content,
  html body .hero .content,
  .hero .content {
    text-align: center !important;
  }
  
  body .hero .content h1,
  html body .hero .content h1,
  .hero .content h1 {
    text-align: center !important;
  }
  
  body .hero .content p,
  html body .hero .content p,
  .hero .content p {
    text-align: center !important;
  }
  
  body .hero .content .lead,
  html body .hero .content .lead,
  .hero .content .lead {
    text-align: center !important;
  }
  
  body .hero .content span,
  html body .hero .content span,
  .hero .content span {
    text-align: center !important;
  }
  
  body .hero .content div,
  html body .hero .content div,
  .hero .content div {
    text-align: center !important;
  }
  
  body .hero .content a,
  html body .hero .content a,
  .hero .content a {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  .hero .content {
    position: relative !important;
    left: auto !important;
    transform: none !important;
    text-align: center !important;
    z-index: 10 !important;
    bottom: auto !important;
    top: 20px !important;
    padding: 36px 24px !important;
    border-radius: 24px !important;
    margin: 0 auto !important;
    background: linear-gradient(135deg, rgba(109, 40, 217, 0.98) 0%, rgba(139, 92, 246, 0.88) 50%, rgba(167, 139, 250, 0.98) 100%) !important;
    box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25) !important;
    width: calc(100% - 32px) !important;
    max-width: 450px !important;
    overflow: visible !important;
  }
  
  /* МАКСИМАЛЬНО СПЕЦИФИЧНЫЕ СТИЛИ ДЛЯ ТЕКСТА */
  .hero .content h1,
  .hero .content p,
  .hero .content .lead,
  .hero .content span,
  .hero .content div,
  .hero .content a {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  /* Принудительное центрирование всех дочерних элементов */
  .hero .content * {
    text-align: center !important;
  }
}

/* ===== ФИНАЛЬНАЯ ГАРАНТИЯ - СТИЛИ В САМОМ КОНЦЕ ФАЙЛА ===== */
/* Эти стили имеют максимальный приоритет, так как находятся в конце файла */
@media (max-width: 767px) {
  /* Максимально специфичные селекторы */
  html body .hero .content,
  body .hero .content,
  .hero .content {
    text-align: center !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
  }
  
  html body .hero .content h1,
  body .hero .content h1,
  .hero .content h1 {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content p,
  body .hero .content p,
  .hero .content p {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content .lead,
  body .hero .content .lead,
  .hero .content .lead {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content span,
  body .hero .content span,
  .hero .content span {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content div,
  body .hero .content div,
  .hero .content div {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content a,
  body .hero .content a,
  .hero .content a {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  /* Принудительное центрирование ВСЕХ элементов */
  html body .hero .content *,
  body .hero .content *,
  .hero .content * {
    text-align: center !important;
  }
}

@media (max-width: 575px) {
  /* Максимально специфичные селекторы */
  html body .hero .content,
  body .hero .content,
  .hero .content {
    text-align: center !important;
    position: relative !important;
    left: auto !important;
    transform: none !important;
    margin: 0 auto !important;
  }
  
  html body .hero .content h1,
  body .hero .content h1,
  .hero .content h1 {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content p,
  body .hero .content p,
  .hero .content p {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content .lead,
  body .hero .content .lead,
  .hero .content .lead {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content span,
  body .hero .content span,
  .hero .content span {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content div,
  body .hero .content div,
  .hero .content div {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  html body .hero .content a,
  body .hero .content a,
  .hero .content a {
    text-align: center !important;
    text-align-last: center !important;
  }
  
  /* Принудительное центрирование ВСЕХ элементов */
  html body .hero .content *,
  body .hero .content *,
  .hero .content * {
    text-align: center !important;
  }
}
