
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.relative-box { position: relative; }
.desktop-only { display: block; }
.mobile-only { display: none; }

/* ── HEADER / HERO ── */
.promo-header-view { position: relative; width: 100%; }
.promo-poster-frame {
    position: relative;
    width: 100%;
    height: 520px;
    background-size: cover;
    background-position: center;
}
.poster-gradient-bottom {
    position: absolute; inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, rgba(0,0,0,.4) 60%, rgba(0,0,0,.85) 100%);
}
.promo-top-bar {
    position: absolute; top: 24px; left: 0; right: 0;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 24px; z-index: 5;
}
.back-btn {
    width: 44px; height: 44px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border-radius: 50%;
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background .2s;
}
.back-btn:hover { background: rgba(255,255,255,.25); }
.round-badge {
    background: rgba(255,255,255,.2);
    backdrop-filter: blur(10px);
    color: #fff;
    padding: 10px 24px;
    border-radius: 0 8px 8px 0;
    font-size: 14px; font-weight: 600;
    position: absolute; top: 160px; left: 0;
}

/* ── MAIN LAYOUT ── */
.main-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 60px;
    position: relative;
}

/* ── FUNDING WIDGET SIDEBAR ── */
.funding-widget-sidebar {
    grid-column: 2;
    grid-row: 1;
    align-self: start;
    position: sticky;
    top: 100px;
    background: #f2f2f2;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.08);
}

