/*
 * TTL — Tech Threat Lab
 * Page layer. Loaded after the shared ITB design system and legacy bundles.
 * Every rule is scoped to .ttl-lab or .ttl-lab-nav to avoid changing other pages.
 */

.ttl-lab,
.ttl-lab-nav {
	--ttl-text: var(--itb-color-text, #161616);
	--ttl-soft-text: var(--itb-color-text-soft, #393939);
	--ttl-muted: var(--itb-color-muted, #6f6f6f);
	--ttl-accent: var(--itb-color-accent, #dc3545);
	--ttl-accent-dark: var(--itb-color-accent-hover, #c20f13);
	--ttl-line: var(--itb-color-border, #e5e5e5);
	--ttl-line-soft: var(--itb-color-border-soft, #eceef1);
	--ttl-surface: var(--itb-color-surface, #fff);
	--ttl-surface-soft: var(--itb-color-surface-soft, #f7f8fa);
	--ttl-container: var(--itb-container, 1320px);
	--ttl-gutter: var(--itb-gutter, clamp(20px, 4.5vw, 65px));
	color: var(--ttl-text);
}

.ttl-lab *,
.ttl-lab *::before,
.ttl-lab *::after,
.ttl-lab-nav *,
.ttl-lab-nav *::before,
.ttl-lab-nav *::after {
	box-sizing: border-box;
}

.ttl-lab :where(h1, h2, h3, p, ul, ol, figure) {
	margin: 0;
}

.ttl-lab :where(ul, ol) {
	padding: 0;
	list-style: none;
}

.ttl-lab :where(img, svg) {
	display: block;
	max-width: 100%;
}

.ttl-lab a,
.ttl-lab-nav a {
	color: inherit;
}

.ttl-lab-shell,
.ttl-lab-nav__inner {
	width: min(var(--ttl-container), calc(100% - (2 * var(--ttl-gutter))));
	margin-inline: auto;
}

/*
 * Isolate TTL from the legacy SmartAdmin rules in itb-production.min.css.
 * That bundle styles every <aside> as a 220px, min-height:100% dark sidebar.
 */
.ttl-lab aside {
	display: block;
	width: auto;
	height: auto;
	min-height: 0;
	margin: 0;
	float: none;
	overflow: visible;
	background: none;
}

/* Compact publication navigation below the shared ITB header */

.ttl-lab-nav {
	position: relative;
	z-index: 2;
	border-bottom: 1px solid var(--ttl-line);
	background: var(--ttl-surface-soft);
}

.ttl-lab-nav__inner {
	min-height: 54px;
	display: flex;
	align-items: center;
	gap: clamp(22px, 3vw, 46px);
}

.ttl-lab-nav__home {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	text-decoration: none !important;
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .01em;
}

.ttl-lab-nav__home span {
	color: #cc0000;
	font-weight: 800;
	letter-spacing: .08em;
}

.ttl-lab-nav__links {
	margin-left: auto;
	display: flex;
	align-items: center;
	gap: clamp(18px, 2.4vw, 36px);
}

.ttl-lab-nav__links a {
	position: relative;
	padding: 18px 0 16px;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
}

.ttl-lab-nav__links a::after {
	content: '';
	position: absolute;
	left: 0;
	right: 100%;
	bottom: -1px;
	height: 2px;
	background: var(--ttl-accent);
	transition: right .18s ease;
}

.ttl-lab-nav__links a:hover::after,
.ttl-lab-nav__links a:focus-visible::after,
.ttl-lab-nav__links a[aria-current="page"]::after {
	right: 0;
}

.ttl-lab-nav__toggle {
	display: none;
	margin-left: auto;
	padding: 10px 0;
	border: 0;
	background: none;
	font: inherit;
	font-size: 14px;
	font-weight: 700;
	gap: 10px;
}

/* Typography and controls */

.ttl-lab-kicker,
.ttl-lab-date {
	display: block;
	font-size: .74rem;
	font-weight: 700;
	line-height: 1.5;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ttl-lab-kicker {
	margin-bottom: 12px;
	color: var(--ttl-accent);
}

.ttl-lab-date {
	margin-bottom: 10px;
	color: var(--ttl-muted);
}

.ttl-lab-button {
	min-height: 48px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 22px;
	border: 1px solid var(--ttl-text);
	background: transparent;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
	transition: color .18s ease, background .18s ease, border-color .18s ease;
}

.ttl-lab-button:hover,
.ttl-lab-button:focus-visible {
	color: #fff;
	background: var(--ttl-text);
}

.ttl-lab-button--primary {
	color: #fff !important;
	border-color: var(--ttl-accent);
	background: var(--ttl-accent);
}

.ttl-lab-button--primary:hover,
.ttl-lab-button--primary:focus-visible {
	border-color: var(--ttl-accent-dark);
	background: var(--ttl-accent-dark);
}

.ttl-lab-text-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none !important;
}

.ttl-lab-text-link span {
	transition: transform .16s ease;
}

.ttl-lab-text-link:hover span,
.ttl-lab-text-link:focus-visible span {
	transform: translateX(3px);
}

.ttl-lab a:focus-visible,
.ttl-lab button:focus-visible,
.ttl-lab-nav a:focus-visible,
.ttl-lab-nav button:focus-visible {
	outline: 2px solid var(--ttl-accent);
	outline-offset: 4px;
}

/* Hero */

.ttl-lab-hero {
	padding: clamp(64px, 8vw, 128px) 0 clamp(72px, 9vw, 140px);
	border-bottom: 1px solid var(--ttl-line);
	background: var(--ttl-surface);
	overflow: hidden;
}

.ttl-lab-hero__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
	align-items: center;
	gap: clamp(48px, 7vw, 108px);
}

.ttl-lab-hero__copy h1 {
	max-width: 9.8em;
	font-size: clamp(48px, 6.2vw, 88px);
	font-weight: 500;
	line-height: .97;
	letter-spacing: -.052em;
	text-transform: none;
}

.ttl-lab-hero__copy h1 span {
	color: var(--ttl-accent);
}

.ttl-lab-hero__copy > p {
	max-width: 620px;
	margin-top: 28px;
	color: var(--ttl-soft-text);
	font-size: clamp(17px, 1.35vw, 20px);
	line-height: 1.62;
}

.ttl-lab-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 34px;
}

.ttl-lab-hero__visual {
	position: relative;
	width: min(100%, 520px);
	aspect-ratio: 1;
	justify-self: end;
	border: 1px solid var(--ttl-line);
	background:
		linear-gradient(var(--ttl-line-soft) 1px, transparent 1px),
		linear-gradient(90deg, var(--ttl-line-soft) 1px, transparent 1px);
	background-size: 12.5% 12.5%;
}

.ttl-lab-orbit {
	position: absolute;
	inset: 50% auto auto 50%;
	border: 1px solid rgba(220, 53, 69, .44);
	border-radius: 50%;
	transform: translate(-50%, -50%);
}

.ttl-lab-orbit--outer {
	width: 78%;
	height: 78%;
	border-style: dashed;
	animation: ttl-lab-orbit-spin 34s linear infinite;
}

.ttl-lab-orbit--middle {
	width: 52%;
	height: 52%;
	border-right-color: transparent;
	animation: ttl-lab-orbit-spin-reverse 22s linear infinite;
}

.ttl-lab-orbit--inner { width: 25%; height: 25%; background: rgba(220, 53, 69, .05); }

.ttl-lab-hero__visual::before,
.ttl-lab-hero__visual::after {
	content: '';
	position: absolute;
	left: 50%;
	top: 50%;
	background: rgba(220, 53, 69, .42);
	transform-origin: left center;
}

.ttl-lab-hero__visual::before {
	width: 42%;
	height: 1px;
	animation: ttl-lab-radar-sweep 10s linear infinite;
}
.ttl-lab-hero__visual::after { width: 1px; height: 100%; top: 0; }

.ttl-lab-node {
	position: absolute;
	width: 10px;
	height: 10px;
	border: 2px solid #fff;
	border-radius: 50%;
	background: var(--ttl-accent);
	box-shadow: 0 0 0 5px rgba(220, 53, 69, .16);
	animation: ttl-lab-node-pulse 3.6s ease-in-out infinite;
}

.ttl-lab-node--one { left: 23%; top: 31%; }
.ttl-lab-node--two { right: 19%; top: 42%; animation-delay: -1.2s; }
.ttl-lab-node--three { left: 46%; bottom: 19%; animation-delay: -2.4s; }

@keyframes ttl-lab-orbit-spin {
	to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ttl-lab-orbit-spin-reverse {
	to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes ttl-lab-radar-sweep {
	from { transform: rotate(-27deg); }
	to { transform: rotate(333deg); }
}

@keyframes ttl-lab-node-pulse {
	0%, 100% { box-shadow: 0 0 0 5px rgba(220, 53, 69, .12); }
	50% { box-shadow: 0 0 0 10px rgba(220, 53, 69, .03), 0 0 18px rgba(220, 53, 69, .28); }
}

.ttl-lab-hero__legend {
	position: absolute;
	left: 24px;
	right: 24px;
	bottom: 20px;
	display: flex;
	gap: 18px;
	font-size: 12px;
	letter-spacing: .05em;
	text-transform: uppercase;
}

.ttl-lab-hero__legend strong { color: var(--ttl-accent); }

/* Sections */

.ttl-lab-section {
	padding: clamp(64px, 8vw, 112px) 0;
	background: var(--ttl-surface);
}

.ttl-lab-section--soft,
.ttl-lab-section--method {
	background: var(--ttl-surface-soft);
}

.ttl-lab-section--feature {
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-section--cratu {
	border-top: 1px solid var(--ttl-line);
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-section-head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: clamp(34px, 4vw, 58px);
}

.ttl-lab-section-head > div:first-child {
	max-width: 800px;
}

.ttl-lab-section-head h2,
.ttl-lab-method h2 {
	font-size: clamp(34px, 4.4vw, 58px);
	font-weight: 500;
	line-height: 1.04;
	letter-spacing: -.04em;
	text-transform: none;
}

.ttl-lab-section-head p {
	max-width: 680px;
	margin-top: 16px;
	color: var(--ttl-muted);
	font-size: 16px;
	line-height: 1.62;
}

.ttl-lab-section-head__actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

/* Weekly feature */

.ttl-lab-feature {
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
	min-height: 470px;
	border-top: 1px solid var(--ttl-text);
	border-bottom: 1px solid var(--ttl-text);
}

.ttl-lab-feature__visual {
	position: relative;
	min-height: 420px;
	display: grid;
	place-items: center;
	background: #111418;
	overflow: hidden;
}

.ttl-lab-feature__visual img,
.ttl-lab-feature__visual video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttl-lab-feature__copy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: clamp(36px, 5vw, 72px);
	background: var(--ttl-surface);
}

.ttl-lab-feature__copy h2 {
	margin-bottom: 22px;
	font-size: clamp(30px, 3.1vw, 46px);
	font-weight: 500;
	line-height: 1.08;
	letter-spacing: -.035em;
	text-transform: none;
}

.ttl-lab-feature__copy h2 a,
.ttl-lab-card h3 a,
.ttl-lab-archive h2 a {
	text-decoration: none !important;
}

.ttl-lab-feature__copy h2 a:hover,
.ttl-lab-card h3 a:hover,
.ttl-lab-archive h2 a:hover {
	color: var(--ttl-accent);
}

.ttl-lab-feature__copy p {
	margin-bottom: 28px;
	color: var(--ttl-muted);
	line-height: 1.62;
}

.ttl-lab-signal {
	position: relative;
	width: 72%;
	aspect-ratio: 1;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
}

.ttl-lab-signal::before,
.ttl-lab-signal::after {
	content: '';
	position: absolute;
	inset: 18%;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: 50%;
}

.ttl-lab-signal::after { inset: 36%; border-color: rgba(220, 53, 69, .7); }

.ttl-lab-signal i {
	position: absolute;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--ttl-accent);
	box-shadow: 0 0 18px var(--ttl-accent);
}

.ttl-lab-signal i:nth-child(1) { left: 18%; top: 37%; }
.ttl-lab-signal i:nth-child(2) { right: 24%; top: 21%; }
.ttl-lab-signal i:nth-child(3) { left: 47%; bottom: 11%; }
.ttl-lab-signal i:nth-child(4) { right: 10%; bottom: 37%; }

/* Cards */

.ttl-lab-cards {
	display: grid;
	gap: 0;
	border-top: 1px solid var(--ttl-line);
}

.ttl-lab-cards--editorial {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ttl-lab-cards--compact {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ttl-lab-card {
	min-width: 0;
	display: flex;
	flex-direction: column;
	padding: 30px;
	border-right: 1px solid var(--ttl-line);
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-cards--editorial .ttl-lab-card:nth-child(3n + 1),
.ttl-lab-cards--compact .ttl-lab-card:nth-child(2n + 1) {
	border-left: 1px solid var(--ttl-line);
}

.ttl-lab-card__media {
	position: relative;
	aspect-ratio: 16 / 9;
	margin: -30px -30px 26px;
	overflow: hidden;
	background: #161616;
}

.ttl-lab-card__media img,
.ttl-lab-card__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .32s ease;
}

.ttl-lab-card:hover .ttl-lab-card__media :where(img, video) { transform: scale(1.025); }

.ttl-lab-media-badge {
	position: absolute;
	right: 12px;
	bottom: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	min-height: 26px;
	padding: 0 9px;
	border: 1px solid rgba(255, 255, 255, .42);
	background: rgba(9, 10, 12, .78);
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: .08em;
	line-height: 1;
	text-transform: uppercase;
	backdrop-filter: blur(8px);
}

.ttl-lab-card__body {
	height: 100%;
	display: flex;
	flex-direction: column;
}

.ttl-lab-card h3 {
	margin-bottom: 16px;
	font-size: clamp(20px, 1.65vw, 26px);
	font-weight: 600;
	line-height: 1.24;
	letter-spacing: -.02em;
	text-transform: none;
}

.ttl-lab-card p {
	margin-bottom: 24px;
	color: var(--ttl-muted);
	line-height: 1.58;
}

.ttl-lab-card .ttl-lab-text-link { margin-top: auto; }

.ttl-lab-empty {
	padding: 32px;
	border: 1px solid var(--ttl-line);
	color: var(--ttl-muted);
	line-height: 1.6;
}

.ttl-lab-fallback-note {
	margin: 18px 0 0;
	color: var(--ttl-muted);
	font-size: 13px;
}

/* Method */

.ttl-lab-method {
	display: grid;
	grid-template-columns: minmax(260px, .7fr) minmax(0, 1.3fr);
	gap: clamp(48px, 7vw, 110px);
}

.ttl-lab-method ol {
	border-top: 1px solid var(--ttl-text);
}

.ttl-lab-method li {
	display: grid;
	grid-template-columns: 48px 150px minmax(0, 1fr);
	gap: 18px;
	align-items: baseline;
	padding: 25px 0;
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-method li > span {
	color: var(--ttl-accent);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
}

.ttl-lab-method li strong { font-size: 18px; }
.ttl-lab-method li p { color: var(--ttl-muted); line-height: 1.55; }

/* Section archive pages */

.ttl-lab-list-hero {
	padding: clamp(58px, 7vw, 104px) 0 clamp(46px, 6vw, 86px);
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-breadcrumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-bottom: 44px;
	color: var(--ttl-muted);
	font-size: 13px;
}

.ttl-lab-breadcrumbs a { text-decoration: none !important; }
.ttl-lab-breadcrumbs a:hover { color: var(--ttl-accent); }

.ttl-lab-list-hero h1,
.ttl-lab-article-head h1 {
	max-width: 1040px;
	font-size: clamp(44px, 5.7vw, 78px);
	font-weight: 500;
	line-height: 1;
	letter-spacing: -.048em;
	text-transform: none;
}

.ttl-lab-list-hero p {
	max-width: 760px;
	margin-top: 24px;
	color: var(--ttl-muted);
	font-size: 18px;
	line-height: 1.62;
}

.ttl-lab-section--archive { padding-top: clamp(46px, 6vw, 84px); }

.ttl-lab-archive {
	border-top: 1px solid var(--home-line, var(--ttl-line));
}

.ttl-lab-archive__item {
	display: grid;
	grid-template-columns: minmax(240px, .34fr) minmax(0, .66fr);
	gap: clamp(28px, 4vw, 64px);
	padding: 34px 0;
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-lab-archive__item.ttl-lab-archive__item--text-only {
	grid-template-columns: minmax(0, 1fr);
}

.ttl-lab-archive__item--text-only .ttl-lab-archive__copy {
	max-width: 1040px;
}

.ttl-lab-archive__media {
	position: relative;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #161616;
}

.ttl-lab-archive__media img,
.ttl-lab-archive__media video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ttl-lab-archive__copy h2 {
	margin-bottom: 14px;
	font-size: clamp(24px, 2.4vw, 36px);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -.025em;
	text-transform: none;
}

.ttl-lab-archive__copy p {
	max-width: 760px;
	margin-bottom: 22px;
	color: var(--ttl-muted);
	line-height: 1.6;
}

.ttl-lab-pagination { display: none; }

.ttl-lab-load-more {
	display: flex;
	min-height: 88px;
	align-items: center;
	justify-content: center;
	gap: 18px;
	padding-top: 34px;
}

.ttl-lab-load-more__status {
	color: var(--ttl-muted);
	font-size: 13px;
}

.ttl-lab-load-more.is-loading .ttl-lab-button {
	opacity: .55;
	pointer-events: none;
}

/* Detail page */

.ttl-lab-article-page { padding: 0; background: var(--ttl-surface); }

.ttl-lab-stream-article {
	padding: clamp(44px, 6vw, 86px) 0 clamp(72px, 9vw, 124px);
}

.ttl-lab-stream-article:not(:first-child) .ttl-lab-breadcrumbs { display: none; }

.ttl-lab-article-head {
	max-width: 1080px;
	margin-bottom: 40px;
}

.ttl-lab-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 18px;
	margin-top: 26px;
	color: var(--ttl-muted);
	font-size: 13px;
}

.ttl-lab-article-meta a {
	padding-bottom: 2px;
	border-bottom: 1px solid var(--ttl-line);
	text-decoration: none !important;
}

.ttl-lab-article-cover {
	margin-bottom: clamp(42px, 6vw, 78px);
}

.ttl-lab-article-cover img {
	width: 100%;
	max-height: 760px;
	object-fit: cover;
}

.ttl-lab-article-video {
	margin-bottom: clamp(42px, 6vw, 78px);
	background: #090a0c;
}

.ttl-lab-article-video video {
	display: block;
	width: 100%;
	max-height: min(76vh, 820px);
	background: #090a0c;
	object-fit: contain;
}

.ttl-lab-article-cover figcaption {
	margin-top: 10px;
	color: var(--ttl-muted);
	font-size: 12px;
}

.ttl-lab-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 820px) minmax(220px, 1fr);
	gap: clamp(52px, 7vw, 112px);
	align-items: start;
}

.ttl-lab-article-body {
	min-width: 0;
	font-size: 17px;
	line-height: 1.72;
}

.ttl-lab-article-body .itb-news-detail-shell,
.ttl-lab-article-body .itb-news-article {
	width: 100%;
	max-width: none;
	margin-inline: 0;
}

.ttl-lab-article-body :where(p, ul, ol, blockquote, table, pre) {
	margin: 0 0 1.4em;
}

.ttl-lab-article-body :where(h2, h3, h4) {
	margin: 1.7em 0 .7em;
	font-weight: 600;
	line-height: 1.18;
	letter-spacing: -.025em;
	text-transform: none;
}

.ttl-lab-article-body h2 { font-size: clamp(28px, 3vw, 40px); }
.ttl-lab-article-body h3 { font-size: clamp(22px, 2.2vw, 30px); }

.ttl-lab-article-body :where(ul, ol) {
	padding-left: 1.35em;
	list-style: revert;
}

.ttl-lab-article-body :where(li) { margin-bottom: .55em; }

.ttl-lab-article-body :where(a) {
	color: var(--ttl-accent-dark);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* Override unscoped .news-detail link/list rules from the legacy bundle. */
.ttl-lab .ttl-lab-article-body .news-detail a:not(.itb-news-article__button) {
	color: var(--ttl-accent-dark);
	font-weight: inherit;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

/* First-party links embedded into editorial copy must remain visibly actionable. */
.ttl-lab .ttl-lab-article-body :is(
	a[href^="https://www.itb.spb.ru/services/"],
	a[href^="https://www.itb.spb.ru/products/"],
	a[href^="/services/"],
	a[href^="/products/"]
) {
	padding: 0 .16em .06em;
	border-bottom: 2px solid var(--ttl-accent);
	border-radius: 2px;
	background: linear-gradient(to top, rgba(204, 0, 0, .12) 0 46%, transparent 46%);
	color: var(--ttl-accent-dark);
	font-weight: 700;
	text-decoration: none;
	box-decoration-break: clone;
	-webkit-box-decoration-break: clone;
	transition: color .2s ease, background-color .2s ease, border-color .2s ease;
}

.ttl-lab .ttl-lab-article-body :is(
	a[href^="https://www.itb.spb.ru/services/"],
	a[href^="https://www.itb.spb.ru/products/"],
	a[href^="/services/"],
	a[href^="/products/"]
):hover {
	border-bottom-color: var(--ttl-accent-dark);
	background: rgba(204, 0, 0, .14);
	color: var(--ttl-accent-dark);
}

.ttl-lab .ttl-lab-article-body .news-detail ul li {
	position: static;
	padding-inline-start: 0;
	color: inherit;
	line-height: inherit;
}

.ttl-lab .ttl-lab-article-body .news-detail ul li::marker {
	content: normal;
	font-family: inherit;
}

.ttl-lab-article-body :where(blockquote) {
	padding: 8px 0 8px 24px;
	border-left: 3px solid var(--ttl-accent);
	color: var(--ttl-soft-text);
}

.ttl-lab-article-body :where(table) {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.ttl-lab-article-body :where(th, td) {
	padding: 12px 14px;
	border: 1px solid var(--ttl-line);
	vertical-align: top;
	text-align: left;
}

.ttl-lab-article-body :where(th) { background: var(--ttl-surface-soft); }

.ttl-lab-article-body :where(pre) {
	max-width: 100%;
	padding: 18px;
	overflow: auto;
	background: #111418;
	color: #f4f4f4;
	font-size: 13px;
}

/* Public CRATU ThreatLens snapshot */

.ttl-threatlens-snapshot {
	margin: 0 0 clamp(42px, 6vw, 72px);
	padding: clamp(24px, 3.5vw, 42px);
	border: 1px solid var(--ttl-line);
	border-top: 3px solid var(--ttl-accent);
	border-radius: 12px;
	background: var(--ttl-surface-soft);
}

.ttl-lab-feature + .ttl-threatlens-snapshot { margin-top: 30px; }

.ttl-threatlens-snapshot__head {
	display: flex;
	align-items: end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 26px;
}

.ttl-threatlens-snapshot__head h2 {
	margin-top: 7px;
	font-size: clamp(24px, 2.7vw, 36px);
	font-weight: 600;
	line-height: 1.1;
	letter-spacing: -.025em;
}

.ttl-threatlens-snapshot__head time {
	color: var(--ttl-muted);
	font-size: 12px;
	white-space: nowrap;
}

.ttl-threatlens-snapshot__metrics {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	border-top: 1px solid var(--ttl-line);
	border-left: 1px solid var(--ttl-line);
	background: var(--ttl-surface);
}

.ttl-threatlens-snapshot__metrics > div {
	min-width: 0;
	padding: 22px;
	border-right: 1px solid var(--ttl-line);
	border-bottom: 1px solid var(--ttl-line);
}

.ttl-threatlens-snapshot__metrics strong {
	display: block;
	margin-bottom: 6px;
	font-size: clamp(28px, 3vw, 42px);
	font-weight: 650;
	line-height: 1;
	letter-spacing: -.04em;
}

.ttl-threatlens-snapshot__metrics span {
	color: var(--ttl-muted);
	font-size: 12px;
	line-height: 1.35;
}

.ttl-threatlens-snapshot__details {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 34px;
	margin-top: 34px;
}

.ttl-threatlens-snapshot__group h3 {
	margin: 0 0 14px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.35;
}

.ttl-threatlens-snapshot__group ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.ttl-threatlens-snapshot__group li {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 14px;
	padding: 9px 0;
	border-bottom: 1px solid var(--ttl-line);
	font-size: 13px;
}

.ttl-threatlens-snapshot__group li span,
.ttl-threatlens-snapshot__group li a {
	min-width: 0;
	overflow-wrap: anywhere;
}

.ttl-threatlens-snapshot__group li a {
	color: var(--ttl-accent-dark);
	text-decoration: none;
}

.ttl-threatlens-snapshot__group li strong {
	color: var(--ttl-muted);
	font-size: 12px;
	font-weight: 600;
}

.ttl-threatlens-snapshot--compact {
	margin-bottom: 0;
	padding: clamp(22px, 3vw, 32px);
}

.ttl-threatlens-snapshot--compact .ttl-threatlens-snapshot__head { margin-bottom: 20px; }
.ttl-threatlens-snapshot--compact .ttl-threatlens-snapshot__head h2 { font-size: clamp(22px, 2.4vw, 30px); }
.ttl-threatlens-snapshot--compact .ttl-threatlens-snapshot__metrics > div { padding: 18px; }

.ttl-lab .ttl-lab-article-aside {
	position: sticky !important;
	top: 104px;
	width: min(100%, 286px) !important;
	max-width: 286px;
	height: auto !important;
	min-height: 0 !important;
	max-height: none;
	align-self: start;
	justify-self: end;
	overflow: visible;
	padding: 20px;
	border: 1px solid var(--ttl-line);
	border-top: 3px solid var(--ttl-accent);
	border-radius: 10px;
	background: var(--ttl-surface-soft);
	box-shadow: 0 12px 34px rgba(22, 22, 22, .06);
	color: var(--ttl-text);
}

.ttl-lab-article-aside__label {
	display: block;
	margin-bottom: 12px;
	color: var(--ttl-accent-dark);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.ttl-lab-article-aside p {
	margin-bottom: 20px;
	color: var(--ttl-muted);
	font-size: 14px;
	line-height: 1.58;
}

.ttl-lab-source {
	display: block;
	margin-top: 20px;
	padding-top: 18px;
	border-top: 1px solid var(--ttl-line);
	color: var(--ttl-muted) !important;
	font-size: 12px;
	line-height: 1.5;
	word-break: break-word;
}

.ttl-lab-article-foot {
	margin-top: 64px;
	padding-top: 24px;
	border-top: 1px solid var(--ttl-line);
	background: transparent;
	color: var(--ttl-text);
}

.ttl-lab-article-back {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--ttl-text) !important;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
}

.ttl-lab-article-back:hover { color: var(--ttl-accent-dark) !important; }

.ttl-lab-stream-ad {
	width: 100%;
	height: auto;
	min-height: 0;
	overflow: visible;
	border-top: 1px solid var(--ttl-line);
	border-bottom: 1px solid var(--ttl-line);
	background: var(--ttl-surface-soft);
}

.ttl-lab-stream-ad__inner {
	display: grid;
	min-height: 220px;
	place-items: center;
	padding-top: 32px;
	padding-bottom: 32px;
}

.ttl-lab-stream-ad__slot {
	display: grid;
	width: 100%;
	min-height: 160px;
	place-items: center;
}

.ttl-lab-stream-ad__slot > div,
.ttl-lab-stream-ad__slot > div > div,
.ttl-lab-stream-ad__slot .card {
	width: 100%;
}

.ttl-lab-stream-ad__slot :where(img, iframe, object) {
	max-width: 100%;
	height: auto;
}

.ttl-lab-visually-hidden {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	white-space: nowrap !important;
}

/* Progressive reveal */

.ttl-lab [data-ttl-reveal] {
	opacity: 0;
	transform: translateY(18px);
	transition: opacity .55s ease, transform .55s ease;
}

.ttl-lab [data-ttl-reveal].is-visible {
	opacity: 1;
	transform: none;
}

/* Responsive */

@media (max-width: 1100px) {
	.ttl-lab-nav__links { gap: 18px; }
	.ttl-lab-nav__links a { font-size: 13px; }
	.ttl-lab-hero__grid { grid-template-columns: minmax(0, 1fr) minmax(330px, .75fr); }
	.ttl-lab-cards--editorial { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttl-lab-cards--editorial .ttl-lab-card:nth-child(3n + 1) { border-left: 0; }
	.ttl-lab-cards--editorial .ttl-lab-card:nth-child(2n + 1) { border-left: 1px solid var(--ttl-line); }
	.ttl-lab-article-layout { grid-template-columns: minmax(0, 1fr) 240px; gap: 52px; }
}

@media (max-width: 850px) {
	.ttl-lab-nav__inner { min-height: 54px; flex-wrap: wrap; padding: 8px 0; }
	.ttl-lab-nav__toggle { display: inline-flex; }
	.ttl-lab-nav__links { display: none; width: 100%; margin: 0; padding: 4px 0 12px; flex-direction: column; align-items: stretch; gap: 0; }
	.ttl-lab-nav__links.is-open { display: flex; }
	.ttl-lab-nav__links a { padding: 12px 0; border-top: 1px solid var(--ttl-line); }
	.ttl-lab-nav__links a::after { display: none; }
	.ttl-lab-hero__grid,
	.ttl-lab-feature,
	.ttl-lab-method { grid-template-columns: 1fr; }
	.ttl-lab-hero__visual { justify-self: start; width: min(100%, 500px); }
	.ttl-lab-feature__visual { min-height: 360px; }
	.ttl-lab-method { gap: 38px; }
	.ttl-threatlens-snapshot__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ttl-threatlens-snapshot__details { grid-template-columns: 1fr; gap: 26px; }
	.ttl-lab-archive__item { grid-template-columns: minmax(190px, .4fr) minmax(0, .6fr); gap: 28px; }
}

@media (max-width: 760px) {
	.ttl-lab-article-layout { grid-template-columns: 1fr; }
	.ttl-lab .ttl-lab-article-aside {
		position: static !important;
		width: min(100%, 360px) !important;
		max-width: 360px;
		max-height: none;
		justify-self: start;
		overflow: visible;
	}
}

@media (max-width: 620px) {
	.ttl-lab-nav__home { font-size: 12px; }
	.ttl-lab-hero { padding-top: 52px; }
	.ttl-lab-hero__copy h1 { font-size: clamp(44px, 15vw, 64px); }
	.ttl-lab-hero__visual { aspect-ratio: 1; }
	.ttl-lab-section-head { align-items: flex-start; flex-direction: column; }
	.ttl-lab-cards--editorial,
	.ttl-lab-cards--compact { grid-template-columns: 1fr; }
	.ttl-lab-cards--editorial .ttl-lab-card,
	.ttl-lab-cards--compact .ttl-lab-card { border-left: 1px solid var(--ttl-line) !important; }
	.ttl-lab-feature__visual { min-height: 280px; }
	.ttl-lab-feature__copy { padding: 30px 24px; }
	.ttl-lab-method li { grid-template-columns: 40px minmax(0, 1fr); }
	.ttl-lab-method li p { grid-column: 2; }
	.ttl-lab-archive__item { grid-template-columns: 1fr; }
	.ttl-lab-article-body { font-size: 16px; }
	.ttl-lab .ttl-lab-article-aside { width: 100% !important; max-width: none; }
	.ttl-lab-article-body :where(table) { display: block; overflow-x: auto; }
	.ttl-lab-load-more { flex-direction: column; }
	.ttl-threatlens-snapshot__head { align-items: flex-start; flex-direction: column; gap: 10px; }
	.ttl-threatlens-snapshot__metrics { grid-template-columns: 1fr 1fr; }
	.ttl-threatlens-snapshot__metrics > div { padding: 16px; }
	.ttl-threatlens-snapshot__metrics strong { font-size: 28px; }
	.ttl-lab-stream-ad__inner { min-height: 180px; padding-top: 24px; padding-bottom: 24px; }
}

@media (prefers-reduced-motion: reduce) {
	.ttl-lab *,
	.ttl-lab *::before,
	.ttl-lab *::after,
	.ttl-lab-nav *,
	.ttl-lab-nav *::before,
	.ttl-lab-nav *::after {
		scroll-behavior: auto !important;
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
		animation-iteration-count: 1 !important;
	}

	.ttl-lab [data-ttl-reveal] { opacity: 1; transform: none; }
}

/* TTL Lab — правильная геометрия радара */

.ttl-lab-hero__visual {
    aspect-ratio: 1 / 1;
}

.ttl-lab-orbit {
    border-radius: 50%;
}

@media (max-width: 620px) {
    .ttl-lab .ttl-lab-hero__visual {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1 / 1;
    }
}
