/* =========================================
   === БАЗОВЫЕ ПЕРЕМЕННЫЕ И НАСТРОЙКИ ===
   ========================================= */
:root {
    --primary-red: #E53935;
    --brand-red: #E53935;
    --dark: #111215;
    --text-gray: #444444;
    --light-gray: #f4f4f4;
    --border: #e0e0e0;
    --vk-blue: #0077FF;
}

body {
    margin: 0;
    font-family: 'Manrope', sans-serif;
    background-color: #fff;
    color: var(--dark);
}

.ja-section {
    max-width: 1700px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 0 60px 0;
}

/* =========================================
   === ВЕРХНИЙ БЛОК (HERO) ===
   ========================================= */
.ja-hero-flex {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: space-between;
}

.ja-info-col {
    flex: 1;
    max-width: 600px;
}

.ja-video-col {
    flex: 1.2;
    position: sticky;
    top: 20px;
}

/* ТИПОГРАФИКА */
h1.ja-title {
    font-size: 32px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    margin: 0 0 20px 0;
}

h1.ja-title span { 
    color: var(--primary-red); 
}

.ja-desc {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-gray);
    margin-bottom: 30px;
}

.ja-subtitle {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
}

/* =========================================
   === СЕТКА ПРЕИМУЩЕСТВ 2х2 ===
   ========================================= */
.ja-grid-2x2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.ja-grid-item {
    padding: 15px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s ease;
}

.ja-grid-item:hover {
    border-color: var(--primary-red);
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.ja-dot {
    min-width: 8px;
    height: 8px;
    background: var(--primary-red);
    border-radius: 50%;
}

.ja-grid-text {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================
   === КНОПКИ И ССЫЛКИ ===
   ========================================= */
.ja-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.btn {
    padding: 16px 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-red {
    background: var(--primary-red);
    color: #fff;
    border: 1px solid var(--primary-red);
}

.btn-red:hover, .ja-trigger-btn:hover {
    background: #d32f2f;
    color: #ffffff !important; 
    box-shadow: 0 5px 15px rgba(229, 57, 53, 0.3);
}

.btn-outline {
    border: 1px solid var(--dark);
    color: var(--dark);
}

.btn-outline:hover {
    background: var(--dark);
    color: #fff;
}

.vk-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    transition: color 0.3s ease;
}

.vk-link:hover { 
    color: var(--vk-blue); 
}

/* =========================================
   === ОПТИМИЗИРОВАННЫЙ ВИДЕО-ФАСАД ===
   ========================================= */
.ja-video-facade {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Пропорции 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.ja-video-facade img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

.ja-video-facade:hover img {
    opacity: 0.8;
    transform: scale(1.03);
}

/* Кнопка Play по центру фасада */
.ja-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 64px;
    height: 64px;
    background: rgba(229, 57, 53, 0.9); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 2;
}

.ja-video-facade:hover .ja-play-btn {
    background: #E53935;
    transform: translate(-50%, -50%) scale(1.1);
}

.ja-play-btn svg {
    width: 32px;
    height: 32px;
    fill: #fff;
    margin-left: 4px; /* Оптическая центровка треугольника */
}

/* Загруженный iframe */
.ja-video-facade iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    z-index: 3;
}

/* =========================================
   === СЕТКА ОСТАЛЬНЫХ ВИДЕО ===
   ========================================= */
.ja-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.ja-grid-item-video {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ja-grid-item-video .ja-video-facade {
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.ja-video-title-small {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
    color: var(--dark);
}

/* =========================================
   === АДАПТИВНОСТЬ ===
   ========================================= */
@media (max-width: 1024px) {
    .ja-hero-flex { 
        flex-direction: column; 
    }
    .ja-video-col { 
        width: 100%; 
        position: static; 
        order: -1; 
        margin-bottom: 30px; 
    }
    .ja-info-col { 
        max-width: 100%; 
    }
}

@media (max-width: 480px) {
    .ja-grid-2x2 { 
        grid-template-columns: 1fr; 
    }
    .btn { 
        width: 100%; 
    }
    .ja-video-grid { 
        grid-template-columns: 1fr; 
    }
}