/*
Theme Name: KP Biuro
Description: Strona biura nieruchomości na ofertach z KP CRM (wtyczka KP CRM Sync + Estatik).
Version: 0.1.0
Author: KP Software
Text Domain: kp-biuro
*/

:root {
	--kp-navy: #1b1444;
	--kp-navy-2: #24163f;
	--kp-lime: #9ee334;
	--kp-lime-hover: #8fd425;
	--kp-bg: #f2f3f6;
	--kp-white: #ffffff;
	--kp-text: #090712;
	--kp-muted: #6d7889;
	--kp-muted-2: #495260;
	--kp-line: #e3e4ea;
	--kp-danger: #e5484d;
	--kp-radius: 6px;
	--kp-radius-lg: 14px;
	--kp-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px rgba(0, 0, 0, .06);
	--kp-serif: "Playfair Display", Georgia, serif;
	--kp-sans: "Helvetica Neue", Helvetica, Inter, Arial, sans-serif;
	--kp-container: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--kp-bg);
	color: var(--kp-text);
	font-family: var(--kp-sans);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--kp-navy); }
h2 { font-family: var(--kp-serif); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.15; }
p { margin: 0; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: var(--kp-text); }
.kp-icon { flex: none; }
.kp-container { width: min(var(--kp-container), calc(100% - 32px)); margin: 0 auto; }
.kp-muted { color: var(--kp-muted); }
.kp-small { font-size: 13px; }
.kp-center { display: flex; justify-content: center; margin-top: 40px; }

