/* ===== Блоки перед футером: FAQ «Вопрос-ответ» + форма «Бесплатная консультация» ===== */

/* ---------- FAQ ---------- */
.xyl-faq {
    padding: 50px 0 20px;
}
.xyl-faq__grid {
    display: flex;
    gap: 48px;
    align-items: flex-start;
}
.xyl-faq__intro {
    flex: 0 0 36%;
    max-width: 36%;
}
.xyl-faq__title {
    margin: 0 0 18px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}
.xyl-faq__desc {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.65;
    color: #666;
}
.xyl-faq__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.xyl-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.2;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.xyl-btn--primary {
    background: #00517a;
    color: #fff;
}
.xyl-btn--primary:hover {
    background: #006aa0;
    color: #fff;
}
.xyl-btn--outline {
    background: #fff;
    border-color: #d5dfe6;
}
.xyl-btn--tg {
    color: #229ed9;
}
.xyl-btn--tg:hover {
    border-color: #229ed9;
    color: #229ed9;
}
.xyl-btn--vk {
    color: #0077ff;
}
.xyl-btn--vk:hover {
    border-color: #0077ff;
    color: #0077ff;
}
.xyl-faq__list {
    flex: 1 1 auto;
    min-width: 0;
}
.xyl-faq__item {
    background: #fff;
    border: 1px solid #e2e9ee;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 55, 84, .05);
    margin-bottom: 12px;
    overflow: hidden;
}
.xyl-faq__q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 16px 20px;
    background: none;
    border: 0;
    text-align: left;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    color: #333;
    cursor: pointer;
}
.xyl-faq__q:hover .xyl-faq__q-text {
    color: #00517a;
}
.xyl-faq__toggle {
    position: relative;
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
.xyl-faq__toggle::before,
.xyl-faq__toggle::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    background: #0077b8;
    transition: transform .25s ease;
}
.xyl-faq__toggle::before {
    width: 14px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.xyl-faq__toggle::after {
    width: 2px;
    height: 14px;
    transform: translate(-50%, -50%);
}
.xyl-faq__item.open .xyl-faq__toggle::after {
    transform: translate(-50%, -50%) scaleY(0);
}
.xyl-faq__a {
    overflow: hidden;
    max-height: 0;
    transition: max-height .3s ease;
}
.xyl-faq__a-inner {
    padding: 2px 44px 18px 20px;
    border-top: 1px solid #eef2f5;
    padding-top: 14px;
    margin: 0 0 0 0;
    font-size: 13.5px;
    line-height: 1.7;
    color: #666;
}
.xyl-faq__a-inner p {
    margin: 0 0 10px;
}
.xyl-faq__a-inner p:last-child {
    margin-bottom: 0;
}

/* ---------- Форма консультации ---------- */
.xyl-consult {
    margin-top: 30px;
    padding: 56px 0;
    background: linear-gradient(115deg, #00659a 0%, #00517a 45%, #003a58 100%);
}
.xyl-consult__card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 14px 44px rgba(0, 26, 40, .28);
    padding: 38px 44px 30px;
    text-align: center;
}
.xyl-consult__title {
    margin: 0 0 12px;
    font-family: Roboto, Arial, sans-serif;
    font-size: 24px;
    line-height: 1.25;
    font-weight: 700;
    color: #333;
    text-transform: uppercase;
}
.xyl-consult__desc {
    max-width: 560px;
    margin: 0 auto 26px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}
.xyl-consult__row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
}
.xyl-consult__field {
    flex: 1 1 0;
    min-width: 0;
    text-align: left;
}
.xyl-consult__label {
    display: block;
    margin: 0 0 7px 18px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: #8b969e;
}
.xyl-consult__label span {
    color: #d43f3f;
}
.xyl-consult__input {
    display: block;
    width: 100%;
    height: 44px;
    padding: 0 18px;
    border: 1px solid #d5dee5;
    border-radius: 100px;
    background: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 13.5px;
    color: #333;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.xyl-consult__input::placeholder {
    color: #9aa6ad;
}
.xyl-consult__input:focus {
    border-color: #00517a;
    box-shadow: 0 0 0 3px rgba(0, 81, 122, .1);
}
.xyl-consult__input.xyl-invalid {
    border-color: #d43f3f;
}
.xyl-consult__submit {
    flex: 0 0 auto;
}
.xyl-consult__btn {
    height: 44px;
    padding: 0 30px;
    border: 0;
    border-radius: 100px;
    background: #00517a;
    color: #fff;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color .2s ease;
    white-space: nowrap;
}
.xyl-consult__btn:hover {
    background: #006aa0;
}
.xyl-consult__btn[disabled] {
    opacity: .6;
    cursor: default;
}
.xyl-consult__hp {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.xyl-consult__note {
    margin: 18px auto 0;
    max-width: 640px;
    font-size: 12px;
    line-height: 1.5;
    color: #98a2aa;
}
.xyl-consult__note a {
    color: #00517a;
    text-decoration: underline;
}
.xyl-consult__error {
    margin-top: 14px;
    font-size: 13px;
    color: #d43f3f;
}
.xyl-consult__success {
    padding: 14px 0 20px;
    color: #333;
}
.xyl-consult__success-icon {
    color: #2eab5b;
    margin-bottom: 14px;
}
.xyl-consult__success-title {
    font-family: Roboto, Arial, sans-serif;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.xyl-consult__success-text {
    font-size: 14px;
    color: #666;
}

/* ---------- Адаптив ---------- */
@media (max-width: 991px) {
    .xyl-faq__grid {
        flex-direction: column;
        gap: 28px;
    }
    .xyl-faq__intro {
        flex-basis: auto;
        max-width: none;
    }
    .xyl-consult__row {
        flex-wrap: wrap;
    }
    .xyl-consult__field {
        flex: 1 1 calc(50% - 8px);
    }
    .xyl-consult__submit {
        flex: 1 1 100%;
    }
    .xyl-consult__btn {
        width: 100%;
    }
}
@media (max-width: 600px) {
    .xyl-faq {
        padding-top: 36px;
    }
    .xyl-faq__title {
        font-size: 24px;
    }
    .xyl-consult {
        padding: 36px 0;
    }
    .xyl-consult__card {
        padding: 28px 20px 22px;
    }
    .xyl-consult__title {
        font-size: 20px;
    }
    .xyl-consult__row {
        gap: 14px;
    }
    .xyl-consult__field {
        flex: 1 1 100%;
    }
}
