/* =====================================================
   СТРАНИЦА ВОПРОСОВ И ОТВЕТОВ — СТАНКИ-М
   Оптимизированные стили для WordPress
   ===================================================== */

.stm-faq-page {
    --faq-blue: #001b72;
    --faq-accent: #315cff;
    --faq-light: #f3f6ff;
    --faq-border: #e1e7f3;
    --faq-text: #252b38;
    --faq-muted: #333;

    width: 100%;
    max-width: 2000px;
    margin: 0 auto;
    padding: 0;
    color: var(--faq-text);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.7;
}

.stm-faq-page *,
.stm-faq-page *::before,
.stm-faq-page *::after {
    box-sizing: border-box;
}

.stm-faq-page p {
    margin: 0 0 15px;
}

.stm-faq-page h2,
.stm-faq-page h3 {
    margin-top: 0;
    color: #444;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
}

.stm-faq-page a {
    text-decoration: none;
}

.stm-faq-page svg {
    display: block;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* =====================================================
   1. ВСТУПИТЕЛЬНОЕ ОПИСАНИЕ
   ===================================================== */

.stm-faq-intro {
    width: 100%;
    margin: 0 0 30px;
}

.stm-faq-page .stm-faq-intro p {
    margin-bottom: 15px;
    color: var(--faq-muted);
    font-size: 15px;
    line-height: 1.85;
}

.stm-faq-page .stm-faq-intro p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   2. ИНФОРМАЦИОННЫЕ КАРТОЧКИ
   ===================================================== */

.stm-faq-benefits {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
    margin: 0 0 42px;
}

.stm-faq-page .stm-faq-benefit {
    min-width: 0;
    padding: 23px;
    border: 1px solid var(--faq-border);
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.stm-faq-page .stm-faq-benefit:hover {
    border-color: #b9c9ff;
    box-shadow: 0 5px 18px rgba(0, 27, 114, .05);
}

.stm-faq-benefit__top {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 13px;
}

.stm-faq-benefit__icon {
    display: flex;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: #edf2ff;
    color: var(--faq-accent);
}

.stm-faq-benefit__icon svg {
    width: 22px;
    height: 22px;
}

.stm-faq-page .stm-faq-benefit h3 {
    flex: 1;
    margin: 0;
    color: #111;
    font-size: 17px;
}

.stm-faq-page .stm-faq-benefit p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   3. КОНТАКТНЫЙ БЛОК
   ===================================================== */

.stm-faq-page .stm-faq-contact {
    width: 100%;
    margin: 40px 0 30px !important;
    padding: 30px !important;
    border: 1px solid var(--faq-border);
    background: var(--faq-light);
}

.stm-faq-page .stm-faq-contact__left h2 {
    margin: 0 0 10px !important;
    color: #171717 !important;
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
}

.stm-faq-page .stm-faq-contact__description {
    max-width: none;
    margin: 0 0 22px !important;
    color: #333 !important;
    font-size: 15px;
    line-height: 1.75;
}

/* Карточки контактов: три в ряд */

.stm-faq-page .stm-faq-contact__methods {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    align-items: stretch;
}

.stm-faq-page .stm-faq-method {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    min-width: 0;
    min-height: 105px;
    margin: 0;
    padding: 20px;
    border: 1px solid var(--faq-border);
    background: #fff;
    color: var(--faq-text);
    text-decoration: none;
    transition: border-color .2s, box-shadow .2s;
}

.stm-faq-page .stm-faq-method:hover {
    border-color: var(--faq-accent);
    box-shadow: 0 5px 18px rgba(0, 27, 114, .08);
}

.stm-faq-page .stm-faq-method__icon {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    background: var(--faq-light);
    color: var(--faq-blue);
}

.stm-faq-page .stm-faq-method__icon svg {
    width: 25px;
    height: 25px;
}

.stm-faq-page .stm-faq-method__content {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
}

.stm-faq-page .stm-faq-method__label {
    display: block;
    margin-bottom: 4px;
    color: #596579;
    font-size: 13px;
    line-height: 1.4;
}

.stm-faq-page .stm-faq-method__content strong {
    display: block;
    color: var(--faq-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
    transition: color .2s;
}

.stm-faq-page .stm-faq-method:hover .stm-faq-method__content strong {
    color: var(--faq-accent);
}

.stm-faq-page .stm-faq-method__arrow {
    flex: 0 0 auto;
    margin-left: auto;
    color: #8b98b2;
    font-size: 25px;
}

/* Подсказка под контактами */

.stm-faq-page .stm-faq-contact__tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: none;
    margin-top: 18px;
    padding: 15px 18px;
    border: 0;
    background: #fff;
    color: #596579;
}

.stm-faq-page .stm-faq-contact__tip svg {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    margin-top: 2px;
    color: var(--faq-accent);
}

.stm-faq-page .stm-faq-contact__tip p {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
}


/* =====================================================
   4. ФОРМА ОБРАТНОЙ СВЯЗИ
   ===================================================== */

.stm-faq-form-section {
    width: 100%;
    margin: 0 0 48px;
    padding: 0;
}

.stm-faq-page .stm-faq-form-card {
    width: 100%;
    min-width: 0;
    padding: 27px;
    border: 1px solid var(--faq-border);
    background: #fff;
}

.stm-faq-form-card__heading {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-bottom: 22px;
}

.stm-faq-form-card__icon {
    display: flex;
    flex: 0 0 43px;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    background: var(--faq-blue);
    color: #fff;
}

.stm-faq-form-card__icon svg {
    width: 22px;
    height: 22px;
}

.stm-faq-page .stm-faq-form-card__heading h2 {
    margin: 0 0 4px;
    color: #111;
    font-size: 22px;
}

.stm-faq-page .stm-faq-form-card__heading p {
    margin: 0;
    color: #7a8497;
    font-size: 13px;
    line-height: 1.7;
}

/* Contact Form 7 */

.stm-faq-page .stm-faq-existing-form,
.stm-faq-page .stm-faq-existing-form form,
.stm-faq-page .stm-faq-existing-form .wpcf7 {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.stm-faq-page .stm-faq-existing-form p {
    margin: 0 0 15px;
}

.stm-faq-page .stm-faq-existing-form label {
    color: #283249;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.6;
}

.stm-faq-page .stm-faq-existing-form input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="hidden"]),
.stm-faq-page .stm-faq-existing-form select,
.stm-faq-page .stm-faq-existing-form textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 46px;
    margin-top: 6px;
    padding: 11px 13px;
    border: 1px solid #dfe5f0;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #263149;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: none;
    transition: border-color .2s, box-shadow .2s;
}

