﻿/* FinStep.Space Custom Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(180deg, #f5f7ff 0%, #ffffff 18%, #f8fafc 100%);
    color: #0f172a;
}

img {
    max-width: 100%;
}

/* Offer Cards */
.offer-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 18px;
}
.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12) !important;
}

/* ---------------------------------------------------------------------------
   Thin animated gradient frame around offer cards.
   The conic gradient is masked down to a ~2px ring on the card border and
   slowly rotates, so the cards no longer blend into the light background.
   Graceful degradation: browsers without mask/ @property support simply keep
   the usual shadow (no broken full-card overlay), browsers with reduced
   motion get a static frame.
--------------------------------------------------------------------------- */
@property --offer-ring-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@supports ((mask-composite: exclude) or (-webkit-mask-composite: xor)) {
    .offer-card {
        position: relative;
    }
    .offer-card::before {
        content: '';
        position: absolute;
        inset: 0;
        z-index: 0;
        border-radius: inherit;
        padding: 1.5px; /* frame thickness */
        background: conic-gradient(
            from var(--offer-ring-angle, 0deg),
            #e2e8f0 0%,
            #c7d2fe 10%,
            #818cf8 22%,
            #4338ca 32%,
            #6366f1 42%,
            #a5b4fc 54%,
            #eef2ff 68%,
            #e2e8f0 82%,
            #e2e8f0 100%
        );
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
                mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
                mask-composite: exclude;
        animation: offer-ring-flow 8s linear infinite;
        pointer-events: none;
    }
    /* On hover the gradient picks up speed and gets slightly brighter */
    .offer-card:hover::before {
        animation-duration: 2.6s;
        filter: saturate(1.15);
    }
}

@keyframes offer-ring-flow {
    to {
        --offer-ring-angle: 360deg;
    }
}

@media (prefers-reduced-motion: reduce) {
    .offer-card::before {
        animation: none;
    }
}

.offer-badge {
    position: absolute;
    right: 14px;
    top: -10px;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: #FDE047; /* fallback; overridden by inline style */
    color: #0f172a;      /* fallback; overridden by inline style */
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
    white-space: nowrap;
    max-width: calc(100% - 2rem);
    overflow: hidden;
    text-overflow: ellipsis;
    z-index: 2;
}
/* Emoji sizing inside the badge */
.offer-badge-emoji {
    font-size: 1.05em;
    line-height: 1;
    flex-shrink: 0;
}

.offer-list-row {
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.offer-list-row .btn-primary,
.offer-card .btn-primary {
    border-radius: 10px;
    font-weight: 700;
    padding: 0.7rem 1.2rem;
    background: linear-gradient(135deg, #5f4bef, #4f46e5);
    border: none;
}

/* Article Content */
.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
}
.article-content p {
    line-height: 1.8;
    margin-bottom: 1.2rem;
}
.article-content ul, .article-content ol {
    margin-bottom: 1.2rem;
    padding-left: 1.5rem;
}

/* Legal Content */
.legal-content h2 {
    margin-top: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}
.legal-content p {
    line-height: 1.7;
    margin-bottom: 1rem;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(16px);
    background: rgba(255, 255, 255, 0.9) !important;
}

.navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #172554;
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0;
}
.navbar-brand:hover,
.navbar-brand:focus {
    color: #172554;
}
.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0.3rem;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(135deg, #5f4bef, #0ea5e9, #5f4bef);
    background-size: 220% 220%;
    box-shadow: 0 6px 15px rgba(79, 70, 229, 0.25);
    animation: brand-gradient-flow 5s ease-in-out infinite;
}
.brand-mark span {
    display: block;
    width: 0.24rem;
    border-radius: 3px 3px 1px 1px;
    background: #fff;
}
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 72%; }
.brand-mark span:nth-child(3) { height: 100%; }
.brand-name {
    background: linear-gradient(100deg, #4338ca 0%, #0ea5e9 48%, #4338ca 100%);
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: brand-gradient-flow 5s ease-in-out infinite;
}
@keyframes brand-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
.navbar-nav {
    gap: 0.5rem;
}
.navbar-nav .nav-item {
    display: flex;
    align-items: center;
}
.navbar-nav .nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: 999px;
    color: #334155;
    font-weight: 500;
    transition: all 0.2s ease;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
    background: #eef2ff;
    color: #312e81;
    text-decoration: none;
}

