:root {
    --primary: #000000; /* Чёрный */
    --primary-light: #333333;
    --secondary: #1a1a1a; /* Тёмно-серый */
    --dark: #000000;
    --light: #0a0a0a;
    --white: #000000;
    --gray: #1a1a1a;
    --text: #ffffff;
    --accent: #666666;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: var(--text);
    background-color: var(--light);
}

.main {
    max-width: 1200px;
    margin: 30px auto;
    padding: 30px;
    background-color: var(--dark);
    box-shadow: 0 0 20px rgba(255,255,255,0.08);
    border-radius: 8px;
    border: 1px solid #333;
}

h1 {
    color: var(--text);
    text-align: center;
    margin-bottom: 30px;
    font-size: 2.5rem;
    position: relative;
    padding-bottom: 15px;
}

h1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary-light);
}

.intro-text {
    color: var(--text);
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.1rem;
    line-height: 1.8;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Image Gallery */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(255,255,255,0.1);
    transition: transform 0.3s ease;
    border: 1px solid #333;
}

.gallery-item:hover {
    transform: translateY(-10px);
}

.image-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: var(--text);
    padding: 15px;
    text-align: center;
    font-weight: 600;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .image-caption {
    transform: translateY(0);
}

/* Features Section */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.feature {
    text-align: center;
    padding: 25px;
    background-color: var(--gray);
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid #333;
}

.feature:hover {
    background-color: var(--secondary);
    transform: scale(1.03);
}

.feature h3 {
    color: var(--text);
    margin-bottom: 15px;
}

/* Footer & Back Button */
footer {
    text-align: center;
    padding: 30px;
    margin-top: 50px;
    background-color: var(--dark);
    color: var(--text);
    border-top: 1px solid #333;
}

.back-a {
    color: var(--text);
    background-color: var(--accent);
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--accent);
    margin-bottom: 20px;
}

.back-a:hover {
    background-color: transparent;
    color: var(--accent);
}

.footer-info {
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--text);
}

/* Стили для блока с видео */
.video-section {
    margin: 50px 0;
    text-align: center;
}

.video-section h2 {
    color: var(--text);
    margin-bottom: 20px;
    font-size: 2rem;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 12px rgba(255,255,255,0.15);
    background: #000;
    border: 1px solid #333;
}

video {
    width: 100%;
    display: block;
}

.video-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.video-btn {
    padding: 10px 20px;
    background: var(--dark);
    color: var(--text);
    border: 1px solid #333;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.video-btn:hover {
    background: var(--primary-light);
}

.video-description {
    max-width: 800px;
    margin: 20px auto;
    text-align: center;
    color: var(--text);
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main {
        padding: 20px;
        margin: 15px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 8px;
    animation: zoomIn 0.3s ease;
}

.close-btn {
    position: absolute;
    top: -40px;
    right: -10px;
    color: white;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.3s ease;
}

.close-btn:hover {
    color: #ff6b6b;
}

.modal-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 20px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 24px;
    padding: 15px 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: -40px;
    color: white;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Анимации */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Адаптивность */
@media (max-width: 768px) {
    .modal-content {
        max-width: 95%;
    }
    
    .nav-btn {
        padding: 10px 15px;
        font-size: 20px;
    }
    
    .close-btn {
        top: -35px;
        right: 0;
        font-size: 30px;
    }
    
    .image-counter {
        bottom: -35px;
        font-size: 14px;
    }
}

/* Курсор-указатель для изображений галереи */
.gallery-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-item img:hover {
    transform: scale(1.02);
}