/**
 * Recently Updated — Phase 5.10 editorial Latest Updates showcase.
 * Scoped to .nds-ru / #nds-updated only.
 */

.nds-ru {
	--ru-ink: #f3f7fa;
	--ru-muted: rgba(226, 236, 242, 0.78);
	--ru-accent: #7eb8c4;
	--ru-accent-soft: rgba(126, 184, 196, 0.16);
	--ru-line: rgba(255, 255, 255, 0.1);
	--ru-card: rgba(255, 255, 255, 0.05);
	--ru-radius: 28px;
	--ru-ease: cubic-bezier(0.22, 1, 0.36, 1);
	margin: 2.25rem 0 2.5rem;
	overflow: clip;
}

.nds-ru__panel {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	contain: paint;
	border-radius: var(--ru-radius);
	border: 1px solid rgba(160, 190, 205, 0.16);
	background:
		radial-gradient(ellipse 65% 50% at 8% 0%, rgba(70, 130, 150, 0.22), transparent 55%),
		radial-gradient(ellipse 50% 45% at 95% 100%, rgba(40, 80, 110, 0.28), transparent 50%),
		linear-gradient(155deg, #0a1620 0%, #122636 48%, #163246 100%);
	box-shadow:
		0 28px 56px rgba(4, 14, 22, 0.32),
		inset 0 1px 0 rgba(255, 255, 255, 0.05);
	padding: 1.85rem 1.7rem 1.7rem;
	color: var(--ru-ink);
}

.nds-ru__glow {
	position: absolute;
	inset: auto 0 -35% 45%;
	height: 65%;
	background: radial-gradient(circle, rgba(126, 184, 196, 0.14), transparent 65%);
	pointer-events: none;
	z-index: 0;
}

.nds-ru__grid {
	position: absolute;
	inset: 0;
	opacity: 0.055;
	pointer-events: none;
	z-index: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
	background-size: 28px 28px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 88%);
}

.nds-ru__head,
.nds-ru__layout {
	position: relative;
	z-index: 1;
}

.nds-ru__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem;
	margin-bottom: 1.45rem;
}

.nds-ru__eyebrow {
	margin: 0 0 0.45rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--ru-accent);
}

.nds-ru__title {
	margin: 0 0 0.45rem;
	font-family: var(--nds-font-display, Georgia, "Times New Roman", serif);
	font-size: clamp(1.7rem, 2.15vw, 2.25rem);
	font-weight: 600;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: #ffffff;
}

.nds-ru__lede {
	margin: 0 0 0.55rem;
	max-width: 34rem;
	font-size: 0.98rem;
	line-height: 1.5;
	color: var(--ru-muted);
}

.nds-ru__stat {
	margin: 0;
	font-size: 0.82rem;
	font-weight: 600;
	color: rgba(196, 220, 228, 0.88);
}

.nds-ru__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	flex: 0 0 auto;
	font-size: 0.92rem;
	font-weight: 700;
	color: #e8f3f6;
	text-decoration: none;
	border-bottom: 1px solid rgba(232, 243, 246, 0.35);
	padding-bottom: 0.12rem;
	transition: color 200ms ease, border-color 200ms ease;
}

.nds-ru__all span {
	transition: transform 220ms var(--ru-ease);
}

.nds-ru__all:hover,
.nds-ru__all:focus-visible {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.7);
}

.nds-ru__all:hover span,
.nds-ru__all:focus-visible span {
	transform: translateX(3px);
}

.nds-ru__layout {
	display: grid;
	grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
	gap: 1.15rem 1.35rem;
	align-items: stretch;
}

/* —— Featured —— */
.nds-ru__feature {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 0;
	min-width: 0;
	border-radius: 20px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.045);
	border: 1px solid var(--ru-line);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
	transition: transform 250ms var(--ru-ease), box-shadow 250ms var(--ru-ease), border-color 250ms var(--ru-ease);
}

