/* =====================================================================
   Звичайний Київ — основні стилі (mobile-first)
   ===================================================================== */

:root {
	--bg: #fbf8f4;
	--surface: #ffffff;
	--surface-2: #f4efe8;
	--ink: #17171c;
	--muted: #5d5f6b;
	--line: #e8e1d7;
	--accent: #e4572e;
	--accent-ink: #ffffff;
	--accent-soft: #fde9e2;
	--sky: #1f5eff;
	--gold: #f2b01e;
	--ok: #15803d;
	--ok-soft: #dcf5e4;
	--warn: #b45309;
	--warn-soft: #fef3c7;
	--danger: #b91c1c;
	--shadow: 0 1px 2px rgba(23, 23, 28, .06), 0 8px 24px rgba(23, 23, 28, .06);
	--shadow-lg: 0 18px 50px rgba(23, 23, 28, .14);
	--radius: 18px;
	--radius-sm: 10px;
	--font-display: "Unbounded", ui-sans-serif, system-ui, sans-serif;
	--font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--header-h: 64px;
	--gutter: 16px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--bg: #111114;
		--surface: #1a1a1f;
		--surface-2: #232329;
		--ink: #f2f0ec;
		--muted: #a4a3ad;
		--line: #2d2d35;
		--accent: #ff7a50;
		--accent-ink: #160b07;
		--accent-soft: #3a1f16;
		--sky: #7aa2ff;
		--ok: #4ade80;
		--ok-soft: #12321f;
		--warn: #fbbf24;
		--warn-soft: #3a2c0c;
		--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
		color-scheme: dark;
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 60px); }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font-body); -webkit-font-smoothing: antialiased; padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .5em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; border-radius: 6px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kn-skip { position: absolute; left: -999px; top: 8px; z-index: 1000; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 8px; }
.kn-skip:focus { left: 8px; }
.kn-hp { position: absolute; left: -9999px; }
.kn-muted { color: var(--muted); }
.kn-small { font-size: .875rem; }
.kn-lead { font-size: 1.125rem; color: var(--muted); }

.kn-i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.kn-container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter); }
.kn-container--narrow { max-width: 780px; }

/* ---------- Кнопки ---------- */
.kn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s; white-space: nowrap; }
.kn-btn:hover { border-color: var(--ink); color: var(--ink); }
.kn-btn:active { transform: scale(.98); }
.kn-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.kn-btn--primary:hover { background: color-mix(in srgb, var(--accent) 88%, #000); border-color: transparent; color: var(--accent-ink); }
.kn-btn--ghost { background: transparent; }
.kn-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .875rem; }
.kn-btn--lg { min-height: 52px; padding: 12px 26px; font-size: 1.05rem; }
.kn-iconbtn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--ink); }
.kn-iconbtn:hover { background: var(--surface-2); color: var(--ink); }
.kn-iconbtn .kn-i { width: 22px; height: 22px; }

/* ---------- Шапка ---------- */
.kn-header { position: sticky; top: 0; z-index: 900; border-bottom: 1px solid transparent; transition: border-color .2s; }
/* Розмиття — на окремому шарі: backdrop-filter на самій шапці «ламає» position:fixed у мобільному меню. */
.kn-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
body.kn-menu-open { overflow: hidden; }
.kn-header.is-scrolled { border-bottom-color: var(--line); }
.kn-header__inner { display: flex; align-items: center; gap: 12px; height: var(--header-h); }
.kn-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin-right: auto; }
.kn-logo__mark { display: grid; place-items: center; font-size: .85rem !important; letter-spacing: -.04em; width: 36px; height: 36px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-size: 1.1rem; transform: rotate(-6deg); }
.kn-logo__img { max-height: 40px; width: auto; }
.kn-logo--light { color: #fff; }
.kn-header__actions { display: flex; align-items: center; gap: 2px; }
.kn-header__add span { display: none; }
.kn-nav { display: none; }
.kn-nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.kn-nav__list a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.kn-nav__list a:hover, .kn-nav__list .current-menu-item > a, .kn-nav__list a[aria-current] { background: var(--surface-2); color: var(--ink); }
.kn-nav__list .sub-menu { display: none; }

.kn-nav.is-open { display: block; position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; height: calc(100dvh - var(--header-h)); background: var(--bg); padding: 16px 16px calc(80px + env(safe-area-inset-bottom)); z-index: 899; overflow: auto; overscroll-behavior: contain; }
.kn-nav.is-open .kn-nav__list a[aria-current] { color: var(--accent); }
.kn-nav.is-open .kn-nav__list { flex-direction: column; }
.kn-nav.is-open .kn-nav__list a { font-size: 1.25rem; padding: 14px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
.kn-nav.is-open .sub-menu { display: block; list-style: none; padding-left: 16px; }

.kn-search { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 0; }
.kn-search__form { display: flex; align-items: center; gap: 10px; }
.kn-search__form input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 1.1rem; padding: 8px 0; outline: none; }

@media (min-width: 960px) {
	body { padding-bottom: 0; }
	.kn-nav { display: block; }
	.kn-header__burger { display: none; }
	.kn-header__add span { display: inline; }
	.kn-logo { margin-right: 24px; }
	.kn-nav { margin-right: auto; }
	.kn-nav__list .menu-item-has-children { position: relative; }
	.kn-nav__list .menu-item-has-children:hover > .sub-menu { display: block; position: absolute; top: 100%; left: 0; min-width: 220px; list-style: none; margin: 0; padding: 8px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); }
}

