/* ========================================
   Banki-Tut.ru — Основные стили
   Версия: 1.0
   Секции:
   1. Общие стили
   2. Шапка сайта
   3. Главная страница
     - Слайдер
     - Почему мы
     - Отзывы
     - FAQ
     - Форма подписки
   4. Блог
   5. Кредитные карты
   6. Дебетовые карты
   7. Футер
   8. Адаптивность (общая)
======================================== */


/* ========================================
   1. Общие стили
======================================== */
body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #2c3e50;
    color: white;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #1a252f;
}


/* ========================================
   2. Шапка сайта
======================================== */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

.logo-link {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
    display: inline-block;
    margin-right: 30px;
}

.main-nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav li {
    margin-right: 20px;
}

.main-nav a {
    color: #2c3e50;
    font-weight: 500;
    transition: color 0.3s;
}

.main-nav a:hover {
    color: #3498db;
}


/* ========================================
   3. Главная страница
======================================== */

/* --- Слайдер (обновлённый) --- */
.hero-slider {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4edf9 100%);
    padding: 60px 0;
    position: relative;
    overflow: visible;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 480px;
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), visibility 0.6s;
    display: flex;
    flex-direction: row;
    padding: 0 40px;
    box-sizing: border-box;
}

.slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* Контент */
.blog-slide-content {
    flex: 1;
    padding-right: 40px;
    position: relative;
    z-index: 2;
}

.blog-slide-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -30px;
    width: 4px;
    height: 60px;
    background: linear-gradient(to bottom, #3498db, #2c3e50);
    border-radius: 2px;
}

.blog-badge {
    display: inline-block;
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 10px rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(231, 76, 60, 0); }
    100% { box-shadow: 0 0 0 0 rgba(231, 76, 60, 0); }
}

.blog-slide h2 {
    font-size: 38px;
    margin-bottom: 20px;
    color: #2c3e50;
    line-height: 1.2;
    font-weight: 700;
    max-width: 600px;
}

.blog-slide p {
    font-size: 18px;
    margin-bottom: 30px;
    max-width: 550px;
    line-height: 1.6;
    color: #555;
}

.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 25px rgba(52, 152, 219, 0.4);
    background: linear-gradient(135deg, #2980b9, #2573a7);
}

/* Изображение */
.blog-slide-image {
    flex: 0 0 420px;
    max-width: 420px;
    height: 100%;
    border-radius: 0 20px 20px 0;
    overflow: hidden;
    position: relative;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
}

.blog-slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide.active .blog-slide-image img {
    transform: scale(1.03);
}

/* Кнопки навигации — ВНЕ .slider */
.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    color: #2c3e50;
    border: none;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.slider-prev:hover,
.slider-next:hover {
    background: #3498db;
    color: white;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.4);
}

.slider-prev {
    left: -30px;
}

.slider-next {
    right: -30px;
}

