:root {
    --title-font: 'Cormorant Garamond', serif;
    --body-font: 'Inter', sans-serif;
    --forest-dark: #050a05;
}
body {
    margin: 0;
    padding: 0;
    font-family: var(--body-font);
    background-color: var(--forest-dark);
    color: #ffffff;
    position: relative;
}
.bg-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    overflow: hidden;
}
.bg-container video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.4) contrast(1.1) saturate(0.7);
}
#home {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 5rem 2rem;
    text-align: center;
}
.film-title-main {
    font-family: var(--title-font);
    font-size: 6rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: #ffffff;
    text-shadow: 0px 4px 30px rgba(0, 0, 0, 0.9);
    margin-top: auto;
    margin-bottom: auto;
}
.home-nav-buttons-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}
.home-menu-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}
.home-menu-item {
    flex: 1;
    min-width: 140px;
}
.home-nav-buttons-container .btn-outline-light {
    width: 100%;
    font-family: var(--body-font);
    font-weight: 500;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    padding: 1.1rem 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: linear-gradient(135deg, rgba(20, 35, 20, 0.75) 0%, rgba(5, 10, 5, 0.9) 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.1), 0 10px 30px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.home-nav-buttons-container .btn-outline-light:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.6);
}
.sticky-global-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(5, 10, 5, 0.96) 65%, rgba(5, 10, 5, 0.8) 100%);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 1000;
    padding: 1.2rem 4rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-brand-title {
    font-family: var(--title-font);
    font-size: 2.2rem;
    font-weight: 500;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 1px;
}
.navbar-spy-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.spy-link {
    font-family: var(--body-font);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.5) !important;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease, border-bottom 0.3s ease;
    padding-bottom: 4px;
    border-bottom: 1px solid transparent;
}
.spy-link:hover {
    color: rgba(255, 255, 255, 0.9) !important;
}
.spy-link.active-section {
    color: #ffffff !important;
    border-bottom: 1px solid #ffffff;
}
.mobile-menu-trigger {
    display: none;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
    padding: 0;
}
.spa-section {
    position: relative;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 2rem;
    z-index: 1;
}
.content-card-white {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    color: #111610;
    padding: 5rem;
    margin-bottom: 4rem;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6);
    border-radius: 2px;
}
.section-header-text {
    font-family: var(--title-font);
    font-size: 3rem;
    font-weight: 500;
    margin-bottom: 3rem;
    color: #050805;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding-bottom: 0.6rem;
}
.sketch-placeholder {
    background-color: #e2e5e1;
    border: 1px dashed #929891;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #4e534d;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    text-align: center;
    padding: 0.5rem;
}
.logline-box { height: 300px; width: 100%; }
.style-grid-item { height: 135px; width: 100%; }
.message-hero-box { height: 320px; width: 100%; }
.still-vertical-box { height: 400px; width: 100%; }
.crew-lead-box { height: 350px; }
.crew-member-box { height: 220px; }
.shop-item-box { height: 440px; }
.journal-thumb-box { height: 180px; }
.donate-visual-box { height: 460px; width: 100%; }
.body-text-block { font-size: 1.05rem; line-height: 1.8; color: #212820; }
.shop-meta { margin-top: 1rem; display: flex; justify-content: space-between; align-items: center; font-weight: 500; }
.donation-service-card {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.01) 0%, rgba(0, 0, 0, 0.04) 100%);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    text-decoration: none !important;
    display: block;
    color: #111610 !important;
}
.donation-service-card:hover {
    transform: translateX(8px);
    background: linear-gradient(135deg, #162416 0%, #050a05 100%);
    color: #ffffff !important;
    border-color: #050a05;
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}
.donation-service-card:hover p { color: rgba(255, 255, 255, 0.7) !important; }
.donation-service-card:hover .service-arrow { transform: translateX(5px); color: #ffffff; }
.service-arrow { transition: transform 0.3s ease; font-size: 1.25rem; }
.donation-service-card.primary-jar { border: 1px solid #1c401c; background: linear-gradient(135deg, rgba(28, 64, 28, 0.05) 0%, rgba(10, 30, 10, 0.08) 100%); }
.donation-service-card.primary-jar:hover { background: linear-gradient(135deg, #1c401c 0%, #0b210b 100%); border-color: #1c401c; }
.rich-footer { 
    /* background-color: rgba(5, 10, 5, 0.99);  */
    backdrop-filter: blur(20px); border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 6rem 0 3rem 0; font-size: 0.9rem; }
.footer-brand { font-family: var(--title-font); font-size: 2.4rem; font-weight: 500; }
.footer-link { color: rgba(255, 255, 255, 0.5); text-decoration: none; transition: color 0.3s; }
.footer-link:hover { color: #ffffff; }
.rich-footer .text-muted { color: rgba(255, 255, 255, 0.4)!important; }

@media (max-width: 991px) {
    .film-title-main { font-size: 3.5rem; }
    .content-card-white { padding: 3rem 1.5rem; }
    .sticky-global-navbar { padding: 1rem 2rem; }
    .nav-brand-title { font-size: 1.6rem; }
    .mobile-menu-trigger { display: block; }
    .navbar-spy-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 75%;
        max-width: 320px;
        height: 100vh;
        background: linear-gradient(135deg, #0a120a 0%, #040704 100%);
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        box-shadow: -10px 0 40px rgba(0,0,0,0.8);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 4rem 3rem;
        gap: 2.5rem;
        transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    }
    .navbar-spy-links.mobile-open { right: 0; }
    .spy-link { font-size: 1.1rem; width: 100%; display: block; }
    .home-menu-row { flex-wrap: wrap; gap: 10px; }
    .home-menu-item { flex: unset; width: 48%; }
} 

.marzipan_logo {
    margin-bottom: 2rem;
    margin-right: -45%;
}
.marzipan_logo img {
    width: 24rem;
    height: auto;
}



body.page-night-bg {
    background: #0a0b0d !important; /* Убираем лесную подложку */
    background-image: none !important;
}

.fire-foreground-container {
    position: absolute;
    bottom: -10%; 
    left: 0;
    width: 100%;

   
    pointer-events: none;
    mix-blend-mode: screen;
}

.fire-video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Чтобы видео растягивалось по ширине, но обрезалось сверху */
    object-position: bottom; /* Держим фокус на нижней части пламени */
    opacity: 0.85; /* Можно слегка приглушить яркость, если пламя слишком ядреное */
}

.about-crew-section .container {
    padding-bottom: 80px; 
}


/* Правильное и безопасное замедление анимации слайда в Bootstrap 5 */
.carousel-item {
    /* Меняем только скорость перехода, не трогая display и позиции */
    transition: transform 1.0s cubic-bezier(0.42, 0, 0.58, 1) !important;
}

/* На всякий случай фиксируем высоту, чтобы контент не прыгал из-за разного текста */
.about-crew-section .carousel-item {
    min-height: 400px;
}