.hero {
	text-align: center;
}

.hero-title {
	font-size: 64px;
	font-weight: bold;
	line-height: 120%;
	font-family: 'Ubuntu';
	color: var(--black);
	max-width: 960px;
	margin: 0 auto;
	margin-bottom: 28px;
	margin-top: 120px;
}

.hero_subtitle {
	font-size: 24px;
	line-height: 140%;
	font-weight: 500;
	color: var(--gray-dark);
	margin-bottom: 68px;
}

.hero-input__container {
	padding: 8px;
	background-color: var(--gray-stroke);
	border-radius: 16px;
	max-width: 760px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	margin-bottom: 24px;
	z-index: 19;
	position: relative;
}

.hero-input__wrapper {
	background-color: var(--white);
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	border-radius: 10px;
	padding: 0 16px;
	pointer-events: auto;
	z-index: 19;
	border: 2px solid transparent;
	transition: border-color 0.2s ease-in-out;
}

.hero-input__wrapper img {
	user-select: none;
}


.hero-input {
	width: 100%;
	padding: 16px 16px;
	padding-left: 0;
	font-size: 16px;
	font-weight: 500;
	border-radius: 10px;
	line-height: 110%;
	color: var(--gray-dark);
	background-color: var(--white);
}

.hero-input::placeholder {
	color: #A6ABB5;
	transition: all 0.2s ease-in-out;
}

.hero-input:hover::placeholder {
	color: var(--gray-dark);
}

.hero-input__wrapper:has(.hero-input:focus) {
	border-color: var(--accent-blue);
	z-index: 30;
}

.hero-input__container:has(.hero-input:focus) {
	border-color: var(--accent-blue);
	z-index: 30;
}

.hero-input-clear {
	width: 24px;
	height: 24px;
	cursor: pointer;
	display: none;
	z-index: 100;
	color: var(--gray-dark);
	transition: all 0.2s ease-in-out;
}

.hero-input-clear:hover {
	color: var(--black);
}