/* ---------- Przyciski ---------- */
.kp-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 44px; padding: 0 20px;
	border: 1px solid transparent; border-radius: var(--kp-radius);
	font-weight: 600; font-size: 15px; white-space: nowrap;
	transition: background .2s, border-color .2s, color .2s;
}
.kp-btn--lime { background: var(--kp-lime); color: var(--kp-text); }
.kp-btn--lime:hover { background: var(--kp-lime-hover); }
.kp-btn--navy { background: var(--kp-navy); color: #fff; }
.kp-btn--navy:hover { background: var(--kp-navy-2); }
.kp-btn--ghost { background: #fff; border-color: #d2d1d8; color: var(--kp-muted-2); }
.kp-btn--ghost:hover { border-color: var(--kp-navy); color: var(--kp-navy); }

/* ---------- Nagłówek ---------- */
.kp-header { position: absolute; top: 16px; left: 0; right: 0; z-index: 50; }
body:not(.home) .kp-header { position: relative; top: 0; padding-top: 16px; }
.kp-header__bar {
	display: flex; align-items: center; gap: 24px;
	height: 72px; padding: 0 24px;
	background: #fff; border-radius: var(--kp-radius-lg);
	box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}
.kp-header__logo img { width: auto; height: 52px; }
.kp-nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.kp-nav > a, .kp-nav__dropdown > button {
	display: inline-flex; align-items: center; gap: 4px;
	padding: 8px 12px; border: 0; border-radius: var(--kp-radius);
	background: none; font-size: 14px; font-weight: 500; color: var(--kp-text);
}
.kp-nav > a:hover, .kp-nav__dropdown > button:hover { color: var(--kp-navy); background: var(--kp-bg); }
.kp-nav > a.is-active { background: var(--kp-lime); }
.kp-nav__dropdown { position: relative; }
.kp-nav__menu {
	position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px;
	background: #fff; border-radius: var(--kp-radius-lg); box-shadow: var(--kp-shadow);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.kp-nav__dropdown:hover .kp-nav__menu, .kp-nav__dropdown:focus-within .kp-nav__menu { opacity: 1; visibility: visible; transform: none; }
.kp-nav__menu a { display: block; padding: 10px 12px; border-radius: var(--kp-radius); font-size: 14px; }
.kp-nav__menu a:hover { background: var(--kp-bg); }
.kp-header__actions { display: flex; align-items: center; gap: 16px; }
.kp-lang { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; font-size: 14px; }
.kp-burger { display: none; width: 40px; height: 40px; padding: 10px 8px; border: 0; background: none; }
.kp-burger span { display: block; height: 2px; margin: 4px 0; background: var(--kp-navy); }

/* ---------- Hero ---------- */
.kp-hero {
	position: relative; min-height: 820px;
	background-size: cover; background-position: center;
	color: #fff;
}
.kp-hero::before {
	content: ""; position: absolute; inset: 0;
	background: linear-gradient(180deg, rgba(9, 7, 18, .55) 0%, rgba(9, 7, 18, .15) 45%, rgba(9, 7, 18, .35) 100%);
}
.kp-hero__inner { position: relative; padding: 140px 0 32px; min-height: 820px; display: flex; flex-direction: column; align-items: flex-start; }
.kp-hero__eyebrow { font-family: var(--kp-serif); font-size: 16px; margin-bottom: 8px; }
.kp-hero h1 {
	max-width: 1060px; color: #fff;
	font-family: var(--kp-serif); font-weight: 600;
	font-size: clamp(36px, 4.6vw, 64px); line-height: 1.12;
}
.kp-hero__lead { max-width: 640px; margin: 14px 0 24px; font-size: 15px; font-weight: 500; }
.kp-hero-search {
	width: 100%; margin-top: auto; padding: 16px 20px 20px;
	background: rgba(36, 22, 63, .68); backdrop-filter: blur(8px);
	border-radius: var(--kp-radius-lg);
}
.kp-hero-search__tabs { display: flex; gap: 4px; margin-bottom: 14px; }
.kp-hero-search__tabs button {
	padding: 6px 10px; border: 0; border-radius: var(--kp-radius);
	background: none; color: #fff; font-weight: 600; font-size: 14px;
}
.kp-hero-search__tabs button.is-active { background: rgba(255, 255, 255, .16); }
.kp-hero-search__fields { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto; gap: 16px; align-items: end; }
.kp-hero-search label > span:first-child { display: block; margin-bottom: 6px; font-size: 12px; font-weight: 600; }
.kp-hero-search select,
.kp-hero-search .kp-range,
.kp-hero-search .kp-input-icon { height: 44px; width: 100%; background: #fff; border-radius: var(--kp-radius); }
.kp-hero-search select { padding: 0 12px; border: 0; }
.kp-range { display: flex; align-items: center; padding: 4px; gap: 4px; }
.kp-range input { width: 100%; min-width: 0; height: 36px; padding: 0 8px; border: 0; border-radius: 4px; background: var(--kp-bg); }
.kp-range em { font-style: normal; font-size: 12px; color: var(--kp-muted); margin-left: -34px; width: 30px; text-align: right; pointer-events: none; }
.kp-range i { color: var(--kp-muted); font-style: normal; }
.kp-input-icon { display: flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--kp-muted-2); }
.kp-input-icon input { width: 100%; border: 0; background: none; height: 40px; outline: none; }

/* ---------- Pasek z nazwą ---------- */
.kp-marquee { overflow: hidden; background: var(--kp-navy); padding: 26px 0; }
.kp-marquee__track { display: flex; align-items: center; gap: 28px; width: max-content; animation: kp-marquee 40s linear infinite; }
.kp-marquee span { font-family: var(--kp-serif); font-size: 26px; font-weight: 600; letter-spacing: .02em; color: var(--kp-lime); }
.kp-marquee i { width: 7px; height: 7px; border-radius: 50%; background: var(--kp-lime); }
@keyframes kp-marquee { to { transform: translateX(-50%); } }

/* ---------- Sekcje ---------- */
.kp-section { padding: 88px 0; }
.kp-section--white { background: #fff; }
.kp-section--tight { padding: 40px 0 88px; }
.kp-section > .kp-container > h2 { margin-bottom: 36px; }
.kp-section__head { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.kp-section__head p { margin-top: 10px; font-size: 15px; }
.kp-section__head--tabs { flex-wrap: wrap; }
.kp-seal { width: 96px; height: auto; }

.kp-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kp-stat { padding: 32px 26px 28px; background: #fff; border-radius: var(--kp-radius-lg); }
.kp-stat strong { display: block; font-family: var(--kp-serif); font-weight: 600; font-size: clamp(42px, 4.4vw, 64px); line-height: 1.1; color: var(--kp-navy); }
.kp-stat span { display: block; margin-top: 18px; font-size: 17px; color: var(--kp-navy); }

/* Mozaika typów: pierwszy kafel wysoki, reszta dookoła */
.kp-types { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; }
.kp-type {
	position: relative; display: block; overflow: hidden;
	border-radius: var(--kp-radius-lg); background: var(--kp-bg) center/cover no-repeat;
	transition: transform .3s;
}
.kp-type:hover { transform: translateY(-3px); }
.kp-type span {
	position: absolute; top: 14px; left: 14px; padding: 4px 10px;
	background: rgba(36, 37, 37, .55); backdrop-filter: blur(4px);
	border-radius: var(--kp-radius); color: #fff; font-size: 13px; font-weight: 600;
}
.kp-types .kp-type:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.kp-types .kp-type:nth-child(4) { grid-column: span 2; }
.kp-types--1 .kp-type:nth-child(1) { grid-column: span 4; }
.kp-types--2 .kp-type { grid-column: span 2 !important; grid-row: span 2; }
.kp-types--3 .kp-type:nth-child(2), .kp-types--3 .kp-type:nth-child(3) { grid-column: span 2; }

.kp-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.kp-pills button {
	height: 38px; padding: 0 16px; border: 1px solid #d2d1d8; border-radius: var(--kp-radius);
	background: #fff; font-size: 14px; font-weight: 500; color: var(--kp-muted-2);
}
.kp-pills button.is-active { background: var(--kp-navy); border-color: var(--kp-navy); color: #fff; }

/* ---------- Karty ofert ---------- */
.kp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.kp-card { display: flex; flex-direction: column; overflow: hidden; background: #fff; border-radius: var(--kp-radius-lg); }
.kp-card[hidden] { display: none; }
.kp-card__media { position: relative; display: block; aspect-ratio: 16 / 9.2; background: var(--kp-bg); overflow: hidden; }
.kp-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .3s; }
.kp-card__media img.is-active { opacity: 1; }
.kp-card__nav {
	position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
	display: grid; place-items: center; width: 34px; height: 34px;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--kp-navy);
	opacity: 0; transition: opacity .2s;
}
.kp-card__nav--prev { left: 10px; }
.kp-card__nav--next { right: 10px; }
.kp-card__media:hover .kp-card__nav { opacity: 1; }
.kp-card__dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 4px; }
.kp-card__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.kp-card__dots i.is-active { background: #fff; }
.kp-badge {
	position: absolute; top: 14px; left: 14px; z-index: 2;
	padding: 4px 9px; border-radius: var(--kp-radius);
	background: var(--kp-lime); color: var(--kp-text); font-size: 13px; font-weight: 600;
}
.kp-badge--muted { background: var(--kp-danger); color: #fff; }
.kp-card__body { display: flex; flex-direction: column; gap: 6px; flex: 1; padding: 18px 14px 16px; }
.kp-card__price { font-size: 16px; font-weight: 700; }
.kp-card__title { font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--kp-text); }
.kp-card__title a:hover { color: var(--kp-navy); text-decoration: underline; }
.kp-card__location { font-size: 12px; color: var(--kp-muted-2); }
.kp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.kp-chips span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--kp-radius); background: var(--kp-bg); font-size: 12px; font-weight: 600; }
.kp-card__meta { display: flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 14px; font-size: 12px; color: var(--kp-muted); }
.kp-card__meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--kp-muted); }

.kp-grid--list { grid-template-columns: 1fr; }
.kp-grid--list .kp-card { flex-direction: row; }
.kp-grid--list .kp-card__media { width: 38%; aspect-ratio: auto; min-height: 230px; }
.kp-grid--list .kp-card__body { padding: 22px 24px; }

/* ---------- Filtry listy ---------- */
.kp-page-top { padding-top: 24px; }
.kp-filters { background: #fff; padding-bottom: 28px; }
.kp-breadcrumbs { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--kp-muted-2); }
.kp-filters__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.kp-filters label > span:first-child, .kp-field > span:first-child { display: block; margin-bottom: 8px; font-size: 14px; color: var(--kp-text); }
.kp-filters select,
.kp-filters input[type="number"],
.kp-filters .kp-input-icon {
	width: 100%; height: 44px; padding: 0 12px;
	border: 1px solid transparent; border-radius: var(--kp-radius);
	background: var(--kp-bg); font-size: 14px; font-weight: 500; outline: none;
}
.kp-filters select:focus, .kp-filters input:focus { border-color: var(--kp-navy); }
.kp-filters .kp-input-icon input { font-size: 14px; }
.kp-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kp-suffix { position: relative; }
.kp-suffix em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-size: 13px; color: var(--kp-muted); pointer-events: none; }
.kp-stepper { display: flex; align-items: center; height: 44px; background: var(--kp-bg); border-radius: var(--kp-radius); }
.kp-stepper button { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: none; color: var(--kp-text); }
.kp-stepper input { flex: 1; text-align: center; background: none !important; -moz-appearance: textfield; }
.kp-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.kp-filters__actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 26px; }
.kp-filters__actions .kp-btn { min-width: 200px; }

