/* ============================================================
   Новости — лента и статья (ihear). «Вау»-оформление + интерактив.
   ============================================================ */

:root {
	--news-grad: linear-gradient(135deg, #f0594d 0%, #ff9a5b 100%);
	--news-grad-dark: linear-gradient(140deg, #17181d 0%, #2c2e39 55%, #3a2430 100%);
}

/* ---------- Hero (лента) ---------- */
.news-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 0 34px;
	margin-bottom: 34px;
	background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
	border-bottom: 1px solid var(--line);
	border-radius: 0 0 30px 30px;
}
.news-hero::before,
.news-hero::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.news-hero::before {
	width: 540px; height: 540px; top: -300px; right: -140px;
	background: radial-gradient(circle, rgba(240, 89, 77, .18), transparent 70%);
}
.news-hero::after {
	width: 430px; height: 430px; bottom: -260px; left: -140px;
	background: radial-gradient(circle, rgba(255, 154, 91, .16), transparent 70%);
}
.news-hero__inner { position: relative; z-index: 1; }
.news-hero__badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
}
.news-hero__badge::before {
	content: "";
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--accent);
	box-shadow: 0 0 0 4px rgba(240, 89, 77, .18);
	animation: news-pulse 2s infinite;
}
@keyframes news-pulse {
	0%, 100% { box-shadow: 0 0 0 4px rgba(240, 89, 77, .18); }
	50% { box-shadow: 0 0 0 8px rgba(240, 89, 77, .04); }
}
.news-hero__title {
	font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem);
	font-weight: 800;
	letter-spacing: -.03em;
	margin: 14px 0 10px;
	color: var(--dark);
}
.news-hero__sub { max-width: 720px; color: var(--muted); font-size: 1.0625rem; }

.news-hero__tools {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 24px;
}
.news-search {
	position: relative;
	display: flex;
	align-items: center;
	gap: 10px;
	flex: 1 1 320px;
	max-width: 460px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 999px;
	padding: 12px 20px;
	box-shadow: var(--shadow-sm);
	transition: border-color var(--tr), box-shadow var(--tr);
}
.news-search:focus-within {
	border-color: var(--accent);
	box-shadow: 0 10px 26px rgba(240, 89, 77, .16);
}
.news-search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.news-search input {
	flex: 1;
	border: 0;
	background: none;
	outline: none;
	font: inherit;
	font-size: 15px;
	color: var(--text);
}
.news-search input::placeholder { color: var(--muted); }
.news-hero__count {
	font-size: 14px;
	color: var(--muted);
	white-space: nowrap;
}
.news-hero__count b { color: var(--accent); font-size: 18px; }

/* ---------- Лента ---------- */
.news-list { padding-bottom: 72px; }

