/* ─── Blog — SepticPro (light theme) ─────────── */

/* ─── Shared ──────────────────────────────────── */
.blog-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ─── Blog Hero ───────────────────────────────── */
.blog-hero {
    background: #0f1a12 !important;
    padding: 48px 0 44px;
    position: relative;
    overflow: hidden;
}
.blog-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(245,166,35,.07) 0%, transparent 70%);
    pointer-events: none;
}
/* Breadcrumbs in hero */
.blog-hero__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    font-size: .82rem;
    color: rgba(255,255,255,.45) !important;
}
.blog-hero__breadcrumbs a {
    color: rgba(255,255,255,.45) !important;
    text-decoration: none;
    transition: color .2s;
}
.blog-hero__breadcrumbs a:hover { color: #f5a623 !important; }
.blog-hero__breadcrumbs .sep { color: rgba(255,255,255,.2); margin: 0 2px; }
.blog-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(245,166,35,.1);
    border: 1px solid rgba(245,166,35,.25);
    color: #f5a623 !important;
    font-size: .82rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: 99px;
    margin-bottom: 20px;
}
.blog-hero__h1 {
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    font-weight: 800;
    color: #fff !important;
    line-height: 1.15;
    margin: 0 0 16px;
}
.blog-hero__h1 span { color: #f5a623 !important; }
.blog-hero__sub {
    font-size: 1.05rem;
    color: rgba(255,255,255,.68) !important;
    max-width: 640px;
    line-height: 1.65;
    margin: 0 0 28px;
}
.blog-hero__stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    max-width: 560px;
}
@media (max-width: 600px) {
    .blog-hero__stats { grid-template-columns: repeat(2, 1fr); }
}
.blog-hero__stat {
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 12px;
    padding: 12px 14px;
}
.blog-hero__stat-val {
    font-size: 1.4rem;
    font-weight: 800;
    color: #f5a623 !important;
    display: block;
}
.blog-hero__stat-lbl {
    font-size: .78rem;
    color: rgba(255,255,255,.5) !important;
}

/* ─── Category tabs ───────────────────────────── */
.blog-cats {
    background: #fff !important;
    border-bottom: 1px solid #e8ecef;
    padding: 16px 0;
    position: sticky;
    top: 70px;
    z-index: 90;
}
.blog-cats__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    list-style: none;
    margin: 0;
    padding: 0 0 2px;
}
.blog-cats__list::-webkit-scrollbar { display: none; }
.blog-cats__item { flex-shrink: 0; }
.blog-cats__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 12px;
    font-size: .84rem;
    font-weight: 600;
    border: 1px solid #e0e4e8;
    background: #f7f9fb !important;
    color: rgba(0,0,0,.55) !important;
    text-decoration: none;
    transition: all .2s;
    white-space: nowrap;
    cursor: pointer;
    font-family: inherit;
    line-height: 1;
}
.blog-cats__link:hover {
    border-color: rgba(245,166,35,.5);
    color: #d4891a !important;
    background: rgba(245,166,35,.06) !important;
}
.blog-cats__link.is-active {
    background: #f5a623 !important;
    border-color: #f5a623;
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(245,166,35,.3);
}
.blog-cats__count {
    font-size: .72rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 99px;
    background: rgba(0,0,0,.08);
    color: inherit;
}

/* ─── Articles grid ───────────────────────────── */
.blog-main {
    background: #f7f9fb !important;
    padding: 40px 0 80px;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 991px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .blog-grid { grid-template-columns: 1fr; } }

/* ─── Article card ────────────────────────────── */
.blog-card {
    background: #fff !important;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .25s, box-shadow .25s, border-color .25s;
    position: relative;
}
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0,0,0,.1);
    border-color: rgba(245,166,35,.4);
}
.blog-card__img-wrap {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f0f3f6;
    position: relative;
}
.blog-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s;
}
.blog-card:hover .blog-card__img { transform: scale(1.05); }
.blog-card__img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(245,166,35,.4);
    background: linear-gradient(135deg, #f0f4f7 0%, #e8edf2 100%);
}
.blog-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #f5a623;
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 6px;
    z-index: 1;
}
.blog-card__body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.blog-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.blog-card__cat {
    font-size: .78rem;
    font-weight: 700;
    color: #d4891a !important;
    text-decoration: none;
}
.blog-card__cat:hover { color: #f5a623 !important; }
.blog-card__sep { color: rgba(0,0,0,.2); font-size: .8rem; }
.blog-card__time {
    font-size: .78rem;
    color: rgba(0,0,0,.38) !important;
    display: flex;
    align-items: center;
    gap: 4px;
}
.blog-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a !important;
    line-height: 1.4;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}