.stm-faq-page .stm-faq-existing-form textarea {
    min-height: 125px;
    resize: vertical;
}

.stm-faq-page .stm-faq-existing-form input:focus,
.stm-faq-page .stm-faq-existing-form select:focus,
.stm-faq-page .stm-faq-existing-form textarea:focus {
    border-color: var(--faq-accent);
    box-shadow: 0 0 0 2px rgba(49, 92, 255, .1);
}

.stm-faq-page .stm-faq-existing-form input::placeholder,
.stm-faq-page .stm-faq-existing-form textarea::placeholder {
    color: #9ba5b7;
    opacity: 1;
}

.stm-faq-page .stm-faq-existing-form input[type="submit"],
.stm-faq-page .stm-faq-existing-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 49px;
    margin: 0;
    padding: 13px 20px;
    border: 1px solid var(--faq-blue);
    border-radius: 0;
    background: var(--faq-blue);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    cursor: pointer;
    transition: background .2s, border-color .2s;
}

.stm-faq-page .stm-faq-existing-form input[type="submit"]:hover,
.stm-faq-page .stm-faq-existing-form button[type="submit"]:hover {
    border-color: #2448d8;
    background: #2448d8;
    color: #fff;
}

.stm-faq-page .stm-faq-existing-form input[type="checkbox"] {
    accent-color: var(--faq-blue);
}

.stm-faq-page .stm-faq-existing-form .wpcf7-spinner {
    display: inline-block;
}

