/* ==========================================================================
   HOME.CSS — только для главной страницы (index.php)
   Подключается ТРЕТЬИМ после style.css и style-editorial.css
   Перебивает их без !important (потому что идёт позже)
   ========================================================================== */

/* ==========================================================================
   1. ОБЩИЕ НАСТРОЙКИ ГЛАВНОЙ
   ========================================================================== */
body.page-home {
	background: #f2f0ed;
}

/* Все секции главной — 950px, по центру */
.home-container {
	width: 950px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 40px;
}

/* Метка — как везде */
.home-label {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: #b0151e;
	margin-bottom: 20px;
}

/* ==========================================================================
   2. HERO-СЛАЙДЕР (растворяется при скролле)
   ========================================================================== */
.home-hero {
	   position: relative;
	   width: 950px;
	   max-width: 100%;
	   margin: 0 auto;
	   will-change: opacity, transform;
	   transition: opacity 0.1s linear, transform 0.1s linear;
   }

.home-hero__viewport {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 2 / 1;
	height: auto;
	background:  #f2f0ed;
}

.home-hero__inner {
	display: flex;
	height: 100%;
	transition: transform 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
	will-change: transform;
}

.home-hero__slide {
	flex: 0 0 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.home-hero__overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	padding: 80px 80px 20px 80px;
	pointer-events: none;
}

.home-hero__overlay .home-label {
	color: #b0151e;
	opacity: 1;
}

