        /* БАЗОВЫЕ СТИЛИ*/
:root {
	--primary-color: #0067a5;
	--primary-dark: #005a8f;
	--secondary-color: #d3ff3a;
	--light-color: #F5F9FA;
	--dark-color: #434750;
	--text-color: #455A64;
	--border-radius: 16px;
	--box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	--highlight-color: #d3ff3a;
	--blue-shadow: 0 0 10px rgba(0, 103, 165, 0.4);
	--blue-shadow-intense: 0 0 15px rgba(0, 103, 165, 0.7);
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Montserrat', sans-serif;
	color: var(--text-color);
	background-color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
}

a {
	text-decoration: none;
	color: var(--primary-dark);
	transition: all 0.3s ease;
}

a:hover {
	color: var(--secondary-color);
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

        /* Hero Section - ИСПРАВЛЕННЫЙ ДЛЯ МОБИЛЬНЫХ */
        .hero {
            position: relative;
            height: 40vh;
            max-height: 400px;
            min-height: 300px;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: white;
            margin-bottom: 40px;
            overflow: hidden;
        }

        .hero::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
                        url('https://sun9-58.userapi.com/s/v1/ig2/ZLfUhdY_cBkUS1cmd4IrRVXBdrF2tJODr-9R0j0kMvwoMcHW2HF2edowl0UlpoVq9W-CexoGH95EcmYaVztySk4e.jpg?quality=95&as=32x21,48x32,72x48,108x72,160x107,240x160,360x240,480x320,540x360,640x427,720x480,1080x720,1280x853,1440x960,2499x1666&from=bu&cs=2499x0') no-repeat center center/cover;
            z-index: -1;
        }

        .hero-content {
            max-width: 800px;
            padding: 0 20px;
            text-shadow: 0 0 10px rgba(211, 255, 58, 0.5);
            position: relative;
            z-index: 2;
        }

        .hero h1 {
            font-size: 2.5rem;
            margin-bottom: 20px;
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
        }

        .hero p {
            font-size: 1.2rem;
            margin-bottom: 30px;
            text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
        }

        /* Section Styling */
        section {
            padding: 60px 0;
        }

        .section-title {
            text-align: center;
            margin-bottom: 40px;
        }

        .section-title h2 {
            font-size: 2.5rem;
            color: var(--primary-dark);
            margin-bottom: 15px;
            position: relative;
            display: inline-block;
        }

        .section-title h2:after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background-color: var(--primary-color);
            border-radius: 2px;
        }

        .section-title p {
            color: var(--text-color);
            max-width: 700px;
            margin: 0 auto;
        }

        /* MASONRY GALLERY STYLES */
        .gallery-section {
            background-color: var(--light-color);
            padding: 60px 0;
        }

        .masonry-grid {
            column-count: 3;
            column-gap: 20px;
            margin-bottom: 50px;
        }
        
        .masonry-item {
            break-inside: avoid;
            margin-bottom: 20px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: all 0.3s ease;
            cursor: pointer;
            background: white;
            position: relative;
        }
        
        .masonry-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
        }
        
        .masonry-item img {
            width: 100%;
            height: auto;
            display: block;
            transition: transform 0.5s ease;
        }
        
        .masonry-item:hover img {
            transform: scale(1.05);
        }
        
        .masonry-caption {
            padding: 15px;
            background: white;
        }
        
        .masonry-caption h3 {
            font-size: 1.1rem;
            margin-bottom: 5px;
            color: var(--primary-dark);
        }
        
        .masonry-caption p {
            font-size: 0.9rem;
            color: var(--text-color);
        }
    /* УБИРАЕМ БЕЛУЮ ПОЛОСУ ПОД КАРТИНКОЙ */
    .masonry-caption {
        display: none;
    }

        /* Social Banner */
        .social-gallery-banner {
            background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
            border-radius: var(--border-radius);
            padding: 40px;
            text-align: center;
            color: white;
            box-shadow: var(--box-shadow);
            margin: 0 auto;
            max-width: 800px;
            position: relative;
            overflow: hidden;
        }

        .social-gallery-banner::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
            transform: rotate(45deg);
            animation: shine 3s infinite;
        }

        @keyframes shine {
            0% {
                transform: translateX(-100%) translateY(-100%) rotate(45deg);
            }
            100% {
                transform: translateX(100%) translateY(100%) rotate(45deg);
            }
        }

        .social-gallery-banner-content {
            position: relative;
            z-index: 2;
        }

        .social-gallery-banner h3 {
            font-size: 1.8rem;
            margin-bottom: 15px;
            color: var(--secondary-color);
        }

        .social-gallery-banner p {
            font-size: 1.1rem;
            margin-bottom: 25px;
            opacity: 0.9;
        }

        .social-buttons {
            display: flex;
            justify-content: center;
            gap: 15px;
            flex-wrap: wrap;
        }
        
        .social-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 12px 25px;
            background: white;
            color: var(--primary-color);
            border-radius: 30px;
            font-weight: 600;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
            text-decoration: none;
        }
        
        .social-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
            background: var(--secondary-color);
            color: var(--dark-color);
            text-decoration: none;
        }
        
        .social-btn i {
            font-size: 1.2rem;
        }

/* Image Modal - ИСПРАВЛЕННЫЙ ДЛЯ ДЕСКТОПА */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* УБИРАЕМ КРЕСТИК ЗАКРЫТИЯ */
.close-modal {
    display: none;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Navigation arrows for modal */
.modal-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 103, 165, 0.8);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2001;
    border: none;
    font-size: 20px;
}

