/* /general_information/ntrp_calculate — v2 shell + опросник NTRP */

body.v2-page--ntrp-calculate .ntrpCalculateV2-hero {
    max-width: var(--mv2-max-width, 960px);
    margin: 0 auto;
    padding: 20px 16px 8px;
    background: transparent;
}

body.v2-page #wrapper .content .hero-content.ntrpCalculateV2-hero .main-title {
    margin: 0;
    padding: 0;
    font-family: var(--mv2-font, 'Inter', sans-serif);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.03em;
    text-transform: none;
    color: #1f1f1f !important;
    transform: none;
    background: none;
}

body.v2-page--ntrp-calculate .mainV2__shell > .content-box.ntrpCalculateV2-box {
    max-width: var(--mv2-max-width, 960px);
    margin-left: auto;
    margin-right: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(31, 31, 31, 0.06);
    padding: 20px 16px 28px;
    position: relative;
    z-index: 2;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-intro {
    margin-bottom: 20px;
    font-family: var(--mv2-font, 'Inter', sans-serif);
    font-size: 15px;
    line-height: 1.55;
    color: var(--mv2-text, #1f1f1f);
    text-align: center;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-intro p {
    margin: 0 0 10px;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-hint {
    margin: 0 !important;
    font-size: 14px;
    line-height: 1.4;
    color: var(--mv2-secondary, #6f6f6f);
}

body.v2-page--ntrp-calculate .questionnaire__progress {
    width: 100%;
}

body.v2-page--ntrp-calculate .questionnaire__progress-label {
    font-family: var(--mv2-font, 'Inter', sans-serif);
    color: var(--mv2-secondary, #6f6f6f);
}

body.v2-page--ntrp-calculate .questionnaire__item:not(.questionnaire__item_active) {
    display: none !important;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-meta {
    margin: 20px 0 0;
    font-family: var(--mv2-font, 'Inter', sans-serif);
    font-size: 13px;
    line-height: 1.4;
    color: var(--mv2-secondary, #6f6f6f);
    text-align: center;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-meta a {
    color: var(--mv2-accent-dark, #6b8e00);
    font-weight: 600;
    text-decoration: none;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-meta a:hover {
    text-decoration: underline;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-intro p {
    margin: 0 0 14px;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-intro ul {
    margin: 0 0 16px;
    padding-left: 1.1em;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-intro a {
    color: var(--mv2-accent-dark, #6b8e00);
    font-weight: 600;
}

body.v2-page--ntrp-calculate .ntrpCalculateV2-test {
    margin-top: 0;
    display: flex;
    justify-content: center;
}

body.v2-page--ntrp-calculate .questionnaire {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 420px;
}

body.v2-page--ntrp-calculate .questionnaire__items,
body.v2-page--ntrp-calculate .questionnaire__result {
    width: 100%;
    max-width: 420px;
}

body.v2-page--ntrp-calculate .questionnaire__item_active {
    display: block !important;
}

body.v2-page--ntrp-calculate .questionnaire__variants .br-theme-bars-square .br-widget {
    height: auto !important;
    white-space: normal !important;
}

body.v2-page--ntrp-calculate .questionnaire__variants .br-theme-bars-square .br-widget a {
    display: block !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.3 !important;
    box-sizing: border-box;
}

body.v2-page--ntrp-calculate .questionnaire__title {
    font-family: var(--mv2-font, 'Inter', sans-serif);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--mv2-text, #1f1f1f);
    text-align: left;
}

body.v2-page--ntrp-calculate .questionnaire__resultValue {
    font-family: var(--mv2-font, 'Inter', sans-serif) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    text-transform: none !important;
    color: var(--mv2-text, #1f1f1f);
}

/* Варианты — белые кнопки; выбранный (.ntrp-picked) — заметная салатовая рамка + лёгкий фон */
body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a {
    color: var(--mv2-text, #1f1f1f) !important;
    background: #fff !important;
    border: 1px solid rgba(31, 31, 31, 0.12) !important;
    border-radius: 10px;
    margin: 4px 0;
    padding: 12px 14px;
    font-family: var(--mv2-font, 'Inter', sans-serif) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    text-transform: none;
    text-align: left;
    box-shadow: none !important;
    transition: border-color .15s, background .15s, box-shadow .15s;
}

body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a.ntrp-picked {
    background: var(--mv2-accent-soft, #f5fbea) !important;
    border: 2px solid var(--mv2-accent, #b7e000) !important;
    color: var(--mv2-text, #1f1f1f) !important;
    font-weight: 700 !important;
    box-shadow: 0 0 0 1px rgba(183, 224, 0, 0.2);
}

body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a:hover {
    background: #fff !important;
    border-color: rgba(183, 224, 0, 0.45) !important;
    color: var(--mv2-text, #1f1f1f) !important;
}

body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a.ntrp-picked:hover {
    background: var(--mv2-accent-soft, #f5fbea) !important;
    border-color: var(--mv2-accent, #b7e000) !important;
}

/* bar-rating помечает «лесенкой» — без ntrp-picked оставляем нейтральный вид */
body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a.br-selected:not(.ntrp-picked),
body.v2-page--ntrp-calculate .questionnaire__variants .br-widget a.br-active:not(.ntrp-picked) {
    background: #fff !important;
    border: 1px solid rgba(31, 31, 31, 0.12) !important;
    color: var(--mv2-text, #1f1f1f) !important;
    font-weight: 500 !important;
    box-shadow: none !important;
}

body.v2-page--ntrp-calculate .questionnaire__buttons {
    gap: 10px;
    margin-top: 20px;
    width: 100%;
    clear: both;
}

/* Переход автоматический после выбора — кнопка «Далее» не нужна */
body.v2-page--ntrp-calculate #questionnaire__button_next {
    display: none !important;
}

body.v2-page--ntrp-calculate .questionnaire__button {
    flex: 1 1 0;
    min-width: 0;
    border: 1px solid rgba(31, 31, 31, 0.12);
    border-radius: 10px;
    background: #fff;
    color: var(--mv2-text, #1f1f1f);
    font-family: var(--mv2-font, 'Inter', sans-serif) !important;
    font-size: 14px;
    font-weight: 600;
    text-transform: none;
    transform: none;
    -webkit-transform: none;
    padding: 12px 14px;
}

body.v2-page--ntrp-calculate .questionnaire__button:not(.questionnaire__button_disable):hover {
    border-color: rgba(183, 224, 0, 0.55);
    background: #fff;
    padding: 12px 14px;
}

body.v2-page--ntrp-calculate .questionnaire__button_disable {
    opacity: 0.45;
}

/* Гость: legacy #footer absolute + салатовый фон наезжает на контент */
body.v2-page--guest.v2-page--ntrp-calculate #wrapper .content,
body.v2-page--guest.v2-page--ntrp-calculate #wrapper .mainV2__shell,
body.v2-page--guest.v2-page--ntrp-calculate #wrapper .v2-page-shell {
    padding-bottom: 0 !important;
}

body.v2-page--guest.v2-page--ntrp-calculate .bottom-bg {
    display: none !important;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    height: auto !important;
    min-height: 0 !important;
    background: var(--mv2-text, #1f1f1f) !important;
    z-index: 1;
    margin-top: 32px;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer_socName,
body.v2-page--guest.v2-page--ntrp-calculate #footer .write_title,
body.v2-page--guest.v2-page--ntrp-calculate #footer .write_about {
    display: none !important;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content {
    border-top: 0.5px solid rgba(255, 255, 255, 0.12);
    padding: 24px 20px 20px;
    margin: 0 auto;
    max-width: var(--mv2-max-width, 960px);
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .soc {
    float: none;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 12px;
    width: 100%;
    margin: 0 0 16px;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .soc a {
    float: none;
    padding: 0;
    margin: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .soc a img {
    width: 20px;
    height: auto;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .footer-menu {
    position: relative;
    left: auto;
    margin-left: 0;
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 14px;
    height: auto !important;
    padding: 0 0 12px;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .footer-menu li {
    float: none;
    display: block;
    padding: 0;
    width: auto !important;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .footer-menu li a {
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
    line-height: 1.35;
}

body.v2-page--guest.v2-page--ntrp-calculate #footer .footer-content .copyright {
    color: rgba(255, 255, 255, 0.45);
    font-size: 11px;
    text-align: center;
    margin-top: 0;
}

body.v2-page.has-mainV2-bottom-nav.v2-page--ntrp-calculate .mainV2__shell > .content-box:last-of-type {
    margin-bottom: 88px;
}

@media (max-width: 600px) {
    body.v2-page #wrapper .content .hero-content.ntrpCalculateV2-hero .main-title {
        font-size: 20px;
    }

    body.v2-page.has-mainV2-bottom-nav.v2-page--ntrp-calculate .mainV2__shell > .content-box:last-of-type {
        margin-bottom: 72px;
    }
}
