/* ================================
   НОВИНИ — список і окрема сторінка (у стилі карток сайту)
   ================================ */
.nw-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
	gap: 24px;
	max-width: 1080px;
	margin: 10px auto 60px;
}

.nw-grid--small {
	grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 320px));
	justify-content: center;
	margin-bottom: 40px;
}

.nw-card {
	display: flex;
	flex-direction: column;
	background: rgba(14, 16, 22, 0.7);
	border: 1px solid rgba(167, 139, 250, 0.18);
	border-radius: 18px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), border-color 0.35s, box-shadow 0.35s;
}

.nw-card:hover {
	transform: translateY(-4px);
	border-color: rgba(167, 139, 250, 0.4);
	box-shadow: 0 15px 35px rgba(167, 139, 250, 0.12);
}

.nw-card-img {
	height: 190px;
	background: rgba(167, 139, 250, 0.06);
	overflow: hidden;
}

.nw-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s;
}

.nw-card-img--logo {
	background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.25), rgba(14, 16, 22, 0.6) 70%);
}

.nw-card-img--logo img {
	object-fit: contain;
	padding: 36px;
	opacity: 0.85;
}

.nw-card:hover .nw-card-img img {
	transform: scale(1.04);
}

.nw-card-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 22px 22px;
	flex: 1;
}

.nw-date {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 1.5px;
	text-transform: uppercase;
	color: var(--accent);
}

.nw-card-title {
	margin: 0;
	font-size: 19px;
	line-height: 1.3;
	color: #fff;
}

.nw-grid--small .nw-card-title {
	font-size: 16px;
}

.nw-card-text {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--muted);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nw-more {
	margin-top: auto;
	padding-top: 6px;
	font-size: 13px;
	font-weight: 700;
	color: #c4b5fd;
}

.nw-empty {
	text-align: center;
	color: var(--muted);
	margin: 40px 0 80px;
}

/* Окрема новина */
.nw-article {
	max-width: 820px;
	margin: 30px auto 40px;
}

.nw-back {
	display: inline-block;
	margin-bottom: 18px;
	font-size: 13px;
	font-weight: 700;
	color: #c4b5fd;
	text-decoration: none;
}

.nw-back:hover {
	text-decoration: underline;
}

.nw-head {
	margin-bottom: 20px;
}

.nw-title {
	margin: 8px 0 0;
	font-size: clamp(28px, 4.5vw, 42px);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.5px;
	background: linear-gradient(135deg, #ffffff 0%, #c4b5fd 100%);
	-webkit-background-clip: text;
	background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nw-cover {
	display: block;
	width: 100%;
	max-height: 440px;
	object-fit: cover;
	border-radius: 18px;
	border: 1px solid rgba(167, 139, 250, 0.18);
	margin-bottom: 20px;
}

.nw-share {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin-top: 20px;
	font-size: 13px;
	color: var(--muted);
}

.nw-share-btn {
	font: inherit;
	font-size: 13px;
	font-weight: 700;
	cursor: pointer;
}

.nw-more-section {
	max-width: 1080px;
	margin: 0 auto;
}

