/**
 * Module: FAQ Page Styles
 * Purpose: Оформление FAQ-страницы по Figma (hero + Anfrage/Buchung/Ablauf блок).
 * Inputs: design-tokens.css, base.css, components.css, city-hub.css.
 * Outputs: Адаптивные стили breadcrumbs, hero-контента, CTA, benefits, Inhaltsverzeichnis и FAQ-списка.
 * Notes: Переиспользует токены дизайн-системы и общий button-primitive .vc-btn.
 */

/* -------------------------------------------------------
   Page wrapper
------------------------------------------------------- */
.vc-faq-page {
    background-color: var(--vc-color-bg-primary);
    color: var(--vc-color-text-primary);
    font-family: var(--vc-font-family);
    margin-top: -30px;
    padding-top: 30px;
    --vc-faq-flow-content-offset: 30px;
}

/* -------------------------------------------------------
   Surface + breadcrumbs
------------------------------------------------------- */
.vc-faq-surface {
    background: var(--vc-color-bg-primary);
    padding: var(--vc-space-8) 0 var(--vc-space-16);
}

.vc-faq-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--vc-space-2);
    margin-bottom: var(--vc-space-8);
    font-size: var(--vc-font-size-body-xs);
    line-height: var(--vc-line-height-relaxed);
    color: var(--vc-color-primary);
}

.vc-faq-breadcrumbs a {
    color: inherit;
    text-decoration: none;
    transition: opacity var(--vc-transition-fast);
}

.vc-faq-breadcrumbs a:hover {
    opacity: 0.8;
}

.vc-faq-breadcrumbs__sep {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
    background: url('../img/icon/2026-03-04_17-33-03.png') center / contain no-repeat;
    opacity: 0.6;
}

.vc-faq-breadcrumbs__current {
    color: var(--vc-color-text-muted);
}

/* -------------------------------------------------------
   Hero surface (full-width gradient)
------------------------------------------------------- */
.vc-faq-hero-surface {
    width: 100%;
    background: linear-gradient(180deg, var(--vc-color-bg-primary) 0%, var(--vc-color-bg-secondary) 100%);
    padding: var(--vc-space-9) 0 var(--vc-space-10);
}

/* -------------------------------------------------------
   Hero shell
------------------------------------------------------- */
.vc-faq-content {
    width: 100%;
    padding: 22px 0 var(--vc-space-10);
}

.vc-faq-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--vc-space-10);
    align-items: start;
}

.vc-faq-hero__main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.vc-faq-hero__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 15px;
    border-radius: var(--vc-radius-full);
    background: var(--vc-color-error-bg);
    color: var(--vc-color-error);
    font-size: var(--vc-font-size-body-sm);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
}

.vc-faq-hero__badge-text--mobile {
    display: none;
}

.vc-faq-hero__title {
    margin: 0;
    font-size: var(--vc-font-size-h2);
    line-height: 40px;
    font-weight: var(--vc-font-weight-bold);
    color: var(--vc-color-text-primary);
}

.vc-faq-hero__title-accent {
    color: var(--vc-color-primary);
}

.vc-faq-hero__lead {
    margin: 0;
    max-width: 560px;
    font-size: var(--vc-font-size-body);
    line-height: var(--vc-line-height-relaxed);
    font-weight: var(--vc-font-weight-medium);
    color: var(--vc-color-text-muted);
}

.vc-faq-hero__actions {
    margin-top: var(--vc-space-5);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 25px;
}

.vc-faq-hero__action {
    text-align: center;
}

