/* =========================================================================
   Discount Upholstery — services.css
   Страница «Services»: hero как на Gallery, но вместо кнопки — Description.
   Подключается автоматически по слагу (assets/css/services.css).
   ========================================================================= */

/* -------------------------------------------------------------------------
   Прозрачная шапка поверх hero (как на главной) + убираем отступ под шапкой
   ------------------------------------------------------------------------- */
body.dz-hero-page .site-main {
	padding-top: 0;
}

body.dz-hero-page .site-header:not(.is-scrolled) {
	background-color: transparent;
	box-shadow: none;
}

/* -------------------------------------------------------------------------
   Hero (eyebrow / title / script / description)
   ------------------------------------------------------------------------- */
.services-page .hero {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 760px;
	color: #fff;
	overflow: hidden;
}

@media (min-width: 1920px) {
	.services-page .hero {
		min-height: 864px;
	}
}

@media (max-width: 768px) {
	.services-page .hero {
		min-height: 620px;
	}
}

@media (max-width: 480px) {
	.services-page .hero {
		min-height: 540px;
	}
}

.services-page .hero__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.services-page .hero__bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.services-page .hero__overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0.5) 0%,
		rgba(0, 0, 0, 0.12) 42%,
		rgba(0, 0, 0, 0.15) 70%,
		rgba(0, 0, 0, 0.55) 100%
	);
}

.services-page .hero__inner {
	position: relative;
	z-index: 2;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding-block: 190px 90px;
	text-align: center;
}

@media (max-width: 1024px) {
	.services-page .hero__inner {
		padding-block: 150px 64px;
	}
}

@media (max-width: 600px) {
	.services-page .hero__inner {
		padding-block: 120px 48px;
	}
}

.services-page .hero__content {
	display: flex;
	flex-direction: column;
	align-items: center;
}

.services-page .hero__eyebrow {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 20px;
	line-height: 1;
	letter-spacing: 0.3em;
	text-transform: uppercase;
	text-indent: 0.3em;
	opacity: 0.85;
}

.services-page .hero__title {
	margin: 0.4em 0 0;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 120px;
	line-height: 1;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #fff;
}

.services-page .hero__script {
	display: block;
	margin-top: -0.32em;
	font-family: var(--font-script);
	font-weight: 400;
	font-size: 140px;
	line-height: 1;
	color: #e4d1ba;
}

/* Адаптив типографики hero */
@media (max-width: 1200px) {
	.services-page .hero__title { font-size: 92px; }
	.services-page .hero__script { font-size: 108px; }
}

@media (max-width: 768px) {
	.services-page .hero__eyebrow { font-size: 16px; }
	.services-page .hero__title { font-size: 64px; }
	.services-page .hero__script { font-size: 76px; }
}

@media (max-width: 480px) {
	.services-page .hero__eyebrow { font-size: 13px; }
	.services-page .hero__title { font-size: 44px; }
	.services-page .hero__script { font-size: 64px; }
}

/* Описание вместо кнопки */
.services-page .hero__desc {
	max-width: 800px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	text-align: center;
	color: #fff;
}

.services-page .hero__desc :where(p) {
	margin: 0 0 12px;
}

.services-page .hero__desc :where(p):last-child {
	margin-bottom: 0;
}

/* Контент страницы после hero (если есть) */
.services-page__body {
	padding-block: 96px;
}

/* -------------------------------------------------------------------------
   Designer & Performance Fabrics (текст слева, картинка справа)
   ------------------------------------------------------------------------- */
.fabrics {
	padding-block: 96px;
}

.fabrics__inner {
	display: flex;
	align-items: center;
	gap: 91px;
}

.fabrics__text {
	flex: 1 1 0;
	min-width: 0;
}

.fabrics__title {
	margin: 0 0 42px;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 50px;
	line-height: 1;
	letter-spacing: 0;
	color: var(--color-text);
}

.fabrics__desc {
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 24px;
	letter-spacing: 0;
	color: #4a4a4a;
}

.fabrics__desc :where(p) {
	margin: 0 0 16px;
}

.fabrics__desc :where(p):last-child {
	margin-bottom: 0;
}

