:root {
    /* --- ЦВЕТА --- */
    --color-primary: #D8A63E;
    /* Золотой акцент */
    --color-text: #ffffff;
    /* Белый основной */
    --color-text-dark: #000000;
    /* Для текста на золотых кнопках */

    /* --- ФОН --- */
    /* Затемнение для читаемости */
    --overlay-color: rgba(0, 0, 0, 0.75);
    --bg-overlay: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75));
    /* Основная картинка фона */
    --bg-image: url('../images/hero-production.png');

    /* --- ШРИФТЫ --- */
    --font-heading: 'Manrope', sans-serif;
    /* Заголовки */
    --font-serif: 'Cormorant', serif;
    /* Подзаголовки */
    --font-body: 'Inter', sans-serif;
    /* Текст, кнопки */

    /* --- РАЗМЕРЫ --- */
    --header-height: 80px;
    --border-radius-btn: 100px;
}

/* =========================================
   БАЗОВЫЕ НАСТРОЙКИ
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    overflow-x: hidden;
    /* Убираем гориз. скролл если что-то вылезет */
}

/* Глобальные настройки контейнера */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ОБЩИЕ НАСТРОЙКИ ФОНА (Mixin) */
/* Применяем одну логику сразу к обоим элементам */
.fixed-background,
header {
    /* 1. Картинка + Затемнение */
    background-image: var(--bg-overlay), var(--bg-image);

    /* 2. Заполняем весь экран (решает проблему широких мониторов) */
    background-size: cover;

    /* 3. Центрируем (важно для адаптива) */
    background-position: center top;
    background-repeat: no-repeat;

    /* 4. МАГИЯ: Привязываем фон к окну просмотра (Viewport) */
    /* Теперь неважно, какой высоты элемент - фон всегда один на весь экран */
    background-attachment: fixed;
}

/* =========================================
   ФОН И ПАРАЛЛАКС
   ========================================= */
.fixed-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;

    /* Два слоя: Затемнение + Картинка */
    background-image: var(--bg-overlay), var(--bg-image);
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;

}

/* =========================================
   НАВИГАЦИЯ (HEADER)
   ========================================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;

    /* Тот же фон для эффекта маски */
    background-image: var(--bg-overlay), var(--bg-image);
    background-size: cover;
    background-position: left top;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

header.nav-compact .header-container {
    justify-content: center;
    position: relative;
}

header.nav-compact .logo-img {
    transform: translateY(-8px);
}

/* Логотип */
.logo-link {
    display: flex;
    align-items: flex-start;
    height: 100%;
    text-decoration: none;
    flex-shrink: 1; /* Позволяем контейнеру сжиматься */
    min-width: 0;   /* Важно для корректной работы flex-shrink с картинками */
}

.logo-img {
    height: clamp(60px, 18vw, 142px);
    /* Оптимальная высота для хедера 80px */
    width: auto;
    max-width: 100%; /* Картинка не должна выходить за пределы ссылки */
    object-fit: contain;
    transform: translateY(-32px);
}

@media (max-width: 480px) {
    .logo-img {
        transform: translateY(-15px); /* Еще меньше смещение для крохотных экранов */
    }
}

/* Меню ссылок */
.nav-links {
    display: flex;
    list-style: none;
    gap: 32px;
}

.nav-links a {
    font-family: var(--font-body);
    text-transform: uppercase;
    text-decoration: none;
    color: var(--color-text);
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.3s ease;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--color-primary);
}

/* Бургер-меню (скрыто по умолчанию) */
.burger-menu {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.burger-menu span {
    width: 28px;
    height: 3px;
    background: var(--color-text);
    border-radius: 3px;
    transition: all 0.3s ease;
}

header.nav-compact .burger-menu {
    display: flex;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
}

header.nav-compact .main-nav {
    position: fixed;
    top: var(--header-height);
    right: -100%;
    width: 280px;
    height: calc(100vh - var(--header-height));
    background: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(10px);
    transition: right 0.3s ease;
    z-index: 999;
}

header.nav-compact .main-nav.active {
    right: 0;
}

header.nav-compact .nav-links {
    flex-direction: column;
    padding: 40px 24px;
    gap: 24px;
    height: 100%;
}

header.nav-compact .nav-links a {
    font-size: 1.2rem;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* =========================================
   КНОПКИ (UI KIT)
   ========================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(10px, 1.2vw, 14px) clamp(18px, 2vw, 24px);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: var(--border-radius-btn);
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Золотая кнопка */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-text-dark);
    border: 2px solid var(--color-primary);
}

