@font-face {
  font-family: 'dincond';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/assets/fonts/dincond.woff2') format('woff2');
}

:root{
--bg:#ffffff;
--bg-1:#fcfbf6;
--bg-2:#f6f5ee;
--quote:#e9f3ff;
--quoteleft:#ff1166;
--surface:#ffffff;
--like:#0099DD;
--border:#e6e4dc;
--border-2:#ccc;
--text:#222120;
--text-red:#d11155;
--text-muted:#60655f;

--abtn:#DD1155;
--abtn-color:#FFFFFF;

--accent:rgba(0,40,40,.075); color:#515151;
--accent-2:#FF2277;
--audio-accent:#3b82f6;
--success:#16a34a;
--danger:#dc2626;
--warning:#f59e0b;
--r:4px;
--r-md:5px;
--r-lg:14px;
--r-xl:18px;
--sh:0 1px 2px rgba(0,0,0,.04);
--sh-md:0 4px 12px rgba(0,0,0,.06);
--sh-lg:0 8px 24px rgba(0,0,0,.08);
--sh-xl:0 20px 60px rgba(0,0,0,.12);
--font-display:Georgia,serif;
--font-heading:dincond,sans-serif;
--font-body:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
--font-mono:ui-monospace,'SF Mono',Menlo,monospace;
--max-w:1300px;
--article-w:1280px; padding:0 10px;
--wide-w:1000px;
--transition:.2s cubic-bezier(.4, 0, .2, 1)}*,::after,::before{box-sizing:border-box}

/*

text-transform:uppercase;

*/

html{-webkit-text-size-adjust:100%}
body{margin:0;font-family:var(--font-body);font-size:16px;line-height:1.2;color:var(--text);background:var(--bg-1);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;display:flex;flex-direction:column;min-height:100vh}
img,video{height:auto;display:block}
a{color:inherit}
button{font:inherit;cursor:pointer}
.hidden{display:none!important}

@media (prefers-reduced-motion:reduce){*{animation-duration:NaNs!important;transition-duration:NaNs!important}}

.container{width:100%;max-width:var(--max-w);margin:0 auto;padding:0 20px}
.article-container{max-width:var(--article-w);margin:0 auto;padding:0 10px}
@media (max-width:640px){.article-container,.container{padding:0 10px}}
@media (min-width:1920px){:root{--max-w:1800px}}

.btn-primary{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 18px;border-radius:var(--r-md);font-size:.92rem;font-weight:600;text-decoration:none;border:1.5px solid transparent;transition:all var(--transition);cursor:pointer;min-height:44px}
.btn-primary{background:var(--accent);color:#313133;border-color:var(--accent)}
.btn-primary:hover{background:var(--accent-2);border-color:var(--accent-2);transform:translateY(-1px);box-shadow:0 6px 16px rgba(55,48,163,.25);color:#ffffff;}


.site-header{position:sticky;top:0;z-index:100;background:rgba(254,253,247,.92);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-bottom:1px solid var(--border)}
.header-inner{display:flex;align-items:center;justify-content:space-between;gap:30px;height:60px}

.site-logo{font-family:var(--font-heading);font-size:1.2rem;font-weight:700; text-transform:uppercase; text-decoration:none;color:var(--text);letter-spacing:-.01em}

.site-nav{display:flex;align-items:center;gap:24px;flex:1}.site-nav a{text-decoration:none;color:var(--text-muted);font-size:.95rem;font-weight:500;transition:color var(--transition)}.site-nav a:hover{color:var(--text)}

.nav-write{
	color:#313130;
	font-weight:600
}
.nav-write:hover{
	color:#dd1155;
}

.site-userbox{display:flex;align-items:center;gap:12px}.user-chip{display:inline-flex;align-items:center;gap:8px;text-decoration:none;color:var(--text);font-weight:500;font-size:.92rem;padding:6px 12px 6px 6px;border-radius:100px;transition:background var(--transition)}.user-chip:hover{background:var(--bg-2)}.avatar-stub,.user-chip img{width:32px;height:32px;border-radius:50%;object-fit:cover;background:var(--accent);color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700;font-size:.85rem}@media (max-width:720px){.site-nav{gap:16px}.site-nav a:not(.nav-write){display:none}.site-userbox .btn-ghost:not(:last-child){display:none}.user-chip span{display:none}}.site-main{display:flex;flex-direction:column;flex:1}.site-footer{margin-top:0;padding:14px 16px;min-height:64px;display:flex;align-items:center;justify-content:center;flex-shrink:0;border-top:1px solid var(--border);color:var(--text-muted);font-size:.82rem;text-align:center}.site-footer p{margin:0}.footer-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 24px}.footer-sep{opacity:.4;margin:0 2px}.site-footer .e-mail a,.site-footer a{color:inherit;text-decoration:underline dotted}.site-footer a:hover{color:var(--text)}@media (max-width:640px){.footer-row{flex-direction:column;justify-content:center;text-align:center;gap:4px}}.hero{text-align:center;padding:64px 24px 48px}.hero-title{font-family:var(--font-display);font-size:clamp(2rem, 5vw, 3.4rem);font-weight:700;line-height:1.1;margin:0 0 12px;letter-spacing:-.02em}.hero-sub{font-size:1.05rem;color:var(--text-muted);margin:0}.articles-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:32px;padding:32px 0 80px}.article-card{background:var(--surface);border-radius:var(--r-lg);overflow:hidden;box-shadow:var(--sh);transition:transform var(--transition),box-shadow var(--transition)}.article-card:hover{transform:translateY(-4px);box-shadow:var(--sh-lg)}.article-card-link{display:block;text-decoration:none;color:inherit}.article-card-cover{background-color:var(--bg-2);line-height:0}.article-card-cover-stub{display:flex;align-items:center;justify-content:center;font-size:3rem;opacity:.3}.article-card-body{padding:14px 16px 16px}

