/* biome-ignore-all lint/style/noDescendingSpecificity: too many in this file. */
.bottom-links {
	background-color: var(--white);
	padding-inline: var(--spacing-10);
	display: flex;
	justify-content: center;
	margin-block-end: var(--spacing-10);
}

.bottom-links__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: inline-grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--spacing-20) var(--spacing-10);
	margin-block-start: calc(var(--spacing-30) * -1);

	@media (width > 768px) {
		grid-template-columns: 1fr 1fr 1fr 1fr;
		margin-block-start: calc(var(--spacing-50) * -1);
	}

	@media (width > 1000px) {
		gap: var(--spacing-40);
	}
}

.bottom-links__item {
	margin-block-end: var(--spacing-30);
	display: flex;
	max-width: 200px;

	@media (width > 768px) {
		max-width: 250px;
	}
}

.bottom-links__link {
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	background-color: rgba(255, 255, 255, 0.45);
	box-shadow: 3px 0 11px 0 rgba(32, 145, 255, 0.13);
	-webkit-backdrop-filter: blur(14.5px);
	backdrop-filter: blur(14.5px);
	color: var(--black);
	text-align: center;
	font-size: var(--step-0);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	padding: var(--spacing-40) var(--spacing-30);
	position: relative;
	width: 100%;
	transition: background-color 0.3s ease;

	.bottom-links__item:nth-child(2n) & {
		background: rgba(219, 208, 255, 0.45);

		&:hover,
		&:focus-visible {
			background-color: var(--gray-100);
		}
	}

	.bottom-links__item:nth-child(3n) & {
		background-color: rgba(137, 62, 229, 0.25);

		&:hover,
		&:focus-visible {
			background-color: var(--gray-100);
		}
	}

	.bottom-links__item:nth-child(4n) & {
		background-color: rgba(73, 111, 193, 0.25);

		&:hover,
		&:focus-visible {
			background-color: var(--gray-100);
		}
	}

	&:hover,
	&:focus-visible {
		background-color: var(--gray-100);
	}
}

.bottom-links__link--short {
	padding-inline: var(--spacing-40);
}

.bottom-links__icon {
	border-radius: var(--btn-radius);
	border: 1px solid rgba(255, 255, 255, 0.7);
	background-image: linear-gradient(
		181deg,
		rgba(144, 130, 162, 0.75) 0%,
		rgba(246, 239, 255, 0.75) 100%
	);
	box-shadow: 1.032px 0 4.126px 0 rgba(32, 145, 255, 0.13);
	-webkit-backdrop-filter: blur(4.3px);
	backdrop-filter: blur(4.3px);
	height: 55px;
	width: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--white);
	top: calc(55px / -2);
	position: absolute;
	left: calc(50% - (55px / 2));

	.bottom-links__item:nth-child(2n) & {
		background-image: linear-gradient(
			181deg,
			rgba(137, 62, 229, 0.75) 0%,
			rgba(246, 239, 255, 0.75) 100%
		);
	}

	.bottom-links__item:nth-child(3n) & {
		background-image: linear-gradient(
			181deg,
			rgba(59, 21, 107, 0.75) 0%,
			rgba(246, 239, 255, 0.75) 100%
		);
	}

	.bottom-links__item:nth-child(4n) & {
		background-image: linear-gradient(
			181deg,
			rgba(12, 85, 164, 0.75) 0%,
			rgba(246, 239, 255, 0.75) 100%
		);
	}

	svg {
		height: auto;
		width: 35px;
	}
}

.bottom-links__chevron {
	border-radius: var(--btn-radius);
	border: 1.6px solid var(gray-50);
	background: var(--gray-100);
	box-shadow: 0 0.5px 1px 0 rgba(25, 33, 61, 0.04);
	height: 55px;
	width: 55px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--blue-300);
	bottom: calc(55px / -2);
	position: absolute;
	left: calc(50% - (55px / 2));
}
