:root {
    --nav-h: 80px;
    --bg-dark: #262626;
    --bg-anthracite: #1a1a1a;
    --white: #ffffff;
    --pt-serif: "PT Serif", serif;
    --satoshi: 'Satoshi', sans-serif;
    --cubic: cubic-bezier(0.23, 1, 0.32, 1);
    --container-w: 1200px;
    --side-gutter: 25px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

body,
html {
    scroll-behavior: smooth;
    width: 100%;
    background-color: var(--bg-dark);
    color: var(--white);
    font-family: var(--satoshi);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 10000;
    display: flex;
    align-items: center;
    background-color: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-container {
    width: 100%;
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--side-gutter);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo img {
    height: 35px;
    width: auto;
}

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

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.6;
    transition: 0.3s;
}

.nav-links a:hover {
    opacity: 1;
}

/* Состояние активной ссылки */
.nav-links a.active {
    opacity: 1;
    position: relative;
}

/* Линия под текстом */
.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    /* Расстояние от текста до линии */
    left: 0;
    width: 100%;
    height: 2px;
    /* Толщина линии */
    background-color: var(--white);
}

/* Burger */
.burger-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10001;
}

.burger-btn span {
    width: 28px;
    height: 2px;
    background-color: var(--white);
    transition: 0.4s var(--cubic);
}

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

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

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

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-dark);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 25px;
    transition: right 0.6s var(--cubic);
}

.mobile-menu.is-active {
    right: 0;
}

.mobile-menu a {
    font-family: var(--pt-serif);
    font-size: 28px;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
}

/* ===== COMPACT LUXURY FOOTER ===== */
.footer {
    background-color: var(--bg-dark);
    color: var(--white);
    padding: 60px 0 30px;
    /* Уменьшили вертикальные отступы в 2 раза */
    font-family: var(--satoshi);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--side-gutter);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    /* Меньше отступ до разделителя */
}

/* Компактный левый блок */
.footer-logo {
    margin-bottom: 20px;
}

.footer-logo img {
    height: 40px;
    /* Лого еще аккуратнее */
    width: auto;
}

.footer-address {
    font-style: normal;
    font-size: 10px;
    /* Чуть меньше шрифт */
    line-height: 1.6;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 20px;
}

.footer-contacts-links {
    display: flex;
    gap: 20px;
    /* Теперь в ряд, а не столбиком */
    margin-bottom: 0;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 11px;
    letter-spacing: 0.05em;
    opacity: 0.8;
    transition: opacity 0.3s;
}

/* Правый блок (Навигация в ряд) */
.footer-nav-wrapper ul {
    list-style: none;
    display: flex;
    /* Ссылки теперь в строчку */
    gap: 25px;
}

.footer-nav-wrapper a {
    color: var(--white);
    text-decoration: none;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    opacity: 0.6;
    transition: 0.3s;
}

.footer-nav-wrapper a:hover {
    opacity: 1;
}

