:root {
    --CAPS-laminaria-color: #2d7a7a;
    --CAPS-liver-color: #b85a3c;
    --CAPS-calm-color: #8b7ab8;
    --CAPS-bg-cream: #faf8f5;
    --CAPS-text-dark: #2c2c2c;
    --CAPS-text-gray: #666666;
}

/* Основной контейнер */
.CAPS-wrapper {
    width: 100%;
    margin: 50px auto;
    padding: 0 20px;
    font-family: 'Involve', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.CAPS-container {
    max-width: 1200px;
    margin: 0 auto;
}

.CAPS-content {
    background: linear-gradient(135deg, var(--CAPS-bg-cream), #ffffff);
    border-radius: 30px;
    padding: 60px 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.06);
}

/* Декоративные элементы фона */
.CAPS-bg-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.CAPS-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.03;
    filter: blur(60px);
}

.CAPS-bg-circle-1 {
    width: 400px;
    height: 400px;
    background: var(--CAPS-laminaria-color);
    top: -100px;
    left: -100px;
    animation: CAPS-float 20s infinite ease-in-out;
}

.CAPS-bg-circle-2 {
    width: 350px;
    height: 350px;
    background: var(--CAPS-calm-color);
    bottom: -80px;
    right: -80px;
    animation: CAPS-float 25s infinite ease-in-out reverse;
}

.CAPS-bg-leaf {
    position: absolute;
    width: 200px;
    height: 200px;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M50 10 Q30 30 30 50 T50 90 Q70 70 70 50 T50 10" fill="%23a8d99c" opacity="0.15"/></svg>') no-repeat center;
    background-size: contain;
    opacity: 0.4;
}

.CAPS-bg-leaf-1 {
    top: 20%;
    right: 5%;
    transform: rotate(25deg);
    animation: CAPS-sway 15s infinite ease-in-out;
}

.CAPS-bg-leaf-2 {
    bottom: 15%;
    left: 8%;
    transform: rotate(-15deg);
    animation: CAPS-sway 18s infinite ease-in-out reverse;
}

@keyframes CAPS-float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, 30px) scale(1.1); }
}

@keyframes CAPS-sway {
    0%, 100% { transform: rotate(25deg) translateY(0); }
    50% { transform: rotate(15deg) translateY(-20px); }
}

/* Заголовок */
.CAPS-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
    animation: CAPS-fadeInUp 0.8s ease-out;
}

/* ПЛАШКА "НОВИНКА!" - красивый градиентный бейдж */
.CAPS-badge {
    display: inline-block;
    font-size: 28px;
    font-weight: bold;
    color: white;
    background: linear-gradient(135deg, #6b45b8, #39b54a);
    padding: 14px 45px;
    border-radius: 50px;
    margin-bottom: 20px;
    box-shadow: 0 10px 35px rgba(107, 69, 184, 0.4);
    animation: CAPS-pulse 3s infinite ease-in-out;
    position: relative;
    overflow: hidden;
}

/* Блеск на бейдже */
.CAPS-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: CAPS-shine 3s infinite;
}

@keyframes CAPS-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

@keyframes CAPS-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ОБЫЧНЫЙ ЗАГОЛОВОК "Капсулы SILART" */
.CAPS-title {
    font-size: 40px;
    font-weight: bold;
    color: var(--CAPS-text-dark);
    margin-bottom: 15px;
    line-height: 1.2;
}

.CAPS-subtitle {
    font-size: 18px;
    color: var(--CAPS-text-gray);
    line-height: 1.6;
    max-width: 800px;
    margin: 0 auto;
}

/* Сетка продуктов */
.CAPS-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

/* Карточка продукта */
.CAPS-product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.CAPS-product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.CAPS-card-front {
    padding: 30px 20px;
    text-align: center;
}

.CAPS-img-wrapper {
    width: 100%;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.CAPS-product-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.CAPS-product-card:hover .CAPS-product-img {
    transform: scale(1.05);
}

.CAPS-product-name {
    font-size: 22px;
    font-weight: 600;
    color: var(--CAPS-text-dark);
    margin-bottom: 20px;
    line-height: 1.3;
}

/* Кнопка "Подробнее" */
.CAPS-details-btn {
    background: linear-gradient(135deg, #4a8a33, #5fa045);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(74, 138, 51, 0.3);
}

.CAPS-details-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 138, 51, 0.4);
}

.CAPS-details-btn:active {
    transform: translateY(0);
}

/* Детали продукта */
.CAPS-card-details {
    max-height: 0;
    overflow: hidden;
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), padding 0.5s ease;
    border-top: 1px solid transparent;
}

