/* CryptoCardLab - Минималистичный CSS в стиле Bootstrap */

/* Reset и базовые стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4e389f;
    --primary-gradient-start: #4e389f;
    --primary-gradient-end: #ce2346;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #000000;
    --white: #ffffff;
    --border-color: #dee2e6;
    --text-color: #212529;
    --text-muted: #6c757d;
    --font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    --box-shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --gradient: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
}

/* Применяем шрифт Roboto Condensed ко всем элементам */
*,
*::before,
*::after {
    font-family: "Roboto Condensed", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif !important;
}

/* Material Icons должны использовать свой шрифт */
.material-icons {
    font-family: 'Material Icons' !important;
}

/* Градиент для Material Icons */
.material-icons {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Для иконок с явным цветом (Да/Нет) - не применять градиент */
.material-icons[style*="color:"] {
    background: none;
    -webkit-text-fill-color: inherit;
    background-clip: unset;
}

/* Хлебные крошки */
nav[aria-label="Хлебные крошки"] {
    padding: 0.75rem 0;
}

nav[aria-label="Хлебные крошки"] ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 1rem;
}

nav[aria-label="Хлебные крошки"] ol li {
    display: flex;
    align-items: center;
}

nav[aria-label="Хлебные крошки"] ol li a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

nav[aria-label="Хлебные крошки"] ol li a:hover {
    color: var(--primary-gradient-end);
    text-decoration: underline;
}

nav[aria-label="Хлебные крошки"] ol li span:not([itemprop="name"]) {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

body {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header */
.header {
    background: var(--white);
    color: var(--text-color);
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.navbar-brand {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: transform 0.2s;
}

.logo-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.brand-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-brand:hover {
    color: var(--text-color);
    transform: translateY(-2px);
}

.navbar-brand:hover .logo-wrapper {
    transform: scale(1.05);
}

.navbar-brand:hover .brand-text {
    background: linear-gradient(135deg, var(--primary-gradient-end) 0%, var(--primary-gradient-start) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.navbar-nav {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
    color: var(--text-color);
    align-items: center;
    justify-content: center;
}

.navbar-toggle:hover {
    color: var(--primary-color);
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 24px;
}

.hamburger-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: currentColor;
    transition: all 0.3s;
}

.navbar-toggle.active .hamburger-icon span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.navbar-toggle.active .hamburger-icon span:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.active .hamburger-icon span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.navbar-nav a {
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.2s;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 500;
}

.navbar-nav a:hover {
    color: var(--primary-color);
    background: linear-gradient(135deg, rgba(78, 56, 159, 0.1) 0%, rgba(206, 35, 70, 0.1) 100%);
    transform: translateY(-2px);
}

/* Кнопка в меню с градиентом */
.navbar-nav .nav-btn-primary {
    color: var(--white);
    background: var(--gradient);
    font-weight: 500;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 4px 6px rgba(78, 56, 159, 0.3);
    transition: all 0.3s;
}

.navbar-nav .nav-btn-primary:hover {
    color: var(--white);
    background: var(--gradient);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 56, 159, 0.4);
}

/* Main content */
main {
    flex: 1;
    padding: 0;
    background-color: transparent;
}

main .container {
    background-color: var(--white);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    margin: 0 auto 2rem auto;
    max-width: 1200px;
}

h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
}

h1::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--gradient);
    margin-top: 1rem;
    border-radius: 2px;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.25rem;
    margin-top: 2.5rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
}

h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.4;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
    color: var(--text-color);
}

p {
    margin-bottom: 1.25rem;
    line-height: 1.7;
    color: var(--text-color);
    font-size: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
    transition: all 0.2s;
}

.btn-primary {
    color: var(--white);
    background: var(--gradient);
    border: none;
    font-weight: 500;
    padding: 0.625rem 1.5rem;
    box-shadow: 0 4px 6px rgba(78, 56, 159, 0.3);
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(78, 56, 159, 0.4);
    color: var(--white);
}

.btn-secondary {
    color: var(--white);
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    margin: 10px 0;
}

/* Cards */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: var(--white);
    background-clip: border-box;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    overflow: hidden;
    border-top: 3px solid transparent;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(78, 56, 159, 0.15);
    border-top-color: var(--primary-color);
}

