/* ============================================================
   ПОРТФОЛИО: СТИЛИ ДЛЯ АРХИВА И ОДИНОЧНОЙ ЗАПИСИ
   ============================================================ */

/* ---------- ПЕРЕМЕННЫЕ (дополнение) ---------- */
:root {
    --gold: #e3ff04; /* предположим, что это переменная, если нет - зададим */
    --dark: #0b0b0b;
    --text: #b0b0b0;
    --card-bg: #0f0f0f;
    --border-subtle: rgba(255,255,255,0.06);
    --shadow-card: 0 20px 60px rgba(0,0,0,0.6);
}

/* ---------- ОБЩИЕ ---------- */
.portfolio-archive {
    padding: 120px 0 80px;
    background: var(--dark);
    min-height: 60vh;
}

.portfolio-archive .container {
    max-width: 1400px;
    padding: 0 20px;
}

/* ---------- HERO HEADER ---------- */
.archive-header {
    margin-bottom: 60px;
    text-align: center;
    position: relative;
}

.archive-header__inner {
    max-width: 700px;
    margin: 0 auto;
}

.archive-header__eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gold);
    background: rgba(227, 255, 4, 0.08);
    padding: 4px 18px;
    border-radius: 30px;
    border: 1px solid rgba(227, 255, 4, 0.15);
    margin-bottom: 16px;
}

.archive-header h1 {
    font-size: 60px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 0 0 12px;
    text-shadow: 0 0 40px rgba(227,255,4,0.06);
}

.archive-header__subtitle {
    font-size: 18px;
    color: var(--text);
    max-width: 520px;
    margin: 0 auto 20px;
    line-height: 1.5;
}

.archive-header__accent {
    width: 60px;
    height: 3px;
    margin: 0 auto;
    background: linear-gradient(90deg, transparent, var(--gold), transparent);
    border-radius: 4px;
}

/* ---------- СЕТКА КАРТОЧЕК ---------- */
.portfolio__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* FEATURED проект (первый) */
.project--featured {
    grid-column: 1 / -1;
}

.project--featured .project__compact-info h4 {
    font-size: 28px;
}
.project--featured .project__info {
    padding: 30px 30px 28px;
}

/* ---------- КАРТОЧКА ---------- */
.portfolio-archive .project {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: var(--card-bg);
    transition: transform 0.4s cubic-bezier(.22,1,.36,1),
                box-shadow 0.4s cubic-bezier(.22,1,.36,1);
    will-change: transform;
    border: 1px solid var(--border-subtle);
}

.portfolio-archive .project:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card), 0 0 40px rgba(227,255,4,0.05);
    border-color: rgba(227,255,4,0.2);
}

.portfolio-archive .project__link {
    display: block;
    text-decoration: none;
    color: inherit;
    outline: none;
}
.portfolio-archive .project__link:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

.portfolio-archive .project__image {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #0a0a0a;
}

.portfolio-archive .project__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(.22,1,.36,1), filter 0.7s ease;
    filter: brightness(0.92) contrast(1.05);
}

.portfolio-archive .project:hover .project__image img {
    transform: scale(1.05);
    filter: brightness(1) contrast(1.08);
}

/* OVERLAY */
.portfolio-archive .project__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 70%);
    z-index: 2;
    transition: opacity 0.5s;
}

.portfolio-archive .project:hover .project__overlay {
    opacity: 0.9;
}

/* BADGE */
.portfolio-archive .project__gallery-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px 4px 10px;
    border-radius: 30px;
    background: rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.08);
    transition: all 0.3s ease;
}
.portfolio-archive .project__gallery-badge svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}
.portfolio-archive .project:hover .project__gallery-badge {
    background: rgba(227,255,4,0.15);
    border-color: var(--gold);
    color: var(--gold);
}

/* INFO (нижняя часть) */
.portfolio-archive .project__info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 22px 18px;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0) 100%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-end;
    transition: transform 0.4s cubic-bezier(.22,1,.36,1), opacity 0.4s ease;
    transform: translateY(8px);
    opacity: 0.95;
}

