*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}
html {
	overflow-x: hidden;
}
body {
	font-family: 'Montserrat' !important;
	background: #1b3026;
	color: #ebe5d7;
	overflow-x: hidden;
	overflow-x: clip; /* clip не создаёт скролл-контейнер, sticky-шапка работает */
}
* {
	-webkit-tap-highlight-color: transparent;
}
button {
	font: inherit; /* САМОЕ ГЛАВНОЕ — наследует ВСЁ: size, family, weight, line-height и т.д. */
	letter-spacing: inherit; /* если у родителя есть letter-spacing */
	text-transform: inherit; /* если у родителя uppercase/lowercase */
}
h1 {
	font-weight: 500;
	font-size: 64px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--main-white);
}
h2 {
	font-weight: 500;
	font-size: 48px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--main-white);
}
h3 {
	font-weight: 500;
	font-size: 32px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--main-white);
}
h4 {
	font-weight: 500;
	font-size: 20px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--main-white);
}
.text-mini {
	color: var(--accent-yellow);
	font-size: 12px;
	font-weight: 400;
	line-height: 140%;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
}
.text-small {
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0;
}
a {
	text-decoration: none;
	color: var(--main-white);
}
::-webkit-scrollbar {
	width: 0;
}

:root {
	--main-white: #ebe5d7;
	--main-green: #1c3026;
	--accent-blue: #5f6e7f;
	--accent-yellow: #ffeda9;
	--accent-brown: #694434;
	--real-vh: 1vh;
}

/* Прелоадер */
#preloader {
	position: fixed;
	inset: 0;
	background: var(--main-green);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: opacity 0.7s ease 0.4s;
}

#preloader.hidden {
	opacity: 0;
	visibility: hidden;
}

/* Логотип в центре */
#flyingLogo {
	width: 140px;
	height: 140px;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10000;
	pointer-events: none;
	filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
	animation: levitate 3.5s infinite ease-in-out;
	transition:
		top 1s cubic-bezier(0.16, 1, 0.3, 1),
		left 1s cubic-bezier(0.16, 1, 0.3, 1),
		width 1s cubic-bezier(0.16, 1, 0.3, 1),
		height 1s cubic-bezier(0.16, 1, 0.3, 1),
		transform 1s cubic-bezier(0.16, 1, 0.3, 1),
		opacity 0.3s ease;
}

/* Парящий эффект */
@keyframes levitate {
	0%,
	100% {
		transform: translate(-50%, -50%) translateY(0);
	}
	50% {
		transform: translate(-50%, -50%) translateY(-16px);
	}
}

/* Когда летит — убираем парение */
#flyingLogo.fly {
	animation: none !important;
}

/* ХЕДЕР — ЛИПКИЙ, СПЛОШНОЙ ФОН #1B3026 (T-шапка, вариант B).
   sticky: шапка занимает место в потоке, контент не уходит под неё,
   hero сдвинут вниз на высоту шапки. */
.main-header {
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	padding: 32px 40px;
	z-index: 1000;
	background: #1B3026 !important;
	pointer-events: none; /* чтобы не мешал скроллу */
}
.main-header * {
	pointer-events: auto;
} /* но кнопки кликабельны */

@media (max-width: 768px) {
	.main-header {
		padding: 2px 16px; /* T-31: шапка 60 px на телефоне (56 + 2 + 2) */
	}
}

/* Твой хедер — без изменений */
.header-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 56px;
	position: relative;
}
.logo {
	position: absolute;
	left: 50%;
	top: 50%;
	transform: translate(-50%, -50%);
}
.logo img {
	height: 46px;
}
@media (max-width: 768px) {
	.logo img {
		height: 40px;
	}
}

.header-btn {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--main-white);
	text-decoration: none;
}
@media (max-width: 768px) {
	.header-btn {
		font-size: 14px;
		gap: 8px;
	}
}

/* Квадратики — твой код */
.squares {
	position: relative;
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}
.sq {
	position: absolute;
	width: 5px;
	height: 5px;
	background: var(--main-white);
	border-radius: 0.5px;
	transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}
.menu-squares .sq:nth-child(1) {
	top: -1px;
	left: 0;
}
.menu-squares .sq:nth-child(2) {
	top: -1px;
	left: 10px;
}
.menu-squares .sq:nth-child(3) {
	top: 9px;
	left: 0;
}
.menu-squares .sq:nth-child(4) {
	top: 9px;
	left: 10px;
}
.menu-btn[data-state='open'] .sq {
	top: 1.5px !important;
	left: 2px !important;
	width: 10px !important;
	height: 10px !important;
}
.record-squares .sq:nth-child(1) {
	top: 0;
	left: 5px;
}
.record-squares .sq:nth-child(2) {
	top: 10px;
	left: 5px;
}
.record-btn[data-state='open'] .sq {
	top: 2px !important;
	left: 4.5px !important;
	width: 5px !important;
	height: 10px !important;
}

.hero-wrapper {
	position: relative;
	min-height: calc(var(--real-vh) * 100);
	overflow: visible;
	background: #000;
}

/* ===========================
   SVG (pinned)
=========================== */
/* Надпись PRIVE Car Club: по умолчанию статична (T-31), прокручивается со страницей.
   Чтобы вернуть закрепление — добавить класс is-pinned к .hero-svg в home.php. */
.hero-svg {
	position: relative;
	z-index: 5;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #000;
}

.hero-svg.is-pinned {
	position: sticky;
	top: 200px;
}

.hero-svg img {
	width: 100%;
	height: auto;
	aspect-ratio: 1920 / 322;
	pointer-events: none;
}

/* ===========================
   VIDEO CONTAINER
=========================== */
.hero-video-container {
	position: relative;
	margin-top: 0; /* T-31: блок H1 идёт сразу за видео */
	z-index: 10;
	pointer-events: none;
	height: calc(var(--real-vh) * 100);
	overflow: visible;
}

/* ===========================
   VIDEO — только transform + will-change
=========================== */
.hero-video {
	width: calc(100% - 80px);
	height: 100%;
	max-width: none;

	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%) scale(1);

	object-fit: cover;
	object-position: center;

	transition:
		transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
		border-radius 0.65s cubic-bezier(0.16, 1, 0.3, 1);
	will-change: transform;
}

/* ===========================
   FULLSCREEN — просто увеличиваем масштаб
=========================== */
.hero-video.fullscreen {
	transform: translate(-50%, -50%) scale(1.2);
	border-radius: 0;
}

