/* Блог — стили в тон главной: тёмный фон, золотые акценты, Playfair + Inter */
:root {
    --gold: #D4AF37;
    --gold-hover: #b5952f;
    --bg: #0a0a0a;
    --slate: #121212;
    --text: #e5e5e5;
    --muted: #9ca3af;
    --line: rgba(255, 255, 255, 0.08);
}

.blog-main { padding-top: 5.5rem; min-height: 70vh; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.preview-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: 36px; display: flex; gap: 1rem; align-items: center; justify-content: center; background: var(--gold); color: #000; font-size: 13px; font-weight: 600; }
.preview-bar a { text-decoration: underline; }

/* общие элементы */
.eyebrow { color: var(--gold); font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem; }
.btn-gold, .btn-ghost { display: inline-block; padding: 1rem 2rem; border-radius: 2px; font-weight: 600; transition: all 0.3s; cursor: pointer; text-align: center; }
.btn-gold { background: var(--gold); color: #000; box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); border: 0; }
.btn-gold:hover { background: var(--gold-hover); }
.btn-ghost { border: 1px solid rgba(212, 175, 55, 0.5); color: var(--text); margin-top: 1.5rem; }
.btn-ghost:hover { border-color: var(--gold); }
.zp-input { width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--text); padding: 0.75rem 1rem; border-radius: 2px; outline: none; transition: border-color 0.2s; font: inherit; }
.zp-input:focus { border-color: rgba(212, 175, 55, 0.5); }
.zp-input.err { border-color: rgba(239, 68, 68, 0.7); }

/* хлебные крошки */
.crumbs { margin-bottom: 1.75rem; font-size: 0.8rem; color: var(--muted); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.35rem; list-style: none; padding: 0; margin: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.35rem; opacity: 0.4; }
.crumbs a:hover { color: var(--gold); }
.crumbs [aria-current] { color: var(--text); opacity: 0.7; }

/* hero списка */
.blog-headrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.blog-headrow .blog-h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
.blog-headrow .blog-search { margin-top: 0; width: 100%; max-width: 24rem; }
.blog-hero .crumbs { margin-bottom: 1rem; }
.blog-hero .blog-intro { margin-top: 0.75rem; font-size: 1rem; }
.blog-hero .pills { margin-top: 1.25rem; }
.blog-hero { padding: 1.75rem 0 1.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(212, 175, 55, 0.04), transparent 70%); }
.blog-h1 { font-family: "Playfair Display", serif; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; color: #fff; max-width: 52rem; }
.blog-intro { color: var(--muted); font-size: 1.1rem; line-height: 1.7; max-width: 44rem; margin-top: 1.25rem; }

.blog-search { position: relative; max-width: 28rem; margin-top: 2rem; }
.blog-search input { width: 100%; background: rgba(0, 0, 0, 0.5); border: 1px solid var(--line); color: var(--text); padding: 0.85rem 3rem 0.85rem 1rem; border-radius: 2px; outline: none; font: inherit; }
.blog-search input:focus { border-color: rgba(212, 175, 55, 0.5); }
.blog-search button { position: absolute; right: 0; top: 0; bottom: 0; width: 3rem; display: flex; align-items: center; justify-content: center; color: var(--gold); }

.pills { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.75rem; }
.pill { padding: 0.45rem 1rem; border: 1px solid var(--line); border-radius: 999px; font-size: 0.85rem; color: var(--muted); transition: all 0.25s; }
.pill span { opacity: 0.5; margin-left: 0.25rem; }
.pill:hover { border-color: rgba(212, 175, 55, 0.5); color: var(--gold); }
.pill.is-active { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; }

/* сетка и карточки */
.blog-list { padding: 2rem 0 5rem; }
.post-grid { display: grid; gap: 1.75rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px) { .post-grid.cols-1 { grid-template-columns: 1fr; } }
@media (min-width: 1024px) {
    .post-grid.cols-1 { grid-template-columns: 1fr; }
    .post-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
    .post-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.post-card { display: flex; flex-direction: column; overflow: hidden; border-radius: 2px; }
.post-card-img { display: block; aspect-ratio: 16 / 9; background: #0d0d0d; overflow: hidden; }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.card-noimg { width: 100%; height: 100%; background: radial-gradient(circle at 30% 30%, rgba(212, 175, 55, 0.18), transparent 60%), #0d0d0d; }
.post-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem; }
.post-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.75rem; color: var(--muted); margin-bottom: 0.9rem; }
.cat-label { color: var(--gold); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.7rem; }
.cat-label:hover { text-decoration: underline; }
.post-card-title { font-family: "Playfair Display", serif; font-size: 1.3rem; line-height: 1.3; color: #fff; margin-bottom: 0.75rem; }
.post-card-title a:hover { color: var(--gold); }
.post-card-excerpt { color: var(--muted); font-size: 0.92rem; line-height: 1.65; flex: 1; }
.post-card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 1.25rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.read-more { color: var(--gold); }
.read-more:hover { text-decoration: underline; }

.empty-state { text-align: center; padding: 4rem 1rem; color: var(--muted); }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 3rem; }
.tag-cloud a { padding: 0.3rem 0.8rem; font-size: 0.8rem; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); transition: all 0.2s; }
.tag-cloud a:hover { color: var(--gold); border-color: rgba(212, 175, 55, 0.5); }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-top: 3rem; }
.pg { min-width: 2.5rem; height: 2.5rem; padding: 0 0.75rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); font-size: 0.9rem; transition: all 0.2s; }
a.pg:hover { color: var(--gold); border-color: rgba(212, 175, 55, 0.5); }
.pg-cur { background: var(--gold); border-color: var(--gold); color: #000; font-weight: 600; }
.pg-gap { border: 0; }

.seo-text { margin-top: 4rem; padding-top: 2.5rem; border-top: 1px solid var(--line); max-width: 52rem; }

/* страница статьи */
.post-head { padding: 3rem 0 1.5rem; }
.post-h1 { font-family: "Playfair Display", serif; font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.18; color: #fff; margin: 0.9rem 0 1.25rem; }
.post-lead { color: #c9ccd1; font-size: 1.2rem; line-height: 1.7; margin-bottom: 1.25rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; font-size: 0.85rem; color: var(--muted); }
.post-cover { margin: 1.5rem 0 2.5rem; border: 1px solid rgba(212, 175, 55, 0.12); border-radius: 2px; overflow: hidden; background: #0d0d0d; }
.post-cover img { width: 100%; height: auto; display: block; }

.toc { margin: 0 0 2.5rem; padding: 1.5rem 1.75rem; border: 1px solid rgba(212, 175, 55, 0.18); background: var(--slate); border-radius: 2px; }
.toc-title { font-family: "Playfair Display", serif; font-size: 1.15rem; color: #fff; margin-bottom: 0.9rem; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; counter-reset: toc; }
.toc li a { color: var(--muted); font-size: 0.95rem; transition: color 0.2s; }
.toc li a:hover { color: var(--gold); }
.toc-l3 { padding-left: 1.25rem; font-size: 0.9rem; }

/* типографика контента */
.prose-zp { font-size: 1.075rem; line-height: 1.85; color: #d4d6da; overflow-wrap: break-word; }
.prose-zp > * + * { margin-top: 1.25rem; }
.prose-zp h2 { font-family: "Playfair Display", serif; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1.25; color: #fff; margin-top: 3rem; scroll-margin-top: 6.5rem; }
.prose-zp h3 { font-family: "Playfair Display", serif; font-size: 1.4rem; line-height: 1.3; color: #fff; margin-top: 2.25rem; scroll-margin-top: 6.5rem; }
.prose-zp h4 { font-size: 1.1rem; font-weight: 600; color: #fff; margin-top: 1.75rem; }
.prose-zp a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(212, 175, 55, 0.4); }
.prose-zp a:hover { text-decoration-color: var(--gold); }
.prose-zp strong { color: #fff; font-weight: 600; }
.prose-zp ul, .prose-zp ol { padding-left: 1.5rem; }
.prose-zp ul { list-style: none; }
.prose-zp ul li { position: relative; }
.prose-zp ul li::before { content: ""; position: absolute; left: -1.25rem; top: 0.8em; width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }
.prose-zp ol { list-style: decimal; }
.prose-zp ol li::marker { color: var(--gold); }
.prose-zp li + li { margin-top: 0.5rem; }
.prose-zp blockquote { margin-left: 0; padding: 1.25rem 1.5rem; border-left: 2px solid var(--gold); background: rgba(212, 175, 55, 0.05); font-family: "Playfair Display", serif; font-size: 1.2rem; font-style: italic; color: #fff; }
.prose-zp hr { border: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.5), transparent); margin: 2.5rem 0; }
.prose-zp img { max-width: 100%; height: auto; border-radius: 2px; border: 1px solid rgba(212, 175, 55, 0.12); }
.prose-zp figure { margin: 2rem 0; }
.prose-zp figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.6rem; text-align: center; }
.prose-zp code { background: #1a1a1a; padding: 0.1em 0.4em; border-radius: 2px; font-size: 0.92em; }
.prose-zp pre { background: #0d0d0d; border: 1px solid var(--line); padding: 1rem; overflow-x: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 2px; }
.prose-zp table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 32rem; }
.prose-zp th { text-align: left; color: var(--gold); font-weight: 600; background: var(--slate); }
.prose-zp th, .prose-zp td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.post-tags { margin-top: 2.5rem; }

/* FAQ */
.faq { margin-top: 3.5rem; }
.faq-title { font-family: "Playfair Display", serif; font-size: 1.7rem; color: #fff; margin-bottom: 1.25rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem 2rem 1.1rem 0; color: #fff; font-weight: 500; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.5rem; font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details div { padding: 0 0 1.25rem; color: var(--muted); line-height: 1.75; }

/* автор и CTA */
.author-box { display: flex; gap: 1.25rem; margin-top: 3.5rem; padding: 1.5rem; border: 1px solid var(--line); background: var(--slate); border-radius: 2px; }
.author-ava { flex: none; width: 3.5rem; height: 3.5rem; border: 1px solid rgba(212, 175, 55, 0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Playfair Display", serif; font-size: 1.4rem; color: var(--gold); }
.author-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.15em; color: var(--muted); }
.author-name { font-family: "Playfair Display", serif; font-size: 1.2rem; color: #fff; }
.author-job { font-size: 0.85rem; color: var(--gold); margin-top: 0.15rem; }
.author-bio { font-size: 0.92rem; color: var(--muted); line-height: 1.65; margin-top: 0.6rem; }

.cta-box { margin-top: 3rem; padding: 2.5rem 2rem; text-align: center; border: 1px solid rgba(212, 175, 55, 0.3); background: linear-gradient(145deg, #141414, #0a0a0a); border-radius: 2px; box-shadow: 0 10px 40px -15px rgba(212, 175, 55, 0.2); }
.cta-box h2 { font-family: "Playfair Display", serif; font-size: 1.8rem; color: #fff; margin-bottom: 0.75rem; }
.cta-box p:not(.eyebrow) { color: var(--muted); margin-bottom: 1.75rem; }

.related { margin-top: 5rem; padding: 4rem 0 5rem; border-top: 1px solid var(--line); background: var(--slate); }
.related-title { font-family: "Playfair Display", serif; font-size: 2rem; color: #fff; margin-bottom: 2rem; }

@media (max-width: 640px) {
    .blog-main { padding-top: 5rem; }
    .author-box { flex-direction: column; }
    .prose-zp { font-size: 1.02rem; }
}

.related { padding: 2.5rem 0 3rem; margin-top: 3rem; }
.related-title { font-size: 1.5rem; margin-bottom: 1.25rem; }
.post-nav { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.75rem; }
.post-nav a { color: var(--text); font-size: 1.05rem; line-height: 1.5; transition: color 0.2s; }
.post-nav a:hover { color: var(--gold); }
.post-nav span { color: var(--gold); }
