/* Тема «Займ на Карту»: светлая сиреневая, белые скруглённые карточки, крупная типографика.
   Подключается после style.css и переопределяет его. */

:root {
    --ink: #1e1442;
    --lilac: #f6f1fb;
    --lilac-2: #efe6f8;
    --pink: #ee82bf;
    --pink-strong: #e8559f;
    --violet: #2e2160;
    --radius: 22px;
    --ui: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body { background: var(--lilac); color: var(--ink); font-family: var(--ui); }
h1, h2, h3, .h1, .h2, .h3, .card .card-title, .logo-text, .button {
    font-family: var(--ui); letter-spacing: -.01em;
}
.h1, h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.1; color: var(--ink); }
.h2, h2 { font-weight: 800; color: var(--ink); }

/* Шапка: плавающая белая плашка */
.header-wrap { background: transparent; border: 0; padding: 14px 0 0; position: sticky; top: 0; z-index: 50; }
.header {
    background: #fff; border-radius: 999px; padding: 8px 14px 8px 18px;
    box-shadow: 0 8px 30px rgba(46, 33, 96, .10);
}
.header .logo span.logo-text { font-family: var(--ui); font-size: 1.35rem; font-weight: 800; line-height: 44px; color: var(--ink); }
.header .logo img { height: 44px; }
.header .menu li { margin-left: 6px; }
.header .menu li a { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.header .menu li a:hover { background: var(--lilac); color: var(--pink-strong); }
.header .menu li .active { background: var(--lilac-2); color: var(--violet); }
@media (max-width: 992px) { .header { border-radius: 24px; } .header .menu.active { background: #fff; border-radius: 0 0 24px 24px; } }

/* Кнопки */
.button { background: var(--pink); color: #fff; border-radius: 999px; font-weight: 700; padding: .85rem 1.6rem; box-shadow: none; }
.button:hover { background: var(--pink-strong); transform: none; }
.button-info { border-radius: 999px; }

/* Крошки */
.breadcrumbs { font-family: var(--ui); }

/* Hero главной */
.hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 28px; align-items: stretch; padding: 18px 0 8px; }
.hero-main { padding: 18px 0; }
.hero-eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--pink-strong); background: #fff; padding: 6px 12px; border-radius: 999px; margin-bottom: 16px; }
.hero-main p { font-size: 1.1rem; color: #4a3f73; max-width: 560px; margin: 14px 0 20px; }
.hero-note { font-size: .85rem; color: #7a6fa3; margin-top: 10px; }
.hero-stats { background: var(--violet); color: #fff; border-radius: 28px; padding: 26px 28px; box-shadow: 0 20px 50px rgba(46,33,96,.25); }
.hero-stats h2 { color: #fff; font-size: 1.1rem; margin: 0 0 14px; }
.hero-stats dl { display: grid; gap: 0; }
.hero-stats .row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.hero-stats .row:last-of-type { border: 0; }
.hero-stats dt { color: #cfc6ee; font-size: .95rem; }
.hero-stats dd { font-size: 1.5rem; font-weight: 800; margin: 0; }
.hero-stats .src { font-size: .78rem; color: #a99fd6; margin-top: 12px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }

/* Поиск по реестру в стиле референса */
.registry-search label { color: var(--ink); }
.registry-search-row input { background: #fff; border: 2px solid #fff; box-shadow: 0 6px 20px rgba(46,33,96,.08); padding: 1rem 1.3rem; }
.registry-search-row input:focus { border-color: var(--pink); }

/* Белые карточки вместо плотных блоков */
.content, .card, .filter-loan, .relink, .lead-wrap .lead {
    border-radius: var(--radius);
}
.content { box-shadow: 0 6px 24px rgba(46,33,96,.06); padding: 1.8rem; }
.card { border: 1px solid #ece3f6; box-shadow: 0 6px 24px rgba(46,33,96,.05); padding: 1.3rem; }
.card:hover { box-shadow: 0 14px 34px rgba(46,33,96,.12); }
.card .card-label { background: #e7f6ee; color: #137a4a; border-radius: 999px; }
.card .card-content span { color: var(--ink); }

/* Калькулятор: светлый, как форма в референсе */
.filter-loan { background: #fff; border: 1px solid #ece3f6; box-shadow: 0 10px 34px rgba(46,33,96,.08); padding: 1.5rem; }
.filter-loan .h2 { color: var(--ink); text-align: left; font-size: 1.3rem; }
.filter-loan label, .filter-loan .interest-free-loan { color: #4a3f73; }
.filter-loan input[type="number"] { background: var(--lilac); border-radius: 14px; }
.filter-loan .filter-button { background: #fff; border-radius: 12px; box-shadow: 0 1px 4px rgba(46,33,96,.15); color: var(--violet); }
.filter-loan .filter-button:hover { background: var(--pink); color: #fff; }
.filter-loan .result-wrap { background: var(--lilac); border-radius: 18px; padding: 8px; }
.filter-loan .result { border: 0; padding: 10px 14px; }
.filter-loan .result-value { font-weight: 800; }

/* Таблицы и подборки */
.sort-module .dropdown-content span.active { background: var(--pink); }
.relink-wrap .relink, .relink { background: #fff; box-shadow: 0 6px 24px rgba(46,33,96,.06); }

/* Подвал */
.footer { background: var(--violet); border-radius: 36px 36px 0 0; margin-top: 3rem; padding-top: 2.5rem; }
.footer-cols strong { color: #fff; }

/* Кнопки в карточках: без подчёркивания, в одну строку */
.card .buttons-wrap { align-items: stretch; gap: 8px; }
.card .buttons-wrap .button { text-decoration: none; white-space: nowrap; padding: .8rem 1rem; text-align: center; flex: 1; font-size: .95rem; }
.card .button-info { flex: 0 0 46px; width: 46px; height: auto; min-height: 46px; background-color: var(--lilac); background-position: center; background-repeat: no-repeat; }
a.button, a.button:hover { text-decoration: none; color: #fff; }

/* Поля как у референса: контейнер до 1320px, отступы по 20px */
.container { max-width: 1320px; padding: 0 20px; }
@media (max-width: 600px) { .container { padding: 0 14px; } }

/* Нижние блоки главной (как у референса) */
.home-block { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: 0 6px 24px rgba(46,33,96,.06); }
.home-block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.home-block-head a, .home-block a { color: var(--violet); }
.home-block-head a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.home-block-head a:hover { color: var(--pink-strong); }
.home-block h2 { margin: 0; }
.home-block-sub { color: #6b6090; margin: .3rem 0 1rem; font-size: .95rem; }
.news-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 2.5rem; }
.news-list li { display: flex; gap: 1rem; padding: .8rem 0; border-bottom: 1px solid var(--border-color); }
.news-list time { color: #8a7fb0; font-size: .85rem; flex: 0 0 5.6rem; padding-top: .15rem; }
.news-list a { text-decoration: none; font-weight: 600; color: var(--ink); }
.news-list a:hover { color: var(--pink-strong); }
.pairs-table { display: grid; }
.pairs-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid var(--border-color); text-decoration: none; color: var(--ink); }
a.pairs-row:hover { background: var(--lilac); }
.pairs-head { color: #8a7fb0; font-size: .85rem; font-weight: 600; }
.next-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 1rem; }
.next-grid a { background: var(--lilac); border-radius: 18px; padding: 1.1rem 1.2rem; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: .4rem; }
.next-grid a:hover { background: var(--lilac-2); }
.next-grid span { color: #6b6090; font-size: .9rem; }
.nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.6rem 2rem; margin-top: 1rem; }
.nav-grid h3 { font-size: 1rem; margin: 0 0 .5rem; color: var(--violet); }
.nav-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.nav-grid a { text-decoration: none; font-size: .95rem; }
.nav-grid a:hover { color: var(--pink-strong); }
@media (max-width: 900px) { .news-list { grid-template-columns: 1fr; } .next-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .next-grid { grid-template-columns: 1fr; } .pairs-row { grid-template-columns: 1fr; gap: .1rem; } .home-block { padding: 1.2rem; } }

/* Навигация в футере */
.footer-nav { max-width: 1280px; margin: 0 auto 1.6rem; padding: 0 20px; text-align: left; }
.footer-nav-title { color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 1.1rem; }
.footer-nav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1.6rem 2rem; }
.footer-nav-grid > div { display: flex; flex-direction: column; gap: .35rem; }
.footer-nav-grid strong { color: #fff; margin-bottom: .2rem; }
.footer-nav-grid a { color: var(--footer-color); text-decoration: none; opacity: .85; font-size: .92rem; }
.footer-nav-grid a:hover { opacity: 1; color: var(--accent-color); text-decoration: none; }

/* Список статей по темам */
.cat-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.4rem; }
.cat-nav a { background: var(--lilac); border-radius: 999px; padding: 7px 14px; text-decoration: none; color: var(--violet); font-weight: 600; font-size: .9rem; }
.cat-nav a span { color: #8a7fb0; font-weight: 400; margin-left: 4px; }
.cat-title { margin: 2rem 0 .4rem; padding-top: .4rem; scroll-margin-top: 90px; }
.articles-list h3 { margin: 0 0 .2rem; font-size: 1.1rem; }
.articles-list h3 a { color: var(--ink); text-decoration: none; }
.articles-list h3 a:hover { color: var(--pink-strong); }
.footer-nav { width: 100%; box-sizing: border-box; }

/* Реквизиты и таблицы «ключ — значение»: чистый вид вместо тёмных ячеек старой темы */
.content table.kv { width: 100%; border-collapse: collapse; border: 0; background: transparent; box-shadow: none; margin: .4rem 0 1.2rem; table-layout: auto; }
.content table.kv tr, .content table.kv tr:nth-child(even), .content table.kv tr:nth-child(odd) { background: transparent; }
.content table.kv th, .content table.kv td { border: 0; border-bottom: 1px solid var(--border-color); padding: .75rem 1rem .75rem 0; vertical-align: top; text-align: left; background: transparent; }
.content table.kv th { width: 30%; color: #7a6fa3; font-weight: 600; font-size: .92rem; white-space: normal; }
.content table.kv td { color: var(--ink); word-break: break-word; }
.content table.kv tr:last-child th, .content table.kv tr:last-child td { border-bottom: 0; }
.content table.kv td a { color: var(--violet); }
@media (max-width: 600px) {
    .content table.kv:not(.compare), .content table.kv:not(.compare) tbody, .content table.kv:not(.compare) tr, .content table.kv:not(.compare) th, .content table.kv:not(.compare) td { display: block; width: 100%; }
    .content table.kv:not(.compare) tr { padding: .6rem 0; border-bottom: 1px solid var(--border-color); }
    .content table.kv:not(.compare) th, .content table.kv:not(.compare) td { border: 0; padding: 0; }
    .content table.kv:not(.compare) th { margin-bottom: .15rem; }
}

/* ===== Визуальная правка (проход по сайту) ===== */

/* Шапка не просвечивает контент при прокрутке */
.header-wrap { background: var(--lilac); padding-bottom: 8px; margin-bottom: 8px; }

/* Сетка карточек: ровные промежутки, 4 → 3 → 2 → 1 колонка */
.listing-page .cards-wrap { gap: 16px; justify-content: flex-start; }
.listing-page .cards-wrap .card { flex: 0 0 calc(25% - 12px); min-width: 0; }
@media (max-width: 1100px) { .listing-page .cards-wrap .card { flex: 0 0 calc(33.333% - 11px); } }
@media (max-width: 800px)  { .listing-page .cards-wrap .card { flex: 0 0 calc(50% - 8px); } }
@media (max-width: 560px) {
    .listing-page .cards-wrap { gap: 12px; }
    .listing-page .cards-wrap .card { flex: 0 0 100%; text-align: left; padding: 1rem 1.1rem; }
    .cards-wrap .card { text-align: left; }
    .card .card-header { justify-content: flex-start; flex-direction: row; gap: 12px; margin-bottom: .4rem; }
    .card .card-title { font-size: 1.1rem; }
    .card .card-content { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; font-size: .95rem; }
    .card .card-content span { float: none; }
    .card .space-for-label { display: none; }
    .card .card-label { display: inline-block; margin-bottom: .5rem; font-size: .8rem; }
    .card .buttons-wrap { flex-direction: row; margin-top: .6rem; }
    .card .buttons-wrap .button { width: auto; flex: 1; min-height: 46px; display: flex; align-items: center; justify-content: center; }
    .card .buttons-wrap .button-info { width: 46px; flex: 0 0 46px; min-height: 46px; }
}

/* Сортировка: не ломается на узких экранах */
.sort-module { flex-wrap: wrap; row-gap: 2px; }
.sort-module .dropbtn { white-space: nowrap; color: var(--violet); }

/* Ползунки калькулятора: видимая дорожка */
.filter-loan input[type="range"] { background: linear-gradient(#e6dcf3, #e6dcf3) center / calc(100% - 10px) 6px no-repeat; border-radius: 6px; }
.filter-loan input[type="range"]::-webkit-slider-runnable-track { background: transparent; }

/* Cookie: компактная плашка */
@media (max-width: 768px) {
    .cookie-consent { bottom: 8px; left: 8px; right: 8px; border-radius: 16px; }
    .cookie-consent__content { flex-direction: row; align-items: center; gap: 10px; padding: 10px 12px; }
    .cookie-consent__text { font-size: 12px; line-height: 1.3; }
    .cookie-consent__button { padding: .5rem .9rem; font-size: .85rem; }
}

/* Главная: Hero на узких экранах */
@media (max-width: 600px) {
    .hero { gap: 14px; padding-top: 6px; }
    .hero-main { padding: 6px 0; }
    .hero-eyebrow { font-size: .7rem; }
    .hero-stats { padding: 20px; border-radius: 22px; }
    .hero-stats dd { font-size: 1.25rem; }
    .registry-search-row { flex-direction: row; }
    .registry-search-row .button { padding: .8rem 1.2rem; }
}

/* Ползунок: своя дорожка и круглый бегунок, в потоке под полем ввода */
.filter-loan .inputs-wrap { padding-bottom: 0; }
.filter-loan input[type="range"] {
    position: static; display: block; width: 100%; margin: 12px 0 4px; padding: 0; border: 0; border-radius: 0;
    height: 24px; background: transparent; overflow: visible; cursor: pointer;
    -webkit-appearance: none; appearance: none;
}
.filter-loan input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: #e6dcf3; }
.filter-loan input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #e6dcf3; }
.filter-loan input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none; width: 22px; height: 22px; aspect-ratio: auto; margin-top: -8px;
    border-radius: 50%; background: var(--pink-strong); border: 3px solid #fff; border-image: none;
    box-shadow: 0 1px 6px rgba(46,33,96,.35);
}
.filter-loan input[type="range"]::-moz-range-thumb {
    width: 16px; height: 16px; border-radius: 50%; background: var(--pink-strong); border: 3px solid #fff; border-image: none;
    box-shadow: 0 1px 6px rgba(46,33,96,.35);
}
.filter-loan .filter-item { margin-bottom: 8px; }
@media (max-width: 560px) {
    .cards-wrap .card .card-header { display: flex !important; flex-direction: row !important; align-items: center; justify-content: flex-start !important; text-align: left; }
    .cards-wrap .card .card-title { text-align: left; }
    .cards-wrap .card .card-logo { margin: 0; }
}

/* Таблица сравнения: прокрутка вместо раскладки в столбик */
.content table.compare { display: block; overflow-x: auto; white-space: nowrap; }
.content table.compare th { width: auto; color: #7a6fa3; }
.content table.compare td a:not(.button) { text-decoration: none; font-weight: 600; }

/* Таблицы каталога и карточки МФО — в стиле новой темы */
.table-total-compare-wrap { background: #fff; border-radius: var(--radius); padding: 1.5rem 1.6rem; box-shadow: 0 6px 24px rgba(46,33,96,.06); }
.table-total-compare-wrap > .h2 { margin-top: 0; }
.table-total-compare table { width: 100%; border-collapse: separate; border-spacing: 0; border: 0; background: transparent; }
.table-total-compare table th {
    background: var(--lilac) !important; color: #5b4f86 !important; font-weight: 700; font-size: .85rem;
    text-align: left; padding: .8rem 1rem; border: 0; white-space: nowrap;
}
.table-total-compare table th:first-child { border-radius: 14px 0 0 14px; }
.table-total-compare table th:last-child { border-radius: 0 14px 14px 0; }
.table-total-compare table td { padding: .85rem 1rem; border: 0; border-bottom: 1px solid var(--border-color); background: transparent; color: var(--ink); }
.table-total-compare table tr:nth-child(even) td { background: transparent; }
.table-total-compare table tbody tr:hover td { background: #faf6fd; }
.table-total-compare table td a { color: var(--violet); font-weight: 600; text-decoration: none; }
.table-total-compare table td a:hover { color: var(--pink-strong); }
.table-total-compare table tr:last-child td { border-bottom: 0; }
/* Вертикальная таблица условий займа */
.vertical-table td:first-child { width: 36%; color: #7a6fa3; font-weight: 600; font-size: .95rem; }
.vertical-table td:last-child { font-weight: 600; }
.ad-marking { color: #8a7fb0; font-size: .78rem; margin-top: .9rem; }
.table-total-compare table tr, .table-total-compare table tbody tr:nth-child(even), .vertical-table tr { background: transparent !important; }

/* Статьи: комфортная длина строки */
.content.prose { max-width: 900px; margin-left: auto; margin-right: auto; font-size: 1.05rem; line-height: 1.65; }
.content.prose h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); margin-bottom: .6rem; }
.content.prose h2 { margin-top: 2rem; font-size: 1.4rem; }

/* Мобильное меню: выпадающая белая панель под шапкой */
.header { position: relative; }
@media (max-width: 992px) {
    .header .menu.active {
        position: absolute !important; top: calc(100% + 8px); left: 0; right: 0; z-index: 70;
        background: #fff !important; border-radius: 22px; box-shadow: 0 16px 40px rgba(46,33,96,.18);
        padding: 8px 12px; display: block !important; height: auto !important; align-items: stretch;
    }
    .header .menu.active ul { display: flex !important; flex-direction: column; width: 100%; }
    .header .menu.active li { margin: 0; }
    .header .menu.active li a { display: block; padding: 14px 16px; border-radius: 14px; text-align: left; font-size: 1.05rem; }
    .header .menu.active li a:hover, .header .menu.active li .active { background: var(--lilac); }
}

/* ===== Правки по скриншотам ===== */

/* Блоки перелинковки: один белый блок с заголовком внутри, сетка колонок вместо горизонтальной прокрутки */
.relink-wrap { background: #fff; border-radius: var(--radius); padding: 1.6rem 1.8rem; box-shadow: 0 6px 24px rgba(46,33,96,.06); }
.relink-wrap > .h2 { margin: 0 0 1rem; font-size: 1.4rem; }
.relink-wrap .relink, .relink { background: transparent; box-shadow: none; padding: 0; border-radius: 0; }
.relink .group-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1.4rem 2rem; overflow: visible; }
.relink .group { min-width: 0; }
.relink .group .h3 { font-size: 1rem; margin: 0 0 .6rem; color: var(--violet); }
.relink .group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.relink .group li a { color: var(--ink); font-size: .95rem; }
.relink-wrap > .relink > .group ul { display: block; column-width: 210px; column-gap: 2rem; }
.relink-wrap > .relink > .group li { margin-bottom: .35rem; break-inside: avoid; }

/* Статьи: во всю ширину блока, читаемая колонка слева */
.content.prose { max-width: none; margin: 0; font-size: 1.05rem; line-height: 1.65; padding: 2rem 2.2rem; }
.content.prose > * { max-width: 860px; }
.content.prose h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; margin: 0 0 .5rem; }
.content.prose h2 { font-size: 1.4rem; margin: 2.2rem 0 .8rem; }
.content.prose p, .content.prose ul, .content.prose ol { margin: 0 0 1rem; }
.content h2 { margin-bottom: .8rem; }
.content h2 + p, .content h2 + ul, .content h2 + ol { margin-top: 0; }
.content .lead-text { margin: 0 0 1rem; }
@media (max-width: 700px) { .content.prose { padding: 1.2rem; } }

/* FAQ: лёгкие раскрывающиеся блоки в цветах темы */
.faq-block { margin-top: 2.2rem; }
.faq-block > h2 { margin: 0 0 1rem; }
.accordion { border: 1px solid #ece3f6; border-radius: 16px; background: #fff; overflow: hidden; }
.accordion + .accordion { margin-top: 10px; }
.accordion summary { padding: 1rem 1.2rem; transition: background .15s; }
.accordion summary h3 { font-size: 1.02rem; font-weight: 700; color: var(--ink); }
.accordion summary:hover { background: var(--lilac); color: var(--ink); border-radius: 0; }
.accordion[open] summary { background: var(--lilac); }
.accordion summary .icon svg path, .accordion summary:hover .icon svg path { stroke: var(--violet); }
.accordion .accordion-body { padding: 1rem 1.2rem 1.2rem; border-top: 1px solid #ece3f6; color: #3f3566; }
.bank-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .bank-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bank-grid { grid-template-columns: 1fr; } }

/* Списки реестра */
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.months div { background: var(--lilac); border-radius: 16px; padding: .8rem 1rem; display: flex; flex-direction: column; }
.months strong { font-size: 1.4rem; color: var(--violet); }
.months span { color: #7a6fa3; font-size: .85rem; text-transform: capitalize; }
.list-table { white-space: normal !important; min-width: 640px; }
.list-table td, .list-table th { white-space: normal; }
.pager { margin: 1rem 0; }
.pager { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: #7a6fa3; }
.pager a { display: inline-block; padding: .5rem 1.1rem; border-radius: 999px; background: var(--lilac); text-decoration: none; color: var(--violet); font-weight: 600; }
.reg-links { margin: 1rem 0; }

/* ===== Главная в стиле референса: тёмная полоса сверху, блоки без карточек ===== */
html { overflow-x: clip; }
body:has(.home-page) { background: #fff; }
body:has(.home-page) .header-wrap { background: #fff; }
.home-page { --pink-link: #d4257f; }

.hero-band {
    margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); width: 100vw;
    background: #291d4c; padding: 44px 0 48px; margin-top: -8px; margin-bottom: 2.4rem;
}
.hero-band .hero-inner { max-width: 1320px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.hero-band .hero-main { padding: 0; }
.hero-band .hero-eyebrow { background: transparent; color: #f08fc4; padding: 0; text-transform: uppercase; letter-spacing: .05em; font-size: .78rem; margin-bottom: 14px; }
.hero-band h1 { color: #fff; font-size: clamp(2rem, 4vw, 2.7rem); }
.hero-band .hero-main p { color: #e4dcf7; max-width: 620px; }
.hero-band .registry-search label { color: #fff; font-size: .9rem; }
.hero-band .registry-search-row input { border-radius: 14px; box-shadow: none; border-color: #fff; }
.hero-band .registry-search-row .button { border-radius: 14px; }
.hero-band .hero-note { color: #b7abdc; }
.hero-band .hero-stats { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); box-shadow: none; border-radius: 22px; }
@media (max-width: 900px) { .hero-band .hero-inner { grid-template-columns: 1fr; gap: 24px; } .hero-band { padding: 28px 0 32px; } }

/* Блоки: просто заголовок и содержимое на белом фоне */
.home-page .home-block { background: transparent; box-shadow: none; padding: 0; border-radius: 0; margin-bottom: 3rem; }
.home-page .home-block-head a { color: var(--pink-link); }
.home-page .home-block h2 { font-size: 1.5rem; }
.home-page .home-block-sub { color: #6b6188; }

/* Новое в справочнике: лента с розовыми точками */
.home-page .news-list { display: block; position: relative; margin-left: 4px; }
.home-page .news-list::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 2px; background: #f6d3e6; }
.home-page .news-list li { border: 0; padding: .65rem 0 .65rem 28px; position: relative; align-items: baseline; }
.home-page .news-list li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: 10px; height: 10px; border-radius: 50%; background: var(--pink-link); }
.home-page .news-list time { color: #6b6188; font-size: .85rem; flex: 0 0 5.8rem; }
.home-page .news-list a { color: #1f1740; font-weight: 700; }

/* Кто стоит за брендом: таблица с розовой шапкой и розовыми ссылками */
.home-page .pairs-table { border: 1px solid #f3d9e8; border-radius: 16px; overflow: hidden; }
.home-page .pairs-row { padding: .8rem 1.2rem; border-bottom: 1px solid #f8e6f0; }
.home-page .pairs-row:last-child { border-bottom: 0; }
.home-page .pairs-head { background: #fdeef6; color: #8a6a80; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #f3d9e8; }
.home-page .pair-legal { color: var(--pink-link); font-weight: 600; }
.home-page .pair-brand { color: #5a4f78; }
.home-page a.pairs-row:hover { background: #fff8fc; }

/* Что читать дальше: строки-ссылки */
.home-page .next-grid { display: block; margin-top: 1rem; }
.home-page .next-grid a { background: transparent; border-radius: 0; padding: .45rem 0; display: block; }
.home-page .next-grid a:hover { background: transparent; }
.home-page .next-grid strong { color: var(--pink-link); font-weight: 700; }
.home-page .next-grid span { display: inline; color: #6b6188; font-size: .88rem; margin-left: .5rem; }

/* Банковские продукты: две колонки, розовый заголовок и серый подзаголовок */
.home-page .bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 3rem; }
.home-page .bank-grid a { padding: .2rem 0; }
.home-page .bank-grid span { display: block; margin: .15rem 0 0; font-size: .85rem; }
@media (max-width: 700px) { .home-page .bank-grid { grid-template-columns: 1fr; } }
.hero.hero-band { display: block; padding-top: 44px; padding-bottom: 48px; gap: 0; }
@media (max-width: 900px) { .hero.hero-band { padding-top: 28px; padding-bottom: 32px; } }
.reveal { margin-left: .5rem; background: var(--lilac); color: var(--violet); border: 0; border-radius: 999px; padding: .3rem .9rem; font: inherit; font-size: .9rem; font-weight: 600; cursor: pointer; }
.reveal:hover { background: var(--lilac-2); }
.hero-band .hero-main p strong { color: #fff; }
.hero-band .hero-main p.hero-sub { color: #c9bfe8; margin-top: -4px; }

/* ===== Мини-hero подборки ===== */
.mini-hero { margin-bottom: 1.5rem; }
.mh-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: end; padding-top: .5rem; }
.mh-title { font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.12; max-width: 620px; margin: 0 0 1.2rem; }
.mh-art { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.mh-card {
    position: relative; width: 300px; height: 190px; border-radius: 22px; flex: 0 0 auto;
    background: linear-gradient(135deg, #43307f 0%, #2e2160 60%, #261a52 100%);
    box-shadow: 0 24px 40px rgba(46,33,96,.35); transform: rotate(-9deg); overflow: hidden; color: #fff;
}
.mh-card-blob { position: absolute; right: -50px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(252,123,197,.2); }
.mh-chip { position: absolute; left: 26px; top: 34px; width: 46px; height: 34px; border-radius: 8px; background: linear-gradient(135deg, #f78fcb, #e8559f); }
.mh-pan { position: absolute; left: 26px; top: 100px; display: flex; gap: 14px; align-items: baseline; font-size: 1rem; letter-spacing: .1em; }
.mh-pan i { font-style: normal; opacity: .85; }
.mh-pan span { font-weight: 700; letter-spacing: .08em; }
.mh-lbl { position: absolute; left: 26px; bottom: 22px; font-size: .72rem; letter-spacing: .12em; opacity: .75; }
.mh-pills { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mh-amount { background: #fc7bc5; color: #1f1740; font-weight: 800; font-size: 1.5rem; padding: .7rem 1.5rem; border-radius: 999px; box-shadow: 0 10px 24px rgba(252,123,197,.4); }
.mh-pill { padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .92rem; box-shadow: 0 4px 14px rgba(46,33,96,.10); }
.mh-fast { background: #fff; color: #2a2150; }
.mh-match { background: #e9f7ee; color: #1b7a43; }
.mh-free { background: #fff4fa; color: #b53a82; }
.mh-props { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.mh-prop { display: inline-flex; align-items: center; gap: 8px; padding: .5rem 1rem .5rem .5rem; border-radius: 999px; color: #fff; font-weight: 700; font-size: .9rem; width: fit-content; }
.mh-prop i { font-style: normal; display: inline-flex; width: 26px; height: 26px; align-items: center; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.2); font-size: .8rem; }
.mh-prop-green { background: #2f8a4f; }
.mh-prop-dark { background: #3b2a78; }

.mh-form-label { color: #7a6fa3; font-size: .88rem; margin: 0 0 .4rem; }
.mh-form { background: #fff; border-radius: 22px; padding: 1.1rem; box-shadow: 0 14px 40px rgba(46,33,96,.12); }
.mh-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mh-field span { display: block; font-size: .7rem; color: #8a7fb0; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .3rem; }
.mh-stepper { display: flex; align-items: center; justify-content: space-between; background: #fff; border: 1px solid #ece3f6; border-radius: 16px; height: 46px; padding: 0 .3rem; }
.mh-stepper output { font-weight: 800; color: #1f1740; font-size: 1rem; }
.mh-stepper button { border: 0; background: transparent; color: var(--pink-strong); font-size: 1.3rem; font-weight: 700; width: 32px; height: 40px; cursor: pointer; border-radius: 10px; }
.mh-stepper button:hover { background: var(--lilac); }
.mh-chips { display: flex; gap: 6px; margin: .8rem 0 .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.mh-chips::-webkit-scrollbar { display: none; }
.mh-chips button { flex: 0 0 auto; border: 1px solid #ece3f6; background: #fff; border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; color: #3f3566; cursor: pointer; }
.mh-chips button.active { background: #fff4fa; border-color: #f3b5d8; color: #b53a82; }
.mh-result { font-size: .88rem; color: #6b6188; margin: .5rem 0 .8rem; }
.mh-result b { color: #1b7a43; }
.mh-submit { width: 100%; border: 0; border-radius: 999px; background: #fc7bc5; color: #fff; font: inherit; font-weight: 800; font-size: 1rem; height: 48px; cursor: pointer; box-shadow: 0 10px 22px rgba(252,123,197,.35); }
.mh-submit:hover { background: #f25eb4; }

.mh-intro { background: #fdeef6; border-radius: 18px; padding: 1rem 1.2rem; margin-top: 1.6rem; color: #3f3566; }
.mh-intro-text { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: .95rem; line-height: 1.55; }
.mh-intro.open .mh-intro-text { display: block; }
.mh-more { background: none; border: 0; padding: 0; margin-top: .5rem; color: var(--pink-link, #d4257f); font: inherit; font-weight: 700; font-size: .9rem; cursor: pointer; }

.mh-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 1.1rem; }
.mh-tabs button { border: 1px solid #ece3f6; background: #fff; border-radius: 999px; padding: .45rem 1rem; font: inherit; font-size: .9rem; font-weight: 600; color: #3f3566; cursor: pointer; }
.mh-tabs button span { color: #9a8fbd; font-weight: 500; margin-left: 4px; }
.mh-tabs button.active { background: #fff4fa; border-color: #f3b5d8; color: #b53a82; }

@media (max-width: 980px) { .mh-grid { grid-template-columns: 1fr; } .mh-right { max-width: 520px; } }
@media (max-width: 560px) {
    .mh-card { width: 240px; height: 152px; transform: rotate(-7deg); }
    .mh-chip { left: 20px; top: 26px; width: 38px; height: 28px; } .mh-pan { left: 20px; top: 78px; font-size: .85rem; } .mh-lbl { left: 20px; bottom: 16px; }
    .mh-art { gap: 14px; }
}
@media (max-width: 560px) {
    .mh-title { margin-bottom: .6rem; }
    .mh-art { gap: 12px; align-items: flex-start; }
    .mh-card { width: 210px; height: 134px; margin: 6px 0 6px 10px; border-radius: 18px; }
    .mh-chip { left: 16px; top: 22px; width: 32px; height: 24px; border-radius: 6px; }
    .mh-pan { left: 16px; top: 66px; font-size: .75rem; gap: 8px; }
    .mh-lbl { left: 16px; bottom: 12px; font-size: .6rem; }
    .mh-pills { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .mh-amount { font-size: 1.15rem; padding: .5rem 1.1rem; }
    .mh-pill { font-size: .82rem; padding: .45rem .9rem; }
    .mh-props { display: none; }
    .mh-grid { gap: 14px; }
}

/* Каталог организаций */
.cat-stats { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 1rem; color: #6b6188; font-size: .95rem; }
.cat-stats b { color: var(--ink); } .cat-stats b.ok { color: #1b7a43; } .cat-stats b.bad { color: #c0392b; }
.org-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.org { background: #fff; border: 1px solid #ece3f6; border-radius: 22px; padding: 1.2rem 1.3rem; box-shadow: 0 6px 24px rgba(46,33,96,.05); }
.org-head { display: flex; gap: .8rem; align-items: center; margin-bottom: .9rem; }
.org-head img { border-radius: 12px; border: 1px solid #ece3f6; padding: 4px; object-fit: contain; background: #fff; }
.org-head h3 { font-size: 1.1rem; margin: 0 0 .25rem; } .org-head h3 a { color: var(--ink); text-decoration: none; } .org-head h3 a:hover { color: var(--pink-strong); }
.org-badge { display: inline-block; border-radius: 999px; padding: .15rem .65rem; font-size: .74rem; font-weight: 700; }
.org-badge.ok { background: #e9f7ee; color: #1b7a43; } .org-badge.bad { background: #fde8e6; color: #c0392b; } .org-badge.unk { background: #f1eefa; color: #6b6188; }
.org dl { display: flex; gap: 1.4rem; margin-bottom: .7rem; } .org dt { font-size: .68rem; color: #8a7fb0; text-transform: uppercase; letter-spacing: .05em; } .org dd { font-weight: 700; font-size: .92rem; }
.org-reg { font-size: .8rem; color: #6b6188; margin: 0 0 .8rem; min-height: 2.4em; }
.org-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.button-info-link { background: var(--lilac); color: var(--violet); border-radius: 999px; padding: .4rem .95rem; font-size: .85rem; font-weight: 600; text-decoration: none; }
.button-info-link:hover { background: var(--lilac-2); }
.gen-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 1rem; }
.gen-grid a { background: var(--lilac); border-radius: 18px; padding: 1rem 1.2rem; text-decoration: none; display: flex; flex-direction: column; }
.gen-grid strong { font-size: 1.7rem; color: var(--violet); } .gen-grid span { color: #6b6188; font-size: .88rem; }
@media (max-width: 1000px) { .org-grid { grid-template-columns: 1fr 1fr; } .gen-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .org-grid { grid-template-columns: 1fr; } }

/* Виджет с предложениями */
.op[hidden] { display: none; }
.op { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 16px; }
.op-backdrop { position: absolute; inset: 0; background: rgba(30,20,66,.55); backdrop-filter: blur(3px); }
.op-box { position: relative; background: #fff; border-radius: 22px; padding: 1.4rem 1.4rem 1.1rem; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 30px 80px rgba(30,20,66,.4); animation: opIn .25s ease; }
@keyframes opIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.op-close { position: absolute; right: 12px; top: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--lilac); color: var(--violet); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.op-box h2 { font-size: 1.25rem; margin: 0 2rem .3rem 0; }
.op-sub { color: #6b6188; font-size: .85rem; margin: 0 0 1rem; }
.op-list { display: grid; gap: 10px; }
.op-item { display: grid; grid-template-columns: 48px 1fr auto; gap: .2rem .8rem; align-items: center; border: 1px solid #ece3f6; border-radius: 16px; padding: .8rem; }
.op-item img { border-radius: 10px; border: 1px solid #ece3f6; padding: 3px; object-fit: contain; background: #fff; grid-row: span 1; }
.op-info { display: flex; flex-direction: column; gap: .05rem; min-width: 0; }
.op-info b { font-size: 1rem; }
.op-hl { color: #d4257f; font-weight: 700; font-size: .82rem; }
.op-meta { color: #6b6188; font-size: .78rem; }
.op-btn { background: #1b8f6a; color: #fff; text-decoration: none; font-weight: 700; font-size: .85rem; border-radius: 12px; padding: .65rem .9rem; white-space: nowrap; }
.op-btn:hover { background: #157a59; }
.op-ad { grid-column: 1 / -1; font-size: .64rem; color: #a59cc2; margin: .3rem 0 0; line-height: 1.3; }
.op-note { font-size: .72rem; color: #8a7fb0; margin: .8rem 0 0; }
@media (max-width: 480px) { .op-item { grid-template-columns: 44px 1fr; } .op-btn { grid-column: 1 / -1; text-align: center; } }
.check-card { background: #fbf6fd; border: 1px solid #efe3f8; scroll-margin-top: 90px; }
#proverka { scroll-margin-top: 90px; }
.st-ok { color: #1b7a43; font-weight: 700; } .st-bad { color: #c0392b; font-weight: 700; }
.reg-stat { margin-top: .8rem; color: #6b6188; font-size: .95rem; } .reg-stat b { color: var(--ink); }
.reg-disclaimer { margin: .4rem 0 0; font-size: .82rem; color: #8a7fb0; max-width: 720px; }

/* Страница /reestr — точная копия структуры референса: без карточек, плоская вёрстка */
.rp { padding: 8px 0 40px; }
.rp-h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem); font-weight: 800; margin: .5rem 0 .8rem; }
.rp-lead { color: #4a3f73; max-width: 920px; margin: 0 0 .8rem; }
.rp-stat { color: #6b6188; font-size: .92rem; margin: 0 0 .5rem; } .rp-stat b { color: var(--ink); }
.rp-disc { color: #8a7fb0; font-size: .82rem; margin: 0 0 1.4rem; max-width: 920px; } .rp-disc a { color: var(--pink-strong); }
.rp-check { background: #fdeef6; border: 1px solid #f6d3e6; border-radius: 20px; padding: 1.2rem 1.4rem; margin-bottom: 1.6rem; scroll-margin-top: 90px; }
.rp-check h2 { font-size: 1.05rem; margin: 0 0 .8rem; }
.rp-check form { display: flex; gap: .7rem; }
.rp-check input { flex: 1; border: 1px solid #ecdcf2; border-radius: 12px; padding: .75rem 1rem; font: inherit; background: #fff; min-width: 0; }
.rp-check input:focus { outline: none; border-color: var(--pink); }
.rp-check button { border: 0; border-radius: 12px; background: var(--pink); color: #fff; font: inherit; font-weight: 700; padding: .75rem 1.6rem; cursor: pointer; }
.rp-check button:hover { background: var(--pink-strong); }
.rp-none { margin: .9rem 0 0; color: #6b6188; font-size: .92rem; }
.rp-h2 { font-size: 1.15rem; margin: 1.8rem 0 .8rem; }
.rp-h3 { font-size: .95rem; margin: 1rem 0 .4rem; color: var(--violet); }
.rp-table-wrap { background: #fffafe; border: 1px solid #f3dfee; border-radius: 16px; overflow-x: auto; margin-top: .9rem; }
.rp-check .rp-table-wrap { margin-top: 1rem; }
.rp-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: .88rem; }
.rp-table th { text-align: left; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: #9a8aa8; font-weight: 700; padding: .8rem 1rem; border-bottom: 1px solid #f3dfee; background: transparent; }
.rp-table td { padding: .65rem 1rem; border-bottom: 1px solid #f7e9f2; color: #2b2347; background: transparent; }
.rp-table tr:last-child td { border-bottom: 0; }
.rp-table tbody tr:hover td { background: #fdf3f9; }
.rp-table td a { color: #2b2347; text-decoration: none; } .rp-table td a:hover { color: var(--pink-strong); }
.rp-table small { color: #8a7fb0; } .rp-table small a { color: var(--pink-strong); }
.rp-table .r { text-align: right; }
.rp-date { display: inline-block; background: #fff1d6; color: #9a5b00; border-radius: 999px; padding: .15rem .7rem; font-weight: 600; font-size: .82rem; }
.rp-ok { display: inline-block; background: #e5f6ec; color: #1b7a43; border-radius: 999px; padding: .15rem .7rem; font-weight: 600; font-size: .82rem; }
.rp-week { color: #4a3f73; margin: 0 0 .4rem; }
.rp-list { margin: 0 0 .5rem 1.2rem; padding: 0; } .rp-list li { margin: .25rem 0; } .rp-list a { color: #2b2347; text-decoration: none; } .rp-list a:hover { color: var(--pink-strong); }
.rp-links a { color: var(--pink-strong); font-weight: 600; }
.rp-faq details { border-bottom: 1px solid #f3dfee; padding: .8rem 0; }
.rp-faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.rp-faq summary::-webkit-details-marker { display: none; }
.rp-faq p { margin: .5rem 0 0; color: #4a3f73; }
@media (max-width: 600px) { .rp-check form { flex-direction: column; } }
.org-offers { font-size: .74rem; color: #8a7fb0; }
.org-actions .org-get { margin-left: auto; padding: .45rem 1.2rem; font-size: .85rem; }
