/* Cost Structure Accordion ("З чого складається вартість")
   Figma: desktop 23:1074 area / mobile matches desktop layout
   ──────────────────────────────────────────── */

.cost-structure {
    padding: 24px;
}

.cost-structure__list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 716px;

}

.cost-structure__item {
    border-radius: 20px;
    overflow: hidden;
    background: #dcefdc;
}

.cost-structure__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 28px;
    border-radius: 20px;
    overflow: hidden;
    background: green;
    cursor: pointer;
    transition: opacity 0.25s ease;
}

.cost-structure__trigger:hover {
    opacity: 0.9;
}

.cost-structure__title {
    font-family: 'Arial', Serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #ffffff;
}

.cost-structure__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cost-structure__icon-glyph {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    transform: translate(-50%, -50%) rotate(0deg);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.cost-structure__icon-glyph--plus {
    opacity: 1;
}

.cost-structure__icon-glyph--minus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-90deg);
}

.cost-structure__trigger.active .cost-structure__icon-glyph--plus {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.cost-structure__trigger.active .cost-structure__icon-glyph--minus {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(0deg);
}

.cost-structure__receiver {
    max-height: 0;
    overflow: hidden;
    padding: 0 28px;
    background: #DCEFDC;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
}

.cost-structure__receiver.active {
    max-height: 500px;
    padding: 20px 28px;
}

.cost-structure__description {
    font-family: 'Arial', Serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 22px;
    letter-spacing: -0.2px;
    color: #1C1F22;
}

.cost-structure__description p {
    margin: 0 0 8px 0;
}

.cost-structure__description p:last-child {
    margin-bottom: 0;
}

@media (max-width: 576px) {
    .cost-structure__trigger {
        padding: 16px 20px;
    }

    .cost-structure__title {
        font-size: 14px;
    }

    .cost-structure__receiver {
        padding: 0 20px;
    }

    .cost-structure__receiver.active {
        padding: 16px 20px;
    }
}
