.nep-portfolio {
    --nep-blue: #020630;
    --nep-navy: #020630;
    --nep-gold: #c59a6d;
    --nep-gold-soft: #f4eee6;
    --nep-text: #20242a;
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 28px;
    color: var(--nep-text);
    width: 100%;
}

.nep-sidebar {
    display: grid;
    align-content: start;
    gap: 12px;
    padding: 0;
    border-radius: 10px;
    background: transparent;
}

.nep-menu-item {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr);
    align-items: center;
    min-height: 52px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(2, 6, 48, .12);
    border-radius: 8px;
    background: #fff;
    color: #5d6670;
    text-decoration: none;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.nep-menu-item .nep-icon {
    width: 52px;
    height: 52px;
    padding: 15px;
    color: #fff;
    background: var(--nep-navy);
}

.nep-menu-item span {
    padding: 0 14px;
    font-weight: 500;
}

.nep-menu-item.is-active,
.nep-menu-item:hover {
    color: var(--nep-navy);
    border-color: rgba(197, 154, 109, .62);
    box-shadow: 0 10px 28px rgba(2, 6, 48, .10);
}

.nep-menu-item.is-active .nep-icon,
.nep-menu-item:hover .nep-icon {
    background: var(--nep-gold);
    color: #fff;
}

.nep-content {
    min-width: 0;
    padding: 24px 0;
}

.nep-panel {
    display: none;
}

.nep-panel.is-active {
    display: block;
}

.nep-summary {
    display: grid;
    grid-template-columns: minmax(0, .88fr) minmax(360px, 1.12fr);
    gap: 36px;
    align-items: start;
}

.nep-summary h2 {
    margin: 0 0 12px;
    font-size: clamp(28px, 3vw, 44px);
    line-height: 1.1;
}

.nep-summary h3,
.nep-detail-block h3,
.nep-features h3 {
    margin: 22px 0 12px;
    font-size: clamp(24px, 2.4vw, 36px);
    line-height: 1.18;
}

.nep-text {
    font-size: 16px;
    line-height: 1.72;
}

.nep-summary-copy .nep-text {
    max-width: 760px;
}

.nep-detail-block {
    width: 100%;
    max-width: none;
    margin: 42px 0 0;
    padding-top: 32px;
    border-top: 1px solid rgba(2, 6, 48, .12);
}

.nep-detail-block h3 {
    margin-top: 0;
    max-width: 1040px;
}

.nep-detail-block .nep-text {
    max-width: 1180px;
}

.nep-cover {
    margin: 0;
    padding: 10px;
    border-radius: 8px;
    background: #eef3f8;
}

.nep-cover img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
}

.nep-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 64px 0 72px;
}

.nep-stat {
    display: grid;
    justify-items: center;
    gap: 8px;
    text-align: center;
}

.nep-stat-icon {
    display: grid;
    place-items: center;
    width: 58px;
    height: 58px;
    border: 1px solid rgba(197, 154, 109, .45);
    border-radius: 50%;
    color: var(--nep-navy);
    background: var(--nep-gold-soft);
    box-shadow: 0 10px 24px rgba(2, 6, 48, .08);
}

.nep-stat-icon .nep-icon {
    width: 24px;
    height: 24px;
}

.nep-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 28px;
    border-top: 1px solid #d9dee4;
    padding-top: 20px;
}

.nep-features {
    margin-top: 0;
}

.nep-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nep-feature .nep-icon {
    width: 18px;
    height: 18px;
    color: var(--nep-gold);
    flex: 0 0 auto;
}

.nep-gallery-main {
    margin: 0 0 14px;
    border-radius: 8px;
    overflow: hidden;
    background: #f1f3f5;
}

.nep-gallery-main img {
    display: block;
    width: 100%;
    max-height: 760px;
    object-fit: contain;
}

.nep-thumbs {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 10px;
}

.nep-thumb-btn {
    flex: 0 0 96px;
    height: 64px;
    padding: 2px;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}

.nep-thumb-btn.is-active {
    border-color: var(--nep-gold);
}

.nep-thumb-btn img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.nep-video {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.nep-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.nep-icon {
    width: 20px;
    height: 20px;
}

@media (max-width: 1024px) {
    .nep-portfolio {
        grid-template-columns: 1fr;
    }

    .nep-sidebar {
        display: flex;
        overflow-x: auto;
        padding: 12px;
        border-radius: 8px;
    }

    .nep-menu-item {
        min-width: 190px;
        flex: 0 0 auto;
    }

    .nep-summary {
        grid-template-columns: 1fr;
    }

    .nep-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .nep-content {
        padding: 8px 0;
    }

    .nep-stats,
    .nep-feature-grid {
        grid-template-columns: 1fr;
    }

    .nep-menu-item {
        min-width: 170px;
    }
}
