.cw-home-work {
    background:
        radial-gradient(700px 500px at 10% 70%, rgba(80, 140, 90, 0.2), transparent 70%),
        radial-gradient(700px 500px at 80% 10%, rgba(60, 80, 180, 0.25), transparent 70%),
        #15171c;
    color: #fff;
    width: 100%;
    box-sizing: border-box;
}

.cw-home-work script[data-cw-home-work-items-json] {
    display: none;
}

.cw-home-work a {
    color: inherit;
}

.cw-home-work button {
    font-family: inherit;
}

.cw-home-work__inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(72px, 9vw, 120px) clamp(20px, 4vw, 44px);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.cw-home-work__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.cw-home-work__head-copy {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cw-home-work__eyebrow {
    margin: 0;
    font-family: var(--rk-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: #d4f53c;
}

.cw-home-work__title {
    margin: 0;
    font-family: var(--rk-display, 'Inter Tight', sans-serif);
    font-weight: 800;
    font-size: clamp(44px, 5.6vw, 84px);
    line-height: 0.92;
    letter-spacing: -0.045em;
    color: #fff;
}

.cw-home-work__title-em {
    font-family: var(--rk-serif, 'Playfair Display', serif);
    font-style: italic;
    font-weight: 500;
}

.cw-home-work__filters {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cw-home-work__filter {
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: #fff;
    font: 600 13px var(--rk-body, 'Inter', sans-serif);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.cw-home-work__filter.is-active {
    border-color: #d4f53c;
    background: #d4f53c;
    color: #141210;
}

.cw-home-work__filter:focus-visible {
    outline: 2px solid #d4f53c;
    outline-offset: 2px;
}

.cw-home-work__layout {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: stretch;
}

.cw-home-work__list {
    flex: 1 1 220px;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 580px;
    overflow-y: auto;
    scrollbar-width: none;
}

.cw-home-work__list::-webkit-scrollbar {
    display: none;
}

.cw-home-work__list-item {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    cursor: pointer;
    text-align: left;
    font: inherit;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.cw-home-work__list-item.is-active {
    border-color: #e6e6e6;
    background: #e6e6e6;
    color: #141210;
}

.cw-home-work__list-item-title {
    font-weight: 700;
    font-size: 14px;
}

.cw-home-work__list-item-cat {
    font-size: 12px;
    opacity: 0.6;
}

.cw-home-work__list-item-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: #141210;
    opacity: 0.4;
    display: none;
}

.cw-home-work__list-item.is-active .cw-home-work__list-item-bar {
    display: block;
    animation: cw-home-work-fill 5s linear both;
}

@keyframes cw-home-work-fill {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

.cw-home-work__detail {
    flex: 999 1 560px;
    min-width: 0;
    border-radius: 22px;
    background: #fff;
    color: #141210;
    padding: 10px;
    min-height: 560px;
    overflow: hidden;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 10px;
    align-items: stretch;
}

.cw-home-work__detail.cw-home-work__detail--enter {
    animation: cw-home-work-rise 0.45s ease-out both;
}

@keyframes cw-home-work-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.cw-home-work__detail-copy {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: clamp(16px, 2vw, 24px);
}

.cw-home-work__detail-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.cw-home-work__logo {
    height: 64px;
    min-width: 120px;
    max-width: 190px;
    padding: 10px 16px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(20, 18, 16, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.cw-home-work__logo.is-dark {
    background: #141210;
}

.cw-home-work__logo img {
    max-width: 100%;
    max-height: 42px;
    object-fit: contain;
    display: block;
}

.cw-home-work__logo-text {
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
}

.cw-home-work__logo.is-dark .cw-home-work__logo-text {
    color: #fff;
}

.cw-home-work__counter {
    font-family: var(--rk-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: #8a8078;
}

.cw-home-work__detail-main {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cw-home-work__cat-pill {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3efe7;
    font-family: var(--rk-mono);
    font-size: 10.5px;
    letter-spacing: 0.12em;
    color: #4a4643;
}

.cw-home-work__project-title {
    margin: 0;
    font-family: var(--rk-display, 'Inter Tight', sans-serif);
    font-weight: 800;
    font-size: clamp(34px, 4vw, 56px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.cw-home-work__project-kind {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: #4a4643;
    max-width: 360px;
    text-wrap: pretty;
}

.cw-home-work__detail-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cw-home-work__detail-ctas {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cw-home-work__cta {
    height: 44px;
    padding: 0 20px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cw-home-work__cta--primary {
    background: #d4f53c;
    color: #141210;
    font-weight: 700;
}

.cw-home-work__cta--primary:hover {
    background: #141210;
    color: #d4f53c;
}

.cw-home-work__cta--ghost {
    border: 1px solid rgba(20, 18, 16, 0.18);
    color: #141210;
}

.cw-home-work__cta--ghost:hover {
    background: #141210;
    color: #fff;
}

.cw-home-work__nav {
    display: flex;
    gap: 6px;
}

.cw-home-work__nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(20, 18, 16, 0.18);
    background: transparent;
    cursor: pointer;
    font-size: 16px;
    color: #141210;
    transition: background 0.2s ease, color 0.2s ease;
}

.cw-home-work__nav-btn:hover {
    background: #141210;
    color: #fff;
}

.cw-home-work__nav-btn:focus-visible {
    outline: 2px solid #141210;
    outline-offset: 2px;
}

.cw-home-work__visual {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: var(--cw-home-work-visual-bg, #ede7ff);
    min-height: 380px;
}

.cw-home-work__visual-wide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cw-home-work__phone {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px 0;
}

.cw-home-work__phone img {
    height: 100%;
    max-height: 520px;
    width: auto;
    max-width: 78%;
    object-fit: contain;
    display: block;
    border-radius: 28px;
    border: 6px solid #141210;
    box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.6);
    background: #fff;
}

@media (prefers-reduced-motion: reduce) {
    .cw-home-work__list-item-bar {
        display: none !important;
    }

    .cw-home-work__detail.cw-home-work__detail--enter {
        animation: none;
    }
}

@media (max-width: 720px) {
    .cw-home-work__list {
        max-width: none;
        flex-basis: 100%;
        max-height: 240px;
    }
}
