/* ============================================
   CREDIT CARDS PAGE STYLES (BASED ON CREDITS CSS)
   ============================================ */

/* Breadcrumbs Section */
.breadcrumbs-section {
    padding: 1rem 0;
    border-bottom: 1px solid var(--gray-200);
}

.breadcrumbs {
    font-size: 0.9rem;
}

.breadcrumbs ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.breadcrumbs li {
    display: flex;
    align-items: center;
}

.breadcrumbs a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.breadcrumbs a:hover {
    background: rgba(0, 93, 239, 0.1);
    text-decoration: none;
}

.breadcrumbs span {
    color: var(--gray-600);
    font-weight: 500;
    padding: 0.25rem 0.5rem;
}

.breadcrumbs .separator {
    margin: 0 0.25rem;
    color: var(--gray-400);
    font-size: 0.8rem;
}

/* Icon breadcrumbs */
.breadcrumbs.with-icons .separator {
    display: none;
}

.breadcrumbs.with-icons li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--gray-400);
    font-weight: 600;
}

/* Page Header */
.page-header {
    padding: 1rem 0 3rem;
    background: linear-gradient(135deg, rgba(0, 93, 239, 0.1) 0%, rgba(0, 72, 196, 0.05) 100%);
    margin-bottom: 0;
    text-align: left;
}

.page-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.page-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 1200px;
    line-height: 1.5;
}

.page-header-actions {
    margin-top: 1.5rem;
}

/* Find Credit Card Form */
.find-credit-card-section {
    padding: 0;
    background: var(--white);
    transition: all 0.3s ease;
    overflow: hidden;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: -1.5rem;
    z-index: 10;
    position: relative;
}

.find-credit-card-section.expanded {
    margin-top: 0;
    padding: 2rem 0;
    border-top: 1px solid var(--gray-200);
}

.find-credit-card-form {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

/* Hub Menu */
.credit-cards-hub-section {
    padding: 0.5rem 0 1.5rem;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
}

.credit-cards-hub-menu-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.credit-cards-hub-menu-wrapper::-webkit-scrollbar {
    display: none;
}

.credit-cards-hub-menu {
    display: flex;
    gap: 0.75rem;
    padding: 0.5rem 0;
    min-width: max-content;
}

.hub-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    background: var(--gray-100);
    border-radius: var(--border-radius);
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    border: 1px solid var(--gray-200);
    font-size: 0.95rem;
}

.hub-link:hover {
    background: var(--gray-200);
    transform: translateY(-1px);
}

.hub-link.active {
    background: var(--primary-gradient);
    color: var(--white);
    border-color: var(--primary-color);
}

.hub-link i {
    font-size: 1rem;
}

/* Credit Cards Offers */
.credit-cards-offers-section {
    padding: 2rem 0;
    background: var(--gray-50);
}

.offers-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.offers-info {
    flex: 1;
}

.offers-count {
    color: var(--gray-600);
    font-size: 1rem;
}

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

.sort-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.sort-label {
    color: var(--gray-600);
    font-weight: 500;
}

.sort-select {
    padding: 0.6rem 2rem 0.6rem 0.75rem;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-size: 0.95rem;
    cursor: pointer;
    min-width: 200px;
    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='%236c757d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px;
    appearance: none;
}

/* Credit Cards Grid */
.credit-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.credit-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.credit-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-lg);
    border-color: var(--primary-color);
}

.credit-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--primary-color);
    opacity: 0;
    transition: var(--transition);
}

.credit-card:hover::before {
    opacity: 1;
}

.credit-card-header {
    display: flex;
    align-items: flex-start;
    padding: 1.5rem;
    cursor: pointer;
    gap: 1.25rem;
}

.credit-card-logo {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.25rem;
}

.credit-card-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.credit-card-info {
    flex: 1;
}

.credit-card-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
    font-weight: 700;
}

