/* Подключение локального шрифта */
@font-face {
    font-family: 'AvanteTitler Light';
    src: url('../assets/a_AvanteTitlerCpsUpC_Light.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* Сброс стилей и базовые настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'AvanteTitler Light', 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Навигация */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
    color: white;
}

.nav-logo i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #c41e3a, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link:hover {
    color: #ff6b6b;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(45deg, #c41e3a, #ff6b6b);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.cab-link {
    text-decoration: none;
    color: white;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cab-link:hover {
    color: #ff6b6b;
}

/* Секции */
.section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

/* Главная секция */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-text {
    position: absolute;
    left: 5%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    animation: slideInLeft 1s ease-out;
}

.hero-text h1 {
    font-family: 'AvanteTitler Light', sans-serif;
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #90EE90, #98FB98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(144, 238, 144, 0.3);
    line-height: 1.2;
}

.hero-title, .hero-year {
    background: linear-gradient(45deg, #90EE90, #98FB98);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-mobile-scroll {
    display: none;
}



.hero-text p {
    font-size: 1.3rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

@keyframes slideInLeft {
    0% {
        opacity: 0;
        transform: translateY(-50%) translateX(-100px);
    }
    100% {
        opacity: 1;
        transform: translateY(-50%) translateX(0);
    }
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,255,255,0.1)"/><circle cx="80" cy="40" r="1" fill="rgba(255,255,255,0.2)"/><circle cx="40" cy="80" r="1.5" fill="rgba(255,255,255,0.1)"/></svg>');
    animation: float 20s infinite linear;
}

@keyframes float {
    0% { transform: translateY(0px) rotate(0deg); }
    100% { transform: translateY(-100vh) rotate(360deg); }
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-tree {
    position: absolute;
    left: 10%;
    bottom: 50px;
    z-index: 1;
    pointer-events: none;
    max-height: 40vh;
    width: auto;
}



.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    animation: pulse 2s infinite;
    cursor: pointer;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes snowfall {
    0% {
        transform: translateY(-100vh) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* О проекте */
.about-section {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
    overflow: hidden;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    z-index: 1;
}

.section-title {
    font-family: 'AvanteTitler Light', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #c41e3a, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.about-section .section-title {
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.4));
}

.section-subtitle {
    font-size: 1.2rem;
    color: #666;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.about-card {
    background: white;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: left;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #c41e3a, #ff6b6b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    flex-shrink: 0;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.card-divider {
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(196, 30, 58, 0.3), transparent);
    margin: 15px 0;
}

.about-card p {
    color: #666;
    line-height: 1.6;
}

.about-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    max-height: 50%;
    width: auto;
}

.about-left {
    top: 0;
    left: 0;
}

.about-right {
    bottom: 0;
    right: 0;
}

.grinch-decoration {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    max-height: 60%;
    width: auto;
}

.grinch-left-down {
    bottom: 5%;
    left: 1;
}



/* Подписка */
.subscribe-section {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 100px 0;
}

.subscribe-section .section-title,
.subscribe-section .section-subtitle {
    color: white;
}

/* Новые секции */
.section4 {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 100px 0;
    overflow: hidden;
}

.section5 {
    background: linear-gradient(135deg, #0f3d33, #326a61);
    color: white;
    padding: 100px 0;
}

.section5 .section-title,
.section5 .section-subtitle {
    color: white;
}



/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border: none;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    color: #333;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-secondary {
    background: linear-gradient(45deg, #ff6b6b, #ee5a52);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

/* Футер */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.2rem;
}

.footer-links {
    margin: 10px 0;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: white;
    text-decoration: underline;
}

.footer-logo i {
    font-size: 1.5rem;
    background: linear-gradient(45deg, #ffd700, #ffeb3b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand {
    color: green;
}

/* Кнопка наверх */
.scroll-to-top {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: rgba(196, 30, 58, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    writing-mode: vertical-rl;
    text-orientation: upright;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(255, 255, 255, 0.6);
}

.scroll-to-top:hover {
    color: rgba(196, 30, 58, 1);
}

.scroll-to-top:active {
    transform: translateY(-50%) scale(0.95);
}

/* FAQ Аккордеон */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.faq-item {
    background: white;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.faq-question {
    padding: 25px 30px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(196, 30, 58, 0.1);
}

.faq-question:hover {
    background: rgba(196, 30, 58, 0.05);
}

.faq-question h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.faq-question i {
    font-size: 1rem;
    color: #c41e3a;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f8f9fa;
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

.faq-answer p {
    padding: 25px 30px;
    margin: 0;
    color: #666;
    line-height: 1.6;
}

/* Мобильная адаптация FAQ */
@media (max-width: 768px) {
    .faq-question {
        padding: 20px;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
    
    .faq-answer p {
        padding: 20px;
    }
    
    .faq-item.active .faq-answer {
        max-height: none;
    }
}

/* Фоновые знаки вопроса для FAQ секции */
.question-marks-bg::before {
    content: '? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?';
    position: absolute;
    top: 0;
    left: -50px;
    width: 120%;
    height: 100%;
    font-size: 80px;
    color: rgba(196, 30, 58, 0.08);
    font-weight: bold;
    line-height: 250px;
    letter-spacing: 150px;
    word-spacing: 80px;
    transform: rotate(-10deg);
    white-space: pre-wrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.question-marks-bg::after {
    content: '? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?';
    position: absolute;
    top: 120px;
    left: -150px;
    width: 130%;
    height: 100%;
    font-size: 60px;
    color: rgba(196, 30, 58, 0.05);
    font-weight: bold;
    line-height: 300px;
    letter-spacing: 180px;
    word-spacing: 100px;
    transform: rotate(15deg);
    white-space: pre-wrap;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

/* Мобильная адаптация знаков вопроса */
@media (max-width: 768px) {
    .question-marks-bg::before {
        font-size: 50px !important;
        line-height: 180px !important;
        letter-spacing: 80px !important;
        word-spacing: 40px !important;
    }
    
    .question-marks-bg::after {
        font-size: 35px !important;
        line-height: 200px !important;
        letter-spacing: 100px !important;
        word-spacing: 50px !important;
    }
}