/* ==========================================================================
   Sculpt Design System
   Токены палитры/теней/радиусов — в /theme.css (динамически per-site).
   Здесь — только компонентные стили.
   ========================================================================== */

/* --- RESET --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font-body, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    -webkit-tap-highlight-color: transparent;
}

body {
    background-color: var(--bg-body);
    color: var(--text-dark);
    display: flex;
    flex-direction: column;
    height: 100dvh;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
    overscroll-behavior: none;
}

/* Layout: full-width — no sidebar, traditional scroll */
body.layout-full-width { overflow: auto; }
body.layout-full-width main { overflow: visible; }

/* Layout: centered — narrow content, no sidebar */
body.layout-centered { overflow: auto; }
body.layout-centered main { overflow: visible; max-width: 800px; margin: 0 auto; }

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

/* --- SCULPT CARD --- */
.sculpt-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid var(--sculpt-border);
}

/* --- SVG ICONS --- */
.icon-svg {
    width: 20px; height: 20px; fill: none; stroke: currentColor;
    stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
}

/* --- НАРЕЗАННЫЕ ИКОНКИ --- */
.fi { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; }
.fi img { width: 20px; height: 20px; object-fit: contain; }

/* --- SVG SIDEBAR ICONS --- */
.side-icon { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; color: var(--text-muted); }
.side-icon svg { width: 20px; height: 20px; }
.side-link:hover .side-icon { color: var(--primary); }
.side-link.active .side-icon { color: #fff; }

/* ==========================================================================
   ЛОГОТИП
   ========================================================================== */
.logo-wrapper {
    display: flex; align-items: center; text-decoration: none;
    color: var(--text-dark); cursor: pointer; transition: var(--transition);
    flex-shrink: 0;
}
.logo-wrapper:hover { opacity: 0.8; }
.logo-img { height: 44px; width: auto; display: block; padding: 4px 0; }
.logo { display: flex; align-items: center; gap: 8px; font-size: 22px; font-weight: 800; color: var(--text-dark); }
.logo span { color: var(--primary); }
.logo:hover { text-decoration: none; }

/* ==========================================================================
   ШАПКА (HEADER)
   ========================================================================== */
header {
    height: 80px; background: var(--bg-card);
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 40px 0 32px; z-index: 1000;
    box-shadow: 0 1px 0 rgba(0,0,0,0.06), 0 2px 10px rgba(0,0,0,0.02);
    flex-shrink: 0;
}

/* Навигация в шапке */
.nav-desktop { display: flex; gap: 32px; align-items: center; }
.nav-desktop a {
    text-decoration: none; color: var(--text-muted); font-size: 14px;
    font-weight: 600; transition: var(--transition); white-space: nowrap;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--primary); }

