/* ============================================================
   AUDI TT CLUB — autoline theme (DLE 20)
   Плиточный ультрасовременный адаптивный шаблон
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
	--bg: #0b0d11;
	--bg-2: #10131a;
	--card: #14171e;
	--card-2: #1a1e27;
	--line: #262b37;
	--line-2: #333a49;
	--text: #edf0f6;
	--muted: #96a0b5;
	--accent: #e12832;
	--accent-hover: #ef3a44;
	--accent-2: #ff6a3d;
	--accent-soft: rgba(225, 40, 50, .14);
	--ok: #70bb39;
	--r: 16px;
	--r-sm: 12px;
	--shadow: 0 16px 44px rgba(0, 0, 0, .38);
	--header-h: 68px;
}

html[data-theme="light"] {
	--bg: #f2f4f8;
	--bg-2: #e9edf3;
	--card: #ffffff;
	--card-2: #f3f5f9;
	--line: #e3e7ee;
	--line-2: #cfd6e2;
	--text: #171a21;
	--muted: #5f6a7d;
	--accent-soft: rgba(225, 40, 50, .09);
	--shadow: 0 16px 44px rgba(30, 40, 60, .12);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 15.5px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

body.drawer-open { overflow: hidden; }

img { max-width: 100%; height: auto; border: 0; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.3; }
ul, ol { margin: 0; padding: 0; }
hr { border: 0; border-top: 1px solid var(--line); }
table { border-collapse: collapse; }
button, input, select, textarea { font-family: inherit; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.icon { width: 18px; height: 18px; fill: currentColor; flex: none; }
.title_hide { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grey { color: var(--muted); }
.clrfix::after { content: ""; display: table; clear: both; }

::-webkit-scrollbar { width: 10px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 3. Shell / layout ---------- */
.shell {
	width: min(1440px, 100% - clamp(28px, 5vw, 72px));
	margin-inline: auto;
}

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: clamp(20px, 3vw, 40px);
	align-items: start;
	padding-block: clamp(14px, 2.6vw, 30px) 30px;
}

.page-head { margin: 6px 0 18px; }
.page-title {
	font-size: clamp(22px, 3.4vw, 34px);
	font-weight: 800;
	letter-spacing: -.02em;
	line-height: 1.2;
}
.page-description { color: var(--muted); margin-top: 8px; }