.portfolio-archive .project:hover .project__info {
    transform: translateY(0);
    opacity: 1;
}

.portfolio-archive .project__compact-info {
    width: 100%;
}
.portfolio-archive .project__category {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    display: block;
    margin-bottom: 4px;
}

.portfolio-archive .project__compact-info h4 {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.portfolio-archive .project__meta {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    transition: transform 0.3s;
}

.portfolio-archive .project:hover .project__meta {
    transform: translateX(4px);
}

/* CTA (стрелка + текст) */
.portfolio-archive .project__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}
.portfolio-archive .project__cta svg {
    transition: transform 0.3s ease;
}
.portfolio-archive .project:hover .project__cta {
    opacity: 1;
    transform: translateX(0);
}
.portfolio-archive .project__cta:hover svg {
    transform: translateX(4px);
}

/* ---------- ПАГИНАЦИЯ ---------- */
.portfolio-archive .pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.portfolio-archive .pagination a,
.portfolio-archive .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    padding: 0 12px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.06);
}

.portfolio-archive .pagination a:hover,
.portfolio-archive .pagination a:focus-visible {
    background: rgba(227,255,4,0.08);
    border-color: rgba(227,255,4,0.25);
    color: #fff;
    transform: translateY(-2px);
}

.portfolio-archive .pagination .current {
    background: var(--gold);
    color: #0b0b0b;
    border-color: var(--gold);
}

.portfolio-archive .pagination .dots {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.2);
}

/* ---------- СТРАНИЦА ОДИНОЧНОГО ПРОЕКТА ---------- */
.single-portfolio {
    padding: 120px 0 80px;
    background: var(--dark);
    color: #fff;
}

.single-portfolio .container {
    max-width: 1200px;
}

.single-portfolio .single-header {
    margin-bottom: 50px;
    text-align: center;
}

.single-portfolio .single-header h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 16px;
    line-height: 1.1;
}

.single-portfolio .single-header .project-meta {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    color: var(--text);
    font-size: 16px;
}

.single-portfolio .single-header .project-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.single-portfolio .single-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 60px;
}

.single-portfolio .single-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid rgba(255,255,255,0.06);
}

.single-portfolio .single-gallery img:hover {
    transform: scale(1.03);
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.single-portfolio .single-content {
    max-width: 800px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: var(--text);
    font-size: 17px;
}

.single-portfolio .single-content h2 {
    color: #ffffff;
    font-size: 26px;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 16px;
    padding-left: 14px;
    border-left: 4px solid #22c55e;
}

.single-portfolio .single-params {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
    padding: 30px;
    background: rgba(255,255,255,0.03);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.06);
}

.single-portfolio .single-params .param {
    display: flex;
    flex-direction: column;
}

.single-portfolio .single-params .param-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 4px;
}

