/*
 * Персональная страница /bormotoon/ (page-bormotoon.php).
 *
 * Собственная айдентика, палитра снята с реф-листа ЮН: чернильно-чёрный и
 * бумажно-белый «мех», красный бабочки/отметин, янтарь глаз. Секции чередуют
 * тёмное и светлое — как окрас персонажа. Дисплей — Oswald (уже в теме),
 * текст — Open Sans, «хэштеги»-надзаголовки — моноширинный стек.
 *
 * Два голоса: пары .vp/.vm переключаются атрибутом html[data-voice="mongol"]
 * (тумблер в hero, состояние в localStorage, до-пейнт скрипт в шаблоне).
 */

.pb-personal {
	--bt-ink: #0e0e12;
	--bt-coal: #17171d;
	--bt-line-d: #2a2a33;
	--bt-paper: #f5f4f1;
	--bt-card: #fffefb;
	--bt-line-l: #e2e0da;
	--bt-red: #e32133;
	--bt-red-deep: #b3111f;
	--bt-amber: #f2a61b;
	--bt-mut-d: #9a9aa6;
	--bt-mut-l: #62626c;
	--bt-mono: ui-monospace, "SF Mono", "Cascadia Mono", "JetBrains Mono", Menlo, Consolas, monospace;
	font-size: 17px;
	line-height: 1.65;
	overflow-x: clip;
}

/* ── Голоса ──────────────────────────────────────────────────────────────── */
.pb-personal .vm { display: none; }
html[data-voice="mongol"] .pb-personal .vp { display: none; }
html[data-voice="mongol"] .pb-personal .vm { display: revert; }

/* ── Каркас ──────────────────────────────────────────────────────────────── */
.bt-band { margin-inline: calc(50% - 50vw); width: 100vw; padding-block: clamp(56px, 9vw, 104px); }
.bt-wrap { max-width: 1100px; margin-inline: auto; padding-inline: 22px; }
.bt-narrow { max-width: 780px; }

.bt-light { background: var(--bt-paper); color: var(--bt-ink); }
.bt-light + .bt-light { padding-top: 0; }
.bt-dark { background: var(--bt-ink); color: var(--bt-paper); }

/* ── Типографика ─────────────────────────────────────────────────────────── */
.bt-tags {
	font-family: var(--bt-mono);
	font-size: 13px;
	letter-spacing: 0.04em;
	color: var(--bt-red);
	margin: 0 0 10px;
}
.bt-dark .bt-tags { color: var(--bt-amber); }

.bt-h2 {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(30px, 5.4vw, 52px);
	line-height: 1.04;
	letter-spacing: 0.01em;
	text-transform: uppercase;
	margin: 0 0 18px;
	display: flex;
	align-items: baseline;
	gap: 14px;
	flex-wrap: wrap;
}
.bt-claws { width: 40px; height: 15px; flex: none; fill: var(--bt-red); align-self: center; }

.bt-sub { margin: -6px 0 28px; color: var(--bt-mut-l); max-width: 62ch; }
.bt-dark .bt-sub { color: var(--bt-mut-d); }