.article-card-title{font-family:var(--font-heading);font-size:1.6rem;font-weight:100;line-height:1.2;margin:0}

.article-card-excerpt{font-size:.95rem;color:var(--text-muted);margin:0 0 10px;line-height:1.5}
.article-card-meta{display:flex;align-items:center;gap:8px;font-size:.82rem;color:var(--text-muted)}
.meta-author{display:inline-flex;align-items:center;gap:6px;color:var(--text);font-weight:500}
.meta-author .avatar-stub,.meta-author img{width:22px;height:22px;font-size:.7rem}
.meta-dot{opacity:.5}
.empty-state{padding:80px 24px;text-align:center;color:var(--text-muted);font-size:1.05rem}

.tags-cloud{display:flex;flex-wrap:wrap;gap:10px;padding:32px 0 80px}.tag-chip{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:100px;background:var(--surface);border:1.5px solid var(--border);text-decoration:none;color:var(--text);font-size:.9rem;font-weight:500;transition:all var(--transition)}.tag-chip:hover{border-color:var(--accent);color:var(--accent);transform:translateY(-1px)}.tag-cnt{background:var(--bg-2);color:var(--text-muted);padding:2px 8px;border-radius:100px;font-size:.75rem;font-weight:600}.auth-wrap{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:40px 20px}.auth-card{width:100%;max-width:420px;background:var(--surface);border-radius:var(--r-xl);padding:40px 36px;box-shadow:var(--sh-lg);border:1px solid var(--border)}.auth-title{font-family:Bahnschrift;font-size:1.8rem;font-weight:700;margin:0 0 8px;text-align:center}.auth-sub{text-align:center;color:var(--text-muted);margin:0 0 32px;font-size:.95rem}.auth-form{display:flex;flex-direction:column;gap:16px}.auth-step{display:flex;flex-direction:column;gap:12px}.auth-label{font-size:.82rem;font-weight:600;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em}.auth-input{width:100%;padding:14px 16px;border:1.5px solid var(--border);border-radius:var(--r-md);font-size:1rem;font-family:var(--font-body);background:var(--surface);color:var(--text);transition:border-color var(--transition),box-shadow var(--transition);outline:0}.auth-input:focus{border-color:var(--accent);box-shadow:0 0 0 3px rgba(55,48,163,.12)}.auth-code-input{text-align:center;font-family:var(--font-mono);font-size:1.6rem;font-weight:700;letter-spacing:.35em;padding:16px}.auth-btn{display:block;width:100%;padding:14px;border:none;border-radius:var(--r-md);font-size:.98rem;font-weight:600;cursor:pointer;transition:all var(--transition);margin-top:8px}

