/* ===================================
   МОБИЛЬНЫЕ ИСПРАВЛЕНИЯ
   =================================== */

/* === МОБИЛЬНОЕ МЕНЮ === */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    width: 300px;
    height: 100vh;
    background: white;
    z-index: 99999;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.mobile-menu.active {
    transform: translateX(0);
    visibility: visible;
}

.mobile-menu__header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mobile-menu__title {
    margin: 0;
    color: #10b981;
    font-size: 1.25rem;
}

.mobile-menu__close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mobile-menu__close:hover {
    color: #10b981;
    transform: rotate(90deg);
}

.mobile-menu__content {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.mobile-menu__link {
    display: block;
    padding: 15px;
    margin: 10px 0;
    background: #f8f9fa;
    border-radius: 10px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    font-weight: 500;
}

.mobile-menu__link:hover {
    background: #e9ecef;
    transform: translateX(5px);
    color: #10b981;
}

.mobile-menu__icon {
    margin-right: 10px;
    font-size: 1.1rem;
}

.mobile-menu__footer {
    padding: 20px;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}

.mobile-menu__call-btn {
    display: block;
    padding: 15px;
    background: #10b981;
    color: white;
    text-align: center;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s;
}

.mobile-menu__call-btn:hover {
    background: #059669;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 99998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* === БАЗОВЫЕ ИСПРАВЛЕНИЯ === */

/* Показываем бургер-кнопку только на мобильных */
@media (max-width: 991px) {
    .navbar-toggler {
        display: block !important;
    }
    
    .navbar-collapse {
        display: none !important;
    }
}

/* Убираем системный zoom на iOS */
@media (max-width: 768px) {
    input[type="text"],
    input[type="tel"],
    input[type="email"],
    input[type="number"],
    textarea,
    select {
        font-size: 16px !important;
    }
}

/* Минимальный размер кликабельных элементов (44x44px) */
a, button, .btn, input[type="submit"], input[type="button"] {
    min-height: 44px;
    min-width: 44px;
}

/* Запрет выделения текста при длинном нажатии */
.btn, button, a[role="button"] {
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

/* === SKIP LINK ДЛЯ ДОСТУПНОСТИ === */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #10b981;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 0 0 4px 0;
    z-index: 10000;
    transition: top 0.3s;
    font-weight: 600;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #059669;
}

/* === HERO СЕКЦИЯ - МОБИЛЬНАЯ АДАПТАЦИЯ === */

@media (max-width: 991px) {
    .hero-section {
        min-height: 80vh !important;
    }
    
    .hero-section .col-lg-6 {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: auto !important;
        padding: 2rem 0 !important;
    }
    
    .hero-section .row {
        min-height: auto !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
        line-height: 1.2 !important;
        margin-bottom: 1rem !important;
    }
    
    .hero-section .lead {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
        max-width: 100% !important;
        padding-right: 0 !important;
    }
    
    .hero-section .badge {
        font-size: 0.85rem !important;
        padding: 0.4rem 1rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Кнопки в столбик на мобильных */
    .hero-section .d-flex.gap-3 {
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100%;
    }
    
    .hero-section .btn {
        width: 100%;
        padding: 0.9rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
    
    /* Картинка hero */
    .hero-image-wrapper {
        transform: scale(1) !important;
        margin-bottom: 2rem;
        border-radius: 20px !important;
    }
    
    .hero-image-wrapper:hover {
        transform: scale(1.02) translateY(-10px) !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 1.5rem 0 !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-section .lead {
        font-size: 1rem !important;
        margin-bottom: 1.25rem !important;
    }
    
    .hero-section .btn {
        padding: 0.8rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

/* === СТАТИСТИЧЕСКИЕ КАРТОЧКИ === */

@media (max-width: 768px) {
    .stats-cards-container {
        margin-top: 2rem !important;
    }
    
    .stat-card-below {
        padding: 1rem !important;
    }
    
    .stat-icon-wrapper {
        width: 50px !important;
        height: 50px !important;
        font-size: 1.2rem !important;
    }
    
    .stat-number {
        font-size: 1.5rem !important;
    }
    
    .stat-label {
        font-size: 0.75rem !important;
    }
}

@media (max-width: 480px) {
    .stat-card-below {
        padding: 0.8rem !important;
    }
    
    .stat-icon-wrapper {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.1rem !important;
    }
    
    .stat-number {
        font-size: 1.3rem !important;
    }
    
    .stat-label {
        font-size: 0.7rem !important;
    }
}

@media (max-width: 375px) {
    .stat-card-below {
        padding: 0.7rem !important;
    }
    
    .stat-number {
        font-size: 1.2rem !important;
    }
}

/* Радужная секция статистики */
@media (max-width: 768px) {
    .stats-section {
        padding: 50px 0 !important;
    }
    
    .stats-section .stat-card {
        padding: 1.5rem 1rem !important;
    }
    
    .stats-section .stat-number {
        font-size: 2.5rem !important;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: 40px 0 !important;
    }
    
    .stats-section .stat-card {
        padding: 1rem 0.5rem !important;
    }
    
    .stats-section .stat-number {
        font-size: 2rem !important;
    }
    
    .stats-section p {
        font-size: 0.85rem !important;
    }
}

@media (max-width: 375px) {
    .stats-section .stat-number {
        font-size: 1.75rem !important;
    }
}

/* === ОТКЛЮЧЕНИЕ ТЯЖЕЛЫХ АНИМАЦИЙ НА МОБИЛЬНЫХ === */

@media (max-width: 768px) {
    .hero-section::before,
    .stats-section::before {
        animation: none !important;
    }
    
    .floating-card {
        animation: none !important;
        position: static !important;
    }
    
    .stat-icon-wrapper {
        animation: none !important;
    }
    
    /* Упрощаем hover эффекты */
    .glass-card:hover,
    .service:hover,
    .benefit-card:hover,
    .process-card-modern:hover {
        transform: translateY(-2px) !important;
    }
}

/* Уважаем настройки пользователя */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* === КАРТОЧКИ УСЛУГ === */

@media (max-width: 991px) {
    .glass-card,
    .service,
    .benefit-card {
        padding: 2rem 1.5rem !important;
    }
    
    .icon-3d,
    .service__icon {
        width: 70px !important;
        height: 70px !important;
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .glass-card,
    .service,
    .benefit-card {
        padding: 1.5rem !important;
    }
    
    .glass-card h3,
    .service h3,
    .benefit-card h3 {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .glass-card,
    .service,
    .benefit-card {
        padding: 1.25rem !important;
    }
    
    .icon-3d,
    .service__icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.75rem !important;
    }
}

/* === КНОПКИ === */

@media (max-width: 768px) {
    .btn-modern {
        padding: 12px 28px !important;
        font-size: 0.8rem !important;
    }
}

@media (max-width: 480px) {
    .btn-modern {
        padding: 10px 24px !important;
        font-size: 0.75rem !important;
    }
}

/* === ФОРМЫ === */

@media (max-width: 768px) {
    .contact-form-card {
        padding: 2rem 1.5rem !important;
        border-radius: 25px !important;
    }
    
    .form-control-modern {
        padding: 0.9rem 1rem !important;
        font-size: 16px !important;
    }
}

/* === FLOATING BUTTONS === */

@media (max-width: 768px) {
    .whatsapp-float {
        width: 55px !important;
        height: 55px !important;
        font-size: 1.75rem !important;
        bottom: 20px !important;
        right: 20px !important;
    }
    
    .back-to-top {
        width: 45px !important;
        height: 45px !important;
        bottom: 90px !important;
        right: 20px !important;
    }
}

@media (max-width: 480px) {
    .whatsapp-float {
        width: 50px !important;
        height: 50px !important;
        bottom: 15px !important;
        right: 15px !important;
    }
    
    .back-to-top {
        width: 40px !important;
        height: 40px !important;
        bottom: 80px !important;
        right: 15px !important;
    }
}

/* === КОНТЕЙНЕР === */

@media (max-width: 768px) {
    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 0.75rem !important;
        padding-right: 0.75rem !important;
    }
}

/* === НАВИГАЦИЯ === */

@media (max-width: 991px) {
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 0.3rem 0;
    }
}

/* === ACCESSIBILITY === */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #10b981 !important;
    outline-offset: 2px !important;
}

/* === ДОПОЛНИТЕЛЬНЫЕ СТИЛИ === */

.hero-content-wrapper {
    z-index: 2;
    padding-right: 2rem;
}

.hero-lead {
    font-size: 1.4rem;
    font-weight: 500;
    line-height: 1.4;
    max-width: 90%;
}

.stats-container {
    z-index: 1;
}

/* Блокировка скролла при открытом меню */
body.menu-open {
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-content-wrapper {
        padding-right: 0;
    }
    
    .hero-lead {
        font-size: 1.1rem !important;
        max-width: 100% !important;
    }
}
