/* ========================================
   BankiReview.ru — Основные стили
   ======================================== */

/* ── ПЕРЕМЕННЫЕ ── */
:root {
    --blue:       #2563eb;
    --blue-dark:  #1d4ed8;
    --navy:       #0f172a;
    --navy-mid:   #1e293b;
    --text:       #1e293b;
    --text-muted: #64748b;
    --border:     #e2e8f0;
    --bg-light:   #f8fafc;
    --bg-white:   #ffffff;
    --radius:     14px;
    --radius-sm:  8px;
    --shadow:     0 4px 16px rgba(15,23,42,.07);
    --shadow-md:  0 8px 28px rgba(15,23,42,.13);
    --shadow-lg:  0 16px 48px rgba(15,23,42,.18);
    --transition: .25s ease;
}

/* ── СБРОС И БАЗОВЫЕ СТИЛИ ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

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

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

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

/* ── КНОПКА ── */
.btn {
    display: inline-block;
    padding: 13px 32px;
    background: var(--blue);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: .015em;
    transition: all var(--transition);
    box-shadow: 0 4px 12px rgba(37,99,235,.28);
}
.btn:hover {
    background: var(--blue-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37,99,235,.38);
}

/* ── ШАПКА ── */
.header {
    background: var(--bg-white);
    box-shadow: 0 1px 0 var(--border);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    height: 64px;
}
.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: -.02em;
    flex-shrink: 0;
    margin-right: auto;
}
.logo span { color: var(--blue); }
.main-nav { margin-left: 0; }
.main-nav ul { display: flex; list-style: none; gap: 4px; }
.main-nav a {
    padding: 8px 14px;
    font-weight: 500;
    font-size: 14.5px;
    color: var(--text-muted);
    border-radius: 6px;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.nav-active {
    color: var(--blue);
    background: rgba(37,99,235,.07);
}

/* ════════════════════════════════════════
   ГЕРОЙ-СЛАЙДЕР
   ════════════════════════════════════════ */
.hero-slider {
    position: relative;
    width: 100%;
    height: 560px;
    overflow: hidden;
    background: var(--navy);
}
.slider-track { position: relative; width: 100%; height: 100%; }
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .9s ease;
    background-size: cover;
    background-position: center;
}
.hero-slide.active { opacity: 1; }
.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9,17,34,.94) 0%,
        rgba(9,17,34,.42) 52%,
        rgba(9,17,34,.08) 100%
    );
}
.hero-slide-content {
    position: absolute;
    bottom: 72px;
    left: 0; right: 0;
    padding: 0 60px;
    z-index: 2;
    color: #fff;
    max-width: 1248px;
    margin: 0 auto;
}
.hero-slide-cat {
    display: inline-block;
    padding: 4px 12px;
    background: var(--blue);
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 14px;
}
.hero-slide-title {
    font-size: 36px;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 14px;
    letter-spacing: -.02em;
    max-width: 680px;
}
.hero-slide-excerpt {
    font-size: 16px;
    opacity: .78;
    max-width: 540px;
    line-height: 1.6;
    margin-bottom: 26px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.hero-slide-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 26px;
    background: #fff;
    color: var(--navy);
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 14px;
    transition: all var(--transition);
}
.hero-slide-link:hover {
    background: var(--blue);
    color: #fff;
    transform: translateY(-2px);
}
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,.12);
    border: 1.5px solid rgba(255,255,255,.32);
    color: #fff;
    width: 50px; height: 50px;
    border-radius: 50%;
    font-size: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    backdrop-filter: blur(6px);
}
.slider-btn:hover {
    background: rgba(255,255,255,.24);
    transform: translateY(-50%) scale(1.08);
}
.slider-prev { left: 24px; }
.slider-next { right: 24px; }
.slider-dots {
    position: absolute;
    bottom: 26px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 7px;
    align-items: center;
}
.slider-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,.38);
    cursor: pointer;
    transition: all var(--transition);
    border: none; padding: 0;
}
.slider-dot.active {
    background: #fff;
    width: 26px;
    border-radius: 4px;
}
.slider-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: rgba(255,255,255,.4);
    font-size: 17px;
}

/* ════════════════════════════════════════
   СЕКЦИЯ: СВЕЖИЕ ПУБЛИКАЦИИ
   Редакционный коллаж 1 большая + 2 справа
   ════════════════════════════════════════ */
