/* ================================================================
   Kadence Anthropic — unified styles
   Source: home-v4-anthropic.html + post/v4-anthropic-brutalist.html
   ================================================================ */

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --mono: 'Space Mono', monospace;
  --sans: 'Outfit', system-ui, sans-serif;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --black: #000000;
  --white: #ffffff;
  --off-white: #faf9f5;
  --bg-warm: #f0efe8;
  --yellow: #ffe000;
  --text-body: #1a1a1a;
  --text-secondary: #444444;
  --text-muted: #666666;
  --meta: #999999;
  --slate-light: #5e5d59;
  --light-gray: #e5e4df;
  --border-subtle: #d1cfc5;
  --content-w: 640px;
  --media-w: 880px;
}

body { font-family: var(--serif); background: var(--off-white); color: var(--text-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--yellow); }

/* ================================================================
   SHARED: Navigation
   ================================================================ */

.topbar { padding: 1rem 0; border-bottom: 1px solid var(--light-gray); }
.topbar-inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: center; }
.topbar-logo { font-family: var(--mono); font-size: 0.85rem; font-weight: 700; text-decoration: none; color: var(--black); text-transform: uppercase; letter-spacing: 0.05em; }
.topbar-nav { display: flex; gap: 0.5rem; align-items: center; }
.topbar-nav a { font-family: var(--sans); font-size: 0.85rem; text-decoration: none; color: var(--text-muted); padding: 0.4rem 0.75rem; transition: color 0.15s; font-weight: 500; }
.topbar-nav a:hover { color: var(--black); }
.topbar-nav .nav-cta { background: var(--black); color: var(--white); border-radius: 100px; font-weight: 600; padding: 0.5rem 1.25rem; }
.topbar-nav .nav-cta:hover { background: #333; }

/* ── Topbar: Dropdowns ── */
.topbar-dropdown { position: relative; }
.topbar-dropdown-toggle {
  font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); background: none; border: none; cursor: pointer;
  padding: 0.4rem 0.75rem; display: inline-flex; align-items: center; gap: 0.35rem;
  transition: color 0.15s;
}
.topbar-dropdown-toggle:hover { color: var(--black); }
.dd-chevron { transition: transform 0.2s; }
.topbar-dropdown.open .dd-chevron,
.topbar-dropdown:hover .dd-chevron { transform: rotate(180deg); }

.topbar-dropdown-menu {
  position: absolute; top: calc(100% + 0.5rem); left: 0;
  min-width: 200px; background: var(--off-white);
  border: 1px solid var(--light-gray);
  padding: 0.5rem 0; opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}
.topbar-dropdown:hover .topbar-dropdown-menu,
.topbar-dropdown.open .topbar-dropdown-menu,
.topbar-dropdown:focus-within .topbar-dropdown-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}

.topbar-dropdown-item {
  display: block; font-family: var(--sans); font-size: 0.85rem; font-weight: 500;
  color: var(--text-muted); text-decoration: none;
  padding: 0.5rem 1rem; transition: color 0.15s, background 0.15s;
}
.topbar-dropdown-item:hover { color: var(--black); background: var(--bg-warm); }

/* ── Topbar: Telegram icon ── */
.topbar-nav .nav-tg {
  display: inline-flex; align-items: center; padding: 0.4rem 0.5rem;
  color: var(--text-muted); transition: color 0.15s;
}
.topbar-nav .nav-tg:hover { color: var(--black); }
.topbar-nav .nav-tg svg { width: 22px; height: 22px; }