/* ---------- Хлібні крихти ---------- */
.kn-crumbs { margin: 14px 0 10px; font-size: .85rem; color: var(--muted); overflow-x: auto; scrollbar-width: none; }
.kn-crumbs ol { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.kn-crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.kn-crumbs a { text-decoration: none; }

/* ---------- Чипи ---------- */
.kn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.kn-chips--scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); padding: 2px var(--gutter); }
.kn-chips--scroll::-webkit-scrollbar { display: none; }
.kn-chip { --chip: var(--ink); display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; cursor: pointer; }
.kn-chip .kn-i { color: var(--chip); }
.kn-chip small { color: var(--muted); font-weight: 500; }
.kn-chip:hover { border-color: var(--chip); color: var(--ink); }
.kn-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.kn-chip.is-active .kn-i, .kn-chip.is-active small { color: inherit; }
.kn-chip--sm { padding: 3px 10px; font-size: .78rem; background: color-mix(in srgb, var(--chip) 12%, var(--surface)); border-color: transparent; color: color-mix(in srgb, var(--chip) 75%, var(--ink)); }

/* ---------- Сітки та картки ---------- */
.kn-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .kn-grid--2, .kn-grid--3, .kn-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .kn-grid--3 { grid-template-columns: repeat(3, 1fr); } .kn-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.kn-stack { display: grid; gap: 14px; }

.kn-card { position: relative; display: flex; flex-direction: column; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s; }
.kn-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kn-card__media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--surface-2); overflow: hidden; }
.kn-card__body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; flex: 1; }
.kn-card__top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-height: 22px; }
.kn-card__title { font-family: var(--font-body); font-size: 1.08rem; font-weight: 700; line-height: 1.3; margin: 0; letter-spacing: 0; }
.kn-card__title a { text-decoration: none; }
.kn-card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.kn-card a:not(.kn-card__title a) { position: relative; z-index: 2; }
.kn-card__meta { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: .875rem; color: var(--muted); line-height: 1.4; }
.kn-card__meta .kn-i { margin-top: 1px; }
.kn-card__excerpt { margin: 0; color: var(--muted); font-size: .92rem; }
.kn-card__price { margin: auto 0 0; padding-top: 4px; font-weight: 700; }
.kn-card__date { font-size: .8rem; color: var(--muted); margin-top: auto; }
.kn-card--wide { flex-direction: row; }
.kn-card--wide .kn-card__media { width: 120px; aspect-ratio: 1; flex: none; }
@media (min-width: 600px) { .kn-card--wide .kn-card__media { width: 180px; } }
.kn-kicker { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); text-decoration: none; }

.kn-thumb__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.kn-card:hover .kn-thumb__img { transform: scale(1.04); }
.kn-thumb__ph { --ph: var(--accent); display: grid; place-items: center; width: 100%; height: 100%; min-height: 100%; background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--ph) 30%, var(--surface)) 0%, color-mix(in srgb, var(--ph) 10%, var(--surface)) 60%); color: var(--ph); }
.kn-thumb__ph .kn-i { width: 30%; height: 30%; max-width: 64px; max-height: 64px; stroke-width: 1.4; opacity: .85; }

.kn-rail { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 4px var(--gutter) 18px; }
.kn-rail::-webkit-scrollbar { display: none; }
.kn-rail > * { scroll-snap-align: start; }
@media (min-width: 600px) { .kn-rail { grid-auto-columns: 42%; } }
@media (min-width: 960px) { .kn-rail { grid-auto-columns: calc((100% - 42px) / 4); } }

