:root {
	--bg: #eef3f8;
	--bg-top: #4b5fc5;
	--bg-top-2: #5a6cca;
	--panel: #ffffff;
	--panel-muted: #f9fbfd;
	--line: #d8dfef;
	--line-strong: #aeb8e0;
	--text: #23346f;
	--muted: #5f6faa;
	--accent: #4b5fc5;
	--accent-soft: #edf0fb;
	--accent-soft-2: #f5f7fd;
	--shadow: 0 10px 26px rgba(52, 67, 146, 0.12);
}

* {
	box-sizing: border-box;
}

body {
	margin: 0;
	min-height: 100vh;
	font-family: Arial, "Helvetica Neue", sans-serif;
	font-size: 14px;
	line-height: 1.45;
	color: var(--text);
	background: linear-gradient(180deg, #f6f9fc 0%, var(--bg) 100%);
}

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

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

.page-frame {
	min-height: 100vh;
}

.masthead {
	background: var(--bg-top);
	border-bottom: 3px solid #d7e4f2;
}

.masthead,
.main-content {
	position: relative;
}

.masthead__inner,
.main-content {
	max-width: 1120px;
	margin: 0 auto;
}

.masthead__inner {
	padding: 16px 24px 22px;
}

.topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 16px;
	padding-bottom: 14px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
}

.brand__mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 104px;
	height: 104px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
}

.brand__mark img {
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.brand__text {
	font-size: 0.92rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: #f3f8fd;
}

.mais-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.28);
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.08);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #f3f8fd;
}

.hero-panel {
	display: grid;
	grid-template-columns: minmax(0, 1.5fr) 220px;
	gap: 18px;
	align-items: center;
	padding-top: 16px;
}

.hero-copy,
.hero-side {
	padding: 10px 0 0;
}

.hero-kicker {
	margin: 0 0 8px;
	font-size: 0.69rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #cfe0f1;
}

h1 {
	margin: 0;
	font-size: clamp(1.5rem, 2.6vw, 2.05rem);
	line-height: 1.15;
	font-weight: 700;
	color: #ffffff;
}

.hero-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 12px;
	border: 1px solid rgba(255, 255, 255, 0.18);
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.97);
	box-shadow: var(--shadow);
}

.main-content {
	padding: 22px 24px 36px;
}

.portal-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 14px;
}

.portal-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 148px;
	padding: 18px 12px 16px;
	border: 1px solid var(--line);
	border-top: 4px solid var(--accent);
	border-radius: 6px;
	background: linear-gradient(180deg, var(--panel) 0%, var(--accent-soft-2) 100%);
	box-shadow: var(--shadow);
	text-align: center;
	transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.portal-card:hover,
.portal-card:focus-visible {
	transform: translateY(-3px);
	border-color: var(--line-strong);
	background: linear-gradient(180deg, var(--panel) 0%, var(--panel-muted) 100%);
}

.portal-card:focus-visible {
	outline: 3px solid rgba(23, 82, 140, 0.18);
	outline-offset: 2px;
}

.portal-card__head {
	display: flex;
	align-items: center;
	justify-content: center;
}

.portal-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 74px;
	height: 74px;
	padding: 10px;
	border: 1px solid #d6e3ef;
	border-radius: 18px;
	background: radial-gradient(circle at top, #ffffff 0%, var(--accent-soft) 100%);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.portal-card img {
	height: 44px;
	width: 44px;
	object-fit: contain;
}

.portal-card h2 {
	margin: 0;
	font-size: 0.88rem;
	line-height: 1.3;
	font-weight: 700;
	color: var(--text);
}

@media (max-width: 760px) {
	.masthead__inner,
	.main-content {
		padding-left: 16px;
		padding-right: 16px;
	}

	.hero-panel {
		grid-template-columns: 1fr;
	}

	.hero-side {
		max-width: 220px;
	}
}

@media (max-width: 520px) {
	body {
		font-size: 13px;
	}

	.topbar {
		flex-direction: column;
		align-items: flex-start;
	}

	.portal-grid {
		grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	}

	.portal-card {
		min-height: 132px;
		padding: 14px 10px;
	}

	.portal-icon {
		width: 68px;
		height: 68px;
		border-radius: 16px;
	}
}