.modal-nav:hover {
    background: var(--primary-color);
    transform: translateY(-50%) scale(1.1);
}

.modal-prev {
    left: 20px;
}

.modal-next {
    right: 20px;
}

        /* Back to top button */
        .back-to-top {
            position: fixed;
            bottom: 30px;
            right: 30px;
            width: 50px;
            height: 50px;
            background-color: var(--primary-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 20px;
            box-shadow: var(--blue-shadow);
            cursor: pointer;
            transition: all 0.3s ease;
            z-index: 999;
            opacity: 0;
            visibility: hidden;
        }

        .back-to-top.visible {
            opacity: 1;
            visibility: visible;
        }

        .back-to-top:hover {
            background-color: var(--primary-dark);
            transform: translateY(-5px);
            box-shadow: 0 6px 15px rgba(211, 255, 58, 0.5);
        }



        /* Адаптивность Masonry */
        @media (max-width: 992px) {
            .masonry-grid {
                column-count: 2;
            }
            
            .modal-nav {
                width: 40px;
                height: 40px;
                font-size: 16px;
            }
            
            .modal-prev {
                left: 10px;
            }
            
            .modal-next {
                right: 10px;
            }
        }
        
        @media (max-width: 576px) {
            .masonry-grid {
                column-count: 1;
            }
            
            .social-buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .social-btn {
                width: 100%;
                max-width: 250px;
                justify-content: center;
            }
            
            .modal-nav {
                width: 35px;
                height: 35px;
                font-size: 14px;
            }
            
            .close-modal {
                top: -40px;
                right: 10px;
            }
        }

        /* Дополнительные медиа-запросы */
        @media (max-width: 768px) {
            .container {
                width: 95%;
                padding: 0 10px;
            }
            
            section {
                padding: 40px 0;
            }
            
            .hero {
                height: 35vh;
                min-height: 250px;
            }
            
            .hero::before {
                background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), 
                            url('https://sun9-58.userapi.com/s/v1/ig2/ZLfUhdY_cBkUS1cmd4IrRVXBdrF2tJODr-9R0j0kMvwoMcHW2HF2edowl0UlpoVq9W-CexoGH95EcmYaVztySk4e.jpg?quality=95&as=32x21,48x32,72x48,108x72,160x107,240x160,360x240,480x320,540x360,640x427,720x480,1080x720,1280x853,1440x960,2499x1666&from=bu&cs=2499x0') no-repeat center center/cover;
            }
            
            .hero h1 {
                font-size: 1.8rem;
            }
            
            .hero p {
                font-size: 1rem;
            }
            
            .section-title h2 {
                font-size: 1.8rem;
            }
            
            .mobile-menu-btn {
                display: block;
                margin-left: auto;
                background: none;
                border: none;
                font-size: 24px;
                color: var(--primary-dark);
                cursor: pointer;
                z-index: 1001;
            }
            
           nav ul {
    position: absolute !important;
    top: 60px !important;
    right: 20px !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    background-color: rgba(255, 255, 255, 0.98) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15) !important;
    padding: 15px !important;
    display: none !important;
    flex-direction: column !important;
    min-width: 180px;
    max-width: 250px;
    z-index: 1000 !important;
    overflow-y: auto;
    max-height: 80vh;
  }
  
nav ul.show {
    display: flex !important;
  }
  
nav ul li {
    margin: 8px 0 !important;
  }
  
nav ul li a {
    text-align: right !important;
    display: block !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    width: 100%;
  }
            
            /* Оверлей для закрытия меню */
            .menu-overlay {
                display: none;
                position: fixed;
                top: 0;
                left: 0;
                width: 100%;
                height: 100%;
                background-color: rgba(0, 0, 0, 0.5);
                z-index: 998;
            }
            
            .menu-overlay.active {
                display: block;
            }
        }

        @media (max-width: 400px) {
            .hero {
                height: 30vh;
                min-height: 200px;
            }
            
            .hero::before {
                background: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), 
                            url('https://sun9-58.userapi.com/s/v1/ig2/ZLfUhdY_cBkUS1cmd4IrRVXBdrF2tJODr-9R0j0kMvwoMcHW2HF2edowl0UlpoVq9W-CexoGH95EcmYaVztySk4e.jpg?quality=95&as=32x21,48x32,72x48,108x72,160x107,240x160,360x240,480x320,540x360,640x427,720x480,1080x720,1280x853,1440x960,2499x1666&from=bu&cs=2499x0') no-repeat center center/cover;
            }
            
            .hero h1 {
                font-size: 1.5rem;
            }
            
            .hero p {
                font-size: 0.9rem;
            }
        }

        /* Блокировка скролла при открытом меню */
        body.menu-open {
            overflow: hidden;
        }

        /* Анимация иконки бургера */
        .mobile-menu-btn .fa-bars {
            transition: transform 0.3s ease;
        }

        .mobile-menu-btn.active .fa-bars {
            transform: rotate(90deg);
        }

@media (max-width: 992px) {
  body.home-page .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  
  /* Сдвигаем кнопку меню вправо */
  body.home-page .mobile-menu-btn {
    order: 3; /* Перемещает кнопку в самый правый конец */
    margin-left: auto; /* Прижимает к правому краю */
    margin-right: 0;
    position: static !important; /* Убираем абсолютное позиционирование если есть */
    left: auto !important;
    right: auto !important;
  }
  
  /* Логотип остаётся слева */
  body.home-page .logo {
    order: 1;
  }
  
  /* Навигация (меню) - по центру или скрыта */
  body.home-page nav {
    order: 2;
  }
}