.btn,.auth-btn-primary{background:var(--accent);color:#313133}
.btn,.auth-btn-primary:hover:not(:disabled){background:var(--accent-2);transform:translateY(-1px);box-shadow:0 6px 16px rgba(55,48,163,.3);color:#FFFFFF}
.btn,.auth-btn-primary:disabled{opacity:.6;cursor:wait}.auth-btn-link{background:0 0;border:none;color:var(--text-muted);font-size:.88rem;margin-top:4px;text-decoration:underline;text-underline-offset:3px}.auth-btn-link:hover{color:var(--text)}.auth-message{padding:0;font-size:.88rem;text-align:center;min-height:1.2em;margin-top:4px}.auth-message-error{color:var(--danger)}.auth-message-success{color:var(--success)}.auth-message-info{color:var(--text-muted)}.article-page{padding-bottom:80px}
.auth-tab-panel .auth-btn.auth-btn-primary{background:#0f172a!important;color:#fff!important}.auth-tab-panel .auth-btn.auth-btn-primary:hover:not(:disabled){background:#1e293b!important}

.article-cover{max-width:1672px;margin:32px auto;border-radius:var(--r-xl);overflow:hidden;box-shadow:var(--sh-xl)}
.article-cover img{width:100%;height:auto;display:block}

.article-title{font-family:var(--font-heading);font-size:clamp(2rem, 5vw, 3.2rem);line-height:1;margin:20px 0 0px; letter-spacing:-.025em}

.article-excerpt{
	font-family:var(--font-heading);
	font-size:1.4rem;
	color:var(--text-red);
	line-height:1.3;
	margin:10px 0 30px
}

.article-lang-switcher{display:inline-flex;align-items:center;gap:0;margin:0 0 24px;padding:0}
.als-item{display:inline-flex;align-items:center;justify-content:center;padding:4px 4px;border-radius:4px;text-decoration:none;opacity:.5;transition:opacity .2s;cursor:pointer;border:none;background:none}
.als-item:hover{opacity:.85}
.als-current{opacity:1;cursor:default}
.als-current .als-flag{animation:flag-pulse 1.8s ease-in-out infinite}
.als-flag{display:block;flex-shrink:0;border-radius:2px;width:24px;height:24px}
@keyframes flag-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.45;transform:scale(.92)}}
.als-flag-stub{font-size:16px;line-height:1}
.als-flag-code{font-size:11px;font-weight:700;letter-spacing:.03em;line-height:1;color:#fff;background:var(--accent,#16a34a);padding:3px 5px;border-radius:3px}

.article-meta{display:flex;align-items:center;gap:10px;padding:16px 0;border-top:1px solid var(--border);border-bottom:1px solid var(--border);font-size:.9rem;color:var(--text-muted);margin-bottom:32px}
.article-body{font-size:1.1rem;line-height:1.4}
.article-body p{margin:0 0 1.5em}
.article-body h2{font-family:var(--font-heading);font-size:2rem;margin:2em 0 .8em;line-height:1.3}
.article-body h3{font-family:var(--font-heading);font-size:1.5rem;margin:1.8em 0 .6em}
.article-body h4{font-family:var(--font-heading);font-size:1.25rem;margin:1.6em 0 .5em}

.article-body blockquote{
	margin:1.5em 0;
	padding:1.2em 1.6em;
	background:var(--quote);
	border-left:5px solid var(--quoteleft);
	border-radius:0 var(--r-md) var(--r-md) 0;
	font-style:italic;
	color:#313131;
}
blockquote cite {
  display: block;
  margin-top: -15px;
  font-size: .9rem;
  color: var(--text-muted);
  font-style: normal;
}
.article-body figure{margin:2em 0}
.article-body figure img{border-radius:var(--r-lg)}

.error-page{text-align:center;padding:80px 24px}.error-code{font-family:Bahnschrift;font-size:6rem;font-weight:900;color:var(--accent);line-height:1;margin-bottom:16px}.error-page h1{font-family:Bahnschrift;font-size:2rem;margin:0 0 8px}.error-page p{color:var(--text-muted);margin:0 0 32px}@keyframes fadeInUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}.fade-in-up{animation:fadeInUp .4s var(--transition) backwards}.articles-grid .article-card:first-child{animation-delay:.05s}.articles-grid .article-card:nth-child(2){animation-delay:.1s}.articles-grid .article-card:nth-child(3){animation-delay:.15s}.articles-grid .article-card:nth-child(4){animation-delay:.2s}.articles-grid .article-card:nth-child(5){animation-delay:.25s}.articles-grid .article-card:nth-child(6){animation-delay:.3s}.toast-container{position:fixed;top:88px;right:16px;z-index:1000;display:flex;flex-direction:column;gap:8px;pointer-events:none}
.toast{background:var(--text);color:#fff;padding:12px 18px;border-radius:var(--r-md);font-size:.92rem;font-weight:500;box-shadow:var(--sh-lg);opacity:0;transform:translateX(20px);transition:opacity .25s,transform .25s cubic-bezier(.4,0,.2,1);max-width:320px}.toast-in{opacity:1;transform:translateX(0)}.toast-out{opacity:0;transform:translateX(20px)}.toast-ok{background:var(--success)}.toast-err{background:var(--danger)}@media (max-width:600px){.toast-container{top:72px;right:8px;left:8px}.toast{max-width:100%}}

.related-articles{margin:48px 0 40px}
.related-title{font-family:var(--font-heading);font-size:1.4rem;font-weight:700;margin:0 0 20px;color:var(--text)}
.related-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.related-card{display:flex;flex-direction:column;border-radius:var(--r-lg);overflow:hidden;background:var(--surface);border:1px solid var(--border);text-decoration:none;color:inherit;transition:transform .2s,box-shadow .2s}
.related-card:hover{transform:translateY(-3px);box-shadow:var(--sh-md)}
.related-card-img{aspect-ratio:16/9;overflow:hidden;background:var(--bg-2)}
.related-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.related-card-img-stub{background:var(--bg-2)}
.related-card-body{padding:14px 16px;display:flex;flex-direction:column;gap:6px}
.related-card-title{font-family:var(--font-heading);font-size:1.1rem;font-weight:700;line-height:1.3;color:var(--text)}
.related-card-excerpt{font-size:.85rem;color:var(--text-muted);line-height:1.4}
.related-card-meta{font-size:.78rem;color:var(--text-muted);margin-top:auto}
@media(max-width:640px){.related-grid{grid-template-columns:1fr}}
@media(max-width:900px) and (min-width:641px){.related-grid{grid-template-columns:repeat(2,1fr)}}

.subscribe-widget{background:rgba(0,0,0,.05);border:0px;border-radius:var(--r-xl);padding:35px 35px 5px 35px; margin:35px 0;text-align:center}

.subscribe-widget-title{font-family:Bahnschrift;font-size:1.6rem;font-weight:700;margin:0 0 8px;color:var(--text)}.subscribe-widget-sub{color:var(--text-muted);font-size:1rem;line-height:1.5;margin:0 0 20px}.subscribe-form{display:flex;flex-wrap:wrap;gap:8px;max-width:480px;margin:0 auto}.subscribe-input{flex:1;min-width:200px;padding:12px 16px;border:1.5px solid var(--border);border-radius:var(--r-md);font-family:var(--font-body);font-size:1rem;background:var(--surface);color:var(--text);outline:0;transition:border-color var(--transition)}.subscribe-input:focus{border-color:var(--accent)}

.subscribe-btn{
	padding:10px 20px;
	background:var(--accent);
	color:#313131;
	border:none;
	border-radius:var(--r-md);
	font-size:.98rem;
	font-weight:600;
	cursor:pointer;
	transition:all var(--transition);
	white-space:nowrap
}
.subscribe-btn:hover:not(:disabled){
	background:var(--accent-2);
	transform:translateY(-1px);
	box-shadow:0 6px 16px rgba(55,48,163,.3);
	color:#FFFFFF;
	}
.subscribe-btn:disabled{
	opacity:.6;
	#cursor:wait
}
.subscribe-message{margin-top:12px;font-size:.9rem;min-height:1.2em}
.subscribe-message-success{color:var(--success)}
.subscribe-message-error{color:var(--danger)}
.subscribe-message-info{color:var(--text-muted)}

@media (max-width:600px){
	.subscribe-widget{padding:24px 20px}
	.subscribe-widget-title{font-size:1.35rem}
	.subscribe-form{flex-direction:column}
	.subscribe-input{min-width:0}
}
.article-card-cover picture {
  display: block;
  width: 100%;
}

.article-card-cover img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}
.article-card-title,.hero-titleб,.subscribe-widget-title,.article-body {
  color: #444 !important;
}

/* ── Кнопка-блок ──────────────────────────────────────────────────── */
.btn-wrap {
	display: inline-block;
	margin: 0.5em 0;
}
.btn-wrap + .btn-wrap {
	margin-left: 8px;
}
.abtn {
	display: inline-block;
	padding: 15px 25px;
	background: var(--abtn);
	color: var(--abtn-color);
	text-decoration: none;
	border-radius: var(--r-md);
	font-weight: 600;
	font-size: 1rem;
	transition: all var(--transition);
}
.abtn:hover {
	background: var(--accent-2);
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(55, 48, 163, .3);
	cursor:pointer;
	color: #ffffff;
}

/* ── Иконка редактирования в article-meta ─────────────────────────── */
.meta-edit-icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition);
  background: transparent;
}
.meta-edit-icon:hover {
  background: rgba(55, 48, 163, .1);
  color: var(--accent);
  transform: rotate(-8deg) scale(1.05);
}
.meta-edit-icon svg { display: block; }

