/*
Theme Name: Finboks
Theme URI: https://finboks.ru/
Author: Finboks
Description: Адаптивная финансовая тема WordPress Finboks v11 с каталогом компаний, контролем актуальности и универсальным импортом финансовых продуктов.
Version: 11.2.80
Text Domain: rublics
*/

:root {
    --finlo-text: #0b163a;
    --finlo-muted: #6d7694;
    --finlo-primary: #5a39ff;
    --finlo-primary-dark: #4425e8;
    --finlo-line: #e8ebf5;
    --finlo-soft: #f7f8ff;
    --finlo-card: #ffffff;
    --finlo-shadow: 0 16px 44px rgba(35, 37, 85, 0.07);
    --finlo-radius-lg: 24px;
    --finlo-radius-md: 16px;
    --finlo-container: 1440px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    color: var(--finlo-text);
    background: #f3f1f6;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

/* Keep the footer at the bottom of short pages without affecting long pages. */
.site-main {
    width: 100%;
    flex: 1 0 auto;
}
.site-footer { flex: 0 0 auto; }

/* WordPress moves logged-in pages down for the admin bar; account for that offset. */
body.admin-bar {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}
@media screen and (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }
}
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.container {
    width: min(calc(100% - 40px), var(--finlo-container));
    margin-inline: auto;
}

.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.section-space { padding: 34px 0; }
.section-space--compact { padding-top: 18px; }
.section-title {
    margin: 0 0 22px;
    font-size: clamp(24px, 2.15vw, 32px);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

/* Header: intentionally NOT fixed/sticky. */
.site-header {
    position: relative;
    position: static;
    z-index: 20;
    background: #f3f1f6;
    border-bottom: 1px solid #ffffff;
}
.site-header__inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 32px;
    position: relative;
}
.site-branding { flex: 0 0 auto; }
.site-branding .custom-logo-link,
.site-footer__logo .custom-logo-link { display: inline-flex; align-items: center; }
.site-branding .custom-logo { max-height: 46px; width: auto; }
.site-footer__logo .custom-logo { max-height: 44px; width: auto; }
.site-branding__fallback {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 29px;
    font-weight: 800;
    letter-spacing: -0.03em;
}
.site-branding__mark {
    width: 34px;
    height: 34px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
}
.site-branding__mark span { border-radius: 50%; background: var(--finlo-primary); }
.site-branding__mark span:nth-child(2),
.site-branding__mark span:nth-child(3) { background: #2f7cff; }

.primary-nav { margin-left: auto; }
@media (min-width: 901px) {
    .primary-nav {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .site-header__tools { margin-left: auto; }
}
.primary-nav .menu,
.footer-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}
.primary-nav .menu {
    display: flex;
    align-items: center;
    gap: clamp(18px, 3vw, 52px);
}
.primary-nav .menu > li { position: relative; }
.primary-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    color: #0c173e;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--finlo-primary); }
.primary-nav .sub-menu {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    margin: 0;
    list-style: none;
    border: 1px solid var(--finlo-line);
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--finlo-shadow);
    display: none;
}
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu { display: block; }
.primary-nav .sub-menu a { width: 100%; padding: 8px 10px; min-height: 0; }