.credit-card-subtitle {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.card-feature-tag {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    color: #2e7d32;
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.credit-card-features {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.feature-icon {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.feature-value {
    font-weight: 600;
    color: var(--gray-800);
}

.credit-card-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-shrink: 0;
}

.credit-card-expand-btn {
    background: none;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
    padding: 0.75rem 1.25rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.credit-card-expand-btn:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.credit-card-expand-btn i {
    transition: transform 0.3s ease;
}

.credit-card.expanded .credit-card-expand-btn i {
    transform: rotate(180deg);
}

.credit-card-apply-btn {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.credit-card-apply-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 93, 239, 0.3);
}

/* Expanded Details - ИСПРАВЛЕНО для мобильных устройств */
.credit-card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
    background: var(--gray-50);
    border-top: 1px solid var(--gray-200);
}

.credit-card.expanded .credit-card-details {
    /* Убираем фиксированную максимальную высоту */
    max-height: none;
    /* Вместо этого используем auto для адаптивности */
    height: auto;
    /* Добавляем возможность прокрутки на маленьких экранах */
    overflow-y: auto;
}

.details-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.details-section h4 {
    margin-bottom: 1rem;
    color: var(--gray-900);
    font-size: 1.1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.conditions-list {
    list-style: none;
    padding: 0;
}

.conditions-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: var(--gray-700);
    display: flex;
    flex-wrap: wrap;
}

.conditions-list li strong {
    min-width: 200px;
    color: var(--gray-800);
    margin-right: 0.5rem;
}

.conditions-list li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.requirements-list {
    list-style: none;
    padding: 0;
}

.requirements-list li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
    color: var(--gray-700);
    display: flex;
    flex-wrap: wrap;
}

.requirements-list li strong {
    min-width: 200px;
    color: var(--gray-800);
    margin-right: 0.5rem;
}

.requirements-list li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-size: 1.2rem;
}

.show-more-container {
    text-align: center;
}

/* Credit Cards Rating Section */
.credit-cards-rating-section {
    padding: 2rem 0;
    background: var(--gray-50);
}

.section-header-center {
    text-align: left;
    margin-bottom: 2rem;
}

.section-header-center .section-title::after {
    left: 3%;
    transform: translateX(-50%);
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 1200px;
}

.rating-search {
    margin-bottom: 1.5rem;
    max-width: 400px;
}

.search-container {
    position: relative;
}

.search-container i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-500);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 93, 239, 0.1);
}

.search-clear {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-500);
    cursor: pointer;
    display: none;
}

.search-clear:hover {
    color: var(--gray-700);
}

.rating-table-container {
    overflow-x: auto;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-200);
    background: var(--white);
    box-shadow: var(--box-shadow);
    margin-bottom: 1.5rem;
}

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

.rating-table thead {
    background: var(--gray-50);
    border-bottom: 2px solid var(--gray-200);
}

.rating-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--gray-700);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
}

.rating-table th.sortable:hover {
    background: var(--gray-100);
}

.sort-arrow {
    margin-left: 0.5rem;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.sort-arrow.active {
    color: var(--primary-color);
}

.rating-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.rating-table tbody tr {
    transition: var(--transition);
    cursor: pointer;
}

.rating-table tbody tr:hover {
    background: rgba(0, 93, 239, 0.02);
}

.rating-table tbody tr:last-child td {
    border-bottom: none;
}

.bank-name-with-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.bank-card-info {
    display: flex;
    flex-direction: column;
}

.bank-card-info strong {
    line-height: 1.2;
}

.bank-card-info small {
    font-size: 0.85rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.bank-logo-small {
    width: 30px;
    height: 30px;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
}

.rate-value {
    color: var(--primary-color);
    font-weight: 600;
}

.cashback-value {
    color: #4caf50;
    font-weight: 600;
}

/* Cashback Cards Section */
.cashback-cards-section {
    padding: 2rem 0;
    background: var(--white);
}

.cashback-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.cashback-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    padding: 1.5rem;
    transition: var(--transition);
    box-shadow: var(--box-shadow);
}

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

.cashback-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cashback-card-logo {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
    border: 1px solid var(--gray-200);
    padding: 4px;
}

.cashback-card-title {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gray-900);
}

.cashback-card-subtitle {
    margin: 0.25rem 0 0 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.cashback-card-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
}

.cashback-card-feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.feature-label {
    font-size: 0.8rem;
    color: var(--gray-600);
    margin-bottom: 0.25rem;
}

.feature-value {
    font-weight: 600;
    color: var(--gray-900);
}

.cashback-card .feature-value:first-child {
    color: #4caf50;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    border: 1px solid var(--gray-300);
    background: var(--white);
    color: var(--gray-700);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.page-btn:hover:not(:disabled) {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

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

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--gray-500);
    padding: 0 0.5rem;
}

/* Expert Section */
.expert-section {
    padding: 2rem 0;
}

