/* Блок «С чем пришли» на странице /digital-map — стили в палитре темы */

.dm-step {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(17, 24, 39, .08);
    margin-bottom: 22px;
    padding: 30px 32px;
}

.dm-step-title {
    color: var(--primary-color, #1d4095);
    font-size: 22px;
    font-weight: 700;
    line-height: 30px;
    margin: 0 0 18px;
}

/* Шаг 1: формат обращения — крупные кнопки в строку */
.dm-formats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.dm-format {
    background: #f5f9fb;
    border: 2px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 22px;
    text-align: left;
    transition: border-color .2s, transform .2s;
}

.dm-format:hover {
    border-color: var(--primary-color, #1d4095);
    transform: translateY(-2px);
}

.dm-format.is-active {
    background: #fff;
    border-color: var(--primary-color, #1d4095);
}

.dm-format-label {
    color: #071920;
    font-size: 17px;
    font-weight: 700;
}

.dm-format-hint {
    color: #6b7280;
    font-size: 14px;
    line-height: 20px;
}

/* Шаг 2: запрос словами клиента */
.dm-topics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.dm-topic {
    background: #fff;
    border: 1px solid #dde6ea;
    border-radius: 10px;
    color: #071920;
    cursor: pointer;
    font-size: 15px;
    line-height: 22px;
    padding: 14px 18px;
    text-align: left;
    transition: border-color .2s, background-color .2s;
}

.dm-topic:hover {
    background: #f5f9fb;
    border-color: var(--primary-color, #1d4095);
}

.dm-topic.is-active {
    background: #f5f9fb;
    border-color: var(--primary-color, #1d4095);
    font-weight: 600;
}

.dm-deadline {
    color: #a33a3a;
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-top: 4px;
}

/* Итог выбора */
.dm-result {
    background: var(--primary-color, #1d4095);
    border-radius: 16px;
    color: #fff;
    padding: 28px 32px;
}

.dm-result-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 28px;
    margin: 0 0 10px;
}

.dm-result-text {
    color: rgba(255, 255, 255, .86);
    font-size: 16px;
    line-height: 24px;
    margin: 0 0 18px;
}

.dm-result .dm-result-link,
.dm-result .dm-result-link:hover,
.dm-result a.btn.dm-result-link {
    background-color: #fff !important;
    border-color: #fff !important;
    color: var(--primary-color, #1d4095) !important;
}

@media (max-width: 575.98px) {
    .dm-step,
    .dm-result {
        padding: 22px 18px;
    }
}

/* Что именно сделаем и в какие сроки */
.dm-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-bottom: 16px;
}

.dm-fact {
    background: rgba(255, 255, 255, .12);
    border-radius: 8px;
    color: #fff;
    font-size: 15px;
    padding: 8px 14px;
}

.dm-fact b {
    font-weight: 600;
    opacity: .8;
}

.dm-result-next {
    font-size: 15px;
    margin-bottom: 18px;
}