.nds-ru__feature:hover {
	transform: translateY(-5px);
	border-color: rgba(126, 184, 196, 0.35);
	box-shadow:
		0 22px 44px rgba(0, 0, 0, 0.3),
		0 0 0 1px rgba(126, 184, 196, 0.12);
}

.nds-ru__feature-media {
	position: relative;
	aspect-ratio: 16 / 11;
	background: rgba(0, 0, 0, 0.25);
	overflow: hidden;
}

.nds-ru__feature-img,
.nds-ru__feature-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 280ms var(--ru-ease);
}

.nds-ru__feature:hover .nds-ru__feature-img {
	transform: scale(1.03);
}

.nds-ru__feature-ph {
	background: linear-gradient(145deg, #1a4050, #0e2430);
}

.nds-ru__feature-media .nds-ru__badge--latest {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
}

.nds-ru__feature-body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 1rem 1.05rem 1.1rem;
}

.nds-ru__feature-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.nds-ru__badge {
	display: inline-flex;
	align-items: center;
	padding: 0.22rem 0.55rem;
	border-radius: 999px;
	font-size: 0.65rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #d7ebf0;
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.nds-ru__badge--latest {
	background: rgba(126, 184, 196, 0.18);
	border-color: rgba(126, 184, 196, 0.32);
	color: #cfe8ee;
}

.nds-ru__badge--edition {
	background: rgba(180, 160, 120, 0.14);
	border-color: rgba(200, 180, 140, 0.28);
	color: #e8dcc4;
}

.nds-ru__badge--sm {
	position: absolute;
	top: 0.4rem;
	left: 0.4rem;
	padding: 0.16rem 0.4rem;
	font-size: 0.58rem;
}

.nds-ru__chip {
	display: inline-flex;
	align-items: center;
	padding: 0.2rem 0.5rem;
	border-radius: 999px;
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	color: rgba(220, 236, 242, 0.85);
	background: var(--ru-accent-soft);
	border: 1px solid rgba(126, 184, 196, 0.22);
}

.nds-ru__feature-title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
}

.nds-ru__feature-title a {
	color: inherit;
	text-decoration: none;
}

.nds-ru__feature-title a:hover,
.nds-ru__feature-title a:focus-visible {
	color: #cfe8ee;
}

.nds-ru__feature-author {
	margin: 0;
	font-size: 0.82rem;
	color: var(--ru-muted);
}

.nds-ru__transition {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.15rem;
	margin: 0.15rem 0 0;
	font-size: 0.84rem;
	font-weight: 650;
}

.nds-ru__transition-old {
	color: rgba(200, 214, 220, 0.55);
	text-decoration: line-through;
}

.nds-ru__transition-arrow {
	color: var(--ru-accent);
	font-size: 0.75rem;
	line-height: 1;
}

.nds-ru__transition-new {
	color: #e8f3f6;
}

.nds-ru__date {
	margin: 0;
	font-size: 0.78rem;
	color: rgba(196, 220, 228, 0.7);
}

.nds-ru__feature-blurb {
	margin: 0.15rem 0 0;
	font-size: 0.88rem;
	line-height: 1.45;
	color: var(--ru-muted);
}

.nds-ru__whats-new {
	margin-top: 0.25rem;
	padding: 0.7rem 0.75rem;
	border-radius: 14px;
	background: rgba(0, 0, 0, 0.18);
	border: 1px solid rgba(255, 255, 255, 0.08);
}

.nds-ru__whats-new-title {
	margin: 0 0 0.45rem;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--ru-accent);
}

.nds-ru__whats-new-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.35rem 0.65rem;
}

.nds-ru__whats-new-list li {
	display: flex;
	align-items: flex-start;
	gap: 0.4rem;
	font-size: 0.78rem;
	line-height: 1.3;
	color: rgba(232, 243, 246, 0.88);
}

.nds-ru__check {
	flex: 0 0 auto;
	display: inline-flex;
	color: var(--ru-accent);
	margin-top: 0.05rem;
}

.nds-ru__ico {
	width: 14px;
	height: 14px;
}

