/*
 * Страница «Меры государственной поддержки» (/gospodderzhka/) по макету Figma (фреймы 1920 и 390).
 *
 * Всё ограничено обёрткой .gos-page: шапка и подвал сайта остаются на шрифте VTB Group.
 * Макет снят с HTML-прототипа и набран Inter, размеры шрифтов в нём дробные — здесь округлены до десятых.
 * Брейкпоинты как в шаблоне: 1199px — планшет, 900px — узкий планшет, 567px — телефон.
 */

@font-face {
    font-family: "Inter";
    src: url(/assets/Inter/Inter-cyrillic.woff2) format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
    font-family: "Inter";
    src: url(/assets/Inter/Inter-latin.woff2) format("woff2");
    font-weight: 300 700;
    font-style: normal;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Всем элементам: у заголовков в base.css свой font-family, наследование его не перебивает */
.gos-page,
.gos-page * {
    font-family: "Inter", Helvetica, Arial, sans-serif;
    font-optical-sizing: none;
    font-variation-settings: "opsz" 14;
    box-sizing: border-box;
}

.gos-page {
    --gos-border: #E4ECF4;
    --gos-dark: #132561;
    color: var(--text-color);
}

.gos-page [hidden] {
    display: none !important;
}

/* Якоря: шапка сайта закреплена, без отступа заголовок блока уходит под неё */
.gos-page [id] {
    scroll-margin-top: 110px;
}


/* ===== Общее ===== */

/* .max-width-theme шаблона (margin: 0 auto) подключается позже этого файла — нужна специфичность выше */
.gos-page .gos-section {
    margin-top: var(--theme-margin);
}

/* Отступы между блоками — как в макете 1920, они там разные */
.gos-page .gos-bot {
    margin-top: 72px;
}

.gos-page .gos-inst {
    margin-top: 30px;
}

.gos-page .gos-catalog {
    margin-top: 114px;
}

.gos-page .gos-cta-section {
    margin-top: 130px;
}

.gos-page .gos-faq {
    margin-top: 102px;
}

.gos-head {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

/* Надзаголовок в макете есть только на телефоне */
.gos-head__eyebrow {
    display: none;
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    letter-spacing: 1.04px;
    text-transform: uppercase;
    color: var(--main-color);
}

.gos-head__title {
    max-width: 760px;
    margin: 0;
    font-size: 36.8px;
    font-weight: 700;
    line-height: 41.8px;
    letter-spacing: -0.38px;
    text-wrap: balance;
    color: var(--gos-dark);
}

.gos-head__text {
    padding-top: 3px;
    font-size: 15.9px;
    line-height: 26.35px;
    color: var(--text-color);
}

.gos-page .gos-btn {
    display: inline-flex;
    width: auto;
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    border: 1px solid var(--main-color);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gos-page .gos-btn.bordered {
    background-color: #fff;
}

.gos-page .gos-btn:hover {
    background-color: #192e72;
    border-color: #192e72;
    color: #fff;
}

.gos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Селект с синей галочкой, как в форме подбора */
.gos-select {
    width: 100%;
    height: 56px;
    padding: 0 44px 0 16px;
    font-size: 14.3px;
    line-height: 17px;
    color: var(--menu-color);
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%233261EC' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 17px center;
    border: 1px solid var(--gos-border);
    border-radius: 7px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.gos-select:focus,
.gos-cat__search:focus {
    border-color: var(--main-color);
}


/* ===== Hero ===== */

.gos-hero {
    position: relative;
    padding: 76px 0 64px;
    background-color: var(--main-color);
    color: #fff;
    overflow: hidden;
}

.gos-hero::after {
    content: "";
    position: absolute;
    top: -80px;
    right: -120px;
    width: 520px;
    height: 520px;
    background: radial-gradient(closest-side, rgba(0, 170, 255, .28) 0%, rgba(0, 170, 255, 0) 88%);
    pointer-events: none;
}

.gos-hero > * {
    position: relative;
    z-index: 1;
}

/*
 * Хлебные крошки: разметку выводит общий шаблон crumbs. У него есть свой style.css (отступы, «/» через ::after,
 * скрытие на экранах уже 1200px) — здесь он перебит целиком, чтобы вид не зависел от того, подключился он или нет.
 */
.gos-hero .breadcrumbs {
    display: block;
    margin: 0 0 22px;
    padding: 0;
}

.gos-hero .breadcrumbs__nav {
    display: block;
    margin: 0;
    padding: 0;
    font-size: 12.1px;
    line-height: 15px;
}

.gos-hero .breadcrumbs__nav > * {
    display: inline;
    margin: 0;
    padding: 0;
}

.gos-hero .breadcrumbs__nav i {
    display: none;
}

.gos-hero .breadcrumbs__nav > * + *::before {
    content: "/";
    margin: 0 7px;
    color: #A9B6DA;
}

.gos-hero .breadcrumbs__nav .breadcrumbs__link,
.gos-hero .breadcrumbs__nav .breadcrumbs__link span {
    position: static;
    display: inline;
    margin: 0;
    font-size: 12.1px;
    line-height: 15px;
    letter-spacing: 0;
    color: #A9B6DA;
}

.gos-hero .breadcrumbs__nav a.breadcrumbs__link::after {
    content: none;
}

.gos-hero .breadcrumbs__nav a.breadcrumbs__link:hover,
.gos-hero .breadcrumbs__nav a.breadcrumbs__link:hover span {
    color: #fff;
    text-decoration: none;
}

.gos-hero .breadcrumbs__nav > div.breadcrumbs__link,
.gos-hero .breadcrumbs__nav > div.breadcrumbs__link span {
    color: #fff;
}

.gos-hero__title {
    max-width: 900px;
    margin: 0 0 22px;
    padding-top: 4px;
    font-size: 50.4px;
    font-weight: 700;
    line-height: 54.6px;
    letter-spacing: -0.52px;
    color: #fff;
}

.gos-hero__text {
    max-width: 780px;
    font-size: 18.9px;
    line-height: 30px;
    color: #D3DDF4;
}

.gos-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 38px;
}

.gos-page .gos-hero__btn {
    padding: 0 28px;
    font-size: 14.6px;
    font-weight: 700;
    color: #fff;
    background-color: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .28);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.gos-page .gos-hero__btn:hover {
    background-color: #fff;
    border-color: #fff;
    color: var(--main-color);
}

.gos-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 56px;
    margin-top: 52px;
}

.gos-hero__stat {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gos-hero__stat b {
    font-size: 33px;
    font-weight: 700;
    line-height: 34px;
    color: #fff;
}

.gos-hero__stat span {
    font-size: 13.3px;
    line-height: 16px;
    color: #A9B6DA;
}


/* ===== Подбор мер ===== */

.gos-bot__wrap {
    margin-top: 40px;
    padding: 44px;
    background-color: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 16px;
    box-shadow: 0 24px 60px -30px rgba(19, 37, 97, .25);
}

.gos-bot__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 525px));
    gap: 15px 18px;
}