/* ---------- Бейджі ---------- */
.kn-open { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.kn-open i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.kn-open--open, .kn-open--always { color: var(--ok); }
.kn-open--closed { color: var(--muted); }
.kn-open--closed_temp { color: var(--danger); }
.kn-card__media .kn-open { position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(6px); }

.kn-rating { display: inline-flex; align-items: center; gap: 4px; font-size: .875rem; }
.kn-rating__star { color: var(--gold); fill: var(--gold); stroke: none; }
.kn-rating__count { color: var(--muted); }
.kn-rating--empty { color: var(--muted); }

.kn-stars { --s: 18px; position: relative; display: inline-block; width: calc(var(--s) * 5); height: var(--s); vertical-align: -3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23d6d0c6' d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--s) var(--s); }
.kn-stars__fill { position: absolute; inset: 0 auto 0 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23f2b01e' d='m12 3 2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z'/%3E%3C/svg%3E") repeat-x 0 0 / var(--s) var(--s); }
.kn-stars--sm { --s: 14px; }

.kn-datebadge { position: absolute; top: 10px; left: 10px; display: grid; justify-items: center; min-width: 52px; padding: 6px 8px; border-radius: 12px; background: var(--surface); color: var(--ink); line-height: 1; box-shadow: var(--shadow); }
.kn-datebadge b { font-family: var(--font-display); font-size: 1.3rem; }
.kn-datebadge span { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-top: 3px; }
.kn-datebadge--now b { font-size: .95rem; }
.kn-mini-list .kn-datebadge { position: static; box-shadow: none; background: var(--surface-2); }
.kn-flag { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; }
.kn-flag--inline { position: static; }
.kn-flag--muted { background: var(--muted); }
.kn-age { font-size: .75rem; font-weight: 700; padding: 2px 7px; border: 1.5px solid currentColor; border-radius: 6px; color: var(--muted); }
.kn-discount { position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-size: 1.05rem; transform: rotate(-3deg); box-shadow: var(--shadow); }
.kn-discount--lg { font-size: 1.6rem; padding: 10px 18px; }
.kn-verified { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; color: var(--ok); }
.kn-price-range { font-weight: 700; letter-spacing: .05em; color: var(--muted); }
.kn-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-2); }
.kn-badge--publish { background: var(--ok-soft); color: var(--ok); }
.kn-badge--pending { background: var(--warn-soft); color: var(--warn); }

.kn-metro { display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; font-size: .9rem; text-decoration: none; }
.kn-metro::before { content: "М"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); color: #fff; font-size: .7rem; font-weight: 800; }
.kn-metro--red::before { background: #e3242b; }
.kn-metro--blue::before { background: #0072bc; }
.kn-metro--green::before { background: #009e49; }

/* ---------- Секції ---------- */
.kn-section { margin: 36px 0; }
.kn-container.kn-section { margin-left: auto; margin-right: auto; }
.kn-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.kn-section__title { font-size: clamp(1.25rem, 3.5vw, 1.75rem); margin: 0; }
.kn-section__more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; color: var(--accent); white-space: nowrap; }
.kn-h2 { font-size: clamp(1.2rem, 3vw, 1.5rem); }
.kn-h3 { font-size: 1.1rem; }

/* ---------- Головна ---------- */
.kn-hero { position: relative; padding: 40px 0 34px; background: radial-gradient(90% 120% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent) 0%, transparent 60%), radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--sky) 14%, transparent) 0%, transparent 60%); overflow: hidden; }
.kn-hero--image { color: #fff; }
.kn-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kn-hero--image::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.6)); }
.kn-hero__inner { position: relative; z-index: 1; }
.kn-hero__title { font-size: clamp(1.9rem, 7vw, 3.6rem); max-width: 14ch; margin-bottom: 12px; }
.kn-hero__text { font-size: 1.1rem; max-width: 52ch; margin: 0 0 22px; opacity: .85; }
.kn-hero__search { display: flex; align-items: center; gap: 10px; max-width: 620px; padding: 6px 6px 6px 18px; background: var(--surface); color: var(--ink); border-radius: 999px; box-shadow: var(--shadow-lg); }
.kn-hero__search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 1rem; padding: 10px 0; }
.kn-hero__search--inline { box-shadow: none; border: 1px solid var(--line); margin-top: 14px; }
.kn-hero__quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kn-hero__quick a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent); backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }

.kn-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kn-cat { --chip: var(--accent); display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: var(--radius); background: var(--surface); text-decoration: none; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); line-height: 1.25; }
.kn-cat__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: color-mix(in srgb, var(--chip) 14%, var(--surface)); color: var(--chip); }
.kn-cat:hover { color: var(--chip); }

