/*
Theme Name: BestMarka
Theme URI: https://bestmarka.ru/
Author: BestMarka Team
Description: Премиум-тема для финансового гида и рейтинга банков.
Version: 2.2.0
License: GNU General Public License v2 or later
Text Domain: bestmarka
*/

/* --- 1. Основные настройки и Типографика --- */
body {
    font-family: 'Manrope', sans-serif;
    background-color: #F9F8F6;
    color: #383838;
    margin: 0;
    padding: 0;
    line-height: 1.5;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Lora', serif;
    margin-top: 0;
}

/* --- 2. Фирменные цвета --- */
.bg-brand-green { background-color: #3A4F41; }
.text-brand-green { color: #3A4F41; }
.bg-brand-accent { background-color: #C1A98A; }
.text-brand-accent { color: #C1A98A; }
.bg-brand-light-beige { background-color: #F1EBE5; }
.hover\:bg-brand-green-dark:hover { background-color: #2c3a30; }

/* --- 3. Компоненты макета (Layout) --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.section {
    padding: 80px 0;
}
.card {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 40px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* --- 4. Шапка (Header) --- */
.header {
    background: #fff;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.logo {
    font-family: 'Lora', serif;
    font-size: 26px;
    font-weight: 700;
    color: #3A4F41;
    text-decoration: none;
}
.logo span {
    color: #C1A98A;
}
.menu a {
    margin-left: 30px;
    text-decoration: none;
    color: #383838;
    font-weight: 500;
    transition: color 0.3s;
}
.menu a:hover {
    color: #C1A98A;
}

/* --- 5. Кнопки (Buttons) --- */
.btn {
    display: inline-block;
    background-color: #C1A98A;
    color: #fff;
    padding: 14px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}
.btn:hover {
    background-color: #b08d4b;
}
.btn-outline {
    background-color: transparent;
    border: 2px solid #3A4F41;
    color: #3A4F41;
}
.btn-outline:hover {
    background-color: #3A4F41;
    color: #fff;
}

/* --- 6. Герой-блок (Hero) --- */
.hero-bg {
     background-image: linear-gradient(rgba(58, 79, 65, 0.85), rgba(58, 79, 65, 0.7)), url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
     background-size: cover;
     background-position: center;
     padding: 140px 0;
     color: #fff;
     text-align: center;
}

/* --- 7. Эффекты --- */
.text-shadow {
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.5);
}
.soft-shadow {
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.07);
}
.soft-shadow-hover {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.soft-shadow-hover:hover {
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

/* --- 8. Рейтинги и Тарифы (Price List) --- */
.price-list-section__items {
    display: flex;
    flex-direction: column;
}
.price-list-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid #dcd6ce;
}
.price-list-item:last-child {
    border-bottom: none;
}
.price-list-item__info {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
}
.price-list-item__title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #383838;
}
.price-list-item__description {
    font-size: 0.875rem;
    color: #6b7280;
    display: block;
    margin-top: 0.25rem;
}
.price-list-item__price {
    flex-basis: 100%;
    text-align: left;
}
.price-list-item__price span:first-child {
    font-size: 1.25rem;
    font-weight: 700;
    color: #3A4F41; /* Зеленый процент */
}
.price-list-item__unit {
    font-size: 0.875rem;
    color: #6b7280;
    margin-left: 0.25rem;
}
.price-list-item__info::after {
    display: none;
}

@media (min-width: 768px) {
    .price-list-item {
        flex-wrap: nowrap;
        align-items: flex-start;
    }
    .price-list-item__info {
        display: flex;
        flex-basis: auto;
        flex-grow: 1;
        overflow: hidden;
        align-items: baseline;
        margin-bottom: 0;
    }
    .price-list-item__title {
        padding-right: 0.5rem;
    }
    .price-list-item__description {
        margin-left: 1rem;
        margin-top: 0;
    }
    .price-list-item__price {
        flex-basis: auto;
        flex-shrink: 0;
        text-align: right;
        padding-left: 0.5rem;
    }
    .price-list-item__price span:first-child {
        font-size: 1.125rem;
    }
    .price-list-item__info::after {
        display: block;
        content: '';
        flex-grow: 1;
        border-bottom: 2px dotted #d1d5db;
        position: relative;
        top: -0.4em;
        margin-left: 0.5rem;
    }
}

/* --- 9. Контент статей (Prose) --- */
.prose {
    color: #383838;
    max-width: 800px;
    margin: 0 auto;
}
.prose h2 {
    font-family: 'Lora', serif;
    color: #212121;
    font-size: 2.25rem;
    line-height: 1.3;
    margin-top: 2.5em;
    margin-bottom: 1em;
    padding-bottom: 0.4em;
    border-bottom: 1px solid #e0e0e0;
}
.prose h3 {
    font-family: 'Lora', serif;
    color: #2c3a30;
    font-size: 1.875rem;
    line-height: 1.4;
    margin-top: 2em;
    margin-bottom: 0.8em;
}
.prose p {
    font-family: 'Manrope', sans-serif;
    line-height: 1.85; 
    font-size: 1.125rem;
    margin-bottom: 1.5em;
}
.prose blockquote {
    font-family: 'Lora', serif;
    font-style: italic;
    border-left: none; 
    color: #4a4a4a;
    padding: 1.5em 2em;
    margin: 2.5em 0;
    background-color: #F1EBE5; 
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}
.prose blockquote::before {
    content: '“';
    font-family: 'Lora', serif;
    position: absolute;
    top: -0.1em;
    left: 0.1em;
    font-size: 5em;
    color: #C1A98A;
    opacity: 0.6;
    line-height: 1;
}

/* --- 10. Таблицы (Tables) --- */
table.custom-table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Lora', serif;
    margin: 25px 0;
    font-size: 16px;
    text-align: left;
}
table.custom-table th {
    font-weight: bold;
    padding: 12px 15px;
    border-top: 2px solid #000000;
    border-bottom: 2px solid #000000;
    letter-spacing: 0.5px;
    color: #3A4F41;
}
table.custom-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
    color: #333333;
}
table.custom-table tbody tr:last-of-type td {
    border-bottom: none;
}
table.custom-table caption {
    caption-side: bottom;
    padding: 15px 0;
    font-style: italic;
    font-size: 14px;
    color: #666666;
    text-align: left;
}

/* --- 11. НОВОЕ: Карточки статей (Journal Cards) --- */
.article-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #eee;
}
.article-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.article-card__img-wrap {
    height: 200px;
    background-color: #f0f0f0;
    overflow: hidden;
    position: relative;
}
.article-card__img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.article-card:hover .article-card__img-wrap img {
    transform: scale(1.05);
}
.article-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.article-card__meta {
    font-size: 0.75rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 10px;
}
.article-card__title {
    font-family: 'Lora', serif;
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 15px;
    color: #383838;
}
.article-card__title a {
    text-decoration: none;
    color: inherit;
}
.article-card__excerpt {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.article-card__footer {
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
    color: #C1A98A;
    font-weight: 700;
    font-size: 0.9rem;
}

/* --- 12. НОВОЕ: Блок Доверия (Trust Section) --- */
.trust-badges {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 30px;
    text-align: center;
}
.trust-item {
    flex: 1;
    min-width: 200px;
}
.trust-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    color: #C1A98A;
}
.trust-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #3A4F41;
}
.trust-desc {
    font-size: 0.9rem;
    color: #777;
}

/* --- 13. НОВОЕ: Блок "О нас" (About Section) --- */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }
}
.about-signature {
    font-family: 'Lora', serif;
    font-style: italic;
    font-size: 1.5rem;
    color: #3A4F41;
    margin-top: 20px;
}
.stat-box {
    border-left: 3px solid #C1A98A;
    padding-left: 20px;
    margin: 20px 0;
}
.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #3A4F41;
    font-family: 'Lora', serif;
    line-height: 1;
}
.stat-label {
    font-size: 0.9rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}