/* Breadcrumb */
.showcase-heading h1 {
    font-weight: 800;
}
.showcase-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}
.showcase-links {
    overflow: hidden;
}
.showcase-links-track {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.15rem 0.1rem 0.55rem;
    scrollbar-width: thin;
}
.showcase-link {
    flex: 0 0 auto;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(79, 70, 229, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: #3730a3;
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}
.showcase-link:hover,
.showcase-link:focus-visible {
    border-color: transparent;
    background: linear-gradient(100deg, #4338ca, #0ea5e9);
    color: #fff;
}
.breadcrumb {
    background: transparent;
    padding: 0;
}
.showcase-breadcrumb {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
    padding-top: 1rem;
    font-size: 0.82rem;
}
.showcase-breadcrumb a {
    color: #475467;
    text-decoration: none;
}
.showcase-breadcrumb a:hover,
.showcase-breadcrumb a:focus-visible {
    color: #4338ca;
    text-decoration: underline;
}
.showcase-breadcrumb .breadcrumb-item.active {
    color: #64748b;
}
.showcase-page {
    padding-bottom: 1rem !important;
}
.showcase-footer {
    margin-top: 1rem !important;
}

/* MFO company pages */
.mfo-page {
    background: linear-gradient(180deg, #f7f9ff 0%, #fff 42%, #f8fafc 100%);
}
.mfo-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.25rem;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(120deg, #172554 0%, #3730a3 58%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 20px 50px rgba(30, 41, 59, 0.18);
}
.mfo-hero-main { padding: 2.5rem 2.75rem; }
.mfo-brand-line { display: flex; align-items: center; gap: .85rem; margin-bottom: 1.25rem; }
.mfo-logo { width: 64px; height: 42px; object-fit: contain; border-radius: 10px; background: #fff; padding: .35rem; }
.mfo-kicker, .mfo-aside-label { color: #2563eb; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mfo-hero .mfo-kicker, .mfo-hero .mfo-aside-label { color: #bae6fd; }
.mfo-hero h1 { max-width: 720px; margin: 0 0 .8rem; font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; font-weight: 850; }
.mfo-hero-copy { max-width: 690px; margin-bottom: 1.5rem; color: #dbeafe; font-size: 1.08rem; line-height: 1.65; }
.mfo-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.mfo-hero-actions .btn { border: 0; background: #facc15; color: #172554; font-weight: 800; }
.mfo-safe-note { color: #dbeafe; font-size: .86rem; }
.mfo-safe-note i { margin-right: .3rem; }
.mfo-hero-aside { display: flex; flex-direction: column; justify-content: center; gap: .45rem; padding: 2rem; background: rgba(15, 23, 42, .22); }
.mfo-hero-aside strong { font-size: 2rem; line-height: 1.1; }
.mfo-hero-aside span:not(.mfo-aside-label) { color: #dbeafe; }
.mfo-facts { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border: 1px solid #e2e8f0; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .05); }
.mfo-facts > div { display: flex; flex-direction: column; gap: .25rem; padding: 1.25rem; border-right: 1px solid #e2e8f0; }
.mfo-facts > div:last-child { border-right: 0; }
.mfo-facts i { color: #4f46e5; font-size: 1.35rem; }
.mfo-facts strong { font-size: 1.05rem; }
.mfo-facts span, .mfo-connect p, .mfo-company-panel p { color: #64748b; font-size: .86rem; }
.mfo-content-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .75fr); gap: 2rem; align-items: start; }
.mfo-content-grid h2, .mfo-connect h2 { margin-bottom: .75rem; color: #0f172a; font-size: 1.65rem; font-weight: 800; }
.mfo-content-grid > div > p { max-width: 700px; color: #475569; line-height: 1.75; }
.mfo-steps { display: grid; gap: .75rem; margin-top: 1.4rem; }
.mfo-steps > div { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.mfo-steps b { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e0e7ff; color: #4338ca; }
.mfo-steps span { display: grid; gap: .15rem; }
.mfo-steps small { color: #64748b; }
.mfo-company-panel { padding: 1.5rem; border-left: 4px solid #4f46e5; background: #eef2ff; }
.mfo-company-panel h2 { margin-top: .45rem; }
.mfo-company-panel a { color: #3730a3; font-weight: 800; text-decoration: none; }
.mfo-connect { display: flex; justify-content: space-between; gap: 2rem; align-items: center; padding: 1.5rem 1.75rem; border-radius: 18px; background: #fff; box-shadow: 0 10px 28px rgba(15, 23, 42, .06); }
.mfo-link-groups { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.mfo-link-group { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.mfo-link-group > span { width: 100%; color: #64748b; font-size: .75rem; font-weight: 800; text-transform: uppercase; }
.mfo-link-group > a { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; height: 2.5rem; border-radius: 10px; background: #eef2ff; color: #3730a3; text-decoration: none; transition: transform .2s ease, background .2s ease; }
.mfo-link-group > a:hover { transform: translateY(-2px); background: #e0e7ff; }
.mfo-link-group > .mfo-store { gap: .35rem; padding: 0 .75rem; min-width: auto; font-size: .82rem; font-weight: 700; }

@media (max-width: 767.98px) {
    .mfo-hero { grid-template-columns: 1fr; }
    .mfo-hero-main { padding: 1.75rem 1.35rem; }
    .mfo-hero-aside { padding: 1.25rem 1.35rem; }
    .mfo-facts { grid-template-columns: repeat(2, 1fr); }
    .mfo-facts > div:nth-child(2) { border-right: 0; }
    .mfo-facts > div:nth-child(-n+2) { border-bottom: 1px solid #e2e8f0; }
    .mfo-content-grid, .mfo-connect { grid-template-columns: 1fr; display: grid; }
    .mfo-connect { gap: 1rem; }
}

/* MFO profile layout */
.mfo-profile-shell { display: grid; grid-template-columns: minmax(0, 1fr) 286px; gap: 1.5rem; align-items: start; }
.mfo-profile-shell main { min-width: 0; }
.mfo-breadcrumb { display: flex; flex-wrap: wrap; gap: .45rem; color: #64748b; font-size: .86rem; }
.mfo-breadcrumb a, .mfo-breadcrumb span { color: #475569; text-decoration: none; }
.mfo-breadcrumb a:hover { color: #0f172a; text-decoration: underline; }
.mfo-hero { display: block; padding: 1.5rem 1.75rem; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; box-shadow: 0 12px 32px rgba(15, 23, 42, .06); }
.mfo-hero-brand { display: flex; align-items: center; justify-content: flex-start; gap: .8rem; }
.mfo-hero-brand h1 { margin: 0 auto 0 0; color: #0f172a; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; font-weight: 800; }
.mfo-verified { display: inline-grid; width: 1.65rem; height: 1.65rem; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; cursor: help; box-shadow: 0 3px 8px rgba(22, 163, 74, .25); }
.mfo-verified i { font-size: 1rem; }
.mfo-hero-copy { max-width: 850px; margin: 1rem 0; color: #475569; line-height: 1.65; }
.mfo-hero-cta { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; flex-wrap: wrap; }
.mfo-hero-cta .btn-primary, .mfo-inline-actions .btn-primary, .mfo-offer-card .btn-primary { background: #2563eb; border-color: #2563eb; font-weight: 750; }
.mfo-hero-cta > span, .mfo-offer-card small { color: #64748b; font-size: .84rem; }
.mfo-hero-cta i, .mfo-offer-card small i { color: #16a34a; }
.mfo-section { padding: 1.65rem 1.75rem; border-top: 1px solid #dbe3ee; background: rgba(255, 255, 255, .72); }
.mfo-section-heading { margin-bottom: 1.15rem; }
.mfo-section-heading h2 { margin: .3rem 0 0; color: #0f172a; font-size: 1.5rem; font-weight: 800; }
.mfo-condition-table { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid #dbe3ee; border-radius: 12px; overflow: hidden; }
.mfo-condition-table > div { display: flex; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid #e2e8f0; background: #fff; }
.mfo-condition-table > div:nth-child(odd) { border-right: 1px solid #e2e8f0; }
.mfo-condition-table > div:nth-last-child(-n+2) { border-bottom: 0; }
.mfo-condition-table span { color: #64748b; }
.mfo-condition-table strong { color: #0f172a; text-align: right; }
.mfo-inline-actions { display: flex; justify-content: flex-end; gap: .65rem; margin-top: 1rem; flex-wrap: wrap; }
.mfo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; }
.mfo-steps > div { display: flex; gap: .7rem; padding: 1rem; border: 1px solid #e2e8f0; background: #fff; }
.mfo-steps b { display: grid; width: 2rem; height: 2rem; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #e0e7ff; color: #3730a3; }
.mfo-steps span { display: grid; gap: .25rem; }
.mfo-steps small { color: #64748b; line-height: 1.45; }
.mfo-company-copy { max-width: 860px; color: #475569; line-height: 1.75; }
.mfo-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-bottom: 1.25rem; }
.mfo-contact-grid > div { display: flex; gap: .65rem; padding: .9rem; border: 1px solid #e2e8f0; background: #fff; }
.mfo-contact-grid i { color: #2563eb; font-size: 1.2rem; }
.mfo-contact-grid span { display: grid; gap: .2rem; color: #64748b; font-size: .8rem; }
.mfo-contact-grid strong { color: #0f172a; font-size: .9rem; }
.mfo-link-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.mfo-link-row > span { width: 100%; color: #64748b; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.mfo-link-row a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border: 1px solid #dbe3ee; color: #334155; background: #fff; text-decoration: none; }
.mfo-link-row a:hover { border-color: #2563eb; color: #1d4ed8; }
.mfo-sticky-column { position: sticky; top: 5rem; }
.mfo-offer-card { padding: 1.35rem; border: 1px solid #dbe3ee; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(15, 23, 42, .1); }
.mfo-card-logo { display: block; width: 150px; height: 82px; margin: .9rem auto; object-fit: contain; }
.mfo-offer-card h2 { margin: 0 0 .75rem; color: #0f172a; font-size: 1.35rem; text-align: center; }
.mfo-card-price { color: #1d4ed8; font-size: 1.7rem; font-weight: 800; text-align: center; }
.mfo-offer-card p { margin: .35rem 0 1rem; color: #64748b; text-align: center; }
.mfo-offer-card small { display: block; margin-top: .8rem; text-align: center; }
.mfo-company-copy h2, .mfo-company-copy h3 { margin-top: 1.8rem; color: #0f172a; font-weight: 800; }
.mfo-company-copy p, .mfo-company-copy li { color: #475569; line-height: 1.75; }
.mfo-company-copy ol, .mfo-company-copy ul { padding-left: 1.35rem; }
.mfo-editorial-steps li, .mfo-editorial-warning-list li { margin-bottom: .65rem; }
.mfo-editorial-highlight { margin: 1.25rem 0; padding: 1rem 1.25rem; border-left: 4px solid #2563eb; background: #eff6ff; }
/* Warning notice for an MFO (e.g. licence not confirmed by NBU) — same
   editorial language, amber "attention" palette to stand out from content. */
.mfo-warning {
    display: flex; align-items: flex-start; gap: .85rem;
    padding: 1.05rem 1.2rem; margin-bottom: 1.5rem;
    border: 1px solid #fcd34d; border-left: 4px solid #f59e0b;
    border-radius: 14px; background: #fffbeb;
}
.mfo-warning-icon { color: #d97706; font-size: 1.35rem; line-height: 1.3; flex: 0 0 auto; }
.mfo-warning-body { min-width: 0; color: #78350f; line-height: 1.65; font-size: .95rem; }
.mfo-warning-title { display: block; margin-bottom: .35rem; color: #92400e; font-weight: 800; }
.mfo-warning-body p { margin: 0 0 .5rem; }
.mfo-warning-body p:last-child { margin-bottom: 0; }
.mfo-warning-body a { color: #92400e; }
.mfo-warning--danger {
    border-color: #fecaca; border-left-color: #dc2626; background: #fef2f2;
}
.mfo-warning--danger .mfo-warning-icon { color: #dc2626; }
.mfo-warning--danger .mfo-warning-body { color: #7f1d1d; }
.mfo-warning--danger .mfo-warning-title { color: #b91c1c; }
.mfo-warning--danger .mfo-warning-body a { color: #b91c1c; text-decoration: underline; }
.mfo-danger-label {
    display: inline-grid; align-items: center; white-space: nowrap;
    padding: .18rem .65rem; margin-left: .5rem; border-radius: 999px;
    background: #fee2e2; color: #b91c1c; font-size: .72rem; font-weight: 800;
    letter-spacing: .02em;
}
@media (max-width: 767.98px) {
    .mfo-warning { padding: .95rem 1rem; }
}
@media (max-width: 991.98px) {
    .mfo-profile-shell { grid-template-columns: 1fr; }
    .mfo-sticky-column { position: static; order: -1; }
    .mfo-offer-card { max-width: 420px; }
}
@media (max-width: 767.98px) {
    .mfo-hero, .mfo-section { padding: 1.2rem; }
    .mfo-hero-brand { align-items: flex-start; flex-wrap: wrap; }
    .mfo-hero-brand h1 { width: calc(100% - 80px); margin: 0; }
    .mfo-hero-cta, .mfo-inline-actions { justify-content: flex-start; }
    .mfo-condition-table { grid-template-columns: 1fr; }
    .mfo-condition-table > div, .mfo-condition-table > div:nth-child(odd) { border-right: 0; border-bottom: 1px solid #e2e8f0; }
    .mfo-condition-table > div:last-child { border-bottom: 0; }
    .mfo-steps, .mfo-contact-grid { grid-template-columns: 1fr; }
}

/* Language Switcher */
.btn-sm {
    font-size: 0.8rem;
}

/* Popup Modal */
.application-modal .modal-content {
    border-radius: 22px;
}
.application-modal .modal-header {
    min-height: 3rem;
}
.application-modal h2 {
    font-size: 1.65rem;
    font-weight: 700;
}
.application-icon,
.search-pulse {
    display: grid;
    margin-left: auto;
    margin-right: auto;
    width: 4.25rem;
    height: 4.25rem;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #5f4bef, #0ea5e9, #5f4bef);
    background-size: 220% 220%;
    color: #fff;
    font-size: 1.75rem;
    box-shadow: 0 10px 24px rgba(79, 70, 229, 0.25);
    animation: brand-gradient-flow 5s ease-in-out infinite;
}
.search-pulse {
    animation: application-pulse 1.15s ease-in-out infinite;
}
.application-countdown {
    color: #2563eb;
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1;
}
@keyframes application-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.25); transform: scale(1); }
    50% { box-shadow: 0 0 0 14px rgba(37, 99, 235, 0); transform: scale(1.06); }
}
.modal-backdrop.show {
    opacity: 0.7;
}

/* Footer */
footer {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%) !important;
}

footer a:hover {
    text-decoration: underline !important;
}

/* Badges */
.badge {
    font-weight: 500;
}

/* Landing page styles */
.home-hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 2rem;
    background:
        radial-gradient(circle at top left, rgba(124, 92, 255, 0.15), transparent 28%),
        radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.10), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #ffffff 100%);
}

.home-hero .container {
    position: relative;
    z-index: 1;
}

.hero-pill,
.eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(99, 102, 241, 0.10);
    color: #4338ca;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    margin-bottom: 1.25rem;
}

.hero-title {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.05em;
    max-width: 620px;
    margin-bottom: 1rem;
    color: #101828;
}

.mobile-intro-text {
    display: none;
}

.mobile-calculator-action {
    display: none;
}

.hero-subtitle {
    max-width: 560px;
    color: #475467;
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 1.8rem;
}

.hero-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.hero-actions .btn {
    border-radius: 14px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-actions .btn-primary {
    background: linear-gradient(135deg, #5f4bef 0%, #4338ca 100%);
    border: none;
}

.partner-mark {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-right: 0.45rem;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #e0e7ff, #bae6fd);
    color: #3730a3;
    font-size: 0.55rem;
    font-weight: 800;
}

.hero-actions .btn-light {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.3);
    color: #0f172a;
}

.hero-trust {
    max-width: 520px;
    align-items: stretch;
}

.stat-box {
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 18px;
    padding: 1rem 0.9rem;
    text-align: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.stat-box strong {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
}

.stat-box span {
    display: block;
    color: #475467;
    font-size: 0.76rem;
    margin-top: 0.35rem;
}

.calculator-wrap {
    display: flex;
    justify-content: center;
}

.calculator-card {
    width: min(100%, 520px);
    background: rgba(15, 23, 42, 0.96);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 28px;
    padding: 1.5rem;
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.28);
    color: #fff;
}

.calculator-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.calculator-header .chip {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.14);
    color: #6ee7b7;
    padding: 0.45rem 0.7rem;
    font-size: 0.72rem;
}

.calc-block {
    margin-bottom: 1.4rem;
}

.calc-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 0.75rem;
    font-size: 0.92rem;
}

.calc-label-row strong {
    font-size: 1.1rem;
    color: #fff;
}

input[type="range"] {
    width: 100%;
    accent-color: #7c3aed;
}

.term-selector {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: 0.7rem;
    overflow-x: auto;
    scrollbar-width: none;
}

.term-selector::-webkit-scrollbar {
    display: none;
}

.term-option {
    flex: 1 0 auto;
    min-width: 68px;
    border: 1px solid rgba(148, 163, 184, 0.25);
    background: rgba(148, 163, 184, 0.08);
    color: rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    padding: 0.7rem 0.5rem;
    font-size: 0.8rem;
    font-weight: 700;
    transition: all 0.2s ease;
    text-align: center;
}

.term-option.active {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 8px 18px rgba(124, 58, 237, 0.45);
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.result-item {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(148, 163, 184, 0.15);
    border-radius: 16px;
    padding: 1rem 0.9rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.result-item-wide {
    grid-column: 1 / -1;
}

.result-item span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.8rem;
}

.result-item strong {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.calc-footnote {
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
    line-height: 1.5;
}

.calc-button {
    margin-top: 1.35rem;
    border-radius: 14px;
    font-weight: 700;
    background: linear-gradient(135deg, #1f9dff, #4f46e5);
    border: none;
    padding: 0.9rem 1rem;
}

.section-heading {
    margin-bottom: 2.2rem;
}

.section-heading.center {
    text-align: center;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.04em;
    font-weight: 800;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.partners-section,
.features-section,
.steps-section,
.reviews-section,
.legal-summary-section {
    padding: 4.5rem 0;
}

.partner-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1rem;
}

.partner-mark {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-right: 0.45rem;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #e0e7ff, #bae6fd);
    color: #3730a3;
    font-size: 0.55rem;
    font-weight: 800;
}

.partner-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 96px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 20px;
    color: #475467;
    font-weight: 700;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}

.partner-mark {
    display: inline-grid;
    width: 2rem;
    height: 2rem;
    margin-right: 0.45rem;
    place-items: center;
    border-radius: 9px;
    background: linear-gradient(135deg, #e0e7ff, #bae6fd);
    color: #3730a3;
    font-size: 0.55rem;
    font-weight: 800;
}

.feature-item {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
    border-radius: 26px;
    padding: 2rem 1.3rem;
    text-align: left;
}

.feature-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(59, 130, 246, 0.10));
    margin-bottom: 1rem;
    color: #4338ca;
    font-size: 1.7rem;
}

.feature-item h3,
.step-item h3,
.legal-card h3 {
    font-size: 1.38rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.7rem;
}

.feature-item p,
.step-item p,
.legal-card p,
.legal-card li {
    color: #475467;
    line-height: 1.7;
    margin: 0;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.step-item {
    position: relative;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 26px;
    padding: 2rem 1.4rem 1.4rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.step-number {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #eff6ff, #ede9fe);
    color: #4338ca;
    font-weight: 800;
}

.step-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12), rgba(79, 70, 229, 0.12));
    color: #4338ca;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.review-item {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.review-stars {
    color: #f59e0b;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.review-item p {
    color: #475467;
    line-height: 1.7;
    margin: 0 0 1.2rem;
}

.review-author {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.review-author strong {
    font-size: 1rem;
}

.review-author span {
    color: #667085;
    font-size: 0.85rem;
}

.cta-section {
    padding: 0 0 4rem;
}

.cta-box {
    background: linear-gradient(135deg, #1d4ed8 0%, #312e81 100%);
    border-radius: 32px;
    padding: 2.5rem 2rem;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 30px 70px rgba(79, 70, 229, 0.24);
}

.eyebrow.light {
    background: rgba(255, 255, 255, 0.12);
    color: #e0e7ff;
}

.cta-box h2 {
    max-width: 680px;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    line-height: 1.2;
    letter-spacing: -0.04em;
    margin: 0;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.cta-actions .btn {
    border-radius: 14px;
    font-weight: 700;
}

.legal-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
}

.legal-card {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    padding: 1.5rem;
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.04);
}

.legal-card ul {
    margin: 0;
    padding-left: 1.1rem;
}

@media (max-width: 991px) {
    .feature-grid,
    .review-grid,
    .legal-summary,
    .steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 767px) {
    .home-hero {
        padding-top: 1rem;
        padding-bottom: 0.75rem;
    }

    .home-hero > .container > .row {
        display: flex;
        flex-direction: column;
        gap: 0.45rem;
        row-gap: 0;
        margin-top: 0 !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }

    .home-hero > .container > .row > .col-lg-6 {
        margin-top: 0;
    }

    .home-hero .col-lg-6:first-child {
        order: 2;
    }

    .home-hero .col-lg-6:last-child {
        order: 1;
    }

    .hero-pill,
    .eyebrow {
        margin-bottom: 0.75rem;
        font-size: 0.7rem;
        padding: 0.45rem 0.75rem;
    }

    .home-hero .hero-pill,
    .home-hero .hero-actions {
        display: none;
    }

    .mobile-intro-text {
        display: block;
        margin: 0.75rem 0 0.55rem;
        color: #0f172a;
        text-align: center;
    }

    .mobile-intro-text .mobile-intro-label {
        display: inline;
        font-size: 0.72rem;
        letter-spacing: 0;
        color: #4338ca;
        font-weight: 700;
    }

    .mobile-intro-text .mobile-intro-label {
        font-size: 1rem;
        line-height: 1.1;
        font-weight: 800;
    }

    .hero-title {
        display: none;
    }

    .hero-subtitle {
        display: none;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        margin-bottom: 1rem;
    }

    .hero-trust {
        max-width: 100%;
        margin-top: 0 !important;
        margin-bottom: 0;
    }

    .stat-box {
        padding: 0.6rem 0.25rem;
        border-radius: 12px;
    }

    .stat-box strong {
        font-size: 0.9rem;
    }

    .stat-box span {
        font-size: 0.62rem;
        line-height: 1.2;
        margin-top: 0.2rem;
    }

    .feature-item {
        display: grid;
        grid-template-columns: 3.25rem minmax(0, 1fr);
        column-gap: 0.85rem;
        align-items: start;
        padding: 1rem;
        border-radius: 16px;
    }

    .feature-icon {
        grid-row: span 2;
        width: 3.25rem;
        height: 3.25rem;
        margin-bottom: 0;
        border-radius: 14px;
        font-size: 1.35rem;
    }

    .feature-item h3 {
        align-self: end;
        margin-bottom: 0.2rem;
        font-size: 1rem;
        line-height: 1.2;
    }

    .feature-item p {
        font-size: 0.82rem;
        line-height: 1.4;
    }

    .calculator-card {
        width: min(100%, 430px);
        padding: 1rem 0.9rem;
        border-radius: 22px;
        min-height: auto;
    }

    .calculator-header {
        margin-bottom: 1rem;
        font-size: 0.92rem;
    }

    .calc-block {
        margin-bottom: 1rem;
    }

    .term-option {
        flex: 1 1 0;
        min-width: 0;
        width: auto;
        text-align: center;
        padding: 0.6rem 0.35rem;
        font-size: 0.72rem;
    }

    .term-selector {
        display: flex;
        gap: 0.45rem;
        overflow: hidden;
    }

    .results-grid {
        gap: 0.7rem;
        margin-top: 1rem;
    }

    .result-item {
        padding: 0.75rem 0.65rem;
    }

    .result-item strong {
        font-size: 1rem;
    }

    .calc-footnote {
        margin-top: 0.8rem;
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .calc-button {
        margin-top: 1rem;
        padding: 0.8rem 0.9rem;
    }

    .partners-section,
    .features-section,
    .steps-section,
    .reviews-section,
    .legal-summary-section,
    .cta-section {
        padding-top: 2.4rem;
        padding-bottom: 2.4rem;
    }

    .section-heading h2 {
        font-size: 1.7rem;
        line-height: 1.2;
    }

    .feature-grid,
    .review-grid,
    .legal-summary,
    .steps-grid,
    .partner-grid {
        grid-template-columns: 1fr;
    }

    .feature-item,
    .review-item,
    .step-item,
    .legal-card {
        padding: 1.1rem 1rem;
    }

    .cta-box {
        padding: 1.5rem 1rem;
        border-radius: 22px;
        gap: 1rem;
    }

    .cta-box h2 {
        font-size: 1.6rem;
    }

    .cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .cta-actions .btn {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .offer-card .row .col-4 {
        padding: 0 5px;
    }
    .offer-card .row .col-4 small {
        font-size: 0.7rem;
    }
}
.application-phone-field {
    display: flex;
    align-items: center;
    overflow: hidden;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.application-phone-field:focus-within {
    border-color: #4f46e5;
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
}
.application-phone-prefix {
    flex: 0 0 auto;
    padding-left: 1rem;
    color: #4338ca;
    font-weight: 800;
}
.application-phone-field .form-control {
    min-width: 0;
    border: 0;
    box-shadow: none !important;
    color: #172554;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
}
.application-phone-field .form-control:focus {
    border: 0;
}
.application-step-form .btn-primary {
    border: 0;
    background: linear-gradient(100deg, #4338ca 0%, #0ea5e9 48%, #4338ca 100%);
    background-size: 220% auto;
    box-shadow: 0 10px 22px rgba(79, 70, 229, 0.22);
    font-weight: 800;
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.application-step-form .btn-primary:hover,
.application-step-form .btn-primary:focus-visible {
    background-position: 100% center;
    box-shadow: 0 13px 26px rgba(79, 70, 229, 0.3);
    transform: translateY(-1px);
}

/* Shared animated action style */
.btn.btn-primary {
    border: 0;
    background: linear-gradient(105deg, #168df7 0%, #0ea5e9 42%, #4338ca 100%);
    background-size: 220% 220%;
    box-shadow: 0 10px 22px rgba(37, 99, 235, 0.22);
    transition: background-position 0.35s ease, transform 0.2s ease, box-shadow 0.2s ease;
    animation: button-gradient-flow 6s ease-in-out infinite;
}
.btn.btn-primary:hover,
.btn.btn-primary:focus-visible {
    background-position: 100% 50%;
    box-shadow: 0 13px 28px rgba(79, 70, 229, 0.32);
    transform: translateY(-1px);
}
.btn.btn-primary:active {
    transform: translateY(0);
}
@keyframes button-gradient-flow {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}
@media (prefers-reduced-motion: reduce) {
    .brand-mark,
    .brand-name,
    .application-icon,
    .btn.btn-primary {
        animation: none;
    }
}
/* Real annual rate (Р Р РџР¦) line on offer cards */
.rrpc-line {
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
/* Offer CTA button: "РћС‚СЂРёРјР°С‚Рё" stands out, offer title is de-emphasized */
.btn .btn-offer-title {
    font-weight: 400;
    font-size: 0.8em;
    opacity: 0.85;
}

/* Drag-and-drop offer sorting (admin showcase offers) */
.offer-sortable .drag-handle {
    display: inline-grid;
    grid-template-columns: repeat(2, 5px);
    grid-template-rows: repeat(3, 5px);
    gap: 2px;
    cursor: grab;
    padding: 4px;
    color: #94a3b8;
    flex-shrink: 0;
}
.offer-sortable .drag-handle:active { cursor: grabbing; }
.offer-sortable .drag-handle span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    display: block;
}
.offer-sortable .sortable-ghost { opacity: 0.4; background: #dbeafe; }
.offer-sortable .sortable-drag { background: #fff; box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18); }

/* --- Floating Telegram icon (all pages) --- */
@keyframes telegramFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}
.telegram-float {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 99999;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #229ED9;
    animation: telegramFloat 3s ease-in-out infinite;
    transition: box-shadow 0.2s ease;
}
.telegram-float:hover {
    box-shadow: 0 10px 26px rgba(34, 158, 217, 0.4);
}
.telegram-float svg {
    width: 45px;
    height: 45px;
    fill: currentColor;
}


/* --- Regulatory PDF documents on offer cards (essential characteristics / warning) --- */
.offer-pdf-docs {
    display: flex;
    gap: 0;
    margin: 0.1rem 0 0.5rem;
}
.offer-doc-link {
    flex: 1 1 0;
    min-width: 0;
    display: block;
    font-size: 0.56rem;
    line-height: 1.35;
    color: #64748b;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.offer-doc-link:hover {
    color: #2563eb;
}
/* Vertical separator between the two documents */
.offer-doc-link + .offer-doc-link {
    border-left: 1px solid #d7dee8;
    padding-left: 0.55rem;
}

/* --- Homepage teaser (FinStep MFO), compact card above the calculator --- */
.finstep-teaser {
    width: min(100%, 520px);
    margin: 0 auto 1rem;
}

.finstep-teaser-card {
    background: #ffffff;
    border: 1px solid rgba(99, 102, 241, 0.18);
    border-radius: 18px;
    padding: 0.9rem 1.05rem 0.85rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.finstep-teaser-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(99, 102, 241, 0.10);
    color: #4338ca;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 0.5rem;
}

.finstep-teaser-card h2 {
    margin: 0 0 0.4rem;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.35;
    color: #0f172a;
}

.finstep-teaser-text {
    margin: 0 0 0.7rem;
    color: #475467;
    font-size: 0.85rem;
    line-height: 1.55;
}

.finstep-teaser-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.finstep-teaser-actions .btn {
    border-radius: 10px;
    font-weight: 700;
    width: 100%;
    white-space: nowrap;
}

.finstep-teaser-note {
    margin: 0;
    font-size: 0.66rem;
    line-height: 1.45;
    color: #94a3b8;
    text-align: center;
}

@media (max-width: 767px) {
    .finstep-teaser {
        margin-bottom: 0.85rem;
    }

    .finstep-teaser-note {
        text-align: left;
    }
}


/* Mobile: tighten vertical spacing around the showcase page title */
@media (max-width: 767.98px) {
    .showcase-page {
        padding-top: 0.9rem !important;
        padding-bottom: 0.9rem !important;
    }
    .showcase-page .showcase-heading {
        margin-bottom: 1rem !important;
    }
    .showcase-page .showcase-heading h1 {
        font-size: 1.45rem;
        line-height: 1.25;
        margin-bottom: 0.25rem;
    }
    .showcase-page .showcase-heading .lead {
        font-size: 0.95rem;
        margin-bottom: 0;
    }
}

