/*
 * SERP Expert 2.0.25 — блок «Частые вопросы и ответы на них».
 * Макет 1672 px перенесён в масштабе 0,8: аккордеон 684 px + правая колонка 500 px.
 * Справа сначала промо (иллюстрация + карточка «Задайте свой вопрос»), по кнопке — форма.
 */

.se-faq {
    --faq-ink: #0f1a2c;
    --faq-text: #5f6878;
    --faq-red: #d61f2c;
    --faq-font: var(--font-main, "Manrope", system-ui, sans-serif);
    --faq-head: var(--font-heading, "Raleway", "Manrope", system-ui, sans-serif);
    position: relative;
    overflow: hidden;
    padding: 40px 20px 60px;
    background:
        radial-gradient(28% 36% at 88% 45%, rgba(253, 228, 228, .75), transparent 70%),
        #fff;
    color: var(--faq-ink);
    font-family: var(--faq-font);
}
.se-faq *, .se-faq *::before, .se-faq *::after { box-sizing: border-box; }
.se-faq [hidden] { display: none !important; }

.se-faq__inner {
    display: grid;
    grid-template-columns: minmax(0, 684px) 500px;
    justify-content: space-between;
    column-gap: 30px;
    align-items: start;
    max-width: 1214px;
    margin: 0 auto;
}
.se-faq__main { min-width: 0; }

/* ---------- Шапка ---------- */

.se-faq .se-faq__eyebrow {
    margin: 0;
    color: #d52b3a;
    font: 600 13px/16px var(--faq-font);
    letter-spacing: .02em;
    text-transform: uppercase;
}
.se-faq .se-faq__title {
    margin: 6px 0 0;
    padding: 0;
    color: #1c1d33;
    font-family: var(--faq-head);
    font-size: 42px;
    line-height: 50px;
    font-weight: 900;
    letter-spacing: -1px;
    text-transform: none;
}
.se-faq .se-faq__subtitle {
    margin: 12px 0 0;
    color: var(--faq-text);
    font: 400 16px/23.5px var(--faq-font);
}

/* ---------- Аккордеон ---------- */

