/* Статья блога (templates/post.php): колонка для чтения по центру, «Поделиться», текст, карусель других статей */
.lp-post{max-width:1120px;margin:32px auto 44px;padding:48px 72px 40px;background:#fff;border:1px solid #f0f0f2;border-radius:22px;box-shadow:0 2px 6px rgba(0,0,0,.03),0 18px 50px rgba(17,17,20,.08);color:#27272a;box-sizing:border-box}   /* карточка статьи с тенью */
.lp-post-head{text-align:center;margin-bottom:26px}
.lp-post-cat{display:inline-block;margin-bottom:14px;padding:5px 12px;border-radius:999px;background:#f4f4f5;color:#52525b!important;font-size:12px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;text-decoration:none}
.lp-post-cat:hover{background:#e4e4e7}
.lp-post .lp-post-title{margin:0 0 14px;font-size:38px;line-height:1.2;font-weight:700;color:#18181b;letter-spacing:-.3px}
.lp-post-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;font-size:14px;color:#71717a}
.lp-dot{width:4px;height:4px;border-radius:50%;background:#d4d4d8}

/* Поделиться */
.lp-share{position:relative;display:inline-flex}
.lp-post-meta .lp-share{margin-left:8px}
.lp-share-btn{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 14px;border:1px solid #e4e4e7;border-radius:999px;background:#fff;color:#18181b;font:inherit;font-size:14px;font-weight:500;cursor:pointer;transition:background .15s,border-color .15s}
.lp-share-btn:hover,.lp-share.is-open .lp-share-btn{background:#18181b;border-color:#18181b;color:#fff}
.lp-share-menu{position:absolute;top:calc(100% + 8px);left:50%;z-index:30;min-width:210px;padding:6px;border-radius:12px;background:#fff;box-shadow:0 12px 34px rgba(0,0,0,.14);transform:translate(-50%,4px);opacity:0;visibility:hidden;transition:opacity .15s,transform .15s,visibility .15s;text-align:left}
.lp-share.is-open .lp-share-menu{opacity:1;visibility:visible;transform:translate(-50%,0)}
.lp-share-menu a,.lp-share-menu button{display:block;width:100%;padding:9px 12px;border:0;border-radius:8px;background:none;color:#18181b!important;font:inherit;font-size:14px;text-align:left;text-decoration:none;cursor:pointer}
.lp-share-menu a:hover,.lp-share-menu button:hover{background:#f4f4f5}
.lp-share-copy{border-top:1px solid #f0f0f2!important;margin-top:4px!important;border-radius:0 0 8px 8px!important}

/* Вступление и обложка */
.lp-post-lead{margin:0 0 26px;font-size:20px;line-height:1.6;color:#3f3f46}
.lp-post-lead blockquote{margin:0;padding:0 0 0 18px;border-left:3px solid #c8a96a;background:none;font-style:normal;quotes:none}
.lp-post-lead blockquote:before,.lp-post-lead blockquote:after{content:none!important;display:none!important}
.lp-post-lead p{margin:0 0 .6em}
.lp-post-cover{margin:0 0 30px}
.lp-post-cover img{display:block;width:100%;height:auto;border-radius:16px}

/* Текст статьи */
.lp-post-body{font-size:17px;line-height:1.75;color:#27272a;overflow-wrap:break-word}
.lp-post-body p{margin:0 0 1.15em;font-size:inherit;line-height:inherit;text-indent:0}
.lp-post-body .lp-post-h,.lp-post-body h2,.lp-post-body h3{margin:1.8em 0 .6em;font-size:24px;line-height:1.3;font-weight:700;color:#18181b}
.lp-post-body h3{font-size:20px}
.lp-post-body p > i:only-child,.lp-post-body p > em:only-child{display:block;font-style:normal;font-weight:600;color:#18181b;margin-bottom:-.4em}
.lp-post-body strong,.lp-post-body b{font-weight:700;color:#18181b}
.lp-post-body a{color:#9a6b1f!important;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
.lp-post-body a:hover{color:#6e4c12!important}
.lp-post-body ul,.lp-post-body ol{margin:0 0 1.3em;padding:0}
.lp-post-body ul li,.lp-post-body ol li{position:relative;margin:0 0 .45em;padding:0 0 0 26px;list-style:none}
.lp-post-body ul li:before{content:"";position:absolute;left:6px;top:.72em;width:7px;height:7px;border-radius:50%;background:#c8a96a}
.lp-post-body ol{counter-reset:lpol}
.lp-post-body ol li:before{counter-increment:lpol;content:counter(lpol) ".";position:absolute;left:0;top:0;font-weight:700;color:#9a6b1f}
.lp-post-body blockquote{margin:1.6em 0;padding:16px 20px;border-left:3px solid #c8a96a;border-radius:0 12px 12px 0;background:#faf7f0;font-size:18px;color:#3f3f46;quotes:none}
.lp-post-body blockquote:before,.lp-post-body blockquote:after{content:none!important;display:none!important}
.lp-post-body blockquote p:last-child{margin-bottom:0}
.lp-post-body img{display:block;max-width:100%;height:auto!important;margin:1.6em auto;border-radius:14px}
.lp-post-body figure{margin:1.6em 0}
.lp-post-body iframe,.lp-post-body video{display:block;max-width:100%;margin:1.6em auto;border-radius:14px}
.lp-post-body table{width:100%;border-collapse:collapse;margin:1.4em 0;font-size:15px}
.lp-post-body td,.lp-post-body th{padding:8px 10px;border-bottom:1px solid #ececef;text-align:left}

/* Низ статьи */
.lp-post-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:36px;padding-top:22px;border-top:1px solid #ececef}
.lp-post-back{color:#18181b!important;font-size:15px;font-weight:600;text-decoration:none}
.lp-post-back:hover{text-decoration:underline}
.lp-post-foot .lp-share-menu{left:auto;right:0;top:auto;bottom:calc(100% + 8px);transform:translateY(-4px)}
.lp-post-foot .lp-share.is-open .lp-share-menu{transform:none}

/* Другие статьи - карусель */
.lp-rel{max-width:1240px;margin:0 auto 50px;padding:0 4px}
.lp-rel-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
.lp-rel-head h2{margin:0;font-size:24px;font-weight:700;color:#18181b}
.lp-rel-nav{display:flex;gap:8px}
.lp-rel-nav button{position:relative;width:42px;height:42px;border:1px solid #e4e4e7;border-radius:50%;background:#fff;cursor:pointer;transition:background .15s,border-color .15s}
.lp-rel-nav button:hover{background:#18181b;border-color:#18181b}
.lp-rel-nav button:before{content:"";position:absolute;left:50%;top:50%;width:9px;height:9px;border-left:2px solid #18181b;border-bottom:2px solid #18181b;transform:translate(-30%,-50%) rotate(45deg)}
.lp-rel-nav .lp-rel-next:before{transform:translate(-70%,-50%) rotate(-135deg)}
.lp-rel-nav button:hover:before{border-color:#fff}
.lp-rel-track{display:flex;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:2px 2px 12px;scrollbar-width:none}
.lp-rel-track::-webkit-scrollbar{display:none}
.lp-rel-card{flex:0 0 calc((100% - 60px)/4);scroll-snap-align:start;display:flex;flex-direction:column;border:1px solid #ececef;border-radius:14px;overflow:hidden;background:#fff;color:#18181b!important;text-decoration:none;transition:box-shadow .2s,transform .2s}
.lp-rel-card:hover{box-shadow:0 10px 26px rgba(0,0,0,.08);transform:translateY(-2px)}
.lp-rel-img{display:block;aspect-ratio:4/3;background:#f4f4f5;overflow:hidden}
.lp-rel-img img{display:block;width:100%;height:100%;object-fit:cover}
.lp-rel-t{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:12px 14px 6px;font-size:15px;font-weight:600;line-height:1.35}
.lp-rel-d{margin:auto 14px 14px;font-size:12px;color:#a1a1aa}

@media (max-width:1024px){
	.lp-rel-card{flex-basis:calc((100% - 40px)/3)}
}
@media (max-width:850px){
	.lp-post{margin-top:20px;padding:26px 22px 24px;border-radius:18px}
	.lp-post .lp-post-title{font-size:28px}
	.lp-post-lead{font-size:18px}
	.lp-post-body{font-size:16px;line-height:1.7}
	.lp-post-body .lp-post-h,.lp-post-body h2{font-size:21px}
	.lp-rel-card{flex-basis:calc((100% - 20px)/2)}
	.lp-rel-head h2{font-size:20px}
}
@media (max-width:520px){
	.lp-post{padding:20px 16px 20px;border-radius:16px;box-shadow:0 8px 26px rgba(17,17,20,.07)}
	.lp-post .lp-post-title{font-size:24px}
	.lp-post-meta .lp-share{margin-left:0}
	.lp-rel-card{flex-basis:72%}
	.lp-rel-nav{display:none}
}