.card-body {
    flex: 1 1 auto;
    padding: 1rem 1.75rem;
}

.card-img-top {
    width: 100%;
    object-fit: cover;
    display: block;
}

.article-card-body {
    display: flow-root;
}

.article-card-content {
    display: block;
}

.article-card-preview {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    display: block;
}

.operator-card-content {
    display: flow-root;
}

.operator-card-text .card-title {
    margin-top: 0;
}

.operator-card-text {
    display: block;
}

.operator-card-logo {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.popular-operators-section .operator-card-content {
    display: flow-root;
}

.popular-operators-section .operator-card-logo {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.popular-operators-section .operator-card-text {
    display: block;
}

.operators-section .card-body {
    padding-bottom: 0;
}

@media (max-width: 768px) {
    .operator-card-content {
        display: flow-root;
    }
    
    .operator-card-logo {
        float: right;
        margin-left: 1rem;
        margin-bottom: 0.5rem;
        display: block;
    }
    
    .operator-card-text {
        display: block;
    }
    
    /* На главной странице в популярных операторах логотипы обтекаются текстом справа */
    .popular-operators-section .operator-card-logo img {
        max-width: 80px !important;
        width: 80px !important;
        height: auto !important;
        display: block;
    }
}

.card-title {
    margin-bottom: 0.75rem;
    margin-top: 0.75rem;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.3;
}

.card-title a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.2s;
}

.card-title a:hover {
    color: var(--primary-color);
}

.card-text {
    margin-bottom: 0;
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1rem;
}

/* Grid */
.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
}

.col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .col-md-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .navbar {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }
    
    .navbar-toggle {
        display: flex;
    }
    
    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: 1rem 0;
        margin-top: 0.5rem;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-nav.active {
        display: flex;
    }
    
    .navbar-nav li {
        width: 100%;
    }
    
    .navbar-nav a {
        display: block;
        padding: 0.75rem 1.5rem;
        width: 100%;
    }
    
    .navbar-nav .nav-btn-primary {
        text-align: center;
        margin: 0.5rem 1.5rem;
        width: calc(100% - 3rem);
    }
    
    h1 {
        font-size: 1.75rem;
    }
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin: 2rem 0;
}

table thead {
    background: var(--primary-color);
}

table th {
    padding: 1.25rem 1.5rem;
    text-align: left;
    font-weight: 500;
    color: var(--white);
    font-size: 1rem;
    background-color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #f0f0f0;
    color: var(--text-color);
    vertical-align: middle;
}

table tbody tr {
    transition: background-color 0.2s;
}

table tbody tr:hover {
    background-color: #f8f9fa;
}

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

/* Footer */
.footer {
    background: var(--dark-color);
    color: #b0b0b0;
    padding: 3rem 0 2rem 0;
    margin-top: 4rem;
    width: 100%;
}

.footer .container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    width: 100%;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-links-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-column h4 {
    color: #e0e0e0;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.footer-links-column a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.footer-links-column a:hover {
    color: #e0e0e0;
}

.footer-copyright {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #333;
    color: #e0e0e0;
    font-size: 1rem;
}

.footer-copyright p {
    color: #e0e0e0;
    margin: 0;
}

.footer a {
    color: #b0b0b0;
    text-decoration: none;
    transition: color 0.2s;
}

.footer a:hover {
    color: #e0e0e0;
}

@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
        justify-content: center;
    }
    
    .footer-links-column {
        text-align: center;
    }
}

/* Operator specific styles */
.operator-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.operator-header-content {
    flex: 1;
}

.operator-header-logo {
    flex-shrink: 0;
}

.operator-logo {
    max-width: 150px;
    height: auto;
    border-radius: 0.75rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    background: var(--white);
    padding: 0;
}

@media (max-width: 768px) {
    .operator-header {
        flex-direction: column;
    }
    
    .operator-header-content > div {
        flex-direction: row;
        gap: 1rem;
    }
    
    .operator-header-logo {
        align-self: flex-start;
        margin-top: 0;
    }
    
    .operator-logo {
        max-width: 100px;
    }
    
    /* На мобильной версии блоки экспертная оценка всегда вертикальные */
    .expert-review .expert-review-content {
        flex-direction: column !important;
    }
    
    .expert-review .expert-section {
        width: 100%;
        margin-bottom: 0;
    }
}