/* Заглавная новость */
.news-feature {
	position: relative;
	overflow: hidden;
	display: block;
	padding: 40px clamp(24px, 3vw, 56px);
	margin-bottom: 34px;
	border-radius: var(--radius-lg);
	background: var(--news-grad-dark);
	color: #fff;
	box-shadow: 0 26px 60px rgba(23, 24, 29, .22);
}
.news-feature__glow {
	position: absolute;
	inset: -40% -10% auto auto;
	width: 520px; height: 520px;
	background: radial-gradient(circle, rgba(240, 89, 77, .55), transparent 62%);
	filter: blur(10px);
	pointer-events: none;
	transition: transform var(--tr-slow);
}
.news-feature:hover .news-feature__glow { transform: translate(-30px, 30px) scale(1.1); }
.news-feature__meta {
	position: relative;
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 18px;
}
.news-feature__date {
	font-size: 14px;
	font-weight: 600;
	color: rgba(255, 255, 255, .78);
}
.news-feature__tag {
	padding: 5px 14px;
	border-radius: 999px;
	background: var(--news-grad);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.news-feature__title {
	position: relative;
	font-size: clamp(1.5rem, 1rem + 1.8vw, 2.4rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -.02em;
	margin-bottom: 16px;
}
.news-feature__title a { color: #fff; text-decoration: none; }
.news-feature__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}
.news-feature__text {
	position: relative;
	max-width: 760px;
	color: rgba(255, 255, 255, .8);
	line-height: 1.65;
}
.news-feature__foot {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
}
.news-feature__time { font-size: 14px; color: rgba(255, 255, 255, .66); }
.news-feature__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 26px;
	border-radius: 999px;
	background: #fff;
	color: var(--dark);
	font-weight: 700;
	font-size: 15px;
	transition: transform var(--tr), box-shadow var(--tr);
}
.news-feature__more span { transition: transform var(--tr); }
.news-feature:hover .news-feature__more { box-shadow: 0 16px 30px rgba(240, 89, 77, .4); transform: translateY(-2px); }
.news-feature:hover .news-feature__more span { transform: translateX(5px); }

/* Сетка карточек */
.news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 22px;
}
.news-card {
	position: relative;
	display: flex;
	gap: 18px;
	padding: 24px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	box-shadow: var(--shadow-sm);
	transition: transform var(--tr), box-shadow var(--tr), border-color var(--tr);
}
.news-card::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: var(--news-grad);
	opacity: 0;
	transition: opacity var(--tr);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask-composite: exclude;
	padding: 1.5px;
	pointer-events: none;
}
.news-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 26px 50px rgba(23, 24, 29, .14);
}
.news-card:hover::before { opacity: 1; }
.news-card__date {
	flex: none;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	border-radius: 14px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	transition: background var(--tr), color var(--tr);
}
.news-card__date b { font-size: 22px; font-weight: 800; line-height: 1; }
.news-card__date span { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; margin-top: 3px; }
.news-card:hover .news-card__date { background: var(--news-grad); color: #fff; }
.news-card__body { display: flex; flex-direction: column; min-width: 0; }
.news-card__time { font-size: 12px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.news-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.32;
	margin: 6px 0 8px;
	color: var(--dark);
	transition: color var(--tr);
}
.news-card__title a { color: inherit; text-decoration: none; }
.news-card:hover .news-card__title { color: var(--accent); }
.news-card__text {
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.news-card__more {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	font-size: 14px;
	font-weight: 700;
	color: var(--accent);
}
.news-card__more span { transition: transform var(--tr); }
.news-card:hover .news-card__more span { transform: translateX(5px); }
.news-card__link { position: absolute; inset: 0; z-index: 1; }

/* Пусто */
.news-empty[hidden] { display: none; }
.news-empty {
	grid-column: 1 / -1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 70px 20px;
	text-align: center;
	color: var(--muted);
}
.news-empty__icon { width: 56px; height: 56px; color: var(--accent); opacity: .7; }
.news-empty__icon svg { width: 100%; height: 100%; }

/* Пагинация */
.news-pagination { margin-top: 44px; }
.news-pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.news-pagination a,
.news-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 46px;
	height: 46px;
	padding: 0 14px;
	border-radius: 13px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--text);
	font-weight: 600;
	text-decoration: none;
	transition: background var(--tr), color var(--tr), border-color var(--tr), transform var(--tr);
}
.news-pagination a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.news-pagination .current {
	background: var(--news-grad);
	border-color: transparent;
	color: #fff;
	box-shadow: 0 12px 24px rgba(240, 89, 77, .3);
}

/* ============================================================
   Статья
   ============================================================ */

.news-progress {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: transparent;
	z-index: 120;
	pointer-events: none;
}
.news-progress span {
	display: block;
	height: 100%;
	width: 0;
	background: var(--news-grad);
	box-shadow: 0 0 14px rgba(240, 89, 77, .7);
	transition: width .1s linear;
}

.news-single-hero {
	position: relative;
	overflow: hidden;
	padding: 40px 0 30px;
	margin-bottom: 34px;
	background: linear-gradient(180deg, #ffffff 0%, var(--surface) 100%);
	border-bottom: 1px solid var(--line);
	border-radius: 0 0 30px 30px;
}
.news-single-hero::after {
	content: "";
	position: absolute;
	width: 460px; height: 460px; top: -280px; right: -120px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(240, 89, 77, .16), transparent 70%);
	pointer-events: none;
}
.news-single-hero .container { position: relative; z-index: 1; }
.news-single-hero__badge {
	display: inline-flex;
	margin-top: 14px;
	padding: 6px 15px;
	border-radius: 999px;
	background: var(--accent-soft);
	color: var(--accent-dark);
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
}
.news-single-hero__title {
	font-size: clamp(1.7rem, 1.1rem + 2.2vw, 3rem);
	font-weight: 800;
	line-height: 1.12;
	letter-spacing: -.03em;
	margin: 14px 0 16px;
	color: var(--dark);
	max-width: 1000px;
}
.news-single-hero__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--muted);
	font-size: 15px;
}
.news-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

.news-single { padding-bottom: 30px; }
.news-single__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 44px;
	align-items: start;
}

