.support-page {
    --support-ink: #242536;
    --support-gutter: clamp(14px, 4vw, 40px);
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding: clamp(18px, 3vw, 42px)
             max(var(--support-gutter), env(safe-area-inset-right))
             clamp(24px, 4vw, 50px)
             max(var(--support-gutter), env(safe-area-inset-left));
    color: var(--support-ink);
    scroll-margin-bottom: var(--app-bottom-nav-height);
}

.support-page h1, .support-page h2, .support-page p {
    margin: 0;
}

.support-hero {
    margin-bottom: clamp(18px, 2.5vw, 28px);
}

.support-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    margin-bottom: 4px;
    color: var(--pn-action);
    font-size: .875rem;
    font-weight: 650;
    text-decoration: none;
}

.support-back:hover {
    text-decoration: underline;
}

.support-hero h1 {
    font-size: clamp(2rem, 4.3vw, 3.15rem);
    font-weight: 760;
    line-height: 1.16;
}

.support-hero p, .support-section p {
    color: var(--pn-muted);
    line-height: 1.5;
}

.support-hero p {
    margin-top: 7px;
}

.support-contacts, .support-grid, .support-primary {
    display: grid;
    gap: clamp(10px, 1.8vw, 22px);
    min-width: 0;
    align-items: start;
}

.support-contacts {
    margin-bottom: clamp(16px, 2.3vw, 28px);
    align-items: stretch;
}

.support-contact, .support-panel {
    min-width: 0;
    border: 1px solid var(--pn-line);
    border-radius: 15px;
    background: #fff;
}

.support-contact {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 72px;
    padding: 10px clamp(10px, 1.5vw, 18px);
    color: var(--support-ink);
    text-decoration: none;
}

.support-contact:hover, .support-contact:focus-visible {
    background: #fbf9fe;
    border-color: #c9bbde;
    color: var(--support-ink);
}

.support-contact-copy {
    display: grid;
    flex: 1;
    gap: 1px;
    min-width: 0;
    overflow-wrap: anywhere;
    line-height: 1.35;
}

.support-contact-copy strong {
    font-weight: 700;
}

.support-contact-copy > span {
    color: var(--pn-muted);
    font-size: .86rem;
}

.support-page svg {
    width: 18px;
    height: 18px;
    flex: none;
}

.support-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    flex: none;
    border-radius: 10px;
    background: var(--pn-lavender);
    color: var(--pn-purple);
}

.support-contact-arrow {
    color: var(--pn-action);
}

.support-panel {
    padding: clamp(14px, 2.2vw, 26px);
}

.support-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.support-section h2 {
    font-size: clamp(1.17rem, 2.2vw, 1.4rem);
    font-weight: 730;
    line-height: 1.3;
}

.support-section p {
    margin-top: 3px;
    font-size: .875rem;
}

.support-form, .support-form-row, .support-field {
    display: grid;
    gap: 13px;
    min-width: 0;
}

.support-field {
    gap: 5px;
}

.support-field label {
    font-size: .9rem;
    font-weight: 650;
}

.support-page .support-field :is(input, select, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 11px;
    border: 1px solid #ddd8e8;
    border-radius: 9px;
    background-color: #fcfbfe;
    font-size: 1rem;
    line-height: 1.4;
}

.support-page .support-field :is(input, select, textarea):focus {
    border-color: var(--pn-action);
    outline: none;
}

.support-field textarea {
    resize: vertical;
}

.support-page .support-field [aria-invalid="true"] {
    border-color: #b23650;
}

.support-error, .support-error-summary {
    color: #962742;
    font-size: .85rem;
}

.support-error-summary {
    padding: 10px 12px;
    border-radius: 9px;
    background: #fff0f2;
}

.support-form .support-submit {
    min-height: 46px;
    gap: 8px;
    border-radius: 9px;
}

.support-faqs {
    display: grid;
    gap: 7px;
}

.support-faqs details {
    border: 1px solid var(--pn-line);
    border-radius: 9px;
}

.support-faqs details[open] {
    background: #fcfbfe;
}

.support-faqs summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 48px;
    padding: 9px 11px;
    border-radius: 8px;
    list-style: none;
    cursor: pointer;
    font-size: .925rem;
    font-weight: 650;
    line-height: 1.4;
}

.support-faqs summary::-webkit-details-marker { display: none; }
.support-faqs summary:hover { background: var(--pn-lavender); }
.support-faqs summary svg { color: var(--pn-action); }
.support-faqs details[open] summary svg { transform: rotate(180deg); }

.support-faqs :is(p, ul) {
    margin: 0;
    padding: 0 11px 12px;
    color: var(--pn-muted);
    font-size: .875rem;
    line-height: 1.55;
}

.support-faqs ul {
    padding-inline-start: 30px;
}

.support-history {
    display: grid;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.support-history li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 7px 12px;
    padding: 10px 12px;
    border-radius: 9px;
    background: #f8f6fb;
}

.support-ticket-copy {
    min-width: 0;
    overflow-wrap: anywhere;
}

.support-ticket-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1px 8px;
    color: var(--pn-muted);
    font-size: .8rem;
}

.support-status {
    padding: 3px 8px;
    border-radius: 30px;
    background: var(--pn-lavender);
    color: var(--pn-purple);
    font-size: .8rem;
    font-weight: 650;
}

.support-status[data-status="resolved"] { background: #e1f5ec; color: #125943; }
.support-status[data-status="in_progress"] { background: #fff3da; color: #784710; }

@media (min-width: 520px) {
    .support-form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .support-form .support-submit { justify-self: start; }
}

@media (min-width: 700px) {
    .support-contacts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 992px) {
    .support-grid { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
}
