/* ===== СОВРЕМЕННАЯ МОБИЛЬНАЯ ВЕРСИЯ 2025 ===== */
/* Полностью новая элегантная мобильная версия */

/* Основные переменные для мобильной версии */
:root {
  --mobile-primary: #7c3aed;
  --mobile-secondary: #a855f7;
  --mobile-accent: #c084fc;
  --mobile-dark: #0f172a;
  --mobile-light: #f8fafc;
  --mobile-gray: #64748b;
  --mobile-border: rgba(124, 58, 237, 0.2);
  --mobile-shadow: 0 8px 32px rgba(124, 58, 237, 0.15);
  --mobile-radius: 20px;
  --mobile-transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (≤ 768px) ===== */
@media (max-width: 768px) {
  
  /* ===== ОБЩИЕ СТИЛИ ===== */
  * {
    box-sizing: border-box;
  }
  
  body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--mobile-dark);
    background: var(--mobile-light);
    overflow-x: hidden;
  }
  
  /* ===== МОБИЛЬНЫЙ ХЕДЕР ===== */
  .top-bar {
    display: none !important;
  }
  
  .header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(124, 58, 237, 0.1);
    padding: 12px 20px;
    transition: var(--mobile-transition);
  }
  
  .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 100%;
  }
  
  .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 20px;
    color: var(--mobile-primary);
  }
  
  .logo img {
    height: 32px;
    width: auto;
  }
  
  .nav-links {
    display: none !important;
  }
  
  .right-controls {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .right-controls .btn.ghost {
    display: none !important;
  }
  
  /* ===== МОБИЛЬНЫЕ КОНТРОЛЫ ===== */
  .mobile-controls {
    display: flex !important;
    align-items: center;
    gap: 8px;
  }
  
  .mobile-lang-switcher {
    display: flex !important;
    gap: 4px;
  }
  
  .mobile-lang-btn {
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: var(--mobile-primary);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: var(--mobile-transition);
  }
  
  .mobile-lang-btn.active {
    background: var(--mobile-primary);
    color: white;
    box-shadow: var(--mobile-shadow);
  }
  
  .mobile-lang-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mobile-shadow);
  }
  
  /* ===== БУРГЕР МЕНЮ ===== */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--mobile-transition);
    position: relative;
    overflow: hidden;
  }
  
  .nav-toggle::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.2) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s;
  }
  
  .nav-toggle:hover::before {
    transform: translateX(100%);
  }
  
  .nav-toggle:hover {
    transform: scale(1.05);
    box-shadow: var(--mobile-shadow);
  }
  
  .nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: white;
    margin: 2px 0;
    transition: var(--mobile-transition);
    border-radius: 1px;
  }
  
  .nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  .nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
  }
  
  .nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* ===== МОБИЛЬНОЕ МЕНЮ ===== */
  .mobile-drawer {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(25px);
    z-index: 9999;
    display: none;
    animation: drawerFadeIn 0.3s ease-out;
  }
  
  .mobile-drawer.open {
    display: block;
  }
  
  @keyframes drawerFadeIn {
    from {
      opacity: 0;
      backdrop-filter: blur(0px);
    }
    to {
      opacity: 1;
      backdrop-filter: blur(25px);
    }
  }
  
  .mobile-drawer .drawer-inner {
    position: absolute;
    inset: 0;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
  }
  
  .mobile-drawer .drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
  }
  
  .mobile-drawer .drawer-title {
    font-weight: 800;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #fff 0%, #e2e8f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }
  
  .mobile-drawer .drawer-close {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border: none;
    color: white;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--mobile-transition);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .mobile-drawer .drawer-close:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: var(--mobile-shadow);
  }
  
  /* ===== НАВИГАЦИЯ В МЕНЮ ===== */
  .mobile-drawer .drawer-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
  }
  
  .mobile-drawer .drawer-nav a {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: var(--mobile-transition);
    position: relative;
    overflow: hidden;
  }
  
  .mobile-drawer .drawer-nav a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2) 0%, rgba(168, 85, 247, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.3s;
  }
  
  .mobile-drawer .drawer-nav a:hover::before {
    opacity: 1;
  }
  
  .mobile-drawer .drawer-nav a:hover {
    transform: translateX(8px);
    box-shadow: var(--mobile-shadow);
  }
  
  .mobile-drawer .drawer-nav a span {
    position: relative;
    z-index: 2;
  }
  
  /* ===== КОНТАКТЫ В МЕНЮ ===== */
  .mobile-drawer .drawer-contacts {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  
  .mobile-drawer .drawer-phone {
    text-align: center;
    color: white;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
  }
  
  .mobile-drawer .social-row {
    display: flex;
    justify-content: center;
    gap: 12px;
  }
  
  .mobile-drawer .social-row a {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, 0.15);
    border: 1px solid rgba(124, 58, 237, 0.2);
    border-radius: 12px;
    color: white;
    text-decoration: none;
    transition: var(--mobile-transition);
  }
  
  .mobile-drawer .social-row a:hover {
    background: rgba(124, 58, 237, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--mobile-shadow);
  }
  
  .mobile-drawer .social-row a i {
    font-size: 18px;
  }
  
  .mobile-drawer .drawer-cta {
    margin-top: 16px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border: none;
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    transition: var(--mobile-transition);
  }
  
  .mobile-drawer .drawer-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--mobile-shadow);
  }
  
  /* ===== ГЛАВНЫЙ КОНТЕНТ ===== */
  .hero {
    margin-top: 80px;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--mobile-primary) 0%, var(--mobile-secondary) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
  }
  
  .hero-content {
    position: relative;
    z-index: 2;
  }
  
  .hero h1 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
  }
  
  .hero p {
    font-size: 18px;
    margin-bottom: 24px;
    opacity: 0.9;
    line-height: 1.5;
  }
  
  .hero .btn {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--mobile-transition);
    backdrop-filter: blur(10px);
  }
  
  .hero .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* ===== СЕКЦИИ ===== */
  .section {
    padding: 60px 20px;
  }
  
  .section-header {
    text-align: center;
    margin-bottom: 40px;
  }
  
  .section-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--mobile-dark);
    margin-bottom: 12px;
  }
  
  .section-header p {
    font-size: 16px;
    color: var(--mobile-gray);
    line-height: 1.6;
  }
  
  /* ===== КАРТОЧКИ УСЛУГ ===== */
  .services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .service-card {
    background: white;
    border-radius: var(--mobile-radius);
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: var(--mobile-transition);
    border: 1px solid rgba(124, 58, 237, 0.1);
  }
  
  .service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(124, 58, 237, 0.15);
  }
  
  .service-card .icon-48 {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .service-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--mobile-dark);
    margin-bottom: 8px;
  }
  
  .service-card p {
    font-size: 14px;
    color: var(--mobile-gray);
    line-height: 1.6;
    margin-bottom: 16px;
  }
  
  .service-card .btn {
    display: inline-block;
    padding: 12px 20px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border: none;
    border-radius: 12px;
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--mobile-transition);
  }
  
  .service-card .btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--mobile-shadow);
  }
  
  /* ===== СТАТИСТИКА ===== */
  .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .stat-card {
    background: white;
    border-radius: var(--mobile-radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
  }
  
  .stat-icon {
    font-size: 32px;
    margin-bottom: 12px;
  }
  
  .stat-number {
    font-size: 32px;
    font-weight: 800;
    color: var(--mobile-primary);
    margin-bottom: 4px;
  }
  
  .stat-label {
    font-size: 14px;
    color: var(--mobile-gray);
    font-weight: 600;
  }
  
  /* ===== ДОСТИЖЕНИЯ ===== */
  .achievements-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .achievement-card {
    background: white;
    border-radius: var(--mobile-radius);
    padding: 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
  }
  
  .achievement-icon {
    font-size: 48px;
    margin-bottom: 16px;
  }
  
  .achievement-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--mobile-dark);
    margin-bottom: 8px;
  }
  
  .achievement-card p {
    font-size: 14px;
    color: var(--mobile-gray);
    line-height: 1.6;
  }
  
  /* ===== ЛОГОТИПЫ ===== */
  .logo-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 32px;
  }
  
  .logo-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(124, 58, 237, 0.1);
  }
  
  .logo-item img {
    max-width: 100%;
    height: auto;
    filter: grayscale(100%);
    transition: var(--mobile-transition);
  }
  
  .logo-item:hover img {
    filter: grayscale(0%);
  }
  
  /* ===== АДМИН ПАНЕЛЬ ===== */
  .admin-panel {
    background: linear-gradient(135deg, var(--mobile-primary) 0%, var(--mobile-secondary) 100%);
    color: white;
    border-radius: var(--mobile-radius);
    padding: 32px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
  }
  
  .admin-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
  }
  
  .admin-panel-content {
    position: relative;
    z-index: 2;
  }
  
  .admin-panel h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 12px;
  }
  
  .admin-panel p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.9;
  }
  
  .admin-panel .btn {
    display: inline-block;
    padding: 16px 32px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    transition: var(--mobile-transition);
    backdrop-filter: blur(10px);
  }
  
  .admin-panel .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  }
  
  /* ===== ФУТЕР ===== */
  .footer {
    background: var(--mobile-dark);
    color: white;
    padding: 40px 20px 20px;
  }
  
  .footer-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }
  
  .footer-section h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--mobile-accent);
  }
  
  .footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .footer-section ul li {
    margin-bottom: 8px;
  }
  
  .footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: var(--mobile-transition);
  }
  
  .footer-section ul li a:hover {
    color: var(--mobile-accent);
  }
  
  .contact-info {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
  }
  
  .contact-item i {
    color: var(--mobile-accent);
    width: 16px;
  }
  
  .footer-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .stat-item .stat-number {
    display: block;
    font-size: 24px;
    font-weight: 800;
    color: var(--mobile-accent);
  }
  
  .stat-item .stat-label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
  }
  
  .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    text-align: center;
  }
  
  .footer-bottom p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
  }
  
  .footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 12px;
    transition: var(--mobile-transition);
  }
  
  .footer-links a:hover {
    color: var(--mobile-accent);
  }
  
  /* ===== ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ ===== */
  /* Базовые стили contact-dock перенесены в mobile-2025.css */
  
  .scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--mobile-primary), var(--mobile-secondary));
    z-index: 10000;
    transition: width 0.1s ease;
  }
  
  .back-to-top-mobile {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--mobile-primary), var(--mobile-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: var(--mobile-transition);
    z-index: 9997;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
  }
  
  .back-to-top-mobile.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
  }
  
  .back-to-top-mobile:hover {
    transform: translateY(-2px);
    box-shadow: var(--mobile-shadow);
  }
  
  .back-to-top-mobile i {
    font-size: 18px;
  }
  
  /* ===== АНИМАЦИИ ===== */
  @keyframes slideInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
  
  @keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
  }
  
  /* Применяем анимации */
  .service-card,
  .stat-card,
  .achievement-card {
    animation: slideInUp 0.6s ease forwards;
  }
  
  .service-card:nth-child(1) { animation-delay: 0.1s; }
  .service-card:nth-child(2) { animation-delay: 0.2s; }
  .service-card:nth-child(3) { animation-delay: 0.3s; }
  .service-card:nth-child(4) { animation-delay: 0.4s; }
  .service-card:nth-child(5) { animation-delay: 0.5s; }
  
  /* ===== СКРЫТЬ ДЕСКТОПНЫЕ ЭЛЕМЕНТЫ ===== */
  .language-dropdown:not(.mobile-only),
  .back-to-top {
    display: none !important;
  }
}

/* ===== ПЛАНШЕТНАЯ ВЕРСИЯ (769px - 1024px) ===== */
@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .achievements-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .logo-container {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ===== СКРЫТЬ НА ДЕСКТОПЕ ===== */
@media (min-width: 1025px) {
  .mobile-drawer,
  .contact-dock,
  .scroll-progress,
  .back-to-top-mobile,
  .mobile-lang-switcher,
  .nav-toggle {
    display: none !important;
  }
}

