:root {
    --primary-color: #2563eb;
    --primary-light: #3b82f6;
    --secondary-color: #10b981;
    --secondary-dark: #059669;
    --red-color: #ff4444;
    --red-dark: #dc2626;
    --accent-color: #f59e0b;
    --accent-light: #fcd34d;
    --dark-color: #1e293b;
    --light-color: #f8fafc;
    --gray-color: #64748b;
    --telegram-color: #0088cc;
    --telegram-hover: #0077b5;
    --border-radius: 12px;
    --box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    --box-shadow-hover: 0 8px 25px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* Базовые стили */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--light-color);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero секция */
.hero {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 0;
    position: relative;
    z-index: 2;
}

.badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.25);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.badge.pulse {
    animation: pulse 2s infinite;
}

.title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3);
}

.title .highlight {
    color: var(--accent-color);
    position: relative;
    display: inline-block;
}

.title .highlight::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 0;
    width: 100%;
    height: 8px;
    background: rgba(245, 158, 11, 0.3);
    z-index: -1;
    border-radius: 4px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.5rem;
}

.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.hero-decoration .circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.hero-decoration .circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.hero-decoration .circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
}

.hero-decoration .circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
}

/* Основные кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.2rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    text-align: center;
    min-width: 200px;
    box-shadow: var(--box-shadow);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-right: 0.7rem;
    font-size: 1.1rem;
}

.btn-red {
    background: var(--red-color);
    color: white;
}

.btn-red:hover {
    background: var(--red-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-green {
    background: var(--secondary-color);
    color: white;
}

.btn-green:hover {
    background: var(--secondary-dark);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--red-color), var(--accent-color));
    color: white;
}

.btn-gradient:hover {
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
    background: linear-gradient(135deg, var(--red-dark), var(--accent-light));
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.2rem;
}

/* Эффекты кнопок */
.glow-on-hover::before {
    content: '';
    background: linear-gradient(
        45deg,
        #ff0000, #ff7300, #fffb00, #48ff00,
        #00ffd5, #002bff, #7a00ff, #ff00c8, #ff0000
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 400%;
    z-index: -1;
    filter: blur(5px);
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    border-radius: var(--border-radius);
    animation: glowing 20s linear infinite;
}

.glow-on-hover:hover::before {
    opacity: 0.3;
}

.pulse-on-hover:hover {
    animation: pulse 1s infinite;
}

.floating {
    animation: floating 3s ease-in-out infinite;
}

/* Анимации */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes glowing {
    0% { background-position: 0 0; }
    50% { background-position: 400% 0; }
    100% { background-position: 0 0; }
}

@keyframes floating {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

@keyframes heartbeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.1); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* Стили для кнопок платформ */
.platform-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin: 3rem 0;
    flex-wrap: wrap;
}

.platform-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
    min-width: 200px;
    position: relative;
    overflow: hidden;
}

.platform-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.platform-btn:hover::after {
    opacity: 1;
}

.platform-btn i {
    font-size: 1.3rem;
}

.platform-btn-main {
    background-color: var(--primary-color);
    color: white;
    border: 1px solid var(--primary-light);
}

.platform-btn-main:hover {
    background-color: var(--primary-light);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

.platform-btn.telegram-btn {
    background-color: var(--telegram-color);
    border: 1px solid var(--telegram-hover);
}

.platform-btn.telegram-btn:hover {
    background-color: var(--telegram-hover);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* CTA секция */
.cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, var(--light-color), #e2e8f0);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--red-color), var(--accent-color));
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
    font-weight: 800;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gray-color);
}

/* Donate баннер */
.donate-banner {
    padding: 4rem 0;
    background: white;
    position: relative;
}

.donate-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to right, var(--secondary-color), var(--primary-color));
}

.donate-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 2.5rem;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.donate-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20,20 L80,20 L80,80 L20,80 Z' fill='none' stroke='%23f59e0b' stroke-width='2' stroke-dasharray='5,5'/%3E%3C/svg%3E");
    opacity: 0.1;
}

.donate-heart {
    font-size: 3rem;
    color: var(--red-color);
    min-width: 80px;
    text-align: center;
}

.donate-heart.heartbeat {
    animation: heartbeat 1.5s infinite;
}

.donate-text {
    flex: 1;
    min-width: 250px;
}

.donate-text h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--dark-color);
    font-weight: 700;
}

.donate-text p {
    color: var(--gray-color);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Кнопки загрузки приложения */
.app-download {
    margin-top: 4rem;
    text-align: center;
    padding: 3rem 0;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.app-download::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 10px;
    background: linear-gradient(to right, var(--primary-color), var(--secondary-color));
}

.app-download h3 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    display: inline-block;
}

.app-download h3::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-color);
    border-radius: 3px;
}

.app-buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.app-btn {
    min-width: 180px;
    padding: 1rem 1.5rem;
}

.app-qr-codes {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.qr-code {
    background: white;
    padding: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.qr-code:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow-hover);
}

.qr-code img {
    width: 120px;
    height: 120px;
    display: block;
}

/* Анимации появления */
.fade-in {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.animated {
    opacity: 1;
}

.slide-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.slide-up.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .title {
        font-size: 3rem;
    }
    .hero-subtitle {
        font-size: 1.2rem;
    }
    .hero-decoration .circle-1 {
        width: 250px;
        height: 250px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 80px 0;
    }
    .hero-content {
        padding: 40px 0;
    }
    .title {
        font-size: 2.5rem;
    }
    .hero-actions, .app-buttons, .platform-links {
        flex-direction: column;
        align-items: center;
    }
    .platform-btn, .btn {
        width: 100%;
        max-width: 280px;
    }
    .donate-content {
        text-align: center;
        justify-content: center;
        gap: 1.5rem;
        padding: 2rem;
    }
    .donate-heart {
        margin: 0 auto;
    }
    .app-qr-codes {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 60px 0;
    }
    .title {
        font-size: 2rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .badge {
        font-size: 0.8rem;
        padding: 8px 16px;
    }
    .btn, .platform-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.95rem;
        min-width: auto;
    }
    .cta-content h2 {
        font-size: 2rem;
    }
    .donate-text h3 {
        font-size: 1.5rem;
    }
}

/* Стиль для PWA режима */
@media all and (display-mode: standalone) {
    #appDownloadSection {
        display: none !important;
    }
}