/**
 * Стили главной страницы (front-page.php).
 * Геометрия и типографика сверены с Tilda (bohemia-lighting.ru).
 */

/* ===== Общие заголовки секций ===== */

.home-section-title {
	margin: 0 0 105px;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text);
	text-align: center;
	text-transform: none;
}

/* ===== Hero ===== */

.home-hero {
	position: relative;
	overflow: visible;
	padding-top: 0px;
	padding-bottom: 40px;
}

.home-hero__inner {
	position: relative;
	z-index: 1;
	max-width: 1082px;
}

.home-hero__title {
	margin: 0 0 14px;
	font-size: 33px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-transform: uppercase;
	color: var(--color-accent);
}

.home-hero__layout {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 24px;
	align-items: start;
	position: relative;
	z-index: 2;
}

.home-hero__nav {
	padding-top: calc(33px * 1.2 + 14px + 20px);
}

.home-hero__nav-group {
	margin-bottom: 28px;
}

.home-hero__nav-parent {
	display: inline-block;
	font-size: 28px;
	font-weight: 500;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-text);
}

.home-hero__nav-parent:hover {
	color: var(--color-accent);
}

.home-hero__nav-list {
	margin-top: 18px;
	padding-left: 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	list-style: disc;
}

.home-hero__nav-list li {
	display: list-item;
	list-style: disc;
	margin-left: 4px;
}

.home-hero__nav-list a {
	font-size: 20px;
	font-weight: 400;
	line-height: 1.2;
	text-transform: uppercase;
	color: var(--color-text);
}

.home-hero__nav-list a:hover {
	color: var(--color-accent);
}

.home-hero__showcase {
	display: flex;
	flex-direction: column;
	gap: 20px;
	min-width: 0;
}

.home-hero__row {
	display: flex;
	flex-wrap: wrap;
	gap: 30px 70px;
	justify-content: center;
}

.home-hero__row--bottom {
	padding-left: 0;
}

.home-cat {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: calc((100% - 140px) / 3);
	text-align: center;
}

.home-cat__image {
	display: block;
	width: 100%;
	height: 340px;
	background: #000;
	overflow: hidden;
}

.home-cat__image img {
	width: 100%;
	height: 100%;
	object-fit: fill;
	transition: transform var(--transition-fast);
}

.home-cat:hover .home-cat__image img {
	transform: scale(1.04);
}

.home-cat__title {
	margin-top: 12px;
	font-size: 16px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--color-text);
}

.home-cat:hover .home-cat__title {
	color: var(--color-accent);
}

.home-hero__bg {
	position: absolute;
	left: 50%;
	bottom: -20px;
	transform: translateX(-50%);
	width: min(1084px, 92vw);
	max-width: none;
	height: auto;
	opacity: 0.42;
	pointer-events: none;
	z-index: 0;
	user-select: none;
}

/* ===== Преимущества ===== */

.home-advantages {
	padding: 40px 20px;
}

.home-advantages__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
}

.home-advantage {
	text-align: center;
}

.home-advantage__icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 40px;
}

.home-advantage__title {
	margin: 0 0 16px;
	font-size: 30px;
	font-weight: 600;
	line-height: 1.17;
	color: var(--color-text);
}

.home-advantage__text {
	margin: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--color-text);
}

/* ===== Как мы работаем ===== */

.home-steps {
	padding: 40px 20px;
}

.home-steps__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	justify-content: center;
	gap: 40px;
}

.home-step {
	position: relative;
	z-index: 1;
	text-align: center;
}

.home-step:not(:last-child):before {
	content: '';
	position: absolute;
	left: 100%;
	top: 50px;
	z-index: -1;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	background-repeat: no-repeat;
	background-position: center;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg role='presentation' width='60' stroke='%23000000' fill='none' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 18.7'%3e%3cpath class='st0' d='M4.2 9.4h32.1'%3e%3c/path%3e%3cpath class='st1' d='M31.3 13.4l5-4-5-4'%3e%3c/path%3e%3c/svg%3e");
}

.home-step__icon {
	width: 100px;
	height: 100px;
	margin: 0 auto 24px;
}

.home-step__title {
	margin: 0 0 14px;
	font-size: 24px;
	font-weight: 600;
	line-height: 1.25;
	color: var(--color-text);
}

.home-step__text {
	margin: 0;
	font-size: 15px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--color-text);
}

/* ===== Форма консультации ===== */

.home-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	background: #efefef;
	min-height: 720px;
}

.home-form__media {
	min-height: 720px;
	background-color: #111;
	background-position: 50% 50%;
	background-size: cover;
	background-repeat: no-repeat;
}

