/* ==========================================
   RKO Sravni - Main Stylesheet
   Design inspired by rko-group.ru style
   Colors: Dark theme with purple accent (#7a3df5)
   ========================================== */

/* === CSS Variables === */
:root {
    /* Primary Colors */
    --primary: #7a3df5;
    --primary-light: #9b6dff;
    --primary-dark: #5a1fd6;
    --primary-glow: rgba(122, 61, 245, 0.4);
    
    /* Background Colors */
    --bg-dark: #0a0a0f;
    --bg-card: #12121a;
    --bg-card-hover: #1a1a25;
    --bg-elevated: #16161f;
    --bg-gradient: linear-gradient(135deg, #0a0a0f 0%, #12121a 50%, #1a1028 100%);
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #6b6b7b;
    
    /* Border Colors */
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(122, 61, 245, 0.3);
    
    /* Status Colors */
    --success: #22c55e;
    --success-bg: rgba(34, 197, 94, 0.1);
    --warning: #f59e0b;
    --error: #ef4444;
    
    /* Spacing */
    --container-width: 1280px;
    --section-padding: 80px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.25s ease;
    --transition-slow: 0.4s ease;
    
    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px var(--primary-glow);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

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

img {
    max-width: 100%;
    height: auto;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
}

/* === Container === */
.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 50%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px var(--primary-glow);
}

.btn-secondary {
    background: var(--bg-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
}

.btn-outline:hover {
    background: rgba(122, 61, 245, 0.1);
}

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

.btn-white:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-block {
    width: 100%;
}

.btn-icon {
    width: 20px;
    height: 20px;
}

.btn-icon-sm {
    width: 16px;
    height: 16px;
}

/* === Header === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(10, 10, 15, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 24px;
}

.logo-icon {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav {
    display: flex;
    gap: 32px;
}

.nav-link {
    color: var(--text-secondary);
    font-weight: 500;
    transition: color var(--transition-fast);
}

.nav-link:hover {
    color: var(--text-primary);
}

.header-btn {
    padding: 10px 20px;
}

/* === Hero Section === */
.hero {
    position: relative;
    padding: 160px 0 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-gradient {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translateX(-50%) scale(1); opacity: 0.4; }
    50% { transform: translateX(-50%) scale(1.1); opacity: 0.5; }
}

.hero-particles {
    position: absolute;
    inset: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(122,61,245,0.2), transparent),
        radial-gradient(2px 2px at 50px 160px, rgba(255,255,255,0.1), transparent),
        radial-gradient(2px 2px at 90px 40px, rgba(122,61,245,0.15), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.08), transparent);
    background-size: 200px 200px;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 18px;
}

.hero-title {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    padding: 24px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    max-width: fit-content;
    margin: 0 auto;
}

.stat-item {
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* === Filters Bar === */
.filters-bar {
    padding: 100px 0 0;
    background: var(--bg-primary);
}

.filters-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.filters-main {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.filter-group-label {
    font-size: 13px;
    color: var(--text-muted);
    white-space: nowrap;
}

.filter-divider {
    width: 1px;
    height: 24px;
    background: var(--border);
}

.filter-buttons {
    display: flex;
    gap: 4px;
}

.filter-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.filter-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

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

.filter-tags {
    display: flex;
    gap: 6px;
}

.filter-tag {
    display: flex;
    align-items: center;
    padding: 6px 10px;
    font-size: 12px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-tag:hover {
    color: var(--text-primary);
}

.filter-tag:has(.checkbox-input:checked) {
    background: rgba(122, 61, 245, 0.2);
    color: var(--primary-light);
}

.filter-tag .checkbox-input {
    display: none;
}

.filter-sort {
    flex-shrink: 0;
}

/* Filter Dropdown */
.filter-dropdown {
    position: relative;
}

.filter-dropdown-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-dropdown-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.filter-dropdown.active .filter-dropdown-btn {
    border-color: var(--primary);
    color: var(--text-primary);
}

.filter-dropdown-count {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    background: var(--primary);
    color: white;
    border-radius: 9px;
}

.filter-dropdown-arrow {
    transition: transform var(--transition-fast);
}

.filter-dropdown.active .filter-dropdown-arrow {
    transform: rotate(180deg);
}

.filter-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--transition-fast);
}

.filter-dropdown.active .filter-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.filter-dropdown-search {
    padding: 8px;
    border-bottom: 1px solid var(--border);
}

.filter-search-input {
    width: 100%;
    padding: 8px 10px;
    font-size: 13px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
}

.filter-search-input:focus {
    outline: none;
    border-color: var(--primary);
}

.filter-search-input::placeholder {
    color: var(--text-muted);
}

.filter-dropdown-options {
    max-height: 200px;
    overflow-y: auto;
    padding: 8px 0;
}

.filter-dropdown-options::-webkit-scrollbar {
    width: 6px;
}

.filter-dropdown-options::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.filter-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background var(--transition-fast);
}