/* ===========================
   SMALL — уменьшаем и немного поднимаем
=========================== */
.hero-video.small {
	transform: translate(-50%, -50%) scale(0.85) translateY(-20vh);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
/* ===========================
   HERO OVERLAY TEXT
=========================== */
.hero-video-container {
	position: relative;
}

.hero-video-container::after {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
	z-index: 4;
	pointer-events: none;
}

.hero-overlay-text {
	position: relative; /* T-31: в потоке, сразу за видео */
	margin: 32px auto 0;
	z-index: 15;
	width: 90%;
	max-width: 900px;
	text-align: center;
}

.hero-overlay-text__title {
	font-size: 48px;
	font-weight: 500;
	line-height: 130%;
	letter-spacing: 0;
	text-transform: uppercase;
	color: #ebe5d7;
}

/* ===========================
   NEXT SECTION
=========================== */
.next-section {
	position: relative;
	z-index: 30;
	background: #fff;
	padding: 120px 20px;
}

/* ===========================
   ADAPTIVE (TABLETS ≤ 1024px)
=========================== */
@media (max-width: 1024px) {
	.hero-svg {
		padding-top: 10px;
	}
	.hero-svg.is-pinned {
		position: sticky;
		top: 80px; /* уменьшенный pinned offset */
	}

	.hero-video-container {
		margin-top: 0; /* T-31: без пустого отступа */
	}

	.hero-overlay-text {
		width: 85%;
	}

	.hero-overlay-text__title {
		font-size: 32px;
	}

	.hero-video {
		width: calc(100% - 40px);
		border-radius: 10px;
	}

	.hero-video.fullscreen {
		width: 100%;
		height: calc(var(--real-vh) * 100);
		border-radius: 0;
	}

	.hero-video.small {
		width: calc(100% - 40px);
		height: auto;
	}
}
/* ===========================
   ADAPTIVE (SMALL TABLETS ≤ 640px)
=========================== */
@media (max-width: 640px) {
	.hero-wrapper {
		min-height: calc(var(--real-vh) * 130);
	}
	.hero-svg {
		z-index: 20;
	}
	.hero-svg.is-pinned {
		position: sticky;
		top: 80px;
	}
	.hero-svg img {
		max-width: 500px;
	}

	.hero-video-container {
		margin-top: 0; /* T-31: без пустого отступа */
		height: calc(var(--real-vh) * 60);
		/* Растягиваем контейнер до краёв экрана, ломая родительский padding */
		width: 100vw;
		position: relative;
		left: 50%;
		transform: translateX(-50%);
	}

	.hero-overlay-text {
		margin-top: 24px;
		width: 90%;
	}

	.hero-overlay-text__title {
		font-size: 20px;
		line-height: 140%;
	}

	.hero-video {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	.hero-video-inner {
		width: 100%;
		height: 100%;
	}
	.hero-video.fullscreen {
		width: 100%;
		height: 100%;
		border-radius: 0;
	}
	.hero-video.small {
		width: 100%;
		height: 100%;
	}
}

/* Review-slider */
.review-slider {
	min-height: 105vh;
	position: relative;
	overflow: hidden;
	padding: 0 60px;

	/* теперь слайды позиционируются одинаково */
}

/* Каждый слайд занимает весь контейнер и позиционируется абсолютом */
.slide {
	position: absolute;
	inset: 0; /* top:0; right:0; bottom:0; left:0; */
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none; /* блокируем клики у неактивных слайдов */
	transition:
		transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1),
		opacity 0.6s;
	z-index: 1;
	will-change: transform, opacity;
	opacity: 0;
	transform: translateX(100%); /* все справа от экрана по умолчанию */
}

/* активный слайд */
.slide.active-slide {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	z-index: 3;
}

/* предыдущий слайд при анимации влево */
.slide.to-left {
	transform: translateX(-100%);
	opacity: 0;
}

/* следующий — вправо */
.slide.to-right {
	transform: translateX(100%);
	opacity: 0;
}

/* Центральный контент */
.center-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	z-index: 4;
}

/* Главное видео */
.main-video-wrap {
	width: 162px;
	height: 228px;
	overflow: hidden;
	transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.slide.open-video .main-video-wrap {
	width: 736px;
	height: 438px;
}

.main-video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* ЗАМЕНИ ТОЛЬКО ЭТОТ БЛОК — ВСЁ ОСТАЛЬНОЕ ОСТАВЬ КАК ЕСТЬ */
.toggle-btn {
	margin-top: 24px;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	position: relative;
	display: inline-block;
	overflow: hidden;
	color: var(--accent-yellow);
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	text-transform: uppercase;
	height: 1.4em; /* фиксируем высоту строки */
}

.toggle-inner {
	display: flex;
	width: 200%; /* важно! */
	transition: transform 0.7s cubic-bezier(0.76, 0, 0.24, 1);
}

.toggle-label {
	width: 50%; /* каждый занимает ровно половину */
	text-align: center;
	flex-shrink: 0;
}

/* Когда видео открыто — сдвигаем влево на 50% ширины всей дорожки */
.slide.open-video .toggle-inner {
	transform: translateX(-50%);
}

/* Заголовок */
.title {
	font-size: 64px;
	font-weight: 500;
	line-height: 1.1;
	text-transform: uppercase;
	margin: 48px 0 32px;
	transition: all 1s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.slide.open-video .title {
	font-size: 24px;
	margin: 24px 0 20px;
}

/* Подробнее */
.more-btn {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--accent-yellow);
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	text-transform: uppercase;
	text-decoration: none;
	margin-top: 20px;
}
.more-btn img {
	width: 40px;
}

/* Боковые видео — остаются прижатыми */
.side-video {
	position: absolute;
	bottom: 120px;
	width: 162px;
	height: 228px;
	overflow: hidden;
	pointer-events: none;
	z-index: 2;
}
.side-video video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.side-video.left {
	left: 60px;
}
.side-video.right {
	right: 60px;
}

/* Стрелки */
.arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 60px;
	height: 60px;
	background: none;
	border: none;
	border-radius: 50%;
	cursor: pointer;
	z-index: 10;
}
.arrow img {
	width: 60px;
}
.prev {
	left: 40px;
}
.next {
	right: 40px;
}
.next img {
	transform: rotate(180deg);
}

/* ===================== УСЛУГИ — ФИНАЛЬНО ===================== */
.services-section {
	position: relative;
	overflow: hidden;
	margin-top: 80px;
	padding-bottom: 80px;
}

.closing-line {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 100%;
	height: auto;
	pointer-events: none;
}

.services-grid {
	display: grid;
	gap: 40px;
	padding: 0 40px;
	max-width: 2080px;
	margin: 0 auto;

	/* 3 резиновые карточки, если экран ≥1440px */
	grid-template-columns: repeat(3, minmax(480px, 640px));
	justify-content: center;
	grid-auto-rows: 440px;
}
.closing-line-wrap {
	margin-bottom: 138px;
}
/* 2 колонки, если <1440px */
@media (max-width: 1439px) {
	.services-grid {
		grid-template-columns: repeat(2, minmax(380px, 1fr));
		grid-auto-rows: calc(440px * 0.9); /* чуть ниже */
	}
}

/* 1 колонка */
@media (max-width: 900px) {
	.services-grid {
		grid-template-columns: 1fr;
		grid-auto-rows: 220px; /* вот это задаёт высоту самой строки */
		padding: 0 20px;
		gap: 30px;
	}
}

/* Карточка тянется */
.service-card {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	cursor: pointer;
	display: block;
}

.service-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* Изменено: теперь видео всегда видно */
	opacity: 1;
	/* Изменено: убираем начальное увеличение, чтобы оно не дергалось, 
     либо оставляем scale(1.1) если хотите эффект приближения при ховере */
	transform: scale(1);
	transition:
		opacity 0.8s cubic-bezier(0.22, 0.61, 0.36, 1),
		transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.service-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4); /* Затемнение 30% */
	z-index: 1;
	transition: background 0.5s ease;
}
.service-card:hover::after {
	background: rgba(0, 0, 0, 0.6); /* При наведении чуть темнее для акцента */
}
.service-card:hover .service-video {
	transform: scale(1.05);
}

/* Контент — центрируем изначально */
.service-content {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center; /* Центр по умолчанию */
	align-items: center;
	padding: 40px;
	box-sizing: border-box;
	z-index: 2;
	/* Убираем лишние top/left анимации, оставляем только transition */
	transition: all 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Заголовок с "степенью" */
.service-title {
	font-size: 32px;
	font-weight: 500;
	text-transform: uppercase;
	color: var(--main-white);
	margin: 0;
	line-height: 1.1;
	letter-spacing: 0;
	/* Добавьте это: */
	transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}
.service-card:hover .service-title {
	transform: translateY(
		-60px
	); /* Поднимаем заголовок, освобождая место кнопке */
}
.service-count {
	font-size: 14px;
	vertical-align: super; /* Главная магия — цифра как степень */
	line-height: 1.4;
	margin-left: 4px;
	font-weight: 400;
	font-style: normal;
}

/* Кнопка — всегда внизу карточки */
.service-more {
	position: absolute;
	bottom: 80px;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 140%;
	color: var(--accent-yellow);
	opacity: 0;
	transform: translateX(-50%) translateY(20px);
	transition: all 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
	z-index: 3;
	pointer-events: all;
}
.social-media-container {
	padding: 100px 40px;
	position: relative;
	z-index: 20;
}
.social-media-container h2 {
	text-align: center;
}
.our-works-pin-wrapper.home .our-works--pinned {
	padding-bottom: 0;
}
.social-media-wrapper {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 4rem;
	margin-top: 60px;
}
.service-card:hover .service-more {
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}

.more-icon {
	width: 40px;
	height: 40px;
}
.pin-wrapper {
	position: relative;
	z-index: 1;
	height: calc(var(--real-vh) * 210);
}

.pinned-section {
	position: sticky !important;
	top: 0;
	height: calc(var(--real-vh) * 100);
	z-index: 1;
}

.overlap-section {
	position: relative;
	margin-top: calc(var(--real-vh) * -100);
	z-index: 2;
	background-color: var(--main-green);
}
.pinned-section.about_us {
	padding-top: 0;
	margin-top: 120px;
}
.pinned-section.usluga {
	height: calc(var(--real-vh) * 50) !important;
}
/* НАШИ РАБОТЫ */
.our-works {
	position: relative;
	padding: 100px 40px; /* боковые отступы 40px */
	overflow: hidden;
}

.our-works__line {
	width: 100%;
	margin-bottom: 60px;
	display: block;
}

.our-works__header {
	text-align: left; /* всё влево */
	padding: 0 40px;
}

.our-works__title {
	font-size: 64px;
	font-weight: 500;
	color: var(--main-white);
	line-height: 1.1;
	letter-spacing: 0;
	text-transform: uppercase;
	margin: 0 0 80px;
	margin-top: 120px;
}

.our-works__nav {
	display: flex;
}

.our-works__nav-btn {
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
}

.our-works__nav-btn img {
	width: 70px;
	height: 70px;
	display: block;
}

.our-works__nav-btn--next img {
	transform: rotate(180deg);
}

/* Нижняя часть — фон только на нижние 50% высоты секции */
.our-works__bottom {
	position: relative;
	margin-top: 80px;
	padding-bottom: 40px;
	/* Убираем фиксированную высоту и паддинги */
}

/* Контент (слайдер и кнопка) — поверх фона */
.works-slider,
.our-works__all {
	position: relative;
	z-index: 2;
}
.works-slider__link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 10;
	display: block;
}
.works-filters,
.works-filters * {
	position: relative;
	z-index: 50;
}

