div.yacht-catalog {
	--yc-accent: #960a19;
	--yc-text: #323439;
	--yc-muted: #818181;
	--yc-bg: #f3f2f1;
	--yc-radius: 8px;
	--yc-column-gap: 25px;
	--yc-row-gap: 40px;
	--yc-columns: 3;

	position: relative;
	width: 100%;
	max-width: 100%;
	box-sizing: border-box;
}

/* Region breadcrumb anchor: keep the tabs clear of the sticky header. */
#yacht-region-selection {
	scroll-margin-top: 170px;
}

div.yacht-catalog *,
div.yacht-catalog *::before,
div.yacht-catalog *::after {
	box-sizing: border-box;
}

div.yacht-catalog .yacht-catalog__regions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: flex-start;
	gap: 28px 47px;
	margin: 0 0 9px;
	padding: 0;
}

div.yacht-catalog .yacht-catalog__region-tab {
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	margin: 0;
	padding: 0 0 10px;
	border: 0;
	background: transparent;
	appearance: none;
	color: var(--yc-text);
	opacity: 0.7;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	cursor: pointer;
	transition: color 0.2s ease, opacity 0.2s ease;
	box-shadow: none;
}

div.yacht-catalog .yacht-catalog__region-tab::after {
	content: "";
	display: block;
	width: 0;
	height: 1px;
	margin-top: 8px;
	background: var(--yc-accent);
	transition: width 0.2s ease;
}

div.yacht-catalog .yacht-catalog__region-tab:hover,
div.yacht-catalog .yacht-catalog__region-tab:focus-visible,
div.yacht-catalog .yacht-catalog__region-tab.is-active {
	color: var(--yc-text);
	opacity: 1;
	outline: none;
}

div.yacht-catalog .yacht-catalog__region-tab:hover::after,
div.yacht-catalog .yacht-catalog__region-tab:focus-visible::after,
div.yacht-catalog .yacht-catalog__region-tab.is-active::after {
	width: 100%;
}

div.yacht-catalog .yacht-catalog__panel {
	display: none;
}

/*
 * Плавное появление контента при переключении табов — тот же fade, что у
 * more-mice-tabs / regions-category-tabs / Elementor Nested Tabs.
 * Панели регионов переключаются через display: none <-> block, поэтому
 * анимация перезапускается сама. Сетка карточек при смене типа судна не
 * пересоздаётся (карточки только получают .is-hidden), там анимацию
 * перезапускает JS классом .is-type-switching.
 */
@keyframes ycPanelFade {
	from { opacity: 0; }
	to { opacity: 1; }
}

div.yacht-catalog .yacht-catalog__panel.is-active {
	display: block;
	animation: ycPanelFade 0.85s cubic-bezier(0.33, 0, 0.15, 1) both;
}

div.yacht-catalog .yacht-catalog__grid.is-type-switching {
	animation: ycPanelFade 0.85s cubic-bezier(0.33, 0, 0.15, 1) both;
}

div.yacht-catalog .yacht-catalog__types {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 78px;
}

div.yacht-catalog .yacht-catalog__types-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 40px;
	height: 40px;
	padding: 13px 11px;
	border: 1px solid var(--yc-accent);
	border-radius: 50%;
	background: transparent;
	color: var(--yc-accent);
	cursor: pointer;
	opacity: 1;
	transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
	box-shadow: none;
}

div.yacht-catalog .yacht-catalog__types-arrow:hover:not(:disabled):not([aria-disabled="true"]),
div.yacht-catalog .yacht-catalog__types-arrow:focus-visible:not(:disabled):not([aria-disabled="true"]) {
	border-color: var(--yc-accent);
	color: var(--yc-accent);
	outline: none;
	background: transparent;
}

div.yacht-catalog .yacht-catalog__types-arrow:disabled,
div.yacht-catalog .yacht-catalog__types-arrow[aria-disabled="true"] {
	opacity: 1;
	cursor: default;
	background-color: transparent;
	color: var(--yc-accent);
}

div.yacht-catalog .yacht-catalog__types-viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}

div.yacht-catalog .yacht-catalog__types-track {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 45px;
	will-change: transform;
	transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
	padding: 0;
	margin: 0;
}

