/* ==========================================================================
   Главная страница jfgs.ru и общий блок этапов. Без Elementor.

   Шрифты и размеры перенесены один в один из сгенерированного Elementor CSS
   страницы 7 и шаблона листинга 88. Точки перелома те же, что у Elementor:
   1024px и 767px.

   Cin  это Cinzel, Lainy это рукописный Lainy Day. Оба объявлены в наборе
   стилей Elementor, который грузится на всех страницах. Ниже они объявлены
   ещё раз своими именами, чтобы не зависеть от плагина.
   ========================================================================== */

@font-face {
	font-family: 'JFCin';
	src: url('../../../../uploads/2024/09/cinzel-regular-1.woff2') format('woff2'),
	     url('../../../../uploads/2024/09/cinzel-regular-1.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: 'JFLainy';
	src: url('../../../../uploads/2024/09/lainyday.woff2') format('woff2'),
	     url('../../../../uploads/2024/09/lainyday.woff') format('woff');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

:root {
	--jfhome-gold: #c0943e;
	--jfhome-white: #fff;
	--jfhome-ink: #060b0e;
	--jfhome-wrap: 1280px;
	/* Montserrat 17px / 1.4em, weight 400 это базовый текст набора Elementor */
	--jfhome-text: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--jfhome-display: 'Cin', 'JFCin', 'JFCinzel', Georgia, 'Times New Roman', serif;
	--jfhome-script: 'Lainy', 'JFLainy', 'Segoe Script', cursive;
}

.jf-home {
	padding-top: 0;
	font-family: var(--jfhome-text);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4em;
	color: var(--jfhome-white);
}

/* ------------------------------------------------------------- кнопка -- */

.jfh-btn {
	display: inline-block;
	padding: 16px 42px;
	border: 1px solid rgba(255, 255, 255, .75);
	border-radius: 2px;
	font-family: var(--jfhome-text);
	font-size: 19px;
	font-weight: 400;
	line-height: 1.4em;
	color: var(--jfhome-gold);
	text-decoration: none;
	transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

.jfh-btn:hover,
.jfh-btn:focus {
	border-color: var(--jfhome-gold);
	background: var(--jfhome-gold);
	color: #0a0a0a;
}

/* --------------------------------------------------------------- герой -- */

.jfh-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: 860px;
	padding: 170px 5% 90px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	text-align: center;
}

/* Слева затемнение под текст, справа на фоне монета. */
.jfh-hero::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(0, 0, 0, .62) 0%, rgba(0, 0, 0, .38) 42%, rgba(0, 0, 0, 0) 72%);
	pointer-events: none;
}

.jfh-hero::after {
	content: '';
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 180px;
	background: linear-gradient(to bottom, rgba(0, 0, 0, 0), #000);
	pointer-events: none;
}

.jfh-hero__inner {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 720px;
	margin: 0 auto 0 0;
}

/* Cin 36px, 400, 1.2em, белый */
.jfh-hero__kicker {
	margin: 0;
	font-family: var(--jfhome-display);
	font-size: 36px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--jfhome-white);
}

/* Cin 58px, 400, 1.2em, белый */
.jfh-hero__title {
	margin: 0;
	font-family: var(--jfhome-display);
	font-size: 58px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--jfhome-white);
}

/* Lainy 46px, 300, 1.4em, белый */
.jfh-hero__slogan {
	margin: 6px 0 32px;
	font-family: var(--jfhome-script);
	font-size: 46px;
	font-weight: 300;
	line-height: 1.4em;
	color: var(--jfhome-white);
}

.jfh-hero__text {
	max-width: 660px;
	margin: 40px auto 0;
	font-size: 17px;
	line-height: 1.4em;
	color: var(--jfhome-white);
}

.jfh-hero__text p {
	margin: 0 0 14px;
}