.nds-ru__feature-foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-top: auto;
	padding-top: 0.35rem;
}

.nds-ru__price {
	font-size: 1.05rem;
	font-weight: 700;
	color: #ffffff;
}

.nds-ru__price .amount,
.nds-ru__price .woocommerce-Price-amount {
	color: inherit;
}

.nds-ru__feature-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem 0.9rem;
}

.nds-ru__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.65rem 1rem;
	border-radius: 999px;
	background: #ffffff;
	color: #0d2230;
	font-size: 0.88rem;
	font-weight: 700;
	text-decoration: none;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
	transition: transform 220ms var(--ru-ease), box-shadow 220ms var(--ru-ease);
}

.nds-ru__cta span {
	transition: transform 220ms var(--ru-ease);
}

.nds-ru__cta:hover,
.nds-ru__cta:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 26px rgba(0, 0, 0, 0.26);
	color: #081820;
}

.nds-ru__cta:hover span,
.nds-ru__cta:focus-visible span {
	transform: translateX(3px);
}

.nds-ru__secondary {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.84rem;
	font-weight: 650;
	color: #d7ebf0;
	text-decoration: none;
	border-bottom: 1px solid rgba(215, 235, 240, 0.3);
	padding-bottom: 0.08rem;
}

.nds-ru__secondary span {
	transition: transform 220ms var(--ru-ease);
}

.nds-ru__secondary:hover,
.nds-ru__secondary:focus-visible {
	color: #ffffff;
	border-color: rgba(255, 255, 255, 0.65);
}

.nds-ru__secondary:hover span,
.nds-ru__secondary:focus-visible span {
	transform: translateX(3px);
}

.nds-ru__all:focus-visible,
.nds-ru__cta:focus-visible,
.nds-ru__secondary:focus-visible,
.nds-ru__feature-title a:focus-visible,
.nds-ru__card-link:focus-visible {
	outline: 2px solid var(--ru-accent);
	outline-offset: 3px;
}

/* —— Side column —— */
.nds-ru__side {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	min-width: 0;
}

.nds-ru__timeline {
	list-style: none;
	margin: 0;
	padding: 0.35rem 0.2rem 0.55rem;
	display: flex;
	align-items: center;
	gap: 0;
	position: relative;
}

.nds-ru__timeline::before {
	content: "";
	position: absolute;
	left: 0.55rem;
	right: 0.55rem;
	top: 0.72rem;
	height: 1px;
	background: linear-gradient(90deg, transparent, rgba(126, 184, 196, 0.35), transparent);
	pointer-events: none;
}

.nds-ru__timeline-item {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.35rem;
	position: relative;
	z-index: 1;
	text-align: center;
}

.nds-ru__timeline-dot {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.22);
	border: 1px solid rgba(255, 255, 255, 0.18);
	transition: background 220ms ease, box-shadow 220ms ease, transform 220ms var(--ru-ease);
}

.nds-ru__timeline-item.is-active .nds-ru__timeline-dot {
	background: var(--ru-accent);
	border-color: rgba(206, 232, 238, 0.55);
	box-shadow: 0 0 0 4px rgba(126, 184, 196, 0.18);
	transform: scale(1.15);
}

.nds-ru__timeline-label {
	font-size: 0.68rem;
	font-weight: 650;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(200, 218, 226, 0.55);
}

.nds-ru__timeline-item.is-active .nds-ru__timeline-label {
	color: #d7ebf0;
}

.nds-ru__cards {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.55rem;
	flex: 1 1 auto;
}

.nds-ru__card {
	min-width: 0;
}

.nds-ru__card-link {
	display: grid;
	grid-template-columns: 64px minmax(0, 1fr);
	gap: 0.75rem;
	align-items: start;
	padding: 0.65rem 0.7rem;
	border-radius: 14px;
	background: var(--ru-card);
	border: 1px solid var(--ru-line);
	text-decoration: none;
	color: inherit;
	transition: border-color 220ms var(--ru-ease), box-shadow 220ms var(--ru-ease), transform 220ms var(--ru-ease);
}

