/* zaikanie-forum.ru — светлая тема в цветах шапки старого форума (поверх стандартной темы MyBB 1.8) */

/* ---------- основа ---------- */
html { -webkit-text-size-adjust: 100%; }
body {
	background: #e9eef4;
	color: #1c2837;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 14px;
	line-height: 1.5;
}
#container {
	color: #1c2837;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.5;
	min-width: 0;
}
table { color: #1c2837; font-size: 14px; }
.wrapper { width: 94%; min-width: 0; max-width: 1500px; }
a:link, a:visited { color: #225985; text-decoration: none; }
a:hover, a:active { color: #2f7fbf; text-decoration: underline; }
.smalltext { font-size: 12px; }
.largetext { font-size: 16px; font-weight: 600; }
hr { background: #d5dee8; color: #d5dee8; height: 1px; border: 0; }

/* ---------- шапка ---------- */
#logo.zaik_branding {
	background: #2d547d;
	background: linear-gradient(#2f5881, #2b5079);
	border-bottom: 0;
	padding: 0;
}
#logo.zaik_branding img { display: block; max-width: 100%; height: auto; }
#zaik_nav { background: #1d3652; }
#zaik_nav ul.zaik_links { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; float: none; }
#zaik_nav ul.zaik_links li { display: block; margin: 0; }
#zaik_nav ul.zaik_links li a {
	display: block;
	padding: 11px 15px;
	color: #c5d5e2;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	background-image: none;
}
/* 13 вкладок должны помещаться в одну строку и на нешироких экранах */
@media (max-width: 1340px) { #zaik_nav ul.zaik_links li a { padding: 11px 11px; } }
@media (max-width: 1240px) { #zaik_nav ul.zaik_links li a { padding: 11px 8px; } }
@media (max-width: 1140px) { #zaik_nav ul.zaik_links li a { padding: 11px 6px; font-size: 12.5px; } }
@media (max-width: 1060px) { #zaik_nav ul.zaik_links li a { padding: 11px 5px; font-size: 12px; } }
#zaik_nav ul.zaik_links li a:hover { background: #2b4a6c; color: #fff; }
#zaik_nav ul.zaik_links li a.zaik_active { background: #e9eef4; color: #1d3652; }

#panel .upper {
	background: #16293f;
	color: #c5d5e2;
	border-top: 0;
	border-bottom: 0;
	padding: 8px 0;
}
#panel .upper a:link, #panel .upper a:visited, #panel .upper a:hover, #panel .upper a:active { color: #fff; }
/* «Войти», «Регистрация», «Выход» — как вкладки выше и по их левому краю */
#panel .upper .welcome { display: inline-block; padding-left: 15px; font-size: 13px; line-height: 31px; color: #8fa3b8; }
#panel .upper .welcome a:link, #panel .upper .welcome a:visited { color: #c5d5e2; font-size: 13px; font-weight: 600; text-decoration: none; }
#panel .upper .welcome a:hover, #panel .upper .welcome a:active { color: #fff; text-decoration: none; }
#panel .upper a.login, #panel .upper a.lost_password, #panel .upper a.register, #panel .upper a.logout { background: none; padding: 0; margin-left: 18px; font-weight: 600; }
#panel .upper #search input { margin: 0; }
#panel .lower ul.panel_links { padding-left: 8px; }
#panel .lower {
	background: #f6f9fc;
	color: #6b7a8a;
	border-top: 0;
	border-bottom: 1px solid #d5dee8;
	padding: 7px 0;
}
#panel .lower a:link, #panel .lower a:visited, #panel .lower a:hover, #panel .lower a:active { color: #3b5c7d; }
#search input.textbox {
	border: 1px solid #0e1c2c;
	border-radius: 5px 0 0 5px;
	padding: 5px 8px;
	box-shadow: none;
}
#search input.button {
	background: #2f7fbf;
	border: 1px solid #2f7fbf;
	border-radius: 0 5px 5px 0;
	color: #fff;
	padding: 5px 12px;
}
#search input.button:hover { background: #3a8fd3; border-color: #3a8fd3; }

.zaik_banner { text-align: center; margin: 0 0 16px; }
.zaik_banner img { max-width: 100%; height: auto; border: 0; border-radius: 8px; }
.zaik_banner_bottom { margin: 22px 0 0; }
.zaik_banner_bottom img { border: 1px solid #c9d3df; border-radius: 4px; }

#content { background: transparent; padding: 18px 0 26px; }

.navigation { color: #6b7a8a; font-size: 13px; margin-bottom: 4px; }
.navigation .active { color: #1c2837; font-size: 16px; font-weight: 600; }

/* ---------- блоки-таблицы ---------- */
.tborder {
	background: #fff;
	border: 1px solid #d0dae5;
	border-radius: 8px;
	padding: 0;
	box-shadow: 0 1px 3px rgba(29, 54, 82, 0.07);
}
.thead {
	background: #2d547d;
	background: linear-gradient(#2f5881, #2b5079);
	color: #fff;
	border-bottom: 0;
	padding: 11px 14px;
	font-size: 15px;
}
.thead strong { font-weight: 600; }
.thead a:link, .thead a:visited, .thead a:hover, .thead a:active { color: #fff; }
.thead .smalltext { color: #c5d5e2; }
.thead input.textbox, .thead select { border: 1px solid #1d3652; }
.tcat {
	background: #eaf0f6;
	color: #3b5c7d;
	border-top: 0;
	border-bottom: 1px solid #d5dee8;
	padding: 7px 14px;
	font-size: 12px;
}
.tcat a:link, .tcat a:visited { color: #3b5c7d; }
.tcat a:hover, .tcat a:active { color: #1d3652; }
.trow1, .trow2 {
	background: #fff;
	border: 0;
	border-bottom: 1px solid #edf1f5;
	padding: 10px 14px;
}
.trow2 { background: #fafcfd; }
.trow_sep {
	background: #eaf0f6;
	color: #3b5c7d;
	border-bottom: 1px solid #d5dee8;
	padding: 7px 14px;
	font-size: 12px;
	font-weight: 600;
}
.tfoot {
	background: #f3f6f9;
	color: #6b7a8a;
	border-top: 1px solid #e3e9ef;
	padding: 8px 14px;
}
.tfoot a:link, .tfoot a:visited { color: #225985; }
.tfoot a:hover, .tfoot a:active { color: #2f7fbf; }
.tborder tbody tr:last-child > td { border-bottom: 0; }
.tborder tbody tr:last-child > td:first-child { border-bottom-left-radius: 7px; }
.tborder tbody tr:last-child > td:last-child { border-bottom-right-radius: 7px; }
.thead { border-top-left-radius: 7px; border-top-right-radius: 7px; }

/* названия разделов и тем */
td.trow1 > strong > a, td.trow2 > strong > a { font-size: 15px; font-weight: 600; }
.subject_new, .subject_old { font-size: 14px; }
.subject_new a { font-weight: 600; }
.author { color: #6b7a8a; }
.lastpost { line-height: 1.45; }

/* ---------- кнопки и поля ---------- */
a.button:link, a.button:visited, a.button:hover, a.button:active {
	background: #2b5079;
	border: 1px solid #244466;
	border-radius: 6px;
	color: #fff;
	padding: 7px 14px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
}
a.button:hover { background: #34618f; }
button, input.button {
	background: #f3f6f9;
	border: 1px solid #c3cfdb;
	border-radius: 6px;
	color: #1c2837;
	padding: 6px 12px;
	font-family: inherit;
	font-size: 13px;
}
button:hover, input.button:hover { background: #e6edf4; border-color: #aebccb; }
input.textbox, textarea, select {
	background: #fff;
	color: #1c2837;
	border: 1px solid #c3cfdb;
	border-radius: 6px;
	padding: 6px 8px;
	font-family: inherit;
	font-size: 14px;
}
input.textbox:focus, textarea:focus, select:focus { border-color: #2f7fbf; box-shadow: 0 0 0 3px rgba(47, 127, 191, 0.15); }

.pagination { font-size: 12px; }
.pagination a { background: #fff; border: 1px solid #c3cfdb; border-radius: 5px; padding: 4px 9px; }
.pagination a:hover { background: #2b5079; border-color: #2b5079; color: #fff; text-decoration: none; }
.pagination .pagination_current { background: #2b5079; color: #fff; border-radius: 5px; padding: 4px 9px; }

.popup_menu { background: #fff; border: 1px solid #d0dae5; border-radius: 6px; box-shadow: 0 6px 18px rgba(29, 54, 82, 0.15); }
.popup_menu .popup_item:hover { background: #2b5079; color: #fff; }

/* ---------- сообщения ---------- */
.post .post_author {
	background: #f3f6f9;
	border-top: 1px solid #d5dee8;
	border-bottom: 1px solid #e3e9ef;
	padding: 10px 14px;
}
/* автор слева от сообщения, как в IPB */
.post.classic { display: flex; flex-wrap: wrap; padding-top: 0; border-top: 1px solid #d5dee8; }
.post.classic .post_author { float: none; flex: 0 0 176px; width: 176px; margin: 0; padding: 16px 12px; border: 0; border-right: 1px solid #e3e9ef; background: #f6f9fc; box-sizing: content-box; }
.post.classic .post_author div.author_statistics { border-top: 1px solid #e3e9ef; margin-top: 10px; padding: 8px 0 0; text-align: left; }
.post.classic .post_content { float: none; flex: 1 1 0; width: auto; min-width: 0; padding: 14px 20px 8px; }
.post.classic .post_controls { flex: 0 0 100%; box-sizing: border-box; border-top: 1px solid #edf1f5; }
.post .post_author div.author_avatar img { background: #fff; border: 1px solid #d5dee8; border-radius: 6px; padding: 2px; }
.post .post_author span.largetext { font-size: 15px; }
.post .post_author div.author_statistics { color: #6b7a8a; font-size: 12px; }
.post_content { padding: 14px 16px 8px; }
.post .post_head {
	color: #6b7a8a;
	font-size: 12px;
	border-bottom: 1px solid #edf1f5;
	padding-bottom: 6px;
	margin-bottom: 6px;
}
.post .post_head span.post_date { color: #6b7a8a; }
.post_body { font-size: 15px; line-height: 1.6; padding: 10px 0; }
.post_body img { max-width: 100%; height: auto; }
.post_controls { background: #fafcfd; border-bottom: 1px solid #d5dee8; padding: 6px 12px; }
.postbit_buttons > a:link, .postbit_buttons > a:hover, .postbit_buttons > a:visited, .postbit_buttons > a:active {
	background: #fff;
	border: 1px solid #c3cfdb;
	border-radius: 5px;
	color: #3b5c7d;
	padding: 3px 8px;
	font-size: 12px;
}
.postbit_buttons > a:hover { border-color: #2b5079; color: #1d3652; text-decoration: none; }
.signature, .post .signature { border-top: 1px dashed #d5dee8; color: #6b7a8a; }

blockquote {
	background: #f3f6f9;
	border: 0;
	border-left: 3px solid #2f5881;
	border-radius: 0 6px 6px 0;
	margin: 8px 0;
	padding: 10px 14px;
}
blockquote cite { border-bottom: 0; color: #3b5c7d; margin: 0 0 6px; padding: 0; }
.codeblock { background: #f8fafc; border: 1px solid #d5dee8; border-radius: 6px; }

/* скрытый текст [hide] */
/* вход через сервисы */
.zaiksocial { margin: 12px 0 4px; text-align: center; }
.zaiksocial_label { color: #6b7a8a; font-size: 13px; margin-right: 6px; }
a.zaiksocial_btn:link, a.zaiksocial_btn:visited { display: inline-block; margin: 3px 2px; padding: 7px 14px; border: 1px solid #c3cfdb; border-radius: 6px; background: #fff; color: #1c2837; font-size: 13px; font-weight: 600; text-decoration: none; }
a.zaiksocial_btn:hover { border-color: #2b5079; background: #f3f6f9; text-decoration: none; }

.zaikhide { border-left: 3px solid #b8c7d6; border-radius: 0 6px 6px 0; margin: 8px 0; padding: 8px 12px; }
.zaikhide_open { background: #f8fafc; }
.zaikhide_closed { background: #f3f6f9; color: #6b7a8a; }

/* ---------- чат ---------- */
.zaikchat_list { max-height: 440px; overflow-y: auto; }
.zaikchat_archive { max-height: none; }
.zaikchat_row { padding: 7px 0; border-bottom: 1px solid #edf1f5; }
.zaikchat_row:last-child { border-bottom: 0; }
.zaikchat_author { font-weight: 600; }
.zaikchat_date, .zaikchat_edited, a.zaikchat_act:link, a.zaikchat_act:visited { color: #6b7a8a; font-size: 12px; margin-left: 6px; }
a.zaikchat_act { visibility: hidden; }
.zaikchat_row:hover a.zaikchat_act, .zaikchat_row:focus-within a.zaikchat_act { visibility: visible; }
a.zaikchat_act:hover { color: #1d3652; }
.zaikchat_editbox { margin-top: 4px; }
.zaikchat_editbox textarea { display: block; width: 100%; box-sizing: border-box; margin-bottom: 6px; }
@media (hover: none) { a.zaikchat_act { visibility: visible; } }
.zaikchat_text { margin-top: 2px; overflow-wrap: anywhere; }
.zaikchat_text img { max-width: 100%; height: auto; }
a.zaikyt { display: inline-block; position: relative; margin: 4px 0 2px; border-radius: 8px; overflow: hidden; line-height: 0; background: #16293f; max-width: 100%; }
a.zaikyt img { display: block; width: 320px; max-width: 100%; height: auto; }
a.zaikyt .zaikyt_play { position: absolute; left: 50%; top: 50%; width: 58px; height: 40px; margin: -20px 0 0 -29px; border-radius: 10px; background: rgba(22, 41, 63, 0.82); }
a.zaikyt .zaikyt_play:after { content: ""; position: absolute; left: 23px; top: 11px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; }
a.zaikyt:hover .zaikyt_play { background: #d42b2b; }
iframe.zaikyt_frame { display: block; width: 560px; max-width: 100%; aspect-ratio: 16 / 9; height: auto; margin: 4px 0 2px; border: 0; border-radius: 8px; background: #000; }
.zaikchat_form { display: flex; gap: 8px; }
.zaikchat_form input.textbox { flex: 1; min-width: 0; }

/* ---------- подвал ---------- */
#footer .upper { background: #1d3652; border: 0; color: #c5d5e2; padding: 10px 0; }
#footer .upper a:link, #footer .upper a:visited, #footer .upper a:hover, #footer .upper a:active { color: #c5d5e2; }
#footer .lower { background: #16293f; color: #8fa3b8; padding: 10px 0 14px; }
#footer .lower a:link, #footer .lower a:visited { color: #c5d5e2; font-weight: 600; }
#footer .lower a:hover, #footer .lower a:active { color: #fff; }
#footer .upper .language select, #footer .upper .theme select { border: 1px solid #0e1c2c; }

/* ---------- телефоны и планшеты ---------- */
@media (max-width: 900px) {
	.wrapper { width: auto; margin: 0 10px; }
	#content { padding: 12px 0 18px; }
	#zaik_nav ul.zaik_links li a { padding: 9px 11px; }
	#panel .upper { padding: 8px 0; }
	#panel .upper .welcome { float: none; display: block; padding-left: 11px; }
	#search { float: none !important; margin: 0 0 8px; }
	#search input.textbox { width: 60%; }
	form #message, textarea { width: 100% !important; box-sizing: border-box; }
	/* в списках разделов и тем остаются название и последнее сообщение */
	td.tcat[width="85"],
	td.trow1[align="center"][style*="nowrap"],
	td.trow2[align="center"][style*="nowrap"] { display: none; }
	/* список тем: без ответов, просмотров и рейтинга */
	td.tcat[align="center"][width="7%"],
	td.tcat[align="center"][width="80"],
	td[class*="forumdisplay_"][align="center"]:not([width]) { display: none; }
	td[class*="forumdisplay_"][style*="text-align: right"] { white-space: normal !important; font-size: 12px; }
	.post.classic { display: block; }
	.post.classic .post_author { float: none; width: auto; margin: 0; padding: 10px 12px; border-right: 0; border-bottom: 1px solid #e3e9ef; text-align: left; overflow: hidden; }
	.post.classic .post_author div.author_avatar { float: left; margin: 0 10px 0 0; }
	.post.classic .post_author div.author_avatar img { max-width: 48px; max-height: 48px; }
	.post.classic .post_author div.author_information { text-align: left; }
	.post.classic .post_content { padding: 12px 12px 6px; }
	.post .post_author div.author_statistics { display: none; }
	.post_body { font-size: 16px; }
	#footer .upper .language, #footer .upper .theme { float: none; margin: 0 0 8px; }
}
@media (max-width: 560px) {
	body, #container, table { font-size: 14px; }
	.thead { font-size: 14px; padding: 10px 12px; }
	.trow1, .trow2 { padding: 9px 10px; }
	td.tcat[width="200"],
	td.trow1[align="right"][style*="nowrap"],
	td.trow2[align="right"][style*="nowrap"] { display: none; }
	td.tcat[align="right"][width="20%"],
	td[class*="forumdisplay_"][style*="text-align: right"] { display: none; }
	.post_content { padding: 12px 12px 6px; }
}

/* удалённые сообщения: заглушки скрыты, модератор открывает их ссылкой под темой */
.deleted_post_collapsed { display: none; }
body.zaik-show-deleted .deleted_post_collapsed { display: block; }
.zaik_deleted_toggle { padding: 7px 14px; text-align: right; font-size: 12px; background: #f5f8fb; border-top: 1px solid #dde5ee; }
.zaik_deleted_toggle a { color: #6b7c8f; }

/* главная: список разделов и боковая колонка */
.zaik_cols { display: flex; gap: 16px; align-items: flex-start; }
.zaik_cols_main { flex: 1 1 auto; min-width: 0; }
.zaik_cols_side { flex: 0 0 290px; min-width: 0; }
.zaik_cols_side:empty { display: none; }
.zaikside_block { margin-bottom: 14px; }
.zaikside_block .trow1 { padding: 4px 12px 8px; }
.zaikside_row { padding: 7px 0; border-bottom: 1px solid #e6ecf2; line-height: 1.3; }
.zaikside_row:last-child { border-bottom: 0; }
.zaikside_row a { font-weight: 600; font-size: 13px; }
.zaikside_row .smalltext { color: #6b7c8f; margin-top: 2px; }
.zaikside_row .smalltext a { font-weight: 400; font-size: inherit; }
.zaikside_album { display: flex; gap: 10px; align-items: center; padding: 7px 0; font-size: 13px; font-weight: 600; }
.zaikside_album img { width: 64px; height: 48px; object-fit: cover; border-radius: 3px; flex: none; }
.zaikside_all { padding-top: 6px; text-align: right; }
.zaikside_vk .trow1 { padding: 8px; }
.zaikside_block .ya-share2 { padding-top: 8px; }
@media (max-width: 900px) { .zaik_cols { display: block; } .zaik_cols_side { margin-top: 14px; } }
/* теги тем */
.zaiktags { padding: 8px 14px; background: #f5f8fb; border-bottom: 1px solid #dde5ee; font-size: 13px; line-height: 2; }
a.zaiktag { display: inline-block; padding: 0 9px; margin: 0 2px; line-height: 1.7; background: #e3ecf5; border-radius: 10px; color: #225985; white-space: nowrap; }
a.zaiktag:hover { background: #d3e1ef; text-decoration: none; }
.zaiktag_n { color: #7b8ea3; font-size: 11px; }
.zaiktags form { margin-top: 6px; }
.zaiktags_edit { margin-left: 8px; color: #6b7c8f; }
.zaiktags_cloud { line-height: 2.2; }
/* статусы участников */
.zaikstatus_row { padding: 8px 0; border-bottom: 1px solid #e6ecf2; }
.zaikstatus_row:last-child { border-bottom: 0; }
.zaikstatus_meta .smalltext { color: #6b7c8f; margin-left: 6px; }
.zaikstatus_text { margin-top: 3px; overflow-wrap: anywhere; }
.zaikstatus_form { display: flex; gap: 8px; margin-bottom: 8px; }
.zaikstatus_form .textbox { flex: 1; min-width: 0; }
.zaikstatus_del { display: inline; margin-left: 8px; }
.zaikstatus_del input { border: 0; background: none; padding: 0; color: #9aa9b8; font-size: 11px; cursor: pointer; }
.zaikstatus_del input:hover { color: #c0392b; }
.zaikstatus_more { padding-top: 6px; text-align: right; }
/* проверка «Я не робот» (ALTCHA) */
.zaikaltcha { display: flex; justify-content: center; margin: 12px 0; }
.zaikaltcha altcha-widget { display: block; max-width: 100%; }
