/**
 * Football Media — этап 1, главная.
 */

:root {
	--fm-blue: #141b4d;
	--fm-red: #d50032;
	--fm-white: #ffffff;
	--fm-surface: #f3f4f7;
	--fm-border: #d9deea;
	--fm-muted: #515973;
	--fm-step: 8px;
	--fm-container: 1140px;
	--fm-reading: var(--fm-font-reading, "Noto Sans", system-ui, sans-serif);
	--fm-display: var(--fm-font-display, "Russo One", var(--fm-reading));
}

/* Bootstrap assumes 10px at the root. FM styles and the plugin use 16px rem units. */
html {
	font-size: 100%;
}

body.fm-design-v1 {
	color: var(--fm-blue);
	background: var(--fm-white);
	font-family: var(--fm-reading);
	font-size: var(--fm-text-size, 1rem);
	line-height: var(--fm-text-leading, 1.6);
}

body.fm-design-v1 a {
	color: var(--fm-blue);
	text-decoration-color: var(--fm-border);
}

body.fm-design-v1 a:hover,
body.fm-design-v1 a:focus-visible {
	color: var(--fm-red);
}

.fm-container,
body.fm-design-v1 .main-container.container {
	box-sizing: border-box;
	width: min(100%, var(--fm-container));
	margin-inline: auto;
	padding-inline: 16px;
}

/* --- Шапка --- */
.fm-site-header {
	border-bottom: 3px solid var(--fm-red);
	background: var(--fm-blue);
	color: var(--fm-white);
}

.fm-site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: calc(var(--fm-step) * 2);
	min-height: 64px;
	padding-block: 10px;
}

body.fm-design-v1 .fm-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	color: inherit;
	text-decoration: none;
}

body.fm-design-v1 .fm-brand:hover,
body.fm-design-v1 .fm-brand:focus-visible {
	color: var(--fm-white);
	opacity: 0.92;
}

.fm-brand__mark {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	background: var(--fm-red);
	font-family: var(--fm-display);
	font-size: 1rem;
	letter-spacing: 0.04em;
}

.fm-brand__text {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.fm-brand__title {
	font-family: var(--fm-display);
	font-size: clamp(1rem, 2vw, 1.375rem);
	line-height: 1.1;
	text-transform: uppercase;
}

.fm-brand__tagline:empty {
	display: none;
}

.fm-brand__tagline {
	font-size: 0.75rem;
	opacity: 0.85;
	max-width: 28rem;
}

.fm-site-header__nav {
	flex: 1 1 auto;
}

.fm-menu {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: flex-end;
	gap: calc(var(--fm-step) * 2);
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-menu > li {
	position: relative;
}

.fm-menu .sub-menu {
	margin: 0;
	padding: 0 0 0 16px;
	list-style: none;
}

body.fm-design-v1 .fm-site-header .fm-menu a,
body.fm-design-v1 .fm-site-header .fm-menu a:hover,
body.fm-design-v1 .fm-site-header .fm-menu a:focus-visible {
	color: var(--fm-white);
}

.fm-menu .sub-menu a {
	font-size: 0.8125rem;
	white-space: normal;
}

@media (min-width: 992px) {
	.fm-menu .sub-menu {
		position: absolute;
		z-index: 20;
		inset-inline-start: 0;
		top: 100%;
		display: none;
		width: max-content;
		min-width: 180px;
		padding: 8px 14px;
		border-top: 2px solid var(--fm-red);
		background: var(--fm-blue);
	}

	.fm-menu li:hover > .sub-menu,
	.fm-menu li:focus-within > .sub-menu {
		display: block;
	}
}

.fm-menu > li > a,
.fm-menu__link {
	position: relative;
	display: inline-block;
	padding: 8px 0;
	color: var(--fm-white);
	font-size: 0.875rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
}

.fm-menu > li > a::after,
.fm-menu__link::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 3px;
	background: transparent;
	transition: background 0.15s ease;
}

.fm-menu .current-menu-item > a::after,
.fm-menu .current-menu-ancestor > a::after,
.fm-menu > li > a:hover::after,
.fm-menu > li > a:focus-visible::after {
	background: var(--fm-red);
}

.fm-nav-toggle {
	display: none;
	margin-inline-start: auto;
	padding: 8px;
	border: 0;
	border-radius: 4px;
	background: transparent;
	color: var(--fm-white);
}

.fm-nav-toggle__bar {
	display: block;
	width: 22px;
	height: 2px;
	margin: 5px 0;
	background: currentColor;
}

/* Скрываем шапку Envo */
body.fm-design-v1 .top-menu,
body.fm-design-v1 .site-header.container-fluid,
body.fm-design-v1 .main-menu {
	display: none !important;
}

body.fm-design-v1 .page-area {
	padding-top: calc(var(--fm-step) * 2);
}

/* Табло главной страницы. */
body.fm-home #fm-scoreboard {
	--fm-board-ink: var(--fm-blue);
	--fm-board-line: var(--fm-border);
	--fm-board-green: var(--fm-red);
	margin: 0 0 36px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: var(--fm-white);
}