.footer-divider {
    border: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 20px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Социалки теперь маленькие и рядом с контактами */
.footer-socials {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-socials img {
    width: 14px;
    opacity: 0.5;
}

/* Адаптив для мобилок */
@media (max-width: 768px) {
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-nav-wrapper ul {
        flex-direction: column;
        gap: 12px;
    }

    .footer-contacts-links {
        flex-direction: column;
        gap: 10px;
    }
}








/* Контейнер страницы */
.restaurant-detail-page {
    background-color: var(--bg-dark);
    min-height: 100vh;
    padding-bottom: 100px;
    position: relative;
    overflow: hidden;
    
    
    
}

.container {
    max-width: var(--container-w);
    margin: 0 auto;
    padding: 0 var(--side-gutter);
}

/* 1. HERO MINI (65% высоты экрана) */



/* Добавьте это в секцию HERO */
.card-bg {
    position: absolute;
    top: -8%;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;    /* Фото заполнит весь блок без черных полос */
    background-position: center; 
    background-repeat: no-repeat;
    z-index: 1;
}

.hero-mini {
    padding-top:calc(var(--nav-h) + 70px); /* Минимальный отступ от навигации */
    margin-bottom: 60px;
}

.hero-img-wrap {
    border-radius: 24px;
    width: 100%;
    /* Вычисляем высоту: 100% экрана минус высота навигации (80px) и минус отступы */
    height: calc(100vh - var(--nav-h) - 60px); 
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background-color: transparent; /* Убираем фоновый цвет, если он был серым */
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-overlay .card-name {
    font-size: clamp(32px, 6vw, 64px);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-align: center;
}

/* 2. SPLIT ROWS (Сетка 50/50) */
.split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 100px;
    align-items: center;
}

.split-row.is-reverse {
    direction: rtl; /* Меняет колонки местами */
}
.split-row.is-reverse .split-col {
    direction: ltr; /* Возвращает текст в норму */
}

/* Видео превью */
.video-trigger-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background: #111;
}

.video-preview-wrap, .video-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Волнистая декоративная рамка */
.decorative-frame {
    padding: 60px 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    text-align: center;
}

.decorative-frame::before {
    content: '';
    position: absolute;
    inset: -10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    pointer-events: none;
}

.decorative-frame h2 {
    font-size: 28px;
    letter-spacing: 4px;
    margin-bottom: 25px;
    color: var(--white);
}

/* Блок команды */
.team-img-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    position: relative;
    overflow: hidden;
}

.team-link {
    display: block;
    width: 100%;
    height: 100%;
}

.click-badge {
    position: absolute;
    bottom: 30px;
    right: 30px;
    background: var(--white);
    color: var(--bg-dark);
    padding: 10px 20px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    z-index: 5;
}

/* Навигация внизу */
.bottom-navigation {
    text-align: center;
    margin-top: 50px;
}

.next-page-btn {
    font-size: 32px;
    color: var(--white);
    text-decoration: none;
    opacity: 0.7;
    transition: 0.3s;
}

.next-page-btn:hover {
    opacity: 1;
    letter-spacing: 2px;
}

/* ===== 3. BOSS SECTIONS (VIDEO PLACES) ===== */
.boss-page {
    padding-top: var(--nav-h);
}

.boss-section {
    padding-bottom:var(--nav-h) ;
}

.boss-section.bg-anthracite{
    padding-top: var(--nav-h);
}


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

.boss-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s var(--cubic);
}

.video-placeholder {
    width: 100%;
    height: 100%;
    cursor: pointer;
    position: relative;
}

.boss-media:hover .boss-static-img {
    transform: scale(1.05);
}

.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.4s var(--cubic);
    z-index: 2;
    pointer-events: none;
}

.play-overlay-btn svg {
    width: 24px;
    fill: #fff;
}

.boss-media:hover .play-overlay-btn {
    background: rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) scale(1.1);
}

.boss-info h2 {
    font-family: var(--pt-serif);
    font-size: clamp(24px, 4vw, 32px);
    letter-spacing: 3px;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.description-block p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.6;
}