.container-wide {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.expert-card-wide {
    background: linear-gradient(135deg, rgba(0, 93, 239, 0.05) 0%, rgba(0, 72, 196, 0.02) 100%);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    border: 1px solid var(--gray-200);
}

.expert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.expert-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.expert-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.expert-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expert-details h3 {
    margin-bottom: 0.25rem;
}

.expert-title {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.expert-stats {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

.stat-number {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 0.25rem;
}

.expert-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-700);
    font-style: italic;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-color);
}

/* Main Text Section */
.main-text-section {
    padding: 2rem 0;
}

.text-content-wide {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--gray-200);
    box-shadow: var(--box-shadow);
}

.text-content-wide h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--gray-900);
}

.text-content-wide h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: var(--gray-800);
}

.text-content-wide p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: var(--gray-700);
}

.text-content-wide ul {
    margin: 1rem 0 1.5rem 1.5rem;
    padding-left: 0;
    list-style: none;
}

.text-content-wide ul li {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    color: var(--gray-700);
    position: relative;
    padding-left: 1.75rem;
}

.text-content-wide ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

.text-content-wide strong {
    color: var(--gray-900);
    font-weight: 600;
}

/* Advice Section */
.advice-section {
    padding: 2rem 0;
    background: linear-gradient(135deg, rgba(0, 93, 239, 0.05) 0%, rgba(0, 72, 196, 0.02) 100%);
}

.advice-text-content {
    text-align: left;
}

.advice-text-content .section-title {
    margin-bottom: 1rem;
}

.advice-text-content .section-title::after {
    left: 3%;
    transform: translateX(-50%);
}

.advice-text-content p {
    line-height: 1.6;
    color: var(--gray-700);
    font-size: 1.1rem;
}

/* FAQ Section */
.faq-section {
    padding: 2rem 0;
    background: var(--white);
}

.faq-list {
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--gray-200);
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-question {
    width: 100%;
    padding: 1.25rem;
    background: var(--white);
    border: none;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-900);
    transition: var(--transition);
}

.faq-question:hover {
    background: var(--gray-50);
}

.faq-question[aria-expanded="true"] {
    background: var(--gray-50);
}