.bt-prose p { margin: 0 0 1.15em; max-width: 68ch; }
.bt-prose a { color: var(--bt-red-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.bt-prose a:hover { color: var(--bt-red); }
.bt-dark .bt-prose a { color: var(--bt-amber); }

.bt-story .bt-prose > p:first-child::first-letter {
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 3.1em;
	line-height: 0.83;
	float: left;
	padding: 4px 10px 0 0;
	color: var(--bt-red);
}

.bt-quote {
	margin: 2em 0;
	padding: 4px 0 4px 22px;
	border-left: 4px solid var(--bt-red);
}
.bt-quote p {
	font-family: "Oswald", sans-serif;
	font-weight: 500;
	font-size: clamp(20px, 3vw, 26px);
	line-height: 1.3;
	margin: 0 0 8px;
}
.bt-quote cite { font-style: normal; font-size: 14px; color: var(--bt-mut-l); }

/* ── Бабочка-разделитель ─────────────────────────────────────────────────── */
.bt-bow { fill: var(--bt-red); }
.bt-divider {
	display: flex;
	align-items: center;
	gap: 18px;
	max-width: 520px;
	margin: clamp(40px, 7vw, 72px) auto 0;
	padding-inline: 22px;
}
.bt-divider__line { flex: 1; height: 1px; background: currentColor; opacity: 0.25; }
.bt-divider__bow { width: 44px; height: 22px; flex: none; }

/* ═══════════════ HERO ═══════════════ */
.bt-hero {
	background:
		radial-gradient(1000px 460px at 82% -8%, rgba(227, 33, 51, 0.16), transparent 62%),
		radial-gradient(700px 420px at -6% 108%, rgba(242, 166, 27, 0.1), transparent 60%),
		var(--bt-ink);
	color: var(--bt-paper);
	padding-block: clamp(48px, 7vw, 88px) clamp(36px, 5vw, 56px);
}
.bt-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
	gap: clamp(28px, 5vw, 64px);
	align-items: center;
}
.bt-name {
	font-family: "Oswald", "Arial Narrow", sans-serif;
	font-weight: 700;
	font-size: clamp(40px, 7.2vw, 76px);
	line-height: 0.98;
	text-transform: uppercase;
	letter-spacing: 0.01em;
	margin: 0 0 10px;
}
.bt-name .vm { color: var(--bt-red); }
.bt-aka { font-family: var(--bt-mono); font-size: 14px; color: var(--bt-mut-d); margin: 0 0 20px; }
.bt-aka strong { color: var(--bt-amber); font-weight: 600; }
.bt-lede { font-size: clamp(16px, 1.9vw, 19px); max-width: 56ch; margin: 0 0 22px; color: #d9d8d4; }

.bt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 30px; padding: 0; }
.bt-chips li {
	font-family: var(--bt-mono);
	font-size: 12.5px;
	padding: 5px 12px;
	border: 1px solid var(--bt-line-d);
	border-radius: 999px;
	color: var(--bt-mut-d);
}

/* Тумблер голоса — фирменный элемент страницы. Бегунок — красная бабочка. */
.bt-voice { display: grid; gap: 6px; justify-items: start; }
.bt-voice__label { font-family: var(--bt-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--bt-mut-d); }
.bt-voice__switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	background: var(--bt-coal);
	border: 1px solid var(--bt-line-d);
	border-radius: 999px;
	padding: 9px 16px;
	cursor: pointer;
	color: var(--bt-paper);
	font: inherit;
	transition: border-color 0.2s;
}
.bt-voice__switch:hover { border-color: var(--bt-red); }
.bt-voice__switch:focus-visible { outline: 2px solid var(--bt-amber); outline-offset: 3px; }
.bt-voice__opt { font-family: "Oswald", sans-serif; font-size: 15px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--bt-mut-d); transition: color 0.2s; }
.bt-voice__switch[aria-checked="false"] .bt-voice__opt--pg,
.bt-voice__switch[aria-checked="true"] .bt-voice__opt--m { color: var(--bt-paper); }
.bt-voice__switch[aria-checked="true"] .bt-voice__opt--m { color: var(--bt-red); }
.bt-voice__track {
	position: relative;
	width: 64px;
	height: 30px;
	border-radius: 999px;
	background: var(--bt-ink);
	border: 1px solid var(--bt-line-d);
	flex: none;
}
.bt-voice__thumb {
	position: absolute;
	top: 50%;
	left: 4px;
	translate: 0 -50%;
	display: grid;
	place-items: center;
	width: 30px;
	height: 22px;
	transition: left 0.25s cubic-bezier(0.6, 0, 0.3, 1.4);
}
.bt-voice__thumb .bt-bow { width: 28px; height: 14px; fill: var(--bt-mut-d); transition: fill 0.25s; }
.bt-voice__switch[aria-checked="true"] .bt-voice__thumb { left: calc(100% - 34px); }
.bt-voice__switch[aria-checked="true"] .bt-voice__thumb .bt-bow { fill: var(--bt-red); }
.bt-voice__hint { font-size: 12.5px; color: var(--bt-mut-d); }