/* Картинка: 548×548 на 1440, ступенчато крупнее на больших экранах */
.fabrics__media {
	flex: 0 0 auto;
	width: 548px;
	aspect-ratio: 1 / 1;
}

@media (min-width: 1600px) {
	.fabrics__media {
		width: 620px;
	}
}

@media (min-width: 1920px) {
	.fabrics__media {
		width: 720px;
	}
}

@media (max-width: 1024px) {
	.fabrics__media {
		width: 440px;
	}
}

.fabrics__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* --- Адаптив --- */
@media (max-width: 768px) {
	.fabrics__inner {
		flex-direction: column;
		align-items: flex-start;
		gap: 32px;
	}

	.fabrics__title {
		margin-bottom: 24px;
		font-size: 40px;
	}

	.fabrics__text {
		order: 2;
	}

	.fabrics__media {
		order: 1;
		width: 100%;
		max-width: 548px;
		align-self: center;
	}
}

@media (max-width: 480px) {
	.fabrics__title {
		font-size: 32px;
	}
}

/* -------------------------------------------------------------------------
   Fabric partners — лента логотипов
   ------------------------------------------------------------------------- */
.partners__heading {
	margin: 0 0 48px;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 42px;
	line-height: 1.1;
	text-align: center;
	color: var(--color-text);
}

.partners__grid {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 48px 64px;
}

