/* ===========================================================
   EK NEWS — раздел новостей (архив + single).
   Префикс ek-, скоупируется под .ek-page.
   Все @media — В КОНЦЕ файла, после десктопных правил (каскад).
   =========================================================== */

/* ───── Page header ───── */
.ek-page .ek-news-head {
	padding: 32px 0 24px;
}
.ek-page .ek-news-head h1 {
	font-size: 44px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.08;
	color: var(--ek-text);
	margin: 0 0 12px;
}
.ek-page .ek-news-head p {
	font-size: 17px;
	line-height: 1.5;
	color: var(--ek-text-muted);
	max-width: 640px;
	margin: 0;
}

/* ───── Filter pills ───── */
.ek-page .ek-news-filter {
	padding: 8px 0 40px;
}
.ek-page .ek-news-filter-row {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.ek-page .ek-news-pill {
	display: inline-flex; align-items: center; justify-content: center;
	height: 36px;
	padding: 0 18px;
	border-radius: var(--ek-radius-pill);
	border: 0.5px solid var(--ek-border);
	background: var(--ek-bg);
	font: 500 13px/1 var(--ek-font);
	color: var(--ek-text);
	cursor: pointer;
	transition: background .15s ease, color .15s ease, border-color .15s ease;
	white-space: nowrap;
	flex: none;
}
.ek-page .ek-news-pill:hover {
	border-color: var(--ek-text);
}
.ek-page .ek-news-pill.is-active {
	background: var(--ek-bg-dark);
	border-color: var(--ek-bg-dark);
	color: #fff;
}
.ek-page .ek-news-pill.is-active:hover {
	background: #1a1a1c;
}

/* ───── Featured news ───── */
.ek-page .ek-news-featured {
	padding-bottom: 56px;
}
.ek-page .ek-news-feat-card {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	gap: 0;
	border-radius: var(--ek-radius-lg);
	overflow: hidden;
	border: 0.5px solid var(--ek-border);
	background: var(--ek-bg);
	transition: border-color .2s ease, box-shadow .2s ease;
	text-decoration: none;
	color: inherit;
}
.ek-page .ek-news-feat-card:hover {
	border-color: #C7C7CC;
	box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}
.ek-page .ek-news-feat-shot {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--ek-bg-secondary);
	overflow: hidden;
}
.ek-page .ek-news-feat-shot img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.ek-page .ek-news-feat-shot .ek-ph {
	position: absolute; inset: 0;
	background-color: var(--ek-bg-secondary);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(0,0,0,0.03) 0,
		rgba(0,0,0,0.03) 1px,
		transparent 1px,
		transparent 14px
	);
	display: flex; align-items: center; justify-content: center;
}
.ek-page .ek-news-feat-body {
	padding: 48px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 16px;
	min-width: 0;
}

