/* =========================================================
   STANKI-M FAQ — оформление аккордеона
   Изолированные стили только блока [stm_faq]
   ========================================================= */

.stm-faq {
    --stm-faq-blue: #001b72;
    --stm-faq-accent: #315cff;
    --stm-faq-light: #f3f6ff;
    --stm-faq-border: #e1e7f3;

    box-sizing: border-box;
    width: 100%;
    max-width: none;
    margin: 30px 0;
    color: #252b38;
    font: inherit;
}

.stm-faq *,
.stm-faq *::before,
.stm-faq *::after {
    box-sizing: border-box;
}

.stm-faq__inner {
    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
}

.stm-faq h2,
.stm-faq__title {
    margin: 0 0 12px;
    color: var(--stm-faq-blue);
    font-size: clamp(25px, 2.5vw, 34px);
    line-height: 1.25;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.stm-faq__description {
    margin: 0 0 24px;
    color: #424b5b;
    font-size: 16px;
    line-height: 1.7;
}

.stm-faq__list {
    display: grid;
    gap: 0;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--stm-faq-border);
    border-radius: 12px;
    background: #fff;
}

.stm-faq__item {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-bottom: 1px solid var(--stm-faq-border);
    border-radius: 0;
    background: #fff;
}

.stm-faq__item:last-child {
    border-bottom: 0;
}

.stm-faq__item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 70px;
    padding: 20px 24px;
    color: var(--stm-faq-blue);
    background: #fff;
    font-size: 17px;
    line-height: 1.5;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    transition: background-color .2s ease, color .2s ease;
}

.stm-faq__item summary::-webkit-details-marker {
    display: none;
}

.stm-faq__item summary::marker {
    content: "";
}

.stm-faq__item summary:hover {
    background: #f8faff;
}

.stm-faq__item[open] > summary {
    background: var(--stm-faq-light);
    color: var(--stm-faq-blue);
}

.stm-faq__chevron {
    position: relative;
    display: block;
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    border: 1px solid #d8e1ff;
    border-radius: 50%;
    background: #fff;
    transform: none;
    transition: background-color .2s ease, border-color .2s ease;
}

.stm-faq__chevron::before {
    content: "";
    position: absolute;
    top: 9px;
    left: 10px;
    width: 7px;
    height: 7px;
    border-right: 2px solid var(--stm-faq-accent);
    border-bottom: 2px solid var(--stm-faq-accent);
    transform: rotate(45deg);
    transition: transform .2s ease, top .2s ease;
}

.stm-faq__item[open] .stm-faq__chevron {
    border-color: var(--stm-faq-accent);
    background: var(--stm-faq-accent);
}

.stm-faq__item[open] .stm-faq__chevron::before {
    top: 12px;
    border-color: #fff;
    transform: rotate(225deg);
}

.stm-faq__answer {
    padding: 2px 24px 22px;
    color: #424b5b;
    background: var(--stm-faq-light);
    font-size: 16px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.stm-faq__answer p {
    margin: 0 0 14px;
}

.stm-faq__answer p:last-child {
    margin-bottom: 0;
}

.stm-faq__answer a {
    color: var(--stm-faq-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.stm-faq__answer ul,
.stm-faq__answer ol {
    padding-left: 22px;
}

@media (max-width: 700px) {
    .stm-faq {
        margin: 24px 0;
    }

    .stm-faq h2,
    .stm-faq__title {
        font-size: 26px;
    }

    .stm-faq__description {
        margin-bottom: 18px;
        font-size: 15px;
    }

    .stm-faq__item summary {
        min-height: 64px;
        gap: 14px;
        padding: 17px;
        font-size: 16px;
    }

    .stm-faq__chevron {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
    }

    .stm-faq__chevron::before {
        top: 8px;
        left: 9px;
    }

    .stm-faq__item[open] .stm-faq__chevron::before {
        top: 11px;
    }

    .stm-faq__answer {
        padding: 0 17px 19px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stm-faq *,
    .stm-faq *::before,
    .stm-faq *::after {
        transition: none !important;
    }
}