.btn-primary:hover {
    background-color: #c5932e;
    border-color: #c5932e;
    transform: translateY(-2px);
}

/* Прозрачная кнопка */
.btn-outline {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

/* =========================================
   СЕКЦИЯ HERO (ПЕРВЫЙ ЭКРАН)
   ========================================= */
section {
    min-height: 100vh;
    padding-top: var(--header-height);
    display: flex;
    align-items: center;
    position: relative;
}

/* СЕТКА КОНТЕНТА */
.hero-grid {
    display: flex;
    flex-direction: row;
    /* Горизонтально по умолчанию */
    justify-content: center;
    /* Центр всей группы */
    align-items: center;
    /* Вертикальный центр */
    gap: 4vw;
    /* Гибкий отступ между колонками */

    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    height: 100%;
    padding: 0 24px;
}

/* ЛЕВАЯ КОЛОНКА (ТЕКСТ) */
.hero-left {
    flex: 1;
    /* Растет */
    max-width: 400px;
    /* Лимит ширины текста */
    min-width: 300px;
    /* Чтобы не сжималась в ноль перед переносом */

    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Текст выровнен влево по умолчанию */
}

.hero-title {
    font-family: var(--font-heading);
    /* Адаптивный шрифт: мин 1.8rem, идеал 3.5vw, макс 3.2rem */
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    /* Адаптивный подзаголовок */
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 32px;
    font-weight: 400;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 300px;
}

/* ПРАВАЯ КОЛОНКА (ВИДЕО) */
.hero-right {
    flex: 1;
    /* Растет */
    max-width: 850px;
    /* Видео крупное */
    min-width: 300px;

    display: flex;
    justify-content: center;
    /* Центрируем карточку внутри колонки */
    align-items: center;
}

.video-card {
    position: relative;
    width: 100%;
    /* Занимает всю ширину родителя (.hero-right) */
    aspect-ratio: 16/9;

    /* Рамка в стиле телевизора */
    border: 28px solid #0a0a0a;
    border-radius: 28px;
    padding: 0;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.6),
        inset 0 2px 8px rgba(0, 0, 0, 0.8),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    cursor: pointer;
}

.hero-video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    display: block;
    object-fit: cover;
}

/* Кнопка Play поверх видео */
.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    width: 60px;
    height: 60px;
    background: rgba(216, 166, 62, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.video-play-btn svg {
    width: 28px;
    height: 28px;
    margin-left: 2px;
}

.video-card:hover .video-play-btn {
    opacity: 1;
}

.video-play-btn:hover {
    background: rgba(216, 166, 62, 1);
    transform: translate(-50%, -50%) scale(1.15);
}

/* =========================================
   МОДАЛЬНОЕ ОКНО
   ========================================= */
.video-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.video-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.modal-video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    flex: 1;
    object-fit: contain;
}

/* Скрываем рекомендации ("Смотрите также") в VK Video */
.modal-video::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 150px;
    background: rgba(0, 0, 0, 0.95);
    pointer-events: none;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10003;
    transition: all 0.2s ease;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.modal-close:hover {
    background: rgba(216, 166, 62, 0.8);
    color: white;
    transform: scale(1.15);
}

