/* Компас Тур — основные стили
   Палитра из фотографий Южного Урала: речная хвоя, известняк, жёлтая палатка. */

:root {
	--river: #163f36;
	--river-deep: #0d2a24;
	--river-soft: #2c5a4f;
	--tent: #f2b705;
	--tent-hover: #ffc72c;
	--limestone: #e4e7de;
	--birch: #f6f7f3;
	--paper: #ffffff;
	--ink: #1c2421;
	--muted: #5b6862;
	--line: #d3d9cf;
	--danger: #b3261e;

	--font-display: "Unbounded", "Arial Black", "Helvetica Neue", Arial, sans-serif;
	--font-body: "Golos Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--radius: 6px;
	--radius-lg: 14px;
	--head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); overflow-x: hidden; }
@supports (overflow: clip) { html { overflow-x: clip; } }
body {
	margin: 0;
	background: var(--birch);
	color: var(--ink);
	font: 400 17px/1.6 var(--font-body);
	-webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--river); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--river-soft); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--tent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(28px, 4.2vw, 48px); }
h2 { font-size: clamp(22px, 2.6vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--tent); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---------- Кнопки ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 0 22px;
	border: 2px solid transparent; border-radius: 999px;
	background: var(--river); color: #fff;
	font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
	transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { background: var(--river-deep); color: #fff; }
.btn-accent { background: var(--tent); color: var(--ink); }
.btn-accent:hover { background: var(--tent-hover); color: var(--ink); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-outline { background: transparent; border-color: var(--river); color: var(--river); }
.btn-outline:hover { background: var(--river); color: #fff; }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Шапка ---------- */
.site-head {
	position: sticky; top: 0; z-index: 50;
	background: var(--birch); /* без backdrop-filter: он ломает fixed-меню на мобильных */
	border-bottom: 1px solid var(--line);
}
.head-row { display: flex; align-items: center; gap: 20px; min-height: var(--head-h); }
.brand { display: inline-flex; flex-shrink: 0; align-items: center; gap: 10px; color: var(--river); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--river); }
.brand-logo { max-height: 52px; width: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--river); color: var(--tent); }
.brand-mark .ico { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font: 700 18px/1.1 var(--font-display); letter-spacing: -0.01em; }
.brand-text small { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.brand-invert, .brand-invert:hover { color: #fff; }
.brand-invert .brand-mark { background: var(--tent); color: var(--river-deep); }
.brand-invert small { color: rgba(255,255,255,.65); }

.nav { margin-left: auto; }
.nav .menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav .menu > li { position: relative; display: flex; align-items: center; flex-shrink: 0; }
.nav .menu a { display: block; max-width: 14em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 10px 11px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 16px; border-radius: var(--radius); }
.nav .menu a:hover, .nav .current-menu-item > a, .nav .current-menu-ancestor > a { color: var(--river); background: var(--limestone); }
.nav .sub-menu { list-style: none; margin: 0; padding: 8px; position: absolute; top: 100%; left: 0; min-width: 260px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 40px -18px rgba(13,42,36,.35); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
.nav .menu > li:hover > .sub-menu, .nav .menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.nav .sub-menu a { font-weight: 400; max-width: none; white-space: normal; }
.sub-toggle { display: none; }
.nav-mobile-extra { display: none; }

.head-contacts { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.head-phone { font-weight: 600; color: var(--ink); text-decoration: none; white-space: nowrap; }
.msgr { display: flex; gap: 8px; flex-wrap: wrap; }
.msgr a { display: inline-flex; align-items: center; gap: 8px; color: var(--river); text-decoration: none; }
.msgr-compact { flex-wrap: nowrap; }
.msgr-compact a { flex-shrink: 0; width: 34px; height: 34px; justify-content: center; border-radius: 50%; background: var(--limestone); }
.msgr-compact a:hover { background: var(--river); color: #fff; }
.msgr-big a { min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.msgr-big a:hover { border-color: var(--river); }
.msgr-big .msgr-whatsapp .ico { color: #1fa855; }
.msgr-big .msgr-telegram .ico { color: #229ed9; }
.msgr-big .msgr-max .ico { color: #5533ee; }
.msgr-big .msgr-vk .ico { color: #0077ff; }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--river); }

@media (max-width: 1600px) {
	.head-contacts .msgr { display: none; }
}
@media (max-width: 1320px) and (min-width: 1181px) {
	.head-phone { display: none; }
}
.head-cta { white-space: nowrap; flex-shrink: 0; }
.site-head.is-tight .head-contacts { display: none; }
.nav .menu { flex-wrap: nowrap; }
@media (max-width: 1180px) {
	:root { --head-h: 64px; }
	.head-contacts, .head-cta { display: none; }
	.burger { display: block; margin-left: auto; }
	.nav {
		position: fixed; inset: var(--head-h) 0 0 0; margin: 0;
		background: var(--birch); overflow-y: auto; padding: 16px var(--gutter) 120px;
		opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; visibility: hidden; pointer-events: none;
	}
	.nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
	.nav .menu { flex-direction: column; gap: 0; }
	.nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
	.nav .menu > li > a { flex: 1; padding: 14px 0; font-size: 19px; background: none; max-width: none; white-space: normal; }
	.sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--river); cursor: pointer; }
	.sub-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
	.nav .sub-menu { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 10px 12px; }
	.nav .sub-menu.is-open { display: block; }
	.nav .menu > li:hover > .sub-menu { display: none; }
	.nav .menu > li > .sub-menu.is-open { display: block; }
	.nav-mobile-extra { display: grid; gap: 16px; margin-top: 24px; }
	.nav-phone { font: 700 22px/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
	.nav-mobile-extra .msgr a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
	body.nav-open { overflow: hidden; }
}

/* Тот же мобильный режим меню, если пункты не влезают в шапку (класс ставит main.js) */
.site-head.is-burger .head-contacts, .site-head.is-burger .head-cta { display: none; }
.site-head.is-burger .burger { display: block; margin-left: auto; }
.site-head.is-burger .nav { position: fixed; inset: var(--head-h) 0 0 0; margin: 0; background: var(--birch); overflow-y: auto; padding: 16px var(--gutter) 120px; opacity: 0; transform: translateY(-8px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; visibility: hidden; pointer-events: none; }
.site-head.is-burger .nav.is-open { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .2s ease, transform .2s ease; }
.site-head.is-burger .nav .menu { flex-direction: column; gap: 0; }
.site-head.is-burger .nav .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.site-head.is-burger .nav .menu > li > a { flex: 1; padding: 14px 0; font-size: 19px; background: none; max-width: none; white-space: normal; }
.site-head.is-burger .sub-toggle { display: grid; place-items: center; width: 44px; height: 44px; background: none; border: 0; color: var(--river); cursor: pointer; }
.site-head.is-burger .sub-toggle[aria-expanded="true"] .ico { transform: rotate(90deg); }
.site-head.is-burger .nav .sub-menu { position: static; display: none; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: none; padding: 0 0 10px 12px; }
.site-head.is-burger .nav .sub-menu.is-open { display: block; }
.site-head.is-burger .nav .menu > li:hover > .sub-menu { display: none; }
.site-head.is-burger .nav .menu > li > .sub-menu.is-open { display: block; }
.site-head.is-burger .nav-mobile-extra { display: grid; gap: 16px; margin-top: 24px; }
.site-head.is-burger .nav-phone { font: 700 22px/1.2 var(--font-display); color: var(--ink); text-decoration: none; }
.site-head.is-burger .nav-mobile-extra .msgr a { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
@media (max-width: 420px) {
	.brand-text small { display: none; }
}

/* ---------- Первый экран ---------- */
.hero { position: relative; background: var(--river-deep); color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-inner { position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-end; padding-top: 80px; }
.hero-panel {
	background: var(--river);
	padding: clamp(24px, 3.6vw, 48px);
	margin-bottom: clamp(24px, 5vw, 56px);
	max-width: 700px;
	border-radius: var(--radius-lg);
}
.hero-title { font-size: clamp(32px, 5vw, 60px); line-height: 1.04; letter-spacing: -0.025em; margin-bottom: .45em; }
.hero-text { font-size: clamp(17px, 1.5vw, 19px); color: rgba(255,255,255,.85); max-width: 54ch; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 640px) {
	.hero-inner { min-height: 0; padding-top: 0; display: block; padding-left: 0; padding-right: 0; }
	.hero-media { position: relative; height: 46vh; min-height: 260px; }
	.hero-panel { border-radius: 0; margin: 0; max-width: none; padding: 28px var(--gutter) 32px; }
	.hero-actions .btn { flex: 1 1 auto; }
}

/* Виды туров (чипы) */
.kinds { margin-top: 24px; }
.kinds ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kinds a {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
	color: var(--ink); text-decoration: none; font-weight: 500;
}
.kinds a:hover { border-color: var(--river); color: var(--river); }
.kinds a[aria-current] { background: var(--river); border-color: var(--river); color: #fff; }
.kinds small { font-size: 13px; color: var(--muted); }
.kinds a[aria-current] small { color: rgba(255,255,255,.7); }
.kinds-inline { margin-top: 0; margin-bottom: 8px; }

/* ---------- Секции ---------- */
.section { padding: clamp(48px, 7vw, 96px) 0 0; }
.section-tight { padding-top: 24px; }
.section:last-of-type { padding-bottom: clamp(48px, 7vw, 96px); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-foot { margin-top: 32px; }
.link-more { font-weight: 600; white-space: nowrap; }
.empty { padding: 32px; background: var(--paper); border-radius: var(--radius-lg); border: 1px dashed var(--line); }
.empty p { max-width: 60ch; }

/* ---------- Ближайшие выезды — лента дат ---------- */
.departures {
	list-style: none; margin: 0; padding: 0 0 12px;
	display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr);
	gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
	border-top: 2px solid var(--river);
}
.dep { scroll-snap-align: start; border-right: 1px solid var(--line); }
.dep:last-child { border-right: 0; }
.dep a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 20px 22px 22px; color: var(--ink); text-decoration: none; }
.dep a:hover { background: var(--paper); }
.dep-date b { display: block; font: 700 clamp(34px, 3.4vw, 46px)/1 var(--font-display); color: var(--river); letter-spacing: -0.03em; }
.dep-date span { display: block; margin-top: 6px; color: var(--muted); font-size: 15px; }
.dep-title { font-weight: 600; font-size: 17px; line-height: 1.35; margin-top: 8px; }
.dep-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 15px; color: var(--muted); margin-top: auto; padding-top: 8px; }
.dep-note { font-size: 14px; color: var(--river-soft); font-weight: 500; }
.dep.is-full .dep-date b { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 2px; }
.dep.is-full .dep-note { color: var(--danger); }

/* ---------- Карточки туров ---------- */
.filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.section-head .filter { margin: 0; }
.filter button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 15px; }
.filter button:hover { border-color: var(--river); }
.filter button.is-active { background: var(--river); border-color: var(--river); color: #fff; }

.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 28px 24px; }
.tour-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.tour-card[hidden] { display: none; }
.tour-card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--limestone); overflow: hidden; }
.tour-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.tour-card:hover .tour-card-media img { transform: scale(1.03); }
.thumb-empty { display: grid; place-items: center; height: 100%; color: var(--line); }
.tour-card-days { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; }
.tour-card-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.tour-card-cat { font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.tour-card-title { font: 600 19px/1.3 var(--font-body); letter-spacing: 0; margin: 0 0 10px; }
.tour-card-title a { color: var(--ink); text-decoration: none; }
.tour-card-title a:hover { color: var(--river); }
.tour-card-title a::after { content: ""; position: absolute; inset: 0; }
.tour-card { position: relative; }
.tour-card-dates { font-size: 15px; color: var(--river-soft); font-weight: 500; margin-bottom: 16px; }
.tour-card-dates .is-full { text-decoration: line-through; color: var(--muted); }
.tour-card-dates .more, .tour-card-dates.is-muted { color: var(--muted); font-weight: 400; }
.tour-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.tour-card-foot .btn { position: relative; z-index: 2; }
.price { margin: 0; font: 700 22px/1 var(--font-display); color: var(--ink); letter-spacing: -0.02em; white-space: nowrap; }
.price small { font: 400 14px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }

/* ---------- О компании ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.about-facts { background: var(--river); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 3.5vw, 44px); }
.about-facts h2 { color: #fff; }
.facts { margin: 28px 0 20px; display: grid; gap: 0; }
.facts div { display: grid; grid-template-columns: minmax(0, 13ch) 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid rgba(255,255,255,.18); align-items: baseline; }
.facts dt { font: 700 20px/1.15 var(--font-display); color: var(--tent); letter-spacing: -0.01em; min-width: 0; overflow-wrap: break-word; }
.facts dd { margin: 0; color: rgba(255,255,255,.85); font-size: 16px; }
.about-note { color: rgba(255,255,255,.75); font-size: 15px; margin: 0; }
.about-h { font-size: clamp(22px, 2.4vw, 28px); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }

/* ---------- Шаги ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 0; border-top: 2px solid var(--river); }
.steps li { counter-increment: s; padding: 22px 24px 8px 0; display: flex; flex-direction: column; gap: 8px; }
.steps li::before { content: counter(s); font: 700 15px/1 var(--font-display); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--tent); color: var(--ink); margin-bottom: 6px; }
.steps b { font-size: 18px; }
.steps span { color: var(--muted); font-size: 16px; }

/* ---------- Отзывы ---------- */
/* Отзывы разной длины — колонками, без пустот между карточками */
.reviews-row { columns: 3 300px; column-gap: 20px; }
.reviews-row .review { break-inside: avoid; margin-bottom: 20px; }
@media (max-width: 640px) {
	.reviews-row .review { margin-bottom: 0; }
	.reviews-row { columns: auto; display: grid; gap: 14px; align-items: start; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 85%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding-left: var(--gutter); }
}
.review { margin: 0; padding: 24px; background: var(--paper); border-radius: var(--radius-lg); border: 1px solid var(--line); display: flex; flex-direction: column; scroll-snap-align: start; }
.review-text { margin: 0 0 16px; font-size: 16px; line-height: 1.6; }
.review-text p:last-child { margin: 0; }
.review-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 9; line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden; }
.review-text.is-clamped p { margin: 0 0 .6em; }
.review-more[hidden] { display: none; }
.review-more { align-self: flex-start; background: none; border: 0; padding: 0; color: var(--river); font-weight: 600; cursor: pointer; margin: -6px 0 16px; text-decoration: underline; text-underline-offset: 3px; }
.review figcaption { margin-top: 4px; display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid var(--line); }
.review figcaption span { font-size: 14px; color: var(--muted); }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; }
.reviews-list { display: grid; gap: 20px; }
.review-form-wrap { position: sticky; top: calc(var(--head-h) + 20px); }
@media (max-width: 960px) { .reviews-layout { grid-template-columns: 1fr; } .review-form-wrap { position: static; } }

/* ---------- Справочник и новости ---------- */
.reading-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
.reading-grid .link-list { columns: auto; }
.reading-news-only { grid-template-columns: 1fr; }
.reading-news-only .news-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 32px; }
@media (max-width: 860px) { .reading-news-only .news-list { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .reading-grid { grid-template-columns: 1fr; } }
.link-list { list-style: none; margin: 0 0 20px; padding: 0; columns: 2 280px; column-gap: 32px; }
.link-list li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.link-list a { display: block; padding: 12px 0; color: var(--ink); text-decoration: none; line-height: 1.4; }
.link-list a:hover { color: var(--river); }
.news-list { list-style: none; margin: 0 0 20px; padding: 0; }
.news-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.news-list time { display: block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.news-list a { font-weight: 600; font-size: 18px; color: var(--ink); text-decoration: none; }
.news-list a:hover { color: var(--river); }
.news-list p { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.news-list-page { max-width: 820px; }

.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0 32px; }
.article-card { padding: 20px 0 24px; border-top: 1px solid var(--line); }
.article-card-media { display: block; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; margin-bottom: 14px; }
.article-card-media img { width: 100%; height: 100%; object-fit: cover; }
.article-card h2 { font: 600 19px/1.35 var(--font-body); letter-spacing: 0; margin: 0 0 8px; }
.article-card h2 a { color: var(--ink); text-decoration: none; }
.article-card h2 a:hover { color: var(--river); }
.article-card p { color: var(--muted); font-size: 16px; margin: 0; }

/* ---------- Заявка ---------- */
.section-lead { padding-bottom: clamp(48px, 7vw, 96px); }
.section-lead .lead-grid { background: var(--river); color: #fff; border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 64px); max-width: calc(var(--wrap)); margin: 0 auto; }
@media (min-width: 1321px) { .section-lead .lead-grid { margin: 0 auto; } }
@media (max-width: 1320px) { .section-lead .lead-grid { margin: 0 var(--gutter); width: auto; } }
.lead-grid-single { grid-template-columns: 1fr !important; }
.lead-grid-single .lead-form { max-width: 860px; }
.lead-aside h2 { color: #fff; }
.lead-aside p { color: rgba(255,255,255,.82); }
.lead-aside .msgr-big { margin: 24px 0; }
.lead-phone { font: 700 clamp(22px, 2.4vw, 28px)/1.2 var(--font-display); color: var(--tent); text-decoration: none; }
.lead-phone:hover { color: var(--tent-hover); }
@media (max-width: 860px) { .section-lead .lead-grid { grid-template-columns: 1fr; } }

.lead-title { font-size: clamp(22px, 2.4vw, 28px); }
.lead-text { color: var(--muted); }
.section-lead .lead-title { color: #fff; }
.section-lead .lead-text { color: rgba(255,255,255,.8); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; margin: 0 0 16px; }
.fields-stack { grid-template-columns: 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.field > span, .field legend { font-size: 14px; font-weight: 500; }
.field i { color: var(--danger); font-style: normal; }
.section-lead .field i { color: var(--tent); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 48px; padding: 10px 14px;
	border: 1px solid var(--line); border-radius: var(--radius);
	background: var(--paper); color: var(--ink); font: 400 16px/1.4 var(--font-body);
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--river); box-shadow: 0 0 0 3px rgba(242,183,5,.55); }
.field.is-invalid input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(179,38,30,.2); }
.field-radios { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; gap: 8px; align-items: center; }
.field-radios legend { width: 100%; margin-bottom: 6px; padding: 0; }
.field-radios label { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(127,140,133,.5); font-size: 15px; cursor: pointer; }
.field-radios label:has(input:checked) { border-color: var(--tent); background: rgba(242,183,5,.14); }
.field-radios input, .consent input { accent-color: var(--tent); width: 18px; height: 18px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 18px; cursor: pointer; }
.consent input { margin-top: 2px; flex-shrink: 0; }
.section-lead .consent a, .section-lead .field-radios { color: #fff; }
.consent.is-invalid { color: var(--danger); }
.section-lead .consent.is-invalid { color: var(--tent); }
.lead-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.form-status { margin: 0; font-size: 15px; font-weight: 500; }
.form-status.is-error { color: var(--danger); }
.section-lead .form-status.is-error { color: var(--tent); }
.lead-form.is-done .fields, .lead-form.is-done .consent, .lead-form.is-done button[type=submit] { display: none; }
.lead-form.is-done .form-status { font-size: 18px; }
.review-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
@media (max-width: 560px) { .fields { grid-template-columns: 1fr; } }

/* ---------- Диалоги ---------- */
dialog { border: 0; padding: 0; color: inherit; }
dialog::backdrop { background: rgba(13,42,36,.6); }
.lead-dialog { width: min(640px, calc(100vw - 24px)); max-height: calc(100vh - 24px); border-radius: var(--radius-lg); background: var(--birch); padding: clamp(24px, 4vw, 40px); overflow: auto; }
.lead-dialog .lead-title { padding-right: 40px; }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; cursor: pointer; color: var(--ink); border-radius: 50%; }
.dialog-close:hover { background: var(--limestone); }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(8,20,17,.94); display: none; place-items: center; }
.lightbox[open] { display: grid; }
.lightbox img { max-width: calc(100vw - 32px); max-height: calc(100vh - 100px); object-fit: contain; border-radius: var(--radius); }
.lightbox .dialog-close { color: #fff; z-index: 2; }
.lightbox .dialog-close:hover { background: rgba(255,255,255,.12); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb-prev { left: 12px; } .lb-prev .ico { transform: rotate(180deg); }
.lb-next { right: 12px; }

/* ---------- Внутренние страницы ---------- */
.page-head { padding-top: 24px; padding-bottom: 16px; }
.page-title { max-width: 26ch; margin-bottom: .4em; }
.page-lead { max-width: 64ch; color: var(--muted); font-size: 18px; }
.crumbs ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: var(--line); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--river); text-decoration: underline; }

.prose { font-size: 17px; line-height: 1.7; overflow-wrap: break-word; }
.prose pre { overflow-x: auto; }
.prose-narrow { max-width: 760px; }
.prose h2 { font-size: clamp(22px, 2.4vw, 28px); margin-top: 1.6em; }
.prose h3 { font-family: var(--font-body); font-weight: 700; font-size: 20px; margin-top: 1.4em; }
.prose img { border-radius: var(--radius); margin: 1.2em 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 15px; display: block; overflow-x: auto; }
.prose th, .prose td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--limestone); }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--tent); }
.prose iframe { width: 100%; aspect-ratio: 16/9; height: auto; border: 0; border-radius: var(--radius); }
.prose > :first-child { margin-top: 0; }
.post-date { color: var(--muted); font-size: 15px; }
.post-cover img { border-radius: var(--radius-lg); }
.section-seo .prose { color: var(--ink); }
.section-seo { border-top: 1px solid var(--line); margin-top: clamp(48px, 7vw, 96px); padding-top: clamp(32px, 5vw, 56px); }

/* ---------- Тур ---------- */
.tour-facts { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 32px; }
.tour-facts li { display: flex; flex-direction: column; }
.tour-facts span { font-size: 14px; color: var(--muted); }
.tour-facts b { font-weight: 600; }

.gallery { display: grid; gap: 8px; margin-top: 16px; }
.gallery-multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 16 / 7; }
.gallery-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--limestone); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.03); }
.gallery-multi .gallery-item:first-child { grid-row: 1 / 3; }
.gallery:not(.gallery-multi) .gallery-item { aspect-ratio: 16 / 7; }
.gallery-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,42,36,.55); color: #fff; font-weight: 600; font-size: 18px; }
.gallery-multi:has(.gallery-item:nth-child(2):last-of-type) { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; }
@media (max-width: 700px) {
	.gallery-multi { grid-template-columns: repeat(4, 1fr); grid-template-rows: auto auto; aspect-ratio: auto; }
	.gallery-multi .gallery-item:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 3/2; }
	.gallery-multi .gallery-item:not(:first-child) { aspect-ratio: 1; }
}

.tour-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(28px, 5vw, 64px); align-items: start; margin-top: 40px; }
.tour-block { margin-bottom: 40px; }
.date-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--river); }
.date-list li { display: grid; grid-template-columns: minmax(170px, auto) 1fr auto; gap: 12px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.date-list b { font: 700 18px/1.2 var(--font-display); color: var(--river); letter-spacing: -0.01em; }
.date-list span { color: var(--muted); font-size: 15px; }
.date-list .is-full b { color: var(--muted); text-decoration: line-through; }
.date-list .is-full span { color: var(--danger); }
@media (max-width: 560px) { .date-list li { grid-template-columns: 1fr auto; } .date-list span { grid-column: 1; grid-row: 2; } .date-list .btn { grid-row: 1 / 3; grid-column: 2; } }
.incl { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.incl h2 { font-size: 22px; }
@media (max-width: 640px) { .incl { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { display: flex; gap: 10px; padding: 6px 0; }
.ticks .ico { flex-shrink: 0; margin-top: 4px; color: var(--river); }
.ticks-minus .ico { color: var(--muted); }

.tour-aside { position: sticky; top: calc(var(--head-h) + 20px); }
.book-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; display: grid; gap: 14px; }
.book-price { margin: 0; font: 700 32px/1.1 var(--font-display); letter-spacing: -0.02em; }
.book-price small { font: 400 15px/1 var(--font-body); color: var(--muted); letter-spacing: 0; }
.book-note, .book-next { margin: 0; font-size: 15px; color: var(--muted); }
.book-next b { color: var(--ink); }
.book-phone { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-weight: 600; color: var(--ink); text-decoration: none; }
.book-card .msgr { justify-content: center; }
.book-card .msgr a { width: 44px; height: 44px; justify-content: center; border-radius: 50%; background: var(--limestone); }
.book-card .msgr a:hover { background: var(--river); color: #fff; }
@media (max-width: 960px) {
	.tour-layout { grid-template-columns: 1fr; }
	.tour-aside { position: static; order: -1; }
}

/* ---------- Календарь ---------- */
.cal-month { font-size: 22px; margin: 36px 0 0; padding-bottom: 10px; border-bottom: 2px solid var(--river); }
.calendar .cal-month:first-child { margin-top: 8px; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px 110px 160px auto; gap: 8px 20px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cal-row[hidden] { display: none; }
.cal-date { font-weight: 700; color: var(--river); }
.cal-title { color: var(--ink); font-weight: 600; text-decoration: none; }
.cal-title:hover { color: var(--river); text-decoration: underline; }
.cal-days, .cal-note { color: var(--muted); font-size: 15px; }
.cal-price { font-weight: 600; white-space: nowrap; }
.cal-full { color: var(--danger); font-size: 15px; }
.cal-row.is-full .cal-date { color: var(--muted); text-decoration: line-through; }
@media (max-width: 960px) {
	.cal-row { grid-template-columns: 1fr auto; }
	.cal-date { grid-column: 1; }
	.cal-title { grid-column: 1; }
	.cal-days, .cal-price, .cal-note { grid-column: 1; display: inline; }
	.cal-row .btn, .cal-full { grid-column: 2; grid-row: 1 / span 3; }
}

/* ---------- Контакты ---------- */
.contacts-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; align-items: stretch; }
.contacts-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.contacts-card p { display: flex; gap: 10px; align-items: flex-start; }
.contacts-card .ico { margin-top: 4px; color: var(--river); flex-shrink: 0; }
.contacts-phone { display: block; font: 700 clamp(24px, 2.6vw, 30px)/1.2 var(--font-display); color: var(--ink); text-decoration: none; margin-bottom: 18px; }
.contacts-card .msgr-big { margin: 20px 0; }
.contacts-map { border-radius: var(--radius-lg); overflow: hidden; background: var(--limestone); min-height: 360px; }
.contacts-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.contacts-text { margin-top: 40px; }
.contacts-no-map { grid-template-columns: minmax(0, 640px); }
@media (max-width: 860px) { .contacts-grid { grid-template-columns: 1fr; } }

/* ---------- Поиск, пагинация ---------- */
.search-form { display: flex; gap: 10px; margin: 0 0 24px; }
.search-form input { flex: 1; min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font: inherit; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pager .page-numbers { min-width: 44px; min-height: 44px; padding: 0 14px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--paper); }
.pager .current { background: var(--river); color: #fff; border-color: var(--river); }
.pager .dots { border: 0; background: none; }

/* ---------- Подвал ---------- */
.site-foot { background: var(--river-deep); color: rgba(255,255,255,.8); padding: 56px 0 28px; font-size: 15px; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--tent); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr; gap: 40px; }
.foot-rto { margin-top: 18px; max-width: 34ch; }
.foot-contacts { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.foot-phone { font: 700 22px/1.2 var(--font-display); }
.foot-contacts .msgr { margin-top: 10px; }
.foot-contacts .msgr a { width: 40px; height: 40px; justify-content: center; border-radius: 50%; background: rgba(255,255,255,.08); }
.foot-contacts .msgr a:hover { background: var(--tent); color: var(--river-deep); }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.foot-nav ul { list-style: none; margin: 0; padding: 0; }
.foot-nav li { padding: 4px 0; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13.5px; color: rgba(255,255,255,.55); }
.foot-legal a { color: rgba(255,255,255,.75); text-decoration: underline; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr; } }

/* Нижняя панель связи на телефоне */
.dock { display: none; }
@media (max-width: 760px) {
	.dock {
		display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
		position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
		background: var(--paper); border-top: 1px solid var(--line);
		padding-bottom: env(safe-area-inset-bottom);
	}
	.dock a, .dock button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px 10px; font-size: 11.5px; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
	.dock .ico { color: var(--river); }
	.dock button { background: var(--tent); }
	.dock button .ico { color: var(--ink); }
	body { padding-bottom: 64px; }
}

/* Cookie */
.cookie { position: fixed; z-index: 45; left: 16px; bottom: 16px; max-width: 420px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 18px 40px -20px rgba(13,42,36,.45); display: flex; gap: 14px; align-items: center; font-size: 14px; }
.cookie[hidden] { display: none; }
.cookie p { margin: 0; min-width: 0; }
@media (max-width: 760px) {
	.cookie {
		left: 8px; right: 8px; bottom: calc(72px + env(safe-area-inset-bottom));
		width: auto; max-width: calc(100vw - 16px);
		flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 16px;
	}
	.cookie p { min-width: 0; overflow-wrap: break-word; }
	.cookie .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* Чипы и фильтры на телефоне — в одну прокручиваемую строку */
@media (max-width: 640px) {
	.kinds ul, .filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); padding: 0 var(--gutter) 4px; }
	.kinds ul::-webkit-scrollbar, .filter::-webkit-scrollbar { display: none; }
	.kinds a, .filter button { white-space: nowrap; flex-shrink: 0; }
	.section-head .filter { width: calc(100% + var(--gutter) * 2); }
}

/* Галерея из 3 и 4 фото */
.gallery-multi:has(> .gallery-item:nth-child(3):last-child) { grid-template-columns: 2fr 1fr; }
.gallery-multi:has(> .gallery-item:nth-child(4):last-child) > .gallery-item:nth-child(4) { grid-column: 2 / 4; }
@media (max-width: 700px) {
	.gallery-multi:has(> .gallery-item:nth-child(3):last-child) { grid-template-columns: repeat(4, 1fr); }
	.gallery-multi .gallery-item:not(:first-child) { grid-column: span 1; }
	.gallery-multi:has(> .gallery-item:nth-child(3):last-child) .gallery-item:not(:first-child),
	.gallery-multi:has(> .gallery-item:nth-child(2):last-child) .gallery-item:not(:first-child) { grid-column: span 2; }
}

/* Блок «О компании» без текста главной: факты на всю ширину в ряд */
.about-solo { grid-template-columns: 1fr; }
.about-solo .about-facts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 0 clamp(32px, 5vw, 72px); align-items: start; }
.about-solo .about-facts h2 { grid-column: 1; grid-row: 1 / span 2; margin: 0; }
.about-solo .facts { grid-column: 2; margin: 0 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.about-solo .facts div { grid-template-columns: 1fr; gap: 6px; }
.about-solo .about-note { grid-column: 2; }
@media (max-width: 960px) {
	.about-solo .about-facts { grid-template-columns: 1fr; }
	.about-solo .about-facts h2, .about-solo .facts, .about-solo .about-note { grid-column: 1; grid-row: auto; }
	.about-solo .facts { margin-top: 24px; }
}
@media (max-width: 560px) { .about-solo .facts { grid-template-columns: 1fr; } }

/* Логотип со старого сайта */
.brand-mark-img { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.brand-invert .brand-mark-img { background: #fff; border-radius: 12px; padding: 4px; width: 56px; height: 56px; }
@media (max-width: 420px) { .brand-mark-img { width: 42px; height: 42px; } }

.dialog-msgr { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.dialog-msgr p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.field-radios label { white-space: nowrap; }