/* ───── Meta + badges (общие для feat / card / single) ───── */
.ek-page .ek-news-meta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12px;
	color: var(--ek-text-muted);
}
.ek-page .ek-news-badge {
	display: inline-flex; align-items: center;
	height: 22px;
	padding: 0 10px;
	border-radius: var(--ek-radius-pill);
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	background: var(--ek-bg-secondary);
	color: var(--ek-text);
}
.ek-page .ek-news-badge.is-new     { background: #E8EFE9; color: #4F8B5C; }
.ek-page .ek-news-badge.is-sale    { background: #FBECEC; color: #B5413E; }
.ek-page .ek-news-badge.is-guide   { background: #ECEFF6; color: #3D4F7A; }
.ek-page .ek-news-badge.is-service { background: #F0EBE3; color: #6B5837; }
.ek-page .ek-news-badge.is-company { background: var(--ek-bg-secondary); color: var(--ek-text); }
.ek-page .ek-news-meta-dot {
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	opacity: 0.4;
}

.ek-page .ek-news-feat-title {
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.015em;
	line-height: 1.15;
	color: var(--ek-text);
	margin: 0;
	text-wrap: balance;
}
.ek-page .ek-news-feat-lead {
	font-size: 16px;
	line-height: 1.5;
	color: var(--ek-text-muted);
	max-width: 48ch;
	margin: 0;
	text-wrap: pretty;
}
.ek-page .ek-news-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--ek-text);
	margin-top: 4px;
}
.ek-page .ek-news-link .ek-chev { transition: transform .18s ease; display: inline-block; }
.ek-page .ek-news-feat-card:hover .ek-news-link .ek-chev,
.ek-page .ek-news-card:hover .ek-news-link .ek-chev { transform: translateX(3px); }

/* ───── News grid (card) ───── */
.ek-page .ek-news-grid-wrap {
	padding-bottom: 24px;
}
.ek-page .ek-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}
.ek-page .ek-news-card {
	display: flex;
	flex-direction: column;
	background: var(--ek-bg);
	border: 0.5px solid var(--ek-border);
	border-radius: var(--ek-radius-lg);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
	min-width: 0;
}
.ek-page .ek-news-card:hover {
	border-color: #C7C7CC;
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(0,0,0,0.05);
}
.ek-page .ek-news-card-shot {
	position: relative;
	aspect-ratio: 16 / 10;
	background: var(--ek-bg-secondary);
	overflow: hidden;
}
.ek-page .ek-news-card-shot img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.ek-page .ek-news-card-shot .ek-ph {
	position: absolute; inset: 0;
	background-color: var(--ek-bg-secondary);
	background-image: repeating-linear-gradient(
		135deg,
		rgba(0,0,0,0.03) 0,
		rgba(0,0,0,0.03) 1px,
		transparent 1px,
		transparent 12px
	);
	display: flex; align-items: center; justify-content: center;
}
.ek-page .ek-news-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
	min-width: 0;
}
.ek-page .ek-news-card-title {
	font-size: 18px;
	font-weight: 500;
	letter-spacing: -0.005em;
	line-height: 1.3;
	color: var(--ek-text);
	text-wrap: balance;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: calc(18px * 1.3 * 2);
}
.ek-page .ek-news-card-lead {
	font-size: 14px;
	line-height: 1.5;
	color: var(--ek-text-muted);
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.ek-page .ek-news-card-foot {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: auto;
	padding-top: 8px;
}
.ek-page .ek-news-card-time {
	font-size: 12px;
	color: var(--ek-text-muted);
}

/* Скрытие карточки фильтром / load-more */
.ek-page .ek-news-card.ek-is-hidden,
.ek-page .ek-news-feat-card.ek-is-hidden { display: none; }

/* ───── Load more ───── */
.ek-page .ek-news-more {
	display: flex;
	justify-content: center;
	padding: 32px 0 96px;
}
.ek-page .ek-news-more .ek-btn { min-width: 220px; }

/* ───── Subscribe block ───── */
.ek-page .ek-news-sub-wrap {
	padding: 0 0 96px;
}
.ek-page .ek-news-sub {
	background: var(--ek-bg-dark);
	color: #fff;
	border-radius: var(--ek-radius-lg);
	padding: 64px;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.ek-page .ek-news-sub-text h2 {
	font-size: 32px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.12;
	color: #fff;
	margin: 0 0 12px;
}
.ek-page .ek-news-sub-text p {
	font-size: 15px;
	line-height: 1.5;
	color: rgba(255,255,255,0.65);
	max-width: 42ch;
	margin: 0;
}
.ek-page .ek-news-sub-form {
	display: flex;
	gap: 8px;
	align-items: center;
	background: rgba(255,255,255,0.08);
	border: 0.5px solid rgba(255,255,255,0.16);
	border-radius: var(--ek-radius-pill);
	padding: 6px 6px 6px 20px;
	transition: border-color .15s ease, background .15s ease;
}
.ek-page .ek-news-sub-form:focus-within {
	border-color: rgba(255,255,255,0.5);
	background: rgba(255,255,255,0.12);
}
.ek-page .ek-news-sub-form input {
	flex: 1;
	height: 44px;
	border: 0;
	outline: 0;
	background: transparent;
	font: 400 15px/1.4 var(--ek-font);
	color: #fff;
	letter-spacing: -0.005em;
	min-width: 0;
}
.ek-page .ek-news-sub-form input::placeholder {
	color: rgba(255,255,255,0.45);
}
.ek-page .ek-news-sub-form .ek-btn {
	height: 44px;
	flex: none;
}
.ek-page .ek-news-sub-note {
	font-size: 12px;
	color: rgba(255,255,255,0.45);
	margin: 12px 0 0;
	line-height: 1.5;
}
.ek-page .ek-news-sub-note a {
	color: rgba(255,255,255,0.7);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* ───── SINGLE NEWS ───── */
.ek-page .ek-news-single {
	padding: 24px 0 64px;
}
.ek-page .ek-news-single-head {
	max-width: 800px;
	margin: 0 auto 32px;
	display: flex; flex-direction: column; gap: 16px;
	text-align: left;
}
.ek-page .ek-news-single-title {
	font-size: 44px;
	font-weight: 500;
	letter-spacing: -0.02em;
	line-height: 1.1;
	color: var(--ek-text);
	margin: 0;
	text-wrap: balance;
}
.ek-page .ek-news-single-lead {
	font-size: 18px;
	line-height: 1.5;
	color: var(--ek-text-muted);
	max-width: 56ch;
	margin: 0;
}
.ek-page .ek-news-single-shot {
	margin: 0 auto 40px;
	max-width: 960px;
	border-radius: var(--ek-radius-lg);
	overflow: hidden;
	background: var(--ek-bg-secondary);
	aspect-ratio: 16 / 9;
}
.ek-page .ek-news-single-shot img {
	width: 100%; height: 100%;
	object-fit: cover;
	display: block;
}
.ek-page .ek-news-single-body {
	max-width: 720px;
	margin: 0 auto;
	font-size: 17px;
	line-height: 1.7;
	color: var(--ek-text);
}
.ek-page .ek-news-single-body p {
	margin: 0 0 20px;
}
.ek-page .ek-news-single-body h2 {
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.015em;
	margin: 32px 0 12px;
}
.ek-page .ek-news-single-body h3 {
	font-size: 20px;
	font-weight: 500;
	margin: 24px 0 8px;
}
.ek-page .ek-news-single-body ul,
.ek-page .ek-news-single-body ol {
	margin: 0 0 20px;
	padding-left: 24px;
}
.ek-page .ek-news-single-body li {
	margin-bottom: 6px;
}
.ek-page .ek-news-single-body a {
	color: var(--ek-text);
	border-bottom: 0.5px solid var(--ek-text);
}
.ek-page .ek-news-single-foot {
	max-width: 720px;
	margin: 32px auto 0;
}
.ek-page .ek-news-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
	color: var(--ek-text-muted);
	transition: color .15s;
}
.ek-page .ek-news-back-link:hover { color: var(--ek-text); }
.ek-page .ek-news-back-link .ek-chev { transition: transform .18s ease; display: inline-block; }
.ek-page .ek-news-back-link:hover .ek-chev { transform: translateX(-3px); }

.ek-page .ek-news-others {
	padding: 48px 0 96px;
	border-top: 0.5px solid var(--ek-border);
	margin-top: 64px;
}
.ek-page .ek-news-others .ek-acc-section-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 24px;
	flex-wrap: wrap;
}
.ek-page .ek-news-others .ek-acc-section-head h2 {
	font-size: 24px;
	font-weight: 500;
	letter-spacing: -0.015em;
	margin: 0;
	color: var(--ek-text);
}

/* ===========================================================
   АДАПТИВ — В КОНЦЕ ФАЙЛА (после десктопных правил, каскад).
   =========================================================== */

@media (max-width: 1024px) {
	.ek-page .ek-news-head { padding: 24px 0 20px; }
	.ek-page .ek-news-head h1 { font-size: 38px; }
	.ek-page .ek-news-head p { font-size: 16px; }

	.ek-page .ek-news-feat-card { grid-template-columns: 1fr; }
	.ek-page .ek-news-feat-body { padding: 32px; }
	.ek-page .ek-news-feat-title { font-size: 26px; }

	.ek-page .ek-news-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
	.ek-page .ek-news-card-body { padding: 20px; }
	.ek-page .ek-news-card-title { font-size: 17px; }

	.ek-page .ek-news-sub { grid-template-columns: 1fr; gap: 32px; padding: 48px; }
	.ek-page .ek-news-sub-text h2 { font-size: 28px; }

	.ek-page .ek-news-single-title { font-size: 34px; }
	.ek-page .ek-news-single-shot { margin-bottom: 32px; }
}

@media (max-width: 640px) {
	.ek-page .ek-news-head { padding: 20px 0 16px; }
	.ek-page .ek-news-head h1 { font-size: 30px; letter-spacing: -0.02em; }
	.ek-page .ek-news-head p { font-size: 15px; }

	/* Фильтр — горизонтальный скролл */
	.ek-page .ek-news-filter { padding: 4px 0 24px; }
	.ek-page .ek-news-filter-row {
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x proximity;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		margin: 0 -16px;
		padding: 2px 16px;
	}
	.ek-page .ek-news-filter-row::-webkit-scrollbar { display: none; }
	.ek-page .ek-news-pill { scroll-snap-align: start; }

	.ek-page .ek-news-featured { padding-bottom: 32px; }
	.ek-page .ek-news-feat-body { padding: 24px; gap: 12px; }
	.ek-page .ek-news-feat-title { font-size: 22px; }
	.ek-page .ek-news-feat-lead { font-size: 14px; }

	.ek-page .ek-news-grid { grid-template-columns: 1fr; gap: 16px; }
	.ek-page .ek-news-card-shot { aspect-ratio: 16 / 9; }
	.ek-page .ek-news-card-body { padding: 20px; gap: 8px; }
	.ek-page .ek-news-card-title { font-size: 17px; min-height: 0; }

	.ek-page .ek-news-more { padding: 24px 0 64px; }

	.ek-page .ek-news-sub-wrap { padding: 0 0 64px; }
	.ek-page .ek-news-sub { padding: 32px 24px; gap: 24px; }
	.ek-page .ek-news-sub-text h2 { font-size: 24px; }
	.ek-page .ek-news-sub-text p { font-size: 14px; }
	.ek-page .ek-news-sub-form {
		flex-direction: column;
		align-items: stretch;
		padding: 12px;
		border-radius: var(--ek-radius-lg);
		gap: 10px;
	}
	.ek-page .ek-news-sub-form input { height: 40px; padding: 0 12px; }
	.ek-page .ek-news-sub-form .ek-btn { width: 100%; }

	.ek-page .ek-news-single { padding: 16px 0 48px; }
	.ek-page .ek-news-single-title { font-size: 26px; }
	.ek-page .ek-news-single-lead  { font-size: 15px; }
	.ek-page .ek-news-single-shot  { margin-bottom: 24px; border-radius: var(--ek-radius-md); }
	.ek-page .ek-news-single-body  { font-size: 16px; line-height: 1.6; }
	.ek-page .ek-news-single-body h2 { font-size: 20px; }
	.ek-page .ek-news-others { padding: 32px 0 64px; margin-top: 40px; }
}

@media (max-width: 400px) {
	.ek-page .ek-news-head h1 { font-size: 26px; }
	.ek-page .ek-news-feat-title { font-size: 20px; }
}