/* Стиль прямоугольной белой кнопки */
.btn-visit {
    display: inline-block;
    margin-top: 30px;
    padding: 15px 50px;
    background-color: #ffffff; /* Белый фон */
    color: #000000; /* Черный текст */
    text-decoration: none;
    font-family: var(--satoshi);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    border: 1px solid #ffffff;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

/* Эффект при наведении (Инверсия) */
.btn-visit:hover {
    background-color: transparent;
    color: #ffffff;
    letter-spacing: 5px; /* Легкое расширение при наведении */
}


/* 2. Сетка списка уроков */
.academy-list {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.academy-item {
    display: grid;
    grid-template-columns: 1fr 1fr; /* Ровное деление 50/50 */
    gap: 60px;
    margin-bottom: 80px;
    align-items: center; /* Центрируем текст по вертикали относительно видео */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 80px;
}

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

/* 3. Медиа блоки (Имитаторы видео) */
.boss-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    background: #111;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.boss-static-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.boss-media:hover .boss-static-img {
    transform: scale(1.05);
}

/* Кнопка Play */
.play-overlay-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.play-overlay-btn svg {
    width: 20px;
    fill: #fff;
   
}

.boss-media:hover .play-overlay-btn {
    background: #fff;
    transform: translate(-50%, -50%) scale(1.1);
}

.boss-media:hover .play-overlay-btn svg {
    fill: #000;
}

/* 4. Инфо-блоки */
.boss-info h2 {
    font-family: var(--pt-serif);
    font-size: 28px;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.description-block p {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   VIDEO POPUP (ОДИН НА ВСЕ)
   ========================================================================== */

.video-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    display: none; /* JS ilə idarə olunur */
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(15px);
}


/* Класс для активации через JS */
.video-popup-overlay.active {
    display: flex;
    opacity: 1;
}

.popup-content {
    position: relative;
    width: 90%;
    max-width: 1100px;
    height: auto; /* Контент подстраивается под высоту видео */
    background: transparent; /* Убираем фон, чтобы не было лишних рамок */
}
.video-popup-overlay.active .popup-content {
    transform: translateY(0);
}

.close-popup {
    position: absolute;
    top: -50px;
    right: 0;
    background: none;
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
}

.close-popup:hover {
    opacity: 0.7;
}

 #videoFrameContainer {
    position: relative;
    width: 100%;
    height: auto; /* Убираем фиксированную высоту */
    padding-bottom: 0 !important; /* Убиваем 16:9 принудительно */
    display: flex;
    justify-content: center;
     align-items: center;
}

/* Само видео */
#videoFrameContainer video {
    width: 100%;
    max-width: 100%;
    height: auto; /* Позволяет видео определять свою высоту */
    max-height: 85vh; /* Чтобы видео не уходило за пределы экрана по вертикали */
    display: block;
    object-fit: contain; /* Гарантирует, что видео впишется без обрезки */
    background: #000;
}




/* Popapın mobil versiyası üçün təkmilləşdirmə */
@media (max-width: 768px) {
    .popup-content {
        width: 95%; /* Mobil ekranlarda kənarlardan çox boşluq qalmasın */
        max-width: 100%;
        margin: 0 10px;
    }

    .close-popup {
        top: -60px; /* Bağlama düyməsini bir az aşağı çəkirik */
        right: 10px;
        font-size: 24px;
    }

    #videoFrameContainer {
    position: relative;
    width: 100%;
    height: auto; /* Убираем фиксированную высоту */
    padding-bottom: 0 !important; /* Убиваем 16:9 принудительно */
    display: flex;
    justify-content: center;
    align-items: center;
}
}


/* ==========================================================================
   АДАПТИВНОСТЬ ОСНОВНОЙ СЕТКИ
   ========================================================================== */

@media (max-width: 992px) {
    .academy-item {
        gap: 40px;
        margin-bottom: 60px;
        padding-bottom: 60px;
    }
    
    .boss-info h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    .academy-item {
        grid-template-columns: 1fr; /* Переключаем в одну колонку */
        gap: 30px;
        margin-bottom: 50px;
        padding-bottom: 50px;
    }

    /* Меняем порядок: видео сверху, текст снизу (если в HTML порядок иной) */
    .academy-item .boss-media {
        order: 1;
    }
    
    .academy-item .boss-info {
        order: 2;
        text-align: center; /* Центрируем текст для мобилок (по желанию) */
    }

    .boss-info h2 {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .description-block p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .academy-list {
        padding: 0 15px;
    }

    .boss-info h2 {
        font-size: 20px;
        letter-spacing: 1px;
    }
}
/* Səhifənin sürüşməsini tam dayandırmaq üçün */
body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}





/* Адаптив для мобильных (центрирование кнопки) */
@media (max-width: 768px) {
    .boss-info {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .btn-visit {
        width: 100%; /* На мобильных кнопка может быть на всю ширину */
        max-width: 250px;
    }
}

/* Адаптив */
@media (max-width: 768px) {
    .split-row, .split-row.is-reverse {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .hero-img-wrap { height: 45vh; }
    .video-trigger-box, .team-img-box { aspect-ratio: 16 / 9; }
}