.blog-card__title:hover { color: #f5a623 !important; }
.blog-card__title::after {
    content: '';
    position: absolute;
    inset: 0;
}
.blog-card__excerpt {
    font-size: .88rem;
    color: rgba(0,0,0,.52) !important;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}
.blog-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    margin-top: auto;
}
.blog-card__author {
    display: flex;
    align-items: center;
    gap: 8px;
}
.blog-card__avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(245,166,35,.15);
    border: 1.5px solid rgba(245,166,35,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    font-weight: 700;
    color: #d4891a !important;
    flex-shrink: 0;
}
.blog-card__avatar--photo { background: none; overflow: hidden; }
.blog-card__avatar--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card__author-name {
    font-size: .78rem;
    color: rgba(0,0,0,.42) !important;
}
.blog-card__date {
    font-size: .75rem;
    color: rgba(0,0,0,.32) !important;
}

/* ─── Blog pagination ─────────────────────────── */
.blog-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.blog-pagination .page-numbers {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border-radius: 12px;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #e0e4e8;
    background: #fff;
    color: rgba(0,0,0,.55) !important;
    transition: all .2s;
}
.blog-pagination .page-numbers:hover {
    border-color: rgba(245,166,35,.5);
    color: #d4891a !important;
}
.blog-pagination .page-numbers.current {
    background: #f5a623;
    border-color: #f5a623;
    color: #fff !important;
    pointer-events: none;
}
.blog-pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    pointer-events: none;
}

/* ─── Blog empty / no-results ─────────────────── */
.blog-empty, .blog-no-results {
    text-align: center;
    padding: 80px 20px;
    color: rgba(0,0,0,.4) !important;
}
.blog-empty__icon { font-size: 3rem; margin-bottom: 16px; }

/* ─── Category hero ───────────────────────────── */
.cat-hero {
    background: #fff !important;
    padding: 40px 0 32px;
    border-bottom: 1px solid #e8ecef;
}
.cat-hero__inner { display: flex; align-items: flex-start; gap: 16px; }
.cat-hero__icon { font-size: 2.5rem; margin-top: 4px; }
.cat-hero__h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #1a1a1a !important;
    margin: 0 0 8px;
}
.cat-hero__desc {
    color: rgba(0,0,0,.55) !important;
    font-size: .95rem;
    line-height: 1.6;
    max-width: 560px;
    margin: 0;
}

/* ─── Single post ─────────────────────────────── */
.post-layout {
    background: #f7f9fb !important;
    padding: 40px 0 80px;
}
.post-layout__inner {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 40px;
    align-items: start;
}
@media (max-width: 991px) {
    .post-layout__inner { grid-template-columns: 1fr; }
    .post-sidebar { display: none; }
}