.gos-bot__field {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
}

.gos-bot__label {
    font-size: 12.8px;
    font-weight: 700;
    line-height: 15px;
    color: var(--menu-color);
}

.gos-bot__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.gos-bot__result {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid var(--gos-border);
}

.gos-bot__result-title {
    margin-bottom: 18px;
    font-size: 19.8px;
    font-weight: 700;
    line-height: 24px;
    color: var(--gos-dark);
}

.gos-bot__empty {
    font-size: 15.9px;
    line-height: 26.35px;
}

.gos-bot__result > .gos-actions {
    margin-top: 24px;
}


/* ===== Институты ===== */

.gos-acc {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 40px;
}

.gos-acc__card {
    background-color: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 14px;
    overflow: hidden;
}

.gos-acc__heading {
    margin: 0;
}

.gos-acc__head {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
    padding: 26px 30px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.gos-acc__num {
    display: flex;
    flex: 0 0 46px;
    align-items: center;
    justify-content: center;
    height: 46px;
    font-size: 15px;
    font-weight: 700;
    color: var(--main-color);
    background-color: #ECF3F9;
    border-radius: 10px;
}

.gos-acc__title {
    flex: 1 1 auto;
    font-size: 19.8px;
    font-weight: 700;
    line-height: 24px;
    color: var(--gos-dark);
}

.gos-acc__chevron,
.gos-cat__chev {
    color: var(--main-color);
    transition: transform .2s ease;
}

.gos-acc__chevron {
    flex: 0 0 14px;
    font-size: 14.1px;
    line-height: 17px;
    text-align: center;
}

.is-open > .gos-acc__heading .gos-acc__chevron,
.is-open > .gos-cat__head .gos-cat__chev {
    transform: rotate(180deg);
}

/* Содержимое есть в разметке всегда, скрыто только визуально — так его индексируют поисковики */
.gos-acc__body {
    display: none;
    padding: 0 30px 30px 96px;
}

.gos-acc__card.is-open .gos-acc__body {
    display: block;
}

.gos-acc__text {
    max-width: 900px;
    font-size: 15.9px;
    line-height: 26.35px;
}

.gos-page .gos-acc__list {
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.gos-page .gos-acc__list li {
    position: relative;
    margin: 0;
    list-style: none;
    padding: 0 0 0 18px;
    font-size: 15.9px;
    line-height: 26.35px;
}

.gos-page .gos-acc__list li + li {
    margin-top: 4px;
}

.gos-page .gos-acc__list li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: var(--main-color);
    border-radius: 50%;
}

.gos-acc__list a:hover,
.gos-acc__contacts a:hover {
    text-decoration: underline;
}

.gos-acc__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
    font-size: 15.9px;
    font-weight: 700;
}

