@charset "UTF-8";
/* Дэя: страница тура (single-tour.php). Боковая карточка, пилюли, контакты: components/tour-card.css */

.deya-tour__h1 { max-width: 1000px; text-wrap: balance; }

/* Мозаика фото: большое (2/3) и два малых друг над другом */
.deya-tour__gallery { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.deya-tour__gallery figure { margin: 0; position: relative; overflow: hidden; background: var(--gray); }
.deya-tour__gallery img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.deya-tour__g-main { grid-column: span 2; height: 460px; border-radius: 32px; }
.deya-tour__gallery--1 .deya-tour__g-main { grid-column: 1 / -1; }
.deya-tour__g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 16px; height: 460px; min-width: 0; }
.deya-tour__gallery--2 .deya-tour__g-side { grid-template-rows: 1fr; }
.deya-tour__g-item { border-radius: 28px; }

/* Основная колонка */
.deya-tour__body { margin-top: 56px; display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.deya-tour__main { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.deya-tour__tags { display: flex; flex-wrap: wrap; gap: 10px; }
.deya-tour__tag { background: var(--gray); border-radius: 999px; padding: 10px 18px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); transition: background-color .2s; }
a.deya-tour__tag:hover { background: var(--teal-l); color: var(--ink); }
.deya-tour__tag--sale, .deya-tour__tag--sale:hover { background: var(--pink-link); color: #fff; }
.deya-tour__lead { margin: 0; font-size: 19px; line-height: 1.65; color: #2B424A; text-wrap: pretty; }
.deya-tour__text { font-size: 17px; line-height: 1.7; color: #2B424A; }
.deya-tour__text > :first-child { margin-top: 0; }
.deya-tour__text > :last-child { margin-bottom: 0; }
.deya-tour__text p { margin: 0 0 1em; }
.deya-tour__text a { text-decoration: underline; }
.deya-tour__h2 { margin: 24px 0 0; font-family: var(--serif); font-weight: 500; font-size: clamp(26px, 3vw, 36px); line-height: 1.2; }
.deya-tour__h3 { margin: 0 0 14px; font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.2; }

/* Программа по дням (выводится, если заполнена) */
.deya-tour__days { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.deya-tour__day { background: var(--gray); border-radius: 24px; padding: 22px 26px; }
.deya-tour__day-title { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 1.25; }
.deya-tour__day-text { margin: 8px 0 0; font-size: 16px; line-height: 1.65; color: #2B424A; }
.deya-tour__terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 28px; margin-top: 8px; }

/* Боковая карточка: цена и даты */
.deya-tour .deya-tour__aside { --w: 380px; }
.deya-tour__cost-label { font-size: 14px; color: var(--muted); }
.deya-tour__price { margin-top: 4px; font-family: var(--serif); font-size: 40px; line-height: 1.1; }
.deya-tour__cost-note { margin-top: 2px; font-size: 13px; color: var(--muted); }
.deya-tour__dates-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.deya-tour__dates { display: flex; flex-wrap: wrap; gap: 8px; }
.deya-tour__date { cursor: pointer; border: 0; font-family: inherit; border-radius: 999px; padding: 9px 14px; font-size: 14px; font-weight: 700; line-height: 1.5; color: var(--ink); background: #fff; transition: background-color .2s, color .2s; }
.deya-tour__date:hover { background: var(--teal-l); }
.deya-tour__date.is-active, .deya-tour__date.is-active:hover { color: #fff; background: var(--ink); }

@media (max-width: 1100px) {
	.deya-tour .deya-tour__aside { --w: 100%; }
}
@media (max-width: 900px) {
	.deya-tour__gallery { margin-top: 32px; }
	.deya-tour__g-main, .deya-tour__g-side { height: 360px; }
	.deya-tour__body { margin-top: 40px; gap: 32px; }
}
@media (max-width: 720px), (pointer: coarse) {
	.deya-tour__date { min-height: 44px; }
	.deya-tour__tag { padding: 10px 16px; }
}
@media (max-width: 720px) {
	.deya-tour__gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.deya-tour__g-main { grid-column: 1 / -1; height: min(300px, 66vw); border-radius: 24px; }
	.deya-tour__g-side { display: contents; }
	.deya-tour__g-item { height: min(150px, 34vw); border-radius: 20px; }
	.deya-tour__gallery--2 .deya-tour__g-item { grid-column: 1 / -1; }
	.deya-tour__main { gap: 20px; }
	.deya-tour__lead { font-size: 18px; }
	.deya-tour__price { font-size: 34px; }
	.deya-tour__day { padding: 18px 20px; }
}
