/* ============================================================
   KZ CREDIT — "TRUST GREEN" THEME
   Palette: primary #00875A / dark #006B47 / tint #E6F4EE
   Ink #172B25 · Body #51625B · Muted #7A8C84 · Line #DDE9E3
   ============================================================ */

/* ============ RESET & BASE ============ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #00875A;
    --primary-dark: #006B47;
    --primary-light: #E6F4EE;
    --secondary: #00875A;
    --accent: #f59e0b;
    --accent-bg: #fef3c7;
    --dark: #172B25;
    --dark-700: #22382F;
    --dark-600: #51625B;
    --gray-500: #7A8C84;
    --gray-400: #94A79E;
    --gray-300: #C2D2CA;
    --gray-200: #DDE9E3;
    --gray-100: #EAF2EE;
    --gray-50: #F0F7F4;
    --white: #ffffff;
    --red: #D93636;
    --green: #00875A;
    --hero-bg: #F4FAF7;
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 16px;
    --shadow-sm: 0 2px 8px rgba(23,43,37,0.05);
    --shadow-md: 0 8px 24px rgba(23,43,37,0.08);
    --shadow-lg: 0 12px 32px rgba(23,43,37,0.10);
    --shadow-xl: 0 20px 56px rgba(23,43,37,0.14);
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 88px;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
    max-width: 100%;
}

body {
    font-family: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16.5px;
    line-height: 1.65;
    color: var(--dark-600);
    background: var(--white);
    overflow-x: hidden;
    max-width: 100%;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.005em;
}

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

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    display: block;
}

h1, h2, h3, h4,
.hero__title,
.section-title,
.page-hero__title,
.cta-box__title,
.hero__calc-title {
    font-family: 'Space Grotesk', 'Manrope', -apple-system, sans-serif;
    color: var(--dark);
    line-height: 1.2;
    letter-spacing: -0.01em;
    /* Space Grotesk is wide — let long Russian compound words (e.g.
       "Усть-Каменогорске") wrap instead of overflowing the container. */
    overflow-wrap: break-word;
    word-break: break-word;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============ HEADER ============ */
.header {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    transition: box-shadow var(--transition);
}

.header--scrolled {
    box-shadow: var(--shadow-md);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--dark);
    text-decoration: none;
}

.logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    line-height: 1;
}

.logo__icon svg {
    width: 38px;
    height: 38px;
}

.logo__text {
    color: var(--dark);
}

.logo__accent {
    color: var(--primary);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

/* In-menu CTA only appears on mobile (see mobile breakpoint).
   Uses .nav scope so it beats the later .btn { display:inline-flex } rule. */
.nav .nav__cta {
    display: none;
}

.nav__link {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    text-decoration: none;
    transition: var(--transition);
    position: relative;
}

.nav__link:hover {
    color: var(--primary);
}

.nav__link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav__link:hover::after {
    width: 100%;
}

.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.burger span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--dark);
    transition: var(--transition);
    border-radius: 2px;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ============ NAV DROPDOWN ============ */
.nav__group {
    position: relative;
}

.nav__group-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
    padding: 4px 0;
}

.nav__group-title::after {
    content: ' ▾';
    font-size: 11px;
    color: var(--primary);
}

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

.nav__dropdown {
    display: block;
    visibility: hidden;
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
    position: absolute;
    top: 100%;
    left: -16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    padding: 8px 0;
    z-index: 100;
    margin-top: 12px;
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* invisible bridge over the 12px gap so the cursor never leaves the hover zone
   when moving from the trigger down onto the menu */
.nav__dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
}

.nav__group:hover .nav__dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.nav__dropdown-link {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-600);
    transition: var(--transition);
}

.nav__dropdown-link:hover {
    background: var(--primary-light);
    color: var(--primary);
}

/* ============ BREADCRUMB ============ */
.breadcrumb {
    padding: 24px 0 0;
    background: var(--gray-50);
    font-size: 14px;
    color: var(--gray-400);
}

.breadcrumb a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb span:not([class]) {
    color: var(--gray-400);
}

.breadcrumb__link {
    color: var(--gray-500);
}

.breadcrumb__sep {
    margin: 0 6px;
    color: var(--gray-300);
}

.breadcrumb__current {
    color: var(--dark-600);
    font-weight: 500;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    font-size: 14px;
    color: var(--gray-400);
    flex-wrap: wrap;
}

.breadcrumb__list a {
    color: var(--gray-500);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumb__list a:hover {
    color: var(--primary);
}

.breadcrumb__list li:not(:last-child)::after {
    content: '→';
    margin-left: 8px;
    color: var(--gray-300);
}

.breadcrumb__list li:last-child {
    color: var(--dark-600);
    font-weight: 500;
}

/* Breadcrumb nested inside hero / page-hero */
.hero .breadcrumb,
.page-hero .breadcrumb {
    padding: 0;
    background: transparent;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.page-hero .breadcrumb a {
    color: var(--gray-500);
    font-weight: 500;
}

.page-hero .breadcrumb a:hover {
    color: var(--primary);
}

/* Replace literal "/" separators with a subtle chevron look */
.page-hero .breadcrumb > span:not([class]) {
    color: var(--gray-300);
    font-size: 12px;
    margin: 0 2px;
}

.page-hero .breadcrumb > span:last-child {
    color: var(--dark);
    font-weight: 600;
}

/* ============ PAGE HERO (simple) ============ */
.page-hero {
    padding: 28px 0 36px;
    background: linear-gradient(180deg, #EAF6F0 0%, #F4FAF7 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    display: none;
}

.page-hero .container {
    position: relative;
}

.page-hero__title,
.page-hero h1 {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--dark);
    margin-bottom: 0;
    line-height: 1.15;
    max-width: 900px;
}

/* Article tag sits directly above the H1 inside page-hero */
.page-hero .article-tag {
    margin-bottom: 14px;
}

/* Article meta row (date / reading time / author) below the H1 */
.page-hero .article-meta {
    margin-top: 18px;
}

.page-hero__desc {
    font-size: 18px;
    color: var(--dark-600);
    max-width: 720px;
    line-height: 1.7;
}

.page-hero__date {
    font-size: 14px;
    color: var(--gray-500);
    margin-top: 12px;
    font-weight: 500;
}

.page-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-600);
    box-shadow: var(--shadow-sm);
}