.gos-acc__body .gos-btn {
    margin-top: 22px;
}


/* ===== Каталог мер ===== */

.gos-cat__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 41px;
}

.gos-cat__search {
    flex: 1 1 220px;
    min-width: 220px;
    height: 48px;
    padding: 0 16px;
    font-size: 13.2px;
    color: var(--menu-color);
    background-color: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 7px;
    outline: none;
}

.gos-cat__search::placeholder {
    color: #757575;
}

.gos-cat__operator {
    flex: 0 1 449px;
    width: auto;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    padding-left: 20px;
    font-size: 13.6px;
}

.gos-cat {
    margin-top: 22px;
    background-color: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 14px;
    overflow: hidden;
}

.gos-cat__thead,
.gos-cat__head {
    scroll-margin-top: 110px;
    display: flex;
    gap: 16px;
    padding: 14px 22px;
}

.gos-cat__thead {
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #fff;
    background-color: var(--gos-dark);
}

.gos-cat__n {
    flex: 0 0 52px;
}

.gos-cat__name {
    flex: 1 1 auto;
    min-width: 0;
}

.gos-cat__op {
    flex: 0 0 220px;
}

.gos-cat__chev {
    flex: 0 0 30px;
    text-align: center;
}

.gos-cat__row {
    border-bottom: 1px solid var(--gos-border);
}

.gos-cat__row:last-child {
    border-bottom: none;
}

.gos-cat__row.is-hidden {
    display: none;
}

.gos-cat__head {
    align-items: center;
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
}

.gos-cat__head:hover {
    background-color: #F7FAFD;
}

.gos-cat__head .gos-cat__n {
    font-size: 13px;
    font-weight: 700;
    line-height: 16px;
    color: var(--main-color);
}

.gos-cat__head .gos-cat__name {
    font-size: 14.5px;
    font-weight: 700;
    line-height: 18px;
    color: var(--gos-dark);
}

.gos-cat__head .gos-cat__op {
    font-size: 12.4px;
    line-height: 15px;
    color: var(--text-color);
}

.gos-cat__head .gos-cat__chev {
    font-size: 10.9px;
    line-height: 13px;
}

/* Детали меры есть в разметке всегда, скрыты только визуально (требование SEO из ТЗ) */
.gos-cat__body {
    display: none;
    padding: 6px 22px 24px 90px;
}

.gos-cat__row.is-open .gos-cat__body {
    display: block;
}

.gos-cat__details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px 24px;
    margin: 0 0 22px;
}

.gos-cat__detail--wide {
    grid-column: span 2;
}

/* Оператор в деталях нужен только там, где колонка оператора скрыта (телефон) */
.gos-cat__detail--operator {
    display: none;
}

.gos-cat__detail dt {
    margin: 0 0 4px;
    font-size: 12px;
    font-weight: 700;
    line-height: 15px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #9AA4B2;
}

.gos-cat__detail dd {
    margin: 0;
    font-size: 14.5px;
    line-height: 22px;
    color: var(--menu-color);
}