/* ---------- 4. Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(11, 13, 17, .86);
	-webkit-backdrop-filter: blur(14px) saturate(1.4);
	backdrop-filter: blur(14px) saturate(1.4);
	border-bottom: 1px solid var(--line);
	transition: box-shadow .25s;
}
html[data-theme="light"] .site-header { background: rgba(242, 244, 248, .88); }
.site-header.scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }

.header-in {
	display: flex;
	align-items: center;
	gap: 16px;
	height: var(--header-h);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 11px;
	flex: none;
}
.logo-mark { width: 74px; height: 24px; color: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text b { font-size: 15.5px; font-weight: 900; letter-spacing: .10em; }
.logo-text i {
	font-style: normal;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--muted);
}

.main-nav {
	display: flex;
	align-items: center;
	gap: 2px;
	margin-inline: auto;
}
.main-nav a {
	padding: 9px 13px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	transition: color .2s, background .2s;
}
.main-nav a:hover { color: var(--text); background: var(--card); }
.main-nav .nav-forum {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #fff;
	background: linear-gradient(135deg, var(--accent), #ff5a3d);
	padding: 9px 16px;
}
.main-nav .nav-forum .icon { width: 14px; height: 14px; }
.main-nav .nav-forum:hover { color: #fff; filter: brightness(1.08); background: linear-gradient(135deg, var(--accent-hover), #ff6a4d); }

.header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
	flex: none;
	margin-left: auto;
}

.burger {
	display: none;
	width: 42px;
	height: 42px;
	flex: none;
	border: 1px solid var(--line);
	background: var(--card);
	border-radius: 12px;
	cursor: pointer;
	padding: 0 10px;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
}
.burger span {
	display: block;
	height: 2px;
	border-radius: 2px;
	background: var(--text);
	transition: transform .25s, opacity .25s;
}
body.drawer-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.drawer-open .burger span:nth-child(2) { opacity: 0; }
body.drawer-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* category chips strip */
.cat-strip {
	position: relative;
	border-top: 1px solid var(--line);
}
.cat-scroll { overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.cat-scroll::-webkit-scrollbar { display: none; }
.cat-strip::before, .cat-strip::after {
	content: "";
	position: absolute;
	top: 0;
	bottom: 0;
	width: 56px;
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s;
	z-index: 2;
}
.cat-strip::before {
	left: 0;
	background: linear-gradient(90deg, var(--bg) 12%, transparent);
}
.cat-strip::after {
	right: 0;
	background: linear-gradient(270deg, var(--bg) 12%, transparent);
}
.cat-strip.masked-l::before { opacity: 1; }
.cat-strip.masked-r::after { opacity: 1; }
.cat-chips {
	display: flex;
	gap: 8px;
	list-style: none;
	padding: 9px 0;
	width: max-content;
	min-width: 100%;
}
.cat-chips a {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 13px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	transition: color .2s, border-color .2s;
}
.cat-chips a:hover { color: var(--accent); border-color: var(--accent); }
.cat-chips .cur a {
	background: var(--accent);
	border-color: var(--accent);
	color: #fff;
}

/* on desktop chips wrap and fit the width without scrolling */
@media (min-width: 981px) {
	.cat-chips {
		flex-wrap: wrap;
		width: 100%;
		min-width: 0;
		padding: 8px 0;
		gap: 6px 8px;
	}
	.cat-chips a { padding: 5px 13px; font-size: 12.5px; }
	.cat-strip::before, .cat-strip::after { display: none; }
}

/* header search panel */
.header-search { display: none; border-top: 1px solid var(--line); }
.site-header.search-open .header-search { display: block; }
.header-search form {
	display: flex;
	gap: 10px;
	align-items: center;
	padding: 14px 0;
	flex-wrap: wrap;
}
.header-search input[type="search"] {
	flex: 1 1 240px;
	height: 46px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 12px;
	color: var(--text);
	padding: 0 16px;
	font-size: 15px;
	outline: none;
}
.header-search input[type="search"]:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.q-adv { font-size: 13.5px; color: var(--muted); }
.q-adv:hover { color: var(--accent); }

/* header buttons */
.hbtn {
	height: 42px;
	min-width: 42px;
	padding: 0 11px;
	border-radius: 12px;
	border: 1px solid var(--line);
	background: var(--card);
	color: var(--text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	cursor: pointer;
	font: inherit;
	font-weight: 600;
	font-size: 14px;
	position: relative;
	transition: border-color .2s, color .2s;
}
.hbtn:hover { border-color: var(--accent); color: var(--accent); }
.hbtn .hbtn-label { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

#theme-toggle .icon-sun { display: none; }
#theme-toggle .icon-moon { display: block; }
html[data-theme="light"] #theme-toggle .icon-sun { display: block; }
html[data-theme="light"] #theme-toggle .icon-moon { display: none; }

/* user dropdown */
.userbox { position: relative; }
.hbtn-user.has-avatar { padding: 0 12px 0 8px; }
.hbtn-user .avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: var(--card-2);
	flex: none;
}
.pm-badge {
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
	border-radius: 999px;
	padding: 3px 7px;
}
.userbox.open .hbtn-user { border-color: var(--accent); }
.dropdown-panel {
	position: absolute;
	right: 0;
	top: calc(100% + 10px);
	width: min(330px, calc(100vw - 36px));
	background: var(--card);
	border: 1px solid var(--line-2);
	border-radius: 16px;
	padding: 14px;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .2s, transform .2s, visibility .2s;
	z-index: 120;
}
.userbox.open .dropdown-panel { opacity: 1; visibility: visible; transform: none; }
.drop-admin a { display: block; padding: 10px 12px; border-radius: 10px; color: var(--accent); font-weight: 700; font-size: 14px; }
.drop-admin a:hover { background: var(--accent-soft); }
.drop-menu { list-style: none; display: grid; gap: 2px; margin: 8px 0; }
.drop-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 10px 12px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
}
.drop-menu a:hover { background: var(--card-2); }
.drop-menu .grey { font-size: 13px; }
.drop-foot { border-top: 1px solid var(--line); padding-top: 12px; display: flex; justify-content: flex-end; }
.login-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 14px;
	font-size: 13.5px;
}
.login-foot a { color: var(--muted); }
.login-foot a:hover { color: var(--accent); }
.login-foot a b { color: var(--text); }

/* ---------- 5. Mobile drawer ---------- */
.drawer-overlay {
	position: fixed;
	inset: 0;
	background: rgba(5, 7, 10, .6);
	opacity: 0;
	visibility: hidden;
	transition: .25s;
	z-index: 130;
}
body.drawer-open .drawer-overlay { opacity: 1; visibility: visible; }
.mobile-drawer {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(340px, 88vw);
	background: var(--bg-2);
	border-left: 1px solid var(--line);
	z-index: 140;
	transform: translateX(105%);
	transition: transform .3s cubic-bezier(.4, 0, .2, 1);
	overflow-y: auto;
	padding: calc(var(--header-h) + 10px) 20px 30px;
}
body.drawer-open .mobile-drawer { transform: none; }
.drawer-nav { display: grid; gap: 4px; margin-bottom: 20px; }
.drawer-nav a {
	padding: 12px 14px;
	border-radius: 12px;
	font-size: 16px;
	font-weight: 600;
}
.drawer-nav a:hover { background: var(--card); color: var(--accent); }
.drawer-cats { border-top: 1px solid var(--line); padding-top: 16px; }
.drawer-cats .cat-chips { flex-wrap: wrap; width: 100%; }
.drawer-cats .cat-chips li { margin: 0 0 4px; }