.kn-maptease { background: var(--ink); color: var(--bg); padding: 36px 0; margin: 48px 0; }
.kn-maptease__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.kn-maptease p { max-width: 50ch; opacity: .8; }
.kn-maptease__art { display: none; }
@media (min-width: 760px) {
	.kn-maptease__art { display: grid; place-items: center; width: 220px; height: 160px; border-radius: 24px; background: repeating-linear-gradient(45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px), repeating-linear-gradient(-45deg, rgba(255,255,255,.05) 0 2px, transparent 2px 22px); color: var(--accent); }
	.kn-maptease__art .kn-i { width: 64px; height: 64px; }
}
.kn-home__split { display: grid; gap: 32px; }
@media (min-width: 960px) { .kn-home__split { grid-template-columns: 1.3fr 1fr; } }
.kn-quotes { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.kn-quotes--grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.kn-quotes li { padding: 16px 18px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.kn-quotes blockquote { margin: 8px 0; font-size: 1rem; }
.kn-quotes p { margin: 0; }
.kn-districts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kn-districts a { display: flex; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 600; }
.kn-districts small { color: var(--muted); }

.kn-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px; margin: 32px 0; border-radius: var(--radius); background: var(--accent-soft); border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }

/* ---------- Архіви ---------- */
.kn-archive { padding-bottom: 40px; }
.kn-archive__head { margin: 8px 0 8px; }
.kn-archive__title { font-size: clamp(1.6rem, 5vw, 2.6rem); margin-bottom: 8px; }
.kn-archive__lead { color: var(--muted); max-width: 70ch; }
.kn-archive__lead p { margin: 0 0 .5em; }
.kn-archive__count { color: var(--muted); font-size: .9rem; margin: 4px 0 14px; }
.kn-archive__past { margin-top: 24px; }
.kn-archive__text { max-width: 78ch; }
.kn-empty { padding: 40px 20px; text-align: center; background: var(--surface); border-radius: var(--radius); display: grid; gap: 12px; justify-items: center; }

.kn-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.kn-select { position: relative; display: inline-flex; align-items: center; gap: 6px; }
.kn-select select, summary.kn-select { appearance: none; -webkit-appearance: none; min-height: 40px; padding: 8px 34px 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235d5f6b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 14px; font-size: .9rem; font-weight: 600; cursor: pointer; max-width: 220px; }
summary.kn-select { list-style: none; display: inline-flex; align-items: center; gap: 6px; }
summary.kn-select::-webkit-details-marker { display: none; }
summary.kn-select b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; }
.kn-dropdown { position: relative; }
.kn-dropdown > summary { list-style: none; }
.kn-dropdown > summary::-webkit-details-marker { display: none; }
.kn-dropdown__menu { position: absolute; z-index: 50; top: calc(100% + 6px); left: 0; min-width: 240px; padding: 10px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 4px; }
.kn-dropdown__menu a { padding: 8px 10px; border-radius: 8px; text-decoration: none; }
.kn-dropdown__menu a:hover { background: var(--surface-2); }
.kn-check { display: flex; gap: 8px; align-items: center; padding: 6px 4px; cursor: pointer; font-size: .92rem; }
.kn-check input { width: 18px; height: 18px; accent-color: var(--accent); }
.kn-viewtoggle { display: inline-flex; margin-left: auto; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.kn-viewtoggle button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 7px 12px; border-radius: 999px; font-weight: 600; font-size: .875rem; cursor: pointer; color: var(--muted); }
.kn-viewtoggle button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.kn-datenav { display: flex; gap: 6px; align-items: center; overflow-x: auto; scrollbar-width: none; margin: 8px calc(-1 * var(--gutter)) 4px; padding: 2px var(--gutter); }
.kn-datenav::-webkit-scrollbar { display: none; }
.kn-datenav__item { padding: 10px 16px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 700; white-space: nowrap; border: 1px solid var(--line); }
.kn-datenav__item.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kn-datenav__pick { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.kn-datenav__pick input { border: 0; background: transparent; font-weight: 600; width: 140px; }
.kn-datenav--compact { margin-bottom: 12px; }
.kn-events__day { font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin: 26px 0 12px; padding-bottom: 8px; border-bottom: 2px solid var(--ink); }
.kn-events__day:first-child { margin-top: 12px; }

.kn-seo-links ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kn-seo-links a { padding: 6px 12px; border-radius: 999px; background: var(--surface); text-decoration: none; font-size: .9rem; }
.kn-seo-links span { color: var(--muted); font-size: .8rem; }

.kn-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 32px 0 8px; }
.kn-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 12px; background: var(--surface); text-decoration: none; font-weight: 700; }
.kn-pagination .current { background: var(--ink); color: var(--bg); }

/* ---------- Карти ---------- */
.kn-map { position: relative; z-index: 0; width: 100%; height: 320px; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.kn-map--listing { height: min(70vh, 640px); margin-bottom: 18px; }
.kn-map--place { height: 300px; margin-top: 14px; }
.kn-map--picker { height: 300px; }
.kn-mappage { position: relative; }
.kn-mappage__bar { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: grid; gap: 8px; pointer-events: none; }
.kn-mappage__bar > * { pointer-events: auto; }
.kn-mappage__title { font-size: 1.05rem; margin: 0; padding: 8px 14px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); justify-self: start; }
.kn-mappage .kn-chips { flex-wrap: nowrap; overflow-x: auto; margin: 0; scrollbar-width: none; }
.kn-mappage .kn-chip { box-shadow: var(--shadow); }
.kn-map--full { height: calc(100dvh - var(--header-h) - 64px); border-radius: 0; }
@media (min-width: 960px) { .kn-map--full { height: calc(100dvh - var(--header-h)); } }
.kn-route-map .kn-footer { display: none; }

