/* Homepage redesign — legacy sections aligned to template v18 tokens (css/homepage-redesign.css).
   Scoped to body.homepage-redesign (front page only) so catalog/tour-page styles are untouched. */

/* Section titles: match the new template's h2 scale (assurance/guides/reviews sections) */
.homepage-redesign .section__title {
	font-size: clamp(30px, 3.2vw, 44px);
	font-weight: 700;
	line-height: 1.1;
	letter-spacing: -0.03em;
	color: var(--hp-ink);
}

.homepage-redesign .section-subtitle {
	margin: 10px 0 0;
	color: var(--hp-muted);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
}

.homepage-redesign .section--carousel.home-tours-section {
	background: var(--v21-mist) !important;
	border-top: 1px solid rgba(6, 101, 46, 0.08) !important;
	margin-top: 0 !important;
	padding: 44px 0 48px !important;
}

.homepage-redesign .section--carousel.home-tours-section .eyebrow {
	margin: 0 0 12px;
	color: var(--v21-forest);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.1em;
	text-transform: uppercase;
}

.homepage-redesign .home-tours-section .home-tours-heading {
	display: grid;
	grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
	align-items: end;
	gap: 48px;
	margin-bottom: 28px;
}

.homepage-redesign .home-tours-section .home-tours-heading > div:first-child {
	min-width: 0;
}

.homepage-redesign .home-tours-section .section__title {
	margin: 0;
}

.homepage-redesign .home-tours-section .rail-controls {
	display: flex;
	gap: 10px;
	justify-self: end;
}

.homepage-redesign .home-tours-section .rail-controls button {
	display: grid;
	place-items: center;
	width: 54px;
	height: 54px;
	border: 1px solid var(--hp-line);
	border-radius: 50%;
	background: #fff;
	color: var(--hp-pine-dark);
	font-size: 20px;
	cursor: pointer;
	transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.homepage-redesign .home-tours-section .rail-controls button:hover:not(:disabled) {
	background: var(--leaf);
	transform: translateY(-2px);
}

.homepage-redesign .home-tours-section .rail-controls button:disabled {
	opacity: 0.35;
	cursor: default;
	transform: none;
}

.homepage-redesign .home-tours-section .home-tour-rail {
	position: relative;
	z-index: 2;
	padding: 2px 0 18px;
	overflow: hidden;
}

.homepage-redesign .home-tours-section .home-tour-rail .swiper-wrapper {
	align-items: stretch;
}

.homepage-redesign .home-tours-section .home-tour-rail .swiper-slide {
	display: flex;
	flex-shrink: 0;
	width: 320px;
	height: auto;
	align-self: stretch;
	/* Во время drag-скролла (transform на .swiper-wrapper) браузер иногда
	   "теряет" абсолютно спозиционированные плашки/сердечко поверх фото
	   у соседних карточек — форсируем отдельный композитный слой на слайде. */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}

.homepage-redesign .home-tours-section .home-tour-rail .swiper-slide .home-tour-card {
	flex: 1 1 auto;
	width: 100%;
	height: 100%;
	min-height: 100%;
}

@media (max-width: 991px) {
	.homepage-redesign .home-tours-section .home-tours-heading {
		grid-template-columns: 1fr;
		align-items: start;
		gap: 18px;
	}

	.homepage-redesign .home-tours-section .rail-controls {
		justify-self: start;
	}

	.homepage-redesign .home-tours-section .home-tour-rail .swiper-slide {
		flex-shrink: 0;
		width: 320px;
	}
}

@media (max-width: 640px) {
	.homepage-redesign .home-tours-section .home-tour-rail {
		margin-right: -14px;
		padding-right: 14px;
	}

	.homepage-redesign .home-tours-section .home-tour-rail .swiper-slide {
		width: 320px;
	}

	.homepage-redesign .home-tours-section .rail-controls button {
		width: 48px;
		height: 48px;
		font-size: 18px;
	}
}

/* "Показать ещё" / "Все статьи" buttons: same pill radius as the hero filter buttons */
.homepage-redesign .section__more {
	border-radius: 14px;
}

/* Tag pills under hero: swap flat grey pill for the template's soft-rounded preset-button look */
.homepage-redesign .tour_cat_tags_slide a {
	border-radius: 14px;
	background-color: #fff;
	border-color: #d8ded9;
	color: #17231b;
}

.homepage-redesign .tour_cat_tags_slide a:hover {
	background-color: #f3f5f3;
	border-color: #ccd4ce;
}

/* Card radius: unify with the template's card scale (was sharp/0) */
.homepage-redesign .tour-small,
.homepage-redesign .post,
.homepage-redesign .inspiration,
.homepage-redesign .possibility {
	border-radius: 20px;
	overflow: hidden;
}

/* Off-brand accent colors → template pine */
.homepage-redesign .scantour:hover h3,
.homepage-redesign .blog-card__link,
.homepage-redesign .blog-preview__all {
	color: var(--hp-pine);
}

/* Off-brand hover accent (was a random red) → template orange */
.homepage-redesign .tour-small:hover .tour-small__price {
	color: var(--hp-orange);
}

/* Subscribe input: rounded pill to match hero filter fields */
.homepage-redesign .possibility__subscribe input {
	color: #000;
	text-align: center;
	z-index: 1;
	background-color: #fff;
	border: none;
	width: 100%;
	height: 60px;
	margin-bottom: 10px;
	font-size: 18px;
	border-radius: 16px;
}

/* Subscribe button (main_page_subcribe form): same solid-pine look as the hero filter_search_btn/reference-filter-submit */
.homepage-redesign .possibility__subscribe button {
	background-color: #0d6d34;
	border-radius: 14px;
	font-weight: 850;
	box-shadow: 0 12px 25px rgba(13, 109, 52, 0.25);
	transition: background 0.25s ease, transform 0.25s ease;
}

.homepage-redesign .possibility__subscribe button:hover,
.homepage-redesign .possibility__subscribe button:focus {
	background-color: #0a5a2c;
	transform: translateY(-1px);
}

/* Единая ширина контента 1340px — перебивает section-shell в блоках ниже по каскаду */
.homepage-redesign .experiences-section .section-shell,
.homepage-redesign .destinations-section .section-shell,
body.catalog-redesign .destinations-section .section-shell,
.homepage-redesign .assurance-section .section-shell,
.homepage-redesign .homepage-reviews .section-shell,
body.catalog-redesign .homepage-reviews .section-shell,
.homepage-redesign .v21-awards-section .section-shell {
	width: var(--hp-shell);
	max-width: 1340px;
	margin-left: auto;
	margin-right: auto;
}
