/* Стили раздела «Статьи» svechaapp.ru — те же цвета и шрифты, что на главной (server/public/index.html). */
:root {
  --bg: #FDF6EA; --surface: #FFFFFF; --ink: #1B1410; --ink-2: #3A2D22;
  --muted: #6B5847; --muted-2: #8E7E6C; --border: rgba(30,20,15,0.08);
  --brand: #DD5A1F; --brand-2: #B84A1E;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: 'Inter', -apple-system, sans-serif; background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 17px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 18px; } }

nav { position: sticky; top: 0; z-index: 10; background: rgba(253,246,234,0.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.nav-inner { max-width: 1200px; margin: 0 auto; padding: 16px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 500; font-size: 22px; }
.brand-mark { width: 30px; height: 30px; border-radius: 7px; background: url('/assets/favicon-128.png') center / 100% 100% no-repeat; box-shadow: 0 4px 12px rgba(30,20,15,0.25); }
.nav-links { display: flex; gap: 24px; align-items: center; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--brand); }
.nav-cta { padding: 9px 18px; border-radius: 999px; background: var(--ink); color: var(--bg) !important; font-weight: 600; font-size: 13px; }
@media (max-width: 560px) { .nav-links a:not(.nav-cta):not([href="/stati/"]) { display: none; } }

.crumbs { font-size: 13px; color: var(--muted-2); margin: 28px 0 0; }
.crumbs a:hover { color: var(--brand); }
.a-head { margin: 26px 0 28px; }
.eyebrow { font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--brand); font-weight: 600; margin-bottom: 14px; }
h1 { font-family: 'Fraunces', serif; font-weight: 400; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; letter-spacing: -1.2px; margin-bottom: 16px; }
h1 em { font-style: italic; color: var(--brand-2); }
.lead { font-size: 19px; color: var(--muted); line-height: 1.55; }
.a-img { width: 100%; border-radius: 20px; margin: 0 0 32px; box-shadow: 0 16px 40px rgba(30,20,15,0.12); }

.a-body { color: var(--ink-2); }
.a-body p { margin: 0 0 18px; }
.a-body h2 { font-family: 'Inter', sans-serif; font-size: 13px; letter-spacing: 2px; font-weight: 700; color: var(--brand-2); margin: 38px 0 14px; }

.cta { margin: 56px 0; padding: 36px 30px; border-radius: 26px; text-align: center; color: var(--bg); background: linear-gradient(160deg, #1B1410, #2A1A10); position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; top: -120px; right: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(221,90,31,0.35), transparent 70%); }
.cta > * { position: relative; }
.cta-flame { width: 22px; height: 34px; margin: 0 auto 14px; border-radius: 50% 50% 40% 40% / 65% 65% 35% 35%; background: radial-gradient(ellipse at 50% 75%, #FFF5C0 0%, #FFD27A 22%, #FF9A2E 48%, #FF6B00 70%, transparent 95%); box-shadow: 0 0 24px 8px rgba(255,140,40,0.4); }
.cta h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
.cta p { font-size: 15px; color: rgba(253,246,234,0.75); max-width: 460px; margin: 0 auto 20px; }
.cta-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn { padding: 13px 24px; border-radius: 999px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 15px; }
.btn:hover { background: var(--brand); color: #fff; }

.related h2, .cat h2 { font-family: 'Fraunces', serif; font-weight: 400; font-size: 28px; margin: 0 0 18px; }
.cat { margin: 0 0 44px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-bottom: 40px; }
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,0.7); border: 1px solid var(--border); transition: transform .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); border-color: rgba(221,90,31,0.3); }
.card img { border-radius: 12px; margin-bottom: 8px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.card b { font-family: 'Fraunces', serif; font-weight: 500; font-size: 18px; line-height: 1.25; }
.card span { font-size: 14px; color: var(--muted); line-height: 1.45; }
.card .card-cat { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.index-head { margin-top: 44px; margin-bottom: 40px; }

footer { border-top: 1px solid var(--border); padding: 28px 0 40px; font-size: 13px; color: var(--muted-2); }
.foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; max-width: 1200px; }
footer a:hover { color: var(--brand); }

/* Акафисты, псалмы, жития */
/* PT Serif ставит ударение (U+0301) ровно над буквой; в Inter оно уезжает вбок */
.liturgical p { font-family: 'PT Serif', Georgia, serif; font-size: 19px; line-height: 1.7; }
.a-body sup { font-size: 11px; color: var(--muted-2); margin-right: 2px; }
.source { margin-top: 28px; font-size: 13px; color: var(--muted-2); }
.source a { text-decoration: underline; }
.filter { margin-top: 22px; width: 100%; max-width: 420px; padding: 13px 18px; border-radius: 999px; border: 1px solid var(--border); background: #fff; font: inherit; font-size: 16px; outline: none; }
.filter:focus { border-color: rgba(221,90,31,0.5); }
@media (max-width: 720px) { .nav-links a[href="/zhitiya/"], .nav-links a[href="/psaltir/"] { display: none; } }