.stm-faq-page .stm-faq-existing-form .wpcf7-not-valid-tip {
    display: block;
    margin-top: 5px;
    color: #d62828;
    font-size: 12px;
}

.stm-faq-page .stm-faq-existing-form .wpcf7-response-output {
    margin: 18px 0 0;
    padding: 12px 14px;
    border-radius: 0;
    font-size: 13px;
    line-height: 1.7;
}


/* =====================================================
   5. ЗАГОЛОВОК ВОПРОСОВ
   ===================================================== */

.stm-faq-page .stm-faq-questions {
    width: 100%;
    margin: 0;
    padding: 0;
}

.stm-faq-page .stm-faq-questions__header {
    max-width: 1050px;
    margin: 0 0 23px;
}

.stm-faq-page .stm-faq-questions__header h2 {
    margin: 0 0 10px;
    color: #111;
    font-size: 25px;
}

.stm-faq-page .stm-faq-questions__header p {
    margin: 0;
    color: var(--faq-muted);
    font-size: 14px;
    line-height: 1.8;
}


/* =====================================================
   6. АККОРДЕОН ВОПРОСОВ
   ===================================================== */

.stm-faq-page .stm-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.stm-faq-page .stm-faq-item {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--faq-border);
    background: #fff;
    transition: border-color .2s;
}

.stm-faq-page .stm-faq-item[open] {
    border-color: var(--faq-accent);
}

.stm-faq-page .stm-faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    margin: 0;
    padding: 17px 22px;
    border: 0;
    color: #111;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
    user-select: none;
}

.stm-faq-page .stm-faq-item summary::-webkit-details-marker {
    display: none;
}

.stm-faq-page .stm-faq-item summary::marker {
    content: "";
}

.stm-faq-page .stm-faq-item summary:hover {
    color: var(--faq-accent);
}

.stm-faq-page .stm-faq-item[open] > summary {
    border-bottom: 1px solid var(--faq-border);
    color: var(--faq-accent);
}

.stm-faq-chevron {
    position: relative;
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #edf2ff;
    color: var(--faq-accent);
    transition: transform .2s, background .2s, color .2s;
}

.stm-faq-chevron::before {
    width: 9px;
    height: 9px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    content: "";
    transform: translateY(-2px) rotate(45deg);
}

.stm-faq-page .stm-faq-item[open] .stm-faq-chevron {
    transform: rotate(180deg);
    background: var(--faq-accent);
    color: #fff;
}

.stm-faq-page .stm-faq-answer {
    padding: 19px 22px 22px;
    color: #566176;
    font-size: 14px;
    line-height: 1.9;
}

.stm-faq-page .stm-faq-answer p {
    margin: 0 0 14px;
}

.stm-faq-page .stm-faq-answer p:last-child {
    margin-bottom: 0;
}


/* =====================================================
   7. КНОПКА «ЗАДАТЬ ВОПРОС»
   ===================================================== */

.stm-faq-page button.stm-faq-question-button {
    appearance: none;
    -webkit-appearance: none;
    font-family: inherit;
    text-align: left;
    color: var(--faq-text);
    cursor: pointer;
}

.stm-faq-page button.stm-faq-question-button:hover {
    border-color: var(--faq-accent);
    background: #fff;
    box-shadow: 0 5px 18px rgba(0, 27, 114, .08);
}

.stm-faq-page button.stm-faq-question-button:hover strong {
    color: var(--faq-accent);
}

.stm-faq-page button.stm-faq-question-button:focus-visible {
    outline: 2px solid var(--faq-accent);
    outline-offset: 3px;
}


/* =====================================================
   8. ИЗОБРАЖЕНИЕ РЕКВИЗИТОВ
   Если изображение используется на других страницах,
   вынесите эти правила в CSS нужной страницы.
   ===================================================== */

.wp-image-8107 {
    display: block;
    width: 100% !important;
    max-width: 1200px;
    height: 200px !important;
    margin-top: 20px !important;
    object-fit: cover;
    object-position: center;
}


/* =====================================================
   9. АДАПТИВНОСТЬ
   ===================================================== */

/* Планшеты */

