/* =========================================================
   STANKI-M — БЛОК ОБРАТНОЙ СВЯЗИ
   Изолированные стили шорткода [stm_feedback]
   ========================================================= */

.stm-feedback {
    --stm-feedback-blue: #001b72;
    --stm-feedback-accent: #315cff;
    --stm-feedback-light: #f3f6ff;
    --stm-feedback-border: #e1e7f3;
    --stm-feedback-text: #252b38;

    box-sizing: border-box;
    width: 100%;
    max-width: 2000px;
    margin: 40px 0 30px;
    padding: 30px;
    border: 1px solid var(--stm-feedback-border);
    border-radius: 0;
    background: var(--stm-feedback-light);
    color: var(--stm-feedback-text);
    font: inherit;
}

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

.stm-feedback h2,
.stm-feedback__title {
    margin: 0 0 14px;
    color: var(--stm-feedback-blue);
    font-size: 27px;
    font-weight: 600;
    line-height: 1.3;
}

.stm-feedback__description {
    margin: 0 0 24px;
    color: var(--stm-feedback-text);
    font-size: 15px;
    line-height: 1.75;
}

.stm-feedback__description p {
    margin: 0 0 12px;
}

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

.stm-feedback__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.stm-feedback__card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    min-height: 105px;
    padding: 20px;
    border: 1px solid var(--stm-feedback-border);
    border-radius: 0;
    background: #fff;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.stm-feedback__card:hover {
    border-color: var(--stm-feedback-accent);
    box-shadow: 0 4px 16px rgb(0 27 114 / 7%);
}

.stm-feedback__card h3 {
    margin: 0 0 12px;
    color: var(--stm-feedback-blue);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
}

.stm-feedback__card p {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

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

.stm-feedback__card a:not(.stm-feedback__button) {
    color: var(--stm-feedback-blue);
    text-decoration: none;
    text-underline-offset: 3px;
    transition: color .2s ease;
}

.stm-feedback__card a:not(.stm-feedback__button):hover {
    color: var(--stm-feedback-accent);
    text-decoration: underline;
}

.stm-feedback__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: auto;
    padding: 12px 18px;
    border: 1px solid var(--stm-feedback-blue);
    border-radius: 0;
    background: var(--stm-feedback-blue);
    color: #fff !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none !important;
    transition: background .2s ease, border-color .2s ease;
}

.stm-feedback__button:hover,
.stm-feedback__button:focus-visible {
    border-color: var(--stm-feedback-accent);
    background: var(--stm-feedback-accent);
    color: #fff !important;
}

.stm-feedback__note {
    margin-top: 20px;
    padding: 14px 18px;
    border-left: 3px solid var(--stm-feedback-accent);
    background: #fff;
    color: #333;
    font-size: 14px;
    line-height: 1.75;
}

.stm-feedback__note p {
    margin: 0 0 8px;
}

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

.stm-feedback a:focus-visible {
    outline: 2px solid var(--stm-feedback-accent);
    outline-offset: 3px;
}

@media (max-width: 1000px) {
    .stm-feedback {
        padding: 24px;
    }

    .stm-feedback__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stm-feedback__card:last-child {
        grid-column: 1 / -1;
    }
}

@media (max-width: 600px) {
    .stm-feedback {
        margin: 30px 0 24px;
        padding: 20px 16px;
    }

    .stm-feedback h2,
    .stm-feedback__title {
        font-size: 23px;
    }

    .stm-feedback__description {
        margin-bottom: 20px;
        font-size: 14px;
    }

    .stm-feedback__grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .stm-feedback__card,
    .stm-feedback__card:last-child {
        grid-column: auto;
        padding: 18px;
    }

    .stm-feedback__button {
        min-height: 46px;
    }

    .stm-feedback__note {
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stm-feedback *,
    .stm-feedback *::before,
    .stm-feedback *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
    }
}
