/* ===== DESIGN TOKENS — banks.kiev.ua ===== */
:root {
    --primary-color: #cc0000;
    --secondary-color: #f19100;
    --text-color: #333;
    --text-muted: #666;
    --border-color: #dbdbdb;
    --background-color: #f7f7f7;
    --header-bg: #ffffff;
    --spacer: 1rem;
}

/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    width: 100%;
    overflow-x: hidden;
}

/* Footer */
.site-footer {
    margin-top: 24px;
    border-top: 3px solid var(--primary-color);
    background: #ffffff;
}

.site-footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 18px 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: center;
    justify-content: space-between;
}

.site-footer-logo {
    font-size: 1.4rem;
    font-weight: 900;
    letter-spacing: -1px;
    line-height: 1;
    color: #000;
}

.site-footer-logo .logo-accent {
    color: var(--primary-color);
}

.site-footer-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.site-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    align-items: center;
}

.site-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.site-footer-links a:hover {
    color: var(--primary-color);
}

.site-footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Override inline reset styles for navigation */
nav, ul, li {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Main Layout */
#main {
    max-width: 980px;
    margin: 16px auto;
    padding: 0 10px;
}

/* Site Header */
.site-header {
    background: var(--header-bg);
    border-bottom: 3px solid var(--primary-color);
    width: 100%;
}

.site-header-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 10px 10px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 2.4rem;
    font-weight: 900;
    text-decoration: none;
    color: #000;
    letter-spacing: -2px;
    line-height: 1;
}

.site-logo .logo-accent {
    color: var(--primary-color);
}

