/* Orris VPN — блог (SSR, backend/src/lib/blog-template.js) на общей оболочке /css/orris-shell.css. */
.blog-main { padding: calc(var(--isl-top) + var(--isl-h) + 56px) 0 96px; position: relative; }
.blog-main::before { content: ""; position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none; z-index: -1;
  background: radial-gradient(50% 60% at 50% 0%, rgba(255,255,255,.07), transparent 70%); }
.blog-hero { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.blog-hero .lead { margin: 18px auto 0; }
.blog-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.blog-empty { color: var(--mute); text-align: center; grid-column: 1 / -1; padding: 60px 0; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color .25s, transform .35s var(--ease), box-shadow .35s; }
.blog-card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 30px 70px -30px rgba(0,0,0,.9); }
.blog-card:active { transform: scale(.99); }
.blog-card-cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #15161c, #0b0c10); }
.blog-card-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.blog-card:hover .blog-card-cover img { transform: scale(1.05); }
.blog-card-cover--blank::after { content: "article"; font-family: "Material Symbols Rounded"; font-size: 44px; color: var(--mute-2);
  position: absolute; inset: 0; display: grid; place-items: center; }
.blog-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.blog-card-body h2 { overflow-wrap: anywhere; margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.3; letter-spacing: -.02em; }
.blog-card-body p { margin: 0 0 18px; color: var(--mute); font-size: 15px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--mute-2); font-size: 13.5px; }
.blog-card-meta .go { display: inline-flex; align-items: center; gap: 4px; color: var(--text); font-weight: 600; }
.blog-card-meta .go .ms { font-size: 18px; transition: transform .25s var(--ease); }
.blog-card:hover .go .ms { transform: translateX(3px); }

/* статья */
.read-bar { position: fixed; left: 0; right: 0; top: 0; height: 2px; z-index: 80; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, rgba(255,255,255,.4), #fff); pointer-events: none; }
.article { max-width: 760px; margin: 0 auto; }
.article-back { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--mute); font-size: 14px; margin-bottom: 26px; transition: color .2s, border-color .2s; }
.article-back:hover { color: var(--text); border-color: var(--line-2); }
.article-back .ms { font-size: 18px; }
.article-head h1 { margin: 0 0 16px; font-family: var(--display); font-weight: 600; letter-spacing: -.035em; font-size: clamp(28px, 4.4vw, 48px); line-height: 1.1; overflow-wrap: break-word; }
.article-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--mute-2); font-size: 14px; margin-bottom: 30px; }
.article-meta span { display: inline-flex; align-items: center; gap: 6px; } .article-meta .ms { font-size: 17px; }
.article-cover { border-radius: var(--r-lg); overflow: hidden; margin: 0 0 40px; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--ink-2); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: none; }
.article-body h2:first-child { margin-top: 0; }
.article-body blockquote { border-left: 2px solid var(--line-2); border-radius: 0 var(--r-md) var(--r-md) 0; }

/* призыв: белая кнопка, как везде на сайте (зелёный — только про «подключено») */
.blog-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 24px; margin: 48px 0 0; padding: 28px 30px;
  border-radius: var(--r-lg); border: 1px solid var(--line-2);
  background: radial-gradient(80% 120% at 100% 0%, rgba(48,209,88,.09), transparent 60%), linear-gradient(140deg, #111217, #08090b); }
.blog-cta-inline { margin: 34px 0; padding: 22px 24px; }
.blog-cta-body h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -.02em; color: var(--text); }
.blog-cta-body p { margin: 0 !important; color: var(--mute); font-size: 15px; max-width: 440px; }
.prose .blog-cta a.btn { text-decoration: none; color: #050507; }

/* комментарии */
.comments { margin-top: 64px; padding-top: 36px; border-top: 1px solid var(--line); }
.comments h2 { margin: 0 0 22px; font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: -.02em; }
.comments-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.comments-empty { color: var(--mute); margin: 0; }
.comment { padding: 16px 18px; border-radius: 18px 18px 18px 6px; background: var(--ink-3); border: 1px solid var(--line); }
.comment-author { display: flex; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 14.5px; margin-bottom: 6px; }
.comment-date { color: var(--mute-2); font-weight: 400; font-size: 13px; }
.comment-body { color: var(--mute); font-size: 15px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; }
.comment-form { display: flex; flex-direction: column; gap: 12px; }
.comment-form textarea { width: 100%; min-height: 110px; resize: vertical; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); color: var(--text); font: 400 16px/1.5 var(--body); outline: none; transition: border-color .2s, background .2s; }
.comment-form textarea:focus { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.comment-form .btn { align-self: flex-start; }
.comment-msg { color: var(--mute); font-size: 14px; }
.comment-msg.ok { color: var(--green); }

/* сообщения: «не найдено», «нет перевода» */
.blog-msg { max-width: 620px; margin: 0 auto; text-align: center; }
.blog-msg .ms.big { font-size: 44px; width: 84px; height: 84px; display: grid; place-items: center; margin: 0 auto 22px; border-radius: 26px; border: 1px solid var(--line-2); }
.blog-msg .lead { margin: 16px auto 0; }
.blog-msg .langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0; }
@media (max-width: 860px) { .blog-main { padding: calc(var(--isl-top) + var(--isl-h) + 36px) 0 72px; } }
@media (max-width: 600px) { .blog-cta { padding: 22px 20px; } .blog-cta .btn { width: 100%; } .article-head h1 { -webkit-hyphens: auto; hyphens: auto; } }
