/* --- Цветовая палитра PROCOLOR (Медь, Золото и Холодный Шоколад) --- */
:root {
    /* Тот самый холодный темный оттенок (глубокий антрацит) */
    --bg-chocolate: #0a0c10; 
    --bg-footer: #050608;
    --bg-main: #0a0c10;
    /* Градиент-конус: яркое свечение в центре, уходящее в медь и глубокую тень */
    --header-copper: radial-gradient(circle at center, 
        #f7e290 0%,    
        #b88a44 25%,   
        #5d3a1a 60%,   
        #1a120f 100%   
    );
    
    --card-cream: #f5eedc;
    --accent-gold: #ffcc00;
    --accent-gold-dark: #cc9900; 
    --text-light: #f5eedc;
    --text-dark: #3d251e;
}



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

body {
    font-family: 'Roboto', sans-serif;
    color: var(--text-light);
    
    /* ОСНОВНОЙ ФОН: Темная основа с твоим оттенком */
    background-color: #0a0c10; 
    
    background-image: 
        /* 1. Мягкое свечение в центре для объема */
        radial-gradient(circle at center, rgba(13, 18, 138, 0.2) 0%, #050608 100%),
        /* 2. Округлый узор (тонкие золотистые линии) */
        url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23b88a44' stroke-opacity='0.15' stroke-width='0.8'%3E%3Ccircle cx='100' cy='100' r='80'/%3E%3Ccircle cx='0' cy='0' r='50'/%3E%3Ccircle cx='200' cy='0' r='50'/%3E%3Ccircle cx='0' cy='200' r='50'/%3E%3Ccircle cx='200' cy='200' r='50'/%3E%3C/g%3E%3C/svg%3E");
    
    background-attachment: fixed; /* Узор остается на месте при скролле */
    background-size: cover, 100px 100px; /* Размер кругов */
    
    scroll-behavior: smooth;
    overflow-x: hidden;
    padding-top: 70px;
}


.no-select{-webkit-tap-highlight-color: transparent !important;-webkit-touch-callout: none !important;-webkit-user-select: none !important;user-select: none !important;}

/* --- ШАПКА --- */
header.main-navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    height: 70px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.15), transparent 50%), var(--header-copper) !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 5000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    border-bottom: 1px solid rgba(247,226,144,0.4);
}

/* Контейнер логотипа */
.logo-brand {
    display: flex;
    align-items: center; /* выравнивание по вертикали */
    gap: 1px;           /* расстояние между картинкой и текстом */
    cursor: pointer;
}

/* Картинка логотипа */
.logo-img {
    height: 65px; /* нормальный размер */
    width: auto;
    filter: none; /* цветной логотип */
}

/* Текст PROCOLOR */
.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 30px; /* размер текста */
    font-weight: 700;
    color: var(--accent-gold);
    white-space: nowrap; 
    line-height: 1; 
}

.menu-btn span { 
    color: #0a0c10 !important; /* Прямой код цвета шоколада */
    font-size: 10px; 
    letter-spacing: 3px; 
    font-weight: 900; /* Максимальная жирность для четкости */
    -webkit-text-fill-color: #0a0c10 !important; /* Для Safari/Chrome на мобильных */
}

.menu-btn {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    background: transparent !important;
    padding: 7px 20px;
    border-radius: 6px;
    transition: 0.2s;
    box-shadow: none !important; /* Убираем свечение */
    border: 1px solid #0a0c10 !important; /* Цвет кромки */
}