/* -------------------------------------------------------
   Mobile-only benefit cards
------------------------------------------------------- */
.vc-faq-hero__benefits {
    display: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

.vc-faq-hero__benefit {
    min-height: 80px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border-radius: var(--vc-radius-lg);
    border: 1px solid var(--vc-color-border);
    background: var(--vc-color-bg-primary);
}

.vc-faq-hero__benefit img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.vc-faq-hero__benefit span {
    display: block;
    font-size: var(--vc-font-size-body);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
    color: var(--vc-color-primary);
}

/* -------------------------------------------------------
   Inhaltsverzeichnis
------------------------------------------------------- */
.vc-faq-hero__toc {
    min-width: 0;
    padding: 33px 20px 20px;
    border-radius: var(--vc-radius-2xl);
    background: var(--vc-color-bg-secondary);
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.vc-faq-hero__toc-title {
    margin: 0;
    color: var(--vc-color-primary);
    font-size: var(--vc-font-size-body);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
    text-transform: uppercase;
}

.vc-faq-hero__toc-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.vc-faq-hero__topic-item {
    min-width: 0;
}

.vc-faq-hero__topic {
    width: 100%;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 15px 20px;
    border-radius: var(--vc-radius-lg);
    border: 1px solid var(--vc-color-border);
    background: var(--vc-color-bg-primary);
    color: var(--vc-color-primary);
    font-family: var(--vc-font-family);
    font-size: var(--vc-font-size-body);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
    text-align: left;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background var(--vc-transition-fast), color var(--vc-transition-fast), border-color var(--vc-transition-fast), box-shadow var(--vc-transition-fast);
}

.vc-faq-hero__topic:hover,
.vc-faq-hero__topic:focus-visible {
    background: var(--vc-gradient-primary-hover);
    border-color: var(--vc-color-bg-primary);
    color: var(--vc-color-text-inverse);
    box-shadow: var(--vc-shadow-md);
}

.vc-faq-hero__topic:active {
    background: var(--vc-gradient-primary);
    border-color: var(--vc-color-bg-primary);
    color: var(--vc-color-text-inverse);
    box-shadow: var(--vc-shadow-md);
}

/* -------------------------------------------------------
   FAQ flow block (Anfrage, Buchung & Ablauf)
------------------------------------------------------- */
.vc-faq-flow {
    padding-top: 80px;
    scroll-margin-top: 96px;
}

.vc-faq-flow__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 10px 15px;
    border-radius: var(--vc-radius-full);
    background: var(--vc-color-error-bg);
    color: var(--vc-color-error);
    font-size: var(--vc-font-size-body-sm);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
}

.vc-faq-flow__title {
    margin: 8px 0 0;
    font-size: var(--vc-font-size-h2);
    line-height: 1.2;
    font-weight: var(--vc-font-weight-bold);
    color: var(--vc-color-text-primary);
}

.vc-faq-flow__title-accent {
    color: var(--vc-color-primary);
}

.vc-faq-flow__chips {
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.vc-faq-flow__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 15px 25px;
    box-sizing: border-box;
    border-radius: var(--vc-radius-full);
    border: 1px solid var(--vc-color-border);
    background: var(--vc-color-bg-secondary);
    color: var(--vc-color-text-primary);
    font-size: var(--vc-font-size-body-sm);
    line-height: 20px;
    font-weight: var(--vc-font-weight-medium);
    text-align: center;
    white-space: nowrap;
}

.vc-faq-flow__list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.vc-faq-flow__item {
    border: none;
    border-radius: 0;
}

.vc-faq-flow__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 65px;
    padding: 20px var(--vc-faq-flow-content-offset);
    box-sizing: border-box;
    border: 1px solid var(--vc-color-border);
    border-radius: var(--vc-radius-full);
    background: var(--vc-color-bg-primary);
    list-style: none;
    cursor: pointer;
    transition: background var(--vc-transition-fast), border-color var(--vc-transition-fast);
}

.vc-faq-flow__summary::-webkit-details-marker {
    display: none;
}

.vc-faq-flow__summary:hover {
    background: var(--vc-color-bg-tertiary);
}

.vc-faq-flow__question {
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--vc-font-size-h6);
    line-height: 20px;
    font-weight: var(--vc-font-weight-semibold);
    color: var(--vc-color-text-primary);
}

.vc-faq-flow__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    color: var(--vc-color-text-primary);
    flex: 0 0 auto;
    transition: transform var(--vc-transition-slow);
}

.vc-faq-flow__item[open] .vc-faq-flow__icon {
    transform: rotate(180deg);
}

.vc-faq-flow__content {
    padding: 25px var(--vc-faq-flow-content-offset) 0;
}

.vc-faq-flow__answer {
    margin: 0;
    font-size: var(--vc-font-size-h6);
    line-height: var(--vc-line-height-normal);
    font-weight: var(--vc-font-weight-medium);
    color: var(--vc-color-text-muted);
}

