/* «Банк в Москве» — тема «Столица» (taste skill: sentence-as-layout, «Olive on bone»).
   Одна краска — олива на кости, тонкая антиква Spectral для больших слов, Wix Madefor Text для всего практического,
   фотографии московских улиц внутри фраз. Без градиентов, теней, линий-ornament, моноширинного шрифта и плашек. Префикс bm-. */

@font-face { font-family: "Spectral"; font-weight: 200; font-display: swap; src: url(fonts/spectral-cyrillic-200-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 200; font-display: swap; src: url(fonts/spectral-latin-200-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+00D7; }
@font-face { font-family: "Spectral"; font-weight: 300; font-display: swap; src: url(fonts/spectral-cyrillic-300-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Spectral"; font-weight: 300; font-display: swap; src: url(fonts/spectral-latin-300-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+00D7; }
@font-face { font-family: "Spectral"; font-style: italic; font-weight: 300; font-display: swap; src: url(fonts/spectral-cyrillic-300-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 400; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-400-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 400; font-display: swap; src: url(fonts/wix-madefor-text-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+00D7; }
@font-face { font-family: "Wix Madefor Text"; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-400-italic.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 500; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-500-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 500; font-display: swap; src: url(fonts/wix-madefor-text-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+00D7; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 600; font-display: swap; src: url(fonts/wix-madefor-text-cyrillic-600-normal.woff2) format("woff2"); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Wix Madefor Text"; font-weight: 600; font-display: swap; src: url(fonts/wix-madefor-text-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2212, U+00D7; }

:root {
	--bg: #ecebe7;
	--surface: #e1dfd9;
	--surface-2: #d6d3cb;
	--ink: #38450f;
	--muted: #5d683a;
	--accent: #38450f;
	--accent-ink: #ecebe7;
	--field: #38450f;
	--field-ink: #ecebe7;
	--hover: #4d5d18;
	--f-display: "Spectral", Georgia, "Times New Roman", serif;
	--f-text: "Wix Madefor Text", "Segoe UI", Arial, sans-serif;
	/* пять ступеней */
	--step-small: 1rem;
	--step-body: 1.1875rem;
	--step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
	--step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
	--step-display: clamp(4.25rem, 1rem + 10.5vw, 10rem);
	--gutter: clamp(16px, 3vw, 32px);
	--ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--bg); font: 400 var(--step-body)/1.5 var(--f-text); font-variant-numeric: tabular-nums; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
::selection { background: var(--ink); color: var(--bg); }
h1, h2, h3, h4 { margin: 0; font-weight: 300; line-height: 1.05; }
p { margin: 0; }
b, strong { font-weight: 600; }
table { border-collapse: collapse; }
script, template { display: none !important; }
.bm-sr, .sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bm-skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--bg); padding: 8px 14px; }
.bm-skip:focus { top: 12px; }
.float_left { float: none; }

.bm-shell { min-height: 100vh; }
.bm-main { padding: 0 var(--gutter) clamp(80px, 10vw, 160px); }

/* ---------- верхняя строка: знак, ссылки, поиск, вход */
.bm-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding: 22px var(--gutter); }
.bm-wordmark { font: 300 1.5rem/1 var(--f-display); text-decoration: none; letter-spacing: -.01em; }
.bm-nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.bm-nav a { font-size: var(--step-small); font-weight: 500; text-decoration: none; }
.bm-nav a:hover { text-decoration: underline; }
.bm-search { margin-left: auto; }
.bm-search input { width: 300px; max-width: 100%; height: 44px; padding: 0 14px; font: 400 var(--step-small) var(--f-text); color: var(--ink); background: var(--surface); border: 0; border-radius: 0; }
.bm-search input::placeholder { color: var(--muted); }
.bm-search input:focus { outline: 2px solid var(--ink); outline-offset: 0; }
.bm-bar__act { display: flex; align-items: center; }
.bm-bar .bm-user { display: flex; align-items: center; gap: 12px; }
.bm-user__pm { font-size: var(--step-small); font-weight: 500; text-decoration: none; }
.bm-user__pm b { margin-left: 4px; }
.bm-user__menu { position: relative; }
.bm-user__menu summary { list-style: none; cursor: pointer; font-size: var(--step-small); font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.bm-user__menu summary::-webkit-details-marker { display: none; }
.bm-user__drop { position: absolute; right: 0; top: calc(100% + 10px); z-index: 30; min-width: 240px; margin: 0; padding: 8px; list-style: none; background: var(--surface); }
.bm-user__drop a { display: block; padding: 8px 10px; font-size: var(--step-small); text-decoration: none; }
.bm-user__drop a:hover { background: var(--surface-2); }

/* ---------- кнопки: квадратные, одна заливка */
.bm-btn, .button, input.button, input[type="submit"], input[type="button"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px;
	font: 500 var(--step-small) var(--f-text); color: var(--accent-ink); background: var(--accent); border: 0; border-radius: 0;
	text-decoration: none; cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease);
}
.bm-btn:hover, .button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: var(--hover); color: var(--accent-ink); text-decoration: none; }
.bm-btn:active, .button:active, input[type="submit"]:active { transform: translateY(1px); }
.bm-btn--inverse { color: var(--field); background: var(--field-ink); }
.bm-btn--inverse:hover { color: var(--field); background: #fff; }
.bm-link { font-size: var(--step-small); font-weight: 500; }

/* ---------- путь */
.bm-path { margin: 8px 0 32px; font-size: var(--step-small); color: var(--muted); }
.bm-path ol { display: flex; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.bm-path li:not(:last-child)::after { content: "/"; margin: 0 10px; }
.bm-path a { color: var(--muted); }
.bm-page--index .bm-path { display: none; }

/* ---------- первый экран: фраза с фотографией вместо слова */
.bm-hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: end; min-height: calc(100vh - 100px); padding: clamp(24px, 6vh, 72px) 0 clamp(40px, 8vh, 96px); }
.bm-hero__t { grid-column: 1 / -1; font: 200 var(--step-display)/0.95 var(--f-display); letter-spacing: -.035em; }
.bm-line { display: block; overflow: hidden; padding-bottom: .04em; }
.bm-line > span { display: block; }
.bm-hero__t .bm-line + .bm-line { text-align: right; }
.bm-slot { display: inline-block; vertical-align: -0.1em; width: 1.9em; height: .95em; margin: 0 .06em; overflow: hidden; border-radius: .06em; background: var(--surface); }
.bm-slot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.bm-slot--hero img { object-position: 52% 62%; }
.bm-hero:hover .bm-slot--hero img { transform: scale(1.06); }
.bm-hero__lead { grid-column: 1 / span 6; margin-top: 48px; max-width: 48ch; font-size: var(--step-lead); line-height: 1.4; }
.bm-hero__act { grid-column: 8 / -1; justify-self: end; align-self: end; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- «Талон в отделение» */
.bm-talon { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 40px; align-items: start; padding: clamp(96px, 12vw, 200px) 0 0; }
.bm-talon__ask { grid-column: 1 / span 6; }
.bm-h2 { font: 300 var(--step-head)/1.02 var(--f-display); letter-spacing: -.02em; }
.bm-h3 { font: 300 var(--step-lead)/1.15 var(--f-display); letter-spacing: -.01em; }
.bm-talon__lead { margin-top: 20px; max-width: 46ch; }
.bm-talon__opts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.bm-talon__opts button { min-height: 48px; padding: 10px 18px; font: 500 var(--step-small) var(--f-text); color: var(--ink); background: var(--surface); border: 0; border-radius: 0; cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease); }
.bm-talon__opts button:hover { background: var(--surface-2); }
.bm-talon__opts button[aria-checked="true"] { color: var(--accent-ink); background: var(--accent); }
.bm-ticket { grid-column: 8 / -1; margin: 0; }
.bm-ticket__paper { padding: 32px 32px 28px; color: var(--field-ink); background: var(--field); transform-origin: 50% 0; }
.bm-ticket__paper.is-new { animation: bm-print .5s var(--ease); }
@keyframes bm-print { from { transform: translateY(-14px); opacity: .3; } to { transform: none; opacity: 1; } }
.bm-ticket__head { font-size: var(--step-small); }
.bm-ticket__no { margin-top: 6px; font: 200 clamp(4rem, 2rem + 6vw, 7.5rem)/1 var(--f-display); letter-spacing: -.03em; }
.bm-ticket__what { margin-top: 4px; font-size: var(--step-lead); }
.bm-ticket__rows { display: grid; gap: 16px; margin: 32px 0 0; }
.bm-ticket__rows dt { font-size: var(--step-small); opacity: .8; }
.bm-ticket__rows dd { margin: 2px 0 0; font-size: var(--step-body); }
.bm-ticket__tip { margin-top: 22px; font-size: var(--step-small); opacity: .9; }
.bm-ticket__tip:empty { display: none; }
.bm-ticket__cap { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }

/* ---------- абзац с картинками-словами */
.bm-words { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding: clamp(96px, 12vw, 200px) 0 0; }
.bm-words__p { grid-column: 1 / span 11; font: 300 clamp(1.5rem, 0.9rem + 1.6vw, 2.25rem)/1.25 var(--f-display); letter-spacing: -.01em; }
.bm-words__p { line-height: 1.6 !important; }
.bm-words__p .bm-slot { width: 3.4em; height: 1.9em; vertical-align: -0.62em; border-radius: .14em; }
.bm-words__foot { grid-column: 7 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 20px 28px; margin-top: 64px; }
.bm-words__foot p { max-width: 44ch; }

/* ---------- разделы: заголовок во всю ширину, таблица справа */
.bm-list { padding: clamp(96px, 12vw, 200px) 0 0; }
.bm-list__t { max-width: 14ch; font: 300 clamp(2.5rem, 1.4rem + 3.6vw, 4.25rem)/0.98 var(--f-display); letter-spacing: -.025em; text-indent: 3vw; }
.bm-list__body { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: 48px; margin-top: 80px; align-items: start; }
.bm-latest-box { grid-column: 1 / span 4; }
.bm-latest { margin: 18px 0 0; padding: 0; list-style: none; }
.bm-latest li { padding: 14px 0; }
.bm-latest__k { display: block; font-size: var(--step-small); }
.bm-latest__t { display: block; margin-top: 2px; font-weight: 500; text-decoration: none; }
.bm-latest__t:hover { text-decoration: underline; }
.bm-latest__m { display: block; margin-top: 2px; font-size: var(--step-small); color: var(--muted); }
.bm-list__fig { margin: 32px 0 0; }
.bm-list__fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bm-sec { grid-column: 6 / -1; width: 100%; }
.bm-sec__cat th { padding: 44px 0 8px; text-align: left; font-weight: 400; }
.bm-sec__grp:first-of-type .bm-sec__cat th { padding-top: 0; }
.bm-sec__cat a { font: 300 var(--step-lead)/1.1 var(--f-display); text-decoration: none; }
.bm-sec__row td { padding: 14px 0; vertical-align: top; }
.bm-sec__row + .bm-sec__row td { box-shadow: inset 0 1px 0 var(--surface-2); }
.bm-sec__name { width: 52%; padding-right: 20px !important; }
.bm-sec__name > a { font-weight: 600; text-decoration: none; }
.bm-sec__name > a:hover { text-decoration: underline; }
.bm-sec__state.forum_on::before { content: ""; display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--ink); }
.bm-sec__desc { display: block; margin-top: 4px; font-size: var(--step-small); }
.bm-sec__count { width: 14%; white-space: nowrap; font-size: var(--step-small); color: var(--muted); }
.bm-sec__last { font-size: var(--step-small); }
.bm-sec__lt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-decoration: none; }
.bm-sec__lt:hover { text-decoration: underline; }
.bm-sec__lm { display: block; margin-top: 2px; color: var(--muted); }
.bm-sec__lm a { color: var(--muted); }

/* ---------- полоса-фотография */
.bm-band { margin: clamp(96px, 12vw, 200px) calc(var(--gutter) * -1) 0; }
.bm-band img { width: 100%; height: clamp(320px, 52vw, 720px); object-fit: cover; object-position: 50% 55%; }
.bm-band figcaption { padding: 12px var(--gutter) 0; font-size: var(--step-small); }

/* ---------- частые вопросы */
.bm-faq { padding: clamp(96px, 12vw, 200px) 0 0; }
.bm-faq__t { font: 300 clamp(2.25rem, 1.2rem + 3.6vw, 5rem)/1 var(--f-display); letter-spacing: -.025em; }
.bm-faq__list { display: grid; gap: 12px; margin: 64px 0 0 calc((100% + var(--gutter)) / 12 * 4); }
.bm-faq__list details { padding: 14px 24px; margin: 0 -24px; transition: background .2s var(--ease); }
.bm-faq__list details[open] { background: var(--surface); }
.bm-faq__list summary { display: flex; justify-content: space-between; gap: 20px; list-style: none; cursor: pointer; font-size: var(--step-lead); line-height: 1.3; }
.bm-faq__list summary::-webkit-details-marker { display: none; }
.bm-faq__list summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: .45em; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .25s var(--ease); }
.bm-faq__list details[open] summary::after { transform: rotate(-135deg); }
.bm-faq__list p { max-width: 58ch; margin-top: 12px; }

/* ---------- шапки раздела и темы */
.bm-screen { display: flex; flex-direction: column; gap: 24px; }
.bm-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px 32px; padding: 8px 0 24px; }
.bm-pagehead { grid-column: 1; font: 300 clamp(2.25rem, 1.2rem + 3.2vw, 4.25rem)/1 var(--f-display); letter-spacing: -.025em; }
.bm-pagehead--thread { font-size: clamp(1.875rem, 1.1rem + 2.4vw, 3.25rem); line-height: 1.05; }
.bm-head__desc, .bm-head__meta, .bm-head__forum { grid-column: 1; max-width: 70ch; }
.bm-head__desc:empty { display: none; }
.bm-head__meta { font-size: var(--step-small); color: var(--muted); }
.bm-head__forum { font-size: var(--step-small); font-weight: 600; }
.bm-head__act { grid-column: 2; grid-row: 1 / span 3; align-self: end; }
.bm-head__act:empty { display: none; }

/* ---------- список тем: настоящая таблица */
.bm-threads { background: transparent; }
.bm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 0; }
.bm-tools:empty { display: none; }
.bm-tools__right { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: var(--step-small); }
.bm-sort { display: flex; flex-wrap: wrap; gap: 6px; }
.bm-sort a { padding: 8px 14px; font-size: var(--step-small); font-weight: 500; text-decoration: none; background: var(--surface); }
.bm-sort a:hover { background: var(--surface-2); }
.bm-mod-row { display: none; }
.bm-mod-row:has(td) { display: table; }
.bm-table { width: 100%; }
.bm-table th { padding: 10px 14px 10px 0; text-align: left; font-size: var(--step-small); font-weight: 400; color: var(--muted); }
.bm-table td { padding: 16px 14px 16px 0; vertical-align: top; box-shadow: inset 0 1px 0 var(--surface-2); }
.bm-trow:hover td { background: var(--surface); }
.bm-table .num { width: 110px; text-align: right; white-space: nowrap; }
.bm-table th.num { text-align: right; }
.bm-table .num a { text-decoration: none; }
.bm-trow__state { display: none; }
.bm-trow__state[class*="new"] { display: inline-block; width: 8px; height: 8px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--ink); }
.bm-trow__title { font-weight: 600; font-size: var(--step-body); }
.bm-trow__title a { text-decoration: none; }
.bm-trow__title a:hover { text-decoration: underline; }
.bm-trow__meta { display: block; margin-top: 4px; font-size: var(--step-small); color: var(--muted); }
.bm-trow__last { width: 220px; font-size: var(--step-small); }
.bm-trow__last span { display: block; color: var(--muted); }
.forumdisplay_sticky .bm-trow__title::before { content: "Важно: "; font-weight: 600; }
.pagination, .bm-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pagination .pages { margin-right: 8px; font-size: var(--step-small); color: var(--muted); }
.pagination a, .pagination_current { min-width: 40px; min-height: 40px; display: inline-grid; place-items: center; padding: 0 8px; font-size: var(--step-small); text-decoration: none; background: var(--surface); }
.pagination a:hover { background: var(--surface-2); }
.pagination_current { color: var(--accent-ink); background: var(--accent); }