.menu-btn:active { background: rgba(0,0,0,0.3); transform: translate(-50%,-50%) scale(0.95); }
.menu-btn span { color: #fff !important; font-size: 10px; letter-spacing: 3px; font-weight: 500; }

/* --- ЗОНА АВТОРИЗАЦИИ --- */
.user-header-zone {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-end;
	gap: 25px;
}
#userEmailDisplay {
    color: var(--accent-gold);
    font-weight: 500;
    font-size: 11px;
    margin-bottom: 2px;
}
.auth-btn {
    padding: 5px 12px;
    border-radius: 4px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: 0.2s;
    font-size: 13px;
    border: none;
}
.auth-btn.login { background-color: #28a745; color: #fff; }
.auth-btn.login:active { background-color: #1e7e34; }
.auth-btn.logout { background-color: #a63a50; color: #fff; }
.auth-btn.logout:active { background-color: #7a2a3a; }

/* СКРЫТИЕ КНОПОК */
#loginBtn, #logoutBtn, #userEmailDisplay { display: none; }
.auth-zone.logged-in #logoutBtn, .auth-zone.logged-in #userEmailDisplay { display: inline-block; }
.auth-zone.logged-out #loginBtn { display: inline-block; }

/* --- МЕНЮ ТЯНУЧКА --- */
.interactive-divider { width: 100%; height: 14px; background: var(--bg-main); display: flex; align-items: center; cursor: pointer; position: relative; z-index: 1001; margin-top: 20px; touch-action: none; }
.glow-wire { width: 100%; height: 1px; background: rgba(166,124,82,1); transition: all 0.3s ease; }
.interactive-divider.active .glow-wire { height: 3px; background: var(--accent-gold); box-shadow: 0 0 15px rgba(255,204,0,0.8); }

.shutter-menu { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s cubic-bezier(0.4,0,0.2,1); overflow: hidden; background: var(--bg-chocolate); }
.shutter-menu.is-open { grid-template-rows: 1fr; border-bottom: 1px solid var(--accent-gold); }
.shutter-content { min-height: 0; display: flex; flex-direction: column; align-items: center; padding: 15px 0 10px; background-color: var(--bg-main);}
.shutter-link { font-size: 18px; padding: 15px 0; width: 100%; text-align: center; color: var(--text-light); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,0.05); }

/* --- HERO --- */
.hero {
    height: 60vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/assets/menu/gallery/home1.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
}

/* Надпись — желтая, ближе к шапке */
.hero-text-top {
    position: absolute;
    top: 50px; /* расстояние от шапки */
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 40px;
    font-weight: 700;
    color: var(--accent-gold);
    line-height: 1.1;
    margin: 0;
}

/* Надпись — белая, симметрично от бегущей строки */
.hero-text-bottom {
    position: absolute;
    top: 10px; /* расстояние от шапки */
    width: 100%;
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: #fff;
    margin: 0;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .hero-text-top { font-size: 36px; top: 10px; }
    .hero-text-bottom { font-size: 20px; top: 50px; }
}

/* Исходное состояние баннера — полностью темный */
.hero {
    height: 60vh;
    background: #0a0c10; /* темный фон */
    background-size: cover;
    background-position: center;
    position: relative;
    opacity: 0; /* изначально прозрачный */
    transition: opacity 1s ease-in-out, background-image 1s ease-in-out;
}

/* Класс для появления баннера */
.hero.loaded {
    opacity: 1;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('/assets/menu/gallery/home1.jpg');
    background-size: cover;
    background-position: center;
}

/* --- БЕГУЩАЯ СТРОКА --- */
.ticker-wrap { width: 100%; overflow: hidden; background: #a63a50; padding: 12px 0; z-index: 11; position: relative; }
.ticker { display: flex; white-space: nowrap; animation: ticker 15s linear infinite; font-weight: 700; text-transform: uppercase; font-size: 14px; }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* --- КУРСЫ --- */
.section-title { text-align: center; margin: 60px 0 40px; font-family: 'Playfair Display', serif; font-size: 32px; color: var(--text-light); text-transform: uppercase; }
.section-title::after { content: ''; display: block; width: 50px; height: 3px; background: var(--accent-gold); margin: 15px auto 0; }
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 25px; padding: 0 50px 60px; }
.course-card { background: var(--card-cream); border-radius: 15px; overflow: hidden; box-shadow: 0 10px 25px rgba(0,0,0,0.3); transition: 0.3s; display: flex; flex-direction: column; cursor: pointer; width: 100%; }
.course-card:hover { transform: translateY(-10px); }
.course-img { height: 180px; background-size: cover; background-position: center; }
.course-content { padding: 20px; flex: 1; display: flex; flex-direction: column; color: var(--text-dark); }
.course-content h3 { margin-bottom: 10px; }
.course-content p { font-size: 14px; line-height: 1.5; margin-bottom: 20px; color: #5d4037; }
/* Кнопки в карточках курсов и альбомах — стиль "Открыть альбом" */
.btn-start {
    margin-top: auto;
    display: block;
    text-decoration: none;
    text-align: center;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 1.5px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Золотой градиент как на картинке */
    background: linear-gradient(180deg, #f7e290 0%, #b88a44 100%); 
    color: #3d251e !important; /* Темный шоколадный текст */
    
    /* Рамка и двойное свечение */
    border: 1px solid #f7e290; 
    box-shadow: 0 0 15px rgba(247, 226, 144, 0.4), inset 0 0 10px rgba(255, 255, 255, 0.3);
}

/* Эффект при нажатии */
.btn-start:active {
    transform: scale(0.95);
    filter: brightness(0.9);
    box-shadow: 0 0 5px rgba(247, 226, 144, 0.2);
}

/* Специально для кнопок внутри галереи (альбомов) */
.album-content .btn-start {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 11px;
}


/* --- ГАЛЕРЕЯ --- */
.gallery-panels { position: relative; display: flex; overflow: hidden; align-items: center; padding: 40px 0 80px; touch-action: pan-y; margin-left: -15px;}
.album-track { display: flex; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); padding-left: 0; }
.album-card { background: var(--card-cream); border-radius: 15px; overflow: hidden; flex: 0 0 280px; margin: 0 15px; transition: 0.4s; display: flex; flex-direction: column; box-shadow: 0 10px 20px rgba(0,0,0,0.3); }
.album-card.active { transform: scale(1.08); border: 2px solid var(--accent-gold); z-index: 2; }
.album-img { height: 180px; background-size: cover; background-position: center; }
.album-content { padding: 20px; color: var(--text-dark); flex: 1; }

/* --- СТРЕЛКИ ГАЛЕРЕИ --- */
.nav-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(0,0,0,0.6); color: #fff; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; z-index: 100; transition: 0.2s; font-size: 20px; user-select: none; }
.nav-arrow:hover { background: var(--accent-gold); color: #000; }
.nav-arrow.left { left: 20px; }
.nav-arrow.right { right: 15px; }

/* --- ПОРТАЛ ФОТО --- */
#photo-portal {
    position: fixed;
    top: 70px; /* высота шапки */
    left: 0;
    width: 100%;
    height: calc(100% - 70px);
    background: rgba(0,0,0,0.95);
    z-index: 3000;
    display: none;
    justify-content: center;
    align-items: center;
}

#photo-portal.active {
    display: flex;
}

.photo-portal-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90vw;
}

#photo-portal img {
    max-width: 90vw;
    max-height: 70vh;
    border-radius: 10px;
    border: 2px solid var(--accent-gold);
    transition: opacity 0.3s ease;
}

#photo-description {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    max-width: 80vw;
    opacity: 0;
    transition: opacity 0.3s ease;
}
#photo-portal.active { display: flex; }
#photo-portal img { max-width: 90vw; max-height: 85vh; border-radius: 10px; border: 2px solid var(--accent-gold); }