.operator-meta {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.meta-item {
    margin: 0;
    color: var(--text-color);
    font-size: 1rem;
}

.website-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.website-link:hover {
    color: var(--primary-gradient-end);
    transform: translateX(4px);
}

/* Operator rating summary */
.operator-rating-summary {
    margin-top: 1rem;
}

.operator-rating-summary .meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-start;
    text-align: left;
}

.rating-value {
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.operator-rating-summary .rating-stars {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.operator-rating-summary .rating-stars .star-rating-icon {
    font-size: 1.3rem;
    color: #ddd;
}

.operator-rating-summary .rating-stars .star-rating-icon.filled {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.reviews-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
    transition: color 0.2s;
}

.reviews-link:hover {
    color: var(--primary-gradient-end);
    text-decoration: underline;
}

.operator-description {
    margin-bottom: 3rem;
    padding: 0.5rem 1.5rem 1rem 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 0.75rem;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.operator-description h2 {
    margin-top: 0.5rem;
}

/* Expert review section */
.expert-review {
    background: #fff4e6;
    padding: 1.75rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #ffe8cc;
}

.expert-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.expert-review-header h2 {
    margin: 0;
    color: var(--text-color);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.expert-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.expert-rating .rating-stars {
    display: inline-flex;
    gap: 0.2rem;
}

.expert-rating .rating-stars .star-rating-icon {
    font-size: 1.1rem;
    color: #e0e0e0;
    line-height: 1;
}

.expert-rating .rating-stars .star-rating-icon.filled {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.expert-rating .rating-value {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    margin-left: 0.25rem;
}

.expert-review-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Убеждаемся, что на странице оператора блоки всегда вертикальные */
.expert-review .expert-review-content {
    flex-direction: column !important;
}

.expert-section {
    background: white;
    padding: 1.25rem 1.5rem;
    border-radius: 0.375rem;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.expert-section:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.expert-pros {
    border-left-color: #4caf50;
}

.expert-cons {
    border-left-color: #f44336;
}

.expert-comment {
    border-left-color: #2196f3;
}

.expert-section-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.expert-section-header .expert-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.expert-section-header .expert-icon .material-icons {
    font-size: 20px;
}

.expert-section-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.01em;
}

.expert-pros .expert-section-header h3 {
    color: #8d3f79;
}

.expert-cons .expert-section-header h3 {
    color: #8d3f79;
}

.expert-comment .expert-section-header h3 {
    color: #8d3f79;
}

.expert-section-content {
    color: var(--text-color);
    line-height: 1.75;
    font-size: 1rem;
    white-space: pre-line;
}

/* Catalog table styles */
.catalog-table th {
    font-size: 0.65rem !important;
    font-weight: 500;
    padding: 0.75rem 0.5rem !important;
    white-space: nowrap;
    text-align: center !important;
}

.catalog-table td {
    font-size: 0.8rem;
    padding: 0.75rem 0.5rem !important;
    text-align: center !important;
}

.catalog-table .col-mobile-payments {
    text-align: center;
}

.catalog-table .col-mobile-payments .payment-icons {
    justify-content: center;
}

.catalog-table .col-name {
    text-align: left !important;
}

.catalog-table .col-name strong {
    font-size: 0.85rem !important;
    font-weight: 500;
}

.catalog-controls {
    border: 1px solid var(--border-color);
}

.catalog-controls label {
    user-select: none;
}

.catalog-controls input[type="checkbox"] {
    cursor: pointer;
}

/* Скрываем столбцы по умолчанию, если они не должны быть видны */
.catalog-table .col-format,
.catalog-table .col-maintenance,
.catalog-table .col-limit-transaction,
.catalog-table .col-limit-daily,
.catalog-table .col-limit-monthly,
.catalog-table .col-limit-yearly,
.catalog-table .col-operator-country,
.catalog-table .col-minimum-replenishment,
.catalog-table .col-kyc {
    display: none !important;
}

/* Класс для управления видимостью через JavaScript */
.catalog-table .column-visible {
    display: table-cell !important;
}

.catalog-table thead .column-visible {
    display: table-header-cell !important;
}

.catalog-table .column-hidden {
    display: none !important;
}

/* Material Icons стилизация */
.material-icons {
    font-family: 'Material Icons';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
}

.operator-description p {
    line-height: 1.8;
    font-size: 1.05rem;
    color: var(--text-color);
}

.operator-cards {
    margin-bottom: 3rem;
}

.operator-cards h2 {
    margin-bottom: 1rem;
    margin-top: 0.5rem;
}

.operator-cards .card {
    background: var(--white);
    margin-bottom: 1.5rem;
}

.operator-cards .card-body {
    padding-top: 0.5rem;
}

.card-parameters {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e9ecef;
}

.card-parameters table {
    margin: 0;
    box-shadow: none;
    border: none;
}

.card-parameters table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f0f0f0;
}

.card-parameters table td:first-child {
    font-weight: 500;
    color: var(--text-color);
    width: 40%;
}

.card-parameters table td:last-child {
    color: var(--text-muted);
}

/* Utilities */
.text-center {
    text-align: center;
}

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

.mb-4 {
    margin-bottom: 2rem;
}

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 3rem; }

/* Sections */
section {
    margin-bottom: 4rem;
}

section h2 {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

/* Operator reviews */
.operator-reviews {
    margin-top: 3rem;
    padding-top: 1rem;
    border-top: 2px solid #f0f0f0;
}

.operator-reviews h2 {
    margin-top: 0.5rem;
}

.operator-reviews .card {
    border-left: 3px solid var(--primary-color);
}

/* Links */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-gradient-end);
}

/* Images in cards */
.card img {
    border-radius: 0.5rem;
    max-width: 100%;
    height: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    main {
        margin: 0 0.5rem 2rem 0.5rem;
        padding: 1.5rem 0;
    }
    
    main .container {
        padding: 1.5rem 1rem;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.4rem;
    }
    
    .operator-header {
        text-align: left;
    }
    
    .operator-meta {
        flex-direction: column;
        gap: 1rem;
    }
    
    table {
        font-size: 1rem;
    }
    
    table th,
    table td {
        padding: 0.75rem 1rem;
    }
    
    .card-parameters table td {
        padding-left: 0;
    }
    
    .card-parameters table td:first-child {
        padding-left: 0;
    }
}

/* Forms */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 56, 159, 0.1);
}