.home-hero__subtitle {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 19px;
	line-height: 1.5;
	color: #ffffff;
	font-weight: 300;
	max-width: 620px;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.home-hero__logo {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(48px, 8vw, 96px);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.02em;
	color: #ffffff;
	margin: 12px 0 6px 0;
	text-shadow: 0 2px 16px rgba(0,0,0,0.35);
}
.home-hero__subtitle {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 19px;
	line-height: 1.5;
	color: #ffffff;
	font-weight: 300;
	max-width: 620px;
	margin: 0;
	text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.home-hero__h1 {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #ffffff;
	margin: 8px 0 0 0;
}

/* ==========================================================================
   3. ИНТРО (01 / О проекте)
   ========================================================================== */
.home-intro {
	width: 950px;
	max-width: 100%;
	margin: 80px auto 0 auto;
	padding: 0 40px;
}

.home-intro__body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.85;
	color: #2a2a2a;
	max-width: 720px;
}

.home-intro__body p {
	margin-bottom: 22px;
}

.home-intro__body p:last-child {
	margin-bottom: 0;
}

/* Буквица — первая буква первого абзаца */
.home-intro__body p:first-child::first-letter {
	font-family: 'Montserrat', sans-serif;
	font-size: 64px;
	font-weight: 200;
	line-height: 0.85;
	color: #1a1a1a;
	float: left;
	margin: 6px 12px 0 0;
	letter-spacing: -0.03em;
}

/* ==========================================================================
   4. ЦИФРЫ (70 / 360 / 2014)
   ========================================================================== */
.home-numbers {
	width: 950px;
	max-width: 100%;
	margin: 100px auto;
	padding: 0 40px;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 40px;
	text-align: center;
}

.home-number {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.home-number__value {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(56px, 9vw, 104px);
	font-weight: 200;
	line-height: 1;
	letter-spacing: -0.03em;
	color: #1a1a1a;
	margin-bottom: 16px;
}

.home-number__label {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: #b0151e;
	line-height: 1.6;
	max-width: 180px;
}

/* ==========================================================================
   5. ПЛИТКИ 
   ========================================================================== */
.home-tiles-wrap {
	   width: 950px;
	   max-width: 100%;
	   margin: 0 auto 100px auto;
	   padding: 0 40px;
	   display: grid;
	   grid-template-columns: repeat(4, 1fr);
	   background: #ffffff;
	   overflow: hidden;
   }
   
   .home-tile {
	   padding: 40px 28px 64px 28px;
	   text-decoration: none;
	   color: #1a1a1a;
	   display: flex;
	   flex-direction: column;
	   position: relative;
	   transition: opacity 0.3s ease;
	   min-height: 250px;
	   border-right: 1px solid rgba(0,0,0,0.06);
   }
   
   .home-tile:last-child {
	   border-right: none;
   }
   .home-tile {
	   background: #ffffff;
	   padding: 40px 28px 64px 28px;
	   text-decoration: none;
	   color: #1a1a1a;
	   display: flex;
	   flex-direction: column;
	   position: relative;
	   transition: opacity 0.3s ease;
	   min-height: 250px;
   }

.home-tile:hover {
	opacity: 0.75;
}

.home-tile__num {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.25em;
	color: #b0151e;
	margin-bottom: 32px;
}

.home-tile__title {
	font-family: 'Montserrat', sans-serif;
	font-size: 22px;
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.01em;
	color: #1a1a1a;
	margin: 0 0 16px 0;
}

.home-tile__text {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 15px;
	line-height: 1.6;
	color: #5b5b5b;
	margin: 0;
}
.home-tile__arrow {
	position: absolute;
	bottom: 28px;
	right: 28px;
	width: 28px;
	height: 8px;
	color: #b0151e;
	transition: transform 0.3s ease;
}

.home-tile:hover .home-tile__arrow {
	transform: translateX(6px);
}

/* ==========================================================================
   6. СЛАЙДЕР-2 (съёмки)
   ========================================================================== */
/* Родитель для sticky-слайдера */
   .home-sticky-block {
	   position: relative;
	   width: 100%;
   }
   

	   .home-shoots {
		   position: sticky;
		   top: 45px;
		   z-index: 10;
		   width: 950px;
		   max-width: 100%;
		   margin: 0 auto;
		   padding: 16px 40px;
		   background: #f2f0ed;
	   }
   }
   
   /* Очень маленькие — обычный скролл */
   @media (max-width: 479px) {
	   .home-shoots {
		   width: 950px;
		   max-width: 100%;
		   margin: 0 auto 48px auto;
		   padding: 0 20px;
	   }
   }

.home-shoots__viewport {
	overflow: hidden;
	width: 100%;
	aspect-ratio: 2 / 1;
	height: auto;
	background: #f2f0ed;
}

.home-shoots__inner {
	display: flex;
	height: 100%;
	transition: transform 0.9s cubic-bezier(0.65, 0.05, 0.36, 1);
	will-change: transform;
}

.home-shoots__slide {
	flex: 0 0 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
}

.home-shoots__caption {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: #8a8a8a;
	text-align: center;
	padding: 24px 0 0 0;
}

/* ==========================================================================
   7. ЦИТАТА
   ========================================================================== */
.home-quote {
	   width: 950px;
	   max-width: 100%;
	   margin: 100px auto;
	   padding: 0 40px;
	   text-align: center;
   }
   
   .home-quote__text {
	   font-family: 'Montserrat', sans-serif;
	   font-size: clamp(22px, 3vw, 36px);
	   font-weight: 200;
	   line-height: 1.35;
	   letter-spacing: -0.01em;
	   color: #1a1a1a;
	   max-width: 720px;
	   margin: 0 auto 20px auto;
   }
   
   .home-quote__author {
	   font-family: 'Montserrat', sans-serif;
	   font-size: 11px;
	   font-weight: 500;
	   text-transform: uppercase;
	   letter-spacing: 0.25em;
	   color: #b0151e;
	   margin: 0 0 32px 0;
   }
   .home-quote__link {
	   display: inline-flex;
	   align-items: center;
	   gap: 10px;
	   font-family: 'Montserrat', sans-serif;
	   font-size: 11px;
	   font-weight: 500;
	   text-transform: uppercase;
	   letter-spacing: 0.2em;
	   color: #1a1a1a;
	   text-decoration: none;
	   transition: opacity 0.2s ease;
   }
   
   .home-quote__link:hover {
	   opacity: 0.6;
   }
   
   .home-quote__link-arrow {
	   width: 28px;
	   height: 8px;
	   color: #b0151e;
	   transition: transform 0.3s ease;
   }
   
   .home-quote__link:hover .home-quote__link-arrow {
	   transform: translateX(6px);
   }
   
   .home-quote__link {
	   display: inline-block;
	   font-family: 'Montserrat', sans-serif;
	   font-size: 11px;
	   font-weight: 500;
	   text-transform: uppercase;
	   letter-spacing: 0.2em;
	   color: #1a1a1a;
	   text-decoration: none;
	   border-bottom: 1px solid #b0151e;
	   padding-bottom: 4px;
	   transition: opacity 0.2s ease;
   }
   
   .home-quote__link:hover {
	   opacity: 0.6;
   }
     
   @media (max-width: 768px) {
	   .home-quote__text {
		   margin-bottom: 16px;
	   }
	   .home-quote__author {
		   margin-bottom: 24px;
	   }
   }

/* ==========================================================================
   8. ИНФО-БЛОК (02 / Как арендовать)
   ========================================================================== */
.home-info {
	width: 950px;
	max-width: 100%;
	margin: 0 auto 100px auto;
	padding: 0 40px;
}

.home-info__body {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 17px;
	line-height: 1.85;
	color: #2a2a2a;
	max-width: 720px;
}
.home-info__body a {
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid #b0151e;
	padding-bottom: 1px;
	transition: opacity 0.2s ease, color 0.2s ease;
}

.home-info__body a:hover {
	color: #b0151e;
	opacity: 0.85;
}
.home-info__body p {
	margin-bottom: 22px;
}

.home-info__body p:last-child {
	margin-bottom: 0;
}

/* ==========================================================================
   9. ГАЛЕРЕЯ
   ========================================================================== */
.home-gallery {
	width: 950px;
	max-width: 100%;
	margin: 0 auto 100px auto;
	padding: 0 40px;
}

.home-gallery__label {
	display: block;
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.25em;
	color: #b0151e;
	margin-bottom: 20px;
}

.home-gallery__title {
	font-family: 'Montserrat', sans-serif;
	font-size: 32px;
	font-weight: 300;
	line-height: 1.2;
	color: #1a1a1a;
	margin: 0 0 40px 0;
	max-width: 640px;
}

.home-gallery__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}
.home-gallery__item {
	background: #ffffff;
	padding: 10px;
	display: flex;
	flex-direction: column;
	height: 100%;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 1.7s cubic-bezier(0.36, 1, 0.3, 1),
				transform 1.7s cubic-bezier(0.56, 1, 0.3, 1);
}
.home-hero {
	position: relative;
	width: 950px;
	max-width: 100%;
	margin: 0 auto;
	will-change: opacity, transform;
	transition: opacity 0.25s ease-out, transform 0.5s ease-out;
}

