/*Fonts include*/
@font-face {
	font-family: 'rbt';
	src: url('../fonts/Roboto-Regular.woff2');
	font-weight: 400;
	font-display: swap;
}

@font-face {
	font-family: 'rbt';
	src: url('../fonts/Roboto-Medium.woff2');
	font-weight: 500;
	font-display: swap;
}

@font-face {
	font-family: 'rbt';
	src: url('../fonts/Roboto-Bold.woff2');
	font-weight: 700;
	font-display: swap;
}

/*Base CSS*/
*,
*::before,
*::after {
	font-family: rbt, sans-serif;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	font-size: 14px;
	min-width: 360px;
	font-weight: 400;
	position: relative;
	line-height: 1.42857143;
	overflow-x: hidden;
	color: #333;
	-webkit-text-size-adjust: none;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	background-color: #fff;
}

b,
strong {
	font-weight: 700;
}

img {
	max-width: 100%;
	display: block;
}

a {
	text-decoration: none;
}

/*Main CSS*/
.container {
	max-width: 550px;
	margin: 0 auto;
	padding: 0 15px;
}

.header {
	position: relative;
	background-color: #fff;
	padding: 10px 0;
	border-bottom: 1px solid rgba(33, 37, 41, 0.2);
	z-index: 999;
}

.header__grid {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.logo {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.logo__icon {
	display: flex;
	align-items: center;
	font-size: 24px;
	font-weight: 700;
	color: #000;
	justify-content: center;
	border: 3px solid #00b956;
	border-radius: 3px;
	box-sizing: border-box;
	height: 30px;
	width: 30px;
	padding-top: 2px;
}

.logo__text {
	color: #000;
	font-size: 21px;
	letter-spacing: normal;
	line-height: 1;
	text-transform: uppercase;
}

.logo__text b {
	color: #00b956;
}

.menu__btn {
	display: flex;
	width: 40px;
	height: 40px;
	background-color: #00b956;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	cursor: pointer;
}

.menu__btn img {
	width: 23px;
}

.menu {
	display: none;
	position: absolute;
	top: 61px;
	left: 0;
	width: 100%;
	z-index: 99;
	background-color: #fff;
	padding: 20px;
	box-shadow: 0 0 10px rgb(0 0 0 / 30%);
}

.menu.active {
	display: grid;
}

.menu a {
	font-size: 22px;
	color: #0c0c0c;
	line-height: 24px;
	padding: 15px 20px;
	text-transform: uppercase;
	display: flex;
	align-items: center;
	gap: 10px;
	text-align: center;
	justify-content: center;
}

.main__content {
	position: relative;
	background-color: #f8f8fa;
	padding: 40px 0;
}

.start__screen {
	display: grid;
	gap: 20px;
}

.start__screen .article__link {
	background-color: #fff;
	border: 1px solid #d6d6d6;
	color: #000;
}

.start__screen .article__link .article__cover {
	width: 100%;
}

.article__content {
	padding: 20px;
}

.article__content h2 {
	font-size: 19px;
	font-weight: 500;
	color: #393d46;
}

.article__stat {
	display: flex;
	align-items: center;
	gap: 20px;
	margin: 20px 0;
}

.article__stat > div {
	display: flex;
	align-items: center;
	gap: 3px;
}

.article__stat > div:first-child {
	color: #a1a1a1;
}

.article__stat > div:nth-child(2) {
	color: #00b956;
}

.article__stat > div:nth-child(3) {
	color: #a1a1a1;
}

.read__more {
	background-color: #00b956;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	height: 44px;
	line-height: 44px;
	display: inline-block;
	padding: 0 25px;
	margin-top: 20px;
}

.start__screen .article__link:nth-child(2) {
	order: 1;
}

.start__screen .article__link:nth-child(1) {
	order: 2;
}

.start__screen .article__link {
	order: 3;
}

.start__screen .article__link:nth-child(2) {
	display: flex;
	background-color: transparent;
	border: 0;
}

.start__screen .article__link:nth-child(2) .article__cover {
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.start__screen .article__link:nth-child(2) .article__content {
	padding: 5px 0 0 15px;
}

.start__screen .article__link:nth-child(2) .time__ago {
	display: none;
}

.start__screen .article__link:first-child h2 {
	color: #222;
	font-size: 21px;
	font-weight: 700;
	line-height: 130%;
}

.start__screen .article__link:first-child p {
	color: #222;
	font-size: 16px;
	line-height: 130%;
}

.time__ago {
	color: #818181;
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 10px;
	font-size: 15px;
}

.time__ago img {
	margin-top: -1px;
}

.popup__wrap {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgb(0 0 0 / 40%);
	align-items: center;
	padding: 0 15px;
	overflow-y: auto;
	z-index: 9999;
}

.popup__wrap.active {
	display: grid;
}

.popup {
	position: relative;
	background-color: #fff;
	margin: 40px auto;
	padding: 20px;
	max-width: 520px;
	width: 100%;
	border-radius: 10px;
}

.popup h1 {
	font-size: 28px;
	margin-top: 8px;
	text-align: center;
}

.popup__close {
	position: absolute;
	cursor: pointer;
	top: 10px;
	right: 10px;
}

.popup__close img {
	width: 22px;
	height: 22px;
}

.popup__grid {
	display: grid;
	gap: 20px;
	margin-top: 20px;
}

.article__stat-popup > div:nth-child(1) {
	color: #00b956;
}

.article__stat-popup > div:nth-child(2) {
	color: #fff;
}

.popup .article__link {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
}

.popup .article__link:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 110px);
	background: linear-gradient(0deg, #000, transparent);
}

.popup .article__cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.popup .article__content {
	position: relative;
	z-index: 2;
	padding-top: 130px;
	padding-bottom: 0;
}

.popup .article__content h2 {
	color: #fff;
}
