/* ============================================
 *  HOME PAGE
 *  ============================================ */

/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--d-bg-elevated) 0%, var(--d-bg) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--d-primary-soft) 0%, transparent 70%);
    pointer-events: none;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

/* На ПК видео справа */
.hero__media {
    order: 2;
    display: flex;
    justify-content: center;
}

.hero__content {
    order: 1;
}

.hero__title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--d-text-secondary);
    line-height: 1.75;
    margin-bottom: 2rem;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Video Circle с poster */
.video-circle {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--d-bg-card);
    box-shadow: var(--d-shadow-xl);
    background: var(--d-bg-elevated);
}

.video-circle video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: var(--d-bg-elevated);
}

.video-circle .d-video-player__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
    opacity: 1;
    transition: opacity var(--d-transition);
}

.video-circle.playing .d-video-player__overlay {
    opacity: 0;
}

.video-circle:hover .d-video-player__overlay {
    opacity: 1;
}

.video-circle .d-video-player__play {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--d-primary);
    border: 4px solid var(--d-bg-card);
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    transition: all var(--d-transition);
    box-shadow: var(--d-shadow-lg);
}

.video-circle .d-video-player__play:hover {
    background: var(--d-primary-dark);
    transform: scale(1.05);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.25rem;
}

/* Stats Section */
.stats-section {
    padding: 2.5rem 0;
    background: linear-gradient(135deg, var(--d-primary), var(--d-primary-dark));
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat__value {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.stat__label {
    font-size: 1rem;
    opacity: 0.9;
}

/* News Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

/* Responsive */
@media (max-width: 991px) {
    .hero__title { font-size: 2.5rem; }
    .stat__value { font-size: 2rem; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
    .hero {
        padding: 2rem 0;
        text-align: center;
    }

    .hero__grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* На мобильном видео сверху */
    .hero__media {
        order: 1;
    }

    .hero__content {
        order: 2;
    }

    .hero__title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .hero__subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .hero__actions {
        justify-content: center;
    }

    .hero__actions .btn-lg {
        padding: 0.75rem 1.25rem;
        font-size: 1rem;
    }

    .video-circle {
        width: 260px;
        height: 260px;
    }

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

    .stats-section {
        padding: 2rem 0;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .stat__value {
        font-size: 1.75rem;
    }
}