.kn-marker { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--c, var(--accent)); border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.kn-marker svg { transform: rotate(45deg); width: 16px; height: 16px; color: #fff; }
.kn-marker--me { width: 18px; height: 18px; border-radius: 50%; transform: none; background: var(--sky); box-shadow: 0 0 0 6px color-mix(in srgb, var(--sky) 30%, transparent); }
.leaflet-popup-content-wrapper { border-radius: 14px !important; }
.leaflet-popup-content { margin: 12px 14px !important; font: 14px/1.4 var(--font-body); min-width: 200px; }
.kn-pop { display: grid; grid-template-columns: 56px 1fr; gap: 10px; align-items: center; }
.kn-pop img, .kn-pop__ph { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--c, #eee); }
.kn-pop b { display: block; font-size: .95rem; margin-bottom: 2px; }
.kn-pop a { color: #17171c; text-decoration: none; }
.kn-pop small { color: #5d5f6b; display: block; }
.kn-pop .kn-pop__type { color: var(--c); font-weight: 700; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: color-mix(in srgb, #e4572e 30%, transparent) !important; }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: #e4572e !important; color: #fff !important; font-weight: 700; }
.kn-locate { background: #fff; border: 0; width: 34px; height: 34px; border-radius: 4px; cursor: pointer; display: grid; place-items: center; }

/* ---------- Сторінка місця / події ---------- */
.kn-single { padding-bottom: 40px; }
.kn-single__layout { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
.kn-single__layout > * { min-width: 0; }
main { overflow-x: clip; }
@media (min-width: 1024px) {
	.kn-single__layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
	.kn-single__aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.kn-single__aside { display: grid; gap: 16px; }
.kn-single__head { margin: 18px 0 16px; }
.kn-single__chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.kn-single__title { font-size: clamp(1.6rem, 5.5vw, 2.8rem); margin: 0 0 12px; overflow-wrap: anywhere; }
.kn-single__summary { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.kn-single__rating { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.kn-single__rating--empty { color: var(--accent); font-weight: 600; }
.kn-single__addr, .kn-single__metro { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.kn-single__metro { flex-wrap: wrap; gap: 6px 0; }

.kn-gallery { display: grid; gap: 6px; border-radius: var(--radius); overflow: hidden; margin-top: 6px; grid-template-columns: 1fr; height: 260px; }
.kn-gallery__item { position: relative; display: block; overflow: hidden; background: var(--surface-2); }
.kn-gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kn-gallery__item:not(:first-child) { display: none; }
.kn-gallery__more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.45); color: #fff; font-weight: 700; }
@media (min-width: 760px) {
	.kn-gallery { height: 420px; }
	.kn-gallery--2 { grid-template-columns: 2fr 1fr; }
	.kn-gallery--3, .kn-gallery--4, .kn-gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
	.kn-gallery__item:not(:first-child):not([hidden]) { display: block; }
	.kn-gallery--3 .kn-gallery__item:first-child, .kn-gallery--4 .kn-gallery__item:first-child, .kn-gallery--5 .kn-gallery__item:first-child { grid-row: span 2; }
	.kn-gallery--3 .kn-gallery__item:nth-child(2) { grid-column: span 2; }
	.kn-gallery--3 .kn-gallery__item:nth-child(3) { grid-column: span 2; }
	.kn-gallery--4 .kn-gallery__item:nth-child(4) { grid-column: span 2; }
}

.kn-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.kn-share { display: contents; }
.kn-anchors { position: sticky; top: var(--header-h); z-index: 20; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin: 18px calc(-1 * var(--gutter)) 0; padding: 8px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.kn-anchors::-webkit-scrollbar { display: none; }
.kn-anchors a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; color: var(--muted); }
.kn-anchors a.is-active, .kn-anchors a:hover { background: var(--ink); color: var(--bg); }
.kn-anchors sup { font-size: .7em; opacity: .7; }

.kn-prose { font-size: 1.05rem; line-height: 1.75; }
.kn-prose > :first-child { margin-top: 0; }
.kn-prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.kn-prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.kn-prose img { border-radius: var(--radius-sm); }
.kn-prose a { color: var(--accent); }
.kn-prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--accent); font-size: 1.15rem; }
.kn-prose table { width: 100%; border-collapse: collapse; }
.kn-prose td, .kn-prose th { padding: 8px; border-bottom: 1px solid var(--line); text-align: left; }
.kn-prose .kn-grid { margin: 1.5em 0; }

.kn-features { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kn-features a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; background: var(--ok-soft); color: var(--ok); text-decoration: none; font-weight: 600; font-size: .9rem; }

.kn-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.kn-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.kn-faq summary::-webkit-details-marker { display: none; }
.kn-faq summary > span { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.kn-faq summary::after { flex: none; }
.kn-faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--accent); }
.kn-faq details[open] summary::after { content: "–"; }
.kn-faq p { margin: 10px 0 0; color: var(--muted); }

.kn-infocard { padding: 20px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); }
.kn-infocard__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 1rem; font-weight: 800; margin: 18px 0 8px; }
.kn-infocard__title:first-child { margin-top: 0; }
.kn-infocard p { margin: 0 0 6px; }
.kn-infocard--cta { background: var(--surface-2); box-shadow: none; display: grid; gap: 10px; justify-items: start; }
.kn-hours { width: 100%; border-collapse: collapse; font-size: .92rem; }
.kn-hours th { text-align: left; font-weight: 500; padding: 4px 0; }
.kn-hours td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.kn-hours tr.is-today { font-weight: 800; color: var(--accent); }
.kn-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; word-break: break-word; }
.kn-contacts a { text-decoration: none; font-weight: 600; }
.kn-social { display: flex; gap: 8px; margin-top: 14px; }
.kn-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); color: inherit; }
.kn-social--dark a { background: var(--surface-2); }

.kn-event-hero { display: grid; gap: 20px; margin: 12px 0 8px; }
.kn-event-hero__poster { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
@media (min-width: 860px) { .kn-event-hero { grid-template-columns: 420px 1fr; gap: 36px; align-items: start; } .kn-event-hero__poster { aspect-ratio: 3 / 4; } }
.kn-facts { display: grid; gap: 12px; margin: 16px 0; }
.kn-facts > div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; }
.kn-facts dt { display: flex; gap: 8px; align-items: center; color: var(--muted); font-weight: 600; }
.kn-facts dd { margin: 0; font-weight: 600; }
.kn-sessions ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kn-sessions li { padding: 6px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); font-size: .9rem; }
.kn-mini-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.kn-mini-list li { display: flex; gap: 12px; align-items: center; }
.kn-mini-list a { font-weight: 700; text-decoration: none; display: block; line-height: 1.3; }

.kn-promo { background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); margin-top: 8px; }
.kn-promo__media { position: relative; aspect-ratio: 16 / 7; background: var(--surface-2); }
.kn-promo__body { padding: 22px; }
.kn-promocode { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border: 2px dashed var(--accent); border-radius: 14px; margin: 16px 0; background: var(--accent-soft); }
.kn-promocode code { font: 700 1.3rem/1 ui-monospace, monospace; letter-spacing: .08em; }

/* ---------- Відгуки ---------- */
.kn-reviews__summary { display: grid; gap: 20px; padding: 20px; background: var(--surface); border-radius: var(--radius); margin-bottom: 18px; }
@media (min-width: 600px) { .kn-reviews__summary { grid-template-columns: 170px 1fr; align-items: center; } }
.kn-reviews__score { display: grid; justify-items: start; gap: 4px; }
.kn-reviews__score b { font-family: var(--font-display); font-size: 3rem; line-height: 1; }
.kn-reviews__score span { color: var(--muted); font-size: .9rem; }
.kn-reviews__bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.kn-reviews__bars li { display: grid; grid-template-columns: 30px 1fr 30px; gap: 10px; align-items: center; font-size: .85rem; color: var(--muted); }
.kn-reviews__bars i { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.kn-reviews__bars i b { display: block; height: 100%; background: var(--gold); border-radius: 4px; }
.kn-reviews__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kn-review { padding: 18px; background: var(--surface); border-radius: var(--radius); }
.kn-review__head { display: flex; align-items: center; gap: 12px; }
.kn-review__head > div { flex: 1; display: grid; line-height: 1.3; }
.kn-review__head time { font-size: .8rem; color: var(--muted); }
.kn-review__avatar { border-radius: 50%; }
.kn-review__author a { text-decoration: none; }
.kn-review__body p { margin: 10px 0 0; }
.kn-review__reply { margin: 12px 0 0 16px; padding: 12px 14px; border-left: 3px solid var(--line); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: .95rem; }
.kn-review__reply.is-owner { border-left-color: var(--accent); }
.kn-review__reply p { margin: 6px 0 0; }
.kn-review__answer { margin-top: 10px; }
.kn-review__answer summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: .9rem; }
.kn-review__answer form { display: grid; gap: 8px; margin-top: 8px; }
.kn-review-form { margin-top: 24px; padding: 22px; background: var(--surface); border-radius: var(--radius); border: 1px solid var(--line); }

.kn-rate { border: 0; padding: 0; margin: 0 0 6px; }
.kn-rate legend { font-weight: 700; margin-bottom: 6px; padding: 0; }
.kn-stars-input { display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.kn-stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.kn-stars-input label { cursor: pointer; padding: 2px; color: #d6d0c6; }
.kn-stars-input label .kn-i { width: 36px; height: 36px; fill: currentColor; stroke: none; }
.kn-stars-input input:checked ~ label, .kn-stars-input label:hover, .kn-stars-input label:hover ~ label { color: var(--gold); }
.kn-stars-input input:focus-visible + label { outline: 3px solid var(--sky); border-radius: 6px; }

/* ---------- Форми ---------- */
.kn-form { display: grid; gap: 14px; }
@media (min-width: 700px) { .kn-form { grid-template-columns: 1fr 1fr; } .kn-form > .kn-form__row--wide, .kn-form > .kn-rate, .kn-form > button, .kn-form > p, .kn-form > .kn-btn { grid-column: 1 / -1; } }
.kn-form > button { justify-self: start; }
.kn-form__row { display: grid; gap: 6px; }
.kn-form__row--coord { display: none; }
.kn-form label { font-weight: 600; font-size: .92rem; }
.kn-form input:not([type=checkbox]):not([type=radio]):not([type=file]), .kn-form select, .kn-form textarea, .kn-review__answer textarea { width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
.kn-form textarea { min-height: 120px; resize: vertical; }
.kn-form input:focus, .kn-form select:focus, .kn-form textarea:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sky) 25%, transparent); }
.kn-form__hint { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.req { color: var(--accent); }
.kn-autocomplete { position: relative; }
.kn-autocomplete__list { position: absolute; z-index: 60; left: 0; right: 0; top: 100%; margin: 4px 0 0; padding: 6px; list-style: none; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); }
.kn-autocomplete__list:empty { display: none; }
.kn-autocomplete__list li { padding: 10px; border-radius: 8px; cursor: pointer; }
.kn-autocomplete__list li:hover, .kn-autocomplete__list li[aria-selected=true] { background: var(--surface-2); }
.kn-autocomplete__list small { display: block; color: var(--muted); }

.kn-notice { padding: 14px 16px; border-radius: 12px; background: var(--surface-2); margin: 12px 0; }
.kn-notice--ok { background: var(--ok-soft); color: var(--ok); }
.kn-notice--warn { background: var(--warn-soft); color: var(--warn); }
.kn-notice--error { background: #fde2e2; color: var(--danger); }

.kn-page { padding-bottom: 48px; }
.kn-page__title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin: 12px 0 16px; }
.kn-submit__choices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 20px; }
.kn-choice { display: grid; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; }
.kn-choice strong { font-family: var(--font-display); font-size: 1.3rem; }
.kn-choice span { color: var(--muted); }
.kn-cabinet__block { margin: 28px 0; }
.kn-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.kn-table th, .kn-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.kn-cabinet__reviews { list-style: none; padding: 0; display: grid; gap: 10px; }
.kn-cabinet__reviews li { padding: 14px; background: var(--surface); border-radius: 12px; }