.search-results {
	background-color: var(--white);
	width: 100%;
	max-width: 760px;
	max-height: 300px;
	overflow-y: auto;
	display: none;
	flex-direction: column;
	gap: 4px;
	padding: 20px;
	border-radius: 20px;
	box-shadow: 0px 20px 60px rgba(77, 86, 106, 0.1);
	z-index: 31;
	position: absolute;
	top: calc(100% + 8px);
	color: var(--gray-dark);
	font-size: 16px;
	line-height: 140%;
	font-weight: 600;
	opacity: 0;
	pointer-events: auto;
	transform: translateY(10px);
	transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.search-results.active {
	display: flex;
	opacity: 1;
	transform: translateY(0);
}

.search-result-item {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	padding: 12px 20px;
	color: var(--gray-dark);
	font-size: 16px;
	font-weight: 600;
	line-height: 140%;
	text-decoration: none;
	border-radius: 10px;
	text-align: left;
	opacity: 0;
	cursor: pointer;
	pointer-events: auto;
	-webkit-tap-highlight-color: transparent;
	transform: translateY(10px);
	transition: all 0.3s ease-in-out;
}

.search-result-item span {
	flex: 1;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.search-result-item.show {
	opacity: 1;
	transform: translateY(0);
}

.search-result-item:hover {
	background-color: var(--gray-back);
}

.search-result-item .card-btn__icon {
	width: 8px;
	height: 16px;
	flex-shrink: 0;
	margin-left: 8px;
	opacity: 0;
	transition: opacity 0.2s ease-in-out;
}

.search-result-item:hover .card-btn__icon {
	opacity: 1;
}




.suggestions {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	overflow-x: auto;
	margin-bottom: 80px;
}

.suggestions {
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.suggestions.overflow {
	justify-content: start;
}

.common-breadcrumbs::-webkit-scrollbar {
	display: none;
}


.suggestions-btn {
	padding: 12.5px 16px;
	color: var(--accent-blue);
	background-color: var(--blue-back);
	border-radius: 10px;
	font-size: 14px;
	line-height: 110%;
	font-weight: 600;
	white-space: nowrap;
	transition: background-color 0.2s ease-in-out;
	max-width: 200px;
	text-overflow: ellipsis;
	overflow: hidden;
	flex-shrink: 0;
}

.suggestions-btn:hover {
	background-color: #D7E9FA;
	cursor: pointer;
}



.category-container {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	grid-template-rows: auto;
	gap: 40px;
	margin-bottom: 120px;
	width: 100%;
}

.category-widget {
	padding: 20px;
	border-radius: 20px;
	background-color: var(--white);
	box-shadow: 0px 20px 60px rgba(77, 86, 106, 0.1);
	max-width: 100%;
}

.category-widget__title {
	font-size: 20px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	color: var(--black);
	line-height: 140%;
	font-weight: 700;
	padding: 12px 20px;
	border-radius: 10px;
	cursor: pointer;
	white-space: nowrap;
	transition: all 0.2s ease-in-out;
}

.category-widget__title:hover {
	background-color: var(--blue-back);
	color: var(--accent-blue);
}

.category-widget__content--title {
	display: flex;
	gap: 8px;
	align-items: center;
}

.category-widget__count--title {
	color: var(--accent-blue);
	font-weight: 700;
	font-size: 16px;
	line-height: 140%;
	border-radius: 4px;
	padding: 2px 4px;
	background-color: rgba(0, 128, 255, 0.08);
}

.card-btn {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 12px 20px;
	border-radius: 10px;
	font-size: 16px;
	line-height: 140%;
	font-weight: 600;
	width: 100%;
	gap: 8px;
	color: var(--gray-dark);
	text-align: left;
	cursor: pointer;
	transition: all 0.2s ease-in-out;
}

.card-btn span {
	flex: 1;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: calc(100% - 24px);
}

.card-btn:hover {
	background-color: var(--gray-back);
}

.card-btn:active {
	background-color: var(--gray-back);
}

.card-btn:hover .card-btn__icon {
	opacity: 1;
	transform: translateX(2px);
}

.card-btn__icon {
	opacity: 0;
	flex-shrink: 0;
	transition: all 0.2s ease;
}

.promo-card {
	background: linear-gradient(116deg, #2E88EB 0%, #8866FF 100%);
	width: 100%;
	/* height: 100%; */
	border-radius: 20px;
	padding: 40px;
	display: flex;
	/* gap: 54px; */
	gap: 24px;
	flex-direction: column;
	justify-content: space-between;
}

.promo-card__content {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--white);
	text-align: left;
}

.promo-card__title {
	font-size: 20px;
	font-weight: bold;
	line-height: 140%;
}

.promo-card__description {
	font-size: 16px;
	font-weight: 600;
	line-height: 140%;
	color: var(--white);
}

.promo-card__btn {
	padding: 19px 32px;
	box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
	color: var(--accent-blue);
	font-size: 16px;
	line-height: 110%;
	font-weight: 700;
	background: var(--white);
	border-radius: 16px;
	width: 100%;
	cursor: pointer;
	text-align: center;
	transition: all 0.2s ease-in-out;
}

.promo-card__btn:hover {
	opacity: 0.95;
	box-shadow: 0 5px 10px rgba(255, 255, 255, 0.2);
}


.child-posts {
	margin-left: 20px;
}

.card-btn.child-btn {
	padding-left: 10px;
}

@media (max-width: 1000px) {
	.category-container {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 660px) {
	.hero-title {
		margin-bottom: 32px;
	}

	.hero_subtitle {
		margin-bottom: 64px;
	}

	.category-container {
		gap: 20px;
		grid-template-columns: minmax(0, 1fr);
	}

	.promo-card {
		gap: 32px;
	}
}

@media (max-width: 500px) {
	.hero-title {
		font-size: 32px;
		margin-bottom: 24px;
		margin-top: 90px;
	}

	.hero_subtitle {
		margin-bottom: 48px;
		font-size: 20px;
	}

	.suggestions {
		margin-bottom: 64px;
	}

	.category-container {
		margin-bottom: 80px;
	}

	.promo-card {
		gap: 24px;
		padding: 20px;
	}

	.category-widget {
		padding: 10px;
	}

	.category-widget__title,
	.card-btn {
		padding: 12px 10px;
	}
}