.meta-status-badge {
  margin-left: 8px;
}

.status-badge { display: inline-flex; padding: 4px 10px; border-radius: 100px; font-size: .8rem; font-weight: 600; }
.status-draft     { background: var(--bg-1);  color: var(--text-muted); }
.status-pending   { background: #fef3c7;       color: #92400e; }
.status-published { background: #dcfce7;       color: #166534; }
.status-rejected  { background: #fee2e2;       color: #991b1b; }

/* ── Параграфы и заголовки в .article-body уже стилизованы в style.css ── */

/* Цитата с автором */


/* Разделитель */
.ab-divider {
  margin: 0px 0px 22px 0px;
  border: none;
  width: 100%;
  height: 1px;
  background: var(--border-2);
}

/* ── Картинка ─────────────────────────────────────────────────────── */
.ab-image {
  margin: 2em 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: zoom-in;
  transition: transform var(--transition);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.ab-image:hover { transform: translateY(-2px); }
.ab-image img {
  width: 100%;
  height: auto;
  display: block;
}
.ab-image figcaption {
  background: var(--bg-2);
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Параллакс ────────────────────────────────────────────────────── */
.ab-parallax {
  margin: 2em 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  --ab-h: 50%;
}
.ab-parallax-window {
  position: relative;
  width: 100%;
  padding-top: var(--ab-h);
  overflow: hidden;
  background: var(--bg-2);
}
.ab-parallax-window img {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: auto;
  will-change: transform;
}
.ab-parallax-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 0.2 0 0 0 0 0.15 0 0 0 0 0.1 0 0 0 0.7 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ab-parallax figcaption {
  background: var(--bg-2);
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* ── Галерея — слайдер ────────────────────────────────────────────── */
.ab-gallery {
  margin: 2em 0;
}
.ab-slider {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-2);
}
.ab-slider-track {
  display: flex;
  transition: transform .4s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.ab-slider-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
}
.ab-slider-slide img {
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
  cursor: zoom-in;
  object-fit: contain;
}
.ab-slider-prev,
.ab-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 300;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding-bottom: 4px;
  transition: background .2s;
}
.ab-slider-prev { left: 12px; }
.ab-slider-next { right: 12px; }
.ab-slider-prev:hover,
.ab-slider-next:hover { background: rgba(0,0,0,.85); }
.ab-slider-dots {
  position: absolute;
  left: 0; right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
  z-index: 2;
}
.ab-slider-dot {
  width: 16px; height: 16px;
  border-radius: 1px;
  border: none;
  background: rgba(255,200,255,.35);
  cursor: pointer;
  transition: all .2s;
  padding: 16px;
}
.ab-slider-dot.active {
  background: rgba(240,20,125,.5);
  transform: scale(1.1);
}

/* ── Галерея — сетка ──────────────────────────────────────────────── */
.ab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.ab-grid-cell {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: zoom-in;
  background: var(--bg-2);
  transition: transform var(--transition);
}
.ab-grid-cell:hover { transform: translateY(-2px); }
.ab-grid-cell img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

.ab-gallery figcaption {
  background: var(--bg-2);
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  margin-top: -1px;
}

/* ── Lightbox ─────────────────────────────────────────────────────── */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .92);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  user-select: none;
}
.lb-overlay.lb-open {
  display: flex;
  animation: lbFadeIn .2s ease-out;
}
@keyframes lbFadeIn { from { opacity: 0 } to { opacity: 1 } }

.lb-stage {
  position: relative;
  max-width: 95vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 85vh;
  display: block;
  border-radius: var(--r-md);
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lb-caption {
  margin-top: 16px;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  text-align: center;
  max-width: 600px;
}
.lb-counter {
  margin-top: 8px;
  color: rgba(255,255,255,.5);
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  border: none;
  background: rgba(255,255,255,.12);
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(255,255,255,.25); transform: scale(1.05); }

.lb-close {
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
}
.lb-prev,
.lb-next {
  top: 50%; transform: translateY(-50%);
  width: 56px; height: 56px;
  font-size: 2.4rem;
  font-weight: 300;
  line-height: 1;
  padding-bottom: 4px;
}
.lb-prev:hover, .lb-next:hover { transform: translateY(-50%) scale(1.05); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }

@media (max-width: 600px) {
  .lb-close { top: 12px; right: 12px; width: 40px; height: 40px; }
  .lb-prev  { left: 8px; width: 44px; height: 44px; }
  .lb-next  { right: 8px; width: 44px; height: 44px; }
}

/* ── Аудио ────────────────────────────────────────────────────────── */
.ab-audio {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2em 0;
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.ab-audio audio { display: none; }

.ab-audio-btn {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--audio-accent);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  position: relative;
}
.ab-audio-btn:hover {
  background: #2563eb;
  transform: scale(1.05);
  box-shadow: 0 6px 18px rgba(59, 130, 246, .35);
}
.ab-audio-btn svg {
  width: 22px;
  height: 22px;
  position: absolute;
  transition: opacity .15s;
}
.ab-audio-icon-pause { opacity: 0; }
.ab-audio-icon-play  { opacity: 1; transform: translateX(2px); }
.ab-audio.playing .ab-audio-icon-pause { opacity: 1; }
.ab-audio.playing .ab-audio-icon-play  { opacity: 0; }

.ab-audio-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ab-audio-title {
  font-weight: 600;
  font-size: .98rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ab-audio-artist {
  font-size: .85rem;
  color: var(--text-muted);
}
.ab-audio-progress {
  margin-top: 6px;
  height: 6px;
  background: rgba(0,0,0,.06);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.ab-audio-progress-bar {
  height: 100%;
  background: var(--audio-accent);
  width: 0;
  transition: width .1s linear;
  border-radius: 3px;
}
.ab-audio-time {
  font-size: .78rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

/* ── Код ──────────────────────────────────────────────────────────── */
.ab-code-wrap {
  position: relative;
  margin: 2em 0;
}
.ab-code-lang {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: .75rem;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-mono);
}
.ab-code {
  background: #1e1e2e;
  color: #e8e8f0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}
.ab-code code { font-family: inherit; }

/* ══════════════════════════════════════════════════════════════════
   Реакции (лайк / дизлайк)
   ══════════════════════════════════════════════════════════════════ */
.article-reactions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin: 48px 0 32px;
	padding: 20px 0;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}
.reaction-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 25px;
	background: rgba(0,0,0,.06);
	border: 1.5px solid var(--border);
	border-radius: 10px;
	color: var(--text);
	font-size: .98rem;
	font-weight: 600;
	cursor: pointer;
	transition: all var(--transition);
	user-select: none;
}

.reaction-btn svg {
	width: 20px;
	height: 20px;
}
.reaction-btn:hover {
	transform: translateY(-2px);
}


.reaction-btn.reaction-like.active {
	background:#DD1155;
	border:0;
	color: #fff;
}
.reaction-btn.reaction-dislike.active {
	background:#224444;
	border:0;
	color: #fff;
}
.reaction-btn.react-pulse {
  animation: reactPulse .4s cubic-bezier(.4, 0, .2, 1);
}
@keyframes reactPulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.12); }
  100% { transform: scale(1); }
}
.reaction-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

/* ══════════════════════════════════════════════════════════════════
   Карточка автора
   ══════════════════════════════════════════════════════════════════ */
.author-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  margin: 32px 0;
  background: var(--bg-2);
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
}
.author-card-avatar img,
.author-card-avatar .avatar-stub {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 1.5rem;
}
.author-card-body { flex: 1; min-width: 0; }
.author-card-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