.meta-chip svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* ============ QUICK ANSWER (GEO) ============ */
.quick-answer {
    padding: 28px 0 8px;
    background: var(--white);
}

/* Quick-answer card — works whether markup uses .quick-answer (in content-section)
   or .quick-answer__box. Styled as a distinct "featured answer" card. */
.content-section > .container > .quick-answer,
.quick-answer__box {
    display: block;
    background: linear-gradient(135deg, #E9F6F0 0%, #F5FBF8 100%);
    border: 1px solid #CBE5D9;
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 22px 26px 22px 24px;
    font-size: 16px;
    line-height: 1.75;
    color: var(--dark-600);
    box-shadow: 0 2px 12px rgba(0,135,90,0.06);
    max-width: 820px;
    margin: 0 auto;
    position: relative;
}

.content-section > .container > .quick-answer strong,
.quick-answer__box strong {
    color: var(--primary);
}

/* ============ MFO TABLE ============ */
.top-mfo-section,
.mfo-table-section {
    padding: 64px 0;
    background: var(--white);
}

.mfo-table-wrap {
    overflow-x: auto;
    margin-bottom: 32px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

/* USP banner above the МФО table (shared benefits) */
.mfo-usp-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    padding: 13px 22px;
    background: var(--primary-light);
    border: 1px solid #CBE5D9;
    border-radius: 12px;
    margin-bottom: 14px;
}

.mfo-usp-bar span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--primary-dark);
}

.mfo-usp-bar svg {
    color: var(--primary);
    flex-shrink: 0;
}

.mfo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.mfo-table thead {
    background: var(--dark);
}

.mfo-table th {
    padding: 15px 18px;
    text-align: left;
    font-size: 11px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid var(--gray-200);
    white-space: nowrap;
}

.mfo-table td {
    padding: 16px 18px;
    border-bottom: 1px solid var(--gray-100);
    vertical-align: middle;
    color: var(--dark-600);
    font-weight: 700;
    font-size: 14.5px;
}

.mfo-table td strong {
    color: var(--dark);
    font-weight: 800;
}

.mfo-table tbody tr {
    transition: background 0.15s ease;
}

/* Zebra striping (Compact Pro style) */
.mfo-table tbody tr:nth-child(even) {
    background: var(--gray-50);
}

.mfo-table tbody tr:hover {
    background: var(--gray-100);
}

/* Recommended row highlight */
.mfo-table tbody tr.mfo-row--reco {
    background: var(--primary-light);
}

.mfo-table tbody tr:last-child td {
    border-bottom: none;
}

/* Approval column — big number (Compact Pro) */
.mfo-table .approval-badge {
    background: transparent;
    padding: 0;
    font-size: 20px;
    font-weight: 900;
    color: var(--primary);
}

/* МФО name cell: name + reco badge, then USP, then promo — tight spacing */
.mfo-table td strong {
    font-size: 16px;
    color: var(--dark);
    font-weight: 800;
}

/* "Рекомендуем" badge next to the name */
.mfo-reco {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: var(--primary);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 2px 8px;
    border-radius: 100px;
    vertical-align: middle;
    white-space: nowrap;
}

.mfo-reco svg { color: #FFD84D; }

/* USP description line */
.mfo-usp {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-600);
    margin-top: 4px;
    line-height: 1.4;
}

/* Promo tags line (small, green) */
.mfo-promo {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    margin-top: 3px;
    line-height: 1.4;
}

.mfo-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 800;
    background: var(--primary-light);
    color: var(--primary-dark);
}

.mfo-rank--gold {
    background: linear-gradient(135deg, #E8C468, #00875A);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0,135,90,0.3);
}

.mfo-rank--silver {
    background: var(--gray-200);
    color: var(--dark-600);
}

.mfo-rank--bronze {
    background: #fed7aa;
    color: #9a3412;
}

.mfo-tag {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
}

/* Highlight the recommended row (has .mfo-reco badge) */
.mfo-table tbody tr:has(.mfo-reco) {
    background: var(--primary-light);
}

.mfo-table__logo {
    display: block;
    width: 140px;
    height: 54px;
    object-fit: contain;
    object-position: left center;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    margin-bottom: 10px;
}

.approval-badge {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 14px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 100px;
}

.btn--sm {
    padding: 9px 18px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.section-cta {
    text-align: center;
    margin-top: 24px;
}

.section-update {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 13px;
    color: var(--dark-600);
    font-weight: 500;
    margin-top: 14px;
    padding: 9px 16px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    box-shadow: var(--shadow-sm);
}

.section-update > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.section-update svg {
    color: var(--primary);
    flex-shrink: 0;
}

.section-update [data-live] {
    font-weight: 700;
    color: var(--dark);
}

/* ============ CONTENT SECTION (SEO) ============ */
.content-section {
    padding: 60px 0;
    background: var(--white);
}

/* First content section right after the page hero — tighten the gap so the
   quick-answer card sits close to the title instead of floating in whitespace */
.page-hero + .content-section {
    padding-top: 32px;
}

.page-hero + .content-section .quick-answer {
    margin-bottom: 8px;
}

/* Backgrounds are assigned explicitly via --white / --gray classes (added per
   page in document order) so adjacent sections never share the same background.
   The old nth-child(even) auto-alternation miscounted because breadcrumb/hero/
   faq/steps siblings shifted the parity. */
.content-section--gray {
    background: var(--gray-50);
}

.content-section--white {
    background: var(--white);
}

/* Safety net: if two same-background sections end up adjacent, a hairline keeps
   them visually separated so the page never looks like one flat block. */
.content-section--white + .content-section--white,
.content-section--gray + .content-section--gray,
.content-section--white + .mfo-table-section,
.mfo-table-section + .content-section--white,
.content-section--white + .top-mfo-section,
.top-mfo-section + .content-section--white,
.content-section--gray + .faq-section,
.faq-section + .content-section--gray,
.content-section--gray + .internal-links-section,
.steps-section + .content-section--gray {
    border-top: 1px solid var(--gray-100);
}

.content-block {
    max-width: 800px;
    margin: 0 auto;
}

.content-block h2 {
    font-size: 27px;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    color: var(--dark);
    margin: 44px 0 18px;
    line-height: 1.25;
    position: relative;
    padding-left: 18px;
}

.content-block h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 5px;
    border-radius: 4px;
    background: linear-gradient(180deg, var(--primary), #2FBE8A);
}

.content-block h2:first-child {
    margin-top: 0;
}

.content-block h3 {
    font-size: 21px;
    font-weight: 700;
    color: var(--dark);
    margin: 30px 0 12px;
}

.content-block p {
    font-size: 17px;
    color: var(--dark-600);
    line-height: 1.75;
    margin-bottom: 16px;
}

.content-block ol {
    margin: 12px 0 20px 24px;
    color: var(--dark-600);
    line-height: 1.8;
}

.content-block ul {
    list-style: none;
    margin: 12px 0 20px 2px;
    color: var(--dark-600);
    line-height: 1.8;
}

.content-block ul > li {
    position: relative;
    padding-left: 30px;
}

.content-block ul > li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--primary-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300875A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}

.content-block li {
    margin-bottom: 10px;
    font-size: 16px;
}

.content-block ol li::marker {
    color: var(--primary);
    font-weight: 800;
}

.content-block table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 24px 0;
    font-size: 14.5px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: table;
}

