:root {
	--color-ink: #050505;
	--color-muted: #666666;
	--color-border: #dedede;
	--color-soft: #f4f4f4;
	--color-red: #d84343;
	--color-red-dark: #b93434;
	--color-red-line: #d96565;
	--page-width: 1200px;
	--content-width: 770px;
	--gutter: 24px;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	color: var(--color-ink);
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	line-height: 1.25;
	background: #f5f5f5;
}

a {
	color: inherit;
	text-decoration: none;
}

img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
}

h1,
h2,
h3,
p {
	margin-top: 0;
	overflow-wrap: break-word;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -120px;
	z-index: 20;
	padding: 10px 14px;
	background: #000;
	color: #fff;
}

.skip-link:focus {
	top: 16px;
}

.page-frame {
	width: min(100%, var(--page-width));
	margin-inline: auto;
	background: #fff;
}

.page-kicker {
	margin: 0;
	padding: 16px 24px 10px;
	color: #b7b7b7;
	font-size: 14px;
	background: #f5f5f5;
}

.site-header {
	border-bottom: 1px solid var(--color-border);
	background: #fff;
}

.site-header__top,
.site-header__navrow {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: min(100% - 48px, var(--content-width));
	margin-inline: auto;
}

.site-header__top {
	min-height: 42px;
	padding-top: 8px;
}

.site-header__title {
	color: #7f0b0b;
	font-size: 18px;
	font-weight: 700;
}

.site-header__title img {
	width: 121px;
	height: auto;
}

.site-header__actions,
.site-header__meta,
.site-footer__social {
	display: flex;
	align-items: center;
	gap: 7px;
}

.site-header__actions a:not(.subscribe-button),
.site-footer__social a {
	display: grid;
	width: 24px;
	height: 24px;
	place-items: center;
	border-radius: 2px;
	background: #eeeeee;
	font-size: 11px;
	font-weight: 700;
}

.site-header__actions img,
.site-footer__social img {
	width: 11px;
	height: 11px;
	object-fit: contain;
}

.subscribe-button,
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 2px;
	background: #000;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.subscribe-button {
	min-height: 26px;
	padding: 0 16px;
}

.site-header__navrow {
	min-height: 31px;
	border-top: 1px solid var(--color-border);
}

.site-header__menu,
.site-footer__menu {
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-header__menu a,
.site-footer__menu a {
	display: block;
	padding: 0 18px;
	border-right: 1px solid #d7d7d7;
	font-size: 9px;
	line-height: 1;
}

.site-header__menu li:first-child a,
.site-footer__menu li:first-child a {
	padding-left: 0;
	font-weight: 700;
}

.site-header__menu li:last-child a,
.site-footer__menu li:last-child a {
	border-right: 0;
}

.site-header__meta {
	font-size: 10px;
}

.site-header__meta span:first-child {
	color: var(--color-red);
}

.site-header__meta a {
	padding-left: 18px;
	font-size: 20px;
	line-height: 1;
}

.site-header__toggle {
	display: none;
	border: 1px solid var(--color-border);
	border-radius: 2px;
	padding: 7px 11px;
	background: #fff;
	font-size: 12px;
}

.site-main {
	overflow: hidden;
}

.lead-layout {
	display: grid;
	grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
	gap: 24px;
	width: min(100% - 48px, var(--content-width));
	margin-inline: auto;
	padding-bottom: 58px;
}

.lead-layout__visual {
	position: relative;
	padding-top: 31px;
}

.lead-layout__visual::before {
	position: absolute;
	left: calc((100vw - min(100vw, var(--page-width))) / -2 - 1px);
	top: 0;
	width: min(46vw, 470px);
	height: 320px;
	content: "";
	background-color: var(--color-red);
	background-image: url("../images/dx-design-task/hero-pattern.png");
	background-size: cover;
}

.lead-card {
	position: relative;
	z-index: 1;
	width: min(100%, 435px);
	margin: 0 0 48px;
}

.lead-card img {
	aspect-ratio: 1.56;
	border-radius: 2px;
	object-fit: cover;
}

.lead-card figcaption {
	position: absolute;
	left: 0;
	bottom: 0;
	padding: 8px 18px;
	background: #fff;
	color: #000;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
}

.lead-copy {
	position: relative;
	z-index: 1;
	max-width: 430px;
}

.lead-copy h1 {
	margin-bottom: 12px;
	font-size: 22px;
	line-height: 1.12;
}

.lead-copy p {
	max-width: 400px;
	margin-bottom: 22px;
	font-size: 11px;
	line-height: 1.35;
}

.button {
	min-height: 31px;
	padding: 0 15px;
}

.latest-news {
	padding-top: 30px;
}

.latest-news h2,
.news-section > h2,
.health-section h2 {
	margin-bottom: 18px;
	font-size: 20px;
	line-height: 1;
	text-transform: uppercase;
}

.latest-news h2 {
	font-size: 12px;
}

.latest-news__item {
	padding: 0 0 16px 15px;
	margin-bottom: 15px;
	border-bottom: 1px solid #e6e6e6;
	border-left: 1px solid var(--color-red);
}

.latest-news__item h3 {
	margin-bottom: 10px;
	font-size: 14px;
	line-height: 1.2;
	font-weight: 400;
}

.latest-news__item:first-of-type h3 {
	font-weight: 700;
}

.latest-news__item p,
.story-card p,
.feature-story__meta {
	margin-bottom: 0;
	color: var(--color-muted);
	font-size: 9px;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-size: 11px;
	font-weight: 700;
}

.latest-news .text-link {
	float: right;
}

.promo-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: min(100% - 48px, 630px);
	margin-inline: auto;
	padding-bottom: 24px;
}

