/* === ЭТАП 2: front-page.php === */
/* Переиспользует .stl2-container, .stl2-btn/.stl2-btn--red, .stl2-h2,
   .stl2-product-card, .stl2-case-card из общих файлов. Здесь — новые
   классы, специфичные для главной страницы (hero2-* — чтобы не путать
   с .stl2-hero, который используется на других страницах с другой
   структурой: там breadcrumb+title+facts, здесь — 2-колоночный hero
   с видео-превью). */

.stl2-frontpage-text {
	font-size: 15px;
	color: #444;
	line-height: 1.7;
	margin-bottom: 16px;
	max-width: 820px;
	font-family: Montserrat, sans-serif;
}
.stl2-frontpage-text:last-child {
	margin-bottom: 0;
}

.stl2-frontpage-section-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 12px;
	flex-wrap: wrap;
	gap: 16px;
}
.stl2-frontpage-lead {
	font-size: 15px;
	color: #6B7280;
	margin-bottom: 32px;
	font-family: Montserrat, sans-serif;
}
.stl2-frontpage-link-pill {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #F34423;
	color: #F34423;
	padding: 10px 22px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.stl2-frontpage-link-pill:hover {
	background: #F34423;
	color: #fff;
}
.stl2-frontpage-cardgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.stl2-frontpage-card {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .2s;
}
.stl2-frontpage-card:hover {
	box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
}
.stl2-frontpage-card__img {
	height: 140px;
	background-color: #1A1A1A;
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
	color: rgba(255, 255, 255, .3);
	font-size: 40px;
}
.stl2-frontpage-card__body {
	padding: 16px 18px;
}
.stl2-frontpage-card__body strong {
	font-size: 14px;
	font-weight: 700;
	color: #1A1A1A;
	font-family: Montserrat, sans-serif;
	line-height: 1.35;
}

.stl2-frontpage-products-grid {
	grid-template-columns: repeat(4, 1fr) !important;
}
/* .stl2-product-card__meta не задаёт font-family в shop.css (та же болезнь,
   что чинили в характеристиках товара) — наследуется легаси Roboto.
   Фикс здесь точечный (только для блока на главной); тот же класс
   используется и в магазине/похожих товарах — там баг, видимо, тоже есть,
   но shop.css отдельно не трогаю без вашего запроса. */
.stl2-frontpage-products-grid .stl2-product-card__meta,
.stl2-frontpage-products-grid .stl2-product-card__meta span {
	font-family: Montserrat, sans-serif;
}

.stl2-vidy-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 20px;
}

/* .stl2-case-card в portfolio.css, похоже, рассчитан на другую структуру
   DOM (там где-то сброс text-decoration завязан на конкретную вложенность) —
   здесь весь блок карточки обёрнут в один <a>, и заголовок/анонс/дата
   показывались подчёркнутыми синими ссылками (браузерный дефолт).
   Точечный сброс, чтобы не лезть в общий portfolio.css вслепую. */
.stl2-case-card,
.stl2-case-card * {
	text-decoration: none !important;
	font-family: Montserrat, sans-serif !important;
}

.stl2-clients-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 20px;
	align-items: center;
}
.stl2-clients-item {
	background: #F5F5F5;
	border-radius: 12px;
	padding: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	height: 90px;
}
.stl2-clients-item img {
	max-width: 100%;
	max-height: 48px;
	object-fit: contain;
	transition: transform .2s;
}
.stl2-clients-item:hover img {
	transform: scale(1.12);
}