.works-slider__item {
	position: relative;
}
.works-slider .swiper {
	overflow: hidden;
}
.works-slider .swiper-slide {
	flex-shrink: 0; /* критически важно для плавного маятника */
}
.works-slider .swiper-slide {
	width: 25%;
}
.works-slider__item {
	position: relative;
	display: block;
	cursor: pointer;
	overflow: hidden;
}
/* Затемнение при ховере */
.works-slider__item::before {
	content: '';
	position: absolute;
	inset: 0;
	background: #1b302640;
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 2;
	pointer-events: none;
}

/* Иконка — обычный <img>, но стилизуем как квадратную кнопку */
.works-slider__icon {
	position: absolute;
	top: 24px;
	right: 24px;
	width: 24px;
	height: 24px;
	background-color: #1b3026;
	padding: 8px;
	box-sizing: content-box; /* 24 + 16 = 40x40 */
	opacity: 0;
	transition: opacity 0.35s ease;
	z-index: 3;
	pointer-events: none;
	/* Без border-radius — как и просил */
}
/* Показываем оверлей и иконку */
.works-slider__item:hover::before {
	opacity: 1;
}

.works-slider__item:hover .works-slider__icon {
	opacity: 1;
}

/* УБИРАЕМ ЛЮБОЕ подпрыгивание карточки */
.works-slider__item:hover {
	transform: none !important;
}

/* Убираем дрожание маятника — критически важно! */
.works-slider .swiper-slide {
	flex-shrink: 0; /* это лечит 99% проблем с "тряской" при reverse autoplay */
}
.works-slider__img {
	width: 430px;
	height: 312px;
	object-fit: cover;
	display: block;
}

.works-slider__caption {
	margin-top: 20px;
	color: var(--main-white);
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	line-height: 1.4;
	text-align: left;
}

.our-works__all {
	margin-top: 60px;
	display: inline-flex;
	align-items: center;
	gap: 16px;
	background: none;
	border: none;
	color: var(--accent-yellow);
	font-size: 12px;
	font-weight: 400;
	line-height: 140%;
	letter-spacing: 0;
	text-transform: uppercase;
	cursor: pointer;
}

/* Адаптив */
@media (max-width: 1439px) {
	.works-slider .swiper-slide {
		width: 33.333%;
	}
}
@media (max-width: 1023px) {
	.works-slider .swiper-slide {
		width: 50%;
	}
}
@media (max-width: 767px) {
	.works-slider .swiper-slide {
		width: 100%;
	}

	.our-works__title {
		font-size: 36px;
	}
}

/* Footer */
.footer {
	padding: 40px;
	padding-top: 0;
}
.footer-line img {
	width: 100%;
	margin-bottom: 120px;
}
.footer-nav {
	color: var(--main-white);
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	font-family: 'Arial', sans-serif;
	font-size: 15px;
	line-height: 1.8;
}
.phone-form__wrapper {
	position: relative;
	max-width: 312px;
	height: 52px;
	margin-top: 45px;
	margin-bottom: 60px;
}

.phone-form__input {
	width: 100%;
	height: 100%;
	padding: 0 90px 0 24px;
	background: #ffeda9;
	border: none;
	font-size: 18px;
	font-weight: 500;
	color: #000;
	outline: none;
	transition: background 0.4s ease;
}
.phone-form__input:focus {
	background: rgba(
		255,
		237,
		169,
		0.85
	); /* 65% — очень мягко и дорого выглядит */
	/* или 0.75, 0.8 — подбери под вкус */
}
.phone-form__input::placeholder {
	color: #1b3026;
	font-size: 14px;
	font-weight: 400;
	line-height: 140%;
	letter-spacing: 0;
	font-family: 'Montserrat';
}