/* ---------- 6. Speedbar ---------- */
.speedbar-in {
	padding: 14px 0 0;
	font-size: 13px;
	color: var(--muted);
	line-height: 1.5;
}
.speedbar-in a { color: var(--muted); }
.speedbar-in a:hover { color: var(--accent); }
.speedbar-in span { margin: 0 2px; }

/* ---------- 7. Cards / tiles ---------- */
.tiles {
	display: grid;
	gap: clamp(14px, 1.8vw, 20px);
	grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
}
.tiles-4 { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
.tiles-3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover {
	transform: translateY(-4px);
	border-color: var(--line-2);
	box-shadow: var(--shadow);
}
.card-media {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--card-2);
}
.card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .5s ease;
}
.card:hover .card-media img { transform: scale(1.06); }
.card-body {
	display: flex;
	flex-direction: column;
	gap: 9px;
	padding: 15px 17px 17px;
	flex: 1;
}
.card-cat {
	font-size: 11.5px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .07em;
	color: var(--accent);
	line-height: 1.5;
}
.card-cat a { color: var(--accent); }
.card-cat a:hover { text-decoration: underline; }
.card-title { font-size: 16.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.01em; }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
	color: var(--muted);
	font-size: 13.5px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.card-meta {
	margin-top: auto;
	padding-top: 4px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--muted);
	font-weight: 500;
}
.card-meta .icon { width: 14px; height: 14px; margin-right: 4px; vertical-align: -2px; }
.card-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: currentColor; opacity: .5; }
.card-meta.light { color: rgba(255, 255, 255, .85); }
.card-meta .m-edit { color: var(--accent); cursor: pointer; }
.fixed-chip {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	background: var(--accent);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	padding: 4px 11px;
	border-radius: 999px;
	letter-spacing: .04em;
}

.card-row .card-body { padding: 18px 20px; }

/* pagination and messages inside the tile grid span the full row */
.tiles .pager, .tiles .alert, .tiles .splitnewsnavigation {
	grid-column: 1 / -1;
}
.tiles .pager { margin-top: 12px; }

/* ---------- 8. Hero ---------- */
.hero { margin-top: clamp(14px, 2.4vw, 26px); }
.hero-grid {
	display: grid;
	grid-template-columns: 2.05fr 1fr;
	gap: clamp(14px, 1.8vw, 20px);
}
.hero-card {
	position: relative;
	border-radius: var(--r);
	overflow: hidden;
	min-height: 430px;
	background: var(--card);
	border: 1px solid var(--line);
	transition: transform .25s, box-shadow .25s;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.hero-card-media { position: absolute; inset: 0; display: block; }
.hero-card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .6s ease;
}
.hero-card:hover .hero-card-media img { transform: scale(1.05); }
.hero-card-overlay {
	position: absolute;
	inset: auto 0 0 0;
	padding: clamp(18px, 3vw, 30px);
	background: linear-gradient(180deg, rgba(6, 8, 11, 0) 0%, rgba(6, 8, 11, .55) 34%, rgba(6, 8, 11, .92) 100%);
	color: #fff;
	display: grid;
	gap: 10px;
}
.hero-card-overlay .card-cat.light a { color: #ffb4b8; }
.hero-card-title { font-size: clamp(19px, 2.4vw, 29px); font-weight: 800; line-height: 1.22; letter-spacing: -.015em; }
.hero-card-title a:hover { text-decoration: underline; }
.hero-card-excerpt {
	color: rgba(255, 255, 255, .82);
	font-size: 14px;
	line-height: 1.6;
	max-width: 640px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.hero-side { display: grid; gap: clamp(14px, 1.8vw, 20px); align-content: stretch; }
.hero-mini {
	display: grid;
	grid-template-columns: 132px 1fr;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	overflow: hidden;
	flex: 1;
	transition: transform .25s, border-color .25s, box-shadow .25s;
}
.hero-mini:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.hero-mini-media { display: block; overflow: hidden; background: var(--card-2); }
.hero-mini-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.hero-mini:hover .hero-mini-media img { transform: scale(1.06); }
.hero-mini-body {
	padding: 13px 15px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	justify-content: center;
	min-width: 0;
}
.hero-mini-body h3 { font-size: 14.5px; font-weight: 700; line-height: 1.4; }
.hero-mini-body h3 a:hover { color: var(--accent); }
.hero-mini-body .card-meta { margin-top: 0; }

/* ---------- 9. Sections ---------- */
.sec { margin-top: clamp(30px, 4.4vw, 48px); }
.sec-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: clamp(14px, 2vw, 18px);
}
.sec-title {
	font-size: clamp(18px, 2.3vw, 24px);
	font-weight: 800;
	letter-spacing: -.015em;
	position: relative;
	padding-left: 15px;
}
.sec-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 5px;
	bottom: 5px;
	width: 4px;
	border-radius: 4px;
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.sec-title .count { color: var(--muted); font-weight: 600; font-size: .72em; }
.sec-all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
	white-space: nowrap;
	transition: color .2s;
}
.sec-all .icon { width: 14px; height: 14px; }
.sec-all:hover { color: var(--accent); }