/* ---------- сообщения: адресная табличка участника */
.bm-posts { display: flex; flex-direction: column; gap: 56px; }
.bm-post { background: transparent; }
.bm-post__row { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
.bm-user { display: flex; flex-direction: column; gap: 12px; align-self: start; position: sticky; top: 20px; }
.bm-plate { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "street house" "name house"; column-gap: 14px; padding: 14px 16px 16px; color: var(--field-ink); background: var(--field); border-radius: 6px; }
.bm-plate__street { grid-area: street; font-size: var(--step-small); }
.bm-plate__name { grid-area: name; margin-top: 2px; font: 300 1.625rem/1.05 var(--f-display); color: var(--field-ink); text-decoration: none; overflow-wrap: anywhere; }
.bm-plate__name:hover { color: #fff; text-decoration: underline; }
.bm-plate__house { grid-area: house; align-self: center; font: 200 2.75rem/1 var(--f-display); letter-spacing: -.03em; }
.bm-user__rank { font-size: var(--step-small); font-weight: 600; }
/* фото участника (если загружено): в строке звания под табличкой */
.bm-user__rank:has(.bm-ava) { display: flex; align-items: center; gap: 12px; }
.bm-ava { display: block; flex: none; width: 40px; height: 40px; object-fit: cover; border-radius: 6px; }
.bm-card__side .bm-ava { width: 56px; height: 56px; }
.bm-ufacts { display: grid; gap: 4px; font-size: var(--step-small); color: var(--muted); }
.bm-thanks { display: inline-flex; align-items: center; gap: 12px; align-self: start; padding: 8px 14px 8px 10px; background: var(--surface); }
.bm-thanks b { font: 300 1.75rem/1 var(--f-display); }
.bm-thanks span { font-size: var(--step-small); line-height: 1.3; }
.bm-thanks.is-top { color: var(--accent-ink); background: var(--accent); }
.bm-post__main { min-width: 0; }
.bm-post__bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding-bottom: 12px; font-size: var(--step-small); color: var(--muted); }
.bm-post__no { font-weight: 600; color: var(--ink); text-decoration: none; }
.bm-post__no:hover { text-decoration: underline; }
.bm-starter { font-weight: 600; color: var(--ink); }
.bm-post__edit:empty, .bm-post__check:empty, .bm-post__status:empty { display: none; }
.bm-post__check { margin-left: auto; }
.bm-post__body { font-size: var(--step-body); line-height: 1.6; max-width: 72ch; overflow-wrap: anywhere; }
.bm-post--first .bm-post__body { font-size: var(--step-lead); line-height: 1.5; }
.bm-post__body a.mycode_url, .signature a.mycode_url { font-weight: 600; text-decoration-thickness: 1.5px; }
.bm-post__body a.mycode_url[target="_blank"]::after { content: "\2009↗"; text-decoration: none; display: inline-block; }
blockquote, .mycode_quote { margin: 14px 0; padding: 14px 18px; background: var(--surface); font-size: var(--step-body); }
blockquote cite, .mycode_quote cite { display: block; margin-bottom: 6px; font-style: normal; font-weight: 600; font-size: var(--step-small); }
blockquote cite > span { font-weight: 400; color: var(--muted); }
.codeblock { margin: 14px 0; padding: 14px 18px; background: var(--surface); overflow: auto; }
.codeblock .title { font-size: var(--step-small); font-weight: 600; }
.codeblock code, .codeblock pre { font: 0.9375rem/1.5 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.post_body ul, .post_body ol { padding-left: 24px; }
.mycode_s { text-decoration: line-through; }
.signature { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.post_meta:not(:has(*:not(:empty))) { display: none; }
.bm-post__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; padding-left: 300px; }
.bm-post__controls:not(:has(a)) { display: none; }
.postbit_buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.postbit_buttons a { padding: 8px 14px; font-size: var(--step-small); font-weight: 500; text-decoration: none; background: var(--surface); }
.postbit_buttons a span { background: none !important; padding: 0 !important; }
.postbit_buttons a:hover { background: var(--surface-2); }
.bm-adjacent { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }

/* ---------- ответ и гость */
.bm-reply, .bm-guest { padding: 28px; background: var(--surface); }
.bm-reply__head h2 { font: 300 var(--step-head)/1 var(--f-display); }
.bm-reply__head p { margin-top: 6px; color: var(--muted); font-size: var(--step-small); }
.bm-reply textarea { width: 100%; min-height: 160px; margin-top: 14px; }
.bm-reply__opts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; font-size: var(--step-small); }
.bm-reply__opts label { display: inline-flex; gap: 6px; align-items: center; }
.bm-reply__captcha:not(:has(td)) { display: none; }
.bm-reply__act { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 14px; }
.bm-reply__full, .bm-reply__mq { font-size: var(--step-small); }
.bm-guest { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.bm-guest p { font: 300 var(--step-lead) var(--f-display); }
.bm-modtools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step-small); }
.bm-modtools:not(:has(a, select, input)) { display: none; }
.thread_tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.thread_tools li { background: none !important; padding: 0 !important; }
.bm-modtools > div:empty, .bm-browsing:empty { display: none; }
.bm-browsing { font-size: var(--step-small); }