/* Фото в hero: «полароид» с аватаром-печатью и стикером */
.bt-hero__photo { margin: 0; justify-self: center; max-width: 420px; width: 100%; }
.bt-hero__frame { position: relative; display: block; }
.bt-hero__img {
	display: block;
	width: 100%;
	height: auto;
	border: 10px solid #fff;
	border-radius: 4px;
	rotate: 1.6deg;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.bt-hero__avatar {
	position: absolute;
	left: -26px;
	bottom: 24px;
	width: clamp(84px, 9vw, 116px);
	height: auto;
	border-radius: 50%;
	border: 4px solid var(--bt-red);
	rotate: -5deg;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
}
.bt-hero__sticker {
	position: absolute;
	right: -30px;
	bottom: 44px;
	width: clamp(96px, 10vw, 132px);
	height: auto;
	rotate: 8deg;
	filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.45));
	pointer-events: none;
}
.bt-hero__cap {
	margin-top: 26px;
	text-align: center;
	font-family: var(--bt-mono);
	font-size: 12.5px;
	color: var(--bt-mut-d);
}
.bt-hero .bt-divider { color: var(--bt-paper); }

/* ═══════════════ Таймлайн ═══════════════ */
.bt-tl { list-style: none; margin: 8px 0 0; padding: 0; position: relative; }
.bt-tl::before {
	content: "";
	position: absolute;
	left: 7px;
	top: 6px;
	bottom: 6px;
	width: 2px;
	background: linear-gradient(var(--bt-line-l), var(--bt-line-l) 82%, var(--bt-red));
}
.bt-tl__item { position: relative; padding: 0 0 34px 40px; }
.bt-tl__item::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--bt-paper);
	border: 3px solid var(--bt-ink);
}
.bt-tl__item--red::before { border-color: var(--bt-red); background: var(--bt-red); }
.bt-tl__item--now::before { border-color: var(--bt-red); background: var(--bt-paper); }
.bt-tl__year {
	font-family: "Oswald", sans-serif;
	font-weight: 700;
	font-size: 22px;
	letter-spacing: 0.03em;
	color: var(--bt-red-deep);
	display: block;
	line-height: 1.1;
}
.bt-tl__item h3 { font-family: "Oswald", sans-serif; font-weight: 500; font-size: 24px; text-transform: uppercase; margin: 2px 0 8px; }
.bt-tl__item p { margin: 0; max-width: 62ch; }
.bt-tl__photo { margin: 16px 0 0; max-width: 320px; }
.bt-tl__photo img {
	display: block;
	width: 100%;
	height: auto;
	border: 8px solid #fff;
	border-radius: 3px;
	rotate: -1.4deg;
	box-shadow: 0 12px 30px rgba(14, 14, 18, 0.22);
}
.bt-tl__photo figcaption { font-family: var(--bt-mono); font-size: 12.5px; color: var(--bt-mut-l); margin-top: 12px; }

/* ═══════════════ Проекты ═══════════════ */
.bt-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 26px; }
.bt-card {
	background: var(--bt-card);
	border: 1px solid var(--bt-line-l);
	border-top: 4px solid var(--bt-red);
	border-radius: 14px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	transition: translate 0.2s, box-shadow 0.2s;
}
.bt-card:hover { translate: 0 -4px; box-shadow: 0 16px 34px rgba(14, 14, 18, 0.12); }
.bt-card h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 22px; margin: 0; text-transform: uppercase; }
.bt-card h3 a { color: inherit; text-decoration: none; }
.bt-card h3 a:hover { color: var(--bt-red); }
.bt-card p { margin: 0; font-size: 15.5px; flex: 1; }
.bt-card__tag { font-family: var(--bt-mono); font-size: 12px; color: var(--bt-mut-l); }

/* ═══════════════ Скиллы ═══════════════ */
.bt-skillgroups { display: grid; gap: 20px; margin: 26px 0 0; }
.bt-skillgroup { display: grid; grid-template-columns: 150px 1fr; gap: 14px; align-items: start; }
.bt-skillgroup dt {
	font-family: "Oswald", sans-serif;
	font-weight: 600;
	text-transform: uppercase;
	font-size: 16px;
	letter-spacing: 0.04em;
	color: var(--bt-red-deep);
	padding-top: 4px;
}
.bt-skillgroup dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.bt-skillgroup dd span {
	font-family: var(--bt-mono);
	font-size: 13px;
	background: var(--bt-card);
	border: 1px solid var(--bt-line-l);
	border-radius: 8px;
	padding: 5px 10px;
}