.single-portfolio .single-params .param-value {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.single-portfolio .single-back {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 30px;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: 30px;
}

.single-portfolio .single-back:hover,
.single-portfolio .single-back:focus-visible {
    background: var(--gold);
    color: var(--black);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(227,255,4,0.3);
}

/* ---------- МОДАЛКА ДЛЯ ПРОСМОТРА ИЗОБРАЖЕНИЙ ---------- */
.portfolio-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.portfolio-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.portfolio-lightbox img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.portfolio-lightbox .close-lightbox {
    position: absolute;
    top: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.portfolio-lightbox .close-lightbox:hover {
    background: rgba(255,255,255,0.2);
    transform: rotate(90deg);
}

/* ---------- АДАПТИВНОСТЬ ---------- */
@media (max-width: 1024px) {
    .portfolio__grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 24px;
    }
    .project--featured {
    grid-column: 1 / -1;
}
    
}

@media (max-width: 768px) {
    .portfolio-archive {
        padding: 80px 0 50px;
    }
    .archive-header h1 {
        font-size: 38px;
    }
    .archive-header__subtitle {
        font-size: 16px;
    }
    .portfolio__grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .project--featured {
    grid-column: 1 / -1;
}
    
    .project--featured .project__compact-info h4 {
        font-size: 20px;
    }
    .project--featured .project__info {
        padding: 18px 18px 16px;
    }
    .portfolio-archive .project__compact-info h4 {
        font-size: 18px;
    }
    .portfolio-archive .project__cta {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
        font-size: 13px;
        margin-top: 8px;
    }

    .single-portfolio {
        padding: 80px 0 50px;
    }
    .single-portfolio .single-header h1 {
        font-size: 34px;
    }
    .single-portfolio .single-gallery {
        grid-template-columns: 1fr;
    }
    .single-portfolio .single-gallery img {
        height: 200px;
    }
    .single-portfolio .single-params {
        grid-template-columns: 1fr;
        padding: 20px;
    }
    .portfolio-lightbox img {
        max-width: 95vw;
    }
}

@media (max-width: 480px) {
    .archive-header h1 {
        font-size: 30px;
    }
    .archive-header__eyebrow {
        font-size: 12px;
    }
    .archive-header__subtitle {
        font-size: 14px;
    }
    .portfolio-archive .project__compact-info h4 {
        font-size: 16px;
    }
    .single-portfolio .single-header h1 {
        font-size: 28px;
    }
    .project__gallery-badge {
        font-size: 11px;
        padding: 2px 10px 2px 6px;
    }
}

/* ---------- PREFERS-REDUCED-MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .portfolio-archive .project:hover .project__image img {
        transform: none !important;
    }
    .portfolio-archive .project:hover {
        transform: none !important;
    }
    .portfolio-archive .project__info {
        transform: none !important;
        opacity: 1 !important;
    }
    .portfolio-archive .project__cta {
        opacity: 1 !important;
        transform: none !important;
    }
    .project__meta {
        transform: none !important;
    }
}


/* ============================================================
   ИНФОГРАФИКА ДЛЯ ПОРТФОЛИО (АРХИВ И КЕЙСЫ)
   ============================================================ */

/* Верхние бейджи карточки */
.project__top-badges {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    z-index: 4;
    flex-wrap: wrap;
    pointer-events: none;
}
.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.project-badge--featured {
    background: rgba(227, 255, 4, 0.18);
    border: 1px solid rgba(227, 255, 4, 0.5);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(227, 255, 4, 0.2);
}
.project-badge--status {
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.project-badge--gallery {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-left: auto;
}


/* ============================================================
   ФЛАГМАНСКИЙ ПРОЕКТ (FEATURED) И СЛАЙДЕР
   ============================================================ */
.project--featured {
    grid-column: 1 / -1;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: #0b0b0b;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    transition: transform 0.4s cubic-bezier(.22,1,.36,1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.project--featured:hover {
    border-color: rgba(227, 255, 4, 0.35);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(227, 255, 4, 0.08);
}

.project--featured .project__media {
    position: relative;
    width: 100%;
    min-height: 520px;
    height: 560px;
    overflow: hidden;
}

/* Слайдер */
.project-slider {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    user-select: none;
}
.slider-track {
    display: flex;
    height: 100%;
    width: 100%;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}
.slider-slide {
    min-width: 100%;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}
.slider-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}
.slider-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: brightness(0.92) contrast(1.05);
}

/* Стрелки навигации слайдера (крупные, заметные, интерактивные) */
.slider-arrow {
    position: absolute;
    top: 38%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1.5px solid rgba(227, 255, 4, 0.5);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 25;
    transition: all 0.25s cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6);
    padding: 0;
}
.slider-arrow--prev {
    left: 24px;
}
.slider-arrow--next {
    right: 24px;
}
.slider-arrow:hover {
    background: var(--gold);
    color: #0b0b0b;
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(227, 255, 4, 0.4);
}
.slider-arrow:active {
    transform: translateY(-50%) scale(0.95);
}