/* On small screens content tables render as stacked cards (see card block below) */

.content-block table th,
.content-block table td {
    padding: 13px 18px;
    border: none;
    border-bottom: 1px solid var(--gray-100);
    text-align: left;
}

.content-block table th {
    background: var(--primary-light);
    font-weight: 700;
    color: #045c3e;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-bottom: 1px solid #CBE5D9;
}

.content-block table td {
    color: var(--dark-600);
}

.content-block table tbody tr:nth-child(even) td {
    background: #F7FBF9;
}

.content-block table tbody tr:last-child td {
    border-bottom: none;
}

.content-block table tr:hover td {
    background: var(--primary-light);
}

.content-block table td:first-child {
    font-weight: 600;
    color: var(--dark);
}

.content-block strong {
    color: var(--dark);
}

.content-block a:not(.btn) {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(0,135,90,0.35);
    text-underline-offset: 3px;
}

.content-block a:not(.btn):hover {
    color: var(--primary-dark);
    text-decoration-color: var(--primary);
}

/* Buttons inside content keep their own colors (never inherit the link color) */
.content-block a.btn {
    text-decoration: none;
}

.content-block a.btn--primary {
    color: #fff;
}

.content-block a.btn--outline {
    color: var(--primary);
}

/* ============ INTERNAL LINKS ============ */
.internal-links-section {
    padding: 40px 0 60px;
    background: var(--gray-50);
}

.section-title--sm {
    font-size: 22px;
    margin-bottom: 20px;
}

.internal-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.internal-link {
    display: inline-block;
    padding: 10px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-600);
    transition: var(--transition);
    text-decoration: none;
}

.internal-link:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* ============ CALCULATOR STANDALONE ============ */
.calculator--standalone {
    grid-template-columns: 1fr;
    max-width: 600px;
    margin: 0 auto;
}

/* ============ BUTTONS ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-weight: 700;
    font-size: 16px;
    padding: 13px 26px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
    white-space: nowrap;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 14px rgba(0,135,90,0.22);
}

.btn--primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,107,71,0.3);
    color: var(--white);
}

.btn--white {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.btn--white:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    transform: translateY(-2px);
    color: var(--primary-dark);
}

.btn--outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
    box-shadow: none;
}

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

.btn--lg {
    padding: 16px 32px;
    font-size: 17px;
    border-radius: var(--radius-md);
}

.btn--block {
    width: 100%;
}

/* ============ HERO ============ */
.hero {
    padding: 56px 0 72px;
    background: linear-gradient(180deg, #EAF6F0 0%, #F4FAF7 100%);
    border-bottom: 1px solid var(--gray-200);
    position: relative;
    overflow: hidden;
}

.hero::before {
    display: none;
}

/* Compact hero variants used by sub-pages */
.hero--simple,
.hero--inner {
    padding: 28px 0 36px;
    background: linear-gradient(180deg, #EAF6F0 0%, #F4FAF7 100%);
    border-bottom: 1px solid var(--gray-200);
}

/* Breadcrumb inside the simple hero (uses __link / __sep / __current classes) */
.hero--simple .breadcrumb,
.hero--inner .breadcrumb {
    padding: 0;
    background: transparent;
    margin-bottom: 18px;
    font-size: 13px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.breadcrumb__link {
    color: var(--gray-500);
    font-weight: 500;
}

.breadcrumb__link:hover {
    color: var(--primary);
}

.breadcrumb__sep {
    color: var(--gray-300);
    font-size: 12px;
    margin: 0 2px;
}

.breadcrumb__current {
    color: var(--dark);
    font-weight: 600;
}

/* Title + subtitle in the simple hero */
.hero--simple .hero__title,
.hero--inner .hero__title {
    font-size: 38px;
    font-weight: 900;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: var(--dark);
    margin-bottom: 14px;
    max-width: 900px;
}

.hero--simple .hero__subtitle,
.hero--inner .hero__subtitle {
    font-size: 17.5px;
    line-height: 1.65;
    color: var(--dark-600);
    max-width: 720px;
    margin-bottom: 20px;
}

/* Meta chips row inside hero */
.hero--simple .page-hero__meta,
.hero--inner .page-hero__meta {
    margin-top: 0;
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 56px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary-light);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 100px;
    border: 1px solid #CBE5D8;
    margin-bottom: 24px;
}

.hero__badge svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.hero__title {
    font-size: 46px;
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.12;
    margin-bottom: 20px;
    color: var(--dark);
}

.highlight {
    color: var(--primary);
    position: relative;
    box-shadow: inset 0 -4px 0 rgba(0,135,90,0.25);
}

.hero__subtitle {
    font-size: 18px;
    color: var(--dark-600);
    margin-bottom: 28px;
    line-height: 1.7;
    max-width: 540px;
}

.hero__stats {
    display: flex;
    gap: 32px;
    margin-bottom: 32px;
}

.hero__stat {
    display: flex;
    flex-direction: column;
}

.hero__stat-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--primary);
}

