/* ===== FAQ ===== */
.faq-list{
    --faq-accent:#2f6df6;
    --faq-accent-soft:#eaf0ff;
    --faq-text:#1a2233;
    --faq-muted:#5b6577;
    --faq-line:#e3e8f0;

    counter-reset:faq;
    display:grid;
    gap:12px;
    color:var(--faq-text);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size:16px;
    margin-bottom: 24px;
}

.faq-item{
    counter-increment:faq;
    position:relative;
    background:#fff;
    border:1px solid var(--faq-line);
    border-radius:16px;
    overflow:hidden;
    transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.faq-item:hover{ border-color:#c9d4e6; }
.faq-item[open]{
    border-color:#cfdcf7;
    box-shadow:0 10px 28px -18px rgba(28,55,110,.45);
}

/* акцентная полоса у открытого пункта */
.faq-item::before{
    content:"";
    position:absolute;
    inset:0 auto 0 0;
    width:4px;
    background:var(--faq-accent);
    transform:scaleY(0);
    transform-origin:top;
    transition:transform .28s ease;
}
.faq-item[open]::before{ transform:scaleY(1); }

/* ===== Вопрос ===== */
.faq-q{
    display:flex;
    align-items:flex-start;
    gap:14px;
    padding:20px 56px 20px 22px;
    cursor:pointer;
    list-style:none;
    font-size:17px;
    font-weight:600;
    line-height:1.45;
    color:var(--faq-text);
    transition:color .2s ease;
}
.faq-q::-webkit-details-marker{ display:none; }
.faq-q::marker{ content:""; }
.faq-q:hover{ color:var(--faq-accent); }

/* номер вопроса */
.faq-q::before{
    /*content:counter(faq);*/
    content:"?";
    flex:0 0 30px;
    height:30px;
    border-radius:9px;
    background:var(--faq-accent-soft);
    color:var(--faq-accent);
    font-size:14px;
    font-weight:700;
    line-height:30px;
    text-align:center;
    transition:background .2s ease, color .2s ease;
}
.faq-item[open] .faq-q::before{
    background:var(--faq-accent);
    color:#fff;
}

/* шеврон */
.faq-q::after{
    content:"";
    position:absolute;
    top:28px;
    right:24px;
    width:9px;
    height:9px;
    border-right:2px solid var(--faq-muted);
    border-bottom:2px solid var(--faq-muted);
    transform:rotate(45deg);
    transition:transform .25s ease, border-color .2s ease;
}
.faq-item[open] .faq-q::after{
    transform:rotate(-135deg);
    border-color:var(--faq-accent);
}

.faq-q:focus-visible{
    outline:2px solid var(--faq-accent);
    outline-offset:-2px;
    border-radius:16px;
}

/* ===== Ответ ===== */
.faq-list .answer{
    padding:2px 26px 24px 66px; /* выравнивание по тексту вопроса */
    animation:faqFade .25s ease both;
}
@keyframes faqFade{
    from{ opacity:0; transform:translateY(-4px); }
    to{ opacity:1; transform:none; }
}

.faq-list .answer p{
    margin:0 0 12px;
    font-size:15.5px;
    line-height:1.68;
    color:var(--faq-muted);
}
.faq-list .answer p:last-child{ margin-bottom:0; }

.faq-list .answer h3{
    margin:22px 0 9px;
    font-size:15px;
    font-weight:700;
    line-height:1.4;
    letter-spacing:.02em;
    color:var(--faq-accent);
}
.faq-list .answer h3:first-child{ margin-top:0; }

/* списки */
.faq-list .answer ul,
.faq-list .answer ol{
    margin:0 0 14px;
    padding:0;
    list-style:none;
}
.faq-list .answer li{
    position:relative;
    margin:0 0 8px;
    padding-left:22px;
    font-size:15.5px;
    line-height:1.62;
    color:var(--faq-muted);
}
.faq-list .answer li:last-child{ margin-bottom:0; }

.faq-list .answer ul > li::before{
    content:"";
    position:absolute;
    left:5px;
    top:.66em;
    width:6px;
    height:6px;
    border-radius:50%;
    background:var(--faq-accent);
}

.faq-list .answer ol{ counter-reset:faqol; }
.faq-list .answer ol > li{ counter-increment:faqol; }
.faq-list .answer ol > li::before{
    content:counter(faqol) ".";
    position:absolute;
    left:0;
    top:0;
    color:var(--faq-accent);
    font-weight:700;
}

/* ===== Адаптив ===== */
@media (max-width:640px){
    .faq-q{
        font-size:16px;
        padding:16px 44px 16px 16px;
        gap:10px;
    }
    .faq-q::before{ flex-basis:26px; height:26px; line-height:26px; font-size:13px; }
    .faq-q::after{ top:24px; right:18px; }
    .faq-list .answer{ padding:2px 18px 18px 18px; }
}

@media (prefers-reduced-motion:reduce){
    .faq-item, .faq-item::before, .faq-q::after, .faq-q::before, .faq-list .answer{
        transition:none; animation:none;
    }
}