/* ==========================================================================
   Фанаты Opel — тема «Контактный лист» (направление taste-skill: contact-sheet, «Navy on white»)
   Одна гарнитура (Cygre), белая основа, тёмно-синий текст, мандарин только на действии.
   ========================================================================== */

@font-face { font-family: "Cygre"; src: url("fonts/cygre.ttf") format("truetype"); font-weight: 400; font-display: swap; }

:root {
	--bg: #ffffff;
	--surface: #f4f4f2;
	--surface-2: #ebeae6;
	--ink: #1f2b4d;
	--muted: #5d6479;
	--accent: #f7941d;
	--accent-ink: #1f2b4d;
	--field-1: #05070a;
	--field-1-ink: #ffffff;
	--field-2: #e3e1dc;
	--line: #dcdcd6;
	--good: #2f7d4f;
	--bad: #b3402a;

	--f: "Cygre", "Helvetica Neue", Arial, sans-serif;
	--step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
	--step-body: clamp(1.0625rem, 1rem + 0.25vw, 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(3.5rem, 1rem + 8.4vw, 9.5rem);
	--m: clamp(16px, 2vw, 28px);
	--ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 12px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--f); -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums; }
img { max-width: 100%; height: auto; border: 0; display: block; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s var(--ease), opacity .2s var(--ease); }
a:hover { color: var(--muted); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f); font-weight: 400; line-height: 1.02; letter-spacing: -0.02em; margin: 0; }
p { margin: 0 0 .8em; max-width: 58ch; }
b, strong { font-weight: 400; color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
table { border-collapse: collapse; }
script, template { display: none !important; }
.of-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.of-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; }
.of-skip:focus { top: 12px; }
.float_left { float: left; } .float_right { float: right; } .clear { clear: both; }

