.page-shell .custom-work-page {
    width: 100%;
    max-width: 1180px;
    min-width: 0;
    margin-inline: auto;
    overflow-wrap: anywhere;
}
.custom-work-page *, .custom-work-page *::before, .custom-work-page *::after { box-sizing: border-box; }
.custom-work-page .custom-work-hero,
.custom-work-page .custom-work-card,
.custom-work-page .custom-work-client,
.custom-work-page .custom-work-builder,
.custom-work-page .custom-work-card__head,
.custom-work-page .custom-work-table-wrap,
.custom-work-page .custom-work-total,
.custom-work-page .field,
.custom-work-page .custom-work-hero > *,
.custom-work-page .custom-work-card__head > *,
.custom-work-page .custom-work-total > * { min-width: 0; max-width: 100%; }
.custom-work-page .custom-work-hero { grid-template-columns: minmax(0,1fr) auto; }
.custom-work-page .custom-work-hero h1 { font-size: clamp(26px,3.4vw,48px); line-height: 1.14; max-width: 22ch; }
.custom-work-page .custom-work-card__head h2 { font-size: clamp(21px,2.2vw,30px); line-height: 1.2; }
.custom-work-page input, .custom-work-page textarea { min-width: 0; max-width: 100%; }
.custom-work-page .custom-work-table-wrap { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; }
.custom-work-page .custom-work-total strong { font-size: clamp(23px,2.5vw,28px); }
@media(max-width:640px) {
    .custom-work-page .custom-work-hero { grid-template-columns: minmax(0,1fr); gap: 18px; }
    .custom-work-page .custom-work-hero h1 { max-width: none; font-size: clamp(26px,7.6vw,36px); }
    .custom-work-page .custom-work-client,
    .custom-work-page .custom-work-card__head,
    .custom-work-page .custom-work-total { grid-template-columns: minmax(0,1fr); padding: 18px 14px; }
    .custom-work-page .custom-work-card__head button { white-space: normal; width: 100%; }
    .custom-work-page .custom-work-table { display: block; width: 100%; min-width: 0; }
    .custom-work-page .custom-work-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .custom-work-page .custom-work-table tbody { display: grid; width: 100%; }
    .custom-work-page .custom-work-table tr { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 12px; padding: 18px 14px; border-top: 1px solid var(--line); min-width: 0; }
    .custom-work-page .custom-work-table th,
    .custom-work-page .custom-work-table td { display: block; min-width: 0; padding: 0; border: 0; white-space: normal; font-size: 14px; }
    .custom-work-page .custom-work-table th { grid-column: 1 / -1; text-transform: none; font-size: 16px; line-height: 1.4; }
    .custom-work-page .custom-work-table td:nth-child(2) { grid-column: 1 / -1; }
    .custom-work-page .custom-work-table td::before { content: attr(data-label); display: block; color: #aab9ce; font-size: 12px; font-weight: 500; line-height: 1.4; margin-bottom: 5px; }
    .custom-work-page .custom-work-table input { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
    .custom-work-page .custom-work-table .custom-work-subtotal { align-self: start; }
}