.phone-form__submit {
	position: absolute;
	top: 6px;
	right: 6px;
	width: 40px;
	height: 40px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.phone-form__submit svg {
	width: 24px;
	height: 24px;
}

.phone-form__note {
	margin-top: 20px;
	font-size: 13px;
	color: #6a8a6a;
}

.phone-form__note a {
	color: #a0b5a0;
	text-decoration: underline;
}
.footer-nav__left {
	min-width: 300px;
	display: flex;
	flex-direction: column;
	gap: 40px;
}
.footer-nav__contacts-item {
	margin-bottom: 30px;
}
.footer-nav__label {
	color: var(--main-white);
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 140%;
	margin-bottom: 5px;
}

.footer-nav__link {
	color: var(--main-white);
	font-family: 'Montserrat';
	text-decoration: none;
	font-size: 20px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 110%;
	transition: all 0.4s ease;
}

.footer-nav__nav-links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.footer-nav__column .footer-nav__link:last-child {
	margin-bottom: 0;
}
.footer-nav__nav-link {
	color: var(--main-white);
	text-decoration: none;
	font-size: 16px;
	font-weight: 500;
	letter-spacing: 0;
	line-height: 100%;
	text-transform: uppercase;
	transition: all 0.4s ease;
}
.footer-nav__nav-link:hover,
.footer-nav__link:hover {
	color: var(--accent-yellow);
}
/* Часы работы — текст, не ссылка: без подсветки */
span.footer-nav__link:hover {
	color: var(--main-white);
}

.footer-nav__right {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 50px 40px;
	max-width: 810px;
}

.footer-nav__title {
	font-size: 16px;
	margin-bottom: 36px;
	font-weight: 500;
	line-height: 100%;
	letter-spacing: 0;
	text-transform: uppercase;
}
.footer-nav__column {
	display: flex;
	flex-direction: column;
	max-width: 270px;
}
.footer-nav__right .footer-nav__link {
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0;
	font-weight: 400;
	margin-bottom: 12px;
	transition: all 0.4s ease;
}
/* Мобильная адаптация */
@media (max-width: 1024px) {
	.footer-nav__right {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.footer-nav {
		flex-direction: column;
	}
	.footer-nav__right {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
	}
	.footer-nav__nav-links {
		margin-bottom: 60px;
	}
}

@media (max-width: 480px) {
	.footer-nav__right {
		grid-template-columns: 1fr;
	}
}
/* === STICKY SCROLL ДЛЯ "НАШИ РАБОТЫ" === */
/* Не трогаем твои текущие стили — только добавляем нужное */

/* 1. Делаем sticky-длительность */
.our-works-pin-wrapper {
	position: relative;
}

/* Прилипающая секция */
.our-works--pinned {
	position: sticky;
	top: 0;
	overflow: hidden;
	z-index: 1;
	padding-top: 0;
}

/* Футер перекрывает сверху */
.overlap-footer {
	position: relative;
	z-index: 10;
	background-color: var(--main-green);
}

.footer-bottom-line {
	margin-top: 120px;
}
.footer-bottom-line .footer-line img {
	margin-bottom: 20px;
}
.footer-bottom-line-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 15px;
}
.footer-bottom-line-text p {
	max-width: 920px;
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	letter-spacing: 0;
	color: var(--main-white);
	margin-bottom: 6px;
}
.footer-bottom-line-nav-right {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.footer-bottom-line-nav-right a {
	text-decoration: underline;
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	letter-spacing: 0;
	color: var(--main-white);
	text-transform: uppercase;
}

/* Menu */
.bottom-menu {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	height: calc(100dvh); /* важно: dvh — чтобы на мобилках не прыгало */
	background: var(--main-green);
	color: #e6e6e6;
	transform: translateY(100%);
	transition: transform 0.55s cubic-bezier(0.19, 1, 0.22, 1);
	z-index: 998;
	border-radius: 32px 32px 0 0;
	padding: 24px 40px 40px;
	box-sizing: border-box;
	overflow-y: auto;

	display: flex;
	flex-direction: column;
}
.bottom-menu.active {
	transform: translateY(0);
}

/* Полоска-ручка сверху по центру */
.menu-line {
	width: 100%;
	padding-top: 110px;
	margin-bottom: 20px;
}
/* ВСЁ содержимое прижимаем к низу */
.bottom-menu-inner {
	margin-top: auto; /* КЛЮЧЕВОЕ СВОЙСТВО! */
	display: flex;
	gap: 80px;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
}
/* Левое большое меню */
.bottom-menu__nav {
	font-size: 48px;
	line-height: 1.2;
	font-weight: 300;
}

.bottom-menu__nav a {
	display: block;
	text-transform: uppercase;
	text-decoration: none;
	margin-bottom: 40px;
	font-weight: 500;
	font-size: 64px;
	transition: all 0.4s ease;
}
.bottom-menu__nav a:last-child {
	margin-bottom: 0;
}
.bottom-menu__nav a:hover {
	color: var(--accent-yellow);
}
.pin-wrapper.what_is_it_wrapper {
	height: calc(var(--real-vh) * 170);
}
.pinned-section.what_is_it-images {
	height: calc(var(--real-vh) * 70);
}
/* Колонки справа */
.bottom-menu__columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 48px 32px;
	font-size: 16px;
}
.record-menu-inner {
	margin-top: 140px;
}
.record-title {
	max-width: 510px;
	margin: 0 auto;
	font-weight: 500;
	font-size: 64px;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	text-align: center;
}
.record-form .phone-form {
	justify-content: center;
	align-items: center;
	display: flex;
	flex-direction: column;
	margin-top: 66px;
}
.record-form .phone-form .phone-form__wrapper {
	margin: 0;
}
.record-contacts {
	margin-top: 60px;
	display: flex;
	justify-content: center;
	gap: 36px;
	align-items: center;
}
.contact-item {
	display: flex;
	flex-direction: column;
	gap: 5px;
}
.contact-item .label {
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	letter-spacing: 0;
	text-transform: uppercase;
}
.contact-item .value {
	font-size: 20px;
	font-weight: 500;
	line-height: 110%;
	letter-spacing: 0;
	text-transform: uppercase;
	transition: all 0.4s ease;
}

.contact-item .value:hover {
	color: var(--accent-yellow);
}
div.contact-item .value:hover {
	color: inherit;
}

/* Uslugi */
.uslugi-hero {
	margin-top: 120px;
	position: relative;
	overflow: hidden;
}
.uslugi-hero_wrapper {
	padding: 140px 40px;
	position: relative; /* добавь только эту строку */
	z-index: 2; /* чтобы контент был выше фона */
}
.uslugi-hero_wrapper.var2 {
	padding: 220px 40px;
}
/* --- Декоративная линия (Если это одна линия) --- */
/* Если line.svg - это две линии, как на исходном изображении, 
   лучше убрать псевдоэлементы и стилизовать сам img */
.uslugi-hero > img {
	width: 100%;
}

/* --- Хлебные крошки --- */

.breadcrumbs {
	display: flex;
	align-items: center;
	font-size: 12px; /* Уменьшаем размер на мобильных */
	line-height: 140%;
	margin-bottom: 30px;
	flex-wrap: wrap;
}

.breadcrumbs a,
.breadcrumbs span {
	color: var(--main-white);
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap; /* Чтобы не переносились на маленьких экранах */
}
.breadcrumbs a {
	color: var(--accent-yellow);
}
.breadcrumbs .separator {
	display: block;
	width: 5px;
	height: 5px;
	background-color: var(--main-white);
	margin: 0 8px; /* Немного уменьшаем отступ */
}
.pricelist .sale {
	font-size: 20px;
	margin-bottom: 50px;
}
.pricelist h2 {
	margin-bottom: 40px !important;
}
/* --- Фоновый текст "УСЛУГИ" --- */
.background-text {
	position: absolute;
	top: 60%;
	left: 50%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	line-height: 110%;
	font-size: 300px;
	font-weight: 500;
	font-family: 'Montserrat', sans-serif;
	text-transform: uppercase;
	z-index: 0; /* это основное */
	pointer-events: none;
}
.background-text.var2 {
	font-size: 185px;
}
.background-text.case {
	left: 75%;
}
.background-text.about {
	width: 100%;
	left: 70%;
}
.stroke-layer {
	position: absolute;
	inset: 0;
	color: transparent;
	-webkit-text-stroke: var(--stroke) var(--color);
	text-stroke: var(--stroke) var(--color);
}

.fill-layer {
	position: relative;
	color: var(--main-green); /* точный цвет твоего фона */
	padding: 0 var(--stroke); /* важно! чтобы не обрезало края */
	clip-path: inset(0 round calc(var(--stroke) - 1px));
	/* или можно просто: clip-path: inset(0); и background = цвет фона */
}
.uslugi .services-grid {
	/* Занимает всю высоту своего родителя (100vh) */
	height: 100%;
}
.uslugi .service-card {
	overflow: hidden;
}
.sticky-scroll-wrapper {
	position: relative;
}

.sticky-scroll-target {
	position: sticky;
	top: 0;
	/* Используем --real-vh для точной высоты экрана */
	height: calc(var(--real-vh) * 100);
	overflow: visible;
}

/* Базовые стили (Desktop) */
.usluga-main {
	position: relative;
	z-index: 1;
	width: 100%;
}

.usluga-img {
	margin-top: 40px;
	padding: 0 40px; /* Отступы для десктопа */
	position: relative;
	overflow: hidden;
	display: flex; /* Помогает центрировать контент */
	align-items: center;
	justify-content: center;
}

.usluga-img img {
	width: 100%;
	height: 80vh; /* На десктопе картинка занимает 80% высоты экрана */
	max-height: 1020px;
	object-fit: cover;
	display: block;
}

/* Затемнение */
.usluga-img::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	left: 40px;
	right: 40px;
	background: rgba(0, 0, 0, 0.6);
	z-index: 2;
	pointer-events: none;
	transition: all 0.3s ease; /* Плавный переход при смене брейкпоинтов */
}

/* Контент */
.usluga-img_content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 10;
	pointer-events: none;
	width: calc(100% - 120px); /* Больше запас по бокам для текста */
	max-width: 1200px;
	text-align: center;
}

/* Заголовок с использованием clamp для плавной адаптации */
.usluga-img_content .page-title {
	color: #fff;
	/* Мин 28px, оптимально 5vw, макс 64px */
	font-size: clamp(28px, 6vw, 64px);
	text-transform: uppercase;
	margin: 0;
	line-height: 1.1;
}

.hero-subtitle {
	margin: 15px auto 0;
	font-size: clamp(14px, 2vw, 18px) !important;
	color: rgba(255, 255, 255, 0.8);
	line-height: 1.4;
	max-width: 800px;
}

/* --- АДАПТИВ --- */

/* Планшеты (до 1024px) */
@media (max-width: 1024px) {
	.usluga-img {
		padding: 0 24px;
	}
	.usluga-img::after {
		left: 24px;
		right: 24px;
	}
	.usluga-img img {
		height: 60vh; /* Уменьшаем высоту на планшетах */
	}
}

/* Мобильные телефоны (до 768px) */
@media (max-width: 768px) {
	.usluga-img {
		padding: 0 16px; /* Минимальные отступы по краям */
	}
	.usluga-img::after {
		left: 16px;
		right: 16px;
	}
	.usluga-img img {
		height: 50vh; /* На телефонах картинка еще компактнее */
		min-height: 400px; /* Но не меньше 400px, чтобы текст влез */
	}
	.usluga-img_content {
		width: calc(100% - 60px);
	}

	.hero-subtitle {
		margin-top: 10px;
		line-height: 1.3;
		opacity: 0.9; /* На маленьких экранах лучше сделать текст четче */
	}
}

