/* Стили главной страницы */
@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.hero-section {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-radius: 25px;
    padding: 80px 60px;
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(229, 57, 53, 0.2);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.03) 0%, transparent 70%);
    animation: rotate 25s linear infinite;
    opacity: 0.5;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(1px);
    z-index: 0;
}

.hero-title {
    color: white;
    font-size: 4em;
    font-weight: 800;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
    line-height: 1.1;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    color: #2c3e50;
    font-size: 1.4em;
    max-width: 700px;
    margin: 0 auto 40px;
    position: relative;
    z-index: 2;
    line-height: 1.6;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    border: 1px solid rgba(229, 57, 53, 0.1);
    box-shadow: 0 8px 32px rgba(229, 57, 53, 0.1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.hero-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.4);
}

.hero-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #E53935;
    border: 2px solid rgba(229, 57, 53, 0.3);
}

.hero-btn.secondary:hover {
    background: rgba(229, 57, 53, 0.1);
    border-color: #E53935;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.feature-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    border: 1px solid rgba(229, 57, 53, 0.1);
    box-shadow: 0 8px 32px rgba(229, 57, 53, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(229, 57, 53, 0.2);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #E53935, #FF5252);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 2em;
    color: white;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
}

.feature-title {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 600;
    margin-bottom: 15px;
}

.feature-description {
    color: #7f8c8d;
    line-height: 1.6;
    font-size: 1em;
}

.stats-section {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.05) 0%, rgba(244, 67, 54, 0.05) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    margin-bottom: 50px;
    border: 1px solid rgba(229, 57, 53, 0.1);
    position: relative;
}

.stats-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: 0;
}

.stats-title {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.stats-subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.stat-item {
    background: rgba(255, 255, 255, 0.8);
    border-radius: 15px;
    padding: 30px 20px;
    border: 1px solid rgba(229, 57, 53, 0.1);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(229, 57, 53, 0.2);
}

.stat-number {
    background: linear-gradient(135deg, #E53935, #FF5252);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 2.5em;
    font-weight: 800;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 1.1em;
    font-weight: 500;
}

.cta-section {
    background: linear-gradient(135deg, rgba(229, 57, 53, 0.1) 0%, rgba(244, 67, 54, 0.1) 100%);
    border-radius: 20px;
    padding: 60px 40px;
    text-align: center;
    border: 1px solid rgba(229, 57, 53, 0.2);
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(229, 57, 53, 0.02) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
    z-index: 0;
}

.cta-title {
    color: #2c3e50;
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.cta-subtitle {
    color: #7f8c8d;
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
}

.cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    background: linear-gradient(135deg, #E53935, #FF5252);
    color: white;
    padding: 18px 35px;
    border: none;
    border-radius: 50px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(229, 57, 53, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(229, 57, 53, 0.4);
}

.cta-btn.primary {
    background: linear-gradient(135deg, #E53935, #FF5252);
}

.cta-btn.primary:hover {
    background: linear-gradient(135deg, #FF5252, #E53935);
}

.cta-btn.secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #E53935;
    border: 2px solid rgba(229, 57, 53, 0.3);
}

.cta-btn.secondary:hover {
    background: rgba(229, 57, 53, 0.1);
    border-color: #E53935;
}

/* Медиа-запросы для мобильных устройств */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 20px;
        margin-bottom: 30px;
    }

    .hero-title {
        font-size: 2.5em;
    }

    .hero-subtitle {
        font-size: 1.2em;
        padding: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .feature-card {
        padding: 30px 20px;
    }

    .stats-section {
        padding: 40px 20px;
    }

    .stats-title {
        font-size: 2em;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-section {
        padding: 40px 20px;
    }

    .cta-title {
        font-size: 2em;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-btn {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2em;
    }

    .hero-subtitle {
        font-size: 1.1em;
    }

    .stats-title,
    .cta-title {
        font-size: 1.8em;
    }
}