* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0c0c14;
    color: #e0e0ff;
    line-height: 1.7;
    overflow-x: hidden;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
/* Поднятое меню */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    background: rgba(12, 12, 20, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(100, 100, 255, 0.1);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    color: #6c63ff;
    font-size: 28px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo i {
    margin-right: 10px;
    color: #00e5ff;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: #a0a0ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 18px;
    transition: all 0.3s ease;
    padding: 8px 15px;
    border-radius: 30px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: #00e5ff;
}

.nav-links a:hover::after {
    width: 70%;
}

.menu-toggle {
    display: none;
    color: #00e5ff;
    font-size: 24px;
    cursor: pointer;
}

/* Основной контент */
.main-content {
    display: flex;
    padding-top: 100px;
    gap: 30px;
}

/* Боковые колонки */
.sidebar {
    flex: 0 0 300px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.sidebar-section {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(100, 100, 255, 0.1);
    backdrop-filter: blur(5px);
}

.sidebar-section h3 {
    font-size: 1.4rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #6c63ff;
    color: #00e5ff;
}

/* Новости */
.news-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(100, 100, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

.news-item:hover {
    background: rgba(108, 99, 255, 0.1);
    border-radius: 10px;
}

.news-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.news-date {
    font-size: 0.85rem;
    color: #6c63ff;
    margin-bottom: 8px;
}

.news-title {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #00e5ff;
    transition: all 0.3s ease;
}

.news-title:hover {
    color: #6c63ff;
    text-decoration: underline;
}

.news-preview {
    font-size: 0.95rem;
    color: #b0b0ff;
}

/* Реклама */
.ad {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ad:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.ad img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease;
}

.ad:hover img {
    transform: scale(1.05);
}

.ad-label {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(108, 99, 255, 0.8);
    color: white;
    font-size: 0.7rem;
    padding: 3px 8px;
    border-radius: 3px;
}

/* Центральный контент */
.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

/* Герой-секция */
.hero {
    height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(12, 12, 20, 0.9), rgba(12, 12, 20, 0.7)),
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(100, 100, 255, 0.05) 1px, rgba(100, 100, 255, 0.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(100, 100, 255, 0.05) 1px, rgba(100, 100, 255, 0.05) 2px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 1;
}
/* УПРОЩЕННЫЙ ЭФФЕКТ ФОНА */
.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(rgba(12, 12, 20, 0.9), rgba(12, 12, 20, 0.7)),
        repeating-linear-gradient(0deg, transparent, transparent 1px, rgba(100, 100, 255, 0.05) 1px, rgba(100, 100, 255, 0.05) 2px),
        repeating-linear-gradient(90deg, transparent, transparent 1px, rgba(100, 100, 255, 0.05) 1px, rgba(100, 100, 255, 0.05) 2px);
    background-size: 100% 100%, 40px 40px, 40px 40px;
    z-index: 1;
}

/* СТАТИЧЕСКИЕ ДЕКОРАТИВНЫЕ ЭЛЕМЕНТЫ ВМЕСТО АНИМИРОВАННЫХ ЧАСТИЦ */
.hero::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 8px;
    height: 8px;
    background: rgba(108, 99, 255, 0.6);
    border-radius: 50%;
    box-shadow: 
        200px 50px 0 rgba(0, 229, 255, 0.4),
        400px 150px 0 rgba(108, 99, 255, 0.3),
        600px 300px 0 rgba(0, 229, 255, 0.5),
        100px 400px 0 rgba(108, 99, 255, 0.4);
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 15%;
    right: 15%;
    width: 6px;
    height: 6px;
    background: rgba(0, 229, 255, 0.5);
    border-radius: 50%;
    box-shadow: 
        -150px -100px 0 rgba(108, 99, 255, 0.3),
        -300px -200px 0 rgba(0, 229, 255, 0.4),
        -450px -50px 0 rgba(108, 99, 255, 0.2);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 2;
    padding: 0 20px;
}

.hero-text {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    line-height: 1.2;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero h1::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 4px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #b0b0ff;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    color: #0c0c14;
    padding: 15px 35px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #6c63ff, #00e5ff);
    transition: all 0.5s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Преимущества */
.advantages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.advantage-card {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(100, 100, 255, 0.1);
    backdrop-filter: blur(5px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.advantage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(100, 100, 255, 0.3);
}

.advantage-card:hover::before {
    transform: scaleX(1);
}

.advantage-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.advantage-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.advantage-card p {
    color: #b0b0ff;
}

/* Галерея */
.gallery-section {
    position: relative;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
}

.section-title h2 {
    font-size: 2.2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 15px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
}

.gallery-container {
    position: relative;
    z-index: 2;
}

.gallery-slider {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.slides {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 229, 255, 0.1));
}

.slider-nav {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    gap: 10px;
}

.slider-nav button {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.3);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.slider-nav button.active {
    background: #6c63ff;
    transform: scale(1.2);
}

.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
    z-index: 3;
}

.slider-controls button {
    background: rgba(108, 99, 255, 0.5);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-controls button:hover {
    background: #6c63ff;
    transform: scale(1.1);
}

/* Видео */
.video-section {
    position: relative;
}

.video-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    z-index: 2;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(0, 229, 255, 0.1));
    z-index: 1;
}

