.works-modern,
.works-modern * {
	box-sizing: border-box;
}

.works-modern {
	--accent: #ff9800;
	--surface: #2d2d36;
	--surface-2: #26262e;
	--line: rgba(255, 255, 255, 0.09);
	--text: #f5f5f7;
	--muted: #a7a7b0;
}

.works-modern .portfolio-heading {
	padding: 8px 0 26px;
}

.works-modern .portfolio-kicker {
	display: block;
	margin-bottom: 9px;
	color: var(--accent);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 2px;
}

.works-modern .portfolio-heading h2 {
	max-width: 640px;
	margin: 0 0 10px;
	color: var(--text);
	font-size: 24px;
	font-weight: 600;
	line-height: 1.35;
}

.works-modern .portfolio-heading p {
	max-width: 680px;
	margin: 0;
	color: var(--muted);
	font-size: 13px;
	line-height: 1.75;
}

.works-modern .works-filter {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 20px 0;
}

.works-modern .works-filter-btn {
	min-width: 78px;
	margin: 0;
	padding: 9px 13px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: transparent;
	color: #c6c6cc;
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	line-height: 1;
	cursor: pointer;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.works-modern .works-filter-btn span {
	margin-left: 5px;
	opacity: .55;
	font-size: 9px;
}

.works-modern .works-filter-btn:hover,
.works-modern .works-filter-btn.active {
	border-color: var(--accent);
	background: var(--accent);
	color: #19191f;
}

.works-modern .work-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	padding-bottom: 8px;
}

.works-modern .work-tile {
	min-width: 0;
	overflow: hidden;
	border: 1px solid var(--line);
	border-radius: 12px;
	background: var(--surface-2);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
	transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.works-modern .work-tile:hover {
	transform: translateY(-4px);
	border-color: rgba(255, 152, 0, .55);
	box-shadow: 0 16px 38px rgba(0, 0, 0, .24);
}

.works-modern .work-tile.is-hidden {
	display: none;
}

.works-modern .work-cover {
	position: relative;
	display: block;
	height: 188px;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
}

.works-modern .app-cover {
	background: #17171d;
}

.works-modern .app-fallback {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: linear-gradient(145deg, #262634, #111118);
	color: rgba(255, 255, 255, .78);
}

.works-modern .app-connect .app-fallback { background: linear-gradient(145deg, #e6333d, #57131a); }
.works-modern .app-warranty .app-fallback { background: linear-gradient(145deg, #7c4bd8, #302059); }
.works-modern .app-card .app-fallback { background: linear-gradient(145deg, #2679c8, #142e58); }

.works-modern .app-fallback b {
	display: grid;
	place-items: center;
	width: 58px;
	height: 58px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 16px;
	background: rgba(255, 255, 255, .12);
	color: #fff;
	font-size: 20px;
	font-weight: 600;
}

.works-modern .app-fallback span {
	font-size: 11px;
	font-weight: 500;
}

.works-modern .app-cover:after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 48%, rgba(8, 8, 12, .74));
	pointer-events: none;
}

.works-modern .app-cover img {
	position: absolute;
	z-index: 1;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center 24%;
	transition: transform .45s ease;
}

.works-modern .app-warranty img,
.works-modern .app-card img {
	object-position: center 20%;
}

.works-modern .work-tile:hover .app-cover img {
	transform: scale(1.035);
}

.works-modern .work-type,
.works-modern .work-arrow {
	position: absolute;
	z-index: 2;
	top: 14px;
	display: inline-flex;
	align-items: center;
	height: 27px;
	border: 1px solid rgba(255, 255, 255, .16);
	background: rgba(17, 17, 22, .72);
	color: #fff;
	backdrop-filter: blur(8px);
}

.works-modern .work-type {
	left: 14px;
	gap: 6px;
	padding: 0 9px;
	border-radius: 6px;
	font-size: 9px;
	font-weight: 600;
	letter-spacing: .6px;
	text-transform: uppercase;
}

.works-modern .work-arrow {
	right: 14px;
	justify-content: center;
	width: 27px;
	border-radius: 50%;
	font-size: 10px;
	transition: background .2s ease, color .2s ease;
}

.works-modern .work-tile:hover .work-arrow {
	border-color: var(--accent);
	background: var(--accent);
	color: #17171d;
}

.works-modern .brand-cover {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 26px;
	background: #333;
}

.works-modern .brand-cover:before {
	content: "";
	position: absolute;
	right: -48px;
	bottom: -72px;
	width: 180px;
	height: 180px;
	border: 1px solid rgba(255, 255, 255, .15);
	border-radius: 50%;
	box-shadow: 0 0 0 32px rgba(255, 255, 255, .035), 0 0 0 64px rgba(255, 255, 255, .025);
}

.works-modern .brand-care { background: linear-gradient(135deg, #c42b55, #74152f); }
.works-modern .brand-frontier { background: linear-gradient(135deg, #d9743d, #784022); }
.works-modern .brand-open { background: linear-gradient(135deg, #1463a4, #08223f); }
.works-modern .brand-global { background: linear-gradient(135deg, #d43030, #681111); }
.works-modern .brand-hsk { background: linear-gradient(135deg, #14816c, #073c34); }
.works-modern .brand-hoque { background: linear-gradient(135deg, #725b98, #29223a); }

.works-modern .brand-mark {
	position: relative;
	z-index: 1;
	margin-bottom: 13px;
	color: rgba(255, 255, 255, .78);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 1.7px;
}

.works-modern .brand-message {
	position: relative;
	z-index: 1;
	color: rgba(255, 255, 255, .72);
	font-size: 18px;
	font-weight: 300;
	line-height: 1.35;
}

.works-modern .brand-message strong {
	color: #fff;
	font-weight: 600;
}

.works-modern .work-info {
	min-height: 220px;
	padding: 18px 19px 20px;
}

.works-modern .work-index {
	margin-bottom: 7px;
	color: var(--accent);
	font-size: 9px;
	font-weight: 600;
	letter-spacing: 1.3px;
}

.works-modern .work-info h3 {
	margin: 0 0 8px;
	color: var(--text);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}

.works-modern .work-info p {
	min-height: 72px;
	margin: 0 0 15px;
	color: var(--muted);
	font-size: 12px;
	line-height: 1.65;
}

.works-modern .work-stack {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.works-modern .work-stack span {
	display: inline-flex;
	align-items: center;
	height: 23px;
	padding: 0 8px;
	border: 1px solid rgba(255, 255, 255, .07);
	border-radius: 5px;
	background: rgba(255, 255, 255, .035);
	color: #c6c6cc;
	font-size: 10px;
	line-height: 1;
}

@media (min-width: 1200px) {
	.page.new-skin .container {
		width: calc(100% - 140px);
		max-width: 1520px;
		margin-left: auto;
		margin-right: auto;
	}

	.page.new-skin .card-started { width: 450px; }
	.page.new-skin .card-inner { left: 530px; }
}

@media (min-width: 1680px) {
	.works-modern .work-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.works-modern .work-cover { height: 205px; }
}

@media (max-width: 720px) {
	.works-modern .work-grid { grid-template-columns: 1fr; }
	.works-modern .work-cover { height: 205px; }
	.works-modern .work-info { min-height: 0; }
	.works-modern .work-info p { min-height: 0; }
}

@media (max-width: 420px) {
	.works-modern .portfolio-heading h2 { font-size: 20px; }
	.works-modern .works-filter { gap: 6px; }
	.works-modern .works-filter-btn { min-width: 0; padding: 8px 10px; }
	.works-modern .work-cover { height: 180px; }
	.works-modern .brand-cover { padding: 21px; }
}