.stl2-news-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 32px;
	flex-wrap: wrap;
	gap: 16px;
}
.stl2-news-head__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 1px solid #F34423;
	color: #F34423;
	padding: 10px 22px;
	border-radius: 24px;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	white-space: nowrap;
	transition: background .15s, color .15s;
}
.stl2-news-head__link:hover {
	background: #F34423;
	color: #fff;
}
.stl2-news-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}
.stl2-news-card {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 14px;
	overflow: hidden;
}
.stl2-news-card__img {
	display: block;
	height: 160px;
	background-color: #1A1A1A;
	background-size: cover;
	background-position: center;
	color: rgba(255, 255, 255, .3);
	font-size: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stl2-news-card__body {
	padding: 20px;
}
.stl2-news-card__date {
	font-size: 12px;
	color: #9CA3AF;
	font-family: Montserrat, sans-serif;
	margin-bottom: 8px;
}
.stl2-news-card__title {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #1A1A1A;
	text-decoration: none;
	font-family: Montserrat, sans-serif;
	line-height: 1.4;
	margin-bottom: 8px;
}
.stl2-news-card__excerpt {
	font-size: 13px;
	color: #6B7280;
	line-height: 1.6;
	font-family: Montserrat, sans-serif;
}

/* .stl2-faq* реально живёт в archive.css (специфично для архивов категорий),
   не в общем page-flexible-content.css — на главной этого файла нет, поэтому
   FAQ рендерился вообще без стилей (голые ссылки). Пишу свой CSS здесь же,
   не подключая archive.css целиком (тот же принцип, что и в single-common —
   не тянуть зависимость между несвязанными страницами). */
.stl2-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
}
.stl2-faq-item {
	background: #fff;
	border: 1px solid #E5E7EB;
	border-radius: 12px;
	overflow: hidden;
}
.stl2-faq-toggle {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 18px 22px;
	cursor: pointer;
}
.stl2-faq-toggle span {
	font-size: 15px;
	font-weight: 700;
	color: #1A1A1A;
	font-family: Montserrat, sans-serif;
	line-height: 1.4;
}
.stl2-faq-icon {
	flex-shrink: 0;
	color: #F34423;
	font-size: 14px;
	transition: transform .2s;
}
.stl2-faq-icon.open {
	transform: rotate(45deg);
}
.stl2-faq-answer {
	padding: 0 22px 20px;
}
.stl2-faq-answer p {
	font-size: 14px;
	color: #6B7280;
	line-height: 1.7;
	font-family: Montserrat, sans-serif;
	margin: 0;
}

.stl2-hero-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 40px;
	align-items: center;
}

.stl2-hero2__title {
	font-size: clamp(28px, 4.2vw, 46px);
	font-weight: 800;
	color: #fff;
	line-height: 1.15;
	margin-bottom: 16px;
	font-family: Montserrat, sans-serif;
}
.stl2-hero2__subtitle {
	font-size: 16px;
	color: rgba(255, 255, 255, .65);
	max-width: 520px;
	margin-bottom: 28px;
	font-family: Montserrat, sans-serif;
}
.stl2-hero2__buttons {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}
.stl2-hero2__btn-outline {
	height: 48px;
	padding: 0 28px;
	border: 1px solid rgba(255, 255, 255, .3);
	color: #fff;
	border-radius: 8px;
	font-family: Montserrat, sans-serif;
	font-size: 15px;
	font-weight: 600;
	display: flex;
	align-items: center;
	text-decoration: none;
}

.stl2-hero2__video-preview {
	cursor: pointer;
	width: 340px;
	height: 340px;
	max-width: 100%;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	background-color: #2a2a2a;
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}
.stl2-hero2__video-preview__play {
	width: 72px;
	height: 72px;
	background: rgba(255, 255, 255, .9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
}
.stl2-hero2__video-preview__play i {
	font-size: 24px;
	color: #1a1a1a;
	margin-left: 4px;
}

.stl2-hero2__facts {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 40px;
}
.stl2-hero2__fact {
	background: #2a2a2a;
	border: 1px solid rgba(255, 255, 255, .1);
	border-radius: 12px;
	padding: 22px 20px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}
.stl2-hero2__fact__icon {
	width: 44px;
	height: 44px;
	background: #F34423;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	color: #fff;
}
.stl2-hero2__fact strong {
	display: block;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 4px;
	font-family: Montserrat, sans-serif;
}
.stl2-hero2__fact span {
	font-size: 13px;
	color: rgba(255, 255, 255, .55);
	font-family: Montserrat, sans-serif;
}

.stl2-video-lightbox {
	display: none;
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, .85);
	z-index: 9999;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.stl2-video-lightbox__inner {
	position: relative;
	width: 100%;
	max-width: 800px;
}
.stl2-video-lightbox__close {
	position: absolute;
	top: -44px;
	right: 0;
	background: none;
	border: none;
	color: #fff;
	font-size: 28px;
	cursor: pointer;
}

@media (max-width: 900px) {
	.stl2-news-grid {
		grid-template-columns: 1fr;
	}
	.stl2-clients-grid {
		grid-template-columns: repeat(3, 1fr);
	}
	.stl2-vidy-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.stl2-frontpage-products-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}
	.stl2-frontpage-cardgrid {
		grid-template-columns: 1fr 1fr;
	}
	.stl2-hero-grid {
		grid-template-columns: 1fr;
	}
	.stl2-hero2__facts {
		grid-template-columns: 1fr;
	}
	.stl2-hero2__video-preview {
		width: 240px;
		height: 240px;
		margin-top: 32px;
	}
}

@media (max-width: 600px) {
	.stl2-clients-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	.stl2-vidy-grid {
		grid-template-columns: 1fr;
	}
	.stl2-frontpage-products-grid {
		grid-template-columns: 1fr !important;
	}
	.stl2-frontpage-cardgrid {
		grid-template-columns: 1fr;
	}
}
