/* ============================================
   ТЕМА: FINANCE & BANKING
   Полные стили (не зависят от дефолтных)
   ============================================ */

/* ===== БАЗОВЫЕ СТИЛИ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-y: scroll;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1e293b;
    line-height: 1.5;
}

/* ===== КОНТЕЙНЕР ===== */
.catalog-page {
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 24px;
    box-sizing: border-box;
}

/* ===== ХЛЕБНЫЕ КРОШКИ ===== */
.breadcrumbs {
    margin-bottom: 24px;
    font-size: 14px;
    color: #64748b;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

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

/* ===== ГЕРОЙ-СЕКЦИЯ ===== */
.catalog-hero {
    background: linear-gradient(135deg, #0052cc 0%, #003d99 100%);
    border-radius: 24px;
    margin-bottom: 40px;
    padding: 48px 40px;
    color: white;
}

.catalog-hero .container {
    max-width: 100%;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.hero-image {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    border-radius: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    flex-shrink: 0;
}

.hero-info {
    flex: 1;
}

.hero-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.hero-description {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-stats span {
    background: rgba(255,255,255,0.15);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ===== КАРТОЧКИ ПРОДУКТОВ ===== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 50px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
    border-color: #0052cc;
}

.partner-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background: #00a86b;
    color: white;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
}

.product-bank {
    font-size: 12px;
    color: #0052cc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.product-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 16px;
    line-height: 1.4;
}

.interest-rate {
    font-size: 2rem;
    font-weight: 700;
    color: #0052cc;
    margin-bottom: 8px;
}

.interest-rate small {
    font-size: 0.85rem;
    font-weight: 400;
    color: #64748b;
}

.product-amount {
    font-size: 1rem;
    font-weight: 600;
    color: #00a86b;
    margin-bottom: 4px;
}

.product-term {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 20px;
}

.product-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.product-btn {
    flex: 1;
    background: #0052cc;
    color: white;
    padding: 12px;
    border-radius: 12px;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.2s;
    display: inline-block;
}

.product-btn:hover {
    background: #003d99;
    transform: translateY(-2px);
}

/* ===== КАТЕГОРИИ ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.category-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
    border-color: #0052cc;
}

.category-icon {
    width: 56px;
    height: 56px;
    background: #e6f0ff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #0052cc;
}

.category-info {
    flex: 1;
}

.category-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.category-description {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.category-stats {
    font-size: 0.75rem;
    color: #00a86b;
    font-weight: 600;
}

.category-arrow {
    color: #cbd5e1;
    font-size: 1.2rem;
}

/* ===== БЛОГ ===== */
.blog-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

.posts-grid {
    display: grid;
    gap: 24px;
}

.post-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -12px rgba(0,0,0,0.1);
}

.post-date {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.post-title a {
    color: #1e293b;
    text-decoration: none;
}

.post-title a:hover {
    color: #0052cc;
}

.post-excerpt {
    color: #475569;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 16px;
}

.read-more {
    color: #0052cc;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.85rem;
}

.read-more:hover {
    text-decoration: underline;
}

.blog-sidebar {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 24px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 30px;
}

.sidebar-widget h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    margin-bottom: 12px;
}

.sidebar-widget a {
    color: #475569;
    text-decoration: none;
}

.sidebar-widget a:hover {
    color: #0052cc;
}

/* ===== КАЛЬКУЛЯТОР ===== */
.loan-calculator {
    background: white;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e2e8f0;
    margin: 30px 0;
}

.loan-calculator h3 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

.calculator-field {
    margin-bottom: 24px;
}

.calculator-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1e293b;
}

.calculator-field input[type="range"] {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: #e2e8f0;
    border-radius: 3px;
}

.calculator-field input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #0052cc;
    border-radius: 50%;
    cursor: pointer;
}

.calculator-value {
    margin-top: 8px;
    font-weight: 600;
    color: #1e293b;
}

.calculator-result {
    background: #f0f9ff;
    padding: 24px;
    border-radius: 16px;
    text-align: center;
    margin-top: 24px;
}

.calculator-result .result-value {
    font-size: 2rem;
    font-weight: 700;
    color: #0052cc;
}

/* ===== СРАВНЕНИЕ ===== */
.comparison-table-wrapper {
    overflow-x: auto;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table th {
    background: #f8fafc;
    font-weight: 600;
    color: #1e293b;
}

.comparison-table .feature-name {
    text-align: left;
    font-weight: 600;
    background: #f8fafc;
}

/* ===== ПУСТОЕ СОСТОЯНИЕ ===== */
.empty-state {
    text-align: center;
    padding: 60px 40px;
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
}

.empty-state i {
    font-size: 64px;
    color: #cbd5e1;
    margin-bottom: 20px;
    display: block;
}

.empty-state h3 {
    font-size: 1.3rem;
    color: #475569;
    margin-bottom: 10px;
}

.empty-state p {
    color: #94a3b8;
}

/* ===== ФИЛЬТРЫ ===== */
.catalog-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 32px;
}

.filter-sidebar {
    background: white;
    border-radius: 20px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 24px;
}

.filter-sidebar h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.filter-group {
    margin-bottom: 24px;
}

.filter-group h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 12px;
}

.filter-group input[type="text"],
.filter-group input[type="number"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.9rem;
}

.reset-filters {
    width: 100%;
    padding: 12px;
    background: #f1f5f9;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 16px;
    color: #475569;
}

.reset-filters:hover {
    background: #e2e8f0;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .catalog-container {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
        margin-bottom: 24px;
    }
}

@media (max-width: 768px) {
    .catalog-page {
        padding: 16px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 1.6rem;
    }
    
    .blog-container {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

/* Кнопка сравнения */
.compare-btn {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    color: #475569;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.compare-btn:hover {
    background: #0052cc;
    border-color: #0052cc;
    color: white;
}

.compare-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f1f5f9;
    padding: 6px 12px;
    border-radius: 30px;
    color: #475569;
    text-decoration: none;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.compare-link:hover {
    background: #e2e8f0;
    color: #0052cc;
}

.compare-count {
    background: #ef4444;
    color: white;
    border-radius: 20px;
    padding: 0 6px;
    font-size: 0.7rem;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}