body.modal-open {
	overflow: hidden;
}

html {
	scroll-behavior: smooth;
}

.supplier-page {
	display: flex;
	flex-direction: column;
	gap: 40px;
}

.supplier {
	border-radius: 30px;
	background: url(img/banner-bg.png) no-repeat center;
	background-size: cover;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.supplier__container {
	max-width: 620px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: start;
	gap: 50px;
	padding: 115px;
	padding-right: 0;
}

.supplier__content {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.supplier__title {
	font-size: 40px;
	font-weight: 800;
	line-height: 111%;
	color: #fff;
}

.supplier__text {
	font-size: 24px;
	font-weight: 400;
	line-height: 145%;
	color: #fff;
}

.supplier__button {
	color: #fff;
	border: 2px solid #fff;
	border-radius: 4px;
	background: transparent;
	padding: 15px 30px;
	font-size: 24px;
}

.supplier__button:visited {
	color: #fff;
}

.supplier__image-wrapper {
	width: 900px;
}

.supplier__img {
	width: 100%;
	height: auto;
}

.supplier-description__text {
	margin-top: 40px;
	color: #333333;
	font-weight: 300;
	line-height: 145%;
	font-size: 18px;
}

.supplier-categories {
	padding-top: 65px;
}

.supplier-categories__list {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 584px));
	gap: 20px;
	justify-content: space-between;
}

.supplier-categories__item {
	width: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 60px;
	border: 1px solid #eaeaea;
	border-radius: 12px;
	padding: 40px;
}

.supplier-categories__content {
	max-width: 504px;
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.supplier-categories__title {
	position: relative;
	font-size: 22px;
	font-weight: 400;
	line-height: 122%;
	color: #333333;
	padding-bottom: 20px;
}

.supplier-categories__title::after {
	content: '';
	position: absolute;
	left: 0;
	bottom: 0;
	width: 80px; /* длина линии */
	height: 3px; /* толщина */
	background: #ff0000; /* жёлтый цвет */
	border-radius: 2px;
}

.supplier-categories__features {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.supplier-categories__feature {
	font-size: 18px;
	color: #666666;
	font-weight: 300;
	line-height: 122%;
}

.supplier-categories__button {
	background-color: #ff0000;
	width: 63px;
	height: 63px;
	border-radius: 100%;
	margin-left: auto;
}

.supplier-categories__button .arrow {
	color: #fff;
	width: 15px;
	height: 15px;
}

.popup {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 20000;
}

.popup.active {
	display: flex;
}

.popup__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
}

.popup__body {
	display: flex;
	flex-direction: column;
	gap: 30px;
	position: relative;
	background: #fff;
	padding: 40px;
	max-width: 969px;
	width: 100%;
	height: 90vh;
	border-radius: 10px;
	z-index: 2;
}

.is-hidden {
	display: none !important;
}

.popup__title {
	font-weight: 400;
	font-size: 32px;
	color: #333333;
}

.popup__close {
	position: absolute;
	top: 20px;
	right: 10px;
	background: none;
	border: none;
	cursor: pointer;
	width: 30px;
	height: 30px;
}

.close {
	color: #666666;
	width: 20px;
	height: 20px;
}

.popup__form-view {
	overflow-y: auto;
}

.supplier-form {
	display: flex;
	flex-direction: column;
	gap: 24px;
	overflow: overlay;
}

.supplier-form__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 20px;
}

.supplier-form__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.supplier-form__field label {
	font-size: 16px;
	font-weight: 400;
	color: #333333;
}

.supplier-form input,
.supplier-form textarea {
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 6px;
	font-size: 14px;
}

.supplier-form textarea {
	min-height: 120px;
	resize: none;
}

.supplier-form__hint {
	font-weight: 300;
	font-size: 14px;
	color: #666666;
	line-height: 122%;
}

.supplier-form__error {
	color: red;
	font-size: 12px;
	height: 14px;
}