/* Панель пагинации (точки + счётчик) */
.slider-nav-bar {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(11, 11, 11, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 7px 16px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}
.slider-dots {
    display: flex;
    align-items: center;
    gap: 6px;
}
.slider-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.slider-dot:hover {
    background: rgba(255, 255, 255, 0.7);
}
.slider-dot.active {
    width: 24px;
    border-radius: 6px;
    background: var(--gold);
    box-shadow: 0 0 10px rgba(227, 255, 4, 0.5);
}
.slider-counter {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    padding-left: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
}

/* Верхние бейджи */
.project__top-badges {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 25;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.project-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.project-badge--featured {
    background: rgba(227, 255, 4, 0.18);
    border: 1px solid rgba(227, 255, 4, 0.5);
    color: var(--gold);
    box-shadow: 0 4px 15px rgba(227, 255, 4, 0.2);
}
.project-badge--status {
    background: rgba(34, 197, 94, 0.22);
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: #22c55e;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.2);
}
.project-badge--gallery {
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Градиентный оверлей для читаемости текста */
.project__gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(11, 11, 11, 0.3) 0%,
        rgba(11, 11, 11, 0.05) 30%,
        rgba(11, 11, 11, 0.5) 55%,
        rgba(11, 11, 11, 0.92) 85%,
        #0b0b0b 100%
    );
    z-index: 10;
    pointer-events: none;
}

/* Нижний блок информации флагманского проекта - ВСЕГДА ВИДЕН */
.project__info--featured {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 28px 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    pointer-events: auto;
}
.project--featured .project__category {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    display: block;
    margin: 0;
}
.project__featured-title {
    margin: 0;
    padding: 0;
    font-size: clamp(22px, 2.4vw, 34px);
    font-weight: 800;
    line-height: 1.25;
    color: #ffffff;
}
.project__featured-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.project__featured-title a:hover {
    color: var(--gold);
}

/* Чипы параметров флагманского проекта */
.project__chips--featured {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 2px 0 4px;
    width: 100%;
}
.project-chip--featured {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 12px;
    background: rgba(11, 11, 11, 0.75);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 13px;
    color: #ffffff;
    transition: all 0.25s ease;
}
.project-chip--featured:hover {
    border-color: rgba(227, 255, 4, 0.4);
    background: rgba(11, 11, 11, 0.9);
    transform: translateY(-2px);
}
.project-chip--featured .project-chip__icon {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 14px;
}
.project-chip--featured .project-chip__lbl {
    color: rgba(255, 255, 255, 0.65);
    font-size: 12px;
    margin-right: 3px;
}
.project-chip--featured .project-chip__val {
    color: #ffffff;
    font-weight: 700;
}
.project-chip--guarantee {
    border-color: rgba(34, 197, 94, 0.45);
    background: rgba(34, 197, 94, 0.14);
}
.project-chip--guarantee .project-chip__icon {
    color: #22c55e;
}
.project-chip--guarantee .project-chip__val {
    color: #22c55e;
}

/* Кнопка действия */
.project__actions--featured {
    margin-top: 4px;
}
.project__cta--featured {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 26px;
    border-radius: 30px;
    background: var(--gold);
    color: #0b0b0b !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(227, 255, 4, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.project__cta--featured:hover {
    background: #f4ff4f;
    transform: translateX(4px);
    box-shadow: 0 8px 28px rgba(227, 255, 4, 0.5);
}
.project__cta--featured svg {
    transition: transform 0.25s ease;
}
.project__cta--featured:hover svg {
    transform: translateX(3px);
}

/* Адаптивность для featured карточки */
@media (max-width: 1024px) {
    .project--featured .project__media {
        height: 520px;
        min-height: 460px;
    }
    .project__info--featured {
        padding: 24px 24px 24px;
    }
}
@media (max-width: 768px) {
    .project--featured .project__media {
        height: 500px;
        min-height: 460px;
    }
    .slider-arrow {
        width: 42px;
        height: 42px;
        top: 32%;
    }
    .slider-arrow--prev {
        left: 12px;
    }
    .slider-arrow--next {
        right: 12px;
    }
    .slider-nav-bar {
        top: 14px;
        right: 14px;
        padding: 5px 12px;
        gap: 8px;
    }
    .project__top-badges {
        top: 14px;
        left: 14px;
        gap: 6px;
    }
    .project-badge {
        padding: 4px 10px;
        font-size: 11px;
    }
    .project-badge--gallery {
        display: none;
    }
    .project__info--featured {
        padding: 20px 16px 20px;
        gap: 10px;
    }
    .project__featured-title {
        font-size: 20px;
    }
    .project-chip--featured {
        padding: 5px 10px;
        font-size: 12px;
    }
    .project__cta--featured {
        padding: 10px 20px;
        font-size: 13px;
        width: 100%;
        justify-content: center;
    }
}
@media (max-width: 480px) {
    .project--featured .project__media {
        height: 540px;
    }
    .project__chips--featured {
        gap: 6px;
    }
}

/* Стандартные карточки: инфографические чипы */
.project__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.project-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-size: 12px;
    color: #fff;
    transition: all 0.3s ease;
}
.project:hover .project-chip {
    border-color: rgba(227, 255, 4, 0.3);
    background: rgba(0, 0, 0, 0.7);
}
.project-chip__icon {
    display: flex;
    align-items: center;
    color: var(--gold);
    font-size: 13px;
    line-height: 1;
}
.project-chip__lbl {
    color: rgba(255, 255, 255, 0.65);
    margin-right: 2px;
}
.project-chip__val {
    color: #fff;
    font-weight: 700;
}