.jfh-hero__lead {
	font-family: var(--jfhome-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2em;
	color: var(--jfhome-gold);
}

/* ------------------------------------------------------------ каталог -- */

.jfh-catalog {
	background: #000;
}

.jfh-catalog__inner {
	padding: 80px 5% 90px;
}

.jfh-catalog__head {
	margin-bottom: 48px;
}

/* Cin 68px, 400, 1.2em, белый */
.jfh-catalog__kicker {
	margin: 0;
	font-family: var(--jfhome-display);
	font-size: 68px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--jfhome-white);
}

/* Cin 60px, 400, 1.2em, золото */
.jfh-catalog__title {
	margin: 0;
	font-family: var(--jfhome-display);
	font-size: 60px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--jfhome-gold);
}

.jfh-tiles {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 28px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfh-tile {
	margin: 0;
}

.jfh-tile__link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: var(--jfhome-white);
	text-decoration: none;
}

.jfh-tile__media {
	display: block;
	overflow: hidden;
	border-radius: 8px;
	background: #0a0a0a;
	aspect-ratio: 4 / 3;
}

.jfh-tile__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .5s cubic-bezier(.2, .7, .3, 1);
}

.jfh-tile__link:hover .jfh-tile__media img {
	transform: scale(1.06);
}

/* Cin 20px, 500, белый */
.jfh-tile__title {
	display: block;
	margin-top: 16px;
	font-family: var(--jfhome-display);
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--jfhome-white);
	transition: color .25s ease;
}

.jfh-tile__link:hover .jfh-tile__title {
	color: var(--jfhome-gold);
}

.jfh-catalog__text {
	max-width: 900px;
	margin: 64px auto 0;
	font-size: 17px;
	line-height: 1.4em;
	color: var(--jfhome-white);
	text-align: center;
}

.jfh-catalog__text p {
	margin: 0 0 14px;
}

.jfh-catalog__lead {
	font-family: var(--jfhome-display);
	font-size: 24px;
	font-weight: 500;
	line-height: 1.2em;
	color: var(--jfhome-gold);
}

/* ------------------------------------------------------------ доверие -- */

.jfh-trust {
	background: var(--jfhome-ink);
}

.jfh-trust__inner {
	display: grid;
	grid-template-columns: 1.5fr 1fr;
	align-items: center;
	gap: 48px;
	padding: 72px 5%;
}

.jfh-trust__title {
	margin: 0 0 18px;
	font-family: var(--jfhome-display);
	font-weight: 400;
	line-height: 1.2em;
}

/* Cin 58px, белый */
.jfh-trust__title span {
	display: block;
	font-size: 58px;
	color: var(--jfhome-white);
}

/* Cin 60px, золото */
.jfh-trust__title span + span {
	font-size: 60px;
	color: var(--jfhome-gold);
}

/* Montserrat 19px, 300, 1.4em, белый */
.jfh-trust__note {
	margin: 0 0 30px;
	font-size: 19px;
	font-weight: 300;
	line-height: 1.4em;
	color: var(--jfhome-white);
}

.jfh-trust__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

/* ------------------------------------------------------------- сроки -- */

.jfh-terms {
	background: #000;
}

.jfh-terms__inner {
	display: grid;
	grid-template-columns: 0.9fr 1.3fr;
	align-items: center;
	gap: 56px;
	padding: 80px 5%;
}

.jfh-terms__media img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 10px;
}

.jfh-terms__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px 36px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfh-terms__item {
	display: flex;
	align-items: center;
	gap: 16px;
}

/* Cin 60px, 600, 1.2em, золото */
.jfh-terms__num {
	flex: 0 0 auto;
	font-family: var(--jfhome-display);
	font-size: 60px;
	font-weight: 600;
	line-height: 1.2em;
	color: var(--jfhome-gold);
}

/* Montserrat 17px, 400, 1.4em, белый */
.jfh-terms__text {
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4em;
	color: var(--jfhome-white);
}

/* -------------------------------------------------------------- этапы -- */

.jfh-steps {
	background: #000;
	font-family: var(--jfhome-text);
}

.jfh-steps__inner {
	display: grid;
	grid-template-columns: 1.7fr 1fr;
	align-items: center;
	gap: 56px;
	padding: 76px 5%;
}

