.customer-page {
    width: min(100% - 40px, 1280px);
    margin: 0 auto;
    padding: 42px 15px 88px;
    background: #ffffff;
}

.customer-page [hidden] {
    display: none !important;
}

.customer-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 26px;
    border-bottom: 1px solid #202124;
}

.customer-head span {
    display: block;
    color: #dd4a2c;
    font-size: 14px;
    font-weight: 500;
}

.customer-head h1 {
    margin: 4px 0 0;
    color: #202124;
    font-size: 32px;
    line-height: 1.35;
    font-weight: 600;
}

.customer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 42px;
    align-items: start;
    padding-top: 34px;
}

.customer-section__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.customer-section__head h2 {
    margin: 0;
    color: #202124;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
}

.customer-faq__list {
    border-top: 1px solid #202124;
}

.customer-state,
.customer-empty {
    margin: 0;
    padding: 56px 0;
    border-top: 1px solid #202124;
    border-bottom: 1px solid #edf0f4;
    color: #6f7680;
    font-size: 15px;
    line-height: 1.6;
    text-align: center;
    word-break: keep-all;
}

.customer-state.is-error {
    color: #c7351b;
}

.customer-empty strong {
    display: block;
    color: #202124;
    font-size: 20px;
    font-weight: 600;
}

.customer-empty p {
    margin: 10px 0 0;
    color: #6f7680;
}

.customer-faq__item {
    border-bottom: 1px solid #edf0f4;
}

.customer-faq__item button {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) 28px;
    gap: 16px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 18px 14px;
    border: 0;
    background: #ffffff;
    color: #202124;
    text-align: left;
}

.customer-faq__item button:active {
    background: #fff8f5;
}

.customer-faq__item button > span {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    border-radius: 4px;
    background: #f4f5f7;
    color: #6f7680;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.customer-faq__item button strong {
    min-width: 0;
    color: #202124;
    font-size: 17px;
    line-height: 1.45;
    font-weight: 600;
    word-break: keep-all;
}

.customer-faq__item button i {
    justify-self: end;
    color: #8a929d;
    font-size: 20px;
    transition: transform 0.24s ease;
}

.customer-faq__item.is-open button i {
    transform: rotate(180deg);
}

.customer-faq__panel {
    height: 0;
    overflow: hidden;
    transition: height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.customer-faq__panel > div {
    padding: 0 14px 22px 142px;
}

.customer-faq__panel p {
    max-width: 760px;
    margin: 0;
    color: #5f6672;
    font-size: 15px;
    line-height: 1.7;
    word-break: keep-all;
}

.customer-contact {
    position: sticky;
    top: calc(var(--site-header-height, 139px) + 24px);
    display: grid;
    gap: 16px;
}

.customer-contact section {
    padding: 22px;
    border: 1px solid #e5e8ee;
    border-radius: 8px;
    background: #ffffff;
}

.customer-contact dl {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid #edf0f4;
}

.customer-contact dl div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f4;
}

.customer-contact dt,
.customer-contact dd {
    margin: 0;
    font-size: 14px;
}

.customer-contact dt {
    color: #6f7680;
}

.customer-contact dd {
    color: #202124;
    font-weight: 600;
    text-align: right;
}

.customer-contact__actions {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.customer-contact__actions a,
.customer-help a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid #d9dde5;
    border-radius: 6px;
    background: #ffffff;
    color: #202124;
    font-size: 14px;
    font-weight: 600;
}

.customer-contact__actions a:first-child {
    border-color: #dd4a2c;
    background: #dd4a2c;
    color: #ffffff;
}

.customer-help {
    display: grid;
    gap: 12px;
}

.customer-help strong {
    color: #202124;
    font-size: 16px;
    line-height: 1.45;
    font-weight: 600;
    word-break: keep-all;
}

.customer-help p {
    margin: 0;
    color: #6f7680;
    font-size: 14px;
    line-height: 1.6;
    word-break: keep-all;
}

@media (max-width: 1024px) {
    .customer-layout {
        grid-template-columns: 1fr;
    }

    .customer-contact {
        position: static;
    }
}

@media (max-width: 768px) {
    .customer-page {
        width: 100%;
        padding: 24px 15px 72px;
    }

    .customer-head {
        display: block;
    }

    .customer-head h1 {
        font-size: 24px;
    }

    .customer-faq__item button {
        grid-template-columns: 1fr 28px;
        gap: 8px 12px;
        padding: 18px 12px;
    }

    .customer-faq__item button > span {
        grid-column: 1;
    }

    .customer-faq__item button strong {
        grid-column: 1;
        font-size: 16px;
    }

    .customer-faq__item button i {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-self: center;
    }

    .customer-faq__panel > div {
        padding: 0 12px 20px;
    }
}