.home-gallery__item.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.home-gallery__item a {
	display: block;
	overflow: hidden;
}

.home-gallery__item img {
	width: 100%;
	height: auto;
	display: block;
	transition: opacity 0.3s ease;
}

.home-gallery__item a:hover img {
	opacity: 0.85;
}

.home-gallery__caption {
	font-family: 'Montserrat', sans-serif;
	font-size: 11px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #8a8a8a;
	margin-top: auto;
	padding-top: 12px;
	text-align: center;
	line-height: 1.4;
}

.home-gallery__caption-line2 {
	display: inline-block;
	margin-top: 4px;  /* ← отступ между line1 и line2 */
}

.home-gallery__more {
	text-align: center;
	margin-top: 60px;
}

.home-gallery__all {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.2em;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid #b0151e;
	padding-bottom: 6px;
	transition: opacity 0.2s ease;
}

.home-gallery__all:hover {
	opacity: 0.6;
}

.home-gallery__all-arrow {
	width: 28px;
	height: 8px;
	color: #b0151e;
	transition: transform 0.3s ease;
}

.home-gallery__all:hover .home-gallery__all-arrow {
	transform: translateX(6px);
}
.home-gallery__caption-line2 {
	font-size: 9px;
	letter-spacing: 0.15em;
	color: #8a8a8a;
}

@media (max-width: 768px) {
	.home-gallery__more {
		margin-top: 40px;
	}
}

/* ==========================================================================
   10. CTA
   ========================================================================== */
.home-cta {
	width: 950px;
	max-width: 100%;
	margin: 0 auto 40px auto;
	padding: 0 40px;
	text-align: center;
}

.home-cta__title {
	font-family: 'Montserrat', sans-serif;
	font-size: clamp(28px, 4vw, 44px);
	font-weight: 200;
	line-height: 1.2;
	letter-spacing: -0.02em;
	color: #1a1a1a;
	margin: 0 0 16px 0;
}

.home-cta__phone {
	color: #1a1a1a;
	text-decoration: none;
	transition: color 0.2s ease;
}

.home-cta__phone:hover {
	color: #b0151e;
}

.home-cta__text {
	font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 16px;
	color: #8a8a8a;
	margin: 0 0 32px 0;
}

