/* ============================================
   HERO SECTION - Культурный центр
   Эффектная первая секция с цитатой Покровского
   ============================================ */

/* Обновленная цветовая палитра */
:root {
    /* Новый элегантный фиолетовый */
    --hero-purple-primary: #8b5cf6;
    --hero-purple-deep: #7c3aed;
    --hero-purple-light: #a78bfa;
    --hero-purple-ultra-light: rgba(139, 92, 246, 0.1);
    
    /* Градиенты */
    --hero-gradient-dark: linear-gradient(135deg, #000000 0%, #1a0a2e 50%, #2d1b4e 100%);
    --hero-gradient-purple: linear-gradient(135deg, var(--hero-purple-deep), var(--hero-purple-primary));
    --hero-overlay: linear-gradient(to right, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.6) 50%, rgba(0,0,0,0.8) 100%);
}

/* Основной контейнер Hero */
.hero-cultural-center {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--hero-gradient-dark);
}

/* Фоновое изображение с parallax */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--hero-overlay);
    z-index: 2;
}

.hero-background img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Стили для фонового видео */
.hero-background video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    filter: brightness(0.7) contrast(1.1);
    animation: slowVideo 20s ease-in-out infinite;
}

@keyframes slowVideo {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.04);
    }
}

/* Декоративные музыкальные ноты (floating animation) */
.hero-music-notes {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 4;
    pointer-events: none;
    opacity: 0.4;
}

.music-note {
    position: absolute;
    font-size: 2rem;
    color: var(--hero-purple-light);
    animation: floatNote 15s ease-in-out infinite;
    text-shadow: 0 0 10px rgba(139, 92, 246, 0.5);
}

.music-note:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; font-size: 2rem; }
.music-note:nth-child(2) { top: 20%; right: 15%; animation-delay: 2s; font-size: 3rem; }
.music-note:nth-child(3) { bottom: 30%; left: 20%; animation-delay: 4s; font-size: 2.5rem; }
.music-note:nth-child(4) { bottom: 15%; right: 10%; animation-delay: 6s; font-size: 2.8rem; }
.music-note:nth-child(5) { top: 50%; left: 5%; animation-delay: 3s; font-size: 2.2rem; }
.music-note:nth-child(6) { top: 60%; right: 8%; animation-delay: 5s; font-size: 2.6rem; }

@keyframes floatNote {
    0%, 100% { 
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-40px) rotate(15deg) scale(1.2);
        opacity: 0.5;
    }
    50% { 
        transform: translateY(-80px) rotate(-10deg) scale(1.1);
        opacity: 0.6;
    }
    75% {
        transform: translateY(-40px) rotate(12deg) scale(1.15);
        opacity: 0.4;
    }
}

/* Контент Hero */
.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    padding-bottom: 80px;
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 40px;
}

/* Логотип в центре вверху */
.hero-logo-center {
    text-align: center;
    margin-bottom: 60px;
    animation: fadeInDown 1s ease-out;
}

.hero-logo-center img {
    max-width: 180px;
    height: auto;
    filter: drop-shadow(0 4px 12px rgba(139, 92, 246, 0.4));
}

/* Основной контент - две колонки */
.hero-main-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Левая колонка - цитата Покровского */
.hero-quote-section {
    animation: fadeInLeft 1.2s ease-out 0.3s both;
}

.hero-quote-wrapper {
    position: relative;
    padding: 40px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Декоративные кавычки */
.hero-quote-wrapper::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 120px;
    font-family: Georgia, serif;
    color: var(--hero-purple-primary);
    opacity: 0.3;
    line-height: 1;
}

.hero-quote-author {
    font-size: 1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    margin-top: 20px;
    letter-spacing: 0.5px;
}

.hero-quote-author::before {
    content: '— ';
}

/* Правая колонка - информация о центре */
.hero-info-section {
    animation: fadeInRight 1.2s ease-out 0.5s both;
}

.hero-subtitle {
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hero-purple-light);
    margin-bottom: 20px;
    display: inline-block;
    position: relative;
}

.hero-subtitle::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 60px;
    height: 2px;
    background: var(--hero-gradient-purple);
}

.hero-title {
    font-size: 3.8rem;
    font-weight: 700;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: -1px;
}

.hero-title-accent {
    display: block;
    font-weight: 300;
    font-size: 2.6rem;
    background: var(--hero-gradient-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.15rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
    max-width: 90%;
}

/* Кнопки действий */
.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 18px 36px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero-btn:hover::before {
    width: 300px;
    height: 300px;
}

.hero-btn-primary {
    background: var(--hero-gradient-purple);
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(139, 92, 246, 0.4);
}

.hero-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(139, 92, 246, 0.5);
}

