:root {
    --page-bg: #f4f7fb;
    --surface: #ffffff;
    --surface-soft: #f8fafc;
    --text: #10213a;
    --muted: #778196;
    --border: #dce3ec;
    --pink: #44a9b7;
    --pink-soft: #eaf7f9;
    --teal: #44a9b7;
    --teal-dark: #3a96a3;
    --teal-soft: #eaf7f9;
    --blue: #1768e5;
    --blue-soft: #eaf2ff;
    --blue-soft-2: #f5f8ff;
    --shadow: 0 16px 36px rgba(16, 33, 58, 0.08), 0 3px 10px rgba(16, 33, 58, 0.05);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --container: 1180px;
    --transition: 180ms ease;
}

.support-page {
    min-height: auto;
    background: var(--page-bg);
    color: var(--text);
    font-family: Montserrat, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

.support-page a { color: inherit; }
.support-page button,
.support-page input { font: inherit; }
.support-page button { border: 0; }

.page-shell {
    width: min(calc(100% - 24px), var(--container));
    margin: 0 auto;
    padding: 20px 0 16px;
}

.hero {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 12px;
    background: transparent;
    color: inherit;
    padding: 0;
    border-radius: 0;
}

.support-page .hero h1 {
    color: var(--text);
    font-size: clamp(1.2rem, 3vw, 1.7rem);
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 800;
}

.hero p {
    margin-top: 5px;
    color: var(--muted);
    font-size: clamp(0.82rem, 1.2vw, 0.95rem);
}

.support-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}

.support-card {
    min-height: auto;
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    background: var(--surface);
    border: 1px solid rgba(220, 227, 236, 0.72);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.support-card:hover {
    transform: translateY(-3px);
    border-color: rgba(68, 169, 183, 0.35);
    box-shadow: 0 20px 42px rgba(16, 33, 58, 0.10), 0 4px 12px rgba(16, 33, 58, 0.05);
}

.support-icon {
    width: 60px;
    height: 60px;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.support-icon svg { width: 28px; height: 28px; }

.support-icon--email { background: var(--pink-soft); color: var(--pink); }
.support-icon--phone { background: var(--teal-soft); color: var(--teal); }

.support-content h2 {
    font-size: 0.98rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

.support-contact {
    display: inline-block;
    margin-top: 4px;
    color: var(--teal);
    font-size: 0.9rem;
    text-decoration: none;
    transition: color var(--transition);
}

.support-contact:hover {
    color: var(--teal-dark);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.support-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.78rem;
}

.support-meta svg { width: 14px; height: 14px; flex: 0 0 auto; }

.support-action {
    width: fit-content;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 6px 12px;
    background: var(--surface);
    border: 1.5px solid currentColor;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.support-action svg { width: 14px; height: 14px; }
.support-action:hover { transform: translateY(-1px); }

.support-action--email { color: var(--teal); }
.support-action--email:hover { background: var(--teal-soft); box-shadow: 0 8px 18px rgba(68, 169, 183, 0.14); }

.support-action--phone { color: var(--teal-dark); }
.support-action--phone:hover { background: var(--teal-soft); box-shadow: 0 8px 18px rgba(68, 169, 183, 0.16); }

.faq-card {
    overflow: hidden;
    padding: 16px;
    background: var(--surface);
    border: 1px solid rgba(220, 227, 236, 0.72);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
}

.faq-header {
    display: grid;
    grid-template-columns: 1fr minmax(180px, 300px);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.faq-title-row { display: flex; align-items: center; gap: 12px; }

.faq-title-icon {
    width: 24px;
    height: 24px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    background: var(--teal);
    color: #ffffff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 800;
}

.faq-heading h2 {
    font-size: clamp(1rem, 2vw, 1.2rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.faq-heading p { margin-top: 4px; color: var(--muted); font-size: 0.82rem; }

.search-box { position: relative; }
.search-box svg {
    position: absolute;
    top: 50%;
    left: 14px;
    width: 18px;
    height: 18px;
    color: var(--muted);
    pointer-events: none;
    transform: translateY(-50%);
}

.search-box input {
    width: 100%;
    min-height: 38px;
    padding: 8px 12px 8px 36px;
    color: var(--text);
    background: var(--surface);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.search-box input::placeholder { color: #9aa4b3; }
.search-box input:focus { border-color: var(--teal); box-shadow: 0 0 0 4px rgba(68, 169, 183, 0.14); }

.faq-list {
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}

.faq-item {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
.faq-item:last-child { border-bottom: 0; }

.support-page .faq-item h3 {
    font-size: 1em;
    margin: 0;
}

.support-page .faq-question {
    width: 100%;
    min-height: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    color: var(--text);
    background: var(--surface);
    text-align: left;
    cursor: pointer;
    font-size: 0.72rem !important;
    font-weight: 600;
    transition: background var(--transition), color var(--transition);
}

.faq-question:hover { background: var(--surface-soft); }
.faq-question:focus-visible {
    position: relative;
    z-index: 2;
    outline: 3px solid rgba(68, 169, 183, 0.35);
    outline-offset: -3px;
}

.faq-chevron {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    transition: transform var(--transition);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    background: var(--surface);
    transition: grid-template-rows 240ms ease, background var(--transition);
}

.faq-answer-inner { overflow: hidden; }
.faq-answer-content {
    padding: 0 14px;
    color: #5f697a;
    font-size: 0.82rem;
}

.faq-answer-content a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.faq-item.is-open .faq-question {
    color: #17458f;
    background: linear-gradient(90deg, #dbe9ff 0%, var(--blue-soft) 100%);
}

.faq-item.is-open .faq-chevron { transform: rotate(180deg); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; background: var(--blue-soft-2); }
.faq-item.is-open .faq-answer-content {
    padding-top: 10px;
    padding-bottom: 12px;
}

.faq-empty {
    display: none;
    padding: 18px 14px;
    color: var(--muted);
    text-align: center;
    background: var(--surface-soft);
    font-size: 0.82rem;
}

.faq-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 14px;
    color: var(--muted);
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.82rem;
}

.faq-footer svg { width: 16px; height: 16px; flex: 0 0 auto; color: var(--teal-dark); }
.faq-footer a { color: var(--teal-dark); font-weight: 700; text-decoration: none; }
.faq-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 900px) {
    .page-shell { padding-top: 18px; }
    .support-grid { grid-template-columns: 1fr; }
    .faq-header { grid-template-columns: 1fr; }
    .support-card { min-height: auto; }
}

@media (max-width: 620px) {
    .page-shell {
        width: min(calc(100% - 16px), var(--container));
        padding-top: 16px;
    }
    .hero { margin-bottom: 12px; }
    .support-grid { gap: 12px; margin-bottom: 12px; }
    .support-card {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 14px 12px;
        text-align: center;
    }
    .support-icon { width: 52px; height: 52px; margin: 0 auto; }
    .support-icon svg { width: 24px; height: 24px; }
    .support-meta,
    .support-action { margin-left: auto; margin-right: auto; }
    .faq-card { padding: 14px 10px; border-radius: 12px; }
    .faq-header { gap: 10px; margin-bottom: 10px; }
    .faq-title-row { align-items: flex-start; }
    .faq-heading p { margin-left: 0; }
    .support-page .faq-question {
        min-height: 40px;
        padding: 9px 12px;
        font-size: 0.7rem !important;
    }
    .faq-answer-content { padding-left: 12px; padding-right: 12px; }
    .faq-footer { align-items: flex-start; font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
    .support-page *,
    .support-page *::before,
    .support-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
