/* Базовые переменные */
:root {
    --bg-dark: #0a0a0a;
    --bg-light: #111;
    --text-primary: #fff;
    --text-secondary: rgba(255,255,255,0.7);
    --accent: #d4af37;
    --accent-hover: #e6c84a;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

/* ========== HEADER ========== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(10,10,10,0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 40px;
    width: auto;
}

/* Меню-бургер */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: white;
    margin: 5px 0;
    transition: var(--transition);
}

.main-nav {
    display: flex;
}

.main-nav ul {
    display: flex;
    gap: 40px;
    list-style: none;
}

.main-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    font-size: 1rem;
}

.main-nav a:hover,
.main-nav li.active a {
    color: var(--accent);
}

.social-links {
    display: flex;
    gap: 20px;
}

.social-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--accent);
}

/* ========== HERO ========== */
.hero-full {
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn {
    padding: 12px 32px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent);
    color: #0a0a0a;
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #0a0a0a;
    transform: translateY(-2px);
}

/* hero-mini для внутренних страниц */
.hero-mini {
    padding: 140px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
}

.page-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ========== GALLERY GRID ========== */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 60px 0;
}

.work-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #1a1a1a;
    transition: var(--transition);
}

.work-card:hover {
    transform: translateY(-5px);
}

.work-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.work-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.work-card:hover .work-image img {
    transform: scale(1.05);
}

.play-icon,
.zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    cursor: pointer;
}

.play-icon i,
.zoom-icon i {
    font-size: 24px;
    color: white;
    margin-left: 3px; /* для play, чтобы треугольник был по центру визуально */
}

.zoom-icon i {
    margin-left: 0; /* для лупы отступ не нужен */
}

.work-card:hover .play-icon,
.work-card:hover .zoom-icon {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
}

.play-icon.small,
.zoom-icon.small {
    width: 45px;
    height: 45px;
}

.play-icon.small i,
.zoom-icon.small i {
    font-size: 18px;
}

.work-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    backdrop-filter: blur(4px);
}

.work-info {
    padding: 20px;
}

.work-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    text-decoration: none;
}

.work-card a {
    text-decoration: none;
    color: inherit;
}

.work-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.work-caption {
    padding: 15px 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-align: center;
}

/* ========== PAGE CONTENT ========== */
.page-content {
    padding: 60px 0;
}

.content-body {
    max-width: 800px;
    margin: 0 auto;
}

.content-body h2 {
    font-size: 2rem;
    margin: 40px 0 20px;
}

.content-body p {
    margin-bottom: 20px;
    color: var(--text-secondary);
}

/* ========== FOOTER ========== */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.05);
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* ========== МОБИЛЬНАЯ АДАПТАЦИЯ ========== */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    .menu-toggle {
        display: block;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 70%;
        max-width: 300px;
        height: 100vh;
        background: #0a0a0a;
        padding: 100px 30px 40px;
        transition: right 0.3s ease;
        z-index: 1000;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .main-nav ul {
        flex-direction: column;
        gap: 25px;
    }
    
    .main-nav a {
        font-size: 1.2rem;
    }
    
    .social-links {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .grid-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .hero-mini {
        padding: 100px 0 40px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        padding: 10px 24px;
    }
}

/* ========== ВИДЕО МОДАЛЬНОЕ ОКНО ========== */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(8px);
}

.video-modal-container {
    position: relative;
    width: 90%;
    max-width: 1000px;
    background: #0a0a0a;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    backdrop-filter: blur(4px);
}

.video-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.video-modal-content {
    padding: 20px;
}

.video-player {
    width: 100%;
    border-radius: 12px;
    background: #000;
}

.video-modal-title {
    margin-top: 15px;
    font-size: 1.2rem;
    font-weight: 500;
    text-align: center;
    color: white;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .video-modal-container {
        width: 95%;
    }
    
    .video-modal-close {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 22px;
    }
    
    .video-modal-content {
        padding: 12px;
    }
    
    .video-modal-title {
        font-size: 1rem;
    }
}
