* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #e0e0e0;
    background: #0a0a0a;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}




/* Пауза анимации при наведении */
.carousel-container:hover ~ .carousel-indicators::before,
.team-member:hover ~ .carousel-indicators::before {
    animation-play-state: paused;
}

/* Стили для активного состояния при ручной навигации */
.carousel-arrow:active,
.indicator:active {
    transform: scale(0.95);
    transition: transform 0.1s ease;
}

/* Анимация для летающих фонариков */
@keyframes flyUp {
    0% {
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
    10% {
        opacity: 0.3;
    }
    90% {
        opacity: 0.2;
    }
    100% {
        transform: translateY(-100px) scale(1);
        opacity: 0;
    }
}

.flying-flame {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, #ff4500, #ff8c00, transparent 70%);
    pointer-events: none;
}

/* Титульный экран */
.title-section {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffd700;
    position: relative;
    overflow: hidden;
}

.title-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b00 50%, #1a0000 100%);
    z-index: 0;
}

.title-content h1.phoenix-title {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-shadow:
        0 0 20px #ff4500,
        0 0 40px #ff8c00,
        0 0 60px #ffd700;
    background: linear-gradient(45deg, #ffd700, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    z-index: 2;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        text-shadow:
            0 0 20px #ff4500,
            0 0 40px #ff8c00,
            0 0 60px #ffd700;
    }
    100% {
        text-shadow:
            0 0 30px #ff8c00,
            0 0 60px #ff4500,
            0 0 90px #ff0000;
    }
}

.title-subtitle {
    font-size: 1.3rem;
    margin-bottom: 3rem;
    color: #ffa500;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.5);
    position: relative;
    z-index: 2;
}

.donate-button {
    display: inline-block;
    padding: 18px 45px;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ff0000);
    color: #000;
    text-decoration: none;
    border-radius: 50px;
    font-size: 1.3rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    position: relative;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.fire-glow {
    box-shadow:
        0 0 20px #ff8c00,
        0 0 40px #ff4500,
        0 0 60px #ff0000;
    animation: buttonPulse 2s ease-in-out infinite alternate;
}

@keyframes buttonPulse {
    0% {
        box-shadow:
            0 0 20px #ff8c00,
            0 0 40px #ff4500,
            0 0 60px #ff0000;
    }
    100% {
        box-shadow:
            0 0 30px #ff8c00,
            0 0 60px #ff4500,
            0 0 90px #ff0000;
    }
}

.donate-button:hover {
    transform: translateY(-3px) scale(1.05);
    animation: none;
    box-shadow:
        0 0 40px #ff8c00,
        0 0 80px #ff4500,
        0 0 120px #ff0000;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ff8c00;
    text-decoration: none;
    z-index: 2;
}

.scroll-arrow {
    width: 30px;
    height: 30px;
    border-right: 3px solid #ff8c00;
    border-bottom: 3px solid #ff8c00;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% {
        transform: rotate(45deg) translate(0, 0);
    }
    50% {
        transform: rotate(45deg) translate(-10px, -10px);
    }
}

/* О фонде */
.about-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
    position: relative;
}

.about-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}

.section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 4rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ffd700, #ff4500);
}

.about-text {
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-align: center;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    color: #ccc;
}

.golden-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 215, 0, 0.3);
    padding: 3rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.golden-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.1), transparent);
    transition: left 0.6s ease;
}

.golden-card:hover::before {
    left: 100%;
}

.mission h3 {
    color: #ff8c00;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 1.8rem;
    text-shadow: 0 0 5px rgba(255, 140, 0, 0.5);
}

.usage-icon i {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-title i {
    margin-right: 10px;
    color: #ff6b00;
}

.method-icon i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: #ff8c00;
}

/* Анимация при наведении для иконок */
.usage-item:hover .usage-icon i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.method-card:hover .method-icon i {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

/* Пожертвования */
.donate-section {
    padding: 120px 0;
    background: linear-gradient(180deg, #0a0a0a 0%, #1a0000 100%);
    position: relative;
}

.help-category {
    margin-bottom: 4rem;
}

.category-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2.5rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
    position: relative;
    padding-bottom: 15px;
}

.category-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 150px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}