/* ---------- кнопка: одна форма на весь сайт, прямые углы ---------- */
.of-btn, .button, input.button, input[type="submit"], input[type="button"], button[type="submit"] {
	display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px;
	border: 0; border-radius: 0; background: var(--accent); color: var(--accent-ink);
	font: 400 var(--step-body)/1 var(--f); cursor: pointer; text-decoration: none; white-space: nowrap;
	transition: background-color .2s var(--ease), transform .12s var(--ease);
}
.of-btn:hover, .button:hover, input[type="submit"]:hover, button[type="submit"]:hover { background: #e8820a; color: var(--accent-ink); }
.of-btn:active, input[type="submit"]:active { transform: scale(.98); }
.of-btn--quiet { background: var(--surface); }
.of-btn--quiet:hover { background: var(--surface-2); }
.of-btn--off { background: var(--surface); color: var(--muted); }

/* ---------- шапка: слово, несколько ссылок, одно действие ---------- */
.of-bar { display: flex; align-items: center; gap: 28px; padding: 18px var(--m); }
.of-wordmark { font-size: 22px; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; }
.of-nav { display: flex; gap: 22px; }
.of-nav a { text-decoration: none; font-size: var(--step-small); color: var(--muted); padding: 10px 0; }
.of-nav a:hover { color: var(--ink); }
.of-search { margin-left: auto; flex: 0 1 280px; }
.of-search input { width: 100%; height: 44px; padding: 0 14px; border: 0; background: var(--surface); color: var(--ink); font: 400 var(--step-small) var(--f); }
.of-search input::placeholder { color: var(--muted); }
.of-search input:focus { outline: 2px solid var(--accent); outline-offset: 0; }
.of-user { display: flex; align-items: center; gap: 16px; font-size: var(--step-small); }
.of-user__pm { text-decoration: none; color: var(--muted); }
.of-user__pm b { text-decoration: none; color: var(--accent-ink); background: var(--accent); padding: 1px 6px; }
.of-user__pm b[data-n="0"] { display: none; }
.of-user__menu { position: relative; }
.of-user__menu summary { list-style: none; display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.of-user__menu summary::-webkit-details-marker { display: none; }
.of-user__drop { /* taste-skill-ignore: выпадающее меню */ position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; margin: 0; padding: 8px; list-style: none; background: var(--bg); box-shadow: 0 20px 50px -24px rgba(5, 7, 10, .45); }
.of-user__drop a { display: block; padding: 10px 12px; text-decoration: none; }
.of-user__drop a:hover { background: var(--surface); color: var(--ink); }

.of-main { padding: 0 var(--m) 40px; min-height: 60vh; }
.of-path { margin: 8px 0 24px; font-size: var(--step-small); color: var(--muted); }
.of-path ol { display: flex; flex-wrap: wrap; gap: 4px 0; margin: 0; padding: 0; list-style: none; }
.of-path li + li::before { content: "→"; margin: 0 10px; color: var(--muted); }
.of-path a { color: var(--muted); text-decoration: none; }
.of-path a:hover { color: var(--ink); }
.of-page--index .of-path { display: none; }

/* аватар: инициал на бледном тоне участника */
.of-ava { display: inline-grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: hsl(var(--h, 210) 55% 90%); color: hsl(var(--h, 210) 45% 28%); }
.of-ava img { width: 100%; height: 100%; object-fit: cover; }
.of-ava--s { width: 32px; height: 32px; font-size: 15px; }
.of-ava--m { width: 52px; height: 52px; font-size: 22px; }
.of-ava--xl { width: 128px; height: 128px; font-size: 56px; }

/* ---------- главная: имя, полоса текста, затем лист ---------- */
.of-hero { padding: clamp(24px, 4vw, 56px) 0 28px; }
.of-hero h1 { font-size: var(--step-display); letter-spacing: -0.035em; line-height: .92; white-space: nowrap; }
.of-hero__lead { margin: 28px 0 0; font-size: var(--step-lead); max-width: 34ch; line-height: 1.25; }
.of-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin-top: 44px; font-size: var(--step-body); line-height: 1.45; color: var(--ink); }
.of-band b { color: var(--ink); }

.of-lineage { position: relative; padding: 24px 0 96px; }
.of-lineage__title { font-size: var(--step-head); margin-bottom: 28px; }
.of-sheet { display: grid; gap: 30px; }
.of-run__title { font-size: var(--step-small); margin-bottom: 10px; color: var(--muted); }
.of-run__title a { text-decoration: none; color: var(--ink); }
.of-run__frames { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.of-frame a { display: block; position: relative; text-decoration: none; }
.of-frame img { height: 118px; width: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--surface); transition: transform .25s var(--ease), opacity .24s var(--ease); }
.of-frame__cap { display: block; margin-top: 6px; font-size: var(--step-small); color: var(--muted); }
.of-frame__cap small { font-size: inherit; color: var(--muted); }
.of-frame a:hover img, .of-frame a:focus-visible img { transform: scale(1.04); }
.of-sheet.is-pointing .of-run:not(.is-active) img { opacity: .32; }
.of-sheet.is-pointing .of-frame:not(.is-active) img { opacity: .55; }
.of-sheet.is-pointing .of-run:not(.is-active) .of-frame img { opacity: .32; }
.of-preview { /* taste-skill-ignore: плавающий кадр предпросмотра */ position: fixed; right: var(--m); bottom: var(--m); z-index: 40; width: min(420px, 36vw); background: var(--field-1); color: var(--field-1-ink); box-shadow: 0 30px 60px -30px rgba(5, 7, 10, .6); opacity: 0; transform: translateY(8px); visibility: hidden; transition: opacity .24s var(--ease), transform .24s var(--ease), visibility 0s linear .24s; pointer-events: none; }
.of-preview.is-on { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; pointer-events: auto; }
.of-preview__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.of-preview__text { padding: 16px 18px 18px; }
.of-preview__name { font-size: var(--step-lead); margin: 0 0 4px; }
.of-preview__years, .of-preview__engines { margin: 0; font-size: var(--step-small); color: #c7cad3; }
.of-preview__go { display: inline-block; margin-top: 12px; color: var(--accent); font-size: var(--step-small); }
.of-lineage__note { margin-top: 18px; font-size: var(--step-small); color: var(--muted); }

.of-intro { display: grid; gap: 64px; padding: 104px 0; background: var(--surface); margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); }
.of-intro__lead { font-size: clamp(22px, 2.2vw, 32px); line-height: 1.22; max-width: 40ch; margin: 0; }
.of-intro__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.of-intro__cols p { margin: 0; font-size: var(--step-body); line-height: 1.5; color: var(--ink); max-width: 60ch; }
.of-intro__cols b { color: var(--ink); }

/* список разделов: строки с двумя концами, узкая колонка */
.of-sections { padding: 120px 0 40px; display: grid; grid-template-columns: 22% minmax(0, 680px); column-gap: 0; }
.of-sections > h2 { grid-column: 1 / -1; font-size: var(--step-head); margin-bottom: 40px; }
.of-sections > .of-group { grid-column: 2; }
.of-group { margin-bottom: 44px; }
.of-group__title { font-size: var(--step-small); color: var(--muted); margin-bottom: 8px; }
.of-group__title a { text-decoration: none; color: var(--muted); }
.of-rows { margin: 0; padding: 0; list-style: none; }
.of-row { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; column-gap: 10px; row-gap: 2px; align-items: baseline; padding: 9px 0; }
.of-row__state { align-self: center; display: block; width: 16px; height: 16px; }
.of-mark { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; }
.of-mark--dot { display: block; background: var(--surface-2); }
.forum_on .of-mark--dot { background: var(--accent); }
.forum_on img.of-mark { outline: 2px solid var(--accent); outline-offset: 1px; }
.of-row__name { font-size: var(--step-body); text-decoration: none; }
.of-row__name:hover { color: var(--muted); }
.of-row__value { font-size: var(--step-small); color: var(--muted); text-align: right; }
.of-row__desc { grid-column: 2 / -1; font-size: var(--step-body); color: var(--ink); line-height: 1.45; max-width: 60ch; }
.of-row__last { grid-column: 2 / -1; font-size: var(--step-small); color: var(--muted); line-height: 1.4; }
.of-row__last a { color: var(--muted); }
.of-row__desc:empty, .of-row__last:empty { display: none; }

.of-about { display: grid; grid-template-columns: 34% minmax(0, 1fr); padding: 120px 0 40px; }
.of-about__facts { margin: 0; display: grid; gap: 20px; align-content: start; width: 200px; font-size: var(--step-small); }
.of-about__facts dt { color: var(--muted); }
.of-about__facts dd { margin: 2px 0 0; }
.of-about__text h2 { font-size: var(--step-head); margin-bottom: 28px; }
.of-latest { margin: 0; padding: 0; list-style: none; columns: 2 300px; column-gap: 64px; }
.of-latest li { display: flex; justify-content: space-between; gap: 16px; break-inside: avoid; padding: 7px 0; font-size: var(--step-body); }
.of-latest a { text-decoration: none; }
.of-latest a:hover { text-decoration: underline; }
.of-latest span { color: var(--muted); white-space: nowrap; }

/* ---------- раздел и тема: экраны, в которых работают ---------- */
.of-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 32px; margin: 8px 0 28px; }
.of-head h1 { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.4rem); max-width: 24ch; }
.of-head__desc { margin: 12px 0 0; color: var(--muted); max-width: 60ch; }
.of-head__desc:empty { display: none; }
.of-head__meta { margin: 8px 0 0; font-size: var(--step-small); color: var(--muted); }
.of-head__forum { margin: 0 0 10px; font-size: var(--step-small); }
.of-head__forum a { color: var(--muted); }
.of-head--thread h1 { font-size: clamp(1.8rem, 1.1rem + 2.2vw, 3rem); max-width: 30ch; }