/* ═══════════════ Фурри-галерея ═══════════════ */
.bt-furry {
	background:
		radial-gradient(900px 500px at 110% 0%, rgba(227, 33, 51, 0.14), transparent 60%),
		var(--bt-ink);
}
.bt-furry__intro p { max-width: 66ch; }
.bt-gallery {
	list-style: none;
	margin: 30px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	grid-auto-rows: 150px;
	grid-auto-flow: dense;
	gap: 12px;
}
.bt-gallery__item--yn-ref { grid-row: span 2; }
.bt-gallery__item--yn-head { grid-column: span 2; grid-row: span 2; }
.bt-gallery__btn {
	display: block;
	width: 100%;
	height: 100%;
	padding: 0;
	border: 1px solid var(--bt-line-d);
	border-radius: 12px;
	overflow: hidden;
	background: var(--bt-coal);
	cursor: zoom-in;
	transition: border-color 0.2s, translate 0.2s;
}
.bt-gallery__btn:hover { border-color: var(--bt-amber); translate: 0 -3px; }
.bt-gallery__btn:focus-visible { outline: 2px solid var(--bt-amber); outline-offset: 3px; }
.bt-gallery__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: scale 0.35s; }
.bt-gallery__btn:hover img { scale: 1.05; }
.bt-furry__credit { margin: 22px 0 0; font-family: var(--bt-mono); font-size: 13.5px; color: var(--bt-mut-d); }
.bt-furry__credit a { color: var(--bt-amber); }

