/* Strona „Kontakt” (MCQP_Contact::page, 0.49.2): kafelki kanałów, formularz z tematami, mapa z pinezką-planetą. */
.mcqp-contact-page { max-width: 1080px; margin: 6px auto 40px; font-size: .9375rem; }

.ct-ico { display: inline-grid; place-items: center; width: 22px; height: 22px; flex: none; }
.ct-ico svg { width: 100%; height: 100%; overflow: visible; }

/* nagłówek: koperta i lecący samolocik */
.ct-hero { position: relative; display: flex; align-items: center; gap: 22px; padding: 26px 28px; border: 1px solid var(--mq-line); border-radius: 22px; background: radial-gradient(120% 160% at 0% 0%, var(--mq-primary-bg) 0%, var(--mq-card) 60%); overflow: hidden; }
.ct-hero::after { content: ""; position: absolute; right: -60px; top: -80px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 165, 0, .15), transparent 70%); pointer-events: none; }
.ct-hero-ico { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border-radius: 24px; background: var(--mq-primary); color: var(--mq-on-primary); box-shadow: 0 14px 34px -12px rgba(240, 165, 0, .6); }
.ct-hero-ico svg { width: 58px; height: 58px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ct-plane { animation: ct-fly 3.6s ease-in-out infinite; }
.ct-trail { stroke-dasharray: 3 4; opacity: .6; animation: ct-trail 3.6s linear infinite; }
@keyframes ct-fly { 0%, 100% { transform: translate(0, 0) rotate(0); } 40% { transform: translate(3px, -4px) rotate(-4deg); } 70% { transform: translate(-1px, 1px) rotate(2deg); } }
@keyframes ct-trail { to { stroke-dashoffset: -28; } }
.ct-hero-text { position: relative; z-index: 1; min-width: 0; flex: 1; }
.ct-lead { margin: 0 0 12px; color: var(--mq-soft); font-size: 1.05rem; line-height: 1.55; }
.ct-faq-link { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--mq-line); border-radius: 999px; background: var(--mq-card); color: var(--mq-strong); font-weight: 600; font-size: .875rem; text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.ct-faq-link .ct-ico { width: 18px; height: 18px; color: var(--mq-ptext); }
.ct-faq-link:hover { border-color: var(--mq-primary); transform: translateX(2px); }

/* kanały: telefon, WhatsApp, Telegram, e-mail */
.ct-channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.ct-ch { position: relative; display: flex; align-items: stretch; border: 1px solid var(--mq-line); border-radius: 18px; background: var(--mq-card); overflow: hidden; transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; animation: ct-in .45s ease-out both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes ct-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ct-ch:hover { border-color: var(--ct-c, var(--mq-primary)); transform: translateY(-2px); box-shadow: 0 16px 34px -22px var(--ct-c, rgba(240, 165, 0, .8)); }
.ct-ch--phone { --ct-c: #f0a500; }
.ct-ch--wa { --ct-c: #25d366; }
.ct-ch--tg { --ct-c: #2aabee; }
.ct-ch--mail { --ct-c: #f0a500; }
.ct-ch-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 14px; padding: 16px 16px; color: var(--mq-text); text-decoration: none; }
.ct-ch-main > .ct-ico { width: 46px; height: 46px; padding: 11px; box-sizing: border-box; border-radius: 14px; background: color-mix(in srgb, var(--ct-c) 16%, transparent); color: var(--ct-c); }
.ct-ch-text { display: grid; gap: 2px; min-width: 0; }
.ct-ch-text strong { color: var(--mq-strong); font-size: 1rem; }
.ct-ch-val { color: var(--mq-soft); overflow-wrap: anywhere; }
.ct-ch--phone .ct-ch-val { white-space: nowrap; }
.ct-ch-text small { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; color: var(--mq-muted); font-size: .75rem; }
.ct-ch-text small .ct-ico { width: 14px; height: 14px; }
.ct-ch:hover .ct-ico-ring { transform-box: fill-box; transform-origin: 50% 50%; animation: ct-ring .5s ease-in-out 2; }
.ct-ico-waves { animation: ct-blink 1.6s ease-in-out infinite; }
.ct-ch:hover .ct-ico-plane { animation: ct-blink .6s ease-in-out 2; }
.ct-ch:hover .ct-ico-flap { transform-box: fill-box; transform-origin: 50% 0; animation: ct-flap .7s ease-in-out; }
@keyframes ct-ring { 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@keyframes ct-blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes ct-flap { 50% { transform: scaleY(-.6); } }
.ct-copy { flex: none; display: grid; place-items: center; width: 52px; border: 0; border-left: 1px solid var(--mq-line); background: none; color: var(--mq-soft); cursor: pointer; }
.ct-copy .ct-ico { width: 20px; height: 20px; }
.ct-copy:hover, .ct-copy:focus-visible { background: var(--mq-hover); color: var(--mq-strong); }
.ct-copy.is-done { color: var(--mq-ok); }

/* formularz i mapa obok siebie */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; margin-top: 16px; align-items: start; }
.ct-card { padding: 22px 24px; border: 1px solid var(--mq-line); border-radius: 20px; background: var(--mq-card); scroll-margin-top: 90px; }
.ct-card h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 16px; color: var(--mq-strong); font-size: 1.2rem; }
.ct-card h2 .ct-ico { width: 34px; height: 34px; padding: 7px; box-sizing: border-box; border-radius: 11px; background: var(--mq-primary-bg); color: var(--mq-ptext); }

.ct-form { display: grid; gap: 14px; }
.ct-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-field { position: relative; display: grid; gap: 6px; }
.ct-field > span, .ct-topics legend { color: var(--mq-soft); font-size: .8125rem; font-weight: 600; }
.ct-field input, .ct-field textarea { box-sizing: border-box; width: 100%; padding: 12px 14px; border: 1px solid var(--mq-line); border-radius: 12px; background: var(--mq-bg); color: var(--mq-strong); font: inherit; transition: border-color .2s ease, box-shadow .2s ease; }
.ct-field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.ct-field input:focus, .ct-field textarea:focus { outline: 0; border-color: var(--mq-primary); box-shadow: 0 0 0 3px rgba(240, 165, 0, .22); }
.ct-form.is-checked .ct-field :invalid { border-color: var(--mq-bad); }
.ct-counter { justify-self: end; color: var(--mq-muted); font-size: .75rem; }
.ct-counter.is-low { color: var(--mq-warn); }
.ct-topics { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.ct-topics legend { margin-bottom: 8px; padding: 0; }
.ct-topic { position: relative; }
.ct-topic input { position: absolute; opacity: 0; pointer-events: none; }
.ct-topic span { display: inline-block; padding: 8px 13px; border: 1px solid var(--mq-line); border-radius: 999px; background: var(--mq-bg); color: var(--mq-text); font-size: .8125rem; font-weight: 600; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease; }
.ct-topic span:hover { border-color: var(--mq-soft); }
.ct-topic input:checked + span { border-color: var(--mq-primary); background: var(--mq-primary); color: var(--mq-on-primary); transform: scale(1.03); }
.ct-topic input:focus-visible + span { outline: 2px solid var(--mq-primary); outline-offset: 2px; }
.ct-form.is-checked .ct-topics:invalid span, .ct-form.is-checked .ct-topics.is-missing span { border-color: var(--mq-bad); }
.ct-hint { padding: 12px 14px; border: 1px dashed var(--mq-primary); border-radius: 14px; background: var(--mq-primary-bg); animation: ct-in .3s ease-out; }
.ct-hint[hidden] { display: none; }
.ct-hint p { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; color: var(--mq-strong); font-weight: 600; font-size: .8125rem; }
.ct-hint p .ct-ico { width: 18px; height: 18px; color: var(--mq-ptext); }
.ct-hint ul { margin: 0; padding-left: 26px; }
.ct-hint li { margin: 3px 0; }
.ct-hint a { color: var(--mq-ptext); }
.ct-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ct-privacy { margin: 0; color: var(--mq-muted); font-size: .75rem; line-height: 1.5; }
.ct-privacy a { color: var(--mq-soft); }
.ct-invalid, .ct-err { margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--mq-bad-bg); color: var(--mq-bad-text); font-size: .875rem; }
.ct-err { margin-bottom: 14px; }
.ct-invalid[hidden] { display: none; }
.ct-submit { justify-self: start; display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; font-size: .9375rem; }
.ct-submit .ct-ico { width: 18px; height: 18px; transition: transform .3s ease; }
.ct-submit:hover .ct-ico { transform: translate(3px, -3px); }
.ct-submit.is-busy { opacity: .7; pointer-events: none; }
.ct-submit.is-busy .ct-ico { animation: ct-fly .8s ease-in-out infinite; }
.ct-sent { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 14px 16px; border: 1px solid var(--mq-ok); border-radius: 14px; background: var(--mq-ok-bg); }
.ct-sent svg { flex: none; width: 46px; height: 46px; fill: none; stroke: var(--mq-ok); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.ct-sent circle { stroke-dasharray: 150; animation: ct-draw .7s ease-out both; }
.ct-sent path { stroke-dasharray: 40; animation: ct-draw .5s .5s ease-out both; }
@keyframes ct-draw { from { stroke-dashoffset: 150; } to { stroke-dashoffset: 0; } }
.ct-sent strong { color: var(--mq-strong); }
.ct-sent p { margin: 2px 0 0; color: var(--mq-soft); }

/* mapa z pinezką-planetą */
.ct-addr { margin: 0 0 14px; color: var(--mq-text); font-style: normal; line-height: 1.6; }
.ct-addr strong { color: var(--mq-strong); }
.ct-map { position: relative; height: 320px; border: 1px solid var(--mq-line); border-radius: 16px; overflow: hidden; background: #1a1d22; isolation: isolate; }
.ct-map-canvas { position: absolute; inset: 0; }
.ct-map-canvas iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; filter: saturate(.9); }
.ct-map.is-loaded .ct-map-canvas iframe { animation: ct-fade .6s ease-out; }
@keyframes ct-fade { from { opacity: 0; } to { opacity: 1; } }
.ct-map-art { width: 100%; height: 100%; display: block; }
.ct-map-art rect { fill: #1d2127; }
.ct-park { fill: #23302a; }
.ct-river { fill: none; stroke: #1f3647; stroke-width: 16; }
.ct-road { fill: none; stroke: #2f343c; stroke-width: 6; stroke-linecap: round; }
.ct-road--main { stroke: #3a3f48; stroke-width: 11; }
.ct-pin { position: absolute; left: 50%; top: 50%; z-index: 2; width: 0; height: 0; pointer-events: none; }
.ct-pin-head { position: absolute; left: 0; top: -56px; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50% 50% 50% 0; background: linear-gradient(135deg, #ffd25e, #e08c00); box-shadow: 0 10px 22px -6px rgba(0, 0, 0, .55), inset 0 0 0 3px rgba(255, 255, 255, .85); transform: rotate(-45deg); transform-origin: 0 100%; animation: ct-drop .9s cubic-bezier(.2, .9, .3, 1.3) both; }
.ct-pin-head img { width: 42px; height: 42px; border-radius: 50%; background: #202329; transform: rotate(45deg); box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); }
.ct-pin-ring { position: absolute; left: -16px; top: -6px; width: 32px; height: 12px; border-radius: 50%; background: rgba(0, 0, 0, .45); }
.ct-pin-ring::after { content: ""; position: absolute; inset: -6px -10px; border: 2px solid #f0a500; border-radius: 50%; opacity: 0; animation: ct-pulse 2.2s ease-out infinite 1s; }
@keyframes ct-drop { 0% { opacity: 0; translate: 0 -40px; } 60% { opacity: 1; translate: 0 4px; } 100% { translate: 0 0; } }
@keyframes ct-pulse { 0% { opacity: .9; transform: scale(.5); } 100% { opacity: 0; transform: scale(2.2); } }
.ct-map-consent { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3; display: grid; justify-items: center; gap: 6px; padding: 12px; border-radius: 14px; background: rgba(20, 22, 26, .82); backdrop-filter: blur(6px); text-align: center; }
.ct-map-consent small { color: #b6b6c3; font-size: .72rem; line-height: 1.4; }
.ct-map.is-loaded .ct-map-consent { display: none; }
.ct-zoom { position: absolute; right: 10px; top: 10px; z-index: 3; display: grid; overflow: hidden; border-radius: 10px; box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.ct-zoom[hidden] { display: none; }
.ct-zoom button { width: 38px; height: 38px; border: 0; background: #fff; color: #333; font: 600 20px/1 system-ui, sans-serif; cursor: pointer; }
.ct-zoom button + button { border-top: 1px solid #ddd; }
.ct-zoom button:hover { background: #f3f3f3; }
.ct-map-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ct-map-actions .mcqp-btn { display: inline-flex; align-items: center; gap: 8px; }
.ct-map-actions .ct-ico { width: 18px; height: 18px; }

.ct-company, .ct-social { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--mq-line); }
.ct-place > .ct-company:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.ct-company h3 { margin: 0 0 6px; color: var(--mq-soft); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ct-company p { margin: 0; color: var(--mq-text); line-height: 1.6; }
.ct-company strong { color: var(--mq-strong); }
.ct-social .footer-social { display: grid; gap: 8px; justify-items: start; }
.ct-social .footer-social-title { color: var(--mq-soft); font-size: .8125rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.ct-social .social-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ct-social .social-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--mq-line); border-radius: 999px; color: var(--mq-text); font-size: .8125rem; text-decoration: none; }
.ct-social .social-link:hover { border-color: var(--mq-primary); color: var(--mq-strong); }
.ct-social .social-link.is-unset { opacity: .5; border-style: dashed; }

@media (max-width: 900px) {
	.ct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.ct-hero { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px 18px; }
	.ct-hero-ico { width: 64px; height: 64px; border-radius: 18px; }
	.ct-hero-ico svg { width: 44px; height: 44px; }
	.ct-channels { grid-template-columns: 1fr 1fr; gap: 10px; }
	.ct-ch-main { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
	.ct-ch--phone { grid-column: 1 / -1; }
	.ct-ch--phone .ct-ch-main { flex-direction: row; align-items: center; }
	.ct-ch--mail { grid-column: 1 / -1; }
	.ct-ch--mail .ct-ch-main { flex-direction: row; align-items: center; }
	.ct-card { padding: 18px 16px; }
	.ct-row { grid-template-columns: 1fr; }
	.ct-submit { justify-self: stretch; justify-content: center; }
	.ct-map { height: 280px; }
	.ct-map-actions .mcqp-btn { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
	.ct-plane, .ct-trail, .ct-ch, .ct-ico-waves, .ct-pin-head, .ct-pin-ring::after, .ct-sent circle, .ct-sent path, .ct-hint, .ct-ch * { animation: none !important; }
	.ct-ch, .ct-faq-link, .ct-topic span, .ct-submit .ct-ico { transition: none; }
}
