/* Talks page (/vystupleniya/): stats, topic cards, chips, dark accents and photo mosaic. */

.m-hero__media--rounded img {
	object-position: 50% 25%;
}

.m-h2 {
	font-size: clamp(28px, 3vw, 40px);
}

/* ---------- Topic cards ---------- */

.m-talks {
	gap: 20px;
}

.m-talk {
	display: flex;
	flex-direction: column;
	gap: 14px;
	border: 1px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.m-talk:hover {
	transform: translateY(-3px);
	border-color: rgba(52, 92, 237, 0.25);
	box-shadow: 0 16px 40px rgba(37, 69, 235, 0.12);
}

.m-talk p + p {
	margin-top: 0;
}

.m-talk__num {
	position: absolute;
	top: clamp(16px, 2vw, 24px);
	right: clamp(20px, 2.2vw, 30px);
	background: var(--m-grad);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	font-size: clamp(32px, 3vw, 44px);
	font-weight: 600;
	line-height: 1;
	opacity: 0.9;
}

.m-talk__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding-right: 64px;
}

.m-talk__title {
	color: var(--m-ink);
	font-size: clamp(21px, 1.9vw, 25px);
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.m-talk__about {
	color: var(--m-ink);
	font-size: 17px;
	line-height: 1.45;
}

.m-talk__who {
	margin-top: auto !important;
	padding-top: 14px;
	border-top: 1px solid #e8e7f2;
	color: var(--m-muted);
	font-size: 15px;
	line-height: 1.4;
}

.m-talk__who strong {
	color: var(--m-ink);
}

/* ---------- More topics (chips) ---------- */

.m-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	padding: 0;
	list-style: none;
}

.m-chips > li {
	padding: 10px 18px;
	border-radius: 30px;
	background: var(--m-field);
	color: var(--m-ink);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.2;
}

.m-more__note {
	margin-top: 22px;
	color: var(--m-muted);
	font-size: 17px;
	line-height: 1.45;
}

.m-more__note strong {
	color: var(--m-accent);
}

/* ---------- Formats ---------- */

.m-formats .m-h3 {
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 600;
}

.m-pain .wp-block-list {
	margin-top: 16px;
}

.m-formats li {
	font-size: 17px;
	line-height: 1.4;
}

.m-formats .m-card--blue .is-style-m-dots > li::before {
	background: #fff;
}

/* ---------- Value (dark band) ---------- */

.m-value {
	padding: clamp(28px, 4vw, 56px);
}

.m-value .m-h2 em {
	color: #8fb0ff;
}

.m-value .wp-block-list {
	margin-top: clamp(20px, 2.5vw, 32px);
}

.m-value .m-list--cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px 40px;
}

.m-value .is-style-m-checks > li {
	font-size: 18px;
}

@media (max-width: 960px) {
	.m-value .m-list--cols-2 {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Gallery mosaic ---------- */

.m-gallery {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	height: clamp(360px, 42vw, 560px);
}

.m-gallery .m-gallery__item {
	margin: 0;
	overflow: hidden;
	border-radius: var(--m-radius);
}

.m-gallery .m-gallery__item:first-child {
	grid-row: span 2;
}

.m-gallery .m-gallery__item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.m-gallery .m-gallery__item:hover img {
	transform: scale(1.03);
}

/* ---------- Tech ---------- */

#tech .m-h3 {
	font-size: clamp(20px, 1.8vw, 24px);
	font-weight: 600;
}

#tech li {
	font-size: 17px;
}

@media (max-width: 960px) {
	.m-talks {
		grid-template-columns: minmax(0, 1fr);
	}

	.m-gallery {
		grid-template-columns: minmax(0, 1fr);
		grid-template-rows: none;
		height: auto;
	}

	.m-gallery .m-gallery__item:first-child {
		grid-row: auto;
	}

	.m-gallery .m-gallery__item img {
		aspect-ratio: 4 / 3;
	}
}