.home-form__panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 10%;

}

.home-form__title {
	margin: 0 0 29px;
	font-size: 42px;
	font-weight: 600;
	line-height: 1.2;
	color: var(--color-text);
	text-transform: none;
}

.home-form__text {
	margin: 0 0 30px;
	font-size: 20px;
	font-weight: 300;
	line-height: 1.45;
	color: var(--color-text);
}

.home-form__mount {
	width: 100%;
	max-width: 762px;
}

/* Exform внутри блока формы главной */
.home-form__mount .exform-wrapper.callback_wrap {
	background: transparent !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	padding: 0 !important;
	max-width: none !important;
}

.home-form__mount .exform-wrapper .exform-header,
.home-form__mount .exform-wrapper .exform-addmsg {
	display: none !important;
}

.home-form__mount .exform-wrapper .form-body {
	margin: 0 !important;
}

.home-form__mount .exform-wrapper .form-body .input-item {
	margin-bottom: 30px !important;
}

.home-form__mount .exform-wrapper input[type='text'],
.home-form__mount .exform-wrapper input[type='email'],
.home-form__mount .exform-wrapper input[type='tel'],
.home-form__mount .exform-wrapper textarea {
	background: none !important;
	border: none !important;
	border-radius: 0px !important;
	color: #000000 !important;
    border-bottom: 1px solid #b3b3b3 !important;
	padding: 0 !important;
	height: 60px !important;
}

.home-form__mount .exform-wrapper .mf-submit .send-btn {
	max-width: 305px !important;
	height: 60px !important;
	padding: 0 60px !important;
	border-radius: 30px !important;
	background: var(--color-accent) !important;
	font-size: 16px !important;
	font-weight: 600 !important;
	text-transform: none !important;
	box-shadow: none !important;
}

.home-form__mount .exform-wrapper .mf-submit .send-btn:hover {
	background: var(--color-accent-dark) !important;
}

.home-form__mount .exform-wrapper .policy {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-top: 0px !important;
	font-size: 16px !important;
	color: var(--color-text-secondary) !important;
}
.home-form__mount .exform-wrapper .policy input {
	margin: 0 !important;
	width: 24px;	
	height: 25px;
}
.home-form__mount .exform-wrapper .policy label {
	margin: 0;
	font-size: 16px;
}
.home-form__mount .exform-wrapper.callback_wrap .form-body .input-item {
	padding: 0 !important;
}
/* ===== Адаптив ===== */

@media (max-width: 1100px) {
	.home-hero__layout {
		grid-template-columns: 1fr;
	}

	.home-hero__nav {
		display: flex;
		flex-wrap: wrap;
		gap: 16px 32px;
		align-items: flex-start;
		padding-top: 0;
		display: none;
	}

	.home-hero__nav-group {
		margin-bottom: 0;
	}

	.home-hero__nav-list {
		margin-top: 10px;
	}

	.home-hero__bg {
		opacity: 0.35;
		left: 0;
		bottom: -20px;
	}

	.home-form {
		grid-template-columns: 1fr;
	}

	.home-form__media {
		min-height: 420px;
	}

	.home-form__panel {
		padding: 48px 32px 56px;
	}
}

@media (max-width: 900px) {
	.home-section-title,
	.home-form__title {
		font-size: 32px;
	}

	.home-advantages__list {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}

	.home-steps__list {
		grid-template-columns: 1fr 1fr;
	}

	.home-advantage__title {
		font-size: 24px;
	}

	.home-hero__row {
		gap: 28px;
	}
	
}
@media (max-width: 767px) {
	.home-hero__row {
		gap: 20px 10px;
	}
	.home-cat {
		width: calc((100% - 10px) / 2);
	}
}
@media (max-width: 600px) {
	.home-hero__title {
		font-size: 26px;
	}

	.home-hero__nav-parent {
		font-size: 22px;
	}

	.home-hero__nav-list a {
		font-size: 16px;
	}

	.home-cat__image {
		width: 100%;
	}

	.home-cat__image {
		height: auto;
	}

	.home-form__panel {
		padding: 36px 20px 48px;
	}

	.home-form__text {
		font-size: 17px;
	}

	.home-form__mount .exform-wrapper .mf-submit .send-btn {
		width: 100% !important;
		min-width: 0 !important;
		padding: 0 24px !important;
	}

	.home-advantages__list {
		grid-template-columns: 1fr;
	}

	.home-steps__list {
		grid-template-columns: 1fr;
	}
	.home-step:not(:last-child):before {
		display: none;
	}
}