.of-strip { margin: 0 0 32px; }
.of-strip h2 { font-size: var(--step-small); color: var(--muted); margin-bottom: 10px; }
.of-strip ol { display: flex; gap: 8px; margin: 0; padding: 0 0 6px; list-style: none; overflow-x: auto; scrollbar-width: thin; }
.of-strip li { flex: none; }
.of-strip .of-frame img { height: 92px; }

.of-tools { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin: 0 0 14px; font-size: var(--step-small); }
.of-tools--foot { margin: 18px 0 0; }
.of-tools__right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.of-tools__right a { color: var(--muted); }
.of-sort { display: flex; flex-wrap: wrap; gap: 4px; }
.of-sort a { padding: 10px 12px; background: var(--surface); text-decoration: none; }
.of-sort a:hover { background: var(--surface-2); color: var(--ink); }
.of-mod-row { display: none; }
.of-mod-row:has(td) { display: table; width: 100%; }

.of-table { width: 100%; border-collapse: collapse; font-size: var(--step-small); }
.of-table th { text-align: left; font-weight: 400; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.of-table td { padding: 14px 12px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.of-table .num { text-align: right; width: 96px; padding-right: 24px; font-size: var(--step-body); }
.of-table .num a { text-decoration: none; }
.of-trow:hover td { background: var(--surface); }
.of-trow__main { position: relative; padding-left: 18px !important; }
.of-trow__state { position: absolute; left: 0; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.of-trow__state[class*="new"] { background: var(--accent); }
.of-trow__title { display: block; font-size: var(--step-body); line-height: 1.35; }
.of-trow__title a { text-decoration: none; }
.of-trow__title a:hover { text-decoration: underline; }
.of-trow__meta { display: block; margin-top: 4px; color: var(--muted); }
.of-trow__meta a { color: var(--muted); }
.of-trow__last { width: 200px; color: var(--muted); }
.of-trow__last a { color: var(--ink); text-decoration: none; display: block; }
.of-trow__last span { display: block; }
.of-trow__last span a { color: var(--muted); display: inline; }
.forumdisplay_sticky .of-trow__title::before { content: "Закреплено · "; color: var(--muted); }
.of-new { margin-right: 6px; padding: 1px 6px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-size: var(--step-small); }
.of-empty { padding: 32px 0 !important; color: var(--muted); }
.of-check { display: inline-grid; place-items: center; width: 44px; height: 44px; }

.pagination, .of-pages { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: var(--step-small); }
.pagination .pages { display: none; }
.pagination a, .pagination_current { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 8px; background: var(--surface); text-decoration: none; }
.pagination a:hover { background: var(--surface-2); color: var(--ink); }
.pagination_current { background: var(--ink); color: var(--bg); }

/* сообщение: колонка для чтения, клубная карта на полях справа */
.of-posts { display: grid; gap: 0; }
.of-post { display: grid; grid-template-columns: minmax(0, 72ch) 240px; justify-content: space-between; column-gap: 48px; padding: 40px 0 44px; }
.of-post + .of-post { padding-top: 48px; }
.of-post:nth-child(even) { background: var(--surface); margin: 0 calc(var(--m) * -1); padding-left: var(--m); padding-right: var(--m); }
.of-post--first { border-top: 0; padding-top: 8px; }
.of-post__meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; font-size: var(--step-small); color: var(--muted); }
.of-post__no { color: var(--muted); text-decoration: none; }
.of-starter { color: var(--ink); }
.of-post__edit:empty, .of-post__check:empty, .of-post__status:empty { display: none; }
.of-post__check { margin-left: auto; }
.edited_post { font-size: var(--step-small); color: var(--muted); }
.of-post__body { font-size: var(--step-body); line-height: 1.6; overflow-wrap: anywhere; }
.of-post__body > :last-child { margin-bottom: 0; }
.of-post__sign { margin-top: 18px; padding-top: 12px; font-size: var(--step-small); color: var(--muted); }
.post_meta { font-size: var(--step-small); color: var(--muted); }
.post_meta:empty { display: none; }
.of-post__controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 18px; }
.postbit_buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.postbit_buttons > a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--surface); text-decoration: none; font-size: var(--step-small); }
.postbit_buttons > a:hover { background: var(--surface-2); color: var(--ink); }
.postbit_buttons > a span { background: none !important; padding: 0 !important; }
a.postbit_multiquote_on { background: var(--accent) !important; }