/* Кнопка логина */
.btn-login {
    width: 42px; height: 42px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); background: var(--bg-body);
    border: 2px solid transparent; transition: var(--transition);
    flex-shrink: 0; text-decoration: none;
}
.btn-login:hover { background: var(--primary); color: #fff; box-shadow: var(--shadow-primary-sm); }

/* Auth: User menu */
.user-menu { display: flex; align-items: center; gap: 10px; }
.user-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg-body); box-shadow: var(--sculpt-input); }
.user-name { color: var(--text-dark); font-size: 14px; font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-logout {
    color: var(--text-muted); font-size: 12px; font-weight: 600;
    padding: 6px 12px; border-radius: var(--radius-pill); transition: var(--transition);
}
.user-logout:hover { color: var(--primary); background: var(--bg-body); text-decoration: none; }

/* Auth: Buttons */
.auth-buttons { display: flex; gap: 8px; }
.btn-auth {
    font-size: 13px; font-weight: 700; padding: 8px 16px;
    border-radius: var(--radius-pill); color: #fff; transition: var(--transition);
    text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-auth:hover { text-decoration: none; opacity: 0.9; transform: translateY(-1px); }
.btn-vk { background: #4C75A3; }
.btn-yandex { background: #FC3F1D; }

/* ==========================================================================
   МАКЕТ (SPA LAYOUT)
   ========================================================================== */
.layout-container { display: flex; flex: 1; overflow: hidden; }

/* --- САЙДБАР --- */
aside {
    width: 260px; background: var(--bg-card); padding: 32px 16px;
    overflow-y: auto; border-right: 1px solid var(--border-faint);
    display: flex; flex-direction: column; gap: 32px; z-index: 10;
    flex-shrink: 0;
}
.side-group h4 {
    font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
    color: var(--text-muted); margin-bottom: 12px; padding-left: 16px;
}
.side-link {
    display: flex; align-items: center; gap: 10px; padding: 12px 14px;
    border-radius: var(--radius-md); text-decoration: none; color: var(--text-dark);
    font-size: 14px; font-weight: 600; transition: var(--transition);
}
.side-link:hover { background: var(--bg-body); color: var(--primary); }
.side-link.active { background: var(--primary); color: #fff; box-shadow: 0 8px 16px rgba(0, 82, 255, 0.2); }
.side-link.active .fi img { filter: brightness(0) invert(1); }
.side-link.active .side-icon { color: #fff; }

/* ==========================================================================
   ОСНОВНОЙ КОНТЕНТ (MAIN)
   ========================================================================== */
main {
    flex: 1; overflow-y: auto; padding: 40px; scroll-behavior: smooth;
}
.main { padding-bottom: 48px; }

/* Views (SPA) */
.view { display: none; animation: slideUp 0.4s ease-out; }
.view.active { display: block; }
@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.container { max-width: 1000px; margin: 0 auto; }

/* ==========================================================================
   ХЛЕБНЫЕ КРОШКИ
   ========================================================================== */
.breadcrumbs {
    padding: 12px 0; font-size: 13px; color: var(--text-muted); font-weight: 500;
}
.breadcrumbs a { color: var(--text-muted); transition: var(--transition); }
.breadcrumbs a:hover { color: var(--primary); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { margin-bottom: 48px; }
.hero h1 { font-size: 48px; font-weight: 900; letter-spacing: -1.5px; line-height: 1.1; margin-bottom: 16px; }
.hero p { font-size: 18px; color: var(--text-muted); line-height: 1.5; max-width: 600px; }

.intro {
    color: var(--text-muted); font-size: 16px; margin-bottom: 24px;
    max-width: 720px; line-height: 1.7;
}

/* Trust badges (listing hero) */
.trust-row { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.trust-item { display: flex; align-items: center; gap: 6px; color: var(--text-muted); font-size: 13px; font-weight: 600; }

/* Trust badges (old Tera-based) */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.trust-badge {
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-body); border-radius: var(--radius-pill);
    padding: 8px 16px; font-size: 13px; font-weight: 600;
    color: var(--text-muted); transition: var(--transition);
    box-shadow: var(--sculpt-input);
}
.trust-badge:hover { color: var(--primary); }
.trust-icon { font-size: 16px; flex-shrink: 0; }
.trust-text { white-space: nowrap; }

/* Live counter */
.live-counter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; }
.live-stat { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-muted); font-weight: 500; }
.live-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse {
    0%,100% { opacity: 1; box-shadow: 0 0 0 0 rgba(16,185,129,0.4); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(16,185,129,0); }
}

/* ==========================================================================
   КАЛЬКУЛЯТОР
   ========================================================================== */
.calc-panel {
    padding: 36px 40px; display: grid; grid-template-columns: 1fr 1fr 200px;
    gap: 36px; align-items: flex-end; margin-bottom: 36px;
}
.calc-field label {
    display: flex; justify-content: space-between; font-weight: 700; font-size: 13px;
    color: var(--text-muted); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px;
}
.calc-field .val { color: var(--primary); font-size: 20px; font-weight: 900; }
input[type="range"] {
    width: 100%; height: 10px; background: var(--bg-body); border-radius: 10px;
    appearance: none; outline: none; box-shadow: var(--sculpt-input);
}
input[type="range"]::-webkit-slider-thumb {
    appearance: none; width: 28px; height: 28px; background: var(--primary);
    border: 6px solid #fff; border-radius: 50%; cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 82, 255, 0.3);
}

/* ==========================================================================
   КНОПКИ
   ========================================================================== */
.btn-main {
    background: var(--primary); color: #FFFFFF !important;
    padding: 13px 28px; border-radius: var(--radius-pill); text-align: center;
    font-weight: 700; font-size: 14px; box-shadow: var(--shadow-primary-sm);
    transition: var(--transition); border: none; cursor: pointer;
    display: inline-flex; justify-content: center; align-items: center; text-decoration: none;
    white-space: nowrap;
}
.btn-main:hover {
    background: var(--primary-dark); transform: translateY(-2px); color: #FFFFFF;
    box-shadow: var(--shadow-primary-md);
}

/* CTA кнопки (старые — маппинг на btn-main) */
.btn-cta {
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
    padding: 13px 28px; border-radius: var(--radius-pill); white-space: nowrap;
    transition: var(--transition); box-shadow: var(--shadow-primary-sm);
    text-decoration: none;
}
.btn-cta:hover {
    background: var(--primary-dark); box-shadow: var(--shadow-primary-md);
    text-decoration: none; transform: translateY(-2px);
}
.btn-cta-sm {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 9px 20px; background: var(--primary); color: #fff;
    border-radius: var(--radius-pill); font-size: 13px; font-weight: 700;
    text-decoration: none; white-space: nowrap; transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.2);
}
.btn-cta-sm:hover {
    background: var(--primary-dark); box-shadow: 0 6px 16px rgba(0, 82, 255, 0.3);
    transform: translateY(-1px); color: #fff; text-decoration: none;
}
.btn-cta-hero {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--primary); color: #fff; font-size: 16px; font-weight: 700;
    padding: 16px 40px; border-radius: var(--radius-pill); transition: var(--transition);
    box-shadow: 0 6px 20px rgba(0, 82, 255, 0.25); text-decoration: none;
}
.btn-cta-hero:hover {
    background: var(--primary-dark); box-shadow: 0 10px 28px rgba(0, 82, 255, 0.35);
    text-decoration: none; transform: translateY(-2px);
}

/* ==========================================================================
   RISK WARNING
   ========================================================================== */
.risk-warning-inline {
    display: flex; gap: 16px; padding: 24px 28px;
    background: var(--error-bg); border-radius: var(--radius-xl);
    border: 1px solid var(--error-border);
    margin-bottom: 32px; align-items: flex-start;
}
.risk-warning-inline .risk-icon {
    flex-shrink: 0; width: 40px; height: 40px; background: var(--error-icon-bg);
    border-radius: 14px; display: flex; align-items: center; justify-content: center;
}
.risk-warning-inline .risk-title { font-weight: 800; font-size: 14px; color: var(--error-dark); margin-bottom: 4px; }
.risk-warning-inline .risk-text { font-size: 13px; color: var(--error-text); line-height: 1.6; opacity: 0.8; }

/* Risk warning (Tera listing/offer) */
.risk-warning {
    display: flex; gap: 16px; margin-bottom: 24px; padding: 24px 28px;
    background: var(--error-bg); border-radius: var(--radius-xl);
    border: 1px solid var(--error-border);
}
.risk-warning-icon { flex-shrink: 0; margin-top: 2px; }
.risk-warning-content { min-width: 0; }
.risk-warning-title { font-weight: 800; font-size: 15px; color: var(--error-dark); margin-bottom: 8px; }
.risk-warning-content p { font-size: 13px; color: var(--error-text); line-height: 1.65; margin: 0 0 6px; opacity: 0.8; }
.risk-warning-alt { font-weight: 700; color: var(--error-dark); }

/* Risk banner (footer) */
.risk-banner {
    background: var(--error-bg); border-radius: var(--radius-xl); padding: 24px 28px;
    margin: 48px 0; display: flex; gap: 16px; align-items: flex-start;
    border: 1px solid var(--error-border);
}
.risk-banner-icon {
    width: 40px; height: 40px; background: var(--error-icon-bg); border-radius: 14px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.risk-text-banner h4 { color: var(--error-dark); font-size: 14px; font-weight: 800; margin-bottom: 4px; }
.risk-text-banner p { color: var(--error-text); font-size: 13px; font-weight: 500; line-height: 1.6; opacity: 0.8; }

/* Risks block (Tera) */
.risks-block {
    display: flex; gap: 16px; background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-xl); padding: 24px 28px; margin-bottom: 32px;
}
.risks-icon { flex-shrink: 0; margin-top: 2px; }
.risks-content { font-size: 14px; color: var(--error-text); line-height: 1.75; white-space: pre-line; }

/* ==========================================================================
   SECTION TITLE
   ========================================================================== */
.section-title { font-size: 26px; font-weight: 900; letter-spacing: -0.5px; margin-bottom: 20px; }
.section { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--border-subtle); }
.section-header { margin-bottom: 20px; }
.section-header h2 { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-top: 4px; }

/* ==========================================================================
   LOAN CARD (карточки МФО)
   ========================================================================== */
.loan-list, .offers-list { display: flex; flex-direction: column; gap: 0; }

.loan-card {
    padding: 24px 32px; margin-bottom: 16px;
    display: grid; grid-template-columns: 72px 2fr 1fr 1fr 160px;
    align-items: center; gap: 28px;
    transition: var(--transition); cursor: pointer; text-decoration: none; color: inherit;
}
.loan-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-hover);
    border-color: rgba(0, 82, 255, 0.15); /* primary-border-hover */
}

