/* СтройИндустрия v5 — современный светлый портал. Собственная дизайн-система. */

:root {
	--bg: #f3f5f8;
	--surface: #ffffff;
	--surface-2: #f7f9fc;
	--navy: #0e1726;
	--ink: #131b2b;
	--ink-2: #3d4757;
	--muted: #6c7789;
	--line: #e5e9f0;
	--line-2: #d6dce6;
	--accent: #ffc400;
	--accent-ink: #101826;
	--accent-soft: #fff6d6;
	--link: #2f6bff;
	--c14: #2f6bff;
	--c13: #e8792b;
	--c17: #8b5cf6;
	--c12: #10a56a;
	--c6: #d14343;
	--c5: #0e8fa8;
	--c4: #c77d0a;
	--c9: #b5476b;
	--c8: #6d7b00;
	--c18: #c026d3;
	--c16: #0ea5e9;
	--c15: #2e7d32;
	--r-lg: 24px;
	--r-md: 16px;
	--r-sm: 12px;
	--r-pill: 999px;
	--container: 1264px;
	--gutter: 24px;
	--font: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--sh-1: 0 1px 2px rgba(16, 24, 40, 0.05), 0 1px 3px rgba(16, 24, 40, 0.06);
	--sh-2: 0 4px 10px -2px rgba(16, 24, 40, 0.08), 0 12px 28px -8px rgba(16, 24, 40, 0.14);
	--sh-3: 0 18px 46px -18px rgba(16, 24, 40, 0.28);
	color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--link) 60%, white); outline-offset: 2px; border-radius: 8px; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 750; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; overflow-wrap: break-word; min-width: 0; }
p { margin: 0; text-wrap: pretty; }
ul { margin: 0; padding: 0; list-style: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }
svg { display: block; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); position: relative; z-index: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--accent), #ffdb4d); z-index: 500; border-radius: 0 3px 3px 0; }

/* ---------- Шапка ---------- */
.header { position: sticky; top: 0; z-index: 300; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(18px) saturate(1.6); -webkit-backdrop-filter: blur(18px) saturate(1.6); border-bottom: 1px solid var(--line); }
.header.scrolled { box-shadow: 0 6px 24px -14px rgba(16, 24, 40, 0.35); }
.header__in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.brand__mark { width: 40px; height: 40px; border-radius: 13px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 15px; letter-spacing: -0.02em; box-shadow: 0 4px 12px -4px rgba(255, 196, 0, 0.7); }
.brand__name { font-size: 19px; font-weight: 750; letter-spacing: -0.025em; }
.header__nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.header__nav::-webkit-scrollbar { display: none; }
.header__nav a { display: block; padding: 9px 11px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 550; color: var(--ink-2); white-space: nowrap; transition: background 0.18s var(--ease), color 0.18s var(--ease); }
.header__nav a:hover { background: var(--surface-2); color: var(--ink); }
.header__side { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.search { display: flex; align-items: center; position: relative; }
.search input[name="story"] { width: 210px; height: 42px; padding: 0 44px 0 16px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink); font-size: 14px; transition: border-color 0.18s, box-shadow 0.18s, background 0.18s; }
.search input[name="story"]:focus { outline: none; border-color: var(--link); background: #fff; box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12); }
.search button { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; transition: background 0.18s; }
.search button:hover { background: var(--link); }
.search button svg { width: 15px; height: 15px; }
.header__login { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; }
.header__login a { color: var(--ink-2); text-decoration: none; padding: 9px 14px; border-radius: var(--r-pill); transition: background 0.18s, color 0.18s; white-space: nowrap; }
.header__login a:hover { background: var(--surface-2); color: var(--ink); }
.header__login .lvsep { padding-left: 6px; margin-left: 2px; border-left: 1px solid var(--line); }
.header__login > a#logbtn { background: var(--navy); color: #fff; }
.header__login > a#logbtn:hover { background: #1d2c44; }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 13px; background: #fff; padding: 0 11px; flex-direction: column; justify-content: center; gap: 5px; }
.burger span { height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.25s var(--ease), opacity 0.2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Чипы разделов ---------- */
.chips { border-bottom: 1px solid var(--line); background: var(--surface); }
.chips__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-block: 11px; }
.chips__row a { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: 13.5px; font-weight: 600; color: var(--ink-2); background: var(--surface-2); border: 1px solid transparent; transition: background 0.18s, color 0.18s, border-color 0.18s; white-space: nowrap; }
.chips__row a::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot, var(--accent)); }
.chips__row a:hover { background: #fff; border-color: var(--line-2); box-shadow: var(--sh-1); color: var(--ink); }

/* ---------- Hero ---------- */
.hero { padding: 34px 0 32px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: center; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); font-size: 12.5px; font-weight: 650; color: var(--ink-2); margin-bottom: 22px; }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: #10a56a; box-shadow: 0 0 0 4px rgba(16, 165, 106, 0.15); }
.hero h1 { font-size: clamp(2.2rem, 3.2vw, 3.5rem); line-height: 1.06; letter-spacing: -0.035em; }
.hero h1 mark { background: var(--accent); color: var(--accent-ink); padding: 0 10px; border-radius: 10px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.hero__claim { margin-top: 20px; font-size: 17px; line-height: 1.62; color: var(--muted); max-width: 48ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 9px; height: 50px; padding: 0 24px; border-radius: var(--r-pill); font-size: 15px; font-weight: 650; text-decoration: none; border: 1px solid transparent; transition: background 0.18s var(--ease), box-shadow 0.18s, translate 0.18s, border-color 0.18s; }
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -12px rgba(14, 23, 38, 0.6); }
.btn--primary:hover { background: #1c2b44; translate: 0 -2px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: var(--sh-1); }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 30px; font-size: 13.5px; font-weight: 550; color: var(--muted); }
.hero__facts span { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.hero__lead { position: relative; }
.hero__lead .tile { position: relative; border: 0; box-shadow: var(--sh-3); border-radius: var(--r-lg); }
.hero__lead .tile:hover { translate: 0 -3px; box-shadow: 0 26px 60px -24px rgba(16, 24, 40, 0.4); }
.hero__lead .tile__pic { aspect-ratio: 16 / 10; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hero__lead .tile__pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(14, 23, 38, 0.28)); }
.hero__lead .tile__body { padding: 16px 18px 18px; }
.hero__lead .tile__title { font-size: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem); line-height: 1.25; }
.hero__lead .tile__excerpt { -webkit-line-clamp: 2; font-size: 13.5px; }
.hero__lead .tile__cat a { position: absolute; top: 16px; left: 16px; z-index: 2; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(10px); color: var(--ink); box-shadow: var(--sh-1); }
.hero__lead .tile__cat a:hover { background: var(--accent); color: var(--accent-ink); }

