/*
 * Strona miasta (page-templates/strona-miasta.php).
 * Bazą jest landing-ppc.css (tokeny --lp-*, komponenty lp-*). Tu tylko to, czego landing nie ma:
 * menu serwisu, okruszki, sekcje z treścią SEO, 5 kroków, stopka z linkami do miast.
 * Animujemy tylko transform i opacity, ease-out jak na landingu.
 */

:root { --ct-ease: cubic-bezier(.23, 1, .32, 1); }

/* ---------- Nagłówek z menu ---------- */
.ct-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--lp-line);
}
.admin-bar .ct-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .ct-header { top: 0; } }
.ct-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--lp-header-h); }
.ct-header__logo { flex: none; margin-right: auto; }
.ct-header__logo img { width: 124px; height: auto; }
@media (min-width: 768px) { .ct-header__logo img { width: 146px; } }

.ct-nav { display: none; }
@media (min-width: 1180px) { .ct-nav { display: block; } }
.ct-nav__list { display: flex; align-items: center; gap: 4px; }
.ct-nav__list > li { position: relative; }
.ct-nav__list a {
	display: block;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 15px;
	font-weight: 600;
	color: var(--lp-navy);
	text-decoration: none;
	transition: background-color .2s var(--ct-ease), color .2s var(--ct-ease);
}
.ct-nav__list a:hover { background: var(--lp-soft); color: var(--lp-blue); }
.ct-nav__list a:active { transform: scale(.98); }
.ct-nav__list .current-menu-ancestor > a,
.ct-nav__list .current-menu-item > a { color: var(--lp-blue); }
.ct-nav__list .sub-menu {
	position: absolute;
	top: calc(100% + 6px);
	left: 0;
	min-width: 260px;
	padding: 8px;
	border: 1px solid var(--lp-line);
	border-radius: 12px;
	background: #fff;
	box-shadow: var(--lp-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .2s var(--ct-ease), transform .2s var(--ct-ease), visibility 0s linear .2s;
}
.ct-nav__list li:hover > .sub-menu,
.ct-nav__list li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.ct-nav__list .sub-menu a { font-weight: 500; font-size: 14px; }

.ct-header__phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	min-height: 44px;
	padding: 0 18px 0 6px;
	border-radius: 999px;
	background: var(--lp-green);
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color .2s var(--ct-ease), transform .15s var(--ct-ease);
}
.ct-header__phone .lp-icon { width: 32px; height: 32px; padding: 7px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.ct-header__phone:hover { background: var(--lp-green-dark); }
.ct-header__phone:active { transform: scale(.97); }
@media (max-width: 479px) { .ct-header__phone span { display: none; } .ct-header__phone { padding: 0 6px; } }

.ct-burger { position: relative; }
@media (min-width: 1180px) { .ct-burger { display: none; } }
.ct-burger summary {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 10px;
	color: var(--lp-navy);
	cursor: pointer;
	list-style: none;
}
.ct-burger summary::-webkit-details-marker { display: none; }
.ct-burger summary:hover { background: var(--lp-soft); }
.ct-burger__panel {
	position: fixed;
	left: 12px;
	right: 12px;
	top: calc(var(--lp-header-h) + 8px);
	max-height: calc(100vh - var(--lp-header-h) - 24px);
	overflow: auto;
	padding: 10px;
	border-radius: 16px;
	background: #fff;
	box-shadow: var(--lp-shadow-lg);
}
.ct-burger[open] .ct-burger__panel { animation: ct-drop .25s var(--ct-ease); }
@keyframes ct-drop { from { opacity: 0; transform: translateY(-6px); } }
.ct-burger__list a { display: block; padding: 12px 14px; border-radius: 10px; font-weight: 600; color: var(--lp-navy); text-decoration: none; }
.ct-burger__list a:hover { background: var(--lp-soft); }
.ct-burger__list .sub-menu { padding-left: 12px; }
.ct-burger__list .sub-menu a { font-weight: 500; font-size: 15px; color: var(--lp-muted); }

/* ---------- Hero: okruszki ---------- */
.ct-hero { padding-top: 0; }
.ct-crumbs { display: flex; flex-wrap: wrap; gap: 6px; padding: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .6); position: relative; z-index: 2; }
.ct-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, .35); }
.ct-crumbs a { color: rgba(255, 255, 255, .78); text-decoration: none; }
.ct-crumbs a:hover { color: #fff; text-decoration: underline; }

/* ---------- Siatki i kafelki ---------- */
.ct-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .ct-grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ct-grid--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
@media (min-width: 640px) { .ct-grid--4 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .ct-grid--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.ct-tile {
	position: relative;
	padding: 26px 24px 24px;
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	background: #fff;
	transition: transform .25s var(--ct-ease), box-shadow .25s var(--ct-ease);
}
@media (hover: hover) { .ct-tile:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); } }
.ct-tile__num {
	display: block;
	margin-bottom: 12px;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: .08em;
	background: var(--lp-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.ps-city .ct-tile h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.ct-tile p { font-size: 15px; color: var(--lp-muted); }
.ct-center { display: flex; justify-content: center; margin-top: 32px; }

.ct-card { transition: transform .25s var(--ct-ease), box-shadow .25s var(--ct-ease); }
@media (hover: hover) { .ct-card:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); } }
.ct-card .lp-card__icon { background: var(--lp-gradient); }