.of-member { font-size: var(--step-small); color: var(--muted); }
.of-member__head { display: inline-block; text-decoration: none; margin-bottom: 10px; }
.of-member__name { margin: 0; font-size: var(--step-body); color: var(--ink); overflow-wrap: anywhere; }
.of-member__name a { text-decoration: none; }
.of-member__rank { margin: 2px 0 8px; }
.of-card { display: inline-block; margin-bottom: 8px; padding: 3px 8px; color: var(--ink); }
.of-card--bronze { background: #ecd5bd; }
.of-card--silver { background: #dde2ea; }
.of-card--gold { background: #f6d77f; }
.of-car { display: block; margin-bottom: 10px; color: var(--ink); }
.of-member__facts { margin: 0; display: grid; gap: 4px; }
.of-member__facts div { display: flex; justify-content: space-between; gap: 10px; }
.of-member__facts dd { margin: 0; color: var(--ink); text-align: right; }
.of-member__no { margin: 10px 0 0; }

/* разметка сообщений: заметные ссылки, цитаты, код */
.of-post__body a.mycode_url, .of-post__sign a.mycode_url { color: #1d4fa8; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.of-post__body a.mycode_url:hover { color: var(--ink); background: #fff1df; }
.of-post__body a.mycode_url[target="_blank"]::after { content: "↗"; font-size: .8em; margin-left: 2px; display: inline-block; text-decoration: none; }
blockquote, .mycode_quote { margin: 0 0 16px; padding: 14px 18px; background: var(--surface); font-size: 0.95em; }
blockquote cite, .mycode_quote cite { display: block; font-style: normal; color: var(--muted); font-size: var(--step-small); margin-bottom: 6px; }
blockquote cite > span { float: right; }
.codeblock { margin: 0 0 16px; padding: 14px 16px; background: var(--field-1); color: var(--field-1-ink); }
.codeblock .title { color: #c7cad3; font-size: var(--step-small); margin-bottom: 6px; }
.codeblock code, .codeblock pre { font: 14px/1.55 ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; }
.post_body ul, .post_body ol { padding-left: 1.3em; }

.of-adjacent { display: flex; justify-content: space-between; gap: 16px; margin: 40px 0; font-size: var(--step-small); }
.of-adjacent a { color: var(--muted); }
.of-reply { margin: 0 0 32px; padding: 32px; background: var(--surface); max-width: calc(72ch + 2 * 32px); }
.of-reply__head h2 { font-size: var(--step-lead); }
.of-reply__head p { color: var(--muted); font-size: var(--step-small); margin: 6px 0 16px; }
.of-reply textarea { width: 100%; min-height: 180px; }
.of-reply__opts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.of-reply__opts label { display: inline-flex; align-items: center; gap: 6px; }
.of-reply__captcha:not(:has(td)) { display: none; }
.of-reply__act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.of-reply__full { margin-left: auto; font-size: var(--step-small); color: var(--muted); }
.of-reply__mq { margin-top: 8px; font-size: var(--step-small); }
.of-guest { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 0 0 32px; padding: 28px 32px; background: var(--field-1); color: var(--field-1-ink); }
.of-guest p { margin: 0; font-size: var(--step-lead); }
.of-modtools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 20px; font-size: var(--step-small); }
.thread_tools { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; }
.thread_tools li { background: none !important; padding: 0 !important; }
.thread_tools a { color: var(--muted); }
.of-modtools > div { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.of-browsing { margin-top: 16px; font-size: var(--step-small); color: var(--muted); }
.of-browsing:empty { display: none; }

/* ---------- клубный билет ---------- */
.of-ticket { display: grid; grid-template-columns: 300px minmax(0, 1fr); max-width: 1080px; margin: 8px 0 40px; background: var(--surface); }
.of-ticket__field { padding: 32px; background: var(--ink); color: var(--field-1-ink); display: flex; flex-direction: column; gap: 14px; }
.of-ticket__club { margin: 18px 0 0; font-size: var(--step-small); color: #c9cfdf; }
.of-ticket__no { margin: 0; font-size: var(--step-lead); }
.of-ticket__body { padding: 32px 36px; }
.of-ticket__body h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); overflow-wrap: anywhere; }
.of-ticket__rank { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 24px; color: var(--muted); }
.of-ticket__rank .of-card { margin: 0; }
.of-ticket__status a { color: var(--muted); }
.of-ticket__facts { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 24px; }
.of-ticket__facts dt { font-size: var(--step-small); color: var(--muted); }
.of-ticket__facts dd { margin: 4px 0 0; font-size: var(--step-body); }
.of-ticket__links { margin: 24px 0 0; font-size: var(--step-small); }
.of-ticket__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: var(--step-small); }
.of-ticket__actions:empty { display: none; }
.of-profile-extra { max-width: 1080px; }
.of-hidden-empty:not(:has(td)) { display: none; }

/* ---------- вход, ошибки, ожидание ---------- */
.of-gate { max-width: 460px; margin: 24px 0 80px; }
.of-gate h1 { font-size: var(--step-head); margin-bottom: 24px; }
.of-form { display: grid; gap: 16px; }
.of-field { display: grid; gap: 6px; font-size: var(--step-small); color: var(--muted); }
.of-field .textbox { width: 100%; }
.of-form__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; font-size: var(--step-small); }
.of-checkline { display: inline-flex; align-items: center; gap: 8px; }
.of-form__submit { width: 100%; }
.of-error { max-width: 720px; margin: 24px 0 80px; }
.of-error h1 { font-size: var(--step-head); margin-bottom: 16px; }
.of-error__text { font-size: var(--step-lead); line-height: 1.35; }
.of-error__links { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 28px; }
.of-wait { max-width: 520px; margin: 20vh auto 0; padding: 0 var(--m); }
.of-wait h1 { font-size: var(--step-head); margin-bottom: 12px; }
.of-wait p { color: var(--muted); }

/* ---------- стандартные элементы MyBB (формы, ЛК, поиск) ---------- */
.tborder { width: 100%; margin: 0 0 24px; border-collapse: collapse; background: var(--bg); font-size: var(--step-small); }
.tborder td, .tborder th { padding: 12px 12px 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.thead { font-size: var(--step-lead); border-bottom: 0 !important; padding-top: 24px !important; }
.thead strong { font-weight: 400; }
.tcat { color: var(--muted); }
.trow1, .trow2 { background: var(--bg); }
.trow_shaded, .unapproved_post { background: #fff6e8 !important; }
.trow_selected, tr.trow_selected td { background: #fff1df !important; }
.trow_deleted, .deleted_post_hidden { background: #fbe9e5 !important; }
.trow_sep { color: var(--muted); padding: 16px 0 6px; }
.tfoot { text-align: left; border-bottom: 0 !important; }
.smalltext { font-size: var(--step-small); color: var(--muted); }
.largetext { font-size: var(--step-lead); }
.expcolimage { display: none; }
fieldset { border: 0; padding: 20px 0; margin: 0 0 20px; }
fieldset legend { font-size: var(--step-lead); padding: 0; }
input.textbox, input[type="text"], input[type="password"], input[type="email"], input[type="number"], input[type="search"]:not(#of-q), input[type="url"], input[type="date"], select, textarea {
	max-width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 0; background: var(--surface); color: var(--ink); font: 400 var(--step-body)/1.4 var(--f);
}
textarea { line-height: 1.55; }
select { appearance: none; padding-right: 34px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f2b4d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; }
select[multiple] { background-image: none; }
input.textbox:focus, input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; accent-color: var(--ink); vertical-align: -3px; }
.of-formtable td { display: block; padding: 6px 0; border: 0; }
.of-formtable .textbox { width: 100%; }
.of-formtable .button { width: 100%; }
.of-formtable div[align="center"] { text-align: left; }
.red_alert, .pm_alert { margin: 0 0 16px; padding: 12px 16px; font-size: var(--step-small); }
.red_alert { background: #fbe9e5; }
.pm_alert { background: #fff1df; display: flex; justify-content: space-between; gap: 10px; }
div.error { margin: 0 0 16px; padding: 14px 18px; background: #fbe9e5; }
div.error ul { margin: 6px 0 0; padding-left: 1.2em; }
.popup_menu { /* taste-skill-ignore: всплывающее меню */ position: absolute; z-index: 70; min-width: 200px; padding: 6px; background: var(--bg); box-shadow: 0 20px 50px -24px rgba(5, 7, 10, .45); font-size: var(--step-small); }
.popup_menu .popup_item { display: block; padding: 9px 12px; text-decoration: none; color: var(--ink); background: none; }
.popup_menu .popup_item:hover { background: var(--surface); }
.blocker { position: fixed; inset: 0; z-index: 9998; padding: 20px; overflow: auto; background: rgba(5, 7, 10, .62); text-align: center; }
.blocker::before { content: ""; display: inline-block; height: 100%; vertical-align: middle; }
.modal { /* taste-skill-ignore: диалог */ display: none; vertical-align: middle; position: relative; z-index: 9999; width: 100%; max-width: 440px; padding: 32px; text-align: left; background: var(--bg); box-shadow: 0 30px 70px -20px rgba(5, 7, 10, .55); }
.modal a.close-modal { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; font-size: 0; }
.modal a.close-modal { width: auto; font-size: 0; }
.modal a.close-modal::before { content: "Закрыть"; font-size: var(--step-small); color: var(--muted); }
.of-modal__title { font-size: var(--step-head); margin-bottom: 16px; }
.jGrowl { position: fixed; z-index: 9999; }
.jGrowl.top-right { top: 16px; right: 16px; }
.jGrowl .jGrowl-notification, .jGrowl .jGrowl-closer { /* taste-skill-ignore: уведомление */ width: 300px; margin-top: 8px; padding: 14px 16px; background: var(--field-1); color: var(--field-1-ink); box-shadow: 0 20px 40px -20px rgba(5, 7, 10, .5); }
.jGrowl .jGrowl-close { float: right; background: none; border: 0; color: inherit; cursor: pointer; }

/* ---------- подвал: одна тихая строка ---------- */
.of-foot { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; gap: 12px 24px; margin-top: 30svh; padding: 0 var(--m) 30px; font-size: var(--step-small); color: var(--muted); }
.of-foot p { margin: 0; }
.of-foot__links { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.of-foot__links a { color: var(--ink); text-decoration: none; }
.of-foot__links a:hover { text-decoration: underline; }
.of-foot__year { text-align: right; }
.of-credits { grid-column: 1 / -1; font-size: var(--step-small); }
.of-credits summary { cursor: pointer; color: var(--muted); }
.of-credits p { margin: 8px 0 0; max-width: 70ch; }

/* ---------- появление частей секций (без скрипта всё видно сразу) ---------- */
.js .of-reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .of-reveal.is-in { opacity: 1; transform: none; }

/* ---------- адаптивность ---------- */
@media (max-width: 1100px) {
	.of-post { grid-template-columns: minmax(0, 1fr) 200px; column-gap: 32px; }
	.of-sections { grid-template-columns: 1fr; }
	.of-sections > .of-group { grid-column: 1; max-width: 680px; }
	.of-about { grid-template-columns: 1fr; gap: 40px; }
	.of-about__facts { order: 2; }
}
@media (max-width: 900px) {
	.of-bar { flex-wrap: wrap; gap: 10px 20px; }
	.of-search { order: 5; flex: 1 1 100%; margin-left: 0; }
	.of-band { grid-template-columns: 1fr 1fr; }
	.of-intro__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
	.of-ticket { grid-template-columns: 1fr; }
	.of-ticket__facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
	.of-nav { order: 4; width: 100%; overflow-x: auto; gap: 18px; }
	.of-nav a { flex: none; }
	.of-hero h1 { font-size: 15vw; }
	.of-intro__lead { font-size: 20px; }
	.of-band { grid-template-columns: 1fr; gap: 14px; }
	.of-run__frames { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 8px; }
	.of-frame img { width: 100%; height: auto; }
	.of-preview { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.of-intro { padding-top: 72px; padding-bottom: 72px; gap: 40px; }
	.of-intro__cols { grid-template-columns: 1fr; }
	.of-sections, .of-about { padding-top: 80px; }
	.of-row { padding: 12px 0; }
	.of-head { margin-bottom: 20px; }
	.of-head__act { width: 100%; }
	.of-head__act .of-btn { width: 100%; }
	.of-table thead { display: none; }
	.of-table, .of-table tbody, .of-table tr, .of-table td { display: block; width: 100%; }
	.of-table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
	.of-table td { border: 0; padding: 0 !important; }
	.of-table .of-trow__main { position: relative; padding-left: 18px !important; }
	.of-trow__state { top: 9px; }
	.of-table .num { display: inline-block; width: auto; font-size: var(--step-small); color: var(--muted); margin: 6px 14px 0 18px; text-align: left; }
	.of-table .num:nth-of-type(2)::after { content: " ответов"; }
	.of-table .num:nth-of-type(3)::after { content: " просмотров"; }
	.of-trow__last { width: auto; margin: 4px 0 0 18px; }
	.of-post { grid-template-columns: 1fr; row-gap: 18px; }
	.of-member { order: -1; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
	.of-member__head { grid-row: span 3; margin: 0; }
	.of-member__facts, .of-member__no, .of-card, .of-car { grid-column: 1 / -1; }
	.of-member__facts { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
	.of-member__facts div { gap: 4px; }
	.of-member__facts dt::after { content: ":"; }
	.of-reply { padding: 20px; }
	.of-foot { grid-template-columns: 1fr; margin-top: 20svh; }
	.of-foot__links { justify-content: flex-start; }
	.of-foot__year { text-align: left; }
	.tborder { display: block; overflow-x: auto; }
}
@media (pointer: coarse) {
	.postbit_buttons > a { min-height: 44px; }
	.pagination a, .pagination_current { min-width: 44px; height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .of-reveal { opacity: 1; transform: none; }
}

/* ===== ссылки в сообщениях: свой стиль форума (у каждого форума сетки свой, не повторять) ===== */
: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: #1f2b4d; font-weight: 500; text-decoration: underline solid #f7941d 1px; text-underline-offset: 5px; }
: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: #05070a; text-decoration: underline solid #f7941d 2px; background: none; }
:is(.post_body, .signature, [class*="-post__body"], [class*="-post__sign"]) a.mycode_url[target="_blank"]::after { content: none; display: none; }
/* ===== конец стиля ссылок ===== */