body.fm-home #fm-scoreboard .fm-board-header {
	justify-content: space-between;
	gap: 8px 16px;
}

body.fm-home #fm-scoreboard h2,
.fm-section__title {
	margin: 0;
	color: var(--fm-blue);
	font-family: var(--fm-reading);
	font-size: var(--fm-heading-lg, 1.5rem);
	font-weight: 700;
	line-height: 1.24;
}

body.fm-home #fm-scoreboard .fm-board-dates {
	padding: 0;
	border-radius: 0;
	background: transparent;
}

body.fm-home #fm-scoreboard .fm-board-dates a {
	border-radius: 0;
	color: var(--fm-muted);
	font-size: 0.8125rem;
	font-weight: 700;
}

body.fm-home #fm-scoreboard .fm-board-dates a:is([aria-current], :hover, :focus-visible) {
	background: var(--fm-blue);
	color: var(--fm-white);
	box-shadow: none;
}

body.fm-home #fm-scoreboard .fm-board-center-link {
	margin-inline-start: 0;
	color: var(--fm-red);
	font-weight: 700;
}

body.fm-home #fm-scoreboard .fm-board-day {
	margin: 8px 0;
	color: var(--fm-muted);
}

body.fm-home #fm-scoreboard .fm-board-group {
	margin-top: 0;
	border: 0;
	border-block: 1px solid var(--fm-border);
	border-radius: 0;
}

body.fm-home #fm-scoreboard .fm-board-group + .fm-board-group {
	margin-top: 12px;
}

body.fm-home #fm-scoreboard .fm-board-group h3 {
	padding: 7px 10px;
	background: var(--fm-surface);
	font-family: var(--fm-reading);
}

body.fm-home #fm-scoreboard .fm-board-group h3 a {
	color: var(--fm-blue);
}

body.fm-home #fm-scoreboard .fm-board-score {
	min-width: 2.5rem;
	border-radius: 0;
	background: var(--fm-surface);
	font-family: var(--fm-display);
	font-size: 1rem;
}

body.fm-home #fm-scoreboard .fm-board-match {
	font-weight: 600;
}

body.fm-home #fm-scoreboard .fm-board-match:is(:hover, :focus-visible) {
	background: var(--fm-surface);
}

body.fm-home #fm-scoreboard .fm-board-match.is-live :is(.fm-board-score, .fm-board-status) {
	color: var(--fm-red);
}

body.fm-home #fm-scoreboard .fm-board-match.is-live .fm-board-score {
	background: #ffe5ec;
}

/* Новостной блок главной. */
.fm-section__head {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 16px;
	margin: 0 0 18px;
	padding: 0 0 12px;
	border-bottom: 1px solid var(--fm-border);
}

.fm-section__head::after {
	content: "";
	position: absolute;
	inset: auto auto -1px 0;
	width: 56px;
	height: 3px;
	background: var(--fm-red);
}

.fm-home-news {
	margin-bottom: 36px;
}

body.fm-design-v1 .fm-home-news__archive {
	color: var(--fm-red);
	font-size: 0.875rem;
	font-weight: 700;
}

.fm-home-news__layout,
.fm-home-news__cards {
	display: grid;
	gap: 20px;
}

.fm-home-news__feed {
	border-top: 3px solid var(--fm-red);
}