.supplier-form__file-area {
	border: 2px dashed #ddd;
	border-radius: 10px;
	padding: 30px;
	text-align: center;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 10px;
}

.supplier-form__file-icon {
	color: #dee1ea;
}

.file-upload-icon {
	color: #dee1ea;
	width: 33px;
	height: 33px;
}

.supplier-form__file-text {
	font-weight: 300;
	font-size: 14px;
	color: #666666;
	line-height: 122%;
	max-width: 394px;
	width: 100%;
}

.supplier-form__file input {
	display: none;
}

.supplier-form__file-preview {
	margin-top: 12px;
	padding: 14px 16px;
	border: 1px solid #e6e6e6;
	border-radius: 10px;
	background: #f9f9f9;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.supplier-form__file-info {
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.supplier-form__file-name {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #333333;
	line-height: 1.25;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.supplier-form__file-meta {
	margin: 0;
	font-size: 12px;
	font-weight: 400;
	color: #666666;
	line-height: 1.2;
	display: flex;
	align-items: center;
	gap: 10px;
}

.supplier-form__file-extension {
	text-transform: uppercase;
}

.supplier-form__file-remove {
	flex-shrink: 0;
	border: none;
	border-radius: 100px;
	background: #ededed;
	color: #444444;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition:
		background-color 0.2s ease,
		color 0.2s ease;
}

.supplier-form__file-remove:hover {
	background: #dfdfdf;
}

.supplier-form__file-remove:focus-visible {
	outline: 2px solid #ff0000;
	outline-offset: 2px;
}

.supplier-form__file-remove:active {
	background: #d5d5d5;
}

.supplier-form__submit {
	padding: 15px 30px;
	border: none;
	background: #ff0000;
	color: #fff;
	border-radius: 4px;
	font-weight: 500;
	font-size: 18px;
	margin-right: auto;
}

.popup__success-view {
	height: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 40px 20px;
}

.popup__success-icon {
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #ff0000;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 44px;
	font-weight: 700;
	color: #282727;
	margin-bottom: 24px;
	box-shadow: 0 12px 30px rgba(254, 191, 0, 0.35);
}

.popup__success-title {
	font-size: 34px;
	font-weight: 500;
	line-height: 1.2;
	color: #333333;
	margin-bottom: 16px;
}

.popup__success-text {
	max-width: 640px;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.45;
	color: #666666;
	margin-bottom: 30px;
}

.popup__success-button {
	border: none;
	border-radius: 100px;
	padding: 14px 32px;
	background: #ff0000;
	color: #282727;
	font-size: 18px;
	font-weight: 500;
	cursor: pointer;
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease;
}

.popup__success-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 10px 22px rgba(254, 191, 0, 0.35);
}

.popup__success-button:active {
	transform: translateY(0);
}

@media screen and (max-width: 2190px) {
	.supplier-categories__list {
		grid-template-columns: repeat(3, minmax(0, 584px));
	}
}

@media screen and (max-width: 1200px) {
	.supplier-categories__list {
		grid-template-columns: repeat(2, minmax(0, 584px));
	}

	.supplier {
		flex-direction: column;
	}

	.supplier__container {
		max-width: 100%;
		padding: 40px;
	}

	.supplier__image-wrapper {
		max-width: 900px;
		width: 100%;
		margin-left: auto;
	}
}

@media screen and (max-width: 768px) {
	.supplier-categories__list {
		grid-template-columns: 1fr;
	}

	.popup__body {
		height: auto;
		max-height: 92vh;
		padding: 24px 18px;
	}

	.popup__title {
		font-size: 28px;
	}

	.popup__success-title {
		font-size: 28px;
	}

	.popup__success-text {
		font-size: 16px;
	}

	.popup__success-button {
		width: 100%;
	}

	.supplier-form__grid {
		grid-template-columns: 1fr;
	}

	.supplier-form__file-preview {
		flex-direction: column;
		align-items: flex-start;
	}

	.supplier-form__file-remove {
		width: 100%;
	}
}