.gos-cat__empty {
    padding: 24px 22px;
    font-size: 14.5px;
    line-height: 22px;
}

.gos-cat--result {
    margin-top: 0;
}


/* ===== CTA с формой ===== */

.gos-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 56px;
    padding: 52px 56px;
    background-color: var(--main-color);
    border-radius: 16px;
    overflow: hidden;
}

.gos-cta__text {
    flex: 1 1 auto;
    min-width: 0;
}

.gos-cta__title {
    max-width: 560px;
    margin: 0 0 16px;
    font-size: 30.6px;
    font-weight: 700;
    line-height: 36.8px;
    letter-spacing: -0.32px;
    color: #fff;
}

.gos-cta__lead {
    max-width: 700px;
    font-size: 15.8px;
    line-height: 26.35px;
    color: #DBE3F6;
}

.gos-page .gos-cta__badges {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.gos-page .gos-cta__badges li {
    position: relative;
    margin: 0;
    list-style: none;
    padding: 4px 0 4px 38px;
    font-size: 14.2px;
    line-height: 18px;
    color: #EAF0FF;
}

.gos-page .gos-cta__badges li::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 26px;
    height: 26px;
    background: rgba(255, 255, 255, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='9' fill='none'%3E%3Cpath d='M1 4.5l3.3 3.3L11 1.2' stroke='%23EAF0FF' stroke-width='1.3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
    border-radius: 50%;
}

.gos-cta__form {
    position: relative;
    z-index: 1;
    flex: 0 0 400px;
}

/* Форма — общий шаблон contacts_form, его карточка уже совпадает с макетом; здесь только высота полей и кнопки */
.gos-cta__form .contacts_form_field input {
    height: 54px;
    padding: 0 16px;
    font-size: 13.3px;
    outline: none;
}

.gos-cta__form .contacts_form_btn {
    height: 58px;
    padding: 0 28px;
    font-size: 14.8px;
    font-weight: 700;
    cursor: pointer;
}

.gos-cta__form label.error {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: #C14100;
}


/* ===== FAQ ===== */

/* Компонент resident-faq с главной, вид — по макету этой страницы */
.gos-page .questions_wrapper {
    gap: 12px;
    margin: 32px 0 0;
}

.gos-page .questions_wrapper .question_item {
    flex-wrap: wrap;
    align-items: center;
    column-gap: 20px;
    padding: 24px;
    border: 1px solid var(--gos-border);
}

.gos-page .questions_wrapper .question_item span:first-child {
    flex: 1 1 0;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 25.65px;
    color: var(--gos-dark);
}

.gos-page .questions_wrapper .question_item span.show_more {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    padding: 0;
    font-size: 24px;
    line-height: 34px;
    color: var(--main-color);
    border-radius: 50%;
}

.gos-page .questions_wrapper .question_item .question_descr {
    margin-top: 20px;
    padding-top: 20px;
    font-size: 15.9px;
    line-height: 26.35px;
    border-top-color: var(--gos-border);
}


/* Строка «Не нашли ответ?» под вопросами: выравнивание текста и кнопки — в стилях шаблона resident-faq,
   здесь только вид карточки под макет этой страницы */
.gos-page .questions .bottom_wrapper {
    justify-content: space-between;
    gap: 24px;
    margin-top: 12px;
    padding: 24px;
    background-color: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 14px;
}

.gos-page .questions .bottom_wrapper .bottom_text {
    margin: 0;
    font-size: 18.5px;
    font-weight: 700;
    line-height: 25.65px;
    color: var(--gos-dark);
}

.gos-page .questions .bottom_wrapper .btns {
    flex-shrink: 0;
    max-width: none;
    padding: 0;
}

.gos-page .questions .bottom_wrapper .theme-btn {
    padding: 0 28px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .2s ease;
}

.gos-page .questions .bottom_wrapper .theme-btn:hover {
    background-color: #192e72;
}


/* ===== Планшет ===== */

@media (max-width: 1199px) {
    .gos-cta {
        gap: 32px;
        padding: 40px;
    }

    .gos-cta__form {
        flex-basis: 360px;
    }

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

@media (max-width: 900px) {
    .gos-hero__title {
        font-size: 40px;
        line-height: 44px;
    }

    .gos-head__title {
        font-size: 30px;
        line-height: 34px;
    }

    .gos-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .gos-cta__form {
        flex-basis: auto;
    }

    .gos-cat__op {
        flex-basis: 180px;
    }

    .gos-cat__body {
        padding-left: 22px;
    }
}


/* ===== Телефон (макет 390) ===== */

@media (max-width: 567px) {
    /* Отступы между блоками — как в макете 390 */
    .gos-page .gos-section {
        margin-top: 44px;
    }

    .gos-page .gos-catalog {
        margin-top: 58px;
    }

    .gos-page .gos-cta-section {
        margin-top: 39px;
    }

    .gos-page .gos-faq {
        margin-top: 69px;
    }

    /* На узких экранах шаблон сужает .max-width-theme до 320px — в макете 390 поля по 20px */
    .gos-page .max-width-theme {
        max-width: none;
        padding-right: 20px;
        padding-left: 20px;
    }

    .gos-head__eyebrow {
        display: block;
    }

    .gos-head__title {
        font-size: 25px;
        line-height: 28.6px;
        letter-spacing: -0.26px;
    }

    .gos-head__title br {
        display: none;
    }

    .gos-page .gos-btn {
        height: 56px;
        font-size: 15px;
    }

    .gos-hero {
        padding: 48px 0 40px;
    }

    .gos-hero::after {
        right: -120px;
    }

    .gos-hero__title {
        font-size: 31.2px;
        line-height: 34.3px;
        letter-spacing: -0.32px;
    }

    .gos-hero__text {
        font-size: 15.4px;
        line-height: 24px;
    }

    .gos-hero__btns {
        flex-direction: column;
        align-items: flex-start;
    }

    .gos-page .gos-hero__btn {
        height: 56px;
        font-size: 14.6px;
    }

    .gos-hero__stats {
        gap: 26px;
        margin-top: 52px;
    }

    .gos-hero__stat b {
        font-size: 24px;
        line-height: 28px;
    }

    .gos-bot__wrap {
        padding: 24px;
    }

    .gos-bot__form {
        grid-template-columns: minmax(0, 1fr);
        gap: 18px;
    }

    .gos-bot__form .gos-btn {
        justify-self: stretch;
        width: 100%;
    }

    .gos-actions .gos-btn {
        flex: 1 1 100%;
    }

    .gos-acc__head {
        gap: 14px;
        padding: 18px;
    }

    .gos-acc__title {
        font-size: 15px;
        line-height: 19px;
    }

    .gos-acc__body {
        padding: 0 20px 22px;
    }

    .gos-acc__body .gos-btn {
        width: 100%;
    }

    .gos-cat__controls {
        margin-top: 40px;
    }

    .gos-cat__search,
    .gos-cat__operator {
        flex: 1 1 100%;
    }

    /* На телефоне в макете нет шапки таблицы и колонки оператора — оператор показываем в деталях */
    .gos-cat__thead,
    .gos-cat__head .gos-cat__op {
        display: none;
    }

    .gos-cat__head {
        gap: 10px;
    }

    .gos-cat__n {
        flex-basis: 40px;
    }

    .gos-cat__chev {
        flex-basis: 24px;
    }

    .gos-cat__head .gos-cat__name {
        font-size: 14.6px;
    }

    .gos-cat__details {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .gos-cat__detail--wide {
        grid-column: auto;
    }

    .gos-cat__detail--operator {
        display: block;
    }

    .gos-cta {
        gap: 28px;
        padding: 28px;
    }

    .gos-cta__title {
        font-size: 22.6px;
        line-height: 27.6px;
    }

    .gos-page .questions_wrapper .question_item {
        display: flex;
        padding: 20px;
    }

    .gos-page .questions_wrapper .question_item span:first-child {
        font-size: 15.2px;
        line-height: 21.6px;
    }

    .gos-page .questions_wrapper .question_item .question_descr {
        font-size: 14.5px;
        line-height: 22px;
    }

    .gos-page .questions .bottom_wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 20px;
    }

    .gos-page .questions .bottom_wrapper .bottom_text {
        font-size: 15.5px;
        line-height: 21px;
    }

    .gos-page .questions .bottom_wrapper .theme-btn {
        height: 56px;
    }
}

/* Единый фильтр полной таблицы */
.gos-page .gos-catalog {
    margin-top: 32px;
}

.gos-filter__extra {
    grid-column: 1 / -1;
}

.gos-filter__extra summary,
.gos-multi summary {
    cursor: pointer;
    color: var(--gos-dark);
}

.gos-filter__extra-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 18px;
}

.gos-multi {
    position: relative;
    min-width: 0;
}

.gos-multi summary {
    position: relative;
    list-style: none;
    padding: 14px 40px 14px 18px;
    border: 1px solid var(--gos-border);
    border-radius: 7px;
    background: #fff;
}

.gos-multi summary span {
    display: block;
}

.gos-multi summary span:first-child {
    font-size: 13px;
    font-weight: 700;
}

.gos-multi__panel {
    position: absolute;
    z-index: 4;
    width: 100%;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--gos-border);
    border-radius: 7px;
    box-shadow: 0 8px 24px rgba(19, 37, 97, .12);
}