.editorial-section {
    padding: 80px 0 72px;
    background: var(--bg-white);
}
.editorial-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    grid-template-rows: 1fr 1fr;
    gap: 12px;
    height: 500px;
}
.editorial-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--navy-mid);
    background-size: cover;
    background-position: center;
    display: block;
    transition: transform .4s ease, box-shadow .4s ease;
    box-shadow: var(--shadow);
}
.editorial-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(9,17,34,.90) 0%,
        rgba(9,17,34,.12) 55%,
        transparent 100%
    );
    transition: opacity .4s;
}
.editorial-card:hover {
    transform: scale(1.016);
    box-shadow: var(--shadow-lg);
}
.editorial-card--main {
    grid-row: 1 / 3;
}
.editorial-sides {
    grid-row: 1 / 3;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.editorial-card--side {
    flex: 1;
}
.editorial-card-content {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 20px 22px;
    z-index: 2;
    color: #fff;
}
.editorial-card-cat {
    display: inline-block;
    padding: 3px 10px;
    background: var(--blue);
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 8px;
}
.editorial-card--main .editorial-card-title {
    font-size: 22px;
    font-weight: 800;
    line-height: 1.28;
    margin-bottom: 6px;
    letter-spacing: -.015em;
}
.editorial-card--side .editorial-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    margin-bottom: 4px;
}
.editorial-card-date {
    font-size: 12px;
    opacity: .6;
}

/* ════════════════════════════════════════
   СЕКЦИЯ: ЧИТАЮТ СЕЙЧАС (ПОПУЛЯРНОЕ)
   Тёмный фон, 4 горизонтальные карточки
   ════════════════════════════════════════ */
.trending-section {
    padding: 72px 0;
    background: var(--navy);
}
.trending-section .section-header h2 { color: #fff; }
.trending-section .section-link { color: rgba(255,255,255,.55); }
.trending-section .section-link:hover { color: #fff; }

.trending-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.trending-card {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all var(--transition);
    display: block;
    color: #fff;
}
.trending-card:hover {
    background: rgba(255,255,255,.11);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.3);
}
.trending-card-num {
    position: absolute;
    top: 12px; left: 14px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255,255,255,.45);
    z-index: 2;
}
.trending-card-img-wrap {
    position: relative;
    height: 160px;
    overflow: hidden;
}
.trending-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
    filter: brightness(.82);
}
.trending-card:hover .trending-card-img-wrap img { transform: scale(1.06); }
.trending-card-body {
    padding: 16px 18px 20px;
}
.trending-card-cat {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .9px;
    color: var(--blue);
    margin-bottom: 8px;
}
.trending-card-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    margin-bottom: 8px;
}
.trending-card-date {
    font-size: 12px;
    color: rgba(255,255,255,.4);
}

/* ════════════════════════════════════════
   СЕКЦИЯ: ПО ТЕМАМ (CATEGORY SHOWCASE)
   ════════════════════════════════════════ */
.category-showcase {
    padding: 80px 0;
    background: var(--bg-light);
}
.home-category-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.home-cat-btn {
    padding: 8px 20px;
    border: 2px solid var(--border);
    background: #fff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.home-cat-btn:hover { border-color: var(--blue); color: var(--blue); }
.home-cat-btn.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}
.category-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

/* ── СЕКЦИЯ ЗАГОЛОВКОВ ── */
.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 28px;
}
.section-header h2 {
    font-size: 28px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0;
}
.section-link {
    font-size: 14px;
    color: var(--blue);
    font-weight: 600;
    white-space: nowrap;
    transition: color var(--transition);
}
.section-link:hover { color: var(--blue-dark); }

/* ════════════════════════════════════════
   ПОЧЕМУ НАМ ДОВЕРЯЮТ
   ════════════════════════════════════════ */