.filter-option:hover {
    background: var(--bg-hover);
}

.filter-option-checkbox {
    width: 16px;
    height: 16px;
    border: 1px solid var(--border);
    border-radius: 3px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition-fast);
}

.filter-option.selected .filter-option-checkbox {
    background: var(--primary);
    border-color: var(--primary);
}

.filter-option.selected .filter-option-checkbox::after {
    content: '';
    width: 8px;
    height: 5px;
    border-left: 2px solid white;
    border-bottom: 2px solid white;
    transform: rotate(-45deg) translateY(-1px);
}

.filter-option-label {
    font-size: 13px;
    color: var(--text-primary);
}

.filter-dropdown-actions {
    padding: 8px;
    border-top: 1px solid var(--border);
}

.filter-action-btn {
    width: 100%;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.filter-action-btn:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.sort-select {
    padding: 8px 36px 8px 14px;
    font-size: 13px;
    background: var(--bg-elevated);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.sort-select:focus {
    outline: none;
    border-color: var(--primary);
}

/* Legacy checkbox styles (for modal) */
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-input {
    display: none;
}

.checkbox-custom {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-radius: 4px;
    position: relative;
    transition: all var(--transition-fast);
}

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

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

/* === Banks Section === */
.banks-section {
    padding: 40px 0 60px;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
}

.section-title.center {
    text-align: center;
    width: 100%;
}

.section-subtitle {
    color: var(--text-secondary);
    margin-top: 8px;
}

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

.sort-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-label {
    font-size: 14px;
    color: var(--text-muted);
}

.sort-select {
    padding: 8px 36px 8px 12px;
    font-size: 14px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a0a0b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
}

/* === Bank Cards === */
.banks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 24px;
}

.bank-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
}

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

.bank-card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}

.bank-header-main {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 250px;
}

.bank-badges {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.bank-logo {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.bank-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.bank-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary);
}

