
        body.rb-service * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }

        body.rb-service {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
            background-color: var(--bg-black);
            background-image: none;
            background-size: cover;
            background-position: center;
            background-attachment: scroll;
            min-height: 100vh;
            color: var(--text-main);
            padding: 20px;
            -webkit-font-smoothing: antialiased;
            text-rendering: optimizeSpeed;
        }
        body.rb-service::before {
            content: '';
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(180deg, var(--rb-surface) 0%, var(--rb-surface) 50%, var(--rb-surface) 100%);
            z-index: -1;
        }

        body.rb-service ::-webkit-scrollbar { width: 6px; }
        body.rb-service ::-webkit-scrollbar-track { background: var(--bg-dark); }
        body.rb-service ::-webkit-scrollbar-thumb { background: var(--primary-accent-dark); border-radius: 10px; }
        body.rb-service ::-webkit-scrollbar-thumb:hover { background: var(--primary-accent); }

        body.rb-service .container {
            max-width: 1400px;
            margin: 0 auto;
        }
        body.rb-service .header {
            background: var(--glass-bg);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 30px 24px;
            margin-bottom: 32px;
            color: var(--text-main);
            position: relative;
            overflow: hidden;
            box-shadow: 0 4px 30px rgba(10,35,50,0.08);
        }

        body.rb-service .header::before {
            content: '';
            position: absolute;
            top: -50%;
            right: -20%;
            width: 300px;
            height: 300px;
            background: radial-gradient(circle, var(--rb-tint) 0%, transparent 70%);
            border-radius: 50%;
        }

        body.rb-service .back-btn {
            position: absolute;
            left: 24px;
            top: 50%;
            transform: translateY(-50%);
            background: var(--rb-tint);
            border: 1px solid var(--rb-tint);
            color: var(--primary-accent);
            padding: 10px 20px;
            border-radius: 40px;
            cursor: pointer;
            font-size: 15px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: all 0.2s ease;
            z-index: 2;
        }

        body.rb-service .back-btn:hover {
            background: var(--rb-tint);
            transform: translateY(-50%) translateX(-4px);
        }

        body.rb-service .header h1 {
            font-size: 32px;
            font-weight: 800;
            letter-spacing: -0.02em;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            text-align: center;
            padding: 0 80px;
            background: linear-gradient(135deg, var(--primary-accent-light) 0%, var(--primary-accent) 50%, var(--secondary-accent) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        body.rb-service .header h1 i {
            color: var(--primary-accent);
            -webkit-text-fill-color: var(--primary-accent);
        }

        body.rb-service .header p {
            text-align: center;
            color: var(--text-secondary);
            font-size: 18px;
            max-width: 600px;
            margin: 0 auto;
        }
        body.rb-service .input-section {
            background: var(--glass-bg);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 32px;
            margin-bottom: 32px;
            box-shadow: 0 4px 30px rgba(10,35,50,0.08);
        }

        body.rb-service .input-section .title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
            color: var(--text-main);
        }

        body.rb-service .input-section .title i {
            color: var(--primary-accent);
        }

        body.rb-service .input-section .subtitle {
            color: var(--text-secondary);
            margin-bottom: 24px;
            font-size: 16px;
        }
        body.rb-service .mortgage-type-selector {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 12px;
            margin-bottom: 20px;
        }

        body.rb-service .mortgage-type-btn {
            padding: 14px 16px;
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            background: var(--rb-soft);
            cursor: pointer;
            font-weight: 600;
            font-size: 14px;
            transition: all 0.2s;
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 4px;
            text-align: center;
            color: var(--text-secondary);
        }

        body.rb-service .mortgage-type-btn:hover {
            border-color: var(--silver);
            background: var(--rb-soft);
        }

        body.rb-service .mortgage-type-btn.active {
            border-color: var(--primary-accent);
            background: var(--rb-tint);
            color: var(--primary-accent);
            box-shadow: 0 0 0 4px rgba(10,35,50,0.08);
        }

        body.rb-service .mortgage-type-btn.active.installment {
            border-color: var(--installment-color);
            background: rgba(0, 163, 255, 0.1);
            color: var(--rb-blue);
            box-shadow: 0 0 0 4px var(--installment-glow);
        }

        body.rb-service .mortgage-type-btn .badge {
            font-size: 11px;
            background: var(--rb-soft);
            padding: 2px 10px;
            border-radius: 20px;
            color: var(--text-secondary);
        }

        body.rb-service .mortgage-type-btn.active .badge {
            background: var(--primary-accent);
            color: var(--bg-black);
        }

        body.rb-service .mortgage-type-btn.active.installment .badge {
            background: var(--installment-color);
            color: var(--rb-text);
        }

        body.rb-service .mortgage-type-btn .limit {
            font-size: 12px;
            color: var(--gray);
            font-weight: 400;
        }

        body.rb-service .mortgage-type-btn .icon {
            font-size: 20px;
            margin-bottom: 2px;
        }

        body.rb-service .mortgage-type-btn .label {
            font-size: 13px;
            font-weight: 600;
        }
        body.rb-service .children-field {
            display: none;
            margin-top: 18px;
            padding: 16px 20px;
            background: var(--rb-tint);
            border: 1px solid var(--rb-tint);
            border-radius: 16px;
        }

        body.rb-service .children-field.active {
            display: block;
        }

        body.rb-service .children-field label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--primary-accent);
            margin-bottom: 8px;
        }

        body.rb-service .children-field label i {
            margin-right: 6px;
        }

        body.rb-service .children-field select {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            background: var(--bg-panel);
            color: var(--text-main);
            appearance: none;
            cursor: pointer;
            outline: none;
            transition: all 0.2s;
        }

        body.rb-service .children-field select:focus {
            border-color: var(--primary-accent);
            box-shadow: 0 0 0 4px rgba(10,35,50,0.08);
        }


        body.rb-service .input-group {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            align-items: flex-end;
        }

        body.rb-service .input-group .field {
            flex: 1;
            min-width: 200px;
        }

        body.rb-service .input-group label {
            display: block;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        body.rb-service .input-group input {
            width: 100%;
            padding: 12px 16px;
            border: 1px solid var(--glass-border);
            border-radius: 16px;
            font-size: 18px;
            font-weight: 600;
            transition: all 0.2s;
            outline: none;
            background: var(--rb-soft);
            color: var(--text-main);
        }

        body.rb-service .input-group input:focus {
            border-color: var(--primary-accent);
            background: var(--rb-tint);
            box-shadow: 0 0 0 4px rgba(10,35,50,0.08);
        }

        body.rb-service .input-group button {
            padding: 12px 40px;
            background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
            color: var(--bg-black);
            border: none;
            border-radius: 16px;
            font-size: 18px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            display: flex;
            align-items: center;
            gap: 10px;
            box-shadow: 0 4px 15px rgba(10,35,50,0.08);
            white-space: nowrap;
            height: 56px;
        }

        body.rb-service .input-group button:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-accent);
        }

        body.rb-service .input-group button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }

        body.rb-service .mortgage-hint {
            margin-top: 12px;
            font-size: 14px;
            color: var(--text-secondary);
            padding: 12px 16px;
            background: var(--rb-soft);
            border-radius: 12px;
            display: flex;
            align-items: center;
            gap: 10px;
            border: 1px solid var(--glass-border);
        }

        body.rb-service .mortgage-hint i {
            color: var(--primary-accent);
        }
        body.rb-service .flat-card .share-block {
            padding: 10px 14px 14px;
            border-top: 1px solid var(--rb-line);
            display: flex;
            gap: 8px;
        }

        body.rb-service .flat-card .share-btn {
            flex: 1;
            padding: 11px 16px;
            background: linear-gradient(135deg, var(--rb-tint), var(--rb-tint));
            border: 1px solid var(--rb-tint);
            border-radius: 12px;
            color: var(--primary-accent);
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            transition: all 0.2s ease;
            font-family: inherit;
            -webkit-tap-highlight-color: transparent;
        }

        body.rb-service .flat-card .share-btn:hover {
            background: linear-gradient(135deg, var(--rb-tint), var(--rb-tint));
            border-color: var(--primary-accent);
            box-shadow: 0 4px 15px rgba(10,35,50,0.08);
            transform: translateY(-1px);
        }

        body.rb-service .flat-card .share-btn:active {
            transform: translateY(0);
            box-shadow: none;
        }

        body.rb-service .flat-card .share-btn i {
            font-size: 15px;
        }

        body.rb-service .flat-card .share-btn.copied {
            background: linear-gradient(135deg, var(--rb-tint), var(--rb-tint));
            border-color: var(--success);
            color: var(--success);
        }
        body.rb-service .flat-card .share-btn.secondary {
            flex: 0 0 auto;
            padding: 11px 14px;
            background: var(--rb-soft);
            border-color: var(--glass-border);
            color: var(--text-secondary);
        }

        body.rb-service .flat-card .share-btn.secondary:hover {
            background: var(--rb-soft);
            border-color: var(--silver);
            color: var(--text-main);
            box-shadow: none;
        }

        body.rb-service .flat-card .share-btn.loading {
            opacity: 0.7;
            pointer-events: none;
        }

        body.rb-service .flat-card .share-btn.loading i {
            animation: spin 0.8s linear infinite;
        }
        body.rb-service .flat-card .share-hint {
            width: 100%;
            text-align: center;
            font-size: 11px;
            color: var(--gray);
            margin-top: 6px;
        }
        body.rb-service .results-section {
            display: none;
        }

        body.rb-service .results-section.active {
            display: block;
        }
        body.rb-service .summary-card {
            background: var(--glass-bg);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 24px;
            margin-bottom: 24px;
            box-shadow: 0 4px 30px rgba(10,35,50,0.08);
            border-left: 6px solid var(--primary-accent);
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
        }

        body.rb-service .summary-card.installment-summary {
            border-left-color: var(--installment-color);
        }

        body.rb-service .summary-card .info {
            display: flex;
            flex-wrap: wrap;
            gap: 24px;
        }

        body.rb-service .summary-card .info-item {
            display: flex;
            flex-direction: column;
        }

        body.rb-service .summary-card .info-item .label {
            font-size: 13px;
            color: var(--text-secondary);
        }

        body.rb-service .summary-card .info-item .value {
            font-size: 22px;
            font-weight: 700;
            color: var(--text-main);
        }

        body.rb-service .summary-card .info-item .value.installment-color {
            color: var(--installment-color);
        }

        body.rb-service .summary-card .reset-btn {
            padding: 10px 24px;
            background: var(--rb-soft);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            color: var(--text-secondary);
        }

        body.rb-service .summary-card .reset-btn:hover {
            background: var(--rb-tint);
            border-color: var(--primary-accent);
            color: var(--primary-accent);
        }
        body.rb-service .filters-section {
            background: var(--glass-bg);
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            border: 1px solid var(--glass-border);
            border-radius: 24px;
            padding: 24px 28px;
            margin-bottom: 32px;
            box-shadow: 0 4px 30px rgba(10,35,50,0.08);
        }

        body.rb-service .filters-section .filters-title {
            font-size: 16px;
            font-weight: 700;
            margin-bottom: 16px;
            color: var(--text-main);
            display: flex;
            align-items: center;
            gap: 10px;
        }

        body.rb-service .filters-section .filters-title i {
            color: var(--primary-accent);
        }

        body.rb-service .filters-section .filters-title .badge {
            background: var(--rb-tint);
            color: var(--primary-accent);
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 12px;
        }

        body.rb-service .filters-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 16px 20px;
        }

        body.rb-service .filter-group {
            display: flex;
            flex-direction: column;
            gap: 4px;
        }

        body.rb-service .filter-group label {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        body.rb-service .filter-group .filter-inputs {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.rb-service .filter-group .filter-inputs input {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            outline: none;
            background: var(--rb-soft);
            color: var(--text-main);
            min-width: 0;
        }

        body.rb-service .filter-group .filter-inputs input:focus {
            border-color: var(--primary-accent);
            background: var(--rb-tint);
        }

        body.rb-service .filter-group .filter-inputs input:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        body.rb-service .filter-group .filter-inputs .sep {
            color: var(--gray);
            font-weight: 300;
        }

        body.rb-service .filter-group select {
            width: 100%;
            padding: 8px 12px;
            border: 1px solid var(--glass-border);
            border-radius: 10px;
            font-size: 14px;
            font-weight: 500;
            transition: all 0.2s;
            outline: none;
            background: var(--bg-panel);
            color: var(--text-main);
            appearance: none;
            cursor: pointer;
        }

        body.rb-service .filter-group select:focus {
            border-color: var(--primary-accent);
        }

        body.rb-service .filter-group select:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        body.rb-service .filter-group .filter-hint {
            font-size: 11px;
            color: var(--gray);
            margin-top: 2px;
        }

        body.rb-service .filters-actions {
            display: flex;
            gap: 12px;
            margin-top: 16px;
            padding-top: 16px;
            border-top: 1px solid var(--glass-border);
            flex-wrap: wrap;
        }

        body.rb-service .filters-actions button {
            padding: 8px 20px;
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--rb-soft);
            color: var(--text-secondary);
        }

        body.rb-service .filters-actions button:hover {
            background: var(--rb-soft);
        }

        body.rb-service .filters-actions button.primary-btn {
            background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
            color: var(--bg-black);
            border: none;
            font-weight: 700;
        }

        body.rb-service .filters-actions button.primary-btn:hover {
            box-shadow: var(--shadow-accent);
        }

        body.rb-service .filters-actions button.installment-btn {
            background: var(--installment-color);
            color: var(--rb-text);
            border-color: var(--installment-color);
        }

        body.rb-service .filters-actions button.installment-btn:hover {
            box-shadow: 0 4px 15px var(--installment-glow);
        }
        body.rb-service .complex-card {
            background: var(--rb-surface);
            border: 1px solid var(--glass-border);
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 24px;
            box-shadow: 0 2px 12px rgba(10,35,50,0.08);
        }

        body.rb-service .complex-card:hover {
            border-color: var(--rb-tint);
        }

        body.rb-service .complex-header {
            padding: 20px 28px;
            background: var(--rb-soft);
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 12px;
        }

        body.rb-service .complex-header .name {
            font-size: 22px;
            font-weight: 700;
            color: var(--primary-accent);
        }

        body.rb-service .complex-header .name i {
            color: var(--primary-accent);
            margin-right: 8px;
        }

        body.rb-service .complex-header .count {
            font-size: 14px;
            color: var(--text-secondary);
            background: var(--rb-tint);
            padding: 4px 14px;
            border-radius: 20px;
        }
        body.rb-service .flats-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
            gap: 16px;
            padding: 16px;
        }

        body.rb-service .flat-card {
            background: var(--rb-soft);
            border-radius: 14px;
            overflow: hidden;
            border: 1px solid var(--glass-border);
            display: flex;
            flex-direction: column;
            contain: content;
        }

        body.rb-service .flat-card:hover {
            border-color: var(--rb-tint);
        }
        body.rb-service .flat-card .plan-thumbnail {
            width: 100%;
            height: 160px;
            background: var(--rb-soft);
            border-bottom: 1px solid var(--glass-border);
            display: flex;
            align-items: center;
            justify-content: center;
            position: relative;
            overflow: hidden;
            cursor: pointer;
            transition: background 0.2s;
        }

        body.rb-service .flat-card .plan-thumbnail:hover,
        body.rb-service .flat-card .plan-thumbnail:active {
            background: var(--rb-tint);
        }

        body.rb-service .flat-card .plan-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            display: block;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        body.rb-service .flat-card .plan-thumbnail img.loaded {
            opacity: 1;
        }
        body.rb-service .flat-card .plan-thumbnail .placeholder {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            color: var(--gray);
            font-size: 13px;
            pointer-events: none;
        }

        body.rb-service .flat-card .plan-thumbnail .placeholder i {
            font-size: 28px;
            color: var(--primary-accent-dark);
            opacity: 0.6;
        }

        body.rb-service .flat-card .plan-thumbnail .placeholder .spinner-small {
            width: 24px;
            height: 24px;
            border: 2px solid var(--rb-tint);
            border-top-color: var(--primary-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }
        body.rb-service .flat-card .plan-thumbnail.no-plan {
            cursor: default;
            opacity: 0.5;
        }

        body.rb-service .flat-card .plan-thumbnail.no-plan:hover {
            background: var(--rb-soft);
        }
        body.rb-service .flat-card .plan-thumbnail .zoom-hint {
            position: absolute;
            bottom: 8px;
            right: 8px;
            background: var(--rb-surface);
            color: var(--primary-accent);
            padding: 4px 10px;
            border-radius: 20px;
            font-size: 11px;
            font-weight: 600;
            display: flex;
            align-items: center;
            gap: 4px;
            opacity: 0;
            transition: opacity 0.2s;
            pointer-events: none;
        }

        body.rb-service .flat-card .plan-thumbnail:hover .zoom-hint {
            opacity: 1;
        }

        body.rb-service .flat-card .body {
            padding: 12px 14px 14px;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 8px;
        }

        body.rb-service .flat-card .body .top-row {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        body.rb-service .flat-card .body .apartment {
            font-size: 20px;
            font-weight: 700;
            color: var(--text-main);
        }

        body.rb-service .flat-card .body .apartment small {
            font-weight: 400;
            font-size: 14px;
            color: var(--text-secondary);
        }

        body.rb-service .flat-card .body .badge-discount {
            background: var(--rb-tint);
            color: var(--primary-accent);
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid var(--rb-tint);
        }

        body.rb-service .flat-card .body .badge-installment {
            background: rgba(0, 163, 255, 0.2);
            color: var(--rb-blue);
            padding: 2px 12px;
            border-radius: 12px;
            font-size: 13px;
            font-weight: 600;
            border: 1px solid rgba(0, 163, 255, 0.3);
        }

        body.rb-service .flat-card .body .details {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 2px 10px;
            font-size: 13px;
            color: var(--text-secondary);
        }

        body.rb-service .flat-card .body .details .label {
            color: var(--gray);
        }

        body.rb-service .flat-card .body .price-block {
            margin-top: 8px;
            padding-top: 12px;
            border-top: 1px solid var(--rb-line);
            display: flex;
            justify-content: space-between;
            align-items: baseline;
            flex-wrap: wrap;
            gap: 8px;
        }

        body.rb-service .flat-card .body .price-block .price {
            font-size: 22px;
            font-weight: 800;
            color: var(--primary-accent);
        }

        body.rb-service .flat-card .body .price-block .price small {
            font-size: 14px;
            font-weight: 400;
            color: var(--text-secondary);
        }

        body.rb-service .flat-card .body .price-block .price-old {
            font-size: 16px;
            color: var(--gray);
            text-decoration: line-through;
        }

        body.rb-service .flat-card .body .mortgage-info {
            font-size: 13px;
            color: var(--text-secondary);
            background: var(--rb-soft);
            padding: 10px 14px;
            border-radius: 12px;
            margin-top: 4px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
        }

        body.rb-service .flat-card .body .mortgage-info .highlight {
            font-weight: 700;
            color: var(--text-main);
        }

        body.rb-service .flat-card .body .mortgage-info .highlight.primary {
            color: var(--primary-accent);
        }

        body.rb-service .flat-card .body .mortgage-info .highlight.installment {
            color: var(--rb-blue);
        }

        body.rb-service .flat-card .body .mortgage-info .payment {
            width: 100%;
            text-align: center;
            font-size: 16px;
            font-weight: 700;
            color: var(--primary-accent);
            padding-top: 4px;
            border-top: 1px dashed var(--rb-line);
        }

        body.rb-service .flat-card .body .mortgage-info .payment.installment-payment {
            color: var(--rb-blue);
        }

        body.rb-service .flat-card .body .installment-timeline {
            margin-top: 6px;
            padding: 10px 14px;
            background: rgba(0, 163, 255, 0.1);
            border-radius: 12px;
            border-left: 3px solid var(--installment-color);
            font-size: 13px;
        }

        body.rb-service .flat-card .body .installment-timeline .timeline-row {
            display: flex;
            justify-content: space-between;
            padding: 2px 0;
            color: var(--text-secondary);
        }

        body.rb-service .flat-card .body .installment-timeline .timeline-row .value {
            font-weight: 600;
            color: var(--text-main);
        }

        body.rb-service .flat-card .body .installment-timeline .timeline-row .value.installment {
            color: var(--rb-blue);
        }
        body.rb-service .complex-actions {
            display: flex;
            gap: 10px;
            padding: 0 20px 20px;
            flex-wrap: wrap;
        }

        body.rb-service .complex-actions .load-more-btn {
            flex: 1;
            min-width: 160px;
            padding: 12px 16px;
            background: var(--rb-soft);
            border: 1px solid var(--glass-border);
            border-radius: 12px;
            font-weight: 600;
            font-size: 14px;
            cursor: pointer;
            color: var(--primary-accent);
            text-align: center;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        body.rb-service .complex-actions .load-more-btn:active {
            background: var(--rb-tint);
        }

        body.rb-service .complex-actions .load-all-btn {
            background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
            color: var(--bg-black);
            border: none;
        }
        body.rb-service .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            height: 100dvh;
            background: var(--rb-surface);
            z-index: 1000;
            justify-content: center;
            align-items: center;
            padding:
                calc(20px + env(safe-area-inset-top))
                calc(20px + env(safe-area-inset-right))
                calc(20px + env(safe-area-inset-bottom))
                calc(20px + env(safe-area-inset-left));
            backdrop-filter: none;
            -webkit-backdrop-filter: none;
            box-sizing: border-box;
        }

        body.rb-service .modal.active {
            display: flex;
        }

        body.rb-service .modal .modal-content {
            background: var(--bg-panel);
            border-radius: 24px;
            max-width: 95%;
            max-height: 95%;
            overflow: auto;
            position: relative;
            padding: 20px;
            border: 1px solid var(--glass-border);
            box-shadow: 0 20px 60px rgba(10,35,50,0.08);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 16px;
        }

        body.rb-service .modal .modal-content .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding-bottom: 12px;
            border-bottom: 1px solid var(--glass-border);
        }

        body.rb-service .modal .modal-content .modal-header .modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--primary-accent);
            display: flex;
            align-items: center;
            gap: 8px;
        }

        body.rb-service .modal .modal-content img {
            width: 100%;
            height: auto;
            max-height: 80vh;
            object-fit: contain;
            border-radius: 12px;
            background: var(--rb-soft);
        }

        body.rb-service .modal .close-modal {
            position: absolute;
            top: calc(12px + env(safe-area-inset-top));
            right: calc(16px + env(safe-area-inset-right));
            font-size: 28px;
            cursor: pointer;
            color: var(--text-secondary);
            background: var(--bg-panel);
            width: 44px;
            height: 44px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 15px rgba(10,35,50,0.08);
            transition: all 0.2s;
            border: 1px solid var(--glass-border);
            z-index: 10;
            pointer-events: auto;
        }

        body.rb-service .modal .close-modal:hover {
            background: var(--rb-tint);
            color: var(--primary-accent);
            transform: rotate(90deg);
        }
        @media (max-width: 768px) {
            body.rb-service .modal {
                padding:
                    env(safe-area-inset-top)
                    env(safe-area-inset-right)
                    env(safe-area-inset-bottom)
                    env(safe-area-inset-left);
            }
            
            body.rb-service .modal .modal-content {
                max-width: 100%;
                max-height: 100%;
                width: 100%;
                height: 100%;
                height: 100dvh;
                border-radius: 0;
                padding: 16px;
                box-sizing: border-box;
            }
            
            body.rb-service .modal .modal-content img {
                max-height: calc(85vh - env(safe-area-inset-top) - env(safe-area-inset-bottom));
            }
            body.rb-service .modal .close-modal {
                position: fixed;
                top: calc(12px + env(safe-area-inset-top));
                right: calc(12px + env(safe-area-inset-right));
                width: 44px;
                height: 44px;
                z-index: 1100;
            }
        }
        body.rb-service .loading {
            display: none;
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        body.rb-service .loading.active {
            display: block;
        }

        body.rb-service .loading .spinner {
            width: 60px;
            height: 60px;
            border: 4px solid var(--rb-tint);
            border-top-color: var(--primary-accent);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            margin: 0 auto 20px;
        }

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

        body.rb-service .loading p {
            font-size: 18px;
        }

        body.rb-service .empty-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-secondary);
        }

        body.rb-service .empty-state i {
            font-size: 64px;
            color: var(--gray);
            margin-bottom: 20px;
        }

        body.rb-service .empty-state h3 {
            font-size: 24px;
            margin-bottom: 12px;
            color: var(--text-main);
        }

        body.rb-service .empty-state p {
            font-size: 16px;
            max-width: 500px;
            margin: 0 auto 20px;
        }

        body.rb-service .empty-state .hint-btn {
            padding: 12px 32px;
            background: linear-gradient(135deg, var(--primary-accent), var(--primary-accent-dark));
            color: var(--bg-black);
            border: none;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
        }

        body.rb-service .empty-state .hint-btn:hover {
            box-shadow: var(--shadow-accent);
        }
        @media (max-width: 992px) {
            body.rb-service .mortgage-type-selector {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 768px) {
            body.rb-service {
                padding: 12px;
            }

            body.rb-service .back-btn {
                left: 16px;
                padding: 8px 14px;
                font-size: 13px;
            }

            body.rb-service .back-btn span {
                display: none;
            }

            body.rb-service .header h1 {
                font-size: 24px;
                padding: 0 60px;
            }

            body.rb-service .header p {
                font-size: 16px;
            }

            body.rb-service .mortgage-type-selector {
                grid-template-columns: 1fr 1fr;
            }

            body.rb-service .mortgage-type-btn {
                padding: 12px;
                font-size: 13px;
            }

            body.rb-service .input-group {
                flex-direction: column;
                align-items: stretch;
            }

            body.rb-service .input-group button {
                width: 100%;
                justify-content: center;
            }

            body.rb-service .summary-card {
                flex-direction: column;
                align-items: stretch;
                gap: 16px;
            }

            body.rb-service .summary-card .info {
                gap: 16px;
            }

            body.rb-service .filters-grid {
                grid-template-columns: 1fr 1fr;
            }

            body.rb-service .complex-header {
                flex-direction: column;
                align-items: flex-start;
            }

            body.rb-service .flats-grid {
                grid-template-columns: 1fr;
                padding: 16px;
            }

            body.rb-service .flat-card .body .details {
                grid-template-columns: 1fr 1fr;
            }

            body.rb-service .modal .modal-content {
                padding: 12px;
            }
        }

        @media (max-width: 480px) {
            body.rb-service .header {
                padding: 20px 16px;
                border-radius: 20px;
            }

            body.rb-service .back-btn {
                left: 12px;
                padding: 6px 12px;
                font-size: 12px;
            }

            body.rb-service .header h1 {
                font-size: 20px;
                padding: 0 50px;
            }

            body.rb-service .mortgage-type-selector {
                grid-template-columns: 1fr;
            }

            body.rb-service .input-section {
                padding: 20px;
            }

            body.rb-service .filters-grid {
                grid-template-columns: 1fr;
            }

            body.rb-service .filters-section {
                padding: 16px;
            }

            body.rb-service .flat-card .body .price-block {
                flex-direction: column;
                align-items: flex-start;
            }

            body.rb-service .flat-card .body .mortgage-info {
                flex-direction: column;
                gap: 4px;
            }
        }
        body.rb-service .multi-bank-header {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid var(--rb-line);
            margin-bottom: 8px;
            font-size: 13px;
            color: var(--text-secondary);
            flex-wrap: wrap;
            gap: 6px;
        }
        body.rb-service .multi-bank-header strong {
            color: var(--primary-accent);
        }
        body.rb-service .banks-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
        }
        body.rb-service .bank-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 10px 12px;
            background: var(--rb-soft);
            border-radius: 10px;
            border-left: 3px solid transparent;
            transition: all 0.2s;
            gap: 8px;
        }
        body.rb-service .bank-row.best {
            background: var(--rb-tint);
            border-left-color: var(--primary-accent);
        }
        body.rb-service .bank-left {
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
        }
        body.rb-service .bank-logo {
            font-size: 20px;
            flex-shrink: 0;
        }
        body.rb-service .bank-info {
            display: flex;
            flex-direction: column;
            gap: 2px;
            min-width: 0;
        }
        body.rb-service .bank-name {
            font-size: 14px;
            font-weight: 700;
            color: var(--text-main);
        }
        body.rb-service .bank-terms {
            font-size: 11px;
            color: var(--gray);
        }
        body.rb-service .bank-right {
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 2px;
            flex-shrink: 0;
        }
        body.rb-service .bank-payment {
            font-size: 15px;
            font-weight: 800;
            color: var(--primary-accent);
        }
        body.rb-service .best-badge {
            font-size: 10px;
            color: var(--warning);
            font-weight: 600;
        }
    