.hero__stat-label {
    font-size: 13px;
    color: var(--gray-500);
    margin-top: 2px;
}

/* Hero trust bullets (green check circles) */
.hero__bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 28px;
}

.hero__bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.hero__check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--primary);
}

.hero__check svg {
    width: 13px;
    height: 13px;
}

.hero__trust-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
}

.hero__trust-dot {
    color: var(--gray-300);
}

/* Hero calculator card */
.hero__calc-card {
    position: relative;
    z-index: 1;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 56px rgba(23,43,37,0.14);
    overflow: hidden;
}

.hero__calc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.hero__calc-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 24px;
}

.hero__calc-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    margin-top: 14px;
}

.hero__calc-note svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* ============ CALCULATOR SECTION ============ */
.calculator-section {
    padding: 80px 0;
    background: var(--white);
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 33px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 12px;
}

.section-desc {
    font-size: 17px;
    color: var(--gray-500);
    max-width: 560px;
    margin: 0 auto;
}

.calculator {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: var(--white);
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    padding: 40px;
}

.calculator__sliders {
    min-width: 0;
}

/* Slider */
.slider-group {
    margin-bottom: 26px;
}

.slider-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-group__header label {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.slider-group__value {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary-dark);
    background: var(--primary-light);
    padding: 5px 14px;
    border-radius: 100px;
}

.range-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 100px;
    background: var(--gray-200);
    outline: none;
    cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--white);
    cursor: grab;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(23,43,37,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.range-slider::-webkit-slider-thumb:hover {
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(0,135,90,0.35);
}

.range-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--white);
    cursor: grab;
    border: 3px solid var(--primary);
    box-shadow: 0 2px 8px rgba(23,43,37,0.2);
}

.slider-group__range {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 500;
    color: var(--gray-400);
}

.calculator__summary {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 8px;
    margin-bottom: 20px;
}

.calculator__summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 15px;
    color: var(--dark-600);
}

.calculator__summary-row:first-child {
    border-bottom: 1px solid var(--gray-200);
    padding-bottom: 12px;
    margin-bottom: 4px;
}

.calculator__summary-row strong {
    font-size: 18px;
    color: var(--dark);
}

.calculator__summary-row:first-child strong {
    font-size: 21px;
    font-weight: 900;
    color: var(--primary);
}

/* Form */
.calculator__form-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--dark);
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 7px;
}

.form-required {
    color: var(--red);
    font-weight: 700;
    margin-left: 1px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: inherit;
    font-size: 15px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    background: var(--white);
    color: var(--dark);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0,135,90,0.12);
}

.form-input.error {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgba(217,54,54,0.1);
}

.form-input-group {
    display: flex;
    align-items: stretch;
}

.form-input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-size: 15px;
    font-weight: 700;
    color: var(--dark-600);
}

.form-input--prefixed {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.form-error {
    display: none;
    font-size: 13px;
    color: var(--red);
    margin-top: 4px;
    font-weight: 600;
}

.form-error.show {
    display: block;
}

/* Checkbox */
.checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: var(--gray-500);
    line-height: 1.5;
}

.checkbox input {
    display: none;
}

.checkbox__mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    position: relative;
    transition: var(--transition);
    margin-top: 1px;
    background: var(--white);
}

.checkbox input:checked + .checkbox__mark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox input:checked + .checkbox__mark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 5px;
    height: 9px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox__text a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
}

.form-secure {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 13px;
    color: var(--primary);
    font-weight: 500;
}

/* ============ STEPS ============ */
.steps-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.steps {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 18px;
    align-items: stretch;
}

.step {
    height: 100%;
    text-align: left;
    padding: 26px 22px 28px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: column;
}

.step:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* Icon + step number on one top row */
.step__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.step__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 13px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
}

.step__icon svg {
    width: 24px;
    height: 24px;
}

.step__number {
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
    color: var(--gray-200);
    letter-spacing: -0.02em;
}

.step__title {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
    line-height: 1.3;
}

.step__desc {
    font-size: 14px;
    color: var(--dark-600);
    line-height: 1.6;
}

/* ============ ADVANTAGES ============ */
.advantages-section {
    padding: 80px 0;
    background: var(--white);
}

.advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.advantage {
    padding: 28px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.advantage:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.advantage__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 26px;
    line-height: 1;
    margin-bottom: 18px;
}

.advantage__icon svg {
    width: 26px;
    height: 26px;
}

.advantage__title {
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--dark);
}

.advantage__desc {
    font-size: 14px;
    color: var(--dark-600);
    line-height: 1.7;
}

/* ============ FAQ ============ */
.faq-section {
    padding: 80px 0;
    background: var(--gray-50);
}

.faq {
    max-width: 760px;
    margin: 0 auto;
}

.faq__item {
    margin-bottom: 12px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    background: var(--white);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq__item.active {
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(0,135,90,0.08);
}

.faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    text-align: left;
    transition: var(--transition);
}

.faq__question:hover {
    color: var(--primary);
}

.faq__arrow {
    flex-shrink: 0;
    transition: var(--transition);
    color: var(--primary);
}

.faq__item.active .faq__arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq__answer p {
    padding: 0 24px 20px;
    font-size: 15.5px;
    color: var(--dark-600);
    line-height: 1.7;
}

/* ============ CTA SECTION ============ */
.cta-section {
    padding: 80px 0;
    background: var(--white);
}

