/* =======================================
   MOBILE IMPROVEMENTS & SLIDER STYLES
   Улучшения для мобильной версии + Слайдеры
   ======================================= */

/* ===== MOBILE HEADER FIX ===== */
@media (max-width: 768px) {
    .header {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        padding: 10px 0;
        z-index: 999;
        background: rgba(26, 35, 50, 0.98);
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navbar {
        padding: 0 15px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .logo h1 {
        font-size: 18px !important;
        margin: 0;
    }
    
    .nav-contact {
        display: none;
    }
    
    .phone-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .hero {
        margin-top: 60px;
        padding: 60px 0 40px;
    }
    
    .hero-title {
        font-size: 28px !important;
        line-height: 1.3;
    }
    
    .hero-subtitle {
        font-size: 16px !important;
    }
    
    .language-switcher {
        top: 70px;
        right: 10px;
    }
}

/* ===== LARGE GALLERY ITEMS ===== */
.gallery-item-large {
    margin-bottom: 40px;
}

.gallery-item-large .before-after-container {
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.gallery-item-large .slider-images {
    height: 100%;
}

.gallery-item-large .slider-handle {
    width: 6px;
    background: #ff6b35;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.5);
}

.gallery-item-large .slider-handle::before {
    width: 60px;
    height: 60px;
    border: 4px solid #ff6b35;
}

.gallery-item-large .slider-handle::after {
    font-size: 28px;
}

.gallery-item-large .slider-label {
    font-size: 16px;
    padding: 10px 20px;
}

.gallery-item-large .gallery-info {
    text-align: center;
    padding: 30px 20px;
}

.gallery-item-large .gallery-info h3 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a2332;
}

.gallery-item-large .gallery-info p {
    font-size: 16px;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .gallery-item-large .before-after-container {
        height: 300px;
    }
    
    .gallery-item-large .gallery-info h3 {
        font-size: 22px;
    }
}

/* ===== TESTIMONIALS SLIDER ===== */
.testimonials-slider-container {
    position: relative;
    max-width: 1200px;
    margin: 50px auto 0;
    padding: 0 60px;
}

.testimonials-slider {
    overflow: hidden;
    position: relative;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.testimonial-slide {
    min-width: 33.333%;
    padding: 0 15px;
    box-sizing: border-box;
}

@media (max-width: 992px) {
    .testimonial-slide {
        min-width: 50%;
    }
}

@media (max-width: 768px) {
    .testimonial-slide {
        min-width: 100%;
    }
    
    .testimonials-slider-container {
        padding: 0 40px;
    }
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: white;
    border: 2px solid #ff6b35;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.slider-arrow:hover {
    background: #ff6b35;
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.slider-arrow.prev {
    left: 0;
}

.slider-arrow.next {
    right: 0;
}

.slider-arrow i {
    font-size: 20px;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-dot.active {
    background: #ff6b35;
    width: 30px;
    border-radius: 6px;
}

/* ===== GALLERY LINK BUTTON ===== */
.gallery-link-card {
    background: linear-gradient(135deg, #ff6b35 0%, #ffa07a 100%);
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    color: white;
    margin-top: 40px;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.3);
    transition: transform 0.3s ease;
}

.gallery-link-card:hover {
    transform: translateY(-5px);
}

.gallery-link-card h3 {
    font-size: 28px;
    margin-bottom: 15px;
}

.gallery-link-card p {
    font-size: 16px;
    margin-bottom: 25px;
    opacity: 0.9;
}

.gallery-link-card .btn {
    background: white;
    color: #ff6b35;
    font-weight: 600;
    padding: 15px 40px;
    border-radius: 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.gallery-link-card .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
}

/* ===== IMPROVED MOBILE MENU ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 60px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 60px);
        background: rgba(26, 35, 50, 0.98);
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 0;
    }
    
    .nav-list li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        font-size: 16px;
    }
    
    .hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        z-index: 1000;
    }
    
    .hamburger span {
        width: 25px;
        height: 3px;
        background: white;
        transition: all 0.3s ease;
    }
    
    .hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
}

/* ===== CONTAINER IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    section {
        padding: 60px 0;
    }
    
    .section-title {
        font-size: 28px !important;
    }
    
    .section-description {
        font-size: 15px !important;
    }
}

/* ===== AUTO-HIDE ALERT ===== */
@keyframes fadeOut {
    from { opacity: 1; transform: translateY(0); }
    to { opacity: 0; transform: translateY(-20px); }
}

.alert.fade-out {
    animation: fadeOut 0.5s ease forwards;
}