.nds-ru__card-link:hover,
.nds-ru__card-link:focus-visible {
	border-color: rgba(126, 184, 196, 0.4);
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
	transform: translateY(-2px);
}

.nds-ru__card-cover {
	position: relative;
	width: 64px;
	height: 86px;
	border-radius: 8px;
	overflow: hidden;
	background: rgba(255, 255, 255, 0.06);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.22);
}

.nds-ru__card-img,
.nds-ru__card-ph {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nds-ru__card-ph {
	background: linear-gradient(145deg, #1a4050, #0e2430);
}

.nds-ru__card-body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.28rem;
	min-width: 0;
}

.nds-ru__card-title {
	font-size: 0.88rem;
	font-weight: 700;
	line-height: 1.3;
	color: #ffffff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nds-ru__card-transition {
	font-size: 0.74rem;
	font-weight: 650;
	color: rgba(206, 228, 234, 0.82);
}

.nds-ru__card-date {
	font-size: 0.7rem;
	color: rgba(196, 220, 228, 0.62);
}

.nds-ru__card-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.65rem;
	width: 100%;
	margin-top: 0.2rem;
}

.nds-ru__card-price {
	font-size: 0.86rem;
	font-weight: 700;
	color: #e8f3f6;
}

.nds-ru__card-cta {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--ru-accent);
}

.nds-ru__card-link:hover .nds-ru__card-cta span,
.nds-ru__card-link:focus-visible .nds-ru__card-cta span {
	transform: translateX(3px);
}

.nds-ru__card-cta span {
	display: inline-block;
	transition: transform 220ms var(--ru-ease);
}

/* —— Responsive —— */
@media (max-width: 1100px) {
	.nds-ru__layout {
		grid-template-columns: 1fr;
	}

	.nds-ru__cards {
		grid-template-columns: 1fr 1fr;
	}

	.nds-ru__feature {
		grid-template-columns: minmax(0, 0.42fr) minmax(0, 0.58fr);
		grid-template-rows: auto;
	}

	.nds-ru__feature-media {
		aspect-ratio: auto;
		min-height: 100%;
	}
}

@media (max-width: 760px) {
	.nds-ru {
		margin: 1.75rem 0 2rem;
	}

	.nds-ru__panel {
		border-radius: 22px;
		padding: 1.35rem 1.05rem 1.2rem;
	}

	.nds-ru__head {
		flex-direction: column;
		align-items: flex-start;
	}

	.nds-ru__feature {
		grid-template-columns: 1fr;
	}

	.nds-ru__feature-media {
		aspect-ratio: 16 / 11;
	}

	.nds-ru__cards {
		grid-template-columns: 1fr;
	}

	.nds-ru__whats-new-list {
		grid-template-columns: 1fr;
	}

	.nds-ru__feature-foot {
		flex-direction: column;
		align-items: stretch;
	}

	.nds-ru__feature-actions {
		flex-direction: column;
		align-items: stretch;
	}

	.nds-ru__cta,
	.nds-ru__secondary {
		justify-content: center;
		text-align: center;
	}

	.nds-ru__secondary {
		border-bottom: 0;
		padding: 0.55rem 0.75rem;
		border-radius: 999px;
		background: rgba(255, 255, 255, 0.07);
		border: 1px solid rgba(255, 255, 255, 0.12);
	}
}

@media (prefers-reduced-motion: reduce) {
	.nds-ru__feature,
	.nds-ru__feature-img,
	.nds-ru__card-link,
	.nds-ru__cta,
	.nds-ru__cta span,
	.nds-ru__secondary span,
	.nds-ru__all span,
	.nds-ru__card-cta span,
	.nds-ru__timeline-dot {
		transition: none !important;
	}

	.nds-ru__feature:hover,
	.nds-ru__feature:hover .nds-ru__feature-img,
	.nds-ru__card-link:hover,
	.nds-ru__cta:hover {
		transform: none;
	}
}