div.yacht-catalog .yacht-catalog__type-tab {
	flex: 0 0 auto;
	border: none;
	background: transparent;
	cursor: pointer;
	appearance: none;
	padding: 13px 0 0;
	border-radius: 0;
	display: inline-flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	text-align: center;
	font-family: "TikTok Sans", sans-serif;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: uppercase;
	color: var(--yc-text);
	opacity: 0.7;
	transition: color 0.2s ease, opacity 0.2s ease;
	white-space: nowrap;
	box-shadow: none;
	position: relative;
}

div.yacht-catalog .yacht-catalog__type-tab::after {
	content: "";
	display: block;
	width: 0;
	height: 1px;
	margin-top: 10px;
	background: var(--yc-accent);
	transition: width 0.2s ease;
}

div.yacht-catalog .yacht-catalog__type-tab:hover,
div.yacht-catalog .yacht-catalog__type-tab:focus-visible,
div.yacht-catalog .yacht-catalog__type-tab.is-active {
	color: var(--yc-text);
	opacity: 1;
	outline: none;
}

div.yacht-catalog .yacht-catalog__type-tab.is-active::after {
	width: 100%;
}

div.yacht-catalog .yacht-catalog__grid {
	display: grid;
	grid-template-columns: repeat(var(--yc-columns), minmax(0, 1fr));
	column-gap: var(--yc-column-gap);
	row-gap: var(--yc-row-gap);
}

/*
 * overflow: hidden у карточки убран: кнопка «Узнать больше» стоит вплотную к
 * её нижнему краю, и радиус карточки (8px) срезал её собственные скруглённые
 * углы (6px) — у края кнопки был виден скол. Картинки клипятся сами
 * (.yacht-gallery__imageset / __viewport — свой radius + overflow: hidden),
 * так что карточке обрезка не нужна.
 */
div.yacht-catalog .yacht-catalog__card {
	display: flex;
	flex-direction: column;
	gap: 20px;
	border-radius: var(--yc-radius);
}

div.yacht-catalog .yacht-catalog__card.is-hidden,
div.yacht-catalog .yacht-catalog__card.is-collapsed {
	display: none;
}

div.yacht-catalog .yacht-catalog__more {
	display: none;
}

div.yacht-catalog .yacht-catalog__card-media {
	width: 100%;
	min-width: 0;
}

div.yacht-catalog .yacht-gallery {
	position: relative;
	width: 100%;
}

div.yacht-catalog .yacht-gallery__imageset {
	position: relative;
	width: 100%;
	aspect-ratio: 1.23 / 1;
	overflow: hidden;
	border-radius: 6px;
	background: #ddd;
}

div.yacht-catalog .yacht-gallery__viewport {
	position: absolute;
	inset: 0;
	overflow: hidden;
	border-radius: 6px;
}

div.yacht-catalog .yacht-gallery__viewport::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 28%;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(0deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0) 100%);
}

div.yacht-catalog .yacht-gallery__track {
	display: flex;
	height: 100%;
	width: 100%;
	will-change: transform;
	transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

div.yacht-catalog .yacht-gallery__slide {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

div.yacht-catalog .yacht-gallery__image {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center;
}

div.yacht-catalog .yacht-gallery__dots {
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: start;
	gap: 14px;
}

div.yacht-catalog .yacht-gallery__dot {
	display: block;
	flex: 0 0 auto;
	width: 40px;
	height: 2px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 1px;
	background: rgba(255, 255, 255, 0.4);
	cursor: pointer;
	appearance: none;
	transition: background-color 0.2s ease;
}

div.yacht-catalog .yacht-gallery__dot.is-active,
div.yacht-catalog .yacht-gallery__dot[aria-selected="true"] {
	background: #ffffff;
}

div.yacht-catalog .yacht-gallery__dot:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 3px;
}

div.yacht-catalog .yacht-catalog__card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	gap: 15px;
	padding: 0;
	text-align: left;
}

div.yacht-catalog .yacht-catalog__card-title {
	margin: 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 22px;
	font-weight: 400;
	line-height: 1.3;
	max-width: 300px;
	color: var(--yc-text);
	word-break: break-word;
}

div.yacht-catalog .yacht-catalog__card-meta {
	margin: 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	color: #323439CC;
}

div.yacht-catalog .yacht-catalog__card-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: auto;
	margin-top: 6px;
	padding: 16px 36px;
	border: 1px solid var(--yc-accent);
	border-radius: 6px;
	background: transparent;
	color: var(--yc-accent);
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/*
 * Заливка кнопки — только по ховеру самой кнопки. Ссылка в карточке одна
 * (`.yacht-catalog__card-btn`), сама карточка кликабельной не является,
 * поэтому подсветка кнопки при наведении на любое место карточки обещала
 * ссылку там, где её нет. Селектор .yacht-catalog__card:hover убран.
 */