.hero__card { position: absolute; left: -20px; bottom: -20px; z-index: 3; background: var(--surface); border-radius: 18px; box-shadow: var(--sh-2); padding: 12px 16px; display: flex; align-items: center; gap: 12px; }
.hero__card b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.hero__card span { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.35; max-width: 12ch; }
.hero__card i { width: 38px; height: 38px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-style: normal; }
.hero__card i svg { width: 18px; height: 18px; }

/* ---------- Блоки разделов ---------- */
.block { padding: 34px 0 6px; }
.block__head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.block__head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--cat, var(--accent)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--cat, var(--accent)) 14%, transparent); flex-shrink: 0; }
.block__head h2 { font-size: clamp(1.35rem, 0.8vw + 1.1rem, 1.7rem); letter-spacing: -0.03em; }
.block__all { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 650; color: var(--ink-2); text-decoration: none; padding: 9px 16px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); transition: border-color 0.18s, color 0.18s, box-shadow 0.18s; white-space: nowrap; }
.block__all:hover { border-color: var(--ink); color: var(--ink); box-shadow: var(--sh-1); }
.block__all svg { width: 14px; height: 14px; }
.block__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ---------- Плитки ---------- */
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); display: flex; flex-direction: column; min-width: 0; overflow: hidden; transition: translate 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s; }
.tile:hover { translate: 0 -4px; box-shadow: var(--sh-2); border-color: transparent; }
.tile__pic { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.tile__pic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.tile:hover .tile__pic img { transform: scale(1.04); }
.tile__body { padding: 15px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.tile__cat a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--cat, var(--link)) 10%, white); color: var(--cat, var(--link)); font-size: 12px; font-weight: 700; text-decoration: none; line-height: 1.5; transition: background 0.18s, color 0.18s; }
.tile__cat a::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tile__cat a:hover { background: var(--cat, var(--link)); color: #fff; }
.tile__title { font-size: 1.01rem; font-weight: 650; line-height: 1.34; letter-spacing: -0.012em; }
.tile__title a { text-decoration: none; color: var(--ink); transition: color 0.18s; }
.tile__title a:hover { color: var(--link); }
.tile__excerpt { color: var(--muted); font-size: 14px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tile__excerpt img, .tile__excerpt [onclick] { display: none; }
.tile__meta { margin-top: auto; padding-top: 11px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tile__meta a { color: inherit; text-decoration: none; }
.tile__meta a:hover { color: var(--link); }
.editbtn { display: inline-flex; }
.editbtn a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); font-size: 11.5px; font-weight: 700; background: var(--accent); padding: 5px 10px; border-radius: var(--r-pill); text-decoration: none; }
.editbtn svg { width: 12px; height: 12px; }


/* Популярное — плитки с картинками */
.rail__list--num .popitem { display: flex; gap: 12px; align-items: flex-start; }
.rail__list--num .popitem::before { font-size: 14px; font-weight: 800; line-height: 1.35; color: var(--line-2); padding-top: 1px; flex-shrink: 0; min-width: 18px; }
.rail__list--num .popitem:hover::before { color: var(--accent); }
.popitem__link { display: flex; gap: 12px; align-items: flex-start; flex: 1; min-width: 0; text-decoration: none; color: var(--ink); }
.popitem__pic { display: block; width: 64px; height: 64px; flex: 0 0 64px; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.popitem__pic img { display: block; width: 64px; height: 64px; max-width: none; object-fit: cover; transition: transform 0.4s var(--ease); }
.popitem__link:hover .popitem__pic img { transform: scale(1.08); }
.popitem__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.popitem__title { font-size: 13.5px; font-weight: 620; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.18s; }
.popitem__link:hover .popitem__title { color: var(--link); }
.popitem__meta { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.popitem__meta a { color: inherit; text-decoration: none; }
.popitem__meta a:hover { color: var(--link); }

/* ---------- Лента ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 28px; align-items: start; padding: 30px 0 56px; }
.feed__main > .pagehead, .feed__main h1:not(.story__title) { font-size: clamp(1.45rem, 1vw + 1.15rem, 2rem); margin-bottom: 22px; }
#dle-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
/* Выдача поиска: DLE не оборачивает результаты в #dle-content — сетку даём по факту наличия плиток */
.feed__main:has(> .tile) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.feed__main:has(> .tile) > :not(.tile) { grid-column: 1 / -1; }
#dle-content .tile:first-child { grid-column: 1 / -1; }
#dle-content .tile:first-child .tile__pic { aspect-ratio: 21 / 9; }
#dle-content .tile:first-child .tile__title { font-size: 1.35rem; }
.speedbar { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.speedbar a { color: inherit; text-decoration: none; }
.speedbar a:hover { color: var(--link); }

/* ---------- Сайдбар ---------- */
.rail { display: grid; gap: 20px; align-content: start; }
@media (min-width: 981px) { .feed .rail { position: sticky; top: 88px; } }
.rail__list--num { counter-reset: popnum; }
.rail__list--num li { counter-increment: popnum; display: flex; gap: 12px; align-items: flex-start; }
.rail__list--num li::before { content: counter(popnum, decimal-leading-zero); font-size: 20px; font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; color: var(--line-2); flex-shrink: 0; padding-top: 1px; }
.rail__list--num li:hover::before { color: var(--accent); }
.rail__sub { background: var(--navy); color: #fff; border-radius: var(--r-md); padding: 20px; }
.rail__sub h3 { color: #fff; font-size: 1.02rem; font-weight: 750; margin-bottom: 6px; }
.rail__sub p { font-size: 13px; line-height: 1.5; color: #9aa7bb; margin-bottom: 14px; }
.rail__sub .socbtns { display: flex; flex-wrap: wrap; gap: 8px; }
.rail__sub .socbtns a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.1); color: #fff; text-decoration: none; font-size: 13px; font-weight: 650; transition: background 0.18s, color 0.18s; }
.rail__sub .socbtns a:hover { background: var(--accent); color: var(--accent-ink); }
.rail__sub svg { width: 16px; height: 16px; }
.rail__block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 20px; }
.rail__block > h3 { font-size: 1.02rem; font-weight: 750; margin-bottom: 12px; }
.rail__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.rail__list li:last-child { border-bottom: 0; padding-bottom: 0; }
.rail__list a { text-decoration: none; font-weight: 600; font-size: 14.5px; line-height: 1.4; color: var(--ink); display: block; }
.rail__list a:hover { color: var(--link); }
.rail__list small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.tagcloud { display: flex; flex-wrap: wrap; gap: 7px; }
.tagcloud a { display: inline-block; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--ink-2); transition: background 0.18s, color 0.18s; }
.tagcloud a:hover { background: var(--accent-soft); color: var(--accent-ink); }

/* ---------- Новость ---------- */
.story { max-width: 62rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: clamp(18px, 3vw, 40px); }
.story__head { margin-bottom: 22px; }
.story__title { font-size: clamp(1.5rem, 1.7vw + 1.05rem, 2.4rem); line-height: 1.12; letter-spacing: -0.03em; }
.story__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; font-weight: 550; color: var(--muted); margin-top: 16px; }
.story h2, .story h3 { font-size: 1.3rem; margin: 28px 0 10px; }
.news-body { color: var(--ink-2); font-size: 16.5px; line-height: 1.72; }
.news-body p { margin-bottom: 14px; max-width: 68ch; }
.news-body img { border-radius: var(--r-md); height: auto; max-width: 100%; margin: 6px 22px 16px 0; }
.news-body img[style*="right"], .news-body img[align="right"] { margin: 6px 0 16px 22px; }
.news-body img[style*="left"], .news-body img[align="left"] { margin: 6px 22px 16px 0; }
.news-body img[style*="center"], .news-body img[align="center"] { margin: 6px auto 16px; }
.news-body p { overflow: hidden; }
.news-body ul, .news-body ol { padding-left: 22px; margin-bottom: 14px; }
.news-body a { color: var(--link); }
.news-body blockquote { border-left: 4px solid var(--accent); margin: 18px 0; padding: 4px 0 4px 18px; font-size: 18px; color: var(--ink); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share__label { font-size: 13px; font-weight: 650; color: var(--muted); margin-right: 4px; }
.share__btn { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 15px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: var(--r-pill); transition: border-color 0.18s, background 0.18s, color 0.18s, box-shadow 0.18s; }
.share__btn:hover { border-color: transparent; background: var(--navy); color: #fff; box-shadow: var(--sh-2); }
.share__btn svg { width: 15px; height: 15px; }
.related { margin-top: 34px; }
.related > h2 { font-size: 1.15rem; margin-bottom: 14px; }
.related__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.related__grid .tile { box-shadow: none; }
.related__grid .tile:hover { box-shadow: var(--sh-2); }
.related__grid .tile__title { font-size: 0.95rem; }
.related__grid .tile__meta { border-top: 0; padding-top: 0; }

/* ---------- Комментарии ---------- */
.comments-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 34px 0 16px; max-width: 62rem; }
.comments-head h2 { font-size: 1.15rem; }
.comment { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 16px 20px; margin-bottom: 12px; max-width: 62rem; }
.comment__head { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; font-weight: 550; color: var(--muted); margin-bottom: 8px; }
.comment__head b { color: var(--ink); font-weight: 650; }
.comment__head a { color: var(--link); text-decoration: none; }
.comment__text { color: var(--ink-2); }
.comment .sig { font-size: 12.5px; color: var(--muted); margin-top: 8px; }
.addcomment { max-width: 62rem; margin: 0 0 30px; }
.addcomment p { margin-bottom: 10px; }
.addcomment label { display: block; font-size: 13px; font-weight: 650; color: var(--ink-2); margin-bottom: 5px; }
.addcomment textarea { min-height: 130px; width: 100%; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); padding: 12px 14px; resize: vertical; transition: border-color 0.18s, box-shadow 0.18s; }
.addcomment textarea:focus, .finput:focus { outline: none; border-color: var(--link); box-shadow: 0 0 0 4px rgba(47, 107, 255, 0.12); }
.fbutton, .addcomment button, .btn-primary { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 24px; background: var(--navy); color: #fff; border: 0; border-radius: var(--r-pill); font-size: 14.5px; font-weight: 650; text-decoration: none; transition: background 0.18s, translate 0.18s, box-shadow 0.18s; }
.fbutton:hover, .addcomment button:hover, .btn-primary:hover { background: #1c2b44; translate: 0 -1px; box-shadow: var(--sh-2); }
.finput, .addcomment input[type="text"], .addcomment input[type="email"], .addcomment input[type="password"], .addcomment select { height: 46px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); }
button:disabled, input:disabled, select:disabled, textarea:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Логин-панель ---------- */
.logform { position: absolute; right: 0; top: calc(100% + 12px); z-index: 400; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; min-width: 300px; box-shadow: var(--sh-3); display: none; }
.logform.open { display: block; }
.logform__row { margin-bottom: 10px; }
.logform__row label { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.logform__row .finput { width: 100%; }
.logform__check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.logform__reg { margin-top: 12px; font-size: 13px; color: var(--muted); }
.logform__reg a { color: var(--link); font-weight: 600; }
.header__login, .header__login form { position: relative; }

/* ---------- Пагинация ---------- */
.navp { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 22px; grid-column: 1 / -1; }
.navp .pages { display: flex; gap: 6px; flex-wrap: wrap; }
.navp .pages a, .navp .pages span { display: inline-grid; place-items: center; min-width: 42px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); text-decoration: none; font-weight: 650; font-size: 14px; font-variant-numeric: tabular-nums; background: var(--surface); color: var(--ink-2); transition: border-color 0.18s, color 0.18s, background 0.18s; }
.navp .pages a:hover { border-color: var(--ink); color: var(--ink); }
.navp .pages span:not(.nav_ext) { background: var(--navy); border-color: var(--navy); color: #fff; }
.navp .pages span.nav_ext { color: var(--muted); }

/* ---------- Инфо ---------- */
.info-box { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 22px 26px; margin-bottom: 24px; max-width: 62rem; }
.info-box.error { border-left-color: #d14343; }
.info-box h3 { font-size: 1.1rem; margin-bottom: 8px; }
.info-box .status { color: var(--ink-2); }

/* ---------- Подвал ---------- */
.footer { padding: 0 var(--gutter) 18px; }
.footer__card { max-width: var(--container); margin-inline: auto; background: var(--navy); color: #c3ccdb; border-radius: 28px; padding: 40px clamp(24px, 4vw, 56px) 28px; }
.footer__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
.footer .brand__mark { box-shadow: none; }
.footer .brand__name { color: #fff; }
.footer__claim { margin-top: 14px; font-size: 14px; max-width: 36ch; color: #98a4b8; }
.footer h3 { font-size: 12.5px; font-weight: 700; color: #fff; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 14px; }
.footer ul { display: grid; gap: 9px; }
.footer ul a { color: #c3ccdb; text-decoration: none; font-size: 14.5px; transition: color 0.15s; }
.footer ul a:hover { color: var(--accent); }
.footer__soc { display: flex; gap: 8px; margin-top: 18px; }
.footer__soc a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: rgba(255, 255, 255, 0.08); color: #fff; transition: background 0.18s, translate 0.18s; }
.footer__soc a:hover { background: var(--accent); color: var(--accent-ink); translate: 0 -2px; }
.footer__soc svg { width: 18px; height: 18px; }
.footer__legal { border-top: 1px solid rgba(255, 255, 255, 0.1); margin-top: 32px; padding-top: 18px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 12.5px; color: #8593a8; }

/* ---------- Совместимость ДЛЕ ---------- */
.base, .berrors { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); padding: 24px 28px; margin-bottom: 24px; }
.base .btl, .pheading h2 { font-size: 1.15rem; }
.xfields, .imp-content { max-width: 65ch; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-sm); }
table { border-collapse: collapse; width: 100%; }
table td, table th { border-bottom: 1px solid var(--line); padding: 10px 14px; text-align: left; }

/* ---------- Анимации ---------- */
.reveal { opacity: 0; translate: 0 16px; transition: opacity 0.5s var(--ease), translate 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 45ms); }
.reveal.visible { opacity: 1; translate: 0 0; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.reveal { opacity: 1; translate: none; transition: none; }
	.tile, .tile__pic img, .btn { transition: none; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1279px) {
	.header__nav { display: none; }
	.burger { display: flex; }
	.header .search { display: none; }
}
@media (max-width: 980px) {
	.hero__grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
	.hero__lead { max-width: 620px; }
	.hero__card { left: auto; right: 14px; bottom: -22px; }
	.feed { grid-template-columns: minmax(0, 1fr); }
	.related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.block__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__in { grid-template-columns: minmax(0, 1fr); gap: 30px; }
}
@media (max-width: 640px) {
	:root { --gutter: 16px; }
	.hero { padding: 28px 0 30px; }
	.hero__actions .btn { flex: 1; justify-content: center; }
	.block__grid, #dle-content, .feed__main:has(> .tile) { grid-template-columns: minmax(0, 1fr); }
	.hero__card { position: static; margin-top: 14px; }
	.story { padding: 16px; }
	.related__grid { grid-template-columns: minmax(0, 1fr); }
	.footer { padding: 0; }
	.footer__card { border-radius: 0; }
}