/* ══════════════════════════════════════════════════════════════════
   Комментарии
   ══════════════════════════════════════════════════════════════════ */
.comments-section {
  margin: 48px 0 32px;
}
.comments-title {
  font-family: Bahnschrift,Inter;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.comments-count {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.comment-form {
  margin-bottom: 32px;
}
.comment-input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  background: var(--surface);
  color: var(--text);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--transition);
}
.comment-input:focus { border-color: var(--accent); }
.comment-form-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.btn-comment-submit { min-height: auto; padding: 8px 18px; font-size: .9rem; }
.btn-comment-cancel {
  padding: 8px 18px;
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
  border-radius: var(--r-md);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-comment-cancel:hover { background: var(--bg-2); color: var(--text); }

.comment-login-prompt {
  padding: 16px 20px;
  background: var(--bg-2);
  border-radius: var(--r-md);
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.comment-login-prompt a {
  color: #1e1b6e;
  font-weight: 600;
  text-decoration: none;
}
.comment-login-prompt a:hover { text-decoration: none; }

.comments-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.comments-empty,
.comments-loading {
  text-align: center;
  padding: 32px 16px;
  color: var(--text-muted);
  font-size: .95rem;
}

.comment {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.comment-avatar img,
.comment-avatar .avatar-stub {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  font-size: 1.05rem;
}
.comment-body {
  flex: 1;
  min-width: 0;
}
.comment-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}
.comment-author {
  font-weight: 600;
  color: var(--text);
}
.comment-date {
  font-size: .82rem;
  color: var(--text-muted);
}
.comment-content {
  font-size: .98rem;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
}
.comment-content a {
  color: var(--accent);
  word-break: break-all;
}
.comment-actions {
  display: flex;
  gap: 14px;
  margin-top: 6px;
}
.comment-action {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color var(--transition);
}
.comment-action:hover { color: var(--accent); }
.comment-action.comment-action-del:hover { color: var(--danger); }

.comment-reply-form {
  margin-top: 12px;
}
.comment-replies {
  margin-top: 16px;
  padding-left: 16px;
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.comment-reply { /* без особых отличий, унаследовано */ }
.comment-reply .comment-avatar img,
.comment-reply .comment-avatar .avatar-stub {
  width: 32px;
  height: 32px;
  font-size: .9rem;
}

@media (max-width: 600px) {
  .article-reactions { gap: 8px; }
  .reaction-btn { padding: 8px 16px; font-size: .9rem; }
  .author-card { padding: 16px; }
  .author-card-avatar img,
  .author-card-avatar .avatar-stub { width: 48px; height: 48px; }
  .comment-replies { padding-left: 12px; }
}

/* ══════════════════════════════════════════════════════════════════
   Видео
   ══════════════════════════════════════════════════════════════════ */
.ab-video {
  margin: 2em 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}
.ab-video > video {
  display: block;
  width: 100%;
  height: auto;
  background: transparent;
}
.ab-video figcaption {
  background: var(--bg-2);
  padding: 10px 16px;
  font-size: .9rem;
  color: var(--text-muted);
  text-align: center;
}

/* Фоновый режим: видео полноширинное, поверх — пульс-кнопка звука */
.ab-video-bg {
  position: relative;
}
.ab-video-bg > video {
  cursor: default;
}
.ab-video-sound-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  padding: 0;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,.6));
  animation: soundPulse 2s ease-in-out infinite;
}
.ab-video-sound-btn:hover {
  animation: none;
  opacity: 1;
  transform: scale(1.18);
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.5));
}
.ab-video-sound-btn.sound-on {
  animation: none;
  opacity: .9;
}
.ab-video-sound-btn.sound-on:hover {
  opacity: 1;
  transform: scale(1.12);
}
.ab-video-sound-btn svg {
  width: 22px;
  height: 22px;
}
@keyframes soundPulse {
  0%, 100% { opacity: .45; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.22); }
}

