/*
 * Home page, hubs, rubric feeds and the rows under articles.
 * One look across them: Roboto, ink text, hairline rules, 14 px card
 * radius, 16:9 covers, a kicker (hub dot + small caps) above titles.
 * --nh-color is a hub colour, set on the element that needs it.
 */

.nh-home,
.nh-hub,
.nh-hub-head,
.nh-related-row { --nh-ink: #17141d; --nh-ink-2: #4b4553; --nh-muted: #5f5a68; --nh-line: #ebe8ef; --nh-soft: #f7f6f9; --nh-accent: #5b1a85; font-family: "Roboto", sans-serif; }
.nh-home a,
.nh-hub a,
.nh-hub-head a,
.nh-related-row a { font-family: "Roboto", sans-serif; color: var(--nh-ink); text-decoration: none; }
/* The theme sets a serif on every <p>; keep the blocks in one typeface. */
.nh-home p,
.nh-hub p,
.nh-hub-head p,
.nh-related-row p { font-family: "Roboto", sans-serif !important; }

/* Shared pieces ------------------------------------------------------- */

.nh-section { margin: 72px 0 0; }
.nh-sh { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--nh-ink); }
.nh-sh-title { margin: 0; font-family: "Roboto", sans-serif; font-size: 24px; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; color: var(--nh-ink); text-transform: none; }
.nh-sh-note { font-size: 15px; color: var(--nh-muted); }
.nh-home a.nh-sh-more,
.nh-hub a.nh-sh-more,
.nh-related-row a.nh-sh-more { font-size: 15px; font-weight: 500; color: var(--nh-accent); }
a.nh-sh-more:hover { text-decoration: underline; }