/* Progress card */
.widget-progress-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 8px;
}
.wp-meta-row {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 12px;
}
.wp-current { font-size: 11px; color: #888; line-height: 1.4; }
.wp-current .val { display: block; color: #1a1a1a; font-size: 14px; font-weight: 700; margin-top: 2px; }
.wp-target-badge {
    background: #f5e9eb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 10px; color: #888;
    text-align: right;
    line-height: 1.3;
}
.wp-target-badge .val { display: block; color: #c41e3a; font-size: 14px; font-weight: 700; margin-top: 2px; }
.wp-slider-track {
    position: relative;
    width: 100%; height: 6px;
    background: #e0e0e0;
    border-radius: 3px;
    overflow: visible;
}
.wp-slider-fill {
    position: relative;
    height: 100%;
    background: #c41e3a;
    border-radius: 3px;
    transition: width .6s ease;
}
.wp-slider-indicator {
    position: absolute;
    right: -3px; top: 50%;
    transform: translateY(-50%);
    width: 6px; height: 16px;
    background: #c41e3a;
    border-radius: 3px;
}

/* Pricing row */
.widget-pricing-row {
    display: flex;
    gap: 32px;
    padding: 16px 8px 12px;
}
.price-block { display: flex; flex-direction: column; }
.price-block .num { font-size: 20px; font-weight: 700; color: #1a1a1a; }
.price-block .sub { font-size: 11px; color: #888; margin-top: 4px; }

/* Action items */
.widget-actions-list { display: flex; flex-direction: column; gap: 8px; }
.action-item-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
}
.action-main-btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 10px;
    font-size: 15px; font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s, opacity .2s;
    display: block;
}
.btn-dark-red { background: #c41e3a; color: #fff; }
.btn-dark-red:hover { background: #a31830; }
.btn-light-grey { background: #f0f0f0; color: #1a1a1a; }
.btn-light-grey:hover { background: #e5e5e5; }
.btn-disabled { background: #e5e5e5; color: #aaa; cursor: not-allowed; }

.action-info-sub {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-top: 12px;
}
.stat-count { font-size: 12px; color: #888; font-weight: 500; white-space: nowrap; }
.stat-desc { font-size: 11px; color: #aaa; line-height: 1.4; text-align: right; }
.auth-required-footer {
    text-align: center;
    font-size: 12px; color: #aaa;
    padding: 8px 0;
}
.auth-red-link { color: #c41e3a; font-weight: 600; text-decoration: none; }

/* ── PROJECT INFO SIDE ── */
.project-info-side { grid-column: 1; grid-row: 1; min-width: 0; }

.desktop-title-wrapper { margin-bottom: 32px; }
.project-title-desktop {
    font-size: 42px; font-weight: 900;
    letter-spacing: 3px; color: #1a1a1a;
    margin: 0;
}

/* ── NAV TABS ── */
.project-nav {
    margin-bottom: 32px;
    border-bottom: 1px solid #e0e0e0;
}
.nav-scroll-container {
    display: flex; gap: 28px;
    overflow-x: auto;
    scrollbar-width: none;
}
.nav-scroll-container::-webkit-scrollbar { display: none; }
.nav-link {
    font-size: 14px; font-weight: 500; color: #666;
    text-decoration: none;
    padding: 12px 4px;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
    transition: all .2s;
}
.nav-link:hover { color: #c41e3a; }
.nav-link.active { color: #c41e3a; border-bottom-color: #c41e3a; }

/* ── TAB CONTENT ── */
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn .3s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.coming-soon-text { color: #aaa; padding: 32px 0; font-size: 14px; }

/* Project meta */
.project-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
}
.detail-group { margin-bottom: 24px; }
.detail-group h3 {
    font-size: 13px; font-weight: 700;
    color: #1a1a1a;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin: 0 0 8px;
}
.detail-group p, .meta-text {
    font-size: 14px; color: #444; line-height: 1.7;
    margin: 0;
}
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
    padding: 6px 16px;
    background: #999; color: #fff;
    border-radius: 6px;
    font-size: 13px; font-weight: 500;
}

.extended-text-content .detail-group { margin-bottom: 24px; }

/* ── REVIEWS ── */
.reviews-section { margin-top: 48px; }
.section-title {
    font-size: 28px; font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 24px;
    color: #888;
}
.review-card {
    background: #f0f0f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
}
.review-user-info h4 { font-size: 14px; font-weight: 600; margin: 0; }
.review-user-info span { font-size: 11px; color: #888; }
.review-text { font-size: 13px; color: #555; line-height: 1.6; margin: 0; }

/* ── FOOTER ── */
.cininvest-footer {
    background: #1a1a1a;
    padding: 40px 0;
    text-align: center;
}
.footer-logo-block {
    display: inline-flex; align-items: center; gap: 10px;
    color: #fff;
}
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 2px; }

/* ═══════════════════════════════════════════════════
   ПАНЕЛИ INVEST / SPONSOR
═══════════════════════════════════════════════════ */
.invest-panel, .sponsor-panel {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.5);
    overflow-y: auto;
    padding: 80px 20px 40px;
    align-items: flex-start;
    justify-content: center;
}
.invest-panel.open, .sponsor-panel.open { display: flex; }

.ip-card {
    background: #f2f2f2;
    border-radius: 16px;
    width: 100%;
    max-width: 400px;
    padding: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,.2);
}

.ip-back {
    background: none; border: none;
    font-size: 20px; cursor: pointer;
    padding: 8px 12px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-family: inherit;
}
.ip-title { font-size: 18px; font-weight: 900; color: #1a1a1a; padding: 4px 8px 2px; line-height: 1.3; }
.ip-company { font-size: 10px; color: #888; padding: 0 8px 14px; text-transform: uppercase; letter-spacing: .5px; }

.ip-avail { background: #fff; border-radius: 12px; padding: 14px; margin-bottom: 10px; }
.ip-avail-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.ip-avail-desc { font-size: 11px; color: #aaa; line-height: 1.4; margin-bottom: 12px; }
.ip-balance-row { display: flex; align-items: center; gap: 10px; }
.ip-balance-left { flex: 1; }
.ip-balance-value { font-size: 15px; font-weight: 700; }
.ip-balance-status { font-size: 11px; color: #c41e3a; margin-top: 1px; }
.ip-replenish {
    padding: 9px 16px;
    background: #1a1a1a; color: #fff;
    border: none; border-radius: 8px;
    font-size: 12px; font-weight: 600;
    cursor: pointer; font-family: inherit;
}

.ip-field { margin-bottom: 8px; padding: 0 4px; }
.ip-label { font-size: 12px; color: #666; margin-bottom: 5px; font-weight: 500; }
.ip-input {
    width: 100%;
    padding: 13px 16px;
    border: 2px solid #c41e3a;
    border-radius: 10px;
    font-size: 15px; font-weight: 600;
    font-family: inherit;
    color: #1a1a1a;
    outline: none;
    background: #fff;
    box-sizing: border-box;
}
.ip-input:focus { border-color: #a31830; }

.ip-calc { background: #fff; border-radius: 12px; padding: 14px; margin: 4px 0; }
.ip-calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; }
.ip-calc-label { font-size: 11px; color: #888; margin-bottom: 4px; }
.ip-calc-value {
    display: inline-block;
    background: #f0f0f0;
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 13px; font-weight: 600;
    color: #1a1a1a;
}

.ip-total-btn {
    display: block; width: 100%;
    margin: 12px 0 4px;
    padding: 15px;
    background: #c41e3a; color: #fff;
    border: none; border-radius: 12px;
    font-size: 15px; font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.ip-total-btn:hover { background: #a31830; }
.ip-total-btn:disabled { background: #ccc; cursor: not-allowed; opacity: .7; }

.ip-agreements { padding: 8px 4px 12px; display: flex; flex-direction: column; gap: 10px; }
.ip-agree { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.ip-agree input { width: 20px; height: 20px; accent-color: #c41e3a; flex-shrink: 0; margin-top: 1px; }
.ip-agree-text { font-size: 11px; color: #555; line-height: 1.5; }
.ip-agree-text a { color: #c41e3a; text-decoration: none; font-weight: 500; }
.ip-agree-text ol { margin-top: 3px; padding-left: 14px; }

.ip-success { display: none; text-align: center; padding: 32px 20px; }
.ip-success.show { display: block; }
.ip-success .s-icon { font-size: 48px; display: block; margin-bottom: 12px; }
.ip-success h3 { font-size: 20px; font-weight: 900; margin-bottom: 6px; }
.ip-success p { font-size: 13px; color: #666; line-height: 1.5; margin-bottom: 20px; }
.ip-success-close {
    padding: 11px 28px;
    background: #f0f0f0; border: none;
    border-radius: 10px;
    font-size: 13px; font-weight: 600;
    color: #555; cursor: pointer;
    font-family: inherit;
}

/* Toast */
.toast {
    position: fixed; bottom: 28px; left: 50%;
    transform: translateX(-50%) translateY(120px);
    background: #1a1a1a; color: #fff;
    padding: 14px 28px;
    border-radius: 10px;
    font-size: 14px; font-weight: 500;
    z-index: 9999;
    opacity: 0;
    transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
    box-shadow: 0 8px 28px rgba(0,0,0,.2);
    pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ═══════════════════════════════════════════════════
   MOBILE
═══════════════════════════════════════════════════ */
@media (max-width: 991px) {
    .desktop-only { display: none; }
    .mobile-only { display: block; }

    .promo-poster-frame { height: 70vw; min-height: 320px; }
    .round-badge { top: auto; bottom: 24px; }

    .main-content {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 24px;
    }
    .funding-widget-sidebar {
        grid-column: 1; grid-row: 2;
        position: static;
    }
    .project-info-side { grid-column: 1; grid-row: 3; }

    .mobile-title-block {
        grid-column: 1; grid-row: 1;
        padding: 0 0 8px;
    }
    .project-title-mobile {
        font-size: 28px; font-weight: 900;
        letter-spacing: 2px;
        margin: 0 0 8px;
    }
    .project-logline-short {
        font-size: 13px; color: #666; margin: 0;
    }

    .mobile-tab-title {
        font-size: 18px; font-weight: 700;
        margin: 0 0 16px;
    }
    .tab-content { display: block; margin-bottom: 24px; }

    .project-meta-grid { grid-template-columns: 1fr; gap: 16px; }
    .section-title { font-size: 22px; }
}

@media (max-width: 480px) {
    .project-title-mobile { font-size: 22px; }
    .widget-pricing-row { gap: 16px; }
    .price-block .num { font-size: 18px; }
}