/* Полноэкранный режим figure — без нативных контролов браузера */
.ab-video:fullscreen,
.ab-video:-webkit-full-screen {
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw !important;
  height: 100vh !important;
  max-width: none !important;
  max-height: none !important;
  border-radius: 0;
  margin: 0;
}
.ab-video:fullscreen > video,
.ab-video:-webkit-full-screen > video {
  width: auto !important;
  height: 100vh !important;
  max-height: 100vh !important;
  max-width: 100vw !important;
}

/* ══════════════════════════════════════════════════════════════════
   Видео-галерея
   ══════════════════════════════════════════════════════════════════ */
.ab-vgallery { margin: 2em 0; }

.ab-vgallery-slider .ab-vgallery-wrap {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-1);
}
.ab-vgallery-track {
  display: grid;
  grid-template-areas: "stack";
}
.ab-vgallery-slide {
  grid-area: stack;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-1);
  min-height: 160px;
  opacity: 0;
  transition: opacity .55s ease;
  pointer-events: none;
}
.ab-vgallery-slide.vg-active {
  opacity: 1;
  pointer-events: auto;
}
.ab-vgallery-slide video {
  width: 100%;
  max-height: 75vh;
  display: block;
  object-fit: contain;
  background: var(--bg-1);
  cursor: pointer;
}
.ab-vgallery-prev, .ab-vgallery-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%; border: none;
  background: rgba(0,0,0,.55); color: #fff;
  font-size: 1.6rem; font-weight: 300;
  cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  line-height: 1; padding-bottom: 4px;
  transition: background .2s;
}
.ab-vgallery-prev { left: 12px; }
.ab-vgallery-next { right: 12px; }
.ab-vgallery-prev:hover, .ab-vgallery-next:hover { background: rgba(0,0,0,.85); }
.ab-vgallery-dots {
  position: absolute; left: 0; right: 0; bottom: 12px;
  display: flex; justify-content: center; gap: 6px; z-index: 2;
}
.ab-vgallery-dot {
  width: 16px; height: 16px; border-radius: 1px; border: none;
  background: rgba(255,200,255,.35); cursor: pointer;
  transition: all .2s; padding: 16px;
}
.ab-vgallery-dot.active { background: rgba(240,20,125,.5); transform: scale(1.1); }