.bank-logo.alfa { background: linear-gradient(135deg, #ef3124 0%, #d42015 100%); }
.bank-logo.alfa .bank-logo-text { color: white; }

.bank-logo.module { background: linear-gradient(135deg, #00a3e0 0%, #0088c2 100%); }
.bank-logo.module .bank-logo-text { color: white; }

.bank-logo.sber { background: linear-gradient(135deg, #21a038 0%, #1a8a2e 100%); }
.bank-logo.sber .bank-logo-text { color: white; }

.bank-logo.vtb { background: linear-gradient(135deg, #009fdf 0%, #0077b5 100%); }
.bank-logo.vtb .bank-logo-text { color: white; font-size: 14px; }

.bank-logo.tochka { background: linear-gradient(135deg, #ff5c35 0%, #e04420 100%); }
.bank-logo.tochka .bank-logo-text { color: white; font-size: 28px; }

.bank-info {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.bank-info .tariff-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bank-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}

.tariff-name {
    font-size: 14px;
    color: var(--text-muted);
}

.bank-badge {
    padding: 3px 8px;
    font-size: 10px;
    font-weight: 600;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    white-space: nowrap;
}

.bank-badge.popular {
    background: rgba(122, 61, 245, 0.15);
    color: var(--primary-light);
}

.bank-badge.free {
    background: var(--success-bg);
    color: var(--success);
}

.bank-card-body {
    padding: 24px;
}

.tariff-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.tariff-price .price-value {
    font-size: 36px;
    font-weight: 700;
}

.tariff-price .price-currency {
    font-size: 18px;
    color: var(--text-muted);
}

.tariff-price.free .price-value {
    color: var(--success);
}

.tariff-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.feature-icon {
    font-size: 20px;
    line-height: 1;
}

.feature-content {
    flex: 1;
}

.feature-label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.feature-value {
    font-size: 14px;
    font-weight: 500;
}

.feature-value.highlight {
    color: var(--success);
}

.tariff-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 4px 10px;
    font-size: 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
}

.bank-card-footer {
    display: flex;
    gap: 10px;
    padding: 16px 20px;
    background: var(--bg-elevated);
}

.bank-card-footer .btn {
    flex: 1;
}

.bank-card-footer .btn-compare {
    flex: 0 0 auto;
}

/* No Results */
.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

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

.no-results h3 {
    font-size: 20px;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.no-results p {
    color: var(--text-muted);
}

/* Load More */
.load-more-wrapper {
    text-align: center;
    margin-top: 40px;
}

.load-more-btn {
    min-width: 240px;
}

/* === Calculator Section === */
.calculator-section {
    padding: var(--section-padding) 0;
}

.calculator-card {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1a1028 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 32px;
    border-bottom: 1px solid var(--border);
}

.calculator-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-icon svg {
    width: 28px;
    height: 28px;
    stroke: white;
}

.calculator-title {
    font-size: 24px;
    margin-bottom: 4px;
}

.calculator-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.calculator-body {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 32px;
}

.calc-inputs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.calc-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.calc-label {
    font-size: 14px;
    color: var(--text-secondary);
}

.calc-input {
    padding: 14px 16px;
    font-size: 16px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.calc-input:focus {
    outline: none;
    border-color: var(--primary);
}

.calc-result {
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.calc-result-header {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.calc-result-bank {
    flex: 1;
    margin-bottom: 20px;
}

.result-bank-name {
    display: block;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.result-bank-price {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-light);
}

/* === Compare Section === */
.compare-section {
    padding: var(--section-padding) 0;
}

.compare-placeholder {
    text-align: center;
    padding: 60px 40px;
    background: var(--bg-card);
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
}

.compare-placeholder-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
}

.compare-placeholder-icon svg {
    width: 100%;
    height: 100%;
    stroke: var(--text-muted);
}

.compare-placeholder p {
    color: var(--text-muted);
}

/* Compare Button */
.btn-compare {
    padding: 12px 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    flex-shrink: 0;
}

.btn-compare:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(122, 61, 245, 0.1);
}

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

.btn-compare.active:hover {
    background: var(--primary-hover);
}

.btn-compare svg {
    width: 18px;
    height: 18px;
}

/* Compare Button Tooltip */
.tooltip {
    position: fixed;
    padding: 6px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-primary);
    white-space: nowrap;
    pointer-events: none;
    z-index: 9999;
    box-shadow: var(--shadow-md);
    opacity: 0;
    transition: opacity 0s;
}

.tooltip.visible {
    opacity: 1;
}

/* Compare Grid */
.compare-grid {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 32px;
}

.compare-header {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(150px, 1fr));
    background: var(--bg-elevated);
    border-bottom: 1px solid var(--border);
}

.compare-row {
    display: grid;
    grid-template-columns: 180px repeat(auto-fit, minmax(150px, 1fr));
    border-bottom: 1px solid var(--border);
}

.compare-row:last-child {
    border-bottom: none;
}

.compare-cell {
    padding: 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.compare-cell.compare-label {
    justify-content: flex-start;
    text-align: left;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-elevated);
}

.compare-tariff-header {
    flex-direction: column;
    gap: 4px;
    padding: 20px 16px;
    position: relative;
}

.compare-bank-name {
    font-weight: 600;
    color: var(--text-primary);
}

.compare-tariff-name {
    font-size: 13px;
    color: var(--text-muted);
}

.compare-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.compare-remove:hover {
    background: rgba(255, 100, 100, 0.2);
    color: #ff6464;
}

.compare-cell.highlight {
    color: var(--success);
    font-weight: 600;
}

.compare-cell .check {
    color: var(--success);
    font-size: 18px;
}

.compare-cell .cross {
    color: var(--text-muted);
}

.compare-actions .compare-cell {
    padding: 20px 16px;
}

.compare-actions .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

@media (max-width: 768px) {
    .compare-header,
    .compare-row {
        grid-template-columns: 120px repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .compare-cell {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .compare-cell.compare-label {
        font-size: 11px;
    }
}

/* === FAQ Section === */
.faq-section {
    padding: var(--section-padding) 0;
}

.faq-list {
    max-width: 800px;
    margin: 40px auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    font-size: 16px;
    font-weight: 600;
    text-align: left;
    color: var(--text-primary);
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-icon {
    width: 24px;
    height: 24px;
    stroke: var(--text-muted);
    transition: transform var(--transition-normal);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-normal);
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* === CTA Section === */
.cta-section {
    padding: var(--section-padding) 0;
}

.cta-card {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius-xl);
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    pointer-events: none;
}

.cta-content {
    position: relative;
}

.cta-title {
    font-size: 32px;
    margin-bottom: 12px;
}

.cta-text {
    font-size: 16px;
    opacity: 0.9;
    max-width: 500px;
}

/* === Footer === */
.footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 60px 0 32px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-desc {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
}

.footer-links {
    display: flex;
    gap: 80px;
}

.footer-col h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--primary-light);
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-legal {
    display: flex;
    gap: 24px;
}

.footer-legal a:hover {
    color: var(--primary-light);
}

/* === Modal === */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 480px;
    padding: 32px;
    position: relative;
    transform: translateY(20px);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--bg-elevated);
    color: var(--text-primary);
}

.modal-close svg {
    width: 24px;
    height: 24px;
}

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

.modal-title {
    font-size: 24px;
    margin-bottom: 8px;
}

.modal-subtitle {
    font-size: 14px;
    color: var(--text-muted);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-input {
    padding: 14px 16px;
    font-size: 15px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    transition: border-color var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary);
}

.form-input::placeholder {
    color: var(--text-muted);
}

.form-checkbox {
    margin-top: 8px;
}

.form-checkbox a {
    color: var(--primary-light);
}

.form-checkbox a:hover {
    text-decoration: underline;
}

/* === Responsive === */
@media (max-width: 1024px) {
    .calculator-body {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        flex-direction: column;
        text-align: center;
        padding: 40px;
    }
    
    .cta-content {
        order: 1;
    }
}

/* === Page Content Styles === */
.page-section {
    padding: 120px 0 80px;
    min-height: calc(100vh - 300px);
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 48px;
}

.page-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.page-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.page-date {
    font-size: 14px;
    color: var(--text-muted);
}

.page-body {
    color: var(--text-secondary);
    line-height: 1.8;
}

.page-body h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 32px;
    margin-bottom: 16px;
}

.page-body h2:first-child {
    margin-top: 0;
}

.page-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 12px;
}

.page-body p {
    margin-bottom: 16px;
}

.page-body ul,
.page-body ol {
    margin-bottom: 16px;
    padding-left: 24px;
}

.page-body li {
    margin-bottom: 8px;
}

.page-body a {
    color: var(--primary-light);
    text-decoration: underline;
    text-underline-offset: 2px;
}

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

.page-loading {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 16px;
    animation: spin 1s linear infinite;
}

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

.page-loading p {
    color: var(--text-muted);
}

.page-error {
    text-align: center;
    padding: 60px 20px;
}

.page-error h1 {
    font-size: 24px;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.page-error p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

@media (max-width: 768px) {
    .page-content {
        padding: 32px 24px;
    }
    
    .page-title {
        font-size: 26px;
    }
    
    .page-body h2 {
        font-size: 20px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
    }
    
    .header-content {
        gap: 20px;
    }
    
    .nav {
        display: none;
    }
    
    .filters-bar {
        padding: 90px 0 0;
    }
    
    .filters-wrapper {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        padding: 16px;
    }
    
    .filters-main {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .filter-group {
        flex-wrap: wrap;
    }
    
    .filter-divider {
        display: none;
    }
    
    .filter-tags {
        flex-wrap: wrap;
    }
    
    .sort-select {
        width: 100%;
    }
    
    .banks-grid {
        grid-template-columns: 1fr;
    }
    
    .calc-inputs {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-legal {
        flex-direction: column;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-actions {
        flex-direction: column;
    }
    
    .hero-actions .btn {
        width: 100%;
    }
    
    .bank-card-footer {
        flex-direction: column;
    }
    
    .modal {
        padding: 24px;
    }
}