.fm-home-news__feed-label {
	margin: 10px 0 0;
	color: var(--fm-muted);
	font-size: 0.8125rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.fm-home-news__feed ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.fm-home-news__feed ul > li {
	margin: 0;
	padding: 0;
	border-bottom: 1px solid var(--fm-border);
}

.fm-home-story {
	float: none;
	width: auto;
	margin: 0;
}

.fm-home-story__link {
	display: block;
}

.fm-home-story__link:hover,
.fm-home-story__link:focus-visible {
	text-decoration: none;
}

.fm-home-story__title {
	margin: 0;
	color: inherit;
	font-family: var(--fm-reading);
	font-size: 1rem;
	font-weight: 700;
	line-height: 1.35;
	overflow-wrap: anywhere;
}

.fm-home-story__date {
	display: block;
	margin-top: 4px;
	color: var(--fm-muted);
	font-size: 0.75rem;
	line-height: 1.3;
	font-variant-numeric: tabular-nums;
}

.fm-home-story__image {
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: var(--fm-surface);
}

.fm-home-story__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fm-home-story--lead {
	padding-bottom: 14px;
	border-bottom: 1px solid var(--fm-border);
}

.fm-home-story--lead .fm-home-story__image {
	margin-bottom: 12px;
}

.fm-home-story--lead .fm-home-story__title {
	font-family: var(--fm-reading);
	font-size: clamp(1.25rem, 2.4vw, 1.875rem);
	font-weight: 700;
	line-height: 1.22;
	text-wrap: balance;
}

.fm-home-story--feed .fm-home-story__link {
	display: flex;
	align-items: start;
	gap: 12px;
	padding: 10px 0;
}

.fm-home-story--feed .fm-home-story__body {
	min-width: 0;
}

.fm-home-story--feed .fm-home-story__image {
	order: 1;
	flex: 0 0 68px;
	margin-inline-start: auto;
	aspect-ratio: 4 / 3;
}

.fm-home-story--card {
	display: flex;
	border: 1px solid var(--fm-border);
	background: var(--fm-surface);
}

.fm-home-story--card .fm-home-story__link {
	display: flex;
	flex-direction: column;
	width: 100%;
}

.fm-home-story--card .fm-home-story__image {
	width: 100%;
}

.fm-home-story--card .fm-home-story__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 12px;
}

.fm-home-story--card .fm-home-story__date {
	margin-top: auto;
}

@media (min-width: 440px) {
	.fm-home-news__cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (min-width: 768px) {
	.fm-home-news__layout--with-feed {
		grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
		grid-template-rows: min-content 1fr;
		align-items: start;
		gap: 18px 24px;
	}

	.fm-home-news__feed {
		grid-column: 2;
		grid-row: 1 / span 2;
	}

	.fm-home-news__cards {
		grid-column: 1;
	}

	.fm-home-story--lead .fm-home-story__image {
		aspect-ratio: 2 / 1;
	}
}

/* Даты и лента записей. */
body.fm-home .posted-date,
body.fm-home .comments-meta,
body.single-post.fm-design-v1 .post .posted-date,
body.single-post.fm-design-v1 .post .comments-meta {
	position: static;
	margin: 0 6px 0 0;
	padding: 0;
	color: var(--fm-muted);
	font-size: 0.8125rem;
	font-style: normal;
	font-weight: 500;
	text-shadow: none;
}

body.fm-home :is(.posted-date, .comments-meta)::before,
body.single-post.fm-design-v1 .post :is(.posted-date, .comments-meta)::before {
	display: none;
}

body.fm-home .home-articles article .news-item {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 12px 18px;
	align-items: start;
	margin: 0;
	padding: 12px 0;
	border-bottom: 1px solid var(--fm-border);
}

body.fm-home .home-articles .news-item::before,
body.fm-home .home-articles .news-item::after {
	display: none;
}

body.fm-home .home-articles .news-item > div {
	float: none;
	width: auto;
	margin: 0;
	padding: 0;
}

body.fm-home .home-articles .news-item .entry-title {
	font-family: var(--fm-reading);
	font-size: 1.125rem;
	font-weight: 700;
	line-height: 1.35;
}

body.fm-home .home-articles .post-excerpt {
	color: var(--fm-muted);
	font-size: 0.9375rem;
	font-style: normal;
	font-weight: 400;
}

body.fm-home .fm-archive-row #sidebar :is(.custom-html-widget > div, iframe) {
	max-width: 100%;
}

body.single-post.fm-design-v1 .post .single-title {
	color: var(--fm-blue);
	font-family: var(--fm-reading);
	font-size: var(--fm-heading-xl, 2rem);
	font-weight: 700;
	line-height: 1.13;
	letter-spacing: -.026em;
	text-wrap: balance;
}

@media (min-width: 768px) {
	body.fm-home #fm-scoreboard .fm-board-matches {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	body.fm-home #fm-scoreboard .fm-board-matches li {
		border-top: 0;
	}

	body.fm-home #fm-scoreboard .fm-board-matches li:nth-child(even) {
		border-inline-start: 1px solid var(--fm-border);
	}

	body.fm-home #fm-scoreboard .fm-board-matches li:nth-child(n + 3) {
		border-top: 1px solid var(--fm-border);
	}

	body.fm-home .home-articles article .news-item:has(> .news-thumb) {
		grid-template-columns: 150px minmax(0, 1fr);
	}
}