/* Контент статьи */
.news-article {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	padding: clamp(24px, 3vw, 52px);
	box-shadow: var(--shadow-sm);
}
.news-content { font-size: 1.0625rem; line-height: 1.75; color: var(--text); }
.news-content > * + * { margin-top: 1.15em; }
.news-content h2 { font-size: clamp(1.3rem, 1rem + 1vw, 1.7rem); font-weight: 800; letter-spacing: -.02em; margin-top: 1.8em; }
.news-content h3 { font-size: 1.25rem; font-weight: 700; margin-top: 1.6em; }
.news-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.news-content ul,
.news-content ol { padding-left: 1.3em; }
.news-content li + li { margin-top: .5em; }
.news-content img { border-radius: var(--radius); height: auto; }
.news-content blockquote {
	margin: 1.6em 0;
	padding: 20px 26px;
	border-left: 4px solid var(--accent);
	background: var(--accent-soft);
	border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-style: italic;
	color: var(--dark);
}
.news-content figure { margin: 1.6em 0; }
.news-content iframe { max-width: 100%; border-radius: var(--radius); }

/* Шеринг */
.news-share {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 40px;
	padding-top: 26px;
	border-top: 1px solid var(--line);
}
.news-share__label { font-weight: 700; color: var(--muted); margin-right: 4px; }
.news-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px; height: 44px;
	border-radius: 12px;
	background: var(--surface);
	border: 1px solid var(--line);
	color: var(--dark);
	cursor: pointer;
	transition: background var(--tr), color var(--tr), transform var(--tr), border-color var(--tr);
}
.news-share__btn svg { width: 20px; height: 20px; }
.news-share__btn:hover { background: var(--news-grad); color: #fff; border-color: transparent; transform: translateY(-3px); }

/* Prev / Next */
.news-nav {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 34px;
}
.news-nav__item {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 20px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	text-decoration: none;
	transition: border-color var(--tr), box-shadow var(--tr), transform var(--tr);
}
.news-nav__item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.news-nav__item--next { text-align: right; }
.news-nav__dir { font-size: 13px; font-weight: 700; color: var(--accent); }
.news-nav__title { font-weight: 700; color: var(--dark); line-height: 1.35; }

/* Асайд */
.news-aside { position: sticky; top: calc(var(--header-h, 136px) + 20px); display: flex; flex-direction: column; gap: 22px; }
.news-aside__cta {
	position: relative;
	overflow: hidden;
	padding: 28px;
	border-radius: var(--radius);
	background: var(--news-grad);
	color: #fff;
	box-shadow: var(--shadow-accent);
}
.news-aside__cta h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; }
.news-aside__cta p { color: rgba(255, 255, 255, .9); line-height: 1.55; margin-bottom: 18px; }
.news-aside__cta .btn {
	background: #fff;
	color: var(--accent-dark);
	width: 100%;
	justify-content: center;
}
.news-aside__block {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 22px;
	box-shadow: var(--shadow-sm);
}
.news-aside__title { font-weight: 800; font-size: 1.05rem; margin-bottom: 14px; color: var(--dark); }
.news-aside__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.news-aside__list a {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 12px 0;
	border-bottom: 1px solid var(--line);
	text-decoration: none;
	color: var(--dark);
	font-weight: 600;
	line-height: 1.4;
	transition: color var(--tr);
}
.news-aside__list li:last-child a { border-bottom: 0; }
.news-aside__list a:hover { color: var(--accent); }
.news-aside__list time { font-size: 12px; font-weight: 600; color: var(--muted); }

/* Related */
.news-related { padding: 60px 0 76px; background: var(--surface); margin-top: 40px; }
.news-related__title {
	font-size: clamp(1.5rem, 1rem + 1.4vw, 2.1rem);
	font-weight: 800;
	letter-spacing: -.02em;
	margin-bottom: 28px;
	color: var(--dark);
}
.news-related .news-card { background: #fff; }

/* Кнопка «наверх» */
.news-top {
	position: fixed;
	right: 24px; bottom: 24px;
	width: 50px; height: 50px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--dark);
	color: #fff;
	cursor: pointer;
	box-shadow: var(--shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity var(--tr), transform var(--tr), visibility var(--tr), background var(--tr);
	z-index: 90;
}
.news-top svg { width: 22px; height: 22px; }
.news-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.news-top:hover { background: var(--accent); }

/* ---------- Адаптив ---------- */
@media (max-width: 1100px) {
	.news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.news-single__layout { grid-template-columns: 1fr; gap: 32px; }
	.news-aside { position: static; }
}
@media (max-width: 720px) {
	.news-grid { grid-template-columns: 1fr; }
	.news-nav { grid-template-columns: 1fr; }
	.news-nav__item--next { text-align: left; }
	.news-feature { padding: 28px 22px; }
	.news-card { padding: 18px; }
	.news-top { right: 16px; bottom: 16px; }
}