/* Маленькие смартфоны (до 480px) */
@media (max-width: 480px) {
	.usluga-img .page-title {
		letter-spacing: -0.5px; /* Немного сужаем буквы для длинных слов */
	}
	.usluga-img img {
		height: 45vh;
	}
}

.what_we_doing {
	padding: 120px 40px;
}
.what_we_doing-line {
	margin-bottom: 120px;
}
.what_we_doing-line img {
	width: 100%;
}
.what_we_doing-services-container {
	position: relative;
	max-width: 1920px;
	margin: 0 auto;
	padding-bottom: 40px;
}
.section-wrapper {
	position: relative;
}
.section-pinned {
	position: sticky;
	top: 0;
	z-index: 1;
	overflow: hidden; /* Важно: чтобы контент не вылезал */
}
.section-overlap {
	position: relative;
	z-index: 2; /* Она выше предыдущей */
	background: var(--main-green); /* Обязательно фон, иначе будет просвечивать */
	min-height: 100vh;
}
/* Ваши "ножницы" для линии (теперь без скруглений) */
.ins-bg-overflow-clipping {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden; /* Режет линию строго по границам этой секции */
	z-index: 1;
	pointer-events: none;
}

/* Сама линия */
.dotted-path-container {
	position: absolute;
	top: -127px; /* Часть линии будет "торчать" над секцией и обрежется клиппером */
	left: 60%;
	transform: translateX(-10%) rotate(-4.05deg);
	z-index: 1;
}
/* === Адаптивная сетка карточек === */
.what_we_doing-cards-wrapper {
	margin-top: 80px;
	position: relative;
	z-index: 2;
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
}
.what_we_doing-card {
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.what_we_doing-card__image {
	width: 100%;
	height: 312px;
	object-fit: cover;
	object-position: center;
	flex-shrink: 0;
	display: block;
}

.what_we_doing-card__content {
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.what_we_doing-card__title {
	font-size: 32px;
	font-weight: 500;
	line-height: 110%;
	text-transform: uppercase;
	margin: 20px 0;
}

.what_we_doing-card__text {
	font-size: 14px;
	line-height: 140%;
	font-weight: 400;
	margin-bottom: 20px;
}

.what_we_doing-card__button {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--accent-yellow);
	font-size: 12px;
	font-weight: 400;
	text-decoration: none;
	line-height: 140%;
	text-transform: uppercase;
	transition: gap 0.3s ease;
}

.what_we_doing-card__button:hover {
	gap: 20px;
}
@media (min-width: 1441px) {
	.what_we_doing-cards-wrapper {
		justify-content: flex-start;
	}

	.what_we_doing-card {
		flex: 0 0 calc(33.333% - 20px); /* 3 карточки с учётом gap 30px */
		max-width: calc(33.333% - 20px);
	}

	.what_we_doing-card__image {
		aspect-ratio: 587 / 312;
		height: auto;
	}
}

/* ================================================== */
/* 990px – 1440px — 2 карточки, центрируются */
/* ================================================== */
@media (max-width: 1440px) and (min-width: 990px) {
	.what_we_doing-cards-wrapper {
		justify-content: center;
	}

	.what_we_doing-card {
		flex: 0 0 calc(50% - 15px); /* 2 карточки */
		max-width: calc(50% - 15px);
	}

	.what_we_doing-card__image {
		aspect-ratio: 587 / 312;
		height: auto;
	}
}

/* ================================================== */
/* ≤ 990px — 1 карточка, по центру */
/* ================================================== */
@media (max-width: 990px) {
	.what_we_doing-cards-wrapper {
		justify-content: center;
		padding: 0 20px;
	}

	.what_we_doing-card {
		flex: 0 0 100%;
		max-width: 587px;
		width: 100%;
		margin: 0 auto;
	}

	.what_we_doing-card__image {
		aspect-ratio: 587 / 312;
		height: auto;
	}
}
.what_is_it {
	padding: 0 40px;
}
.what_is_it.usluga {
	padding-top: 140px;
}
.what_is_it-title {
	margin: 40px auto;
	text-align: center;
	max-width: 940px;
}
.what_is_it-text {
	max-width: 980px;
	text-align: center;
	margin: 0 auto;
	font-size: 14px;
	line-height: 140%;
	font-weight: 400;
}
/* Общие стили для контейнера */
.what_is_it-images {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	/* Убираем align-items: flex-start; для центрирования на мобилке */
	/* Но сохраняем его на десктопе, чтобы карточки были вверху */
	align-items: flex-start;
	margin-top: 80px;
	padding: 0 20px;
}
.why_us-card .text-small p {
	text-transform: uppercase;
}
/* Все изображения адаптивные */
.what_is_it-images img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
/* Cases */
.cases-section {
	padding: 120px 40px;
	max-width: 1920px;
	margin: 0 auto;
	padding-top: 0px;
}
.slider-page {
	min-width: 100%;
	flex-shrink: 0;
	padding: 40px 0;
}
.subfilters-set {
	display: none;
}
.subfilters-set.active {
	display: block;
}

.subfilters-wrapper {
	margin: 40px 0 60px;
	overflow: hidden;
	transition: opacity 0.4s ease;
}
.cards-grid {
	display: grid;
	grid-template-columns: repeat(4, 430px);
	gap: 40px 40px;
	justify-content: center;
	max-width: 1880px;
	margin: 0 auto;
}
@media (max-width: 1920px) {
	.cards-grid {
		grid-template-columns: repeat(4, 430px);
		gap: 40px;
	}
}
@media (max-width: 1800px) {
	.cards-grid {
		grid-template-columns: repeat(3, 430px);
		gap: 40px;
	}
}
@media (max-width: 1400px) {
	.cards-grid {
		grid-template-columns: repeat(2, 430px);
		gap: 40px;
	}
}
@media (max-width: 1000px) {
	.cards-grid {
		grid-template-columns: 430px;
		gap: 60px;
	}
}
#pagesContainer {
	position: relative;
}

.cases-page {
	display: none;
	opacity: 0;
	transition: opacity 0.5s ease;
	width: 100%;
}
.slider-nav {
	margin-top: 40px;
}
.cases-page.active {
	display: block;
	opacity: 1;
}
.cases-page .card img {
	width: 430px;
	height: 323px; /* 4:3 от 430px */
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cases-page .card:hover img {
	transform: scale(1.04);
}
.usluga-img p {
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	color: var(--main-white);
	margin-top: 120px;
}

.cases-page .card-text {
	margin-top: 20px;
	font-size: 15px;
	line-height: 1.5;
	color: var(--main-white);
}
.cases-tabs {
	display: flex;
	gap: 16px;
	margin-bottom: 32px;
	justify-content: left;
	flex-wrap: wrap;
}
.cases-tab {
	position: relative;
	padding: 12px 24px;
	background: transparent;
	border: 2px solid var(--main-white);
	color: var(--main-white);
	font-weight: 500;
	font-size: 16px;
	text-transform: uppercase;
	cursor: pointer;
	overflow: hidden;
	transition: color 0.4s ease;
	display: flex;
	gap: 24px;
	z-index: 1;
}

/* Жёлтая подложка, которая «заезжает» слева */
.cases-tab::before {
	content: '';
	position: absolute;
	inset: 0;
	background: var(--accent-yellow);
	transform: translateX(-100%);
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
	z-index: -1;
}

/* При активной кнопке */
.cases-tab.active::before {
	transform: translateX(0);
}

.cases-tab.active {
	color: var(--main-green);
	border-color: var(--accent-yellow);
}

/* Стрелка вниз */
.cases-tab span {
	font-family: 'Manrope', sans-serif;
	font-size: 16px;
	transition: transform 0.35s ease;
}

.cases-tab.active span {
	transform: rotate(180deg);
}

.subfilter-btn {
	flex-shrink: 0;
	padding: 10px 20px;
	background: transparent;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--main-white);
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
	margin-bottom: 5px;
}
.subfilters-container.case {
	margin-top: 30px;
}
.subfilters-container.case .subfilter-btn:hover {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: var(--main-white);
	cursor: default;
}
.subfilter-btn:hover,
.subfilter-btn.active {
	background: var(--accent-yellow);
	color: var(--main-green);
	border-color: var(--accent-yellow);
}
.gallery-case {
	display: flex;
	flex-wrap: nowrap;
	align-items: flex-start; /* Выравнивание по верхнему краю */
	width: 100%;
	height: auto; /* Контейнер примет высоту контента */
	overflow-x: auto;
	cursor: grab; /* Курсор в виде руки */
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	gap: 10px; /* Расстояние между фото */
	padding: 20px 0; /* Небольшой отступ сверху/снизу, если нужно */
	/* Убираем выделение контента синим цветом */
	-webkit-user-select: none; /* Safari */
	-ms-user-select: none; /* IE/Edge */
	user-select: none; /* Стандарт */

	/* Убираем стандартную подсветку тапа на мобильных (синий квадрат при клике) */
	-webkit-tap-highlight-color: transparent;
}

