/* =========================================================
   Центр поддержки (/help) — светло-розовая эстетика IdealAnketa
   ========================================================= */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.help-page { max-width: 980px; }

.help-hero {
    position: relative;
    overflow: hidden;
    padding: 30px 26px 24px;
    border: 1px solid #F7D7E5;
    border-radius: 24px;
    background:
        radial-gradient(120% 120% at 92% -12%, rgba(245, 26, 126, 0.16), transparent 58%),
        radial-gradient(120% 120% at 0% 0%, rgba(147, 51, 234, 0.10), transparent 55%),
        #FFFFFF;
    box-shadow: 0 22px 54px rgba(245, 26, 126, 0.08);
    margin-bottom: 18px;
}

.help-hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: #FFF0F6;
    border: 1px solid #F7C0D6;
    color: #9F1239;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.help-hero h1 {
    margin: 12px 0 8px;
    font-size: clamp(26px, 4vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.6px;
    color: var(--ia-rd-text, #111827);
}

.help-hero-lead {
    margin: 0;
    max-width: 640px;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--ia-rd-text-secondary, #62677D);
}

.help-updated {
    margin: 10px 0 0;
    font-size: 11.5px;
    color: var(--ia-rd-text-muted, #848A9E);
}

.help-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    padding: 0 14px;
    min-height: 54px;
    border: 1px solid #F3C6D9;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 26px rgba(245, 26, 126, 0.09);
    transition: border-color .16s, box-shadow .16s;
}

.help-search:focus-within {
    border-color: #F51A7E;
    box-shadow: 0 14px 32px rgba(245, 26, 126, 0.16);
}

.help-search-ico { font-size: 17px; line-height: 1; opacity: .8; }

.help-search input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 15px;
    color: var(--ia-rd-text, #111827);
    outline: none;
    padding: 14px 0;
}

.help-search input::placeholder { color: #A7A3B3; }

.help-search-clear {
    appearance: none;
    border: 0;
    background: #F6E7EF;
    color: #9F1239;
    width: 28px; height: 28px;
    border-radius: 50%;
    font: inherit;
    font-size: 12px;
    cursor: pointer;
    flex: 0 0 auto;
}

.help-search-clear:hover { background: #F9D3E3; }

.help-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 2px 12px;
    margin: 0 -2px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.help-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid #F3C6D9;
    background: #FFFFFF;
    color: #9F1239;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background .15s, border-color .15s, transform .15s;
}

.help-chip:hover {
    background: #FFF0F6;
    border-color: #F51A7E;
    transform: translateY(-1px);
}

.help-noresults {
    margin: 0 0 16px;
    padding: 22px 18px;
    text-align: center;
    border: 1px dashed #F3C6D9;
    border-radius: 18px;
    background: #FFF8FB;
}

.help-noresults span { font-size: 26px; line-height: 1; }
.help-noresults b { display: block; margin-top: 6px; color: #9F1239; }
.help-noresults p {
    margin: 4px 0 0;
    font-size: 12.5px;
    color: var(--ia-rd-text-secondary, #62677D);
}

.help-cats { display: grid; gap: 16px; }

.help-cat {
    padding: 20px 20px 8px;
    border: 1px solid var(--ia-rd-border, #EAECEF);
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.05);
    scroll-margin-top: 18px;
}

.help-cat-head h2 {
    margin: 0;
    font-size: 18px;
    line-height: 1.3;
    color: var(--ia-rd-text, #111827);
}

.help-cat-head p {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--ia-rd-text-secondary, #62677D);
}

.help-cat-empty {
    margin: 12px 0;
    font-size: 12.5px;
    color: var(--ia-rd-text-muted, #848A9E);
}

.help-acc-list {
    display: grid;
    gap: 8px;
    margin: 14px 0 12px;
}

.help-acc {
    border: 1px solid #F6E3EC;
    border-radius: 14px;
    background: #FFFCFD;
    overflow: hidden;
    transition: border-color .16s, background .16s, box-shadow .16s;
}

.help-acc:hover { border-color: #F3C6D9; }

.help-acc[open] {
    border-color: #F7C0D6;
    background: #FFFFFF;
    box-shadow: 0 8px 22px rgba(245, 26, 126, 0.07);
}

.help-acc summary {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    min-height: 48px;
    cursor: pointer;
    list-style: none;
    font-size: 13.5px;
    font-weight: 700;
    line-height: 1.45;
    color: var(--ia-rd-text, #1F2937);
}

.help-acc summary::-webkit-details-marker { display: none; }

.help-acc-q { flex: 1 1 auto; min-width: 0; }

.help-acc-mark {
    position: relative;
    flex: 0 0 auto;
    width: 26px; height: 26px;
    border-radius: 50%;
    background: #FFF0F6;
    border: 1px solid #F7C0D6;
}

.help-acc-mark::before,
.help-acc-mark::after {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    width: 11px; height: 1.8px;
    border-radius: 2px;
    background: #F51A7E;
    transform: translate(-50%, -50%);
    transition: transform .18s ease, opacity .18s ease;
}

.help-acc-mark::after { transform: translate(-50%, -50%) rotate(90deg); }
.help-acc[open] .help-acc-mark::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }

.help-acc-body {
    padding: 0 16px 16px;
    font-size: 13.5px;
    line-height: 1.65;
    color: #4B5563;
    overflow-wrap: anywhere;
    animation: helpAccOpen .2s ease;
}

.help-acc-body strong, .help-acc-body b { color: #831843; }

@keyframes helpAccOpen {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ---------- Блок связи с поддержкой ---------- */

.help-support {
    position: relative;
    overflow: hidden;
    margin-top: 22px;
    padding: 24px;
    border-radius: 24px;
    border: 1px solid #F7C0D6;
    background:
        radial-gradient(100% 130% at 92% 0%, rgba(245, 26, 126, 0.14), transparent 60%),
        linear-gradient(180deg, #FFF8FB 0%, #FFEFF6 100%);
}

.help-support-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.help-support-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px; height: 46px;
    border-radius: 15px;
    background: #FFFFFF;
    border: 1px solid #F7C0D6;
    font-size: 22px;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(245, 26, 126, 0.10);
}

.help-support-head h2 {
    margin: 2px 0 0;
    font-size: 20px;
    color: #831843;
}

.help-support-hours {
    margin: 4px 0 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #7A4B62;
}

.help-support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
}

.help-contact {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    background: #FFFFFF;
    border: 1px solid #F6DCE7;
    text-decoration: none;
    color: inherit;
    transition: transform .16s, border-color .16s, box-shadow .16s;
}

.help-contact:hover {
    transform: translateY(-2px);
    border-color: #F51A7E;
    box-shadow: 0 12px 26px rgba(245, 26, 126, 0.12);
}

.help-contact-ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 12px;
    background: #FFF0F6;
    font-size: 18px;
}

.help-contact-body { min-width: 0; display: grid; gap: 2px; }
.help-contact-body b { font-size: 13.5px; color: #831843; }
.help-contact-body span {
    font-size: 12px;
    color: #62677D;
    overflow-wrap: anywhere;
}

.help-contact-arrow {
    margin-left: auto;
    color: #F51A7E;
    font-weight: 800;
}

.help-support-code {
    margin-top: 16px;
    padding: 14px 15px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px dashed #F3C6D9;
}

.help-support-code-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.help-support-code-label {
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: #9F6A82;
}

.help-support-code code {
    padding: 4px 9px;
    border-radius: 8px;
    background: #FFF0F6;
    border: 1px solid #F7C0D6;
    color: #9F1239;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: .04em;
}

.help-copy-btn {
    appearance: none;
    margin-left: auto;
    border: 1px solid #F51A7E;
    border-radius: 999px;
    background: #F51A7E;
    color: #FFFFFF;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    padding: 9px 14px;
    min-height: 38px;
    cursor: pointer;
    transition: background .15s, transform .15s;
}

.help-copy-btn:hover { background: #D80F68; transform: translateY(-1px); }
.help-copy-btn.is-copied { background: #15803D; border-color: #15803D; }


.help-support-code-hint {
    margin: 8px 0 0;
    font-size: 11.5px;
    line-height: 1.55;
    color: #7A4B62;
}

.help-support-code-hint a { color: #F51A7E; font-weight: 700; }

.help-memo {
    margin-top: 16px;
    padding: 16px 18px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid #F6DCE7;
}

.help-memo h3 { margin: 0 0 8px; font-size: 14px; color: #831843; }

.help-memo ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.65;
    color: #4B5563;
}

.help-memo li + li { margin-top: 3px; }

@media (max-width: 640px) {
    .help-support-grid { grid-template-columns: 1fr; }
    .help-support { padding: 20px 16px; }
    .help-copy-btn { margin-left: 0; width: 100%; }
}

@media (max-width: 420px) {
    .help-hero { padding: 24px 16px 20px; border-radius: 20px; }
    .help-cat { padding: 16px 14px 6px; border-radius: 16px; }
    .help-acc summary { padding: 12px 13px; font-size: 13px; }
    .help-acc-body { padding: 0 13px 14px; font-size: 13px; }
    .help-support { border-radius: 20px; }
    .help-support-head h2 { font-size: 18px; }
    .help-support-ico { width: 42px; height: 42px; font-size: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .help-acc-body { animation: none; }
    .help-chip:hover, .help-contact:hover, .help-copy-btn:hover { transform: none; }
}

