/* Anja Eliane Font - только для латиницы */
@font-face {
    font-family: 'Anja Eliane';
    src: url('/static/assets/fonts/Anja%20Eliane.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0020-007F, U+00A0-00FF, U+0100-017F, U+0180-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2100-214F;
}

:root {
    /* Основной цвет компании */
    --primary-color: #F7F38E;
    --primary-dark: #E0DC7A;
    --primary-light: #FFFCA5;
    
    /* Темный цвет компании */
    --secondary-color: #18180E;
    --secondary-light: #2A2A1C;
    
    /* Базовые цвета */
    --white: #FFFFFF;
    
    /* Тени */
    --shadow-yellow: 0 4px 15px rgba(247, 243, 142, 0.3);
    
    /* Шрифты */
    --font-main: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-brand: 'Anja Eliane', 'Manrope', 'Inter', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-main);
    color: var(--white);
    background: var(--secondary-color);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Brand names style */
.brand {
    font-family: var(--font-brand);
}

/* Hero Section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
}

/* Video Container */
.video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--secondary-color);
    background-image: url('/static/assets/kbb_nachalo_v4.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.video-container.video-error,
.video-container.video-static {
    /* Показываем картинку если видео не загрузилось или между циклами */
    background-image: url('/static/assets/kbb_nachalo_v4.png');
}

.fullscreen-video {
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
}

/* Telegram Button Container */
.telegram-button-container {
    position: fixed;
    bottom: 130px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 0 2rem;
}

.telegram-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    text-decoration: none;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-yellow);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.telegram-button:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 243, 142, 0.4);
}

.telegram-button:active {
    transform: translateY(0);
}

.telegram-button svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

/* Social Media Buttons */
.social-buttons-container {
    position: fixed;
    bottom: 80px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    z-index: 10;
    padding: 0 2rem;
}

.social-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: rgba(247, 243, 142, 0.1);
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 243, 142, 0.2);
}

.social-button:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(247, 243, 142, 0.3);
}

.social-button:active {
    transform: translateY(0);
}

.social-button svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Minimal Footer - Apple Style */
.minimal-footer {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--secondary-color);
    color: var(--primary-color);
    padding: 1.25rem 2rem;
    text-align: center;
    z-index: 10;
    font-size: 11px;
    font-weight: 300;
    letter-spacing: 0.3px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.minimal-footer:hover {
    opacity: 0.9;
}

.minimal-footer p {
    margin: 0 0 0.5rem 0;
    font-weight: 300;
}

.minimal-footer .copyright-text {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.minimal-footer .copyright-text .spacer {
    display: inline-block;
    width: 100px;
}

.minimal-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.minimal-footer .footer-links a {
    color: rgba(247, 243, 142, 0.7);
    text-decoration: none;
    font-size: 11px;
    font-weight: 300;
    transition: color 0.2s ease;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: bounce 2s infinite;
}

.scroll-arrow {
    width: 30px;
    height: 50px;
    border: 2px solid var(--primary-color);
    border-radius: 25px;
    position: relative;
}

.scroll-arrow::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: var(--primary-color);
    border-radius: 50%;
    animation: scroll-down 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

@keyframes scroll-down {
    0% {
        opacity: 1;
        top: 10px;
    }
    100% {
        opacity: 0;
        top: 30px;
    }
}

/* General Section Styles */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 100px 20px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
}

.section-content.centered {
    text-align: center;
}

.section-title {
    font-size: 3.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: rgba(247, 243, 142, 0.8);
    margin-bottom: 3rem;
    line-height: 1.6;
}