.gallery-case:active {
	cursor: grabbing; /* Курсор при нажатии */
}

.gallery-case::-webkit-scrollbar {
	display: none;
}

.slide-case {
	flex: 0 0 auto;
	height: auto;
}

.gallery-case img {
	width: 384px;
	height: 420px;
	display: block;
	object-fit: cover;
	pointer-events: none; /* Важно: чтобы картинки не мешали перетаскиванию */
	-webkit-user-drag: none;
}
.usluga-img.case::after {
	display: none;
}
@media (max-width: 990px) {
	.slide-case {
		flex: 0 0 384px;
		width: 384px;
		scroll-snap-align: start;
		display: flex;
		flex-direction: column;
		justify-content: center;
		flex-shrink: 0; /* не позволяем сжиматься */
		overflow: hidden;
	}

	.slide-case img {
		width: 384px;
		height: 420px;
		flex: 0 0 420px;
		object-fit: cover;
	}
}
.what_is_it-contact {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 70px;
}
.what_is_it-contact h2 {
	max-width: 900px;
	text-align: center;
}
.slider-nav-btn {
	background-color: transparent;
	border: none;
	border: 2px solid var(--main-white);
	color: var(--main-white);
	font-size: 12px;
	font-weight: 400;
	font-family: 'Montserrat', sans-serif !important;
	padding: 10px 16px;
	border-radius: 50%;
	max-width: 40px;
	width: 100%;
	cursor: pointer;
	margin-right: 12px;
}
.slider-nav-btn.active {
	background-color: var(--accent-yellow);
	color: var(--main-green);
}
/* Case */
.page-title.case {
	max-width: 1120px;
}
.usluga-img.case {
	padding: 0;
}
.our-works.case {
	padding-bottom: 0;
}
.our-works__header-wrapper {
	display: flex;
	justify-content: space-between;
}
@media (min-width: 1440px) {
	.what_is_it-images .img1 {
		/* calc(44.09% - (20px * (3-1) / 3)) */
		width: calc(
			44.09% - 13.33px
		); /* 13.33px - это часть зазора, которую надо вычесть */
		aspect-ratio: 774 / 583;
	}

	/* 2-е изображение: ~20.79% ширины */
	.what_is_it-images .img2 {
		width: calc(20.79% - 13.33px);
		aspect-ratio: 366 / 612;
	}

	/* 3-е изображение: ~35.11% ширины */
	.what_is_it-images .img3 {
		width: calc(35.11% - 13.33px);
		aspect-ratio: 620 / 467;
	}
}

/* ===== 2 изображения в ряд 990–1439px (Исправлена высота img1) ===== */
@media (max-width: 1439px) and (min-width: 990px) {
	.what_is_it-images {
		/* Центрируем элементы во второй строке */
		justify-content: center;
		align-items: flex-start;
	}

	/* 1-е изображение (img1) */
	.img1 {
		flex: 0 0 100%;
		aspect-ratio: 774 / 583;
		/* НОВОЕ: Ограничиваем максимальный размер img1 до 900px, 
           чтобы высота не превышала ~670px */
		max-width: 900px;
		margin: 0 auto 20px auto; /* Центрируем и добавляем отступ снизу */
	}

	/* 2-е и 3-е изображения (на второй строке) */
	.img2 {
		/* Сохраняем логику, чтобы img2 не растягивался на 50% и оставался пропорционально узким */
		max-width: 366px;
		flex: 0 0 auto;
		width: 100%;
		aspect-ratio: 366 / 612;
		margin-right: 20px;
		margin-left: 0;
	}

	.img3 {
		/* Занимает оставшееся место рядом с img2 */
		flex: 1 1 300px;
		aspect-ratio: 620 / 467;
		margin-left: 0;
		margin-right: 0;
	}
}
/* ===== 1 изображение в столбец ≤990px (Исправлена высота img2) ===== */
@media (max-width: 990px) {
	.what_is_it-images {
		gap: 16px;
		margin-top: 30px;
	}
	/* Общие правила для всех div: */
	.what_is_it-images div {
		flex: 0 0 100%;
		max-width: 600px;
	}

	.img1 {
		aspect-ratio: 774 / 583;
	}

	/* 2-е изображение (img2) */
	.img2 {
		max-width: 366px;
		aspect-ratio: 366 / 450;
	}

	.img3 {
		aspect-ratio: 620 / 467;
	}
	.cases-section {
		padding: 30px 16px;
	}
}
@media (max-width: 640px) {
	.img1,
	.usluga-img.case {
		aspect-ratio: 370 / 197;
	}
}
.why_us {
	padding: 120px 40px;
}
.why_us.usluga {
	padding-bottom: 0;
}
.why_us-line img {
	width: 100%;

	margin-bottom: 120px;
}
.why_us-cards {
	margin: 120px 0;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	gap: 80px;
}
.why_us-card {
	max-width: 186px;
	width: 100%;
}
.why_us-card-number h1 {
	color: var(--accent-yellow);
	text-align: center;
}
.why_us-card-number {
	margin-bottom: 30px;
}
.why_us-card-title h5 {
	font-weight: 500;
	font-size: 16px;
	line-height: 100%;
	text-transform: uppercase;
	text-align: center;
}
.why_us-card .text-small {
	text-align: center;
	margin-top: 30px;
}
.why_us-img {
	max-width: 462px;
	height: 682px;
	margin: 0 auto;
}
.why_us-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.text-block {
	max-width: 1220px;
	margin: 80px auto;
}

.why_us_what_give h2 {
	text-align: center;
	margin: 120px 0;
}
.why_us_what_give-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 30px 0;
	border-bottom: 1px solid var(--main-white);
}
.why_us_button {
	margin-top: 120px;
	display: flex;
	flex-direction: column;
	gap: 40px;
	justify-content: center;
	align-items: center;
}
.why_us_button .phone-form__wrapper {
	margin: 0;
}
/* Contacts */
.contacts {
	padding: 20px 40px;
}
.contacts-button {
	display: flex;
	justify-content: right;
	margin-bottom: 40px;
}
.contacts-button a {
	border: 1px solid var(--main-white);
	padding: 12px 24px;
	font-size: 12px;
	font-weight: 400;
	text-transform: uppercase;
	line-height: 140%;
}
.contacts-button a span {
	margin-left: 24px;
	font-weight: 600;
	font-size: 14px;
	margin-bottom: 4px;
}
.contacts-wrapper {
	display: flex;
	gap: 20px;
	justify-content: space-between;
	align-items: flex-start;
}

#map-container {
	max-width: 900px;
	width: 100%;
	height: 475px;
	/* Применяем серый фильтр к контейнеру карты */
	filter: grayscale(100%);
}
.contact-form-wrapper {
	max-width: 900px;

	display: flex;
	gap: 40px;
	padding: 60px;
	background-color: var(--accent-yellow);
}