.ct-quote {
	position: relative;
	max-width: 880px;
	margin: 36px auto 0 !important;
	padding: 24px 28px 24px 76px;
	border: 1px solid var(--lp-line);
	border-radius: var(--lp-radius);
	background: #fff;
	font-size: 18px;
	font-weight: 600;
	line-height: 1.55;
	color: var(--lp-navy);
	box-shadow: 0 1px 0 rgba(17, 28, 66, .04), 0 24px 48px -32px rgba(17, 28, 66, .38);
}
.ct-quote::before {
	content: "\201E";
	position: absolute;
	left: 24px;
	top: -14px; /* „ siedzi na linii bazowej, podnosimy go do wysokości pierwszej linii tekstu */
	font-size: 64px;
	font-weight: 800;
	line-height: 1;
	color: var(--lp-green);
}
@media (max-width: 639px) { .ct-quote { padding: 58px 22px 22px; font-size: 17px; } .ct-quote::before { left: 20px; top: -18px; } }

/* ---------- Nawigacja po sekcjach: przyklejona pod nagłówkiem, przewijana w poziomie na telefonie ---------- */
.ct-toc { position: sticky; top: var(--lp-header-h); z-index: 50; background: rgba(255, 255, 255, .95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--lp-line); }
.admin-bar .ct-toc { top: calc(var(--lp-header-h) + 32px); }
@media (max-width: 782px) { .admin-bar .ct-toc { top: var(--lp-header-h); } }
.ct-toc__list { display: flex; gap: 4px; padding: 6px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.ct-toc__list li { flex: none; scroll-snap-align: start; }
.ct-toc__link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--lp-muted); text-decoration: none; white-space: nowrap; transition: background-color .15s ease, color .15s ease, transform .12s var(--ct-ease); }
@media (hover: hover) and (pointer: fine) { .ct-toc__link:hover { background: var(--lp-soft); color: var(--lp-navy); } }
.ct-toc__link:active { transform: scale(.97); }
.ct-toc__link[aria-current="true"] { background: var(--lp-navy); color: #fff; }
.ps-city main section[id] { scroll-margin-top: calc(var(--lp-header-h) + 8px); }
@media (prefers-reduced-motion: no-preference) { html:has(.ps-city) { scroll-behavior: smooth; } }

/* ---------- Tekst SEO ---------- */
.ct-prose p { font-size: 17px; color: var(--lp-text); }
.ct-prose p + p { margin-top: 16px; }
@media (min-width: 1024px) {
	.ct-prose--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 20px; }
	.ct-prose--cols p + p { margin-top: 0; }
}

.ct-split__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .ct-split__inner { grid-template-columns: 1.15fr .85fr; gap: 64px; } }
.ct-split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); box-shadow: var(--lp-shadow-lg); }
@media (min-width: 1024px) { .ct-split__media img { aspect-ratio: 4 / 5; } }

.ct-local .lp-heading { max-width: 820px; }

/* Specyfika miasta: akapity z podpisem dzielnicy lub strefy, bez kart, rozdzielone linią */
.ct-places { display: grid; gap: 32px; }
@media (min-width: 900px) { .ct-places { grid-template-columns: 1fr 1fr; column-gap: 56px; row-gap: 40px; } }
.ct-place { padding-top: 20px; border-top: 1px solid #cfd8e6; }
.ps-city .ct-place__label { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 15px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--lp-navy); }
.ct-place__icon { flex: none; width: 18px; height: 18px; color: var(--lp-green); }
.ct-place p { font-size: 17px; color: var(--lp-text); }

/* ---------- Metody ---------- */
.ct-methods__inner { display: grid; gap: 28px; }
@media (min-width: 1024px) { .ct-methods__inner { grid-template-columns: .52fr 1.48fr; gap: 40px; align-items: start; } }
.ct-methods__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--lp-radius); }
@media (min-width: 1024px) { .ct-methods__media { position: sticky; top: calc(var(--lp-header-h) + 24px); } .ct-methods__media img { aspect-ratio: 3 / 4; } }
.ct-methods__list { display: grid; gap: 14px; }
@media (min-width: 640px) { .ct-methods__list { grid-template-columns: 1fr 1fr; } }
.ct-methods__list li { display: flex; gap: 14px; padding: 22px 24px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius-sm); background: #fff; }
.ct-methods__list .lp-icon { margin-top: 2px; color: var(--lp-green); }
.ps-city .ct-methods__list h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.ct-methods__list p { font-size: 15px; color: var(--lp-muted); }