/* ---------- профиль */
.bm-card { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; align-items: start; padding-top: 16px; }
.bm-plate--big { padding: 28px 28px 30px; }
.bm-plate--big .bm-plate__name { font-size: clamp(1.75rem, 1.1rem + 1.8vw, 2.75rem); overflow-wrap: anywhere; word-break: normal; }
.bm-plate--big .bm-plate__house { font-size: clamp(4rem, 2rem + 5vw, 6.5rem); }
.bm-card__side { display: flex; flex-direction: column; gap: 18px; }
.bm-card__facts { width: 100%; }
.bm-card__facts th { width: 38%; padding: 12px 16px 12px 0; text-align: left; font-weight: 400; color: var(--muted); vertical-align: top; }
.bm-card__facts td { padding: 12px 0; font-weight: 500; }
.bm-card__facts tr + tr th, .bm-card__facts tr + tr td { box-shadow: inset 0 1px 0 var(--surface-2); }
.bm-card__links { font-weight: 400; font-size: var(--step-small); margin-left: 10px; }
.bm-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-card__actions:empty { display: none; }
.bm-card__note { font-size: var(--step-small); color: var(--muted); }
.bm-hidden-empty:not(:has(td)) { display: none; }
.bm-profile-extra:empty { display: none; }

/* ---------- вход, ошибки, ожидание */
.bm-gate, .bm-error, .bm-wait { max-width: 560px; margin: 32px 0; padding: 32px; background: var(--surface); }
.bm-gate h1, .bm-error h1, .bm-wait h1 { font: 300 var(--step-head)/1 var(--f-display); }
.bm-form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.bm-field { display: flex; flex-direction: column; gap: 6px; font-size: var(--step-small); font-weight: 600; }
.bm-field .textbox { width: 100%; }
.bm-form__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: var(--step-small); }
.bm-checkline { display: inline-flex; align-items: center; gap: 8px; }
.bm-form__submit { width: 100%; }
.bm-error__text { margin-top: 12px; }
.bm-error__links { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 18px !important; }
.bm-wait { margin-top: 12vh; }
.bm-wait p { margin: 12px 0 16px; }