/* ---------- Стаття ---------- */
.kn-article__head { margin: 16px 0 22px; }
.kn-article__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; color: var(--muted); font-size: .9rem; }
.kn-article__meta img { border-radius: 50%; }
.kn-article__cover { margin: 0 auto 28px; }
.kn-article__cover img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.kn-article__foot { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.kn-tags a { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); text-decoration: none; font-size: .85rem; }
.kn-embed { margin: 1.5em 0; }
.kn-comments__list { padding-left: 0; list-style: none; }
.kn-author__head { display: flex; gap: 18px; align-items: center; margin: 14px 0 10px; }
.kn-author__head img { border-radius: 50%; }

.kn-404 { text-align: center; padding: 48px var(--gutter) 64px; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; }
.kn-404 > * { max-width: 100%; }
.kn-404 .kn-hero__search { width: 100%; }
.kn-404__code { font-family: var(--font-display); font-size: clamp(4rem, 20vw, 9rem); line-height: 1; margin: 0; color: var(--accent); }

/* ---------- Футер ---------- */
.kn-footer { margin-top: 48px; padding: 44px 0 20px; background: #121216; color: #d9d7d2; }
.kn-footer a { text-decoration: none; }
.kn-footer a:hover { color: #fff; }
.kn-footer__grid { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.kn-footer__about { grid-column: 1 / -1; max-width: 420px; }
.kn-footer__about p { opacity: .75; font-size: .92rem; }
@media (min-width: 900px) { .kn-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } .kn-footer__about { grid-column: auto; } }
.kn-footer__title { font-family: var(--font-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #8d8c94; margin-bottom: 12px; }
.kn-footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .92rem; }
.kn-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; opacity: .7; }
.kn-footer__legal { list-style: none; display: flex; gap: 14px; margin: 0; padding: 0; }

/* ---------- Нижня панель (мобільні) ---------- */
.kn-tabbar { position: fixed; z-index: 950; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.kn-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 4px 0; font-size: .7rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.kn-tabbar a .kn-i { width: 22px; height: 22px; }
.kn-tabbar a[aria-current] { color: var(--accent); }
@media (min-width: 960px) { .kn-tabbar { display: none; } }

/* ---------- Лайтбокс ---------- */
.kn-lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; background: rgba(10,10,12,.92); padding: 16px; }
.kn-lightbox img { max-width: 100%; max-height: 86vh; border-radius: 8px; }
.kn-lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 50%; cursor: pointer; font-size: 1.4rem; }
.kn-lightbox__close { top: 16px; right: 16px; }
.kn-lightbox__prev { left: 12px; top: 50%; }
.kn-lightbox__next { right: 12px; top: 50%; }
.kn-toast { position: fixed; z-index: 2100; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); transform: translateX(-50%); padding: 10px 18px; border-radius: 999px; background: var(--ink); color: var(--bg); font-weight: 600; box-shadow: var(--shadow-lg); }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
	.kn-header, .kn-footer, .kn-tabbar, .kn-actions, .kn-anchors, .kn-map, .kn-review-form { display: none !important; }
}