.why-us {
    padding: 80px 0;
    background: #fff;
    text-align: center;
}
.why-us h2 {
    font-size: 28px;
    margin-bottom: 48px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.02em;
}
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.feature {
    padding: 32px 28px;
    background: var(--bg-light);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-align: center;
}
.feature:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.feature-icon-wrap {
    width: 56px; height: 56px;
    background: rgba(37,99,235,.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}
.feature-icon-wrap svg {
    width: 26px; height: 26px;
    stroke: var(--blue);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.feature h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: var(--navy);
    font-weight: 700;
}
.feature p {
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ════════════════════════════════════════
   КАРТОЧКА СТАТЬИ (универсальная)
   ════════════════════════════════════════ */
.article-card {
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}
.article-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.article-image-link {
    display: block;
    height: 195px;
    overflow: hidden;
    flex-shrink: 0;
}
.article-image {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.article-card:hover .article-image { transform: scale(1.05); }
.article-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 10px;
}
.article-cat-badge {
    display: inline-block;
    padding: 2px 9px;
    background: rgba(37,99,235,.1);
    color: var(--blue);
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.article-date, .article-read-time {
    font-size: 12.5px;
    color: var(--text-muted);
}
.article-title {
    font-size: 16.5px;
    margin-bottom: 10px;
    line-height: 1.42;
    flex: 1;
    font-weight: 700;
}
.article-title a { color: var(--navy); }
.article-title a:hover { color: var(--blue); }
.article-excerpt {
    color: var(--text-muted);
    font-size: 13.5px;
    line-height: 1.62;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 14px;
}
.read-more {
    color: var(--blue);
    font-weight: 600;
    font-size: 13.5px;
    margin-top: auto;
    display: inline-block;
}
.read-more:hover { color: var(--blue-dark); }

/* Лоадеры */
.grid-loader {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 15px;
    grid-column: 1 / -1;
}
.no-articles {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 15px;
    grid-column: 1 / -1;
}

/* ── FAQ ── */
.faq {
    padding: 80px 0;
    background: var(--bg-light);
}
.faq h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 44px;
    color: var(--navy);
    font-weight: 800;
    letter-spacing: -.02em;
}
.faq-item {
    background: #fff;
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.faq-question {
    padding: 18px 24px;
    cursor: pointer;
    font-weight: 600;
    color: var(--navy);
    font-size: 16px;
    position: relative;
    transition: background var(--transition);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.faq-question::after {
    content: '';
    display: block;
    width: 18px; height: 18px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' 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-size: contain;
    transition: transform var(--transition);
}
.faq-question:hover { background: var(--bg-light); }
.faq-question.active { color: var(--blue); background: rgba(37,99,235,.04); }
.faq-question.active::after { transform: rotate(180deg); }
.faq-answer {
    padding: 0 24px;
    max-height: 0;
    overflow: hidden;
    transition: max-height .4s ease, padding .4s ease;
    color: var(--text-muted);
    line-height: 1.72;
    font-size: 15px;
}
.faq-answer.show { padding: 18px 24px 22px; max-height: 500px; }
.faq-answer a { color: var(--blue); text-decoration: underline; }

/* ── ПОДПИСКА ── */
.newsletter {
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
    padding: 80px 0;
    color: #fff;
    text-align: center;
}
.newsletter h2 { font-size: 30px; margin-bottom: 14px; font-weight: 800; letter-spacing: -.02em; }
.newsletter p { font-size: 17px; margin-bottom: 36px; opacity: .8; }
.subscribe-form {
    max-width: 460px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.subscribe-form .form-group input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    outline: none;
}
.subscribe-form .btn {
    background: var(--blue);
    margin-top: 4px;
    padding: 14px;
}
.form-message {
    padding: 12px;
    border-radius: 6px;
    font-size: 14.5px;
    display: none;
}

/* ════════════════════════════════════════
   ФУТЕР (единый для всех страниц)
   ════════════════════════════════════════ */
.footer {
    background: var(--navy);
    color: #94a3b8;
    padding: 60px 0 32px;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 40px;
}
.footer-logo {
    font-size: 21px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
    display: block;
    margin-bottom: 12px;
}
.footer-tagline {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    max-width: 280px;
}
.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #fff;
    margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 14px;
    color: #64748b;
    transition: color var(--transition);
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.07);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.copyright { font-size: 13px; color: #475569; }
.footer-disclaimer { font-size: 12px; color: #334155; }

/* ════════════════════════════════════════
   СТРАНИЦА /articles/
   ════════════════════════════════════════ */
.articles-page { padding: 60px 0 80px; }
.articles-page h1 {
    font-size: 36px;
    margin-bottom: 10px;
    color: var(--navy);
    text-align: center;
    font-weight: 800;
    letter-spacing: -.025em;
}
.articles-page .subtitle {
    font-size: 16px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 36px;
}

/* Поиск */
.search-bar-wrapper { margin-bottom: 26px; }
.search-bar { position: relative; max-width: 560px; margin: 0 auto; }
.search-icon {
    position: absolute;
    left: 16px; top: 50%;
    transform: translateY(-50%);
    width: 18px; height: 18px;
    color: var(--text-muted);
    pointer-events: none;
}
#search-input {
    width: 100%;
    padding: 13px 46px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    background: #fff;
    color: var(--text);
}
#search-input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(37,99,235,.1);
}
#search-input::placeholder { color: #cbd5e1; }
.search-clear {
    position: absolute;
    right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    cursor: pointer; color: var(--text-muted);
    font-size: 15px; display: none;
    align-items: center; justify-content: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    transition: background var(--transition);
}
.search-clear:hover { background: var(--bg-light); }

/* Табы категорий */
.category-tabs-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-bottom: 20px;
}
.category-tabs-wrapper::-webkit-scrollbar { display: none; }
.category-tabs { display: flex; gap: 7px; padding-bottom: 2px; white-space: nowrap; }
.cat-tab {
    padding: 7px 18px;
    border: 2px solid var(--border);
    background: #fff;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}
.cat-tab:hover { border-color: var(--blue); color: var(--blue); }
.cat-tab.active {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
    font-weight: 600;
}

/* Управление */
.articles-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}
.articles-count { font-size: 13.5px; color: var(--text-muted); }
.filter-group { display: flex; align-items: center; gap: 10px; }
.filter-group label {
    font-weight: 600;
    color: var(--text);
    font-size: 13.5px;
    white-space: nowrap;
}
.filter-group select {
    padding: 8px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    background: #fff;
    font-size: 13.5px;
    min-width: 160px;
    cursor: pointer;
    transition: border-color var(--transition);
    color: var(--text);
}
.filter-group select:focus { outline: none; border-color: var(--blue); }

/* Сетка статей /articles/ */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 26px;
    margin-bottom: 40px;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.pagination-btn {
    padding: 8px 15px;
    border: 1.5px solid var(--border);
    background: #fff;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
    font-size: 13.5px;
    min-width: 38px;
    text-align: center;
    color: var(--text);
}
.pagination-btn:hover:not(.disabled):not(.active) {
    background: rgba(37,99,235,.06);
    border-color: var(--blue);
    color: var(--blue);
}
.pagination-btn.active {
    background: var(--navy);
    color: #fff;
    border-color: var(--navy);
    font-weight: 700;
}
.pagination-btn.disabled { opacity: .4; cursor: not-allowed; }
.pagination-ellipsis { padding: 8px 4px; color: var(--text-muted); font-size: 13.5px; }

/* Спиннер */
.loading-spinner {
    width: 44px; height: 44px;
    border: 4px solid var(--bg-light);
    border-top: 4px solid var(--blue);
    border-radius: 50%;
    animation: spin .85s linear infinite;
    margin: 60px auto;
    grid-column: 1 / -1;
}
@keyframes spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.error-message {
    text-align: center;
    padding: 24px;
    color: #dc2626;
    font-size: 15px;
    background: #fef2f2;
    border-radius: var(--radius-sm);
    margin: 0 auto;
    max-width: 560px;
    grid-column: 1 / -1;
}

/* ════════════════════════════════════════
   СТРАНИЦА "О НАС" и прочие
   ════════════════════════════════════════ */
.about-page { padding: 60px 0; }
.about-page h1 { font-size: 34px; margin-bottom: 12px; color: var(--navy); text-align: center; font-weight: 800; }
.about-section { margin-bottom: 40px; }
.about-section h2 { font-size: 24px; margin-bottom: 16px; color: var(--navy); }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 20px;
    margin-top: 16px;
}
.feature-box { background: var(--bg-light); padding: 20px; border-radius: var(--radius-sm); }
.feature-box h3 { color: var(--navy); margin-bottom: 8px; }
.about-list { padding-left: 22px; margin: 16px 0; }
.about-list li { margin-bottom: 9px; color: var(--text-muted); }

.cards-page { padding: 60px 0; }
.cards-page h1 { font-size: 32px; margin-bottom: 12px; color: var(--navy); text-align: center; font-weight: 800; }
.page-intro { text-align: center; font-size: 16px; color: var(--text-muted); margin-bottom: 38px; }
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 22px;
    margin-bottom: 38px;
}
.card-item {
    background: #fff;
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform var(--transition), box-shadow var(--transition);
}
.card-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}
.bank-logo { text-align: center; margin-bottom: 14px; }
.bank-logo img { max-height: 38px; max-width: 140px; object-fit: contain; }
.card-item h3 { font-size: 19px; margin-bottom: 12px; color: var(--navy); text-align: center; font-weight: 700; }
.card-features { list-style: none; margin: 16px 0; padding: 0; }
.card-features li {
    margin-bottom: 9px;
    padding-left: 20px;
    position: relative;
    color: var(--text-muted);
    font-size: 14.5px;
    line-height: 1.5;
}
.card-features li::before {
    content: '';
    position: absolute;
    left: 0; top: 6px;
    width: 8px; height: 8px;
    background: #22c55e;
    border-radius: 50%;
}
.card-btn { display: block; width: 100%; text-align: center; margin-top: 10px; }
.disclaimer {
    background: var(--bg-light);
    padding: 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-muted);
    text-align: center;
}