.kp-results-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.kp-results-head__title { font-family: var(--kp-sans); font-size: 26px; font-weight: 700; }
.kp-results-head__tools { display: flex; align-items: center; gap: 10px; }
.kp-sort select { height: 40px; min-width: 200px; padding: 0 12px; border: 0; border-radius: var(--kp-radius); background: #fff; font-weight: 600; }
.kp-view { display: grid; place-items: center; width: 34px; height: 34px; color: var(--kp-muted); }
.kp-view.is-active { color: var(--kp-navy); }
.kp-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.kp-pagination a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--kp-radius); background: #fff; font-weight: 600; }
.kp-pagination a.is-active { background: var(--kp-navy); color: #fff; }
.kp-empty { padding: 60px 24px; text-align: center; background: #fff; border-radius: var(--kp-radius-lg); }
.kp-empty h3 { margin-bottom: 8px; }
.kp-empty a { text-decoration: underline; }

/* ---------- Oferta ---------- */
.kp-offer { max-width: 1160px; padding-bottom: 88px; }
.kp-back { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 14px; font-size: 13px; color: var(--kp-muted-2); }
.kp-mosaic { display: grid; gap: 8px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 186px 186px; margin-bottom: 16px; }
.kp-mosaic__item { position: relative; padding: 0; border: 0; overflow: hidden; border-radius: var(--kp-radius); background: var(--kp-bg); }
.kp-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.kp-mosaic__item:hover img { transform: scale(1.03); }
.kp-mosaic__item:first-child { grid-row: span 2; }
.kp-mosaic--1 { grid-template-columns: 1fr; }
.kp-mosaic--2 { grid-template-columns: 2fr 1fr; }
.kp-mosaic--2 .kp-mosaic__item:nth-child(2) { grid-row: span 2; }
.kp-mosaic--3 { grid-template-columns: 2fr 1fr; }
.kp-mosaic--4 .kp-mosaic__item:nth-child(4) { grid-column: span 2; }
.kp-mosaic__more {
	position: absolute; inset: 0; display: grid; place-items: center;
	background: rgba(9, 7, 18, .45); color: #fff; font-weight: 600;
}
.kp-box { margin-bottom: 16px; padding: 20px 16px; background: #fff; border-radius: var(--kp-radius-lg); }
.kp-offer__summary { display: grid; grid-template-columns: 1fr auto; gap: 12px 24px; align-items: start; }
.kp-offer__added { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.kp-offer__title { margin: 6px 0 10px; font-size: 18px; font-weight: 500; color: var(--kp-text); }
.kp-offer__price { font-size: 26px; font-weight: 700; }
.kp-offer__summary-foot { grid-column: 1 / -1; padding-top: 14px; border-top: 1px solid var(--kp-line); }
.kp-offer__address { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 600; }
.kp-offer__address span { text-decoration: underline; }
.kp-offer__description h2, .kp-similar h2 { font-family: var(--kp-sans); font-size: 18px; font-weight: 700; color: var(--kp-text); margin-bottom: 14px; }
.kp-offer__description p { margin-bottom: 10px; font-size: 14px; line-height: 1.6; }
.kp-similar { margin-top: 48px; }
.kp-similar h2 { font-family: var(--kp-serif); font-size: 32px; color: var(--kp-navy); }

.kp-accordion details { border-bottom: 1px solid var(--kp-line); }
.kp-accordion details:last-child { border-bottom: 0; }
.kp-accordion summary {
	display: flex; justify-content: space-between; align-items: center; gap: 16px;
	padding: 16px 0; list-style: none; cursor: pointer;
	font-size: 16px; font-weight: 600; color: var(--kp-text);
}
.kp-accordion summary::-webkit-details-marker { display: none; }
.kp-accordion summary .kp-icon { transition: transform .2s; }
.kp-accordion details[open] summary .kp-icon { transform: rotate(180deg); }
.kp-accordion details > :not(summary) { margin-bottom: 18px; }
.kp-accordion--boxed { padding-top: 4px; padding-bottom: 4px; }
.kp-params { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; margin: 0; }
.kp-params div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--kp-line); font-size: 14px; }
.kp-params dt { color: var(--kp-muted); }
.kp-params dd { margin: 0; font-weight: 600; text-align: right; }
.kp-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.kp-amenities li { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.kp-amenities .kp-icon { color: var(--kp-navy); }
.kp-map { height: 320px; margin-top: 16px; border-radius: var(--kp-radius); overflow: hidden; z-index: 0; }

.kp-agent { display: flex; align-items: center; gap: 20px; }
.kp-agent img, .kp-agent__initials { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.kp-agent__initials { display: grid; place-items: center; background: var(--kp-navy); color: #fff; font-family: var(--kp-serif); font-size: 34px; }
.kp-agent__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.kp-agent__body strong { font-size: 18px; }
.kp-agent__links { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 8px; }
.kp-agent__links a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--kp-navy); }

.kp-lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: rgba(9, 7, 18, .92); }
.kp-lightbox[hidden] { display: none; }
.kp-lightbox img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
.kp-lightbox button { position: absolute; border: 0; background: none; color: #fff; padding: 12px; }
.kp-lightbox__close { top: 16px; right: 16px; }
.kp-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.kp-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }
.kp-lightbox__count { position: absolute; bottom: 20px; color: #fff; font-size: 14px; }

/* ---------- FAQ / kontakt ---------- */
.kp-faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.kp-faq .kp-accordion summary { font-size: 17px; padding: 20px 0; }
.kp-faq .kp-accordion p { color: var(--kp-muted-2); line-height: 1.6; }
.kp-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.kp-contact__info p { margin: 16px 0 28px; color: var(--kp-muted-2); }
.kp-contact__info dl { display: grid; gap: 4px; margin: 0; }
.kp-contact__info dt { margin-top: 14px; font-size: 13px; color: var(--kp-muted); }
.kp-contact__info dd { margin: 0; font-size: 18px; font-weight: 600; color: var(--kp-navy); }
.kp-form { display: grid; gap: 16px; padding: 28px; background: #fff; border-radius: var(--kp-radius-lg); }
.kp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.kp-form label span { display: block; margin-bottom: 6px; font-size: 13px; color: var(--kp-muted-2); }
.kp-form input, .kp-form textarea {
	width: 100%; padding: 12px; border: 1px solid transparent; border-radius: var(--kp-radius);
	background: var(--kp-bg); outline: none; resize: vertical;
}
.kp-form input:focus, .kp-form textarea:focus { border-color: var(--kp-navy); }
.kp-form .kp-btn { justify-self: start; }
.kp-form__note { padding: 12px 14px; border-radius: var(--kp-radius); background: #eef9dc; font-size: 14px; }

/* ---------- Strony treściowe ---------- */
.kp-content { max-width: 860px; padding-bottom: 88px; }
.kp-content h1 { font-family: var(--kp-serif); font-size: clamp(34px, 4vw, 52px); margin: 24px 0 24px; }
.kp-content p { margin-bottom: 14px; line-height: 1.7; }

/* ---------- Stopka ---------- */
.kp-footer { background: var(--kp-navy); color: rgba(255, 255, 255, .78); padding: 64px 0 24px; }
.kp-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.kp-footer__brand img { width: 110px; height: auto; margin-bottom: 18px; }
.kp-footer__brand p { max-width: 360px; font-size: 14px; }
.kp-footer h4 { margin-bottom: 14px; color: var(--kp-lime); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.kp-footer a, .kp-footer span { display: block; margin-bottom: 8px; font-size: 14px; }
.kp-footer a:hover { color: #fff; }
.kp-footer__bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; }
.kp-footer__bottom span { margin: 0; }

.kp-floating { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; gap: 8px; }
.kp-floating > * { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; }
.kp-floating__top { background: var(--kp-lime); color: var(--kp-text); opacity: 0; pointer-events: none; transition: opacity .2s; }
.kp-floating__top.is-visible { opacity: 1; pointer-events: auto; }
.kp-floating__call { background: var(--kp-navy); color: #fff; }

/* ---------- Mobile ---------- */
@media (max-width: 1100px) {
	.kp-hero-search__fields { grid-template-columns: 1fr 1fr; }
	.kp-hero-search__fields .kp-btn { grid-column: 1 / -1; }
	.kp-grid { grid-template-columns: repeat(2, 1fr); }
	.kp-faq, .kp-contact { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 900px) {
	.kp-nav, .kp-lang, .kp-header__actions .kp-btn { display: none; }
	.kp-burger { display: block; }
	.kp-header__actions { margin-left: auto; }
	body.kp-menu-open .kp-nav {
		display: flex; flex-direction: column; align-items: stretch;
		position: absolute; top: 80px; left: 16px; right: 16px; padding: 12px;
		background: #fff; border-radius: var(--kp-radius-lg); box-shadow: var(--kp-shadow);
	}
	body.kp-menu-open .kp-nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
	.kp-filters__grid { grid-template-columns: 1fr 1fr; }
	.kp-stats { grid-template-columns: 1fr; }
	.kp-types { grid-template-columns: 1fr 1fr; grid-auto-rows: 180px; }
	.kp-types .kp-type { grid-column: span 1 !important; grid-row: span 1 !important; }
	.kp-types .kp-type:first-child { grid-column: span 2 !important; }
	.kp-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
	.kp-mosaic__item:first-child { grid-column: span 2; grid-row: span 1; }
	.kp-mosaic__item:nth-child(n+4) { display: none; }
	.kp-params, .kp-amenities { grid-template-columns: 1fr; }
	.kp-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.kp-hero, .kp-hero__inner { min-height: 0; }
	.kp-hero__inner { padding-top: 120px; }
	.kp-hero-search { margin-top: 32px; }
	.kp-hero-search__fields, .kp-filters__grid, .kp-form__row { grid-template-columns: 1fr; }
	.kp-grid { grid-template-columns: 1fr; }
	.kp-grid--list .kp-card { flex-direction: column; }
	.kp-grid--list .kp-card__media { width: 100%; min-height: 0; aspect-ratio: 16 / 10; }
	.kp-section { padding: 56px 0; }
	.kp-section__head { flex-direction: column; align-items: flex-start; }
	.kp-seal { display: none; }
	.kp-results-head { flex-direction: column; align-items: flex-start; }
	.kp-results-head__tools { width: 100%; }
	.kp-sort, .kp-sort select { flex: 1; min-width: 0; }
	.kp-filters__actions { flex-direction: column-reverse; }
	.kp-offer__summary { grid-template-columns: 1fr; }
	.kp-agent { flex-wrap: wrap; }
	.kp-footer__bottom { flex-direction: column; }
}
