.toolbox_grid .container {
	width: calc(1122px + 16px + 16px);
}

.toolboxes_wrapper {
	border-radius: 16px;
	border: 1px solid #F5F5F5;
	background: white;
	box-shadow: 0 4px 16px 0 #ECECF4;
	padding: 24px;
}

.toolboxes {
	display: flex;
	gap: 16px;
}

.toolboxes[data-box_count="7"] {
	display: grid;
	grid-template-columns: repeat(12, 1fr);
	gap: 20px;
}

.toolboxes[data-box_count="7"] .toolbox_box:nth-child(-n+3) {
	grid-column: span 4;
}

.toolboxes[data-box_count="7"] .toolbox_box:nth-child(n+4) {
	grid-column: span 3;
}

.toolboxes[data-box_count="6"] {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.toolboxes.has_subtitles[data-box_count="5"] {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
}

.toolboxes.has_subtitles[data-box_count="5"] .toolbox_box:nth-child(-n+3) {
	grid-column: span 2;
}

.toolboxes.has_subtitles[data-box_count="5"] .toolbox_box:nth-child(n+4) {
	grid-column: span 3;
}

.toolbox_box {
	flex: 1;
	display: flex;
}

.toolbox_box__link {
	display: block;
	border-radius: 8px;
	background: #F2F4F8;
	padding: 32px 24px;
	text-align: center;
	transition: background 0.3s ease;
	border: none;
	flex: 1;
}

.has_subtitle .toolbox_box__link {
	padding: 24px;
}

.toolbox_box__link:hover {
	background: #E8EBF0;
}

.toolbox_box__title {
	font-size: 16px;
	line-height: 24px;
	font-weight: 600;
	color: #525252;
}

.toolbox_box__icon {
	margin-bottom: 12px;
}

.toolbox_grid h2 {
	font-size: 46px;
	line-height: 56px;
	font-weight: 600;
	color: #1E3851;
	margin-bottom: 16px;
}

.toolbox_header {
	text-align: center;
}

.toolbox_subtitle {
	width: 882px;
	max-width: 100%;
	margin-left: auto;
	margin-right: auto;
	color: #525252;
	margin-bottom: 32px;
}

.toolbox_box__subtitle {
	font-size: 16px;
	line-height: 24px;
	color: #525252;
}

.has_subtitle .toolbox_box__link {
	text-align: left;
}

.has_subtitle .toolbox_box__header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 12px;
}

.has_subtitle .toolbox_box__title {
	font-size: 26px;
	line-height: 32px;
	color: #1E3851;
}

.has_subtitle .toolbox_box__icon {
	margin-bottom: 0;
}

@media (min-width: 992px) {
	.has_subtitle .toolbox_box__icon {
		flex: 0 0 48px;
	}

	.has_subtitle .toolbox_box__link {
		padding-right: 12px;
	}
}

@media (max-width: 991px) {
	.toolboxes.has_subtitles[data-box_count="5"] .toolbox_box:nth-child(-n+3) {
		grid-column: span 3;
	}

	.toolboxes[data-box_count="7"] .toolbox_box:nth-child(n+4) {
		grid-column: span 4;
	}

	.toolboxes {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.toolbox_box__header {
		display: flex;
		align-items: center;
		gap: 8px;
	}

	.toolbox_box__icon {
		margin-bottom: 0;
		flex: 0 0 32px;
	}

	.toolbox_box__link {
		padding: 12px;
	}

	.toolboxes_wrapper {
		padding: 12px;
	}

	.toolbox_box__title {
		font-size: 14px;
		line-height: 20px;
	}

	.toolbox_grid h2 {
		font-size: 30px;
		line-height: 40px;
	}

	.toolbox_subtitle {
		font-size: 16px;
		line-height: 24px;
		margin-bottom: 16px;
		column-gap: 0 !important;
	}

	.toolboxes[data-box_count="6"] {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	.toolboxes.has_subtitles {
		grid-template-columns: 1fr !important;
		gap: 12px !important;
	}

	.has_subtitle .toolbox_box__link {
		padding: 16px;
	}

	.has_subtitle  .toolbox_box__icon {
		flex: 0 48px;
	}

	.has_subtitle .toolbox_box__title {
		font-size: 20px;
		line-height: 28px;
	}

	.toolbox_box__subtitle {
		font-size: 14px;
		line-height: 20px;
	}

	.toolboxes[data-box_count="7"] {
		grid-template-columns: 1fr;
		gap: 12px;
	}
}