.faq-question[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.faq-question i {
    color: var(--gray-500);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-question[aria-expanded="true"] + .faq-answer {
    padding: 0 1.25rem 1.25rem;
    max-height: 2000px;
}

.faq-answer p {
    margin: 0;
    line-height: 1.6;
    color: var(--gray-700);
}

/* Стили для слайдеров (совпадают с кредитами) */
.form-sliders, .slider-group, .slider-header, .slider-label, .slider-value,
.credit-card-slider, .slider-ticks, .form-actions {
    /* Стили такие же как в credits.css */
}

.credit-card-slider {
    width: 100%;
    height: 8px;
    border-radius: 4px;
    background: var(--gray-200);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    margin: 0.5rem 0;
}

.credit-card-slider.full-width {
    width: 100%;
}

.credit-card-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.credit-card-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: 3px solid var(--white);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-title {
        font-size: 2rem;
    }
    
    .page-subtitle {
        font-size: 1.05rem;
    }
    
    .credit-card-header {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .credit-card-actions {
        width: 100%;
        justify-content: space-between;
        margin-top: 1rem;
    }
    
    .credit-card-features {
        gap: 1.5rem;
    }
    
    .conditions-list li strong,
    .requirements-list li strong {
        min-width: 160px;
    }
    
    .expert-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .expert-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    .details-content {
        grid-template-columns: 1fr;
    }
    
    .cashback-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .page-title {
        font-size: 1.8rem;
    }
    
    .page-subtitle {
        font-size: 1rem;
    }
    
    .hub-link {
        padding: 0.625rem 1rem;
        font-size: 0.9rem;
    }
    
    .hub-link i {
        font-size: 0.9rem;
    }
    
    .credit-card-header {
        padding: 1.25rem;
    }
    
    .credit-card-logo {
        width: 60px;
        height: 60px;
    }
    
    .credit-card-title {
        font-size: 1.2rem;
    }
    
    .credit-card-features {
        gap: 1rem;
    }
    
    .feature-item {
        flex: 1 1 calc(50% - 1rem);
    }
    
    .conditions-list li strong,
    .requirements-list li strong {
        min-width: 130px;
    }
    
    .credit-card-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .credit-card-expand-btn,
    .credit-card-apply-btn {
        width: 100%;
        justify-content: center;
    }
    
    .offers-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .offers-sort {
        width: 100%;
    }
    
    .sort-group {
        width: 100%;
    }
    
    .sort-select {
        flex: 1;
    }
    
    .cashback-cards-grid {
        grid-template-columns: 1fr;
    }
    
    .breadcrumbs-section {
        padding: 0.875rem 0;
    }
    
    .breadcrumbs {
        font-size: 0.85rem;
    }
    
    .breadcrumbs a,
    .breadcrumbs span {
        padding: 0.125rem 0.375rem;
    }
    
    /* ИСПРАВЛЕНИЕ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ */
    .credit-card.expanded .credit-card-details {
        /* На мобильных устройствах ограничиваем максимальную высоту и добавляем прокрутку */
        max-height: 70vh;
        overflow-y: auto;
    }
    
    .details-content {
        padding: 1rem;
        gap: 1rem;
    }
    
    .conditions-list li,
    .requirements-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conditions-list li strong,
    .requirements-list li strong {
        min-width: auto;
        margin-bottom: 0.25rem;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header {
        padding: 1.5rem 0;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .hub-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .hub-link i {
        font-size: 0.85rem;
    }
    
    .credit-card-header {
        padding: 1rem;
    }
    
    .credit-card-logo {
        width: 50px;
        height: 50px;
    }
    
    .credit-card-title {
        font-size: 1.1rem;
    }
    
    .credit-card-subtitle {
        font-size: 0.9rem;
    }
    
    .credit-card-features {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .feature-item {
        flex: 1 1 100%;
    }
    
    .conditions-list li,
    .requirements-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .conditions-list li strong,
    .requirements-list li strong {
        min-width: auto;
        margin-bottom: 0.25rem;
        width: 100%;
    }
    
    .form-sliders {
        padding: 1rem 0;
    }
    
    .slider-group {
        margin-bottom: 1.25rem;
    }
    
    /* ДОПОЛНИТЕЛЬНЫЕ ИСПРАВЛЕНИЯ ДЛЯ ОЧЕНЬ МАЛЕНЬКИХ ЭКРАНОВ */
    .credit-card.expanded .credit-card-details {
        max-height: 60vh;
    }
}

/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .credit-card-slider::-webkit-slider-thumb {
        width: 28px;
        height: 28px;
    }
    
    .hub-link,
    .credit-card,
    .cashback-card {
        cursor: pointer;
    }
    
    .faq-question {
        min-height: 56px;
        padding: 1rem;
    }
    
    .credit-card-expand-btn,
    .credit-card-apply-btn {
        min-height: 44px;
    }
    
    .page-btn {
        min-width: 44px;
        min-height: 44px;
    }
    
    /* Улучшение UX для тач-устройств */
    .credit-card.expanded .credit-card-details {
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
    }
}

/* Print styles */
@media print {
    .credit-cards-hub-section,
    .find-credit-card-section,
    .cashback-cards-section {
        display: none;
    }
    
    .credit-card-details {
        max-height: none !important;
        display: block !important;
        overflow: visible !important;
    }
}

/* Кнопки заявок */
.offer-btn {
    cursor: pointer;
    display: inline-block;
    text-align: center;
    text-decoration: none !important;
}

.offer-btn:hover {
    background-color: #007bff;
    color: white;
}

.result-btn {
    cursor: pointer;
    display: inline-block;
    text-align: center;
}

/* Рейтинг страницы */
.rating-result.show {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Стили для загрузки и ошибок */
.loading-spinner {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #666;
}

.loading-spinner i {
    margin-right: 10px;
    font-size: 20px;
}

.error-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    color: #dc3545;
    background-color: #f8d7da;
    border-radius: 8px;
    margin: 20px 0;
}

/* Стили для сообщений рейтинга */
.thank-you-message {
    text-align: center;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #28a745;
}

.thank-you-message p {
    margin: 5px 0;
}

/* Простые стили для таблицы без смещений */
.rating-table-row {
    cursor: pointer;
}

.rating-table-row:hover td:first-child {
    border-left: 3px solid #007bff;
}

.rating-table-row:hover {
    color: #007bff;
}

.rating-table-row:hover .rate-value {
    color: #28a745;
}

.rating-table-row:hover .cashback-value {
    color: #2e7d32;
}