.ah-header,
.ah-footer {
	--ah-purple: #642ff0;
	--ah-ink: #211f32;
	--ah-muted: #68677b;
	font-family: "Inter", "Segoe UI", Arial, sans-serif;
}

.ah-header,
.ah-footer,
.ah-header *,
.ah-footer * {
	box-sizing: border-box;
}

.ah-header {
	position: relative;
	z-index: 20;
	width: 100%;
	border-bottom: 1px solid rgba(98, 53, 223, .09);
	background: rgba(255, 255, 255, .97);
	color: var(--ah-ink);
}

.ah-header-inner {
	display: flex;
	width: min(1200px, calc(100% - 64px));
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 28px;
	margin: 0 auto;
}

.ah-brand {
	display: inline-flex;
	min-width: 0;
	flex: 0 0 auto;
	align-items: center;
	gap: 9px;
	color: inherit;
	text-decoration: none;
}

.ah-brand-mark {
	display: flex;
	width: 36px;
	height: 36px;
	flex: 0 0 auto;
	color: var(--ah-purple);
}

.ah-brand-mark svg {
	width: 100%;
	height: 100%;
}

.ah-brand-logo {
	display: block;
	width: auto;
	max-width: 150px;
	height: 42px;
	object-fit: contain;
}

.ah-brand-copy {
	display: flex;
	flex-direction: column;
	line-height: 1.1;
}

.ah-brand-copy strong {
	color: var(--ah-ink);
	font-size: 19px;
	font-weight: 800;
	letter-spacing: -.7px;
}

.ah-brand-copy small {
	margin-top: 4px;
	color: var(--ah-muted);
	font-size: 10px;
	font-weight: 600;
}

.ah-nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: clamp(14px, 2.2vw, 30px);
}

.ah-nav a {
	position: relative;
	padding: 28px 0 25px;
	color: #37344b;
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	white-space: nowrap;
}

.ah-nav a:hover,
.ah-nav a.is-current {
	color: var(--ah-purple);
}

.ah-nav a.is-current::after {
	position: absolute;
	right: 0;
	bottom: 17px;
	left: 0;
	height: 2px;
	border-radius: 2px;
	background: var(--ah-purple);
	content: "";
}

.ah-search {
	display: flex;
	width: 255px;
	height: 42px;
	flex: 0 1 255px;
	align-items: center;
	margin: 0;
	padding: 4px;
	border: 1px solid #eeebf7;
	border-radius: 999px;
	background: #f6f4fb;
}

.ah-search input {
	width: 100%;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 0 11px;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--ah-ink);
	font: inherit;
	font-size: 12px;
	box-shadow: none;
}

.ah-search button {
	display: grid;
	width: 34px;
	height: 34px;
	flex: 0 0 auto;
	place-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: linear-gradient(135deg, #8652ff, #5425db);
	color: #fff;
	cursor: pointer;
}

.ah-search button svg {
	width: 17px;
	height: 17px;
	fill: none;
	stroke: currentColor;
	stroke-linecap: round;
	stroke-width: 2;
}

body:not(.home) .site-header,
body:not(.home) .main-navigation,
body:not(.home) .top-bar,
body:not(.home) .generate-back-to-top {
	display: none !important;
}

body:not(.home) .site-footer {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: #1d1b2b;
}

.ah-footer {
	width: 100%;
	padding: 34px max(32px, calc((100% - 1200px) / 2)) 0;
	background: #1d1b2b;
	color: #fff;
}

.ah-footer-grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1fr;
	gap: 42px;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding-bottom: 27px;
}

.ah-footer-grid.without-social-links {
	grid-template-columns: 1.5fr 1fr 1fr;
}

.ah-brand-inverse .ah-brand-copy strong {
	color: #fff;
}

.ah-brand-inverse .ah-brand-copy small,
.ah-footer-grid p {
	color: #c1bfd0;
}

.ah-footer-grid > div:not(.ah-footer-brand),
.ah-footer-grid > .ah-footer-column {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.ah-footer-links {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ah-footer-links li {
	margin: 0;
	padding: 0;
}

.ah-footer-grid h2 {
	margin: 0 0 3px;
	color: #fff;
	font-size: 13px;
	font-weight: 800;
}

.ah-footer-grid a:not(.ah-brand) {
	color: #d3d1de;
	font-size: 11px;
	text-decoration: none;
}

.ah-footer-grid a:not(.ah-brand):hover {
	color: #c3adff;
}

.ah-footer-brand > p {
	max-width: 260px;
	margin: 13px 0 0;
	font-size: 11px;
	line-height: 1.6;
}

.ah-footer-grid > div > p {
	margin: 0;
	font-size: 11px;
	line-height: 1.6;
}

.ah-footer-grid .ah-footer-social {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ah-footer-bottom {
	display: flex;
	width: 100%;
	max-width: 1200px;
	justify-content: space-between;
	gap: 18px;
	margin: 0 auto;
	padding: 14px 0 17px;
	border-top: 1px solid rgba(255, 255, 255, .16);
	color: #c1bfd0;
	font-size: 10px;
}

.ah-footer-bottom a {
	color: #c1bfd0;
	text-decoration: none;
}

@media (max-width: 1020px) {
	.ah-header-inner {
		width: calc(100% - 40px);
		gap: 18px;
	}

	.ah-nav {
		gap: 14px;
	}

	.ah-nav a {
		font-size: 12px;
	}

	.ah-search {
		width: 210px;
		flex-basis: 210px;
	}

	.ah-footer {
		padding-right: 20px;
		padding-left: 20px;
	}
}

@media (max-width: 760px) {
	.ah-header-inner {
		width: calc(100% - 32px);
		min-height: 68px;
		flex-wrap: wrap;
		gap: 8px 18px;
		padding: 12px 0;
	}

	.ah-brand-mark {
		width: 32px;
		height: 32px;
	}

	.ah-brand-copy strong {
		font-size: 17px;
	}

	.ah-brand-logo {
		max-width: 120px;
		height: 36px;
	}

	.ah-search {
		width: min(220px, 52%);
		height: 38px;
		flex-basis: min(220px, 52%);
		margin-left: auto;
	}

	.ah-search button {
		width: 30px;
		height: 30px;
	}

	.ah-nav {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		gap: 21px;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.ah-nav::-webkit-scrollbar {
		display: none;
	}

	.ah-nav a {
		padding: 9px 0 6px;
		font-size: 12px;
	}

	.ah-nav a.is-current::after {
		bottom: 0;
	}

	.ah-footer {
		padding: 28px 16px 0;
	}

	.ah-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 27px 18px;
	}

	.ah-footer-grid.without-social-links {
		grid-template-columns: 1fr 1fr;
	}

	.ah-footer-bottom {
		flex-direction: column;
		gap: 7px;
	}
}

@media (max-width: 380px) {
	.ah-header-inner {
		gap: 8px 12px;
	}

	.ah-nav {
		gap: 16px;
	}

	.ah-nav a {
		font-size: 11px;
	}
}