.CAPS-card-details.CAPS-active {
    max-height: 500px;
    padding: 25px 20px;
    border-top: 1px solid #e0e0e0;
}

.CAPS-details-content {
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s;
}

.CAPS-card-details.CAPS-active .CAPS-details-content {
    opacity: 1;
    transform: translateY(0);
}

.CAPS-detail-item {
    font-size: 15px;
    color: var(--CAPS-text-gray);
    line-height: 1.8;
    margin-bottom: 12px;
    padding-left: 20px;
    position: relative;
}

.CAPS-detail-item::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4a8a33;
    font-weight: bold;
    font-size: 20px;
}

.CAPS-detail-item strong {
    color: var(--CAPS-text-dark);
}

/* Кнопка "Свернуть" */
.CAPS-close-btn {
    background: transparent;
    color: var(--CAPS-text-gray);
    border: 2px solid #d0d0d0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 15px;
    transition: all 0.3s ease;
}

.CAPS-close-btn:hover {
    border-color: #4a8a33;
    color: #4a8a33;
}

/* ПРЕИМУЩЕСТВА */
.CAPS-benefits {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 30px 20px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

.CAPS-benefit-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: var(--CAPS-text-dark);
    font-weight: 500;
}

.CAPS-benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: linear-gradient(135deg, #4a8a33, #5fa045);
    color: white;
    border-radius: 50%;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

.CAPS-benefit-text {
    white-space: nowrap;
}

/* Анимация появления */
@keyframes CAPS-fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ ПЛАНШЕТОВ
   ============================================ */
@media screen and (max-width: 968px) {
    .CAPS-content {
        padding: 50px 30px;
    }

    .CAPS-badge {
        font-size: 24px;
        padding: 12px 35px;
    }

    .CAPS-title {
        font-size: 34px;
    }

    .CAPS-subtitle {
        font-size: 16px;
    }

    .CAPS-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }

    .CAPS-img-wrapper {
        height: 200px;
    }

    .CAPS-benefit-item {
        font-size: 15px;
    }

    .CAPS-benefit-text {
        white-space: normal;
    }
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ - ФИНАЛЬНОЕ ИСПРАВЛЕНИЕ!
   ============================================ */
@media screen and (max-width: 640px) {
    .CAPS-wrapper {
        margin: 30px auto;
        padding: 0 15px;
    }

    .CAPS-content {
        padding: 40px 20px;
        border-radius: 20px;
    }

    .CAPS-badge {
        font-size: 20px;
        padding: 10px 28px;
        margin-bottom: 15px;
    }

    .CAPS-title {
        font-size: 28px;
        margin-bottom: 12px;
    }

    .CAPS-subtitle {
        font-size: 15px;
        line-height: 1.5;
    }

    .CAPS-header {
        margin-bottom: 35px;
    }

    /* Одна колонка для мобильных */
    .CAPS-products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

    .CAPS-card-front {
        padding: 25px 15px;
    }

    .CAPS-img-wrapper {
        height: 180px;
    }

    .CAPS-product-name {
        font-size: 20px;
        margin-bottom: 15px;
    }

    .CAPS-details-btn {
        padding: 10px 25px;
        font-size: 15px;
    }

    .CAPS-card-details.CAPS-active {
        padding: 20px 15px;
    }

    .CAPS-detail-item {
        font-size: 14px;
        margin-bottom: 10px;
    }

    /* ПРЕИМУЩЕСТВА - ИКОНКА СВЕРХУ, ТЕКСТ СНИЗУ! */
    .CAPS-benefits {
        gap: 20px;
        padding: 25px 15px;
    }

    .CAPS-benefit-item {
        flex-direction: column;
        gap: 8px;
        font-size: 14px;
        max-width: 280px;
    }

    .CAPS-benefit-text {
        white-space: normal;
        text-align: center;
        line-height: 1.4;
    }

    /* Уменьшаем декоративные элементы */
    .CAPS-bg-circle-1,
    .CAPS-bg-circle-2 {
        width: 250px;
        height: 250px;
    }

    .CAPS-bg-leaf {
        width: 120px;
        height: 120px;
    }
}

/* Для очень маленьких экранов */
@media screen and (max-width: 380px) {
    .CAPS-badge {
        font-size: 18px;
        padding: 8px 22px;
    }

    .CAPS-title {
        font-size: 24px;
    }

    .CAPS-subtitle {
        font-size: 14px;
    }

    .CAPS-img-wrapper {
        height: 150px;
    }

    .CAPS-product-name {
        font-size: 18px;
    }

    .CAPS-benefit-item {
        font-size: 13px;
    }
}