@media (max-width: 991.98px) {
	.fm-nav-toggle:not([hidden]) {
		display: block;
	}

	.fm-site-header__nav {
		flex-basis: 100%;
	}

	.fm-site-header__nav.has-toggle:not(.is-open) {
		display: none;
	}

	.fm-menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}
}

@media (max-width: 479.98px) {
	body.fm-home #fm-scoreboard .fm-board-dates {
		order: 1;
		flex-basis: 100%;
	}

	.fm-brand__tagline {
		display: none;
	}
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

/* Общие поверхности и статья. */
body.fm-design-v1 {
	background: #f8f9fc;
}

.fm-site-header__inner {
	column-gap: clamp(12px, 2vw, 22px);
}

.fm-nav-toggle {
	min-width: 44px;
	min-height: 44px;
	border: 1px solid #ffffff50;
	border-radius: 8px;
}

.fm-site-header a:focus-visible,
.fm-site-header button:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 3px;
}

body.fm-design-v1 :is(.fm-archive-row, .fm-article-layout) > [class*="col-"] {
	min-width: 0;
}

.fm-main .fm-page {
	padding-inline: 0;
}

.fm-main .fm-page h1 {
	font-size: var(--fm-heading-xl, 2rem);
	line-height: 1.15;
	letter-spacing: -.022em;
}

.fm-main .fm-page h2 {
	font-size: var(--fm-heading-lg, 1.5rem);
	line-height: 1.25;
}

body.fm-home #fm-scoreboard {
	margin-bottom: 27px;
	padding: clamp(12px, 2.5vw, 22px);
	border: 1px solid var(--fm-border);
	border-radius: 12px;
}

body.fm-home #fm-scoreboard .fm-board-group {
	border: 1px solid var(--fm-border);
	border-radius: 8px;
}

.fm-home-story--lead,
.fm-home-story--card,
.fm-home-news__feed {
	overflow: hidden;
	border: 1px solid var(--fm-border);
	border-radius: 12px;
	background: #fff;
}

.fm-home-story--lead {
	padding-bottom: 0;
}

.fm-home-story--lead .fm-home-story__image {
	margin-bottom: 0;
}

.fm-home-story--lead .fm-home-story__body {
	padding: clamp(12px, 2vw, 20px);
}

.fm-home-news__feed {
	padding-inline: clamp(12px, 2.3vw, 18px);
	border-top: 3px solid var(--fm-red);
}

.fm-home-news__feed ul > li:last-child {
	border-bottom: 0;
}

.fm-home-story--feed .fm-home-story__image {
	border-radius: 5px;
}

.fm-article {
	padding: clamp(16px, 3vw, 32px);
	border: 1px solid var(--fm-border);
	border-radius: 12px;
	background: #fff;
}

.fm-article__header .single-title {
	margin: .4em 0 .55em;
	overflow-wrap: anywhere;
}

body.fm-design-v1 .fm-article__category {
	color: var(--fm-red);
	font-size: .8125rem;
	font-weight: 700;
	text-decoration: none;
}

.fm-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .25rem .6rem;
	color: var(--fm-muted);
	font-size: .875rem;
}

.fm-article__hero {
	margin: clamp(14px, 3vw, 26px) 0;
}

.fm-article__hero img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 8px;
}

.fm-article__hero figcaption {
	margin-top: 6px;
	color: var(--fm-muted);
	font-size: .8125rem;
}

body.fm-design-v1 .fm-article .single-entry-summary {
	max-width: var(--fm-article-measure, 66ch);
	margin-block-start: 1.1rem;
	color: #202535;
	font-size: var(--fm-article-size, 1.0625rem);
	line-height: var(--fm-article-leading, 1.65);
	overflow-wrap: break-word;
}

.fm-article .single-entry-summary > :is(p, ul, ol, blockquote) {
	margin-block: 0 1.05em;
}

.fm-article .single-entry-summary > p:first-child {
	color: #151a28;
	font-weight: 600;
}

body.fm-design-v1 .single-entry-summary > :is(h2, h3, h4) {
	margin-block: 1.35em .42em;
	color: #151a28;
	font-family: var(--fm-reading);
	font-weight: 700;
	line-height: 1.24;
	text-wrap: balance;
}

body.fm-design-v1 .single-entry-summary > h2 {
	font-size: var(--fm-heading-lg, 1.5rem);
	letter-spacing: -.015em;
}

body.fm-design-v1 .single-entry-summary > :is(h3, h4),
body.fm-design-v1 :is(.fm-page h3, .fm-archive-row .entry-title) {
	font-size: var(--fm-heading-md, 1.125rem);
	line-height: 1.3;
}