.video-container iframe {
    width: 100%;
    height: 400px;
    position: relative;
    z-index: 0;
    border: none;
}

/* Форма */
.form-section {
    position: relative;
}

.form-container {
    background: rgba(20, 20, 40, 0.6);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(100, 100, 255, 0.1);
    backdrop-filter: blur(10px);
    position: relative;
    z-index: 2;
}

.form-container h2 {
    text-align: center;
    margin-bottom: 30px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #b0b0ff;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: rgba(30, 30, 60, 0.7);
    border: 1px solid rgba(100, 100, 255, 0.2);
    color: #e0e0ff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #6c63ff;
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.3);
}

.form-group textarea {
    min-height: 150px;
    resize: vertical;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    color: #0c0c14;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(108, 99, 255, 0.4);
}

/* Контакты */
.contacts {
    position: relative;
}

.contacts-content {
    display: flex;
    gap: 30px;
    position: relative;
    z-index: 2;
}

.contacts-info {
    flex: 1;
}

.contacts-info h2 {
    margin-bottom: 30px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 25px;
}

.contact-icon {
    font-size: 1.5rem;
    color: #00e5ff;
    margin-right: 15px;
    min-width: 30px;
}

.contact-text h3 {
    color: #6c63ff;
    margin-bottom: 5px;
}

.contact-text p, .contact-text a {
    color: #b0b0ff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-text a:hover {
    color: #00e5ff;
}

