/* ============================================
   AI Digest — Child Theme CSS
   Header: глобально (все страницы)
   Hero/Sections/Footer: только главная
   ============================================ */

/* ─── Глобально: overflow fix ─── */
html, body { overflow-x: hidden; max-width: 100vw; }

/* ─── Глобально: прячем стандартный Astra header ─── */
#masthead, .ast-primary-header-bar, .ast-above-header-bar,
.ast-below-header-bar, .ast-sticky-primary-header,
.astra-sticky-header-wrap, #ast-scroll-top,
#ast-desktop-header, #ast-mobile-header { display: none; }

/* ─── Наш header (глобально) ─── */
header.site-header { position: sticky; top: 0; z-index: 999; }
.hdr-bar { background: #16161e; height: 36px; display: flex; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.hdr-bar-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; width: 100% !important; }
.hdr-live { display: flex; align-items: center; gap: 7px; }
.hdr-live-dot { width: 5px; height: 5px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 6px #22d3ee; animation: liveGlow 2s ease infinite; }
@keyframes liveGlow { 0%,100% { box-shadow: 0 0 4px #22d3ee; } 50% { box-shadow: 0 0 10px #22d3ee; } }
.hdr-live-lbl { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.hdr-ticker-mini { max-width: 360px; overflow: hidden; }
.hdr-ticker-belt { display: flex; gap: 36px; animation: ticker 32s linear infinite; white-space: nowrap; }
.hdr-ticker-belt span { font-size: 10.5px; color: rgba(255,255,255,.32); }
@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
.hdr-bar-links { display: flex; align-items: center; gap: 18px; }
.hdr-bar-links a { font-family: 'JetBrains Mono', monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.28); text-decoration: none; }
.hdr-bar-links a:hover { color: rgba(255,255,255,.6); }
.hdr-masthead { padding: 12px 0; background: #0e0e14; border-bottom: 1px solid rgba(255,255,255,.04); overflow: hidden; }
.hdr-masthead-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; }
.site-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff; background: #0040FF; padding: 5px 9px; border-radius: 4px; line-height: 1; }
.logo-words { display: flex; flex-flow: column nowrap; }
.logo-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 20px; font-weight: 700; color: #fff; line-height: 1.1; }
.logo-tagline { font-size: 9px; font-weight: 300; color: rgba(255,255,255,.3); margin-top: 1px; }
.hdr-search { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 6px; padding: 6px 12px; }
.hdr-search-ico { color: rgba(255,255,255,.25); font-size: 14px; }
.hdr-search input { background: none; border: none; outline: none; height: 28px; line-height: 28px; box-sizing: border-box; color: rgba(255,255,255,.6); font-size: 13px; width: 220px; }
.hdr-search input::placeholder { color: rgba(255,255,255,.2); }
.hdr-actions { display: flex; align-items: center; gap: 10px; }
.btn-ghost { padding: 9px 18px; border-radius: 5px; border: 1px solid rgba(255,255,255,.12); font-size: 12px; color: rgba(255,255,255,.55); text-decoration: none; }
.btn-ghost:hover { border-color: rgba(255,255,255,.25); color: #fff; }
.btn-primary { padding: 9px 18px; border-radius: 5px; background: #0040FF; font-size: 12px; color: #fff; text-decoration: none; }
.btn-primary:hover { background: #0030CC; }
.hdr-burger { display: none; flex-flow: column nowrap; justify-content: center; gap: 5px; width: 36px; height: 36px; padding: 6px; background: transparent; border: none; cursor: pointer; flex-shrink: 0; }
.hdr-burger span { display: block; height: 1.5px; background: #fff; border-radius: 2px; transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s, width .3s; transform-origin: center; }
.hdr-burger span:nth-child(3) { width: 60%; }
.hdr-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hdr-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hdr-burger.open span:nth-child(3) { width: 100% !important; transform: translateY(-6.5px) rotate(-45deg); }
.hdr-nav-strip { background: #0a0a10; border-bottom: 1px solid rgba(255,255,255,.04); }
.hdr-nav-strip-inner ul, .hdr-nav-strip-inner li { list-style: none; margin: 0; padding: 0; }
.hdr-nav-strip-inner li { display: inline-flex; }
.hdr-nav-strip-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; }
.hdr-nav-strip-inner a { display: inline-flex; align-items: center; padding: 10px 16px; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.38); text-decoration: none; }
.hdr-nav-strip-inner a:hover, .hdr-nav-strip-inner a.cur { color: rgba(255,255,255,.85); }

/* ─── Mobile overlay (глобально) ─── */
.nav-overlay { position: fixed; inset: 0; z-index: 10001; background: #0e0e14; transform: translateX(100%); transition: transform .35s ease; display: flex; flex-flow: column nowrap; }
.nav-overlay.open { transform: translateX(0); }
.nav-overlay-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; }
.nav-overlay-logo { display: flex; align-items: center; gap: 9px; }
.nav-overlay-logo .logo-mark { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff; background: #0040FF; padding: 5px 9px; border-radius: 4px; }
.nav-overlay-logo .logo-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 20px; font-weight: 700; color: #fff; }
.nav-overlay-close { position: relative; z-index: 10000; background: none; border: none; color: rgba(255,255,255,.5); font-size: 24px; cursor: pointer; }
.nav-overlay-search { padding: 0 24px 20px; overflow: hidden; }
.nav-overlay-search form { margin: 0; }
.nav-overlay-search input { box-sizing: border-box; width: 100% !important; padding: 12px 16px; border-radius: 6px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 14px; outline: none; }
.nav-overlay-links { display: flex; flex-flow: column nowrap; flex: 1; }
.nav-overlay-links ul, .nav-overlay-links li { list-style: none; margin: 0; padding: 0; }
.nav-overlay-links a { display: block; width: 100% !important; box-sizing: border-box; padding: 14px 24px; font-size: 16px; color: rgba(255,255,255,.6); text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.04); }
.nav-overlay-links a:hover { color: #fff; background: rgba(255,255,255,.03); }
.nav-overlay-cta { display: flex; flex-flow: column nowrap; align-items: center; padding: 20px 24px; margin: auto 0 16px 16px; margin-right: 16px; background: linear-gradient(135deg, #0088cc 0%, #0077b5 100%); border-radius: 12px; text-align: center; }
.nav-overlay-cta-icon { display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.nav-overlay-cta-text { margin-bottom: 14px; }
.nav-overlay-cta-text strong { display: block; color: #fff; font-size: 16px; margin-bottom: 4px; }
.nav-overlay-cta-text span { color: rgba(255,255,255,.7); font-size: 13px; }
.nav-overlay-cta-btn { display: inline-block; padding: 10px 28px; background: #fff; color: #0088cc; border-radius: 8px; font-size: 14px; font-weight: 600; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.nav-overlay-cta-btn:hover { transform: scale(1.04); box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.nav-overlay.open ~ header .hdr-burger, .hdr-burger.open { pointer-events: none; opacity: 0; }

/* ─── ТОЛЬКО ГЛАВНАЯ: все секции ─── */
.aid-hero { position: relative; height: 90vh; min-height: 560px; max-height: 780px; overflow: hidden; }
.aid-hero-bg { position: absolute; inset: 0; }
.aid-hero-bg img { width: 100% !important; height: 100%; object-fit: cover; display: block; }
.aid-hero-veil { position: absolute; inset: 0; background: linear-gradient(to right, rgba(4,4,14,.85) 0%, rgba(4,4,14,.4) 55%, transparent 80%), linear-gradient(to top, rgba(4,4,14,.6) 0%, transparent 50%); }
.aid-hero-content { position: absolute; inset: 0; max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; flex-flow: column nowrap; justify-content: center; padding-top: 40px; }
.aid-hero-kicker { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.aid-hero h1 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 42px; font-weight: 700; line-height: 1.15; color: #fff; max-width: 620px; margin-bottom: 16px; }
.aid-hero-content p { font-size: 15px; font-weight: 300; color: rgba(255,255,255,.62); max-width: 480px; line-height: 1.72; margin-bottom: 24px; font-family: 'Libre Baskerville', Georgia, serif; }
.aid-hero-actions { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.aid-hero-read { padding: 12px 24px; border-radius: 5px; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: #046bd2; color: #fff; text-decoration: none; }
.aid-hero-read:hover { background: #045cb4; }
.aid-hero-meta { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: rgba(255,255,255,.4); }
.aid-hero-rail { position: absolute; right: 32px; top: 50%; transform: translateY(-50%); width: 280px; background: rgba(10,10,20,.7); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; overflow: hidden; }
.aid-rail-hdr { padding: 10px 16px; border-bottom: 1px solid rgba(255,255,255,.08); font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.28); }
.aid-rail-item { display: flex; align-items: flex-start; gap: 12px; padding: 13px 16px; border-bottom: 1px solid rgba(255,255,255,.06); text-decoration: none; }
.aid-rail-item:last-child { border-bottom: none; }
.aid-rail-item:hover { background: rgba(0,64,255,.15); }
.aid-rail-n { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; color: #046bd2; min-width: 18px; }
.aid-rail-cat { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: rgba(255,255,255,.3); margin-bottom: 4px; }
.aid-rail-body h4 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 13px; line-height: 1.32; color: rgba(255,255,255,.82); margin-bottom: 4px; }
.aid-rail-body time { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,.3); }
.aid-section { border-bottom: 1px solid #D1D5DB; background: #fff; margin-top: 0; padding: 0; }
.aid-section-soft { background: #F0F5FA; }
.aid-section-dark { background: #111111; }
.aid-sec-body { max-width: 1200px; margin: 0 auto; padding: 40px 32px; }
.aid-sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 30px; padding-bottom: 14px; border-bottom: 1px solid #D1D5DB; position: relative; }
.aid-sec-head::before { content: ''; position: absolute; bottom: -1px; left: 0; width: 32px; height: 2px; background: #046bd2; }
.aid-sec-title { font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1e293b; }
.aid-sec-title-w { color: rgba(255,255,255,.5); }
.aid-sec-link { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #046bd2; display: inline-flex; align-items: center; gap: 5px; text-decoration: none; }
.aid-sec-link:hover { gap: 9px; }
.aid-sec-link-w { color: rgba(100,150,255,.8); }

/* NEWS */
.aid-news-layout { display: grid; grid-template-columns: 1fr 260px; border: 1px solid #D1D5DB; border-radius: 10px; overflow: hidden; }
.aid-news-left { display: flex; flex-flow: column nowrap; }
.aid-news-broadsheet { display: grid; grid-template-columns: repeat(3, 1fr); flex: 1; }
.aid-nb-col { display: flex; flex-flow: column nowrap; border-right: 1px solid #D1D5DB; background: #fff; }
.aid-nb-col:last-child { border-right: none; }
.aid-nb-col-hdr { display: flex; align-items: center; justify-content: space-between; padding: 11px 18px 10px; border-bottom: 2px solid #1e293b; background: #F0F5FA; }
.aid-nb-col-cat { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #1e293b; }
.aid-nb-col-count { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; color: #D1D5DB; }
.aid-nb-lead { display: block; padding: 18px; border-bottom: 1px solid #D1D5DB; text-decoration: none; }
.aid-nb-lead:hover { background: #F0F5FA; }
.aid-nb-lead-n { font-family: 'JetBrains Mono', monospace; font-size: 28px; font-weight: 700; color: #D1D5DB; margin-bottom: 10px; }
.aid-nb-lead:hover .aid-nb-lead-n { color: #046bd2; }
.aid-nb-lead h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 15px; font-weight: 700; line-height: 1.28; color: #1e293b; }
.aid-nb-lead-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.aid-nb-lead-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #334155; }
.aid-nb-lead-read { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; color: #046bd2; }
.aid-nb-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 18px; border-bottom: 1px solid #D1D5DB; text-decoration: none; }
.aid-nb-row:hover { background: #F0F5FA; }
.aid-nb-row:last-child { border-bottom: none; }
.aid-nb-row-n { flex: 0 0 auto; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 700; color: #D1D5DB; }
.aid-nb-row:hover .aid-nb-row-n { color: #046bd2; }
.aid-nb-row-body { min-width: 0; flex: 1 1 auto; }
.aid-nb-row-title { display: block; font-family: 'Manrope', sans-serif; font-size: 12.5px; font-weight: 500; line-height: 1.42; color: #1e293b; }
.aid-nb-row-time { display: block; clear: both; width: fit-content; margin-top: 7px; padding: 2px 7px; border-radius: 999px; background: #EEF4FB; font-family: 'JetBrains Mono', monospace; font-size: 9px; line-height: 1.6; color: #64748b; white-space: nowrap; }
.aid-news-right { background: #fff; }
.aid-news-stats { border-left: 1px solid #D1D5DB; display: flex; flex-flow: column nowrap; background: #111111; align-self: stretch; }
.aid-news-stats-hdr { padding: 14px 18px 12px; border-bottom: 1px solid rgba(255,255,255,.07); display: flex; align-items: center; justify-content: space-between; }
.aid-news-stats-title { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.aid-news-stats-date { font-family: 'JetBrains Mono', monospace; font-size: 8px; color: rgba(255,255,255,.2); }
.aid-stat-item { padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.06); display: flex; flex-flow: column nowrap; gap: 4px; flex-shrink: 0; }
.aid-stat-item:last-of-type { border-bottom: none; flex: 1; }
.aid-stat-label { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.35); }
.aid-stat-value { font-family: Libre Baskerville, Georgia, serif; font-size: 32px; font-weight: 700; color: #fff; line-height: 1; letter-spacing: -.02em; }
.aid-stat-change { font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #22d3ee; }

/* ARTICLES */
.aid-articles-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #D1D5DB; border: 1px solid #D1D5DB; border-radius: 10px; overflow: hidden; }
.aid-art-feature { grid-column: 1; grid-row: 1/3; display: flex; flex-flow: column nowrap; background: #fff; text-decoration: none; }
.aid-art-feature:hover { box-shadow: inset 0 0 0 2px #046bd2; }
.aid-art-feature-img { aspect-ratio: 3/2; overflow: hidden; }
.aid-art-feature-img img { width: 100% !important; height: 100%; object-fit: cover; }
.aid-art-feature-body { padding: 28px 30px 30px; display: flex; flex-flow: column nowrap; flex: 1; }
.aid-art-cat { font-family: 'JetBrains Mono', monospace; font-size: 7.5px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: #046bd2; margin-bottom: 10px; }
.aid-art-feature-body h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 24px; font-weight: 700; line-height: 1.22; color: #1e293b; margin-bottom: 12px; }
.aid-art-feature:hover h2 { color: #046bd2; }
.aid-art-feature-body p { font-size: 13.5px; color: #334155; line-height: 1.7; margin-bottom: 20px; flex: 1; }
.aid-art-byline { display: flex; align-items: center; gap: 10px; padding-top: 16px; border-top: 1px solid #D1D5DB; margin-top: auto; }
.aid-art-avatar { width: 30px; height: 30px; border-radius: 50%; background: #F0F5FA; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; color: #046bd2; }
.aid-art-author { font-size: 12px; font-weight: 600; color: #1e293b; }
.aid-art-time { font-size: 11px; color: #334155; }
.aid-art-card { display: flex; flex-flow: column nowrap; background: #fff; text-decoration: none; }
.aid-art-card:hover { box-shadow: inset 0 0 0 2px #046bd2; }
.aid-art-card-img { aspect-ratio: 16/9; overflow: hidden; }
.aid-art-card-img img { width: 100% !important; height: 100%; object-fit: cover; }
.aid-art-card-body { padding: 20px 22px 22px; flex: 1; display: flex; flex-flow: column nowrap; }
.aid-art-card-body h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 15px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.aid-art-card:hover h3 { color: #046bd2; }
.aid-art-card-body p { font-size: 12.5px; color: #334155; line-height: 1.6; flex: 1; margin-bottom: 12px; }
.aid-art-card-byline { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid #D1D5DB; margin-top: auto; }

/* TOPICS */
.aid-topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #D1D5DB; border: 1px solid #D1D5DB; border-radius: 10px; overflow: hidden; }
.aid-topic { background: #fff; padding: 22px 24px 20px; text-decoration: none; display: flex; flex-flow: column nowrap; }
.aid-topic:hover { background: #F0F5FA; }
.aid-topic-num { font-family: 'JetBrains Mono', monospace; font-size: 32px; font-weight: 700; color: #D1D5DB; margin-bottom: 8px; }
.aid-topic-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 10px; }
.aid-topic-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid #D1D5DB; }
.aid-topic-n { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #334155; }
.aid-topic-arrow { font-size: 14px; color: #046bd2; }

/* GUIDES */
.aid-guides-layout { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.aid-guide-card { display: flex; flex-flow: column nowrap; background: #fff; border-radius: 10px; overflow: hidden; text-decoration: none; border: 1px solid #D1D5DB; }
.aid-guide-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,.08); }
.aid-guide-img { aspect-ratio: 16/9; overflow: hidden; }
.aid-guide-img img { width: 100% !important; height: 100%; object-fit: cover; }
.aid-guide-body { padding: 18px 20px 20px; flex: 1; }
.aid-guide-steps { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #046bd2; margin-bottom: 8px; }
.aid-guide-body h3 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 14px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.aid-guide-card:hover h3 { color: #046bd2; }
.aid-guide-time { font-family: 'JetBrains Mono', monospace; font-size: 10px; color: #334155; }
.aid-section-dark .aid-guide-card { background: #1a1a24; border-color: rgba(255,255,255,.1); }
.aid-section-dark .aid-guide-body h3 { color: #fff; }
.aid-section-dark .aid-guide-card:hover h3 { color: #22d3ee; }
.aid-section-dark .aid-guide-steps { color: #22d3ee; }
.aid-section-dark .aid-guide-time { color: rgba(255,255,255,.4); }

/* NEWSLETTER */
.aid-nl-section { background: #fff; border-top: 1px solid #D1D5DB; border-bottom: 1px solid #D1D5DB; }
.aid-nl-inner { max-width: 1200px; margin: 0 auto; padding: 80px 32px; display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.aid-nl-eyebrow { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: #046bd2; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.aid-nl-eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #046bd2; }
.aid-nl-left h2 { font-family: 'Libre Baskerville', Georgia, serif; font-size: 42px; font-weight: 700; color: #1e293b; line-height: 1.1; margin-bottom: 16px; }
.aid-nl-left h2 em { font-style: italic; color: #334155; }
.aid-nl-left p { font-size: 14.5px; color: #334155; line-height: 1.72; }
.aid-nl-stats { display: flex; gap: 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid #D1D5DB; }
.aid-nl-stat-val { font-family: Libre Baskerville, Georgia, serif; font-size: 22px; font-weight: 700; color: #1e293b; display: block; line-height: 1; margin-bottom: 4px; }
.aid-nl-stat-lbl { font-family: JetBrains Mono, monospace; font-size: 8.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #AFAFBF; }
.aid-nl-form-wrap { background: #F0F5FA; border-radius: 12px; padding: 36px 32px; }
.aid-nl-form-title { font-family: 'Libre Baskerville', Georgia, serif; font-size: 18px; font-weight: 700; color: #1e293b; margin-bottom: 8px; }
.aid-nl-form-sub { font-size: 13px; color: #334155; margin-bottom: 20px; }
.aid-nl-form { display: flex; gap: 10px; }
.aid-nl-input { flex: 1; padding: 14px 18px; border-radius: 8px; border: 1px solid #D1D5DB; background: #fff; font-size: 14px; }
.aid-nl-submit { padding: 14px 28px; border-radius: 8px; border: none; background: #046bd2; color: #fff; font-family: 'JetBrains Mono', monospace; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.aid-nl-submit:hover { background: #045cb4; }
.aid-nl-note { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: #334155; margin-top: 14px; text-align: center; }

/* FOOTER */
footer { background: #111111; padding: 60px 32px 0; }
.aid-ft-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: 56px; padding-bottom: 52px; border-bottom: 1px solid rgba(255,255,255,.05); }
.aid-ft-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; }
.aid-ft-logo-mark { font-family: 'JetBrains Mono', monospace; font-size: 18px; font-weight: 700; color: #fff; background: #0040FF; padding: 4px 8px; border-radius: 4px; }
.aid-ft-logo-name { font-family: 'Libre Baskerville', Georgia, serif; font-size: 20px; font-weight: 700; color: #fff; }
.aid-ft-tagline { font-size: 13px; color: rgba(255,255,255,.5); margin-bottom: 8px; }
.aid-ft-desc { font-size: 12px; color: rgba(255,255,255,.3); line-height: 1.6; margin-bottom: 20px; }
.aid-ft-socials { display: flex; gap: 8px; }
.aid-ft-social-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 5px; border: 1px solid rgba(255,255,255,.1); font-size: 11px; color: rgba(255,255,255,.5); text-decoration: none; }
.aid-ft-social-btn:hover { border-color: #046bd2; color: #046bd2; }
.aid-ft-col-title { font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.18); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.06); }
.aid-ft-col a { display: block; font-size: 13px; color: rgba(255,255,255,.38); padding: 5px 0; text-decoration: none; }
.aid-ft-col a:hover { color: rgba(255,255,255,.85); padding-left: 4px; }
.aid-ft-bottom { max-width: 1200px; margin: 0 auto; padding: 18px 0 24px; display: flex; align-items: center; justify-content: space-between; }
.aid-ft-copy { font-family: 'JetBrains Mono', monospace; font-size: 9px; color: rgba(255,255,255,.14); }
.aid-ft-bottom-links { display: flex; gap: 20px; }
.aid-ft-bottom-links a { font-family: 'JetBrains Mono', monospace; font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.18); text-decoration: none; }
.aid-ft-bottom-links a:hover { color: rgba(255,255,255,.5); }

/* RESPONSIVE */
@media (max-width: 1060px) {
  .aid-hero-rail { display: none; }
  .aid-news-layout { grid-template-columns: 1fr 220px; }
  .aid-news-broadsheet { grid-template-columns: 1fr 1fr; }
  .aid-nb-col:last-child { grid-column: 1/-1; border-right: none; border-top: 1px solid #D1D5DB; }
  .aid-articles-layout { grid-template-columns: 1fr; }
  .aid-art-feature { grid-column: auto; grid-row: auto; }
  .aid-topics-grid { grid-template-columns: repeat(2, 1fr); }
  .aid-guides-layout { grid-template-columns: repeat(2, 1fr); }
  .aid-nl-inner { grid-template-columns: 1fr; gap: 36px; }
  .aid-ft-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 767px) {
  .aid-hero { height: 75vh; min-height: 460px; }
  .aid-hero h1 { font-size: 28px; }
  .aid-hero-rail { display: none; }
  .aid-news-layout { grid-template-columns: 1fr; }
  .aid-news-broadsheet { grid-template-columns: 1fr; }
  .aid-nb-col { border-right: none; border-bottom: 1px solid #D1D5DB; }
  .aid-nb-col:last-child { border-bottom: none; }
  .aid-sec-body { padding: 36px 20px; }
  .aid-topics-grid { grid-template-columns: 1fr; }
  .aid-guides-layout { grid-template-columns: 1fr; }
  .aid-nl-inner { padding: 48px 20px; grid-template-columns: 1fr; gap: 36px; }
  .aid-nl-form { flex-direction: column; }
  .aid-nl-input { width: 100% !important; }
  .aid-nl-left h2 { font-size: 28px; }
  .aid-nl-stats { flex-wrap: wrap; gap: 20px; }
  .aid-ft-grid { grid-template-columns: 1fr 1fr; }
  .hdr-search, .hdr-actions { display: none; }
  .hdr-burger { display: flex; }
  .hdr-nav-strip { display: none; }
}
@media (max-width: 544px) {
  .aid-hero { height: 65vh; min-height: 380px; }
  .aid-hero h1 { font-size: 24px; }
  .aid-sec-body { padding: 28px 16px; }
  .aid-ft-grid { grid-template-columns: 1fr; }
  .aid-ft-bottom { flex-direction: column; text-align: center; }
}

/* Шрифты хэдера — переопределяем Astra */
.site-header, .site-header * {
  font-family: inherit;
}
.hdr-bar, .hdr-bar * {
  font-family: 'JetBrains Mono', monospace;
}
.hdr-masthead {
  font-family: 'Manrope', sans-serif;
}
.logo-name {
  font-family: 'Libre Baskerville', Georgia, serif;
}
.logo-tagline {
  font-family: 'Manrope', sans-serif;
}
.hdr-nav-strip-inner a {
  font-family: 'JetBrains Mono', monospace;
}
.hdr-search input {
  font-family: 'Manrope', sans-serif;
}
.nav-overlay, .nav-overlay * {
  font-family: 'Manrope', sans-serif;
}
.nav-overlay-logo .logo-name {
  font-family: 'Libre Baskerville', Georgia, serif;
}

/* Homepage: контейнер должен быть блочным, не flex */
.page-template-page-premium .ast-container { display: block !important; }
.page-template-page-home .ast-container { display: block !important; }


}

/* Homepage: контейнер должен быть block, не flex */
.page-template-page-premium .ast-container,
.page-template-page-home .ast-container {
  display: block !important;
}

/* Показываем заголовки в blog-layout-4 grid */
.ast-blog-layout-4-grid .entry-header {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.ast-blog-layout-4-grid .entry-header .entry-title {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
}
.ast-blog-layout-4-grid .entry-content {
  display: block !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
}

/* Принудительная 3-колоночная сетка для blog-layout-4 */
.ast-blog-layout-4-grid .ast-row {
  display: flex;
  flex-wrap: wrap;
  margin-left: -1em;
  margin-right: -1em;
}
.ast-blog-layout-4-grid .ast-row > article,
.ast-blog-layout-4-grid .ast-row > .ast-article-post {
  width: 33.333%;
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 1em;
  box-sizing: border-box;
}
.ast-blog-layout-4-grid .ast-article-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.ast-blog-layout-4-grid .entry-title {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  overflow: visible !important;
}
.ast-blog-layout-4-grid .entry-content,
.ast-blog-layout-4-grid .ast-excerpt-container {
  display: block !important;
  visibility: visible !important;
}
@media (max-width: 767px) {
  .ast-blog-layout-4-grid .ast-row > article {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .ast-blog-layout-4-grid .ast-row > article {
    width: 50%;
    flex: 0 0 50%;
    max-width: 50%;
  }
}

/* Мобильная версия — полная ширина */
@media (max-width: 767px) {
  .ast-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .ast-blog-layout-4-grid .ast-row {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  .ast-blog-layout-4-grid .ast-row > article {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-bottom: 1px;
  }
  .ast-archive-description {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  .site-header .hdr-bar-inner,
  .site-header .hdr-masthead-inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* Legal pages: allow the standard Astra entry-title to be visible */
body.page.page-id-200:not(.archive):not(.blog) header.entry-header,
body.page.page-id-616:not(.archive):not(.blog) header.entry-header,
body.wp-singular.page-id-200 .entry-header.ast-no-thumbnail,
body.wp-singular.page-id-616 .entry-header.ast-no-thumbnail {
  visibility: visible !important;
  height: auto !important;
  margin: 0 0 1.5em !important;
  padding: 0 !important;
  overflow: visible !important;
}
body.page.page-id-200:not(.archive):not(.blog) .entry-title,
body.page.page-id-616:not(.archive):not(.blog) .entry-title,
body.wp-singular.page-id-200 .entry-header.ast-no-thumbnail .entry-title,
body.wp-singular.page-id-616 .entry-header.ast-no-thumbnail .entry-title {
  visibility: visible !important;
}
