.agga-clp-wrap {
    --agga-pink: #fdecef;
    --agga-pink-strong: #ffdce4;
    --agga-red: #f3264d;
    --agga-text: #171717;
    --agga-muted: #6c6870;
    width: 100%;
    margin: 0 0 24px;
    color: var(--agga-text);
}

.agga-clp-preview-note {
    margin: 0 0 10px;
    padding: 8px 13px;
    border-left: 4px solid #dba617;
    border-radius: 8px;
    background: #fff8d7;
    color: #5b4700;
    font-size: 14px;
}

.agga-clp-layout {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.agga-clp-sections {
    display: grid;
    gap: 9px;
    position: sticky;
    top: 110px;
}

.agga-clp-section {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 58px;
    padding: 7px 11px 7px 8px;
    border: 1px solid transparent;
    border-radius: 16px;
    background: var(--agga-pink);
    box-shadow: 0 8px 18px rgba(78, 48, 59, .08), inset 0 1px 0 rgba(255, 255, 255, .9);
    color: var(--agga-text) !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.agga-clp-section::before {
    content: "";
    position: absolute;
    inset: 9px auto 9px 0;
    width: 4px;
    border-radius: 0 8px 8px 0;
    background: transparent;
}

.agga-clp-section:hover,
.agga-clp-section:focus-visible {
    transform: translateY(-2px);
    background: var(--agga-pink-strong);
    box-shadow: 0 14px 30px rgba(78, 48, 59, .12);
}

.agga-clp-section.is-active {
    border-color: rgba(243, 38, 77, .14);
    background: #ffe8ed;
}

.agga-clp-section.is-active::before {
    background: var(--agga-red);
}

.agga-clp-section-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 25px;
    line-height: 1;
}

.agga-clp-content {
    min-width: 0;
}

.agga-clp-content h1 {
    margin: 0 0 5px;
    color: var(--agga-text);
    font-size: clamp(27px, 2.4vw, 37px);
    font-weight: 750;
    line-height: 1.15;
    text-align: center;
}

.agga-clp-intro {
    max-width: 880px;
    margin: 0 auto 14px;
    color: var(--agga-muted);
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.agga-clp-intro p {
    margin: 0;
}

.agga-clp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.agga-clp-card {
    display: flex;
    min-width: 0;
    position: relative;
    min-height: 315px;
    padding: 13px 13px 17px;
    flex-direction: column;
    align-items: stretch;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff7f9 0%, var(--agga-pink) 52%, #f8dce3 100%);
    box-shadow: 0 18px 32px rgba(105, 53, 70, .17), 0 5px 10px rgba(105, 53, 70, .09), inset 0 2px 0 rgba(255, 255, 255, .95);
    color: var(--agga-text) !important;
    text-align: center;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.agga-clp-card:hover,
.agga-clp-card:focus-visible {
    transform: translateY(-6px) scale(1.012);
    border-color: rgba(243, 38, 77, .24);
    box-shadow: 0 24px 42px rgba(105, 53, 70, .23), 0 8px 14px rgba(105, 53, 70, .12), inset 0 2px 0 rgba(255, 255, 255, 1);
}

.agga-clp-media {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    margin-bottom: 13px;
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 17px;
    background: rgba(255, 255, 255, .62);
    box-shadow: 0 7px 16px rgba(80, 36, 51, .16), inset 0 1px 0 rgba(255, 255, 255, .9);
    overflow: hidden;
}

.agga-clp-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.agga-clp-card:hover .agga-clp-media img {
    transform: scale(1.045);
}

.agga-clp-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    font-size: 48px;
}

.agga-clp-card-title {
    display: block;
    margin: auto 0 0;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.28;
    overflow-wrap: anywhere;
}

.agga-clp-count {
    display: block;
    margin-top: 5px;
    color: var(--agga-muted);
    font-size: 13px;
    line-height: 1.2;
}

.agga-clp-card.is-missing {
    justify-content: center;
    border: 1px dashed #d79aa8;
    opacity: .7;
}

.agga-clp-card.is-missing small {
    margin-top: 6px;
    color: #9a364c;
}

@media (max-width: 1100px) {
    .agga-clp-layout {
        grid-template-columns: 175px minmax(0, 1fr);
        gap: 15px;
    }

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

    .agga-clp-section {
        grid-template-columns: 34px minmax(0, 1fr);
        min-height: 54px;
        padding: 6px 9px 6px 7px;
        font-size: 13px;
    }

    .agga-clp-section-icon {
        width: 34px;
        height: 34px;
        font-size: 23px;
    }
}

@media (max-width: 767px) {
    .agga-clp-wrap {
        margin-top: 0;
    }

    .agga-clp-layout {
        display: block;
    }

    .agga-clp-sections {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 16px;
    }

    .agga-clp-section {
        min-height: 56px;
        border-radius: 16px;
    }

    .agga-clp-content h1,
    .agga-clp-intro {
        text-align: left;
    }

    .agga-clp-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .agga-clp-card {
        min-height: 260px;
        border-radius: 19px;
    }
}

@media (max-width: 430px) {
    .agga-clp-sections {
        grid-template-columns: 1fr;
    }

    .agga-clp-section:not(.is-active) {
        min-height: 54px;
    }

    .agga-clp-grid {
        gap: 10px;
    }

    .agga-clp-card {
        min-height: 235px;
        padding: 9px 9px 12px;
    }

    .agga-clp-card-title {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .agga-clp-section,
    .agga-clp-card,
    .agga-clp-media img {
        transition: none;
    }
}
