/*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*/
.wrap {
	max-width: 550px;
	margin: 0 auto;
	padding: 0 15px;
}

.topbar {
	position: relative;
	background-color: #fff;
	padding: 10px 0;
	border-bottom: 1px solid rgba(33, 37, 41, 0.2);
	z-index: 999;
}

.topbar-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.brand {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}

.brand-badge {
	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;
}

.brand-title {
	color: #000;
	font-size: 21px;
	letter-spacing: normal;
	line-height: 1;
	text-transform: uppercase;
}

.brand-title b {
	color: #00b956;
}

.burger {
	display: flex;
	width: 40px;
	height: 40px;
	background-color: #00b956;
	align-items: center;
	justify-content: center;
	border-radius: 4px;
	cursor: pointer;
}

.burger img {
	width: 23px;
}

.nav-panel {
	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%);
}

.nav-panel.active {
	display: grid;
}

.nav-panel 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;
}

.content {
	position: relative;
	background-color: #f8f8fa;
	padding: 40px 0;
}

.feed {
	display: grid;
	gap: 20px;
}

.feed .article__link {
	background-color: #fff;
	border: 1px solid #d6d6d6;
	color: #000;
}

.feed .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;
}

.feed .article__link:nth-child(2) {
	order: 1;
}

.feed .article__link:nth-child(1) {
	order: 2;
}

.feed .article__link {
	order: 3;
}

.feed .article__link:nth-child(2) {
	display: flex;
	background-color: transparent;
	border: 0;
}

.feed .article__link:nth-child(2) .article__cover {
	width: 100px;
	height: 100px;
	object-fit: cover;
}

.feed .article__link:nth-child(2) .article__content {
	padding: 5px 0 0 15px;
}

.feed .article__link:nth-child(2) .time__ago {
	display: none;
}

.feed .article__link:first-child h2 {
	color: #222;
	font-size: 21px;
	font-weight: 700;
	line-height: 130%;
}

.feed .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;
}

.overlay {
	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;
}

.overlay.active {
	display: grid;
}

.modal {
	position: relative;
	background-color: #fff;
	margin: 40px auto;
	padding: 20px;
	max-width: 520px;
	width: 100%;
	border-radius: 10px;
}

.modal h1 {
	font-size: 28px;
	margin-top: 8px;
	text-align: center;
}

.modal-close {
	position: absolute;
	cursor: pointer;
	top: 10px;
	right: 10px;
}

.modal-close img {
	width: 22px;
	height: 22px;
}

.modal-list {
	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;
}

.modal .article__link {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
}

.modal .article__link:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100% - 110px);
	background: linear-gradient(0deg, #000, transparent);
}

.modal .article__cover {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.modal .article__content {
	position: relative;
	z-index: 2;
	padding-top: 130px;
	padding-bottom: 0;
}

.modal .article__content h2 {
	color: #fff;
}