.cta-box {
    text-align: center;
    padding: 56px 40px;
    background: linear-gradient(120deg, var(--primary-dark) 0%, var(--primary) 100%);
    border-radius: var(--radius-xl);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-box::before,
.cta-box::after {
    display: none;
}

.cta-box__title {
    font-size: 32px;
    font-weight: 900;
    color: var(--white);
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.cta-box__desc {
    font-size: 17px;
    opacity: 0.9;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.cta-box .btn {
    position: relative;
    z-index: 1;
}

/* ============ FORM MODAL ============ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(23, 43, 37, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9998;
    justify-content: center;
    align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.modal-overlay.active {
    display: flex;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 460px;
    position: relative;
    box-shadow: var(--shadow-xl);
    animation: slideUp 0.3s ease;
    max-height: 92vh;
    overflow-y: auto;
    /* Hide the scrollbar while keeping the modal scrollable */
    scrollbar-width: none;        /* Firefox */
    -ms-overflow-style: none;     /* IE/Edge */
}

.modal::-webkit-scrollbar {
    display: none;                /* Chrome/Safari */
    width: 0;
    height: 0;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--gray-50);
    color: var(--gray-500);
    font-size: 22px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    line-height: 1;
}

.modal__close:hover {
    background: var(--primary-light);
    color: var(--dark);
}

.modal__title {
    font-size: 23px;
    font-weight: 900;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal__subtitle {
    font-size: 14px;
    color: var(--gray-500);
    margin-bottom: 24px;
}

@media (max-width: 480px) {
    .steps {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .modal {
        padding: 24px 20px;
        border-radius: var(--radius-lg);
    }

    .modal__title {
        font-size: 20px;
    }
}

/* ============ LOADING SCREEN ============ */
.loading-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--white);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.loading-screen.active {
    display: flex;
}

.loading__content {
    text-align: center;
    max-width: 450px;
    width: 100%;
    padding: 40px 20px;
}

.loading__spinner {
    margin-bottom: 32px;
}

/* Countdown ring — progress circle with 3-2-1 number in the center */
.countdown-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto;
}

.countdown-ring__svg {
    width: 120px;
    height: 120px;
    transform: rotate(-90deg);
}

.countdown-ring__track {
    fill: none;
    stroke: var(--primary-light);
    stroke-width: 8;
}

.countdown-ring__progress {
    fill: none;
    stroke: var(--primary);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327; /* 2πr = 2 × π × 52 ≈ 327 */
    stroke-dashoffset: 327;
    /* driven per-frame by JS (requestAnimationFrame) for smoothness — no CSS transition */
}

.countdown-ring__num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 44px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
    animation: countdownPulse 1s ease-in-out infinite;
}

@keyframes countdownPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, -50%) scale(1.12); }
}

/* Legacy spinner fallback (kept for any page still using .spinner) */
.spinner {
    width: 64px;
    height: 64px;
    border: 5px solid var(--primary-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading__title {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 8px;
    color: var(--dark);
}

.loading__subtitle {
    font-size: 15px;
    color: var(--gray-500);
    margin-bottom: 28px;
}

.loading__progress {
    width: 100%;
    height: 8px;
    background: var(--primary-light);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 28px;
}

.loading__progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-dark), var(--primary));
    border-radius: 100px;
    width: 0%;
    /* width driven per-frame by JS — no CSS transition to avoid lag */
}

.loading__steps {
    text-align: left;
}

.loading__step {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--gray-400);
    transition: var(--transition);
}

.loading__step.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 700;
}

.loading__step.done {
    color: var(--primary-dark);
    background: var(--gray-50);
}

.loading__step-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 50%;
    position: relative;
    transition: var(--transition);
}

.loading__step.active .loading__step-icon {
    border-color: var(--primary);
}

.loading__step.done .loading__step-icon {
    background: var(--green);
    border-color: var(--green);
}

.loading__step.done .loading__step-icon::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* ============ OFFERS SCREEN ============ */
.offers-screen {
    display: none;
    min-height: 100vh;
    padding: 56px 0 64px;
    background: var(--gray-50);
}

.offers-screen.active {
    display: block;
}

.offers__header {
    text-align: center;
    margin-bottom: 32px;
}

.offers__header-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.offers__title {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: var(--dark);
    margin-bottom: 8px;
}

.offers__title span {
    color: var(--primary);
}

.offers__subtitle {
    font-size: 16px;
    color: var(--gray-500);
}

.offers__user-info {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 36px;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    font-size: 14px;
    color: var(--dark-600);
    font-weight: 500;
}

.offers__list {
    display: grid;
    gap: 20px;
    max-width: 760px;
    margin: 0 auto 36px;
}

/* ============ OFFER CARD (redesigned) ============ */
.offer-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    padding: 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.5s ease both;
}