/* Fullscreen для слайда */
.ab-vgallery-slide:fullscreen,
.ab-vgallery-slide:-webkit-full-screen {
  background: #000; display: flex; align-items: center; justify-content: center;
}
.ab-vgallery-slide:fullscreen video,
.ab-vgallery-slide:-webkit-full-screen video {
  width: auto !important; height: 100vh !important;
  max-height: 100vh !important; max-width: 100vw !important;
}

/* Сетка */
.ab-vgallery-grid-cells {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 8px;
}
.ab-vgallery-cell {
  position: relative; aspect-ratio: 9/16;
  overflow: hidden; border-radius: var(--r-md);
  cursor: pointer; background: var(--bg-2);
}
.ab-vgallery-cell img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform .3s;
}
.ab-vgallery-cell:hover img { transform: scale(1.04); }
.ab-vgallery-cell-noimg { width: 100%; height: 100%; background: var(--bg-2); }
.ab-vgallery-play-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(0,0,0,.22); transition: background .2s;
}
.ab-vgallery-cell:hover .ab-vgallery-play-icon { background: rgba(0,0,0,.42); }
.ab-vgallery-play-icon svg { width: 32px; height: 32px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.5)); }

.ab-vgallery-figcap {
  background: var(--bg-2); padding: 10px 16px;
  font-size: .9rem; color: var(--text-muted); text-align: center;
  border-radius: 0 0 var(--r-lg) var(--r-lg); margin-top: -1px;
}