/* Для мобильных */
@media (max-width: 768px) {
    .video-modal {
        background: rgba(0, 0, 0, 0.98);
    }

    .video-modal-content {
        width: 95%;
        height: 95%;
    }

    .modal-close {
        top: 16px;
        right: 16px;
        font-size: 24px;
        width: 40px;
        height: 40px;
    }

    .video-play-btn {
        width: 50px;
        height: 50px;
    }

    .video-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* =========================================
   АДАПТИВ (MEDIA QUERIES)
   ========================================= */

/* ПЛАНШЕТЫ И МОБИЛЬНЫЕ (< 950px) */
@media (max-width: 950px) {

    /* Сетка перестраивается в колонку */
    .hero-grid {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding-top: 40px;
        /* Больше отступа сверху не нужно, т.к. flex-center сам справится */
        height: auto;
        /* Высота по контенту */
        padding-bottom: 80px;
    }

    /* Левая часть на всю ширину */
    .hero-left {
        width: 100%;
        max-width: 100%;
        align-items: center;
        /* Центрируем кнопки */
        order: 1;
        /* Текст сверху */
    }

    /* Правая часть на всю ширину */
    .hero-right {
        width: 80%;
        max-width: 100%;
        order: 2;
        /* Видео снизу */
        padding: 0 10px;
        /* Чуть отступов, чтобы рамка не касалась краев */
    }

    .hero-title {
        /* Было clamp(1.8rem...), делаем жирнее */
        font-size: 3rem !important;
        /* !important на всякий случай, если clamp перебивает */
        line-height: 1.1;
        margin-bottom: 24px;
    }

    .hero-subtitle {
        /* Было ~1.2rem, делаем крупнее */
        font-size: 1.8rem !important;
        line-height: 1.5;
        margin-bottom: 40px;
    }

    /* Кнопки по центру */
    .hero-buttons {
        align-items: center;
        width: 100%;
        max-width: 280px;
    }
}

/* =========================================
   СЕКЦИЯ О СТУДИИ
   ========================================= */
#about {
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.about-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.about-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.about-buttons {
    display: flex;
    flex-direction: row;
    gap: 16px;
    width: 100%;
    max-width: 600px;
    margin-top: 16px;
    align-items: center;
    justify-self: center;
    flex-wrap: wrap;
}

.about-buttons .btn {
    flex: 1;
    min-width: 200px;
}

.about-certificate {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Карусель достижений */
.achievement-carousel {
    position: relative;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    border-radius: 8px;
}

.achievement-carousel-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    align-items: center;
}

.achievement-carousel-track .certificate-img {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    height: 580px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease;
    opacity: 0.85;
    flex-shrink: 0;
    cursor: pointer;
    display: block;
}

.achievement-carousel-track .certificate-img:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(216, 166, 62, 0.3);
    opacity: 1;
}

/* Адаптив для планшетов и мобильных */
@media (max-width: 950px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .about-title {
        font-size: 2.5rem;
    }

    .about-buttons {
        align-self: center;
    }

    .achievement-carousel {
        max-width: 65%;
    }
}

@media (max-width: 600px) {
    #about {
        padding: 80px 0;
    }

    .about-grid {
        gap: 32px;
    }

    .about-title {
        font-size: 1.8rem;
    }

    .about-text p {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .about-buttons {
        flex-direction: column;
        max-width: 280px;
    }

    .about-buttons .btn {
        min-width: auto;
    }

    .achievement-carousel {
        max-width: 55%;
    }
}

/* =========================================
   МОДАЛЬНОЕ ОКНО СЕРТИФИКАТА
   ========================================= */
.certificate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.certificate-modal-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1200px;
    max-height: 900px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.certificate-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    z-index: 10003;
    transition: all 0.2s ease;
    padding: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    flex-shrink: 0;
}

.certificate-modal-close:hover {
    background: rgba(216, 166, 62, 0.8);
    color: white;
    transform: scale(1.15);
}

/* Стрелки навигации в модальном окне сертификата */
.certificate-modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 48px;
    cursor: pointer;
    z-index: 10003;
    transition: all 0.2s ease;
    padding: 0;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
}

.certificate-modal-prev {
    left: 16px;
}

.certificate-modal-next {
    right: 16px;
}

.certificate-modal-arrow:hover {
    background: rgba(216, 166, 62, 0.8);
    transform: translateY(-50%) scale(1.15);
}

@media (max-width: 950px) {
    .certificate-modal-prev {
        left: 8px;
    }

    .certificate-modal-next {
        right: 8px;
    }
}

/* =========================================
   СЕКЦИЯ КОНТАКТЫ
   ========================================= */
#contact {
    position: relative;
    min-height: 100vh;
    padding: 120px 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.contact-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: none;
    opacity: 0;
    z-index: 0;
}

.contact-container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.contact-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
    max-width: 600px;
}

.contact-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: white;
    text-transform: uppercase;
}

.contact-text {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.contact-text p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 24px 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-icon {
    width: 28px;
    height: 28px;
    color: var(--color-primary);
    flex-shrink: 0;
    stroke-width: 2;
}

.contact-item a {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 500;
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: var(--color-primary);
}

.contact-btn {
    width: fit-content;
    margin-top: 16px;
}

/* =========================================
   СЕКЦИЯ ПОРТФОЛИО
   ========================================= */
#portfolio {
    min-height: auto;
    padding: 72px 0 28px;
}

.portfolio-container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.portfolio-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 28px;
    text-transform: uppercase;
}

/* Телевизор */
.portfolio-tv {
    width: min(100%, 920px);
    margin: 0 auto;
    background: #0a0a0a;
    border-radius: 24px;
    padding: 16px;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.tv-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

/* Карусель */
.video-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 4px;
}