/* -------------------------------------------------------
   Back to TOC button
------------------------------------------------------- */
.vc-faq-back-to-toc {
    --vc-faq-back-to-toc-x: 0;
    position: fixed;
    right: calc(var(--vc-space-6) + 108px);
    bottom: var(--vc-space-6);
    z-index: 900;
    box-shadow: var(--vc-shadow-md);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate(var(--vc-faq-back-to-toc-x), 10px);
    transition: opacity var(--vc-transition-fast), transform var(--vc-transition-fast), visibility var(--vc-transition-fast);
}

.vc-faq-back-to-toc svg {
    display: block;
}

.vc-faq-back-to-toc.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(var(--vc-faq-back-to-toc-x), 0);
}

.vc-faq-back-to-toc:focus-visible {
    outline: 2px solid var(--vc-color-primary);
    outline-offset: 2px;
}

/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */
@media (max-width: 1024px) {
    .vc-faq-hero-surface {
        padding: var(--vc-space-8) 0;
    }

    .vc-faq-content {
        padding-bottom: var(--vc-space-8);
    }

    .vc-faq-hero {
        grid-template-columns: 1fr;
        gap: var(--vc-space-8);
    }

    .vc-faq-hero__actions {
        gap: var(--vc-space-4);
    }

    .vc-faq-flow__title {
        font-size: var(--vc-font-size-h3);
    }
}

@media (max-width: 768px) {
    .vc-faq-surface {
        padding: var(--vc-space-6) 0 var(--vc-space-12);
    }

    .vc-faq-breadcrumbs {
        display: none;
    }

    .vc-faq-hero-surface {
        padding: 0 0 var(--vc-space-5);
    }

    .vc-faq-content {
        padding: 0 0 24px;
    }

    .vc-faq-hero {
        gap: var(--vc-space-6);
    }

    .vc-faq-hero__main {
        gap: var(--vc-space-3);
    }

    .vc-faq-hero__badge-text--desktop {
        display: none;
    }

    .vc-faq-hero__badge-text--mobile {
        display: inline;
    }

    .vc-faq-hero__title {
        font-size: var(--vc-font-size-h4);
        line-height: 26px;
    }

    .vc-faq-hero__lead {
        max-width: 335px;
        font-size: var(--vc-font-size-body-sm);
        line-height: 18px;
    }

    .vc-faq-hero__actions {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
    }

    .vc-faq-hero__action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 220px !important;
        min-width: 220px !important;
        max-width: 220px !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        padding: 0 30px !important;
        box-sizing: border-box;
        font-size: 14px;
        line-height: 20px;
        white-space: nowrap;
    }

    .vc-faq-hero__benefits {
        display: none;
    }

    .vc-faq-hero__toc {
        padding: 0;
        border-radius: 0;
        background: transparent;
        gap: var(--vc-space-6);
        margin-top: var(--vc-space-4);
    }

    .vc-faq-hero__toc-list {
        grid-template-columns: 1fr;
    }

    .vc-faq-hero__topic {
        min-height: 52px;
    }

    .vc-faq-flow {
        padding-top: 25px;
        scroll-margin-top: 112px;
    }

    .vc-faq-flow__title {
        margin-top: 12px;
        font-size: var(--vc-font-size-h4);
        line-height: 26px;
    }

    .vc-faq-flow__title-rest {
        color: var(--vc-color-primary);
    }

    .vc-faq-flow__chips {
        margin-top: 12px;
        width: 100%;
        align-items: flex-start;
    }

    .vc-faq-flow__chip {
        min-height: 44px;
        padding: 12px 16px;
        max-width: 100%;
        white-space: normal;
        justify-content: flex-start;
        text-align: left;
    }

    .vc-faq-flow__summary {
        align-items: flex-start;
    }

    .vc-faq-flow__question {
        max-width: calc(100% - 30px);
        overflow-wrap: anywhere;
    }

    .vc-faq-flow__icon {
        flex: 0 0 20px;
        margin-top: 2px;
    }

    .vc-faq-flow__list {
        margin-top: 32px;
    }

    .vc-faq-back-to-toc {
        --vc-faq-back-to-toc-x: -50%;
        left: 50%;
        right: auto;
        bottom: calc(var(--vc-space-4) + env(safe-area-inset-bottom, 0px));
    }

}
