/* Блоки для заявок в статьях базы знаний. Основной цвет сайта: #d2df3d. Жирный = Onest-Medium без font-weight. */
.sse-ab-plate, .sse-ab-form, .sse-ab-cards, .sse-ab-end, .sse-ab-side { --ab-primary: #d2df3d; --ab-ink: #0b0c12; --ab-dark: #121212; text-align: left; }

/* общие кнопки */
.sse-ab-btn { display: block; padding: 18px 28px; border: 2px solid transparent; border-radius: 999px; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: .9rem; line-height: 1.1; letter-spacing: .02em; text-align: center; text-transform: uppercase; text-decoration: none !important; transition: filter .2s, background-color .2s; }
.sse-ab-btn--primary { background: var(--ab-primary); color: var(--ab-ink) !important; }
.sse-ab-btn--primary:hover { filter: brightness(.95); }
.sse-ab-btn--dark { background: var(--ab-ink); color: #fff !important; }
.sse-ab-btn--dark:hover { background: #26282f; }
.sse-ab-btn--outline { border-color: var(--ab-ink); background: transparent; color: var(--ab-ink) !important; }
.sse-ab-btn--outline:hover { background: rgba(11, 12, 18, .08); }
.sse-ab-btn--outline-light { border-color: #fff; background: transparent; color: #fff !important; }
.sse-ab-btn--outline-light:hover { background: rgba(255, 255, 255, .12); }

/* 1. плашка со ссылкой */
.sse-ab-plate { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 28px 0; padding: 20px 26px; border-left: 5px solid var(--ab-primary); border-radius: 0 20px 20px 0; background: #f4f6e9; }
.sse-ab-plate__body strong { display: block; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.05rem; }
.sse-ab-plate__body span { display: block; margin-top: 4px; color: #4b4f45; }
.sse-ab-plate__link { flex: none; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; color: var(--ab-ink) !important; text-decoration: none !important; border-bottom: 2px solid var(--ab-primary); white-space: nowrap; }

/* 2. форма заявки */
.sse-ab-form { margin: 32px 0; padding: 32px; border-radius: 30px; background: var(--ab-dark); color: #fff; }
.sse-ab-form__title { margin: 0 0 8px; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.9rem; line-height: 1.15; color: #fff; }
.sse-ab-form__text { margin: 0 0 22px; color: #d6d8cf; font-size: .98rem; line-height: 1.45; }
.sse-ab-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sse-ab-form input[type="text"], .sse-ab-form input[type="tel"] { width: 100%; padding: 17px 20px; border: 1px solid #34363b; border-radius: 16px; background: #1c1d20; color: #fff; font-size: 1rem; outline: none; box-shadow: none; }
.sse-ab-form input::placeholder { color: #8e9096; }
.sse-ab-form input[type="text"]:focus, .sse-ab-form input[type="tel"]:focus { border-color: var(--ab-primary); }
.sse-ab-form__file { position: relative; display: block; margin: 14px 0 0; padding: 17px 20px; border: 1px solid #34363b; border-radius: 16px; background: #1c1d20; color: #8e9096; cursor: pointer; transition: border-color .2s; }
.sse-ab-form__file:hover { border-color: #5a5d63; }
.sse-ab-form__file input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.sse-ab-form__form.has-file .sse-ab-form__file { color: #fff; }
.sse-ab-form__files { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.sse-ab-form__files:empty { display: none; }
.sse-ab-form__chip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 8px 6px 14px; border-radius: 999px; background: #26282d; color: #fff; font-size: .85rem; }
.sse-ab-form__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sse-ab-form__chip button { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: #3a3c42; color: #fff; font-size: 14px; line-height: 22px; cursor: pointer; }
.sse-ab-form__chip button:hover { background: #d2df3d; color: #0b0c12; }
.sse-ab-form__foot { display: flex; align-items: flex-start; gap: 22px; margin-top: 20px; }
.sse-ab-form__btn { flex: none; padding: 20px 34px; border: 0; border-radius: 999px; background: var(--ab-primary); color: var(--ab-ink); font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: .9rem; letter-spacing: .02em; line-height: 1; text-transform: uppercase; cursor: pointer; transition: filter .2s; }
.sse-ab-form__btn:hover { filter: brightness(.95); }
.sse-ab-form__btn[disabled] { opacity: .6; cursor: default; }
.sse-ab-form__hint { margin: 0; color: #9a9ca2; font-size: .78rem; line-height: 1.4; }
.sse-ab-form__hint a, .sse-ab-form__hint strong { color: #d6d8cf; }
.sse-ab-form__hint .sse-form-consent, .sse-ab-form__hint .sse-form-consent span { color: #cfd1c8; }
.sse-ab-form__error { margin-top: 14px; color: #ff8d8d; font-size: .9rem; }
.sse-ab-form__success { padding: 12px 0; }
.sse-ab-form__success strong { display: block; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.5rem; }
.sse-ab-form__success span { display: block; margin-top: 6px; color: #d6d8cf; }

/* 3. карточки услуг */
.sse-ab-services { margin: 28px 0; }
.sse-ab-cards { margin: 0; padding: 0; }
.sse-ab-list { margin-top: 26px; }
.sse-ab-list__title { margin-bottom: 8px; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.05em; }
.sse-ab-cards__title { margin-bottom: 12px; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-style: italic; font-size: 1.05rem; }
.sse-ab-cards__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sse-ab-card { display: flex; flex-direction: column; padding: 22px 22px 20px; border: 1px solid #e3e5da; border-radius: 22px; background: #fff; color: var(--ab-ink) !important; text-decoration: none !important; transition: box-shadow .2s, transform .2s; }
a.sse-ab-card:hover { box-shadow: 0 10px 24px rgba(11, 12, 18, .1); transform: translateY(-2px); }
.sse-ab-card__title { font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.1rem; line-height: 1.25; }
.sse-ab-card__text { margin-top: 10px; color: #5b5f55; font-size: .93rem; line-height: 1.45; }
.sse-ab-card__link { align-self: flex-start; margin-top: auto; padding-top: 0; border-bottom: 2px solid var(--ab-primary); font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; }
.sse-ab-card__text + .sse-ab-card__link, .sse-ab-card__title + .sse-ab-card__link { margin-top: 16px; }

/* 4. блок в конце статьи */
.sse-ab-end { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 36px 0 28px; padding: 30px 36px; border-radius: 30px; background: var(--ab-primary); color: var(--ab-ink); }
.sse-ab-end__title { font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.7rem; line-height: 1.15; }
.sse-ab-end__text { margin-top: 8px; font-size: .95rem; }
.sse-ab-end__phone { margin-top: 8px; }
.sse-ab-end__phone a { font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.1rem; color: var(--ab-ink) !important; text-decoration: none !important; }
.sse-ab-end__phone small { margin-left: 6px; font-size: .85rem; }
.sse-ab-end__actions { flex: none; display: flex; flex-direction: column; gap: 12px; min-width: 320px; }

/* 5. карточка заявки справа */
.sse-ab-side { margin-bottom: 24px; padding: 26px 24px; border-radius: 28px; background: var(--ab-dark); color: #fff; }
.sse-ab-side__title { font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.45rem; line-height: 1.15; }
.sse-ab-side__text { margin: 10px 0 18px; color: #d6d8cf; font-size: .93rem; line-height: 1.4; }
.sse-ab-side .sse-ab-btn { margin-bottom: 12px; padding: 17px 16px; }
.sse-ab-side__phone { margin-top: 18px; }
.sse-ab-side__phone a { display: block; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; font-size: 1.35rem; color: #fff !important; text-decoration: none !important; }
.sse-ab-side__phone small { display: block; color: #9a9ca2; }
.sse-ab-side__bottom { margin-top: 16px; padding-top: 14px; border-top: 1px solid #2c2e33; color: #9a9ca2; font-size: .82rem; }
.sse-ab-subscribe-line { margin: 0 0 16px; font-size: .9rem; color: #5b5f55; }
.sse-ab-subscribe-line a { color: var(--ab-ink, #0b0c12); font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; border-bottom: 2px solid #d2df3d; text-decoration: none; }

@media (max-width: 991px) {
    .sse-ab-end { flex-direction: column; align-items: stretch; padding: 26px 22px; }
    .sse-ab-end__actions { min-width: 0; }
    .sse-ab-cards__grid { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
    .sse-ab-plate { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; }
    .sse-ab-form { padding: 24px 18px; border-radius: 24px; }
    .sse-ab-form__title { font-size: 1.5rem; }
    .sse-ab-form__row { grid-template-columns: 1fr; }
    .sse-ab-form__foot { flex-direction: column; align-items: stretch; }
    .sse-ab-form__btn { text-align: center; }
}

/* таблица в тексте статьи (класс sse-ab-table) */
.text-justify .sse-ab-table, #info .sse-ab-table { width: 100%; margin: 20px 0; border-collapse: separate; border-spacing: 0; border: 1px solid #e3e5da; border-radius: 16px; overflow: hidden; font-size: .95rem; }
#info .sse-ab-table th, #info .sse-ab-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid #e3e5da; text-align: left; vertical-align: top; }
#info .sse-ab-table th { background: #f4f6e9; font-family: 'Onest-Medium', Onest, sans-serif; font-weight: normal; }
#info .sse-ab-table tr:last-child td { border-bottom: 0; }