.mfo-logo-wrap {
    width: 64px; height: 64px; background: var(--logo-dark); border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sculpt-input); color: white; font-weight: 900; font-size: 11px;
    flex-shrink: 0; overflow: hidden;
}
.mfo-meta h3 { font-size: 18px; font-weight: 900; margin-bottom: 4px; }
.mfo-meta h3 a { color: var(--text-dark); text-decoration: none; }
.mfo-meta h3 a:hover { color: var(--primary); }
.rating { display: flex; align-items: center; gap: 4px; color: var(--warning); font-size: 13px; font-weight: 700; }
.param-col { display: flex; flex-direction: column; gap: 4px; }
.param-label { font-size: 11px; font-weight: 800; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.param-value { font-size: 18px; font-weight: 900; white-space: nowrap; }
.param-value.highlight { color: var(--success); }
.badge-free-tag { font-size: 11px; color: var(--success); font-weight: 800; background: var(--success-bg); padding: 3px 10px; border-radius: 6px; margin-top: 4px; display: inline-block; }

/* Offer card (old Tera mapping) */
.offer-card {
    background: var(--bg-card); border: 1px solid var(--sculpt-border);
    border-radius: var(--radius-xl); padding: 24px 32px; margin-bottom: 16px;
    display: grid; grid-template-columns: 72px 2fr 1fr 1fr 160px;
    gap: 28px; align-items: center; transition: var(--transition);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    cursor: pointer; text-decoration: none; color: inherit;
}
.offer-card:hover {
    transform: translateY(-2px); box-shadow: var(--shadow-hover);
    border-color: rgba(0, 82, 255, 0.15); /* primary-border-hover */
}

/* Offer logo */
.offer-logo-img {
    width: 64px; height: 64px; border-radius: 18px; object-fit: contain;
    background: #fff; box-shadow: var(--sculpt-input); padding: 6px; flex-shrink: 0;
}
.offer-logo-fallback {
    width: 64px; height: 64px; border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 900; color: #fff; flex-shrink: 0;
    box-shadow: var(--sculpt-input);
}

/* Offer info */
.offer-info { min-width: 0; }
.offer-header { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.offer-name { font-size: 18px; font-weight: 900; }
.offer-name a { color: var(--text-dark); text-decoration: none; }
.offer-name a:hover { color: var(--primary); }
.offer-rating {
    display: inline-flex; align-items: center; gap: 3px;
    font-size: 13px; color: var(--warning); font-weight: 700;
    background: var(--warning-bg); padding: 2px 8px; border-radius: var(--radius-pill);
}
.offer-rating .star { font-size: 12px; }

/* Offer conditions */
.offer-conditions { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.offer-conditions .cond { display: flex; align-items: center; gap: 5px; }
.offer-conditions .cond-label { font-size: 11px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.3px; }
.offer-conditions .cond-value { font-weight: 800; color: var(--text-dark); }
.cond-icon { flex-shrink: 0; color: var(--text-muted); }
.cond-sep { color: rgba(0,0,0,0.1); }

/* Offer CTA */
.offer-cta { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }

/* Badges */
.badge-free {
    font-size: 11px; color: var(--success); font-weight: 800;
    background: var(--success-bg); padding: 3px 10px; border-radius: var(--radius-pill);
}
.badge-recommended {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; color: var(--primary); font-weight: 800;
    background: var(--primary-bg); padding: 3px 10px; border-radius: var(--radius-pill);
}
.badge-free-table {
    display: inline-block; padding: 3px 10px;
    background: var(--success-bg); color: var(--success);
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 800;
}
.badge-no { color: var(--muted-light); }
.badge-expert {
    display: inline-flex; align-items: center; gap: 6px;
    background: var(--success-bg); color: var(--success); padding: 6px 14px;
    border-radius: var(--radius-pill); font-size: 12px; font-weight: 800; margin-bottom: 12px;
}

/* Rating bar */
.offer-rating-bar { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.rating-bar-track { width: 80px; height: 6px; background: var(--bg-body); border-radius: 6px; overflow: hidden; box-shadow: var(--sculpt-input); }
.rating-bar-fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--warning), #EAB308); transition: width 0.3s ease; }
.rating-bar-value { font-size: 12px; font-weight: 700; color: var(--text-muted); }

/* ==========================================================================
   FILTERS
   ========================================================================== */
.filters-bar {
    display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
    padding: 20px 24px; background: var(--bg-card);
    border-radius: var(--radius-xl); box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
}
.filter-group { display: flex; flex-direction: column; gap: 6px; }
.filter-group-inline { display: flex; flex-direction: row; align-items: center; gap: 8px; align-self: flex-end; padding-bottom: 2px; }
.filter-label {
    font-size: 11px; color: var(--text-muted); font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
}
.filter-select {
    padding: 10px 14px; border: none; border-radius: var(--radius-pill);
    font-size: 14px; color: var(--text-dark); background: var(--bg-body);
    cursor: pointer; font-family: inherit; font-weight: 600;
    box-shadow: var(--sculpt-input); transition: var(--transition);
}
.filter-select:focus { outline: none; box-shadow: var(--sculpt-input), 0 0 0 3px rgba(0,82,255,0.1); }
.filter-checkbox { accent-color: var(--primary); width: 18px; height: 18px; cursor: pointer; }

/* ==========================================================================
   RESULTS BAR
   ========================================================================== */
.results-bar { display: flex; align-items: center; margin-bottom: 14px; }
.results-count {
    display: flex; align-items: center; gap: 6px;
    font-size: 14px; color: var(--text-muted); font-weight: 600;
}

/* Update info */
.update-info {
    display: flex; align-items: center; gap: 6px;
    font-size: 12px; color: var(--text-muted); margin-bottom: 16px; font-weight: 500;
}

/* ==========================================================================
   INTRO & CITY INTRO
   ========================================================================== */
.intro-long {
    margin-bottom: 32px; font-size: 15px; color: var(--text-muted);
    line-height: 1.7; white-space: pre-line;
}

.city-intro {
    background: var(--primary-bg); border-left: 4px solid var(--primary-blue);
    padding: 20px 24px; border-radius: var(--radius-lg);
    margin-bottom: 32px; font-size: 15px; color: var(--text-dark);
    line-height: 1.7;
}

/* ==========================================================================
   TOP-5 TABLE
   ========================================================================== */
.top5-section { margin-bottom: 32px; }
.top5-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.top5-title { font-size: 22px; font-weight: 900; color: var(--text-dark); margin: 0; letter-spacing: -0.5px; }
.top5-sub { font-size: 14px; color: var(--text-muted); }
.top5-table-wrap {
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    border-radius: var(--radius-xl); background: var(--bg-card);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
}
.top5-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; }
.top5-table thead { background: var(--bg-body); }
.top5-table th {
    padding: 14px 16px; text-align: left; font-weight: 800;
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; border-bottom: 1px solid var(--border-faint); white-space: nowrap;
}
.top5-table td {
    padding: 16px 16px; border-bottom: 1px solid var(--border-faint);
    color: var(--text-dark); vertical-align: middle;
}
.top5-table tbody tr:last-child td { border-bottom: none; }
.top5-table tbody tr:hover { background: var(--bg-body); }
.top5-rank { font-weight: 900; color: var(--primary); font-size: 15px; width: 36px; text-align: center; }
.top5-name a { font-weight: 800; color: var(--text-dark); text-decoration: none; }
.top5-name a:hover { color: var(--primary); }
.top5-rating { display: inline-block; margin-left: 8px; font-size: 12px; color: var(--warning); font-weight: 700; }
.top5-sum, .top5-rate, .top5-term { white-space: nowrap; font-weight: 600; }

/* ==========================================================================
   OFFER PAGE (DETAIL)
   ========================================================================== */

/* Back link */
.back-link {
    display: inline-flex; align-items: center; gap: 8px;
    color: var(--text-muted); font-weight: 700; text-decoration: none;
    margin-bottom: 32px; cursor: pointer; transition: var(--transition);
}
.back-link:hover { color: var(--primary); }

/* Offer hero */
.offer-hero {
    padding: 40px 48px; display: grid; grid-template-columns: 140px 1fr 220px;
    gap: 40px; align-items: center; margin-bottom: 40px;
}
.offer-logo-big {
    width: 140px; height: 140px; background: var(--logo-dark); border-radius: 32px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: var(--sculpt-input); color: white; overflow: hidden;
}
.offer-logo-big img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.offer-title h1 { font-size: 36px; font-weight: 900; letter-spacing: -1px; margin-bottom: 8px; }
.offer-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 24px; }

/* Detail hero (old Tera) */
.detail-hero {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 40px 48px; margin-bottom: 32px;
    display: grid; grid-template-columns: 140px 1fr 220px;
    gap: 40px; align-items: center;
}
.detail-hero-top { display: flex; align-items: flex-start; gap: 20px; margin-bottom: 24px; }
.detail-logo-img {
    width: 140px; height: 140px; border-radius: 32px; object-fit: contain;
    background: #fff; box-shadow: var(--sculpt-input); padding: 12px; flex-shrink: 0;
}
.detail-logo {
    width: 140px; height: 140px; border-radius: 32px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; font-weight: 900; color: #fff; flex-shrink: 0;
    box-shadow: var(--sculpt-input);
}
.detail-title-block h1 { margin-bottom: 8px; }
.detail-rating {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 15px; color: var(--warning); font-weight: 700;
}
.detail-rating .star { font-size: 16px; }
.rating-label { color: var(--text-muted); font-weight: 500; font-size: 13px; margin-left: 4px; }

.detail-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 24px;
}
.stat-item {
    display: flex; align-items: flex-start; gap: 12px; padding: 16px;
    background: var(--bg-body); border-radius: var(--radius-md);
    box-shadow: var(--sculpt-input);
}
.stat-label {
    font-size: 11px; color: var(--text-muted); text-transform: uppercase;
    letter-spacing: 0.5px; margin-bottom: 2px; font-weight: 800;
}
.stat-value { font-size: 16px; font-weight: 900; color: var(--text-dark); }