.gos-multi__panel label {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 14px;
}

.gos-multi__panel input {
    appearance: auto;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    accent-color: var(--main-color);
}

.gos-page .gos-multi__panel .gos-btn {
    width: 100%;
}

@media (max-width: 567px) {
    .gos-filter__extra-fields {
        grid-template-columns: minmax(0, 1fr);
    }
}

.gos-multi summary::-webkit-details-marker {
    display: none;
}

.gos-multi summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 18px;
    width: 7px;
    height: 7px;
    border-right: 1px solid var(--main-color);
    border-bottom: 1px solid var(--main-color);
    transform: translateY(-70%) rotate(45deg);
}

.gos-multi[open] summary::after {
    transform: translateY(-20%) rotate(225deg);
}

/* Фильтр и результат составляют одну карточку */
.gos-page .gos-bot__wrap {
    padding: 28px 28px 20px;
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    box-shadow: none;
}

.gos-bot__form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gos-multi summary {
    padding: 10px 40px 10px 16px;
    min-height: 68px;
}

.gos-multi summary span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 4px;
    color: var(--text-color);
    font-size: 14px;
}

.gos-multi[open] summary {
    border-color: var(--main-color);
}

.gos-multi__panel {
    top: calc(100% + 6px);
    max-height: 320px;
    overflow-y: auto;
}