.contact-form__left {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.contact-form__right {
	flex: 1;
	background-color: var(--main-green);
	color: var(--accent-yellow);
	padding: 40px;
	display: flex;
	align-items: flex-start;
}
.contact-form__title {
	color: var(--main-green);
	margin-bottom: 75px;
}
.contact-form__input {
	width: 100%;
	padding: 20px 0;
	border: 1px solid var(--main-green);
	background: transparent;
	padding: 12px 16px;
	font-size: 16px;
	margin-bottom: 20px;
	color: var(--main-green);
	outline: none;
}

.contact-form__input::placeholder {
	color: var(--main-green);
	opacity: 0.7;
}

.contact-form__submit {
	padding: 6px;
	width: 100%;
	background: var(--main-green);
	color: #fff;
	font-size: 14px;
	font-weight: 400;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	line-height: 140%;
	letter-spacing: 0;
	padding-left: 16px;
}
.wpcf7 form.sent .wpcf7-response-output {
	background-color: var(--main-green) !important;
	border-color: var(--main-green) !important;
}
.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
	background-color: var(--accent-yellow) !important;
	border-color: var(--accent-yellow) !important;
	color: var(--main-green) !important;
}
.contact-form__submit-icon {
	width: 40px;
	height: 40px;
}
.why_us-img p {
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	margin-top: 40px;
}
.why_us_what_give p {
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	margin-top: 40px;
}

.why_us_what_give_mini_text {
	margin-top: 120px !important;
}
.why_us-text {
	font-weight: 400;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0%;
	text-align: center;
	vertical-align: middle;
	margin-top: 40px;
}
.pricelist {
	margin-bottom: 60px;
	padding: 0 40px;
}
/* usluga-pins */
.usluga-pins {
	padding: 60px 40px;
}
.our-works__line.usluga {
	margin-top: 80px !important;
}
.usluga-pins_wrapper {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.usluga-pin {
	max-width: 820px;
	width: 100%;
	border-bottom: 1px solid var(--main-white);
	padding-bottom: 140px;
}
.usluga-pin-item {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-top: 90px;
}
/* Правая часть */
.contact-form__contacts {
	width: 100%;
}

.contact-form__label {
	margin: 0 0 5px 0;
	font-size: 12px;
	text-transform: uppercase;
	opacity: 0.8;
}

.contact-form__link,
.contact-form__address {
	font-size: 24px;
	margin: 0 0 36px 0;
	display: block;
	color: var(--accent-yellow);
	text-decoration: none;
	transition: all 0.4s ease;
}
.contact-form__link:hover {
	color: var(--main-white);
}
.contact-form__address:last-child {
	font-size: 24px;
	margin-bottom: 0;
}

/* Без border-radius */
.contact-form__input,
.contact-form__submit,
.contact-form-section,
.contact-form-wrapper,
.contact-form__left,
.contact-form__right {
	border-radius: 0 !important;
}

/* Адаптив — на мобильных одна колонка */
@media (max-width: 1023px) {
	.contact-form-wrapper {
		flex-direction: column;
	}

	.contact-form__left {
		padding: 60px 40px;
	}

	.contact-form__title {
		font-size: 48px;
	}
}

@media (max-width: 767px) {
	.contact-form__title {
		font-size: 36px;
	}

	.contact-form__link,
	.contact-form__address {
		font-size: 20px;
	}
}

/* About_Us */
/* CSS (добавьте в ваш стиль) */
.about_us-images {
	padding: 40px;
	padding-top: 20px;
}
.about_us-video {
	padding: 40px;
	text-align: center;
	color: #e8e5d9;

	display: flex;
	align-items: center;
	justify-content: center;
}

.about_us-video__wrapper {
	margin: 0 auto;
}

.about_us-video__player {
	position: relative;
	display: inline-block;
	margin-bottom: 40px;
	cursor: pointer;
}

.about_us-video__video {
	width: 162px;
	height: 228px;
	object-fit: cover;
	margin: 0 auto;
	transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
	display: block;
}

.about_us-video__play-button {
	margin-top: 20px;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 1.8px;
	color: #b89f6f;
	transition: opacity 0.4s ease;
}
.our-works.case .our-works__bottom {
	margin-top: 0px;
}
.our-works.case .our-works__header {
	margin-bottom: 20px;
}
.about_us-video__title {
	transition: font-size 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* === Расширенное состояние === */
.about_us-video.expanded .about_us-video__video {
	width: 736px;
	height: 438px;
}

.about_us-video.expanded .about_us-video__play-button {
	opacity: 0;
	pointer-events: none;
}

.about_us-video.expanded .about_us-video__title {
	font-size: 23px;
}
/* УДАЛИ ВСЕ СТАРЫЕ стили кнопки и вставь только эти */
.about_us-video__button {
	margin-top: 24px;
	height: 24px;
	overflow: hidden;
	cursor: pointer;
	user-select: none;
}

.about_us-video__button-slider {
	display: flex;
	width: 200%; /* важно! */
	transform: translateX(0);
	transition: transform 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.about_us-video__button-label {
	width: 50%; /* каждая надпись занимает половину */
	text-align: center;
	font-size: 12px;
	font-weight: 400;
	font-style: normal;
	text-transform: uppercase;
	letter-spacing: 0;
	line-height: 140%;
	color: var(--accent-yellow);
	line-height: 24px;
}

/* Когда видео открыто — сдвигаем слайдер влево на 50% */
.about_us-video.expanded .about_us-video__button-slider {
	transform: translateX(-50%);
}
/* Адаптив */
@media (max-width: 768px) {
	.about_us-video {
		padding: 10px 20px;
		min-height: auto;
	}

	.about_us-video.expanded .about_us-video__video {
		width: 100%;
		height: auto;

		aspect-ratio: 736 / 438;
	}

	.about_us-video.expanded .about_us-video__title {
		font-size: 20px;
	}
}
.faq {
	margin-top: 60px;
}

.faq h2 {
	text-align: center;
}

.faq-block {
	color: var(--main-white);
	padding: 20px;
	max-width: 900px;
	margin: 0 auto;
	margin-top: 120px;
}

.faq-item {
	border-bottom: 1px solid var(--main-white);
	padding-bottom: 30px;
	margin-bottom: 30px;
	transition: all 0.4s ease;
}

.faq-question {
	cursor: pointer;
	font-size: 18px;
	margin: 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--main-white);
	transition: color 0.3s ease;
}

.faq-question-text {
	max-width: 450px;
}

.faq-item.active {
	border-bottom: 1px solid var(--accent-yellow);
}

.faq-item.active .faq-question {
	color: var(--accent-yellow);
	margin-bottom: 30px;
}

.faq-toggle {
	font-size: 24px;
	margin-left: 10px;
}

.faq-answer {
	display: grid; /* КЛЮЧЕВОЕ ДОБАВЛЕНИЕ */
	grid-template-rows: 0fr; /* Свернуто по умолчанию */
	transition:
		grid-template-rows 0.5s ease,
		padding 0.5s ease;
	overflow: hidden; /* На всякий случай */
	padding: 0;
	color: var(--main-white);
	font-size: 14px;
}

.faq-answer > div {
	min-height: 0; /* Обязательно для корректного сворачивания */
	overflow: hidden; /* Дополнительная страховка */
}

.faq-answer.open {
	grid-template-rows: 1fr; /* Развёрнуто — полная высота */
	padding: 10px 0 25px 0;
}
.what_we_doing {
	padding-top: 60px;
}
/* Adaptive */

@media (max-width: 1650px) {
	.background-text.var2 {
		font-size: 190px;
	}
	.contact-form-wrapper {
		padding: 60px 40px;
	}
	.contact-form__right {
		flex: 0;
	}
}
@media (max-width: 1400px) {
	.title,
	.social-media-container h2 {
		font-size: 58px;
	}
	.background-text.var2 {
		font-size: 160px;
	}
	.contacts-wrapper {
		display: block;
	}
	#map-container {
		margin: 0 auto;
		margin-top: 40px;
	}
	.contact-form-wrapper {
		padding: 60px;
		margin: 0 auto;
	}
	.contact-form__right {
		flex: 1;
	}
	.pricelist .sale {
		font-size: 18px;
	}
}
@media (max-width: 1270px) {
	.background-text {
		font-size: 250px;
	}
}
@media (max-width: 1220px) {
	.title,
	.social-media-container h2 {
		font-size: 48px;
	}
	.background-text.var2 {
		font-size: 140px;
	}
}
@media (max-width: 1140px) {
	.side-video {
		display: none;
	}
	.background-text {
		font-size: 220px;
	}
}
@media (max-width: 1030px) {
	.background-text.var2 {
		font-size: 116px;
	}
}
@media (max-width: 990px) {
	.bottom-menu__nav a,
	.record-title,
	.our-works__title,
	h1 {
		font-size: 48px;
	}
	.slide.open-video .main-video-wrap {
		width: 536px;
		height: 338px;
	}
	.slider-fixed-wrapper.slide {
		position: relative;
		opacity: 1 !important;
		transform: translateX(0) !important;
		pointer-events: auto;
	}
	.review-slider {
		padding: 0 30px;
		min-height: 90vh;
	}
	.footer-bottom-line-nav {
		flex-direction: column;
	}
	.record-title {
		text-align: left;
		max-width: none;
		margin: 0;
	}
	.our-works__all {
		margin-top: 30px;
	}
	.background-text {
		font-size: 200px;
	}
	.uslugi-hero_wrapper {
		padding: 65px 20px;
	}
	.sticky-scroll-target {
		position: relative !important;
		height: auto !important;
		overflow: visible !important;
	}

	.service-card:hover .service-content {
		padding-top: 30px;
	}
	.what_is_it-images {
		justify-content: center;
	}
	.why_us-cards {
		flex-direction: column;
		align-items: center;
	}
	.why_us_what_give h2,
	.why_us_button h2,
	.what_is_it-contact h2,
	.usluga-pin-title {
		font-size: 40px;
	}
	.why_us_what_give-item .text {
		text-align: right;
	}
	.why_us,
	.what_we_doing {
		padding: 60px 16px;
	}
	.why_us-line img {
		margin-bottom: 65px;
	}
	.why_us-cards {
		margin: 60px 0;
		gap: 30px;
	}
	.why_us-card {
		max-width: 370px;
	}
	.why_us_what_give h2 {
		margin: 60px 0;
	}
	.why_us_button {
		margin-top: 60px;
		gap: 40px;
	}
	.footer-line img,
	.what_we_doing-line {
		margin-bottom: 60px;
	}
	.contact-form__left {
		padding: 0;
	}

	.pinned-section.about_us {
		position: relative !important;
		height: 100%;
	}
	.pinned-section {
		height: calc(var(--real-vh) * 270);
		padding: 0 15px;
	}

	.pinned-section.home {
		height: calc(var(--real-vh) * 190);
	}
	.pin-wrapper {
		height: auto;
	}
	.pricelist .sale {
		font-size: 16px;
	}
	.usluga-img p {
		margin-top: 60px;
	}
	.uslugi-hero_wrapper.var2 {
		padding: 60px 20px;
		padding-bottom: 140px;
	}
	.usluga-pins_wrapper {
		flex-direction: column;
	}
	.usluga-pin {
		padding-bottom: 70px;
		margin-bottom: 60px;
	}
	.usluga-pins {
		padding: 60px 15px;
		padding-bottom: 0;
	}
	.pin-wrapper.what_is_it_wrapper.fix {
		height: calc(var(--real-vh) * 240) !important;
	}
}

@media (max-width: 860px) {
	.arrow {
		top: 38%;
	}
	.record-contacts {
		flex-direction: column;
		align-items: start;
	}
	.background-text {
		font-size: 170px;
	}
	.background-text.var2 {
		font-size: 90px;
	}
}
@media (max-width: 720px) {
	.title,
	.social-media-container h2,
	.bottom-menu__nav a,
	.record-title,
	.our-works__title,
	h1 {
		font-size: 38px;
	}
	.slide.open-video .main-video-wrap {
		width: 436px;
		height: 278px;
	}
	.background-text {
		font-size: 140px;
	}
	.why_us_what_give h2,
	.why_us_button h2,
	.what_is_it-contact h2,
	.usluga-pin-title {
		font-size: 36px;
	}
	.background-text.var2 {
		font-size: 70px;
	}
	.our-works__header-wrapper {
		display: block;
	}
	.our-works__header-wrapper .our-works__nav {
		display: flex;
	}
	.pinned-section.images {
		height: calc(var(--real-vh) * 240);
	}
	.social-media-wrapper svg {
		width: 50px;
		height: 50px;
	}
}
@media (max-width: 620px) {
	.slide.open-video .main-video-wrap {
		width: 336px;
		height: 238px;
	}
	.service-title {
		font-size: 26px;
	}
	.our-works__header {
		margin-bottom: 30px;
	}
	.our-works__title {
		margin-bottom: 30px;
	}
	.background-text {
		font-size: 110px;
		top: 70%;
	}
	.contact-form-wrapper,
	.about_us-images {
		padding: 20px;
	}

	.contact-form__title {
		margin-bottom: 20px;
	}
	.pricelist .sale {
		font-size: 14px;
	}
	.pricelist .sale {
		margin-bottom: 20px;
	}
	.social-media-container h2 {
		text-align: center;
	}
}
@media (max-width: 522px) {
	.title,
	.bottom-menu__nav a,
	.record-title,
	.our-works__title,
	.social-media-container h2,
	h1 {
		font-size: 34px;
	}
	.slide.open-video .main-video-wrap {
		width: 236px;
		height: 178px;
	}
	.bottom-menu {
		padding: 24px 20px 20px;
	}
	.our-works__bottom::before {
		top: 15%;
	}
	.our-works__bottom {
		height: 400px;
		margin-top: 30px;
	}
	.footer {
		padding: 40px 16px;
	}
	.contacts {
		padding: 20px 16px;
	}
	.our-works--pinned,
	.our-works,
	.social-media-container {
		padding: 100px 16px;
	}
	.hero-video,
	.what_is_it,
	.our-works__header {
		padding: 0 16px;
	}
	.service-title {
		font-size: 24px;
	}
	.our-works-pin-wrapper .uslugi {
		margin-top: 0;
		padding-top: 0;
	}
	.background-text.var2 {
		font-size: 50px;
	}
	.cards-grid {
		grid-template-columns: 370px;
		gap: 40px;
	}
	.cases-page .card img {
		width: 370px;
		height: 312px;
	}
	.our-works--pinned {
		padding-top: 20px;
	}
	.why_us_what_give-item .text {
		font-size: 16px;
	}
}
@media (max-width: 480px) {
	.title,
	.bottom-menu__nav a,
	.our-works__title,
	.social-media-container h2,
	h1 {
		font-size: 26px;
	}
	.review-slider {
		padding: 0 15px;
	}
	.prev {
		left: 20px;
	}
	.next {
		right: 20px;
	}
	.service-title {
		font-size: 20px;
	}
	.background-text {
		font-size: 88px;
	}
	.why_us_what_give h2,
	.why_us_button h2,
	.what_is_it-contact h2,
	.usluga-pin-title {
		font-size: 32px;
	}
	.why_us_what_give-item .text-small {
		max-width: 185px;
	}
	.works-slider__img {
		width: 340px;
		height: 285px;
	}
}

.our-works__bottom::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	top: 35%;
	bottom: 0;
	background-image: url('../svg/lines.svg');
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
	pointer-events: none;
	z-index: 1;
}
.what_we_doing-services-container::before {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 300px;
	background: url('../svg/lines.svg') center bottom / cover no-repeat;
	z-index: 1;
	pointer-events: none;
}