.detail-cta { text-align: center; padding-top: 4px; }

/* Offer content grid */
.offer-content-grid {
    display: grid; grid-template-columns: 1fr 350px; gap: 40px; margin-bottom: 60px;
}

/* License badge */
.license-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; background: var(--success-bg);
    border-radius: var(--radius-pill); font-size: 14px; font-weight: 700;
    color: var(--success-dark); margin-bottom: 20px;
}

/* Description block */
.description-block { margin-bottom: 32px; }
.description-block h2 { font-size: 24px; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.5px; }
.description-block p { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 12px; }

/* About block (Tera) */
.detail-about {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 36px; margin-bottom: 32px;
}
.detail-about h2 { font-size: 22px; font-weight: 900; margin-bottom: 16px; letter-spacing: -0.5px; }
.detail-about h3 { font-size: 18px; font-weight: 800; margin: 20px 0 12px; color: var(--text-dark); }
.detail-about p { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

.offer-description { color: var(--text-muted); font-size: 15px; line-height: 1.8; white-space: pre-line; }

/* Requirements grid */
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.req-item {
    display: flex; align-items: center; gap: 10px; padding: 14px 16px;
    background: var(--bg-body); border-radius: var(--radius-md);
    font-size: 14px; color: var(--text-dark); font-weight: 600;
    box-shadow: var(--sculpt-input);
}

/* ==========================================================================
   EXPERT BLOCK
   ========================================================================== */
.expert-block {
    padding: 36px; margin-bottom: 40px;
    background: linear-gradient(145deg, #ffffff, #f4f7fb);
    border: 2px solid rgba(0, 82, 255, 0.08);
}
.expert-header { display: flex; align-items: center; gap: 20px; margin-bottom: 24px; }
.expert-avatar {
    width: 64px; height: 64px; border-radius: 50%; background: var(--bg-card);
    box-shadow: var(--sculpt-shadow); display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 900; color: var(--primary); border: 3px solid var(--primary);
    flex-shrink: 0; overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-name { font-size: 20px; font-weight: 900; color: var(--text-dark); margin-bottom: 4px; }
.expert-role { font-size: 14px; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.expert-text {
    font-size: 16px; line-height: 1.7; color: var(--text-dark); font-style: italic;
    border-left: 4px solid var(--primary); padding-left: 24px; margin-bottom: 28px;
    background: rgba(0, 82, 255, 0.03); padding-top: 16px; padding-bottom: 16px;
    border-radius: 0 14px 14px 0;
}

/* Expert card (listing) */
.expert-card {
    display: flex; gap: 20px; padding: 28px 32px;
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
}
.expert-body { min-width: 0; }
.expert-title { font-size: 13px; color: var(--text-muted); font-weight: 600; margin-bottom: 12px; }
.expert-quote {
    font-size: 15px; color: var(--text-dark); line-height: 1.7;
    border-left: 4px solid var(--primary); padding-left: 20px;
    margin: 0; font-style: italic;
}

/* ==========================================================================
   PROS & CONS
   ========================================================================== */
.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.pros-cons h5 { font-size: 16px; font-weight: 800; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.pros-cons ul { list-style: none; }
.pros-cons li { font-size: 15px; color: var(--text-muted); margin-bottom: 12px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.4; }
.icon-plus { color: var(--success); flex-shrink: 0; }
.icon-minus { color: var(--error); flex-shrink: 0; }

.pros-col, .cons-col { padding: 24px; border-radius: var(--radius-lg); }
.pros-col { background: var(--success-bg); }
.cons-col { background: var(--error-bg-light); }
.pros-title, .cons-title { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 800; margin: 0 0 16px; }
.pros-title { color: var(--success-dark); }
.cons-title { color: var(--error-dark); }
.pros-list, .cons-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.pros-list li, .cons-list li { font-size: 14px; line-height: 1.5; padding-left: 20px; position: relative; }
.pros-list li::before { content: "+"; position: absolute; left: 0; color: var(--success); font-weight: 800; }
.cons-list li::before { content: "\2212"; position: absolute; left: 0; color: var(--error); font-weight: 800; }
.pros-list li { color: var(--success-dark); }
.cons-list li { color: var(--error-dark); }

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.reviews-section h3 { font-size: 28px; font-weight: 900; margin-bottom: 32px; letter-spacing: -0.5px; }
.reviews-list { display: flex; flex-direction: column; gap: 16px; }

.review-item { padding: 28px 32px; margin-bottom: 16px; }
.review-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.reviewer-info { display: flex; align-items: center; gap: 16px; }
.reviewer-avatar {
    width: 48px; height: 48px; border-radius: 50%; background: var(--bg-body);
    box-shadow: var(--sculpt-input); display: flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 16px; color: var(--primary);
}
.reviewer-name { font-weight: 900; font-size: 17px; margin-bottom: 4px; }
.review-date { font-size: 13px; color: var(--text-muted); font-weight: 500; }
.review-text { font-size: 15px; line-height: 1.7; color: var(--text-dark); margin-bottom: 8px; }

/* Review card (Tera) */
.review-card {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5); padding: 24px 28px;
}
.review-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.review-author { display: flex; align-items: center; gap: 14px; }
.review-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bg-body); box-shadow: var(--sculpt-input);
    color: var(--primary); display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
}
.review-avatar-img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.review-name { font-weight: 800; font-size: 15px; color: var(--text-dark); }
.review-city { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.review-stars { display: flex; gap: 2px; }
.star-filled { color: var(--warning); font-size: 16px; }
.star-empty { color: var(--star-empty); font-size: 16px; }
.review-pros { font-size: 13px; color: var(--success); margin-bottom: 4px; font-weight: 600; }
.review-cons { font-size: 13px; color: var(--error); font-weight: 600; }

/* User review card */
.user-review-card { position: relative; border-left: 4px solid var(--primary); }
.user-review-badge { color: var(--primary); font-weight: 700; font-size: 12px; }
.btn-delete-review {
    position: absolute; top: 12px; right: 12px;
    background: none; border: none; color: var(--text-muted);
    font-size: 20px; cursor: pointer; padding: 6px 10px;
    border-radius: var(--radius-pill); line-height: 1; transition: var(--transition);
}
.btn-delete-review:hover { color: var(--error); background: var(--error-bg-light); }

/* Review form */
.review-form-card {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5); padding: 28px 32px;
}
.review-form { display: flex; flex-direction: column; gap: 16px; }
.rating-select { display: flex; align-items: center; gap: 12px; }
.rating-label-text { font-size: 14px; color: var(--text-muted); font-weight: 600; }
.rating-stars-input { display: flex; gap: 4px; }
.star-input {
    font-size: 28px; color: var(--star-empty); cursor: pointer;
    transition: color 0.15s; user-select: none;
}
.star-input.active { color: var(--warning); }
.star-input:hover { color: var(--star-hover); }
.review-form textarea {
    width: 100%; padding: 14px 18px; border: none;
    border-radius: var(--radius-lg); font-family: inherit; font-size: 14px;
    line-height: 1.6; resize: vertical; min-height: 100px; color: var(--text-dark);
    background: var(--bg-body); box-shadow: var(--sculpt-input);
}
.review-form textarea:focus { outline: none; box-shadow: var(--sculpt-input), 0 0 0 3px rgba(0,82,255,0.1); }
.review-form-footer { display: flex; align-items: center; justify-content: space-between; }
.review-char-count { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.btn-submit-review {
    background: var(--primary); color: #fff; font-size: 14px; font-weight: 700;
    padding: 12px 28px; border: none; border-radius: var(--radius-pill); cursor: pointer;
    transition: var(--transition); box-shadow: 0 6px 16px rgba(0,82,255,0.2);
}
.btn-submit-review:hover {
    background: var(--primary-dark); box-shadow: 0 10px 24px rgba(0,82,255,0.3);
    transform: translateY(-1px);
}
.review-message { padding: 12px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 600; }
.review-message.success { background: var(--success-bg); color: var(--success-dark); }
.review-message.error { background: var(--error-bg-light); color: var(--error-dark); }

/* Review login prompt */
.review-login-prompt {
    margin-top: 32px; padding: 28px;
    background: var(--bg-body); border-radius: var(--radius-xl);
    text-align: center; box-shadow: var(--sculpt-input);
}
.review-login-prompt p { font-size: 15px; color: var(--text-muted); margin-bottom: 16px; font-weight: 600; }
.auth-buttons-inline { display: flex; gap: 10px; justify-content: center; }
.auth-buttons-inline .btn-auth { padding: 10px 24px; font-size: 14px; }

/* ==========================================================================
   SIDEBAR (OFFER)
   ========================================================================== */
.offer-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-card { padding: 28px 32px; }
.sidebar-card h4 { font-size: 17px; font-weight: 900; margin-bottom: 20px; }
.condition-row {
    display: flex; justify-content: space-between; margin-bottom: 16px;
    font-size: 14px; border-bottom: 1px dashed rgba(0,0,0,0.06); padding-bottom: 8px;
}
.condition-label { color: var(--text-muted); font-weight: 500; }
.condition-val { font-weight: 800; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section { margin-top: 0; margin-bottom: 40px; }
.faq-section h3 { font-size: 24px; font-weight: 900; margin-bottom: 20px; letter-spacing: -0.5px; }
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    background: var(--bg-card); border-radius: var(--radius-lg); overflow: hidden;
    box-shadow: var(--sculpt-shadow); border: 1px solid rgba(255,255,255,0.5); margin-bottom: 8px;
    transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(0,82,255,0.15); }
.faq-q {
    padding: 16px 22px; font-weight: 700; font-size: 15px; cursor: pointer;
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
    color: var(--text-dark); transition: color 0.15s;
}
.faq-q:hover { color: var(--primary); }
.faq-q::-webkit-details-marker { display: none; }
.faq-chevron { flex-shrink: 0; color: var(--text-muted); transition: transform 0.2s; }
.faq-item[open] .faq-chevron { transform: rotate(180deg); color: var(--primary); }
.faq-a { padding: 0 22px 16px; font-size: 14px; color: var(--text-muted); line-height: 1.7; }

/* ==========================================================================
   STEPS
   ========================================================================== */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step-card {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 28px 24px; text-align: center; transition: var(--transition);
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.step-num {
    width: 44px; height: 44px; background: var(--primary); color: #fff;
    border-radius: var(--radius-md); display: inline-flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 16px; margin-bottom: 16px;
    box-shadow: var(--shadow-primary-sm);
}
.step-body {}
.step-title { font-weight: 800; font-size: 15px; margin-bottom: 6px; color: var(--text-dark); }
.step-text { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ==========================================================================
   GUIDE TEXT
   ========================================================================== */
.guide-text {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 28px 32px; font-size: 15px; color: var(--text-muted);
    line-height: 1.8; white-space: pre-line;
}

/* ==========================================================================
   RELATED
   ========================================================================== */
.related-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.related-chip {
    display: inline-block; padding: 10px 20px;
    background: var(--bg-card); border-radius: var(--radius-pill);
    box-shadow: var(--sculpt-shadow); border: 1px solid rgba(255,255,255,0.5);
    font-size: 13px; color: var(--text-dark); font-weight: 600; transition: var(--transition);
}
.related-chip:hover {
    background: var(--primary-bg); color: var(--primary); text-decoration: none;
    box-shadow: 0 10px 24px rgba(0, 82, 255, 0.08);
}

/* ==========================================================================
   DISCLAIMER
   ========================================================================== */
.disclaimer {
    display: flex; gap: 12px; margin-top: 32px; padding: 20px 24px;
    background: var(--bg-body); border-radius: var(--radius-lg);
    box-shadow: var(--sculpt-input); font-size: 12px; color: var(--text-muted); line-height: 1.6;
}

/* ==========================================================================
   AUTHOR BLOCK
   ========================================================================== */
.author-block {
    background: var(--primary-bg); border-radius: var(--radius-xl);
    padding: 20px 24px; margin-bottom: 24px;
}
.author-header {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--primary); margin-bottom: 12px;
}
.author-info { display: flex; align-items: center; gap: 12px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%; background: var(--primary);
    color: #fff; display: flex; align-items: center; justify-content: center;
    font-size: 15px; font-weight: 800; flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 82, 255, 0.2);
}
.author-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.author-name { font-weight: 800; font-size: 15px; color: var(--text-dark); }
.author-role { font-size: 12px; color: var(--text-muted); font-weight: 500; }

/* ==========================================================================
   EMPTY STATE
   ========================================================================== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state p { margin: 16px 0; font-size: 16px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    padding: 64px 0; border-top: 1px solid var(--border-subtle);
    font-size: 13px; color: var(--text-muted);
}
.footer-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px; margin-bottom: 40px;
}
.footer-col h5, .footer-col h4 { font-size: 16px; font-weight: 900; color: var(--text-dark); margin-bottom: 16px; }
.footer-col p { margin-bottom: 12px; cursor: pointer; transition: var(--transition); font-size: 14px; }
.footer-col p:hover { color: var(--primary); }
.footer-col a { display: block; color: var(--text-muted); font-size: 14px; padding: 3px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--border-subtle); padding-top: 20px; color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.footer-brand { color: var(--text-muted); line-height: 1.6; }
.footer-brand .logo { margin-bottom: 12px; font-size: 20px; }

/* ==========================================================================
   TOAST
   ========================================================================== */
.live-toast {
    position: fixed; bottom: 24px; left: 24px;
    background: var(--bg-card); border-radius: var(--radius-lg);
    padding: 14px 20px; box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    display: flex; align-items: center; gap: 12px; z-index: 2000;
    animation: toastIn 0.4s ease-out; font-size: 14px; max-width: 340px;
    border-left: 4px solid var(--success);
}
.live-toast.hiding { animation: toastOut 0.3s ease-in forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(20px); } }
.toast-dot { width: 10px; height: 10px; background: var(--success); border-radius: 50%; flex-shrink: 0; animation: pulse 2s infinite; }
.toast-text { font-weight: 600; color: var(--text-dark); }
.toast-text span { color: var(--text-muted); font-weight: 400; display: block; font-size: 12px; }

/* ==========================================================================
   COOKIE BANNER
   ========================================================================== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 3000;
    background: var(--bg-card); padding: 20px 32px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.08);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    font-size: 14px; color: var(--text-muted); line-height: 1.5;
}
.cookie-btn {
    background: var(--primary); color: #fff; border: none; border-radius: var(--radius-pill);
    padding: 10px 24px; font-size: 14px; font-weight: 700; cursor: pointer;
    transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.cookie-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }
.cookie-btn-reject {
    background: transparent; color: var(--text-muted); border: 2px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-pill); padding: 10px 24px; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: var(--transition); white-space: nowrap; flex-shrink: 0;
}
.cookie-btn-reject:hover { border-color: var(--primary); color: var(--primary); }

/* ==========================================================================
   STATIC PAGES
   ========================================================================== */
.static-page {
    background: var(--bg-card); border-radius: var(--radius-xl);
    box-shadow: var(--sculpt-shadow), var(--sculpt-inner);
    border: 1px solid rgba(255,255,255,0.5);
    padding: 40px 44px; max-width: 800px; margin: 0 auto;
}
.static-page h1 { margin-bottom: 24px; font-size: 28px; font-weight: 900; letter-spacing: -0.5px; }
.static-content { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.static-content h2 { font-size: 22px; font-weight: 900; color: var(--text-dark); margin: 32px 0 16px; letter-spacing: -0.3px; }
.static-content h3 { font-size: 18px; font-weight: 800; color: var(--text-dark); margin: 24px 0 10px; }
.static-content p { margin-bottom: 14px; }
.static-content ul, .static-content ol { margin: 12px 0; padding-left: 24px; }
.static-content li { margin-bottom: 6px; }
.static-content a { color: var(--primary); }
.static-content strong { font-weight: 700; color: var(--text-dark); }

/* ==========================================================================
   HEADINGS (generic)
   ========================================================================== */
.main h1 { font-size: 36px; font-weight: 900; margin-bottom: 16px; line-height: 1.15; color: var(--text-dark); letter-spacing: -1px; }
.main h2 { font-size: 24px; font-weight: 900; color: var(--text-dark); letter-spacing: -0.5px; }

/* ==========================================================================
   АДАПТИВНОСТЬ
   ========================================================================== */

/* --- 1200px --- */
@media (max-width: 1200px) {
    .calc-panel { grid-template-columns: 1fr 1fr; }
    .calc-panel .btn-main { grid-column: 1 / -1; width: 100%; }
    .loan-card { grid-template-columns: 64px 1.5fr 1fr 1fr; }
    .loan-card .btn-main { grid-column: 1 / -1; width: 100%; }
    .offer-card { grid-template-columns: 64px 1.5fr 1fr 1fr; }
    .offer-card .btn-main,
    .offer-card .btn-cta { grid-column: 1 / -1; width: 100%; }
    .offer-content-grid { grid-template-columns: 1fr; }
    .offer-hero { grid-template-columns: 120px 1fr 200px; gap: 32px; }
    .offer-logo-big { width: 120px; height: 120px; border-radius: 28px; }
    .detail-hero { grid-template-columns: 120px 1fr 200px; gap: 32px; padding: 32px; }
    .detail-logo-img, .detail-logo { width: 120px; height: 120px; border-radius: 28px; }
}

/* --- 900px --- */
@media (max-width: 900px) {
    header { padding: 0 20px; height: 64px; }
    .logo-img { height: 40px; }
    .nav-desktop { display: none; }
    aside { display: none; }
    main { padding: 24px; }
    .hero h1 { font-size: 34px; }
    .main h1 { font-size: 28px; }
    .calc-panel { grid-template-columns: 1fr; padding: 24px; }
    .loan-card {
        grid-template-columns: 1fr 1fr; text-align: center; padding: 24px; gap: 20px;
    }
    .mfo-logo-wrap { margin: 0 auto; }
    .mfo-meta { grid-column: 1 / -1; }
    .loan-card .btn-main { width: 100%; }
    .offer-card {
        grid-template-columns: 1fr 1fr; text-align: center; padding: 24px; gap: 20px;
    }
    .offer-card .offer-logo-img,
    .offer-card .offer-logo-fallback { margin: 0 auto; }
    .offer-card .offer-info { grid-column: 1 / -1; }
    .offer-card .offer-cta { grid-column: 1 / -1; grid-row: auto; }
    .offer-hero { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .offer-logo-big { margin: 0 auto; }
    .offer-stats-grid { grid-template-columns: 1fr; gap: 16px; }
    .detail-hero { grid-template-columns: 1fr; text-align: center; padding: 28px 24px; }
    .detail-logo, .detail-logo-img { margin: 0 auto; width: 100px; height: 100px; }
    .detail-stats { grid-template-columns: 1fr 1fr; }
    .pros-cons { grid-template-columns: 1fr; }
    .expert-block { padding: 24px; }
    .expert-header { flex-direction: column; text-align: center; }
    .expert-card { flex-direction: column; gap: 14px; padding: 20px; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .req-grid { grid-template-columns: 1fr; }
    .top5-header { flex-direction: column; gap: 4px; }
    .risks-block { flex-direction: column; gap: 12px; }
    .filters-bar { gap: 10px; padding: 16px 18px; }
    .filter-select { font-size: 13px; }
    .static-page { padding: 24px 20px; }
    .cookie-banner { flex-direction: column; text-align: center; padding: 20px; gap: 12px; }
}

/* --- 600px --- */
@media (max-width: 600px) {
    .hero h1 { font-size: 28px; }
    .steps-grid { grid-template-columns: 1fr; }
    .trust-badges { gap: 8px; }
    .trust-badge { padding: 6px 12px; font-size: 12px; }
    .detail-stats { grid-template-columns: 1fr; }
    .btn-cta-hero { padding: 14px 28px; font-size: 15px; }
    .rating-select { flex-direction: column; align-items: flex-start; gap: 8px; }
    .review-form-footer { flex-direction: column; gap: 10px; align-items: stretch; }
    .btn-submit-review { text-align: center; }
    .offer-hero { padding: 24px 20px; }
    .container { padding: 0 4px; }
    .filters-bar { flex-direction: column; }
    .filter-group { width: 100%; }
    .filter-select { width: 100%; }
    .user-name { max-width: 80px; }
    .auth-buttons-inline { flex-direction: column; }
}

/* --- License badges & ad labels on listing cards --- */
.card-footer-row {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}
.badge-license {
    font-size: 11px;
    font-weight: 600;
    color: var(--success-dark);
    background: var(--success-bg);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.badge-no-license {
    font-size: 11px;
    font-weight: 600;
    color: var(--error-dark);
    background: var(--error-bg-light);
    padding: 3px 10px;
    border-radius: var(--radius-pill);
}
.ad-label {
    font-size: 10px;
    color: var(--text-muted);
    line-height: 1.3;
}

/* ==========================================================================
   AFFILIATE DISCLOSURE
   ========================================================================== */
.affiliate-disclosure {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 14px 20px; margin-bottom: 20px;
    background: var(--primary-bg, #EFF6FF); border-radius: var(--radius-lg);
    font-size: 13px; color: var(--text-muted); line-height: 1.6;
    border-left: 3px solid var(--primary);
}
.affiliate-disclosure svg { flex-shrink: 0; margin-top: 2px; color: var(--primary); }

/* ==========================================================================
   BADGE NO LICENSE BIG (offer page)
   ========================================================================== */
.badge-no-license-big {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700;
    color: #DC2626; background: #FEF2F2;
    padding: 6px 14px; border-radius: var(--radius-pill);
}
.badge-no-license-big svg { stroke: #DC2626; }

/* ==========================================================================
   VERIFY BLOCK (sidebar)
   ========================================================================== */
.verify-block { padding: 24px !important; background: var(--bg-body) !important; }
.verify-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.verify-header h4 { font-size: 16px; font-weight: 800; color: var(--text-dark); margin: 0; }
.verify-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; }
.verify-license {
    background: var(--success-bg, #F0FDF4); border-radius: var(--radius-md);
    padding: 10px 14px; margin-bottom: 12px;
}
.verify-license-label { font-size: 11px; color: var(--text-muted); display: block; }
.verify-license-number { font-size: 14px; font-weight: 800; color: var(--success-dark, #15803D); font-family: monospace; }
.verify-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 14px; font-weight: 700; color: var(--primary);
    padding: 10px 0; transition: var(--transition);
}
.verify-link:hover { text-decoration: underline; }
.verify-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ==========================================================================
   BORROWER RIGHTS
   ========================================================================== */
.borrower-rights { padding: 28px 32px !important; margin-top: 24px; border-left: 4px solid var(--warning, #F59E0B) !important; }
.borrower-rights-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 20px;
}
.borrower-rights-header h3 { font-size: 18px; font-weight: 900; color: var(--text-dark); margin: 0; }
.borrower-rights-list { display: flex; flex-direction: column; gap: 18px; }
.borrower-rights-item { display: flex; gap: 14px; align-items: flex-start; }
.borrower-rights-num {
    width: 32px; height: 32px; flex-shrink: 0;
    background: var(--warning-bg, #FFFBEB); color: var(--warning-dark, #D97706);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 900;
}
.borrower-rights-item strong { display: block; font-size: 15px; font-weight: 800; color: var(--text-dark); margin-bottom: 4px; }
.borrower-rights-item p { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.borrower-phone { font-weight: 800; color: var(--primary); white-space: nowrap; }

/* ==========================================================================
   FILTERS BAR
   ========================================================================== */
.filters-bar {
    display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end;
    padding: 20px 24px !important; margin-bottom: 20px;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 140px; }
.filter-label { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }
.filter-select {
    padding: 10px 14px; border: none; border-radius: var(--radius-md);
    background: var(--bg-body); font-size: 14px; font-weight: 600; color: var(--text-dark);
    box-shadow: var(--sculpt-input); cursor: pointer; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center;
    padding-right: 32px;
}
.filter-select:focus { outline: 2px solid var(--primary); outline-offset: -1px; }
.filter-reset {
    padding: 10px 20px; border: 2px solid var(--border-subtle); border-radius: var(--radius-md);
    background: transparent; color: var(--text-muted); font-size: 13px; font-weight: 700;
    cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.filter-reset:hover { border-color: var(--primary); color: var(--primary); }
.offers-count-badge {
    font-size: 14px; font-weight: 700; color: var(--primary);
    background: var(--primary-bg, #EFF6FF); padding: 2px 10px;
    border-radius: var(--radius-pill); margin-left: 8px;
}

/* ==========================================================================
   COMPARE FEATURE
   ========================================================================== */
.compare-checkbox {
    position: absolute; top: 10px; right: 10px; z-index: 5;
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; font-weight: 600; color: var(--text-muted);
    cursor: pointer; padding: 4px 10px; border-radius: var(--radius-pill);
    background: var(--bg-body); transition: var(--transition);
    opacity: 0;
}
.loan-card { position: relative; }
.loan-card:hover .compare-checkbox { opacity: 1; }
.compare-checkbox:hover { background: var(--primary-bg); color: var(--primary); }
.compare-check { display: none; }
.compare-selected { outline: 2px solid var(--primary); outline-offset: -2px; }
.compare-selected .compare-checkbox { opacity: 1; background: var(--primary); color: #fff; }

.compare-bar {
    position: sticky; bottom: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 14px 24px;
    background: var(--bg-card); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -8px 30px rgba(0,0,0,0.1);
    animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.compare-bar-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }
.compare-count { font-size: 14px; color: var(--text-muted); white-space: nowrap; }
.compare-names { font-size: 14px; font-weight: 700; color: var(--text-dark); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-bar-right { display: flex; gap: 10px; flex-shrink: 0; }
.btn-compare { padding: 10px 24px !important; font-size: 14px !important; }
.compare-clear {
    padding: 10px 16px; border: none; background: transparent;
    color: var(--text-muted); font-size: 13px; font-weight: 600; cursor: pointer;
}
.compare-clear:hover { color: var(--error); }

/* Compare modal */
.compare-modal {
    position: fixed; inset: 0; z-index: 5000;
    background: rgba(0,0,0,0.5); display: flex; align-items: center; justify-content: center;
    padding: 20px; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.compare-modal-content { max-width: 700px; width: 100%; max-height: 80vh; overflow-y: auto; padding: 32px !important; }
.compare-modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.compare-modal-header h3 { font-size: 22px; font-weight: 900; }
.compare-modal-close {
    width: 36px; height: 36px; border: none; background: var(--bg-body);
    border-radius: 50%; font-size: 20px; cursor: pointer; color: var(--text-muted);
    display: flex; align-items: center; justify-content: center;
}
.compare-modal-close:hover { background: var(--error-bg-light, #FEF2F2); color: var(--error); }
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th {
    padding: 12px 16px; font-size: 15px; font-weight: 800; color: var(--primary);
    border-bottom: 2px solid var(--border-subtle); text-align: center;
}
.compare-table th a { color: var(--primary); }
.compare-table td { padding: 12px 16px; text-align: center; font-size: 14px; border-bottom: 1px solid var(--border-subtle); }
.compare-label { text-align: left !important; font-weight: 700; color: var(--text-muted); }
.compare-yes { color: var(--success-dark, #15803D); font-weight: 700; }
.compare-no { color: var(--error-dark, #DC2626); font-weight: 700; }

/* ==========================================================================
   RESPONSIVE — new components
   ========================================================================== */
@media (max-width: 900px) {
    .filters-bar { padding: 16px !important; }
    .compare-bar { flex-direction: column; gap: 10px; padding: 12px 16px; }
    .compare-names { display: none; }
    .borrower-rights { padding: 20px !important; }
    .borrower-rights-item { flex-direction: column; gap: 8px; }
    .affiliate-disclosure { font-size: 12px; padding: 12px 16px; }
}
@media (max-width: 600px) {
    .filters-bar { flex-direction: column; }
    .filter-group { min-width: 100%; }
    .compare-modal-content { padding: 20px !important; }
    .compare-table th, .compare-table td { padding: 8px 10px; font-size: 13px; }
}

/* ==========================================================================
   BLOG
   ========================================================================== */
.blog-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px; margin-bottom: 32px;
}
.blog-grid--compact { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.blog-card {
    padding: 28px 28px 24px !important; display: flex; flex-direction: column; gap: 12px;
    transition: var(--transition); cursor: pointer;
}
.blog-card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,0.08); text-decoration: none; }
.blog-card-title { font-size: 19px; font-weight: 900; color: var(--text-dark); line-height: 1.3; }
.blog-card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.blog-card-meta { display: flex; gap: 16px; font-size: 12px; color: var(--text-muted); margin-top: auto; }
.blog-category {
    display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.5px; padding: 4px 12px; border-radius: var(--radius-pill);
}
.blog-category--risks { background: #FEF2F2; color: #DC2626; }
.blog-category--rights { background: #FFFBEB; color: #D97706; }
.blog-category--guide { background: #EFF6FF; color: #2563EB; }
.blog-category--news { background: #F0FDF4; color: #15803D; }
.blog-category--general { background: var(--bg-body); color: var(--text-muted); }

/* ==========================================================================
   ARTICLE
   ========================================================================== */
.article-page { max-width: 800px; }
.article-header { margin-bottom: 32px; }
.article-header h1 { font-size: 32px; font-weight: 900; line-height: 1.2; letter-spacing: -0.5px; margin: 12px 0; }
.article-lead { font-size: 18px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.article-meta { display: flex; gap: 16px; font-size: 13px; color: var(--text-muted); flex-wrap: wrap; }
.article-author { font-weight: 700; color: var(--text-dark); }
.article-toc { padding: 24px 28px !important; margin-bottom: 28px; }
.article-toc-title { font-size: 14px; font-weight: 800; color: var(--text-dark); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.5px; }
.article-toc-list { padding-left: 20px; }
.article-toc-list li { margin-bottom: 8px; }
.article-toc-list a { font-size: 14px; color: var(--primary); font-weight: 600; }
.article-toc-list a:hover { text-decoration: underline; }
.article-body { margin-bottom: 40px; }
.article-body h2 { scroll-margin-top: 100px; }
.article-body .highlight-box {
    background: var(--primary-bg, #EFF6FF); border-left: 4px solid var(--primary);
    padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0; font-size: 15px; line-height: 1.7;
}
.article-body .warning-box {
    background: #FEF2F2; border-left: 4px solid #EF4444;
    padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0; font-size: 15px; line-height: 1.7;
}
.article-body .tip-box {
    background: #F0FDF4; border-left: 4px solid #10B981;
    padding: 20px 24px; border-radius: 0 var(--radius-md) var(--radius-md) 0;
    margin: 20px 0; font-size: 15px; line-height: 1.7;
}
/* Article body typography */
.article-body h2 { font-size: 22px; font-weight: 900; margin: 32px 0 14px; color: var(--text-dark); }
.article-body h3 { font-size: 18px; font-weight: 800; margin: 24px 0 10px; color: var(--text-dark); }
.article-body p { font-size: 15px; line-height: 1.75; color: var(--text-dark); margin-bottom: 14px; }
.article-body ul, .article-body ol { font-size: 15px; line-height: 1.75; margin-bottom: 14px; padding-left: 24px; color: var(--text-dark); }
.article-body li { margin-bottom: 6px; }
.article-body a { color: var(--primary); font-weight: 600; }
.article-body a:hover { text-decoration: underline; }
.article-body strong { font-weight: 800; }
.article-table {
    width: 100%; border-collapse: collapse; margin: 20px 0;
    font-size: 14px; line-height: 1.5;
}
.article-table thead th {
    padding: 12px 16px; text-align: left; font-weight: 800; font-size: 13px;
    color: var(--text-dark); background: var(--bg-body);
    border-bottom: 2px solid var(--border-subtle);
}
.article-table td {
    padding: 12px 16px; border-bottom: 1px solid var(--border-subtle);
    color: var(--text-dark);
}
.article-table tbody tr:hover { background: var(--bg-body); }
@media (max-width: 600px) {
    .blog-grid { grid-template-columns: 1fr; }
    .article-header h1 { font-size: 26px; }
    .article-lead { font-size: 16px; }
    .article-table { font-size: 13px; }
    .article-table thead th, .article-table td { padding: 8px 10px; }
}
