/* ============================================================
   home.css — стили главной страницы CININVEST
   Подключается через functions.php
   ============================================================ */

/* ════════════════════════════════════════════════════════════
   HERO БЛОК — мобильный (макет ПЕРЕВОЗЧИК)
   ════════════════════════════════════════════════════════════ */

.hero {
    background: #F6F6F6;
    padding: 40px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Плашка с инвесторами */
.badge {
    display: inline-block;
    background: #FFFFFF;
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 500;
    color: #333333;
    margin-bottom: 48px;
    box-shadow: 0 0 30px #D4D4D4;
}

/* Большой красный заголовок */
.hero-title {
    font-size: 38px;
    font-weight: 900;
    color: #B70000;
    text-transform: uppercase;
    line-height: 1.05;
    letter-spacing: 0.5px;
    margin: 0 0 24px;
    font-family: 'Montserrat', sans-serif;
}

/* Описание */
.hero-subtitle {
    color: #333333;
    font-size: 14px;
    line-height: 1.5;
    max-width: 363px;
    margin: 0 auto 48px;
    font-weight: 500;
}

/* ── Stats ── */
.stats-container {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto 60px;
    padding: 0;
}

.stat-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;

    width: 100%;
    box-sizing: border-box;
    padding: 36px 24px;
    min-height: 183px;

    background: radial-gradient(96% 264.77% at 0% 37.63%, #EEE2E2 0%, #E5E5E5 100%);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);

    position: relative;
    overflow: hidden;

    /* Сброс старых параметров */
    clip-path: none;
    max-width: none;
    min-width: 0;
    flex: none;

    /* Лёгкий наклон карточки */
    transform: skewY(-2deg);
}

/* Содержимое внутри карточки выпрямляем обратно */
.stat-card > * {
    transform: skewY(2deg);
}

/* Накладывание карточек друг на друга */
.stat-card + .stat-card {
    margin-top: -50px;
}

/* Z-index по порядку */
.stat-card:nth-child(1) { z-index: 1; }
.stat-card:nth-child(2) { z-index: 2; }
.stat-card:nth-child(3) { z-index: 3; }

/* Белое затухание снизу карточки */
.stat-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0) 49.85%, #FFFFFF 100%);
    border-radius: 12px;
    pointer-events: none;
    /* НЕ выпрямляем - оно должно наклоняться вместе с карточкой */
}

.stat-card > * {
    position: relative;
    z-index: 1;
    transform: skewY(2deg);
}

.stat-value {
    font-size: 28px;
    font-weight: 800;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    font-style: italic;
    font-family: 'Montserrat', sans-serif;
    line-height: 1;
}

.stat-value em {
    font-style: italic;
    font-weight: 800;
}

.stat-label {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
    font-weight: 500;
    max-width: 280px;
}

/* ════════════════════════════════════════════════════════════
   ОСТАЛЬНЫЕ БЛОКИ
   ════════════════════════════════════════════════════════════ */

/* ── Features ── */
.features-section {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

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

.feature-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
}

.feature-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.feature-image-placeholder {
    width: 100%;
    height: 200px;
    display: block;
}
.feature-image-placeholder.filmmakers {
    background: linear-gradient(135deg, #2d0a0a 0%, #5c1515 50%, #8b2020 100%);
}
.feature-image-placeholder.investors {
    background: linear-gradient(135deg, #1a0a2e 0%, #2d1b4e 50%, #4a306d 100%);
}

.feature-content { padding: 24px; }

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.feature-text {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.feature-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    text-decoration: none;
    font-family: inherit;
}
.feature-btn:hover { background: #a31830; }
.feature-btn svg { width: 16px; height: 16px; }

/* ── Projects ── */
.projects-section {
    background: #f0f0f0;
    border-radius: 20px;
    padding: 40px 32px 32px !important;
    margin: 0 20px 60px !important;
    max-width: 1100px;
    margin-left: auto !important;
    margin-right: auto !important;
}

.section-header { margin-bottom: 24px; }

.section-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #1a1a1a;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.project-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.08);
    transition: box-shadow .2s, transform .2s;
}
.project-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
    transform: translateY(-2px);
}

.project-image-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
}

.project-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-image-placeholder {
    width: 100%;
    height: 100%;
    display: block;
}

.project-avatar {
    position: absolute;
    bottom: -20px;
    right: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid #fff;
    background: #555;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.project-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-avatar-initials {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
}

.project-content { padding: 28px 20px 16px; }

.project-badge {
    font-size: 10px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 8px;
}

.project-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #1a1a1a;
}

.project-name a {
    color: inherit;
    text-decoration: none;
    transition: color .2s;
}
.project-name a:hover { color: #c41e3a; }

.project-desc {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-bottom: 16px;
    min-height: 54px;
}

.project-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.project-stat { flex: 1; }

.project-stat-label {
    font-size: 10px;
    color: #888;
    margin-bottom: 4px;
}

.project-stat-value {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.project-stat-value.gray {
    color: #888;
    font-weight: 400;
}

.project-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.project-investors {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}

.project-link {
    font-size: 12px;
    color: #888;
    text-decoration: none;
    transition: color .2s;
}
.project-link:hover { color: #c41e3a; }

.view-all-btn { display: flex; justify-content: flex-end; }

.view-all-btn a,
.view-all-btn button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #c41e3a;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .2s;
    font-family: inherit;
}
.view-all-btn a:hover,
.view-all-btn button:hover { background: #a31830; }

/* ── Reviews ── */
.reviews-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.reviews-title {
    font-size: 28px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    color: #1a1a1a;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.review-card {
    background: #e8e8e8;
    border-radius: 12px;
    padding: 20px;
}

.review-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.review-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #333;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-avatar-initials {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.review-meta { flex: 1; }

.review-name {
    font-size: 13px;
    font-weight: 600;
    color: #1a1a1a;
}

.review-role {
    font-size: 10px;
    color: #888;
}

.review-text {
    font-size: 12px;
    color: #555;
    line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   ДЕСКТОПНАЯ ВЕРСИЯ
   ════════════════════════════════════════════════════════════ */
@media (min-width: 992px) {

    .hero {
        padding: 80px 24px 100px;
    }

    .badge {
        margin-bottom: 60px;
        padding: 14px 32px;
        font-size: 15px;
    }

    .hero-title {
        font-size: 64px;
        margin-bottom: 32px;
        line-height: 1.0;
    }

    .hero-subtitle {
        font-size: 16px;
        max-width: 560px;
        margin-bottom: 80px;
    }

    /* На десктопе карточки в ряд */
    .stats-container {
        display: flex;
        flex-direction: row;
        gap: 24px;
        max-width: 1100px;
        margin: 0 auto 80px;
        padding: 0 20px;
        justify-content: center;
    }
    .stat-card {
        flex: 1;
        max-width: 340px;
        min-height: 200px;
        margin-top: 0 !important;
        transform: none;  /* убираем наклон */
    }
    .stat-card > * {
        transform: none;  /* выпрямляем содержимое */
    }
    .stat-card + .stat-card {
        margin-top: 0;
    }
    .stat-value { font-size: 36px; }
    .stat-label { font-size: 15px; }
}

/* ── Responsive остальные блоки ── */
@media (max-width: 1024px) {
    .projects-grid { grid-template-columns: repeat(2, 1fr); }
    .reviews-grid  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .projects-grid    { grid-template-columns: 1fr; }
    .reviews-grid     { grid-template-columns: 1fr; }
}