.form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    cursor: pointer;
}

/* Стили для полей формы внутри .form-group (без класса form-control) */
.form-group input[type="text"],
.form-group input[type="url"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group input[type="password"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--text-color);
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="url"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus,
.form-group input[type="password"]:focus,
.form-group input[type="tel"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 56, 159, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
    opacity: 0.6;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.form-group select[multiple] {
    background-image: none;
    padding-right: 0.75rem;
    min-height: 100px;
    padding: 0.5rem;
}

.form-group select[multiple] option {
    padding: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--border-radius);
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border-color: #bee5eb;
}

/* Add review form */
.add-review-form {
    margin-top: 2rem;
    padding: 1rem 2rem 2rem 2rem;
    background: var(--white);
    border-radius: 0.75rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    border-left: 4px solid var(--primary-color);
}

.add-review-form h3 {
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

/* Rating stars */
.rating-stars {
    display: inline-flex;
    gap: 0.25rem;
    align-items: center;
}

.rating-stars .star-rating-icon {
    font-size: 1.5rem;
    color: #ddd;
    transition: all 0.2s;
    line-height: 1;
}

.rating-stars .star-rating-icon.filled {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.rating-text {
    margin-left: 0.5rem;
    color: var(--text-muted);
    font-size: 1rem;
}

/* Rating selector for form */
.rating-selector {
    margin-bottom: 0.5rem;
}

.stars-input {
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.star-input {
    font-size: 2rem;
    color: #ddd;
    transition: all 0.2s;
    line-height: 1;
    user-select: none;
    cursor: pointer;
}

.star-input:hover {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transform: scale(1.1);
}

.star-input.selected {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.star-input.selected {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.star-input.hover {
    background: linear-gradient(135deg, var(--primary-gradient-start) 0%, var(--primary-gradient-end) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

.rating-label {
    display: block;
    color: var(--text-muted);
    font-size: 1rem;
    margin-top: 0.25rem;
}

/* Review success message */
.review-success-message {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    padding: 1rem 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.review-success-message .alert {
    margin-bottom: 0;
    font-size: 1.05rem;
    padding: 1rem 1.5rem;
}

/* Payment icons */
table .payment-icon,
.payment-icon {
    height: 16px !important;
    width: auto !important;
    display: inline-block;
    vertical-align: middle;
    border-radius: 0 !important;
    position: relative;
}

table .payment-icons,
.payment-icons {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
}

/* Custom tooltips for payment icons - wrapper approach */
.payment-icon-wrapper {
    position: relative;
    display: inline-block;
    cursor: help;
}

.payment-icon-wrapper[data-tooltip]:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 10px;
    background-color: #333;
    color: #fff;
    font-size: 0.75rem;
    white-space: nowrap;
    border-radius: 4px;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    opacity: 0;
    animation: tooltipFadeIn 0.15s ease-out forwards;
}

.payment-icon-wrapper[data-tooltip]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 3px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    pointer-events: none;
    z-index: 1001;
    opacity: 0;
    animation: tooltipFadeIn 0.15s ease-out forwards;
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(3px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Utility classes for inline styles replacement */
.operator-header-flex {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
}

.operator-header-content-wrapper {
    flex: 1;
}

.operator-description-text {
    margin-bottom: 1rem;
}

.material-icon-sm {
    font-size: 18px;
    vertical-align: middle;
    margin-right: 4px;
}

.material-icon-md {
    font-size: 20px;
    vertical-align: middle;
    margin-right: 6px;
}

.material-icon-lg {
    font-size: 24px;
    vertical-align: middle;
    margin-right: 8px;
}

.material-icon-xs {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 4px;
}

.icon-color-success {
    color: #2e7d32;
}

.icon-color-danger {
    color: #c62828;
}

.btn-wrapper {
    margin-top: 1rem;
}

.btn-wrapper-card {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.btn-wrapper-params {
    margin-top: 1.5rem;
}

.btn-wrapper-expert {
    margin-top: 1.5rem;
    text-align: center;
}

/* Отступы между несколькими кнопками в блоках "Получить карту" (включая CinCin) */
.btn-wrapper .btn:not(:last-child),
.btn-wrapper-card .btn:not(:last-child),
.btn-wrapper-params .btn:not(:last-child),
.btn-wrapper-expert .btn:not(:last-child) {
    margin-right: 0.75rem;
}

@media (max-width: 768px) {
    /* На мобильных кнопки "Получить карту" идут вертикально, без горизонтального отступа */
    .btn-wrapper .btn,
    .btn-wrapper-card .btn,
    .btn-wrapper-params .btn,
    .btn-wrapper-expert .btn {
        display: block;
        width: 100%;
        margin-right: 0;
    }

    .btn-wrapper .btn:not(:last-child),
    .btn-wrapper-card .btn:not(:last-child),
    .btn-wrapper-params .btn:not(:last-child),
    .btn-wrapper-expert .btn:not(:last-child) {
        margin-bottom: 0.75rem;
    }
}

.operator-card-logo img {
    max-width: 120px;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Breadcrumbs */
.breadcrumbs {
    margin-bottom: 0.5rem;
}

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

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

.breadcrumbs-link {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumbs-separator {
    margin: 0 0.5rem;
    color: var(--text-muted);
}

.breadcrumbs-current {
    color: var(--text-color);
}

/* Catalog controls */
.catalog-controls {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
}

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

.catalog-controls-title {
    font-weight: 500;
    color: var(--text-color);
}

.catalog-controls-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.catalog-controls-labels {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.catalog-controls-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-weight: normal;
}

.btn-show-all {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    background: var(--gradient);
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1.5;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn-show-all:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(78, 56, 159, 0.3);
    color: white;
}

.btn-reset {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 0.25rem;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    line-height: 1.5;
    box-sizing: border-box;
    vertical-align: middle;
}

.btn-reset:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.catalog-table-wrapper {
    overflow-x: auto;
}

.catalog-operator-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.catalog-operator-logo {
    max-width: 60px;
    height: auto;
    border-radius: 0.375rem;
    margin-bottom: 0.25rem;
}

.catalog-operator-name {
    font-size: 0.75rem;
    text-align: center;
    color: var(--text-color);
}

.catalog-card-link {
    color: var(--text-color);
    text-decoration: none;
}

.catalog-card-name {
    font-size: 1rem;
}

.rating-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.rating-value-display {
    font-size: 0.85rem;
    text-align: center;
    margin-top: 2px;
    color: var(--text-muted);
}

.payment-icons-center {
    justify-content: center;
}

.payment-icons-margin {
    margin-bottom: 0.5rem;
}

.payment-icons-margin-sm {
    margin-bottom: 0.25rem;
}

.replenishment-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-align: center;
}

.column-hidden {
    display: none !important;
}

.column-visible {
    display: table-cell !important;
}


/* Operators page */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.operator-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 1.5rem;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid var(--border-color);
}

.operator-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.operator-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.operator-card-logo-grid {
    max-width: 120px;
    height: auto;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
}

.operator-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    color: var(--primary-color);
}

.operator-card-description {
    margin: 0;
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.operator-card-rating {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    justify-content: center;
}

.operator-card-star {
    font-size: 1.1rem;
    color: #ffc107;
}

.operator-card-rating-value {
    font-weight: 500;
    color: var(--text-color);
}

/* Home page styles */
.home-intro {
    margin-bottom: 2rem;
}

.home-intro-content {
    background: linear-gradient(135deg, rgba(78, 56, 159, 0.05) 0%, rgba(138, 43, 226, 0.05) 100%);
    padding: 2rem;
    border-radius: var(--border-radius);
    border-left: 4px solid var(--primary-color);
}

.home-intro-content h1 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-color);
}

.home-intro-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-color);
}

.home-intro-content p:last-child {
    margin-bottom: 0;
}

.home-section {
    margin-bottom: 2rem;
}

.home-section h2 {
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Best cards section */
.best-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.best-card-item .card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.best-card-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.best-card-item .card-body {
    padding-bottom: 0;
    padding-top: 1rem;
}

.best-card-content {
    display: flow-root;
}

.best-card-text {
    display: block;
}

.best-card-text .card-title {
    margin-top: 0;
}

.best-card-operator-logo {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.best-card-operator-logo img {
    width: 80px;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.best-card-operator-name {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: var(--text-muted);
}

.best-card-operator-name a {
    color: var(--primary-color);
    text-decoration: none;
}

.best-card-operator-name a:hover {
    text-decoration: underline;
}

.best-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Two columns layout */
.home-two-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Popular operators section */
.popular-operators-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.popular-operator-item .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.popular-operator-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.operator-rating-small {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.5rem;
}

.operator-rating-small .rating-value {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Latest articles section */
.latest-articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.latest-article-item .card {
    transition: transform 0.2s, box-shadow 0.2s;
}

.latest-article-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.latest-article-item .card-body {
    padding-top: 1rem;
    padding-bottom: 0.75rem;
}

.latest-article-content {
    display: flow-root;
}

.latest-article-text {
    display: block;
}

.latest-article-text .card-title {
    margin-top: 0;
}

.latest-article-image {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
}

.latest-article-image img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.5rem;
}

/* Expert reviews section */
.expert-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.expert-review-item .card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.expert-review-item .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.expert-review-item .card-body {
    padding-top: 1rem;
    padding-bottom: 0;
    overflow: hidden;
}

/* Стили для экспертных оценок на главной странице */
.expert-review-item .expert-review-content {
    display: flow-root;
}

.expert-review-text-wrapper {
    display: block;
}

.expert-review-text-wrapper .card-title {
    margin-top: 0;
}

.expert-review-operator-logo {
    float: right;
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 0;
}

.expert-review-operator-logo img {
    max-width: 60px;
    max-height: 60px;
    width: 60px;
    height: auto;
    object-fit: contain;
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: block;
}

.expert-review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0;
}

.expert-review-text {
    margin-bottom: 0;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.85rem;
}

/* User reviews section */
.user-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.user-review-item .card {
    height: 100%;
    transition: transform 0.2s, box-shadow 0.2s;
}

.user-review-item .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.user-review-item .card-body {
    padding-bottom: 0;
}

.user-review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0;
}

.user-review-name {
    font-size: 1rem;
    color: var(--text-color);
}

.user-review-rating {
    display: flex;
    gap: 2px;
}

.user-review-text {
    margin-bottom: 0;
    line-height: 1.6;
    color: var(--text-color);
}

.user-review-operator {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.user-review-operator a {
    color: var(--primary-color);
    text-decoration: none;
}

.user-review-operator a:hover {
    text-decoration: underline;
}

/* Add card section */
.add-card-section {
    margin-bottom: 0;
}

.add-card-block {
    background: var(--gradient);
    padding: 2rem;
    border-radius: var(--border-radius);
    text-align: center;
    color: white;
}

.add-card-content h2 {
    color: white;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.75rem;
    font-weight: 500;
}

.add-card-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

.add-card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: white !important;
    background: none !important;
    -webkit-background-clip: unset !important;
    -webkit-text-fill-color: white !important;
    background-clip: unset !important;
    filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5));
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.add-card-block .btn-primary {
    background: white;
    color: var(--primary-color);
    font-weight: 500;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.add-card-block .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mobile styles for home page */
@media (max-width: 768px) {
    .home-intro-content {
        padding: 1.5rem;
    }
    
    .home-intro-content h1 {
        font-size: 1.5rem;
    }
    
    .best-cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .best-card-content {
        display: flow-root !important;
        gap: 0 !important;
        flex-direction: initial !important;
        align-items: initial !important;
    }
    
    .best-card-operator-logo {
        float: right !important;
        margin-left: 1rem;
        margin-bottom: 0.5rem;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        display: block !important;
    }
    
    .best-card-operator-logo img {
        width: 80px !important;
        max-width: 80px !important;
        height: auto !important;
        display: block;
    }
    
    .best-card-text {
        overflow: visible !important;
        flex: none !important;
        width: auto;
        display: block !important;
        margin: 0;
        min-width: 0;
    }
    
    .home-two-columns {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .expert-reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .user-reviews-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .latest-article-item .card-body {
        display: block !important;
    }
    
    .latest-article-content {
        display: flow-root !important;
        gap: 0 !important;
        flex-direction: initial !important;
        align-items: initial !important;
    }
    
    .latest-article-image {
        float: right !important;
        margin-left: 1rem;
        margin-bottom: 0.5rem;
        width: 100px !important;
        max-width: 100px !important;
        flex-shrink: 0 !important;
        flex-grow: 0 !important;
        flex-basis: auto !important;
        display: block !important;
    }
    
    .latest-article-image img {
        width: 100px !important;
        height: 100px !important;
        display: block;
        max-width: 100px !important;
    }
    
    .latest-article-text {
        overflow: visible !important;
        flex: none !important;
        width: auto;
        display: block !important;
        margin: 0;
        min-width: 0;
    }
    
    .add-card-block {
        padding: 2rem 1.5rem;
    }
    
    .add-card-content h2 {
        font-size: 1.5rem;
    }
    
    .add-card-icon {
        font-size: 2.5rem;
    }
}

/* Add card page */
.add-card-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.add-card-page h1 {
    margin-bottom: 2rem;
    color: var(--text-color);
}

.add-card-form {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
}

.form-section {
    margin-bottom: 3rem;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section h2 {
    margin-bottom: 1.5rem;
    color: var(--text-color);
    border-bottom: 2px solid var(--primary-color);
    padding-bottom: 0.5rem;
    font-size: 1.5rem;
}

.form-section h4 {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.25rem;
}

.form-section p {
    margin-bottom: 1.5rem;
    color: var(--text-muted);
}

.card-form {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease-in-out;
}

.card-form:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.card-form h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 500;
}

.form-actions {
    text-align: center;
    padding-top: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.form-actions .btn {
    min-width: 200px;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

.form-select-multiple {
    min-height: 100px;
    padding: 0.5rem;
}

.form-select-multiple option {
    padding: 0.5rem;
}

.checkbox-group {
    margin-bottom: 0.75rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-weight: normal;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    margin: 0;
    cursor: pointer;
    border: 1px solid var(--border-color);
    border-radius: 0.25rem;
    appearance: none;
    background-color: var(--white);
    position: relative;
    transition: all 0.15s ease-in-out;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 8l2 2 4-4'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100% 100%;
}

.checkbox-label input[type="checkbox"]:hover {
    border-color: var(--primary-color);
}

.checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(78, 56, 159, 0.1);
}

.form-label-text {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-color);
}

@media (max-width: 768px) {
    .add-card-page {
        padding: 1rem 0;
    }
    
    .add-card-form {
        padding: 1.5rem;
    }
    
    .form-section h2 {
        font-size: 1.25rem;
    }
    
    .card-form {
        padding: 1rem;
    }
}

/* Стили для статей */
.article-content {
    line-height: 1.8;
    color: var(--text-color);
}

.article-content h2 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-color);
}

.article-content h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 1.5rem 0;
}

.article-content .article-preview-image {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
    max-width: 300px;
}

.article-content .article-main-image {
    float: right;
    margin: 0 0 1.5rem 1.5rem;
    max-width: 200px;
    width: 200px;
    height: auto;
}

@media (max-width: 768px) {
    .article-content .article-main-image {
        float: none;
        display: block;
        margin: 1.5rem auto;
        max-width: 100%;
        width: 100%;
    }
}

.article-content ul,
.article-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
    padding-left: 1rem;
}

.article-content ul {
    list-style-type: disc;
}

.article-content ol {
    list-style-type: decimal;
}

.article-content li {
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.article-content ul ul,
.article-content ol ol,
.article-content ul ol,
.article-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.article-content a {
    color: var(--primary-gradient-end);
    text-decoration: underline;
    transition: color 0.2s;
}

.article-content a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.article-content .article-toc {
    background-color: #f8f9fa;
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0.5rem;
}

.article-content .article-toc h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.article-content .article-toc ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.article-content .article-toc li {
    margin-bottom: 0.5rem;
}

.article-content .article-toc a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.article-content .article-toc a:hover {
    color: var(--primary-gradient-end);
    text-decoration: underline;
}

.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: var(--white);
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-content table thead {
    background-color: var(--primary-color);
}

.article-content table th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 500;
    color: var(--white);
    background-color: var(--primary-color);
    border-bottom: 2px solid var(--primary-gradient-end);
}

.article-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.article-content table tbody tr:hover {
    background-color: #f8f9fa;
}

@media (max-width: 768px) {
    .article-content .article-preview-image {
        float: none;
        margin-right: 0;
        max-width: 100%;
    }
    
    .article-content ul,
    .article-content ol {
        margin-left: 1.5rem;
    }
}

/* Стили для статических страниц */
.page-content {
    max-width: 900px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.page-content h1 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-color);
    font-weight: 700;
}

.page-content .article-content {
    line-height: 1.8;
    color: var(--text-color);
}

.page-content .article-content h2 {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.page-content .article-content h3 {
    font-size: 1.25rem;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    font-weight: 600;
}

.page-content .article-content p {
    margin-bottom: 1rem;
}

.page-content .article-content ul,
.page-content .article-content ol {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.page-content .article-content li {
    margin-bottom: 0.5rem;
}

.page-content .article-content a {
    color: var(--primary-color);
    text-decoration: underline;
    transition: color 0.2s;
}

.page-content .article-content a:hover {
    color: var(--primary-gradient-end);
}

@media (max-width: 768px) {
    .page-content {
        margin: 1rem auto;
        padding: 0 0.75rem;
    }
    
    .page-content h1 {
        font-size: 1.5rem;
    }
    
    .page-content .article-content h2 {
        font-size: 1.25rem;
    }
    
    .page-content .article-content h3 {
        font-size: 1.1rem;
    }
    
    .page-content .article-content ul,
    .page-content .article-content ol {
        margin-left: 1.5rem;
    }
}

/* Стили для формы обратной связи */
.contact-form-section {
    margin: 2rem 0;
}

.contact-form-section .contact-form {
    margin-top: 1.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color);
}

.contact-info-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-color);
}

.contact-info-section h2 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .contact-form-section .contact-form {
        padding: 1.5rem;
    }
}