.nh-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-family: "Roboto", sans-serif; font-size: 13px; line-height: 1.4; color: var(--nh-muted); }
/* Topic and date under the title: small, grey, sentence case — the title leads. */
.nh-kicker-label { display: inline-flex; align-items: center; gap: 6px; font-weight: 400; color: var(--nh-muted); }
.nh-kicker-label .nh-dot { display: none; }
.nh-kicker-tail::before { content: "·"; margin-right: 8px; }
.nh-kicker-step { display: inline-flex; font-size: 12px; font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; color: var(--nh-muted); }
/* The hub page head keeps its coloured «Тема» label. */
.nh-hub-head .nh-kicker-label { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #2f2a36; }
.nh-hub-head .nh-kicker-label .nh-dot { display: inline-block; }
.nh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--nh-color, #8a8494); flex: 0 0 auto; }
.nh-home a:hover .nh-gcard-title,
.nh-hub a:hover .nh-gcard-title,
.nh-related-row a:hover .nh-mini-title { color: var(--nh-accent); }

.nh-format-tag {
	align-self: flex-start;
	padding: 2px 7px;
	border-radius: 4px;
	background: var(--nh-accent);
	color: #fff;
	font-family: "Roboto", sans-serif;
	font-size: 11px;
	line-height: 1.5;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

/* Long titles stop at three lines everywhere. */
.nh-gcard-title,
.nh-mini-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

/* Home ---------------------------------------------------------------- */

.nh-home > .site-main { padding: 36px 0 64px; }


/* Guides: bordered cards. */
.nh-gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.nh-gcard { margin: 0; min-width: 0; }
.nh-gcard-link { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--nh-line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .2s; }
.nh-gcard-link:hover { box-shadow: 0 6px 24px rgba(23, 20, 29, .08); }
.nh-gcard-media { display: block; background: var(--nh-soft); }
/* The ratio sits on the image: on the wrapper a 3:2 cover would stretch it. */
.nh-gcard-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nh-gcard-body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 20px; }
.nh-gcard-title { margin: 0; font-family: "Roboto", sans-serif; font-size: 18px; line-height: 1.32; font-weight: 700; color: var(--nh-ink); }

/* Topics: hub tiles. */
.nh-hub-tiles { display: grid; gap: 16px; }
.nh-hub-tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nh-hub-tiles-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
a.nh-hub-tile { display: flex; flex-direction: column; gap: 10px; padding: 20px; border: 1px solid var(--nh-line); border-radius: 14px; background: #fff; text-decoration: none; transition: box-shadow .2s; }
a.nh-hub-tile:hover { box-shadow: 0 6px 24px rgba(23, 20, 29, .08); }
.nh-hub-tile-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #f1eff4; background: color-mix(in srgb, var(--nh-color, #8a8494) 12%, #fff); }
.nh-hub-tile-icon .nh-dot { width: 12px; height: 12px; }
.nh-hub-tile-title { font-size: 18px; line-height: 1.25; font-weight: 700; color: var(--nh-ink); }
.nh-hub-tile-desc { font-size: 14px; line-height: 1.45; color: var(--nh-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.nh-hub-tile-count { margin-top: auto; padding-top: 6px; font-size: 13px; font-weight: 500; color: var(--nh-ink-2); }
a.nh-hub-tile-all { justify-content: center; gap: 6px; border-style: dashed; border-color: #d6d1dd; background: var(--nh-soft); }
a.nh-hub-tile-all .nh-hub-tile-title { font-size: 16px; }

.nh-hub-new .nh-sh { margin-bottom: 0; }

/* Telegram banner. */
.nh-tg { max-width: 900px; margin: 64px auto 0; } /* the image is 900 px wide: never stretched past it */
/* The child style.css zeroes the margin of .site-main's last child. */
.site-main > .nh-tg:last-child { margin: 64px auto 0; }
.nh-tg a { display: block; }
.nh-tg img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 154; border-radius: 14px; }
.nh-tg + .nh-section { margin-top: 56px; }

/* Hub ----------------------------------------------------------------- */

.nh-hub-head { padding: 32px 0 36px; border-bottom: 1px solid var(--nh-line); text-align: left; }
.nh-hub-head .nh-crumbs { font-size: 14px; color: #8a8494; margin-bottom: 22px; }
.nh-hub-head .nh-crumbs a { color: #8a8494; }
.nh-hub-head .nh-crumbs a:hover { color: var(--nh-accent); }
.nh-hub-head .nh-crumbs .breadcrumb_last { color: #8a8494; text-decoration: none; }
.nh-hub-head .nh-dot { width: 10px; height: 10px; }
.nh-hub-h1 { margin: 10px 0 0; font-family: "Roboto", sans-serif; font-size: 40px; line-height: 1.12; font-weight: 700; letter-spacing: -0.02em; text-transform: none; color: var(--nh-ink); }
.nh-hub-desc { margin: 14px 0 0; max-width: 720px; font-size: 18px; line-height: 1.5; color: var(--nh-ink-2); }
.nh-hub-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 18px 0 0; font-size: 14px; color: var(--nh-muted); }
.nh-hub-stats b { color: var(--nh-ink); }
.nh-hub > .site-main { padding-bottom: 64px; }
.nh-hub .site-main > :first-child { margin-top: 48px; }
/* The theme's #content padding (52 px) is for pages without a head; under
 * the hub head the first block's margin is the only gap. */
.nh-hub-head + #content { padding-top: 0; }
.nh-hub-intro { max-width: 840px; margin: 40px auto 0; }
.nh-hub-intro table { width: 100%; border-collapse: collapse; }
.nh-hub-intro th,
.nh-hub-intro td { border: 1px solid #e5e5e5; padding: 8px 10px; text-align: left; }

/* Best on the topic: subtopic columns of plain links. */
.nh-best { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 40px; }
.nh-best-title { margin: 0 0 4px; font-family: "Roboto", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--nh-muted); }
.nh-best-list { list-style: none; margin: 0 0 24px; padding: 0; }
.nh-best-list li { margin: 0; border-bottom: 1px solid var(--nh-line); }
.nh-best-list a { display: block; padding: 12px 0; font-size: 16px; line-height: 1.35; font-weight: 500; }
.nh-best-list a:hover { color: var(--nh-accent); }

/* Rows under an article ----------------------------------------------- */

.nh-related-row { margin: 48px 0 0; }
.nh-related-row .nh-sh { margin-bottom: 4px; }
.nh-related-row .nh-sh-title { font-size: 22px; }
.nh-minis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
a.nh-mini { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; padding: 16px 0; text-decoration: none; }
.nh-mini-media { display: block; }
.nh-mini-img { display: block; width: 120px; height: 90px; object-fit: cover; border-radius: 8px; background: var(--nh-soft); }
.nh-mini-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.nh-mini-title { font-size: 16px; line-height: 1.32; font-weight: 700; color: var(--nh-ink); }
.nh-mini-date { font-size: 13px; color: var(--nh-muted); }
/* The article column is narrow next to the sidebar: covers go on top. */
@media (min-width: 768px) {
	.nh-minis { gap: 0 24px; }
	a.nh-mini { grid-template-columns: 1fr; gap: 10px; padding: 18px 0 8px; }
	.nh-mini-img { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; }
}

/* Rubric and tag feeds, «Все статьи»: nh-card ------------------------- */

.nh-all-title { margin: 8px 0 28px; font-family: "Roboto", sans-serif; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: var(--nh-ink); text-transform: none; text-align: left; }
@media (max-width: 767px) { .nh-all-title { font-size: 24px; margin-bottom: 18px; } }

.nh-card .entry-featured { position: relative; }
.nh-card .entry-featured img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.nh-card-over { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: flex-start; pointer-events: none; }
.nh-card-over > * { pointer-events: auto; }
.nh-card-date { background: rgba(16, 15, 15, .7); color: #fff; font-family: "Roboto", sans-serif; font-size: 13px; padding: 3px 10px; }
.nh-card .entry-header { margin: 14px 0 8px; }
.nh-card .entry-title { font-family: "Roboto", sans-serif; font-weight: 500; font-size: 21px; line-height: 1.3; margin: 0; }
.nh-card .entry-summary { background: none; padding: 0; margin: 0; font-size: 16px; line-height: 26px; font-weight: 400; }
.nh-card-meta { display: flex; align-items: center; gap: 10px; margin-top: 10px; font-family: "Roboto", sans-serif; font-size: 13px; color: #888; }
.nh-card-icons { display: inline-flex; gap: 8px; align-items: center; }
.nh-icon { width: 16px; height: 16px; font-size: 18px; color: #333; }
.nh-badge { display: inline-block; background: var(--nh-color, #664dc1); color: #fff !important; font-family: "Roboto", sans-serif; font-size: 13px; line-height: 1.4; padding: 3px 10px; text-decoration: none !important; }
.nh-badge:hover { filter: brightness(1.15); }

/* Pagination: real links. */
.nh-pagination .posts-page-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 32px; font-family: "Roboto", sans-serif; font-size: 18px; font-weight: 500; }
.nh-pagination .page-numbers { padding: 4px 6px; text-transform: none; letter-spacing: 0; text-decoration: none; }

/* Article ------------------------------------------------------------- */

/* single.php wraps Yoast crumbs in <li><ul>; the theme makes spans inline-block. */
li:has(> ul > .breadcrumbs) { list-style: none; }
/* Old child-theme rules float the links, grey everything out and hide the crumbs on phones. */
#main .breadcrumbs { display: block; font-family: "Roboto", sans-serif; font-size: 14px; line-height: 1.5; color: #888; margin: 0 0 12px; }
#main .breadcrumbs span { display: inline; line-height: inherit; color: #888; }
#main .breadcrumbs a,
#main .breadcrumbs .breadcrumb_last { float: none; padding-right: 0; color: #888; text-decoration: none; }
#main .breadcrumbs a:hover { color: #660080; text-decoration: underline; }
.nh-menu-tg img { width: 22px; height: 22px; vertical-align: middle; }

/* Tablets ------------------------------------------------------------- */

@media (min-width: 768px) and (max-width: 1023px) {
	.nh-gcards,
	.nh-hub-tiles-4,
	.nh-hub-tiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.nh-best,
	.nh-minis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Phones -------------------------------------------------------------- */

@media (max-width: 767px) {
	.nh-home,
	.nh-hub,
	.nh-hub-head .grid-container { padding-left: 16px; padding-right: 16px; }
	/* Line up with the article title, which the theme insets by 10 px. */
	#main .breadcrumbs,
	.nh-related-row { padding-left: 10px; padding-right: 10px; }

	.nh-section { margin-top: 40px; }
	.nh-sh { padding-bottom: 10px; margin-bottom: 16px; }
	.nh-sh-title { font-size: 20px; }
	.nh-sh-note { display: none; }

	.nh-home > .site-main { padding-top: 20px; }

	/* Guides: a swipeable row of cards. */
	.nh-gcards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin-right: -16px; padding: 0 16px 4px 0; }
	.nh-gcard { flex: 0 0 260px; scroll-snap-align: start; }
	.nh-gcard-link { border-radius: 12px; }
	.nh-gcard-body { padding: 12px 14px 16px; gap: 6px; }
	.nh-gcard-title { font-size: 16px; }

	/* Topics: compact two-column tiles. */
	.nh-hub-tiles-3,
	.nh-hub-tiles-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	a.nh-hub-tile { padding: 14px; gap: 6px; border-radius: 12px; }
	.nh-hub-tile-icon,
	.nh-hub-tile-desc { display: none; }
	.nh-hub-tile-title { font-size: 15px; }
	.nh-hub-tile-count { padding-top: 0; font-size: 12px; font-weight: 400; color: var(--nh-muted); }
	.nh-hub-tiles > :last-child:nth-child(odd) { grid-column: 1 / -1; }


	.nh-tg, .site-main > .nh-tg:last-child { margin-top: 40px; }
	.nh-tg img { border-radius: 12px; }

	.nh-hub-head { padding: 20px 0 24px; }
	.nh-hub-head .nh-crumbs { margin-bottom: 14px; }
	.nh-hub-h1 { font-size: 28px; }
	.nh-hub-desc { font-size: 16px; }
	.nh-hub .site-main > :first-child { margin-top: 32px; }
	.nh-hub-intro { overflow-x: auto; }
	.nh-hub-intro table { min-width: 560px; }
	.nh-best,
	.nh-minis { grid-template-columns: 1fr; }
	a.nh-mini { grid-template-columns: 96px minmax(0, 1fr); padding: 12px 0; border-bottom: 1px solid var(--nh-line); }
	.nh-mini-img { width: 96px; height: 72px; }
}

/* Home «Темы»: a dark band with a large text list (approved mockup, variant Г) */
.nh-home-topics { padding: 40px 48px 44px; border-radius: 20px; background: #2b0d45; color: #fff; }
/* On EN it is the last block, and the child style.css zeroes the last child's margins. */
.site-main > .nh-home-topics:last-child { margin-top: 72px; }
.nh-topics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.nh-topics-head h2 { margin: 0; padding: 0; border: 0; font-family: "Roboto", sans-serif; font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.nh-topics-head p { margin: 0; font-family: "Roboto", sans-serif !important; font-size: 15px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
ul.nh-topics-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 56px; }
ul.nh-topics-list li { margin: 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
ul.nh-topics-list li:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
a.nh-topic { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: baseline; padding: 16px 0; color: #fff; text-decoration: none; box-shadow: none; }
a.nh-topic:hover, a.nh-topic:focus { color: #e4c8ff; }
.nh-topic-t { font-size: 28px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; }
.nh-topic-c { font-size: 22px; line-height: 1; color: rgba(255, 255, 255, .6); transition: transform .15s, color .15s; }
a.nh-topic:hover .nh-topic-c { color: inherit; transform: translateX(4px); }
.nh-topic-d { grid-column: 1 / -1; margin-top: 4px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .7); }
a.nh-topic-all { color: rgba(255, 255, 255, .8); }
a.nh-topic-all .nh-topic-c { color: inherit; }

@media (max-width: 1023px) {
	.nh-home-topics { padding: 32px 28px 36px; }
	ul.nh-topics-list { column-gap: 32px; }
	.nh-topic-t { font-size: 24px; }
}
@media (max-width: 767px) {
	.nh-home-topics, .site-main > .nh-home-topics:last-child { margin: 40px -16px 0; padding: 24px 20px 12px; border-radius: 0; }
	.nh-topics-head { margin-bottom: 12px; }
	.nh-topics-head h2 { font-size: 24px; }
	.nh-topics-head p, .nh-topic-d { display: none; }
	ul.nh-topics-list { grid-template-columns: minmax(0, 1fr); }
	ul.nh-topics-list li:nth-last-child(-n+2) { border-bottom: 0; }
	a.nh-topic { padding: 13px 0; }
	.nh-topic-t { font-size: 20px; }
	.nh-topic-c { font-size: 18px; }
}

/* Home lead slider: a dark full-width band, large cards with the title on
 * the cover. The row starts at the left edge of the window on any width
 * and the next card peeks in; round arrows sit on the cards at both
 * edges, like the old slider's. Native scroll-snap does the sliding
 * (js/nh-lead.js adds the arrows). */
.nh-home > .site-main { padding-top: 0; }
.nh-lead { --nh-gut: 20px; margin: 0 calc(50% - 50vw); padding: 32px 0; background: #0f0d12; color: #fff; }
.nh-lead-stage { position: relative; }
.nh-home button.nh-lead-btn { position: absolute; top: 50%; z-index: 2; width: 52px; height: 52px; margin: -26px 0 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: #fff; color: var(--nh-ink); cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .3); transition: transform .2s, box-shadow .2s, opacity .2s, visibility .2s; }
.nh-home button.nh-lead-prev { left: 32px; }
.nh-home button.nh-lead-next { right: 32px; }
.nh-home button.nh-lead-btn:hover:not(:disabled) { transform: scale(1.06); box-shadow: 0 6px 20px rgba(0, 0, 0, .38); }
.nh-home button.nh-lead-btn:focus-visible { outline: 3px solid #e4c8ff; outline-offset: 3px; }
/* At either end the arrow with nowhere to go hides. */
.nh-home button.nh-lead-btn:disabled { opacity: 0; visibility: hidden; }
ul.nh-lead-track { list-style: none; margin: 0; padding: 0 var(--nh-gut); display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--nh-gut); overscroll-behavior-x: contain; scrollbar-width: none; }
ul.nh-lead-track::-webkit-scrollbar { display: none; }
li.nh-slide { flex: 0 0 min(820px, calc(100vw - var(--nh-gut) - 160px)); margin: 0; padding: 0; scroll-snap-align: start; }
a.nh-slide-link { position: relative; display: block; aspect-ratio: 16 / 10; border-radius: 24px; overflow: hidden; background: #221d29; color: #fff; text-decoration: none; box-shadow: none; isolation: isolate; }
a.nh-slide-link:focus-visible { outline: 3px solid #e4c8ff; outline-offset: -3px; }
.nh-slide-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
a.nh-slide-link:hover .nh-slide-img { transform: scale(1.03); }
/* The purple tint of the 2018 slider over the whole cover, and a deep
 * purple fade under the title. */
a.nh-slide-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 3, 60, .94) 0%, rgba(16, 3, 60, .62) 34%, rgba(16, 3, 103, 0) 66%), radial-gradient(circle, rgba(50, 8, 150, .17), rgba(16, 3, 103, .42)); }
.nh-slide-body { position: absolute; left: 32px; right: 32px; bottom: 28px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nh-home .nh-slide-title { margin: 0; max-width: 680px; font-family: "Roboto", sans-serif; font-size: 32px; line-height: 1.16; font-weight: 700; letter-spacing: -.015em; color: #fff; text-transform: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.nh-slide-meta { font-size: 14px; line-height: 1.3; color: rgba(255, 255, 255, .78); }
.nh-lead-dots { display: flex; gap: 6px; padding: 0 var(--nh-gut); margin-top: 20px; }
.nh-lead-dots span { width: 24px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .25); transition: width .3s, background .3s; }
.nh-lead-dots span.is-on { width: 48px; background: #fff; }
.nh-lead + .nh-section { margin-top: 56px; }

@media (max-width: 899px) {
	.nh-lead { --nh-gut: 16px; padding: 20px 0 20px; }
	.nh-home button.nh-lead-btn { display: none; }
	ul.nh-lead-track { gap: 12px; }
	li.nh-slide { flex-basis: calc(100vw - 48px); }
	a.nh-slide-link { aspect-ratio: 1 / 1; border-radius: 18px; }
	.nh-slide-body { left: 18px; right: 18px; bottom: 18px; gap: 8px; }
	.nh-home .nh-slide-title { font-size: 22px; line-height: 1.2; -webkit-line-clamp: 4; }
	.nh-slide-meta { font-size: 13px; }
	.nh-lead-dots { justify-content: center; margin-top: 16px; }
	.nh-lead + .nh-section { margin-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
	.nh-slide-img, .nh-lead-dots span, .nh-home button.nh-lead-btn { transition: none; }
}

/* News tiles («Свежее», «Новое в теме») after the old site's grid cards:
 * the cover with a dark date plate and the topic in its colour, then
 * title and excerpt. */
.nh-ntiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; margin-top: 24px; }
/* Full width: three columns (home 9, topic pages 12 per page). */
.nh-ntiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nh-ntile { min-width: 0; }
a.nh-ntile-link { display: flex; flex-direction: column; height: 100%; color: var(--nh-ink); text-decoration: none; box-shadow: none; }
.nh-ntile-media { position: relative; display: block; border-radius: 14px; overflow: hidden; background: var(--nh-soft); }
.nh-ntile-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a.nh-ntile-link:hover .nh-ntile-img { transform: scale(1.04); }
.nh-ntile-plates { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.nh-ntile-date, .nh-ntile-topic { padding: 4px 9px; border-radius: 6px; font-size: 12px; line-height: 1.3; font-weight: 500; color: #fff; white-space: nowrap; }
.nh-ntile-date { background: rgba(16, 13, 22, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.nh-ntile-topic { background: var(--nh-color, #5b1a85); overflow: hidden; text-overflow: ellipsis; }
.nh-ntile-body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 14px; }
:is(.nh-home, .nh-hub) .nh-ntile-title { margin: 0; font-family: "Roboto", sans-serif; font-size: 20px; line-height: 1.3; font-weight: 700; color: var(--nh-ink); text-transform: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; transition: color .15s; }
a.nh-ntile-link:hover .nh-ntile-title { color: var(--nh-accent); }
:is(.nh-home, .nh-hub) p.nh-ntile-excerpt { margin: 0; font-size: 15px; line-height: 1.55; color: var(--nh-muted); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }



@media (min-width: 768px) and (max-width: 1023px) {
	.nh-ntiles-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	/* Phones: the same tiles, one per row. */
	.nh-ntiles, .nh-ntiles-3 { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 16px; }
	.nh-ntile-body { margin-top: 12px; }
	:is(.nh-home, .nh-hub) .nh-ntile .nh-ntile-title { font-size: 19px; line-height: 1.3; -webkit-line-clamp: 3; }
	:is(.nh-home, .nh-hub) p.nh-ntile-excerpt { font-size: 15px; -webkit-line-clamp: 2; }
}
@media (prefers-reduced-motion: reduce) {
	.nh-ntile-img { transition: none; }
}

/* «Гиды и сравнения», «Основы»: after TechCrunch's «Startups» block — a
 * large title with a pill link, two big cards (the first with the title
 * on the cover, the second with the cover above it), then the newest
 * posts as a text row. */
.nh-show-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.nh-home h2.nh-show-title { margin: 0; padding: 0; border: 0; font-family: "Roboto", sans-serif; font-size: 56px; line-height: 1; font-weight: 700; letter-spacing: -.035em; color: var(--nh-accent); text-transform: none; }
.nh-home a.nh-show-more { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1.5px solid var(--nh-accent); border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--nh-ink); text-decoration: none; transition: background .2s, color .2s; }
.nh-home a.nh-show-more:hover { background: var(--nh-accent); color: #fff; }
.nh-show-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.nh-show-card { min-width: 0; }
a.nh-show-link { display: flex; flex-direction: column; height: 100%; color: var(--nh-ink); text-decoration: none; box-shadow: none; }
.nh-show-media { display: block; overflow: hidden; border-radius: 16px; background: var(--nh-soft); }
.nh-show-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
a.nh-show-link:hover .nh-show-img { transform: scale(1.03); }
.nh-show-body { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.nh-home .nh-show-card-title { margin: 0; font-family: "Roboto", sans-serif; font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; color: inherit; text-transform: none; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; }

/* First card: the title on the cover, over a purple fade (as in the slider). */
.nh-show-cover a.nh-show-link { position: relative; overflow: hidden; border-radius: 16px; color: #fff; }
.nh-show-cover .nh-show-media { height: 100%; border-radius: 0; }
.nh-show-cover .nh-show-img { height: 100%; min-height: 100%; }
.nh-show-cover a.nh-show-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(16, 3, 60, .94) 0%, rgba(16, 3, 60, .6) 40%, rgba(16, 3, 103, 0) 72%); pointer-events: none; }
.nh-show-cover .nh-show-body { position: absolute; left: 28px; right: 28px; bottom: 26px; z-index: 1; }
.nh-home .nh-show-cover .nh-show-card-title { font-size: 34px; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }

/* Second card: cover above, text under it. */
.nh-show-plain .nh-show-body { margin-top: 18px; }
a.nh-show-link:hover .nh-show-card-title { color: var(--nh-accent); }
.nh-show-cover a.nh-show-link:hover .nh-show-card-title { color: #fff; }

/* The newest posts: a row of text items over hairlines. */
ul.nh-show-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px; }
ul.nh-show-list li { margin: 0; padding: 18px 0 0; border-top: 1px solid var(--nh-line); }
ul.nh-show-list a { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; color: var(--nh-ink); text-decoration: none; box-shadow: none; }
.nh-show-item-title { font-size: 17px; line-height: 1.32; font-weight: 700; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; transition: color .15s; }
ul.nh-show-list a:hover .nh-show-item-title { color: var(--nh-accent); }

@media (max-width: 1023px) {
	.nh-home h2.nh-show-title { font-size: 44px; }
	.nh-home .nh-show-card-title, .nh-home .nh-show-cover .nh-show-card-title { font-size: 26px; }
	ul.nh-show-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
	.nh-show-head { margin-bottom: 18px; }
	.nh-home h2.nh-show-title { font-size: 38px; }
	.nh-home a.nh-show-more { padding: 9px 15px; font-size: 14px; }
	.nh-show-top { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.nh-show-cover .nh-show-img { aspect-ratio: 4 / 5; }
	.nh-show-cover .nh-show-body { left: 20px; right: 20px; bottom: 20px; }
	.nh-home .nh-show-card-title, .nh-home .nh-show-cover .nh-show-card-title { font-size: 24px; line-height: 1.18; }
	.nh-show-plain .nh-show-body { margin-top: 14px; }
	ul.nh-show-list { grid-template-columns: minmax(0, 1fr); margin-top: 24px; }
	ul.nh-show-list li { padding: 16px 0; }
	.nh-show-item-title { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
	.nh-show-img { transition: none; }
}