.funds-usage {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.usage-item {
    background: linear-gradient(135deg, rgba(255, 69, 0, 0.08), rgba(255, 140, 0, 0.05));
    border: 1px solid rgba(255, 69, 0, 0.25);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    transform: translateY(0);
}

.usage-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff8c00, #ffd700);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.usage-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.usage-item:hover {
    transform: translateY(-12px) scale(1.03);
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow:
        0 15px 40px rgba(255, 69, 0, 0.25),
        0 5px 20px rgba(255, 140, 0, 0.2),
        inset 0 0 60px rgba(255, 69, 0, 0.1);
}

.usage-item:hover::before {
    transform: scaleX(1);
}

.usage-item:hover::after {
    left: 100%;
}

.usage-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(255, 140, 0, 0.3));
    transition: all 0.3s ease;
}

.usage-item:hover .usage-icon {
    transform: scale(1.2) rotate(5deg);
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.5));
}

.usage-item h3 {
    color: #ffd700;
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.usage-item:hover h3 {
    color: #ff8c00;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.usage-item p {
    color: #ccc;
    line-height: 1.7;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.usage-item:hover p {
    color: #e0e0e0;
}

.fire-card {
    background: rgba(255, 69, 0, 0.05);
    border: 1px solid rgba(255, 69, 0, 0.2);
    padding: 2.5rem 2rem;
    border-radius: 15px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.fire-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #ff4500, #ff8c00, #ffd700);
}

.fire-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 140, 0, 0.5);
    box-shadow:
        0 10px 30px rgba(255, 69, 0, 0.2),
        inset 0 0 50px rgba(255, 69, 0, 0.1);
}

.donate-btn-large {
    display: block;
    margin: 0 auto;
    padding: 22px 70px;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ff0000);
    color: #000;
    border: none;
    border-radius: 50px;
    font-size: 1.4rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.donate-btn-large:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow:
        0 0 40px #ff8c00,
        0 0 80px #ff4500,
        0 0 120px #ff0000;
}

/* ===== СТИЛИ ДЛЯ КАРУСЕЛИ КОМАНДЫ ===== */
.team-section {
    padding: 120px 0 320px; /* Увеличили нижний padding */
    min-height: auto; /* Убираем фиксированную высоту */
    margin-bottom: 80px; /* Добавляем дополнительный отступ */
    padding-bottom: 100px !important; /* Огромный отступ снизу */
    background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
    position: relative;
}


.team-background-extension {
    position: absolute;
    bottom: -82px;
    left: 0;
    width: 100%;
    height: 82px;
    background: linear-gradient(180deg, #1a0000 0%, #0a0a0a 100%);
    z-index: 9;
}

.team-section::after {
    content: '';
    position: absolute;
    bottom: -82px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ff4500, #ff8c00, #ffd700, #ff8c00, #ff4500, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    z-index: 10;
}


.team-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ff8c00, transparent);
}
/* СТАЛО (исправлено): */
.team-section::after {
    content: '';
    position: absolute;
    bottom: -82px;
    left: 10%;
    width: 80%;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #ff4500, #ff8c00, #ffd700, #ff8c00, #ff4500, transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
    z-index: 10;
}


.team-subtitle {
    text-align: center;
    color: #ffa500;
    font-size: 1.2rem;
    margin-bottom: 3rem;
    text-shadow: 0 0 10px rgba(255, 165, 0, 0.3);
}

.team-carousel {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 4rem;
    padding: 0 80px;
}

.carousel-container {
    overflow: hidden;
    border-radius: 20px;
}

.carousel-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    gap: 2rem;
    padding: 3rem 0;
    align-items: center;
}

.team-member {
    flex: 0 0 280px;
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
}

/* Боковые элементы - тусклые и меньше */
.team-member:not(.active) {
    opacity: 0.6;
    transform: scale(0.85);
    filter: brightness(0.7);
}

/* Центральный элемент - выделенный */
.team-member.active {
    opacity: 1;
    transform: scale(1.1);
    filter: brightness(1);
    z-index: 10;
}

