/* РАУМ — блог: индекс статей + страница статьи. Поверх raum.css. */

.blog-page{padding-top:38px;}

/* индекс */
.blog-head{max-width:720px;margin-bottom:42px;}
.blog-head h1{font-family:'Unbounded',sans-serif;font-weight:400;font-size:clamp(28px,4.6vw,46px);line-height:1.08;letter-spacing:-.01em;margin:14px 0 14px;}
.blog-head p{font-size:16px;opacity:.72;}

.blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;}
.post-card{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden;display:flex;flex-direction:column;transition:transform .3s var(--ease),border-color .3s var(--ease);cursor:pointer;}
.post-card:hover{transform:translateY(-4px);border-color:var(--ink);}
.post-cover{aspect-ratio:16/10;position:relative;overflow:hidden;background:#1a1a1a;}
.post-cover .ft-tex{position:absolute;inset:0;background-size:cover;background-position:center;transition:transform .6s var(--ease);}
.post-card:hover .post-cover .ft-tex{transform:scale(1.06);}
.post-cover img{width:100%;height:100%;object-fit:cover;}
.post-body{padding:22px 22px 24px;display:flex;flex-direction:column;gap:10px;flex:1;}
.post-meta{font-size:11.5px;letter-spacing:.12em;text-transform:uppercase;opacity:.5;display:flex;gap:12px;}
.post-title{font-family:'Unbounded',sans-serif;font-weight:400;font-size:18px;line-height:1.25;}
.post-excerpt{font-size:14px;opacity:.7;line-height:1.6;flex:1;}
.post-more{font-size:13px;color:var(--wine);font-weight:500;margin-top:4px;display:inline-flex;align-items:center;gap:6px;}
.post-more::after{content:"→";transition:transform .25s var(--ease);}
.post-card:hover .post-more::after{transform:translateX(4px);}

/* статья */
.article{max-width:760px;margin:0 auto;}
.article-hero{aspect-ratio:21/9;border-radius:var(--r-lg);overflow:hidden;background:#1a1a1a;position:relative;margin-bottom:30px;max-width:1000px;margin-left:auto;margin-right:auto;}
.article-hero .ft-tex{position:absolute;inset:0;background-size:cover;background-position:center;}
.article-hero img{width:100%;height:100%;object-fit:cover;}
.article h1{font-family:'Unbounded',sans-serif;font-weight:400;font-size:clamp(26px,4vw,40px);line-height:1.12;letter-spacing:-.01em;margin-bottom:16px;}
.article-meta{font-size:13px;opacity:.55;display:flex;gap:16px;margin-bottom:30px;flex-wrap:wrap;}
.article-meta .city{color:var(--wine);opacity:1;}

/* проза (рендер markdown) */
.prose{font-size:16.5px;line-height:1.8;}
.prose h2{font-family:'Unbounded',sans-serif;font-weight:400;font-size:23px;line-height:1.2;margin:38px 0 14px;}
.prose h3{font-family:'Unbounded',sans-serif;font-weight:400;font-size:18px;margin:26px 0 10px;}
.prose p{margin-bottom:16px;opacity:.86;}
.prose ul,.prose ol{margin:0 0 18px 0;padding-left:0;list-style:none;}
.prose li{position:relative;padding-left:24px;margin-bottom:9px;opacity:.86;}
.prose ul li::before{content:"";position:absolute;left:3px;top:12px;width:7px;height:7px;border-radius:50%;background:var(--wine);}
.prose ol{counter-reset:li;}
.prose ol li{counter-increment:li;}
.prose ol li::before{content:counter(li);position:absolute;left:0;top:0;color:var(--wine);font-family:'Unbounded';font-weight:400;font-size:14px;}
.prose strong{font-weight:600;}

/* FAQ */
.faq{margin-top:46px;border-top:1px solid var(--line);padding-top:30px;}
.faq h2{font-family:'Unbounded';font-weight:400;font-size:22px;margin-bottom:18px;}
.faq-item{border:1px solid var(--line);border-radius:var(--r);margin-bottom:10px;background:#fff;overflow:hidden;}
.faq-q{padding:16px 20px;font-weight:500;font-size:15px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:14px;}
.faq-q::after{content:"+";font-family:'Unbounded';font-weight:300;color:var(--wine);font-size:20px;transition:transform .2s;}
.faq-item.open .faq-q::after{content:"−";}
.faq-a{max-height:0;overflow:hidden;transition:max-height .3s var(--ease);padding:0 20px;font-size:14.5px;opacity:.78;line-height:1.7;}
.faq-item.open .faq-a{max-height:400px;padding:0 20px 18px;}

/* CTA в конце статьи */
.article-cta{background:var(--ink);color:var(--paper);border-radius:var(--r-lg);padding:36px 40px;margin:46px 0;text-align:center;}
.article-cta h3{font-family:'Unbounded';font-weight:400;font-size:clamp(20px,2.6vw,26px);margin-bottom:10px;}
.article-cta p{opacity:.74;font-size:14.5px;margin-bottom:20px;}

/* читайте также */
.related{margin-top:50px;}
.related h2{font-family:'Unbounded';font-weight:400;font-size:22px;margin-bottom:20px;}

.blog-loading{padding:80px 0;text-align:center;opacity:.5;}
.blog-empty{padding:60px 0;text-align:center;}
.blog-empty h2{font-family:'Unbounded';font-weight:400;font-size:24px;margin-bottom:12px;}

@media(max-width:900px){.blog-grid{grid-template-columns:1fr 1fr;}}
@media(max-width:600px){
  .blog-grid{grid-template-columns:1fr;}
  .prose{font-size:16px;}
  .article-cta{padding:28px 24px;}
}