.hero-btn-secondary {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.hero-btn-secondary:hover {
    border-color: var(--hero-purple-primary);
    background: rgba(139, 92, 246, 0.1);
    transform: translateY(-3px);
}

/* Стрелка вниз */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.hero-scroll-arrow {
    width: 50px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hero-scroll-arrow:hover {
    border-color: var(--hero-purple-primary);
    background: rgba(139, 92, 246, 0.2);
}

.hero-scroll-arrow i {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
}

@keyframes bounce {
    0%, 100% { transform: translate(-50%, 0); }
    50% { transform: translate(-50%, 10px); }
}

/* Анимации появления */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1200px) {
    .hero-main-content {
        gap: 60px;
        padding: 0 30px;
    }
    
    .hero-title {
        font-size: 3.2rem;
    }
    
    .hero-title-accent {
        font-size: 2.2rem;
    }
}

@media (max-width: 968px) {
    .hero-main-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding: 0 20px;
    }
    
    .hero-logo-center {
        margin-bottom: 40px;
    }
    
    .hero-logo-center img {
        max-width: 150px;
    }
    
    .hero-quote-section {
        order: 2;
    }
    
    .hero-info-section {
        order: 1;
        text-align: center;
    }
    
    .hero-subtitle::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .hero-title-accent {
        font-size: 2rem;
    }
    
    .hero-description {
        max-width: 100%;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-quote-wrapper::before {
        font-size: 80px;
        top: -10px;
    }
}

@media (max-width: 640px) {
    .hero-content-wrapper {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-title-accent {
        font-size: 1.6rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-btn {
        padding: 15px 28px;
        font-size: 0.95rem;
        width: 100%;
        justify-content: center;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-quote-wrapper {
        padding: 30px 20px;
    }
    
    .music-note {
        font-size: 1.2rem !important;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
}

/* Особенности для Safari */
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) {
    .hero-quote-wrapper,
    .hero-btn-secondary {
        -webkit-backdrop-filter: blur(20px);
    }
}

/* ============================================
   FLOATING HEADER
   ============================================ */
.header-floating {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    width: 100%;
    background: rgba(10, 10, 16, 0.68);
    backdrop-filter: blur(18px) saturate(125%);
    -webkit-backdrop-filter: blur(18px) saturate(125%);
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(0);
    opacity: 1;
}

.header-floating.header-visible {
    transform: translateY(0);
    opacity: 1;
}

.header-floating:hover {
    background: rgba(10, 10, 16, 0.68);
}

/* ============================================
   НОВЫЙ ДИЗАЙН HERO-СЕКЦИИ (С НУЛЯ)
   Минималистичный, элегантный, с акцентом на цитате
   ============================================ */

/* Логотип сверху */
.hero-logo-top {
    text-align: center;
    padding: 0px 0 20px;
    animation: fadeInDown 0.8s ease-out;
}

.hero-logo-top img {
    max-width: 160px;
    height: auto;
    filter: drop-shadow(0 4px 20px rgba(139, 92, 246, 0.5));
}

/* Главный контейнер контента - увеличен для соответствия пропорциям сайта */
.hero-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding-top: 100px;
    padding-bottom: 80px;
    padding-left: 60px;
    padding-right: 60px;
    text-align: center;
    transform: scale(1.25);
}

/* Главная цитата */
.hero-quote-main {
    position: relative;
    margin-bottom: 125px;
    min-height: clamp(150px, 25vh, 450px);
    padding-top: clamp(60px, 10vw, 240px);
    padding-bottom: clamp(10px, 2vw, 55px);
    animation: zoomIn 1s ease-out 0.3s both;
}

.quote-decoration {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 150px;
    font-family: Georgia, serif;
    color: var(--hero-purple-primary);
    opacity: 0.2;
    line-height: 1;
    pointer-events: none;
}

.hero-quote-image {
    max-width: 100%;
    height: 100%;
    width: 100%;
    margin: 0 auto;
    filter: brightness(1.1) contrast(1.1);
    display: block;
    position: absolute;
    top: 63%;
    left: 50%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    z-index: 1;
}

.hero-quote-author {
    font-size: 1.75rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-top: clamp(1px, 1vw, 1px);
    letter-spacing: 1px;
    font-weight: 400;
    text-align: center;
    font-family: 'Plus Jakarta Sans', 'Overpass', sans-serif;
    position: relative;
    z-index: 2;
}

.hero-quote-author::before {
    content: '— ';
}

/* Разделительная линия */
.hero-divider {
    width: 100px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--hero-purple-primary), transparent);
    margin: 50px auto;
    animation: expandWidth 1s ease-out 0.8s both;
}

@keyframes expandWidth {
    from { width: 0; }
    to { width: 100px; }
}

/* Компактная информация */
.hero-info-compact {
    animation: fadeInUp 1s ease-out 1s both;
}

.hero-title-main {
    font-size: 4.2rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 30px;
    letter-spacing: -1px;
    line-height: 1.1;
}

.hero-tagline {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 50px;
    font-weight: 300;
    line-height: 1.6;
}

/* Инлайн фичи/преимущества */
.hero-features-inline {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 35px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    text-decoration: none;
    cursor: pointer;
}

.feature-badge:hover {
    background: rgba(139, 92, 246, 0.25);
    border-color: var(--hero-purple-primary);
    transform: translateY(-2px);
    color: #ffffff;
}

.feature-badge i {
    color: var(--hero-purple-light);
    font-size: 1rem;
}

/* Кнопки CTA */
.hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.hero-btn-new {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 14px 50px;
    border-radius: 55px;
    font-size: 1.2rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.hero-btn-new::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
    z-index: 0;
}

.hero-btn-new:hover::before {
    width: 350px;
    height: 350px;
}

.hero-btn-new i,
.hero-btn-new span {
    position: relative;
    z-index: 2;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.hero-btn-primary-new:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.6);
    color: #ffffff !important;
}