/* ---------- стандартные блоки MyBB */
.tborder { width: 100%; margin-bottom: 18px; background: var(--surface); }
.tborder td, .tborder th { padding: 10px 14px; text-align: left; }
.thead { font: 300 var(--step-lead) var(--f-display); color: var(--ink); }
.thead a, .thead strong { color: var(--ink); }
.tcat { font-size: var(--step-small); font-weight: 600; color: var(--muted); background: var(--surface-2); }
.trow1, .trow2 { background: transparent; }
.trow_shaded, .unapproved_post { background: #e8e2c9 !important; }
.trow_selected, tr.trow_selected td { background: #e3ddc0 !important; }
.trow_deleted, .deleted_post_hidden { background: #e8d6cf !important; }
.trow_sep { font-weight: 600; }
.smalltext { font-size: var(--step-small); color: var(--muted); }
.largetext { font: 300 var(--step-lead) var(--f-display); }
.expcolimage { float: right; }
fieldset { border: 0; padding: 14px 18px; background: var(--surface); }
fieldset legend { padding: 0; font-weight: 600; font-size: var(--step-small); }
input.textbox, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"]:not(#bm-q), input[type="url"], input[type="date"], select, textarea {
	max-width: 100%; min-height: 46px; padding: 10px 14px; font: 400 var(--step-body) var(--f-text); color: var(--ink);
	background: #f6f5f2; border: 1px solid var(--surface-2); border-radius: 0;
}
textarea { min-height: 120px; line-height: 1.5; resize: vertical; }
select[multiple] { min-height: 120px; }
input.textbox:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus, textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); }
.bm-formtable td { padding: 6px 0; }
.bm-formtable .textbox { width: 100%; }
.bm-formtable .button { width: 100%; margin-top: 8px; }
.bm-formtable div[align="center"] { text-align: left; }
.red_alert, .pm_alert { margin-bottom: 16px; padding: 14px 18px; font-weight: 600; background: var(--surface); }
div.error { margin-bottom: 16px; padding: 14px 18px; background: #e8d6cf; }
div.error ul { margin: 6px 0 0; padding-left: 20px; }
.popup_menu { background: var(--surface); padding: 6px; }
.popup_menu .popup_item { display: block; padding: 8px 10px; color: var(--ink); text-decoration: none; }
.popup_menu .popup_item:hover { background: var(--surface-2); }
.blocker { position: fixed; inset: 0; z-index: 9998; background: rgba(56, 69, 15, .72); padding: 20px; overflow: auto; text-align: center; }
.blocker::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
.modal { display: none; vertical-align: middle; position: relative; z-index: 9999; width: 92%; max-width: 460px; padding: 0 0 20px; text-align: left; background: var(--bg); }
.modal form, .modal > div { padding: 0 20px; }
.modal a.close-modal { position: absolute; top: 14px; right: 14px; width: 28px; height: 28px; text-indent: -9999px; overflow: hidden; }
.modal a.close-modal::before { content: "×"; position: absolute; inset: 0; display: grid; place-items: center; text-indent: 0; font-size: 26px; color: var(--ink); }
.bm-modal__title { margin: 0 -20px 14px; padding: 20px 20px 0; font: 300 var(--step-head)/1 var(--f-display); }
.jGrowl { z-index: 9999; position: fixed; }
.jGrowl.top-right { top: 16px; right: 16px; }
.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer { width: 280px; margin-top: 8px; padding: 12px 14px; background: var(--field); color: var(--field-ink); }
.jGrowl .jGrowl-close { float: right; cursor: pointer; }

/* ---------- подвал: приглашение над обрезанным названием */
.bm-foot { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; padding: clamp(48px, 8vw, 120px) var(--gutter) 0; color: var(--field-ink); background: var(--field); }
.bm-foot a:not(.bm-btn) { color: var(--field-ink); }
.bm-foot__top { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.bm-foot__invite { grid-column: 1 / span 7; }
.bm-foot__t { font: 300 clamp(2.25rem, 1.2rem + 3.4vw, 4.75rem)/1 var(--f-display); letter-spacing: -.025em; max-width: 22ch; }
.bm-foot__invite .bm-btn { margin-top: 36px; }
.bm-foot__links { grid-column: 10 / -1; display: flex; flex-direction: column; gap: 10px; font-size: var(--step-body); }
.bm-foot__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 40px; margin-top: auto; padding: 48px 0 16px; font-size: var(--step-small); line-height: 1.45; }
.bm-foot__legal span { max-width: 62ch; }
.bm-foot__name { font: 300 clamp(5rem, 1rem + 19vw, 22rem)/0.8 var(--f-display); letter-spacing: -.045em; white-space: nowrap; transform: translateY(18%); margin-left: -.04em; }

/* ---------- движение: появление частей разделов */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }


/* ---------- адаптив */
@media (max-width: 1080px) {
	.bm-sec { grid-column: 1 / -1; }
	.bm-latest-box { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--gutter); }
	.bm-latest-box .bm-h3 { grid-column: 1 / -1; }
	.bm-list__fig { margin: 18px 0 0; }
	.bm-post__row { grid-template-columns: 220px minmax(0, 1fr); gap: 28px; }
	.bm-post__controls { padding-left: 248px; }
}
@media (max-width: 760px) {
	.bm-bar { padding: 16px var(--gutter); gap: 10px 18px; }
	.bm-nav { order: 3; width: 100%; gap: 4px 16px; }
	.bm-search { order: 4; width: 100%; margin: 0; }
	.bm-search input { width: 100%; }
	.bm-hero { min-height: 0; padding: 40px 0 24px; row-gap: 24px; }
	.bm-hero__t { font-size: 15vw; }
	.bm-hero__t .bm-line + .bm-line { text-align: left; }
	.bm-hero__lead { grid-column: 1 / -1; margin-top: 8px; font-size: 1.125rem; }
	.bm-hero__act { grid-column: 1 / -1; justify-self: start; }
	.bm-talon__ask, .bm-ticket { grid-column: 1 / -1; }
	.bm-ticket__paper { padding: 24px 20px; }
	.bm-words__p { grid-column: 1 / -1; font-size: 1.5rem; line-height: 1.3; }
	.bm-words__p .bm-slot { width: 2.8em; height: 1.6em; vertical-align: -0.5em; }
	.bm-words__foot { grid-column: 1 / -1; margin-top: 32px; }
	.bm-list__t { text-indent: 0; font-size: 2.5rem; }
	.bm-list__body { margin-top: 40px; }
	.bm-latest-box { display: block; }
	.bm-list__fig { width: 60%; margin-left: auto; }
	.bm-sec__row td { display: block; width: auto !important; padding: 0 !important; box-shadow: none !important; }
	.bm-sec__row { display: block; padding: 14px 0; box-shadow: inset 0 1px 0 var(--surface-2); }
	.bm-sec__count { margin-top: 6px; }
	.bm-sec__last { margin-top: 4px; }
	.bm-faq__list { margin-left: 0; margin-top: 32px; }
	.bm-faq__list details { margin: 0 calc(var(--gutter) * -1); padding: 14px var(--gutter); }
	.bm-faq__list summary { font-size: 1.1875rem; }
	.bm-head { grid-template-columns: minmax(0, 1fr); }
	.bm-head__act { grid-column: 1; grid-row: auto; }
	.bm-post__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
	.bm-user { position: static; }
	.bm-post__controls { padding-left: 0; }
	.bm-card { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.bm-table thead { display: none; }
	.bm-table, .bm-table tbody, .bm-table tr, .bm-table td { display: block; width: 100%; }
	.bm-table tr { padding: 14px 0; box-shadow: inset 0 1px 0 var(--surface-2); }
	.bm-table td { padding: 0; box-shadow: none; background: none !important; }
	.bm-table .num { display: inline-block; width: auto; margin: 6px 14px 0 0; text-align: left; font-size: var(--step-small); color: var(--muted); }
	.bm-table .num:nth-of-type(2)::after { content: " ответов"; }
	.bm-table .num:nth-of-type(3)::after { content: " просмотров"; }
	.bm-trow__last { display: none !important; }
	.bm-foot { min-height: 0; }
	.bm-foot__top { display: block; }
	.bm-foot__t { font-size: 11vw; }
	.bm-foot__invite .bm-btn { width: 100%; }
	.bm-foot__links { flex-direction: row; flex-wrap: wrap; gap: 8px 18px; margin-top: 32px; }
	.bm-foot__name { font-size: 34vw; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ===== ссылки в сообщениях: свой стиль форума (у каждого форума сетки свой, не повторять) ===== */
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:link, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:visited { font-style: normal; text-decoration: none; text-underline-offset: auto; text-shadow: none; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; overflow-wrap: anywhere; -webkit-box-decoration-break: clone; box-decoration-break: clone; color: #38450f; font-weight: 500; border-bottom: 3px double rgba(56, 69, 15, .45); }
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:hover, :is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url:focus-visible { color: #38450f; border-bottom: 3px double #38450f; background: #e1dfd9; }
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url[target="_blank"]::after { content: "\2009\2197"; color: #5d683a; font-size: .85em; margin-left: 0; text-decoration: none; }
/* ===== конец стиля ссылок ===== */