/* Video Lightbox */
.vlb-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.95); z-index: 9999;
  display: none; align-items: center; justify-content: center;
  user-select: none;
}
.vlb-overlay.vlb-open { display: flex; animation: lbFadeIn .2s ease-out; }
.vlb-stage {
  position: relative; width: 100%;
  max-width: 480px; max-height: 90vh;
  display: flex; flex-direction: column; align-items: center;
}
.vlb-video {
  max-width: 100%; max-height: 82vh;
  border-radius: var(--r-md); display: block; object-fit: contain;
}
.vlb-counter {
  margin-top: 12px; color: rgba(255,255,255,.45);
  font-size: .85rem; font-variant-numeric: tabular-nums;
}
.vlb-close {
  position: fixed; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff;
  font-size: 1.8rem; font-weight: 300; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background .2s;
}
.vlb-close:hover { background: rgba(255,255,255,.25); }
.vlb-prev, .vlb-next {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: none; background: rgba(255,255,255,.12); color: #fff;
  font-size: 2rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center; z-index: 2;
  transition: background .2s;
}
.vlb-prev { left: 16px; }
.vlb-next { right: 16px; }
.vlb-prev:hover, .vlb-next:hover { background: rgba(255,255,255,.25); }
.vlb-sound-btn { position: absolute; bottom: 52px; right: 8px; z-index: 3; }

/* ══════════════════════════════════════════════════════════════════
   Кнопка-ссылка в карточке автора
   ══════════════════════════════════════════════════════════════════ */
.author-card {
  position: relative;
  /* author-card уже flex с gap: 16px — нам нужно чтобы кнопка ушла вправо */
  align-items: center;
}
.author-card-body {
  flex: 1;
  min-width: 0;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────── */
.article-breadcrumbs {
  font-size: .82rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}
.article-breadcrumbs a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}
.article-breadcrumbs a:hover { color: var(--accent); }
.article-breadcrumbs a:last-child { color: var(--text); font-weight: 500; }
.bc-sep { color: var(--text-muted); opacity: .5; }

.author-card-avatar img {
  border-radius: 50%;
  object-fit: cover;
}

.article-meta img {
  border-radius: 50%;
  object-fit: cover;
}.article-body code { font-family: monospace; background: var(--bg-2); padding: 2px 6px; border-radius: 4px; font-size: .92em; }

.ab-list {
	list-style: none; padding: 0; margin: 0 0 1.3em; padding-left: 15px;
}
.ab-list li {
	display: flex; align-items: flex-start; gap: 8px; padding: 2px 0; font-size: .95rem; font-weight:700; line-height: 1.4;
}
.ab-list li::before {
	content: '☐'; flex-shrink: 0; color: var(--text); font-size: 1rem; margin-top: 1px;
}


.float-edit-btn { position: fixed; bottom: 180px; right: 32px; z-index: 99; }
.float-edit-btn a { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--accent); color: #fff; border-radius: 50%; box-shadow: var(--sh-lg); transition: all var(--transition); }
.float-edit-btn a:hover { background: var(--accent-2); transform: translateY(-2px); }

