.documents {
	margin-bottom: 130px;
}

.reviews-ful .documents-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
	gap: 32px;
}

.reviews-section,
.documentation-section {
	display: flex;
	flex-direction: column;
	gap: 27px;
}

.documentation-section,
.documents-grid {
	margin-top: 9px;
}

.documents .content p{
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	color: var(--brand400);
	margin: 0;
}

.documents .content a {
	color: var(--brand200);
	font-weight: 500;
	font-size: 16px;
	line-height: 150%;
	margin: 0;
	text-decoration: underline;
}

.document-card {
	border-radius: 12px;
	border: 1px solid var(--brand300);
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-width: 305px;
	background-color: var(--white);
}

.document-card h3 {
	font-weight: 700;
	font-size: 18px;
	line-height: 150%;
	color: var(--brand100);
	margin: 0;
	white-space: nowrap; 
	overflow: hidden;    
	text-overflow: ellipsis;
	width: 100%; 

}

.pdf-preview-container {
	position: relative;
	overflow: hidden;
	min-height: 200px;
	max-height: 350px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.pdf-loading {
	padding: 20px;
	color: var(--brand100);
	text-align: center;
}

.pdf-canvas {
	max-width: 100%;
	height: auto;
	display: block;
	background: white;
}

.document-actions {
	display: flex;
	justify-content: center;
}

.view-btn {
	width: 100%;
	font-weight: 400;
	font-size: 18px;
	line-height: 150%;
	text-decoration: underline;
	display: flex;
	gap: 20px;
	justify-content: space-between;
	position: relative;
	cursor:pointer;
	align-items: center;
	color: var(--brand100);
}

.view-btn::after{
	content: "";
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.75 0.75L8.25 8.25L0.75 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.75 0.75L8.25 8.25L0.75 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
	background-color: var(--brand100);
	display: block;
	width: 9px;
	height: 17px;
	background-repeat: no-repeat;
}

/* Настройки слайдера */

.slider-container {
	position: relative;
}

.documents .swiper  {
	width: 100%;
}

.documents .swiper-button-next, 
.documents .swiper-button-prev {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid var(--brand300);
	background-color: var(--white);
	z-index: 2;
}

.documents .swiper-button-prev {
	left: -60px;
}

.documents .swiper-button-next {
	right: -60px;
}

.documents .swiper-button-prev::after,
.documents .swiper-button-next::after {
	content: "";
	background-color: var(--brand100);
	display: block;
	width: 9px;
	height: 17px;
	background-repeat: no-repeat;
}

.documents .swiper-button-next::after {
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.75 0.75L8.25 8.25L0.75 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M0.75 0.75L8.25 8.25L0.75 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}

.documents .swiper-button-prev::after {
	-webkit-mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.25 0.75L0.75 8.25L8.25 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
	mask-image: url("data:image/svg+xml;charset=UTF-8,%3csvg width='9' height='17' viewBox='0 0 9 17' fill='none' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M8.25 0.75L0.75 8.25L8.25 15.75' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3e%3c/svg%3e");
}


.documents .swiper-button-next.swiper-button-disabled,
.documents .swiper-button-prev.swiper-button-disabled {
	border: 1px solid #eaedef;
	opacity: 1 !important;
}

.documents .swiper-button-next.swiper-button-disabled::after,
.documents .swiper-button-prev.swiper-button-disabled:after {
	background-color: #eaedef;
}

.document__box-btn {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
	width: 100%;
	justify-content: center;
}

/* Пагинация */

.catalog-pagination {
	padding-top: 24px;
	text-align: center;
	border-top: 1px solid var(--brand300);
}

.pagination-container {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	justify-content: center;
}

.pagination-arrow {
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #333;
	transition: all 0.3s;
	background-color: #ffffff00;
}

.pagination-arrow:hover:not(.disabled) {
	background: var(--brand-alpha200);
}

.pagination-arrow.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.pagination-numbers {
	display: flex;
	gap: 4px;
}

.pagination-number {
	width: 40px;
	height: 40px;
	background: white;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--brand100);
	transition: all 0.3s;
	font-weight: 500;
	font-size: 16px;
	line-height: 24px;
	border-radius: 8px;
}

.pagination-number:hover {
	background: var(--brand-alpha200)
}

.pagination-number.active {
	background: var(--brand-alpha200);
}

.pagination-dots {
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #666;
}

/* Стили для прелоадера */
.preloader-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.9);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.preloader-content {
	text-align: center;
}

.preloader-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #f3f3f3;
	border-top: 3px solid #007cba;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 10px;
}

.preloader-text {
	color: #007cba;
	font-size: 14px;
	font-weight: 500;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.documents-grid {
	position: relative;
	min-height: 200px; 
}

.documents-grid.loading {
	opacity: 0.7;
}


/* Для страниц записей */

.assortment-item-template-default .documentation-section .header-section,
.assortment-item-template-default .reviews-section .header-section{
	font-weight: 400;
	font-size: 36px;
	line-height: 120%;
	color: var(--brand100);
	margin: 0;
}


.assortment-item-template-default .documents .content p {
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: var(--brand100);
	margin: 0;
}

/* для страницы услуг */

.template-services-template-default .documentation-section .header-section,
.assortment-item-template-default .reviews-section .header-section{
	font-weight: 400;
	font-size: 36px;
	line-height: 120%;
	color: var(--brand100);
	margin: 0;
}

.template-services-template-default .documents .content p {
	font-weight: 400;
	font-size: 16px;
	line-height: 150%;
	color: var(--brand100);
	margin: 0;
}

/* Для главной страници  */

.home-page .documents .content p{
	font-size: 18px;
}

@media(max-width: 1200px) {
	.reviews-ful .documents-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
		gap: 20px;
	}
}

@media (max-width: 768px) {
	.documents {
		margin-bottom: 70px;
	}

	.document-card {
		max-width: 100%;
	}

	.reviews-section,
	.documentation-section {
		gap: 24px;
	}

	.documentation-section, 
	.documents-grid {
		margin-top: 0;
	}

	.documents-grid {
		grid-template-columns: 1fr;
	}

	.reviews-ful .documents-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
		gap: 13px;
	}

	.reviews-section.reviews-ful {
		gap: 16px;
	}

	.reviews-ful .content{
		margin-bottom: 54px;
		margin-top: 8px;
	}

	.view-btn::after {
		display: none;
	}

	.assortment-item-template-default .documentation-section .header-section {
		font-size: 22px;
	}


	.documents .swiper-button-prev {
		left: -20px;
	}

	.documents .swiper-button-next {
		right: -20px;
	}
}


@media (max-width: 500px) {
	.document-card {
		max-width: 100%;
	}
	.documents .swiper-button-prev {
		left: -10px;
	}

	.documents .swiper-button-next {
		right: -10px;
	}

	.view-btn {
		font-size: 14px;
	}

	.home-page .documents .content p{
		font-size: 16px;
	}

	.reviews-ful .documents-grid {
		display: grid;
		grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
		gap: 16px;
	}

	.document-card {
		padding: 16px;
	}

	.document-card h3 {
		font-size: 14px;
	}

	.reviews-ful .content {
		margin-bottom: 8px;
	}

	.catalog-pagination {
		padding-top: 18px;
	}

}


/* Для главной страницы  */

.home-page .documents .content p {
	color: var(--brand100);
}
