.complex-detail-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background: var(--page-bg, #f5f7fa);
    font-family: Arial, sans-serif;
}

.btn-back {
    display: inline-block;
    margin-bottom: 24px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}
.btn-back:hover { color: #d32f2f; }

.complex-header { margin-bottom: 20px; }
.complex-title {
    font-size: 30px;
    margin: 0 0 12px 0;
    color: #1a1a1a;
    font-weight: 700;
}
.complex-accent {
    width: 56px;
    height: 4px;
    background: #d32f2f;
    border-radius: 2px;
}

.complex-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
}
.meta-item {
    font-size: 14px;
    color: #555;
}

.complex-gallery { margin-bottom: 36px; }
.gallery-main {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    aspect-ratio: 16 / 9;
    background: #e8eaed;
}
.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 90px;
    height: 60px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: none;
    padding: 0;
    transition: border-color 0.2s ease;
}
.gallery-thumb.active { border-color: #d32f2f; }
.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.complex-section {
    background: #fff;
    border-radius: 10px;
    padding: 28px 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 28px;
}
.complex-section h2 {
    font-size: 22px;
    margin: 0 0 16px 0;
    color: #1a1a1a;
}
.complex-section p {
    font-size: 16px;
    line-height: 1.7;
    color: #444;
}

.complex-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}
.complex-features li {
    display: flex;
    align-items: flex-start;
    font-size: 15px;
    line-height: 1.5;
    color: #333;
}
.features-dot {
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d32f2f;
    margin-top: 8px;
    margin-right: 14px;
}

.complex-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}
.info-item {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    text-align: center;
}
.info-label {
    display: block;
    font-size: 13px;
    color: #888;
    margin-bottom: 6px;
}
.info-value {
    display: block;
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
}

.cta-block {
    text-align: center;
    padding: 40px 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #d32f2f;
}
.cta-icon { font-size: 32px; margin-bottom: 16px; }
.cta-block h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #1a1a1a;
}
.cta-block p {
    margin: 0 0 28px 0;
    color: #666;
    font-size: 16px;
}
.btn-primary-large {
    display: inline-block;
    padding: 16px 40px;
    background: #d32f2f;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    border: 2px solid #d32f2f;
    transition: all 0.3s ease;
}
.btn-primary-large:hover {
    background: #fff;
    color: #d32f2f;
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.25);
}

@media (max-width: 768px) {
    .complex-title { font-size: 24px; }
    .complex-section { padding: 20px 22px; }
    .complex-features ul { grid-template-columns: 1fr; }
    .cta-block { padding: 28px 20px; }
    .gallery-main { aspect-ratio: 4 / 3; }
}

/* Заголовок блока видео */
.complex-video-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.complex-video-section h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: linear-gradient(180deg, var(--red-base), var(--red-bright));
    border-radius: 4px;
}

/* --- ВИДЕО-ОБЗОР --- */
.video-card {
    position: relative;
    width: 100%; /* Занимает всю ширину родителя */
}

.video-wrapper {
    position: relative; /* Создаём контекст позиционирования */
    padding-top: 56.25%; /* Пропорция 16:9 */
    height: 0; /* Обнуляем собственную высоту */
    overflow: hidden;
}

.video-wrapper iframe,
.video-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}