@media (max-width: 1000px) {
    .stm-faq-page .stm-faq-contact__methods {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .stm-faq-page .stm-faq-method:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 900px) {
    .stm-faq-benefits {
        gap: 12px;
    }

    .stm-faq-page .stm-faq-benefit {
        padding: 17px;
    }

    .stm-faq-benefit__top {
        align-items: flex-start;
        flex-direction: column;
    }

    .stm-faq-page .stm-faq-contact {
        padding: 23px !important;
    }

    .stm-faq-page .stm-faq-form-card {
        padding: 23px;
    }

    .stm-faq-page .stm-faq-method {
        gap: 12px;
        padding: 18px 16px;
    }
}

/* Телефоны */

@media (max-width: 600px) {
    .stm-faq-page {
        font-size: 14px;
    }

    .stm-faq-page .stm-faq-intro p {
        font-size: 14px;
        line-height: 1.8;
    }

    .stm-faq-benefits {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 30px;
    }

    .stm-faq-benefit__top {
        align-items: center;
        flex-direction: row;
        gap: 11px;
    }

    .stm-faq-page .stm-faq-benefit h3 {
        font-size: 16px;
    }

    .stm-faq-page .stm-faq-benefit p {
        font-size: 13px;
    }

    .stm-faq-page .stm-faq-contact {
        margin-top: 26px !important;
        margin-bottom: 30px !important;
        padding: 21px 17px !important;
    }

    .stm-faq-page .stm-faq-contact__left h2 {
        margin-bottom: 10px !important;
        font-size: 23px;
    }

    .stm-faq-page .stm-faq-contact__description {
        margin-bottom: 20px !important;
        font-size: 14px;
    }

    .stm-faq-page .stm-faq-contact__methods {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 12px !important;
    }

    .stm-faq-page .stm-faq-method,
    .stm-faq-page .stm-faq-method:last-child {
        min-height: 88px;
        padding: 17px;
        gap: 13px;
        grid-column: auto;
    }

    .stm-faq-page .stm-faq-method__icon {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
    }

    .stm-faq-page .stm-faq-method__icon svg {
        width: 23px;
        height: 23px;
    }

    .stm-faq-page .stm-faq-method__label {
        font-size: 12px;
    }

    .stm-faq-page .stm-faq-method__content strong {
        font-size: 16px;
    }

    .stm-faq-page .stm-faq-method__arrow {
        font-size: 21px;
    }

    .stm-faq-page .stm-faq-contact__tip {
        padding: 13px;
    }

    .stm-faq-page .stm-faq-contact__tip p {
        font-size: 12px;
    }

    .stm-faq-form-section {
        margin-bottom: 35px;
    }

    .stm-faq-page .stm-faq-form-card {
        padding: 18px 13px;
    }

    .stm-faq-form-card__heading {
        align-items: flex-start;
        gap: 10px;
    }

    .stm-faq-form-card__icon {
        flex-basis: 37px;
        width: 37px;
        height: 37px;
    }

    .stm-faq-page .stm-faq-form-card__heading h2 {
        font-size: 19px;
    }

    .stm-faq-page .stm-faq-form-card__heading p {
        font-size: 12px;
    }

    .stm-faq-page .stm-faq-questions__header h2 {
        font-size: 22px;
    }

    .stm-faq-page .stm-faq-questions__header p {
        font-size: 13px;
    }

    .stm-faq-page .stm-faq-accordion {
        gap: 8px;
    }

    .stm-faq-page .stm-faq-item summary {
        gap: 10px;
        min-height: 62px;
        padding: 13px 11px;
        font-size: 13px;
    }

    .stm-faq-chevron {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
    }

    .stm-faq-page .stm-faq-answer {
        padding: 15px 12px 17px;
        font-size: 13px;
        line-height: 1.8;
    }

    .wp-image-8107 {
				width: 100% !important;
        height: 180px !important;
    }
}


/* Учитываем настройку уменьшения анимации */

@media (prefers-reduced-motion: reduce) {
    .stm-faq-page *,
    .stm-faq-page *::before,
    .stm-faq-page *::after {
        transition: none !important;
        animation: none !important;
    }
}