@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;700&display=swap');

.dp-root {
    --dp-strip-h: 550px;
    --dp-card-w: 200px;
    --dp-top-offset: 40px; /* 20% от ширины карточки */
    --dp-active-area: 320px; 
    --dp-min-strip-w: 60px;
    --dp-ease: cubic-bezier(0.2, 1, 0.3, 1);
    font-family: 'Montserrat', sans-serif;
    width: 100%;
}

.dp-strips {
    display: flex;
    height: var(--dp-strip-h);
    gap: 4px;
    background: #fff;
    overflow-x: hidden;
    overflow-y: hidden;
}

.dp-strip {
    flex: 1 0 var(--dp-min-strip-w);
    position: relative;
    cursor: pointer;
    background-color: var(--dp-color);
    transition: flex 0.6s var(--dp-ease), background-color 0.4s ease;
    will-change: flex;
}

.dp-strip.dp-is-active {
    flex: 0 0 var(--dp-active-area) !important;
    background-color: #fff;
}

.dp-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 25px;
    transition: opacity 0.2s;
    pointer-events: none;
}

.dp-label span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 11px;
    color: rgba(255,255,255,0.9);
    text-transform: uppercase;
    white-space: nowrap;
}

.dp-is-active .dp-label { opacity: 0; }

.dp-content {
    position: absolute;
    top: var(--dp-top-offset);
    left: 50%;
    transform: translateX(-50%);
    width: var(--dp-active-area);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dp-is-active .dp-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.dp-pantone-card {
    background: #fff;
    width: var(--dp-card-w);
    box-shadow: 0 10px 35px rgba(0,0,0,0.1);
    margin-bottom: 25px;
}

/* Квадратное поле заливки цветом */
.dp-card-color { 
    width: 100%; 
    aspect-ratio: 1 / 1; /* Строго 1:1 для одинаковой высоты и ширины */
}

.dp-card-meta { padding: 12px 15px 18px; text-align: left; }
.dp-card-brand { font-weight: 800; font-size: 16px; color: #000; line-height: 1; }
.dp-card-brand sup { font-size: 8px; vertical-align: super; }
.dp-card-code { font-size: 13px; color: #555; margin: 4px 0 6px; }
.dp-card-name { font-size: 20px; font-weight: 700; color: #000; line-height: 1.1; }

.dp-details { width: 100%; max-width: 240px; text-align: center; }
.dp-desc { font-size: 13px; color: #444; line-height: 1.5; margin-bottom: 25px; }

.dp-button {
    display: inline-block;
    padding: 14px 32px;
    background: #000;
    color: #fff !important;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none !important;
    transition: background 0.2s;
}

.dp-button:hover { background: #333; }

@media (max-width: 767px) {
    .dp-strips {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    .dp-root {
        --dp-strip-h: 500px;
        --dp-card-w: 180px;
        --dp-active-area: 260px;
        --dp-min-strip-w: 50px;
        --dp-top-offset: 30px;
    }
    .dp-desc { font-size: 11px; margin-bottom: 15px; }
    .dp-button { padding: 12px 24px; font-size: 10px; }
    .dp-card-name { font-size: 18px; }
}