/* ---------- Dlaczego my ---------- */
.ct-why__inner { display: grid; gap: 32px; }
@media (min-width: 1024px) { .ct-why__inner { grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; } }
.ct-why__card { padding: 28px 24px; border-radius: var(--lp-radius); background: var(--lp-navy); color: #fff; box-shadow: var(--lp-shadow-lg); }
@media (min-width: 768px) { .ct-why__card { padding: 36px 32px; } }
.ps-city .ct-why__sub { font-size: 22px; color: #fff; margin-bottom: 20px; }
.ct-badges { display: grid; gap: 10px; }
@media (min-width: 640px) { .ct-badges { grid-template-columns: 1fr 1fr; } }
.ct-badges li { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.ct-badges .lp-icon { color: var(--lp-green); margin-top: 1px; }
.ct-why__close { margin-top: 22px !important; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 15px; color: rgba(255, 255, 255, .8); }

/* ---------- Przebieg: oś czasu ---------- */
/* Przebieg: oś czasu. Telefon: pionowo z linią po lewej. Desktop: 5 kroków w rzędzie połączonych linią. */
.ct-timeline { display: grid; max-width: 1180px; margin: 0 auto; }
.ct-timeline__item { position: relative; display: grid; grid-template-columns: 40px 1fr; column-gap: 18px; padding-bottom: 28px; }
.ct-timeline__item:last-child { padding-bottom: 0; }
.ct-timeline__item::before { content: ""; position: absolute; left: 19px; top: 46px; bottom: 6px; width: 2px; background: #cfd8e6; }
.ct-timeline__item:last-child::before { display: none; }
.ct-timeline__num { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--lp-gradient); color: #fff; font-weight: 800; box-shadow: 0 0 0 6px var(--lp-soft); }
.ps-city .ct-timeline h3 { font-size: 18px; font-weight: 700; margin: 8px 0 6px; }
.ct-timeline p { font-size: 15px; color: var(--lp-muted); }
@media (min-width: 1024px) {
	.ct-timeline { grid-template-columns: repeat(5, 1fr); column-gap: 28px; }
	.ct-timeline__item { display: block; padding-bottom: 0; }
	.ct-timeline__item::before { left: 52px; right: -22px; top: 19px; bottom: auto; width: auto; height: 2px; }
	.ct-timeline__num { margin-bottom: 18px; }
	.ps-city .ct-timeline h3 { margin-top: 0; }
}

/* ---------- Cena ---------- */
.ct-price__inner { display: grid; gap: 28px; }
@media (min-width: 1024px) { .ct-price__inner { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; } }
.ct-price .lp-heading { margin-bottom: 0; }
.ct-price__lead { margin-top: 14px !important; font-size: 20px; font-weight: 700; color: var(--lp-navy); }
.ct-price__cta { display: grid; gap: 14px; margin-top: 24px; padding: 22px; border-radius: var(--lp-radius-sm); background: #fff; border: 1px solid var(--lp-line); }
.ct-price__cta p { font-weight: 600; color: var(--lp-navy); }
@media (min-width: 640px) { .ct-price__cta { grid-template-columns: 1fr auto; align-items: center; } }

/* ---------- Kontakt w sekcji formularza (bez punktów z landingu) ---------- */
.ps-city .lp-contact .lp-contact__call { margin-top: 28px; }

/* ---------- Stopka ---------- */
.ct-footer { background: #0b1330; color: rgba(255, 255, 255, .66); font-size: 14px; padding: 48px 0 calc(var(--lp-sticky-h) + 24px); }
@media (min-width: 1024px) { .ct-footer { padding-bottom: 48px; } }
.ct-footer__grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .ct-footer__grid { grid-template-columns: 1.1fr 1.3fr .8fr; gap: 48px; } }
.ct-footer img { width: 130px; height: auto; margin-bottom: 16px; }
.ct-footer p + p { margin-top: 12px; }
.ct-footer a { color: rgba(255, 255, 255, .86); text-decoration: none; }
.ct-footer a:hover { color: #fff; text-decoration: underline; }
.ct-footer__title { margin-bottom: 14px !important; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.ct-footer__cities { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (min-width: 640px) { .ct-footer__cities { grid-template-columns: repeat(3, 1fr); } }
.ct-footer__links { display: grid; gap: 8px; margin-bottom: 16px !important; }

/* ---------- CTA końcowe: e-mail czytelny na granacie ---------- */
.ps-city .lp-final a:not(.lp-final__phone) { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.ps-city .lp-final a:not(.lp-final__phone):hover { color: var(--lp-green); }