.promo-card {
	min-height: 136px;
	padding: 40px;
	border: 1px solid #dadada;
}

.promo-card:nth-child(4) {
	background: var(--color-red);
	color: #fff;
}

.promo-card h2 {
	margin-bottom: 13px;
	font-size: 14px;
	line-height: 1.18;
}

.promo-card p {
	margin-bottom: 0;
	color: var(--color-muted);
	font-size: 9px;
}

.promo-card:nth-child(4) p {
	color: rgba(255, 255, 255, 0.78);
}

.news-section {
	width: min(100% - 48px, var(--content-width));
	margin-inline: auto;
	padding: 46px 0 44px;
}

.section-rule {
	height: 1px;
	margin-bottom: 20px;
	background: var(--color-red-line);
}

.section-rule--light {
	background: rgba(255, 255, 255, 0.65);
}

.split-grid {
	display: grid;
	grid-template-columns: 0.9fr 1.55fr;
	gap: 24px;
}

.feature-left-grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 24px;
}

.mini-grid,
.three-grid,
.four-grid {
	display: grid;
	gap: 24px;
}

.mini-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-grid {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.story-card img {
	aspect-ratio: 1.55;
	border-radius: 2px;
	object-fit: cover;
	object-position: center top;
}

.story-card h3 {
	margin: 14px 0 13px;
	font-size: 14px;
	line-height: 1.15;
	font-weight: 400;
}

.story-card--small h3 {
	font-size: 14px;
}

.story-card--dark {
	color: #fff;
}

.story-card--dark p {
	color: #fff;
}

.feature-story img {
	aspect-ratio: 1.52;
	border-radius: 2px;
	object-fit: cover;
	object-position: center top;
}

.feature-story__meta {
	margin-top: 18px;
	margin-bottom: 12px;
}

.feature-story h3 {
	margin-bottom: 14px;
	font-size: 18px;
	line-height: 1.15;
}

.feature-story p:not(.feature-story__meta) {
	margin-bottom: 17px;
	font-size: 11px;
	line-height: 1.35;
}

.health-section {
	background: var(--color-red-dark);
}

.health-section__inner {
	width: min(100% - 48px, var(--content-width));
	margin-inline: auto;
	padding: 46px 0 48px;
	color: #fff;
}

.site-footer {
	background: var(--color-red);
	color: #fff;
}

.site-footer__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 22px;
	width: min(100% - 48px, var(--content-width));
	min-height: 94px;
	margin-inline: auto;
}

.site-footer__mark {
	display: grid;
	width: 43px;
	height: 43px;
	flex: 0 0 auto;
	place-items: center;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.12);
	font-size: 18px;
}

.site-footer__mark img {
	width: 9px;
	height: auto;
}

.site-footer__menu a {
	color: #fff;
	border-color: rgba(255, 255, 255, 0.35);
	font-weight: 400;
}

.site-footer p {
	margin: 0;
	font-size: 10px;
}

.site-footer__social a {
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
}

@media (max-width: 980px) {
	.site-header__top,
	.site-header__navrow,
	.lead-layout,
	.news-section,
	.health-section__inner,
	.site-footer__inner {
		width: min(100% - 32px, 760px);
	}

	.lead-layout,
	.split-grid,
	.feature-left-grid {
		grid-template-columns: 1fr;
	}

	.lead-layout__visual::before {
		width: 70%;
	}

	.lead-card,
	.lead-copy {
		max-width: none;
		width: 100%;
	}

	.four-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.site-footer__inner {
		align-items: flex-start;
		flex-direction: column;
		padding-block: 26px;
	}
}

@media (max-width: 720px) {
	.page-kicker {
		padding-inline: 16px;
	}

	.site-header__top {
		align-items: flex-start;
		flex-direction: column;
		gap: 14px;
		padding-block: 16px;
	}

	.site-header__navrow {
		flex-wrap: wrap;
		gap: 14px;
		padding-block: 12px;
	}

	.site-header__toggle {
		display: inline-flex;
	}

	.site-header__nav {
		display: none;
		width: 100%;
		order: 3;
	}

	.site-header__nav.is-open {
		display: block;
	}

	.site-header__menu,
	.site-footer__menu {
		align-items: flex-start;
		flex-direction: column;
		gap: 12px;
	}

	.site-header__menu a,
	.site-footer__menu a {
		padding: 0;
		border-right: 0;
		font-size: 12px;
	}

	.lead-layout {
		padding-bottom: 38px;
	}

	.lead-layout__visual::before {
		height: 210px;
		width: 85%;
	}

	.lead-copy h1 {
		font-size: 24px;
	}

	.promo-grid,
	.mini-grid,
	.three-grid,
	.four-grid {
		grid-template-columns: 1fr;
	}

	.promo-card {
		padding: 28px;
	}
}
