/* MST hero — первый экран посадочных страниц */
.mst-hero, .mst-info {
    --mst-brand: #373f89;
    --mst-brand-soft: rgba(55, 63, 137, .08);
    --mst-text: #2d2d2d;
    --mst-muted: #6f7280;
    --mst-line: #e3e6f0;
    --mst-bg: #f5f6fb;
    color: var(--mst-text);
    font-family: inherit;
    box-sizing: border-box;
}
.mst-hero *, .mst-info * { box-sizing: border-box; }
/* гасим маркеры списков из стилей Intec */
.mst-hero ul, .mst-hero li { list-style: none !important; padding-left: 0; margin-left: 0; }
.mst-hero li::before, .mst-hero li::marker { display: none !important; content: none !important; }

html:has(.mst-hero) { scroll-behavior: smooth; }
#mst-hero-form { scroll-margin-top: 100px; } /* отступ под фиксированную шапку */

/* Панель первого экрана */
.mst-hero {
    margin: 12px 0 28px;
    padding: 28px 32px;
    background: var(--mst-bg);
    border: 1px solid var(--mst-line);
    border-radius: 8px;
}
.mst-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 32px;
    align-items: stretch;
}
.mst-hero__main { display: flex; flex-direction: column; min-width: 0; }

/* Заголовок-выгода */
.mst-hero__title {
    margin: 0 0 20px;
    font-size: 22px;
    line-height: 1.35;
    font-weight: 600;
    max-width: 640px;
}

/* Что входит в смену */
.mst-hero__inc {
    background: #fff;
    border: 1px solid var(--mst-line);
    border-radius: 6px;
    padding: 18px 20px;
    margin-bottom: 24px;
}
.mst-hero__inc-head {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--mst-muted); margin-bottom: 14px;
}
.mst-hero__inc-list {
    margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
}
.mst-hero__inc-item {
    display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
    padding: 0 16px;
    min-width: 0;
}
.mst-hero__inc-item:first-child { padding-left: 0; border-left: 0; }
.mst-hero__inc-icon {
    width: 40px; height: 40px; border-radius: 10px; margin-bottom: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--mst-brand); color: #fff;
    box-shadow: 0 4px 12px rgba(55, 63, 137, .25);
}
.mst-hero__inc-icon svg { width: 22px; height: 22px; }
.mst-hero__inc-item b { font-size: 14px; font-weight: 600; line-height: 1.3; }
.mst-hero__inc-item > span:last-child:not(.mst-hero__inc-icon) { font-size: 12px; color: var(--mst-muted); line-height: 1.35; }

/* 3 факта */
.mst-hero__facts {
    margin: 0 0 28px; padding: 0;
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px;
}
.mst-hero__fact { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.mst-hero__fact-icon {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; color: var(--mst-brand);
    border: 1px solid var(--mst-line);
}
.mst-hero__fact-icon svg { width: 20px; height: 20px; }
.mst-hero__fact b { display: block; font-size: 14px; font-weight: 600; margin-bottom: 2px; }
.mst-hero__fact span span { display: block; font-size: 13px; line-height: 1.4; color: var(--mst-muted); }

/* Кнопки */
.mst-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.mst-hero__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 52px; padding: 8px 26px;
    border-radius: 4px; border: 2px solid transparent;
    font-size: 15px; font-weight: 600; line-height: 1.2;
    text-decoration: none !important; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s, transform .1s;
}
.mst-hero__btn:active { transform: translateY(1px); }
.mst-hero__btn svg { width: 20px; height: 20px; flex: none; }
.mst-hero__btn--primary { background: var(--mst-brand); color: #fff !important; }
.mst-hero__btn--primary:hover { color: #fff !important; }
.mst-hero__btn--ghost { background: #fff; color: var(--mst-brand); border-color: var(--mst-brand); }
.mst-hero__btn--ghost:hover { background: var(--mst-brand); color: #fff !important; }
.mst-hero__btn-sub { display: block; font-size: 12px; font-weight: 500; opacity: .85; }

/* Карточка формы */
.mst-hero-form {
    height: 100%;
    background: #fff;
    border: 1px solid var(--mst-line);
    border-radius: 6px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(30, 35, 80, .06);
}
.mst-hero-form__title { font-size: 18px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.mst-hero-form__text { font-size: 13px; color: var(--mst-muted); margin-bottom: 18px; line-height: 1.4; }

/* Форма startshop (как на /contacts/) — сбрасываем её отступы и сетку.
   Через #id, чтобы перебить .intec-ui-form-fields { margin: -10px -7px } */
#mst-hero-form .c-startshop-form-result-new,
#mst-hero-form .startshop-form-result-new-form,
#mst-hero-form form,
#mst-hero-form .startshop-form-result-new-fields,
#mst-hero-form .startshop-form-result-new-footer {
    margin: 0 !important; padding: 0 !important;
    width: auto !important; max-width: none !important;
    background: none !important; box-shadow: none !important; border: 0 !important;
}
#mst-hero-form .startshop-form-result-new-header { display: none !important; }
/* email необязателен — в первом экране прячем, чтобы форма была короче */
#mst-hero-form .startshop-form-result-new-field:has(input[name=EMAIL]) { display: none !important; }
#mst-hero-form .startshop-form-result-new-field {
    display: block !important; width: 100% !important; float: none !important;
    margin: 0 0 12px !important; padding: 0 !important;
}
#mst-hero-form .startshop-form-result-new-title {
    display: block; padding: 0 !important; margin: 0 0 4px !important;
    font-size: 12px; font-weight: 500; color: var(--mst-muted);
}
#mst-hero-form .startshop-form-result-new-content { margin: 0 !important; padding: 0 !important; }
#mst-hero-form .startshop-form-result-new-field input {
    width: 100% !important; height: 44px; margin: 0 !important;
    background: #fff !important; border: 1px solid var(--mst-line) !important; border-radius: 4px !important;
    font-size: 14px;
}
#mst-hero-form .startshop-form-result-new-field input:focus { border-color: var(--mst-brand) !important; box-shadow: 0 0 0 3px var(--mst-brand-soft); }
#mst-hero-form .startshop-form-result-new-footer .intec-grid {
    display: flex !important; flex-direction: column; align-items: stretch !important;
    margin: 4px 0 0 !important; gap: 12px;
}
#mst-hero-form .startshop-form-result-new-footer .intec-grid > * {
    width: 100% !important; max-width: 100% !important; flex: none !important; padding: 0 !important; margin: 0 !important;
}
#mst-hero-form .startshop-form-result-new-consent { font-size: 12px; line-height: 1.4; color: var(--mst-muted); }
#mst-hero-form button[type=submit] {
    width: 100%; min-height: 50px; border-radius: 4px !important; font-weight: 600;
    background: var(--mst-brand) !important; border-color: var(--mst-brand) !important; color: #fff !important;
}
#mst-hero-form button[type=submit]:disabled { opacity: .45; cursor: not-allowed; }