.carousel-item {
    position: absolute;
    height: 100%;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border-radius: 4px;
    width: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Центральное видео (70%) */
.carousel-item.active {
    left: calc(15% + 4px);
    width: calc(70% - 8px);
    z-index: 10;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Левое видео (15%) */
.carousel-item.prev {
    left: 4px;
    width: calc(15% - 8px);
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Правое видео (15%) */
.carousel-item.next {
    left: calc(85% + 4px);
    width: calc(15% - 8px);
    z-index: 5;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.carousel-item.is-hidden {
    left: 50%;
    transform: translateX(-50%) scale(0.96);
}

/* Затемнение боковых видео */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    transition: background 0.3s ease;
}

.carousel-item.active .carousel-overlay {
    background: transparent;
}

.carousel-item.prev:hover .carousel-overlay,
.carousel-item.next:hover .carousel-overlay {
    background: rgba(0, 0, 0, 0.3);
}

/* Кнопка Play (всегда по центру экрана) */
.carousel-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(216, 166, 62, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    /* Добавил сброс паддинга */
    transition: all 0.3s ease;
    z-index: 50;
    pointer-events: all;
    opacity: 0;
}

.portfolio-tv:hover .carousel-play-btn {
    opacity: 1;
}

.carousel-play-btn svg {
    width: 36px;
    height: 36px;
    display: block;
    /* Убеждаемся, что SVG ведет себя предсказуемо */
}

.carousel-play-btn:hover {
    background: rgba(216, 166, 62, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-play-btn.is-disabled,
.portfolio-tv:hover .carousel-play-btn.is-disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* Стрелки навигации */
.carousel-arrow {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 40;
    opacity: 0;
}

.portfolio-tv:hover .carousel-arrow {
    opacity: 1;
}

.carousel-arrow:hover {
    background: rgba(216, 166, 62, 0.9);
    border-color: var(--color-primary);
    transform: translate(-50%, -50%) scale(1.1);
}

.carousel-arrow svg {
    width: 24px;
    height: 24px;
}

.carousel-arrow-left {
    left: 7.5%;
    transform: translate(-50%, -50%);
}

.carousel-arrow-right {
    left: 92.5%;
    transform: translate(-50%, -50%);
}

/* Полноэкранный плеер */
.fullscreen-player {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fullscreen-player.active {
    display: flex;
    opacity: 1;
}

.fullscreen-player-content {
    position: relative;
    width: 90%;
    height: 90%;
    max-width: 1400px;
    max-height: 800px;
    display: flex;
    flex-direction: column;
}

.portfolio-modal-video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    flex: 1;
}

.close-player-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 110;
}

.close-player-btn:hover {
    background: var(--color-primary);
    transform: scale(1.1);
}

/* Индикаторы */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
}

.indicator {
    appearance: none;
    border: none;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--color-primary);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Информация о видео */
.video-info {
    text-align: center;
    margin-top: 16px;
    padding: 0 24px;
}

.video-title {
    font-family: var(--font-heading);
    font-size: clamp(1.35rem, 2.2vw, 1.8rem);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 10px;
    text-transform: uppercase;
}

.video-description {
    font-family: var(--font-body);
    font-size: clamp(0.92rem, 1.05vw, 1rem);
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    max-width: 720px;
    margin: 0 auto;
}

.portfolio-cta {
    margin-top: 14px;
    max-width: 300px;
}

/* Адаптив для портфолио */
@media (max-width: 950px) {
    .portfolio-tv {
        width: 100%;
        padding: 12px;
        border-radius: 16px;
    }

    .carousel-play-btn {
        width: 60px;
        height: 60px;
    }

    .carousel-play-btn svg {
        width: 28px;
        height: 28px;
    }
}

@media (max-width: 600px) {

    /* На маленьких экранах показываем только активное видео */
    .carousel-item.prev,
    .carousel-item.next {
        display: none;
    }

    .carousel-item.active {
        left: 0;
        width: 100%;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .carousel-play-btn {
        width: 50px;
        height: 50px;
    }

    .carousel-play-btn svg {
        width: 24px;
        height: 24px;
    }
}

/* =========================================
   СЕКЦИЯ КОМАНДА
   ========================================= */
#team {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(180deg,
            var(--color-bg) 0%,
            rgba(20, 18, 15, 0.95) 100%);
}

#team .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    margin-bottom: 60px;
    line-height: 1.2;
}

.team-grid {
    display: flex;
    flex-direction: column;
    gap: 48px;
    margin-bottom: 48px;
}

.team-row {
    display: flex;
    justify-content: center;
    gap: 80px;
}

.team-member {
    display: flex;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    transition: transform 0.3s ease;
    max-width: 400px;
}

.team-member:hover {
    transform: translateY(-4px);
}

/* Левый участник - текст справа от фото */
.team-row .team-member:first-child {
    flex-direction: row-reverse;
    text-align: right;
}

/* Правый участник - текст слева от фото */
.team-row .team-member:last-child {
    flex-direction: row;
    text-align: left;
}

.member-photo {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid rgba(255, 255, 255, 0.2);
    transition: border-color 0.3s ease;
}

.team-member:hover .member-photo {
    border-color: var(--color-accent);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.member-name {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-text);
    margin: 0;
    transition: color 0.3s ease;
}

.team-member:hover .member-name {
    color: var(--color-accent);
}

.member-role {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-accent);
    margin: 0;
    font-weight: 500;
}