/* ---------- 10. Sort ---------- */
.sortbar { margin-bottom: 18px; }
.sort select, .sortbar select {
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 10px;
	padding: 9px 14px;
	font-size: 14px;
	cursor: pointer;
}

/* ---------- 11. Sidebar ---------- */
.side-col { position: sticky; top: calc(var(--header-h) + 20px); }
.side-block {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 18px;
	margin-bottom: 20px;
}
.side-block:last-child { margin-bottom: 0; }
.side-title {
	font-size: 15px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: .08em;
	margin-bottom: 14px;
	position: relative;
	padding-left: 13px;
}
.side-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	bottom: 3px;
	width: 3px;
	border-radius: 3px;
	background: linear-gradient(180deg, var(--accent), var(--accent-2));
}

.toplist { list-style: none; display: grid; }
.top-item a {
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 12px;
	padding: 9px;
	border-radius: 12px;
	transition: background .2s;
}
.top-item a:hover { background: var(--card-2); }
.top-item-media { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--bg-2); }
.top-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.top-item-body { display: flex; flex-direction: column; gap: 5px; justify-content: center; min-width: 0; }
.top-item-body b { font-size: 13.5px; font-weight: 600; line-height: 1.45; }
.top-item-body time { font-size: 12px; color: var(--muted); }

.side-mini { display: grid; gap: 6px; }
.mini-row {
	display: grid;
	grid-template-columns: 92px 1fr;
	gap: 12px;
	padding: 6px;
	border-radius: 12px;
	transition: background .2s;
}
.mini-row:hover { background: var(--card-2); }
.mini-row-media { display: block; aspect-ratio: 4 / 3; border-radius: 9px; overflow: hidden; background: var(--bg-2); }
.mini-row-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mini-row-body { display: flex; flex-direction: column; gap: 4px; justify-content: center; min-width: 0; }
.mini-row-body time { font-size: 11.5px; color: var(--muted); }
.mini-row-body h4 { font-size: 13.5px; font-weight: 600; line-height: 1.42; }
.mini-row-body h4 a:hover { color: var(--accent); }
.mini-row-body .card-meta { margin: 0; font-size: 11.5px; gap: 8px; }
.mini-row-body .card-meta .icon { width: 12px; height: 12px; }

.side-cta {
	background: linear-gradient(135deg, rgba(225, 40, 50, .16), rgba(255, 106, 61, .08));
	border-color: rgba(225, 40, 50, .38);
}
.side-cta p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }

.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.photo-tile {
	position: relative;
	display: block;
	aspect-ratio: 1;
	border-radius: 9px;
	overflow: hidden;
	background: var(--bg-2);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s; }
.photo-tile:hover img { transform: scale(1.08); }
.photo-tile-date {
	position: absolute;
	left: 5px;
	bottom: 5px;
	font-size: 10px;
	font-weight: 700;
	color: #fff;
	background: rgba(8, 10, 14, .68);
	padding: 2px 8px;
	border-radius: 999px;
}

.side-tags { line-height: 1; }
.side-tags a {
	display: inline-block;
	margin: 0 6px 8px 0;
	padding: 6px 12px;
	background: var(--card-2);
	border: 1px solid var(--line);
	border-radius: 999px;
	font-size: 12.5px;
	color: var(--muted);
	transition: color .2s, border-color .2s;
}
.side-tags a:hover { color: var(--accent); border-color: var(--accent); }
.side-tags.big a { font-size: 14px; padding: 9px 16px; margin-right: 8px; margin-bottom: 10px; }