.hero-btn-primary-new:hover i,
.hero-btn-primary-new:hover span {
    color: #ffffff !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.hero-btn-primary-new {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
    border: 2px solid transparent;
}

.hero-btn-secondary-new {
    background: transparent;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(15px);
}

.hero-btn-secondary-new:hover {
    border-color: var(--hero-purple-primary);
    background: rgba(139, 92, 246, 0.15);
    transform: translateY(-3px);
}

/* Анимация zoom */
@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .hero-title-main {
        font-size: 3rem;
    }
    
    .hero-tagline {
        font-size: 1.15rem;
    }
}

@media (max-width: 968px) {
    .hero-logo-top img {
        max-width: 140px;
    }
    
    .hero-main-container {
        padding: 40px 15px;
    }
    
    .hero-title-main {
        font-size: 2.5rem;
    }
    
    .hero-tagline {
        font-size: 1.05rem;
    }
    
    .quote-decoration {
        font-size: 100px;
        top: -30px;
    }
    
    .hero-features-inline {
        gap: 10px;
    }
    
    .feature-badge {
        font-size: 0.85rem;
        padding: 8px 16px;
    }
}

@media (max-width: 640px) {
    .hero-logo-top {
        padding: 30px 0 15px;
    }
    
    .hero-logo-top img {
        max-width: 120px;
    }
    
    .hero-title-main {
        font-size: 2rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-quote-author {
        font-size: 0.95rem;
    }
    
    .quote-decoration {
        font-size: 80px;
        top: -20px;
    }
    
    .hero-btn-new {
        width: 100%;
        justify-content: center;
        padding: 16px 32px;
        font-size: 1rem;
    }
    
    .hero-cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-features-inline {
        gap: 8px;
    }
    
    .feature-badge {
        font-size: 0.8rem;
        padding: 7px 14px;
    }
    
    /* Мобильные исправления для hero-секции */
    .hero-main-container {
        transform: scale(1);
        padding: 20px 15px;
        padding-top: 60px;
        padding-bottom: 100px;
    }
    
    .hero-quote-main {
        margin-bottom: 40px;
        min-height: auto;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    
    .hero-quote-image {
        position: relative;
        transform: none;
        top: auto;
        left: auto;
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    
    .hero-info-compact {
        margin-bottom: 20px;
    }
    
    .hero-cta-buttons {
        margin-bottom: 30px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    /* Переключение между видео и изображением */
    .hero-video-desktop {
        display: none !important;
    }
    
    .hero-image-mobile {
        display: block !important;
    }
    
    /* Переключение между цитатами */
    .hero-quote-desktop {
        display: none !important;
    }
    
    .hero-quote-mobile {
        display: block !important;
    }
}

/* Десктопная версия - показываем видео и оригинальную цитату */
@media (min-width: 641px) {
    .hero-video-desktop {
        display: block !important;
    }
    
    .hero-image-mobile {
        display: none !important;
    }
    
    .hero-quote-desktop {
        display: block !important;
    }
    
    .hero-quote-mobile {
        display: none !important;
    }
}

.hero-h1 {
    position: relative;
    z-index: 2;
    margin: 0 auto 18px;
    max-width: 18em;
    color: #ffffff;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(26px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