/* Текстовые страницы (page.php, politica.php): отступы, списки, таблицы */
.politica {
	padding: 0 20px;
	font-size: 16px;
	line-height: 150%;
}
.politica h1 {
	font-size: 40px;
	margin-bottom: 40px;
	overflow-wrap: break-word;
}
.politica p,
.politica ul,
.politica ol,
.politica figure {
	margin-bottom: 16px;
}
.politica ul,
.politica ol {
	padding-left: 24px;
}
.politica li {
	margin-bottom: 6px;
}
.politica a {
	text-decoration: underline;
}
.politica figure {
	overflow-x: auto;
}
.politica table {
	width: 100%;
	border-collapse: collapse;
}
.politica td,
.politica th {
	border: 1px solid rgba(235, 229, 215, 0.4);
	padding: 8px 12px;
	vertical-align: top;
	text-align: left;
	overflow-wrap: anywhere;
}
@media (max-width: 768px) {
	.politica {
		font-size: 14px;
	}
	.politica h1 {
		font-size: 26px;
		margin-bottom: 24px;
	}
	.politica td,
	.politica th {
		padding: 6px 8px;
		hyphens: auto;
	}
}
/* Широкие таблицы в обёртке figure (блок «Таблица») на узких экранах скроллятся, а не переносятся по слогам */
@media (max-width: 600px) {
	.politica figure table {
		min-width: 600px;
	}
	.politica figure td,
	.politica figure th {
		hyphens: manual;
	}
}