/* ════════════════════════════════════════
   СТАТЬЯ (article-container в style.css)
   ════════════════════════════════════════ */
.article-container {
    max-width: 800px;
    margin: 48px auto;
    padding: 0 24px;
}
.breadcrumbs {
    margin-bottom: 20px;
    font-size: 13.5px;
    color: var(--text-muted);
}
.breadcrumbs a { color: var(--blue); }
.article-header h1 {
    font-size: 30px;
    margin-bottom: 16px;
    color: var(--navy);
    line-height: 1.3;
    font-weight: 800;
}
.article-body {
    line-height: 1.78;
    font-size: 16px;
    color: #374151;
}
.article-body h2 { font-size: 22px; margin: 30px 0 14px; color: var(--navy); }
.article-body h3 { font-size: 18px; margin: 22px 0 10px; color: var(--navy); }
.article-body p { margin-bottom: 16px; }
.article-body ul, .article-body ol { padding-left: 22px; margin: 12px 0; }
.article-body li { margin-bottom: 8px; }
.article-body a { color: var(--blue); text-decoration: underline; }
.article-body a:hover { color: var(--blue-dark); }

/* ════════════════════════════════════════
   АДАПТИВНОСТЬ
   ════════════════════════════════════════ */
@media (max-width: 1024px) {
    .editorial-grid { height: 420px; }
    .editorial-card--main .editorial-card-title { font-size: 20px; }
    .trending-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .editorial-card--main { height: 280px; }
    .editorial-card--side { height: 190px; }
    .features { grid-template-columns: 1fr; }
    .category-articles-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .hero-slider { height: 400px; }
    .hero-slide-content { padding: 0 20px; bottom: 50px; }
    .hero-slide-title { font-size: 22px; }
    .hero-slide-excerpt { display: none; }
    .slider-prev { left: 10px; }
    .slider-next { right: 10px; }
    .slider-btn { width: 40px; height: 40px; font-size: 24px; }

    .header .container { gap: 10px; }
    .logo { font-size: 19px; }
    .main-nav a { padding: 6px 10px; font-size: 13.5px; }

    .editorial-grid { display: flex; flex-direction: column; height: auto; }
    .editorial-sides { flex-direction: column; }
    .editorial-card--main { height: 240px; }
    .editorial-card--side { height: 170px; flex: none; }

    .trending-grid { grid-template-columns: 1fr 1fr; }
    .section-header h2 { font-size: 22px; }
    .category-articles-grid { grid-template-columns: 1fr; }

    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .footer-bottom { flex-direction: column; text-align: center; }

    .articles-grid { grid-template-columns: 1fr; }
    .articles-controls { flex-direction: column; align-items: stretch; }
    .filter-group { justify-content: space-between; }
    .filter-group select { min-width: auto; flex: 1; }
    .cards-grid, .features-grid { grid-template-columns: 1fr; }
}

@media (max-width: 540px) {
    .trending-grid { grid-template-columns: 1fr; }
    .hero-slider { height: 340px; }
    .hero-slide-title { font-size: 19px; }
    .hero-slide-link { padding: 9px 16px; font-size: 13px; }
    .editorial-card--main { height: 210px; }
    .editorial-card--main .editorial-card-title { font-size: 16px; }
    .home-cat-btn { padding: 7px 14px; font-size: 13px; }
    .pagination-btn { padding: 7px 10px; font-size: 13px; }
    .footer-grid { gap: 20px; }
}