body.fm-design-v1 .single-entry-summary :is(p, li) a {
	text-decoration: underline;
	text-decoration-thickness: .075em;
	text-underline-offset: .16em;
	overflow-wrap: anywhere;
}

.fm-article .single-entry-summary > :is(ul, ol) {
	padding-inline-start: 1.35em;
}

.fm-article .single-entry-summary > :is(ul, ol) > li + li {
	margin-block-start: .3em;
}

.fm-article .single-entry-summary > blockquote {
	padding-inline-start: 1em;
	border-inline-start: 3px solid var(--fm-red);
}

body.fm-design-v1 :is(.single-entry-summary, .fm-page) :is(pre, .wp-block-table) {
	max-width: 100%;
	overflow: auto;
}

body.fm-design-v1 :is(.archive-page-header, .search-head) .page-title,
body.fm-design-v1 h1.search-head {
	font-size: var(--fm-heading-xl, 2rem);
	line-height: 1.15;
}

body.fm-design-v1 :is(.widget-title, .widgettitle) {
	font-size: var(--fm-heading-md, 1.125rem);
	line-height: 1.25;
}

body.fm-design-v1:is(.archive, .search) .post-excerpt {
	color: var(--fm-muted);
	font-size: .9375rem;
	font-style: normal;
	line-height: 1.55;
}

.fm-article :is(img, iframe, video, input, textarea, select) {
	max-width: 100%;
}

.fm-article :is(pre, .wp-block-table) {
	max-width: 100%;
	overflow: auto;
}

.fm-article .fm-article-matches__header h2 {
	margin: 0;
}

.fm-article .fm-article-matches .fm-card-grid {
	list-style: none;
	padding-inline-start: 0;
}

.fm-design-v1 #sidebar img {
	max-width: 100%;
	height: auto;
}

.fm-design-v1 #sidebar .widget {
	min-width: 0;
	overflow-wrap: anywhere;
}

.fm-design-v1 #sidebar iframe {
	max-width: 100%;
}

body.fm-design-v1 #content-footer-section.fm-footer-widgets,
body.fm-design-v1 .fm-site-footer {
	background: var(--fm-blue);
	color: #e0e4fe;
}

.fm-design-v1 .fm-site-footer {
	padding-block: 16px;
	border-top: 1px solid #ffffff29;
	font-size: .8125rem;
}

body.fm-design-v1 :is(.fm-footer-widgets, .fm-site-footer) a {
	color: #fff;
	text-decoration-color: currentColor;
	text-underline-offset: .2em;
}

body.fm-design-v1 :is(.fm-footer-widgets, .fm-site-footer) a:is(:hover, :focus-visible) {
	color: #ffc5d2;
	text-decoration: underline;
}

body.fm-design-v1 :is(.fm-footer-widgets, .fm-site-footer) a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

@media (max-width: 991.98px) {
	.fm-site-header__nav {
		max-width: 100%;
	}

	.fm-site-header__nav .fm-menu a {
		display: flex;
		align-items: center;
		min-height: 44px;
		padding-block: 4px;
	}

	.fm-site-header__nav .fm-menu > li + li {
		border-top: 1px solid #ffffff26;
	}

	body.fm-design-v1 #sidebar {
		margin-top: 24px;
	}
}

@media (max-width: 599px) {
	body.fm-design-v1 .main-container.container,
	.fm-container {
		padding-inline: 12px;
	}

	.fm-site-header__inner {
		flex-wrap: wrap;
		gap: 8px;
		min-height: 58px;
		padding-block: 7px;
	}

	body.fm-design-v1 .fm-brand {
		gap: 8px;
	}

	.fm-brand__mark {
		width: 34px;
		height: 34px;
	}

	.fm-brand__tagline {
		display: none;
	}

	body.fm-home #fm-scoreboard .fm-board-dates {
		order: 1;
		flex-basis: 100%;
	}

	body.fm-home #fm-scoreboard .fm-board-center-link {
		display: inline-flex;
		align-items: center;
		min-height: 44px;
	}

	body.fm-home #fm-scoreboard .fm-board-match {
		min-height: 44px;
		padding: 8px 6px;
		font-size: .8125rem;
	}

	.fm-home-news__layout {
		gap: 12px;
	}

	.fm-home-news__feed {
		padding-inline: 10px;
	}

	.fm-article {
		padding: 12px 2px;
		border-inline: 0;
		border-radius: 0;
	}

	body.single-post.fm-design-v1 {
		background: #fff;
	}

	.fm-article__meta {
		gap: .2rem .5rem;
		font-size: .8125rem;
	}
}