.map {
    flex: 1;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.map iframe {
    width: 100%;
    height: 100%;
    min-height: 400px;
    border: none;
}

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(20, 20, 40, 0.6);
    border-radius: 15px;
    border: 1px solid rgba(100, 100, 255, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    border: 1px solid rgba(100, 100, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-item p {
    font-size: 1.1rem;
    color: #b0b0ff;
}

/* Всплывающие окна */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #1a1a2e;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(100, 100, 255, 0.3);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid rgba(100, 100, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 1.8rem;
}

.close-modal {
    background: none;
    border: none;
    color: #b0b0ff;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-modal:hover {
    color: #00e5ff;
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
}

.modal-body img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

.modal-body h3 {
    color: #00e5ff;
    margin: 20px 0 10px;
}

.modal-body p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.modal-body .news-date {
    font-size: 0.9rem;
    margin-bottom: 15px;
    display: block;
}

/* Подвал */
footer {
    background: #080810;
    color: #e0e0ff;
    padding: 70px 0 30px;
    position: relative;
    border-top: 1px solid rgba(100, 100, 255, 0.1);
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
    position: relative;
    z-index: 2;
}

.footer-section {
    flex: 1;
    min-width: 250px;
}

.footer-section h3 {
    font-size: 1.5rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #00e5ff, #6c63ff);
}

.footer-section p, .footer-section li {
    margin-bottom: 15px;
    color: #b0b0ff;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    background: linear-gradient(135deg, #00e5ff, #6c63ff);
    color: #080810;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-5px) rotate(10deg);
    box-shadow: 0 5px 15px rgba(108, 99, 255, 0.4);
}

.copyright {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(100, 100, 255, 0.1);
    color: #777;
    position: relative;
    z-index: 2;
}

/* Адаптивность */
@media (max-width: 1400px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-section {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 1100px) {
    .contacts-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .video-container iframe {
        height: 350px;
    }
    
    .sidebar-section {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 15, 30, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
        border-right: 1px solid rgba(100, 100, 255, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .slide img {
        height: 300px;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .services, .advantages, .stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}

/* --- СТИЛИ ИЗ ВАШЕГО CSS ДЛЯ МОДАЛЬНОГО ОКНА УВЕЛИЧЕНИЯ --- */
/* Стили для модального окна с увеличением */
.zoom-modal .modal-content {
    max-width: 95%;
    max-height: 95vh;
    position: relative; /* Важно для позиционирования дочерних элементов */
    display: flex;
    flex-direction: column; /* Располагаем дочерние элементы вертикально */
}

.zoom-modal .modal-header {
    color: white;
    text-align: center;
    margin-bottom: 10px; /* Отступ между заголовком и изображением */
}

.zoom-modal .modal-body {
    flex-grow: 1; /* Занимает оставшееся место */
    display: flex;
    flex-direction: column; /* Располагаем содержимое вертикально */
    justify-content: center; /* Центрируем по вертикали */
    align-items: center; /* Центрируем по горизонтали */
    padding: 20px; /* Добавим отступы внутри */
    /* УБЕДИМСЯ, ЧТО НЕТ ОГРАНИЧЕНИЙ, КОТОРЫЕ МЕШАЮТ ПРАВИЛЬНОЙ РАБОТЕ */
    /* max-width/max-height НЕ НУЖНЫ ТУТ, ОНИ УЖЕ У modal-content */
}

.zoom-container {
    position: relative;
    /* display: inline-block; - убираем, т.к. flex родитель центрирует */
    overflow: hidden; /* КЛЮЧЕВОЕ ИЗМЕНЕНИЕ: обрезает увеличенное изображение */
    cursor: default;
    width: 100%; /* Занимает всю ширину доступного места */
    text-align: center; /* Центрирует содержимое, если display: inline-block */
    max-height: 70vh; /* Ограничиваем высоту контейнера */
    display: flex; /* Используем flex для центрирования изображения внутри */
    align-items: center; /* Центрируем по вертикали */
    justify-content: center; /* Центрируем по горизонтали */
    /* border: 2px solid red; /* ВРЕМЕННО: для отладки, можно убрать */ */
}

.zoomable-image {
    max-width: 100%;
    max-height: 70vh; /* Ограничиваем высоту изображения */
    transition: transform 0.2s ease;
    user-select: none;
    cursor: grab;
    display: block; /* Убираем inline-block, чтобы избежать лишних пробелов */
    /* ДОБАВЛЯЕМ object-fit: contain, чтобы изображение сохраняло пропорции */
    object-fit: contain; /* <-- ДОБАВЛЕНО */
}

.zoomable-image:active {
    cursor: grabbing;
}

/* Кнопки управления увеличением - В СТИЛЕ СЛАЙДЕРА */
.zoom-controls-overlay {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 25px; /* Увеличен отступ от краев */
    z-index: 10;
    /* Так как кнопки увеличения не создаются, этот контейнер будет пуст */
    /* Он останется, но будет невидим */
}

.zoom-btn-overlay {
    background: rgba(108, 99, 255, 0.5); /* Полупрозрачный в оттенке сайта */
    backdrop-filter: blur(5px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Белая граница для контраста */
    width: 55px; /* Увеличен размер */
    height: 55px; /* Увеличен размер */
    border-radius: 50%; /* Круглые кнопки */
    font-size: 26px; /* Увеличен шрифт */
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4); /* Улучшенная тень */
}

.zoom-btn-overlay:hover {
    background: rgba(108, 99, 255, 0.8); /* Более насыщенный цвет при наведении */
    transform: scale(1.15); /* Больше увеличение */
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.6); /* Более яркая граница */
}

.zoom-btn-overlay:active {
    transform: scale(0.95);
}

/* Кнопки навигации по бокам - В СТИЛЕ СЛАЙДЕРА */
.gallery-modal-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px; /* Увеличен отступ сверху */
    position: relative;
    width: 100%; /* Занимает всю ширину */
}

.nav-btn {
    background: rgba(108, 99, 255, 0.5); /* Полупрозрачный фон */
    backdrop-filter: blur(5px);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.3); /* Белая граница */
    width: 65px; /* Увеличен размер */
    height: 65px; /* Увеличен размер */
    border-radius: 50%; /* Круглые кнопки */
    font-size: 1.8rem; /* Увеличен шрифт */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4); /* Улучшенная тень */
}

.nav-btn:hover {
    background: rgba(108, 99, 255, 0.8); /* Более насыщенный цвет */
    transform: scale(1.15); /* Больше увеличение */
    box-shadow: 0 10px 30px rgba(108, 99, 255, 0.6);
    border-color: rgba(255, 255, 255, 0.6); /* Более яркая граница */
}

.nav-btn:active {
    transform: scale(0.95);
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 35px;
    font-weight: bold;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 11;
}

/* Адаптивность для модального окна */
@media (max-width: 768px) {
    .zoom-modal .modal-content {
        max-width: 98%;
        max-height: 98vh;
    }
    
    .zoomable-image {
        max-height: 60vh; /* Адаптируем высоту под мобильные */
    }

    /* .zoom-container также адаптируется через max-height .modal-content */
    
    .nav-btn {
        width: 55px; /* Адаптировано для мобильных */
        height: 55px;
        font-size: 1.5rem;
    }
    
    .zoom-btn-overlay {
        width: 45px; /* Адаптировано для мобильных */
        height: 45px;
        font-size: 22px;
    }
    
    .zoom-controls-overlay {
        padding: 0 15px;
    }
}

/* Дополнительные стили для лучшей видимости */
.zoom-btn-overlay::before,
.nav-btn::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    border-radius: 50%;
    background: rgba(108, 99, 255, 0.2);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.zoom-btn-overlay:hover::before,
.nav-btn:hover::before {
    opacity: 1;
}

/* Эффект свечения при наведении */
.zoom-btn-overlay:hover,
.nav-btn:hover {
    animation: glow 1.5s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        box-shadow: 0 0 5px rgba(108, 99, 255, 0.4), 0 0 10px rgba(108, 99, 255, 0.2);
    }
    to {
        box-shadow: 0 0 20px rgba(108, 99, 255, 0.8), 0 0 30px rgba(0, 229, 255, 0.6);
    }
}
/* Исправленные медиа-запросы */
@media (max-width: 1400px) {
    .main-content {
        flex-direction: column;
    }
    
    .sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .sidebar-section {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 1100px) {
    .contacts-content {
        flex-direction: column;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero h1::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .video-container iframe {
        height: 350px;
    }
    
    .sidebar-section {
        flex: 0 0 100%;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 80px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 80px);
        background: rgba(15, 15, 30, 0.95);
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 50px;
        transition: all 0.3s ease;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.3);
        border-right: 1px solid rgba(100, 100, 255, 0.1);
    }

    .nav-links.active {
        left: 0;
    }

    .nav-links li {
        margin: 20px 0;
    }

    .hero h1 {
        font-size: 2rem;
    }
    
    .section-title h2 {
        font-size: 1.8rem;
    }
    
    .slide img {
        height: 300px;
    }
    
    .video-container iframe {
        height: 250px;
    }
    
    .form-container {
        padding: 30px 20px;
    }
    
    .services, .advantages, .stats {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
}