/*
 * BANK-NEVA: общие стили информационных страниц.
 * Подключать ПОСЛЕ /css/style.css.
 * Для обновлённых страниц: О проекте, Контакты, Политика,
 * Лицензии МФО, Методика рейтинга.
 * Заменяет o-proekte.css, rating.css, privacy-policy.css,
 * licenzii-mfo.css и четыре блока <style> из присланного TXT.
 * Базовые стили сайта, шапки, подвала и авторов остаются в style.css.
 * Атрибуты style с шириной полос рейтинга сохраняются в HTML.
 */

/* ОБЩИЕ БЛОКИ: заголовки, карточки, заметки и адаптив */

.about-hero {
    padding-bottom: 28px;
}

.about-section {
    padding-top: 28px;
}

.about-box {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

.about-box h2 {
    margin-top: 32px;
    margin-bottom: 12px;
    font-size: 24px;
    line-height: 1.25;
    color: #1f2933;
}

.about-box h2.section-title {
    margin-top: 0;
}

.about-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.3;
    color: #1f2933;
}

.about-box p {
    margin: 0 0 14px;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.7;
}

.about-principles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 30px;
}

.about-principle {
    display: flex;
    gap: 12px;
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.about-principle p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
}

.about-note {
    margin: 22px 0;
    padding: 16px 18px;
    border-radius: 18px;
    background: #f8fafc;
    border-left: 4px solid #12b886;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.65;
}

.about-note strong {
    color: #111827;
}

.about-check-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 32px;
}

.about-check-card {
    padding: 18px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.about-check-card span {
    display: inline-flex;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 800;
    color: #12b886;
}

.about-check-card p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.55;
}

.about-authors-section {
    margin-top: 36px;
    padding-top: 26px;
    border-top: 1px solid #e5e7eb;
}

.about-authors-intro {
    max-width: 920px;
    margin-bottom: 22px;
}

.about-authors-second {
    margin-top: 18px;
}

@media (max-width: 992px) {
    .about-principles {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 768px) {
    .about-hero {
        padding-bottom: 22px;
    }

    .about-section {
        padding-top: 22px;
    }

    .about-box h2 {
        margin-top: 26px;
        font-size: 21px;
    }

    .about-box h3 {
        font-size: 18px;
    }

    .about-box p,
    .about-note {
        font-size: 14px;
    }

    .about-principle {
        padding: 16px;
    }

    .about-check-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .about-principle {
        flex-direction: column;
    }

    .about-check-card {
        border-radius: 16px;
    }

    .about-box h2 {
        font-size: 20px;
    }
}

/* ОГЛАВЛЕНИЕ, РАСЧЁТ И ШКАЛА РЕЙТИНГА */

.rating-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 34px;
    padding: 16px;
    border: 1px solid #e3e9ed;
    border-radius: 16px;
    background: #f8faf9;
}

.rating-toc a {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 13px;
    border: 1px solid #dce7e3;
    border-radius: 999px;
    background: #fff;
    color: #147c73;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.rating-toc a:hover {
    border-color: #a9d9ce;
    background: #f0faf7;
    color: #087d69;
}

.rating-box section {
    scroll-margin-top: 24px;
}

.rating-method {
    margin: 24px 0 26px;
    padding: 22px;
    border: 1px solid #e3e9ed;
    border-radius: 18px;
    background: #f8faf9;
}

.rating-method-item + .rating-method-item {
    margin-top: 18px;
}

.rating-method-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    color: #263648;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.rating-method-value {
    flex: 0 0 auto;
    color: #087d69;
    font-weight: 700;
}

.rating-method-line {
    width: 100%;
    height: 7px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: #dfe9e6;
}

.rating-method-line span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #12a889;
}

.rating-scale {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.rating-scale-item {
    display: grid;
    grid-template-columns: 105px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 18px 20px;
    border: 1px solid #e3e9ed;
    border-radius: 16px;
    background: #fff;
}

.rating-scale-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #e7f6f1;
    color: #087d69;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.rating-scale-item h3 {
    margin: 1px 0 5px;
    font-size: 16px;
    line-height: 1.35;
}

.rating-scale-item p {
    margin: 0;
}

@media (max-width: 600px) {
    .rating-toc {
        gap: 7px;
        padding: 13px;
        margin-bottom: 28px;
    }

    .rating-toc a {
        min-height: 36px;
        padding: 7px 11px;
        font-size: 12px;
    }

    .rating-method {
        padding: 18px;
    }

    .rating-method-head {
        gap: 12px;
    }

    .rating-scale-item {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px;
    }

    .rating-scale-score {
        justify-self: start;
    }
}

/* РЕЕСТР МФО: поиск, таблица и вопросы */

.bn-licenses-page {
    min-width: 0;
}

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

.bn-licenses-page .bn-registry-search {
    margin: 22px 0 12px;
}