div.yacht-catalog .yacht-catalog__card-btn:hover,
div.yacht-catalog .yacht-catalog__card-btn:focus-visible {
	background: var(--yc-accent);
	border-color: var(--yc-accent);
	color: #ffffff;
	outline: none;
}

div.yacht-catalog .yacht-catalog__empty {
	margin: 24px 0 0;
	font-family: "TikTok Sans", sans-serif;
	font-size: 15px;
	line-height: 1.4;
	color: var(--yc-muted);
	text-align: center;
}

@media (max-width: 1199px) {
	div.yacht-catalog {
		--yc-columns: 2;
	}
}

@media (max-width: 767px) {
	div.yacht-catalog {
		--yc-columns: 1 !important;
		--yc-column-gap: 25px;
		--yc-row-gap: 30px;
	}

	div.yacht-catalog .yacht-catalog__grid {
		grid-template-columns: 1fr;
	}

	div.yacht-catalog .yacht-catalog__region-tab::after {
		margin-top: 14px;
	}

	div.yacht-catalog .yacht-catalog__regions {
		justify-content: center;
		flex-wrap: nowrap;
		overflow-x: auto;
		gap: 28px 32px;
		margin: 0 0 10px;
		padding-bottom: 0;
		scrollbar-width: none;
	}

	div.yacht-catalog .yacht-catalog__regions::-webkit-scrollbar {
		display: none;
	}

	div.yacht-catalog .yacht-catalog__types {
		margin-bottom: 19px;
		gap: 0;
	}

	div.yacht-catalog .yacht-catalog__types-arrow {
		display: none;
	}

	div.yacht-catalog .yacht-catalog__types-track {
		justify-content: flex-start;
		gap: 24px;
	}

	div.yacht-catalog .yacht-catalog__type-tab {
		padding-top: 8px;
	}

	div.yacht-catalog .yacht-catalog__type-tab::after {
		display: none;
	}

	div.yacht-catalog .yacht-catalog__type-tab.is-active {
		color: var(--yc-text);
		opacity: 1;
	}

	div.yacht-catalog .yacht-catalog__card {
		gap: 16px;
	}

	div.yacht-catalog .yacht-gallery__imageset {
		aspect-ratio: 14.4 / 9;
	}

	div.yacht-catalog .yacht-gallery__dots {
		left: 0;
		right: 0;
		bottom: 24px;
		justify-content: center;
		gap: 10px;
	}

	div.yacht-catalog .yacht-gallery__dot {
		width: 15px;
	}

	div.yacht-catalog .yacht-catalog__card-body {
		padding: 0;
		gap: 10px;
	}

	div.yacht-catalog .yacht-catalog__card-title {
		font-size: 16px;
		line-height: 1.3;
		max-width: none;
	}

	div.yacht-catalog .yacht-catalog__card-meta {
		font-size: 14px;
		line-height: 1.35;
	}

	div.yacht-catalog .yacht-catalog__card-btn {
		margin-top: 2px;
		padding: 14px 22px;
		font-size: 14px;
	}

	div.yacht-catalog .yacht-catalog__more {
		display: inline-flex;
		align-items: center;
		justify-content: center;
		gap: 10px;
		width: 100%;
		margin: 8px 0 0;
		padding: 16px 0;
		border: 0;
		border-top: 1px solid #e5e5e5;
		border-radius: 0;
		background: transparent;
		font-family: "TikTok Sans", sans-serif;
		font-size: 16px;
		font-weight: 400;
		line-height: 1.2;
		color: var(--yc-muted);
		cursor: pointer;
		-webkit-tap-highlight-color: transparent;
	}

	div.yacht-catalog .yacht-catalog__more:hover,
	div.yacht-catalog .yacht-catalog__more:focus-visible {
		background: transparent;
		color: var(--yc-muted);
		outline: none;
	}

	div.yacht-catalog .yacht-catalog__more svg {
		display: block;
		width: 12px;
		height: 8px;
	}

	div.yacht-catalog .yacht-catalog__more[hidden],
	div.yacht-catalog .yacht-catalog__panel.is-expanded .yacht-catalog__more {
		display: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	div.yacht-catalog .yacht-gallery__track,
	div.yacht-catalog .yacht-catalog__types-track {
		transition: none;
	}
}