/* ============================================================
   СТРАНИЦА ОДИНОЧНОГО ПРОЕКТА (single-portfolio)
   ============================================================ */
.project-infographics {
    background: linear-gradient(135deg, rgba(255,255,255,0.04) 0%, rgba(34,197,94,0.04) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 26px 28px;
    margin: 24px 0 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.infographics-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.infographics-header__left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.infographics-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #22c55e;
    background: rgba(34, 197, 94, 0.12);
    padding: 4px 12px;
    border-radius: 20px;
    border: 1px solid rgba(34, 197, 94, 0.25);
}
.infographics-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: alpPulse 2s infinite;
}
@keyframes alpPulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}
.infographics-gallery-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 12px;
    border-radius: 12px;
}
.infographics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.infographics-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    transition: all 0.3s ease;
}
.infographics-card:hover {
    transform: translateY(-3px);
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.infographics-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.infographics-card--accent .infographics-card__icon {
    background: rgba(227, 255, 4, 0.12);
    color: var(--gold);
}
.infographics-card__content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.infographics-card__label {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}
.infographics-card__value {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

/* Галерея */
.single-gallery-section {
    margin: 40px 0 50px;
}
.gallery-section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 18px;
    flex-wrap: wrap;
    gap: 8px;
}
.gallery-section-header h2 {
    font-size: 22px;
    font-weight: 800;
    color: #fff;
    margin: 0;
}
.gallery-section-hint {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}
.gallery-item {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}
.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    border-radius: 16px;
    transition: transform 0.4s ease, filter 0.4s ease;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.gallery-item:hover img {
    transform: scale(1.04);
    filter: brightness(1.05);
}
.gallery-zoom-icon {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 8px;
    padding: 4px 8px;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.gallery-item:hover .gallery-zoom-icon {
    opacity: 1;
}

/* Стилизация текста и этапов */
.single-portfolio .single-content {
    max-width: 900px;
    margin: 0 auto 50px;
    line-height: 1.8;
    color: #cbd5e1;
    font-size: 17px;
}
.single-portfolio .single-content h2,
.single-portfolio .single-content h3,
.single-portfolio .single-content h4 {
    color: #ffffff !important;
    font-size: 24px;
    font-weight: 800;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-left: 14px;
    border-left: 4px solid #22c55e;
    line-height: 1.3;
}
.single-portfolio .single-content p {
    margin-bottom: 18px;
    color: #cbd5e1;
}
.single-portfolio .single-content strong {
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
    .project__kpi-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    .project__kpi-card {
        padding: 8px 10px;
    }
    .project__kpi-icon {
        width: 28px;
        height: 28px;
    }
    .project__kpi-val {
        font-size: 13px;
    }
    .project-infographics {
        padding: 20px 16px;
    }
    .infographics-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .infographics-card {
        padding: 12px 14px;
    }
    .single-gallery {
        grid-template-columns: 1fr;
    }
    .gallery-item img {
        height: 220px;
    }
}
@media (max-width: 480px) {
    .project__kpi-grid {
        grid-template-columns: 1fr;
    }
}


/* ============================================================
   ОПИСАНИЕ И ЭТАПЫ РАБОТ В КЕЙСЕ (PORTFOLIO CONTENT)
   ============================================================ */
.single-portfolio .single-content,
.single-portfolio .portfolio-content {
    max-width: 960px !important;
    margin: 40px auto 60px !important;
    background: rgba(18, 22, 28, 0.75) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 24px !important;
    padding: 44px 50px !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    line-height: 1.85 !important;
    color: #e2e8f0 !important;
    font-size: 17px !important;
    box-sizing: border-box !important;
}

.single-portfolio .single-content > *:first-child,
.single-portfolio .portfolio-content > *:first-child {
    margin-top: 0 !important;
}
.single-portfolio .single-content > *:last-child,
.single-portfolio .portfolio-content > *:last-child {
    margin-bottom: 0 !important;
}

/* Заголовки блоков описания кейса */
.single-portfolio .single-content h2,
.single-portfolio .single-content .wp-block-heading,
.single-portfolio .portfolio-content h2,
.single-portfolio .portfolio-content .wp-block-heading {
    color: #ffffff !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-top: 38px !important;
    margin-bottom: 16px !important;
    padding-left: 16px !important;
    border-left: 4px solid #22c55e !important;
    line-height: 1.35 !important;
    letter-spacing: -0.01em !important;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5) !important;
    display: block !important;
}
.single-portfolio .single-content h2 strong,
.single-portfolio .portfolio-content h2 strong {
    color: #ffffff !important;
    font-weight: 800 !important;
}

.single-portfolio .single-content h3,
.single-portfolio .portfolio-content h3 {
    color: #ffffff !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    margin-top: 28px !important;
    margin-bottom: 12px !important;
    padding-left: 12px !important;
    border-left: 3px solid var(--gold) !important;
}

/* Параграфы текста описания */
.single-portfolio .single-content p,
.single-portfolio .single-content .wp-block-paragraph,
.single-portfolio .portfolio-content p,
.single-portfolio .portfolio-content .wp-block-paragraph {
    margin: 0 0 18px 0 !important;
    color: #cbd5e1 !important;
    font-size: 16px !important;
    line-height: 1.8 !important;
}

/* Выделенный текст и акценты */
.single-portfolio .single-content strong,
.single-portfolio .portfolio-content strong {
    color: #ffffff !important;
    font-weight: 700 !important;
}

/* Списки */
.single-portfolio .single-content ul,
.single-portfolio .single-content ol,
.single-portfolio .portfolio-content ul,
.single-portfolio .portfolio-content ol {
    margin: 16px 0 22px 24px !important;
    color: #cbd5e1 !important;
}
.single-portfolio .single-content li,
.single-portfolio .portfolio-content li {
    margin-bottom: 8px !important;
    color: #cbd5e1 !important;
    line-height: 1.75 !important;
}

@media (max-width: 768px) {
    .single-portfolio .single-content,
    .single-portfolio .portfolio-content {
        padding: 26px 20px !important;
        border-radius: 18px !important;
        font-size: 15px !important;
        margin: 30px auto 40px !important;
    }
    .single-portfolio .single-content h2,
    .single-portfolio .portfolio-content h2 {
        font-size: 20px !important;
        margin-top: 28px !important;
        padding-left: 12px !important;
    }
    .single-portfolio .single-content p,
    .single-portfolio .portfolio-content p {
        font-size: 15px !important;
        line-height: 1.7 !important;
    }
}