.gos-multi__panel label {
    cursor: pointer;
    padding: 8px;
    margin: 0;
    border-radius: 5px;
}

.gos-multi__panel label:hover {
    background: #F3F7FA;
}

.gos-filter__extra summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 600;
}

.gos-filter__extra summary::-webkit-details-marker {
    display: none;
}

.gos-filter__chevron {
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.gos-filter__extra[open] .gos-filter__chevron {
    transform: translateY(2px) rotate(225deg);
}

.gos-filter__search {
    padding-top: 18px;
    border-top: 1px solid var(--gos-border);
    display: flex;
    flex-direction: column;
    gap: 9px;
    grid-column: 1 / -1;
    margin: 0;
}

.gos-filter__search .gos-cat__search {
    flex: none;
    height: 48px;
    width: 100%;
    min-width: 0;
}

.gos-page .gos-filter__hint {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 14px;
    color: var(--text-color);
}

.gos-bot__actions {
    align-items: center;
    justify-content: space-between;
    padding-top: 4px;
}

.gos-filter__count {
    font-size: 15px;
    font-weight: 700;
    color: var(--gos-dark);
}

.gos-page .gos-bot__actions .gos-btn {
    width: auto;
    height: auto;
    padding: 6px 0;
    border: none;
    background: transparent;
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gos-page .gos-bot__actions .gos-btn:hover {
    color: var(--gos-dark);
}

.gos-filter__table .gos-cat {
    margin-top: 0;
}

.gos-filter__table {
    padding: 0 28px 28px;
    border: 1px solid var(--gos-border);
    border-top: 0;
    border-radius: 0 0 16px 16px;
    background: #fff;
    scroll-margin-top: 110px;
}

@media (max-width: 567px) {
    .gos-bot__form {
        grid-template-columns: minmax(0, 1fr);
    }

    .gos-page .gos-bot__wrap {
        padding: 20px 18px 16px;
    }

    .gos-filter__table {
        padding: 0 18px 18px;
    }

    .gos-bot__actions {
        gap: 8px;
    }
}

.gos-bot .gos-head__title {
    max-width: none;
    text-wrap: wrap;
}
