/* Основа start */
* {
	margin: 0;
	padding: 0;
}

.body {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.section_company,
.section_advantages,
.section_questions,
.section_reviews {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	margin-top: 4rem;
}

/* Горизонтальные блоки - левое выравнивание */
.horizontal-leveler {
	display: flex;
	gap: clamp(2rem, 5vw, 40px);
	justify-content: flex-start;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto 2rem;
}

.vertical-leveler {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
	transition: transform 0.3s ease-in-out; /* Плавный переход всегда */
}

.vertical-leveler h2,
.vertical-leveler h3 {
	margin-bottom: 0.5rem;
	line-height: 1.2;
}

.vertical-leveler p {
	margin-bottom: 1rem;
	line-height: 1.5;
}

.title-main {
	color: #4a4a4a;
	font-size: clamp(2rem, 4vw, 3rem);
	font-weight: bold;
	margin-bottom: 2rem;
}

.subtitle {
	font-size: clamp(1.8rem, 4vw, 2.8rem);
	font-weight: 500;
}

.info-desc {
	font-size: 1rem;
	color: #333;
}

.info-desc b {
	font-weight: 700;
}

.image-block {
	max-width: 50%;
	flex: 0 0 auto;
	display: flex;
	justify-content: flex-start;
	transition: transform 0.3s ease-in-out;
}

.image-block:hover {
	transform: translateY(-8px);
}

/* Лёгкое движение текста при наведении на картинку */
.vertical-leveler:hover {
	transform: translateX(15px); /* Смещаем текст при hover */
}

.image-block img {
	max-width: 100%;
	height: auto;
	display: block;
	object-fit: contain;
}

.image-block.icon img {
	width: 64px;
	height: 64px;
}
/* Основа end */

/* section pride start */

/* Контейнер слайдера */
.slider-container {
	position: relative;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
	display: flex;
	align-items: center;
}

/* Обертка для скролла */
.slider-wrapper {
	overflow: hidden;
	flex: 1;
}

/* Лента слайдов */
.slider-track {
	display: flex;
	transition: transform 0.5s ease;
}

/* Слайды */
.slide {
	flex: 0 0 100%; /* показываем 1 слайд */
	display: flex;
	justify-content: center;
	align-items: center;
	user-select: none;
}

.slide img {
	max-height: 500px; /* ограничение по высоте */
	width: auto;
	max-width: 100%;
	border-radius: 8px;
	object-fit: cover;
	cursor: zoom-in;
}

/* Стрелки */
button.left-arrow,
button.right-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 10;
	width: 50px;
	height: 50px;
	opacity: 0.8;
	border: none;
	background: none;
	cursor: pointer;
	transition: opacity 0.2s ease-in-out, transform 0.2s ease-in-out;
	user-select: none;
}

button.left-arrow {
	left: 15px;
}
button.right-arrow {
	right: 15px;
}

button:hover {
	opacity: 1;
}

button.left-arrow:hover,
button.right-arrow:hover {
	opacity: 1;
	transform: translateY(-55%); /* немного выше */
}

button:disabled {
	opacity: 0.4;
	cursor: not-allowed;
	pointer-events: none;
}

/* Клик эффект */
.left-arrow:active img {
	content: url('/assets/img/icons/leftArrow(gray).svg');
}

.right-arrow:active img {
	content: url('/assets/img/icons/rightArrow(gray).svg');
}
/* section pride end */

/* section advantages start */
.section_advantages .vertical-leveler {
	gap: 4px;
}

.section_advantages h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #222;
}

.section_advantages .vertical-leveler p {
	margin-bottom: 0.2rem; /* меньшее расстояние под заголовком */
	font-size: 0.95rem; /* компактнее шрифт */
}

.section_advantages .feature__text {
	font-size: 0.9rem;
	line-height: 1.4;
	color: #444;
}
/* section advantages end */

/* section questions start */
.main-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 20px;
}