/* ---------- Головна: карта та розділи ---------- */
.kn-homemap { margin: 40px 0; }
.kn-map--home { height: min(68vh, 560px); box-shadow: var(--shadow); }
.kn-homemap .kn-chips { margin: 0 0 12px; }
.kn-homecat .kn-section__title { display: flex; align-items: center; gap: 10px; }
.kn-homecat .kn-section__title::before { content: ""; width: 10px; height: 28px; border-radius: 4px; background: var(--chip); }
.kn-chips--tight { margin: -6px 0 12px; }

/* ---------- Укриття ---------- */
.kn-shelter { padding: 18px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--sky) 9%, var(--surface)); border: 1px solid color-mix(in srgb, var(--sky) 30%, transparent); }
.kn-shelter--none { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.kn-single__main .kn-shelter { margin: 20px 0; }
.kn-shelter__title { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: 1.05rem; font-weight: 800; margin: 0 0 8px; color: var(--sky); }
.kn-shelter__title .kn-i { width: 22px; height: 22px; }
.kn-shelter p { margin: 0 0 6px; }
.kn-shelter__facts { list-style: none; margin: 6px 0 8px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kn-shelter__facts li { padding: 3px 10px; border-radius: 999px; background: var(--surface); font-size: .85rem; }
.kn-shelter__link { font-weight: 600; color: var(--sky); text-decoration: none; }
.kn-shelter__alarm { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: .95rem; }
.kn-shelter__src { margin-top: 10px !important; font-size: .78rem; color: var(--muted); }
.kn-shelter-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--sky) 12%, var(--surface)); color: var(--sky); font-weight: 700; font-size: .82rem; text-decoration: none; }
.kn-card__meta--shelter { color: var(--sky); }
.kn-filters .kn-check--toggle, .kn-datenav .kn-check--toggle { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 600; min-height: 40px; white-space: nowrap; }