/* Fade In Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-in-up.is-visible,
.fade-in-left.is-visible,
.fade-in-right.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* Map Section */
.map-section {
    background: linear-gradient(180deg, var(--secondary-color) 0%, #0f0f09 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-container {
    width: 100%;
    max-width: 800px;
    margin: 3rem auto;
}

.russia-map {
    width: 100%;
    height: auto;
    filter: drop-shadow(0 10px 30px rgba(247, 243, 142, 0.1));
}

.city {
    cursor: pointer;
    transition: all 0.3s ease;
}

.city:hover circle:first-child {
    r: 12;
}

.map-description {
    font-size: 1.1rem;
    color: rgba(247, 243, 142, 0.7);
    margin-top: 2rem;
    font-weight: 300;
}

/* Fact Sections */
.fact-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.fact-section.dark-bg {
    background: var(--secondary-color);
}

.fact-section.light-bg {
    background: linear-gradient(135deg, #1a1a10 0%, #252519 100%);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse > * {
    direction: ltr;
}

.content-text {
    padding: 2rem;
}

.fact-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.fact-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    font-weight: 300;
}

.fact-stat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.stat-number {
    font-size: 4rem;
    font-weight: 600;
    color: var(--primary-color);
    font-family: var(--font-brand);
    line-height: 1;
}

.stat-label {
    font-size: 0.95rem;
    color: rgba(247, 243, 142, 0.7);
    line-height: 1.4;
    font-weight: 300;
}

.content-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.bee-animation,
.dance-animation,
.quantum-animation {
    width: 100%;
    max-width: 400px;
    height: 400px;
}

.bee-animation svg,
.dance-animation svg,
.quantum-animation svg {
    width: 100%;
    height: 100%;
}

/* Philosophy Section */
.philosophy-section {
    background: linear-gradient(180deg, #0f0f09 0%, var(--secondary-color) 100%);
    padding: 120px 20px;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 4rem 0;
}

.philosophy-card {
    background: rgba(247, 243, 142, 0.05);
    border: 1px solid rgba(247, 243, 142, 0.1);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.philosophy-card:hover {
    background: rgba(247, 243, 142, 0.08);
    border-color: rgba(247, 243, 142, 0.2);
    transform: translateY(-5px);
}

.card-number {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    opacity: 0.5;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.philosophy-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.philosophy-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.philosophy-quote {
    margin-top: 6rem;
    padding: 4rem 2rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.quote-line {
    width: 80px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(247, 243, 142, 0.4), transparent);
    transition: width 0.3s ease;
}

.philosophy-quote:hover .quote-line {
    width: 120px;
}

.quote-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    width: 100%;
}

.quote-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
    opacity: 0.95;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.philosophy-quote:hover .quote-part {
    opacity: 1;
}

.quote-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(247, 243, 142, 0.6);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.quote-main {
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary-color);
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.quote-separator {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, rgba(247, 243, 142, 0.2), transparent);
    margin: 0.5rem 0;
}

/* Livestream Section */
.livestream-section {
    background: var(--secondary-color);
    padding: 120px 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.livestream-badge {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 2rem;
    text-transform: uppercase;
}

.livestream-preview {
    max-width: 800px;
    margin: 3rem auto;
    background: linear-gradient(135deg, rgba(247, 243, 142, 0.05) 0%, rgba(247, 243, 142, 0.02) 100%);
    border: 2px solid rgba(247, 243, 142, 0.1);
    border-radius: 20px;
    padding: 4rem 2rem;
    text-align: center;
}

.countdown-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    padding: 3rem 2rem;
}

.countdown-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(247, 243, 142, 0.6);
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.countdown-timer {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 80px;
}

.countdown-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-brand);
    line-height: 1;
    letter-spacing: -0.02em;
}

.countdown-unit {
    font-size: 0.75rem;
    font-weight: 400;
    color: rgba(247, 243, 142, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.countdown-separator {
    font-size: 2.5rem;
    font-weight: 300;
    color: rgba(247, 243, 142, 0.3);
    line-height: 1;
    margin-top: -1rem;
}

.countdown-date {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(247, 243, 142, 0.7);
    letter-spacing: 0.05em;
}

.newsletter-form {
    max-width: 600px;
    margin: 3rem auto;
    padding: 2rem;
}

.newsletter-form h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    font-weight: 300;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 28px;
    background: rgba(247, 243, 142, 0.1);
    border: 1px solid rgba(247, 243, 142, 0.2);
    border-radius: 25px;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(247, 243, 142, 0.3);
}

.social-link svg {
    width: 24px;
    height: 24px;
}

/* Responsive */
@media (max-width: 768px) {
    .telegram-button-container {
        bottom: 120px;
        padding: 0 1rem;
    }
    
    .telegram-button {
        padding: 10px 20px;
        font-size: 13px;
        gap: 8px;
    }
    
    .telegram-button svg {
        width: 20px;
        height: 20px;
    }
    
    .social-buttons-container {
        bottom: 70px;
        gap: 12px;
    }
    
    .social-button {
        width: 40px;
        height: 40px;
    }
    
    .social-button svg {
        width: 18px;
        height: 18px;
    }
    
    .minimal-footer {
        padding: 1rem;
        font-size: 10px;
    }
    
    .minimal-footer .footer-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Responsive Sections */
    section {
        padding: 60px 20px;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    .split-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .split-content.reverse {
        direction: ltr;
    }
    
    .fact-title {
        font-size: 1.8rem;
    }
    
    .fact-description {
        font-size: 1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .philosophy-grid {
        grid-template-columns: 1fr;
    }
    
    .philosophy-quote {
        margin-top: 3rem;
        padding: 3rem 1.5rem;
        gap: 2rem;
    }
    
    .quote-content {
        gap: 2rem;
    }
    
    .quote-main {
        font-size: 1.5rem;
    }
    
    .quote-label {
        font-size: 0.75rem;
    }
    
    .quote-separator {
        height: 30px;
    }
    
    .quote-line {
        width: 50px;
    }
    
    .social-links {
        flex-direction: column;
    }
    
    .social-link {
        width: 100%;
        justify-content: center;
    }
    
    .countdown-timer {
        gap: 1rem;
    }
    
    .countdown-item {
        min-width: 60px;
    }
    
    .countdown-value {
        font-size: 2.5rem;
    }
    
    .countdown-separator {
        font-size: 2rem;
    }
    
    .countdown-unit {
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .telegram-button-container {
        bottom: 130px;
    }
    
    .telegram-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    
    .social-buttons-container {
        bottom: 80px;
    }
    
    .countdown-timer {
        gap: 0.5rem;
    }
    
    .countdown-item {
        min-width: 50px;
    }
    
    .countdown-value {
        font-size: 2rem;
    }
    
    .countdown-separator {
        font-size: 1.5rem;
        margin-top: -0.5rem;
    }
    
    .countdown-unit {
        font-size: 0.6rem;
    }
    
    .countdown-label {
        font-size: 0.75rem;
    }
}