/* --- ФУТЕР --- */
.site-footer { background-color: var(--bg-footer); padding: 60px 25px 30px; border-top: 1px solid #3d251e; }
.footer-container { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-column h4 { color: var(--accent-gold); margin-bottom: 20px; text-transform: uppercase; font-size: 12px; letter-spacing: 1px; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-light); text-decoration: none; opacity: 0.8; transition: 0.2s; }
.footer-links a:hover { opacity: 1; color: var(--accent-gold); }
.footer-socials { display: flex; gap: 15px; margin-top: 15px; }
.footer-socials img { 
    width: 24px; 
    height: 24px; 
    /* Убираем filter и invert, чтобы вернуть родные цвета */
    filter: none; 
    opacity: 1; /* Возвращаем полную яркость */
    transition: transform 0.3s ease; 
}

/* Добавим легкий эффект при наведении, чтобы было понятно, что они кликабельны */
.footer-socials a:hover img { 
    transform: scale(1.1); /* Иконка будет немного увеличиваться */
}

.footer-bottom { text-align: center; margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.05); font-size: 11px; color: #55433c; }

@media (max-width: 768px) {
    /* Настройка высоты шапки и базовых отступов */
    header.main-navbar {
        height: 120px !important;
        padding: 0 5px !important; /* Отступ 5px слева для Лого и справа для Кнопок */
		display: flex;
        align-items: center;
        justify-content: space-between;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        box-sizing: border-box;
    }

    /* ПУНКТ 1 и 2: ЦЕНТР (PROCOLOR + МЕНЮ) */
    .menu-btn {
        position: absolute;
        left: 50%;
        top: 65px; /* Уровень кнопки меню */
        transform: translate(-50%, -50%);
        margin: 0 !important;
        z-index: 10;
    }

    /* Надпись PROCOLOR строго над МЕНЮ */
    .menu-btn::before {
        content: "PROCOLOR";
        position: absolute;
        top: -40px; /* Дистанция над кнопкой */
        left: 50%;
        transform: translateX(-50%);
        color: var(--accent-gold);
        font-family: 'Playfair Display', serif;
        font-weight: 700;
        font-size: 19px;
        white-space: nowrap;
        letter-spacing: 1px;
    }

    /* ПУНКТ 3: ЛЕВО (Картинка Логотипа) */
    header.main-navbar .logo-brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        margin: 0;
        position: relative;
    }

    header.main-navbar .logo-img {
        /* Высота от верха текста "PROCOLOR" до низа кнопки "МЕНЮ" */
        height: 85px !important; 
        width: auto;
        display: block;
    }
    
    /* Скрываем текстовый логотип слева, он теперь в центре */
    header.main-navbar .logo-text { display: none !important; }

    /* ПУНКТ 4: ПРАВО (Зона логина и кнопок Вход/Выход) */
    .user-header-zone {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important; /* Центрируем логин относительно кнопок */
        justify-content: center;
        gap: 5px;
		margin-right: 15px;
        min-width: 80px; /* Чтобы не «схлопывалось» */
    }

    /* Стили текста логина (до собаки) */
    #userEmailDisplay {
        display: block !important;
        font-size: 11px !important;
        color: var(--accent-gold);
        font-weight: 600;
        margin: 0 !important;
        line-height: 1;
        text-align: center;
    }

    /* Кнопки Вход и Выйти — всегда в одном месте и одного стиля */
    .auth-btn.login, 
    .auth-btn.logout {
        padding: 6px 14px !important;
        font-size: 11px !important;
        text-transform: uppercase;
        letter-spacing: 1px;
        border-radius: 4px;
        margin: 0 !important;
        width: 100%; /* Занимают всю ширину контейнера зоны */
        text-align: center;
    }

    /* Компенсация высоты шапки для остального контента */
    body { padding-top: 120px !important; }

    /* Защита футера от этих изменений */
    .site-footer .logo-brand { position: static !important; transform: none !important; display: block !important; }
    .site-footer .logo-img { height: 40px !important; }
}