/* ── Community page ── */
.community-cards { display: flex; flex-direction: column; gap: 16px; margin: 2rem 0; }
.community-card {
  display: flex; align-items: flex-start; gap: 24px;
  background: var(--bg-warm); border-radius: 12px; padding: 32px;
  text-decoration: none; color: inherit; transition: box-shadow 0.2s;
}
.community-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.community-icon { flex-shrink: 0; width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.community-icon--channel { background: var(--black); color: var(--white); }
.community-icon--chat { background: var(--yellow); color: var(--black); }
.community-info { min-width: 0; }
.article-body .community-info h2 { font-size: 19px; margin: 0 0 8px; max-width: none; }
.article-body .community-info p { font-size: 16px; margin: 0 0 16px; max-width: none; }
.community-btn {
  display: inline-block; font-family: var(--sans); font-size: 0.85rem; font-weight: 600;
  padding: 10px 24px; border-radius: 100px;
  background: var(--black); color: var(--white); transition: background 0.15s;
}
.community-card:hover .community-btn { background: #333; }
.community-btn--chat { background: var(--black); }
@media (max-width: 567px) {
  .community-card { flex-direction: column; gap: 16px; padding: 24px; }
}

/* ================================================================
   SHARED: Footer (dark, Anthropic-style)
   ================================================================ */

.footer { background: #141413; color: var(--off-white); padding: clamp(3rem, 5vw, 5rem) clamp(2rem, 5vw, 5rem) 2rem; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-cols { display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 3rem; }
.footer-col h4 { font-family: var(--sans); font-size: 16px; font-weight: 500; color: var(--off-white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a { font-family: var(--sans); font-size: 14px; color: #b0aea5; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--off-white); text-decoration: underline; text-underline-offset: 0.25em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-bottom span, .footer-bottom a { font-family: var(--sans); font-size: 0.8rem; color: #b0aea5; text-decoration: none; }
.footer-bottom a:hover { color: var(--off-white); }
.footer-legal { display: flex; gap: 1.5rem; }

/* Footer Telegram CTA */
.footer-telegram { margin-top: 2.5rem; text-align: center; }
.footer-tg-btn { display: inline-flex; align-items: center; gap: 0.75rem; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; padding: 14px 32px; color: var(--off-white); font-family: var(--sans); font-size: 0.9rem; font-weight: 500; text-decoration: none; transition: background 0.2s, border-color 0.2s; }
.footer-tg-btn:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); }
.footer-tg-btn svg { flex-shrink: 0; }

/* ================================================================
   HOMEPAGE: Marquee
   ================================================================ */

.marquee { padding: 0.75rem 0; overflow: hidden; white-space: nowrap; border-bottom: 1px solid var(--light-gray); }
.marquee-inner { display: inline-block; animation: marquee 25s linear infinite; }
.marquee-item { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--meta); display: inline; }
.marquee-dot { display: inline-block; width: 4px; height: 4px; background: var(--yellow); border-radius: 50%; margin: 0 2rem; vertical-align: middle; }
@keyframes marquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ================================================================
   HOMEPAGE: Hero
   ================================================================ */

.hero { max-width: var(--media-w); margin: 0 auto; padding: 5rem 2rem 4rem; }
.hero-label { font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1.5rem; }
.hero h1 { font-family: var(--sans); font-size: clamp(2.5rem, 5vw, 52px); font-weight: 700; line-height: 1.05; color: var(--black); letter-spacing: -0.03em; margin-bottom: 2rem; }
.hero h1 .accent { background: var(--yellow); padding: 0 0.1em; }
.hero-desc { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--text-secondary); max-width: var(--content-w); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1rem; align-items: center; }
.hero-btn { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.75rem 2rem; text-decoration: none; border-radius: 100px; transition: background 0.15s; }
.hero-btn:hover { background: #333; }
.hero-phone { font-family: var(--mono); font-size: 0.9rem; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.hero-phone:hover { color: var(--black); }

/* ================================================================
   HOMEPAGE: Stats strip
   ================================================================ */

.stats-strip { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; }
.stats-strip-inner { display: flex; gap: 2rem; padding: 2rem 0; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); }
.stat-item { flex: 1; }
.stat-val { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-val .hl { background: var(--yellow); padding: 0 0.1em; }
.stat-label { font-family: var(--sans); font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ================================================================
   LANDING PAGES: Consultation & Podbor
   ================================================================ */

.section { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; }
.section h2 { font-family: var(--sans); font-size: 32px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: var(--content-w); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.result-card { background: var(--bg-warm); border-radius: 12px; padding: 28px 28px; }
.result-icon { font-family: var(--mono); font-size: 1.5rem; margin-bottom: 12px; line-height: 1; }
.result-title { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.result-desc { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.scenario-grid { display: flex; flex-direction: column; gap: 16px; }
.scenario-card { background: var(--bg-warm); border-radius: 12px; padding: 28px 32px; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.scenario-num { font-family: var(--mono); font-size: 14px; color: var(--border-subtle); margin-top: 2px; }
.scenario-title { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.scenario-desc { font-family: var(--serif); font-size: 16px; line-height: 1.5; color: var(--text-secondary); }
.steps { display: flex; gap: 2rem; }
.step { flex: 1; }
.step-num { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 12px; }
.step-title { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.step-desc { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }
.form-section { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; }
.form-wrap { background: var(--bg-warm); border-radius: 16px; padding: 3rem; }
.form-heading { font-family: var(--sans); font-size: 28px; font-weight: 600; color: var(--black); margin-bottom: 0.5rem; }
.form-sub { font-family: var(--serif); font-size: 16px; color: var(--text-secondary); margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-label { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-muted); }
.form-input { font-family: var(--serif); font-size: 16px; padding: 12px 16px; border: 1px solid var(--light-gray); border-radius: 8px; background: var(--off-white); color: var(--text-body); outline: none; transition: border-color 0.15s; width: 100%; }
.form-input:focus { border-color: var(--black); }
.form-input::placeholder { color: var(--meta); }
textarea.form-input { resize: vertical; min-height: 100px; font-family: var(--serif); }
select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-submit { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.85rem 2.5rem; border: none; border-radius: 100px; cursor: pointer; transition: background 0.15s; margin-top: 8px; }
.form-submit:hover { background: #333; }
.form-note { font-family: var(--sans); font-size: 13px; color: var(--meta); margin-top: 12px; }
.form-note a { color: var(--text-muted); }
/* Component gallery (podbor) */
.gallery-section { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; }
.gallery-section h2 { font-family: var(--sans); font-size: 32px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; margin-bottom: 1.5rem; max-width: var(--content-w); }
.component-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.component-card { background: var(--bg-warm); border-radius: 12px; overflow: hidden; }
.component-img { width: 100%; height: 160px; background: var(--bg-warm); border-bottom: 1px solid var(--border-subtle); overflow: hidden; }
.component-img img { width: 100%; height: 100%; object-fit: cover; }
.component-info { padding: 16px 20px; }
.component-name { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 6px; }
.component-desc { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }

/* Scroll-driven video (podbor) */
.scroll-video-container { height: 300vh; position: relative; margin-bottom: 2rem; }
.scroll-video-sticky { position: sticky; top: 80px; height: calc(100vh - 100px); display: flex; align-items: center; justify-content: center; }
.scroll-video-sticky video { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* Landing FAQ section */
.faq-section { max-width: var(--content-w); }
.faq-item { border-bottom: 1px solid var(--light-gray); }
.faq-item:first-child { border-top: 1px solid var(--light-gray); }
.faq-a { display: none; font-size: 1.05rem; line-height: 1.65; color: var(--text-secondary); padding: 0 0 1.25rem; }
.faq-a.show { display: block; }

/* CF7: hide hidden fields container border */
.form-wrap .wpcf7-form fieldset.hidden-fields-container { border: none; padding: 0; margin: 0; }
/* CF7 form elements inside .form-wrap */
.form-wrap .wpcf7-form p { font-family: var(--sans); font-size: 14px; font-weight: 500; color: var(--text-muted); margin-bottom: 16px; }
.form-wrap .wpcf7-form input[type="text"],
.form-wrap .wpcf7-form input[type="email"],
.form-wrap .wpcf7-form input[type="tel"],
.form-wrap .wpcf7-form select,
.form-wrap .wpcf7-form textarea { font-family: var(--serif); font-size: 16px; padding: 12px 16px; border: 1px solid var(--light-gray); border-radius: 8px; background: var(--off-white); color: var(--text-body); outline: none; transition: border-color 0.15s; width: 100%; }
.form-wrap .wpcf7-form input:focus,
.form-wrap .wpcf7-form select:focus,
.form-wrap .wpcf7-form textarea:focus { border-color: var(--black); }
.form-wrap .wpcf7-form input::placeholder,
.form-wrap .wpcf7-form textarea::placeholder { color: var(--meta); }
.form-wrap .wpcf7-form textarea { resize: vertical; min-height: 100px; }
.form-wrap .wpcf7-form select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.form-wrap .wpcf7-form input[type="submit"] { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.85rem 2.5rem; border: none; border-radius: 100px; cursor: pointer; transition: background 0.15s; margin-top: 8px; }
.form-wrap .wpcf7-form input[type="submit"]:hover { background: #333; }
.form-wrap .wpcf7-form .wpcf7-acceptance { font-family: var(--sans); font-size: 13px; color: var(--meta); }
.form-wrap .wpcf7-form .wpcf7-acceptance a { color: var(--text-muted); }

/* ================================================================
   HOMEPAGE: Section heading
   ================================================================ */

.section-head { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem; display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2rem; }
.section-head h2 { font-family: var(--sans); font-size: 32px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; }
.section-head a { font-family: var(--sans); font-size: 15px; color: var(--text-muted); text-decoration: none; transition: color 0.15s; }
.section-head a:hover { color: var(--black); }

/* ================================================================
   HOMEPAGE: Build cards
   ================================================================ */

.builds { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; display: flex; flex-direction: column; gap: 16px; }
.build-card { background: var(--bg-warm); border-radius: 12px; padding: 28px 32px; display: grid; grid-template-columns: 1fr 1fr 120px 160px; gap: 24px; align-items: center; transition: box-shadow 0.2s; text-decoration: none; color: inherit; }
.build-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.05); }
.build-name { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--black); margin-bottom: 4px; }
.build-tier { font-family: var(--sans); font-size: 14px; color: var(--text-muted); }
.build-specs { font-family: var(--mono); font-size: 14px; line-height: 1.7; color: var(--text-secondary); letter-spacing: -0.3px; }
.build-specs b { font-weight: 700; color: var(--black); }
.build-gilev { text-align: center; }
.build-gilev-val { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; }
.build-gilev-label { font-family: var(--sans); font-size: 11px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.06em; }
.build-action { text-align: right; }
.build-price { font-family: var(--sans); font-size: 19px; font-weight: 700; color: var(--black); margin-bottom: 4px; }
.build-price-note { font-family: var(--sans); font-size: 12px; color: var(--meta); }
.build-order { display: inline-block; font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--black); border: 1px solid var(--border-subtle); padding: 0.45rem 1.2rem; border-radius: 100px; text-decoration: none; margin-top: 8px; transition: all 0.15s; }
.build-order:hover { border-color: var(--black); background: var(--black); color: var(--white); }

/* ================================================================
   HOMEPAGE: Features
   ================================================================ */

.features { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feat-card { background: var(--bg-warm); border-radius: 12px; padding: 28px 24px; }
.feat-num { font-family: var(--mono); font-size: 14px; color: var(--border-subtle); margin-bottom: 20px; }
.feat-card h3 { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.feat-card p { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-secondary); }

/* ================================================================
   HOMEPAGE: Blog list
   ================================================================ */

.blog-list { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; display: flex; flex-direction: column; }
.blog-item { display: flex; justify-content: space-between; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--light-gray); text-decoration: none; color: inherit; transition: opacity 0.15s; }
.blog-item:first-child { border-top: 1px solid var(--light-gray); }
.blog-item:hover { opacity: 0.7; }
.blog-item-left { display: flex; gap: 16px; align-items: baseline; }
.blog-tag { font-family: var(--sans); font-size: 12px; color: var(--text-muted); border: 1px solid var(--light-gray); padding: 2px 10px; border-radius: 100px; flex-shrink: 0; }
.blog-title { font-family: var(--sans); font-size: 17px; font-weight: 500; color: var(--black); }
.blog-date { font-family: var(--sans); font-size: 14px; color: var(--meta); flex-shrink: 0; }

/* ================================================================
   HOMEPAGE: CTA banner
   ================================================================ */

.cta { max-width: var(--media-w); margin: 0 auto 4rem; padding: 0 2rem; }
.cta-inner { background: var(--bg-warm); border-radius: 16px; padding: 3.5rem; display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.cta-text h2 { font-family: var(--sans); font-size: 32px; font-weight: 700; color: var(--black); line-height: 1.15; max-width: 400px; letter-spacing: -0.02em; }
.cta-text h2 .accent { color: var(--yellow); }
.cta-right { text-align: right; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.cta-phone { font-family: var(--mono); font-size: 1.25rem; font-weight: 700; color: var(--black); text-decoration: none; }
.cta-phone:hover { opacity: 0.7; }
.cta-btn { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.75rem 2rem; text-decoration: none; border-radius: 100px; transition: background 0.15s; }
.cta-btn:hover { background: #333; }

/* ================================================================
   POST: Article header
   ================================================================ */

.article-header { max-width: var(--media-w); margin: 0 auto; padding: 4rem 2rem 2.5rem; }
.article-header .cat { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 1.25rem; display: block; }
.article-header h1 { font-family: var(--sans); font-size: clamp(2rem, 4.5vw, 52px); font-weight: 700; line-height: 1.1; color: var(--black); letter-spacing: -0.03em; }
.article-header .meta { font-family: var(--sans); font-size: 0.85rem; color: var(--meta); margin-top: 1.5rem; }
.meta-author-link { display: inline-flex; align-items: center; gap: 0.5rem; color: var(--text-secondary); text-decoration: none; }
.meta-author-link:hover { color: var(--black); }
.meta-avatar-placeholder { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; }
.meta-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.meta-name { font-weight: 600; }
.meta-sep { margin: 0 0.4rem; color: var(--meta); }
.article-header .lede { font-family: var(--serif); font-size: 21px; line-height: 1.55; color: var(--text-secondary); margin-top: 2rem; max-width: var(--content-w); }

/* ================================================================
   POST: Article body — two-tier width system
   ================================================================ */

.article-body { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 3rem; }

/* Text elements constrained to reading width */
.article-body p, .article-body h2, .article-body h3, .article-body h4,
.article-body ul, .article-body ol, .article-body blockquote,
.article-body .highlight-block, .article-body .article-cta,
.article-body .faq-section, .article-body .related-links,
.article-body .article-tags, .article-body .footnotes,
.article-body .sep { max-width: var(--content-w); }

/* ── Body text ── */
.article-body p { font-size: 18px; line-height: 1.55; margin-bottom: 16px; color: var(--text-body); }
.article-body strong { font-weight: 600; color: var(--black); }
.article-body em { font-style: italic; }
.article-body a:not([class]) { color: var(--text-body); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; text-decoration-skip-ink: auto; transition: opacity 0.15s; }
.article-body a:not([class]):hover { opacity: 0.7; }

/* ── Lists ── */
.article-body ul, .article-body ol { margin: 16px 0; padding-left: 21px; }
.article-body ul { list-style-type: disc; }
.article-body ol { list-style-type: decimal; }
.article-body li { font-size: 18px; line-height: 1.4; margin-bottom: 12px; color: var(--text-body); }

/* ── Inline code ── */
.article-body code { font-family: 'Space Mono', 'JetBrains Mono', 'DM Mono', monospace; font-size: 0.9em; color: #d97757; background: var(--off-white); padding: 0 8px; border-radius: 4px; }

/* ── Code block ── */
.code-block { background: var(--bg-warm); border-radius: 12px; padding: 32px 16px 0 32px; margin: 2rem 0; border: 1px solid var(--light-gray); overflow: visible; }
.code-block pre { margin: 0; overflow: auto; padding-bottom: 32px; }
.code-block code { font-family: 'Space Mono', 'JetBrains Mono', 'DM Mono', monospace; font-size: 15px; line-height: 1.4; letter-spacing: -0.6px; color: var(--text-body); background: transparent; padding: 0; border-radius: 0; white-space: pre-wrap; }

/* ── Blockquote ── */
.article-body blockquote { margin: 2rem 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--light-gray); }
.article-body blockquote p { font-style: italic; color: var(--text-secondary); }

/* ── Headings ── */
.article-body h2 { font-family: var(--sans); font-size: 32px; font-weight: 600; color: var(--black); margin: 64px 0 32px; line-height: 1.2; letter-spacing: -0.02em; }
.article-body h3 { font-family: var(--sans); font-size: 25px; font-weight: 600; color: var(--black); margin: 32px 0 8px; line-height: 1.2; }

/* ── Tables — Anthropic card style ── */
.table-wrap { background: var(--bg-warm); border-radius: 12px; padding: 24px; margin: 1.75rem 0 2.25rem; }
.table-wrap .table-title { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--black); margin-bottom: 24px; }
.article-body table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: var(--sans); font-size: 15px; line-height: 1.4; }
.article-body th, .article-body td { padding: 16px; border-bottom: 1px solid #d1cfc5; text-align: left; vertical-align: text-top; white-space: normal; word-wrap: break-word; }
.article-body th:first-child, .article-body td:first-child { padding-left: 0; }
.article-body th:last-child, .article-body td:last-child { padding-right: 0; }
.article-body tr:last-child th, .article-body tr:last-child td { border-bottom: none; }
.article-body th { font-weight: 600; color: var(--black); }
.article-body td { color: var(--text-body); }

/* ── Images — full media-column width, rounded ── */
.article-body figure { margin: 16px 0; max-width: var(--media-w); }
.article-body figure img { width: 100%; height: auto; display: block; border-radius: 16px; }
.article-body figcaption { font-family: var(--sans); font-size: 14px; color: var(--slate-light); margin-top: 8px; line-height: 1.2; font-weight: 400; max-width: var(--content-w); }

/* ── Callout — warm background card ── */
.callout { background: var(--bg-warm); padding: 2rem 2.25rem; margin: 2.5rem 0; border-radius: 2px; }
.callout .callout-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-muted); margin-bottom: 0.75rem; }
.callout .callout-metric { font-family: var(--mono); font-size: 2.5rem; font-weight: 700; color: var(--black); line-height: 1; margin-bottom: 0.5rem; }
.callout .callout-metric span { color: var(--text-muted); font-size: 1rem; font-weight: 400; margin-left: 0.5rem; }
.callout p { font-size: 18px; line-height: 1.6; margin-bottom: 0; color: var(--text-secondary); }

/* ── Highlight block ── */
.highlight-block { border-left: 3px solid var(--yellow); padding: 0.25rem 0 0.25rem 1.5rem; margin: 2.5rem 0; }
.highlight-block p { font-size: 18px; line-height: 1.65; color: var(--text-body); margin-bottom: 0; }

/* ── Stats row (article) ── */
.stats-row { display: flex; gap: 2rem; margin: 2.5rem 0; padding: 2rem 0; border-top: 1px solid var(--light-gray); border-bottom: 1px solid var(--light-gray); }
.stat-card { flex: 1; }
.stat-card .sv { font-family: var(--mono); font-size: 2rem; font-weight: 700; color: var(--black); line-height: 1; }
.stat-card .sv.accent { color: var(--black); background: var(--yellow); display: inline-block; padding: 0 0.15em; }
.stat-card .sl { font-family: var(--sans); font-size: 0.8rem; color: var(--text-muted); margin-top: 0.35rem; }

/* ── FAQ — minimal accordion ── */
.faq-section { margin: 3rem 0; }
.faq-item { border-top: 1px solid var(--light-gray); }
.faq-item:last-child { border-bottom: 1px solid var(--light-gray); }
.faq-q { font-family: var(--sans); font-weight: 600; font-size: 1.05rem; padding: 1.25rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--black); line-height: 1.35; }
.faq-q::after { content: '+'; font-family: var(--mono); font-size: 1.2rem; color: var(--meta); margin-left: 1rem; flex-shrink: 0; transition: transform 0.2s; }
.faq-q.open::after { content: '\2212'; color: var(--black); }
.faq-a { font-size: 1.05rem; line-height: 1.65; padding: 0 0 1.25rem; display: none; color: var(--text-secondary); }
.faq-a.show { display: block; }

/* ── Article CTA ── */
.article-cta { background: var(--bg-warm); border: 1px solid var(--light-gray); padding: 2.5rem; margin: 3.5rem 0; text-align: center; border-radius: 2px; }
.article-cta .cta-heading { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; color: var(--black); margin-bottom: 0.75rem; }
.article-cta .cta-sub { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.5rem; font-family: var(--sans); }
.article-cta a { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.75rem 2rem; text-decoration: none; border-radius: 100px; transition: background 0.15s; }
.article-cta a:hover { background: #333; }

/* ── Testimonial / Quote cards ── */
.testimonial-row { display: flex; gap: 32px; margin: 3rem 0; overflow-x: auto; padding: 0.5rem 0; max-width: var(--media-w); }
.testimonial-card { background: var(--bg-warm); border-radius: 16px; padding: 16px 32px 32px; flex: 0 0 auto; width: 420px; display: flex; flex-direction: column; }
.testimonial-card .tc-logo { padding-bottom: 12px; margin-bottom: 32px; border-bottom: 1px solid #d1cfc5; display: flex; align-items: center; min-height: 48px; }
.testimonial-card .tc-logo img { max-height: 32px; max-width: 150px; }
.testimonial-card .tc-logo span { font-family: var(--sans); font-size: 0.95rem; font-weight: 600; color: var(--text-body); }
.testimonial-card .tc-mark { font-family: var(--serif); font-size: 2.5rem; line-height: 1; color: var(--text-muted); margin-bottom: 4px; }
.testimonial-card .tc-text { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--text-body); margin-bottom: 32px; flex: 1; }
.testimonial-card .tc-author { font-family: var(--sans); font-size: 16px; line-height: 1.4; color: var(--text-muted); }
.testimonial-card .tc-author strong { font-weight: 400; color: var(--text-secondary); }

/* ── Footnotes ── */
.footnotes { margin-top: 32px; padding-top: 2rem; border-top: 1px solid var(--light-gray); }
.footnotes h4 { font-family: var(--sans); font-size: 25px; font-weight: 600; color: var(--black); margin-bottom: 16px; }
.footnotes p { font-family: var(--serif); font-size: 16px; line-height: 1.55; color: var(--text-body); margin-bottom: 8px; }
.footnotes sup { font-size: 14px; color: var(--text-muted); vertical-align: super; line-height: 0; }
.article-body sup { font-family: var(--serif); font-size: 14px; color: var(--text-muted); vertical-align: super; line-height: 0; cursor: default; }

/* ── Separator ── */
.sep { width: 60px; height: 2px; background: var(--light-gray); margin: 3rem auto; }

/* ── Article tags ── */
.article-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 2rem 0; }
.article-tags a { font-family: var(--sans); font-size: 0.75rem; color: var(--text-muted); padding: 0.3rem 0.65rem; text-decoration: none; border: 1px solid var(--light-gray); border-radius: 100px; transition: all 0.15s; }
.article-tags a:hover { border-color: var(--black); color: var(--black); }

/* ── Related links ── */
.related-links { margin: 2.5rem 0 0; padding-top: 2rem; border-top: 1px solid var(--light-gray); }
.related-links h3 { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.related-links ul { list-style: none; }
.related-links li { margin-bottom: 0.75rem; }
.related-links a { font-family: var(--serif); font-size: 1.05rem; color: var(--black); text-decoration: underline; text-decoration-color: var(--light-gray); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.related-links a:hover { text-decoration-color: var(--black); }

/* ── Related content (card grid) ── */
.related-content { max-width: var(--media-w); margin: 0 auto; padding: 4rem 2rem 3rem; }
.related-content h2 { font-family: var(--sans); font-size: 32px; font-weight: 600; color: var(--black); letter-spacing: -0.02em; margin-bottom: 2rem; }
.related-grid { display: flex; gap: 2rem; }
.related-card { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }
.related-card h3 { font-family: var(--sans); font-size: 19px; font-weight: 600; color: var(--black); line-height: 1.2; }
.related-card p { font-family: var(--serif); font-size: 15px; font-weight: 400; color: var(--text-body); line-height: 1.4; }
.related-card .read-more { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--sans); font-size: 15px; font-weight: 400; color: var(--slate-light); text-decoration: none; margin-top: 0.5rem; transition: color 0.15s; }
.related-card .read-more:hover { color: var(--black); }
.related-card .read-more svg { width: 18px; height: 18px; transition: transform 0.15s; }
.related-card .read-more:hover svg { transform: translateX(3px); }
.related-card a.related-card-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 0.5rem; }
.related-card a.related-card-link:hover h3 { color: var(--text-secondary); }

/* Telegram CTA banner — вариант A: нейтральный */
.tg-cta { max-width: var(--media-w); margin: 0 auto; padding: 1rem 2rem 3rem; }
.tg-cta-inner { display: flex; align-items: center; gap: 1.5rem; padding: 1.5rem 2rem; border-radius: 12px; background: var(--bg-warm); border: 1px solid var(--border-subtle); }
.tg-cta-icon { flex-shrink: 0; width: 48px; height: 48px; border-radius: 12px; background: var(--black); color: var(--white); display: flex; align-items: center; justify-content: center; }
.tg-cta-text { flex: 1; min-width: 0; }
.tg-cta-title { font-family: var(--sans); font-size: 17px; font-weight: 700; color: var(--black); margin-bottom: 0.25rem; }
.tg-cta-desc { font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--text-secondary); margin: 0; }
.tg-cta-btn { flex-shrink: 0; font-family: var(--sans); font-size: 14px; font-weight: 600; color: var(--black); background: var(--yellow); padding: 0.6rem 1.4rem; border-radius: 8px; text-decoration: none; transition: opacity 0.15s; }
.tg-cta-btn:hover { opacity: 0.85; }

/* Telegram CTA banner — вариант B: жёлтый */
.tg-cta--yellow .tg-cta-inner { background: var(--yellow); border-color: transparent; }
.tg-cta--yellow .tg-cta-icon { background: var(--black); }
.tg-cta--yellow .tg-cta-desc { color: var(--text-body); }
.tg-cta--yellow .tg-cta-btn { background: var(--black); color: var(--white); }

/* Author bio */
.author-bio { max-width: var(--media-w); margin: 0 auto; padding: 2rem 2rem 3rem; display: flex; gap: 1.5rem; align-items: flex-start; }
.author-bio-avatar img { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; }
.author-bio-placeholder { display: flex; align-items: center; justify-content: center; width: 80px; height: 80px; border-radius: 50%; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 24px; font-weight: 700; letter-spacing: 0.02em; flex-shrink: 0; }
.author-bio-name { font-family: var(--sans); font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 0.25rem; }
.author-bio-desc { font-family: var(--serif); font-size: 15px; line-height: 1.5; color: var(--text-secondary); margin: 0 0 0.5rem; }
.author-bio-link { font-family: var(--sans); font-size: 14px; color: var(--slate-light); text-decoration: none; transition: color 0.15s; }
.author-bio-link:hover { color: var(--black); }

/* Author articles list */
.author-articles { margin-top: 1rem; }
.author-articles .blog-item { padding: 1rem 0; }

/* ================================================================
   ARCHIVE: Header + list
   ================================================================ */

.archive-header { max-width: var(--media-w); margin: 0 auto; padding: 4rem 2rem 2rem; }
.archive-header .archive-label { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; display: block; }
.archive-header h1 { font-family: var(--sans); font-size: clamp(2rem, 4vw, 42px); font-weight: 700; line-height: 1.1; color: var(--black); letter-spacing: -0.03em; }
.archive-header .archive-desc { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--text-secondary); margin-top: 1rem; max-width: var(--content-w); }
.archive-count { font-family: var(--sans); font-size: 0.85rem; color: var(--meta); margin-top: 1rem; }
.archive-list { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; display: flex; flex-direction: column; }

/* Archive: subcategory cards */
.archive-subcats {
  max-width: var(--media-w);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  padding: 0 2rem;
}
.subcat-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 1.25rem;
  background: var(--bg-warm);
  border-radius: 8px;
  text-decoration: none;
  color: var(--text-body);
  transition: background 0.2s;
}
.subcat-card:hover { background: #e8e4df; }
.subcat-name {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
}
.subcat-count {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.subcat-desc {
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Archive: test summary in post list */
.blog-summary {
  display: block;
  font-family: var(--sans);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ================================================================
   ARCHIVE: Category filter (blog index)
   ================================================================ */

.cat-filter { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 2rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cat-filter a { font-family: var(--sans); font-size: 0.8rem; color: var(--text-muted); padding: 0.35rem 0.85rem; text-decoration: none; border: 1px solid var(--light-gray); border-radius: 100px; transition: all 0.15s; }
.cat-filter a:hover { border-color: var(--black); color: var(--black); }
.cat-filter a.active, .cat-filter a.current-cat { background: var(--black); color: var(--white); border-color: var(--black); }

/* ================================================================
   SHARED: Pagination
   ================================================================ */

.pagination { max-width: var(--media-w); margin: 0 auto; padding: 0 2rem 4rem; display: flex; justify-content: center; gap: 0.5rem; }
.pagination a, .pagination span { font-family: var(--sans); font-size: 0.85rem; padding: 0.5rem 1rem; text-decoration: none; color: var(--text-muted); border: 1px solid var(--light-gray); border-radius: 100px; transition: all 0.15s; }
.pagination a:hover { border-color: var(--black); color: var(--black); }
.pagination .current { background: var(--black); color: var(--white); border-color: var(--black); }

/* ================================================================
   404: Error page
   ================================================================ */

.error-page { max-width: var(--media-w); margin: 0 auto; padding: 6rem 2rem 8rem; text-align: center; min-height: 60vh; display: flex; flex-direction: column; justify-content: center; align-items: center; }
.error-code { font-family: var(--mono); font-size: clamp(5rem, 15vw, 10rem); font-weight: 700; color: var(--light-gray); line-height: 1; margin-bottom: 1.5rem; letter-spacing: -0.05em; }
.error-page h1 { font-family: var(--sans); font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; color: var(--black); margin-bottom: 1rem; }
.error-page p { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--text-secondary); max-width: 480px; margin-bottom: 2.5rem; }
.error-actions { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; }
.error-btn-primary { display: inline-block; background: var(--black); color: var(--white); font-family: var(--sans); font-size: 0.9rem; font-weight: 600; padding: 0.75rem 2rem; text-decoration: none; border-radius: 100px; transition: background 0.15s; }
.error-btn-primary:hover { background: #333; }
.error-btn-secondary { display: inline-block; font-family: var(--sans); font-size: 0.9rem; font-weight: 600; color: var(--text-muted); padding: 0.75rem 2rem; text-decoration: none; border: 1px solid var(--border-subtle); border-radius: 100px; transition: all 0.15s; }
.error-btn-secondary:hover { border-color: var(--black); color: var(--black); }
.error-links { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--light-gray); }
.error-links h3 { font-family: var(--sans); font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 1rem; }
.error-links ul { list-style: none; display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.error-links a { font-family: var(--sans); font-size: 0.9rem; color: var(--text-body); text-decoration: underline; text-decoration-color: var(--light-gray); text-underline-offset: 3px; transition: text-decoration-color 0.15s; }
.error-links a:hover { text-decoration-color: var(--black); }

/* ================================================================
   RESPONSIVE
   ================================================================ */

@media (max-width: 992px) {
  /* Homepage */
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 2.5rem; }
  .stats-strip-inner { flex-direction: column; gap: 1.25rem; }
  .build-card { grid-template-columns: 1fr; gap: 12px; }
  .build-action { text-align: left; }
  .build-gilev { text-align: left; }
  .features { grid-template-columns: 1fr 1fr; }
  .blog-item { flex-direction: column; gap: 8px; }
  .cta-inner { flex-direction: column; text-align: center; }
  .cta-right { align-items: center; }

  /* Landing pages */
  .result-grid { grid-template-columns: 1fr; }
  .component-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 1.5rem; }
  .scenario-card { grid-template-columns: 1fr; gap: 8px; }
  .scenario-num { display: none; }
  .section h2 { font-size: 24px; }
  .form-wrap { padding: 2rem 1.5rem; }
  .form-heading { font-size: 22px; }

  /* Post */
  .article-header { padding: 2.5rem 1.5rem 2rem; }
  .article-body { padding: 0 1.5rem 3rem; }
  .article-body p, .article-body h2, .article-body h3, .article-body h4,
  .article-body ul, .article-body ol, .article-body blockquote { max-width: none; }
  .stats-row { flex-direction: column; gap: 1.25rem; }
  .article-cta { padding: 2rem 1.5rem; }
  .testimonial-card { width: 85vw; min-width: 280px; }

  /* Related content */
  .related-grid { flex-direction: column; }
  .related-content { padding: 3rem 1.5rem 2rem; }

  /* Author bio */
  .author-bio { padding: 1.5rem 1.5rem 0; }

  /* Archive */
  .archive-header { padding: 2.5rem 1.5rem 1.5rem; }
  .archive-list { padding: 0 1.5rem 3rem; }
  .archive-subcats { padding: 0 1.5rem; }
  .cat-filter { padding: 0 1.5rem 1.5rem; }
  .pagination { padding: 0 1.5rem 3rem; }

  /* 404 */
  .error-page { padding: 4rem 1.5rem 5rem; }
  .error-links ul { flex-direction: column; gap: 0.75rem; }

  /* Shared */
  .topbar-nav > a:not(.nav-cta):not(.nav-tg) { display: none; }
  .topbar-dropdown-menu { left: auto; right: 0; }
  .footer-cols { flex-wrap: wrap; }
  .footer-col { min-width: 140px; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 567px) {
  .features { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .author-bio { flex-direction: column; align-items: center; text-align: center; }
}

/* Lightbox */
.ka-lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.9); cursor: zoom-out;
  justify-content: center; align-items: center;
}
.ka-lightbox.active { display: flex; }
.ka-lightbox img {
  max-width: 95vw; max-height: 95vh; object-fit: contain;
  border-radius: 4px;
}

/* Gallery (wp-block-gallery) in articles — override WP block-library inline styles */
.article-body .wp-block-gallery {
  max-width: var(--media-w);
  margin: 2rem auto;
  gap: 12px !important;
  display: grid !important;
  grid-template-columns: repeat(2, 1fr);
}
.article-body .wp-block-gallery.columns-3 { grid-template-columns: repeat(3, 1fr); }
.article-body .wp-block-gallery.columns-1 { grid-template-columns: 1fr; }
.article-body .wp-block-gallery figure.wp-block-image:not(#individual-image) {
  margin: 0;
  width: 100% !important;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  background: var(--bg-warm);
}
.article-body .wp-block-gallery figure.wp-block-image:not(#individual-image) img {
  width: 100% !important;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none !important;
}
.article-body .wp-block-gallery figcaption {
  padding: 8px 12px;
  font-family: var(--sans);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--bg-warm);
  text-align: center;
}
@media (max-width: 567px) {
  .article-body .wp-block-gallery { grid-template-columns: 1fr; }
}