.se-faq__list { display: flex; flex-direction: column; gap: 13px; margin-top: 30px; }
.se-faq-item {
    border: 1px solid #eef0f4;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(20, 30, 60, .05);
    transition: box-shadow .2s ease;
}
.se-faq-item:hover { box-shadow: 0 12px 30px rgba(20, 30, 60, .08); }
.se-faq .se-faq-item__head { margin: 0; padding: 0; font: inherit; }
.se-faq .se-faq-item__btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 24px 12px 22px;
    border: 0;
    background: transparent;
    color: var(--faq-ink);
    font: 700 15.5px/20px var(--faq-font);
    text-align: left;
    cursor: pointer;
}
.se-faq .se-faq-item__btn:hover { color: #000; }
.se-faq .se-faq-item__btn:focus-visible { outline: 3px solid rgba(214, 31, 44, .3); outline-offset: -3px; border-radius: 12px; }
.se-faq-item__sign { position: relative; flex: 0 0 18px; width: 18px; height: 18px; }
.se-faq-item__sign::before,
.se-faq-item__sign::after {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 18px;
    height: 2px;
    border-radius: 1px;
    background: #e0314a;
    transition: transform .25s ease;
}
.se-faq-item__sign::after { transform: rotate(90deg); }
.se-faq-item.is-open .se-faq-item__sign::after { transform: rotate(0deg); }
.se-faq-item__panel { padding: 0 1px 1px; }
.se-faq-item__panel.is-animating { overflow: hidden; transition: height .28s ease; }
.se-faq .se-faq-item__answer {
    padding: 15px 22px 16px;
    border-radius: 0 0 11px 11px;
    background: #f5f6f8;
    color: #555d6b;
    font: 400 14.5px/21px var(--faq-font);
}
.se-faq .se-faq-item__answer p { margin: 0; }
.se-faq .se-faq-item__answer p + p { margin-top: 8px; }
.se-faq .se-faq-item__answer a { color: var(--faq-red); }

/* ---------- Правая колонка ---------- */

.se-faq__side { display: flex; flex-direction: column; min-width: 0; }
.se-faq .se-faq__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    align-self: flex-end;
    height: 42px;
    margin: 18px 6px 0 0;
    padding: 0 22px 0 28px;
    border: 1.5px solid var(--faq-red);
    border-radius: 21px;
    background: #fff;
    color: #cc1122;
    font: 700 13.5px/1 var(--faq-font);
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}
.se-faq .se-faq__all svg { width: 17px; height: 17px; stroke-width: 2.2; transition: transform .2s ease; }
.se-faq .se-faq__all:hover { background: var(--faq-red); color: #fff; }
.se-faq .se-faq__all[aria-expanded="true"] svg { transform: rotate(90deg); }

.se-faq__stage { display: grid; margin-top: 12px; }
.se-faq__stage > * { grid-area: 1 / 1; }

.se-faq-promo { position: relative; transition: opacity .3s ease, transform .3s ease; }
.se-faq__stage[data-state="form"] .se-faq-promo { opacity: 0; transform: scale(.98); pointer-events: none; }
.se-faq-promo__img {
    display: block;
    width: calc(100% + 52px);
    max-width: none;
    height: auto;
    margin: 0 -40px 0 -12px;
}
.se-faq-promo__card {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 50px minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 16px;
    min-height: 121px;
    margin-top: -4px;
    padding: 18px 18px 18px 16px;
    border-radius: 20px;
    background: #fde6e4;
}
.se-faq-promo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #fff5f4;
    color: #d61013;
}
.se-faq-promo__icon svg { width: 25px; height: 25px; stroke-width: 1.9; }
.se-faq .se-faq-promo__title { margin: 0; color: var(--faq-ink); font: 800 16.5px/21px var(--faq-font); }
.se-faq .se-faq-promo__text { margin: 6px 0 0; color: var(--faq-text); font: 400 12.5px/19px var(--faq-font); }
.se-faq .se-faq-promo__btn,
.se-faq .se-faq-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 0;
    border: 0;
    background: linear-gradient(180deg, #d61013, #c10d11);
    box-shadow: 0 10px 22px rgba(193, 13, 17, .25);
    color: #fff;
    font-family: var(--faq-font);
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
.se-faq .se-faq-promo__btn { height: 43px; padding: 0 18px; border-radius: 22px; font-size: 13px; }
.se-faq .se-faq-promo__btn svg,
.se-faq .se-faq-form__submit svg { width: 17px; height: 17px; stroke-width: 2.2; }
.se-faq .se-faq-promo__btn:hover,
.se-faq .se-faq-form__submit:hover { filter: brightness(1.07); transform: translateY(-1px); }
.se-faq .se-faq-promo__btn:focus-visible,
.se-faq .se-faq-form__submit:focus-visible,
.se-faq .se-faq__all:focus-visible { outline: 3px solid rgba(214, 31, 44, .3); outline-offset: 3px; }

/* ---------- Форма ---------- */

.se-faq-form {
    position: relative;
    z-index: 2;
    align-self: start;
    padding: 26px 22px 20px 23px;
    border: 1px solid #f0f1f4;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 24px 50px rgba(20, 30, 60, .08);
    animation: se-faq-in .32s ease both;
}
@keyframes se-faq-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.se-faq .se-faq-form__close {
    position: absolute;
    right: 12px;
    top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #5a6480;
    cursor: pointer;
}
.se-faq .se-faq-form__close:hover { background: #f4f5f8; }
.se-faq .se-faq-form__close svg { width: 18px; height: 18px; }
.se-faq-form__deco { position: absolute; right: 54px; top: 30px; width: 44px; height: 40px; }
.se-faq-form__deco i { position: absolute; display: block; height: 2px; border-radius: 1px; background: #15142f; transform-origin: left center; }
.se-faq-form__deco i:nth-child(1) { left: 0; top: 14px; width: 12px; transform: rotate(-65deg); }
.se-faq-form__deco i:nth-child(2) { left: 10px; top: 26px; width: 28px; transform: rotate(-50deg); }
.se-faq-form__deco i:nth-child(3) { left: 20px; top: 34px; width: 22px; transform: rotate(-22deg); }
.se-faq-form__head { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 18px; align-items: start; padding-right: 40px; }
.se-faq-form__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 16px;
    background: #fdebeb;
    color: #d61013;
}
.se-faq-form__icon svg { width: 30px; height: 30px; stroke-width: 2; }
.se-faq .se-faq-form__title { margin: 4px 0 0; color: #15142f; font: 800 24px/30px var(--faq-font); letter-spacing: -0.3px; }
.se-faq .se-faq-form__text { margin: 6px 0 0; color: var(--faq-text); font: 400 13px/20px var(--faq-font); }
.se-faq-form__form { margin: 26px 0 0; }
.se-faq-field { display: block; margin: 0 0 16px; }
.se-faq-field__label { display: block; margin-bottom: 6px; color: var(--faq-ink); font: 500 12.5px/16px var(--faq-font); }
.se-faq-field__box { position: relative; display: block; }
.se-faq-field__icon { position: absolute; left: 14px; top: 11px; width: 18px; height: 18px; color: #8a93a5; pointer-events: none; stroke-width: 1.7; }
.se-faq-field__chevron { position: absolute; right: 18px; top: 12px; width: 17px; height: 17px; color: #3c4658; pointer-events: none; stroke-width: 2; }
.se-faq .se-faq-field input,
.se-faq .se-faq-field select,
.se-faq .se-faq-field textarea {
    display: block;
    width: 100%;
    height: 40px;
    min-height: 0;
    margin: 0;
    padding: 0 14px 0 42px;
    border: 1px solid #e2e6ec;
    border-radius: 9px;
    background: #fff;
    color: #1c2640;
    font: 400 13px/18px var(--faq-font);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.se-faq .se-faq-field select { padding-right: 44px; cursor: pointer; }
.se-faq .se-faq-field select:has(option[value=""]:checked) { color: #8a93a5; }
.se-faq .se-faq-field select option { color: #1c2640; }
.se-faq .se-faq-field textarea { height: 76px; padding-top: 10px; resize: vertical; }
.se-faq .se-faq-field input::placeholder,
.se-faq .se-faq-field textarea::placeholder { color: #8a93a5; opacity: 1; }
.se-faq .se-faq-field input:focus,
.se-faq .se-faq-field select:focus,
.se-faq .se-faq-field textarea:focus { border-color: #f0a3a8; box-shadow: 0 0 0 3px rgba(214, 31, 44, .1); }

.se-faq-consent { display: flex; align-items: center; gap: 12px; margin: 14px 0 0; color: #3b4250; font: 400 12.5px/17px var(--faq-font); cursor: pointer; }
.se-faq .se-faq-consent input {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin: 0;
    border: 1.5px solid #c4cad4;
    border-radius: 4px;
    background: #fff;
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}
.se-faq .se-faq-consent input:checked {
    border-color: var(--faq-red);
    background: var(--faq-red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.se-faq .se-faq-consent input:focus-visible { outline: 3px solid rgba(214, 31, 44, .3); outline-offset: 2px; }
.se-faq-consent a { color: #e0101a; text-decoration: underline; text-underline-offset: 2px; }
.se-faq-form__captcha { margin-top: 12px; }
.se-faq .se-faq-form__submit { width: 100%; height: 46px; margin-top: 16px; padding: 0 24px; border-radius: 23px; font-size: 15px; gap: 14px; }
.se-faq .se-faq-form__note { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 12px 0 0; color: #717888; font: 400 12px/16px var(--faq-font); }
.se-faq-form__note svg { width: 17px; height: 17px; stroke-width: 1.7; }
.se-faq .se-faq-form__error { margin: 18px 0 0; padding: 10px 14px; border-radius: 9px; background: #fdecec; color: #b30d15; font: 500 12.5px/18px var(--faq-font); }
.se-faq-form__done { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 40px 10px 30px; text-align: center; }
.se-faq-form__done-icon { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: 50%; background: #fdebeb; color: #d61013; }
.se-faq-form__done-icon svg { width: 34px; height: 34px; stroke-width: 2.4; }
.se-faq .se-faq-form__done-title { margin: 0; color: var(--faq-ink); font: 800 19px/25px var(--faq-font); }
.se-faq .se-faq-form__done-text { margin: 0; color: var(--faq-text); font: 400 14px/20px var(--faq-font); }

/* ---------- Адаптив ---------- */

@media (max-width: 1180px) {
    .se-faq__inner { grid-template-columns: minmax(0, 1fr) 440px; }
    .se-faq__subtitle br { display: none; }
}

@media (max-width: 1024px) {
    .se-faq { padding: 40px 20px 52px; }
    .se-faq__inner { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
    .se-faq .se-faq__title { font-size: 36px; line-height: 42px; }
    .se-faq__side { width: min(100%, 540px); margin: 0 auto; }
    .se-faq .se-faq__all { align-self: center; margin: 0; }
    .se-faq-promo__img { width: 100%; margin: 0; }
}

@media (max-width: 640px) {
    .se-faq { padding: 32px 16px 44px; }
    .se-faq .se-faq__title { font-size: 28px; line-height: 33px; letter-spacing: -0.5px; }
    .se-faq .se-faq__subtitle { font-size: 15px; line-height: 22px; }
    .se-faq__list { margin-top: 22px; gap: 10px; }
    .se-faq .se-faq-item__btn { padding: 12px 16px; font-size: 14.5px; line-height: 19px; }
    .se-faq .se-faq-item__answer { padding: 13px 16px 14px; font-size: 14px; line-height: 20px; }
    .se-faq-promo__card { grid-template-columns: 44px minmax(0, 1fr); row-gap: 14px; padding: 16px; }
    .se-faq-promo__icon { width: 44px; height: 44px; }
    .se-faq .se-faq-promo__btn { grid-column: 1 / -1; width: 100%; height: 46px; font-size: 14px; }
    .se-faq-promo__text br, .se-faq-form__text br { display: none; }
    .se-faq-form { padding: 22px 16px 18px; }
    .se-faq-form__deco { display: none; }
    .se-faq-form__head { grid-template-columns: 48px minmax(0, 1fr); column-gap: 14px; }
    .se-faq-form__icon { width: 48px; height: 48px; border-radius: 14px; }
    .se-faq .se-faq-form__title { font-size: 20px; line-height: 25px; }
    .se-faq .se-faq-field input, .se-faq .se-faq-field select { height: 46px; font-size: 16px; }
    .se-faq .se-faq-field textarea { font-size: 16px; }
    .se-faq-field__icon { top: 14px; }
    .se-faq-field__chevron { top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
    .se-faq-form, .se-faq-promo, .se-faq-item__sign::after { animation: none; transition: none; }
}
.se-faq--compact .se-faq-promo__img{display:none}.se-faq--compact .se-faq-promo__card{margin-top:0}