.border-blue {
	border: 2px solid var(--blue);
	border-radius: 8px;
	padding: 20px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.border-blue h3 {
	font-size: 1.1rem;
	font-weight: 700;
	margin-bottom: 10px;
	color: #222;
}

.border-blue p {
	font-size: 1rem;
	color: #444;
	line-height: 1.5;
}

/* section questions end */

/* hovers start*/
.border-blue:hover {
	transform: translateY(-4px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}
/* hovers end*/

/* section reviews start*/
.reviews-container {
	justify-content: space-between;
	display: flex;
	flex-wrap: wrap;
	gap: 2rem;
}

.review-card {
	background: #fff;
	border: 2px solid var(--blue);
	border-radius: 12px;
	padding: 20px 25px;
	max-width: 50%;
	flex: 1 1 45%;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	cursor: pointer;
}

.review-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.review-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.client-info {
	display: flex;
	flex-direction: column;
}

.review-client {
	font-weight: 700;
	font-size: 1.1rem;
	color: #222;
}

.review-date {
	font-size: 0.9rem;
	color: #666;
}

.review-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.pdf-icon {
	width: 50px;
	height: 50px;
	cursor: pointer;
	transition: transform 0.2s ease;
}

.pdf-icon:hover {
	transform: scale(1.1);
}

.review-stars {
	font-size: 1rem;
	color: #f5a623; /* золотистые звёзды */
}

.review-text {
	font-size: 0.95rem;
	line-height: 1.6;
	color: #444;
	margin-top: 8px;
}
/* section reviews end*/

/* Адаптивность для мобилок */
@media (max-width: 768px) {
	/* Общая центровка текста */
	* {
		text-align: center;
	}

	/* Универсальные секции */
	.section_company,
	.section_advantages,
	.section_questions,
	.section_pride,
	.section_reviews {
		padding: 1rem 0.5rem; /* уменьшаем внутренние отступы */
		margin-top: 1rem;
	}

	/* Заголовки секций */
	.title-main {
		margin-bottom: 2rem; /* меньше отступа до контента */
		font-size: clamp(1.8rem, 4vw, 2.5rem); /* чуть меньше размер текста */
	}

	/* Горизонтальные блоки (картинка + текст) */
	.horizontal-leveler {
		flex-direction: column; /* в колонку */
		align-items: center;
		gap: 1rem; /* меньшее расстояние между элементами */
	}

	/* Вертикальный блок с текстом */
	.vertical-leveler {
		padding: 0;
		transform: translateX(0) !important; /* убираем сдвиг при hover */
		text-align: center;
		width: 100%;
		box-sizing: border-box;
		gap: 8px; /* уменьшаем промежутки */
	}

	.vertical-leveler h2,
	.vertical-leveler h3 {
		margin-bottom: 0.3rem;
	}

	.vertical-leveler p {
		margin-bottom: 0.5rem;
	}

	/* Картинка */
	.image-block {
		justify-content: center;
		max-width: 100%;
		order: -1; /* картинка станет первой в колонке */
		margin-bottom: 1rem; /* чтобы было пространство после картинки */
	}

	.image-block img {
		max-width: 100%; /* картинка растягивается до ширины контейнера */
		height: auto;
	}

	/* Стрелочки */
	button.left-arrow,
	button.right-arrow {
		opacity: 0.5;
	}

	/* Секция "Гордость" (слайдер) */
	.slider-container {
		margin-top: 0;
	}
	.slide img {
		max-height: 220px; /* ещё меньше, чтобы не было провала */
		object-fit: contain; /* чтобы картинка не обрезалась */
	}

	/* Сетка вопросов на 1 колонку */
	.questions-grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	.section_questions h3 {
		text-align: left;
	}

	.section_questions p {
		text-align: left;
	}

	/* Карточки вопросов */
	.border-blue {
		padding: 15px;
	}

	/* Отзывы */
	.reviews-container {
		flex-direction: column;
		gap: 1.5rem;
		align-items: stretch;
	}

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

	.review-text {
		text-align: left;
		font-size: 0.92rem;

		display: -webkit-box; /* для старых Chrome/Safari */
		-webkit-box-orient: vertical;
		-webkit-line-clamp: 6; /* количество строк */
		overflow: hidden;
		text-overflow: ellipsis;

		/* будущий стандарт */
		display: box; /* старый синтаксис */
		box-orient: vertical;
		line-clamp: 6; /* современный стандарт */
	}

	.review-date {
		text-align: left;
	}
}
