/*
Theme Name: Plump World
Theme URI: https://plumpworld.example
Author: Plump World
Description: Соцсеть Plump World на WordPress: лента постов с фото, подписки и друзья, уведомления, профили, фотогалерея, форум, промо-блоки для своих проектов, окно 18+. Всё встроено — сторонние плагины не нужны.
Version: 2.3.2
Requires at least: 6.2
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: plumpworld
Tags: community, gallery, forum, custom-logo, custom-menu, threaded-comments
*/

/* ==========================================================================
   Шрифты (OFL, лежат в теме): Dela Gothic One — заголовки, Golos Text — текст
   ========================================================================== */
@font-face { font-family: "Dela Gothic One"; src: url("assets/fonts/dela-gothic-one.woff") format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Golos Text"; src: url("assets/fonts/golos-text.woff") format("woff"); font-weight: 400 900; font-display: swap; }

/* ==========================================================================
   Токены
   Принцип: белая бумага, сливовые чернила, неон — только там, где «горит»
   (кнопка действия, контур шестиугольника, активное состояние, лайк).
   Шестиугольник = вещи бренда (значки, разделы); круг = люди (аватары).
   ========================================================================== */
:root {
	--paper: #ffffff;
	--milk: #fbf7fe;
	--haze: #f2e8ff;
	--blush: #ffe4f7;
	--ink: #2b1239;
	--ink-2: #5d4a6b;
	--mute: #94839f;
	--line: #ede3f4;
	--line-2: #dccbea;
	--pink: #ff4fd8;
	--violet: #9b2cff;
	--violet-ink: #7a1fd6;
	--danger: #d8344f;
	--neon: linear-gradient(100deg, #ff4fd8 0%, #c13bff 55%, #8a2bff 100%);
	--neon-glow: 0 0 0 1px rgba(255, 79, 216, .2), 0 6px 18px -4px rgba(193, 59, 255, .55), 0 0 32px -6px rgba(255, 79, 216, .55);

	--r-photo: 28px;
	--r-panel: 24px;
	--r-field: 16px;
	--r-pill: 999px;

	--font: "Golos Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-display: "Dela Gothic One", "Golos Text", system-ui, sans-serif;

	--container: 1240px;
	--header-h: 80px;
	--ease: cubic-bezier(.2, .8, .2, 1);
}

/* ==========================================================================
   База
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.gate-open { overflow: hidden; }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--violet-ink); text-decoration: none; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--ink); line-height: 1.12; }
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
::selection { background: var(--blush); color: var(--ink); }
:focus-visible { outline: 3px solid rgba(155, 44, 255, .5); outline-offset: 3px; border-radius: 8px; }

.screen-reader-text { position: absolute !important; clip: rect(1px, 1px, 1px, 1px); width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { clip: auto; width: auto; height: auto; z-index: 1000; top: 8px; left: 8px; padding: 10px 16px; background: #fff; border-radius: 12px; box-shadow: var(--neon-glow); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.content-narrow { max-width: 720px; margin-left: auto; margin-right: auto; }
.content-mid { max-width: 940px; margin-left: auto; margin-right: auto; }
.muted { color: var(--mute); display: inline-flex; align-items: center; gap: 6px; }

/* Панель — единственный «контейнер» в системе: тонкая лавандовая рамка, без тени */
.panel { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-panel); }
.card { background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-panel); padding: 22px; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--haze); color: var(--violet-ink); font-size: .85rem; font-weight: 600; }
.chip:hover { background: var(--blush); color: var(--ink); }