.site-header__tools { display: flex; align-items: center; gap: 6px; }
.icon-button {
    width: 46px;
    height: 46px;
    border: 1px solid var(--finlo-line);
    border-radius: 50%;
    background: #fff;
    display: inline-grid;
    place-items: center;
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.icon-button:hover { border-color: #cdd2e7; box-shadow: 0 8px 22px rgba(32,35,81,.08); transform: translateY(-1px); }
.burger-button { display: none; }
.burger-lines { width: 20px; display: grid; gap: 4px; }
.burger-lines span { width: 100%; height: 2px; border-radius: 999px; background: var(--finlo-text); }

.header-search {
    position: absolute;
    top: calc(100% - 6px);
    right: 0;
    z-index: 30;
    width: min(440px, calc(100vw - 40px));
    padding: 10px;
    background: #fff;
    border: 1px solid var(--finlo-line);
    border-radius: 16px;
    box-shadow: var(--finlo-shadow);
    display: none;
    grid-template-columns: 1fr 48px;
    gap: 8px;
}
.header-search.is-open { display: grid; }
.header-search input {
    min-width: 0;
    height: 48px;
    border: 1px solid var(--finlo-line);
    border-radius: 12px;
    padding: 0 15px;
    color: var(--finlo-text);
    outline: none;
}
.header-search input:focus { border-color: var(--finlo-primary); box-shadow: 0 0 0 3px rgba(90,57,255,.12); }
.header-search button {
    border: 0;
    border-radius: 12px;
    background: var(--finlo-primary);
    display: grid;
    place-items: center;
}
.header-search button img { filter: brightness(0) invert(1); }

/* Hero */
.hero-card {
    min-height: 385px;
    padding: clamp(32px, 4.4vw, 68px);
    border-radius: var(--finlo-radius-lg);
    background: #e8e4f1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    align-items: center;
    gap: 28px;
    overflow: hidden;
}
.hero-copy h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(38px, 4.25vw, 66px);
    line-height: 1.04;
    letter-spacing: -0.045em;
}
.hero-copy h1 span { color: var(--finlo-primary); }
.hero-copy > p {
    max-width: 650px;
    margin: 24px 0 0;
    font-size: clamp(17px, 1.35vw, 22px);
    color: #273252;
}
.hero-points {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px 34px;
}
.hero-points > div { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; }
.hero-points img { flex: 0 0 auto; }
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-visual img { width: min(100%, 520px); filter: drop-shadow(0 26px 38px rgba(71,44,168,.12)); }

/* Categories */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.category-card {
    min-height: 218px;
    padding: 24px 22px 20px;
    border: 2px solid var(--finlo-line);
    border-radius: var(--finlo-radius-md);
    background: #ffffff;
    color: inherit;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--finlo-shadow); border-color: #dde1f0; background: #ffffff; }
.category-card:focus-visible { outline: 3px solid rgba(90,57,255,.20); outline-offset: 3px; }
.category-card__icon { width: 72px; height: 72px; object-fit: contain; margin-bottom: 14px; }
.category-card h3 { margin: 0; font-size: 16px; line-height: 1.25; }
.category-card p {
    margin: 12px 0 0;
    color: var(--finlo-muted);
    font-size: 13px;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
}

/* Offers */
.offers-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 22px; }
.offers-heading .section-title { margin: 0; }
.offer-tabs { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.offer-tab {
    min-width: 74px;
    height: 40px;
    padding: 0 18px;
    border: 1px solid var(--finlo-line);
    border-radius: 10px;
    background: #fff;
    color: #53607e;
    font-size: 14px;
    font-weight: 700;
}
.offer-tab.is-active { color: #fff; border-color: var(--finlo-primary); background: var(--finlo-primary); box-shadow: 0 8px 20px rgba(90,57,255,.20); }
.offers-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.offer-panel {
    padding: 20px;
    border: 2px solid var(--finlo-line);
    border-radius: var(--finlo-radius-md);
    background: #ffffff;
    min-width: 0;
    transition: background-color .2s ease;
}
.offer-panel:hover { background: #ffffff; }
.offer-panel h3 { margin: 0 0 14px; font-size: 18px; }
.offer-list { display: grid; gap: 2px; }
.offer-row {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    min-height: 82px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f2f7;
}
.offer-row:last-child { border-bottom: 0; }
.offer-row__icon { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; }
.offer-row__main { min-width: 0; display: grid; gap: 2px; }
.offer-row__main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 14px; }
.offer-row__main small { color: var(--finlo-muted); font-size: 12px; }
.offer-row__rating { color: #ff9e16; font-size: 12px; font-weight: 800; }
.offer-row__value { color: #32405f; font-size: 12px; white-space: nowrap; text-align: right; }
.offer-panel__more { display: block; margin-top: 16px; text-align: center; color: var(--finlo-primary); font-size: 13px; font-weight: 800; }

/* Benefits */
.benefit-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.benefit-item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: start; }
.benefit-item img { width: 44px; height: 44px; }
.benefit-item h3 { margin: 2px 0 5px; font-size: 14px; }
.benefit-item p { margin: 0; color: var(--finlo-muted); font-size: 12px; line-height: 1.55; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.step-card {
    position: relative;
    min-height: 180px;
    padding: 26px 54px 26px 80px;
    border: 2px solid var(--finlo-line);
    border-radius: var(--finlo-radius-md);
    background: #fff;
}
.step-card__number {
    position: absolute;
    top: 26px;
    left: 24px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--finlo-primary);
    background: #f2efff;
    font-weight: 900;
    font-size: 20px;
}
.step-card h3 { margin: 3px 0 10px; font-size: 15px; }
.step-card p { margin: 0; color: var(--finlo-muted); font-size: 13px; }
.step-card__arrow { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--finlo-primary); font-size: 36px; font-weight: 300; }

/* About */
.about-card {
    min-height: 250px;
    padding: clamp(28px, 3vw, 48px);
    border-radius: var(--finlo-radius-lg);
    background: #e8e4f1;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, .7fr);
    gap: 28px;
    align-items: center;
    overflow: hidden;
}
.about-copy h2 { margin: 0 0 18px; font-size: clamp(24px, 2.15vw, 32px); }
.about-copy p { margin: 0 0 12px; color: #4c5877; font-size: 15px; max-width: 930px; }
.about-visual { display: flex; justify-content: center; }
.about-visual img { width: min(100%, 320px); }

/* Footer - support block intentionally removed. */
.site-footer { padding: 34px 0 22px; background: #f3f1f6; border-top: 1px solid #ffffff; }
.site-footer__panel {
    padding: 34px 34px 18px;
    border-radius: 0 0 18px 18px;
    background: #f3f1f6;
    display: grid;
    grid-template-columns: 1.25fr .8fr 1.15fr;
    gap: 42px;
}
.site-footer__brand p { max-width: 320px; margin: 18px 0 0; color: #60708e; font-size: 13px; }
.site-footer__column h3 { margin: 0 0 14px; font-size: 14px; }
.site-footer__column ul,
.site-footer__column .footer-menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__column li { margin: 0; }
.site-footer__column a { color: #33415f; font-size: 13px; }
.site-footer__column a:hover { color: var(--finlo-primary); }
.site-footer__column .footer-menu .menu-item { margin: 0; }
.site-footer__column .footer-menu .sub-menu { display: none; }
.site-footer__bottom {
    grid-column: 1 / -1;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid rgba(115,130,170,.14);
    color: #6a7694;
    text-align: center;
    font-size: 13px;
}

/* Content/search */
.content-page { min-height: 60vh; }
.content-header h1 { margin: 0 0 28px; font-size: clamp(32px, 4.2vw, 55px); letter-spacing: -0.03em; }
.post-list { display: grid; gap: 18px; }
.post-card { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 22px; padding: 18px; border: 1px solid var(--finlo-line); border-radius: 18px; }
.post-card__thumb img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.post-card__body h2 { margin: 0 0 10px; font-size: 26px; }
.post-card__body p { margin: 0 0 12px; color: var(--finlo-muted); }
.text-link { color: var(--finlo-primary); font-weight: 800; }
.pagination { margin-top: 12px; }
.empty-state { padding: 36px; border: 1px solid var(--finlo-line); border-radius: 18px; background: var(--finlo-soft); }
.content-prose { max-width: 980px; }
.content-prose > *:first-child { margin-top: 0; }
.content-prose img { border-radius: 14px; }

/* WordPress alignment helpers */
.alignwide { width: min(1200px, 100%); margin-inline: auto; }
.alignfull { width: 100%; }

@media (max-width: 1260px) {
    .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .offers-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .site-footer__panel { grid-template-columns: 1.25fr 1fr 1fr; }
    .site-footer__column:nth-of-type(4) { grid-column: 2 / 4; }
}

@media (max-width: 1000px) {
    .site-header__inner { min-height: 76px; gap: 14px; flex-wrap: wrap; }
    .primary-nav { margin-left: 0; }
    .primary-nav .menu { gap: 18px; }
    .hero-card { grid-template-columns: minmax(0,1fr) 320px; }
    .hero-copy h1 { font-size: clamp(34px, 5vw, 52px); }
    .steps-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .site-branding { margin-right: auto; }
    .site-header__tools { order: 0; }
    .search-toggle { order: 1; }
    .burger-button { display: inline-grid; order: 2; }
    .primary-nav {
        order: 3;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        width: auto;
        max-height: calc(100dvh - 90px);
        overflow-y: auto;
        display: none;
        padding: 8px 14px 14px;
        background: #fff;
        border: 1px solid var(--finlo-line);
        border-radius: 0 0 16px 16px;
        box-shadow: var(--finlo-shadow);
        -webkit-overflow-scrolling: touch;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav .menu { display: grid; gap: 0; }
    .primary-nav .menu > li { border-top: 1px solid var(--finlo-line); }
    .primary-nav a { width: 100%; min-height: 46px; }
    .primary-nav .sub-menu { position: static; display: block; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 6px 14px; }
    .header-search {
        order: 4;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 40;
        width: auto;
        margin: 0;
        box-shadow: var(--finlo-shadow);
    }
    .hero-card { grid-template-columns: 1fr; }
    .hero-visual { position: absolute; opacity: 0; pointer-events: none; }
    .benefit-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .about-card { grid-template-columns: 1fr 250px; }
    .site-footer__panel { grid-template-columns: 1fr 1fr; }
    .site-footer__column:nth-of-type(4) { grid-column: auto; }
}

@media (max-width: 768px) {
    .container { width: min(calc(100% - 28px), var(--finlo-container)); }
    .section-space { padding: 24px 0; }
    .section-space--compact { padding-top: 10px; }

    /* Large illustrations are hidden on phones. */
    .hero-visual,
    .about-visual { display: none !important; }

    .hero-card { min-height: 0; padding: 30px 22px; border-radius: 18px; }
    .hero-copy h1 { font-size: clamp(31px, 9.4vw, 45px); }
    .hero-copy > p { margin-top: 18px; font-size: 16px; }
    .hero-points { margin-top: 24px; display: grid; gap: 11px; }

    .category-grid {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .category-grid::-webkit-scrollbar { display: none; }
    .category-card { flex: 0 0 min(78vw, 280px); min-height: 210px; padding: 20px 16px 18px; scroll-snap-align: start; }
    .category-card:hover { transform: none; }

    .offers-heading { align-items: flex-start; flex-direction: column; }
    .offer-tabs {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .offer-tabs::-webkit-scrollbar { display: none; }
    .offer-tab { flex: 0 0 auto; }
    .offers-grid {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-behavior: smooth;
        scroll-snap-type: x proximity;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .offers-grid::-webkit-scrollbar { display: none; }
    .offer-panel { flex: 0 0 min(88vw, 360px); scroll-snap-align: start; }

    .benefit-grid { grid-template-columns: 1fr; }
    .benefit-item { padding: 10px 0; border-bottom: 1px solid #f0f2f7; }
    .benefit-item:last-child { border-bottom: 0; }

    .steps-grid { grid-template-columns: 1fr; }
    .step-card { min-height: 0; padding: 22px 50px 22px 74px; }
    .step-card__number { top: 20px; left: 18px; }

    .about-card { grid-template-columns: 1fr; padding: 28px 22px; border-radius: 18px; }
    .site-footer__panel { grid-template-columns: 1fr; gap: 28px; padding: 26px 22px 18px; }
    .site-footer__column:nth-of-type(4) { grid-column: auto; }

    .post-card { grid-template-columns: 1fr; }
    .post-card__thumb img { height: 210px; }
}

@media (max-width: 480px) {
    .site-header__inner { min-height: 70px; }
    .site-branding__fallback { font-size: 25px; gap: 9px; }
    .site-branding__mark { width: 29px; height: 29px; }
    .site-branding .custom-logo { max-width: 130px; max-height: 40px; }
    .icon-button { width: 42px; height: 42px; }

    .category-card { min-height: 215px; }
    .category-card__icon { width: 56px; height: 56px; }

    .offer-panel { padding: 16px; }
    .offer-row { grid-template-columns: 40px minmax(0,1fr); }
    .offer-row__icon { width: 40px; height: 40px; }
    .offer-row__value { grid-column: 2; text-align: left; padding-bottom: 2px; }

    .step-card__arrow { display: none; }
}

/* Slightly larger typography across the site; hero headline intentionally unchanged. */
body { font-size: 18px; }
.section-title { font-size: clamp(26px, 2.3vw, 35px); }
.site-branding__fallback { font-size: 31px; }
.primary-nav a { font-size: 14px; }
.hero-copy > p { font-size: clamp(18px, 1.45vw, 24px); }
.hero-points > div { font-size: 15px; }
.category-card h3 { font-size: 17px; }
.category-card p { font-size: 14px; }
.offer-tab { font-size: 15px; }
.offer-panel h3 { font-size: 19px; }
.offer-row__main strong { font-size: 15px; }
.offer-row__main small { font-size: 13px; }
.offer-row__rating { font-size: 13px; }
.offer-row__value { font-size: 13px; }
.offer-panel__more { font-size: 14px; }
.benefit-item h3 { font-size: 15px; }
.benefit-item p { font-size: 13px; }
.step-card__number { font-size: 21px; }
.step-card h3 { font-size: 16px; }
.step-card p { font-size: 14px; }
.step-card__arrow { font-size: 38px; }
.about-copy h2 { font-size: clamp(26px, 2.3vw, 35px); }
.about-copy p { font-size: 16px; }
.site-footer__brand p { font-size: 14px; }
.site-footer__column h3 { font-size: 15px; }
.site-footer__column a { font-size: 14px; }
.site-footer__bottom { font-size: 14px; }
.content-header h1 { font-size: clamp(34px, 4.4vw, 58px); }
.post-card__body h2 { font-size: 28px; }

@media (max-width: 768px) {
    .hero-copy > p { font-size: 17px; }
}

@media (max-width: 480px) {
    .site-branding__fallback { font-size: 27px; }
}

/* Larger desktop typography and icons. Hero headline intentionally unchanged. */
@media (min-width: 769px) {
    body { font-size: 20px; }
    .section-title { font-size: clamp(30px, 2.55vw, 40px); }
    .site-branding__fallback { font-size: 34px; }
    .primary-nav a { font-size: 14px; }

    .icon-button { width: 52px; height: 52px; }
    .search-toggle img { width: 27px; height: 27px; }
    .header-search button img { width: 24px; height: 24px; }
    .burger-lines { width: 24px; gap: 5px; }
    .burger-lines span { height: 3px; }
    .site-branding__mark { width: 40px; height: 40px; }

    .hero-copy > p { font-size: clamp(20px, 1.55vw, 26px); }
    .hero-points > div { font-size: 17px; gap: 11px; }
    .hero-points img { width: 25px; height: 25px; }

    .category-card { min-height: 238px; }
    .category-card__icon { width: 76px; height: 76px; margin-bottom: 18px; }
    .category-card h3 { font-size: 19px; }
    .category-card p { font-size: 16px; }

    .offer-tab { min-width: 82px; height: 44px; font-size: 17px; }
    .offer-panel h3 { font-size: 21px; }
    .offer-row { grid-template-columns: 52px minmax(0, 1fr) auto; min-height: 92px; gap: 13px; }
    .offer-row__icon { width: 52px; height: 52px; border-radius: 12px; }
    .offer-row__main strong { font-size: 17px; }
    .offer-row__main small { font-size: 15px; }
    .offer-row__rating { font-size: 15px; }
    .offer-row__value { font-size: 15px; }
    .offer-panel__more { font-size: 16px; }

    .benefit-item { grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
    .benefit-item img { width: 54px; height: 54px; }
    .benefit-item h3 { font-size: 17px; }
    .benefit-item p { font-size: 15px; }

    .step-card__number { width: 48px; height: 48px; font-size: 23px; }
    .step-card { padding-left: 88px; }
    .step-card h3 { font-size: 18px; }
    .step-card p { font-size: 16px; }
    .step-card__arrow { font-size: 44px; }

    .about-copy h2 { font-size: clamp(30px, 2.55vw, 40px); }
    .about-copy p { font-size: 18px; }

    .site-footer__brand p { font-size: 16px; }
    .site-footer__column h3 { font-size: 17px; }
    .site-footer__column a { font-size: 16px; }
    .site-footer__bottom { font-size: 16px; }

    .content-header h1 { font-size: clamp(38px, 4.7vw, 62px); }
    .post-card__body h2 { font-size: 30px; }
    .text-link { font-size: 18px; }
}

/* Mobile header panels stay in document flow and do not cover page content. */

@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .primary-nav {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        flex: 0 0 100vw;
        width: 100vw;
        max-height: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        overflow-y: visible;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .header-search {
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        flex: 0 0 100%;
        width: 100%;
        margin: 0;
        box-shadow: none;
    }
}


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .site-header__inner { padding-top: 10px; }
}

/* Desktop header menu uses the same burger/drop-down behavior as mobile. */
@media (min-width: 901px) {
    .site-header__inner {
        flex-wrap: wrap;
        row-gap: 0;
        padding-top: 10px;
    }

    .site-branding {
        margin-right: auto;
    }

    .burger-button {
        display: inline-grid;
        order: 0;
    }

    .search-toggle {
        order: 1;
    }

    .site-header__tools {
        order: 2;
        margin-left: 0;
    }

    .primary-nav {
        order: 3;
        position: static;
        top: auto;
        left: auto;
        right: auto;
        z-index: auto;
        transform: none;
        flex: 0 0 100vw;
        width: 100vw;
        max-height: none;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        overflow-y: visible;
        display: none;
        padding: 8px 14px 14px;
        background: #fff;
        border: 1px solid var(--finlo-line);
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .primary-nav.is-open {
        display: block;
    }

    .primary-nav .menu {
        display: grid;
        gap: 0;
    }

    .primary-nav .menu > li {
        border-top: 1px solid var(--finlo-line);
    }

    .primary-nav a {
        width: 100%;
        min-height: 46px;
    }

    .primary-nav .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: 0;
        border-radius: 0;
        padding: 0 0 6px 14px;
    }
}

/* Search results only */
.search .content-page .container { width: calc(100% - 40px); max-width: none; }
.search .post-list { width: 100%; }
.search .post-card { width: 100%; grid-template-columns: 1fr; border-width: 3px; }
.search .post-card__body,
.search .post-card__body h2,
.search .post-card__body p { width: 100%; max-width: none; }

/* =========================================================
   MFO / LOANS PAGE — page-mfo.php
   All selectors are isolated under .mfo-page / page template.
   ========================================================= */
.page-template-page-mfo .site-main,
.page-template-page-mfo-php .site-main { background: #fff; }

.mfo-page {
    --mfo-purple: #6842ff;
    --mfo-purple-dark: #5630ee;
    --mfo-ink: #08143a;
    --mfo-muted: #74809f;
    --mfo-border: #e8ebf5;
    --mfo-pale: #f7f8ff;
    color: var(--mfo-ink);
    background: #fff;
    font-size: 14px;
}

.mfo-page button,
.mfo-page input,
.mfo-page select { font: inherit; }

.mfo-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 22px 0 10px;
    color: #63708f;
    font-size: 12px;
    font-weight: 600;
}
.mfo-breadcrumbs a:hover { color: var(--mfo-purple); }

.mfo-hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 86% 31%, rgba(104,66,255,.07) 0 19px, transparent 20px),
        linear-gradient(180deg, #fff 0%, #fff 100%);
}
.mfo-hero__layout {
    min-height: 468px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, .92fr);
    align-items: center;
    gap: 28px;
    padding: 20px 0 34px;
}
.mfo-hero__copy { position: relative; z-index: 2; }
.mfo-hero__copy h1 {
    margin: 0;
    max-width: 780px;
    font-size: clamp(46px, 4.2vw, 69px);
    line-height: 1.08;
    letter-spacing: -.038em;
    font-weight: 850;
}
.mfo-hero__copy h1 span { color: var(--mfo-purple); }
.mfo-hero__copy > p {
    margin: 23px 0 0;
    max-width: 720px;
    color: #53607e;
    font-size: 18px;
    line-height: 1.72;
}
.mfo-hero__features {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    margin-top: 42px;
}
.mfo-mini-feature {
    display: grid;
    grid-template-columns: 38px auto;
    align-items: center;
    gap: 10px;
    min-width: 140px;
    color: #253251;
    font-size: 12px;
    font-weight: 750;
    line-height: 1.32;
}
.mfo-mini-feature__icon,
.mfo-trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    color: var(--mfo-purple);
    background: #f1eeff;
    font-size: 21px;
    font-weight: 900;
}
.mfo-mini-feature__icon svg,
.mfo-trust-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    color: inherit;
}
.mfo-trust-icon svg { width: 22px; height: 22px; }

/* Hero illustration built with CSS so it has no dependency on external image files. */
.mfo-hero__visual {
    position: relative;
    min-height: 420px;
    isolation: isolate;
}
.mfo-hero__visual::before {
    content: "";
    position: absolute;
    width: 380px;
    height: 380px;
    left: 2%;
    top: 9%;
    border-radius: 50%;
    background: #f0edff;
    z-index: -3;
}
.mfo-hero__number {
    position: absolute;
    left: 16%;
    top: 0;
    color: rgba(255,255,255,.78);
    font-size: 245px;
    line-height: 1;
    font-weight: 900;
    z-index: -2;
}
.mfo-orb { position: absolute; border-radius: 50%; background: #f3f1ff; z-index: -1; }
.mfo-orb--1 { width: 54px; height: 54px; right: 1%; top: 14%; }
.mfo-orb--2 { width: 18px; height: 18px; left: 17%; bottom: 7%; }

.mfo-phone {
    position: absolute;
    right: 17%;
    top: 5%;
    width: 203px;
    height: 380px;
    padding: 10px;
    border: 5px solid #151936;
    border-radius: 36px;
    background: #fff;
    box-shadow: 0 22px 45px rgba(29, 25, 86, .24), inset 0 0 0 2px #8777da;
    transform: rotate(7deg);
    z-index: 4;
}
.mfo-phone__notch {
    position: absolute;
    top: 7px;
    left: 50%;
    width: 87px;
    height: 17px;
    border-radius: 0 0 12px 12px;
    background: #111425;
    transform: translateX(-50%);
    z-index: 2;
}
.mfo-phone__screen {
    height: 100%;
    padding: 41px 13px 14px;
    border-radius: 25px;
    background: linear-gradient(180deg, #fff, #f9f9ff);
    color: #3d4769;
    font-size: 8px;
}
.mfo-phone__screen small { display: block; margin: 3px 0 4px; }
.mfo-phone__screen strong { display: block; margin-bottom: 8px; color: #0d1537; font-size: 17px; }
.mfo-phone__range { position: relative; height: 3px; margin: 8px 0; border-radius: 999px; background: #dde0ef; }
.mfo-phone__range::before { content: ""; display: block; width: 36%; height: 100%; border-radius: inherit; background: var(--mfo-purple); }
.mfo-phone__range span { position: absolute; left: 34%; top: 50%; width: 10px; height: 10px; border: 2px solid var(--mfo-purple); border-radius: 50%; background: #fff; transform: translate(-50%, -50%); }
.mfo-phone__limits { display: flex; justify-content: space-between; margin: 0 0 18px; color: #8891aa; font-size: 7px; }
.mfo-phone__button { margin-top: 23px; padding: 11px 7px; border-radius: 9px; color: #fff; background: linear-gradient(90deg, #7555ff, #6238f5); text-align: center; font-size: 9px; font-weight: 800; }

.mfo-wallet {
    position: absolute;
    right: 0;
    bottom: 21px;
    width: 185px;
    height: 146px;
    z-index: 3;
}
.mfo-wallet__card {
    position: absolute;
    right: 8px;
    width: 125px;
    height: 72px;
    border-radius: 11px;
    box-shadow: 0 10px 20px rgba(49, 40, 120, .15);
}
.mfo-wallet__card--back { top: 0; background: linear-gradient(135deg, #895dff, #497cff); transform: rotate(10deg); }
.mfo-wallet__card--front { top: 28px; right: 17px; background: linear-gradient(135deg, #f0a12e, #ffd66c); transform: rotate(6deg); }
.mfo-wallet__card--front i { position: absolute; right: 14px; width: 17px; height: 17px; top: 16px; border-radius: 50%; background: rgba(255,255,255,.65); }
.mfo-wallet__card--front i + i { right: 24px; background: rgba(255,255,255,.45); }
.mfo-wallet__body {
    position: absolute;
    inset: 55px 0 0 7px;
    border-radius: 24px 20px 24px 24px;
    background: linear-gradient(135deg, #603cff 0%, #8967ff 60%, #3e28c7 100%);
    box-shadow: 0 20px 30px rgba(57, 40, 155, .28), inset -8px -8px 16px rgba(51,30,150,.18);
}
.mfo-wallet__body::after {
    content: "";
    position: absolute;
    right: -2px;
    top: 27px;
    width: 58px;
    height: 43px;
    border-radius: 13px 0 0 13px;
    background: #5e3ceb;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.2);
}
.mfo-wallet__body span { position: absolute; right: 16px; top: 42px; width: 12px; height: 12px; border-radius: 50%; background: #d6cbff; z-index: 2; }
.mfo-coins {
    position: absolute;
    left: 14%;
    bottom: 24px;
    width: 105px;
    height: 86px;
    z-index: 2;
}
.mfo-coins span { position: absolute; left: 0; right: 0; margin: auto; width: 89px; height: 24px; border: 2px solid #9989dc; border-radius: 50%; background: linear-gradient(180deg,#f6f4ff,#cfc8ed); box-shadow: 0 3px 4px rgba(68,48,140,.10); }
.mfo-coins span:nth-child(1) { bottom: 0; }
.mfo-coins span:nth-child(2) { bottom: 15px; }
.mfo-coins span:nth-child(3) { bottom: 30px; }
.mfo-coins span:nth-child(4) { bottom: 45px; }

.mfo-catalog-section { padding: 8px 0 34px; }
.mfo-catalog {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    gap: 27px;
    align-items: start;
}
.mfo-filters {
    position: sticky;
    top: 18px;
    padding: 22px 18px 18px;
    border: 1px solid var(--mfo-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 5px 25px rgba(32,39,86,.025);
}
.mfo-filters__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.mfo-filters__head h2 { margin: 0; font-size: 17px; }
.mfo-reset { padding: 0; border: 0; color: var(--mfo-purple); background: transparent; font-size: 11px; font-weight: 800; }
.mfo-filter-group { margin: 0; padding: 17px 0; border: 0; border-top: 1px solid #f0f2f8; }
.mfo-filters__head + .mfo-filter-group { border-top: 0; padding-top: 3px; }
.mfo-filter-group h3,
.mfo-filter-group legend { margin: 0 0 12px; padding: 0; color: #1f2b4d; font-size: 11px; font-weight: 850; }
.mfo-filter-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mfo-filter-pair label {
    min-width: 0;
    height: 38px;
    padding: 0 8px;
    border: 1px solid var(--mfo-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 3px;
    color: #8992ab;
    background: #fff;
    font-size: 9px;
}
.mfo-filter-pair input { width: 100%; min-width: 0; padding: 0; border: 0; outline: 0; color: #263252; background: transparent; font-size: 9px; font-weight: 700; appearance: textfield; }
.mfo-filter-pair input::-webkit-inner-spin-button { appearance: none; }
.mfo-filter-pair b { color: #263252; font-size: 9px; }
.mfo-dual-range {
    --range-start: 0%;
    --range-end: 100%;
    position: relative;
    height: 20px;
    margin: 12px 0 0;
}
.mfo-dual-range::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(
        to right,
        #dfe3ef 0 var(--range-start),
        var(--mfo-purple) var(--range-start) var(--range-end),
        #dfe3ef var(--range-end) 100%
    );
    transform: translateY(-50%);
    pointer-events: none;
}
.mfo-range {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 20px;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    pointer-events: none;
    -webkit-appearance: none;
    appearance: none;
}
.mfo-range::-webkit-slider-runnable-track { height: 4px; background: transparent; }
.mfo-range::-moz-range-track { height: 4px; background: transparent; }
.mfo-range::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
    margin-top: -5px;
    border: 2px solid var(--mfo-purple);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(93,61,224,.16);
    cursor: pointer;
    pointer-events: auto;
    -webkit-appearance: none;
    appearance: none;
}
.mfo-range::-moz-range-thumb {
    width: 12px;
    height: 12px;
    border: 2px solid var(--mfo-purple);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(93,61,224,.16);
    cursor: pointer;
    pointer-events: auto;
}
.mfo-range--min { z-index: 2; }
.mfo-range--max { z-index: 3; }
.mfo-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(111,74,255,.16); }
.mfo-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(111,74,255,.16); }
.mfo-check,
.mfo-radio { display: flex; align-items: center; gap: 9px; min-height: 30px; color: #53607e; font-size: 10px; cursor: pointer; }
.mfo-check input,
.mfo-radio input { width: 15px; height: 15px; margin: 0; accent-color: var(--mfo-purple); }
.mfo-filter-group--toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #243151; font-size: 10px; font-weight: 800; }
.mfo-switch { position: relative; display: inline-flex; cursor: pointer; }
.mfo-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mfo-switch > span:not(.screen-reader-text) { width: 38px; height: 21px; border-radius: 999px; background: #dfe3ef; transition: .2s ease; }
.mfo-switch > span:not(.screen-reader-text)::after { content: ""; position: absolute; width: 17px; height: 17px; top: 2px; left: 2px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.15); transition: .2s ease; }
.mfo-switch input:checked + span { background: var(--mfo-purple); }
.mfo-switch input:checked + span::after { transform: translateX(17px); }
.mfo-filter-submit { width: 100%; min-height: 44px; margin-top: 15px; border: 1px solid #8d73ff; border-radius: 9px; color: var(--mfo-purple); background: #fff; font-size: 10px; font-weight: 800; }
.mfo-filter-submit:hover { background: #f7f5ff; }

.mfo-results { min-width: 0; }
.mfo-results__toolbar {
    min-height: 58px;
    margin-bottom: 19px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.mfo-tabs { display: flex; flex-wrap: wrap; gap: 4px; }
.mfo-tab {
    min-height: 42px;
    padding: 0 17px;
    border: 0;
    border-radius: 8px;
    color: #687492;
    background: transparent;
    font-size: 10px;
    font-weight: 750;
    white-space: nowrap;
}
.mfo-tab:hover { color: var(--mfo-purple); background: #f8f6ff; }
.mfo-tab.is-active { color: #fff; background: linear-gradient(135deg, #7756ff, #6338f4); box-shadow: 0 8px 18px rgba(104,66,255,.19); }
.mfo-sort select {
    min-width: 163px;
    height: 42px;
    padding: 0 32px 0 14px;
    border: 1px solid var(--mfo-border);
    border-radius: 9px;
    color: #53607e;
    outline: 0;
    background: #fff;
    font-size: 10px;
}

.mfo-offers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mfo-offer-card {
    min-width: 0;
    padding: 20px 18px 15px;
    border: 1px solid var(--mfo-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 3px 16px rgba(25,36,81,.018);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.mfo-offer-card:hover { transform: translateY(-2px); border-color: #ddd9f8; box-shadow: 0 12px 30px rgba(45,37,100,.07); }
.mfo-offer-card[hidden] { display: none !important; }
.mfo-offer-card__head { min-height: 63px; display: flex; align-items: flex-start; gap: 13px; }
.mfo-company-logo {
    flex: 0 0 47px;
    width: 47px;
    height: 47px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 6px 12px rgba(59,45,140,.12);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -.05em;
}
.mfo-company-logo--purple { background: linear-gradient(135deg,#8b56ff,#5c25f1); }
.mfo-company-logo--black { background: #0d0d0f; color: #ffd411; }
.mfo-company-logo--blue { background: linear-gradient(135deg,#2e8cff,#245bd8); }
.mfo-company-logo--lime { background: linear-gradient(135deg,#8fe600,#56bd00); }
.mfo-company-logo--pink { background: linear-gradient(135deg,#f34a83,#df1e5c); }
.mfo-company-logo--violet { background: linear-gradient(135deg,#8b55ff,#6638e9); }
.mfo-company-logo--azure { background: linear-gradient(135deg,#159eff,#0870e5); }
.mfo-company-logo--green { background: linear-gradient(135deg,#9bdd00,#48b800); }
.mfo-company-logo--teal { background: linear-gradient(135deg,#37c8c2,#0a9f99); }
.mfo-company-title { min-width: 0; padding-top: 1px; }
.mfo-company-title h3 { margin: 0 0 6px; overflow: hidden; color: #111c41; font-size: 15px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
.mfo-badge { display: inline-flex; max-width: 100%; padding: 3px 7px; border-radius: 5px; font-size: 7px; font-weight: 800; white-space: nowrap; }
.mfo-badge--cyan { color: #0c6c7c; background: #dbf5f6; }
.mfo-badge--yellow { color: #9a6200; background: #fff1c9; }
.mfo-badge--green { color: #1d7b50; background: #dcf6e9; }
.mfo-badge--red { color: #b62241; background: #ffe0e7; }
.mfo-badge--violet { color: #5d45b4; background: #eee9ff; }
.mfo-badge--blue { color: #1757a6; background: #e0efff; }
.mfo-offer-card__terms { display: grid; gap: 8px; margin: 13px 0 14px; }
.mfo-offer-card__terms div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.mfo-offer-card__terms dt { color: #7c87a4; font-size: 9px; }
.mfo-offer-card__terms dd { margin: 0; color: #122043; text-align: right; font-size: 9px; font-weight: 850; }
.mfo-offer-card__rating { min-height: 28px; display: flex; align-items: center; gap: 14px; margin-bottom: 11px; font-size: 9px; }
.mfo-rating { color: #35405c; font-weight: 750; }
.mfo-rating span { color: #ffb000; font-size: 14px; }
.mfo-approval { color: #1ca875; font-weight: 750; }
.mfo-primary-button { display: grid; place-items: center; min-height: 40px; border-radius: 6px; color: #fff; background: linear-gradient(90deg,#7551ff,#6135f1); box-shadow: 0 7px 14px rgba(98,55,241,.18); font-size: 9px; font-weight: 850; }
.mfo-primary-button:hover { background: linear-gradient(90deg,#6541f3,#5327e2); }
.mfo-details-link { display: block; margin-top: 9px; color: var(--mfo-purple); text-align: center; font-size: 8px; font-weight: 700; }
.mfo-empty { padding: 34px 20px; border: 1px dashed #d9dcef; border-radius: 14px; color: #687492; background: #fbfbff; text-align: center; }
.mfo-more-wrap { display: flex; justify-content: center; padding: 16px 0 0; }
.mfo-more-button { min-width: 250px; min-height: 42px; padding: 0 18px; border: 1px solid var(--mfo-border); border-radius: 8px; color: #596581; background: #fff; font-size: 10px; font-weight: 700; }
.mfo-more-button:hover { border-color: #d6d2ed; color: var(--mfo-purple); }
.mfo-more-button:disabled, .mfo-filter-submit:disabled { opacity: .65; cursor: wait; }

.mfo-trust-strip {
    margin-top: 22px;
    padding: 18px 25px;
    border: 1px solid var(--mfo-border);
    border-radius: 15px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    background: #fff;
}
.mfo-trust-item { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; align-items: center; }
.mfo-trust-icon { width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.mfo-trust-item strong { display: block; margin-bottom: 4px; color: #1a2748; font-size: 10px; }
.mfo-trust-item small { display: block; color: #72809e; font-size: 8px; line-height: 1.55; }

.mfo-faq-section { padding: 0 0 42px; }
.mfo-faq-section h2 { margin: 0 0 16px; font-size: clamp(24px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.02em; }
.mfo-faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 7px 28px; }
.mfo-faq-item { border: 1px solid var(--mfo-border); border-radius: 8px; background: #fff; overflow: hidden; }
.mfo-faq-item summary { min-height: 39px; padding: 9px 13px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #1d2949; cursor: pointer; list-style: none; font-size: 10px; font-weight: 650; }
.mfo-faq-item summary::-webkit-details-marker { display: none; }
.mfo-faq-item summary span { flex: 0 0 auto; color: var(--mfo-purple); font-size: 20px; font-weight: 500; transition: transform .2s ease; }
.mfo-faq-item[open] summary span { transform: rotate(45deg); }
.mfo-faq-item__answer { padding: 0 13px 13px; color: #687492; font-size: 10px; line-height: 1.6; }

@media (max-width: 1220px) {
    .mfo-hero__layout { grid-template-columns: minmax(0, 1fr) 390px; }
    .mfo-catalog { grid-template-columns: 250px minmax(0,1fr); gap: 18px; }
    .mfo-offers-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .mfo-trust-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 960px) {
    .mfo-hero__layout { grid-template-columns: 1fr; min-height: 0; padding-bottom: 26px; }
    .mfo-hero__visual { display: none; }
    .mfo-hero__copy h1 { font-size: clamp(38px, 7vw, 58px); }
    .mfo-catalog { grid-template-columns: 1fr; }
    .mfo-filters { position: static; }
    .mfo-results__toolbar { align-items: flex-start; flex-direction: column; }
    .mfo-tabs { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; scrollbar-width: none; }
    .mfo-tabs::-webkit-scrollbar { display: none; }
    .mfo-sort { align-self: flex-end; }
}

@media (max-width: 680px) {
    .mfo-page { font-size: 13px; }
    .mfo-breadcrumbs { padding-top: 15px; }
    .mfo-hero__layout { padding-top: 14px; }
    .mfo-hero__copy h1 { font-size: clamp(34px, 10vw, 48px); }
    .mfo-hero__copy > p { margin-top: 17px; font-size: 15px; line-height: 1.55; }
    .mfo-desktop-br { display: none; }
    .mfo-hero__features { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 8px; margin-top: 28px; }
    .mfo-mini-feature { min-width: 0; font-size: 11px; }
    .mfo-catalog-section { padding-top: 18px; }
    .mfo-filters { padding: 18px 14px; }
    .mfo-filter-pair { grid-template-columns: 1fr 1fr; }
    .mfo-offers-grid { grid-template-columns: 1fr; }
    .mfo-offer-card { padding: 18px 16px 14px; }
    .mfo-company-title h3 { font-size: 16px; }
    .mfo-offer-card__terms dt,
    .mfo-offer-card__terms dd,
    .mfo-offer-card__rating,
    .mfo-primary-button { font-size: 10px; }
    .mfo-details-link { font-size: 9px; }
    .mfo-trust-strip { grid-template-columns: 1fr; padding: 16px; }
    .mfo-faq-grid { grid-template-columns: 1fr; gap: 7px; }
    .mfo-faq-item summary,
    .mfo-faq-item__answer { font-size: 11px; }
}

/* ============================================================
   Single MFO offer page — single-offer.php
   ============================================================ */
body.single-finlo_offer,
body.single-finlo_offer .site-header,
body.single-finlo_offer .site-main { background: #fff; }

.single-offer-page {
    --sof-purple: #613cff;
    --sof-purple-dark: #4d27e6;
    --sof-text: #111d42;
    --sof-muted: #66728f;
    --sof-border: #e7e9f2;
    --sof-soft: #f7f5ff;
    color: var(--sof-text);
    background: #fff;
    padding-bottom: 42px;
}
.single-offer-page .container { width: min(calc(100% - 64px), 1360px); }
.sof-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0 18px;
    color: #7b86a0;
    font-size: 13px;
    font-weight: 600;
}
.sof-breadcrumbs a { color: #56627d; }
.sof-breadcrumbs a:hover { color: var(--sof-purple); }
.sof-title {
    margin: 0 0 28px;
    color: #111d42;
    font-size: clamp(30px, 3.1vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
}
.sof-title span { font-weight: 750; }

.sof-summary {
    padding: 30px 34px 28px;
    border: 1px solid var(--sof-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 34px rgba(39, 41, 83, .055);
}
.sof-summary__top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.sof-company { display: flex; align-items: center; gap: 22px; min-width: 0; }
.sof-logo {
    flex: 0 0 98px;
    width: 98px;
    height: 98px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #835bff 0%, #5627ea 100%);
    box-shadow: 0 12px 24px rgba(99, 57, 245, .2), inset 0 0 0 1px rgba(255,255,255,.15);
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -.06em;
}
.sof-company__copy { min-width: 0; }
.sof-company__name-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.sof-company__name-row h2 { margin: 0; font-size: 28px; line-height: 1.1; letter-spacing: -.03em; }
.sof-badge { padding: 5px 10px; border-radius: 999px; color: #1d7f62; background: #dcf6eb; font-size: 11px; font-weight: 800; }
.sof-rating-row { display: flex; align-items: center; gap: 9px; margin-top: 13px; color: #2b3756; font-size: 13px; }
.sof-rating-row a { font-weight: 700; }
.sof-rating-row a:hover { color: var(--sof-purple); }
.sof-star { display: inline-flex; color: #ffb000; }
.sof-star svg { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }
.sof-favorite {
    flex: 0 0 auto;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid #dfe3ef;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #5a3cf1;
    background: #fff;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}
.sof-favorite:hover { border-color: #cfc8ff; background: #faf9ff; }
.sof-favorite.is-active { color: #fff; border-color: var(--sof-purple); background: var(--sof-purple); }
.sof-favorite__icon { display: inline-flex; }
.sof-favorite svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.sof-favorite.is-active svg { fill: currentColor; }
.sof-summary__divider { height: 1px; margin: 27px 0 24px; background: var(--sof-border); }
.sof-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.sof-metric { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 15px; align-items: center; }
.sof-icon-bubble {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: inline-grid;
    place-items: center;
    color: var(--sof-purple);
    background: #f4f1ff;
}
.sof-icon-bubble svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sof-metric small { display: block; margin-bottom: 5px; color: #6b7690; font-size: 12px; font-weight: 650; }
.sof-metric strong { display: block; color: #101c40; font-size: 19px; line-height: 1.2; }
.sof-summary__cta { display: grid; place-items: center; margin-top: 28px; }
.sof-primary-button {
    min-width: 215px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 8px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(90deg, #6e47ff, #5730e9);
    box-shadow: 0 10px 22px rgba(93, 51, 235, .2);
    font-size: 14px;
    font-weight: 850;
    transition: transform .18s ease, box-shadow .18s ease;
}
.sof-primary-button:hover { color: #fff; transform: translateY(-1px); box-shadow: 0 14px 26px rgba(93, 51, 235, .25); }
.sof-summary__cta p { margin: 10px 0 0; display: flex; align-items: center; gap: 7px; color: #52607d; font-size: 12px; }
.sof-summary__cta p span { display: inline-flex; color: #f1a400; }
.sof-summary__cta p svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }

.sof-tabs {
    margin-top: 28px;
    border-bottom: 1px solid var(--sof-border);
    display: grid;
    grid-template-columns: repeat(6, minmax(0,1fr));
    align-items: end;
}
.sof-tabs a {
    position: relative;
    min-height: 64px;
    padding: 0 12px 17px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 8px;
    color: #33405f;
    text-align: center;
    font-size: 13px;
    font-weight: 800;
}
.sof-tabs a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: transparent; border-radius: 999px 999px 0 0; }
.sof-tabs a:hover { color: var(--sof-purple); }
.sof-tabs a.is-active { color: var(--sof-purple); }
.sof-tabs a.is-active::after { background: var(--sof-purple); }
.sof-tabs a span { min-width: 34px; padding: 2px 7px; border-radius: 999px; color: #626d86; background: #eef0f6; font-size: 10px; }

.sof-content-card {
    margin-top: 13px;
    padding: 0 30px 25px;
    border: 1px solid var(--sof-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(39, 41, 83, .035);
}
.sof-section { scroll-margin-top: 18px; padding: 28px 0 2px; }
.sof-section--bordered { margin-top: 20px; padding-top: 28px; border-top: 1px solid var(--sof-border); }
.sof-section h2 { margin: 0 0 15px; color: #111d42; font-size: 20px; line-height: 1.25; letter-spacing: -.02em; }
.sof-lead { max-width: 1120px; margin: 0; color: #53607d; font-size: 13px; line-height: 1.9; }

.sof-benefits { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 24px; }
.sof-benefit { display: grid; grid-template-columns: 58px minmax(0,1fr); gap: 14px; align-items: center; }
.sof-benefit strong { display: block; margin-bottom: 3px; color: #1b2848; font-size: 13px; line-height: 1.35; }
.sof-benefit p { margin: 0; color: #6a7693; font-size: 11px; line-height: 1.55; }

.sof-two-column { display: grid; gap: 30px; align-items: center; }
.sof-two-column--terms { grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); }
.sof-two-column--requirements { grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr); align-items: stretch; }
.sof-bullet-list { margin: 0; padding-left: 18px; color: #53607d; font-size: 12px; line-height: 1.95; }
.sof-bullet-list strong { color: #172342; }
.sof-check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: #53607d; font-size: 12px; }
.sof-check-list li { display: flex; align-items: center; gap: 11px; }
.sof-check-list span { flex: 0 0 auto; display: inline-flex; color: var(--sof-purple); }
.sof-check-list svg { width: 19px; height: 19px; fill: var(--sof-purple); stroke: #fff; stroke-width: 2; }

.sof-terms-art { width:min(100%,430px); justify-self:center; display:flex; align-items:center; justify-content:center; min-height:220px; }
.sof-terms-art img { display:block; width:100%; height:auto; max-height:270px; object-fit:contain; }

.sof-howto { padding: 22px 26px; border-radius: 13px; background: linear-gradient(135deg,#f7f4ff,#f0edff); }
.sof-howto h3 { margin: 0 0 16px; color: var(--sof-purple); font-size: 15px; }
.sof-howto ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.sof-howto li { display: grid; grid-template-columns: 28px minmax(0,1fr); gap: 12px; align-items: start; }
.sof-howto li > span { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--sof-purple); font-size: 12px; font-weight: 850; }
.sof-howto strong { display: block; color: #243150; font-size: 12px; }
.sof-howto p { margin: 3px 0 0; color: #6b7690; font-size: 10px; line-height: 1.5; }

.sof-methods { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.sof-method { min-width: 0; padding: 0 24px; border-right: 1px solid var(--sof-border); display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; align-items: center; }
.sof-method:first-child { padding-left: 0; }
.sof-method:last-child { border-right: 0; padding-right: 0; }
.sof-method > span { width: 42px; height: 42px; border-radius:50%; display:grid; place-items:center; color:var(--sof-purple); background:#f4f1ff; }
.sof-method svg { width:21px; height:21px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.sof-method strong { display:block; color:#243150; font-size:11px; line-height:1.35; }
.sof-method p { margin:3px 0 0; color:#78839c; font-size:10px; line-height:1.45; }

.sof-section-heading-row { display:flex; align-items:center; justify-content:space-between; gap:20px; }
.sof-section-heading-row h2 { margin-bottom:0; }
.sof-reviews-toggle { border:0; padding:4px 0; color:var(--sof-purple); background:transparent; font-size:12px; font-weight:800; }
.sof-reviews-toggle:hover { color:var(--sof-purple-dark); }
.sof-reviews { margin-top:16px; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.sof-review { padding:17px 18px; border:1px solid var(--sof-border); border-radius:11px; background:#fff; }
.sof-review__head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.sof-review__head strong { display:block; color:#172342; font-size:11px; }
.sof-review__head small { display:block; margin-top:2px; color:#7b8499; font-size:8px; }
.sof-review__head > span { color:#ffb000; font-size:15px; letter-spacing:1px; white-space:nowrap; }
.sof-review > p { margin:12px 0 0; color:#303c59; font-size:10px; line-height:1.6; }

.sof-disclaimer { margin-top:24px; padding:17px 20px; border-radius:11px; display:grid; grid-template-columns:34px minmax(0,1fr); gap:14px; align-items:center; background:linear-gradient(90deg,#f8f6ff,#fbfaff); }
.sof-disclaimer__icon { width:34px; height:34px; border-radius:50%; display:grid; place-items:center; color:var(--sof-purple); background:#efebff; }
.sof-disclaimer svg { width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:2; }
.sof-disclaimer p { margin:0; color:#65708a; font-size:10px; line-height:1.55; }

@media (max-width: 1100px) {
    .sof-metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sof-benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sof-tabs { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .sof-tabs a { min-height:52px; padding-bottom:12px; }
    .sof-methods { grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 0; }
    .sof-method:nth-child(2) { border-right:0; }
    .sof-method:nth-child(3) { padding-left:0; }
    .sof-reviews { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 760px) {
    .single-offer-page .container { width:min(calc(100% - 28px), 1360px); }
    .sof-breadcrumbs { padding-top:16px; font-size:11px; }
    .sof-title { margin-bottom:20px; font-size:30px; }
    .sof-summary { padding:20px 16px; border-radius:13px; }
    .sof-summary__top { align-items:flex-start; }
    .sof-company { gap:14px; }
    .sof-logo { flex-basis:68px; width:68px; height:68px; border-radius:11px; font-size:34px; }
    .sof-company__name-row h2 { font-size:22px; }
    .sof-badge { font-size:9px; }
    .sof-rating-row { margin-top:8px; font-size:11px; }
    .sof-favorite { width:46px; min-height:46px; padding:0; justify-content:center; }
    .sof-favorite [data-favorite-label] { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); }
    .sof-summary__divider { margin:20px 0; }
    .sof-metrics { grid-template-columns:1fr; gap:14px; }
    .sof-metric { grid-template-columns:48px minmax(0,1fr); }
    .sof-icon-bubble { width:48px; height:48px; }
    .sof-icon-bubble svg { width:23px; height:23px; }
    .sof-metric small { font-size:11px; }
    .sof-metric strong { font-size:16px; }
    .sof-primary-button { width:100%; }
    .sof-tabs { display:flex; overflow-x:auto; gap:8px; margin-top:20px; scrollbar-width:none; }
    .sof-tabs::-webkit-scrollbar { display:none; }
    .sof-tabs a { flex:0 0 auto; min-height:46px; padding:0 11px 11px; white-space:nowrap; font-size:11px; }
    .sof-content-card { margin-top:10px; padding:0 16px 18px; border-radius:13px; }
    .sof-section { padding-top:22px; }
    .sof-section--bordered { margin-top:16px; padding-top:22px; }
    .sof-section h2 { font-size:18px; }
    .sof-lead { font-size:12px; line-height:1.7; }
    .sof-benefits { grid-template-columns:1fr; gap:16px; }
    .sof-benefit { grid-template-columns:48px minmax(0,1fr); }
    .sof-two-column--terms,
    .sof-two-column--requirements { grid-template-columns:1fr; }
    .sof-terms-art { min-height:180px; width:min(100%,390px); }
    .sof-terms-art img { max-height:235px; }
    .sof-methods { grid-template-columns:1fr; gap:14px; }
    .sof-method,
    .sof-method:nth-child(3) { padding:0 0 14px; border-right:0; border-bottom:1px solid var(--sof-border); }
    .sof-method:last-child { border-bottom:0; padding-bottom:0; }
    .sof-section-heading-row { align-items:flex-start; flex-direction:column; gap:4px; }
    .sof-reviews { grid-template-columns:1fr; }
    .sof-disclaimer { grid-template-columns:28px minmax(0,1fr); padding:14px; }
}

/* page-mfo: hide the hero illustration completely on mobile */
@media (max-width: 768px) {
    .mfo-page .mfo-hero__visual {
        display: none !important;
    }

    .mfo-page .mfo-hero__layout {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   Favorites page — page-favorites.php
   ============================================================ */
.menu-item--finlo-favorites > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.finlo-favorites-count {
    flex: 0 0 auto;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    color: #fff;
    background: var(--finlo-primary);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
}
.finlo-favorites-count[hidden] { display: none !important; }

body.page-favorites,
body.page-favorites .site-header,
body.page-favorites .site-main { background: #fff; }

.favorites-page {
    --fav-purple: #613cff;
    --fav-purple-dark: #4f2be4;
    --fav-text: #111d42;
    --fav-muted: #6c7896;
    --fav-border: #e7eaf3;
    --fav-soft: #f8f7ff;
    min-height: 62vh;
    padding-bottom: 64px;
    color: var(--fav-text);
    background: #fff;
}
.favorites-page__container { width: min(calc(100% - 64px), 1360px); }
.favorites-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0 18px;
    color: #7b86a0;
    font-size: 13px;
    font-weight: 600;
}
.favorites-breadcrumbs a { color: #56627d; }
.favorites-breadcrumbs a:hover { color: var(--fav-purple); }

.favorites-hero {
    margin-bottom: 28px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
}
.favorites-hero h1 {
    margin: 0;
    color: var(--fav-text);
    font-size: clamp(34px, 3.6vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.favorites-hero p {
    max-width: 720px;
    margin: 12px 0 0;
    color: var(--fav-muted);
    font-size: 15px;
}
.favorites-hero__counter {
    flex: 0 0 auto;
    min-width: 138px;
    padding: 14px 18px;
    border: 1px solid var(--fav-border);
    border-radius: 14px;
    background: var(--fav-soft);
    text-align: center;
}
.favorites-hero__counter strong {
    display: block;
    color: var(--fav-purple);
    font-size: 28px;
    line-height: 1;
}
.favorites-hero__counter span {
    display: block;
    margin-top: 5px;
    color: var(--fav-muted);
    font-size: 11px;
    font-weight: 700;
}

.favorites-content {
    padding: 22px;
    border: 1px solid var(--fav-border);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(32, 35, 81, .045);
}
.favorites-grid { display: grid; gap: 16px; }
.favorites-grid[hidden] { display: none !important; }

.favorite-offer-card {
    padding: 22px;
    border: 1px solid var(--fav-border);
    border-radius: 16px;
    background: #fff;
    transition: opacity .16s ease, transform .16s ease, border-color .2s ease, box-shadow .2s ease;
}
.favorite-offer-card:hover {
    border-color: #dad6f5;
    box-shadow: 0 12px 30px rgba(45, 37, 100, .06);
}
.favorite-offer-card[hidden] { display: none !important; }
.favorite-offer-card.is-removing { opacity: 0; transform: translateY(-4px); }

.favorite-offer-card__main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.favorite-offer-card__brand { min-width: 0; display: flex; align-items: center; gap: 16px; }
.favorite-offer-card__brand .mfo-company-logo {
    flex-basis: 64px;
    width: 64px;
    height: 64px;
    border-radius: 13px;
    font-size: 29px;
}
.favorite-offer-card__title { min-width: 0; }
.favorite-offer-card__title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.favorite-offer-card__title h2 {
    margin: 0;
    color: var(--fav-text);
    font-size: 22px;
    line-height: 1.2;
}
.favorite-offer-card__title .mfo-badge { padding: 5px 9px; border-radius: 7px; font-size: 9px; }
.favorite-offer-card__rating { display: flex; align-items: center; gap: 16px; margin-top: 9px; font-size: 12px; font-weight: 750; }
.favorite-offer-card__rating span:first-child { color: #35405c; }
.favorite-offer-card__rating span:first-child b { color: #ffb000; font-size: 17px; }
.favorite-offer-card__rating span:last-child { color: #1ca875; }

.favorite-remove {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #e0e3ef;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #6653b8;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
    transition: .2s ease;
}
.favorite-remove:hover { border-color: #cdc6f8; color: var(--fav-purple); background: #faf9ff; }
.favorite-remove:disabled { opacity: .55; cursor: wait; }
.favorite-remove svg { width: 17px; height: 17px; fill: currentColor; stroke: currentColor; stroke-width: 1.5; }

.favorite-offer-card__divider { height: 1px; margin: 19px 0; background: var(--fav-border); }
.favorite-offer-card__terms {
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.favorite-offer-card__terms div { min-width: 0; padding-right: 18px; border-right: 1px solid var(--fav-border); }
.favorite-offer-card__terms div:last-child { padding-right: 0; border-right: 0; }
.favorite-offer-card__terms dt { color: var(--fav-muted); font-size: 11px; font-weight: 650; }
.favorite-offer-card__terms dd { margin: 5px 0 0; color: var(--fav-text); font-size: 15px; font-weight: 850; }

.favorite-offer-card__actions { margin-top: 20px; display: flex; align-items: center; gap: 10px; }
.favorite-primary-button,
.favorite-details-button {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 850;
}
.favorite-primary-button {
    min-width: 190px;
    color: #fff;
    background: linear-gradient(90deg, #7551ff, #6135f1);
    box-shadow: 0 8px 18px rgba(98, 55, 241, .18);
}
.favorite-primary-button:hover { color: #fff; background: linear-gradient(90deg, #6541f3, #5327e2); }
.favorite-details-button { border: 1px solid #dedff0; color: var(--fav-purple); background: #fff; }
.favorite-details-button:hover { border-color: #cfc8ff; background: #faf9ff; }

.favorites-empty {
    min-height: 360px;
    padding: 48px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.favorites-empty[hidden] { display: none !important; }
.favorites-empty__icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--fav-purple);
    background: #f1eeff;
}
.favorites-empty__icon svg { width: 31px; height: 31px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.favorites-empty h2 { margin: 20px 0 7px; font-size: 25px; }
.favorites-empty p { max-width: 520px; margin: 0; color: var(--fav-muted); font-size: 14px; }
.favorites-empty a {
    min-height: 44px;
    margin-top: 22px;
    padding: 0 22px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: var(--fav-purple);
    font-size: 12px;
    font-weight: 850;
}
.favorites-empty a:hover { color: #fff; background: var(--fav-purple-dark); }
.favorites-noscript { padding: 16px; border-radius: 10px; color: #6a5879; background: #fff4e9; font-size: 13px; }


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .favorites-page__container { width: min(calc(100% - 36px), 1360px); }
    .favorite-offer-card__terms { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 0; }
    .favorite-offer-card__terms div:nth-child(2) { padding-right: 0; border-right: 0; }
    .favorite-offer-card__terms div:nth-child(3),
    .favorite-offer-card__terms div:nth-child(4) { padding-top: 14px; border-top: 1px solid var(--fav-border); }
}

@media (max-width: 680px) {
    .favorites-page { padding-bottom: 38px; }
    .favorites-page__container { width: min(calc(100% - 28px), 1360px); }
    .favorites-breadcrumbs { padding: 16px 0 13px; font-size: 11px; }
    .favorites-hero { align-items: flex-start; margin-bottom: 20px; }
    .favorites-hero h1 { font-size: 36px; }
    .favorites-hero p { margin-top: 8px; font-size: 13px; }
    .favorites-hero__counter { min-width: 92px; padding: 10px 12px; border-radius: 11px; }
    .favorites-hero__counter strong { font-size: 23px; }
    .favorites-hero__counter span { font-size: 9px; }
    .favorites-content { padding: 12px; border-radius: 15px; }
    .favorite-offer-card { padding: 16px; border-radius: 13px; }
    .favorite-offer-card__main { align-items: flex-start; gap: 12px; }
    .favorite-offer-card__brand { gap: 11px; }
    .favorite-offer-card__brand .mfo-company-logo { flex-basis: 50px; width: 50px; height: 50px; border-radius: 10px; font-size: 23px; }
    .favorite-offer-card__title h2 { font-size: 18px; }
    .favorite-offer-card__title .mfo-badge { padding: 3px 6px; font-size: 7px; }
    .favorite-offer-card__rating { gap: 9px; margin-top: 6px; font-size: 10px; }
    .favorite-remove { width: 42px; min-height: 42px; padding: 0; }
    .favorite-remove span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .favorite-offer-card__divider { margin: 15px 0; }
    .favorite-offer-card__terms { grid-template-columns: 1fr 1fr; gap: 13px 0; }
    .favorite-offer-card__terms div { padding-right: 12px; }
    .favorite-offer-card__terms div:nth-child(2) { padding-left: 12px; }
    .favorite-offer-card__terms div:nth-child(3) { padding-right: 12px; }
    .favorite-offer-card__terms div:nth-child(4) { padding-left: 12px; }
    .favorite-offer-card__terms dt { font-size: 9px; }
    .favorite-offer-card__terms dd { font-size: 12px; }
    .favorite-offer-card__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .favorite-primary-button, .favorite-details-button { min-width: 0; min-height: 42px; padding: 0 10px; font-size: 10px; }
    .favorites-empty { min-height: 320px; padding: 36px 18px; }
    .favorites-empty h2 { font-size: 21px; }
    .favorites-empty p { font-size: 12px; }
}


/* Dynamic offer logos from WordPress admin */
.mfo-company-logo img,
.sof-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: inherit;
}
.sof-lead p { margin: 0 0 12px; }
.sof-lead p:last-child { margin-bottom: 0; }

/* ============================================================
   Universal catalogue sections managed from WP Admin
   ============================================================ */
.category-card__icon--symbol {
    border-radius: 18px;
    display: grid;
    place-items: center;
    color: #6d45f5;
    background: linear-gradient(145deg, #f2efff, #e5ddff);
    font-size: 27px;
    font-weight: 900;
    line-height: 1;
}
.category-card__icon--image { border-radius: 16px; object-fit: contain; background:#f8f7ff; }
.offer-row__icon--generated {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-bottom: 0;
    border-radius: 11px;
    display: grid;
    place-items: center;
    overflow: hidden;
    color: #fff;
    font-weight: 900;
    font-size: 17px;
}
.offer-row__icon--generated img { width:100%; height:100%; object-fit:contain; background:#fff; }
.offer-list__empty { padding: 20px 4px; color:#79839a; font-size:13px; line-height:1.55; }

.finlo-section-hero__visual { position: relative; overflow: hidden; }
.finlo-section-hero__image,
.finlo-section-hero__visual > .rublics-section-icon-svg {
    width: min(100%, 490px);
    max-height: 330px;
    object-fit: contain;
    overflow: visible;
    filter: drop-shadow(0 22px 34px rgba(58, 35, 140, .14));
}
.finlo-section-hero__symbol {
    width: 180px;
    height: 180px;
    border-radius: 48px;
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #8564ff, #5c31e8);
    box-shadow: 0 34px 65px rgba(90, 51, 224, .28);
    font-size: 78px;
    font-weight: 900;
    transform: rotate(-7deg);
}
.finlo-section-hero__cards span {
    position: absolute;
    width: 160px;
    height: 96px;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(238,233,255,.96));
    box-shadow: 0 18px 34px rgba(61, 43, 121, .14);
}
.finlo-section-hero__cards span:nth-child(1){right:18px;top:42px;transform:rotate(10deg)}
.finlo-section-hero__cards span:nth-child(2){right:72px;bottom:34px;transform:rotate(-8deg)}
.finlo-section-hero__cards span:nth-child(3){left:28px;bottom:8px;width:86px;height:86px;border-radius:50%;background:linear-gradient(145deg,#ffd66b,#ffad34)}
.finlo-section-hero .mfo-mini-feature small { display:block; max-width:190px; margin-top:2px; color:#78829c; font-size:8px; line-height:1.35; font-weight:500; }
.finlo-catalog-page .mfo-filter-group legend { margin-bottom: 10px; color:#1d2949; font-size:10px; font-weight:800; }
.finlo-catalog-page .mfo-offer-card__terms { min-height: 68px; }
.finlo-catalog-page .mfo-offer-card__terms dd { overflow-wrap:anywhere; }
.finlo-section-content { padding: 0 0 46px; }
.finlo-section-content__card { padding: 28px 30px; border:1px solid var(--mfo-border); border-radius:16px; background:#fff; color:#596681; font-size:14px; line-height:1.75; }
.finlo-section-content__card h2,.finlo-section-content__card h3 { color:#172440; }
.finlo-section-content__card > :first-child { margin-top:0; }
.finlo-section-content__card > :last-child { margin-bottom:0; }

@media (max-width: 680px) {
    .category-card__icon--symbol { font-size:30px; }
    .finlo-section-content__card { padding:20px 18px; border-radius:14px; font-size:13px; }
    .finlo-section-hero .mfo-mini-feature small { font-size:8px; }
}


/* ============================================================
   All sections page + homepage "Все разделы" link
   ============================================================ */
.categories-all-link {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}
.categories-all-link > a {
    min-height: 48px;
    padding: 0 20px 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 1px solid #dddff0;
    border-radius: 14px;
    background: rgba(255,255,255,.72);
    color: var(--finlo-primary);
    font-size: 15px;
    font-weight: 800;
    box-shadow: 0 10px 28px rgba(35,37,85,.04);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.categories-all-link > a:hover {
    transform: translateY(-2px);
    border-color: #cfc8ff;
    background: #fff;
    box-shadow: 0 14px 32px rgba(35,37,85,.08);
}
.all-categories-page { overflow: hidden; }
.all-categories-hero { padding-top: 32px; padding-bottom: 18px; }
.all-categories-hero__card {
    position: relative;
    min-height: 330px;
    padding: clamp(34px, 4.4vw, 64px);
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #e3e3f1;
    border-radius: 28px;
    background:
        radial-gradient(circle at 88% 18%, rgba(134,105,255,.18), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #f8f6ff 54%, #efebff 100%);
    box-shadow: 0 20px 54px rgba(35,37,85,.07);
}
.all-categories-hero__copy { position: relative; z-index: 2; max-width: 780px; }
.all-categories-hero__eyebrow,
.all-categories-list__kicker {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--finlo-primary);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.all-categories-hero h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.all-categories-hero__copy > p {
    max-width: 700px;
    margin: 22px 0 0;
    color: var(--finlo-muted);
    font-size: clamp(17px, 1.35vw, 21px);
    line-height: 1.6;
}
.all-categories-hero__meta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.all-categories-hero__meta span {
    min-height: 36px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    border: 1px solid #e0ddf5;
    border-radius: 999px;
    background: rgba(255,255,255,.75);
    color: #4b5371;
    font-size: 13px;
    font-weight: 700;
}
.all-categories-hero__visual {
    position: absolute;
    right: 4%;
    top: 50%;
    width: 320px;
    height: 250px;
    transform: translateY(-50%);
}
.all-categories-hero__orb {
    position: absolute;
    display: grid;
    place-items: center;
    border: 1px solid rgba(99,72,235,.14);
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    color: var(--finlo-primary);
    font-weight: 900;
    box-shadow: 0 18px 46px rgba(70,56,148,.12);
    backdrop-filter: blur(8px);
}
.all-categories-hero__orb--one { width: 118px; height: 118px; right: 80px; top: 66px; font-size: 48px; transform: rotate(-8deg); }
.all-categories-hero__orb--two { width: 82px; height: 82px; right: 4px; top: 14px; font-size: 32px; transform: rotate(9deg); }
.all-categories-hero__orb--three { width: 74px; height: 74px; left: 16px; bottom: 10px; font-size: 30px; transform: rotate(7deg); }

.all-categories-list { padding-bottom: 72px; }
.all-categories-list__head {
    margin-bottom: 26px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}
.all-categories-list__head .section-title { margin: 0; }
.all-categories-list__head > p {
    max-width: 510px;
    margin: 0 0 4px;
    color: var(--finlo-muted);
    font-size: 14px;
    line-height: 1.6;
    text-align: right;
}
.all-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}
.all-categories-card {
    min-height: 308px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e5e6f0;
    border-radius: 20px;
    background: rgba(255,255,255,.9);
    color: var(--finlo-text);
    box-shadow: 0 10px 30px rgba(35,37,85,.045);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.all-categories-card:hover {
    transform: translateY(-4px);
    border-color: #d1cbff;
    box-shadow: 0 18px 42px rgba(35,37,85,.09);
}
.all-categories-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}
.all-categories-card__icon {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(145deg, #f3f0ff, #e9e5ff);
    color: var(--finlo-primary);
    box-shadow: inset 0 0 0 1px rgba(90,57,255,.08);
}
.all-categories-card__icon--symbol { font-size: 34px; font-weight: 900; line-height: 1; }
.all-categories-card__icon--image { background: #f8f7ff; }
.all-categories-card__icon img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.all-categories-card__count {
    padding: 7px 9px;
    border-radius: 999px;
    background: #f5f4fa;
    color: #777e98;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}
.all-categories-card__body { margin-top: 24px; }
.all-categories-card__body h3 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -.02em;
}
.all-categories-card__body p {
    margin: 13px 0 0;
    color: var(--finlo-muted);
    font-size: 14px;
    line-height: 1.6;
}
.all-categories-card__footer {
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--finlo-primary);
    font-size: 14px;
    font-weight: 900;
}
.all-categories-empty {
    padding: 54px 28px;
    border: 1px dashed #d9d9e7;
    border-radius: 20px;
    background: rgba(255,255,255,.65);
    text-align: center;
}
.all-categories-empty h3 { margin: 0 0 10px; font-size: 22px; }
.all-categories-empty p { margin: 0; color: var(--finlo-muted); font-size: 14px; }

@media (max-width: 1180px) {
    .all-categories-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .all-categories-hero__visual { opacity: .72; right: 1%; }
    .all-categories-hero__copy { max-width: 68%; }
}
@media (max-width: 860px) {
    .all-categories-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .all-categories-hero__visual { display: none; }
    .all-categories-hero__copy { max-width: none; }
    .all-categories-list__head { align-items: flex-start; flex-direction: column; gap: 8px; }
    .all-categories-list__head > p { max-width: 620px; text-align: left; }
}
@media (max-width: 560px) {
    .categories-all-link { margin-top: 18px; }
    .categories-all-link > a { width: 100%; min-height: 46px; }
    .all-categories-hero { padding-top: 16px; }
    .all-categories-hero__card { min-height: 0; padding: 28px 20px; border-radius: 20px; }
    .all-categories-hero h1 { font-size: 38px; }
    .all-categories-hero__copy > p { margin-top: 16px; font-size: 16px; }
    .all-categories-hero__meta { margin-top: 20px; align-items: flex-start; flex-direction: column; }
    .all-categories-hero__meta span { min-height: 32px; font-size: 11px; }
    .all-categories-grid { grid-template-columns: 1fr; gap: 12px; }
    .all-categories-card { min-height: 250px; padding: 18px; border-radius: 16px; }
    .all-categories-card__icon { width: 62px; height: 62px; flex-basis: 62px; border-radius: 17px; }
    .all-categories-card__icon--symbol { font-size: 29px; }
    .all-categories-card__body { margin-top: 19px; }
    .all-categories-card__body h3 { font-size: 20px; }
    .all-categories-card__body p { font-size: 13px; }
    .all-categories-card__footer { padding-top: 20px; }
    .all-categories-list { padding-bottom: 48px; }
}


/* ============================================================
   Mobile: remove large decorative imagery site-wide
   ============================================================ */
@media (max-width: 768px) {
    .hero-visual,
    .about-visual,
    .mfo-page .mfo-hero__visual,
    .finlo-catalog-page .finlo-section-hero__visual,
    .all-categories-hero__visual {
        display: none !important;
    }

    .hero-card,
    .about-card,
    .mfo-page .mfo-hero__layout,
    .finlo-catalog-page .mfo-hero__layout {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}


/* ============================================================
   Finboks shared interactive UI
   ============================================================ */
.rublics-partner-action {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    cursor: pointer;
    font: inherit;
}
.rublics-partner-action:disabled {
    opacity: .72;
    cursor: wait;
}

/* Advertising is rendered only when the corresponding widget area has content. */
.rublics-ad-slot {
    width: min(calc(100% - 40px), var(--finlo-container));
    margin: 24px auto;
    padding: 12px;
    border: 1px solid #e6e7f1;
    border-radius: 16px;
    background: rgba(255,255,255,.72);
    box-shadow: 0 8px 28px rgba(35,37,85,.035);
    overflow: hidden;
}
.rublics-ad-slot__label {
    display: block;
    margin: 0 0 7px 2px;
    color: #9299ad;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
}
.rublics-ad-slot__widget,
.rublics-ad-slot__widget > :first-child { margin-top: 0; }
.rublics-ad-slot__widget,
.rublics-ad-slot__widget > :last-child { margin-bottom: 0; }
.rublics-ad-slot img,
.rublics-ad-slot iframe { max-width: 100%; }
.rublics-ad-slot--content-inline { margin-top: 28px; margin-bottom: 28px; }

/* Horizontal tab rails: smooth swipe on mobile, no visible scrollbar. */
[data-rublics-scroll-tabs] {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
[data-rublics-scroll-tabs]::-webkit-scrollbar { display: none; }


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .offer-tabs[data-rublics-scroll-tabs],
    .mfo-tabs[data-rublics-scroll-tabs],
    .sof-tabs[data-rublics-scroll-tabs] {
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .offer-tabs[data-rublics-scroll-tabs] > *,
    .mfo-tabs[data-rublics-scroll-tabs] > *,
    .sof-tabs[data-rublics-scroll-tabs] > * {
        flex: 0 0 auto;
    }
}

@media (max-width: 768px) {
    .rublics-ad-slot {
        width: min(calc(100% - 24px), var(--finlo-container));
        margin-top: 16px;
        margin-bottom: 16px;
        padding: 9px;
        border-radius: 12px;
    }

    /* All large decorative hero illustrations are removed on phones. */
    .hero-visual,
    .about-visual,
    .mfo-hero__visual,
    .finlo-section-hero__visual,
    .all-categories-hero__visual,
    .sof-terms-art {
        display: none !important;
    }
    .hero-card,
    .about-card,
    .mfo-hero__layout,
    .finlo-catalog-page .mfo-hero__layout,
    .sof-two-column--terms {
        grid-template-columns: minmax(0, 1fr) !important;
    }
}

/* ============================================================
   Finboks 404
   ============================================================ */
.rublics-404 {
    padding: clamp(34px, 6vw, 86px) 0 clamp(56px, 8vw, 108px);
}
.rublics-404__card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(280px, .82fr) minmax(0, 1.18fr);
    align-items: center;
    min-height: 470px;
    overflow: hidden;
    padding: clamp(36px, 5vw, 72px);
    border: 1px solid #e9e7f7;
    border-radius: 30px;
    background:
        radial-gradient(circle at 12% 18%, rgba(117,81,255,.14), transparent 34%),
        radial-gradient(circle at 92% 88%, rgba(119,215,255,.14), transparent 30%),
        #fff;
    box-shadow: 0 28px 70px rgba(59, 44, 120, .08);
}
.rublics-404__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 300px;
}
.rublics-404__code {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: min(100%, 330px);
    aspect-ratio: 1.45;
    border: 1px solid rgba(111, 74, 244, .16);
    border-radius: 34px;
    background: linear-gradient(145deg, #ffffff 0%, #f2efff 100%);
    color: #6940ed;
    box-shadow: 0 28px 54px rgba(98, 63, 216, .15);
    font-size: clamp(70px, 8vw, 116px);
    font-weight: 900;
    letter-spacing: -.07em;
    line-height: 1;
    transform: rotate(-3deg);
}
.rublics-404__coin {
    position: absolute;
    z-index: 3;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 16px 30px rgba(74, 49, 159, .16);
}
.rublics-404__coin--one {
    top: 12px;
    right: 10%;
    width: 76px;
    height: 76px;
    background: linear-gradient(145deg, #7b5aff, #5e31e6);
    font-size: 32px;
    transform: rotate(8deg);
}
.rublics-404__coin--two {
    bottom: 12px;
    left: 8%;
    width: 58px;
    height: 58px;
    background: linear-gradient(145deg, #33c7c1, #169c9b);
    font-size: 24px;
    transform: rotate(-10deg);
}
.rublics-404__content {
    position: relative;
    z-index: 4;
    max-width: 670px;
    padding-left: clamp(20px, 4vw, 68px);
}
.rublics-404__eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 13px;
    border-radius: 999px;
    background: #f0edff;
    color: #6740e8;
    font-size: 12px;
    font-weight: 800;
}
.rublics-404 h1 {
    max-width: 640px;
    margin: 18px 0 0;
    color: #20213d;
    font-size: clamp(38px, 4.5vw, 66px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.rublics-404__content > p {
    max-width: 610px;
    margin: 22px 0 0;
    color: #69728b;
    font-size: clamp(16px, 1.35vw, 20px);
    line-height: 1.65;
}
.rublics-404__actions {
    margin-top: 30px;
}
.rublics-404__home {
    display: inline-grid;
    place-items: center;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 10px;
    background: linear-gradient(90deg, #7551ff, #6135f1);
    color: #fff;
    box-shadow: 0 12px 24px rgba(98, 55, 241, .20);
    font-size: 14px;
    font-weight: 850;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.rublics-404__home:hover {
    color: #fff;
    background: linear-gradient(90deg, #6541f3, #5327e2);
    box-shadow: 0 16px 28px rgba(98, 55, 241, .25);
    transform: translateY(-1px);
}
.rublics-404__sections {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}
.rublics-404__sections a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid #e5e3f3;
    border-radius: 999px;
    background: rgba(255,255,255,.82);
    color: #505875;
    font-size: 12px;
    font-weight: 750;
}
.rublics-404__sections a:hover {
    border-color: #cfc5ff;
    color: #633de7;
    background: #f8f6ff;
}
@media (max-width: 820px) {
    .rublics-404__card {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 34px 24px;
        border-radius: 22px;
    }
    .rublics-404__visual { min-height: 210px; }
    .rublics-404__code { width: 250px; border-radius: 26px; font-size: 82px; }
    .rublics-404__coin--one { right: 16%; width: 58px; height: 58px; font-size: 26px; }
    .rublics-404__coin--two { left: 15%; width: 46px; height: 46px; font-size: 19px; }
    .rublics-404__content { padding: 20px 0 0; text-align: center; }
    .rublics-404 h1 { margin-left: auto; margin-right: auto; }
    .rublics-404__content > p { margin-left: auto; margin-right: auto; }
    .rublics-404__sections { justify-content: center; }
}
@media (max-width: 520px) {
    .rublics-404 { padding-top: 18px; }
    .rublics-404__card { padding: 27px 18px 30px; }
    .rublics-404__visual { min-height: 168px; }
    .rublics-404__code { width: 205px; border-radius: 22px; font-size: 68px; }
    .rublics-404__coin--one { top: 2px; right: 11%; }
    .rublics-404__coin--two { bottom: 0; left: 10%; }
    .rublics-404 h1 { font-size: 36px; }
    .rublics-404__content > p { font-size: 15px; }
    .rublics-404__home { width: 100%; min-height: 50px; }
}


/* =========================================================
   Editable WordPress pages (Finboks 1.3.3)
   ========================================================= */
.page-editor-content > :first-child { margin-top: 0; }
.page-editor-content > :last-child { margin-bottom: 0; }
.page-editor-content p { margin: 0 0 14px; }
.page-editor-content a { color: var(--finlo-primary); text-decoration: underline; text-underline-offset: 3px; }
.page-editor-content ul,
.page-editor-content ol { padding-left: 1.4em; }

.all-categories-hero__description {
    max-width: 620px;
    margin-top: 30px;
    color: var(--finlo-muted);
    font-size: 18px;
    line-height: 1.58;
}
.all-categories-hero__description p {
    max-width: 620px;
    margin: 0;
}
.favorites-hero__description { max-width: 780px; color: var(--finlo-muted); }
.mfo-hero__description { max-width: 760px; color: var(--finlo-muted); }

.rublics-standard-page { min-height: 60vh; }
.rublics-standard-page__container { max-width: 1120px; }
.rublics-page-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: var(--finlo-muted);
    font-size: 14px;
}
.rublics-page-breadcrumbs a:hover { color: var(--finlo-primary); }
.rublics-page-card {
    padding: clamp(24px, 4vw, 52px);
    border: 1px solid var(--finlo-line);
    border-radius: var(--finlo-radius-lg);
    background: var(--finlo-card);
    box-shadow: var(--finlo-shadow);
}
.rublics-page-card__header h1 {
    margin: 0 0 28px;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.08;
}
.rublics-page-card__image { margin: 0 0 30px; overflow: hidden; border-radius: 18px; }
.rublics-page-card__image img { display: block; width: 100%; }
.rublics-page-content { color: var(--finlo-text); }
.rublics-page-content h2 { margin: 34px 0 14px; font-size: clamp(24px, 3vw, 34px); }
.rublics-page-content h3 { margin: 28px 0 12px; font-size: clamp(20px, 2.4vw, 28px); }
.rublics-page-content img { border-radius: 16px; }
.rublics-home-editor-content .rublics-page-content {
    padding: clamp(22px, 3vw, 36px);
    border: 1px solid var(--finlo-line);
    border-radius: var(--finlo-radius-lg);
    background: var(--finlo-card);
}

@media (max-width: 768px) {
    .rublics-page-card { padding: 22px 18px; border-radius: 18px; }
    .rublics-page-card__header h1 { margin-bottom: 20px; }
    .all-categories-hero__description {
        max-width: 100%;
        margin-top: 22px;
        font-size: 16px;
        line-height: 1.55;
    }
}

/* Finboks 1.3.4: editable footer content from Appearance -> Finboks settings. */
.site-footer__extra {
    grid-column: 1 / -1;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: inherit;
    opacity: .82;
    font-size: 14px;
    line-height: 1.65;
}
.site-footer__extra > :first-child { margin-top: 0; }
.site-footer__extra > :last-child { margin-bottom: 0; }
.site-footer__extra a { text-decoration: underline; text-underline-offset: 3px; }


/* =========================================================
   Finboks 1.3.9 — consistent page intro spacing on desktop
   Keeps introductory copy compact and visually separated
   from page titles across catalogues and utility pages.
   ========================================================= */
@media (min-width: 769px) {
    .finlo-catalog-page .mfo-hero__description,
    .mfo-page .mfo-hero__description {
        max-width: 620px;
        margin-top: 30px;
        color: var(--finlo-muted);
        font-size: 18px;
        line-height: 1.58;
    }

    .finlo-catalog-page .mfo-hero__description p,
    .mfo-page .mfo-hero__description p {
        max-width: 620px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .favorites-hero__description {
        max-width: 620px;
        margin-top: 26px;
        color: var(--finlo-muted);
        font-size: 16px;
        line-height: 1.6;
    }

    .favorites-hero__description p {
        max-width: 620px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .all-categories-hero__description {
        max-width: 620px;
        margin-top: 30px;
    }

    .rublics-page-card__header + .rublics-page-content {
        padding-top: 2px;
    }

    .rublics-page-card__header + .rublics-page-content > p:first-child {
        max-width: 720px;
        line-height: 1.65;
    }
}

@media (max-width: 768px) {
    .finlo-catalog-page .mfo-hero__description,
    .mfo-page .mfo-hero__description {
        max-width: 100%;
        margin-top: 20px;
    }

    .favorites-hero__description {
        max-width: 100%;
        margin-top: 14px;
    }
}


/* =========================================================
   Finboks 1.3.9 — mobile scroll stability
   Horizontal tab strips must never move the document vertically.
   ========================================================= */

@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    [data-rublics-scroll-tabs] {
        overflow-y: hidden;
        overscroll-behavior-inline: contain;
    }
}


/* Finboks 1.4.4 — uploaded SVG/PNG logos and section icons use their own transparent artwork. */
.category-card__icon--image {
    background: transparent !important;
    box-shadow: none !important;
}
.all-categories-card__icon--image {
    background: transparent !important;
    box-shadow: none !important;
}
.all-categories-card__icon--image img {
    padding: 0;
}
.finlo-section-hero__visual--image::before {
    display: none;
}
.mfo-company-logo--image,
.sof-logo--image,
.offer-row__icon--image {
    background: transparent !important;
    box-shadow: none !important;
}
.mfo-company-logo--image img,
.sof-logo--image img,
.offer-row__icon--image img {
    background: transparent !important;
}


/* =========================================================
   Finboks 1.4.9 — clean mobile catalog hero
   Remove the residual radial ornament after the hero artwork is hidden
   and center the section title on phones.
   ========================================================= */
@media (max-width: 768px) {
    .finlo-catalog-page .mfo-hero {
        background: #fff !important;
    }

    .finlo-catalog-page .mfo-hero__copy h1 {
        width: 100%;
        max-width: none;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }
}


/* Finboks 1.4.12 — robust section-icon fitting.
   SVG icons are rendered inline with a padded viewBox (see inc-svg-upload.php),
   while raster images get an explicit safe-area scale. */
.category-card__icon--image,
.all-categories-card__icon--image {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.category-card__icon--image img,
.all-categories-card__icon--image img,
.category-card__icon--image .rublics-section-icon-svg,
.all-categories-card__icon--image .rublics-section-icon-svg {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center center !important;
    overflow: visible !important;
}
/* Finboks 1.4.13 — make uploaded section artwork more prominent without changing card geometry.
   The SVG safe viewBox still prevents clipping; scaling only enlarges the already-safe rendered viewport. */
.category-card__icon--image img,
.all-categories-card__icon--image img {
    transform: scale(.92) !important;
    transform-origin: center center;
}
.category-card__icon--image .rublics-section-icon-svg,
.all-categories-card__icon--image .rublics-section-icon-svg {
    transform: scale(1.18) !important;
    transform-origin: center center;
}


/* Finboks 1.4.18 — large description illustrations are bundled with the theme.
   They bypass the WordPress media pipeline, so complex SVG artwork is served unchanged. */
.about-visual img {
    width: min(100%, 390px);
    height: auto;
    object-fit: contain;
}
.all-categories-hero__visual--static-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(34vw, 360px);
    height: min(28vw, 280px);
}
.all-categories-hero__visual--static-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
@media (max-width: 980px) and (min-width: 769px) {
    .all-categories-hero__visual--static-image {
        width: 260px;
        height: 205px;
        right: 1%;
    }
}

/* Finboks 1.4.19 — refreshed financial illustrations. */
.about-visual img {
    width: min(100%, 390px);
    height: auto;
    object-fit: contain;
}
.all-categories-hero__visual--static-image img {
    width: min(100%, 340px);
    height: auto;
    object-fit: contain;
}

/* =========================================================
   Finboks 1.4.22 — unified, larger typography site-wide
   One font stack everywhere; larger readable text on home,
   catalog sections, offer pages and the all-sections page.
   ========================================================= */
:root {
    --rublics-font-sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

html,
body,
button,
input,
select,
textarea,
optgroup {
    font-family: var(--rublics-font-sans) !important;
}

button,
input,
select,
textarea,
optgroup {
    font-size: inherit;
}

/* Homepage — increase supporting copy and card typography. */
.category-card h3 { font-size: 19px; }
.category-card p { font-size: 16px; line-height: 1.62; }
.offer-tab { font-size: 16px; }
.offer-panel h3 { font-size: 21px; }
.offer-row__main strong { font-size: 16px; }
.offer-row__main small,
.offer-row__rating,
.offer-row__value { font-size: 14px; }
.offer-panel__more { font-size: 15px; }
.benefit-item h3 { font-size: 17px; }
.benefit-item p { font-size: 15px; line-height: 1.6; }
.step-card h3 { font-size: 18px; }
.step-card p { font-size: 16px; line-height: 1.6; }
.about-copy p { font-size: 18px; line-height: 1.7; }

/* Catalog / all financial sections — remove the old miniature 8–11px text. */
.mfo-page { font-size: 16px; }
.mfo-breadcrumbs { font-size: 14px; }
.mfo-hero__copy > p { font-size: 19px; }
.mfo-mini-feature { font-size: 14px; }
.mfo-filters__head h2 { font-size: 19px; }
.mfo-reset { font-size: 13px; }
.mfo-filter-group h3,
.mfo-filter-group legend,
.finlo-catalog-page .mfo-filter-group legend { font-size: 14px; }
.mfo-filter-pair label,
.mfo-filter-pair input,
.mfo-filter-pair b { font-size: 13px; }
.mfo-check,
.mfo-radio,
.mfo-filter-group--toggle { font-size: 13px; }
.mfo-filter-submit,
.mfo-tab,
.mfo-sort select,
.mfo-more-button { font-size: 13px; }
.mfo-company-title h3 { font-size: 18px; }
.mfo-badge { font-size: 10px; }
.mfo-offer-card__terms dt,
.mfo-offer-card__terms dd,
.mfo-offer-card__rating { font-size: 13px; }
.mfo-rating span { font-size: 16px; }
.mfo-primary-button { font-size: 13px; }
.mfo-details-link { font-size: 12px; }
.mfo-trust-item strong { font-size: 13px; }
.mfo-trust-item small { font-size: 12px; }
.mfo-faq-item summary,
.mfo-faq-item__answer { font-size: 14px; }
.finlo-section-hero .mfo-mini-feature small { font-size: 12px; }
.finlo-section-content__card { font-size: 16px; line-height: 1.75; }

/* All financial sections page. */
.all-categories-hero__eyebrow,
.all-categories-list__kicker { font-size: 14px; }
.all-categories-hero__copy > p { font-size: clamp(18px, 1.4vw, 22px); }
.all-categories-hero__meta span { font-size: 14px; }
.all-categories-list__head > p { font-size: 16px; }
.all-categories-card__count { font-size: 12px; }
.all-categories-card__body h3 { font-size: 22px; }
.all-categories-card__body p { font-size: 16px; line-height: 1.65; }
.all-categories-card__footer { font-size: 15px; }
.all-categories-empty p { font-size: 16px; }
.all-categories-hero__description { font-size: 19px; }

/* Single offer — consistent readable typography. */
.single-offer-page { font-size: 16px; }
.sof-breadcrumbs { font-size: 14px; }
.sof-company__name-row h2 { font-size: 30px; }
.sof-badge { font-size: 13px; }
.sof-rating-row { font-size: 15px; }
.sof-favorite { font-size: 14px; }
.sof-metric small { font-size: 14px; }
.sof-metric strong { font-size: 21px; }
.sof-primary-button { font-size: 15px; }
.sof-summary__cta p { font-size: 13px; }
.sof-tabs a { font-size: 14px; }
.sof-tabs a span { font-size: 11px; }
.sof-section h2 { font-size: 23px; }
.sof-lead { font-size: 16px; line-height: 1.75; }
.sof-benefit strong { font-size: 15px; }
.sof-benefit p { font-size: 14px; line-height: 1.6; }
.sof-bullet-list,
.sof-check-list { font-size: 15px; line-height: 1.8; }
.sof-howto h3 { font-size: 17px; }
.sof-howto li > span { font-size: 13px; }
.sof-howto strong { font-size: 14px; }
.sof-howto p { font-size: 13px; }
.sof-method strong { font-size: 14px; }
.sof-method p { font-size: 13px; }
.sof-reviews-toggle { font-size: 14px; }
.sof-review__head strong { font-size: 14px; }
.sof-review__head small { font-size: 12px; }
.sof-review > p { font-size: 13px; line-height: 1.65; }
.sof-disclaimer p { font-size: 13px; }

/* Standard WordPress pages use the same reading scale. */
.page-editor-content,
.rublics-page-content { font-size: 18px; line-height: 1.7; }

@media (min-width: 769px) {
    .category-card h3 { font-size: 20px; }
    .category-card p { font-size: 17px; }
    .offer-row__main strong { font-size: 18px; }
    .offer-row__main small,
    .offer-row__rating,
    .offer-row__value { font-size: 15px; }

    .mfo-page { font-size: 17px; }
    .mfo-filter-group h3,
    .mfo-filter-group legend,
    .finlo-catalog-page .mfo-filter-group legend { font-size: 15px; }
    .mfo-check,
    .mfo-radio,
    .mfo-filter-group--toggle { font-size: 14px; }
    .mfo-filter-submit,
    .mfo-tab,
    .mfo-sort select,
    .mfo-more-button { font-size: 14px; }
    .mfo-offer-card__terms dt,
    .mfo-offer-card__terms dd,
    .mfo-offer-card__rating { font-size: 14px; }
    .mfo-primary-button { font-size: 14px; }
    .mfo-details-link { font-size: 13px; }
    .mfo-faq-item summary,
    .mfo-faq-item__answer { font-size: 15px; }
    .finlo-section-content__card { font-size: 17px; }

    .all-categories-card__body h3 { font-size: 23px; }
    .all-categories-card__body p { font-size: 17px; }
    .all-categories-card__footer { font-size: 16px; }

    .single-offer-page { font-size: 17px; }
    .sof-section h2 { font-size: 24px; }
    .sof-lead { font-size: 17px; }
    .sof-benefit strong { font-size: 16px; }
    .sof-benefit p { font-size: 15px; }
    .sof-bullet-list,
    .sof-check-list { font-size: 16px; }
    .sof-howto strong { font-size: 15px; }
    .sof-howto p,
    .sof-method p,
    .sof-review > p,
    .sof-disclaimer p { font-size: 14px; }
    .sof-method strong,
    .sof-review__head strong { font-size: 15px; }

    .page-editor-content,
    .rublics-page-content { font-size: 19px; }
}

@media (max-width: 680px) {
    .mfo-page { font-size: 15px; }
    .mfo-hero__copy > p { font-size: 17px; }
    .mfo-mini-feature { font-size: 13px; }
    .mfo-filter-group h3,
    .mfo-filter-group legend,
    .finlo-catalog-page .mfo-filter-group legend { font-size: 14px; }
    .mfo-filter-pair label,
    .mfo-filter-pair input,
    .mfo-filter-pair b,
    .mfo-check,
    .mfo-radio,
    .mfo-filter-group--toggle,
    .mfo-filter-submit,
    .mfo-tab,
    .mfo-sort select,
    .mfo-more-button { font-size: 13px; }
    .mfo-company-title h3 { font-size: 18px; }
    .mfo-offer-card__terms dt,
    .mfo-offer-card__terms dd,
    .mfo-offer-card__rating,
    .mfo-primary-button { font-size: 13px; }
    .mfo-details-link { font-size: 12px; }
    .mfo-faq-item summary,
    .mfo-faq-item__answer { font-size: 14px; }

    .all-categories-hero__copy > p { font-size: 17px; }
    .all-categories-hero__meta span { font-size: 13px; }
    .all-categories-card__body h3 { font-size: 21px; }
    .all-categories-card__body p { font-size: 15px; }
    .all-categories-card__footer { font-size: 15px; }

    .sof-breadcrumbs { font-size: 12px; }
    .sof-company__name-row h2 { font-size: 24px; }
    .sof-badge { font-size: 11px; }
    .sof-rating-row { font-size: 13px; }
    .sof-metric small { font-size: 13px; }
    .sof-metric strong { font-size: 18px; }
    .sof-tabs a { font-size: 13px; }
    .sof-section h2 { font-size: 21px; }
    .sof-lead { font-size: 15px; }
    .sof-benefit strong { font-size: 15px; }
    .sof-benefit p { font-size: 14px; }
    .sof-bullet-list,
    .sof-check-list { font-size: 15px; }
    .sof-howto strong { font-size: 14px; }
    .sof-howto p,
    .sof-method p,
    .sof-review > p,
    .sof-disclaimer p { font-size: 13px; }
    .sof-method strong,
    .sof-review__head strong { font-size: 14px; }

    .page-editor-content,
    .rublics-page-content { font-size: 17px; }
}

/* =========================================================
   Finboks 1.4.23 — light / dark / auto color scheme
   The effective scheme is written to html[data-theme] before
   the stylesheet loads, so stored dark mode does not flash white.
   ========================================================= */
html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] {
    color-scheme: dark;
    --finlo-text: #f3f6ff;
    --finlo-muted: #aab4cd;
    --finlo-line: #2b3652;
    --finlo-soft: #11192b;
    --finlo-card: #151e32;
    --finlo-shadow: 0 18px 48px rgba(0, 0, 0, .30);
}

/* Header theme selector. */
.theme-switcher { position: relative; display: inline-flex; }
.theme-toggle__icon {
    display: none;
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.theme-toggle__icon--auto { display: block; }
html[data-theme-mode] .theme-toggle__icon--auto { display: none; }
html[data-theme-mode="light"] .theme-toggle__icon--light,
html[data-theme-mode="dark"] .theme-toggle__icon--dark,
html[data-theme-mode="auto"] .theme-toggle__icon--auto { display: block; }
.theme-switcher__menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 90;
    width: 258px;
    padding: 8px;
    border: 1px solid var(--finlo-line);
    border-radius: 16px;
    background: var(--finlo-card);
    box-shadow: 0 18px 48px rgba(24, 28, 65, .16);
}
.theme-switcher__menu[hidden] { display: none !important; }
.theme-switcher__menu > button {
    width: 100%;
    min-height: 58px;
    padding: 8px 10px;
    border: 0;
    border-radius: 11px;
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    color: var(--finlo-text);
    background: transparent;
    text-align: left;
}
.theme-switcher__menu > button:hover,
.theme-switcher__menu > button:focus-visible { background: var(--finlo-soft); outline: none; }
.theme-switcher__menu > button.is-active { background: rgba(90, 57, 255, .10); }
.theme-switcher__choice-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    color: var(--finlo-primary);
    background: #f0edff;
    font-size: 19px;
    font-weight: 900;
    line-height: 1;
}
.theme-switcher__choice-icon--auto { font-size: 14px; }
.theme-switcher__choice-copy { min-width: 0; display: grid; gap: 2px; }
.theme-switcher__choice-copy strong { font-size: 14px; line-height: 1.2; }
.theme-switcher__choice-copy small { color: var(--finlo-muted); font-size: 11px; line-height: 1.25; }
.theme-switcher__check { color: var(--finlo-primary); font-size: 16px; font-weight: 900; opacity: 0; }
.theme-switcher__menu > button.is-active .theme-switcher__check { opacity: 1; }

@media (max-width: 480px) {
    .theme-switcher__menu { position: fixed; top: 72px; right: 14px; width: min(258px, calc(100vw - 28px)); }
    .theme-toggle__icon { width: 21px; height: 21px; }
}

/* Dark foundation. */
html[data-theme="dark"] body,
html[data-theme="dark"] .site-main,
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer,
html[data-theme="dark"] .site-footer__panel {
    color: var(--finlo-text);
    background: #0b1120;
}
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer { border-color: #1c2740; }
html[data-theme="dark"] .primary-nav,
html[data-theme="dark"] .primary-nav .sub-menu,
html[data-theme="dark"] .header-search,
html[data-theme="dark"] .icon-button {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
    background: #141d30;
}
html[data-theme="dark"] .primary-nav a { color: #e8edff; }
html[data-theme="dark"] .primary-nav .menu > li { border-color: var(--finlo-line); }
html[data-theme="dark"] .icon-button:hover { border-color: #536282; box-shadow: 0 8px 22px rgba(0,0,0,.24); }
html[data-theme="dark"] .header-search input {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
    background: #0f1728;
}
html[data-theme="dark"] .header-search input::placeholder { color: #8290ad; }
html[data-theme="dark"] .search-toggle img { filter: brightness(0) invert(1); opacity: .92; }
html[data-theme="dark"] .theme-switcher__menu { background: #151e32; box-shadow: 0 20px 54px rgba(0,0,0,.38); }
html[data-theme="dark"] .theme-switcher__choice-icon { background: #24204a; }
html[data-theme="dark"] .theme-switcher__menu > button.is-active { background: rgba(116, 88, 255, .18); }

html[data-theme="dark"] .site-footer__brand p,
html[data-theme="dark"] .site-footer__column a,
html[data-theme="dark"] .site-footer__bottom { color: var(--finlo-muted); }
html[data-theme="dark"] .site-footer__column h3 { color: var(--finlo-text); }
html[data-theme="dark"] .site-footer__bottom,
html[data-theme="dark"] .site-footer__extra { border-color: #25304b; }

/* Homepage, posts and standard content. */
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .about-card {
    background: linear-gradient(135deg, #151b30 0%, #1b1932 52%, #21183d 100%);
}
html[data-theme="dark"] .hero-copy > p,
html[data-theme="dark"] .about-copy p,
html[data-theme="dark"] .offer-row__value,
html[data-theme="dark"] .post-card__body p { color: var(--finlo-muted); }
html[data-theme="dark"] .category-card,
html[data-theme="dark"] .offer-panel,
html[data-theme="dark"] .offer-tab,
html[data-theme="dark"] .step-card,
html[data-theme="dark"] .post-card,
html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .rublics-page-card,
html[data-theme="dark"] .rublics-home-editor-content .rublics-page-content,
html[data-theme="dark"] .categories-all-link > a {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
    background: var(--finlo-card);
}
html[data-theme="dark"] .category-card:hover,
html[data-theme="dark"] .offer-panel:hover,
html[data-theme="dark"] .categories-all-link > a:hover { border-color: #51487e; background: #182239; }
html[data-theme="dark"] .offer-tab { color: #bcc5da; }
html[data-theme="dark"] .offer-tab.is-active { color: #fff; border-color: var(--finlo-primary); background: var(--finlo-primary); }
html[data-theme="dark"] .offer-row { border-color: #27324b; }
html[data-theme="dark"] .offer-row__main strong,
html[data-theme="dark"] .benefit-item h3,
html[data-theme="dark"] .step-card h3,
html[data-theme="dark"] .about-copy h2,
html[data-theme="dark"] .content-header h1,
html[data-theme="dark"] .post-card__body h2 { color: var(--finlo-text); }
html[data-theme="dark"] .benefit-item { border-color: #27324b; }
html[data-theme="dark"] .step-card__number { background: #24204a; }
html[data-theme="dark"] .rublics-page-content { color: var(--finlo-text); }

/* Universal catalogues. */
html[data-theme="dark"] .page-template-page-mfo .site-main,
html[data-theme="dark"] .page-template-page-mfo-php .site-main,
html[data-theme="dark"] .mfo-page,
html[data-theme="dark"] .finlo-catalog-page {
    background: #0b1120;
}
html[data-theme="dark"] .mfo-page {
    --mfo-ink: #f3f6ff;
    --mfo-muted: #a9b4ce;
    --mfo-border: #2b3652;
    --mfo-pale: #131c30;
    color: var(--mfo-ink);
}
html[data-theme="dark"] .mfo-hero,
html[data-theme="dark"] .finlo-catalog-page .mfo-hero {
    background: linear-gradient(180deg, #0b1120 0%, #0c1424 100%) !important;
}
html[data-theme="dark"] .mfo-breadcrumbs,
html[data-theme="dark"] .mfo-hero__copy > p,
html[data-theme="dark"] .mfo-check,
html[data-theme="dark"] .mfo-radio,
html[data-theme="dark"] .mfo-tab,
html[data-theme="dark"] .mfo-offer-card__terms dt,
html[data-theme="dark"] .mfo-faq-item__answer,
html[data-theme="dark"] .mfo-trust-item small { color: var(--mfo-muted); }
html[data-theme="dark"] .mfo-mini-feature,
html[data-theme="dark"] .mfo-filter-group h3,
html[data-theme="dark"] .mfo-filter-group legend,
html[data-theme="dark"] .finlo-catalog-page .mfo-filter-group legend,
html[data-theme="dark"] .mfo-filter-group--toggle,
html[data-theme="dark"] .mfo-company-title h3,
html[data-theme="dark"] .mfo-offer-card__terms dd,
html[data-theme="dark"] .mfo-rating,
html[data-theme="dark"] .mfo-trust-item strong,
html[data-theme="dark"] .mfo-faq-item summary,
html[data-theme="dark"] .finlo-section-content__card h2,
html[data-theme="dark"] .finlo-section-content__card h3 { color: #eef2ff; }
html[data-theme="dark"] .mfo-mini-feature__icon,
html[data-theme="dark"] .mfo-trust-icon { background: #24204a; }
html[data-theme="dark"] .mfo-filters,
html[data-theme="dark"] .mfo-filter-pair label,
html[data-theme="dark"] .mfo-sort select,
html[data-theme="dark"] .mfo-offer-card,
html[data-theme="dark"] .mfo-more-button,
html[data-theme="dark"] .mfo-trust-strip,
html[data-theme="dark"] .mfo-faq-item,
html[data-theme="dark"] .finlo-section-content__card {
    color: var(--mfo-ink);
    border-color: var(--mfo-border);
    background: #151e32;
}
html[data-theme="dark"] .mfo-filter-group { border-color: #26314b; }
html[data-theme="dark"] .mfo-filter-pair label { color: #8d9ab6; }
html[data-theme="dark"] .mfo-filter-pair input,
html[data-theme="dark"] .mfo-filter-pair b,
html[data-theme="dark"] .mfo-sort select { color: #eef2ff; }
html[data-theme="dark"] .mfo-dual-range::before {
    background: linear-gradient(to right, #39445e 0 var(--range-start), var(--mfo-purple) var(--range-start) var(--range-end), #39445e var(--range-end) 100%);
}
html[data-theme="dark"] .mfo-range::-webkit-slider-thumb,
html[data-theme="dark"] .mfo-range::-moz-range-thumb { background: #151e32; }
html[data-theme="dark"] .mfo-switch > span:not(.screen-reader-text) { background: #3a465f; }
html[data-theme="dark"] .mfo-switch > span:not(.screen-reader-text)::after { background: #d6deef; }
html[data-theme="dark"] .mfo-filter-submit { color: #9d88ff; background: #151e32; }
html[data-theme="dark"] .mfo-filter-submit:hover,
html[data-theme="dark"] .mfo-tab:hover { background: #201c42; }
html[data-theme="dark"] .mfo-offer-card:hover { border-color: #4d4774; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
html[data-theme="dark"] .mfo-empty { color: var(--mfo-muted); border-color: #3a4662; background: #11192b; }
html[data-theme="dark"] .mfo-more-button { color: #c1c9dc; }
html[data-theme="dark"] .finlo-section-hero .mfo-mini-feature small,
html[data-theme="dark"] .finlo-section-content__card { color: var(--mfo-muted); }

/* Single offer page. */
html[data-theme="dark"] body.single-finlo_offer,
html[data-theme="dark"] body.single-finlo_offer .site-header,
html[data-theme="dark"] body.single-finlo_offer .site-main,
html[data-theme="dark"] .single-offer-page {
    background: #0b1120;
}
html[data-theme="dark"] .single-offer-page {
    --sof-text: #f3f6ff;
    --sof-muted: #a9b4cd;
    --sof-border: #2b3652;
    --sof-soft: #131c30;
    color: var(--sof-text);
}
html[data-theme="dark"] .sof-title,
html[data-theme="dark"] .sof-company__name-row h2,
html[data-theme="dark"] .sof-metric strong,
html[data-theme="dark"] .sof-section h2,
html[data-theme="dark"] .sof-benefit strong,
html[data-theme="dark"] .sof-bullet-list strong,
html[data-theme="dark"] .sof-howto strong,
html[data-theme="dark"] .sof-method strong,
html[data-theme="dark"] .sof-review__head strong { color: #f2f5ff; }
html[data-theme="dark"] .sof-breadcrumbs,
html[data-theme="dark"] .sof-breadcrumbs a,
html[data-theme="dark"] .sof-rating-row,
html[data-theme="dark"] .sof-metric small,
html[data-theme="dark"] .sof-summary__cta p,
html[data-theme="dark"] .sof-tabs a,
html[data-theme="dark"] .sof-lead,
html[data-theme="dark"] .sof-benefit p,
html[data-theme="dark"] .sof-bullet-list,
html[data-theme="dark"] .sof-check-list,
html[data-theme="dark"] .sof-howto p,
html[data-theme="dark"] .sof-method p,
html[data-theme="dark"] .sof-review__head small,
html[data-theme="dark"] .sof-review > p,
html[data-theme="dark"] .sof-disclaimer p { color: var(--sof-muted); }
html[data-theme="dark"] .sof-summary,
html[data-theme="dark"] .sof-content-card,
html[data-theme="dark"] .sof-review,
html[data-theme="dark"] .sof-favorite {
    color: var(--sof-text);
    border-color: var(--sof-border);
    background: #151e32;
    box-shadow: 0 10px 34px rgba(0,0,0,.18);
}
html[data-theme="dark"] .sof-favorite { color: #a995ff; }
html[data-theme="dark"] .sof-favorite:hover { border-color: #655b8c; background: #1a2540; }
html[data-theme="dark"] .sof-favorite.is-active { color: #fff; background: var(--sof-purple); }
html[data-theme="dark"] .sof-icon-bubble,
html[data-theme="dark"] .sof-method > span { background: #24204a; }
html[data-theme="dark"] .sof-tabs a span { color: #b4bed5; background: #202a40; }
html[data-theme="dark"] .sof-howto { background: linear-gradient(135deg, #18172f, #211b40); }
html[data-theme="dark"] .sof-disclaimer { background: linear-gradient(90deg, #161d31, #12192b); }
html[data-theme="dark"] .sof-disclaimer__icon { background: #24204a; }

/* Favorites. */
html[data-theme="dark"] body.page-favorites,
html[data-theme="dark"] body.page-favorites .site-header,
html[data-theme="dark"] body.page-favorites .site-main,
html[data-theme="dark"] .favorites-page { background: #0b1120; }
html[data-theme="dark"] .favorites-page {
    --fav-text: #f3f6ff;
    --fav-muted: #a9b4cd;
    --fav-border: #2b3652;
    --fav-soft: #151e32;
    color: var(--fav-text);
}
html[data-theme="dark"] .favorites-breadcrumbs,
html[data-theme="dark"] .favorites-breadcrumbs a,
html[data-theme="dark"] .favorites-hero p,
html[data-theme="dark"] .favorite-offer-card__terms dt,
html[data-theme="dark"] .favorites-empty p { color: var(--fav-muted); }
html[data-theme="dark"] .favorites-content,
html[data-theme="dark"] .favorite-offer-card,
html[data-theme="dark"] .favorite-remove,
html[data-theme="dark"] .favorite-details-button {
    color: var(--fav-text);
    border-color: var(--fav-border);
    background: #151e32;
}
html[data-theme="dark"] .favorite-offer-card__rating span:first-child { color: #c3cbdd; }
html[data-theme="dark"] .favorite-remove,
html[data-theme="dark"] .favorite-details-button { color: #a995ff; }
html[data-theme="dark"] .favorite-remove:hover,
html[data-theme="dark"] .favorite-details-button:hover { background: #1a2540; }
html[data-theme="dark"] .favorites-empty__icon { background: #24204a; }
html[data-theme="dark"] .favorites-noscript { color: #f2c99e; background: #332619; }

/* All financial sections page. */
html[data-theme="dark"] .all-categories-hero__card {
    border-color: #2c3652;
    background: radial-gradient(circle at 88% 18%, rgba(126,96,255,.16), transparent 28%), linear-gradient(135deg, #151e32 0%, #171b31 54%, #21183d 100%);
    box-shadow: 0 20px 54px rgba(0,0,0,.24);
}
html[data-theme="dark"] .all-categories-hero__meta span,
html[data-theme="dark"] .all-categories-card,
html[data-theme="dark"] .all-categories-empty {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
    background: #151e32;
}
html[data-theme="dark"] .all-categories-hero__meta span { color: #c2cadc; background: rgba(21,30,50,.82); }
html[data-theme="dark"] .all-categories-card:hover { border-color: #51487e; box-shadow: 0 18px 42px rgba(0,0,0,.26); }
html[data-theme="dark"] .all-categories-card__count { color: #aab4cd; background: #202a40; }
html[data-theme="dark"] .all-categories-card__icon:not(.all-categories-card__icon--image) { background: linear-gradient(145deg, #25204a, #1d2445); }

/* 404 and miscellaneous utility surfaces. */
html[data-theme="dark"] .rublics-404__card {
    border-color: var(--finlo-line);
    background: radial-gradient(circle at 12% 18%, rgba(117,81,255,.16), transparent 34%), radial-gradient(circle at 92% 88%, rgba(55,174,255,.10), transparent 30%), #151e32;
    box-shadow: 0 28px 70px rgba(0,0,0,.28);
}
html[data-theme="dark"] .rublics-404__code { border-color: #3b3560; background: linear-gradient(145deg, #1a2540, #241d47); }
html[data-theme="dark"] .rublics-404 h1 { color: var(--finlo-text); }
html[data-theme="dark"] .rublics-404__content > p { color: var(--finlo-muted); }
html[data-theme="dark"] .rublics-404__eyebrow { background: #24204a; }
html[data-theme="dark"] .rublics-404__sections a { color: #c3cbe0; border-color: var(--finlo-line); background: #151e32; }
html[data-theme="dark"] .rublics-404__sections a:hover { border-color: #51487e; background: #201c42; }

/* Native form controls that appear in content/admin-driven layouts. */
html[data-theme="dark"] select,
html[data-theme="dark"] textarea,
html[data-theme="dark"] input[type="text"],
html[data-theme="dark"] input[type="search"],
html[data-theme="dark"] input[type="email"],
html[data-theme="dark"] input[type="tel"],
html[data-theme="dark"] input[type="number"] {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
}

@media (prefers-reduced-motion: no-preference) {
    body,
    .site-header,
    .site-footer,
    .hero-card,
    .about-card,
    .category-card,
    .offer-panel,
    .step-card,
    .mfo-page,
    .mfo-filters,
    .mfo-offer-card,
    .sof-summary,
    .sof-content-card,
    .favorites-content,
    .favorite-offer-card,
    .all-categories-hero__card,
    .all-categories-card,
    .rublics-page-card {
        transition: background-color .18s ease, border-color .18s ease, color .18s ease;
    }
}


/* Dark-mode finishing touches for shared generated surfaces. */
html[data-theme="dark"] .category-card__icon--symbol { background: linear-gradient(145deg, #25204a, #1d2445); }
html[data-theme="dark"] .offer-list__empty { color: var(--finlo-muted); }
html[data-theme="dark"] .rublics-ad-slot {
    border-color: var(--finlo-line);
    background: #151e32;
    box-shadow: 0 8px 28px rgba(0,0,0,.18);
}
html[data-theme="dark"] .rublics-ad-slot__label { color: #8894ad; }


/* =========================================================
   Finboks 1.5.1 — editorial magazine + article system
   ========================================================= */
.rublics-blog-page,
.rublics-article-page { min-height: 60vh; }
.rublics-blog-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
    color: var(--finlo-muted);
    font-size: 14px;
}
.rublics-blog-breadcrumbs a { color: inherit; }
.rublics-blog-breadcrumbs a:hover { color: var(--finlo-primary); }
.rublics-blog-kicker,
.rublics-blog-section-heading > div > span,
.rublics-home-blog__heading > div > span {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--finlo-primary);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

/* Blog hero. */
.rublics-blog-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    align-items: center;
    gap: 44px;
    overflow: hidden;
    padding: 46px 52px;
    border: 1px solid var(--finlo-line);
    border-radius: 28px;
    background: radial-gradient(circle at 92% 12%, rgba(108,76,255,.13), transparent 34%), linear-gradient(135deg, #fff 0%, #f5f4ff 100%);
    box-shadow: var(--finlo-shadow);
}
.rublics-blog-hero__copy { position: relative; z-index: 2; }
.rublics-blog-hero h1,
.rublics-blog-archive-head h1 {
    margin: 0;
    color: var(--finlo-text);
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.03;
    letter-spacing: -.045em;
}
.rublics-blog-hero__intro { max-width: 720px; margin-top: 18px; color: var(--finlo-muted); font-size: 18px; line-height: 1.65; }
.rublics-blog-hero__intro > * { margin-top: 0; margin-bottom: 0; }
.rublics-blog-hero__visual { min-width: 0; display: flex; align-items: center; justify-content: center; }
.rublics-blog-hero__visual img { display: block; width: min(100%, 520px); height: auto; }
.rublics-blog-search {
    display: flex;
    gap: 8px;
    width: min(100%, 560px);
    margin-top: 26px;
    padding: 7px;
    border: 1px solid var(--finlo-line);
    border-radius: 15px;
    background: var(--finlo-card);
    box-shadow: 0 9px 24px rgba(42,48,98,.05);
}
.rublics-blog-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 10px 12px; background: transparent; color: var(--finlo-text); font: inherit; }
.rublics-blog-search input::placeholder { color: #929bb5; }
.rublics-blog-search button {
    border: 0;
    border-radius: 11px;
    min-width: 92px;
    padding: 0 20px;
    background: var(--finlo-primary);
    color: #fff;
    font: inherit;
    font-weight: 800;
}
.rublics-blog-search button:hover { background: var(--finlo-primary-dark); }

/* Categories. */
.rublics-blog-categories {
    display: flex;
    gap: 9px;
    margin: 28px 0 34px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.rublics-blog-categories::-webkit-scrollbar { display: none; }
.rublics-blog-categories a {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 17px;
    border: 1px solid var(--finlo-line);
    border-radius: 999px;
    background: var(--finlo-card);
    color: #39435f;
    font-size: 14px;
    font-weight: 750;
}
.rublics-blog-categories a:hover,
.rublics-blog-categories a.is-active { color: #fff; border-color: var(--finlo-primary); background: var(--finlo-primary); }

/* Reusable article cards. */
.rublics-blog-card {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--finlo-line);
    border-radius: 20px;
    background: var(--finlo-card);
    box-shadow: 0 10px 28px rgba(35,37,85,.035);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.rublics-blog-card:hover { transform: translateY(-3px); border-color: #d8d5f4; box-shadow: 0 18px 42px rgba(35,37,85,.075); }
.rublics-blog-card__stretched { position: absolute; inset: 0; z-index: 1; }
.rublics-blog-card__media,
.rublics-blog-card__body h2 a,
.rublics-blog-card__category { position: relative; z-index: 2; }
.rublics-blog-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: #ece9ff; }
.rublics-blog-card__media img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .28s ease; }
.rublics-blog-card:hover .rublics-blog-card__media img { transform: scale(1.025); }
.rublics-blog-card__media--placeholder { display: grid; place-items: center; background: radial-gradient(circle at 70% 22%, rgba(255,255,255,.8), transparent 25%), linear-gradient(135deg, #ede9ff, #dfeaff); }
.rublics-blog-card__placeholder-mark { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 22px; background: linear-gradient(145deg, #6546ff, #347df4); color: #fff; font-size: 38px; font-weight: 900; box-shadow: 0 16px 34px rgba(80,60,220,.22); }
.rublics-blog-card__body { padding: 22px; }
.rublics-blog-card__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 11px; color: var(--finlo-muted); font-size: 13px; }
.rublics-blog-card__category { color: var(--finlo-primary); font-weight: 850; }
.rublics-blog-card__body h2 { margin: 0 0 11px; color: var(--finlo-text); font-size: clamp(21px, 1.8vw, 27px); line-height: 1.18; letter-spacing: -.025em; }
.rublics-blog-card__body h2 a { color: inherit; }
.rublics-blog-card__body p { margin: 0; color: var(--finlo-muted); font-size: 15.5px; line-height: 1.62; }
.rublics-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.rublics-blog-grid > .rublics-ad-slot { grid-column: 1 / -1; }

/* Magazine lead: one large + two compact stories. */
.rublics-blog-featured { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(310px, .75fr); gap: 20px; margin-bottom: 46px; }
.rublics-blog-featured__main,
.rublics-blog-featured__side { min-width: 0; }
.rublics-blog-featured__side { display: grid; grid-auto-rows: minmax(0,1fr); gap: 20px; }
.rublics-blog-card--featured-main { height: 100%; display: grid; grid-template-rows: minmax(280px, 1fr) auto; }
.rublics-blog-card--featured-main .rublics-blog-card__media { aspect-ratio: auto; min-height: 330px; }
.rublics-blog-card--featured-main .rublics-blog-card__body { padding: 30px; }
.rublics-blog-card--featured-main .rublics-blog-card__body h2 { font-size: clamp(30px, 3vw, 43px); }
.rublics-blog-card--featured-main .rublics-blog-card__body p { font-size: 17px; }
.rublics-blog-card--featured-side { display: grid; grid-template-columns: 42% 1fr; min-height: 0; }
.rublics-blog-card--featured-side .rublics-blog-card__media { height: 100%; aspect-ratio: auto; }
.rublics-blog-card--featured-side .rublics-blog-card__body { display: flex; flex-direction: column; justify-content: center; padding: 18px; }
.rublics-blog-card--featured-side .rublics-blog-card__meta { font-size: 12px; }
.rublics-blog-card--featured-side .rublics-blog-card__body h2 { margin-bottom: 0; font-size: 19px; }

.rublics-blog-latest,
.rublics-blog-popular,
.rublics-blog-collections { margin-top: 44px; }
.rublics-blog-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.rublics-blog-section-heading h2 { margin: 0; color: var(--finlo-text); font-size: clamp(30px, 3vw, 40px); line-height: 1.08; letter-spacing: -.03em; }

/* Popular numbered cards. */
.rublics-blog-popular__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.rublics-popular-card { display: grid; grid-template-columns: auto 1fr; gap: 18px; min-width: 0; padding: 24px; border: 1px solid var(--finlo-line); border-radius: 18px; background: var(--finlo-card); }
.rublics-popular-card__number { color: var(--finlo-primary); font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.rublics-popular-card__category { display: inline-flex; margin-bottom: 7px; color: var(--finlo-primary); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.rublics-popular-card h3 { margin: 0 0 10px; color: var(--finlo-text); font-size: 19px; line-height: 1.28; }
.rublics-popular-card__meta { color: var(--finlo-muted); font-size: 12px; }

/* Curated real-article cards. */
.rublics-blog-collections__grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.rublics-collection-card { position: relative; overflow: hidden; min-width: 0; border: 1px solid var(--finlo-line); border-radius: 20px; background: var(--finlo-card); box-shadow: 0 10px 28px rgba(35,37,85,.045); }
.rublics-collection-card__media { display: block; aspect-ratio: 16/9; overflow: hidden; background: linear-gradient(145deg, #f4f1ff, #eef5ff); }
.rublics-collection-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.rublics-collection-card__media--placeholder { display: grid; place-items: center; color: var(--finlo-primary); font-size: 34px; font-weight: 900; }
.rublics-collection-card__body { display: block; padding: 18px 18px 20px; }
.rublics-collection-card__category { display: inline-flex; margin-bottom: 8px; color: var(--finlo-primary); font-size: 11px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.rublics-collection-card strong { display: block; color: var(--finlo-text); font-size: 18px; line-height: 1.25; }
.rublics-collection-card small { display: block; margin-top: 8px; color: var(--finlo-muted); font-size: 13px; line-height: 1.45; }
.rublics-collection-card:hover { border-color: #d2cdfa; transform: translateY(-2px); }
.rublics-collection-card:hover .rublics-collection-card__media img { transform: scale(1.025); }

/* Pagination + archives. */
.rublics-blog-pagination { margin-top: 38px; }
.rublics-blog-pagination .page-numbers { list-style: none; display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.rublics-blog-pagination .page-numbers a,
.rublics-blog-pagination .page-numbers span { display: grid; min-width: 42px; height: 42px; place-items: center; padding: 0 12px; border: 1px solid var(--finlo-line); border-radius: 11px; background: var(--finlo-card); color: var(--finlo-text); font-weight: 750; }
.rublics-blog-pagination .page-numbers .current { color: #fff; border-color: var(--finlo-primary); background: var(--finlo-primary); }
.rublics-blog-empty { padding: 52px; border: 1px dashed var(--finlo-line); border-radius: 20px; background: var(--finlo-soft); text-align: center; }
.rublics-blog-empty h2 { margin: 0 0 10px; }
.rublics-blog-empty p { margin: 0; color: var(--finlo-muted); }
.rublics-blog-archive-head { display: flex; align-items: end; justify-content: space-between; gap: 34px; padding: 36px 40px; border: 1px solid var(--finlo-line); border-radius: 24px; background: var(--finlo-card); }
.rublics-blog-archive-head h1 { font-size: clamp(38px,4vw,56px); }
.rublics-blog-archive-head .rublics-blog-search { flex: 0 1 430px; margin-top: 0; }

/* Homepage latest articles. */
.rublics-home-blog__heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 26px; }
.rublics-home-blog__heading .section-title { margin: 0; }
.rublics-home-blog__heading > a { color: var(--finlo-primary); font-weight: 850; }
.rublics-home-blog__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rublics-blog-card--home .rublics-blog-card__body { padding: 20px; }
.rublics-blog-card--home .rublics-blog-card__body h2 { font-size: 22px; }
.rublics-blog-card--home .rublics-blog-card__body p { font-size: 15px; }

/* Single article. */
.rublics-article-page__container { max-width: 1260px; }
.rublics-article { overflow: visible; border: 1px solid var(--finlo-line); border-radius: 26px; background: var(--finlo-card); box-shadow: var(--finlo-shadow); }
.rublics-article__header { max-width: 980px; padding: 52px 56px 34px; }
.rublics-article__category { display: inline-flex; margin-bottom: 16px; color: var(--finlo-primary); font-size: 13px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.rublics-article__header h1 { margin: 0; color: var(--finlo-text); font-size: clamp(40px, 5vw, 66px); line-height: 1.04; letter-spacing: -.045em; }
.rublics-article__meta { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 22px; color: var(--finlo-muted); font-size: 14px; }
.rublics-article__cover { margin: 0; padding: 0 34px; }
.rublics-article__cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; border-radius: 20px; }
.rublics-article__layout { display: grid; grid-template-columns: minmax(0, 810px) minmax(250px, 300px); justify-content: space-between; align-items: start; gap: 54px; padding: 46px 56px 42px; }
.rublics-article__content { min-width: 0; color: #26314d; font-size: 18px; line-height: 1.78; }
.rublics-article__content > :first-child { margin-top: 0; }
.rublics-article__content h2 { scroll-margin-top: 120px; margin: 46px 0 16px; color: var(--finlo-text); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; letter-spacing: -.025em; }
.rublics-article__content h3 { scroll-margin-top: 120px; margin: 34px 0 12px; color: var(--finlo-text); font-size: 25px; line-height: 1.25; }
.rublics-article__content p { margin: 0 0 19px; }
.rublics-article__content a { color: var(--finlo-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rublics-article__content ul { list-style: none; margin: 22px 0; padding: 0; }
.rublics-article__content ul li { position: relative; margin: 10px 0; padding-left: 30px; }
.rublics-article__content ul li::before { content: "✓"; position: absolute; left: 0; top: .08em; display: grid; width: 20px; height: 20px; place-items: center; border-radius: 7px; background: #eeeaff; color: var(--finlo-primary); font-size: 12px; font-weight: 900; }
.rublics-article__content ol { padding-left: 26px; }
.rublics-article__content blockquote { margin: 30px 0; padding: 22px 26px; border-left: 4px solid var(--finlo-primary); border-radius: 0 14px 14px 0; background: #f7f5ff; color: #343d5c; }
.rublics-article__content img { max-width: 100%; height: auto; border-radius: 16px; }
.rublics-article__content table { width: 100%; margin: 28px 0; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--finlo-line); border-radius: 14px; font-size: 15px; }
.rublics-article__content th,
.rublics-article__content td { padding: 13px 14px; border-right: 1px solid var(--finlo-line); border-bottom: 1px solid var(--finlo-line); text-align: left; }
.rublics-article__content th { background: #f5f3ff; color: var(--finlo-text); font-weight: 800; }
.rublics-article__content tr:last-child td { border-bottom: 0; }
.rublics-article__content th:last-child,
.rublics-article__content td:last-child { border-right: 0; }

/* Editorial callouts. */
.rublics-note { display: grid; grid-template-columns: auto 1fr; gap: 15px; margin: 30px 0; padding: 20px 22px; border: 1px solid #ded8ff; border-radius: 16px; background: #f7f5ff; }
.rublics-note__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--finlo-primary); color: #fff; font-size: 17px; font-weight: 900; }
.rublics-note strong { display: block; margin: 1px 0 5px; color: var(--finlo-text); font-size: 16px; }
.rublics-note__content { color: #505a78; font-size: 15.5px; line-height: 1.62; }
.rublics-note__content > :last-child { margin-bottom: 0; }
.rublics-note--info { border-color: #cfe5ff; background: #f2f8ff; }
.rublics-note--info .rublics-note__icon { background: #347df4; }
.rublics-note--warning { border-color: #f4deaa; background: #fff9eb; }
.rublics-note--warning .rublics-note__icon { background: #f0ad25; }
.rublics-note--example { border-color: #cfece1; background: #f1fbf7; }
.rublics-note--example .rublics-note__icon { background: #21a979; }

/* TOC. */
.rublics-article__aside { position: sticky; top: 105px; display: grid; gap: 16px; }
.rublics-article-toc { padding: 21px; border: 1px solid var(--finlo-line); border-radius: 16px; background: var(--finlo-soft); }
.rublics-article-toc > strong { display: block; margin-bottom: 12px; color: var(--finlo-text); font-size: 17px; }
.rublics-article-toc nav { display: grid; gap: 2px; }
.rublics-article-toc a { display: block; padding: 7px 9px; border-radius: 8px; color: var(--finlo-muted); font-size: 13px; line-height: 1.42; }
.rublics-article-toc a.is-sub { padding-left: 20px; font-size: 12.5px; }
.rublics-article-toc a:hover,
.rublics-article-toc a.is-active { background: #ece8ff; color: var(--finlo-primary); }
.rublics-article__toc-mobile { display: none; margin: 24px 22px 0; border: 1px solid var(--finlo-line); border-radius: 14px; background: var(--finlo-soft); }
.rublics-article__toc-mobile summary { padding: 15px 17px; color: var(--finlo-text); font-weight: 850; cursor: pointer; }
.rublics-article__toc-mobile nav { display: grid; gap: 2px; padding: 0 17px 15px; }
.rublics-article__toc-mobile a { padding: 6px 0; color: var(--finlo-muted); font-size: 14px; }
.rublics-article__toc-mobile a.is-sub { padding-left: 16px; font-size: 13px; }

/* Offers embedded inside editorial content. */
.rublics-article-offers { margin: 38px 0; padding: 24px; border: 1px solid #ded9ff; border-radius: 20px; background: linear-gradient(145deg, #f9f8ff, #f4f7ff); }
.rublics-article-offers__heading { margin-bottom: 18px; }
.rublics-article-offers__heading > span { color: var(--finlo-primary); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
.rublics-article-offers__title { margin: 5px 0 8px; color: var(--finlo-text); font-size: 26px; line-height: 1.2; font-weight: 850; }
.rublics-article-offers__heading p { margin: 0; color: var(--finlo-muted); font-size: 14px; }
.rublics-article-offers__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.rublics-article-offer { min-width: 0; padding: 17px; border: 1px solid var(--finlo-line); border-radius: 15px; background: var(--finlo-card); }
.rublics-article-offer__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.rublics-article-offer__brand .mfo-company-logo { flex: 0 0 auto; width: 42px; height: 42px; }
.rublics-article-offer__brand > div:last-child { min-width: 0; }
.rublics-article-offer__brand small { display: block; overflow: hidden; color: var(--finlo-muted); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.rublics-article-offer__brand strong { display: block; overflow: hidden; color: var(--finlo-text); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.rublics-article-offer dl { display: grid; gap: 8px; margin: 16px 0 13px; }
.rublics-article-offer dl > div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 7px; border-bottom: 1px solid var(--finlo-line); }
.rublics-article-offer dt { color: var(--finlo-muted); font-size: 11px; }
.rublics-article-offer dd { margin: 0; color: var(--finlo-text); font-size: 12px; font-weight: 800; text-align: right; }
.rublics-article-offer__rating { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 13px; color: var(--finlo-muted); font-size: 11px; }
.rublics-article-offer__rating span:first-child { color: #e6a300; font-weight: 800; }
.rublics-article-offer__actions { display: grid; gap: 8px; }
.rublics-article-offer__primary { display: flex; align-items: center; justify-content: center; min-height: 38px; border: 0; border-radius: 10px; background: var(--finlo-primary); color: #fff !important; text-decoration: none !important; font-size: 12px; font-weight: 800; }
.rublics-article-offer__details { text-align: center; color: var(--finlo-primary); font-size: 12px; font-weight: 800; }

/* Product CTA and article footer. */
.rublics-article-product-cta { display: flex; align-items: center; justify-content: space-between; gap: 34px; margin: 0 56px 42px; padding: 28px 30px; border: 1px solid #ddd7ff; border-radius: 19px; background: linear-gradient(135deg, #f6f3ff, #eef5ff); }
.rublics-article-product-cta small { display: block; margin-bottom: 5px; color: var(--finlo-primary); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.rublics-article-product-cta h2 { margin: 0 0 7px; color: var(--finlo-text); font-size: 27px; }
.rublics-article-product-cta p { max-width: 650px; margin: 0; color: var(--finlo-muted); font-size: 15px; }
.rublics-article-product-cta__actions { flex: 0 0 auto; display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 12px; }
.rublics-article-product-cta__actions > a { color: var(--finlo-primary); font-size: 14px; font-weight: 800; }
.rublics-article-product-cta__primary { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 19px; border-radius: 11px; background: var(--finlo-primary); color: #fff !important; }
.rublics-article-product-cta--aside { display: block; margin: 0; padding: 20px; }
.rublics-article-product-cta--aside strong { display: block; color: var(--finlo-text); font-size: 18px; }
.rublics-article-product-cta--aside p { margin: 8px 0 14px; font-size: 13px; }
.rublics-article-product-cta--aside a { display: flex; align-items: center; justify-content: center; min-height: 39px; border-radius: 10px; background: var(--finlo-primary); color: #fff; font-size: 13px; font-weight: 800; }
.rublics-article__footer { padding: 0 56px 50px; }
.rublics-article-engagement { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 24px; margin-bottom: 26px; padding: 22px; border: 1px solid var(--finlo-line); border-radius: 17px; background: var(--finlo-soft); }
.rublics-article-share > strong, .rublics-article-reactions > strong { display: block; margin-bottom: 11px; color: var(--finlo-text); font-size: 14px; }
.rublics-article-share__buttons, .rublics-article-reactions__buttons { display: flex; flex-wrap: wrap; gap: 9px; }
.rublics-share-button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--finlo-line); border-radius: 11px; background: var(--finlo-card); color: var(--finlo-text); font-size: 12px; font-weight: 800; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.rublics-share-button:hover { transform: translateY(-1px); border-color: #cfc7ff; background: #fff; }
.rublics-share-button > span:first-child { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px; border-radius: 7px; background: #ece8ff; color: var(--finlo-primary); font-size: 10px; font-weight: 900; }
.rublics-share-button--max > span:first-child { min-width: 30px; }
.rublics-article-reactions { min-width: 230px; }
.rublics-reaction-button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 11px; border: 1px solid var(--finlo-line); border-radius: 11px; background: var(--finlo-card); color: var(--finlo-text); font-size: 13px; font-weight: 800; }
.rublics-reaction-button:hover, .rublics-reaction-button.is-active { border-color: #bcb0ff; background: #f0edff; color: var(--finlo-primary); }
.rublics-reaction-button:disabled { opacity: .65; cursor: wait; }
.rublics-reaction-button__icon { font-size: 16px; line-height: 1; }
.rublics-reaction-button__count { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; background: #f1f2f8; color: var(--finlo-muted); font-size: 11px; }
.rublics-reaction-button.is-active .rublics-reaction-button__count { background: #e3ddff; color: var(--finlo-primary); }
.rublics-article-reactions__status { display: block; min-height: 18px; margin-top: 8px; color: var(--finlo-muted); font-size: 11px; }
.rublics-article__tags { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 24px; }
.rublics-article__tags a { padding: 8px 12px; border-radius: 999px; background: var(--finlo-soft); color: var(--finlo-primary); font-size: 13px; font-weight: 750; }
.rublics-article-author { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 20px 22px; border: 1px solid var(--finlo-line); border-radius: 17px; background: var(--finlo-soft); }
.rublics-article-author__avatar img { display: block; width: 64px; height: 64px; border-radius: 50%; }
.rublics-article-author small { display: block; color: var(--finlo-muted); font-size: 12px; }
.rublics-article-author strong { display: block; margin: 2px 0 5px; color: var(--finlo-text); font-size: 16px; }
.rublics-article-author p { margin: 0; color: var(--finlo-muted); font-size: 13px; line-height: 1.55; }
.rublics-related-posts { margin-top: 46px; }
.rublics-related-posts__heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.rublics-related-posts__heading h2 { margin: 0; color: var(--finlo-text); font-size: clamp(28px,3vw,38px); }
.rublics-related-posts__heading a { color: var(--finlo-primary); font-weight: 850; }
.rublics-related-posts__grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.rublics-blog-card--compact .rublics-blog-card__body { padding: 18px; }
.rublics-blog-card--compact .rublics-blog-card__body h2 { margin-bottom: 0; font-size: 20px; }

/* Dark mode for blog/article surfaces. */
html[data-theme="dark"] .rublics-blog-hero,
html[data-theme="dark"] .rublics-blog-card,
html[data-theme="dark"] .rublics-blog-search,
html[data-theme="dark"] .rublics-blog-categories a,
html[data-theme="dark"] .rublics-blog-archive-head,
html[data-theme="dark"] .rublics-popular-card,
html[data-theme="dark"] .rublics-article,
html[data-theme="dark"] .rublics-blog-pagination .page-numbers a,
html[data-theme="dark"] .rublics-blog-pagination .page-numbers span { border-color: var(--finlo-line); background: #151e32; }
html[data-theme="dark"] .rublics-blog-hero { background: radial-gradient(circle at 90% 12%, rgba(126,96,255,.18), transparent 33%), linear-gradient(135deg, #151e32, #171b31); }
html[data-theme="dark"] .rublics-blog-hero h1,
html[data-theme="dark"] .rublics-blog-archive-head h1,
html[data-theme="dark"] .rublics-blog-card__body h2,
html[data-theme="dark"] .rublics-blog-section-heading h2,
html[data-theme="dark"] .rublics-popular-card h3,
html[data-theme="dark"] .rublics-collection-card strong,
html[data-theme="dark"] .rublics-article__header h1,
html[data-theme="dark"] .rublics-article__content h2,
html[data-theme="dark"] .rublics-article__content h3,
html[data-theme="dark"] .rublics-article-toc > strong,
html[data-theme="dark"] .rublics-article__toc-mobile summary,
html[data-theme="dark"] .rublics-note strong,
html[data-theme="dark"] .rublics-article-offers__title,
html[data-theme="dark"] .rublics-article-offer__brand strong,
html[data-theme="dark"] .rublics-article-offer dd,
html[data-theme="dark"] .rublics-article-product-cta h2,
html[data-theme="dark"] .rublics-article-product-cta--aside strong,
html[data-theme="dark"] .rublics-article-author strong,
html[data-theme="dark"] .rublics-related-posts__heading h2 { color: var(--finlo-text); }
html[data-theme="dark"] .rublics-blog-card__body p,
html[data-theme="dark"] .rublics-blog-card__meta,
html[data-theme="dark"] .rublics-blog-hero__intro,
html[data-theme="dark"] .rublics-popular-card__meta,
html[data-theme="dark"] .rublics-collection-card small,
html[data-theme="dark"] .rublics-article__meta,
html[data-theme="dark"] .rublics-article-product-cta p,
html[data-theme="dark"] .rublics-article-author p,
html[data-theme="dark"] .rublics-article-author small { color: var(--finlo-muted); }
html[data-theme="dark"] .rublics-blog-categories a { color: #c7d0e4; }
html[data-theme="dark"] .rublics-blog-categories a:hover,
html[data-theme="dark"] .rublics-blog-categories a.is-active { color: #fff; background: var(--finlo-primary); }
html[data-theme="dark"] .rublics-article__content { color: #cbd4e7; }
html[data-theme="dark"] .rublics-article__content ul li::before { background: #29234f; }
html[data-theme="dark"] .rublics-article__content blockquote,
html[data-theme="dark"] .rublics-article-toc,
html[data-theme="dark"] .rublics-article__toc-mobile,
html[data-theme="dark"] .rublics-blog-empty,
html[data-theme="dark"] .rublics-article-author { color: #cbd4e7; border-color: var(--finlo-line); background: #11192b; }
html[data-theme="dark"] .rublics-article-engagement { border-color: var(--finlo-line); background: #11192b; }
html[data-theme="dark"] .rublics-share-button,
html[data-theme="dark"] .rublics-reaction-button { border-color: var(--finlo-line); background: #151e32; color: #dbe3f3; }
html[data-theme="dark"] .rublics-share-button:hover,
html[data-theme="dark"] .rublics-reaction-button:hover,
html[data-theme="dark"] .rublics-reaction-button.is-active { border-color: #514889; background: #211d42; color: #c6baff; }
html[data-theme="dark"] .rublics-share-button > span:first-child,
html[data-theme="dark"] .rublics-reaction-button.is-active .rublics-reaction-button__count { background: #29234f; color: #c4b7ff; }
html[data-theme="dark"] .rublics-reaction-button__count { background: #1d2940; color: #aeb9ce; }
html[data-theme="dark"] .rublics-article__content table { border-color: var(--finlo-line); }
html[data-theme="dark"] .rublics-article__content th,
html[data-theme="dark"] .rublics-article__content td { border-color: var(--finlo-line); }
html[data-theme="dark"] .rublics-article__content th { background: #1c2740; }
html[data-theme="dark"] .rublics-note { border-color: #3b3562; background: #1b1e39; }
html[data-theme="dark"] .rublics-note--info { border-color: #24466c; background: #14253b; }
html[data-theme="dark"] .rublics-note--warning { border-color: #64532a; background: #2c2718; }
html[data-theme="dark"] .rublics-note--example { border-color: #275444; background: #152d27; }
html[data-theme="dark"] .rublics-note__content { color: #c6cee0; }
html[data-theme="dark"] .rublics-article-toc a:hover,
html[data-theme="dark"] .rublics-article-toc a.is-active { background: #28224e; }
html[data-theme="dark"] .rublics-article-offers,
html[data-theme="dark"] .rublics-article-product-cta { border-color: #393458; background: linear-gradient(145deg, #181d34, #151e32); }
html[data-theme="dark"] .rublics-article-offer { border-color: var(--finlo-line); background: #11192b; }
html[data-theme="dark"] .rublics-article-offer dl > div { border-color: var(--finlo-line); }
html[data-theme="dark"] .rublics-article__tags a { background: #24204a; color: #baaaff; }
html[data-theme="dark"] .rublics-collection-card { border-color: #293650; background: linear-gradient(145deg, #19233a, #171d31); }
html[data-theme="dark"] .rublics-collection-card__media { background: linear-gradient(145deg, #202a43, #181f34); }

@media (max-width: 1120px) {
    .rublics-blog-hero { grid-template-columns: 1fr minmax(300px, .75fr); padding: 40px; }
    .rublics-blog-featured { grid-template-columns: 1fr; }
    .rublics-blog-featured__side { grid-template-columns: repeat(2,minmax(0,1fr)); grid-template-rows: none; }
    .rublics-blog-card--featured-side { min-height: 210px; }
    .rublics-blog-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rublics-blog-popular__grid { grid-template-columns: 1fr; }
    .rublics-blog-collections__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rublics-article__layout { grid-template-columns: minmax(0,1fr) 260px; gap: 36px; padding-left: 42px; padding-right: 42px; }
    .rublics-article__header { padding-left: 42px; padding-right: 42px; }
    .rublics-article__cover { padding-left: 26px; padding-right: 26px; }
    .rublics-article-product-cta { margin-left: 42px; margin-right: 42px; }
    .rublics-article__footer { padding-left: 42px; padding-right: 42px; }
}

@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .rublics-blog-hero { grid-template-columns: 1fr; }
    .rublics-blog-hero__visual { display: none; }
    .rublics-blog-archive-head { display: grid; }
    .rublics-blog-archive-head .rublics-blog-search { width: 100%; flex-basis: auto; }
    .rublics-home-blog__grid,
    .rublics-related-posts__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .rublics-article__layout { grid-template-columns: 1fr; padding-top: 28px; }
    .rublics-article__aside { display: none; }
    .rublics-article__toc-mobile { display: block; }
    .rublics-article-offers__grid { grid-template-columns: 1fr; }
    .rublics-article-product-cta { align-items: flex-start; flex-direction: column; }
    .rublics-article-product-cta__actions { justify-content: flex-start; }
}
@media (max-width: 768px) {
    .rublics-blog-breadcrumbs { margin-bottom: 18px; font-size: 13px; }
    .rublics-blog-hero { padding: 28px 22px; border-radius: 20px; }
    .rublics-blog-hero h1 { font-size: clamp(36px,11vw,50px); }
    .rublics-blog-hero__intro { font-size: 17px; }
    .rublics-blog-search { flex-direction: column; }
    .rublics-blog-search button { min-height: 44px; }
    .rublics-blog-categories { margin: 20px 0 26px; }
    .rublics-blog-featured { gap: 14px; margin-bottom: 34px; }
    .rublics-blog-featured__side { grid-template-columns: 1fr; gap: 14px; }
    .rublics-blog-card--featured-main { display: block; }
    .rublics-blog-card--featured-main .rublics-blog-card__media { min-height: 0; aspect-ratio: 16/9; }
    .rublics-blog-card--featured-main .rublics-blog-card__body { padding: 23px; }
    .rublics-blog-card--featured-main .rublics-blog-card__body h2 { font-size: 28px; }
    .rublics-blog-card--featured-side { grid-template-columns: 38% 1fr; min-height: 170px; }
    .rublics-blog-grid,
    .rublics-home-blog__grid,
    .rublics-related-posts__grid { grid-template-columns: 1fr; }
    .rublics-blog-collections__grid { grid-template-columns: 1fr; }
    .rublics-collection-card { min-height: 150px; }
    .rublics-blog-archive-head { padding: 28px 22px; border-radius: 20px; }
    .rublics-blog-archive-head h1 { font-size: 38px; }
    .rublics-home-blog__heading { align-items: center; }
    .rublics-home-blog__heading > a { white-space: nowrap; }
    .rublics-article { border-radius: 20px; }
    .rublics-article__header { padding: 30px 22px 24px; }
    .rublics-article__header h1 { font-size: clamp(34px,10vw,48px); }
    .rublics-article__cover { padding: 0 14px; }
    .rublics-article__cover img { border-radius: 14px; }
    .rublics-article__layout { padding: 24px 22px 30px; }
    .rublics-article__content { font-size: 17px; line-height: 1.72; }
    .rublics-article__content table { display: block; overflow-x: auto; white-space: nowrap; }
    .rublics-article-offers { margin-left: -4px; margin-right: -4px; padding: 18px; }
    .rublics-article-product-cta { margin: 0 22px 30px; padding: 22px; }
    .rublics-article-product-cta h2 { font-size: 24px; }
    .rublics-article-product-cta__actions { display: grid; width: 100%; }
    .rublics-article-product-cta__actions > a { text-align: center; }
    .rublics-article__footer { padding: 0 22px 34px; }
    .rublics-article-engagement { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
    .rublics-article-reactions { min-width: 0; }
    .rublics-related-posts { margin-top: 34px; }
}
@media (max-width: 480px) {
    .rublics-home-blog__heading { align-items: flex-end; }
    .rublics-home-blog__heading .section-title { font-size: 28px; }
    .rublics-home-blog__heading > a { font-size: 14px; }
    .rublics-blog-card__meta { gap: 7px 10px; font-size: 12px; }
    .rublics-blog-card__body h2 { font-size: 23px; }
    .rublics-blog-card--featured-side { display: block; }
    .rublics-blog-card--featured-side .rublics-blog-card__media { aspect-ratio: 16/8; }
    .rublics-blog-section-heading h2 { font-size: 30px; }
    .rublics-popular-card { padding: 20px; }
    .rublics-popular-card__number { font-size: 32px; }
    .rublics-note { grid-template-columns: 1fr; }
    .rublics-article-author { grid-template-columns: 1fr; }
    .rublics-share-button { padding: 0 9px; }
    .rublics-share-button__label { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
}


/* Finboks 1.5.5 — calmer blog lead layout: secondary stories move below Latest. */
.rublics-blog-featured--lead {
    display: block;
    margin-bottom: 38px;
}
.rublics-blog-featured--lead .rublics-blog-card--featured-main {
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, .98fr);
    grid-template-rows: none;
    align-items: stretch;
}
.rublics-blog-featured--lead .rublics-blog-card--featured-main .rublics-blog-card__media {
    min-height: 390px;
    order: 2;
}
.rublics-blog-featured--lead .rublics-blog-card--featured-main .rublics-blog-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 38px;
}
.rublics-blog-secondary-featured { margin-top: 44px; }
.rublics-blog-secondary-featured__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}
.rublics-blog-secondary-featured .rublics-blog-card--featured-side {
    grid-template-columns: minmax(230px, 38%) minmax(0, 1fr);
    min-height: 240px;
}
.rublics-blog-secondary-featured .rublics-blog-card--featured-side .rublics-blog-card__body { padding: 24px; }
.rublics-blog-secondary-featured .rublics-blog-card--featured-side .rublics-blog-card__body h2 {
    font-size: clamp(21px, 1.8vw, 27px);
    line-height: 1.2;
}
.rublics-blog-secondary-featured .rublics-blog-card--featured-side .rublics-blog-card__meta { font-size: 13px; }


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .rublics-blog-featured--lead .rublics-blog-card--featured-main { display: block; }
    .rublics-blog-featured--lead .rublics-blog-card--featured-main .rublics-blog-card__media { min-height: 0; aspect-ratio: 16/9; }
    .rublics-blog-secondary-featured__grid { grid-template-columns: 1fr; }
    .rublics-blog-secondary-featured .rublics-blog-card--featured-side { min-height: 210px; }
}
@media (max-width: 600px) {
    .rublics-blog-featured--lead { margin-bottom: 30px; }
    .rublics-blog-featured--lead .rublics-blog-card--featured-main .rublics-blog-card__body { padding: 24px; }
    .rublics-blog-secondary-featured { margin-top: 34px; }
    .rublics-blog-secondary-featured .rublics-blog-card--featured-side {
        display: block;
        min-height: 0;
    }
    .rublics-blog-secondary-featured .rublics-blog-card--featured-side .rublics-blog-card__media { height: auto; aspect-ratio: 16/9; }
}

/* Finboks 1.5.6 — adaptive article offers and visible controls for horizontal rails. */
.rublics-article-offers__grid.is-count-1 { grid-template-columns: minmax(0, 1fr); }
.rublics-article-offers__grid.is-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rublics-article-offers__grid.is-count-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.rublics-article-offers__grid.is-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 1px 8px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.rublics-article-offers__grid.is-carousel::-webkit-scrollbar { display: none; }
.rublics-article-offers__grid.is-carousel .rublics-article-offer {
    flex: 0 0 calc((100% - 24px) / 3);
    scroll-snap-align: start;
    scroll-snap-stop: normal;
}

.rublics-scroll-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 12px 0 0;
}
.rublics-scroll-controls[hidden] { display: none !important; }
.rublics-scroll-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--finlo-line);
    border-radius: 11px;
    background: var(--finlo-card);
    color: var(--finlo-text);
    box-shadow: 0 6px 18px rgba(31, 39, 88, .06);
    cursor: pointer;
    font: inherit;
    font-size: 25px;
    font-weight: 750;
    line-height: 1;
    transition: border-color .18s ease, background .18s ease, color .18s ease, opacity .18s ease, transform .18s ease;
}
.rublics-scroll-control:hover:not(:disabled) {
    border-color: var(--finlo-primary);
    color: var(--finlo-primary);
    transform: translateY(-1px);
}
.rublics-scroll-control:focus-visible {
    outline: 3px solid rgba(90, 57, 255, .18);
    outline-offset: 2px;
}
.rublics-scroll-control:disabled {
    opacity: .32;
    cursor: default;
    transform: none;
}
html[data-theme="dark"] .rublics-scroll-control {
    border-color: var(--finlo-line);
    background: #11192b;
    color: #edf1ff;
    box-shadow: none;
}

/* Existing rails keep swipe, and arrows are added by script only when scrolling is possible. */
.category-grid,
.offers-grid,
[data-rublics-scroll-tabs],
[data-rublics-scroll-rail] {
    scroll-behavior: smooth;
}

@media (min-width: 901px) {
    /* Existing tab rails are desktop layouts, so their arrow controls stay hidden unless explicitly desktop-scrollable. */
    .rublics-scroll-controls[data-rublics-mobile-only="1"] { display: none !important; }
}


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .rublics-article-offers__grid.is-count-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rublics-article-offers__grid.is-count-3 { grid-template-columns: 1fr; }
    .rublics-article-offers__grid.is-carousel .rublics-article-offer {
        flex-basis: min(84vw, 360px);
    }
}

@media (max-width: 640px) {
    .rublics-article-offers__grid.is-count-2,
    .rublics-article-offers__grid.is-count-3 { grid-template-columns: 1fr; }
    .rublics-article-offers__grid.is-carousel .rublics-article-offer {
        flex-basis: min(88%, 340px);
    }
    .rublics-scroll-controls { margin-top: 10px; gap: 8px; }
    .rublics-scroll-control { width: 46px; height: 40px; }
}
.rublics-scroll-controls { width: 100%; }

/* Finboks 1.5.7 — tab strips remain swipe/scrollable without previous/next arrow controls. */
/* Finboks 1.5.8 — editorial controls for Popular and Useful Collections; collections now use real article cards. */


/* =========================================================
   Finboks 1.5.10 — informational, legal, contacts & sitemap
   ========================================================= */
.site-footer__disclaimer {
    grid-column: 1 / -1;
    margin-top: 4px;
    padding-top: 20px;
    border-top: 1px solid rgba(115,130,170,.14);
    color: #7c879f;
    font-size: 12px;
    line-height: 1.58;
}
.site-footer__disclaimer p { margin: 0; }
.site-footer__disclaimer + .site-footer__bottom { margin-top: 2px; }

.rublics-info-page { min-height: 65vh; }
.rublics-info-page__container { max-width: 1120px; }
.rublics-info-hero {
    position: relative;
    min-height: 260px;
    margin-bottom: 24px;
    padding: clamp(30px, 5vw, 58px);
    border: 1px solid var(--finlo-line);
    border-radius: 28px;
    background: linear-gradient(135deg, #f8f7ff 0%, #eeeafd 58%, #e9f1ff 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}
.rublics-info-hero__copy { position: relative; z-index: 2; max-width: 790px; }
.rublics-info-hero__kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin-bottom: 14px;
    padding: 5px 12px;
    border-radius: 999px;
    color: var(--finlo-primary);
    background: rgba(112, 83, 255, .10);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .02em;
}
.rublics-info-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: clamp(36px, 5.5vw, 64px);
    line-height: 1.02;
    letter-spacing: -.045em;
}
.rublics-info-hero p {
    max-width: 760px;
    margin: 20px 0 0;
    color: var(--finlo-muted);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.58;
}
.rublics-info-hero__mark {
    position: absolute;
    right: clamp(22px, 5vw, 74px);
    top: 50%;
    width: 150px;
    height: 150px;
    transform: translateY(-50%) rotate(-8deg);
    opacity: .94;
}
.rublics-info-hero__mark::before,
.rublics-info-hero__mark::after,
.rublics-info-hero__mark span {
    content: '';
    position: absolute;
    border-radius: 30px;
    background: linear-gradient(135deg, #7158ff, #4f7cff);
    box-shadow: 0 18px 42px rgba(99, 79, 220, .18);
}
.rublics-info-hero__mark::before { width: 66px; height: 66px; left: 8px; top: 42px; }
.rublics-info-hero__mark::after { width: 54px; height: 54px; right: 6px; top: 13px; background: linear-gradient(135deg, #f2bd4d, #ff8f5f); }
.rublics-info-hero__mark span:nth-child(1) { width: 44px; height: 44px; right: 16px; bottom: 10px; background: linear-gradient(135deg, #6ed6a9, #46b885); }
.rublics-info-hero__mark span:nth-child(2) { width: 22px; height: 22px; left: 42px; top: 12px; border-radius: 50%; background: #aa97ff; }
.rublics-info-hero__mark span:nth-child(3) { width: 18px; height: 18px; left: 88px; bottom: 14px; border-radius: 50%; background: #7ab7ff; }

.rublics-info-card {
    padding: clamp(28px, 4.6vw, 58px);
    border: 1px solid var(--finlo-line);
    border-radius: 28px;
    background: var(--finlo-card);
    box-shadow: var(--finlo-shadow);
}
.rublics-info-content { max-width: 960px; margin: 0 auto; color: var(--finlo-text); font-size: 18px; line-height: 1.72; }
.rublics-info-content > *:first-child { margin-top: 0; }
.rublics-info-content h2 { margin: 46px 0 16px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.14; letter-spacing: -.025em; }
.rublics-info-content h3 { margin: 0 0 9px; font-size: 21px; line-height: 1.24; }
.rublics-info-content p { margin: 0 0 18px; }
.rublics-info-content a { color: var(--finlo-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.rublics-info-content ul,
.rublics-info-content ol { margin: 0 0 22px; padding-left: 1.35em; }
.rublics-info-content li + li { margin-top: 8px; }
.rublics-info-intro {
    margin-bottom: 30px;
    padding: 24px 26px;
    border-radius: 20px;
    background: var(--finlo-soft);
    color: var(--finlo-text);
    font-size: 19px;
}
.rublics-info-intro > :last-child { margin-bottom: 0; }
.rublics-info-section { margin-top: 42px; }
.rublics-info-section:first-child { margin-top: 0; }
.rublics-info-section > h2:first-child { margin-top: 0; }

.rublics-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.rublics-feature-card {
    min-height: 210px;
    padding: 22px;
    border: 1px solid var(--finlo-line);
    border-radius: 20px;
    background: #fbfbff;
}
.rublics-feature-card__icon {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    height: 40px;
    margin-bottom: 18px;
    padding: 0 8px;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, #7358ff, #4f7bff);
    font-size: 12px;
    font-weight: 900;
}
.rublics-feature-card p { margin: 0; color: var(--finlo-muted); font-size: 15px; line-height: 1.58; }

/* Desktop: use the available width; mobile/tablet keeps the readable single column. */
.rublics-steps-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.rublics-step-row {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    padding: 20px 22px;
    border: 1px solid var(--finlo-line);
    border-radius: 18px;
    background: #fbfbff;
}
.rublics-step-row > span {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(135deg, #7358ff, #4f7bff);
    font-weight: 900;
}
.rublics-step-row > div {
    width: 100%;
    min-width: 0;
    max-width: none;
}
.rublics-step-row h3 { width: 100%; max-width: none; margin: 2px 0 7px; }
.rublics-step-row p { width: 100%; max-width: none; margin: 0; color: var(--finlo-muted); font-size: 16px; line-height: 1.58; }

.rublics-check-list { list-style: none; padding-left: 0 !important; display: grid; gap: 10px; }
.rublics-check-list li { position: relative; padding-left: 31px; }
.rublics-check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: .05em;
    display: grid;
    place-items: center;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    color: #fff;
    background: #5dc291;
    font-size: 12px;
    font-weight: 900;
}
.rublics-page-callout {
    margin: 26px 0;
    padding: 20px 22px;
    border: 1px solid rgba(112, 83, 255, .18);
    border-radius: 18px;
    background: #f5f2ff;
    font-size: 16px;
    line-height: 1.62;
}
.rublics-page-callout--blue { border-color: rgba(57, 122, 232, .20); background: #eff6ff; }
.rublics-page-callout--yellow { border-color: rgba(223, 164, 48, .24); background: #fff8e8; }

.rublics-faq-list { display: grid; gap: 12px; }
.rublics-faq-item {
    border: 1px solid var(--finlo-line);
    border-radius: 18px;
    background: #fbfbff;
    overflow: hidden;
}
.rublics-faq-item summary {
    position: relative;
    padding: 19px 52px 19px 22px;
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.35;
}
.rublics-faq-item summary::-webkit-details-marker { display: none; }
.rublics-faq-item summary::after {
    content: '+';
    position: absolute;
    right: 20px;
    top: 50%;
    width: 26px;
    height: 26px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--finlo-primary);
    background: rgba(112,83,255,.10);
    font-size: 20px;
    font-weight: 500;
}
.rublics-faq-item[open] summary::after { content: '−'; }
.rublics-faq-item > div { padding: 0 22px 20px; color: var(--finlo-muted); font-size: 16px; }
.rublics-faq-item > div > :last-child { margin-bottom: 0; }

.rublics-contact-panel {
    display: grid;
    grid-template-columns: 74px minmax(0,1fr);
    gap: 22px;
    align-items: center;
    padding: 28px;
    border: 1px solid var(--finlo-line);
    border-radius: 22px;
    background: linear-gradient(135deg, #f8f6ff, #edf3ff);
}
.rublics-contact-panel__icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 21px;
    color: #fff;
    background: linear-gradient(135deg, #7358ff, #4f7bff);
    font-size: 30px;
    font-weight: 800;
}
.rublics-contact-panel__label { display: block; margin-bottom: 3px; color: var(--finlo-muted); font-size: 13px; font-weight: 700; }
.rublics-contact-panel__value { margin-bottom: 7px; font-size: clamp(23px, 3vw, 32px); font-weight: 900; line-height: 1.15; }
.rublics-contact-panel p { margin: 0; color: var(--finlo-muted); font-size: 15px; }
.rublics-contact-email { word-break: break-word; }

.rublics-legal-meta {
    display: inline-flex;
    margin-bottom: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--finlo-muted);
    background: var(--finlo-soft);
    font-size: 13px;
}
.rublics-legal-placeholder { color: var(--finlo-muted); font-style: italic; }
.rublics-info-page--terms .rublics-info-content,
.rublics-info-page--privacy .rublics-info-content,
.rublics-info-page--personal-data .rublics-info-content,
.rublics-info-page--cookies .rublics-info-content { max-width: 880px; }

.rublics-cookie-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 14px;
}
.rublics-cookie-grid > div {
    padding: 19px;
    border: 1px solid var(--finlo-line);
    border-radius: 17px;
    background: #fbfbff;
}
.rublics-cookie-grid strong { display: block; margin-bottom: 5px; }
.rublics-cookie-grid p { margin: 0; color: var(--finlo-muted); font-size: 15px; line-height: 1.55; }

.rublics-sitemap-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 16px;
}
.rublics-sitemap-card {
    padding: 22px 24px;
    border: 1px solid var(--finlo-line);
    border-radius: 20px;
    background: #fbfbff;
}
.rublics-sitemap-card h2 { margin: 0 0 15px; font-size: 22px; }
.rublics-sitemap-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.rublics-sitemap-card a { text-decoration: none; font-size: 16px; }
.rublics-sitemap-latest__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 10px 18px;
}
.rublics-sitemap-latest__grid a {
    padding: 13px 15px;
    border: 1px solid var(--finlo-line);
    border-radius: 13px;
    text-decoration: none;
    background: #fbfbff;
    font-size: 15px;
    line-height: 1.4;
}

html[data-theme="dark"] .site-footer__disclaimer { color: #8290ad; border-color: #25304b; }
html[data-theme="dark"] .rublics-info-hero {
    border-color: var(--finlo-line);
    background: linear-gradient(135deg, #151b30 0%, #1b1932 54%, #151f36 100%);
}
html[data-theme="dark"] .rublics-info-card,
html[data-theme="dark"] .rublics-feature-card,
html[data-theme="dark"] .rublics-step-row,
html[data-theme="dark"] .rublics-faq-item,
html[data-theme="dark"] .rublics-cookie-grid > div,
html[data-theme="dark"] .rublics-sitemap-card,
html[data-theme="dark"] .rublics-sitemap-latest__grid a {
    color: var(--finlo-text);
    border-color: var(--finlo-line);
    background: var(--finlo-card);
}
html[data-theme="dark"] .rublics-info-intro { background: #151f33; }
html[data-theme="dark"] .rublics-contact-panel { border-color: var(--finlo-line); background: linear-gradient(135deg, #171c31, #151f35); }
html[data-theme="dark"] .rublics-page-callout { color: #dcd8ff; border-color: #403770; background: #211d3d; }
html[data-theme="dark"] .rublics-page-callout--blue { color: #d6e7ff; border-color: #264a78; background: #142741; }
html[data-theme="dark"] .rublics-page-callout--yellow { color: #f6e4b8; border-color: #67552b; background: #312a18; }
html[data-theme="dark"] .rublics-faq-item > div,
html[data-theme="dark"] .rublics-feature-card p,
html[data-theme="dark"] .rublics-step-row p,
html[data-theme="dark"] .rublics-cookie-grid p,
html[data-theme="dark"] .rublics-contact-panel p { color: var(--finlo-muted); }
html[data-theme="dark"] .rublics-legal-meta { background: #151f33; }


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .rublics-steps-list { grid-template-columns: 1fr; }
    .rublics-info-hero__mark { opacity: .25; right: -20px; }
    .rublics-info-hero__copy { max-width: 82%; }
    .rublics-feature-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 768px) {
    .site-footer__disclaimer { font-size: 12px; line-height: 1.55; }
    .rublics-info-hero { min-height: auto; padding: 27px 22px; border-radius: 21px; }
    .rublics-info-hero__copy { max-width: 100%; }
    .rublics-info-hero__mark { display: none; }
    .rublics-info-hero h1 { font-size: clamp(34px, 11vw, 48px); }
    .rublics-info-hero p { margin-top: 15px; font-size: 16px; }
    .rublics-info-card { padding: 24px 18px; border-radius: 21px; }
    .rublics-info-content { font-size: 16px; line-height: 1.66; }
    .rublics-info-intro { padding: 19px; font-size: 17px; }
    .rublics-info-content h2 { margin-top: 36px; font-size: 27px; }
    .rublics-feature-grid,
    .rublics-cookie-grid,
    .rublics-sitemap-grid,
    .rublics-sitemap-latest__grid { grid-template-columns: 1fr; }
    .rublics-feature-card { min-height: 0; }
    .rublics-step-row {
        grid-template-columns: 1fr;
        gap: 13px;
        padding: 18px;
    }
    .rublics-step-row > span { width: 42px; height: 42px; border-radius: 13px; }
    .rublics-step-row > div,
    .rublics-step-row h3,
    .rublics-step-row p { width: 100%; max-width: none; }
    .rublics-step-row h3 { margin-top: 0; }
    .rublics-contact-panel { grid-template-columns: 1fr; gap: 15px; padding: 21px; }
    .rublics-contact-panel__icon { width: 56px; height: 56px; border-radius: 18px; font-size: 25px; }
    .rublics-faq-item summary { padding: 17px 48px 17px 17px; font-size: 16px; }
    .rublics-faq-item > div { padding: 0 17px 17px; }
}
\n\n/* Finboks 1.5.11 — editable hero images on informational/legal pages. */\n.rublics-info-hero--has-image {\n    display: grid;\n    grid-template-columns: minmax(0, 1fr) minmax(210px, 310px);\n    gap: clamp(24px, 4vw, 54px);\n}\n.rublics-info-hero--has-image .rublics-info-hero__copy { max-width: none; }\n.rublics-info-hero__media {\n    position: relative;\n    z-index: 2;\n    width: 100%;\n    min-width: 0;\n    align-self: stretch;\n    display: flex;\n    align-items: center;\n    justify-content: center;\n}\n.rublics-info-hero__image {\n    display: block;\n    width: 100%;\n    max-width: 310px;\n    max-height: 210px;\n    height: auto;\n    object-fit: contain;\n    border-radius: 22px;\n}\nhtml[data-theme="dark"] .rublics-info-hero__image { box-shadow: 0 18px 45px rgba(0,0,0,.16); }\n\n
@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {\n    .rublics-info-hero--has-image { grid-template-columns: minmax(0,1fr) minmax(170px,230px); }\n    .rublics-info-hero--has-image .rublics-info-hero__copy { max-width: 100%; }\n    .rublics-info-hero__image { max-width: 230px; max-height: 180px; }\n}\n@media (max-width: 768px) {\n    .rublics-info-hero--has-image {\n        display: grid;\n        grid-template-columns: 1fr;\n        gap: 22px;\n    }\n    .rublics-info-hero__media { justify-content: flex-start; }\n    .rublics-info-hero__image {\n        width: 100%;\n        max-width: none;\n        max-height: 230px;\n        object-fit: contain;\n        object-position: left center;\n        border-radius: 18px;\n    }\n}\n

/* Finboks 1.5.12 — two-column How It Works steps on desktop. */
@media (min-width: 901px) {
    .rublics-info-page--how-it-works .rublics-steps-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }
    .rublics-info-page--how-it-works .rublics-step-row {
        height: 100%;
        align-content: start;
    }
}


/* Finboks 1.5.17 — hide service page hero images on mobile. */
@media (max-width: 768px) {
    .rublics-info-hero--has-image .rublics-info-hero__media {
        display: none;
    }

    .rublics-info-hero--has-image {
        display: block;
    }

    .rublics-info-hero--has-image .rublics-info-hero__copy {
        max-width: 100%;
    }
}


/* Finboks 1.5.18 - unified header spacing */
.site-header__inner {
    padding-inline: 0;
}

.site-header__tools {
    gap: 12px;
    align-items: center;
}

.site-header__tools > * {
    margin: 0;
}


@media (min-width: 901px) {
    /* Finboks header order: theme -> search -> burger */
    .site-header__tools { order: 0; margin-left: auto; }
    .search-toggle { order: 1; }
    .burger-button { order: 2; }
}


@media (min-width: 901px) {
    .site-header__tools { gap: 6px; }
    .search-toggle { margin-left: 0; }
    .burger-button { margin-left: 0; }
    .header-search {
        right: 0;
        top: calc(100% + 8px);
    }
}

@media (max-width: 900px) {
    .container {
        width: min(calc(100% - 32px), var(--finlo-container));
    }

    .site-header__inner {
        width: min(calc(100% - 32px), var(--finlo-container));
        margin-inline: auto;
        gap: 12px;
    }

    .site-header__tools {
        gap: 10px;
    }

    .icon-button {
        width: 42px;
        height: 42px;
    }
}

/* Equal edge alignment */
.site-header .container,
.site-footer .container,
main .container {
    box-sizing: border-box;
}


/* Finboks 1.5.23 final desktop header alignment */
.site-header__tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.site-header__tools .theme-switcher { order: 0; }
.site-header__tools .search-toggle { order: 1; }
.site-header__tools .burger-button { order: 2; }

@media (min-width: 901px) {
    .header-search {
        right: 0;
        left: auto;
        top: calc(100% + 8px);
    }
}

@media (min-width: 901px) {
    .favorites-page .favorites-menu,
    .favorites-page .favorites-links {
        justify-content: center;
        text-align: center;
        margin-inline: auto;
    }
}

/* Finboks 1.5.24: desktop burger menu spacing */
@media (min-width: 901px) {
    .primary-nav.is-open {
        margin-top: 12px;
    }
}

/* Finboks: footer informational/legal pages intentionally have no breadcrumbs. */
.rublics-footer-service-page .rublics-page-breadcrumbs,
.rublics-footer-service-page .rublics-blog-breadcrumbs,
.rublics-footer-service-page .mfo-breadcrumbs,
.rublics-footer-service-page .sof-breadcrumbs,
.rublics-footer-service-page .favorites-breadcrumbs,
.rublics-footer-service-page .breadcrumbs,
.rublics-footer-service-page .breadcrumb,
.rublics-footer-service-page .yoast-breadcrumb,
.rublics-footer-service-page .rank-math-breadcrumb,
.rublics-footer-service-page .aioseo-breadcrumbs,
.rublics-footer-service-page nav[aria-label="Хлебные крошки"] {
    display: none !important;
}


/* Fix: make text in 'How it works' cards use full card width */
.rublics-info-page--how-it-works .rublics-step-row > div {
    width: 100%;
    min-width: 0;
}
.rublics-info-page--how-it-works .rublics-step-row h3,
.rublics-info-page--how-it-works .rublics-step-row p {
    width: 100%;
    max-width: none;
}
.rublics-info-page--how-it-works .rublics-step-row p {
    word-break: normal;
    overflow-wrap: normal;
}


/* Finboks info pages - desktop content width fix */
@media (min-width: 1024px) {
    .rublics-info-content {
        max-width: 100%;
        width: 100%;
    }
    .rublics-info-content p,
    .rublics-info-content ul,
    .rublics-info-content ol {
        max-width: 100%;
    }
}

/* ================================================================
   Finboks 1.6.0 — financial companies directory
   ================================================================ */
.finlo-companies-page,
.finlo-company-page {
    min-height: 70vh;
    padding: 28px 0 64px;
    background:
        radial-gradient(circle at 88% 2%, rgba(90,57,255,.08), transparent 24rem),
        #f6f7fb;
}
.company-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 24px;
    color: #7b849e;
    font-size: 13px;
    font-weight: 650;
}
.company-breadcrumbs a { color: #5a39ff; }
.company-breadcrumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.company-eyebrow {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eeebff;
    color: #5a39ff;
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.company-archive-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 22px;
    padding: clamp(26px, 4vw, 50px);
    border: 1px solid #e7e8f2;
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(39,43,90,.06);
}
.company-archive-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    top: -130px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(90,57,255,.14), rgba(90,57,255,0) 68%);
    pointer-events: none;
}
.company-archive-hero > div { position: relative; z-index: 1; max-width: 880px; }
.company-archive-hero h1 {
    margin: 16px 0 14px;
    color: #0b163a;
    font-size: clamp(30px, 5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.company-archive-hero p {
    max-width: 800px;
    margin: 0;
    color: #68718e;
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.7;
}
.company-directory-tools {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(190px, 260px) minmax(180px, 230px) auto auto;
    gap: 10px;
    align-items: center;
    margin: 0 0 14px;
    padding: 14px;
    border: 1px solid #e4e6f0;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(39,43,90,.04);
}
.company-directory-tools input,
.company-directory-tools select {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #dfe2ed;
    border-radius: 12px;
    background: #fbfcff;
    color: #172344;
    font-size: 14px;
    outline: 0;
}
.company-directory-tools input:focus,
.company-directory-tools select:focus { border-color: #8b74ff; box-shadow: 0 0 0 3px rgba(90,57,255,.09); }
.company-directory-tools button,
.company-reset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}
.company-directory-tools button { background: #5a39ff; color: #fff; }
.company-directory-tools button:hover { background: #4425e8; }
.company-reset { background: #f2f3f8; color: #59617a; }
.company-directory-summary { margin: 16px 2px 18px; color: #707994; font-size: 14px; }
.company-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 18px;
}
.company-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #e5e7f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 38px rgba(39,43,90,.045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.company-card:hover { transform: translateY(-2px); border-color: #d9d3ff; box-shadow: 0 18px 46px rgba(39,43,90,.08); }
.company-card__head { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: 12px; align-items: start; }
.company-card__logo,
.company-profile-logo {
    display: grid;
    place-items: center;
    overflow: hidden;
    background: linear-gradient(145deg,#f2efff,#faf9ff);
    color: #5a39ff;
    font-weight: 900;
    box-shadow: inset 0 0 0 1px #e8e3ff;
}
.company-card__logo { width: 48px; height: 48px; border-radius: 14px; font-size: 20px; }
.company-card__logo img,
.company-profile-logo img { width: 100%; height: 100%; object-fit: contain; padding: 7px; }
.company-card__titles { min-width: 0; }
.company-card__titles h2 { margin: 1px 0 4px; color: #121e41; font-size: 18px; line-height: 1.25; }
.company-card__titles h2 a:hover { color: #5a39ff; }
.company-card__titles p { margin: 0; color: #68728e; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.company-card__head > .company-status { grid-column: 2; justify-self: start; margin-top: 5px; }
.company-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 26px;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 850;
    line-height: 1.15;
    white-space: nowrap;
}
.company-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .9; }
.company-status--active { background: #eaf8f1; color: #07804a; }
.company-status--inactive { background: #fdecec; color: #ad2525; }
.company-status--unknown { background: #fff5d7; color: #886300; }
.company-card__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    overflow: hidden;
    margin: 18px 0 14px;
    border: 1px solid #eceef5;
    border-radius: 13px;
    background: #eceef5;
}
.company-card__facts div { min-width: 0; padding: 10px 11px; background: #fafbfe; }
.company-card__facts span,
.company-card__address span { display: block; margin-bottom: 4px; color: #828ba5; font-size: 11px; font-weight: 760; }
.company-card__facts strong { display: block; color: #263251; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.company-card__address { margin: 0 0 16px; color: #44506e; font-size: 13px; line-height: 1.6; }
.company-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid #edf0f6; color: #707a96; font-size: 12px; }
.company-card__foot a { color: #5a39ff; font-weight: 850; white-space: nowrap; }
.company-card__foot a:hover { color: #4425e8; }
.company-empty,

.company-load-more-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    margin: 22px 0 6px;
}
.company-load-more-area[hidden] { display: none !important; }
.company-directory-progress { color: #7b849e; font-size: 12px; line-height: 1.4; }
.company-directory-progress strong { color: #34405f; }
.company-load-more {
    min-width: 220px;
    min-height: 48px;
    padding: 11px 24px;
    border: 0;
    border-radius: 14px;
    background: #5a39ff;
    color: #fff;
    box-shadow: 0 10px 24px rgba(90,57,255,.18);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, opacity .16s ease;
}
.company-load-more:hover { transform: translateY(-1px); box-shadow: 0 13px 28px rgba(90,57,255,.23); }
.company-load-more:disabled { cursor: wait; opacity: .68; transform: none; }
.company-grid[aria-busy="true"] { opacity: .82; transition: opacity .16s ease; }

.company-directory-note {
    margin-top: 18px;
    padding: 24px;
    border: 1px solid #e5e7f0;
    border-radius: 18px;
    background: #fff;
}
.company-empty h2 { margin-top: 0; }
.company-directory-note { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: #fbfaff; }
.company-directory-note strong { color: #5a39ff; }
.company-directory-note p { margin: 0; color: #68718e; font-size: 13px; line-height: 1.6; }

/* Company profile */
.company-profile-hero {
    display: grid;
    grid-template-columns: 92px minmax(0,1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
    padding: clamp(22px,4vw,38px);
    border: 1px solid #e4e6f0;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 16px 48px rgba(39,43,90,.055);
}
.company-profile-logo { width: 92px; height: 92px; border-radius: 22px; font-size: 38px; }
.company-profile-logo img { padding: 12px; }
.company-profile-heading__top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.company-checked-pill { display: inline-flex; align-items: center; min-height: 26px; padding: 4px 9px; border: 1px solid #e4e6f0; border-radius: 999px; background: #f8f9fc; color: #707994; font-size: 11px; font-weight: 750; white-space: nowrap; }
.company-profile-heading h1 { margin: 10px 0 4px; color: #0c1738; font-size: clamp(30px,5vw,48px); line-height: 1.05; letter-spacing: -.035em; }
.company-profile-heading > p { margin: 0; color: #6f7893; font-size: 15px; line-height: 1.5; }
.company-profile-layout { display: grid; grid-template-columns: minmax(0,1fr) 320px; gap: 20px; align-items: start; }
.company-profile-main { display: grid; gap: 20px; min-width: 0; }
.company-profile-card,
.company-verification-card,
.company-side-note {
    border: 1px solid #e4e6f0;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 40px rgba(39,43,90,.045);
}
.company-profile-card { padding: clamp(18px,2.8vw,28px); }
.company-section-title { display: flex; gap: 13px; align-items: flex-start; margin-bottom: 18px; }
.company-section-title > span { display: grid; place-items: center; flex: 0 0 38px; width: 38px; height: 38px; border-radius: 12px; background: #f0edff; color: #5a39ff; font-size: 12px; font-weight: 900; }
.company-section-title h2 { margin: 0; color: #152041; font-size: 23px; line-height: 1.2; }
.company-section-title p { margin: 5px 0 0; color: #7c849c; font-size: 13px; }
.company-legal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; overflow: hidden; border: 1px solid #e9ebf3; border-radius: 15px; background: #e9ebf3; }
.company-legal-grid > div { min-width: 0; padding: 12px 14px; background: #fbfcfe; }
.company-legal-grid dt { margin-bottom: 4px; color: #838ca5; font-size: 11.5px; font-weight: 760; }
.company-legal-grid dd { margin: 0; color: #263251; font-size: 14.5px; font-weight: 780; line-height: 1.42; overflow-wrap: anywhere; }
.company-address-box { margin-top: 12px; padding: 13px 14px; border-radius: 14px; background: #f6f5fb; }
.company-address-box span { display: block; margin-bottom: 4px; color: #838ca5; font-size: 11.5px; font-weight: 760; }
.company-address-box p { margin: 0; color: #3e4967; font-size: 14.5px; line-height: 1.55; }
.company-profile-content { color: #46516e; font-size: 15px; line-height: 1.75; }
.company-profile-content > :first-child { margin-top: 0; }.company-profile-content > :last-child { margin-bottom: 0; }
.company-offers-list { display: grid; gap: 10px; }
.company-offer-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px; border: 1px solid #e9ebf3; border-radius: 14px; background: #fbfcff; }
.company-offer-row > div { min-width: 0; }
.company-offer-row span { color: #8a92aa; font-size: 10px; font-weight: 750; }
.company-offer-row h3 { margin: 3px 0 0; color: #1a2646; font-size: 16px; line-height: 1.35; }
.company-offer-row h3 a:hover { color: #5a39ff; }
.company-offer-row__button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 14px; border-radius: 11px; background: #5a39ff; color: #fff; font-size: 12px; font-weight: 800; white-space: nowrap; }
.company-offer-row__button:hover { background: #4425e8; }
.company-no-offers { margin: 0; color: #77809a; }
.company-profile-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.company-verification-card,
.company-side-note { padding: 20px; }
.company-verification-icon { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: #e9f8f1; color: #07804a; font-size: 22px; font-weight: 900; }
.company-verification-card h2 { margin: 0 0 13px; color: #172242; font-size: 18px; }
.company-verification-card p { margin: 7px 0; color: #65708d; font-size: 13px; line-height: 1.55; }
.company-verification-card p strong { color: #273251; }
.company-verification-card a { display: inline-flex; margin-top: 9px; color: #5a39ff; font-size: 13px; font-weight: 850; }
.company-side-note { background: #fbfaff; }
.company-side-note strong { display: block; margin-bottom: 7px; color: #5a39ff; }
.company-side-note p { margin: 0; color: #68728f; font-size: 13px; line-height: 1.65; }

/* Linked legal entity on a single offer. */
.sof-company-legal-link { display: inline-flex; margin-top: 5px; color: #6d7694; font-size: 11px; font-weight: 650; line-height: 1.35; }
.sof-company-legal-link:hover { color: #5a39ff; }
.sof-company-info { padding: 2px 0; }
.sof-company-info__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.sof-company-info__eyebrow { display: block; margin-bottom: 5px; color: #5a39ff; font-size: 10px; font-weight: 850; text-transform: uppercase; letter-spacing: .04em; }
.sof-company-info__head h2 { margin: 0; }
.sof-company-info__head p { margin: 5px 0 0; color: #77809a; font-size: 13px; }
.sof-company-info__facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 14px; }
.sof-company-info__facts > div { padding: 12px 13px; border-radius: 12px; background: #f7f8fc; }
.sof-company-info__facts dt { margin-bottom: 4px; color: #858da5; font-size: 10px; font-weight: 750; }
.sof-company-info__facts dd { margin: 0; color: #2e3957; font-size: 13px; font-weight: 800; overflow-wrap: anywhere; }
.sof-company-info__address { margin: 0 0 13px; color: #59637e; font-size: 13px; line-height: 1.55; }
.sof-company-info__link { display: inline-flex; align-items: center; gap: 6px; color: #5a39ff; font-size: 13px; font-weight: 850; }
.sof-company-info__link:hover { color: #4425e8; }

@media (max-width: 1100px) {
    .company-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .company-profile-layout { grid-template-columns: minmax(0,1fr) 280px; }
}
@media (max-width: 820px) {
    .finlo-companies-page,.finlo-company-page { padding-top: 18px; }
    .company-directory-tools { grid-template-columns: 1fr 1fr; }
    .company-search-field { grid-column: 1/-1; }
    .company-grid { grid-template-columns: 1fr; }
    .company-profile-layout { grid-template-columns: 1fr; }
    .company-profile-side { position: static; }
}
@media (max-width: 600px) {
    .finlo-companies-page .container,.finlo-company-page .container { width: min(calc(100% - 24px),var(--finlo-container)); }
    .company-breadcrumbs { margin-bottom: 14px; font-size: 11px; }
    .company-archive-hero { padding: 22px 18px; border-radius: 18px; }
    .company-archive-hero h1 { margin-top: 12px; font-size: 30px; }
    .company-archive-hero p { font-size: 14px; }
    .company-directory-tools { grid-template-columns: 1fr; padding: 11px; border-radius: 15px; }
    .company-search-field { grid-column: auto; }
    .company-directory-tools input,.company-directory-tools select,.company-directory-tools button,.company-reset { min-height: 44px; }
    .company-card { padding: 16px; border-radius: 16px; }
    .company-card__titles h2 { font-size: 19px; }
    .company-card__titles p { font-size: 13.5px; line-height: 1.5; }
    .company-card__facts { grid-template-columns: 1fr 1fr; }
    .company-card__facts div { padding: 11px 12px; }
    .company-card__facts span,.company-card__address span { font-size: 11px; }
    .company-card__facts strong { font-size: 13px; }
    .company-card__address { font-size: 13.5px; }
    .company-card__foot { align-items: flex-start; flex-direction: column; }
    .company-profile-hero { grid-template-columns: 64px minmax(0,1fr); gap: 14px; padding: 18px; border-radius: 18px; }
    .company-profile-logo { width: 64px; height: 64px; border-radius: 16px; font-size: 27px; }
    .company-profile-heading__top { align-items: center; flex-direction: row; gap: 6px; }
    .company-checked-pill { font-size: 10.5px; }
    .company-profile-heading h1 { margin-top: 7px; font-size: 29px; }
    .company-profile-heading > p { font-size: 12px; }
    .company-profile-card { padding: 16px 14px; border-radius: 17px; }
    .company-section-title { gap: 10px; margin-bottom: 14px; }
    .company-section-title > span { flex-basis: 32px; width: 32px; height: 32px; border-radius: 10px; }
    .company-section-title h2 { font-size: 19px; }
    .company-legal-grid { grid-template-columns: 1fr; }
    .company-legal-grid > div { padding: 11px 12px; }
    .company-legal-grid dt { font-size: 11.5px; }
    .company-legal-grid dd { font-size: 14px; }
    .company-address-box { margin-top: 10px; padding: 12px; }
    .company-address-box p { font-size: 14px; }
    .company-offer-row { align-items: stretch; flex-direction: column; gap: 12px; }
    .company-offer-row__button { width: 100%; }
    .sof-company-info__head { flex-direction: column; }
    .sof-company-info__facts { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .company-load-more-area { margin-top: 18px; }
    .company-load-more { width: 100%; min-width: 0; min-height: 46px; }
    .company-directory-progress { font-size: 12.5px; }
}


/* ============================================================
   Finboks v11.2.8 — compact catalogue hero without large artwork
   The category page now prioritizes title, useful summary facts and offers.
   ============================================================ */
.finlo-catalog-page .mfo-hero {
    background: #fff;
}
.finlo-catalog-page .mfo-hero__layout {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 8px 0 24px;
}
.finlo-catalog-page .mfo-hero__copy {
    width: 100%;
}
.finlo-catalog-page .mfo-hero__copy h1 {
    max-width: 980px;
    font-size: clamp(42px, 3.75vw, 62px);
    line-height: 1.04;
}
.finlo-catalog-page .mfo-hero__description {
    max-width: 900px;
    margin-top: 18px;
}
.finlo-catalog-page .mfo-hero__description p {
    margin-bottom: 0;
}
.finlo-catalog-page .mfo-hero__features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 26px;
    margin-top: 24px;
    max-width: 1120px;
}
.finlo-catalog-page .mfo-mini-feature {
    min-width: 0;
    grid-template-columns: 38px minmax(0, 1fr);
}
.finlo-catalog-page .finlo-section-hero__visual,
.finlo-catalog-page .mfo-hero__visual {
    display: none !important;
}
.finlo-catalog-page .mfo-catalog-section {
    padding-top: 0;
}

@media (max-width: 1100px) {
    .finlo-catalog-page .mfo-hero__features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 760px;
    }
}

@media (max-width: 680px) {
    .finlo-catalog-page .mfo-hero__layout {
        padding: 8px 0 18px;
    }
    .finlo-catalog-page .mfo-hero__copy h1 {
        font-size: clamp(34px, 10vw, 48px);
    }
    .finlo-catalog-page .mfo-hero__description {
        margin-top: 14px;
    }
    .finlo-catalog-page .mfo-hero__features {
        grid-template-columns: 1fr 1fr;
        gap: 14px 10px;
        margin-top: 20px;
    }
    .finlo-catalog-page .mfo-catalog-section {
        padding-top: 8px;
    }
}


/* ============================================================
   Finboks v11.2.9 — compact catalogue hero at desktop-tablet edge
   Keep the four category benefits in one row while the catalogue
   itself is still in desktop layout. This removes the empty right
   side seen around 961–1100px wide viewports.
   ============================================================ */
@media (min-width: 961px) and (max-width: 1100px) {
    .finlo-catalog-page .mfo-hero__layout {
        padding-bottom: 14px;
    }
    .finlo-catalog-page .mfo-hero__description {
        max-width: 1000px;
    }
    .finlo-catalog-page .mfo-hero__features {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 18px;
        max-width: none;
        width: 100%;
        margin-top: 20px;
    }
    .finlo-catalog-page .mfo-mini-feature {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
        align-items: start;
    }
    .finlo-catalog-page .mfo-mini-feature__icon {
        width: 34px;
        height: 34px;
        border-radius: 10px;
    }
    .finlo-catalog-page .mfo-mini-feature__icon svg {
        width: 18px;
        height: 18px;
    }
    .finlo-catalog-page .mfo-mini-feature strong {
        font-size: 11px;
        line-height: 1.25;
    }
    .finlo-catalog-page .mfo-mini-feature small {
        font-size: 10px;
        line-height: 1.4;
    }
    .finlo-catalog-page .mfo-catalog-section {
        padding-top: 0;
    }
}

@media (min-width: 1101px) {
    .finlo-catalog-page .mfo-hero__layout {
        padding-bottom: 16px;
    }
    .finlo-catalog-page .mfo-hero__features {
        margin-top: 20px;
    }
}

/* ============================================================
   Finboks v11.2.11 — balanced category hero (fixed CSS)
   Compact category artwork on desktop, deliberate space around benefits.
   ============================================================ */
@media (min-width: 961px) {
    .finlo-catalog-page .mfo-hero__layout {
        position: relative;
        display: block;
        min-height: 0;
        padding: 8px 0 0;
    }

    .finlo-catalog-page .mfo-hero__copy {
        position: relative;
        width: 100%;
        padding-right: 182px;
    }

    .finlo-catalog-page .mfo-hero__copy h1 {
        max-width: 860px;
    }

    .finlo-catalog-page .mfo-hero__description {
        max-width: 820px;
    }

    /* More breathing room above and below the four benefits. */
    .finlo-catalog-page .mfo-hero__features {
        width: calc(100% + 182px);
        max-width: none;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px 22px;
        margin-top: 34px;
        margin-bottom: 28px;
        padding-right: 0;
    }

    /* Bring back the category illustration only as a quiet visual accent. */
    .finlo-catalog-page .finlo-section-hero__visual--compact {
        display: grid !important;
        position: absolute;
        z-index: 1;
        right: 12px;
        top: 20px;
        width: 154px;
        height: 140px;
        min-height: 0;
        place-items: center;
        overflow: visible;
        pointer-events: none;
        opacity: .76;
    }

    .finlo-catalog-page .finlo-section-hero__visual--compact::before {
        display: none !important;
    }

    .finlo-catalog-page .finlo-section-hero__visual--compact .finlo-section-hero__image,
    .finlo-catalog-page .finlo-section-hero__visual--compact > .rublics-section-icon-svg {
        display: block;
        width: 100%;
        height: 100%;
        max-width: 154px;
        max-height: 140px;
        object-fit: contain;
        filter: drop-shadow(0 9px 16px rgba(58,35,140,.08));
    }

    .finlo-catalog-page .finlo-section-hero__visual--compact .finlo-section-hero__symbol {
        width: 104px;
        height: 104px;
        border-radius: 28px;
        font-size: 44px;
        box-shadow: 0 14px 28px rgba(90,51,224,.13);
    }

    /* No artificial gap before catalogue; feature margin provides the spacing. */
    .finlo-catalog-page .mfo-catalog-section {
        padding-top: 0;
    }
}

@media (min-width: 961px) and (max-width: 1100px) {
    .finlo-catalog-page .mfo-hero__copy {
        padding-right: 150px;
    }

    .finlo-catalog-page .mfo-hero__description {
        max-width: 720px;
    }

    .finlo-catalog-page .mfo-hero__features {
        width: calc(100% + 150px);
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 12px 16px;
        margin-top: 30px;
        margin-bottom: 26px;
    }

    .finlo-catalog-page .finlo-section-hero__visual--compact {
        right: 6px;
        top: 20px;
        width: 126px;
        height: 116px;
        opacity: .72;
    }

    .finlo-catalog-page .finlo-section-hero__visual--compact .finlo-section-hero__image,
    .finlo-catalog-page .finlo-section-hero__visual--compact > .rublics-section-icon-svg {
        max-width: 126px;
        max-height: 116px;
    }

    .finlo-catalog-page .mfo-mini-feature {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 8px;
    }
}

@media (max-width: 960px) {
    .finlo-catalog-page .finlo-section-hero__visual--compact {
        display: none !important;
    }
}

/* ============================================================
   Finboks v11.2.12 — category icon position + partner CTA width
   ============================================================ */

/* External partner links render as <button> instead of <a>.
   Force the button to occupy exactly the same full card width. */
.finlo-catalog-page .mfo-offer-card > button.mfo-primary-button,
.finlo-catalog-page .mfo-offer-card > .mfo-primary-button.rublics-partner-action {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
}

/* Nudge the small category artwork inward so it balances the copy better. */
@media (min-width: 1101px) {
    .finlo-catalog-page .finlo-section-hero__visual--compact {
        right: 40px;
    }
}

@media (min-width: 961px) and (max-width: 1100px) {
    .finlo-catalog-page .finlo-section-hero__visual--compact {
        right: 32px;
    }
}


/* ============================================================
   Finboks v11.2.15 — restored original details link + CTA parity
   ============================================================ */
.finlo-catalog-page .mfo-offer-card > button.mfo-primary-button.rublics-partner-action {
    display: grid;
    place-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-left: 14px;
    padding-right: 14px;
    text-align: center;
}

/* ============================================================
   Finboks v11.2.16 — dark mode for financial organizations
   Company directory/profile styles are declared later than the original
   dark-mode layer, so these final overrides intentionally live at EOF.
   ============================================================ */
html[data-theme="dark"] body.post-type-archive-finlo_company,
html[data-theme="dark"] body.single-finlo_company,
html[data-theme="dark"] body.post-type-archive-finlo_company .site-main,
html[data-theme="dark"] body.single-finlo_company .site-main,
html[data-theme="dark"] .finlo-companies-page,
html[data-theme="dark"] .finlo-company-page {
    color: #f3f6ff;
    background:
        radial-gradient(circle at 88% 2%, rgba(126,96,255,.10), transparent 24rem),
        #0b1120;
}

html[data-theme="dark"] .company-breadcrumbs { color: #95a2bd; }
html[data-theme="dark"] .company-breadcrumbs a { color: #a995ff; }
html[data-theme="dark"] .company-eyebrow {
    color: #b8a9ff;
    background: #24204a;
}

/* Directory hero + filters. */
html[data-theme="dark"] .company-archive-hero,
html[data-theme="dark"] .company-directory-tools,
html[data-theme="dark"] .company-card,
html[data-theme="dark"] .company-empty,
html[data-theme="dark"] .company-directory-note,
html[data-theme="dark"] .company-profile-hero,
html[data-theme="dark"] .company-profile-card,
html[data-theme="dark"] .company-verification-card,
html[data-theme="dark"] .company-side-note {
    color: #f3f6ff;
    border-color: #2b3652;
    background: #151e32;
    box-shadow: 0 12px 40px rgba(0,0,0,.20);
}
html[data-theme="dark"] .company-archive-hero::after {
    background: radial-gradient(circle, rgba(126,96,255,.18), rgba(126,96,255,0) 68%);
}
html[data-theme="dark"] .company-archive-hero h1,
html[data-theme="dark"] .company-card__titles h2,
html[data-theme="dark"] .company-profile-heading h1,
html[data-theme="dark"] .company-section-title h2,
html[data-theme="dark"] .company-offer-row h3,
html[data-theme="dark"] .company-verification-card h2,
html[data-theme="dark"] .company-empty h2 {
    color: #f2f5ff;
}
html[data-theme="dark"] .company-archive-hero p,
html[data-theme="dark"] .company-card__titles p,
html[data-theme="dark"] .company-profile-heading > p,
html[data-theme="dark"] .company-section-title p,
html[data-theme="dark"] .company-profile-content,
html[data-theme="dark"] .company-no-offers,
html[data-theme="dark"] .company-directory-note p,
html[data-theme="dark"] .company-side-note p,
html[data-theme="dark"] .company-verification-card p {
    color: #a9b4cd;
}
html[data-theme="dark"] .company-profile-content h2,
html[data-theme="dark"] .company-profile-content h3,
html[data-theme="dark"] .company-profile-content h4,
html[data-theme="dark"] .company-profile-content strong {
    color: #eef2ff;
}
html[data-theme="dark"] .company-profile-content a { color: #a995ff; }

html[data-theme="dark"] .company-directory-tools input,
html[data-theme="dark"] .company-directory-tools select {
    color: #eef2ff;
    border-color: #34405d;
    background: #10192b;
    color-scheme: dark;
}
html[data-theme="dark"] .company-directory-tools input::placeholder { color: #7f8ba5; }
html[data-theme="dark"] .company-directory-tools input:focus,
html[data-theme="dark"] .company-directory-tools select:focus {
    border-color: #7563da;
    box-shadow: 0 0 0 3px rgba(126,96,255,.13);
}
html[data-theme="dark"] .company-reset {
    color: #c2cbdf;
    background: #202a40;
}
html[data-theme="dark"] .company-reset:hover { background: #27334d; }
html[data-theme="dark"] .company-directory-summary,
html[data-theme="dark"] .company-directory-progress { color: #95a2bd; }
html[data-theme="dark"] .company-directory-progress strong { color: #e2e8f6; }

/* Directory cards. */
html[data-theme="dark"] .company-card:hover {
    border-color: #51487e;
    box-shadow: 0 18px 46px rgba(0,0,0,.28);
}
html[data-theme="dark"] .company-card__logo,
html[data-theme="dark"] .company-profile-logo {
    color: #b7a8ff;
    background: linear-gradient(145deg,#24204a,#1a2540);
    box-shadow: inset 0 0 0 1px #3b3560;
}
html[data-theme="dark"] .company-card__facts,
html[data-theme="dark"] .company-legal-grid {
    border-color: #2b3652;
    background: #2b3652;
}
html[data-theme="dark"] .company-card__facts div,
html[data-theme="dark"] .company-legal-grid > div {
    background: #10192b;
}
html[data-theme="dark"] .company-card__facts span,
html[data-theme="dark"] .company-card__address span,
html[data-theme="dark"] .company-legal-grid dt,
html[data-theme="dark"] .company-address-box span,
html[data-theme="dark"] .company-offer-row span {
    color: #8996b0;
}
html[data-theme="dark"] .company-card__facts strong,
html[data-theme="dark"] .company-legal-grid dd,
html[data-theme="dark"] .company-verification-card p strong {
    color: #e5eaf6;
}
html[data-theme="dark"] .company-card__address,
html[data-theme="dark"] .company-address-box p { color: #b4bfd4; }
html[data-theme="dark"] .company-card__foot {
    color: #95a2bd;
    border-top-color: #2b3652;
}
html[data-theme="dark"] .company-card__foot a,
html[data-theme="dark"] .company-verification-card a,
html[data-theme="dark"] .company-side-note strong { color: #a995ff; }

/* Status and verification pills stay semantic but dark-safe. */
html[data-theme="dark"] .company-status--active { color: #70e0af; background: #12372f; }
html[data-theme="dark"] .company-status--inactive { color: #ff9a9a; background: #3a2027; }
html[data-theme="dark"] .company-status--unknown { color: #f0cf73; background: #3b321b; }
html[data-theme="dark"] .company-checked-pill {
    color: #aab5ca;
    border-color: #34405d;
    background: #202a40;
}
html[data-theme="dark"] .company-verification-icon {
    color: #70e0af;
    background: #12372f;
}

/* Company profile detail surfaces. */
html[data-theme="dark"] .company-section-title > span {
    color: #b8a9ff;
    background: #24204a;
}
html[data-theme="dark"] .company-address-box { background: #10192b; }
html[data-theme="dark"] .company-offer-row {
    border-color: #2b3652;
    background: #10192b;
}
html[data-theme="dark"] .company-offer-row:hover { border-color: #51487e; }
html[data-theme="dark"] .company-side-note,
html[data-theme="dark"] .company-directory-note {
    background: #17182d;
}

/* Linked legal entity block inside single offer: this component is defined
   together with company styles, after the original single-offer dark rules. */
html[data-theme="dark"] .sof-company-legal-link { color: #a9b4cd; }
html[data-theme="dark"] .sof-company-legal-link:hover,
html[data-theme="dark"] .sof-company-info__eyebrow,
html[data-theme="dark"] .sof-company-info__link { color: #a995ff; }
html[data-theme="dark"] .sof-company-info__head p,
html[data-theme="dark"] .sof-company-info__address { color: #a9b4cd; }
html[data-theme="dark"] .sof-company-info__facts > div { background: #10192b; }
html[data-theme="dark"] .sof-company-info__facts dt { color: #8996b0; }
html[data-theme="dark"] .sof-company-info__facts dd { color: #e5eaf6; }

@media (prefers-reduced-motion: no-preference) {
    html[data-theme="dark"] .company-archive-hero,
    html[data-theme="dark"] .company-directory-tools,
    html[data-theme="dark"] .company-card,
    html[data-theme="dark"] .company-profile-hero,
    html[data-theme="dark"] .company-profile-card,
    html[data-theme="dark"] .company-verification-card,
    html[data-theme="dark"] .company-side-note {
        transition: background-color .18s ease, border-color .18s ease, color .18s ease;
    }
}


/* ============================================================
   Finboks v11.2.18 — light-purple "Show more offers" button
   ============================================================ */
.mfo-more-button {
    border-color: #d8ccff;
    color: #6745df;
    background: #f1ecff;
    box-shadow: 0 5px 14px rgba(103,69,223,.08);
}
.mfo-more-button:hover {
    border-color: #c8b7ff;
    color: #5835d2;
    background: #e9e1ff;
    box-shadow: 0 7px 18px rgba(103,69,223,.12);
}
html[data-theme="dark"] .mfo-more-button {
    border-color: #51447e;
    color: #d3c8ff;
    background: #292343;
    box-shadow: none;
}
html[data-theme="dark"] .mfo-more-button:hover {
    border-color: #6e5aa5;
    color: #ece7ff;
    background: #342a55;
}

/* Finboks v11.2.19 — universal Bank of Russia registry control; website uptime retired from compliance. */

/* =========================================================
   Finboks search results — v11.2.24
   Compact logos/icons, site-style pagination and polished empty state.
   ========================================================= */
.finboks-search-page {
    min-height: 60vh;
}
.finboks-search-page > .container {
    width: min(calc(100% - 40px), 1180px);
}
.finboks-search-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 470px);
    align-items: end;
    gap: 28px;
    margin-bottom: 26px;
}
.finboks-search-head.is-empty {
    grid-template-columns: 1fr;
    text-align: center;
}
.finboks-search-head.is-empty .finboks-search-head__copy {
    max-width: 760px;
    margin-inline: auto;
}
.finboks-search-head__eyebrow {
    display: inline-flex;
    margin-bottom: 8px;
    color: var(--finlo-primary);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .02em;
}
.finboks-search-head h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
}
.finboks-search-head p {
    margin: 12px 0 0;
    color: var(--finlo-muted);
    font-size: 15px;
}
.finboks-search-head p strong {
    color: var(--finlo-text);
}
.finboks-search-form {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 52px;
    padding: 5px 5px 5px 46px;
    border: 1px solid var(--finlo-line);
    border-radius: 15px;
    background: var(--finlo-card);
    box-shadow: 0 10px 28px rgba(35,37,85,.05);
}
.finboks-search-form__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    width: 20px;
    height: 20px;
    transform: translateY(-50%);
    color: #78839f;
}
.finboks-search-form__icon svg,
.finboks-search-card__fallback svg,
.finboks-search-empty__icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.finboks-search-form input {
    min-width: 0;
    width: 100%;
    height: 40px;
    padding: 0 10px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--finlo-text);
    font-size: 14px;
}
.finboks-search-form input::placeholder {
    color: #9199ae;
}
.finboks-search-form button {
    min-width: 92px;
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    background: var(--finlo-primary);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    transition: transform .16s ease, background .16s ease;
}
.finboks-search-form button:hover {
    background: var(--finlo-primary-dark);
    transform: translateY(-1px);
}
.finboks-search-results {
    display: grid;
    gap: 12px;
}
.finboks-search-card {
    display: grid;
    grid-template-columns: 94px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 16px 18px;
    border: 1px solid var(--finlo-line);
    border-radius: 18px;
    background: var(--finlo-card);
    box-shadow: 0 8px 26px rgba(35,37,85,.035);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.finboks-search-card:hover {
    border-color: #d8d4f8;
    box-shadow: 0 13px 34px rgba(35,37,85,.07);
    transform: translateY(-1px);
}
.finboks-search-card__media {
    display: grid;
    place-items: center;
    width: 94px;
    height: 82px;
    overflow: hidden;
    border: 1px solid #edf0f7;
    border-radius: 14px;
    background: #fafbff;
}
.finboks-search-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.finboks-search-card__media.is-logo img {
    width: calc(100% - 18px);
    height: calc(100% - 18px);
    object-fit: contain;
}
.finboks-search-card__fallback {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 11px;
    border-radius: 13px;
    background: #eeeaff;
    color: var(--finlo-primary);
}
.finboks-search-card__body {
    min-width: 0;
}
.finboks-search-card__type {
    display: inline-flex;
    align-items: center;
    min-height: 25px;
    margin-bottom: 5px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f0edff;
    color: #5b3fe3;
    font-size: 11px;
    font-weight: 800;
}
.finboks-search-card h2 {
    margin: 0 0 5px;
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.25;
    letter-spacing: -.015em;
}
.finboks-search-card h2 a:hover {
    color: var(--finlo-primary);
}
.finboks-search-card p {
    margin: 0 0 7px;
    color: var(--finlo-muted);
    font-size: 14px;
    line-height: 1.5;
}
.finboks-search-card__more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: var(--finlo-primary);
    font-size: 13px;
    font-weight: 850;
}
.finboks-search-card__more span {
    transition: transform .16s ease;
}
.finboks-search-card__more:hover span {
    transform: translateX(2px);
}
.finboks-search-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 28px;
}
.finboks-search-pagination .page-numbers {
    display: inline-grid;
    min-width: 42px;
    height: 42px;
    place-items: center;
    padding: 0 12px;
    border: 1px solid var(--finlo-line);
    border-radius: 12px;
    background: var(--finlo-card);
    color: var(--finlo-text);
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 5px 16px rgba(35,37,85,.035);
}
.finboks-search-pagination a.page-numbers:hover {
    border-color: #d7d1ff;
    background: #f1eeff;
    color: var(--finlo-primary);
}
.finboks-search-pagination .page-numbers.current {
    border-color: var(--finlo-primary);
    background: var(--finlo-primary);
    color: #fff;
    box-shadow: 0 7px 18px rgba(90,57,255,.2);
}
.finboks-search-pagination .page-numbers.prev,
.finboks-search-pagination .page-numbers.next {
    min-width: auto;
    background: #f0edff;
    border-color: #e5e0ff;
    color: #5a39d9;
}
.finboks-search-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    color: var(--finlo-muted);
}
.finboks-search-empty {
    max-width: 760px;
    margin: 14px auto 0;
    padding: 46px 34px 40px;
    border: 1px solid var(--finlo-line);
    border-radius: 24px;
    background: linear-gradient(145deg, #fff 0%, #f9f8ff 100%);
    box-shadow: 0 16px 44px rgba(35,37,85,.055);
    text-align: center;
}
.finboks-search-empty__icon {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    padding: 20px;
    border-radius: 22px;
    background: #eeeaff;
    color: var(--finlo-primary);
}
.finboks-search-empty h2 {
    margin: 0;
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.15;
}
.finboks-search-empty > p {
    max-width: 570px;
    margin: 12px auto 24px;
    color: var(--finlo-muted);
    font-size: 15px;
}
.finboks-search-form--empty {
    max-width: 590px;
    margin: 0 auto;
    text-align: left;
}
.finboks-search-empty__home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 20px;
    color: var(--finlo-primary);
    font-size: 13px;
    font-weight: 800;
}

html[data-theme="dark"] .finboks-search-head p strong,
html[data-theme="dark"] .finboks-search-card h2,
html[data-theme="dark"] .finboks-search-empty h2 {
    color: var(--finlo-text);
}
html[data-theme="dark"] .finboks-search-form,
html[data-theme="dark"] .finboks-search-card {
    border-color: var(--finlo-line);
    background: var(--finlo-card);
    box-shadow: none;
}
html[data-theme="dark"] .finboks-search-card:hover {
    border-color: #51487e;
}
html[data-theme="dark"] .finboks-search-card__media {
    border-color: #2b3652;
    background: #10192b;
}
html[data-theme="dark"] .finboks-search-card__fallback,
html[data-theme="dark"] .finboks-search-empty__icon,
html[data-theme="dark"] .finboks-search-card__type,
html[data-theme="dark"] .finboks-search-pagination .page-numbers.prev,
html[data-theme="dark"] .finboks-search-pagination .page-numbers.next {
    background: rgba(116,88,255,.16);
}
html[data-theme="dark"] .finboks-search-pagination .page-numbers {
    border-color: var(--finlo-line);
    background: #151e32;
    color: var(--finlo-text);
    box-shadow: none;
}
html[data-theme="dark"] .finboks-search-pagination .page-numbers.current {
    border-color: var(--finlo-primary);
    background: var(--finlo-primary);
    color: #fff;
}
html[data-theme="dark"] .finboks-search-empty {
    border-color: var(--finlo-line);
    background: linear-gradient(145deg, #151e32 0%, #17182c 100%);
    box-shadow: none;
}

@media (max-width: 820px) {
    .finboks-search-head {
        grid-template-columns: 1fr;
        align-items: stretch;
        gap: 18px;
    }
}

@media (max-width: 600px) {
    .finboks-search-page {
        padding-top: 24px;
    }
    .finboks-search-page > .container {
        width: min(calc(100% - 28px), 1180px);
    }
    .finboks-search-head {
        margin-bottom: 18px;
    }
    .finboks-search-head__eyebrow {
        margin-bottom: 5px;
        font-size: 12px;
    }
    .finboks-search-head h1 {
        font-size: 30px;
    }
    .finboks-search-head p {
        margin-top: 8px;
        font-size: 13px;
    }
    .finboks-search-form {
        min-height: 48px;
        padding-left: 42px;
        border-radius: 14px;
    }
    .finboks-search-form__icon {
        left: 14px;
        width: 18px;
        height: 18px;
    }
    .finboks-search-form input {
        height: 38px;
        font-size: 13px;
    }
    .finboks-search-form button {
        min-width: 78px;
        height: 38px;
        padding: 0 13px;
        font-size: 13px;
    }
    .finboks-search-results {
        gap: 10px;
    }
    .finboks-search-card {
        grid-template-columns: 72px minmax(0, 1fr);
        align-items: start;
        gap: 13px;
        padding: 13px;
        border-radius: 16px;
    }
    .finboks-search-card__media {
        width: 72px;
        height: 66px;
        border-radius: 12px;
    }
    .finboks-search-card__media.is-logo img {
        width: calc(100% - 14px);
        height: calc(100% - 14px);
    }
    .finboks-search-card__fallback {
        width: 42px;
        height: 42px;
        padding: 10px;
    }
    .finboks-search-card__type {
        min-height: 22px;
        margin-bottom: 4px;
        padding: 2px 8px;
        font-size: 10px;
    }
    .finboks-search-card h2 {
        margin-bottom: 4px;
        font-size: 17px;
    }
    .finboks-search-card p {
        display: -webkit-box;
        overflow: hidden;
        margin-bottom: 5px;
        font-size: 12px;
        line-height: 1.45;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .finboks-search-card__more {
        font-size: 12px;
    }
    .finboks-search-pagination {
        gap: 6px;
        margin-top: 22px;
    }
    .finboks-search-pagination .page-numbers {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        border-radius: 11px;
        font-size: 12px;
    }
    .finboks-search-pagination .page-numbers.prev,
    .finboks-search-pagination .page-numbers.next {
        padding: 0 11px;
    }
    .finboks-search-empty {
        margin-top: 4px;
        padding: 34px 16px 30px;
        border-radius: 20px;
    }
    .finboks-search-empty__icon {
        width: 62px;
        height: 62px;
        margin-bottom: 15px;
        padding: 17px;
        border-radius: 19px;
    }
    .finboks-search-empty h2 {
        font-size: 25px;
    }
    .finboks-search-empty > p {
        margin: 10px auto 20px;
        font-size: 13px;
    }
}

@media (max-width: 390px) {
    .finboks-search-form {
        grid-template-columns: minmax(0, 1fr) 68px;
    }
    .finboks-search-form button {
        min-width: 68px;
        padding-inline: 9px;
    }
    .finboks-search-pagination .page-numbers.prev,
    .finboks-search-pagination .page-numbers.next {
        font-size: 0;
        min-width: 38px;
        padding: 0;
    }
    .finboks-search-pagination .page-numbers.prev span,
    .finboks-search-pagination .page-numbers.next span {
        font-size: 14px;
    }
}

/* ============================================================
   Finboks v11.2.25 — local bank/company logo standard
   Keep real logos on a white surface in both light and dark themes.
   The image file itself stays original and transparent where applicable.
   ============================================================ */
.company-card__logo.has-image,
.company-profile-logo.has-image,
.mfo-company-logo--image,
.sof-logo--image,
.offer-row__icon--image,
.finboks-search-card__media.is-logo {
    background: #fff !important;
}
.company-card__logo.has-image,
.company-profile-logo.has-image {
    box-shadow: inset 0 0 0 1px #e7e9f0 !important;
}
.mfo-company-logo--image,
.sof-logo--image,
.offer-row__icon--image {
    box-shadow: inset 0 0 0 1px #e7e9f0 !important;
}
.mfo-company-logo--image img,
.sof-logo--image img,
.offer-row__icon--image img,
.company-card__logo.has-image img,
.company-profile-logo.has-image img,
.finboks-search-card__media.is-logo img {
    background: transparent !important;
    object-fit: contain;
}
html[data-theme="dark"] .company-card__logo.has-image,
html[data-theme="dark"] .company-profile-logo.has-image,
html[data-theme="dark"] .mfo-company-logo--image,
html[data-theme="dark"] .sof-logo--image,
html[data-theme="dark"] .offer-row__icon--image,
html[data-theme="dark"] .finboks-search-card__media.is-logo {
    background: #fff !important;
    border-color: #e7e9f0 !important;
    box-shadow: inset 0 0 0 1px #e7e9f0 !important;
}


/* ============================================================
   Finboks v11.2.26 — safe logo fitting
   Some official SVG files draw artwork outside their declared viewBox.
   Keep every logo inside the white tile and provide a uniform safe area.
   ============================================================ */
.company-card__logo.has-image,
.company-profile-logo.has-image,
.mfo-company-logo--image,
.sof-logo--image,
.offer-row__icon--image,
.finboks-search-card__media.is-logo {
    overflow: hidden !important;
    box-sizing: border-box;
    isolation: isolate;
}

.mfo-company-logo--image img,
.sof-logo--image img,
.offer-row__icon--image img,
.company-card__logo.has-image img,
.company-profile-logo.has-image img,
.finboks-search-card__media.is-logo img {
    display: block !important;
    width: 78% !important;
    height: 78% !important;
    max-width: 78% !important;
    max-height: 78% !important;
    margin: auto !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
    border-radius: 0 !important;
    flex: 0 0 auto;
}

/* The larger company profile tile can use a little more breathing room. */
.company-profile-logo.has-image img {
    width: 76% !important;
    height: 76% !important;
    max-width: 76% !important;
    max-height: 76% !important;
}


/* ============================================================
   Finboks v11.2.27 — universal compact logo standard
   One visual rule for banks, companies and every offer location.
   Keep the original artwork untouched; scale only its presentation.
   ============================================================ */
.company-card__logo.has-image,
.company-profile-logo.has-image,
.mfo-company-logo--image,
.sof-logo--image,
.offer-row__icon--image,
.finboks-search-card__media.is-logo {
    display: grid !important;
    place-items: center !important;
    overflow: hidden !important;
    background: #fff !important;
    box-sizing: border-box !important;
}

.company-card__logo.has-image img,
.company-profile-logo.has-image img,
.mfo-company-logo--image img,
.sof-logo--image img,
.offer-row__icon--image img,
.finboks-search-card__media.is-logo img {
    display: block !important;
    width: var(--finlo-logo-scale, 64%) !important;
    height: var(--finlo-logo-scale, 64%) !important;
    max-width: var(--finlo-logo-scale, 64%) !important;
    max-height: var(--finlo-logo-scale, 64%) !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain !important;
    object-position: 50% 50% !important;
    border-radius: 0 !important;
    transform: none !important;
    position: static !important;
}

html[data-theme="dark"] .company-card__logo.has-image,
html[data-theme="dark"] .company-profile-logo.has-image,
html[data-theme="dark"] .mfo-company-logo--image,
html[data-theme="dark"] .sof-logo--image,
html[data-theme="dark"] .offer-row__icon--image,
html[data-theme="dark"] .finboks-search-card__media.is-logo {
    background: #fff !important;
    border-color: #e7e9f0 !important;
    box-shadow: inset 0 0 0 1px #e7e9f0 !important;
}


/* ============================================================
   Finboks v11.2.28 — per-company logo size control
   Each company can override the default 64% visual scale.
   The value is inherited dynamically by every linked offer.
   ============================================================ */


/* =========================================================
   First-visit Cookie notice — Finboks v11.2.29
   ========================================================= */
.finboks-cookie-notice {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 18px;
    z-index: 10020;
    padding: 0 18px;
    pointer-events: none;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .22s ease, transform .22s ease;
}

.finboks-cookie-notice.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.finboks-cookie-notice.is-hiding {
    opacity: 0;
    transform: translateY(12px);
}

.finboks-cookie-notice__inner {
    width: min(760px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding: 14px 14px 14px 16px;
    border: 1px solid #e4e6f2;
    border-radius: 22px;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 18px 54px rgba(25, 28, 65, .16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    pointer-events: auto;
}

.finboks-cookie-notice__icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 15px;
    color: var(--finlo-primary);
    background: #f0edff;
}

.finboks-cookie-notice__icon svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.finboks-cookie-notice__icon circle {
    fill: currentColor;
    stroke: none;
}

.finboks-cookie-notice__content {
    min-width: 0;
}

.finboks-cookie-notice__title {
    display: block;
    margin: 0 0 2px;
    color: var(--finlo-text);
    font-size: 15px;
    line-height: 1.3;
    font-weight: 800;
}

.finboks-cookie-notice__content p {
    margin: 0;
    color: var(--finlo-muted);
    font-size: 13.5px;
    line-height: 1.48;
}

.finboks-cookie-notice__content a {
    color: var(--finlo-primary);
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.finboks-cookie-notice__content a:hover,
.finboks-cookie-notice__content a:focus-visible {
    text-decoration: underline;
}

.finboks-cookie-notice__actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.finboks-cookie-notice__button {
    min-height: 44px;
    min-width: 108px;
    border: 0;
    border-radius: 14px;
    padding: 0 18px;
    color: #fff;
    background: linear-gradient(135deg, #7250ff, #5731f5);
    box-shadow: 0 9px 22px rgba(90, 57, 255, .22);
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.finboks-cookie-notice__button--secondary {
    color: var(--finlo-text);
    background: #f1f2f7;
    box-shadow: none;
}

.finboks-cookie-notice__button:hover {
    transform: translateY(-1px);
    box-shadow: 0 11px 25px rgba(90, 57, 255, .28);
}

.finboks-cookie-notice__button:focus-visible,
.finboks-cookie-notice__content a:focus-visible {
    outline: 3px solid rgba(90, 57, 255, .22);
    outline-offset: 3px;
}

html[data-theme="dark"] .finboks-cookie-notice__inner {
    border-color: rgba(255, 255, 255, .10);
    background: rgba(22, 25, 43, .97);
    box-shadow: 0 18px 58px rgba(0, 0, 0, .36);
}

html[data-theme="dark"] .finboks-cookie-notice__icon {
    background: rgba(114, 80, 255, .15);
}

html[data-theme="dark"] .finboks-cookie-notice__title {
    color: #f7f8ff;
}

html[data-theme="dark"] .finboks-cookie-notice__content p {
    color: #aeb5ca;
}

html[data-theme="dark"] .finboks-cookie-notice__button--secondary {
    color: #f7f8ff;
    background: rgba(255,255,255,.10);
}

@media (max-width: 620px) {
    .finboks-cookie-notice {
        bottom: 12px;
        padding: 0 10px;
    }

    .finboks-cookie-notice__inner {
        grid-template-columns: 40px minmax(0, 1fr);
        gap: 10px 12px;
        padding: 12px;
        border-radius: 19px;
    }

    .finboks-cookie-notice__icon {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .finboks-cookie-notice__icon svg {
        width: 22px;
        height: 22px;
    }

    .finboks-cookie-notice__title {
        font-size: 14px;
    }

    .finboks-cookie-notice__content p {
        font-size: 12.5px;
        line-height: 1.45;
    }

    .finboks-cookie-notice__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .finboks-cookie-notice__button {
        width: 100%;
        min-height: 43px;
        border-radius: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .finboks-cookie-notice,
    .finboks-cookie-notice__button {
        transition: none;
    }
}

/* Finboks v11.2.31 — monitor baseline refresh workflow */

/* Finboks v11.2.32 — robust offer monitor report storage */

/* Finboks v11.2.33 — native-array storage for offer monitor reports */

/* Finboks v11.2.34 — stricter contextual matching for offer monitor */

/* Finboks v11.2.35 — tighter semantic anchors for offer monitor */

/* Finboks v11.2.36 — category-aware offer monitoring profiles */