.member-photo {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Стили для активного (центрального) элемента */
.team-member.active .member-photo {
    border: 4px solid transparent;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ffd700, #ff8c00);
    background-clip: padding-box;
    box-shadow:
        0 0 40px rgba(255, 140, 0, 0.6),
        0 20px 60px rgba(255, 69, 0, 0.4),
        inset 0 0 60px rgba(255, 69, 0, 0.1);
    transform: translateY(-15px);
}

.member-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.team-member.active .member-photo img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(255, 140, 0, 0.2), rgba(255, 215, 0, 0.1));
    opacity: 0;
    transition: opacity 0.5s ease;
}

.team-member.active .photo-overlay {
    opacity: 1;
}

.member-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: bold;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.4);
    transform: translateY(-10px);
    opacity: 0;
    transition: all 0.5s ease;
    z-index: 2;
}

.team-member.active .member-badge {
    transform: translateY(0);
    opacity: 1;
}

/* Стрелки карусели */
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.4);
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 30px rgba(255, 69, 0, 0.6);
}

.carousel-prev {
    left: 10px;
}

.carousel-next {
    right: 10px;
}

/* Контейнер информации */
.member-info-container {
    max-width: 700px;
    margin: 0 auto 3rem;
    min-height: 280px;
    position: relative;
}

.member-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    text-align: center;
}

.member-info.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

.member-name {
    font-size: 2.8rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.member-role {
    font-size: 1.6rem;
    color: #ff8c00;
    margin-bottom: 2rem;
    font-weight: bold;
    text-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}

.member-divider {
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, #ff4500, #ffd700, #ff4500);
    margin: 0 auto 2.5rem;
    border-radius: 2px;
}

.member-description {
    color: #e0e0e0;
    line-height: 1.8;
    margin-bottom: 2.5rem;
    font-size: 1.2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.member-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 2.5rem;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.2rem;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
    margin-bottom: 0.8rem;
}

.stat-label {
    font-size: 1rem;
    color: #ccc;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* Индикаторы */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 140, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    transform: scale(1.4);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.6);
}

.indicator:hover {
    background: rgba(255, 140, 0, 0.6);
    transform: scale(1.3);
}


/* ===== МОДАЛЬНОЕ ОКНО ПОЖЕРТВОВАНИЙ ===== */

.donation-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.donation-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #1a0000 0%, #0a0a0a 100%);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow:
        0 0 50px rgba(255, 69, 0, 0.3),
        0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.donation-modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    padding: 25px 30px;
    border-radius: 18px 18px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    position: sticky;
    top: 0;
    z-index: 2;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.close-modal {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 30px;
}

/* Способы оплаты */
.payment-methods {
    margin-bottom: 30px;
}

.payment-methods h4 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.methods-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.method-card {
    background: rgba(255, 69, 0, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 15px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #ccc;
}

.method-card:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
}

.method-card.active {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border-color: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.method-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.method-card span {
    font-weight: bold;
    font-size: 0.9rem;
}

/* Выбор суммы */
.amount-section {
    margin-bottom: 30px;
}

.amount-section h4 {
    color: #ffd700;
    margin-bottom: 20px;
    text-align: center;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.amount-buttons {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 25px;
}

.amount-btn {
    background: rgba(255, 69, 0, 0.1);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    padding: 15px 10px;
    color: #ffd700;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.amount-btn:hover {
    background: rgba(255, 69, 0, 0.2);
    border-color: rgba(255, 140, 0, 0.6);
    transform: translateY(-2px);
}

.amount-btn.active {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border-color: #ffd700;
    color: #000;
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

.custom-amount label {
    display: block;
    color: #ff8c00;
    margin-bottom: 10px;
    font-weight: bold;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

#customAmount {
    flex: 1;
    background: rgba(255, 69, 0, 0.05);
    border: 2px solid rgba(255, 140, 0, 0.3);
    border-radius: 12px;
    padding: 15px 50px 15px 20px;
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: bold;
    outline: none;
    transition: all 0.3s ease;
}

#customAmount:focus {
    border-color: rgba(255, 140, 0, 0.6);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.3);
}

#customAmount::placeholder {
    color: rgba(255, 215, 0, 0.5);
}

.currency {
    position: absolute;
    right: 20px;
    color: #ffd700;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Кнопка подтверждения */
.confirm-donation {
    width: 100%;
    padding: 18px;
    background: linear-gradient(45deg, #ff8c00, #ff4500, #ff0000);
    border: none;
    border-radius: 12px;
    color: #000;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.confirm-donation:hover {
    transform: translateY(-2px);
    box-shadow:
        0 0 30px #ff8c00,
        0 0 60px #ff4500;
}

/* Адаптивность */
@media (max-width: 480px) {
    .methods-grid {
        grid-template-columns: 1fr;
    }

    .amount-buttons {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .modal-header {
        padding: 20px 25px;
    }

    .modal-body {
        padding: 25px;
    }

    .modal-header h3 {
        font-size: 1.3rem;
    }
}



/* Чат поддержки */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.5);
    color: white;
    font-size: 24px;
    position: relative;
    transition: all 0.3s ease;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.7);
}

.chat-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
}