/* Лайтбокс */
.bt-lightbox {
	border: 0;
	padding: 0;
	background: transparent;
	max-width: min(94vw, 1100px);
	max-height: 92vh;
	overflow: visible;
}
.bt-lightbox::backdrop { background: rgba(8, 8, 11, 0.92); }
.bt-lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.bt-lightbox img {
	max-width: min(90vw, 1000px);
	max-height: 80vh;
	width: auto;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.bt-lightbox figcaption { color: #d9d8d4; font-size: 14px; font-family: var(--bt-mono); text-align: center; }
.bt-lightbox__close,
.bt-lightbox__nav {
	position: fixed;
	z-index: 2;
	background: rgba(23, 23, 29, 0.85);
	color: #f5f4f1;
	border: 1px solid var(--bt-line-d);
	border-radius: 50%;
	width: 46px;
	height: 46px;
	font-size: 19px;
	line-height: 1;
	cursor: pointer;
	display: grid;
	place-items: center;
	transition: border-color 0.15s, color 0.15s;
}
.bt-lightbox__close:hover, .bt-lightbox__nav:hover { border-color: var(--bt-red); color: var(--bt-red); }
.bt-lightbox__close:focus-visible, .bt-lightbox__nav:focus-visible { outline: 2px solid var(--bt-amber); outline-offset: 2px; }
.bt-lightbox__close { top: 18px; right: 18px; }
.bt-lightbox__nav--prev { left: 14px; top: 50%; translate: 0 -50%; }
.bt-lightbox__nav--next { right: 14px; top: 50%; translate: 0 -50%; }

/* ═══════════════ Миры ═══════════════ */
.bt-tiles { list-style: none; margin: 26px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.bt-tile {
	background: var(--bt-card);
	border: 1px solid var(--bt-line-l);
	border-radius: 14px;
	padding: 18px 20px;
	transition: translate 0.2s, box-shadow 0.2s;
}
.bt-tile:hover { translate: 0 -3px; box-shadow: 0 12px 26px rgba(14, 14, 18, 0.1); }
.bt-tile__emoji { font-size: 26px; display: block; margin-bottom: 6px; }
.bt-tile h3 { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 19px; text-transform: uppercase; margin: 0 0 6px; }
.bt-tile p { margin: 0; font-size: 14.5px; color: #3c3c44; }

/* ═══════════════ Соцсети ═══════════════ */
.bt-socials {
	background:
		radial-gradient(800px 480px at -8% 8%, rgba(242, 166, 27, 0.08), transparent 55%),
		var(--bt-ink);
}
.bt-soc { list-style: none; margin: 30px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 14px; }
.bt-soc__card {
	--brand: var(--bt-red);
	display: grid;
	grid-template-columns: 46px 1fr auto;
	grid-template-areas: "icon head go" "desc desc desc";
	align-items: center;
	gap: 8px 14px;
	background: var(--bt-coal);
	border: 1px solid var(--bt-line-d);
	border-radius: 14px;
	padding: 18px;
	color: var(--bt-paper);
	text-decoration: none;
	height: 100%;
	transition: border-color 0.2s, translate 0.2s, box-shadow 0.2s;
}
.bt-soc__card:hover {
	border-color: var(--brand);
	translate: 0 -4px;
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}
.bt-soc__icon {
	grid-area: icon;
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: color-mix(in srgb, var(--brand) 16%, transparent);
	color: var(--brand);
	font-size: 25px;
}
.bt-soc__head { grid-area: head; display: grid; line-height: 1.3; }
.bt-soc__net { font-family: var(--bt-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--bt-mut-d); }
.bt-soc__name { font-family: "Oswald", sans-serif; font-weight: 600; font-size: 19px; }
.bt-soc__handle { font-family: var(--bt-mono); font-size: 12.5px; color: color-mix(in srgb, var(--brand) 80%, #fff); }
.bt-soc__desc { grid-area: desc; font-size: 14px; color: #c9c8c4; }
.bt-soc__go { grid-area: go; font-size: 20px; color: var(--bt-mut-d); transition: color 0.2s, translate 0.2s; }
.bt-soc__card:hover .bt-soc__go { color: var(--brand); translate: 4px 0; }

/* Запретограм: фирменный градиент вместо плоского брендового */
.bt-soc__card[href*="z-gram"] .bt-soc__icon {
	background: linear-gradient(45deg, rgba(245, 133, 41, 0.28), rgba(221, 42, 123, 0.28), rgba(129, 52, 175, 0.28));
	color: #f06;
}

/* ── Аутро ──────────────────────────────────────────────────────────────── */
.bt-outro { margin-top: clamp(40px, 6vw, 64px); text-align: center; }
.bt-outro .bt-divider { margin-top: 0; margin-bottom: 34px; color: var(--bt-paper); }
.bt-outro__line { color: var(--bt-mut-d); font-size: 14.5px; max-width: 56ch; margin: 0 auto 12px; }
.bt-outro__line a { color: var(--bt-amber); }
.bt-outro__sign { font-family: "Oswald", sans-serif; font-size: 19px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0; }

/* ── Появление секций ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
	.pb-personal [data-bt-reveal] > .bt-wrap { opacity: 0; translate: 0 26px; transition: opacity 0.6s ease, translate 0.6s ease; }
	.pb-personal [data-bt-reveal].is-in > .bt-wrap { opacity: 1; translate: 0 0; }
}

/* ── Адаптив ─────────────────────────────────────────────────────────────── */
@media (max-width: 860px) {
	.bt-hero__grid { grid-template-columns: 1fr; }
	.bt-hero__photo { max-width: 360px; margin-top: 8px; }
	.bt-skillgroup { grid-template-columns: 1fr; gap: 8px; }
	.bt-gallery { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); grid-auto-rows: 120px; }
}
@media (max-width: 560px) {
	.pb-personal { font-size: 16px; }
	.bt-hero__avatar { left: -8px; bottom: 20px; }
	.bt-hero__sticker { right: -4px; bottom: 14px; width: 92px; }
	.bt-voice__switch { flex-wrap: wrap; justify-content: center; }
	.bt-tl__item { padding-left: 32px; }
	.bt-lightbox__nav { width: 40px; height: 40px; }
	.bt-lightbox__nav--prev { left: 6px; }
	.bt-lightbox__nav--next { right: 6px; }
}
