h1.title {
	gap: 10px;
	padding-left: 0;
	max-width: 473px;
	margin-bottom: 30px;
}
.bottom + section {
	background: var(--grey-1);
}
footer {
	margin-top: 100px;
}
.tab-btns {
	display: flex;
	gap: 10px;
	width: 100%;
	border-bottom: 1px solid var(--grey-4);
	margin-bottom: 50px;
	overflow-x: auto;
	&::-webkit-scrollbar {
		display: none;
	}
	button {
		display: flex;
		align-items: center;
		justify-content: center;
		padding: 0 10px;
		white-space: nowrap;
		letter-spacing: 0.16px;
		height: 39px;
		transition: color .2s linear;
		border-bottom: 3px solid rgba(0, 0, 0, 0);
		&.active {
			color: var(--black);
			font-weight: 600;
			border-bottom-color: var(--ff-2-f-00);
		}
	}
}
section.top-box {
	display: flex;
	flex-direction: column;
	align-items: start;
}
.bottom {
	margin-bottom: 100px;
}
.tab {
	display: none;
	flex-direction: column;
	width: 100%;
	&.active {
		display: flex;
	}
	.promo {
		overflow: hidden;
		position: relative;
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
		padding: 50px 0;
		background: var(--black-grey);
		margin-bottom: 30px;
		&::before,
		&::after {
			content: '';
			position: absolute;
			top: 50%;
			left: 0;
			transform: translateY(-50%);
			width: 100%;
			height: calc(100% - 60px);
			background: var(--grey-dark);
			pointer-events: none;
		}
		&::before {
			border-radius: 0 20px 20px 0;
			grid-column: 1/2;
		}
		&::after {
			grid-column: 2/3;
			border-radius: 20px 0 0 20px;
		}
		> img {
			grid-column: 2/3;
			position: absolute;
			width: 120%;
			height: 100%;
			object-fit: cover;
			top: 50%;
			object-position: 50% 38%;
			transform: translateY(-50%);
			right: -32%;
			z-index: 1;
			pointer-events: none;
		}
		.wrapper {
			position: relative;
			z-index: 1;
			grid-column: 1/-1;
			display: grid;
			grid-template-columns: repeat(2, 1fr);
			gap: 10px;
		}
		.content {
			padding-right: 20px;
			* {
				color: var(--white);
			}
			> * * {
				display: contents;
				font-size: inherit;
				line-height: inherit;
				font-weight: inherit;
				letter-spacing: inherit;
				font-style: normal;
			}
			> h2 {
				font-size: 20px;
				font-weight: 700;
				letter-spacing: 0.2px;
				margin-bottom: 7px;
			}
			> p {
				+ p:last-child {
					margin-top: 7px;
				}
				strong {
					font-weight: 700;
				}
				em {
					color: var(--ff-2-f-00);
				}
			}
		}
	}
	&.products {
		> form {
			margin-bottom: 20px;
			fieldset {
				border-radius: 12px;
				background: var(--white);
				display: flex;
				flex-wrap: wrap;
				gap: 3px;
				width: 100%;
				padding: 3px;
				border: none;
				margin-bottom: 50px;
				label {
					border-radius: 9px;
					padding: 14px;
					line-height: 120%;
					transition: opacity .2s linear;
					letter-spacing: 0.16px;
					cursor: pointer;
					&:has(input:checked) {
						background: var(--ff-2-f-00);
						color: var(--white);
						opacity: 1;
					}
					input {
						display: none;
					}
				}
			}
			.spoiler-box {
				position: relative;
				height: 40px;
			}
			.spoiler {
				position: absolute;
				z-index: 2;
				left: 0;
				top: 0;
				width: min(230px, 100%);
				border-radius: 10px;
			}
		}
		.result {
			container: products-container / inline-size;
			.goods-list {
				display: grid;
				grid-template-columns: repeat(4, 1fr);
				grid-auto-rows: 1fr;
				gap: 10px;
			}
		}
	}
	&.works {
		.promo {
			margin-bottom: 0;
			img {
				width: 100%;
				object-position: 50% 46%;
				right: -18%;
			}
		}
		.project {
			padding: 50px 0;
			&:nth-of-type(even) {
				background: var(--grey-1);
				.wrapper .info {
					background: url(../images/own-products/c2.svg) bottom -1px right -1px/ auto no-repeat, var(--white);
				}
			}
			.wrapper {
				position: relative;
				display: grid;
				grid-template-columns: 473px 1fr;
				gap: 10px;
				grid-auto-columns: auto;
				.dot-a,
				.dot-b {
					align-items: center;
					gap: 4px;
					font-size: 14px;
					font-weight: 200;
					letter-spacing: 0.14px;
					&::after,
					&::before {
						width: 8px;
						height: 8px;
					}
				}
				.info,
				.feedback {
					border-radius: 30px;
					padding: 30px;
				}
				.content {
					display: -webkit-box;
					overflow: hidden;
					-webkit-box-orient: vertical;
					-webkit-line-clamp: 4;
					line-clamp: 4;
					margin-bottom: 20px;
					* {
						font-size: 20px;
						display: contents;
					}
				}
				.info {
					background: url(../images/own-products/c1.svg) bottom -1px right -1px/ auto no-repeat, var(--white);
					h2 {
						font-size: 24px;
						font-weight: 700;
						margin-bottom: 20px;
					}
					ul {
						width: calc(100% - 50px);
						list-style: none;
						li {
							display: -webkit-box;
							overflow: hidden;
							-webkit-box-orient: vertical;
							-webkit-line-clamp: 1;
							line-clamp: 1;
							color: var(--ff-2-f-00);
							&:not(:last-child) {
								margin-bottom: 4px;
							}
						}
					}
				}
				.feedback {
					position: relative;
					grid-column: 1/2;
					background: var(--white);
					border-top-right-radius: 0;
					&::before {
						content: '';
						position: absolute;
						bottom: 100%;
						right: 0;
						aspect-ratio: 73/48;
						width: 73px;
						background: url(../images/own-products/c3.svg) 0 0 /100% 100%;
					}
					&::after {
						content: '\e918';
						position: absolute;
						font: 100 23px/1 'icon';
						top: -33px;
						right: 16px;
					}
					.content {
						margin-bottom: 0;
						+ div {
							display: flex;
							justify-content: space-between;
							align-items: center;
							gap: 10px;
							margin-top: 22px;
							span {
								&:first-child {
									display: flex;
									align-items: center;
									gap: 5px;
									&::before {
										content: '\e919';
										font: 100 18px/1 'icon';
										width: 24px;
										aspect-ratio: 1;
										flex-shrink: 0;
										display: flex;
										align-items: center;
										justify-content: center;
										border-radius: 6px;
										background: var(--white-grey);
									}
								}
								&:last-child {
									font-size: 14px;
									letter-spacing: 0.14px;
								}
							}
						}
					}
				}
				.img {
					position: absolute;
					inset: 0;
					grid-area: 1/2/3/3;
					border-radius: 30px;
					border: 10px solid var(--white);
					background: var(--white);
					overflow: hidden;
					img {
						position: absolute;
						width: 100%;
						height: 100%;
						object-fit: cover;
					}
					.btn {
						position: absolute;
						right: 20px;
						bottom: 20px;
						width: 262px;
						height: 50px;
						display: flex;
						align-items: center;
						justify-content: center;
						font-size: 16px;
					}
				}
			}
			.pagination {
				margin-bottom: 50px;
			}
		}
	}
}
@container products-container (width < 1160px) {
	.tab.products .result .goods-list {
		grid-template-columns: repeat(3, 1fr);
	}
}
@container products-container (width < 600px) {
	.tab.products .result .goods-list {
		grid-template-columns: repeat(2, 1fr);
	}
}
@container products-container (width < 370px) {
	.tab.products .result .goods-list {
		grid-template-columns: 1fr;
	}
}
@media screen and (max-width: 1152px) {
	.tab-btns {
		margin-bottom: 40px;
		button {
			font-size: 14px;
			letter-spacing: 0.14px;
			height: 37px;
		}
	}
	.tab {
		.promo {
			grid-template-columns: .62fr .38fr;
			> img {
				object-position: 0 38%;
				right: initial;
				left: 0;
			}
			.wrapper {
				grid-template-columns: .62fr .38fr;
			}
			.content {
				padding-inline: 10px;
			}
		}
		&.works {
			.promo img {
				width: 150%;
			}
			.project .wrapper {
				grid-template-columns: 370px 1fr;
				.info,
				.feedback {
					padding: 20px;
				}
				.content * {
					font-size: 16px;
				}
				.info {
					h2 {
						font-size: 20px;
					}
					ul {
						width: calc(100% - 60px);
						li {
							font-size: 14px;
						}
					}
				}
				.feedback .content {
					margin-bottom: 0;
				}
			}
		}
	}
	.bottom {
		margin-bottom: 50px;
	}
	footer {
		margin-top: 50px;
	}
}
@media screen and (max-width: 768px) {
	h1.title {
		width: fit-content;
		margin-bottom: 20px;
		padding: 8px 10px 8px 0;
	}
	.tab {
		.promo {
			grid-template-columns: 1fr;
			grid-template-rows: 1fr 380px;
			padding: 10px 0;
			&::before {
				grid-row: 1/2;
				left: -10px;
				height: 100%;
				z-index: 2;
			}
			&::after {
				height: 100%;
				right: -10px;
				left: initial;
				grid-area: 2/1/3/2;
			}
			> img {
				grid-area: 1/1/3/2;
				width: min(800px, 150%);
				height: auto;
				left: -3%;
				top: 88%;
			}
			.wrapper {
				z-index: 2;
				grid-template-columns: 1fr;
			}
			.content {
				padding: 20px 10px;
			}
		}
		&.products > form {
			fieldset {
				margin-bottom: 30px;
				label {
					padding: 10px 14px;
					font-size: 14px;
					letter-spacing: 0.14px;
				}
			}
			.spoiler-box {
				position: relative;
				height: 28px;
			}
			.spoiler {
				left: initial;
				right: 0;
				width: min(158px, 100%);
				border-radius: 6px;
			}
		}
		&.works {
			.promo {
				grid-template-rows: 1fr 135px;
				> img {
					width: 681px;
					height: auto;
					left: 0;
					top: 80%;
					right: initial;
				}
			}
			.project .wrapper {
				display: flex;
				flex-direction: column;
				margin-bottom: 0;
				.img {
					position: relative;
					height: 360px;
					.btn {
						max-width: calc(100% - 40px);
						right: 50%;
						transform: translateX(50%);
					}
				}
			}
		}
	}
	footer {
		margin-top: 0;
	}
}
@media (hover: hover) {
	.tab-btns button:hover {
		color: var(--ff-2-f-00);
	}
	.tab.products > form fieldset label:hover {
		opacity: 0.7;
	}
}