.offer-card:nth-child(1) { animation-delay: 0.08s; }
.offer-card:nth-child(2) { animation-delay: 0.16s; }
.offer-card:nth-child(3) { animation-delay: 0.24s; }
.offer-card:nth-child(4) { animation-delay: 0.32s; }
.offer-card:nth-child(5) { animation-delay: 0.40s; }
.offer-card:nth-child(6) { animation-delay: 0.48s; }
.offer-card:nth-child(7) { animation-delay: 0.56s; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.offer-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.offer-card--featured {
    border: 2px solid var(--primary);
    box-shadow: 0 8px 28px rgba(0,135,90,0.14);
    padding-top: 42px;
}

.offer-card__ribbon {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(135deg, var(--primary), #00A56E);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 6px 16px 6px 14px;
    border-radius: 0 0 12px 0;
}

.offer-card__ribbon svg {
    color: #FFD84D;
}

/* Head: logo + name/rating/usp */
.offer-card__head {
    display: flex;
    align-items: center;
    gap: 18px;
}

.offer-card__logo {
    width: 152px;
    height: 72px;
    border-radius: var(--radius-md);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    padding: 8px 12px;
    flex-shrink: 0;
}

.offer-card__logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.offer-card__heading {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.offer-card__name {
    font-size: 19px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.offer-card__rating {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.offer-card__stars {
    color: #F59E0B;
    font-size: 14px;
    letter-spacing: 1px;
}

.offer-card__approval-inline {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.offer-card__usp {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
    margin-top: 2px;
}

/* Specs: 4-column stat grid with tinted cells */
.offer-card__specs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.spec {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 11px 12px;
    background: var(--gray-50);
    border: 1px solid var(--gray-100);
    border-radius: 10px;
}

.spec__label {
    font-size: 10.5px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.spec__value {
    font-size: 14.5px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
}

.spec__value small {
    font-size: 11px;
    font-weight: 600;
    color: var(--gray-500);
}

.spec__value--primary {
    color: var(--primary);
}

/* Requirements row */
.offer-card__reqs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    padding-top: 2px;
}

.req {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: var(--dark-600);
    font-weight: 500;
}

.req svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Foot: tags + CTA */
.offer-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.offer-card__tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    min-width: 0;
}

.offer-card__tag {
    font-size: 12px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 100px;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid #CBE5D8;
}

.offer-card__tag--hot {
    background: var(--accent-bg);
    color: #92400e;
    border-color: #fde68a;
}

.offer-card__btn {
    padding: 13px 26px;
    font-size: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Offers Disclaimer */
.offers__disclaimer {
    max-width: 800px;
    margin: 0 auto 24px;
    padding: 16px 24px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 12px;
    font-size: 13px;
    color: #92400e;
    line-height: 1.6;
}

.offers__back {
    text-align: center;
}

/* ============ FOOTER ============ */
.footer {
    background: var(--dark);
    color: #9DB4AA;
    padding: 60px 0 0;
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(5, 1fr);
    gap: 32px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer__brand {
    min-width: 0;
}

.logo--footer .logo__text {
    color: var(--white);
}

.footer__desc {
    font-size: 14px;
    margin-top: 16px;
    line-height: 1.7;
    color: #9DB4AA;
}

.footer__heading {
    font-size: 14px;
    font-weight: 800;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 16px;
}

.footer__col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer__link {
    font-size: 14px;
    color: #9DB4AA;
    transition: var(--transition);
}

.footer__link:hover {
    color: var(--white);
}

.footer__bottom {
    padding: 24px 0;
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    color: #7E948B;
}

.footer__disclaimer {
    max-width: 600px;
    text-align: right;
    color: #7E948B;
    line-height: 1.6;
}

/* ============ BLOG CARDS ============ */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.blog-card {
    display: block;
    padding: 32px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}

.blog-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.blog-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: linear-gradient(135deg, #E6F4EE, #D2EEE1);
    font-size: 36px;
    margin-bottom: 18px;
    color: var(--primary);
}

.blog-card__title {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.3;
}

.blog-card:hover .blog-card__title {
    color: var(--primary);
}

.blog-card__desc {
    font-size: 14px;
    color: var(--dark-600);
    line-height: 1.7;
    margin-bottom: 12px;
}

.blog-card__date {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
}

/* ============ GLOSSARY ============ */
.glossary-grid {
    columns: 2;
    column-gap: 40px;
}

.glossary-item {
    break-inside: avoid;
    margin-bottom: 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.glossary-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.glossary-item h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 6px;
}

.glossary-item p {
    font-size: 15.5px;
    color: var(--dark-600);
    line-height: 1.7;
}

/* ============ ARTICLE META ============ */
.article-meta {
    display: inline-flex;
    gap: 10px 20px;
    flex-wrap: wrap;
    align-items: center;
    font-size: 13.5px;
    color: var(--dark-600);
    font-weight: 500;
    margin-top: 16px;
    padding: 12px 20px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

.article-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    position: relative;
}

/* Vertical divider between meta items (desktop) */
.article-meta span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: var(--gray-200);
}

.article-meta svg {
    color: var(--primary);
    flex-shrink: 0;
}

.article-meta [data-live] {
    font-weight: 700;
    color: var(--dark);
}

@media (max-width: 560px) {
    .article-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        width: 100%;
    }
    .article-meta span:not(:last-child)::after {
        display: none;
    }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__bullets {
        align-items: center;
    }

    .hero__trust-row {
        justify-content: center;
    }

    .hero__cta {
        margin: 0 auto;
    }

    .hero__calc-card {
        max-width: 560px;
        width: 100%;
        margin: 0 auto;
        text-align: left;
    }

    .calculator {
        grid-template-columns: 1fr;
    }

    .steps {
        grid-auto-flow: row;
        grid-template-columns: repeat(2, 1fr);
    }

    .advantages {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    html {
        scroll-padding-top: 80px;
    }

    .nav {
        display: none;
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 24px;
        gap: 12px;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        max-height: calc(100vh - 72px);
        overflow-y: auto;
    }

    .nav.active {
        display: flex;
    }

    .nav__group {
        position: static;
        border-bottom: 1px solid var(--gray-100);
        padding-bottom: 4px;
    }

    /* Group title becomes a tappable accordion toggle */
    .nav__group-title {
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
        padding: 12px 4px;
        font-size: 16px;
        font-weight: 700;
        color: var(--dark);
        user-select: none;
    }

    .nav__group-title::after {
        content: '';
        width: 9px;
        height: 9px;
        border-right: 2px solid var(--gray-400);
        border-bottom: 2px solid var(--gray-400);
        transform: rotate(45deg);
        transition: transform 0.25s ease;
        margin-right: 6px;
    }

    .nav__group.open .nav__group-title::after {
        transform: rotate(-135deg);
    }

    /* Collapsed by default on mobile; expands when group has .open */
    .nav__dropdown {
        display: block;
        visibility: visible;
        opacity: 1;
        transform: none;
        pointer-events: auto;
        position: static;
        box-shadow: none;
        border: none;
        min-width: 0;
        margin-top: 0;
        padding: 0 0 0 14px;
        transition: max-height 0.3s ease;
        max-height: 0;
        overflow: hidden;
    }

    .nav__group.open .nav__dropdown {
        max-height: 640px;
        padding-bottom: 8px;
    }

    .nav__dropdown::before {
        display: none;
    }

    .nav__dropdown-link {
        padding: 10px 12px;
        font-size: 15px;
    }

    .nav__link {
        display: block;
        padding: 12px 4px;
        font-size: 16px;
        font-weight: 700;
        border-bottom: 1px solid var(--gray-100);
    }

    .burger {
        display: flex;
    }

    /* Header-bar CTA hidden on mobile; a copy lives inside the menu */
    .header__btn {
        display: none;
    }

    /* CTA button shown at the bottom of the mobile menu */
    .nav .nav__cta {
        display: block;
        text-align: center;
        margin-top: 16px;
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    .page-hero__title,
    .page-hero h1 {
        font-size: 27px;
        letter-spacing: -0.03em;
    }

    .mfo-table {
        font-size: 13px;
    }

    .mfo-table th,
    .mfo-table td {
        padding: 12px 10px;
    }

    .mfo-table__logo {
        display: block;
        width: 150px;
        height: 56px;
        padding: 6px 12px;
        margin: 0 0 8px;
    }

    .offer-card__logo {
        width: 132px;
        height: 64px;
    }

    .content-block h2 {
        font-size: 22px;
    }

    .content-block h3 {
        font-size: 18px;
    }

    .hero {
        padding: 28px 0 40px;
    }

    .hero--simple,
    .hero--inner {
        padding: 24px 0 32px;
    }

    .hero__grid {
        gap: 28px;
    }

    .hero__badge {
        font-size: 12.5px;
        padding: 8px 14px;
        margin-bottom: 18px;
    }

    .hero__title {
        font-size: 31px;
        margin-bottom: 14px;
    }

    .hero__subtitle {
        font-size: 16px;
        line-height: 1.6;
        margin-bottom: 22px;
    }

    .hero__bullets {
        gap: 11px;
        margin-bottom: 20px;
    }

    .hero__bullet {
        font-size: 15px;
    }

    /* Trust row → centered pill chips, no stray dividers on mobile */
    .hero__trust-row {
        justify-content: center;
        gap: 8px;
        font-size: 12.5px;
    }

    .hero__trust-dot {
        display: none;
    }

    .hero__trust-row span:not(.hero__trust-dot) {
        background: var(--white);
        border: 1px solid var(--gray-200);
        padding: 5px 11px;
        border-radius: 100px;
        font-weight: 600;
        color: var(--dark-600);
    }

    .hero__stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }

    .hero__calc-card {
        padding: 26px 22px;
    }

    .section-title {
        font-size: 27px;
    }

    .calculator {
        padding: 24px;
    }

    .steps {
        grid-auto-flow: row;
        grid-template-columns: 1fr;
    }

    .advantages {
        grid-template-columns: 1fr;
    }

    .offer-card__specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .offer-card__head {
        gap: 14px;
    }

    .offer-card__foot {
        flex-direction: column;
        align-items: stretch;
    }

    .offer-card__btn {
        width: 100%;
    }

    .offers__user-info {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .footer__bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer__disclaimer {
        text-align: center;
    }

    .cta-box {
        padding: 44px 24px;
    }

    .cta-box__title {
        font-size: 26px;
    }

    .glossary-grid {
        columns: 1;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero {
        padding: 24px 0 36px;
    }

    .hero__title {
        font-size: 27px;
        letter-spacing: -0.03em;
    }

    .page-hero__title,
    .page-hero h1 {
        font-size: 24px;
        letter-spacing: -0.03em;
    }

    .section-title {
        font-size: 24px;
    }

    .content-block h2 {
        font-size: 21px;
    }

    .hero__subtitle {
        font-size: 15.5px;
        margin-bottom: 20px;
    }

    .hero__badge {
        font-size: 11.5px;
        padding: 7px 12px;
        margin-bottom: 16px;
    }

    .hero__bullet {
        font-size: 14.5px;
    }

    .hero__trust-row {
        gap: 6px;
        font-size: 12px;
    }

    .hero__trust-row span:not(.hero__trust-dot) {
        padding: 4px 10px;
    }

    .hero__calc-card {
        padding: 22px 18px;
    }

    .calculator {
        padding: 20px;
    }

    .btn--lg {
        padding: 14px 24px;
        font-size: 15px;
    }

    .footer__grid {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: 1fr;
    }

    .cta-box__title {
        font-size: 23px;
    }
}

/* ============ EDITORIAL COMPONENTS (sub-pages upgrade) ============ */

/* Lead paragraph */
.content-block .lead,
.lead {
    font-size: 18.5px;
    line-height: 1.75;
    color: var(--dark);
    font-weight: 450;
}

/* Callout boxes */
.callout {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 20px 22px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    font-size: 15.5px;
    line-height: 1.7;
}

.callout__icon {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.callout__body {
    color: var(--dark-600);
}

.callout__body p {
    margin-bottom: 0 !important;
}

.callout__title {
    display: block;
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--dark);
}

.callout--info {
    background: #F0F7F4;
    border: 1px solid #CBE5D9;
}

.callout--info .callout__icon {
    background: var(--primary-light);
    color: var(--primary);
}

.callout--warn {
    background: #FFFBEB;
    border: 1px solid #FDE68A;
}

.callout--warn .callout__icon {
    background: #FEF3C7;
    color: #B45309;
}

.callout--warn .callout__title {
    color: #92400E;
}

/* Table of contents */
.toc {
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    margin: 28px 0 36px;
}

.toc__title {
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--dark);
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toc__title svg {
    color: var(--primary);
}

.toc ol {
    margin: 0 0 0 20px !important;
    columns: 2;
    column-gap: 36px;
}

.toc li {
    margin-bottom: 8px !important;
    font-size: 14.5px !important;
    break-inside: avoid;
}

.toc a {
    color: var(--dark-600) !important;
    text-decoration: none !important;
    font-weight: 500;
}

.toc a:hover {
    color: var(--primary) !important;
    text-decoration: underline !important;
}

/* Key takeaways */
.takeaways {
    background: linear-gradient(135deg, #045C3E 0%, #00875A 100%);
    border-radius: var(--radius-lg);
    padding: 30px 32px;
    margin: 36px 0;
    color: var(--white);
}

.takeaways__title {
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--white);
    display: flex;
    align-items: center;
    gap: 10px;
}

.takeaways ul {
    list-style: none;
    margin: 0 !important;
}

.takeaways li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px !important;
    font-size: 16px;
    line-height: 1.65;
    color: rgba(255,255,255,0.92);
}

.takeaways li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(255,255,255,0.18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/10px 10px no-repeat;
}

.takeaways strong {
    color: var(--white);
}

/* Info stat cards (city pages, etc.) */
.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 16px;
    margin: 28px 0;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.info-card__value {
    display: block;
    font-size: 24px;
    font-weight: 900;
    color: var(--primary);
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.info-card__label {
    font-size: 13px;
    color: var(--gray-500);
    font-weight: 500;
    line-height: 1.4;
}

/* Article header (blog) */
.article-tag {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.article-meta {
    align-items: center;
}

.article-meta svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Divider */
.content-divider {
    border: none;
    height: 1px;
    background: var(--gray-200);
    margin: 40px 0;
}

@media (max-width: 768px) {
    .toc ol {
        columns: 1;
    }

    .takeaways {
        padding: 24px 20px;
    }

    .info-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-hero__meta {
        gap: 8px;
    }

    .meta-chip {
        font-size: 12px;
        padding: 6px 11px;
    }
}

/* ============ RESPONSIVE OFFER TABLES → CARDS (mobile) ============ */
@media (max-width: 680px) {
    .mfo-table-wrap {
        overflow-x: visible !important;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    /* Hide the header row; each cell will carry its own label */
    .mfo-table--cards thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .mfo-table--cards,
    .mfo-table--cards tbody,
    .mfo-table--cards tr,
    .mfo-table--cards td {
        display: block;
        width: 100%;
    }

    /* Each row becomes a card */
    .mfo-table--cards tbody tr {
        background: var(--white) !important;
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-sm);
        padding: 6px 4px 10px;
        margin-bottom: 16px;
    }

    /* Highlight the recommended card */
    .mfo-table--cards tbody tr:has(.mfo-reco) {
        border-color: var(--primary);
        box-shadow: 0 0 0 2px rgba(0,135,90,0.18), var(--shadow-md);
    }

    .mfo-table--cards td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 9px 16px;
        border: none;
        border-bottom: 1px solid var(--gray-100);
        text-align: right;
        font-size: 14px;
    }

    .mfo-table--cards td:last-child {
        border-bottom: none;
    }

    /* The column name, taken from the header via data-label */
    .mfo-table--cards td::before {
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        color: var(--gray-500);
        text-transform: uppercase;
        letter-spacing: 0.03em;
        text-align: left;
        flex-shrink: 0;
    }

    /* Rank cell (# column) → small badge in the top corner, no label */
    .mfo-table--cards td:has(.mfo-rank) {
        position: absolute;
        top: 12px;
        right: 12px;
        width: auto;
        padding: 0;
        border: none;
    }
    .mfo-table--cards td:has(.mfo-rank)::before {
        display: none;
    }
    .mfo-table--cards tbody tr {
        position: relative;
    }

    /* The МФО cell (holds the logo) becomes the card header, full width */
    .mfo-table--cards td:has(.mfo-table__logo) {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 6px;
        padding: 14px 52px 12px 16px; /* right padding leaves room for the rank badge */
        background: var(--gray-50);
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        border-bottom: 1px solid var(--gray-100);
        margin-bottom: 4px;
    }
    .mfo-table--cards td:has(.mfo-table__logo)::before {
        display: none;
    }

    /* Fallback: if a table has no logo, first cell is the header */
    .mfo-table--cards td:first-child:not(:has(.mfo-rank)) {
        font-weight: 800;
        color: var(--dark);
    }

    .mfo-table--cards .mfo-table__logo {
        width: 152px;
        height: 58px;
        padding: 8px 14px;
        margin-bottom: 6px;
    }

    /* A rank number cell sitting alone shouldn't create an empty card row */
    .mfo-table--cards td:empty {
        display: none;
    }

    /* CTA button cell — full width button */
    .mfo-table--cards td .btn {
        width: 100%;
    }
    .mfo-table--cards td:has(.btn) {
        justify-content: stretch;
    }
    .mfo-table--cards td:has(.btn)::before {
        display: none;
    }

    /* Prevent any card table from pushing the page wider than the screen */
    .mfo-table--cards {
        min-width: 0 !important;
        white-space: normal !important;
    }
    .mfo-table--cards td {
        overflow-wrap: anywhere;
        box-sizing: border-box;
    }

    /* Content (blog) tables: override base display:table / overflow:hidden so cards show */
    .content-block table.mfo-table--cards {
        display: block;
        overflow: visible;
        border: none;
        box-shadow: none;
        margin: 20px 0;
    }
    /* First cell of a blog table = card header (the row's subject, e.g. "Критерий") */
    .content-block table.mfo-table--cards td:first-child {
        flex-direction: column;
        align-items: flex-start;
        text-align: left;
        gap: 4px;
        background: var(--primary-light);
        border-radius: var(--radius-sm) var(--radius-sm) 0 0;
        border-bottom: 1px solid #CBE5D9;
        font-weight: 800;
        color: #045c3e;
        font-size: 15px;
        padding: 12px 16px;
    }
    .content-block table.mfo-table--cards td:first-child::before {
        display: none;
    }
    .content-block table.mfo-table--cards td {
        text-align: right;
    }
}

/* МФО review page — logo above the H1 title */
.mfo-review__logo {
    display: block;
    width: 200px;
    height: 64px;
    object-fit: contain;
    object-position: left center;
    padding: 10px 18px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin: 14px 0 18px;
}

/* ============ CITIES HUB GRID (/goroda/) ============ */
.cities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 8px;
}

.city-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: var(--transition);
}

.city-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.city-card__name {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.city-card__meta {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.4;
}

.city-card__cta {
    margin-top: 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
}

/* Key-value spec tables (mfo review pages) — no thead, stay 2-col but wrap safely on mobile */
@media (max-width: 680px) {
    .mfo-table:not(.mfo-table--cards) {
        min-width: 0;
        font-size: 13.5px;
    }
    .mfo-table:not(.mfo-table--cards) td {
        padding: 12px 12px;
        overflow-wrap: anywhere;
    }
    .mfo-table:not(.mfo-table--cards) td:first-child {
        font-weight: 700;
        color: var(--dark);
        white-space: normal;
        width: 40%;
    }
}

/* ============ GLOSSARY TERM CARDS (/slovar/) ============ */
.terms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
    margin: 8px 0 32px;
}

.term-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-left: 3px solid var(--primary);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    box-shadow: var(--shadow-sm);
}

.term-card__title {
    font-size: 16px;
    font-weight: 800;
    color: var(--dark);
    margin: 0 0 6px;
}

.term-card__def {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--dark-600);
    margin: 0;
}

.terms-letter {
    font-size: 22px;
    font-weight: 900;
    color: var(--primary);
    margin: 24px 0 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--primary-light);
}

/* ============ LEGAL / INFO CARDS (about, redakcionnaya, kontakty) ============ */
.legal-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.legal-card > h2,
.legal-card > h3 {
    margin-top: 0;
}

.legal-card > *:last-child {
    margin-bottom: 0;
}

@media (max-width: 560px) {
    .legal-card {
        padding: 22px 20px;
    }
}