.member-short {
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.4;
    max-width: 220px;
}

/* Аккордеон */
.team-accordion {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.5s ease, opacity 0.4s ease, margin 0.4s ease, padding 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 48px;
    padding-bottom: 0;
}

.team-accordion.active {
    opacity: 1;
    overflow: visible;
    padding-bottom: 40px;
}

/* На мобильных — больше padding */
@media (max-width: 600px) {
    .team-accordion.active {
        padding-bottom: 100px;
    }
}

/* Кнопка */
.team-toggle {
    display: block;
    margin: 0 auto;
    max-width: 300px;
}

/* =========================================
   МОДАЛЬНОЕ ОКНО УЧАСТНИКА
   ========================================= */
.member-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.member-modal.active {
    opacity: 1;
    visibility: visible;
}

.member-modal-content {
    background: var(--color-bg);
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 48px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 1);
}

.member-modal-body {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.member-modal-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 3px solid var(--color-accent);
}

.member-modal-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-modal-info {
    flex: 1;
}

.member-modal-name {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    margin: 0 0 8px 0;
}

.member-modal-role {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-accent);
    margin: 0 0 20px 0;
    font-weight: 500;
}

.member-modal-description {
    font-family: var(--font-body);
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin: 0 0 32px 0;
}

.member-filmography h4 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--color-text);
    margin: 0 0 16px 0;
}

.filmography-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filmography-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.filmography-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.filmography-item .film-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent);
}

.filmography-item .film-title {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text);
}

/* =========================================
   ПЛЕЕР ФИЛЬМА (ПОВЕРХ МОДАЛКИ)
   ========================================= */
.film-player-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.film-player-overlay.active {
    opacity: 1;
    visibility: visible;
}

.film-player-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    aspect-ratio: 16 / 9;
}

.film-player-content video {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

/* =========================================
   АДАПТИВ ДЛЯ КОМАНДЫ
   ========================================= */
@media (max-width: 950px) {
    .team-row {
        flex-direction: column;
        gap: 40px;
        align-items: center;
    }

    .team-row .team-member:first-child,
    .team-row .team-member:last-child {
        flex-direction: column;
        text-align: center;
    }

    .member-short {
        max-width: 100%;
    }

    .member-modal-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .member-modal-content {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .member-photo {
        width: 120px;
        height: 120px;
    }

    .member-modal-photo {
        width: 150px;
        height: 150px;
    }

    .member-modal-name {
        font-size: 1.5rem;
    }

    .team-row {
        gap: 32px;
    }
}

/* =========================================
   АДАПТИВ ДЛЯ КОНТАКТОВ
   ========================================= */
@media (max-width: 600px) {
    #contact {
        padding: 80px 0;
    }

    .contact-content {
        gap: 24px;
    }

    .contact-title {
        font-size: 1.8rem;
    }

    .contact-text p {
        font-size: 0.95rem;
    }

    .contact-item a {
        font-size: 1rem;
    }
}

/* =========================================
   ФУТЕР
   ========================================= */
footer.footer {
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px 0 16px;
}

.footer-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 0;
    text-transform: uppercase;
}

.footer-text {
    font-family: var(--font-body);
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

.footer-address {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom .footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
}

/* Адаптив для футера */
@media (max-width: 950px) {
    footer.footer {
        padding: 40px 0 20px;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 600px) {
    footer.footer {
        padding: 32px 0 16px;
    }

    .footer-container {
        gap: 24px;
    }

    .footer-title {
        font-size: 1.2rem;
    }

    .footer-text {
        font-size: 0.9rem;
    }

    .footer-address {
        font-size: 0.8rem;
    }
}