/* Туры Зима-Лето: карточки, параметры тура, форма заявки.
   Цвета берутся из переменных темы, ниже — значения по умолчанию. */

.zl-tours,
.zl-facts,
.zl-conditions,
.zl-request,
.zl-tours-empty {
	--_ink: var(--zl-ink, #17323d);
	--_muted: var(--zl-muted, #566a73);
	--_brand: var(--zl-glacier, #1f6f8b);
	--_brand-deep: var(--zl-glacier-deep, #155a72);
	--_tint: var(--zl-ice, #e9f2f6);
	--_sun: var(--zl-sun, #f3b23a);
	--_sun-ink: var(--zl-sun-ink, #7a4c00);
	--_line: var(--zl-line, #cfdde4);
	--_paper: var(--zl-paper, #fff);
	--_page: var(--zl-page, #fff);
	--_display: var(--zl-font-display, inherit);
	box-sizing: border-box;
}
.zl-tours *,
.zl-facts *,
.zl-request * {
	box-sizing: border-box;
}

/* ---------- Сетка ---------- */

.zl-tours {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(var(--zl-cols, 3), minmax(0, 1fr));
	margin: 0 0 2rem;
}
.zl-tours--cols-1 { --zl-cols: 1; }
.zl-tours--cols-2 { --zl-cols: 2; }
.zl-tours--cols-3 { --zl-cols: 3; }
.zl-tours--cols-4 { --zl-cols: 4; }

@media (max-width: 1100px) {
	.zl-tours--cols-3,
	.zl-tours--cols-4 { --zl-cols: 2; }
}
@media (max-width: 640px) {
	.zl-tours { --zl-cols: 1 !important; gap: 18px; }
}

.zl-tours-empty {
	margin: 0 0 2rem;
	padding: 18px 20px;
	border: 1px dashed var(--_line);
	border-radius: 10px;
	color: var(--_muted);
	max-width: 60ch;
}

/* ---------- Карточка-билет ---------- */

.zl-card {
	container-type: inline-size;
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--_paper);
	border: 1px solid var(--_line);
	border-radius: 12px;
	color: var(--_ink);
	min-width: 0;
}
.zl-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	border-radius: 11px 11px 0 0;
	background: var(--_tint);
	color: var(--_brand);
}
.zl-card__media img,
.zl-card__noimg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.zl-card__badge {
	position: absolute;
	left: 12px;
	top: 12px;
	padding: 4px 10px;
	border-radius: 6px;
	background: var(--_sun);
	color: #2b1d00;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.zl-card__ticket {
	position: relative;
	display: grid;
	grid-template-columns: 92px minmax(0, 1fr);
	flex: 1;
}
/* Корешок билета с датой и перфорацией */
.zl-card__stub {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	padding: 16px 8px;
	text-align: center;
	background: var(--_tint);
	border-right: 2px dashed var(--_line);
	border-radius: 0 0 0 11px;
}
.zl-card__stub::before,
.zl-card__stub::after {
	content: "";
	position: absolute;
	right: -9px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: var(--_page);
	border: 1px solid var(--_line);
}
.zl-card__stub::before { top: -9px; clip-path: inset(50% 0 0 0); }
.zl-card__stub::after { bottom: -9px; clip-path: inset(0 0 50% 0); }

.zl-card__days {
	font-family: var(--_display);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: -0.02em;
	color: var(--_brand-deep);
	white-space: nowrap;
}
.zl-card__months {
	font-size: 13px;
	line-height: 1.2;
	color: var(--_ink);
}
.zl-card__year {
	font-size: 12px;
	color: var(--_muted);
}
.zl-card__datetext {
	font-size: 13px;
	line-height: 1.3;
	color: var(--_ink);
}

.zl-card__body {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px 16px;
	min-width: 0;
}
.zl-card__place {
	margin: 0;
	font-size: 13px;
	color: var(--_muted);
}
.zl-card__title {
	margin: 0;
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	font-family: inherit;
	text-transform: none;
	letter-spacing: 0;
}
.zl-card__title a {
	color: inherit;
	text-decoration: none;
}
/* Вся карточка кликабельна через ссылку заголовка */
.zl-card__title a::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 12px;
}
.zl-card:hover .zl-card__title a,
.zl-card__title a:focus-visible {
	color: var(--_brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.zl-card__title a:focus-visible::after {
	outline: 3px solid var(--_sun);
	outline-offset: 2px;
}
.zl-card__title a:focus-visible {
	outline: none;
}
.zl-card__meta {
	margin: 0;
	font-size: 14px;
	color: var(--_muted);
}
.zl-card__price {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 4px 8px;
	margin: auto 0 0;
	padding-top: 6px;
}
.zl-card__price strong {
	font-size: 19px;
	font-weight: 700;
	color: var(--_ink);
}
.zl-card__price s {
	font-size: 14px;
	color: var(--_muted);
}
.zl-card__price span {
	font-size: 13px;
	color: var(--_muted);
}
.zl-card.is-special {
	border-color: var(--_sun);
}

/* Узкая карточка (3–4 колонки): корешок с датой — полосой над текстом */
@container (max-width: 340px) {
	.zl-card__ticket {
		grid-template-columns: 1fr;
		grid-template-rows: auto 1fr;
	}
	.zl-card__stub {
		flex-direction: row;
		flex-wrap: wrap;
		justify-content: flex-start;
		align-items: baseline;
		gap: 2px 8px;
		padding: 10px 16px;
		text-align: left;
		border-right: 0;
		border-bottom: 2px dashed var(--_line);
		border-radius: 0;
	}
	.zl-card__stub::before,
	.zl-card__stub::after {
		top: auto;
		bottom: -9px;
		clip-path: none;
	}
	.zl-card__stub::before {
		left: -9px;
		right: auto;
		clip-path: inset(0 0 0 50%);
	}
	.zl-card__stub::after {
		right: -9px;
		clip-path: inset(0 50% 0 0);
	}
	.zl-card__days {
		font-size: 20px;
	}
	.zl-card__months {
		font-size: 15px;
	}
	.zl-card__body {
		padding-top: 12px;
	}
}

/* ---------- Кнопка ---------- */

.zl-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 10px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--zl-glacier, #1f6f8b);
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.zl-button:hover {
	background: var(--zl-glacier-deep, #155a72);
	color: #fff;
}
.zl-button:focus-visible {
	outline: 3px solid var(--zl-sun, #f3b23a);
	outline-offset: 2px;
}

/* ---------- Параметры тура ---------- */

.zl-facts {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 260px;
	border: 1px solid var(--_line);
	border-radius: 12px;
	background: var(--_paper);
	margin: 0 0 2rem;
	color: var(--_ink);
}
.zl-facts__past {
	grid-column: 1 / -1;
	margin: 0;
	padding: 12px 20px;
	background: #fff6e2;
	border-bottom: 1px solid var(--_line);
	border-radius: 12px 12px 0 0;
	color: var(--_sun-ink);
}
.zl-facts__list {
	margin: 0;
	padding: 8px 20px;
}
.zl-facts__row {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--_line);
}
.zl-facts__row:last-child {
	border-bottom: 0;
}
.zl-facts dt {
	color: var(--_muted);
}
.zl-facts dd {
	margin: 0;
	font-weight: 500;
}
.zl-facts__buy {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 20px;
	background: var(--_tint);
	border-left: 2px dashed var(--_line);
	border-radius: 0 11px 11px 0;
}
.zl-facts__price {
	display: flex;
	flex-direction: column;
	margin: 0;
}
.zl-facts__price strong {
	font-family: var(--_display);
	font-size: 28px;
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--_ink);
}
.zl-facts__price s {
	color: var(--_muted);
}
.zl-facts__price span {
	color: var(--_muted);
	font-size: 14px;
}
@media (max-width: 760px) {
	.zl-facts { grid-template-columns: 1fr; }
	.zl-facts__row { grid-template-columns: 1fr; gap: 2px; }
	.zl-facts__buy { border-left: 0; border-top: 2px dashed var(--_line); border-radius: 0 0 11px 11px; }
}

/* ---------- Условия ---------- */

.zl-conditions {
	margin: 2.5rem 0;
	color: var(--_ink);
}
.zl-conditions h2 {
	font-size: 20px;
	margin: 0 0 12px;
}
.zl-conditions__cols {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
}
@media (max-width: 760px) {
	.zl-conditions__cols { grid-template-columns: 1fr; }
}
.zl-conditions__col {
	padding: 18px 20px;
	border-radius: 12px;
	border: 1px solid var(--_line);
}
.zl-conditions__col.is-included {
	background: var(--_tint);
	border-color: transparent;
}
.zl-conditions ul {
	margin: 0;
	padding: 0;
	list-style: none;
}
.zl-conditions li {
	position: relative;
	padding: 4px 0 4px 26px;
}
.zl-conditions li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 0.75em;
	width: 12px;
	height: 2px;
	background: var(--_muted);
}
.zl-conditions .is-included li::before {
	top: 0.55em;
	width: 12px;
	height: 7px;
	background: none;
	border-left: 2px solid var(--_brand);
	border-bottom: 2px solid var(--_brand);
	transform: rotate(-45deg);
}
.zl-conditions__bring {
	margin-top: 24px;
}
.zl-conditions__bring ul {
	columns: 2 240px;
	column-gap: 24px;
}
.zl-conditions__note {
	margin: 24px 0 0;
	font-size: 14px;
	color: var(--_muted);
	max-width: 70ch;
}

/* ---------- Форма заявки ---------- */

.zl-request {
	margin: 2.5rem 0;
	padding: 28px;
	border-radius: 14px;
	background: var(--_tint);
	color: var(--_ink);
	scroll-margin-top: 24px;
}
.zl-request__title {
	margin: 0 0 6px;
}
.zl-request__text {
	margin: 0 0 18px;
	color: var(--_muted);
	max-width: 62ch;
}
.zl-request__tour {
	margin: 0 0 14px;
}
.zl-request__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 18px;
}
@media (max-width: 640px) {
	.zl-request { padding: 22px 18px; }
	.zl-request__grid { grid-template-columns: 1fr; }
}
.zl-field {
	margin: 0;
}
.zl-field--wide {
	grid-column: 1 / -1;
}
.zl-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 600;
	font-size: 15px;
}
.zl-field label span {
	font-weight: 400;
	color: var(--_muted);
}
.zl-field input,
.zl-field textarea {
	display: block;
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1px solid #a9bcc5;
	border-radius: 8px;
	background: #fff;
	color: var(--_ink);
	font: inherit;
}
.zl-field textarea {
	min-height: 96px;
	resize: vertical;
}
.zl-field input:focus,
.zl-field textarea:focus {
	outline: 3px solid var(--_sun);
	outline-offset: 0;
	border-color: var(--_brand);
}
.zl-request__consent {
	margin: 16px 0 0;
	font-size: 14px;
}
.zl-request__consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}
.zl-request__consent input {
	width: 18px;
	height: 18px;
	margin: 2px 0 0;
	flex: none;
	accent-color: var(--_brand);
}
.zl-request__submit {
	margin: 18px 0 0;
}
.zl-request__notice {
	margin: 0 0 14px;
	padding: 12px 14px;
	border-radius: 8px;
	font-weight: 500;
}
.zl-request__notice.is-ok {
	background: #e3f4e8;
	color: #1d5b31;
}
.zl-request__notice.is-error {
	background: #fde8e4;
	color: #8a2414;
}
.zl-request__hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------- Заголовок блока туров ---------- */

.zl-tours-block__title {
	margin: 2.2em 0 0.8em;
}
.zl-tours-block:first-child .zl-tours-block__title {
	margin-top: 0;
}

/* ---------- Направления ---------- */

.zl-destinations {
	--_ink: var(--zl-ink, #17323d);
	--_muted: var(--zl-muted, #566a73);
	--_brand: var(--zl-glacier, #1f6f8b);
	--_line: var(--zl-line, #cfdde4);
	--_tint: var(--zl-ice, #e9f2f6);
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	align-items: start;
	gap: 16px;
	margin: 0 0 2rem;
	padding: 0;
	list-style: none;
}
.zl-destinations__item {
	padding: 16px 18px;
	border: 1px solid var(--_line);
	border-radius: 12px;
}
.zl-destinations__item.has-tours {
	background: var(--_tint);
	border-color: transparent;
}
.zl-destinations__name {
	display: block;
	font-size: 18px;
	font-weight: 650;
	color: var(--_ink);
	text-decoration: none;
}
.zl-destinations__name:hover {
	color: var(--_brand);
	text-decoration: underline;
	text-underline-offset: 3px;
}
.zl-destinations__count {
	display: block;
	font-size: 13px;
	color: var(--_muted);
}
.zl-destinations__sub {
	margin: 10px 0 0;
	padding: 0;
	list-style: none;
	font-size: 15px;
}
.zl-destinations__sub li + li {
	margin-top: 4px;
}
.zl-destinations__sub a {
	color: var(--_ink);
}