/* Условия + FAQ */
.mst-info { margin: 40px 0; }
.mst-info__title { font-size: 24px; font-weight: 600; margin: 0 0 20px; }
.mst-info__conditions {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--mst-line); border-radius: 8px; overflow: hidden;
    margin-bottom: 40px; background: var(--mst-bg);
}
.mst-info__cond { padding: 20px 22px; border-right: 1px solid var(--mst-line); border-bottom: 1px solid var(--mst-line); margin: 0 -1px -1px 0; }
.mst-info__cond-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--mst-brand); margin-bottom: 6px; }
.mst-info__cond-text { font-size: 14px; line-height: 1.5; }

.mst-info__faq { max-width: 900px; margin-bottom: 40px; }
.mst-info__q { border-bottom: 1px solid var(--mst-line); }
.mst-info__q summary {
    list-style: none; cursor: pointer; position: relative;
    padding: 18px 40px 18px 0; font-size: 16px; font-weight: 600;
}
.mst-info__q summary::-webkit-details-marker { display: none; }
.mst-info__q summary::after {
    content: ""; position: absolute; right: 8px; top: 50%;
    width: 10px; height: 10px; margin-top: -7px;
    border-right: 2px solid var(--mst-brand); border-bottom: 2px solid var(--mst-brand);
    transform: rotate(45deg); transition: transform .2s;
}
.mst-info__q[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.mst-info__a { padding: 0 0 18px; font-size: 14px; line-height: 1.6; color: #4a4c57; }

.mst-info__cta {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px 16px;
    padding: 22px 24px; background: var(--mst-bg); border: 1px solid var(--mst-line); border-radius: 8px;
}
.mst-info__cta > span { font-size: 16px; font-weight: 600; margin-right: auto; }

/* Адаптив */
@media (max-width: 1200px) {
    .mst-hero__grid { grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; }
    .mst-hero__inc-list { grid-template-columns: 1fr 1fr; gap: 16px 0; }
    .mst-hero__inc-item:nth-child(odd) { padding-left: 0; border-left: 0; }
    .mst-hero__facts { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 860px) {
    .mst-hero { padding: 20px; }
    .mst-hero__grid { grid-template-columns: 1fr; }
    .mst-info__conditions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .mst-hero { padding: 16px; margin-left: -4px; margin-right: -4px; }
    .mst-hero__title { font-size: 18px; margin-bottom: 16px; }
    .mst-hero__inc { padding: 14px; }
    .mst-hero__actions .mst-hero__btn { flex: 1 1 100%; }
    .mst-hero-form { padding: 18px; }
    .mst-info__title { font-size: 20px; }
    .mst-info__conditions { grid-template-columns: 1fr; }
    .mst-info__cta .mst-hero__btn { flex: 1 1 100%; }
}