/* ---------- 12. Article ---------- */
.article {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: clamp(18px, 3.4vw, 42px);
}
.article-head { margin-bottom: 22px; display: grid; gap: 12px; }
.article-title {
	font-size: clamp(23px, 4vw, 40px);
	font-weight: 800;
	line-height: 1.18;
	letter-spacing: -.02em;
}
.article-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 16px;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 500;
}
.article-meta .icon { width: 14px; height: 14px; margin-right: 5px; vertical-align: -2px; }
.article-meta .m-edit, .article-meta .m-flag, .article-meta .fav-btn {
	color: var(--accent);
	cursor: pointer;
}
.article-meta .m-edit:hover, .article-meta .m-flag:hover, .article-meta .fav-btn:hover { text-decoration: underline; }
.static-edit { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 13.5px; margin-bottom: 12px; cursor: pointer; }

.article-body {
	font-size: 16.5px;
	line-height: 1.78;
	color: var(--text);
	word-wrap: break-word;
	overflow-wrap: break-word;
}
.article-body > *:first-child { margin-top: 0; }
.article-body img {
	height: auto;
	margin: 12px 18px;
	border-radius: 12px;
}
.article-body img[style*="left"] { margin: 6px 20px 12px 0; }
.article-body img[style*="right"] { margin: 6px 0 12px 20px; }
.article-body a { color: var(--accent); }
.article-body a:hover { text-decoration: underline; }
.article-body h2, .article-body h3, .article-body h4 {
	margin: 1.5em 0 .55em;
	line-height: 1.3;
	letter-spacing: -.01em;
}
.article-body h2 { font-size: 24px; }
.article-body h3 { font-size: 20px; }
.article-body h4 { font-size: 17px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 1em; }
.article-body li { margin-bottom: .35em; }
.article-body blockquote {
	margin: 1.2em 0;
	padding: 14px 20px;
	border-left: 4px solid var(--accent);
	background: var(--card-2);
	border-radius: 0 12px 12px 0;
	color: var(--muted);
}
.article-body table { width: 100%; margin: 1.2em 0; font-size: 14.5px; }
.article-body table td, .article-body table th { border: 1px solid var(--line); padding: 9px 12px; }
.article-body iframe { max-width: 100%; border-radius: 12px; }
.article-body .video-responsive, .article-body video { max-width: 100%; border-radius: 12px; }

.editdate {
	margin-top: 20px;
	padding: 12px 16px;
	font-size: 13px;
	color: var(--muted);
	background: var(--card-2);
	border-left: 3px solid var(--accent);
	border-radius: 0 10px 10px 0;
}

/* attachments */
.attachment {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 12px 0;
	padding: 12px 16px;
	background: var(--card-2);
	border: 1px solid var(--line);
	border-radius: 12px;
	font-size: 14px;
}
.attachment a { color: var(--accent); font-weight: 600; }

/* ---------- 13. Rating / share / next-prev ---------- */
.rate-box {
	margin-top: 26px;
	padding: 14px 18px;
	background: var(--card-2);
	border-radius: 14px;
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}
.rate_like { display: flex; align-items: center; gap: 14px; }
.rate_like-dislike { display: flex; align-items: center; gap: 10px; }
.rate-num { font-weight: 800; font-size: 18px; }
.rate-num .ratingminus { color: var(--muted); }
.rate-num .ratingplus { color: var(--ok); }
.rate-box .icon { width: 16px; height: 16px; }