.logo-img {
    height: 65px;
    width: auto;
    cursor: pointer;
    transition: all 0.3s ease; /* плавность при наведении */
}

/* Пульсирующее золотое свечение при наведении */
.logo-img:hover {
    animation: glowLogo 1.8s infinite alternate;
}

/* Анимация свечения */
@keyframes glowLogo {
    0% {
        filter: drop-shadow(0 0 0px #ffcc00);
    }
    50% {
        filter: drop-shadow(0 0 10px #ffcc00) drop-shadow(0 0 15px #ffcc00);
    }
    100% {
        filter: drop-shadow(0 0 20px #ffcc00) drop-shadow(0 0 25px #ffcc00);
    }
}



@media (max-width: 768px) {
    header.main-navbar { padding: 0 15px; }
   
    .hero h1 { font-size: 32px; }
    .courses-grid { padding: 0 20px 40px; }
    .nav-arrow { width: 50px; height: 50px; }
}

.welcome-section {
    padding: 32px 32px;
    display: flex;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.welcome-card {
    max-width: 1000px;
    width: 100%;
    min-height: 400px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    border: 1px solid rgba(247, 226, 144, 0.2);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden; /* Чтобы фото не вылезало за границы скругления */
}

.welcome-photo {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 110%; /* Чуть больше карточки для объема */
    width: auto;
    z-index: 1;
    /* Мягкое золотистое свечение за спиной */
    filter: drop-shadow(10px 0 30px rgba(184, 138, 68, 0.3));
}

.welcome-info {
    position: relative;
    z-index: 2; /* Текст выше фото */
    margin-left: 30%; /* Отодвигаем текст, чтобы не перекрывал лицо */
    padding: 15px;
    color: #fff;
}

.welcome-greet {
    font-size: 42px;
    color: #f7e290;
    font-style: italic;
    margin-bottom: 5px;
}

.welcome-name {
    font-size: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.welcome-points {
    list-style: none;
    padding: 0;
}

.welcome-points li {
    margin-bottom: 12px;
    padding-left: 25px;
    position: relative;
    font-size: 16px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-points li::before {
    content: "◆";
    position: absolute;
    left: 0;
    color: #b88a44;
}

@media (max-width: 768px) {
    /* 1. Карточка становится вертикальной стопкой */
    .welcome-card {
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 20px 0 0 0 !important; /* Отступ только сверху, над текстом */
        display: flex !important;
    }

    /* 2. Текст идет первым и занимает свое место */
    .welcome-info {
        order: 1 !important;
        position: relative !important;
        margin: 0 20px 10px 20px !important; /* Отступы по бокам и 10px снизу до фото */
        text-align: center !important;
        width: auto !important;
        z-index: 2 !important;
    }

    /* 3. Фото идет вторым, строго ПОД текстом */
    .welcome-photo {
        order: 2 !important;
        position: relative !important; /* Никакого наложения! */
        width: 100% !important;
        height: auto !important;
        left: 0 !important;
        bottom: 0 !important;
        margin: 0 !important;         /* Никаких минусов и подтяжек */
        transform: none !important;   /* Никаких сдвигов */
        z-index: 1 !important;
        display: block !important;
        border-radius: 0 0 30px 30px;
    }
}


/* === FIX цвета выпадающего меню === */
.interactive-divider,
.shutter-menu,
.shutter-content {
    background-color: var(--bg-main);
}