.tag { display: inline-block; padding: 1px 9px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 600; background: var(--milk); color: var(--mute); border: 1px solid var(--line); vertical-align: 2px; margin-left: 6px; }
.tag--pin { background: var(--blush); color: #b2148f; border-color: transparent; }
.tag--accent { background: var(--ink); color: #fff; border-color: transparent; }

/* Шестиугольный значок (форма из логотипа) */
.hex-badge {
	--s: 48px;
	display: inline-grid; place-items: center; flex-shrink: 0;
	width: var(--s); height: calc(var(--s) * 1.15);
	clip-path: url(#pw-hex);
	background: var(--haze); color: var(--violet-ink);
	font-size: calc(var(--s) * .44); line-height: 1;
}
.hex-badge--lg { --s: 56px; }
.hex-badge--xl { --s: 64px; }
.hex-badge--18 { --s: 46px; background: var(--ink); color: #fff; font-weight: 800; font-size: .82rem; }

/* ==========================================================================
   Неоновый шестиугольник
   ========================================================================== */
.neon-hex { overflow: visible; fill: none; }
.neon-hex path { stroke-linejoin: round; stroke-linecap: round; }
.neon-hex__glow { stroke-width: 7; filter: blur(7px); opacity: .75; }
.neon-hex__tube { stroke-width: 3.6; }
.neon-hex__core { stroke: #fff; stroke-width: 1.1; opacity: .85; }

.hex-frame { position: relative; width: 100%; aspect-ratio: 100 / 115; }
.hex-frame__clip { position: absolute; inset: 0; clip-path: url(#pw-hex); background: var(--haze); }
.hex-frame__neon { position: absolute; top: -5.22%; left: -6%; width: 112%; height: 110.43%; max-width: none; pointer-events: none; }
.hex-frame__empty { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, #fff 0, var(--haze) 75%); }
.hex-frame__empty img { width: 64%; }

/* «Включение» неона: один раз при загрузке */
.hex-frame__neon path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: neon-draw 1.3s .15s var(--ease) forwards; }
.hex-frame__neon { animation: neon-flicker 1.9s .15s steps(1, end) both; }
@keyframes neon-draw { to { stroke-dashoffset: 0; } }
@keyframes neon-flicker {
	0% { opacity: .2; } 55% { opacity: 1; } 62% { opacity: .35; } 68% { opacity: 1; } 74% { opacity: .55; } 80%, 100% { opacity: 1; }
}

/* ==========================================================================
   Кнопки и ссылки
   ========================================================================== */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 12px 24px; border-radius: var(--r-pill); border: 1.5px solid transparent;
	font: 600 1rem/1.2 var(--font); cursor: pointer; white-space: nowrap;
	background: transparent; color: var(--ink);
	transition: box-shadow .25s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--neon); color: #fff; }
.btn--primary:hover, .btn--primary:focus-visible { color: #fff; box-shadow: var(--neon-glow); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--text { padding-left: 12px; padding-right: 12px; color: var(--ink-2); }
.btn--text:hover { color: var(--violet-ink); }
.btn--danger { color: var(--danger); }
.btn--danger:hover { color: #a61f36; }
.btn--sm { padding: 8px 16px; font-size: .92rem; }
.btn--lg { padding: 16px 30px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn.is-loading, .btn[disabled] { opacity: .6; pointer-events: none; }

.link-neon {
	font-weight: 600; color: var(--ink);
	text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 6px;
	transition: text-underline-offset .2s var(--ease), color .2s;
}
.link-neon:hover { color: var(--violet-ink); text-underline-offset: 3px; }

/* ==========================================================================
   Аватары — всегда круг; неоновое кольцо у главных аватаров
   ========================================================================== */
.avatar, .entry-content img.avatar { border-radius: 50%; object-fit: cover; background: var(--haze); flex-shrink: 0; }
.avatar--ring { padding: 3px; background: var(--neon); box-shadow: inset 0 0 0 3px #fff; }

.face-stack { display: inline-flex; }
.face-stack .avatar { border: 3px solid #fff; margin-left: -12px; }
.face-stack .avatar:first-child { margin-left: 0; }

/* ==========================================================================
   Уведомления
   ========================================================================== */
.pw-toast {
	position: fixed; z-index: 300; left: 50%; top: calc(var(--header-h) + 14px); transform: translateX(-50%);
	display: flex; align-items: center; gap: 14px; max-width: min(560px, calc(100% - 32px));
	padding: 14px 16px 14px 20px; border-radius: 18px; background: var(--ink); color: #fff; font-weight: 500;
	box-shadow: 0 20px 40px -16px rgba(43, 18, 57, .5); animation: toast-in .35s var(--ease);
}
.pw-toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.pw-toast--success::before { background: var(--pink); box-shadow: 0 0 10px var(--pink); }
.pw-toast--error::before { background: #ff6b81; box-shadow: 0 0 10px #ff6b81; }
.pw-toast__close { background: none; border: 0; font-size: 1.4rem; line-height: 1; color: rgba(255, 255, 255, .6); cursor: pointer; padding: 0 4px; }
.pw-toast.is-hiding { opacity: 0; transition: opacity .3s; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -10px); } }

/* ==========================================================================
   Фото
   ========================================================================== */
.pw-masonry { column-count: 4; column-gap: 22px; }
.photo-card { break-inside: avoid; margin-bottom: 26px; }
.photo-card__img { display: block; border-radius: var(--r-photo); overflow: hidden; background: var(--haze); }
.photo-card__img img { width: 100%; transition: transform .7s var(--ease); }
.photo-card__img:hover img { transform: scale(1.035); }
.photo-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 4px 0; }
.photo-card__author { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--ink); font-weight: 600; font-size: .92rem; }
.photo-card__author span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pw-like {
	display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; margin-right: -6px; border-radius: var(--r-pill);
	border: 0; background: transparent; color: var(--mute); font: 600 .9rem var(--font); cursor: pointer; transition: color .2s, background-color .2s;
}
.pw-like:hover { color: var(--pink); }
.pw-like.is-liked { color: var(--pink); }
.pw-like.is-liked .pw-icon { filter: drop-shadow(0 0 5px rgba(255, 79, 216, .8)); }
.pw-like.is-liked .pw-icon path { fill: currentColor; }
.pw-like.pop .pw-icon { animation: pop .45s var(--ease); }
@keyframes pop { 40% { transform: scale(1.4); } }

.photo-view { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 32px; padding-bottom: 72px; align-items: start; }
.photo-view__media { position: relative; margin: 0; border-radius: var(--r-photo); overflow: hidden; background: var(--milk); display: grid; place-items: center; min-height: 320px; }
.photo-view__media img { width: 100%; max-height: 84vh; object-fit: contain; }
.photo-view__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); font-size: 1.2rem; opacity: 0; transition: opacity .2s; }
.photo-view__media:hover .photo-view__nav, .photo-view__nav:focus-visible { opacity: 1; }
.photo-view__nav--prev { left: 16px; }
.photo-view__nav--next { right: 16px; }
.photo-view__side { position: sticky; top: calc(var(--header-h) + 24px); }
.photo-view__title { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; }
.photo-view__actions { display: flex; align-items: center; gap: 16px; padding: 14px 0; margin: 18px 0 0; border-top: 1.5px solid var(--line); border-bottom: 1.5px solid var(--line); }
.photo-view__actions .pw-like { font-size: 1rem; margin: 0; padding: 8px 16px; background: var(--blush); color: #b2148f; }
.photo-view__actions .pw-like.is-liked { background: var(--neon); color: #fff; }
.photo-view__actions .pw-like.is-liked .pw-icon { filter: none; }
.photo-view__delete { margin-left: auto; }

/* ==========================================================================
   Блог
   ========================================================================== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 28px; }
.post-grid--feature { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto 1fr; align-items: start; }
.post-grid--feature .post-card:first-child { grid-row: span 2; }
.post-grid--feature .post-card:not(:first-child) { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: start; }
.post-grid--feature .post-card:not(:first-child) .post-card__img { aspect-ratio: 1; }
.post-grid--feature .post-card:not(:first-child) .post-card__body { padding-top: 4px; }
.post-grid--feature .post-card:first-child .post-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; }
.post-card__img { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-photo); overflow: hidden; background: var(--haze); }
.post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.post-card__img:hover img { transform: scale(1.035); }
.post-card__placeholder { display: grid; place-items: center; height: 100%; }
.post-card__placeholder img { width: 30%; height: auto; opacity: .7; }
.post-card__body { padding-top: 16px; }
.post-card__date { color: var(--mute); font-size: .88rem; }
.post-card__title { margin: 4px 0 8px; font-size: 1.15rem; }
.post-card__title a { color: var(--ink); }
.post-card__title a:hover { color: var(--violet-ink); }
.post-card p { color: var(--ink-2); margin: 0; font-size: .97rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.single-post__thumb { margin: 0 0 36px; border-radius: var(--r-photo); overflow: hidden; }
.single-post__thumb img { width: 100%; }

.entry-content { font-size: 1.08rem; line-height: 1.7; color: var(--ink-2); }
.entry-content--sm { font-size: 1rem; line-height: 1.6; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.6em; color: var(--ink); }
.entry-content img { border-radius: var(--r-field); }
.entry-content blockquote { margin: 1.6em 0; padding: 0 0 0 24px; border-left: 3px solid var(--pink); font-family: var(--font-display); font-size: 1.35rem; line-height: 1.3; color: var(--ink); }
.entry-content blockquote p { margin: 0; }
.entry-content ul, .entry-content ol { padding-left: 1.3em; }
.entry-content li { margin-bottom: .4em; }
.entry-content li::marker { color: var(--pink); }
.entry-content :is(p, li, blockquote, td) > a { text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 4px; }
.tags { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags a { padding: 4px 12px; border-radius: var(--r-pill); background: var(--haze); font-size: .88rem; font-weight: 600; }

/* ==========================================================================
   Форум
   ========================================================================== */
.forum-list > * + *, .pw-topic-list > * + * { border-top: 1.5px solid var(--line); }
.forum-list--sub { margin-bottom: 28px; }
.forum-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 130px 250px; gap: 22px; align-items: center; padding: 22px 26px; }
.forum-row h3 { margin: 0 0 2px; font-size: 1.12rem; }
.forum-row h3 a { color: var(--ink); }
.forum-row h3 a:hover { color: var(--violet-ink); }
.forum-row__main p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.forum-row__subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.forum-row__stats { margin: 0; display: flex; flex-direction: column; font-size: .9rem; color: var(--mute); line-height: 1.5; }
.forum-row__stats strong { color: var(--ink); font-weight: 600; }
.forum-row__last { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .92rem; }
.forum-row__last div { min-width: 0; display: flex; flex-direction: column; }
.forum-row__last a { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.forum-row__last a:hover { color: var(--violet-ink); }
.forum-row__last small { color: var(--mute); }

.pw-new-topic { margin-bottom: 24px; }
.pw-new-topic summary { list-style: none; display: inline-flex; }
.pw-new-topic summary::-webkit-details-marker { display: none; }
.pw-new-topic[open] summary { margin-bottom: 16px; }
.pw-new-topic form { border: 1.5px solid var(--line); border-radius: var(--r-panel); padding: 26px; }

.topic-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px 24px; }
.topic-row.is-pinned { background: linear-gradient(90deg, var(--blush), transparent 70%); }
.pw-topic-list > .topic-row:first-child { border-top-left-radius: calc(var(--r-panel) - 2px); border-top-right-radius: calc(var(--r-panel) - 2px); }
.topic-row__title { margin: 0; font-size: 1.04rem; font-weight: 600; }
.topic-row__title a { color: var(--ink); }
.topic-row__title a:hover { color: var(--violet-ink); }
.topic-row__meta { margin: 3px 0 0; font-size: .88rem; color: var(--mute); display: flex; flex-wrap: wrap; gap: 4px 16px; }
.topic-row__count { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: var(--r-pill); background: var(--milk); color: var(--ink-2); font-weight: 600; font-size: .9rem; }

/* Посты в теме */
.pw-post { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; padding: 26px 0; list-style: none; border-top: 1.5px solid var(--line); }
.pw-post--op { border-top: 0; padding-top: 8px; padding-bottom: 32px; }
.pw-post--op .entry-content { font-size: 1.12rem; color: var(--ink); }
.pw-post__author { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.pw-post__author a, .pw-post__author > span:first-child { display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--ink); }
.pw-post__author strong { font-size: .95rem; font-weight: 600; word-break: break-word; }
.pw-post__author .tag { margin-left: 0; }
.pw-post__body { min-width: 0; }
.pw-post__meta { font-size: .86rem; color: var(--mute); margin-bottom: 8px; }
.pw-post__meta a { color: var(--mute); }
.pw-post__meta em { margin-left: 8px; color: #b2148f; font-style: normal; }
.pw-post__tools { display: flex; gap: 16px; margin-top: 12px; font-size: .88rem; font-weight: 600; }
.pw-post__tools a { color: var(--mute); }
.pw-post__tools a:hover { color: var(--violet-ink); }

/* ==========================================================================
   Комментарии
   ========================================================================== */
.pw-comments { margin-top: 12px; }
.photo-view .pw-comments { margin-top: 24px; }
.pw-comments__title { font-size: 1.1rem; margin: 0 0 4px; }
.pw-comments--forum .pw-comments__title { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; margin: 24px 0 0; }
.pw-comment-list, .pw-comment-list .children { list-style: none; margin: 0; padding: 0; }
.pw-comment { display: flex; flex-wrap: wrap; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.pw-comment > .pw-comment__body { flex: 1; min-width: 0; }
.pw-comment .children { flex-basis: 100%; padding-left: 52px; }
.pw-comment__name { font-weight: 600; color: var(--ink); margin-right: 8px; }
.pw-comment .pw-post__meta { display: inline; }
.pw-comment .entry-content { margin-top: 4px; }
.pw-comments--forum .children { padding-left: 48px; }

.pw-comment-form { margin-top: 24px; }
.pw-comment-form .comment-reply-title { font-size: 1.05rem; margin-bottom: 12px; display: flex; justify-content: space-between; }
.pw-comment-form .comment-reply-title small a { font-size: .88rem; color: var(--mute); }
.pw-comment-form .form-submit { margin: 0; }

.pw-login-cta { margin-top: 24px; padding: 28px; border-radius: var(--r-panel); background: var(--milk); text-align: center; }
.pw-login-cta p { color: var(--ink); font-weight: 600; }

/* ==========================================================================
   Формы
   ========================================================================== */
.pw-form .field { margin: 0 0 20px; }
.pw-form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 7px; color: var(--ink); }
.pw-form small { display: block; color: var(--mute); font-size: .84rem; margin-top: 5px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="number"], textarea, select {
	width: 100%; padding: 14px 16px; border-radius: var(--r-field); border: 1.5px solid var(--line);
	background: var(--milk); color: var(--ink); font: 400 1rem var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
textarea { resize: vertical; min-height: 120px; }
select { width: auto; padding-right: 40px; appearance: none; background: var(--milk) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232b1239' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 16px center; border-radius: var(--r-pill); font-weight: 500; cursor: pointer; }
input:focus, textarea:focus, select:focus { outline: none; background-color: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(155, 44, 255, .14); }
::placeholder { color: #ad9eb9; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.field--row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .94rem; }
.field--row a { font-weight: 600; }
.pw-form label.check, label.check { display: flex; align-items: center; gap: 10px; font-weight: 500; cursor: pointer; margin: 8px 0; }
.check input { appearance: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; cursor: pointer; flex-shrink: 0; margin: 0; transition: background-color .2s, border-color .2s; }
.check input:checked { background: var(--ink); border-color: var(--ink); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.field--hp { position: absolute !important; left: -9999px; }

.pw-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r-field); background: var(--milk); color: var(--ink-2); font-size: .92rem; }
.pw-note .pw-icon { color: var(--violet-ink); flex-shrink: 0; margin-top: 2px; }

.pw-file__box { position: relative; display: grid; place-items: center; overflow: hidden; background: var(--milk); border: 2px dashed var(--line-2); cursor: pointer; transition: border-color .2s, background-color .2s; }
.pw-file__box:hover, .pw-file__box.is-drag { border-color: var(--pink); background: #fff7fd; }
.pw-file__box input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; z-index: 2; }
.pw-file__box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pw-file__box > span { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; color: var(--ink-2); font-size: .9rem; padding: 12px; }
.pw-file__box img:not([hidden]) + input + span { background: rgba(43, 18, 57, .78); color: #fff; border-radius: var(--r-pill); padding: 6px 14px; margin-top: auto; align-self: end; margin-bottom: 10px; }
.pw-file__box--round { width: 128px; height: 128px; border-radius: 50%; }
.pw-file__box--round img:not([hidden]) + input + span { font-size: .78rem; padding: 4px 10px; }
.pw-file__box--wide { height: 128px; border-radius: var(--r-field); }
.pw-file__box--drop { min-height: 320px; border-radius: var(--r-photo); }
.pw-file__box--drop .pw-icon { color: var(--pink); }
.pw-file__box--drop strong { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; color: var(--ink); }
.pw-file__box--drop.has-image { min-height: 440px; }
.pw-file__box--drop.has-image img { object-fit: contain; background: #fff; }

/* ==========================================================================
   Пусто / пагинация / 404
   ========================================================================== */
.pw-empty { text-align: center; padding: 56px 24px; border-radius: var(--r-panel); background: var(--milk); color: var(--ink-2); display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pw-empty .pw-icon { color: var(--pink); }
.pw-empty p { margin: 0; font-size: 1.05rem; }

.pw-pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pw-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: var(--r-pill); font-weight: 600; color: var(--ink-2); }
.pw-pagination a.page-numbers:hover { background: var(--milk); color: var(--ink); }
.pw-pagination .current { background: var(--ink); color: #fff; }
.comments-pagination { margin: 16px 0; }
.comments-pagination .nav-links { display: flex; gap: 6px; }

.error-404 { text-align: center; padding: 96px 24px 120px; }
.error-404__num { font-family: var(--font-display); font-size: clamp(6rem, 18vw, 11rem); line-height: 1; color: var(--ink); margin-bottom: 18px; text-shadow: 0 0 2px #fff, 0 0 18px rgba(255, 79, 216, .55), 0 0 42px rgba(155, 44, 255, .45); }
.error-404 p { color: var(--ink-2); }

/* ==========================================================================
   Окно 18+
   ========================================================================== */
.pw-agegate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(255, 255, 255, .78); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); }
.pw-agegate__box { width: 100%; max-width: 420px; text-align: center; }
.hex-frame--gate { width: 150px; margin: 0 auto 28px; }
.pw-agegate__box h2 { font-size: 2rem; }
.pw-agegate__box p { color: var(--ink-2); font-size: 1.05rem; }
.pw-agegate__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }

/* ==========================================================================
   WordPress
   ========================================================================== */
.widget { margin-bottom: 20px; }
.widget-title { font-size: 1rem; }
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide { margin-left: -80px; margin-right: -80px; }
.wp-caption-text, figcaption { color: var(--mute); font-size: .9rem; text-align: center; margin-top: 8px; }
.wp-block-button__link { border-radius: var(--r-pill); background: var(--neon); }


/* ==========================================================================
   Оболочка приложения
   Слева — меню, в центре — лента (600px), справа — рекомендации.
   ========================================================================== */
:root { --nav-w: 260px; --feed-w: 620px; --rail-w: 340px; --top-h: 60px; --tab-h: 64px; }

.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, var(--feed-w)) var(--rail-w); justify-content: center; min-height: 100vh; }
.layout-wide .app { grid-template-columns: var(--nav-w) minmax(0, calc(var(--feed-w) + var(--rail-w))); }
.app-body { min-width: 0; border-left: 1.5px solid var(--line); border-right: 1.5px solid var(--line); }
.layout-wide .app-body { border-right: 0; }
.app-main { min-height: 100vh; padding-bottom: 80px; }
.app-main .container { max-width: none; padding-left: 28px; padding-right: 28px; }

/* Левое меню */
.app-nav { position: relative; }
.app-nav__inner { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 20px 20px 20px 12px; overflow-y: auto; }
.admin-bar .app-nav__inner { top: 32px; height: calc(100vh - 32px); }
.site-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.site-logo:hover { color: var(--ink); }
.site-logo img, .site-logo .pw-logo { width: 44px; height: auto; flex-shrink: 0; }
.site-logo__name { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: -.01em; }
.app-nav__logo { padding: 4px 12px 18px; }
.app-nav__menu { display: flex; flex-direction: column; gap: 2px; }
.app-nav__menu > a { display: flex; align-items: center; gap: 16px; padding: 11px 14px; border-radius: var(--r-pill); color: var(--ink); font-size: 1.12rem; font-weight: 500; transition: background-color .15s; }
.app-nav__menu > a:hover { background: var(--milk); color: var(--ink); }
.app-nav__menu > a.is-active { font-weight: 700; }
.app-nav__menu > a.is-active .app-nav__icon { color: var(--violet-ink); filter: drop-shadow(0 0 6px rgba(255, 79, 216, .55)); }
.app-nav__menu > a.is-active .pw-icon { stroke-width: 2.3; }
.app-nav__icon { position: relative; display: inline-grid; }
.badge { position: absolute; top: -6px; right: -9px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: var(--r-pill); background: var(--pink); color: #fff; font: 700 .7rem/19px var(--font); text-align: center; box-shadow: 0 0 0 2px #fff, 0 0 10px rgba(255, 79, 216, .7); }
.app-nav__extra { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 12px 14px 4px; }
.app-nav__extra a { color: var(--mute); font-size: .92rem; }
.app-nav__extra a:hover { color: var(--ink); }
.app-nav__compose { margin: 18px 0 0; padding: 15px 20px; font-size: 1.05rem; }
.app-nav__guest { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.app-nav__me { margin-top: auto; }
.app-nav__me .pw-usermenu__toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: var(--r-pill); text-align: left; font: inherit; color: var(--ink); }
.app-nav__me .pw-usermenu__toggle:hover { background: var(--milk); }
.app-nav__me-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.app-nav__me-name strong, .app-nav__me-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-nav__me-name small { color: var(--mute); }

.pw-usermenu { position: relative; }
.pw-usermenu__toggle { background: none; border: 0; padding: 0; cursor: pointer; }
.pw-usermenu__panel {
	position: absolute; left: 0; bottom: calc(100% + 8px); width: 250px; z-index: 50;
	background: #fff; border: 1.5px solid var(--line); border-radius: 20px; padding: 8px;
	box-shadow: 0 24px 48px -20px rgba(43, 18, 57, .3);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s var(--ease);
}
.pw-usermenu.is-open .pw-usermenu__panel { opacity: 1; visibility: visible; transform: none; }
.pw-usermenu__panel a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.pw-usermenu__panel a:hover { background: var(--milk); color: var(--ink); }
.pw-usermenu__panel a.is-danger:hover { color: var(--danger); }

/* Верхняя панель — только на телефоне */
.app-top { display: none; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink); background: none; border: 0; cursor: pointer; transition: background-color .15s, color .15s; }
.icon-btn:hover { background: var(--milk); color: var(--violet-ink); }
.icon-btn .badge { top: 2px; right: 0; }

/* Правая колонка */
.app-rail__inner { position: sticky; top: 0; display: flex; flex-direction: column; gap: 18px; padding: 14px 0 24px 28px; max-height: 100vh; overflow-y: auto; scrollbar-width: none; }
.admin-bar .app-rail__inner { top: 32px; }
.pw-search { position: relative; display: flex; align-items: center; margin: 0; flex: 1; min-width: 200px; }
.pw-search > .pw-icon { position: absolute; left: 18px; color: var(--mute); pointer-events: none; }
.pw-search input { padding-left: 48px; border-radius: var(--r-pill); }
.pw-search--form { gap: 8px; }
.rail-box { border: 1.5px solid var(--line); border-radius: var(--r-panel); padding: 18px 0 8px; }
.rail-box__title { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 0 20px 10px; }
.rail-box__more { display: block; padding: 12px 20px; color: var(--violet-ink); font-weight: 500; font-size: .95rem; }
.rail-box__more:hover { background: var(--milk); }
.person-row { display: flex; align-items: center; gap: 12px; padding: 10px 20px; }
.person-row__who { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; color: var(--ink); }
.person-row__who:hover { color: var(--ink); }
.person-row__who span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.person-row__who strong, .person-row__who small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-row__who strong { font-weight: 600; }
.person-row__who small { color: var(--mute); }
.person-row--lg { padding: 14px 24px; border-bottom: 1.5px solid var(--line); }
.rail-topic { display: flex; flex-direction: column; padding: 10px 20px; color: var(--ink); line-height: 1.35; }
.rail-topic:hover { background: var(--milk); color: var(--ink); }
.rail-topic strong { font-weight: 600; margin: 2px 0; }
.rail-topic small { color: var(--mute); font-size: .85rem; }
.rail-footer { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 0 8px; font-size: .85rem; color: var(--mute); }
.rail-footer a { color: var(--mute); }
.rail-footer a:hover { color: var(--ink); text-decoration: underline; }

/* Промо-блоки */
.ad { position: relative; border-radius: var(--r-panel); background: var(--milk); padding: 18px; overflow: hidden; }
.ad--labeled { padding-top: 30px; }
.ad__label { position: absolute; top: 9px; left: 18px; font-size: .75rem; color: var(--mute); }
.ad__item img { border-radius: 14px; width: 100%; }
.ad__item + .ad__item { margin-top: 12px; }
.ad__title { font-size: 1rem; margin-bottom: 8px; }
.ad--feed { margin: 0; border-radius: 0; border-bottom: 1.5px solid var(--line); padding: 20px 24px; }
.ad--feed.ad--labeled { padding-top: 34px; }
.ad--feed[data-slot] .ad__item { display: none; }
.ad--feed[data-slot] .ad__item.is-current { display: block; }

/* ==========================================================================
   Лента
   ========================================================================== */
.feed-head { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--line); }
.admin-bar .feed-head { top: 32px; }
.feed-head h1 { margin: 0; font-size: 1.45rem; }
.feed-head--title { padding: 18px 24px; }
.feed-head--back { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.feed-head--back h1 { font-size: 1.25rem; }
.feed-tabs { display: flex; }
.feed-tabs > a, .feed-tabs > span { position: relative; flex: 1; display: flex; justify-content: center; align-items: center; gap: 6px; padding: 18px 8px 16px; color: var(--mute); font-weight: 500; transition: background-color .15s; }
.feed-tabs > a:hover { background: var(--milk); color: var(--ink); }
.feed-tabs > .is-active { color: var(--ink); font-weight: 700; }
.feed-tabs > .is-active::after { content: ""; position: absolute; bottom: -1.5px; left: 50%; transform: translateX(-50%); width: 56px; height: 4px; border-radius: 4px; background: var(--neon); box-shadow: 0 0 10px rgba(255, 79, 216, .7); }
.feed-tabs small { color: var(--mute); font-weight: 500; font-size: .85rem; }

/* Композер */
.composer { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 18px 24px 12px; border-bottom: 1.5px solid var(--line); }
.composer textarea { padding: 10px 0; border: 0; background: none; font-size: 1.25rem; resize: none; min-height: 52px; box-shadow: none; }
.composer textarea:focus { background: none; box-shadow: none; }
.composer__previews { display: grid; gap: 6px; margin: 8px 0; border-radius: 20px; overflow: hidden; }
.composer__previews div { background-size: cover; background-position: center; aspect-ratio: 4 / 3; }
.composer__previews--1 div { aspect-ratio: 16 / 10; }
.composer__previews--2, .composer__previews--4 { grid-template-columns: 1fr 1fr; }
.composer__previews--3 { grid-template-columns: 1fr 1fr; }
.composer__previews--3 div:first-child { grid-row: span 2; aspect-ratio: auto; }
.composer__bar { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1.5px solid var(--line); }
.composer__attach { color: var(--violet-ink); }
.composer__attach input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.composer__count { margin-left: auto; color: var(--mute); font-size: .9rem; }
.composer__bar .btn { margin-left: auto; }
.composer__count:not(:empty) + .btn { margin-left: 12px; }

/* Пост */
.post { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 14px; padding: 16px 24px 10px; border-bottom: 1.5px solid var(--line); transition: background-color .15s; }
.post:hover { background: #fdfbff; }
.post--single:hover { background: none; }
.post__avatar .avatar { width: 48px; height: 48px; }
.post__main { min-width: 0; }
.post__head { display: flex; align-items: baseline; gap: 6px; min-width: 0; line-height: 1.35; }
.post__name { color: var(--ink); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post__name:hover { color: var(--ink); text-decoration: underline; }
.post__handle, .post__time { color: var(--mute); white-space: nowrap; font-size: .95rem; }
.post__handle { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.post__time::before { content: "·"; margin-right: 6px; }
.post__time:hover { color: var(--ink); text-decoration: underline; }
.post__menu { position: relative; margin-left: auto; align-self: center; }
.post__menu summary { list-style: none; width: 34px; height: 34px; color: var(--mute); margin: -6px -8px -6px 0; }
.post__menu summary::-webkit-details-marker { display: none; }
.post__menu form { position: absolute; right: 0; top: 100%; z-index: 10; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 20px 40px -20px rgba(43, 18, 57, .3); }
.post__menu button { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; background: none; border-radius: 10px; font: 600 .95rem var(--font); white-space: nowrap; cursor: pointer; }
.post__menu button.is-danger { color: var(--danger); }
.post__menu button:hover { background: #fff2f4; }
.post__text { margin-top: 2px; font-size: 1.04rem; line-height: 1.5; overflow-wrap: anywhere; }
.post__text p { margin: 0 0 .5em; }
.post__text p:last-child { margin: 0; }
.post--single .post__text { font-size: 1.22rem; }
.post__text a { color: var(--violet-ink); }
.post__text a:hover { text-decoration: underline; }
.mention { font-weight: 600; }
.post__media { display: grid; gap: 3px; margin-top: 12px; border-radius: 22px; overflow: hidden; border: 1.5px solid var(--line); }
.post__media a { display: block; background: var(--haze); overflow: hidden; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media--1 img { max-height: 560px; height: auto; }
.post__media--2 { grid-template-columns: 1fr 1fr; aspect-ratio: 16 / 9; }
.post__media--3 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.post__media--3 a:first-child { grid-row: span 2; }
.post__media--4 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 16 / 9; }
.post__actions { display: flex; align-items: center; gap: 28px; margin: 6px 0 0 -10px; }
.post__actions .pw-like { margin: 0; padding: 8px 10px; }
.post__action { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border: 0; background: none; color: var(--mute); font: 600 .9rem var(--font); border-radius: var(--r-pill); cursor: pointer; transition: color .15s, background-color .15s; }
.post__action:hover { color: var(--violet-ink); background: var(--haze); }
.post__action.is-done { color: var(--violet-ink); }
.post__action.is-done::after { content: "Скопировано"; font-size: .82rem; }

.feed-more { display: flex; justify-content: center; padding: 24px; }
.feed-more.is-loading .btn { opacity: .5; }
.feed-empty { padding: 56px 32px; text-align: center; color: var(--ink-2); }
.feed-empty h2 { font-size: 1.6rem; max-width: 18em; margin: 0 auto 10px; }
.feed-empty p { margin: 0 auto 20px; max-width: 30em; }
.feed-comments { padding: 0 24px 24px; }
.feed-comments .pw-comments { margin-top: 0; }
.feed-comments .pw-comment-form { margin-top: 12px; }

/* Страницы внутри приложения */
.page-body { padding: 24px; }
.page-wide .page-body { padding: 28px; }
.page-wide .feed-head { position: static; }

/* ==========================================================================
   Уведомления
   ========================================================================== */
.notes { display: flex; flex-direction: column; margin: -24px; }
.note { display: grid; grid-template-columns: 26px 40px minmax(0, 1fr); gap: 12px; align-items: start; padding: 16px 24px; border-bottom: 1.5px solid var(--line); color: var(--ink); transition: background-color .15s; }
.note:hover { background: var(--milk); color: var(--ink); }
.note.is-unread { background: linear-gradient(90deg, #fff1fb, #fff 70%); }
.note__icon { display: grid; place-items: center; width: 26px; height: 26px; margin-top: 8px; color: var(--violet-ink); }
.note__icon--heart { color: var(--pink); }
.note__icon--heart path { fill: currentColor; }
.note__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; line-height: 1.4; padding-top: 2px; }
.note__text strong { font-weight: 700; }
.note__snippet { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.note time { color: var(--mute); font-size: .86rem; }

/* ==========================================================================
   Профиль
   ========================================================================== */
.profile__cover { height: 210px; background-color: var(--ink); background-size: cover; background-position: center; }
.profile__cover:not(.has-image) {
	background-image:
		url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-6 -6 112 127' width='112' height='127'%3E%3Cpath d='M41.3 5 Q50 0 58.7 5 L91.3 23.8 Q100 28.8 100 38.8 L100 76.2 Q100 86.2 91.3 91.2 L58.7 110 Q50 115 41.3 110 L8.7 91.2 Q0 86.2 0 76.2 L0 38.8 Q0 28.8 8.7 23.8 Z' fill='none' stroke='%23ff4fd8' stroke-opacity='.28' stroke-width='2'/%3E%3C/svg%3E"),
		radial-gradient(420px 220px at 80% 10%, rgba(255, 79, 216, .5), transparent 70%),
		radial-gradient(380px 240px at 10% 100%, rgba(155, 44, 255, .55), transparent 70%);
	background-size: 84px 95px, auto, auto;
	background-repeat: repeat, no-repeat, no-repeat;
}
.profile__head { padding: 0 24px 18px; }
.profile__top { display: flex; justify-content: space-between; align-items: flex-end; margin-top: -70px; }
.profile__avatar { width: 140px; height: 140px; padding: 4px; box-shadow: inset 0 0 0 4px #fff; }
.profile__actions { padding-bottom: 6px; }
.profile__name { font-size: 1.75rem; margin: 14px 0 0; }
.profile__handle { color: var(--mute); margin: 2px 0 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.profile__handle .tag { margin: 0; }
.profile__tagline { font-weight: 600; margin-bottom: 6px; }
.profile__bio { margin-bottom: 10px; line-height: 1.5; }
.profile__bio p { margin: 0 0 .5em; }
.profile__facts { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--mute); font-size: .95rem; margin: 0 0 10px; }
.profile__facts span { display: inline-flex; align-items: center; gap: 6px; }
.profile__counts { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; }
.profile__counts a { color: var(--mute); }
.profile__counts a:hover { text-decoration: underline; color: var(--ink); }
.profile__counts strong { color: var(--ink); font-weight: 700; }
.feed-tabs--profile { border-bottom: 1.5px solid var(--line); }
.profile .feed-tabs { position: static; }
.profile__content .pw-masonry--narrow { column-count: 2; column-gap: 14px; padding: 20px 24px; }
.profile__content .pw-topic-list { border-bottom: 1.5px solid var(--line); }
.subtabs { display: flex; gap: 8px; padding: 16px 24px; border-bottom: 1.5px solid var(--line); }
.subtabs a { padding: 6px 16px; border-radius: var(--r-pill); border: 1.5px solid var(--line); color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.subtabs a.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Кнопка подписки */
.pw-follow { margin: 0; flex-shrink: 0; }
.pw-follow .btn { min-width: 0; }
.pw-follow .btn--primary { background: var(--ink); }
.pw-follow .btn--primary:hover { background: var(--neon); }
.pw-follow .is-following:hover { border-color: var(--danger); color: var(--danger); background: #fff2f4; }

/* ==========================================================================
   Люди
   ========================================================================== */
.pw-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 28px; flex-wrap: wrap; }
.members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 16px; }
.member-card { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 24px 14px 18px; border: 1.5px solid var(--line); border-radius: var(--r-panel); text-align: center; transition: border-color .2s; }
.member-card:hover { border-color: var(--line-2); }
.member-card__link { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); min-width: 0; max-width: 100%; }
.member-card__link:hover { color: var(--ink); }
.member-card .avatar { width: 96px; height: 96px; margin-bottom: 10px; }
.member-card__name { font-weight: 600; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.member-card__city, .member-card__stats { color: var(--mute); font-size: .88rem; }

/* ==========================================================================
   Внутренние разделы (галерея, форум, блог) в приложении
   ========================================================================== */
.page-hero { padding: 28px 28px 24px; }
.app-main .page-hero .container, .app-main .page-hero.container { padding: 0; }
.page-hero h1 { margin: 0; font-size: clamp(1.8rem, 3vw, 2.4rem); }
.page-hero p { color: var(--ink-2); margin: 10px 0 0; max-width: 40em; }
.page-hero__row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-hero__actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.page-hero__forum { display: flex; align-items: center; gap: 16px; }
.section--top0 { padding-top: 0; padding-bottom: 40px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.crumbs { font-size: .92rem; color: var(--mute); margin-bottom: 10px; }
.crumbs a { color: var(--ink-2); }
.crumbs a:hover { color: var(--violet-ink); }
.segmented { display: inline-flex; padding: 4px; border-radius: var(--r-pill); background: var(--milk); border: 1.5px solid var(--line); }
.segmented a { padding: 7px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: .92rem; color: var(--ink-2); }
.segmented a.is-active { background: var(--ink); color: #fff; }
.byline { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2); margin-top: 14px; }
.byline a { color: var(--ink); font-weight: 600; }
.byline--lg { margin: 0 0 16px; color: var(--ink); }
.byline--lg span { display: flex; flex-direction: column; line-height: 1.3; }
.byline--lg small { color: var(--mute); }
.layout-wide .pw-masonry { column-count: 3; }
.photo-view { grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; padding: 28px; }
.layout-feed .content-mid, .layout-feed .content-narrow { max-width: none; }
.single-pw_topic .page-hero, .single-post .page-hero { padding-bottom: 12px; }
.single-pw_topic .section--top0, .single-post .section--top0 { padding: 0 24px 32px; }

/* Настройки, загрузка */
.pw-account { display: flex; flex-direction: column; gap: 20px; }
.pw-account .panel { padding: 24px; }
.pw-account h3 { margin-bottom: 18px; font-size: 1.15rem; }
.pw-account__head { display: flex; align-items: center; gap: 16px; }
.pw-account__head div { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.pw-account__head span { color: var(--mute); font-size: .92rem; }
.pw-upload { padding: 24px; }

/* ==========================================================================
   Экран входа (в духе Instagram)
   ========================================================================== */
.bare { min-height: calc(100vh - 90px); display: grid; place-items: center; padding: 32px 20px; }
.landing { width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 380px; gap: 64px; align-items: center; }
.landing__art { display: flex; flex-direction: column; align-items: flex-start; }
.hex-frame--landing { width: min(300px, 70%); margin-bottom: 36px; }
.landing__title { font-family: var(--font-display); font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 16px; max-width: 9em; }
.landing__lead { font-size: 1.1rem; color: var(--ink-2); max-width: 28em; margin: 0; }
.auth-stack { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.auth-box { border: 1.5px solid var(--line); border-radius: var(--r-panel); padding: 36px 36px 28px; text-align: center; background: #fff; }
.auth-box__mark { display: block; font-family: var(--font-display); font-size: 2rem; color: var(--ink); margin-bottom: 26px; letter-spacing: -.01em; }
.auth-box__mark:hover { color: var(--ink); }
.auth-box__sub { color: var(--ink-2); margin: -12px 0 22px; font-size: .98rem; }
.auth-box form { text-align: left; }
.auth-box .btn--block { margin-top: 10px; }
.auth-box .check { font-size: .92rem; margin: 10px 0; align-items: flex-start; }
.auth-box .check input { margin-top: 1px; }
.auth-box__or { display: flex; align-items: center; gap: 14px; color: var(--mute); font-size: .9rem; margin: 20px 0 14px; }
.auth-box__or::before, .auth-box__or::after { content: ""; flex: 1; height: 1.5px; background: var(--line); }
.auth-box__link { font-size: .95rem; color: var(--ink-2); }
.auth-box--alt { padding: 22px; color: var(--ink-2); }
.auth-box--alt a { font-weight: 700; color: var(--violet-ink); }
.auth-stack__note { text-align: center; color: var(--mute); font-size: .85rem; margin: 6px 0 0; }

.float-field { position: relative; display: block; margin: 0 0 8px; }
.float-field input { padding: 22px 14px 8px; border-radius: 14px; font-size: .98rem; }
.float-field span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--mute); font-size: .98rem; pointer-events: none; transition: top .15s var(--ease), font-size .15s var(--ease), transform .15s var(--ease); }
.float-field input:focus + span, .float-field input:not(:placeholder-shown) + span { top: 9px; transform: none; font-size: .75rem; }

.bare-footer { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 20px; color: var(--mute); font-size: .88rem; }
.bare-footer nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.bare-footer a { color: var(--mute); }
.bare-footer a:hover { color: var(--ink); }

/* Полоса для гостей (открытый режим) */
.join-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; align-items: center; justify-content: center; gap: 40px; padding: 14px 24px; background: var(--neon); color: #fff; }
.join-bar strong { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; }
.join-bar span { opacity: .9; }
.join-bar__actions { display: flex; gap: 10px; }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--violet-ink); }
.btn--ghost-light { border-color: rgba(255, 255, 255, .7); color: #fff; }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .15); color: #fff; }

/* Нижняя панель — только на телефоне */
.tabbar { display: none; }

/* ==========================================================================
   Адаптив
   ========================================================================== */
@media (max-width: 1260px) {
	:root { --nav-w: 88px; --rail-w: 320px; }
	.app-nav__inner { align-items: center; padding: 16px 10px; }
	.app-nav__logo .site-logo__name, .app-nav__label, .app-nav__extra, .app-nav__compose span, .app-nav__me-name { display: none; }
	.app-nav__logo { padding: 4px 0 14px; }
	.app-nav__menu > a { padding: 12px; }
	.app-nav__compose { width: 54px; height: 54px; padding: 0; border-radius: 50%; }
	.app-nav__me .pw-usermenu__toggle { padding: 6px; width: auto; }
	.app-nav__guest { display: none; }
}
@media (max-width: 1060px) {
	.app { grid-template-columns: var(--nav-w) minmax(0, var(--feed-w)); }
	.layout-wide .app { grid-template-columns: var(--nav-w) minmax(0, 1fr); }
	.app-body { border-right: 0; }
	.app-rail { display: none; }
	.forum-row { grid-template-columns: 56px minmax(0, 1fr) 120px; }
	.forum-row__last { display: none; }
	.photo-view { grid-template-columns: 1fr; }
	.photo-view__side { position: static; }
}
@media (max-width: 760px) {
	body { font-size: 16px; }
	.app { display: block; }
	.app-nav { display: none; }
	.app-body { border: 0; }
	.app-top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; height: var(--top-h); padding: 0 12px 0 16px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1.5px solid var(--line); }
	.app-top .site-logo img { width: 34px; }
	.app-top .site-logo__name { font-size: 1.05rem; }
	.app-top__actions { display: flex; align-items: center; gap: 4px; }
	.feed-head { top: var(--top-h); }
	.app-main { padding-bottom: calc(var(--tab-h) + 24px + env(safe-area-inset-bottom)); }
	.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; display: flex; justify-content: space-around; align-items: center; height: calc(var(--tab-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1.5px solid var(--line); }
	.tabbar a { display: grid; place-items: center; width: 52px; height: 48px; color: var(--mute); }
	.tabbar a.is-active { color: var(--ink); }
	.tabbar a.is-active .pw-icon { stroke-width: 2.3; filter: drop-shadow(0 0 6px rgba(255, 79, 216, .6)); color: var(--violet-ink); }
	.tabbar__compose { width: 48px !important; height: 48px; border-radius: 16px; background: var(--neon); color: #fff !important; box-shadow: var(--neon-glow); }
	.join-bar { bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px; text-align: left; }
	.join-bar span { display: none; }
	.join-bar__actions .btn { flex: 1; }
	.app-main .container { padding-left: 16px; padding-right: 16px; }
	.composer, .post { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding-left: 16px; padding-right: 16px; }
	.composer .avatar, .post__avatar .avatar { width: 40px; height: 40px; }
	.post__media { border-radius: 16px; }
	.post__actions { gap: 12px; justify-content: space-between; max-width: 300px; }
	.post__handle { display: none; }
	.feed-comments, .page-body, .page-wide .page-body { padding-left: 16px; padding-right: 16px; }
	.notes { margin: -24px -16px; }
	.note { padding: 14px 16px; }
	.page-hero { padding: 22px 16px 18px; }
	.profile__cover { height: 140px; }
	.profile__head { padding: 0 16px 16px; }
	.profile__top { margin-top: -48px; }
	.profile__avatar { width: 96px; height: 96px; }
	.profile__content .pw-masonry--narrow { padding: 14px 16px; }
	.subtabs { padding: 12px 16px; overflow-x: auto; }
	.person-row--lg { padding: 12px 16px; }
	.layout-wide .pw-masonry, .pw-masonry { column-count: 2; column-gap: 10px; }
	.photo-card { margin-bottom: 16px; }
	.photo-card__img { border-radius: 18px; }
	.members-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.photo-view { padding: 16px; }
	.forum-row { grid-template-columns: 48px minmax(0, 1fr); padding: 16px; gap: 14px; }
	.forum-row .hex-badge--lg { --s: 48px; }
	.forum-row__stats { grid-column: 2; flex-direction: row; gap: 14px; }
	.topic-row { grid-template-columns: 36px minmax(0, 1fr); padding: 14px 16px; gap: 12px; }
	.topic-row .avatar { width: 36px; height: 36px; }
	.topic-row__count { grid-column: 2; justify-self: start; padding: 2px 10px; font-size: .85rem; }
	.pw-post { grid-template-columns: 1fr; gap: 12px; }
	.pw-post__author { flex-direction: row; text-align: left; }
	.pw-post__author a, .pw-post__author > span:first-child { flex-direction: row; }
	.pw-post__author .avatar { width: 40px; height: 40px; }
	.single-pw_topic .section--top0 { padding: 0 16px 24px; }
	.field-grid { grid-template-columns: 1fr; }
	.pw-comments--forum .children, .pw-comment .children { padding-left: 18px; }

	.bare { padding: 24px 16px; place-items: start center; }
	.landing { grid-template-columns: 1fr; gap: 28px; max-width: 400px; }
	.landing__art { align-items: center; text-align: center; }
	.hex-frame--landing { width: 130px; margin-bottom: 0; }
	.landing__title, .landing__lead { display: none; }
	.auth-box { padding: 28px 22px 22px; border: 0; }
	.auth-box--alt { border: 1.5px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
	.hex-frame__neon path { stroke-dashoffset: 0; }
}
@media (max-width: 782px) {
	.admin-bar .app-nav__inner, .admin-bar .app-rail__inner, .admin-bar .feed-head { top: 46px; }
}
.app-main .photo-view { padding: 28px; }
@media (max-width: 760px) { .app-main .photo-view { padding: 16px; } }
.pw-comment > .avatar { width: 40px; height: 40px; align-self: flex-start; }
.pw-comment__body .mention, .pw-post__body .mention { color: var(--violet-ink); }
@media (max-width: 760px) {
	.join-bar strong { font-size: 1rem; }
	.join-bar .btn { padding: 10px 16px; font-size: .95rem; }
}

/* ==========================================================================
   PAW ID, подписка, сжатие фото
   ========================================================================== */
/* Кнопки PawYume на страницах входа — под стиль темы */
.auth-box__paw { margin-bottom: 4px; }
.auth-box__paw .pawid-box { gap: 8px; }
.auth-box__paw .pawid-btn { border-radius: var(--r-pill); padding: 13px 18px; font-family: var(--font); font-size: 1rem; }
.auth-box__paw .pawid-btn.is-alt { border-width: 1.5px; border-color: var(--line-2); color: var(--ink); }
.auth-box__paw .pawid-btn.is-alt:hover { border-color: var(--pink); color: var(--ink); }
.auth-box__error { margin: -8px 0 16px; padding: 10px 14px; border-radius: 12px; background: #fff2f4; color: var(--danger); font-size: .92rem; }
.auth-box__hint { color: var(--mute); font-size: .92rem; margin: 14px 0 0; }

/* Значки подписки */
.pawid-badge { margin-left: 4px !important; }
.plus-badge { display: inline-grid; place-items: center; margin-left: 4px; color: var(--pink); vertical-align: -2px; filter: drop-shadow(0 0 4px rgba(255, 79, 216, .6)); }
.plus-tag { margin-left: 6px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--neon); color: #fff; font-size: .7rem; font-weight: 700; }
.avatar--ring { background: var(--ring, var(--neon)); }
.profile__cover:not(.has-image)[style*="--accent"] { background-color: var(--accent); }

/* Закреплённый пост и меню поста */
.post--pinned { background: linear-gradient(180deg, var(--milk), #fff); }
.post__pin { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; margin: 0 0 -6px 34px; color: var(--mute); font-size: .85rem; font-weight: 600; }
.post__menu-list { position: absolute; right: 0; top: 100%; z-index: 10; background: #fff; border: 1.5px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: 0 20px 40px -20px rgba(43, 18, 57, .3); }
.post__menu-list form { position: static; border: 0; padding: 0; box-shadow: none; background: none; }
.post__menu-list button:hover { background: var(--milk); }
.post__menu-list button.is-danger:hover { background: #fff2f4; }

/* Больше 4 фото в посте */
.post__media a[data-more] { position: relative; }
.post__media a[data-more]::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(43, 18, 57, .55); color: #fff; font-family: var(--font-display); font-size: 1.8rem; }
.post__media--many { grid-template-columns: 1fr 1fr; }
.post__media--many a { aspect-ratio: 1; }
.composer__previews--5, .composer__previews--6, .composer__previews--7, .composer__previews--8, .composer__previews--9, .composer__previews--10 { grid-template-columns: repeat(4, 1fr); }
.composer__previews--5 div, .composer__previews--6 div, .composer__previews--7 div, .composer__previews--8 div, .composer__previews--9 div, .composer__previews--10 div { aspect-ratio: 1; }

/* Сжатие фото */
.compress-note { display: flex; align-items: center; gap: 8px; margin: 6px 0 8px; font-size: .88rem; color: var(--ink-2); }
.compress-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex-shrink: 0; }
.compress-note.is-busy::before { background: var(--violet); animation: pulse 1s infinite; }
.compress-note.is-ok::before { background: var(--pink); box-shadow: 0 0 8px var(--pink); }
.compress-note.is-error { color: var(--danger); }
.compress-note.is-error::before { background: var(--danger); }
@keyframes pulse { 50% { opacity: .3; } }
.composer .compress-note { margin: 0 0 8px; }

/* Шкала занятого места */
.meter { margin: 0 0 4px; }
.meter__bar { height: 8px; border-radius: 8px; background: var(--haze); overflow: hidden; }
.meter__bar span { display: block; height: 100%; border-radius: 8px; background: var(--neon); }
.meter.is-full .meter__bar span { background: var(--danger); }
.meter__text { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.pw-upload .meter { margin: 0 0 18px; }

/* Страница подписки */
.sub__hero { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: center; margin-bottom: 28px; }
.hex-frame--sub { width: 150px; }
.hex-frame--sub .hex-frame__empty { color: var(--violet-ink); }
.sub__title { font-size: 1.7rem; margin-bottom: 8px; }
.sub__lead, .sub__status { color: var(--ink-2); margin: 0; }
.sub__status { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); }
.sub__table { width: 100%; border-collapse: collapse; margin-bottom: 28px; font-size: .98rem; }
.sub__table th, .sub__table td { padding: 13px 12px; border-bottom: 1.5px solid var(--line); text-align: left; }
.sub__table th { font-weight: 600; color: var(--mute); font-size: .9rem; }
.sub__table th:last-child, .sub__table td:last-child { background: var(--milk); }
.sub__table td:first-child { color: var(--ink); }
.sub__table td { color: var(--ink-2); }
.sub__cta { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.sub__price { margin-left: 8px; padding: 2px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .25); font-size: .9rem; }
.sub__note { color: var(--ink-2); font-size: .94rem; margin: 0; }
.sub__note a { font-weight: 600; }

/* Призыв подписки в правой колонке */
.rail-plus { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-panel); background: var(--ink); color: #fff; }
.rail-plus:hover { color: #fff; box-shadow: var(--neon-glow); }
.rail-plus .hex-badge { --s: 40px; background: var(--neon); color: #fff; }
.rail-plus span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.rail-plus small { opacity: .75; }
.paw-panel p { color: var(--ink-2); }

@media (max-width: 760px) {
	.sub__hero { grid-template-columns: 84px 1fr; gap: 18px; }
	.hex-frame--sub { width: 90px; }
	.sub__title { font-size: 1.3rem; }
	.sub__table th, .sub__table td { padding: 11px 8px; font-size: .92rem; }
}

/* ==========================================================================
   Логотип из оригинальных слоёв и его анимация
   Один раз: кольцо «зажигается» по кругу (маска-развёртка) и мигает как неон,
   силуэт прорисовывается сверху вниз, слова пухло плюхаются на место.
   is-alive — дальше мягкое свечение и «дыхание» силуэта.
   ========================================================================== */
@property --pwl-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --pwl-b { syntax: "<percentage>"; inherits: false; initial-value: 0%; }

.site-logo .pw-mark, .site-logo img { width: 44px; height: auto; flex-shrink: 0; }
.app-top .site-logo .pw-mark { width: 34px; }
.site-logo:hover .pw-mark { animation: pwl-wobble .6s var(--ease); }

.pw-logo { position: relative; display: block; width: 100%; aspect-ratio: 760 / 843; }
.pw-logo img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.pw-logo__body { transform-origin: 46% 72%; }
.pw-logo__plump { transform-origin: 46% 47.5%; }
.pw-logo__world { transform-origin: 46% 65.5%; }

.pw-logo.is-animated .pw-logo__ring {
	-webkit-mask-image: conic-gradient(from 285deg at 51% 50%, #000 var(--pwl-a), transparent calc(var(--pwl-a) + 2deg));
	mask-image: conic-gradient(from 285deg at 51% 50%, #000 var(--pwl-a), transparent calc(var(--pwl-a) + 2deg));
	animation: pwl-sweep 1.15s .1s cubic-bezier(.5, 0, .25, 1) both, pwl-flicker 1.9s .1s steps(1, end) both;
}
.pw-logo.is-animated .pw-logo__body {
	-webkit-mask-image: linear-gradient(to bottom, #000 var(--pwl-b), transparent calc(var(--pwl-b) + 12%));
	mask-image: linear-gradient(to bottom, #000 var(--pwl-b), transparent calc(var(--pwl-b) + 12%));
	animation: pwl-reveal .9s .65s ease-out both;
}
.pw-logo.is-animated .pw-logo__plump { animation: pwl-plop .75s 1.05s cubic-bezier(.3, 1.5, .5, 1) both; }
.pw-logo.is-animated .pw-logo__world { animation: pwl-plop .75s 1.2s cubic-bezier(.3, 1.5, .5, 1) both; }

.pw-logo.is-alive .pw-logo__ring { animation: pwl-sweep 1.15s .1s cubic-bezier(.5, 0, .25, 1) both, pwl-flicker 1.9s .1s steps(1, end) both, pwl-glow 3.2s 2.2s ease-in-out infinite alternate; }
.pw-logo.is-alive .pw-logo__body { animation: pwl-reveal .9s .65s ease-out both, pwl-breathe 4.4s 2.2s ease-in-out infinite; }

@keyframes pwl-sweep { from { --pwl-a: 0deg; } to { --pwl-a: 362deg; } }
@keyframes pwl-reveal { from { --pwl-b: -12%; } to { --pwl-b: 100%; } }
@keyframes pwl-flicker { 0% { opacity: .35; } 50% { opacity: 1; } 58% { opacity: .45; } 64% { opacity: 1; } 70% { opacity: .65; } 76%, 100% { opacity: 1; } }
@keyframes pwl-plop { 0% { transform: scale(.4, 0); opacity: 0; } 45% { transform: scale(1.12, .84); opacity: 1; } 70% { transform: scale(.96, 1.05); } 100% { transform: scale(1, 1); opacity: 1; } }
@keyframes pwl-glow { from { filter: brightness(1) saturate(1); } to { filter: brightness(1.08) saturate(1.15) drop-shadow(0 0 10px rgba(255, 79, 216, .45)); } }
@keyframes pwl-breathe { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.02, .99); } }
@keyframes pwl-wobble { 30% { transform: scale(1.1, .9); } 60% { transform: scale(.95, 1.05); } 100% { transform: scale(1, 1); } }

.landing__logo { width: min(340px, 78%); margin: 0 0 24px -12px; }
.pw-agegate__logo { width: 190px; margin: 0 auto 20px; }
.sub__logo { width: 130px; }
.sub__logo .pw-mark { width: 100%; height: auto; }
.post-card__placeholder .pw-mark { width: 30%; height: auto; opacity: .85; }

@media (max-width: 760px) {
	.landing__logo { width: 190px; margin: 0 auto; }
	.sub__logo { width: 80px; }
}
@media (prefers-reduced-motion: reduce) {
	.pw-logo img { -webkit-mask-image: none !important; mask-image: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   2.3.0: системные авторы, реклама в пустых местах
   ========================================================================== */
.pw-sys{display:inline-flex;align-items:center;margin-left:6px;padding:1px 7px;border-radius:999px;font-size:11px;font-weight:600;line-height:1.5;color:var(--muted,#8a8a99);background:color-mix(in srgb,currentColor 10%,transparent);vertical-align:middle;letter-spacing:.02em}
.ad--auto{min-height:0}
.ad--auto .pw-rs:empty{min-height:90px}

/* 2.3.1: надпись в логотипе видна всегда
   ≥1261px — знак и название рядом;
   761–1260px (узкое меню) — знак и название в две строки под ним;
   ≤760px (шапка телефона) — знак и название рядом. */
.site-logo__full, .site-logo__two { display: none; }
/* 2.3.2: в широком меню — компактно: знак и название рядом (логотип целиком был слишком крупным) */
.app-nav__logo .site-logo__mark { display: inline-flex; }
@media (max-width: 1260px) {
	.app-nav__logo { flex-direction: column; gap: 4px; }
	.app-nav__logo .site-logo__two { display: block; font-family: var(--font-display); font-size: .62rem; line-height: 1.05; text-align: center; letter-spacing: .02em; text-transform: uppercase; }
}
@media (max-width: 760px) {
	.app-top .site-logo__full, .app-top .site-logo__two { display: none; }
	.app-top .site-logo__mark { display: inline-flex; }
	.app-top .site-logo__name { display: inline; }
}