.chat-container.active {
    transform: translateY(0);
    opacity: 1;
}

.chat-header {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 15px;
    display: flex;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    display: block;
    margin-top: 5px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
}

.chat-input input:focus {
    border-color: #ff8c00;
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Футер */
.footer {
    background: linear-gradient(180deg, #1a0000 0%, #000 100%);
    color: #ccc;
    padding: 100px 0 40px;
    text-align: center;
    border-top: 1px solid rgba(255, 69, 0, 0.3);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    color: #ff8c00;
    margin-bottom: 20px;
    font-size: 18px;
}

.footer-title {
    margin-bottom: 3rem;
    font-size: 2rem;
    color: #ffd700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.footer-text {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 20px;
}

.contact-info {
    margin-bottom: 3rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ccc;
}

.contact-item i {
    color: #ff8c00;
    width: 16px;
}

.contact-item a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a:hover {
    color: #ff8c00;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff8c00;
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-links {
    display: flex;
    gap: 20px;
}

.footer-bottom-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-bottom-links a:hover {
    color: #ff8c00;
}

.copyright {
    margin-top: 3rem;
    opacity: 0.7;
    color: #ff8c00;
}

/* Соцсети */
.social-links-compact {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.social-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    text-decoration: none;
    color: #ccc;
    transition: all 0.3s ease;
    background: rgba(255, 69, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.social-compact::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 69, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.social-compact:hover::before {
    left: 100%;
}

.social-compact:hover {
    background: rgba(255, 69, 0, 0.1);
    border-color: rgba(255, 140, 0, 0.6);
    color: #ffd700;
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.3);
}

.social-icon {
    font-size: 1.2rem;
}

.fire-hover:hover {
    color: #ff8c00;
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .team-carousel {
        padding: 0 70px;
        max-width: 800px;
    }

    .member-photo {
        width: 240px;
        height: 240px;
    }

    .team-member {
        flex: 0 0 240px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .title-content h1.phoenix-title {
        font-size: 2.8rem;
    }

    .title-subtitle {
        font-size: 1.1rem;
    }

    .donate-button {
        padding: 15px 35px;
        font-size: 1.1rem;
    }

    .about-section,
    .donate-section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.2rem;
    }

    .social-links-compact {
        gap: 10px;
    }
        /* Стили для чата */
        .chat-widget {
            position: fixed;
            bottom: 30px;
            right: 30px;
            z-index: 1000;
        }

        .chat-icon {
            width: 60px;
            height: 60px;
            background: linear-gradient(45deg, #ff8c00, #ff4500);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            box-shadow: 0 5px 20px rgba(255, 69, 0, 0.5);
            color: white;
            font-size: 24px;
            position: relative;
            transition: all 0.3s ease;
        }

        .chat-icon:hover {
            transform: scale(1.1);
            box-shadow: 0 8px 25px rgba(255, 69, 0, 0.7);
        }

        .chat-notification {
            position: absolute;
            top: 0;
            right: 0;
            width: 12px;
            height: 12px;
            background: #00ff00;
            border-radius: 50%;
            border: 2px solid white;
        }

        .chat-container {
            position: absolute;
            bottom: 70px;
            right: 0;
            width: 350px;
            height: 500px;
            background: white;
            border-radius: 15px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            display: none;
            flex-direction: column;
            overflow: hidden;
            transform: translateY(20px);
            opacity: 0;
            transition: all 0.3s ease;
        }

        .chat-container.active {
            transform: translateY(0);
            opacity: 1;
        }

        .chat-header {
            background: linear-gradient(45deg, #ff8c00, #ff4500);
            color: white;
            padding: 15px 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .chat-header h3 {
            margin: 0;
            font-size: 16px;
        }

        .close-chat {
            background: none;
            border: none;
            color: white;
            cursor: pointer;
            font-size: 18px;
        }

        .chat-messages {
            flex: 1;
            padding: 20px;
            overflow-y: auto;
            background: #f8f9fa;
        }

        .message {
            margin-bottom: 15px;
            display: flex;
        }

        .user-message {
            justify-content: flex-end;
        }

        .bot-message {
            justify-content: flex-start;
        }

        .message-content {
            max-width: 80%;
            padding: 12px 15px;
            border-radius: 15px;
            position: relative;
        }

        .user-message .message-content {
            background: linear-gradient(45deg, #ff8c00, #ff4500);
            color: white;
            border-bottom-right-radius: 5px;
        }

        .bot-message .message-content {
            background: white;
            color: #333;
            border-bottom-left-radius: 5px;
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
        }

        .message-time {
            font-size: 11px;
            opacity: 0.7;
            display: block;
            margin-top: 5px;
        }

        .chat-input {
            padding: 15px;
            border-top: 1px solid #eee;
            display: flex;
            gap: 10px;
        }

        .chat-input input {
            flex: 1;
            padding: 12px 15px;
            border: 1px solid #ddd;
            border-radius: 25px;
            outline: none;
        }

        .chat-input input:focus {
            border-color: #ff8c00;
        }

        .chat-input button {
            width: 45px;
            height: 45px;
            background: linear-gradient(45deg, #ff8c00, #ff4500);
            border: none;
            border-radius: 50%;
            color: white;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        /* Стили для улучшенного футера */
        .footer-content {
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 40px;
            margin-bottom: 40px;
        }

        .footer-section h4 {
            color: #ff8c00;
            margin-bottom: 20px;
            font-size: 18px;
        }

        .footer-text {
            color: #ccc;
            line-height: 1.6;
            margin-bottom: 20px;
        }

        .contact-item {
            display: flex;
            align-items: center;
            gap: 10px;
            margin-bottom: 12px;
            color: #ccc;
        }

        .contact-item i {
            color: #ff8c00;
            width: 16px;
        }

        .contact-item a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .contact-item a:hover {
            color: #ff8c00;
        }

        .footer-links {
            list-style: none;
            padding: 0;
            margin: 0;
        }

        .footer-links li {
            margin-bottom: 10px;
        }

        .footer-links a {
            color: #ccc;
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-links a:hover {
            color: #ff8c00;
            padding-left: 5px;
        }

        .footer-bottom {
            border-top: 1px solid #333;
            padding-top: 20px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .footer-bottom-links {
            display: flex;
            gap: 20px;
        }

        .footer-bottom-links a {
            color: #ccc;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
        }

        .footer-bottom-links a:hover {
            color: #ff8c00;
        }

        /* Адаптивность */
        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
            }

            .footer-bottom {
                flex-direction: column;
                gap: 15px;
                text-align: center;
            }

            .chat-container {
                width: 300px;
                height: 400px;
            }
        }
    }
/* Стили для чата поддержки - ИСПРАВЛЕННЫЕ */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 10000;
}

.chat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(255, 69, 0, 0.5);
    color: white;
    font-size: 24px;
    position: relative;
    transition: all 0.3s ease;
    z-index: 10000;
}

.chat-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(255, 69, 0, 0.7);
}

.chat-notification {
    position: absolute;
    top: 0;
    right: 0;
    width: 12px;
    height: 12px;
    background: #00ff00;
    border-radius: 50%;
    border: 2px solid white;
}

.chat-container {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    display: none;
    flex-direction: column;
    overflow: hidden;
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10001;
}

.chat-container.active {
    display: flex;
    transform: translateY(0);
    opacity: 1;
}

/* ШАПКА ЧАТА - ИСПРАВЛЕННАЯ */
.chat-header {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.close-chat {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
}

.close-chat:hover {
    background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    display: flex;
    margin-bottom: 0;
}

.user-message {
    justify-content: flex-end;
}

.bot-message {
    justify-content: flex-start;
}

.message-content {
    max-width: 80%;
    padding: 12px 15px;
    border-radius: 15px;
    position: relative;
}

.user-message .message-content {
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    color: white;
    border-bottom-right-radius: 5px;
}

.bot-message .message-content {
    background: white;
    color: #333;
    border-bottom-left-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid #e9ecef;
}

.message-content p {
    margin: 0 0 5px 0;
    line-height: 1.4;
}

.message-time {
    font-size: 11px;
    opacity: 0.7;
    display: block;
    text-align: right;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
    background: white;
    position: relative;
    z-index: 2;
}

.chat-input input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 25px;
    outline: none;
    font-size: 14px;
}

.chat-input input:focus {
    border-color: #ff8c00;
    box-shadow: 0 0 0 2px rgba(255, 140, 0, 0.1);
}

.chat-input button {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #ff8c00, #ff4500);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-input button:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(255, 69, 0, 0.4);
}

/* Полоса прокрутки для чата */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: rgba(255, 69, 0, 0.1);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(255, 140, 0, 0.5);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 140, 0, 0.7);
}
/* Легкий CSS эффект вместо WebGL */
.mouse-trail {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    pointer-events: none;
    width: 50%;
    height: 50%;
}

.trail-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff4500;
    border-radius: 50%;
    pointer-events: none;
    opacity: 5.7;
    animation: fadeOut 1s forwards;
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: scale(1.5);
    }
}


/* Стили для кнопки Тинькофф в модальном окне */
.methods-grid {
    display: flex;
    justify-content: center;
}

.method-card[data-method="tinkoff"] {
    width: 200px;
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    color: white;
    border-radius: 15px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.method-card[data-method="tinkoff"]:hover,
.method-card[data-method="tinkoff"].active {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(255, 107, 0, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.method-card[data-method="tinkoff"] .method-icon {
    font-size: 2.5rem;
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.method-card[data-method="tinkoff"] span {
    font-weight: bold;
    font-size: 1.2rem;
}

.confirm-donation {
    width: 100%;
    padding: 20px;
    font-size: 1.3rem;
    background: linear-gradient(135deg, #ff6b00, #ff4500);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.confirm-donation:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 107, 0, 0.5);
}
/* Стили для хедера соглашения */
.agreement-header {
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 69, 0, 0.3);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.back-to-main {
    color: #ff8c00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1rem;
    white-space: nowrap;
}

.back-to-main:hover {
    color: #ff4500;
    transform: translateX(-5px);
}

.header-logo h1 {
    color: #ff8c00;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    text-align: center;
    flex: 1;
}

/* Стили для блока авторизации */
.auth-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Кнопка входа через Telegram */
.telegram-login-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4500, #ff8c00);
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.telegram-login-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;
}

.telegram-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    border-color: rgba(255, 140, 0, 0.8);
}

.telegram-login-btn i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.telegram-login-btn:hover::before {
    left: 100%;
}

/* Аватар пользователя */
.user-avatar {
    position: relative;
    cursor: pointer;
}

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
    transition: all 0.3s ease;
}

.user-avatar:hover img {
    border-color: #ff4500;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(255, 140, 0, 0.5);
}

/* Выпадающее меню пользователя */
.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    min-width: 200px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1001;
}

.user-avatar:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    padding: 1rem;
}

.user-info {
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.user-info span {
    display: block;
    color: #ff8c00;
    font-weight: 600;
    font-size: 1rem;
}

.user-info small {
    color: #ccc;
    font-size: 0.8rem;
}

/* Кнопка выхода */
.logout-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 8px;
    color: #ff8c00;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    border-color: rgba(255, 69, 0, 0.5);
    color: #ff4500;
    transform: translateX(5px);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .header-logo h1 {
        font-size: 1.3rem;
    }
    
    .telegram-login-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .telegram-login-btn span {
        display: none;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    .telegram-login-btn i {
        font-size: 1.1rem;
    }
    
    .user-avatar img {
        width: 40px;
        height: 40px;
    }
}
.user-avatar {
    position: relative;
    cursor: pointer;
    display: none; /* Изначально скрыт */
}

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
    transition: all 0.3s ease;
}

/* Улучшения для хедера */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.back-to-main {
    color: #ff8c00;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 700;
    font-size: 1.1rem;
}

.back-to-main:hover {
    color: #ff4500;
    transform: translateX(-5px);
}

.header-logo h1 {
    color: #ff8c00;
    font-size: 1.5rem;
    margin: 0;
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

/* Стили для кнопки Telegram */
.telegram-login-btn {
    background: linear-gradient(135deg, #ff6b00, #ff4500, #ff8c00);
    border: 2px solid rgba(255, 140, 0, 0.5);
    border-radius: 25px;
    padding: 12px 24px;
    color: white;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 0, 0.3);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.telegram-login-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;
}

.telegram-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 107, 0, 0.5);
    border-color: rgba(255, 140, 0, 0.8);
}

.telegram-login-btn:hover::before {
    left: 100%;
}

.telegram-login-btn i {
    font-size: 1.2rem;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.telegram-login-btn span {
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Аватар пользователя */
.user-avatar {
    position: relative;
    cursor: pointer;
    display: none; /* Изначально скрыт */
}

.user-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #ff8c00;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
}

.user-avatar:hover img {
    border-color: #ff4500;
    box-shadow: 0 0 15px rgba(255, 69, 0, 0.7);
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.user-avatar:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-content {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 69, 0, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(255, 69, 0, 0.2);
}

.user-info {
    text-align: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 69, 0, 0.2);
}

.user-info span {
    color: #ff8c00;
    font-weight: 600;
    display: block;
    margin-bottom: 0.25rem;
}

.user-info small {
    color: #ccc;
    font-size: 0.8rem;
}

.logout-btn {
    background: rgba(255, 69, 0, 0.2);
    border: 1px solid rgba(255, 69, 0, 0.4);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    color: #ff8c00;
    width: 100%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.logout-btn:hover {
    background: rgba(255, 69, 0, 0.3);
    border-color: #ff4500;
    color: #ff4500;
    transform: translateY(-1px);
}

/* Стили для модального окна Telegram авторизации */
#telegram-auth-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(15px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

#telegram-auth-modal > div {
    background: rgba(30, 30, 30, 0.95);
    border: 2px solid rgba(255, 69, 0, 0.4);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    max-width: 400px;
    width: 90%;
    position: relative;
    box-shadow: 0 25px 50px rgba(255, 69, 0, 0.3);
    color: white;
}

#telegram-auth-modal button {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4500;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

#telegram-auth-modal button:hover {
    background: #ff8c00;
    transform: scale(1.1);
}

#telegram-auth-modal > div > div:first-child {
    margin-bottom: 2rem;
}

#telegram-auth-modal > div > div:first-child > div {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff8c00, #ff4500);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.5);
}