.bn-registry-search label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.bn-registry-search input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 46px;
    padding: 12px 14px;
    border: 1px solid #dce7e3;
    border-radius: 14px;
    background: #f8fafc;
    color: #1f2933;
    font: inherit;
    font-size: 16px;
}

.bn-licenses-page .bn-registry-search p {
    margin-top: 8px;
}

.bn-registry-scroll {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    margin: 20px 0 26px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #fff;
}

.bn-registry-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    font-size: 14px;
    line-height: 1.55;
    color: #374151;
}

.bn-registry-table caption {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #1f2933;
    background: #f8fafc;
}

.bn-registry-table th, .bn-registry-table td {
    padding: 14px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
    overflow-wrap: anywhere;
}

.bn-registry-table th {
    background: #f0faf7;
    color: #147c73;
    font-weight: 600;
}

.bn-registry-table th:nth-child(1) {
    width: 10%;
}

.bn-registry-table th:nth-child(2) {
    width: 15%;
}

.bn-registry-table th:nth-child(3) {
    width: 17%;
}

.bn-registry-table th:nth-child(4) {
    width: 18%;
}

.bn-registry-table th:nth-child(5) {
    width: 22%;
}

.bn-registry-table th:nth-child(6) {
    width: 18%;
}

.bn-registry-table tr:nth-child(even) td {
    background: #f8fafc;
}

.bn-registry-table tbody tr:last-child td {
    border-bottom: 0;
}

.bn-licenses-page .license-brand {
    font-weight: 600;
    color: #1f2933;
}

.bn-licenses-page a {
    overflow-wrap: anywhere;
}

.bn-licenses-page .bn-registry-list {
    padding-left: 22px;
    margin: 18px 0;
    list-style: disc;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.7;
}

.bn-registry-list li {
    margin-bottom: 10px;
}

.bn-registry-list li::marker {
    color: #12b886;
}

.bn-registry-faq {
    display: grid;
    gap: 12px;
    margin: 22px 0;
}

.bn-registry-faq details {
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #f8fafc;
}

.bn-registry-faq summary {
    padding: 18px;
    cursor: pointer;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2933;
}

.bn-registry-faq summary::marker {
    color: #147c73;
}

.bn-licenses-page .bn-registry-faq details p {
    padding: 0 18px 18px;
    margin: 0;
}

.bn-licenses-page :is(input, summary, a, .bn-registry-scroll):focus-visible {
    outline: 2px solid #147c73;
    outline-offset: 3px;
}

@media (max-width: 768px) {
    .bn-licenses-page .bn-registry-list {
        font-size: 14px;
    }

    .bn-registry-faq summary {
        padding: 16px;
    }
}

/* КОМАНДА И ЭКСПЕРТЫ: единые правила для двух страниц */

.bn-about-page .authors-grid,
.bn-rating-page .authors-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.bn-about-page .author-card,
.bn-rating-page .author-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f8fafc;
    box-shadow: none;
    align-items: flex-start;
}

.bn-about-page .author-info,
.bn-rating-page .author-info {
    min-width: 0;
}

.bn-about-page .author-bio:last-child,
.bn-rating-page .author-bio:last-child {
    margin-bottom: 0;
}

.bn-about-page .about-authors-intro,
.bn-rating-page .about-authors-intro {
    max-width: none;
}

@media (max-width: 992px) {
    .bn-about-page .authors-grid,
    .bn-rating-page .authors-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .bn-about-page .author-card,
    .bn-rating-page .author-card {
        padding: 16px;
        border-radius: 16px;
    }
}

/* ПОЛИТИКА КОНФИДЕНЦИАЛЬНОСТИ: списки */

.bn-privacy-page section > ul {
    margin: 0 0 18px;
    padding-left: 22px;
    list-style: disc;
    color: #374151;
    font-size: 15.5px;
    line-height: 1.7;
}

.bn-privacy-page section > ul > li {
    margin-bottom: 8px;
    overflow-wrap: anywhere;
}

.bn-privacy-page section > ul > li:last-child {
    margin-bottom: 0;
}

.bn-privacy-page section > ul > li::marker {
    color: #12b886;
}

.bn-privacy-page .rating-toc a {
    max-width: 100%;
}

.bn-privacy-page section a {
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .bn-privacy-page section > ul {
        font-size: 14px;
        padding-left: 20px;
    }
}

/* ДОПОЛНИТЕЛЬНЫЕ ПРАВИЛА СТРАНИЦЫ РЕЙТИНГА */

.bn-rating-page {
    min-width: 0;
}

.bn-rating-page .rating-method-head > span:first-child {
    min-width: 0;
}

.bn-rating-page .rating-toc a {
    max-width: 100%;
}

.bn-rating-page a {
    overflow-wrap: anywhere;
}

.bn-rating-page a:focus-visible {
    outline: 2px solid #147c73;
    outline-offset: 3px;
}