/* Cin 34px, 600, 1.2em, белый */
.jfh-steps__title {
	margin: 0 0 40px;
	font-family: var(--jfhome-display);
	font-size: 34px;
	font-weight: 600;
	line-height: 1.2em;
	color: var(--jfhome-white);
}

.jfh-steps__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 32px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.jfh-steps__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.jfh-steps__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 96px;
	height: 96px;
	margin-bottom: 16px;
	border: 1px solid rgba(192, 148, 62, .3);
	border-radius: 50%;
	background: rgba(192, 148, 62, .06);
}

.jfh-steps__icon img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

/* Cin 17px, 500, белый */
.jfh-steps__text {
	font-family: var(--jfhome-display);
	font-size: 17px;
	font-weight: 500;
	line-height: 1.3;
	color: var(--jfhome-white);
}

/* Lainy 17px, 400, 1.2em, белый */
.jfh-steps__aside {
	font-family: var(--jfhome-script);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.2em;
	color: var(--jfhome-white);
}

.jfh-steps__aside p {
	margin: 0;
}

/* ----------------------------------------------------------- адаптив -- */

@media (max-width: 1200px) {
	.jfh-tiles {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* Точка перелома Elementor: планшет */
@media (max-width: 1024px) {
	.jfh-hero {
		min-height: 620px;
		padding: 130px 5% 70px;
	}

	.jfh-hero__inner {
		max-width: 100%;
		margin: 0 auto;
	}

	.jfh-hero::before {
		background: rgba(0, 0, 0, .55);
	}

	.jfh-catalog__kicker {
		font-size: 48px;
	}

	.jfh-trust__title span {
		font-size: 36px;
	}

	.jfh-terms__num {
		font-size: 40px;
	}

	.jfh-terms__text {
		font-size: 15px;
	}

	.jfh-trust__inner,
	.jfh-terms__inner,
	.jfh-steps__inner {
		grid-template-columns: 1fr;
		gap: 36px;
	}

	.jfh-trust__media,
	.jfh-terms__media {
		order: -1;
		max-width: 520px;
	}

	.jfh-catalog__inner {
		padding: 60px 5% 70px;
	}
}

/* Точка перелома Elementor: телефон */
@media (max-width: 767px) {
	.jfh-hero {
		min-height: 520px;
		padding: 110px 5% 56px;
	}

	.jfh-hero__kicker {
		font-size: 24px;
	}

	.jfh-hero__title {
		font-size: 40px;
	}

	.jfh-hero__slogan {
		font-size: 22px;
	}

	.jfh-hero__text {
		margin-top: 30px;
		font-size: 15px;
	}

	.jfh-hero__lead {
		font-size: 20px;
	}

	.jfh-btn {
		padding: 14px 30px;
		font-size: 16px;
	}

	.jfh-catalog__kicker {
		font-size: 36px;
	}

	.jfh-catalog__title {
		font-size: 40px;
	}

	.jfh-catalog__text {
		margin-top: 44px;
		font-size: 15px;
		text-align: left;
	}

	.jfh-catalog__lead {
		font-size: 20px;
	}

	.jfh-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 18px;
	}

	.jfh-tile__title {
		margin-top: 12px;
		font-size: 16px;
	}

	.jfh-trust__title span + span {
		font-size: 40px;
	}

	.jfh-trust__note {
		font-size: 17px;
	}

	.jfh-terms__list {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.jfh-steps__title {
		font-size: 22px;
		margin-bottom: 28px;
	}

	.jfh-steps__list {
		grid-template-columns: 1fr;
		gap: 26px;
	}

	.jfh-steps__item {
		flex-direction: row;
		align-items: center;
		gap: 16px;
		text-align: left;
	}

	.jfh-steps__icon {
		flex: 0 0 auto;
		width: 72px;
		height: 72px;
		margin-bottom: 0;
	}

	.jfh-steps__text {
		font-size: 15px;
	}
}

@media (max-width: 359px) {
	.jfh-tiles {
		grid-template-columns: 1fr;
	}
}
