.homepage-mattress {
    padding: 100px 0;
    background: #fff;
}

.homepage-mattress h2 {
    margin: 0 0 50px;
    font-size: 30px;
    font-weight: 600;
    letter-spacing: .06em;
}

.mattress-accordion {
    max-width: 1110px;
    margin: 0 auto;
}

.mattress-item {
    margin: 0;
    border-bottom: 1px solid rgba(255,255,255,.7);
}

.mattress-item summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 14px 72px 14px 22px;
    color: #fff;
    background: linear-gradient(100deg,#06063e 0%,#064b87 55%,#08c8e8 100%);
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.mattress-item summary::-webkit-details-marker {
    display: none;
}

.mattress-toggle {
    position: absolute;
    right: 20px;
    top: 50%;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #00639e;
    font-size: 30px;
    font-weight: 600;
    line-height: 1;
}

.mattress-toggle::before {
    content: '+';
}

.mattress-item[open] .mattress-toggle::before {
    content: '\2212';
}

.mattress-panel {
    padding: 54px 46px 58px;
    background: #fff;
}

.mattress-media-grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 46px;
    align-items: center;
}

.mattress-media-grid figure {
    margin: 0;
}

.mattress-media-grid img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    display: block;
}

.mattress-media-grid figcaption {
    margin-top: 12px;
    text-align: center;
    color: #66717d;
    font-size: 13px;
}

@media (max-width: 700px) {
    .homepage-mattress {
        padding: 68px 0;
    }

    .homepage-mattress h2 {
        margin-bottom: 30px;
        font-size: 26px;
    }

    .mattress-item summary {
        min-height: 56px;
        padding-left: 18px;
        font-size: 15px;
    }

    .mattress-toggle {
        right: 14px;
        width: 32px;
        height: 32px;
        font-size: 26px;
    }

    .mattress-panel {
        padding: 30px 16px 34px;
    }

    .mattress-media-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mattress-item summary {
        scroll-behavior: auto;
    }
}