#telegram-auth-modal > div > div:first-child > div i {
    font-size: 28px;
    color: white;
}

#telegram-auth-modal h3 {
    margin-bottom: 10px;
    color: #ff8c00;
    font-size: 1.5rem;
}

#telegram-auth-modal p {
    color: #ccc;
    margin-bottom: 0;
    font-size: 0.9rem;
}

#telegram-widget-container {
    min-height: 50px;
    margin: 20px 0;
}

/* Скрываем огоньки в модальном окне */
#telegram-auth-modal .flame,
#telegram-auth-modal .flames-container {
    display: none !important;
}

/* Стили для Telegram виджета внутри модального окна */
#telegram-widget-container iframe {
    border-radius: 12px !important;
    border: 1px solid rgba(255, 140, 0, 0.3) !important;
    box-shadow: 0 5px 15px rgba(255, 69, 0, 0.2) !important;
}

/* Адаптивность для модального окна */
@media (max-width: 480px) {
    #telegram-auth-modal > div {
        padding: 1.5rem 1rem;
    }
    
    #telegram-auth-modal h3 {
        font-size: 1.3rem;
    }
    
    #telegram-auth-modal > div > div:first-child > div {
        width: 50px;
        height: 50px;
    }
    
    #telegram-auth-modal > div > div:first-child > div i {
        font-size: 24px;
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .telegram-login-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .telegram-login-btn span {
        display: none;
    }
    
    .telegram-login-btn i {
        font-size: 1.1rem;
        margin: 0;
    }
    
    .user-avatar img {
        width: 40px;
        height: 40px;
    }
    
    #telegram-auth-modal > div {
        padding: 30px 20px;
    }
}
