/* Стили внутренних маркетинговых страниц (поверх lending.css) */

.header-sub{
    min-height: auto;
    padding-bottom: 60px;
    border-radius: 0 0 50px 50px;
}

.hero-sub{
    max-width: 860px;
    padding: 20px;
}
.hero-sub h1{
    font-weight: 800;
    font-size: 48px;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 20px;
}
.hero-sub .hero-sub-text{
    font-weight: 400;
    font-size: 20px;
    color: #fff;
    margin-bottom: 30px;
    line-height: normal;
}
@media (max-width: 768px){
    .hero-sub h1{ font-size: 32px; }
    .hero-sub .hero-sub-text{ font-size: 17px; }
}

.cta-inline{
    max-width: 420px;
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
    color: #000;
    text-decoration: none;
}
.cta-inline:hover{ color: #000; }

/* Текстовый SEO-блок */
.seo-article{
    background: #fff;
    border-radius: 20px;
    padding: 40px;
    font-size: 17.5px;
    line-height: 1.78;
    color: #1a1a1a;
}
.seo-article h2{
    font-weight: 800;
    font-size: 28px;
    margin: 46px 0 16px;
}
.seo-article h2:first-child{ margin-top: 0; }
.seo-article h3{
    font-weight: 700;
    font-size: 21px;
    margin: 34px 0 12px;
}
.seo-article ul{ padding-left: 22px; }
.seo-article li{ margin-bottom: 6px; }

/* Вертикальный ритм статьи: воздух между блоками задаётся здесь, а не в каждой статье.
   Специфичность низкая — scoped-стили конкретной статьи по-прежнему перебивают. */
.seo-article p{ margin: 0 0 20px; }
.seo-article ul, .seo-article ol{ margin: 0 0 24px; }
.seo-article img{ display: block; margin: 30px 0 10px; }
.seo-article table{ margin: 26px 0; }
.seo-article .mk-table-wrap{ margin: 26px 0; }
.seo-article .mk-table-wrap table{ margin: 0; }
.seo-article details{ margin-bottom: 12px; }
/* Подпись под визуальным блоком (картинка, схема, таблица): единый класс для всех статей */
.seo-article .fig-cap{
    margin: -2px 0 32px;
    font-size: 14.5px;
    line-height: 1.5;
    color: #7a7a85;
    text-align: center;
}
.seo-article > *:first-child{ margin-top: 0; }
.seo-article > *:last-child{ margin-bottom: 0; }
.seo-article .formula{
    background: #f4f7ff;
    border-left: 4px solid #0067f4;
    border-radius: 8px;
    padding: 14px 18px;
    font-family: "Roboto Mono", monospace;
    font-size: 15px;
    overflow-x: auto;
}
@media (max-width: 768px){
    .seo-article{ padding: 25px 18px; }
    .seo-article h2{ font-size: 23px; }
}

/* Таблица в статьях и калькуляторе */
.mk-table-wrap{ overflow-x: auto; }
.mk-table{
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
    background: #fff;
}
.mk-table th, .mk-table td{
    border-bottom: 1px solid #ececec;
    padding: 10px 14px;
    text-align: left;
    white-space: nowrap;
}
.mk-table th{
    font-weight: 700;
    background: #f4f7ff;
}
.mk-table td.num, .mk-table th.num{ text-align: right; font-variant-numeric: tabular-nums; }
.mk-table tr.total td{ font-weight: 800; border-top: 2px solid #0067f4; }
.mk-plus{ color: #0a9c40; font-weight: 700; }
.mk-minus{ color: #e5104c; font-weight: 700; }

/* FAQ */
.faq-box{
    background: #fff;
    border-radius: 20px;
    padding: 10px 30px;
}
.faq-item{
    border-bottom: 1px solid #ececec;
    padding: 18px 0;
}
.faq-item:last-child{ border-bottom: none; }
.faq-item summary{
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.faq-item summary::after{
    content: "+";
    position: absolute;
    right: 0; top: 0;
    font-size: 22px;
    color: #0067f4;
    font-weight: 800;
}
.faq-item[open] summary::after{ content: "–"; }
.faq-item .faq-answer{
    margin-top: 10px;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Калькулятор */
.calc-box{
    background: #fff;
    border-radius: 20px;
    padding: 35px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
}
@media (max-width: 768px){ .calc-box{ padding: 20px 15px; } }
.calc-input-row{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.calc-input{
    flex: 1 1 300px;
    border: 2px solid #e3e3e3;
    border-radius: 12px;
    padding: 14px 18px;
    font-size: 17px;
    outline: none;
}
.calc-input:focus{ border-color: #0067f4; }
.calc-btn{
    background: #0067f4;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 14px 34px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}
.calc-btn:hover{ background: #0056cc; }
.calc-btn:disabled{ background: #9dbdf0; cursor: default; }
.calc-hint{ font-size: 14px; color: #777; margin-top: 10px; }
.calc-error{
    display: none;
    background: #ffeef2;
    color: #c30b3f;
    border-radius: 10px;
    padding: 12px 16px;
    margin-top: 15px;
    font-size: 15px;
}
.calc-product{
    display: flex;
    gap: 18px;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap;
}
.calc-product img{
    width: 90px; height: 90px;
    object-fit: contain;
    border-radius: 12px;
    background: #f6f6f6;
}
.calc-product .calc-product-name{ font-weight: 700; font-size: 18px; }
.calc-product .calc-product-price{ font-size: 15px; color: #555; }
.calc-cost-row{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.calc-cost-row .calc-input{ flex: 1 1 180px; }
.calc-note{ font-size: 13.5px; color: #888; margin-top: 12px; }

/* Инфографика: стек-бар структуры цены */
.ig-stack{
    display: flex;
    width: 100%;
    height: 54px;
    border-radius: 12px;
    overflow: hidden;
}
.ig-seg{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
}
.ig-com{ background: #f91158; }
.ig-log{ background: #0067f4; }
.ig-mile{ background: #ff9f2e; }
.ig-acq{ background: #8a63ff; }
.ig-ads{ background: #ff5c8a; }
.ig-cost{ background: #6b7a90; }
.ig-tax{ background: #b8860b; }
.ig-pay{ background: #12a94c; }
.ig-legend{ display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: 14.5px; }
.ig-dot{
    width: 12px; height: 12px;
    border-radius: 4px;
    display: inline-block;
    margin-right: 6px;
    vertical-align: -1px;
}

/* Инфографика: зоны ДРР */
.drr-scale{
    display: flex;
    width: 100%;
    height: 48px;
    border-radius: 12px;
    overflow: hidden;
}
.drr-zone{
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14.5px;
    text-align: center;
    line-height: 1.1;
}
.drr-green{ background: #12a94c; }
.drr-yellow{ background: #ffb020; }
.drr-red{ background: #f91158; }
.drr-caption{ display: flex; margin-top: 6px; font-size: 13.5px; color: #666; }
.drr-caption > div{ text-align: center; }
@media (max-width: 768px){
    .ig-seg, .drr-zone{ font-size: 11px; }
}

/* Лид-обложка статьи */
.article-cover{
    display: block;
    width: 100%;
    /* height:auto обязателен: width/height-атрибуты (CLS) иначе фиксируют высоту */
    height: auto;
    border-radius: 24px;
    margin-bottom: 26px;
    box-shadow: 0 16px 44px rgba(10, 30, 90, .16);
}

/* Карточки блога */
.blog-card{ min-height: 240px; transition: transform .15s ease; }
.blog-card:hover{ transform: translateY(-3px); }
.blog-card-with-cover{ padding: 0; overflow: hidden; }
.blog-card-cover{
    display: block;
    width: 100%;
    /* height:auto, иначе height-атрибут картинки перебивает aspect-ratio */
    height: auto;
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.blog-card-body{ padding: 22px 26px 26px; }
.blog-card-cluster{
    display: inline-block;
    background: #f4f7ff;
    color: #0067f4;
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 14px;
    font-weight: 600;
}
.blog-card .box-6-h{ font-size: 22px; }
.blog-card .box-6-t{ color: #333; }
.blog-card-more{ font-weight: 700; }

/* Иллюстрация в hero */
.hero-illustration{
    max-width: 100%;
    max-height: 400px;
    filter: drop-shadow(0 25px 45px rgba(0, 10, 60, 0.35));
}

/* Пилюли в hero */
.hero-chips{ display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.hero-chip{
    border-radius: 10px;
    padding: 8px 15px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.35);
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    backdrop-filter: blur(4px);
}

/* Тёмная полоса (как block-3 на главной, но компактная) */
.band-dark{
    background: url('/img/lending/fon_2.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 30px;
    padding: 35px;
}
.band-dark-heading{
    font-weight: 600;
    font-size: 40px;
    color: #fff;
    line-height: 1.05;
}
@media (max-width: 768px){
    .band-dark{ padding: 22px 16px; }
    .band-dark-heading{ font-size: 27px; }
}

/* Белая карточка внутри тёмной полосы */
.wcard{
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    height: 100%;
}
.wcard-h{ font-weight: 600; font-size: 22px; line-height: 1.15; }
@media (max-width: 768px){ .wcard{ padding: 18px 14px; } }

/* Формула пилюлями */
.fp-chain{ display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.fp{
    border-radius: 10px;
    padding: 8px 15px;
    font-size: 17px;
    font-weight: 500;
    background: #fff;
    color: #000;
    white-space: nowrap;
}
.fp-price{ background: #0067f4; color: #fff; }
.fp-minus{ background: #f91158; color: #fff; }
.fp-result{ background: #12a94c; color: #fff; font-weight: 700; }
.fp-op{ color: #fff; font-weight: 700; font-size: 22px; }
.band-light .fp:not(.fp-price):not(.fp-minus):not(.fp-result){ background: #f1f3f7; }
.band-light .fp-op{ color: #000; }
@media (max-width: 768px){
    .fp{ white-space: normal; }
}

/* Строки с иконками в цветных карточках */
.rc-line{
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: 17px;
    line-height: 1.35;
    margin-top: 12px;
    color: #fff;
}
.rc-line .rc-x{
    flex: 0 0 auto;
    font-weight: 800;
    color: #ffd0de;
}
.rc-line .rc-n{
    flex: 0 0 auto;
    background: rgba(255,255,255,0.22);
    border-radius: 8px;
    min-width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
.yellow-big{
    font-weight: 600;
    font-size: 64px;
    line-height: 1;
    color: #6c360e;
    text-transform: uppercase;
}
.yellow-sub{
    font-weight: 500;
    font-size: 18px;
    letter-spacing: 0.03em;
    color: #9a6c3f;
    text-transform: uppercase;
    line-height: 1.25;
}

/* Пример-сравнение двух цен */
.vs-badge{
    background: #ffd943;
    color: #6c360e;
    font-weight: 800;
    border-radius: 50%;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0 auto;
}
.price-big{ font-weight: 700; font-size: 44px; line-height: 1; }
@media (max-width: 768px){ .price-big{ font-size: 34px; } .yellow-big{ font-size: 48px; } }

/* Мокап Google Таблицы */
.sheets-fx{
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 10px 14px;
    overflow-x: auto;
}
.sheets-fx-label{
    color: #5f6368;
    font-style: italic;
    font-weight: 700;
    font-family: Georgia, serif;
}
.sheets-fx code{
    font-family: "Roboto Mono", monospace;
    font-size: 13.5px;
    color: #188038;
    white-space: nowrap;
}
.sheets-mock th, .sheets-mock td{
    border: 1px solid #e0e0e0;
    font-size: 14.5px;
}
.sheets-mock thead th{
    background: #f1f3f4;
    color: #5f6368;
    font-weight: 500;
    text-align: center;
    padding: 6px;
}
.sheets-mock .sheets-corner{ width: 40px; }
.sheets-mock .sheets-rownum{
    background: #f1f3f4;
    color: #5f6368;
    text-align: center;
    width: 40px;
}
.sheets-mock .sheets-live{
    color: #188038;
    font-weight: 700;
}
.sheets-mock .sheets-muted{ color: #9aa0a6; font-style: italic; }

/* ===== Блок автора (E-E-A-T) ===== */
.author-box{
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: #f7f8fc;
    border: 1.5px solid #e7e9f5;
    border-radius: 18px;
    padding: 20px 24px;
    margin: 34px 0 6px;
}
.author-photo{
    flex: 0 0 74px;
    width: 74px;
    height: 74px;
    border-radius: 50%;
    object-fit: cover;
}
.author-initials{
    background: linear-gradient(135deg, #0067f4, #f91158);
    color: #fff;
    font-weight: 800;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.author-info{ flex: 1 1 240px; min-width: 0; }
.author-name{ font-size: 17px; font-weight: 800; }
.author-name a{ color: #1a1a2e; text-decoration: none; }
.author-name a:hover{ color: #0067f4; }
.author-role{ font-weight: 600; font-size: 14px; color: #7a7f92; }
.author-bio{ margin: 6px 0 10px; font-size: 14.5px; line-height: 1.55; color: #4c5164; }
.author-links{ display: flex; flex-wrap: wrap; gap: 6px 16px; }
.author-links a{ font-size: 14px; font-weight: 700; color: #0067f4; text-decoration: none; }
.author-links a:hover{ text-decoration: underline; }
@media (max-width: 575px){
    .author-box{ padding: 16px 18px; }
    .author-photo{ flex-basis: 56px; width: 56px; height: 56px; }
    .author-initials{ font-size: 19px; }
}

/* ===== Фильтры кластеров на /blog ===== */
.blog-filter{
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 26px;
}
.blog-filter-btn{
    border: 1.5px solid #d9dcef;
    background: #fff;
    color: #3c4258;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s;
}
.blog-filter-btn .cnt{
    font-weight: 600;
    font-size: 12.5px;
    color: #9aa0b4;
    margin-left: 3px;
}
.blog-filter-btn:hover{ border-color: #0067f4; color: #0067f4; }
.blog-filter-btn.active{
    background: #0067f4;
    border-color: #0067f4;
    color: #fff;
}
.blog-filter-btn.active .cnt{ color: rgba(255,255,255,.75); }

/* ===== Оглавление лонгрида ===== */
.article-toc{
    background: #f7f8fc;
    border: 1.5px solid #e7e9f5;
    border-radius: 16px;
    padding: 16px 22px;
    margin: 22px 0;
}
.article-toc-title{
    font-weight: 800;
    font-size: 15px;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.article-toc ol{
    margin: 0;
    padding-left: 20px;
    columns: 2;
    column-gap: 28px;
}
.article-toc li{ margin: 4px 0; font-size: 14.5px; break-inside: avoid; }
.article-toc a{ color: #0067f4; text-decoration: none; }
.article-toc a:hover{ text-decoration: underline; }
@media (max-width: 640px){
    .article-toc ol{ columns: 1; }
}


/* ===== Видимый FAQ-аккордеон статьи (общий для всех статей блога) ===== */
.article-faq details{
    border: 1.5px solid #e6e2f3;
    border-radius: 14px;
    margin-bottom: 10px;
    background: #fff;
    padding: 0 18px;
}
.article-faq summary{
    cursor: pointer;
    font-weight: 700;
    font-size: 16.5px;
    padding: 14px 0;
    list-style: none;
}
.article-faq summary::-webkit-details-marker{ display: none; }
.article-faq summary::before{
    content: '+';
    display: inline-block;
    width: 22px;
    color: #0067f4;
    font-weight: 800;
}
.article-faq details[open] summary::before{ content: '–'; }
.article-faq details p{ margin: 0 0 14px; padding-left: 22px; }


/* ===== Хлебные крошки статей и хабов ===== */
.article-breadcrumbs{
    font-size: 13.5px;
    /* хиро тёмный, а inherit тянул чёрный из body — цвет задаём явно */
    color: rgba(255,255,255,.85);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}
.article-breadcrumbs a{
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.35);
}
.article-breadcrumbs a:hover{ border-bottom-color: #fff; }
.article-breadcrumbs .bc-sep{ opacity: .55; }
.article-breadcrumbs .bc-current{ opacity: .8; }

/* ===== Вводный текст хаба рубрики ===== */
.rubrika-intro p{ margin-bottom: 14px; }
.rubrika-intro p:last-child{ margin-bottom: 0; }

/* чип кластера в hero статьи как ссылка */
a.hero-chip{ text-decoration: none; color: inherit; }
a.hero-chip:hover{ opacity: .85; }

/* кнопки-ссылки рубрик в хабе */
a.blog-filter-btn{ display: inline-block; }
a.blog-filter-btn:hover{ border-color: #0067f4; color: #0067f4; }


/* width/height-атрибуты картинок статей нужны только как aspect-ratio против CLS;
   реальную высоту всегда считаем от ширины */
.seo-article img{ height: auto; }

/* Блок подписки на анонсы (TG/VK) под каждой статьёй блога */
.subscribe-band{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    background: linear-gradient(105deg, #eef3ff 0%, #f7f9ff 100%);
    border: 1px solid #dbe4ff;
    border-radius: 24px;
    padding: 26px 30px;
    margin: 40px 0 8px;
}
.subscribe-band-title{
    font-weight: 700;
    font-size: 21px;
    color: #1c2333;
    margin-bottom: 6px;
}
.subscribe-band-sub{
    font-size: 15px;
    line-height: 1.55;
    color: #4a5468;
    margin: 0;
    max-width: 520px;
}
.subscribe-band-actions{
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.subscribe-btn{
    display: inline-block;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    transition: opacity .15s;
}
.subscribe-btn:hover{ opacity: .88; color: #fff; }
.subscribe-btn-tg{ background: #2aabee; }
.subscribe-btn-vk{ background: #0077ff; }
@media (max-width: 768px){
    .subscribe-band{ padding: 20px 18px; }
    .subscribe-band-actions{ width: 100%; }
    .subscribe-btn{ flex: 1; text-align: center; }
}