/* ---------- Вікі-редагування ---------- */
.kn-form__group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; display: grid; gap: 14px; background: var(--surface); min-width: 0; }
@media (min-width: 700px) { .kn-form__group { grid-template-columns: 1fr 1fr; } .kn-form__group > .kn-form__row--wide, .kn-form__group > p { grid-column: 1 / -1; } }
.kn-form__group legend { font-weight: 800; padding: 0 6px; }
.kn-form__group--shelter { border-color: color-mix(in srgb, var(--sky) 40%, transparent); }
.kn-hours-edit th { text-align: left; font-weight: 500; padding: 4px 12px 4px 0; }
.kn-hours-edit input { min-height: 40px !important; width: auto !important; padding: 6px 8px !important; }

.kn-nav__add { display: none; }
.kn-nav.is-open .kn-nav__add { display: block; }
.kn-nav.is-open .kn-nav__add a { color: var(--accent); border-bottom: 0; }

/* ---------- Вкладені місця ---------- */
.kn-single__parent { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.kn-single__parent a { font-weight: 700; }
.kn-section__add { margin: 14px 0 0; }
#na-terytorii .kn-section__head:has(h2:empty) { display: none; }

.kn-source { margin-top: 18px !important; font-size: .85rem; color: var(--muted); }
.kn-source a { color: inherit !important; }

/* ---------- Обов’язкові поля ---------- */
.kn-form__legend { margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.kn-form__row.is-invalid input, .kn-form__row.is-invalid select, .kn-form__row.is-invalid textarea { border-color: var(--danger) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.kn-form__row.is-invalid > label { color: var(--danger); }

/* Плавний скрол — лише для переходів за якорями й без «боротьби» з пальцем/колесом */
@media (prefers-reduced-motion: no-preference) { html:focus-within { scroll-behavior: smooth; } }
/* ---------- Карта не перехоплює скрол ---------- */
.kn-map.leaflet-container:not(.kn-map--full):not(.kn-map--picker) { touch-action: pan-y pinch-zoom; }
.kn-map__hint { position: absolute; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; text-align: center; background: rgba(17,17,20,.55); color: #fff; font-weight: 700; font-size: 1rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
.kn-map__hint.is-on { opacity: 1; }

/* ---------- Мережі ---------- */
.kn-single__chain { display: flex; gap: 8px; align-items: flex-start; margin: 6px 0; }
.kn-single__chain a { font-weight: 700; }
.kn-chain-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 760px) { .kn-chain-list { grid-template-columns: 1fr 1fr; } }
.kn-chain-list li { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.kn-chain-list__title { font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.kn-chain-list__addr { display: flex; gap: 6px; align-items: flex-start; color: var(--muted); font-size: .92rem; }
.kn-chain-list__meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