.partners__item {
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.partners__logo {
	display: block;
	width: auto;
	height: auto;
	max-height: 60px;
	max-width: 220px;
	object-fit: contain;
}

a.partners__item {
	transition: opacity 0.2s ease, transform 0.2s ease;
}

a.partners__item:hover {
	opacity: 0.7;
	transform: translateY(-2px);
}

/* --- Адаптив partners --- */
@media (max-width: 1024px) {
	.partners__grid {
		gap: 36px 48px;
	}

	.partners__logo {
		max-height: 52px;
		max-width: 190px;
	}

	.partners__heading {
		margin-bottom: 36px;
		font-size: 34px;
	}
}

@media (max-width: 600px) {
	.partners {
		padding-block: 48px;
	}

	.partners__grid {
		gap: 28px 40px;
	}

	.partners__logo {
		max-height: 42px;
		max-width: 140px;
	}

	.partners__heading {
		font-size: 28px;
	}
}

/* -------------------------------------------------------------------------
   Process — «From Frame to Finish» (картинка слева, шаги справа)
   ------------------------------------------------------------------------- */
.process {
	padding-block: 96px;
}

.process__inner {
	display: flex;
	align-items: flex-start;
	gap: 108px;
}

.process__media {
	position: relative;
	flex: 0 0 auto;
	width: 500px;
	aspect-ratio: 1 / 1;
}

.process__photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Лейбл-водяной знак в левом нижнем углу */
.process__label {
	position: absolute;
	left: -31px;
	bottom: -105px;
	width: 55%;
	max-width: 300px;
	height: auto;
	pointer-events: none;
}

.process__body {
	flex: 1 1 0;
	min-width: 0;
}

.process__heading {
	margin: 0 0 52px;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 50px;
	line-height: 1;
	letter-spacing: 0;
	color: #464460;
}

.process__steps {
	display: flex;
	flex-direction: column;
	gap: 35px;
}

.process__step {
	display: grid;
	grid-template-columns: 56px 1fr;
	gap: 24px;
	align-items: start;
}

.process__icon {
	flex: 0 0 auto;
}

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

.process__step-head {
	display: flex;
	align-items: baseline;
	gap: 8px;
	margin-bottom: 6px;
}

.process__num {
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 48px;
	line-height: 0;
	letter-spacing: 0;
	color: #c09570;
}

.process__step-title {
	margin: 0;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 32px;
	line-height: 1.1;
	letter-spacing: 0;
	color: #464460;
}

.process__step-desc {
	margin: 0;
	font-family: var(--font-body);
	font-weight: 400;
	font-size: 16px;
	line-height: 21px;
	letter-spacing: 0;
	color: #464460;
}

/* --- Адаптив process --- */
/* На больших экранах картинка растёт по ширине, как в .fabrics__media */
@media (min-width: 1600px) {
	.process__media {
		width: 580px;
	}
}

@media (min-width: 1920px) {
	.process__media {
		width: 660px;
	}
}

@media (max-width: 1024px) {
	.process {
		padding-block: 64px;
	}

	.process__inner {
		flex-direction: column;
		align-items: stretch;
		gap: 48px;
	}

	.process__media {
		width: 100%;
		max-width: 560px;
	}

	.process__heading {
		margin-bottom: 32px;
		font-size: 40px;
	}
}

@media (max-width: 600px) {
	.process__step {
		grid-template-columns: 44px 1fr;
		gap: 16px;
	}

	.process__icon img {
		max-height: 44px;
	}

	.process__step-head {
		gap: 10px;
	}

	.process__num {
		font-size: 38px;
	}

	.process__step-title {
		font-size: 26px;
	}

	.process__heading {
		font-size: 32px;
	}
}

@media (max-width: 400px) {
	.process__num {
		font-size: 32px;
	}

	.process__step-title {
		font-size: 23px;
	}
}

/* =========================================================================
   REVIEWS (репитер review) — слайдер отзывов (перенесён с главной)
   ========================================================================= */
.reviews {
	padding-block: 56px;
}

.reviews__container {
	display: flex;
	align-items: center;
	gap: 28px;
}

/* Стрелки слайдера (по бокам карточки) */
.reviews__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 56px;
	height: 56px;
	color: var(--color-text);
	background: transparent;
	border: 1px solid var(--color-border);
	border-radius: 9999px;
	transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.reviews__arrow:hover:not(:disabled) {
	background: var(--color-text);
	border-color: var(--color-text);
	color: #fff;
}

.reviews__arrow:disabled {
	opacity: 0.35;
	cursor: default;
}

/* Карточка */
.reviews__card {
	flex: 1 1 auto;
	min-width: 0;
	padding: 72px 64px;
	background: #ece4df; /* тёплый бежевый — можно поменять под бренд */
	border-radius: 28px;
	text-align: center;
}

/* Статичный заголовок (не перелистывается) */
.reviews__heading {
	margin: 0 0 36px;
	font-family: var(--font-display);
	font-weight: 500;
	font-size: 42px;
	line-height: 1.15;
	letter-spacing: 0;
	color: #C09570; /* каштаново-золотой акцент — можно поменять под бренд */
}

/* Слайдер */
.reviews__viewport {
	overflow: hidden;
}

.reviews__track {
	display: flex;
	transition: transform 0.45s ease;
}

.reviews__slide {
	flex: 0 0 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.reviews__text {
	max-width: 100%;
	margin: 0 auto;
	font-family: var(--font-display);
	font-weight: 400;
	font-size: 30px;
	line-height: 1.55;
	color: #464460;
}

.reviews__author {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 32px;
}

.reviews__avatar {
	width: 56px;
	height: 56px;
	border-radius: 9999px;
	object-fit: cover;
}

.reviews__name {
	margin-top: 16px;
	font-family: var(--font-body);
	font-weight: 600;
	font-size: 16px;
	line-height: 24px;
	color: #464460;
}

/* --- Адаптив reviews --- */
@media (max-width: 1024px) {
	.reviews__container {
		gap: 16px;
	}

	.reviews__arrow {
		width: 48px;
		height: 48px;
	}
}

@media (max-width: 768px) {
	.reviews__card {
		padding: 40px 24px;
	}

	.reviews__heading {
		font-size: 32px;
	}

	.reviews__text {
		font-size: 24px;
	}
}

@media (max-width: 600px) {
	/* стрелки уходят под карточку */
	.reviews__container {
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px;
	}

	.reviews__card {
		order: 1;
		flex-basis: 100%;
		border-radius: 20px;
	}

	.reviews__arrow--prev {
		order: 2;
	}

	.reviews__arrow--next {
		order: 3;
	}

	.reviews__heading {
		margin-bottom: 24px;
	}

	.reviews__author {
		margin-top: 24px;
	}
}

@media (max-width: 480px) {
	.reviews__heading {
		font-size: 30px;
	}

	.reviews__text {
		font-size: 20px;
	}
}