/* Post header */
.post-header { margin-bottom: 32px; }
.post-header__breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-size: .82rem;
    color: rgba(0,0,0,.42) !important;
    margin-bottom: 24px;
    list-style: none;
    padding: 0;
}
.post-header__breadcrumbs a {
    color: rgba(0,0,0,.42) !important;
    text-decoration: none;
}
.post-header__breadcrumbs a:hover { color: #f5a623 !important; }
.post-header__breadcrumbs .sep { color: rgba(0,0,0,.2); }
.post-header__cat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #d4891a !important;
    font-size: .84rem;
    font-weight: 700;
    text-decoration: none;
    margin-bottom: 12px;
}
.post-header__cat:hover { color: #f5a623 !important; }
.post-header__h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.3rem);
    font-weight: 800;
    color: #1a1a1a !important;
    line-height: 1.2;
    margin: 0 0 16px;
}
.post-header__excerpt {
    font-size: 1.05rem;
    color: rgba(0,0,0,.55) !important;
    line-height: 1.65;
    margin: 0 0 24px;
}
.post-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e8ecef;
    flex-wrap: wrap;
}
.post-header__author {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.post-header__ava {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(245,166,35,.15);
    border: 2px solid rgba(245,166,35,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: #d4891a !important;
    flex-shrink: 0;
    overflow: hidden;
}
.post-header__ava--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-header__author-info { line-height: 1.3; }
.post-header__author-name {
    font-size: .88rem;
    font-weight: 600;
    color: #1a1a1a !important;
}
.post-header__author-role {
    font-size: .75rem;
    color: rgba(0,0,0,.42) !important;
}
.post-header__right { margin-left: auto; text-align: right; }
.post-header__date-lbl { font-size: .72rem; color: rgba(0,0,0,.32) !important; margin-bottom: 2px; }
.post-header__date { font-size: .84rem; color: rgba(0,0,0,.48) !important; }

/* Hero image */
.post-hero-img {
    width: 100%;
    aspect-ratio: 16/7;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 36px;
    background: #e8ecef;
}
.post-hero-img-placeholder {
    width: 100%;
    aspect-ratio: 16/7;
    border-radius: 12px;
    background: linear-gradient(135deg, #edf0f4, #e4e9ef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 36px;
}

/* Article card (inside post) */
.post-article-card {
    background: #fff !important;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0,0,0,.07);
    padding: 28px 32px;
}

/* Key takeaways */
.post-takeaways {
    background: rgba(245,166,35,.07);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 32px;
}
.post-takeaways__title {
    font-size: .78rem;
    font-weight: 700;
    color: #d4891a !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.post-takeaways__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.post-takeaways__item {
    font-size: .88rem;
    color: rgba(0,0,0,.7) !important;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.5;
}
.post-takeaways__item::before {
    content: '✓';
    color: #f5a623;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Expert note */
.post-expert-note__ava { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; border: 2px solid rgba(245,166,35,.4); }
.post-expert-note__ava-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-expert-note {
    background: #fffbf4 !important;
    border-left: 4px solid #f5a623;
    border-radius: 0 12px 12px 0;
    padding: 18px 20px;
    margin: 32px 0;
    display: flex;
    gap: 14px;
}
.post-expert-note__icon { font-size: 1.6rem; flex-shrink: 0; }
.post-expert-note__label {
    font-size: .72rem;
    font-weight: 700;
    color: #d4891a !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.post-expert-note__text {
    font-size: .88rem;
    color: rgba(0,0,0,.65) !important;
    line-height: 1.65;
    font-style: italic;
    margin: 0;
}

/* Post body */
.post-body {
    color: rgba(0,0,0,.75) !important;
    font-size: .97rem;
    line-height: 1.75;
}
.post-body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 40px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e8ecef;
    scroll-margin-top: 80px;
}
.post-body h3 {
    font-size: 1.12rem;
    font-weight: 600;
    color: #1a1a1a !important;
    margin: 28px 0 12px;
    scroll-margin-top: 80px;
}
.post-body h4 {
    font-size: 1rem;
    font-weight: 600;
    color: rgba(0,0,0,.82) !important;
    margin: 20px 0 10px;
}
.post-body p { margin: 0 0 18px; }
.post-body a { color: #d4891a !important; }
.post-body a:hover { text-decoration: underline; color: #f5a623 !important; }
.post-body strong { color: #1a1a1a !important; font-weight: 600; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 24px; }
.post-body li { margin-bottom: 6px; line-height: 1.65; }
.post-body ul li::marker { color: #f5a623; }
.post-body ol li::marker { color: #f5a623; font-weight: 600; }
.post-body blockquote {
    border-left: 4px solid #f5a623;
    background: rgba(245,166,35,.05);
    border-radius: 0 12px 12px 0;
    padding: 14px 18px;
    margin: 24px 0;
    color: rgba(0,0,0,.65) !important;
}
.post-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: .88rem;
    margin: 24px 0;
    display: block;
    overflow-x: auto;
}
.post-body table thead { background: #f5f7fa; }
.post-body table th {
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    color: #1a1a1a !important;
    white-space: nowrap;
}
.post-body table td {
    padding: 10px 14px;
    color: rgba(0,0,0,.65) !important;
    white-space: nowrap;
}
.post-body table tr { border-bottom: 1px solid #e8ecef; }
.post-body code {
    background: rgba(245,166,35,.1);
    color: #c47d10 !important;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: .88em;
}

/* Tags */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 32px 0 0;
    padding-top: 24px;
    border-top: 1px solid #e8ecef;
}
.post-tag {
    font-size: .78rem;
    padding: 4px 12px;
    border-radius: 6px;
    background: #f0f3f6;
    border: 1px solid #e0e4e8;
    color: rgba(0,0,0,.5) !important;
    text-decoration: none;
    transition: all .2s;
}
.post-tag:hover { border-color: rgba(245,166,35,.5); color: #d4891a !important; background: rgba(245,166,35,.06); }

/* FAQ */
.post-faq { margin-top: 48px; padding-top: 36px; border-top: 1px solid #e8ecef; }
.post-faq__h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 0 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.post-faq__item {
    background: #fff !important;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color .2s;
    box-shadow: 0 1px 4px rgba(0,0,0,.05);
}
.post-faq__item:hover { border-color: rgba(245,166,35,.35); }
.post-faq__q {
    padding: 16px 20px;
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: #1a1a1a !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    list-style: none;
}
.post-faq__q::-webkit-details-marker { display: none; }
.post-faq__q::after {
    content: '↓';
    color: rgba(0,0,0,.3);
    transition: transform .25s;
    flex-shrink: 0;
    font-size: .9rem;
}
details[open] .post-faq__q::after { transform: rotate(180deg); color: #f5a623; }
details[open] .post-faq__q { color: #d4891a !important; }
.post-faq__a {
    padding: 0 20px 18px;
    font-size: .88rem;
    color: rgba(0,0,0,.58) !important;
    line-height: 1.7;
}

/* Related posts */
.post-related { margin-top: 60px; padding-top: 40px; border-top: 1px solid #e8ecef; }
.post-related__h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a !important;
    margin: 0 0 20px;
}
.post-related__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 700px) { .post-related__grid { grid-template-columns: 1fr; } }

/* Author block */
.post-author {
    display: flex;
    gap: 18px;
    background: #fff !important;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 22px;
    margin-top: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.post-author__ava {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(245,166,35,.15);
    border: 2px solid rgba(245,166,35,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    color: #d4891a !important;
    flex-shrink: 0;
    overflow: hidden;
}
.post-author__ava--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-author__label {
    font-size: .72rem;
    font-weight: 700;
    color: #d4891a !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 4px;
}
.post-author__name { font-size: 1rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 2px; }
.post-author__role { font-size: .78rem; color: rgba(0,0,0,.42) !important; margin-bottom: 10px; }
.post-author__bio { font-size: .84rem; color: rgba(0,0,0,.55) !important; line-height: 1.6; margin: 0; }

/* CTA in post */
.post-cta {
    background: linear-gradient(135deg, #0f1a12, #1a2b1e) !important;
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 12px;
    padding: 24px 28px;
    margin: 36px 0;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.post-cta__text { flex: 1; min-width: 220px; }
.post-cta__label {
    font-size: .72rem;
    font-weight: 700;
    color: #f5a623 !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 6px;
}
.post-cta__title { font-size: 1.05rem; font-weight: 700; color: #fff !important; margin-bottom: 4px; }
.post-cta__desc { font-size: .84rem; color: rgba(255,255,255,.7) !important; margin: 0; }
.post-cta__btn {
    background: #f5a623;
    color: #fff !important;
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: background .2s, transform .15s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
    font-family: inherit;
    display: inline-block;
}
.post-cta__btn:hover { background: #d4891a; transform: translateY(-1px); }

/* Sidebar */
.post-sidebar { display: flex; flex-direction: column; gap: 16px; }
.sidebar-box {
    background: #fff !important;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.sidebar-box__title {
    font-size: .78rem;
    font-weight: 700;
    color: rgba(0,0,0,.38) !important;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.sidebar-toc { list-style: none; padding: 0; margin: 0; }
.sidebar-toc a {
    display: block;
    font-size: .84rem;
    color: rgba(0,0,0,.48) !important;
    text-decoration: none;
    padding: 4px 0;
    transition: color .2s;
    line-height: 1.4;
}
.sidebar-toc a:hover,
.sidebar-toc a.is-active { color: #d4891a !important; }
.sidebar-toc .toc-h3 { padding-left: 14px; }
.sidebar-contact__phone {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    color: #1a1a1a !important;
    font-weight: 600;
    text-decoration: none;
    margin-bottom: 8px;
}
.sidebar-contact__phone:hover { color: #d4891a !important; }
.sidebar-contact__btn {
    display: block;
    background: #f5a623;
    color: #fff !important;
    text-align: center;
    font-weight: 700;
    font-size: .88rem;
    padding: 11px;
    border-radius: 12px;
    text-decoration: none;
    margin-top: 10px;
    transition: background .2s;
}
.sidebar-contact__btn:hover { background: #d4891a; }
.sidebar-cat__link {
    font-size: .84rem;
    color: rgba(255,255,255,.55) !important;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color .2s;
}
.sidebar-cat__link:hover { color: #f5a623 !important; }
.sidebar-cat__count { font-size: .72rem; color: rgba(255,255,255,.3) !important; }
.post-cta__phone-link {
    text-align: center;
    font-size: .84rem;
    color: rgba(255,255,255,.65) !important;
    text-decoration: none;
    transition: color .2s;
}
.post-cta__phone-link:hover { color: #f5a623 !important; }
.sidebar-toc-box .sidebar-toc { max-height: 340px; overflow-y: auto; scrollbar-width: thin; }

/* ─── Sidebar TOC — лучшая читаемость ─────────── */
.sidebar-toc a { color: rgba(0,0,0,.62) !important; }

/* ─── Sidebar consult box ─────────────────────── */
.sidebar-consult-box { text-align: center; }
.sidebar-consult__desc {
    font-size: .82rem;
    color: rgba(0,0,0,.55) !important;
    margin: 0 0 12px;
    line-height: 1.5;
}
.sidebar-engineer-photo { margin: 0 auto 4px; width: 88px; height: 88px; border-radius: 50%; overflow: hidden; border: 3px solid #f5a623; }
.sidebar-engineer-photo__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sidebar-engineer-placeholder {
    width: 80px; height: 80px; border-radius: 50%;
    background: rgba(245,166,35,.12); border: 2px solid rgba(245,166,35,.35);
    display: flex; align-items: center; justify-content: center;
    font-size: 2rem; margin: 0 auto 4px;
}
.sidebar-consult-box .sidebar-box__title { justify-content: center; }
.sidebar-consult-box .sidebar-contact__phone { justify-content: center; }
.sidebar-contact__btn {
    width: 100%; border: none; cursor: pointer;
    display: block; background: #f5a623;
    color: #fff !important; text-align: center;
    font-weight: 700; font-size: .88rem;
    padding: 11px; border-radius: 12px;
    text-decoration: none; margin-top: 10px;
    transition: background .2s; font-family: inherit;
}
.sidebar-contact__btn:hover { background: #d4891a; }

/* ─── Post modal form messages ────────────────── */
.spb-form__msg { padding: 10px 14px; border-radius: 8px; font-size: .84rem; margin-top: 10px; }
.spb-form__msg--ok  { background: rgba(34,197,94,.12); color: #166534; }
.spb-form__msg--err { background: rgba(239,68,68,.1);  color: #991b1b; }

.sidebar-trust__item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .84rem;
    color: rgba(0,0,0,.55) !important;
    margin-bottom: 8px;
}

/* ─── Blog SEO text ───────────────────────────── */
.blog-seo {
    background: #f7f9fb !important;
    border-top: 1px solid #e8ecef;
    padding: 56px 0;
}
.blog-seo__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 767px) { .blog-seo__grid { grid-template-columns: 1fr; } }
.blog-seo__h2 { font-size: 1.3rem; font-weight: 700; color: #1a1a1a !important; margin: 0 0 16px; }
.blog-seo__text { font-size: .9rem; color: rgba(0,0,0,.55) !important; line-height: 1.7; }
.blog-seo__list { list-style: none; padding: 0; margin: 0; }
.blog-seo__list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: .88rem;
    color: rgba(0,0,0,.58) !important;
    margin-bottom: 10px;
    line-height: 1.5;
}
.blog-seo__list li span {
    width: 30px;
    height: 30px;
    min-width: 30px;
    background: rgba(245,166,35,.12);
    border: 1px solid rgba(245,166,35,.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .95rem;
    margin-top: 1px;
}
.blog-seo__faq-wrap { margin-top: 40px; }
.blog-seo__faq-h2 { font-size: 1.2rem; font-weight: 700; color: #1a1a1a !important; margin: 0 0 20px; }
.blog-seo__faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 767px) { .blog-seo__faq-grid { grid-template-columns: 1fr; } }

/* ─── Author page ─────────────────────────────── */
.author-hero {
    background: #f7f9fb !important;
    padding: 36px 0 32px;
    border-bottom: 1px solid #e8ecef;
}
.author-hero__card {
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
    overflow: hidden;
}
.author-hero__top {
    display: flex;
    gap: 24px;
    align-items: flex-start;
    padding: 28px 32px 24px;
}
@media (max-width: 768px) { .author-hero__top { padding: 20px; gap: 16px; } }
@media (max-width: 639px) {
    .author-hero__top { flex-direction: column; align-items: center; text-align: center; padding: 20px; }
}
.author-hero__ava-wrap { flex-shrink: 0; }
.author-hero__ava {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    border: 3px solid rgba(245,166,35,.5);
    object-fit: cover;
    display: block;
}
.author-hero__ava-init {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(245,166,35,.12);
    border: 3px solid rgba(245,166,35,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 800;
    color: #d4891a !important;
}
.author-hero__ava-wrap { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.author-hero__badge {
    display: inline-flex;
    align-items: center;
    background: rgba(245,166,35,.1);
    border: 1px solid rgba(245,166,35,.3);
    color: #d4891a !important;
    font-size: .68rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: .06em;
    white-space: nowrap;
}
.author-hero__h1 {
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
    font-weight: 800;
    color: #1a1a1a !important;
    margin: 0 0 6px;
}
.author-hero__role { font-size: .88rem; color: rgba(0,0,0,.45) !important; margin-bottom: 14px; }
.author-hero__quote {
    font-size: .92rem;
    font-style: italic;
    color: rgba(0,0,0,.6) !important;
    border-left: 3px solid #f5a623;
    padding: 6px 0 6px 14px;
    margin: 0 0 16px;
    line-height: 1.6;
}
.author-hero__socials { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.author-social__link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .82rem; font-weight: 600; padding: 6px 14px;
    border-radius: 8px; text-decoration: none; transition: opacity .2s;
    border: 1.5px solid currentColor;
}
.author-social__link--vk  { color: #2787f5 !important; }
.author-social__link--tg  { color: #2aabee !important; }
.author-social__link:hover { opacity: .75; }
.author-hero__bio {
    font-size: .9rem;
    color: rgba(0,0,0,.58) !important;
    line-height: 1.65;
    max-width: 600px;
    margin: 0 0 18px;
}
.author-hero__info { flex: 1; min-width: 0; }
.author-hero__bottom {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.author-hero__text { flex: 1; min-width: 0; }
.author-hero__stats {
    display: flex;
    flex-direction: row;
    gap: 10px;
    flex-shrink: 0;
    align-self: center;
}
@media (max-width: 768px) { .author-hero__stats { flex-wrap: wrap; justify-content: center; } }
@media (max-width: 639px) {
    .author-hero__bottom { flex-direction: column; gap: 14px; }
    .author-hero__text { width: 100%; }
    .author-hero__stats { flex-direction: row; justify-content: center; flex-wrap: wrap; width: 100%; align-self: stretch; }
    .author-hero__stat { flex: 1; min-width: 72px; }
    .author-hero__quote { border-left: none; border-top: 3px solid #f5a623; padding: 10px 0 0; text-align: left; }
    .author-hero__socials { justify-content: center; }
}
.author-hero__stat {
    background: #f7f9fb;
    border: 1px solid #e8ecef;
    border-radius: 12px;
    padding: 14px 18px;
    text-align: center;
    min-width: 72px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.author-hero__stat-icon { font-size: 1.1rem; opacity: .55; }
.author-hero__stat-val { font-size: 1.3rem; font-weight: 800; color: #f5a623 !important; display: block; }
.author-hero__stat-lbl { font-size: .72rem; color: rgba(0,0,0,.42) !important; }
.author-eeat {
    display: flex;
    gap: 0;
    flex-wrap: nowrap;
    border-top: 1px solid #f0f2f5;
    margin: 0;
    padding: 0;
}
@media (max-width: 639px) { .author-eeat { flex-direction: column; } }
.author-eeat__item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    padding: 14px 20px;
    font-size: .82rem;
    color: rgba(0,0,0,.55) !important;
    border-right: 1px solid #f0f2f5;
    background: #fafbfc;
    transition: background .2s;
}
.author-eeat__item:last-child { border-right: none; }
.author-eeat__item:hover { background: #fff; }
@media (max-width: 639px) {
    .author-eeat__item { border-right: none; border-bottom: 1px solid #f0f2f5; }
    .author-eeat__item:last-child { border-bottom: none; }
}
.author-eeat__icon { font-size: 1.1rem; flex-shrink: 0; }
/* ─── 11. О чём пишу ──────────────────────────── */
.author-topics {
    margin-top: 28px;
    background: #fff;
    border: 1px solid #e8ecef;
    border-radius: 16px;
    padding: 24px 24px 20px;
}
.author-topics__header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 18px;
}
.author-topics__icon-wrap {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(245,166,35,.12); display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.author-topics__h2 {
    font-size: 1rem; font-weight: 700; color: #1a1a1a !important; margin: 0;
    text-transform: uppercase; letter-spacing: .04em;
}
.author-topics__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.author-topic__card {
    display: flex; align-items: center; gap: 12px;
    background: #f8f9fb; border: 1.5px solid transparent; border-radius: 12px;
    padding: 13px 16px; cursor: default;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.author-topic__card:hover {
    background: #fff; border-color: #f5a623;
    box-shadow: 0 3px 12px rgba(245,166,35,.15);
}
.author-topic__icon {
    width: 36px; height: 36px; flex-shrink: 0;
    background: rgba(245,166,35,.1); border-radius: 8px;
    display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.author-topic__title { font-size: .85rem; font-weight: 600; color: #1a1a1a !important; line-height: 1.35; }

/* ─── Author layout (2-col) ────────────────────── */
.author-layout {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 32px;
    align-items: start;
}
@media (max-width: 992px) { .author-layout { grid-template-columns: 1fr; } }

/* ─── 16. Sticky sidebar ───────────────────────── */
.author-sidebar { position: sticky; top: 90px; }
.author-sidebar__sticky {
    background: #fff; border: 1px solid #e8ecef; border-radius: 14px;
    padding: 22px 20px; text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.author-sidebar__photo { margin: 0 auto 10px; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; border: 2px solid #f5a623; }
.author-sidebar__photo-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author-sidebar__name { font-size: .95rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 3px; }
.author-sidebar__role { font-size: .78rem; color: rgba(0,0,0,.45) !important; margin-bottom: 10px; }
.author-sidebar__text { font-size: .82rem; color: rgba(0,0,0,.55) !important; line-height: 1.5; margin: 0 0 14px; }
.author-sidebar__btn {
    display: block; width: 100%; background: #f5a623; border: none; cursor: pointer;
    color: #fff !important; font-weight: 700; font-size: .88rem; padding: 11px;
    border-radius: 10px; font-family: inherit; transition: background .2s; margin-bottom: 10px;
}
.author-sidebar__btn:hover { background: #d4891a; }
.author-sidebar__phone {
    display: block; font-size: .84rem; font-weight: 600;
    color: #1a1a1a !important; text-decoration: none; transition: color .2s;
}
.author-sidebar__phone:hover { color: #f5a623 !important; }
@media (max-width: 992px) { .author-sidebar { display: none; } }

/* ─── 17. Sort controls ────────────────────────── */
.author-articles__header { margin-bottom: 24px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.author-sort { display: flex; gap: 6px; }
.author-sort__btn {
    font-size: .8rem; font-weight: 600; padding: 6px 14px; border-radius: 8px;
    border: 1.5px solid #e0e4e8; color: rgba(0,0,0,.55) !important;
    text-decoration: none; transition: all .2s; background: #fff;
}
.author-sort__btn:hover { border-color: #f5a623; color: #f5a623 !important; }
.author-sort__btn.is-active { background: #f5a623; border-color: #f5a623; color: #fff !important; }

/* ─── 18. View counter ─────────────────────────── */
.blog-card__views { font-size: .75rem; color: rgba(0,0,0,.38) !important; }

/* ─── 14. FAQ автора ───────────────────────────── */
.author-faq { margin-top: 40px; }
.author-faq__h2 { font-size: 1.15rem; font-weight: 700; color: #1a1a1a !important; margin: 0 0 16px; }

/* ─── 15. Реальные проекты ─────────────────────── */
.author-projects-cta {
    margin-top: 32px; padding: 24px 28px;
    background: linear-gradient(135deg, #fff8ec 0%, #fff 100%);
    border: 1.5px solid rgba(245,166,35,.3); border-radius: 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.author-projects-cta__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #f5a623 !important; margin-bottom: 4px; }
.author-projects-cta__title { font-size: 1.05rem; font-weight: 700; color: #1a1a1a !important; margin-bottom: 6px; }
.author-projects-cta__desc { font-size: .84rem; color: rgba(0,0,0,.55) !important; margin: 0; line-height: 1.5; }
.author-projects-cta__btn {
    background: #f5a623; color: #fff !important; font-weight: 700; font-size: .9rem;
    padding: 12px 24px; border-radius: 10px; text-decoration: none;
    white-space: nowrap; transition: background .2s; flex-shrink: 0;
}
.author-projects-cta__btn:hover { background: #d4891a; }

.author-articles__header { margin-bottom: 24px; }
.author-articles__h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1a1a1a !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
.author-articles__count {
    font-size: .84rem;
    font-weight: 700;
    background: rgba(245,166,35,.15);
    color: #d4891a !important;
    padding: 2px 10px;
    border-radius: 99px;
}

/* ─── Author consult modal (light theme overrides) ── */
.spb-consult-modal__inner { max-width: 460px; padding: 36px 32px 28px; }
.spb-consult-modal__inner .modal-title { font-size: 1.35rem; color: #1a1a1a; margin-bottom: 4px; }
.spb-consult-modal__inner .modal-subtitle { color: rgba(0,0,0,.5); font-size: .88rem; margin-bottom: 20px; }
.spb-consult-modal__inner .form-group { margin-bottom: 12px; }
.spb-consult-modal__inner .form-group label {
    color: rgba(0,0,0,.6);
    text-transform: none;
    letter-spacing: 0;
    font-size: .84rem;
    margin-bottom: 6px;
}
.spb-consult-modal__inner .form-control {
    background: #f8f9fb;
    border: 1.5px solid #e0e4e8;
    color: #1a1a1a;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: .9rem;
}
.spb-consult-modal__inner .form-control::placeholder { color: rgba(0,0,0,.38); }
.spb-consult-modal__inner .form-control:focus {
    border-color: #f5a623;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(245,166,35,.1);
}
.spb-consult-modal__inner textarea.form-control { resize: vertical; min-height: 72px; }
.spb-consult-modal__inner .form-submit-wrap { margin-top: 16px; }
.spb-consult-modal__inner .privacy-under-btn { margin-top: 10px; font-size: .78rem; }
.spb-consult-modal__inner .privacy-checkbox-label { color: rgba(0,0,0,.55); }
.spb-consult-modal__inner .privacy-checkbox-label a { color: #f5a623; }