.home-cta__tg {
	color: #b0151e;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.home-cta__tg:hover {
	opacity: 0.6;
}

.home-cta__buttons {
	display: flex;
	justify-content: center;
	gap: 16px;
	flex-wrap: wrap;
}

.home-btn {
	display: inline-block;
	font-family: 'Montserrat', sans-serif;
	font-size: 12px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	padding: 18px 36px;
	text-decoration: none;
	transition: all 0.2s ease;
}

.home-btn--primary {
	background: #b0151e;
	color: #ffffff;
}

.home-btn--primary:hover {
	opacity: 0.85;
}

.home-btn--outline {
	background: transparent;
	color: #b0151e;
	border: 1px solid #b0151e;
}

.home-btn--outline:hover {
	background: #b0151e;
	color: #ffffff;
}

/* ==========================================================================
   11. АДАПТИВ
   ========================================================================== */
@media (max-width: 768px) {
	.home-hero {
		margin-top: 0px;
	}
	.home-hero__overlay {
		padding: 20px 24px;
	}
	.home-hero__subtitle {
		font-size: clamp(14px, 3.5vw, 16px);
	}

	.home-intro,
	.home-numbers,
	.home-tiles,
	.home-shoots,
	.home-quote,
	.home-info,
	.home-gallery,
	.home-cta {
		padding: 0 20px;
	}

	.home-intro,
	.home-shoots,
	.home-quote,
	.home-info,
	.home-gallery {
		margin-bottom: 64px;
	}

	.home-numbers {
		margin: 64px auto;
		grid-template-columns: 1fr;
		gap: 48px;
	}

	.home-tiles-wrap {
		grid-template-columns: repeat(2, 1fr);
		margin-bottom: 64px;
	}
	
.home-tile {
		border-right: none;
		border-bottom: 1px solid rgba(0,0,0,0.06);
		padding: 28px 20px 80px 20px;
		min-height: auto;
	}
	
	.home-tile__arrow {
		position: absolute;
		bottom: 10px;
		right: 15px;
	}
	
	.home-tile__text {
		margin-bottom: 0;
	}
	
	/* Убираем нижнюю границу у последних двух плиток (второй ряд) */
	.home-tile:nth-last-child(-n+2) {
		border-bottom: none;
	}
	.home-tile {
		padding: 28px 20px;
	}

	.home-tile__title {
		font-size: 18px;
	}

	.home-tile__text {
		font-size: 13px;
	}

	.home-quote__text {
		font-size: clamp(20px, 5.5vw, 28px);
	}

	.home-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	.home-gallery__item {
		padding: 7px;
	}

	.home-gallery__caption {
		font-size: 9px;
	}

	.home-cta__buttons {
		gap: 10px;
	}

	.home-btn {
		padding: 14px 24px;
		font-size: 11px;
	}
}

@media (max-width: 480px) {
	.home-tiles {
		grid-template-columns: 1fr;
	}
	.home-gallery__grid {
		grid-template-columns: 1fr;
	}
}
/* ==========================================================================
   БОЛЬШИЕ ТЕЛЕФОНЫ (iPhone Pro Max, 400px+)
   ========================================================================== */
@media (min-width: 400px) and (max-width: 768px) {
	/* Галерея — 2 колонки */
	.home-gallery__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 12px;
	}

	/* Плитки — 2 колонки */
	.home-tiles {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}

	/* Цифры — в одну строку */
	.home-numbers {
		grid-template-columns: repeat(3, 1fr);
		gap: 16px;
	}

	.home-number__value {
		font-size: clamp(48px, 12vw, 72px);
	}

	.home-number__label {
		font-size: 11px;
		letter-spacing: 0.2em;
	}
}
/* CTA в интро — ссылка на каталог */
.home-intro__cta {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: 'Montserrat', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.15em;
	color: #1a1a1a;
	text-decoration: none;
	border-bottom: 1px solid #b0151e;
	padding-bottom: 6px;
	margin: 12px 0 24px 0;
	transition: color 0.2s ease, opacity 0.2s ease;
}

.home-intro__cta:hover {
	color: #b0151e;
	opacity: 0.85;
}

.home-intro__cta-arrow {
	width: 28px;
	height: 8px;
	color: #b0151e;
	transition: transform 0.3s ease;
}

.home-intro__cta:hover .home-intro__cta-arrow {
	transform: translateX(6px);
}