/* Индикаторы */
.slider-indicators {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: rgba(52, 152, 219, 0.3);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.indicator.active,
.indicator:hover {
    background-color: #3498db;
}

/* Адаптивность */
@media (max-width: 1024px) {
    .slider-wrapper { height: 440px; }
    .blog-slide h2 { font-size: 32px; }
    .blog-slide-image { flex: 0 0 380px; }
}

@media (max-width: 768px) {
    .slider-wrapper { height: auto; min-height: 420px; }
    .slider { border-radius: 16px; }
    .slide { flex-direction: column; padding: 30px; text-align: center; }
    .blog-slide-content { padding-right: 0; margin-bottom: 25px; }
    .blog-slide-content::before { display: none; }
    .blog-slide h2 { font-size: 28px; margin: 0 auto 20px; }
    .blog-slide p { margin: 0 auto 25px; }
    .blog-slide-image { flex: 0 0 280px; max-width: 100%; border-radius: 16px; }
    .slider-prev { left: 15px; }
    .slider-next { right: 15px; }
    .slider-prev, .slider-next {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .slider-wrapper { min-height: 360px; }
    .blog-slide h2 { font-size: 24px; }
    .blog-slide p { font-size: 16px; }
    .blog-slide-image { flex: 0 0 220px; }
    .slider-prev, .slider-next {
        width: 42px;
        height: 42px;
        font-size: 16px;
    }
    .slider-indicators { display: none; }
}

/* --- Почему мы --- */
.why-us {
    padding: 60px 0;
    background-color: white;
}

.why-us h2 {
    text-align: center;
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 50px;
}

.features {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.feature {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.feature h3 {
    font-size: 22px;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 600;
}

.feature p {
    color: #7f8c8d;
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

/* --- Отзывы --- */
.reviews {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.reviews h2 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 40px;
}

.review-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.review {
    flex: 1;
    min-width: 300px;
    margin: 0 15px 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.review blockquote {
    font-style: italic;
    margin: 0 0 15px;
    position: relative;
}

.review blockquote::before {
    content: '"';
    font-size: 50px;
    color: #3498db;
    position: absolute;
    left: -20px;
    top: -20px;
    opacity: 0.3;
}

.review cite {
    display: block;
    text-align: right;
    font-style: normal;
    font-weight: bold;
    color: #7f8c8d;
}

/* --- FAQ --- */
.faq {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.faq h2 {
    text-align: center;
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 50px;
}

.faq-item {
    margin-bottom: 10px;
    background-color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 10px 0;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    color: #2c3e50;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 20px;
    color: #3498db;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"]::after {
    content: '−';
}

.faq-answer {
    padding: 0 0 15px;
    color: #555;
    line-height: 1.6;
    display: none;
}

/* Разделитель между вопросами */
.faq-item:not(:last-child)::after {
    content: '';
    display: block;
    height: 1px;
    background-color: #ecf0f1;
    margin-top: 15px;
    width: 100%;
}

/* Анимация раскрытия */
.faq-answer[style*="block"] {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

/* --- Форма подписки --- */
.newsletter {
    padding: 60px 0;
    background-color: #3498db;
    color: white;
    text-align: center;
}

.newsletter h2 {
    margin-bottom: 20px;
    font-size: 32px;
}

.newsletter p {
    margin-bottom: 30px;
    font-size: 18px;
}

#subscribe-form {
    max-width: 500px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
}


/* ========================================
   4. Блог
======================================== */
.blog-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.page-title {
    font-size: 32px;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    text-align: center;
    margin-bottom: 40px;
}

/* Сетка статей */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.blog-card {
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.blog-card-link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.blog-card-image {
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.blog-card:hover .blog-card-image img {
    transform: scale(1.05);
}

.blog-card-content {
    padding: 20px;
}

.blog-card-title {
    font-size: 20px;
    margin: 0 0 10px;
    color: #2c3e50;
}

.blog-card-excerpt {
    color: #7f8c8d;
    margin: 0 0 15px;
    font-size: 14px;
    line-height: 1.5;
}

.blog-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #95a5a6;
}

.no-articles {
    text-align: center;
    grid-column: 1 / -1;
    padding: 40px;
    color: #7f8c8d;
}

/* Контент статьи */
.article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.article-content h1 {
    color: #2c3e50;
    font-size: 32px;
    margin-bottom: 20px;
}

.article-content h2 {
    color: #3498db;
    font-size: 24px;
    margin: 30px 0 15px;
}

.article-content h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 25px 0 10px;
}

.article-meta {
    color: #95a5a6;
    font-size: 14px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
}

.article-content img {
    max-width: 100%;
    height: auto;
    margin: 20px 0;
    border-radius: 8px;
}

.tip, .warning {
    padding: 15px;
    margin: 20px 0;
    border-left: 4px solid;
    border-radius: 4px;
}

.tip {
    background-color: #e8f5e9;
    border-color: #4caf50;
}

.warning {
    background-color: #fff8e1;
    border-color: #ffc107;
}

.article-content blockquote {
    border-left: 4px solid #3498db;
    padding-left: 15px;
    margin: 20px 0;
    color: #7f8c8d;
    font-style: italic;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

th, td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

th {
    background-color: #f2f2f2;
}


/* ========================================
   5. Кредитные карты
======================================== */
.credit-cards-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 36px;
    color: #2c3e50;
    margin-bottom: 10px;
}

.page-subtitle {
    font-size: 18px;
    color: #7f8c8d;
    margin-bottom: 30px;
}

/* Фильтры */
.filters {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #2c3e50;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-buttons button {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.btn-apply {
    background: #3498db;
    color: white;
}

.btn-reset {
    background: #e74c3c;
    color: white;
}

/* Сетка карт */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.card-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.card-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
}

.card-header.sber {
    background: linear-gradient(135deg, #21a038 0%, #17802c 100%);
}

.card-header.vtb {
    background: linear-gradient(135deg, #1e4685 0%, #152f5c 100%);
}

.card-header.alfa {
    background: linear-gradient(135deg, #ef3124 0%, #cc291d 100%);
}

.card-header.tinkoff {
    background: linear-gradient(135deg, #ffdd2d 0%, #fcc521 100%);
    color: #333;
}

.bank-logo {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 15px;
}

.card-name {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card-description {
    font-size: 14px;
    opacity: 0.9;
}

.card-content {
    padding: 25px;
}

.card-features {
    margin-bottom: 20px;
}

.feature {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.feature:last-child {
    border-bottom: none;
}

.feature-name {
    color: #7f8c8d;
    font-size: 14px;
}

.feature-value {
    font-weight: bold;
    color: #2c3e50;
}

.feature-value.highlight,
.feature-value.free {
    color: #27ae60;
}

.feature-value.paid {
    color: #e74c3c;
}

.card-actions {
    display: flex;
    gap: 10px;
}

.btn-details {
    flex: 1;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-details:hover {
    background: #2980b9;
}

.btn-apply {
    flex: 2;
    padding: 12px;
    background: #27ae60;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    transition: background 0.3s;
}

.btn-apply:hover {
    background: #219a52;
}

/* Статистика */
.stats {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.stat-item {
    padding: 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: bold;
    color: #3498db;
    margin-bottom: 10px;
}

.stat-label {
    color: #7f8c8d;
    font-size: 14px;
}


/* ========================================
   6. Дебетовые карты
======================================== */
.debit-cards-page {
    padding: 40px 0;
    background-color: #f8f9fa;
}

/* Переиспользуются общие классы: page-header, page-title, filters, cards-grid и т.д. */

/* Логотипы банков (дополнительные) */
.card-header.raiffeisen {
    background: linear-gradient(135deg, #ff6b35 0%, #e85a2b 100%);
}

.card-header.tochka {
    background: linear-gradient(135deg, #8e44ad 0%, #6c3483 100%);
}

/* Особенности дебетовых карт */
.debit-features {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.debit-features h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 40px;
    color: #3498db;
    margin-bottom: 15px;
}

.feature-title {
    font-weight: bold;
    color: #2c3e50;
    margin-bottom: 10px;
}


/* ========================================
   7. Футер
======================================== */
.footer {
    background-color: #2c3e50;
    color: white;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-bottom: 20px;
}

.footer-links a {
    color: white;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #3498db;
}


/* ========================================
   8. Адаптивность (общие правила)
======================================== */
@media (max-width: 768px) {
    /* Шапка */
    .header {
        text-align: center;
    }
    
    .logo-link {
        display: block;
        margin: 0 0 15px;
    }
    
    .main-nav ul {
        justify-content: center;
    }

    /* Главная */
    .hero-slider {
        height: 450px;
        padding: 40px 0;
    }
    
    .slider {
        height: 350px;
    }
    
    .slide h1,
    .blog-slide h2 {
        font-size: 28px;
    }
    
    .slide p {
        font-size: 16px;
    }
    
    .slider-prev, .slider-next {
        width: 40px;
        height: 40px;
        padding: 10px;
        font-size: 16px;
    }

    .blog-slide {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }
    
    .blog-slide-content {
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    .blog-slide-image {
        max-width: 300px;
    }

    .slider-indicators {
        bottom: 10px;
    }
    
    .indicator {
        width: 10px;
        height: 10px;
    }

    /* Блог */
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .page-title {
        font-size: 28px;
    }
    
    .page-subtitle {
        font-size: 16px;
    }

    .article-meta {
        flex-direction: column;
        gap: 10px;
    }

    /* Карточки */
    .card-actions {
        flex-direction: column;
    }

    .stats-grid,
    .features-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
        padding: 30px 0;
    }
    
    .slider {
        height: 300px;
    }
    
    .slide h1,
    .blog-slide h2 {
        font-size: 24px;
    }
    
    .slide p {
        font-size: 14px;
    }
    
    .slider-prev, .slider-next {
        width: 35px;
        height: 35px;
        padding: 8px;
        font-size: 14px;
    }

    .blog-slide-image {
        max-width: 250px;
    }

    .slider-indicators {
        display: none;
    }
}
/* ========================================
   9. Страница отзывов
======================================== */
.reviews-page {
    padding: 40px 0;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.reviews-list {
    margin: 40px 0;
}

.review-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-author {
    font-weight: bold;
    color: #2c3e50;
    font-size: 16px;
}

.review-city {
    color: #7f8c8d;
    font-size: 14px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.review-bank {
    background: #3498db;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.review-product {
    background: #27ae60;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
}

.review-rating {
    color: #f39c12;
    font-weight: bold;
}

.review-text {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 15px;
}

.review-date {
    color: #95a5a6;
    font-size: 12px;
    text-align: right;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 2px solid #3498db;
    border-radius: 6px;
    text-decoration: none;
    color: #3498db;
    font-weight: 500;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background: #3498db;
    color: white;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Форма добавления отзыва */
.add-review {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-top: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.add-review h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #2c3e50;
}

.add-review textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    font-family: inherit;
    resize: vertical;
}

/* Адаптивность для страницы отзывов */
@media (max-width: 768px) {
    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .review-meta {
        gap: 8px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 35px;
        height: 35px;
        padding: 0 8px;
        font-size: 14px;
    }
    
    .add-review {
        padding: 20px;
    }
}