.share-row {
	margin-top: 20px;
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.share-label { font-size: 13.5px; color: var(--muted); font-weight: 600; margin-right: 4px; }
.shr {
	padding: 9px 17px;
	border-radius: 999px;
	border: 1px solid var(--line);
	background: var(--card-2);
	color: var(--text);
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
	transition: border-color .2s, color .2s;
}
.shr:hover { border-color: var(--accent); color: var(--accent); }
.shr.shr-copy.copied { border-color: var(--ok); color: var(--ok); }

.next-prev {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
	margin-top: 20px;
}
.np {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 15px 18px;
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	color: var(--muted);
	font-size: 13.5px;
	font-weight: 600;
	transition: border-color .2s, color .2s;
}
.np:hover { border-color: var(--accent); color: var(--text); }
.np .icon { width: 15px; height: 15px; }
.np-next { justify-content: flex-end; text-align: right; }

/* ---------- 14. Comments ---------- */
.comments-sec { margin-top: clamp(28px, 4vw, 44px); }
.com-list { display: grid; gap: 13px; }
.comment {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 16px 18px;
	display: grid;
	gap: 12px;
}
.com_info { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar .cover {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: var(--card-2);
	display: block;
	overflow: hidden;
	text-indent: -9999px;
	font-size: 0;
}
.com_user { display: grid; gap: 2px; min-width: 0; }
.com_user .name { font-weight: 700; font-size: 14.5px; }
.com_user .grey { font-size: 12.5px; }
.com_info .meta {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 13px;
	color: var(--muted);
	flex-wrap: wrap;
}
.com_info .meta .icon { width: 14px; height: 14px; vertical-align: -2px; }
.com_info .meta li { list-style: none; display: inline-flex; align-items: center; gap: 5px; }
.com_info .meta .edit_btn, .com_info .meta .del, .com_info .meta .complaint, .com_info .meta .reply { cursor: pointer; }
.com_info .meta .edit_btn:hover, .com_info .meta .del:hover, .com_info .meta .complaint:hover, .com_info .meta .reply:hover { color: var(--accent); }
.com_info .rate { display: flex; align-items: center; gap: 10px; }
.com_info .rate_like-dislike, .com_info .rate_like { display: flex; align-items: center; gap: 8px; }
.com_content .text { font-size: 15px; line-height: 1.7; overflow-wrap: break-word; }
.com_content .text img { border-radius: 10px; }
.com_content .title { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.com_content .signature { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.com_online { color: var(--ok); font-size: 11.5px; font-weight: 700; }

.addcomment .plus_icon { display: none; }
.addcomment h3 { font-size: 18px; font-weight: 800; margin-bottom: 16px; }

/* ---------- 15. Forms ---------- */
.ui-form { list-style: none; display: grid; gap: 16px; }
.form-group label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	color: var(--muted);
	margin-bottom: 7px;
	text-transform: uppercase;
	letter-spacing: .04em;
}
.form-group label.imp::after { content: " *"; color: var(--accent); }
.form-group .wide { width: 100%; }
.form-sep { border-top: 1px dashed var(--line); padding: 0; margin: 4px 0; }
.combo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form_submit { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

input[type="text"], input[type="password"], input[type="email"],
input[type="search"], input[type="url"], input[type="tel"], input[type="number"],
input[type="date"], textarea, select,
.f_input, .f_textarea, .ta_val {
	background: var(--bg-2);
	border: 1px solid var(--line);
	color: var(--text);
	border-radius: 12px;
	padding: 12px 15px;
	font-size: 15px;
	font-family: inherit;
	line-height: 1.4;
	outline: none;
	transition: border-color .2s, box-shadow .2s;
	max-width: 100%;
}
input:focus, textarea:focus, select:focus,
.f_input:focus, .f_textarea:focus {
	border-color: var(--accent);
	box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { min-height: 110px; resize: vertical; }
::placeholder { color: var(--muted); opacity: .8; }

.checkbox { display: flex; align-items: flex-start; gap: 9px; font-size: 14px; color: var(--muted); }
input[type="checkbox"], input[type="radio"] { accent-color: var(--accent); width: 17px; height: 17px; flex: none; margin-top: 2px; }

.c-captcha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.c-captcha img { border-radius: 10px; height: 48px; }
.c-captcha input { flex: 1 1 150px; }

fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
fieldset legend { font-size: 13px; font-weight: 700; color: var(--muted); padding: 0 8px; }

.bbcodes {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	border-radius: 12px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	background: var(--accent);
	color: #fff;
	transition: background .2s;
}
.bbcodes:hover { background: var(--accent-hover); }

/* ---------- 16. Buttons ---------- */
.btn, .btn-border {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	border: 1px solid transparent;
	cursor: pointer;
	border-radius: 12px;
	padding: 10px 20px;
	font: inherit;
	font-weight: 700;
	font-size: 14px;
	line-height: 1.2;
	text-align: center;
	transition: background .2s, border-color .2s, color .2s;
	white-space: nowrap;
}
.btn { background: var(--accent); color: #fff; }
.btn:hover { background: var(--accent-hover); }
.btn .icon { width: 15px; height: 15px; }
.btn-big { padding: 13px 26px; font-size: 15px; border-radius: 14px; }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
.btn-border { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-border:hover { border-color: var(--accent); color: var(--accent); }
.btn.wide, .btn-border.wide { width: 100%; }
.btn.disabled, .btn[disabled] { opacity: .55; pointer-events: none; }

/* ---------- 17. Pager ---------- */
.pager {
	margin: 28px 0 6px;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 7px;
	flex-wrap: wrap;
}
.pager a, .pager span {
	min-width: 40px;
	height: 40px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	border-radius: 11px;
	background: var(--card);
	border: 1px solid var(--line);
	color: var(--muted);
	font-weight: 700;
	font-size: 14px;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager span { background: var(--accent); border-color: var(--accent); color: #fff; }
.pager span.nav_ext { background: transparent; border-color: transparent; color: var(--muted); }
.pager .pg-nav { padding: 0; }
.pager .pg-nav .icon { width: 15px; height: 15px; }
.pager .pg-nav span { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 0; color: inherit; padding: 0; }

/* ---------- 18. Alert / box ---------- */
.alert {
	background: var(--accent-soft);
	border: 1px solid rgba(225, 40, 50, .38);
	border-radius: 14px;
	padding: 16px 20px;
	margin-bottom: 20px;
}
.alert b { color: var(--accent); display: block; margin-bottom: 4px; font-size: 15px; }

.box {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: clamp(18px, 3vw, 32px);
	margin-bottom: 20px;
}
.box .title { font-weight: 800; }
.box_in { min-width: 0; }
.heading { font-weight: 800; }
.berrors { border-color: rgba(225, 40, 50, .38); }
.berrors b { color: var(--accent); }

/* ---------- 19. User info ---------- */
.usinf { list-style: none; display: grid; }
.usinf li {
	display: grid;
	grid-template-columns: 230px 1fr;
	gap: 14px;
	padding: 11px 0;
	border-bottom: 1px dashed var(--line);
	font-size: 14.5px;
}
.usinf li:last-child { border-bottom: 0; }
.userinfo_top {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}
.userinfo_top .avatar .cover {
	width: 84px;
	height: 84px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: var(--card-2);
	display: block;
	text-indent: -9999px;
	font-size: 0;
	border: 3px solid var(--accent);
}
.user_tab {
	display: flex;
	gap: 4px;
	list-style: none;
	flex-wrap: wrap;
	flex: 1;
}
.user_tab li a, .user_tab li .active {
	display: block;
	padding: 9px 16px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	color: var(--muted);
	cursor: pointer;
}
.user_tab li a:hover { color: var(--text); }
.user_tab li.active a, .user_tab li a.active { background: var(--accent); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }
.userinfo { display: flex; gap: 16px; align-items: flex-start; }
.userinfo .avatar .cover { width: 60px; height: 60px; border-radius: 50%; background-size: cover; display: block; background-color: var(--card-2); }
.userinfo ul { list-style: none; display: grid; gap: 4px; font-size: 13.5px; color: var(--muted); }

/* stats */
.userstop { width: 100%; font-size: 14px; }
.userstop td { padding: 10px 8px; border-bottom: 1px dashed var(--line); }

/* pm */
.pm_list .pm { border-bottom: 1px dashed var(--line); }
.pm-navigation { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* search page */
.searchtable fieldset { margin: 10px 0; }
.searchtable td { padding: 6px; vertical-align: top; }

/* ---------- 20. Vote / poll ---------- */
.block_grey {
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: var(--r);
	padding: 20px;
	margin-bottom: 20px;
}
.block_grey .title { font-size: 17px; font-weight: 800; margin-bottom: 12px; }
.vote_list { display: grid; gap: 8px; font-size: 14.5px; }
.vote_list input { margin-right: 8px; }
.vote_votes { margin-top: 14px; font-size: 13.5px; }
.vote_more { margin: -6px 0 12px; font-size: 13px; }
.vote_more a { color: var(--muted); }
.vote_more a:hover { color: var(--accent); }
.block_grey .btn { margin-right: 8px; margin-top: 10px; }
.voteprogress { margin-top: 4px; }

/* ---------- 21. Quick search suggest ---------- */
#searchsuggestions {
	background: var(--card) !important;
	border: 1px solid var(--line-2) !important;
	border-radius: 12px;
	box-shadow: var(--shadow);
	overflow: hidden;
}
#searchsuggestions a {
	display: block;
	padding: 10px 14px;
	border-bottom: 1px solid var(--line);
	color: var(--text) !important;
	font-size: 13.5px;
}
#searchsuggestions a:hover { background: var(--card-2); color: var(--accent) !important; }
#searchsuggestions .searchheading { font-weight: 700; display: block; }
#searchsuggestions span { display: block; color: var(--muted); font-size: 12.5px; }
#searchsuggestions .sep { display: none; }

/* ---------- 22. Footer ---------- */
.site-footer {
	margin-top: clamp(30px, 5vw, 64px);
	border-top: 1px solid var(--line);
	background: var(--bg-2);
}
.footer-in {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: clamp(22px, 4vw, 52px);
	padding-block: clamp(26px, 4.5vw, 48px);
}
.footer-brand p { color: var(--muted); font-size: 13.5px; margin-top: 14px; max-width: 340px; }
.footer-nav { display: grid; gap: 9px; align-content: start; }
.footer-nav a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-nav a:hover { color: var(--accent); }
.footer-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	border-top: 1px solid var(--line);
	padding-block: 15px;
	font-size: 12.5px;
	color: var(--muted);
}
.footer-bar p { margin: 0; }

/* ---------- 23. To top ---------- */
.to-top {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 90;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background: var(--card);
	border: 1px solid var(--line-2);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px);
	transition: .25s;
	box-shadow: var(--shadow);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent); }
.to-top .icon { width: 16px; height: 16px; }

/* ---------- 24. Form pages (register / lostpassword) ---------- */
.form-page-mode body { overflow-y: auto; }
.page-form {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(20px, 5vw, 48px);
	background:
		radial-gradient(1100px 520px at 50% -12%, var(--accent-soft), transparent 70%),
		var(--bg);
}
.page-form-body {
	width: min(560px, 100%);
	background: var(--card);
	border: 1px solid var(--line);
	border-radius: 24px;
	padding: clamp(24px, 5vw, 46px);
	box-shadow: var(--shadow);
}
.page-form-body .logo { margin-bottom: 26px; }
.page-form-back {
	position: fixed;
	top: 18px;
	left: 18px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 16px;
	border-radius: 999px;
	background: var(--card);
	border: 1px solid var(--line);
	font-size: 13.5px;
	font-weight: 600;
	color: var(--muted);
	z-index: 10;
}
.page-form-back:hover { color: var(--accent); border-color: var(--accent); }
.page-form__inner h1 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1220px) {
	.main-nav { display: none; }
	.burger { display: flex; }
	.logo-text i { display: none; }
}

@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.side-col {
		position: static;
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
		gap: 20px;
		margin-top: 10px;
	}
	.side-block { margin-bottom: 0; }
}

@media (max-width: 980px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-card { min-height: 320px; }
	.hero-side { grid-template-columns: 1fr 1fr; }
	.hero-mini { grid-template-columns: 1fr; }
	.hero-mini-media { aspect-ratio: 16 / 9; }
	.footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
	:root { --header-h: 60px; }
	.header-in { gap: 10px; }
	.logo-mark { width: 58px; height: 19px; }
	.logo-text b { font-size: 13px; }
	.hbtn { min-width: 38px; height: 38px; }
	.hbtn-user .hbtn-label { display: none; }
	.hbtn-user.has-avatar { padding: 0 8px; }
	.tiles, .tiles-3 { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
	.tiles-4 { grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); }
	.next-prev { grid-template-columns: 1fr; }
	.usinf li { grid-template-columns: 1fr; gap: 2px; }
	.combo { grid-template-columns: 1fr; }
	.footer-in { grid-template-columns: 1fr; gap: 24px; }
	.footer-bar { justify-content: center; text-align: center; }
	.side-col { grid-template-columns: 1fr; }
	.article-body { font-size: 15.5px; }
}

@media (max-width: 480px) {
	.hero-side { grid-template-columns: 1fr; }
	.photo-grid { grid-template-columns: repeat(3, 1fr); }
	.logo-text { display: none; }
	.drawer-overlay { z-index: 140; }
	.article { border-radius: 14px; }
	.pager a, .pager span { min-width: 36px; height: 36px; padding: 0 10px; font-size: 13px; }
	.card-body { padding: 13px 14px 15px; }
	.card-title { font-size: 15.5px; }
}

/* very narrow */
@media (max-width: 360px) {
	.tiles, .tiles-3, .tiles-4 { grid-template-columns: 1fr; }
}

/* ---------- 26. Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	html { scroll-behavior: auto; }
}

/* ---------- 27. Extras (engine/form compatibility) ---------- */
.btn-white {
	background: transparent;
	border-color: var(--line-2);
	color: var(--text);
}
.btn-white:hover { border-color: var(--accent); color: var(--accent); }

.stats_head > ul {
	list-style: none;
	display: grid;
	gap: 6px;
	margin-top: 14px;
	color: var(--muted);
	font-size: 13.5px;
}
.stats_head b { color: var(--text); }
.statistics {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 22px;
	margin-bottom: 22px;
}
.stat_group h5.blue { color: var(--accent); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.stat_group ul { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.stat_group li { display: flex; justify-content: space-between; gap: 12px; }
.table_top_users { overflow-x: auto; }

.pm_status { margin-bottom: 14px; }
.pm-box .pm { padding: 12px 0; border-bottom: 1px dashed var(--line); }
.pm-navigation { margin: 14px 0; }
.pm .com_info .meta .left { display: flex; gap: 12px; }

.login_check { margin: -6px 0 10px; font-size: 13.5px; color: var(--muted); }
.regtext { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.page_form__form { margin-top: 6px; }
.title.h1 { font-size: 22px; font-weight: 800; margin-bottom: 16px; }

.comments-image-uploader-area a { color: var(--accent); font-size: 13.5px; font-weight: 600; }
.splitnewsnavigation { margin: 18px 0; color: var(--muted); font-size: 13.5px; }
.splitnewsnavigation a { color: var(--accent); }

.com_list-page .comment { margin-bottom: 13px; }
.com-list-page .comment { margin-bottom: 13px; }

#dle-comments-list { display: grid; gap: 13px; }
#loading-layer { border-radius: 12px !important; }

.js .addcomment, .no-js .addcomment { display: block; }