.site-tagline {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Navigation Menu */
.main-menu {
    background: var(--header-bg);
    border-top: 1px solid var(--border-color);
    margin: 0;
    width: 100%;
    position: relative;
}

.main-menu-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-panel {
    display: flex;
    flex: 1;
    min-width: 0;
    justify-content: space-between;
    align-items: center;
}

.main-menu-left {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    list-style: none;
    gap: 0;
    flex: 1;
    min-width: 0;
    overflow: visible;
    margin: 0;
    padding: 0;
}

.main-menu-left .nav-item > a {
    display: block;
    padding: 10px 11px;
    color: var(--text-color) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
}

.main-menu-left .nav-item > a:hover,
.main-menu-left .nav-item > a.active {
    color: var(--primary-color) !important;
    border-bottom-color: var(--primary-color);
    background: none;
}

/* Overflow "More" dropdown */
.nav-more {
    position: relative;
    flex-shrink: 0;
}

.nav-more[hidden] {
    display: none;
}

.nav-more-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 11px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-color);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.nav-more-toggle:hover,
.nav-more.is-open .nav-more-toggle {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.nav-more-caret {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-more.is-open .nav-more-caret {
    transform: rotate(180deg);
}

.nav-more-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    list-style: none;
    margin: 0;
    padding: 6px 0;
    min-width: 180px;
    display: none;
    z-index: 1000;
}

.nav-more.is-open .nav-more-menu {
    display: block;
}

.nav-more-menu .nav-item > a {
    display: block;
    padding: 9px 16px;
    color: var(--text-color) !important;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: none;
}

.nav-more-menu .nav-item > a:hover {
    background: #f6f6f6;
    color: var(--primary-color) !important;
}

.main-menu-right {
    display: flex;
    list-style: none;
    gap: 0;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

/* Hamburger toggle (mobile only) */
.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin: 4px 0;
    padding: 0;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.nav-toggle-box,
.nav-toggle-box::before,
.nav-toggle-box::after {
    content: "";
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-color);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle-box {
    position: relative;
}

.nav-toggle-box::before {
    position: absolute;
    top: -6px;
    left: 0;
}

.nav-toggle-box::after {
    position: absolute;
    top: 6px;
    left: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box {
    background: transparent;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::before {
    top: 0;
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-box::after {
    top: 0;
    transform: rotate(-45deg);
}

/* Language Dropdown */
.language-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 5px 10px;
    margin-left: 6px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
    font-size: 13px;
}

.dropdown-toggle:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

.current-language {
    font-weight: 500;
}

.dropdown-arrow {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}

.language-dropdown.is-open .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
    min-width: 120px;
    display: none;
    z-index: 1000;
}

.language-dropdown.is-open .dropdown-menu {
    display: block;
}

.dropdown-menu li {
    margin: 0;
}

.dropdown-menu .language-link {
    display: block;
    padding: 0.5rem 1rem;
    color: var(--text-color) !important;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.2s ease;
}

.dropdown-menu .language-link:hover {
    background: #f8f9fa;
    color: var(--text-color) !important;
    text-decoration: none;
}

/* Content Styles */
.main-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 0;
}

.content-description {
    margin-top: 1rem;
    line-height: 1.7;
}

/* Common Content Styles */
.label-block {
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    text-align: center;
}

.list-block {
    margin-top: 2rem;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.content-article {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.breadcrumbs {
    background: #f8f9fa;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.date-wrapper {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.date-wrapper i {
    color: var(--primary-color);
}

.image-wrapper {
    margin: 2rem 0;
    text-align: center;
}

.image-wrapper .image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.description-wrapper {
    color: var(--text-color);
    line-height: 1.7;
    font-size: 1rem;
    margin: 2rem 0;
}

.description-wrapper p {
    margin-bottom: 1rem;
}

.description-wrapper h2,
.description-wrapper h3,
.description-wrapper h4 {
    color: var(--text-color);
    margin: 1.5rem 0 1rem 0;
    font-weight: 600;
}

.description-wrapper ul,
.description-wrapper ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.description-wrapper li {
    margin-bottom: 0.5rem;
}

/* 404 Error Page */
.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content {
    max-width: 500px;
    padding: 2rem;
}

.error-code {
    font-size: 6rem;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.error-title {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.error-message {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background-color 0.2s;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: #aa0000;
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
    color: white;
}

/* Utility Classes */
.clear {
    clear: both;
}

.d-n {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .main-menu-inner {
        justify-content: flex-end;
        padding: 6px 10px;
    }

    .nav-toggle {
        display: flex;
        margin-right: auto;
    }

    /* Drawer: hidden by default, opens below the bar */
    .nav-panel {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        background: var(--header-bg);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
        padding: 6px 0;
        display: none;
        z-index: 1000;
    }

    .main-menu.is-open .nav-panel {
        display: flex;
    }

    .main-menu-left {
        flex-direction: column;
        align-items: stretch;
        flex: none;
        overflow: visible;
    }

    .main-menu-left .nav-item > a {
        padding: 12px 18px;
        border-bottom: 1px solid var(--border-color);
        border-left: 3px solid transparent;
    }

    .main-menu-left .nav-item > a:hover,
    .main-menu-left .nav-item > a.active {
        border-bottom-color: var(--border-color);
        border-left-color: var(--primary-color);
        background: #fafafa;
    }

    /* No overflow menu on mobile — everything is in the drawer */
    .nav-more {
        display: none !important;
    }

    .main-menu-right {
        justify-content: flex-start;
        padding: 10px 18px 4px;
    }

    .dropdown-toggle {
        margin-left: 0;
        padding: 6px 12px;
        font-size: 14px;
    }

    .dropdown-menu {
        right: auto;
        left: 0;
    }

    .main-content {
        padding: 1rem 0;
    }
    
    .content-wrapper {
        padding: 1rem;
    }
    
    .content-article {
        padding: 1rem;
    }
    
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.5rem;
    }
}

/* ===== Article Cards ===== */
.blog-list-container {
    margin-top: 16px;
}

.blog-list-container .list-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: stretch;
}

.blog-item {
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: 3px solid var(--primary-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.blog-item-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #eee;
    height: 120px;
}

.blog-item-image {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.blog-item-image-link {
    display: block;
    height: 120px;
    overflow: hidden;
}

.no-image-placeholder {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 120px;
    overflow: hidden;
    text-decoration: none;
    background:
        radial-gradient(circle at 78% 20%, rgba(204, 0, 0, 0.12), transparent 34%),
        linear-gradient(135deg, rgba(204, 0, 0, 0.14), rgba(204, 0, 0, 0.035) 54%, #f7f7f7);
}

.no-image-placeholder::before {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1px solid rgba(204, 0, 0, 0.12);
    border-radius: 4px;
}

.no-image-placeholder-mark {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.78);
    color: rgba(204, 0, 0, 0.54);
    border: 1px solid rgba(204, 0, 0, 0.12);
    font-size: 17px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 0;
}

.blog-item-info-wrapper {
    padding: 10px;
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
}

.blog-item-title {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.blog-item-title:hover {
    color: var(--primary-color);
}

.blog-item-publish {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.blog-item-description {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 900px) {
    .blog-list-container .list-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .blog-list-container .list-view {
        grid-template-columns: 1fr;
    }
}

.blog-page-label {
    background: var(--primary-color);
    color: #fff;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 700;
    display: inline-block;
    margin-bottom: 12px;
}

/* ===== Article View ===== */
.blog-view-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 8px;
    line-height: 1.3;
}

.blog-view-meta {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 8px;
}

.blog-view-body {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-color);
}

.blog-view-body p {
    margin-bottom: 1rem;
}

.blog-view-body img {
    max-width: 100%;
    height: auto;
}

/* ===== Category filter bar ===== */
.category-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.category-filter a {
    padding: 4px 10px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 12px;
    background: #fff;
}

.category-filter a:hover,
.category-filter a.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    margin: 20px 0;
    list-style: none;
    padding: 0;
}

.pagination li a,
.pagination li span {
    display: block;
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    text-decoration: none;
    font-size: 13px;
    background: #fff;
}

.pagination li.active span,
.pagination li a:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

@media (max-width: 480px) {
    #main {
        padding: 0.5rem;
    }
    
    .error-code {
        font-size: 3rem;
    }
}
/* ===== Homepage sections ===== */
.home-section {
    margin-bottom: 24px;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.home-section-more {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: none;
}

.home-section-more:hover {
    color: var(--primary-color);
}

/* Credit offers */
.category-intro,
.category-description {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin: 14px 0;
}

.category-intro {
    border-left: 4px solid var(--primary-color);
}

.credit-offers-container {
    margin: 20px 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.credit-offers-container > h2 {
    font-size: 20px;
    line-height: 1.25;
    color: var(--text-color);
    margin: 0 0 6px;
}

.credit-offer-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 9px 10px;
}

.offer-header {
    flex: 0 0 84px;
    width: 84px;
    min-width: 84px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.offer-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    color: inherit;
    text-decoration: none;
}

.offer-logo {
    max-width: 80px;
    max-height: 58px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.offer-logo-text {
    max-width: 68px;
    font-size: 11px;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-color);
    overflow-wrap: anywhere;
}

.offer-parameters {
    flex: 1 1 auto;
    min-width: 0;
}

.offer-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.offer-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    min-width: 0;
}

.offer-badge-new {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fff3d6;
    color: #9a5a00;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.offer-primary-line {
    color: var(--primary-color);
    font-size: 17px;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-secondary-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 3px;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.25;
}

.offer-separator {
    color: #bbb;
}

.offer-actions {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

.offer-methods {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 30px;
}

.offer-method {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 74px;
    max-width: 100%;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
}

.offer-method-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #168a3a;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.offer-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    background: var(--primary-color);
    color: #fff !important;
    padding: 7px 11px;
    border-radius: 4px;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.offer-btn:hover {
    background: #a80000;
}

.offer-legal {
    position: relative;
    flex: 0 0 auto;
}

.offer-legal > summary {
    list-style: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    background: #fff;
    color: var(--text-muted);
    font-weight: 800;
    font-size: 15px;
    line-height: 1;
}

.offer-legal > summary::-webkit-details-marker {
    display: none;
}

.offer-legal[open] > summary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.offer-org-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.offer-info-links {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 14px;
    margin-top: 5px;
}

.offer-info-links a {
    color: var(--text-muted);
    font-size: 11px;
    line-height: 1.3;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.offer-info-links a:hover {
    color: var(--primary-color);
}

.credit-disclaimer {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    background: #fff8ec;
    border: 1px solid #f4d9ad;
    border-left: 4px solid var(--secondary-color);
    padding: 14px 16px;
    margin: 10px 0 18px;
}

.credit-disclaimer-icon {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 800;
    font-size: 13px;
    line-height: 20px;
    text-align: center;
}

.credit-disclaimer p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
    color: #555;
}

.blog-faq-wrapper {
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid #e5e5e5;
}

.blog-faq-wrapper h2 {
    margin: 0 0 18px;
    font-size: 26px;
    line-height: 1.25;
}

.blog-faq-item {
    padding: 16px 0;
    border-bottom: 1px solid #eeeeee;
}

.blog-faq-item h3 {
    margin: 0 0 8px;
    font-size: 18px;
    line-height: 1.35;
}

.blog-faq-answer {
    color: #444;
    font-size: 15px;
    line-height: 1.65;
}

@media (max-width: 767px) {
    .credit-offers-container {
        gap: 10px;
    }

    .credit-offer-card {
        flex-direction: column;
        align-items: center;
        gap: 10px;
        padding: 14px 12px;
        text-align: center;
    }

    .offer-header {
        flex: 0 0 auto;
        width: 100%;
        min-width: 0;
    }

    .offer-logo {
        max-width: 150px;
        max-height: 86px;
    }

    .offer-logo-text {
        max-width: 150px;
        font-size: 14px;
    }

    .offer-primary-line {
        font-size: 18px;
        white-space: normal;
    }

    .offer-parameters {
        width: 100%;
    }

    .offer-secondary-line {
        justify-content: center;
        font-size: 12px;
        line-height: 1.35;
    }

    .offer-org-name {
        font-size: 13px;
        white-space: normal;
    }

    .offer-title-row {
        flex-direction: column;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .offer-badges {
        justify-content: center;
    }

    .offer-actions {
        width: 100%;
        align-items: center;
        gap: 8px;
    }

    .offer-method {
        font-size: 12px;
    }

    .offer-method-icon {
        width: 20px;
        height: 20px;
        font-size: 13px;
    }

    .offer-btn {
        width: min(100%, 240px);
        min-height: 40px;
        padding: 10px 16px;
        font-size: 14px;
    }

    .offer-info-links {
        justify-content: center;
    }

    .offer-legal > summary {
        width: 26px;
        height: 26px;
        font-size: 14px;
    }
}

@media (min-width: 768px) {
    .credit-offers-container {
        gap: 10px;
    }

    .credit-offer-card {
        gap: 14px;
        padding: 11px 14px;
    }

    .offer-header {
        flex-basis: 112px;
        width: 112px;
        min-width: 112px;
    }

    .offer-logo {
        max-width: 104px;
        max-height: 66px;
    }

    .offer-logo-text {
        max-width: 84px;
        font-size: 12px;
    }

    .offer-primary-line {
        font-size: 18px;
    }

    .offer-secondary-line {
        font-size: 13px;
    }

    .offer-btn {
        min-height: 34px;
        padding: 8px 14px;
        font-size: 13px;
    }
}

@media (max-width: 359px) {
    .credit-offer-card {
        padding: 12px 10px;
    }

    .offer-parameters {
        width: 100%;
        flex-basis: auto;
    }

    .offer-actions {
        padding-left: 0;
    }

    .offer-info-links {
        width: auto;
    }
}

/* ============ Portal homepage ============ */
.portal { width: 100%; }

.portal-hero {
    display: grid;
    grid-template-columns: 1.7fr 1fr;
    gap: 18px;
    margin: 18px 0 28px;
}
.hero-lead {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 9px;
    background: linear-gradient(135deg, #ffffff 0%, #fdeaea 100%);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 8px;
    padding: 26px 26px 22px;
    text-decoration: none;
    min-height: 235px;
    transition: box-shadow .2s ease;
}
.hero-lead:hover { box-shadow: 0 8px 24px rgba(0,0,0,.10); }
.hero-kicker {
    align-self: flex-start;
    background: var(--primary-color);
    color: #fff;
    font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em;
    padding: 4px 10px; border-radius: 3px;
}
.hero-title { display: block; font-size: 27px; line-height: 1.22; font-weight: 800; color: var(--text-color); }
.hero-lead:hover .hero-title { color: var(--primary-color); }
.hero-excerpt {
    font-size: 15px; line-height: 1.55; color: var(--text-muted);
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.hero-date, .hero-sec time, .cat-lead time, .headline-list time { font-size: 12.5px; color: var(--text-muted); }
.hero-secondary { display: flex; flex-direction: column; border: 1px solid var(--border-color); border-radius: 8px; overflow: hidden; }
.hero-sec { display: flex; flex-direction: column; gap: 5px; padding: 14px 16px; text-decoration: none; border-bottom: 1px solid #f0f0f0; }
.hero-sec:last-child { border-bottom: none; }
.hero-sec:hover { background: #faf5f5; }
.hero-sec-title { font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--text-color); display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden; }
.hero-sec:hover .hero-sec-title { color: var(--primary-color); }

.portal-body { display: grid; grid-template-columns: 1fr 300px; gap: 28px; align-items: start; }
.portal-main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }

.cat-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--primary-color); padding-bottom: 6px; margin-bottom: 14px; }
.cat-head h2 { margin: 0; font-size: 19px; font-weight: 800; color: var(--text-color); }
.cat-more { font-size: 13px; color: var(--primary-color); text-decoration: none; font-weight: 700; white-space: nowrap; }
.cat-more:hover { text-decoration: underline; }
.cat-body { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; }
.cat-lead { display: flex; flex-direction: column; gap: 7px; text-decoration: none; }
.cat-lead-title { font-size: 18px; font-weight: 700; line-height: 1.3; color: var(--text-color); }
.cat-lead:hover .cat-lead-title { color: var(--primary-color); }
.cat-lead-excerpt { font-size: 14px; line-height: 1.5; color: var(--text-muted); display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden; }
.headline-list { list-style: none; margin: 0; padding: 0; }
.headline-list li { border-bottom: 1px solid #eee; }
.headline-list li:last-child { border-bottom: none; }
.headline-list a { display: flex; flex-direction: column; gap: 3px; padding: 9px 0; text-decoration: none; }
.headline-list .hl-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text-color); }
.headline-list a:hover .hl-title { color: var(--primary-color); }

.portal-aside { display: flex; flex-direction: column; gap: 22px; }
.aside-widget { border: 1px solid var(--border-color); border-radius: 8px; padding: 16px 18px; }
.aside-title { margin: 0 0 12px; font-size: 16px; font-weight: 800; color: var(--text-color); padding-bottom: 8px; border-bottom: 2px solid var(--primary-color); }
.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { display: flex; gap: 11px; padding: 10px 0; border-bottom: 1px solid #f0f0f0; align-items: flex-start; }
.popular-list li:last-child { border-bottom: none; }
.popular-list .rank { flex: 0 0 24px; width: 24px; height: 24px; line-height: 24px; text-align: center; background: #f3f3f3; color: var(--primary-color); font-weight: 800; border-radius: 4px; font-size: 13px; }
.popular-list a { font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text-color); text-decoration: none; }
.popular-list a:hover { color: var(--primary-color); }
.credit-promo { background: linear-gradient(135deg, #ffffff 0%, #fdeaea 100%); border-top: 4px solid var(--primary-color); }
.credit-promo p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.55; color: var(--text-muted); }
.promo-btn { display: inline-block; background: var(--primary-color); color: #fff !important; text-decoration: none; font-weight: 800; font-size: 14px; padding: 10px 16px; border-radius: 5px; }
.promo-btn:hover { background: #a80000; }

@media (max-width: 900px) {
    .portal-hero { grid-template-columns: 1fr; }
    .portal-body { grid-template-columns: 1fr; }
    .cat-body { grid-template-columns: 1fr; gap: 12px; }
    .hero-title { font-size: 23px; }
}

/* ============ Credit hub portal ============ */
.hub { width: 100%; }
.hub-crumbs { font-size: 13px; color: var(--text-muted); margin: 14px 0 16px; }
.hub-crumbs a { color: var(--primary-color); text-decoration: none; }
.hub-crumbs a:hover { text-decoration: underline; }
.hub-crumbs .sep { margin: 0 6px; color: #bbb; }

.hub-hero {
    background: linear-gradient(135deg, #ffffff 0%, #fdeaea 100%);
    border: 1px solid var(--border-color);
    border-top: 4px solid var(--primary-color);
    border-radius: 10px;
    padding: 26px 28px;
    margin-bottom: 28px;
}
.hub-hero h1 { margin: 0 0 10px; font-size: 28px; line-height: 1.2; font-weight: 800; color: var(--text-color); }
.hub-hero p { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); max-width: 760px; }

.hub-group { margin-bottom: 30px; }
.hub-group-title {
    margin: 0 0 16px; font-size: 20px; font-weight: 800; color: var(--text-color);
    padding-bottom: 7px; border-bottom: 2px solid var(--primary-color);
}
.hub-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.hub-card {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: #fff; border: 1px solid var(--border-color); border-left: 3px solid var(--primary-color);
    border-radius: 7px; padding: 15px 16px; text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease;
}
.hub-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.10); transform: translateY(-2px); }
.hub-card-title {
    font-size: 14.5px; font-weight: 700; line-height: 1.35; color: var(--text-color);
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.hub-card:hover .hub-card-title { color: var(--primary-color); }
.hub-card-arrow { flex: 0 0 auto; color: var(--primary-color); font-size: 18px; font-weight: 800; }

.hub-offers { margin: 6px 0 30px; }
.hub-offers .credit-offers-container > h2 {
    font-size: 22px; font-weight: 800; margin: 0 0 6px;
    padding-bottom: 7px; border-bottom: 2px solid var(--primary-color);
}

.hub-news { margin-bottom: 26px; }
.hub-news .cat-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--primary-color); padding-bottom: 6px; margin-bottom: 12px; }
.hub-news .cat-head h2 { margin: 0; font-size: 20px; font-weight: 800; color: var(--text-color); }
.hub-news-list { list-style: none; margin: 0; padding: 0; }
.hub-news-list li { border-bottom: 1px solid #eee; }
.hub-news-list li:last-child { border-bottom: none; }
.hub-news-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 12px 0; text-decoration: none; }
.hub-news-list .hn-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text-color); }
.hub-news-list a:hover .hn-title { color: var(--primary-color); }
.hub-news-list time { flex: 0 0 auto; font-size: 12.5px; color: var(--text-muted); white-space: nowrap; }

@media (max-width: 700px) {
    .hub-hero { padding: 20px; }
    .hub-hero h1 { font-size: 23px; }
    .hub-cards { grid-template-columns: 1fr; }
    .hub-news-list a { flex-direction: column; gap: 3px; }
}

/* ===== Top-menu dropdown (Кредити та МФО) ===== */
.nav-has-sub { position: relative; }
.nav-sub-caret { font-size: 0.65rem; margin-left: 3px; display: inline-block; transition: transform .2s ease; }
.nav-has-sub:hover .nav-sub-caret { transform: rotate(180deg); }
.nav-submenu {
    position: absolute; top: 100%; left: 0; min-width: 235px;
    background: #fff; border: 1px solid var(--border-color); border-top: 3px solid var(--primary-color);
    border-radius: 0 0 6px 6px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
    list-style: none; margin: 0; padding: 6px 0; display: none; z-index: 1001;
}
.nav-has-sub:hover .nav-submenu { display: block; }
.nav-submenu li > a { display: block; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--text-color); text-decoration: none; white-space: nowrap; border-bottom: none; }
.nav-submenu li > a:hover { background: #f6f6f6; color: var(--primary-color); }
.nav-submenu-all { border-top: 1px solid #eee; margin-top: 4px; }
.nav-submenu-all > a { color: var(--primary-color) !important; font-weight: 800; }
@media (max-width: 768px) {
    .nav-submenu { position: static; display: block; box-shadow: none; border: none; border-radius: 0; padding: 0 0 8px; min-width: 0; background: transparent; }
    .nav-submenu li > a { padding: 7px 0 7px 18px; color: #555; }
    .nav-sub-caret { display: none; }
}

/* ===== Static content pages (about / policy / agreement) ===== */
.content-description { font-size: 15.5px; line-height: 1.7; color: #333; }
.content-description h2 { font-size: 20px; font-weight: 800; margin: 24px 0 10px; color: var(--text-color); }
.content-description p { margin: 0 0 14px; }
.content-description ul, .content-description ol { margin: 0 0 16px 24px; padding: 0; }
.content-description ul { list-style: disc; }
.content-description ol { list-style: decimal; }
.content-description li { margin: 0 0 7px; list-style: inherit; display: list-item; }
.content-description a { color: var(--primary-color); text-decoration: underline; }
.content-description a:hover { color: #a80000; }

/* ===== Credit page lead intro (before offers) ===== */
.page-intro {
    font-size: 16.5px; line-height: 1.65; color: #444;
    margin: 0 0 22px; padding-left: 14px;
    border-left: 3px solid var(--primary-color);
}

/* ===== Credit page: two-column layout with all-pages sidebar ===== */
.page-with-aside {
    max-width: 1160px; margin: 0 auto; padding: 2rem 1rem;
    display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 26px; align-items: start;
}
/* sidebar scrolls normally with the page (no sticky) */
.page-aside-list { list-style: none; margin: 0; padding: 0; }
.page-aside-list li { border-bottom: 1px solid #f0f0f0; }
.page-aside-list li:last-child { border-bottom: none; }
.page-aside-list a, .page-aside-list span { display: block; padding: 9px 4px; font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--text-color); text-decoration: none; }
.page-aside-list a:hover { color: var(--primary-color); }
.page-aside-list li.active span { color: var(--primary-color); border-left: 3px solid var(--primary-color); padding-left: 11px; margin-left: -4px; }
@media (max-width: 900px) {
    .page-with-aside { grid-template-columns: 1fr; }
    .page-aside { position: static; }
}

/* ===== Contact form ===== */
.contact-form-wrap { margin-top: 18px; }
.contact-form .form-group { margin-bottom: 14px; }
.contact-form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 5px; color: var(--text-color); }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form textarea, .contact-form .form-control {
    width: 100%; max-width: 540px; padding: 9px 11px; border: 1px solid var(--border-color);
    border-radius: 5px; font-size: 14px; font-family: inherit; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--primary-color); }
.contact-form textarea { resize: vertical; }
.contact-form .help-block { color: #c00; font-size: 12px; margin-top: 3px; }
.contact-submit { background: var(--primary-color); color: #fff; border: none; padding: 11px 28px; border-radius: 5px; font-weight: 800; font-size: 15px; cursor: pointer; }
.contact-submit:hover { background: #a80000; }
.contact-flash { padding: 12px 16px; border-radius: 6px; margin-bottom: 16px; font-size: 14px; }
.contact-flash-success { background: #e8f5e9; border: 1px solid #b6e0b9; color: #256029; }
.contact-flash-error { background: #fdecea; border: 1px solid #f5c2bd; color: #a82218; }

/* ===== Sidebar related-news list (richer) ===== */
.aside-news-list { list-style: none; margin: 0; padding: 0; }
.aside-news-list li { padding: 11px 0; border-bottom: 1px solid #f0f0f0; }
.aside-news-list li:first-child { padding-top: 2px; }
.aside-news-list li:last-child { border-bottom: none; padding-bottom: 0; }
.aside-news-list a { display: block; text-decoration: none; }
.aside-news-list .anl-title { display: block; font-size: 13.5px; font-weight: 700; line-height: 1.4; color: var(--text-color); }
.aside-news-list a:hover .anl-title { color: var(--primary-color); }
.aside-news-list .anl-date { display: block; margin-top: 5px; font-size: 12px; color: var(--text-muted); }
.aside-news-list .anl-date .fa { margin-right: 4px; opacity: .8; }

/* ===== Category listing page (portal style) ===== */
.category-title { font-size: 1.9rem; font-weight: 700; line-height: 1.2; margin: 0 0 1.1rem; padding-bottom: 0.9rem; border-bottom: 2px solid var(--border-color); color: var(--text-color); }
.category-subtitle { font-size: 1.25rem; line-height: 1.3; font-weight: 700; color: var(--text-color); margin: 1.4rem 0 1rem; }
.cat-list { margin-top: 4px; }
.page-with-aside .blog-list-container .list-view { grid-template-columns: repeat(2, 1fr); gap: 14px; }
.category-description { margin-top: 24px; }
@media (max-width: 560px) { .page-with-aside .blog-list-container .list-view { grid-template-columns: 1fr; } }
