/*
Theme Name: Upadlex – upadłość konsumencka
Theme URI: https://example.com/
Author: Motyw dedykowany
Description: Przyjazny motyw blokowy marki Upadlex (kierunek „Nowa droga”) dla firmy pomagającej osobom zadłużonym. Wszystkie treści edytujesz w edytorze bloków, a nagłówek i stopkę w Wygląd → Edytor.
Version: 3.3.0
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: upadlosc
*/

:root {
	--ink: #2E2768; --text: #3A3566; --muted: #5E5A7E; --line: #E6E3F4; --cream: #F3F1FC;
	--sun: #F08A6C; --sun-soft: #FDE8E1; --leaf: #1F7A55; --leaf-soft: #E3F3EA; --rose: #B5473C; --rose-soft: #FBE9E6;
	--indigo: #4B3F9E; --lavender: #B9B0F5;
	--radius: 24px;
}

/* ---------- Podstawy ---------- */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 6rem; }
html.text-large { font-size: 115%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
:where(h1, h2, h3) { text-wrap: balance; }
:where(p, li) { text-wrap: pretty; }
a { text-underline-offset: 0.2em; text-decoration-thickness: 2px; text-decoration-color: var(--sun); }
a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
img { height: auto; }
::selection { background: var(--sun); color: var(--ink); }
.screen-reader-text { border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.wp-site-blocks > footer, .wp-site-blocks > main + footer { margin-block-start: 0 !important; }
.wp-site-blocks > main { margin-block-start: 0 !important; }

/* ---------- Nagłówek ---------- */
.wp-site-blocks > header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .wp-site-blocks > header { top: 32px; }
@media (max-width: 782px) { .admin-bar .wp-site-blocks > header { top: 46px; } }
.site-header .wp-block-site-title a { display: inline-flex; align-items: center; gap: .55rem; }
.site-header .wp-block-site-title a::before, .site-footer .wp-block-site-title a::before {
	content: ""; width: 1.6em; height: 1.05em; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M4 31C12 31 15 15 23 17C31 19 21 33 30 30C38 27 44 12 56 8' fill='none' stroke='%234B3F9E' stroke-width='5.5' stroke-linecap='round'/%3E%3Ccircle cx='55' cy='8' r='5.5' fill='%23F08A6C'/%3E%3C/svg%3E") center / contain no-repeat;
}
.site-footer .wp-block-site-title a::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M4 31C12 31 15 15 23 17C31 19 21 33 30 30C38 27 44 12 56 8' fill='none' stroke='%23B9B0F5' stroke-width='5.5' stroke-linecap='round'/%3E%3Ccircle cx='55' cy='8' r='5.5' fill='%23F08A6C'/%3E%3C/svg%3E"); }
.site-header .wp-block-site-tagline { color: var(--muted); }
.site-header .header-phone { font-weight: 800; font-size: 1.1875rem !important; white-space: nowrap; }
.site-header .header-phone a { text-decoration: none; }
.site-header .wp-block-navigation a { text-decoration: none; font-weight: 600; }
.site-header .wp-block-navigation a:hover, .site-header .wp-block-navigation [aria-current="page"] { text-decoration: underline; text-decoration-color: var(--sun); text-decoration-thickness: 3px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 1.5rem clamp(1.25rem, 5.5vw, 5rem); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4rem; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.75rem; letter-spacing: -0.02em; }
@media (max-width: 1100px) { .site-header .wp-block-site-tagline { display: none; } }
@media (max-width: 781px) { .site-header .header-phone, .site-header .header-cta { display: none !important; } }

/* Przycisk „większy tekst” */
.text-size { display: inline-flex; align-items: baseline; gap: 1px; height: 2.75rem; min-width: 2.75rem; padding: 0 .7rem; justify-content: center; border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-weight: 800; cursor: pointer; line-height: 2.6rem; }
.text-size span { font-size: .9rem; }
.text-size .text-size-big { font-size: 1.3rem; }
.text-size[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.text-size:hover { border-color: var(--ink); }

/* ---------- Przyciski ---------- */
.wp-block-button__link { display: inline-flex; align-items: center; gap: .85rem; transition: background-color .15s ease, transform .15s ease; box-shadow: 0 2px 0 rgba(46, 39, 104, .18); }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-arrow .wp-block-button__link::after { content: "→"; font-size: 1.15em; line-height: 1; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--ink); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link { background: var(--ink); color: #fff; }
.wp-block-button.is-style-dark .wp-block-button__link:hover { background: var(--indigo); }
.has-ink-background-color .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }

/* ---------- Etykieta sekcji, lead ---------- */
.section-label { font-size: 1.0625rem !important; font-weight: 800 !important; letter-spacing: 0 !important; line-height: 1.4 !important; display: flex; align-items: center; gap: .6rem; }
.section-label::before { content: ""; width: .7rem; height: .7rem; border-radius: 50%; background: var(--sun); flex: none; }
.lead { font-size: var(--wp--preset--font-size--large); line-height: 1.15; letter-spacing: -0.025em; font-weight: 700; color: var(--ink); }
.entry-content > .lead { font-size: clamp(1.375rem, 2.4vw, 1.75rem); line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; }
.muted { color: var(--muted); }
.mark-sun { background: linear-gradient(transparent 58%, var(--sun) 58%, var(--sun) 92%, transparent 92%); padding: 0 .08em; }

/* ---------- Otwarcie strony ---------- */
.hero-title { max-width: 13em; }
.hero-lead { font-size: var(--wp--preset--font-size--medium); line-height: 1.5; color: var(--text); max-width: 34em; }
.hero-points { list-style: none; padding: 0 !important; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; font-size: 1.0625rem; }
.hero-points li { position: relative; padding-left: 1.7rem; }
.hero-points li::before { content: ""; position: absolute; left: 0; top: .28em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
.cta-title { font-size: var(--wp--preset--font-size--x-large) !important; line-height: 1.05 !important; letter-spacing: -0.03em !important; }

/* ---------- Karty ---------- */
.card { background: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 2.4vw, 2rem); height: 100%; box-sizing: border-box; }
.card > :first-child { margin-top: 0; }
.card h3 { font-size: 1.3125rem; }
.card p { color: var(--text); font-size: 1.0625rem; }
.card--white { background: #fff; border: 1px solid var(--line); }
.card--sun { background: var(--sun-soft); }
.card--leaf { background: var(--leaf-soft); }
.card-grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card-grid > * { margin: 0 !important; }
@media (max-width: 960px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* Karty „mit / fakt” – w edytorze widać obie strony jedna pod drugą */
.flip-card { border-radius: var(--radius); }
.flip-front, .flip-back { border-radius: var(--radius); padding: clamp(1.5rem, 2.4vw, 2rem); box-sizing: border-box; }
.flip-front { background: var(--rose-soft); }
.flip-back { background: var(--leaf-soft); margin-top: .5rem !important; }
.flip-tag { display: inline-block; font-size: .8125rem !important; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .3rem .7rem; border-radius: 999px; margin: 0 0 1rem !important; }
.flip-front .flip-tag { background: var(--rose); color: #fff; }
.flip-back .flip-tag { background: var(--leaf); color: #fff; }
.flip-front h3, .flip-front .flip-text { font-size: 1.375rem !important; font-weight: 700; line-height: 1.25; letter-spacing: -0.015em; margin: 0 !important; color: var(--ink); }
.flip-back p:not(.flip-tag) { font-size: 1.0625rem; color: var(--ink); margin: 0 !important; }

/* ---------- Lista w wierszach ---------- */
ul.is-style-rows, ol.is-style-rows { list-style: none; padding: 0 !important; margin-left: 0; border-top: 2px solid var(--ink); }
ul.is-style-rows > li, ol.is-style-rows > li {
	display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2rem; row-gap: .35rem;
	padding: 1.4rem 0; margin: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 1.0625rem; line-height: 1.55;
}
ul.is-style-rows > li > strong:first-child, ol.is-style-rows > li > strong:first-child { font-weight: 700; color: var(--ink); font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.01em; }
@media (max-width: 781px) { ul.is-style-rows > li, ol.is-style-rows > li { grid-template-columns: 1fr; padding: 1.15rem 0; } }

ul.is-style-dash { list-style: none; padding-left: 0 !important; }
ul.is-style-dash > li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
ul.is-style-dash > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--leaf) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-9'/%3E%3C/svg%3E") center / 70% no-repeat; }
ul.is-style-cross { list-style: none; padding-left: 0 !important; }
ul.is-style-cross > li { position: relative; padding-left: 1.9rem; margin-bottom: .6rem; }
ul.is-style-cross > li::before { content: ""; position: absolute; left: 0; top: .32em; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--rose) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Lista do odhaczania */
ul.is-style-checklist { list-style: none; padding: 0 !important; }
ul.is-style-checklist > li { padding: .9rem 1.1rem; margin-bottom: .5rem; background: var(--cream); border-radius: 14px; font-weight: 600; }
ul.is-style-checklist.is-enhanced > li { padding: 0; }
ul.is-style-checklist .check-label { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1.1rem; cursor: pointer; }
ul.is-style-checklist .check-box { width: 1.5rem; height: 1.5rem; margin: .1rem 0 0; flex: none; accent-color: var(--leaf); }
ul.is-style-checklist > li.is-done { background: var(--leaf-soft); }
ul.is-style-checklist > li.is-done .check-label { text-decoration: line-through; text-decoration-color: var(--leaf); color: var(--muted); }

/* ---------- Etapy i liczby ---------- */
.is-style-top-rule { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.stat-number { font-size: clamp(2.25rem, 4vw, 3.25rem) !important; line-height: 1 !important; letter-spacing: -0.035em !important; margin: 0 !important; font-weight: 800; }
.step-num { display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--sun); color: var(--ink) !important; font-weight: 800; font-size: 1.25rem !important; margin: 0 !important; }
.steps > .wp-block-column { position: relative; }
@media (min-width: 782px) {
	.steps > .wp-block-column:not(:last-child)::after { content: ""; position: absolute; top: 1.375rem; left: 3.25rem; right: -1.5rem; height: 2px; background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px); opacity: .35; }
}
.steps h3 { margin-top: 1rem; }
.steps p:not(.step-num) { font-size: 1.0625rem; color: var(--text); }
@media (max-width: 781px) {
	.wp-block-columns:has(> .is-style-top-rule .stat-number) { display: grid !important; grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
	.stat-number { font-size: 1.875rem !important; }
}

/* ---------- FAQ ---------- */
.faq-list { border-top: 2px solid var(--ink); }
.faq-list > .wp-block-details, .wp-block-details.is-style-faq { border-bottom: 1px solid var(--line); padding: 0; margin: 0 !important; }
.faq-list > .wp-block-details summary, .wp-block-details.is-style-faq summary { list-style: none; cursor: pointer; padding: 1.35rem 3.5rem 1.35rem 0; position: relative; font-size: var(--wp--preset--font-size--medium); font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.faq-list > .wp-block-details summary::-webkit-details-marker, .wp-block-details.is-style-faq summary::-webkit-details-marker { display: none; }
.faq-list > .wp-block-details summary::after, .wp-block-details.is-style-faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--sun); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; font-weight: 600; line-height: 1; }
.faq-list > .wp-block-details[open] summary::after, .wp-block-details.is-style-faq[open] summary::after { content: "–"; background: var(--ink); color: #fff; }
.faq-list > .wp-block-details > :not(summary), .wp-block-details.is-style-faq > :not(summary) { color: var(--text); max-width: 700px; margin-top: 0; }
.faq-list > .wp-block-details > :last-child, .wp-block-details.is-style-faq > :last-child { padding-bottom: 1.75rem; }

/* ---------- Tabela ---------- */
.wp-block-table.is-style-minimal table { border-collapse: collapse; width: 100%; }
.wp-block-table.is-style-minimal thead { border-bottom: 2px solid var(--ink); }
.wp-block-table.is-style-minimal th { font-weight: 600; font-size: .9375rem; color: var(--muted); text-align: left; padding: 0 1rem .8rem 0; border: 0; }
.wp-block-table.is-style-minimal td { border: 0; border-bottom: 1px solid var(--line); padding: 1.15rem 1rem 1.15rem 0; vertical-align: top; }
.wp-block-table.is-style-minimal td:last-child, .wp-block-table.is-style-minimal th:last-child { text-align: right; padding-right: 0; white-space: nowrap; font-weight: 700; }
.wp-block-table.is-style-minimal figcaption { text-align: left; margin-top: 1rem; }
@media (max-width: 600px) { .wp-block-table.is-style-minimal td:last-child { white-space: normal; } }

/* ---------- Cennik ---------- */
.price-card { background: var(--cream); border-radius: var(--radius); padding: clamp(1.5rem, 2.4vw, 2rem); height: 100%; box-sizing: border-box; }
.price-card .price { font-size: clamp(2rem, 3.5vw, 2.75rem); letter-spacing: -0.035em; line-height: 1; margin: 0; font-weight: 800; }

/* ---------- Zdjęcia ---------- */
.wp-block-image img, .wp-block-post-featured-image img { border-radius: var(--radius); }
.photo-hero img { aspect-ratio: 16 / 7; object-fit: cover; width: 100%; }
@media (max-width: 781px) { .photo-hero img { aspect-ratio: 4 / 3; } }
.photo-portrait img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---------- Blog ---------- */
.post-rows .wp-block-post { border-top: 1px solid var(--line); padding: 1.75rem 0; margin: 0; }
.post-rows .wp-block-post:first-child { border-top: 2px solid var(--ink); }
.post-rows .wp-block-post:last-child { border-bottom: 1px solid var(--line); }
.post-rows .wp-block-post-title a { text-decoration: none; }
.post-rows .wp-block-post-title a:hover { text-decoration: underline; text-decoration-color: var(--sun); }
.post-rows .wp-block-post-excerpt__more-text { display: none; }
.entry-content > * + h2 { margin-top: 3.25rem; }
.entry-content > * + h3 { margin-top: 2.25rem; }
.entry-content h2 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.entry-content ul:not([class*="is-style"]) li, .entry-content ol:not([class*="is-style"]) li { margin-bottom: .5rem; }
.entry-content p, .entry-content li { color: var(--text); }
.note-box { background: var(--sun-soft); padding: 1.35rem 1.6rem; border-radius: 16px; }
.note-box p { color: var(--ink) !important; margin: 0; }
.breadcrumbs { font-size: .9375rem; color: var(--muted); }
.breadcrumbs a { color: var(--muted); }

/* ---------- Stopka ---------- */
.site-footer a { text-decoration: none; color: #fff; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.site-footer .footer-muted, .site-footer .footer-muted a { color: #C9C3E8; }
.site-footer .footer-phone { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }

/* ---------- Pasek na telefonie ---------- */
.mobile-bar { display: none; }
@media (max-width: 781px) {
	.mobile-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; gap: .625rem; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(46, 39, 104, .08); }
	.mobile-bar a { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; text-decoration: none; font-size: 1.0625rem; font-weight: 800; }
	.mobile-bar a.mb-call { border: 2px solid var(--ink); color: var(--ink); }
	.mobile-bar a.mb-cta { background: var(--sun); color: var(--ink); }
	body { padding-bottom: 80px; }
	.wp-block-buttons.is-content-justification-right { justify-content: flex-start; }
	.hero-title { max-width: none; }
}

/* ---------- Drobne ---------- */
.page-main:has(> .entry-content > #analiza:last-child) { padding-bottom: 0 !important; }
.page-main .entry-content > #analiza:last-child { margin-bottom: 0; }
.nowrap { white-space: nowrap; }
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal-ready.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } .reveal-ready { opacity: 1; transform: none; } }
@media print {
	.wp-site-blocks > header, .site-footer, .mobile-bar, #analiza, .cb, .wp-block-buttons { display: none !important; }
	body { padding: 0; }
}

/* ---------- Poprawki otwarcia i stopki ---------- */
.hero-title em { font-style: normal; color: var(--indigo); background: linear-gradient(transparent 64%, var(--sun-soft) 64%, var(--sun-soft) 94%, transparent 94%); padding: 0 .06em; margin: 0 -.06em; }
.hero-points { margin-top: 1.5rem !important; }
.site-footer .wp-block-site-title a { display: inline-flex; align-items: center; gap: .55rem; }

/* ==========================================================
   TELEFONY – czytelność i wygląd (wersja 2.1)
   ========================================================== */

/* Tło nagłówka na osobnej warstwie – dzięki temu rozwinięte menu zakrywa cały ekran */
.wp-site-blocks > header { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.wp-site-blocks > header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); }

/* Przycisk „Menu” – z napisem, łatwy do trafienia palcem */
.site-header .wp-block-navigation__responsive-container-open { align-items: center; gap: .5rem; height: 2.75rem; padding: 0 1rem 0 .8rem; border: 2px solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink); font: inherit; font-size: 1rem; font-weight: 800; line-height: 1; }
.site-header .wp-block-navigation__responsive-container-open::after { content: "Menu"; font-size: 1rem; font-weight: 800; letter-spacing: 0; }
.site-header .wp-block-navigation__responsive-container-open svg { width: 22px; height: 22px; }
@media (min-width: 600px) and (max-width: 1023px) {
	.site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none; }
	.site-header .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
}

/* Rozwinięte menu – duże pozycje na całą szerokość */
.wp-block-navigation__responsive-container.is-menu-open { background: #fff !important; color: var(--ink) !important; padding: 1rem 1.25rem 7.5rem; overflow-y: auto; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close { position: absolute; top: 0; right: 0; display: inline-flex; align-items: center; gap: .5rem; height: 2.75rem; padding: 0 .9rem 0 1.1rem; border: 2px solid var(--ink); border-radius: 999px; font: inherit; font-size: 1rem; font-weight: 800; line-height: 1; color: var(--ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close::before { content: "Zamknij"; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-close svg { width: 22px; height: 22px; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 4.25rem; align-items: stretch !important; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; border-top: 2px solid var(--ink); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { font-size: 1.4375rem; letter-spacing: -0.015em; width: 100%; border-bottom: 1px solid var(--line); }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { display: flex !important; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; min-height: 4rem; padding: .5rem 0 !important; font-weight: 700; }
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content::after { content: "→"; font-weight: 400; color: var(--muted); }
.wp-block-navigation__responsive-container.is-menu-open [aria-current="page"] { text-decoration: none !important; }
.wp-block-navigation__responsive-container.is-menu-open [aria-current="page"]::after { content: "●"; color: var(--sun); font-size: .8em; }
html.has-modal-open .mobile-bar { box-shadow: none; transform: none !important; }

/* Wiersze z pojęciem i opisem – tekst z linkiem nie rozpada się na kawałki */
@media (min-width: 782px) {
	ul.is-style-rows > li, ol.is-style-rows > li { display: block; position: relative; padding-left: calc(41.667% + 1rem); min-height: 3.2em; }
	ul.is-style-rows > li > strong:first-child, ol.is-style-rows > li > strong:first-child { position: absolute; left: 0; top: 1.4rem; width: calc(41.667% - 1rem); }
}

@media (max-width: 781px) {
	/* Odstępy między sekcjami – mniej przewijania */
	body { --wp--preset--spacing--60: 2.25rem; --wp--preset--spacing--70: 2.75rem; --wp--preset--spacing--80: 3.25rem; padding-bottom: 0; }

	/* Nagłówek */
	.site-header { padding-top: .6rem !important; padding-bottom: .6rem !important; }
	.site-header .wp-block-site-title { font-size: 1.25rem; }
	.site-header .wp-block-group { gap: .6rem; }
	html { scroll-padding-top: 5rem; }

	/* Tekst: nic poniżej 15 px, zwykły tekst 17 px */
	.has-small-font-size, .breadcrumbs, .wp-block-post-date, .wp-block-post-terms { font-size: .9375rem !important; }
	.card p, .steps p:not(.step-num), .flip-back p:not(.flip-tag), .entry-content li, .wp-block-post-excerpt__excerpt, ul.is-style-rows > li, ol.is-style-rows > li { font-size: 1.0625rem !important; line-height: 1.6; }
	.muted:not(.has-small-font-size) { font-size: 1.0625rem !important; }
	p, li { overflow-wrap: break-word; }

	/* Tytuły */
	h1.wp-block-post-title, h1.wp-block-query-title { font-size: clamp(2rem, 9.6vw, 2.625rem) !important; line-height: 1.08 !important; }
	.single-post h1.wp-block-post-title { font-size: clamp(1.75rem, 8vw, 2.25rem) !important; line-height: 1.12 !important; }
	.hero-title { font-size: clamp(2.125rem, 10.4vw, 2.75rem) !important; line-height: 1.06 !important; }
	.hero-lead { font-size: 1.1875rem; line-height: 1.5; }
	.lead { font-size: 1.5rem; line-height: 1.2; }
	.entry-content > .lead { font-size: 1.25rem; line-height: 1.4; }
	.entry-content h2 { font-size: 1.5rem; line-height: 1.2; }
	.entry-content > * + h2 { margin-top: 2.5rem; }
	.cta-title { font-size: 1.875rem !important; line-height: 1.1 !important; }
	.section-label { font-size: 1rem !important; }

	/* Przyciski na całą szerokość */
	.wp-block-post-content .wp-block-buttons, .wp-block-post-content .wp-block-button { width: 100%; }
	.wp-block-post-content .wp-block-button__link { width: 100%; justify-content: center; min-height: 3.5rem; box-sizing: border-box; font-size: 1.0625rem; }

	/* Otwarcie strony */
	.hero-points { flex-direction: column; gap: .7rem; font-size: 1.0625rem; margin-top: 1.25rem !important; }
	.hero-points li { padding-left: 1.9rem; }

	/* Liczby – jedna pod drugą, liczba obok opisu */
	.wp-block-columns:has(> .is-style-top-rule .stat-number) { grid-template-columns: 1fr; gap: 0; border-top: 2px solid var(--ink); }
	.wp-block-columns:has(> .is-style-top-rule .stat-number) > .is-style-top-rule { border-top: 0; border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
	.stat-number { font-size: 2rem !important; color: var(--ink); }
	.is-style-top-rule .stat-number + p { margin-top: .4rem; font-size: 1.0625rem; line-height: 1.5; }

	/* Karty */
	.card, .price-card { padding: 1.25rem 1.25rem 1.35rem; border-radius: 18px; }
	.card h3 { font-size: 1.1875rem; margin-bottom: 0; }
	.card h3 + p { margin-top: .5rem; }
	.card p:last-child { margin-bottom: 0; }
	.card-grid { gap: .75rem; }
	.flip-front, .flip-back { padding: 1.25rem; border-radius: 18px; }
	.flip-front h3, .flip-front .flip-text { font-size: 1.25rem !important; }
	.flip-tag { margin-bottom: .75rem !important; }

	/* Etapy – oś czasu: numer z lewej, opis z prawej */
	.steps { gap: 0 !important; }
	.steps > .wp-block-column { display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); column-gap: 1rem; padding-bottom: 1.75rem; }
	.steps > .wp-block-column:last-child { padding-bottom: 0; }
	.steps > .wp-block-column > .step-num { grid-row: 1 / span 2; align-self: start; position: relative; z-index: 1; }
	.steps > .wp-block-column > h3 { grid-column: 2; margin: .55rem 0 0; font-size: 1.25rem; }
	.steps > .wp-block-column > p:not(.step-num) { grid-column: 2; margin: .4rem 0 0; }
	.steps > .wp-block-column:not(:last-child)::before { content: ""; position: absolute; left: calc(1.375rem - 1px); top: 2.75rem; bottom: 0; width: 2px; background: repeating-linear-gradient(180deg, var(--ink) 0 6px, transparent 6px 12px); opacity: .3; }

	/* Listy */
	ul.is-style-rows > li, ol.is-style-rows > li { display: block; padding: 1rem 0; }
	ul.is-style-rows > li > strong:first-child, ol.is-style-rows > li > strong:first-child { display: block; font-size: 1.1875rem; margin-bottom: .25rem; }
	ul.is-style-dash > li, ul.is-style-cross > li { margin-bottom: .75rem; line-height: 1.5; }
	ul.is-style-checklist > li { font-size: 1.0625rem; }
	.entry-content ul:not([class]), .entry-content ol:not([class]), .entry-content ul.wp-block-list:not([class*="is-style"]), .entry-content ol.wp-block-list:not([class*="is-style"]) { padding-left: 1.35rem; }

	/* Pytania */
	.faq-list > .wp-block-details summary, .wp-block-details.is-style-faq summary { font-size: 1.1875rem; padding: 1.15rem 3.25rem 1.15rem 0; min-height: 2.5rem; }
	.faq-list > .wp-block-details > :not(summary), .wp-block-details.is-style-faq > :not(summary) { font-size: 1.0625rem; }

	/* Tabele */
	.wp-block-table.is-style-minimal { overflow: visible; }
	.wp-block-table.is-style-minimal th { font-size: .9375rem !important; }
	.wp-block-table.is-style-minimal td { font-size: 1.0625rem !important; line-height: 1.4; padding: 1rem .75rem 1rem 0; }
	.wp-block-table.is-style-minimal td:last-child { white-space: normal; width: 40%; text-wrap: balance; }
	.wp-block-table.is-style-minimal figcaption { font-size: .9375rem; }

	/* Cennik, zdjęcia, okruszki */
	.price-card .price { font-size: 2rem; }
	.photo-portrait { max-width: 13rem; }
	.photo-hero img { aspect-ratio: 16 / 10; }
	.wp-block-image img, .wp-block-post-featured-image img { border-radius: 16px; }
	.breadcrumbs { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
	.breadcrumbs a { display: inline-block; padding: .6rem 0; }
	.note-box { padding: 1.1rem 1.25rem; }
	.entry-content > p.muted a { display: inline-block; padding: .3rem 0; }

	/* Blog */
	.post-rows .wp-block-post { padding: 1.35rem 0; }
	.post-rows .wp-block-post > * { margin-block: 0; }
	.post-rows .wp-block-post .wp-block-columns { gap: .35rem; }
	.post-rows .wp-block-post-title { font-size: 1.3125rem !important; line-height: 1.25 !important; margin-top: .35rem !important; }
	.post-rows .wp-block-post-excerpt { margin-top: .5rem !important; }
	.post-rows .wp-block-post-title a { display: block; }

	/* Stopka – większy tekst i wygodne odstępy między linkami */
	.site-footer { padding-top: 3rem !important; padding-bottom: calc(2rem + 84px + env(safe-area-inset-bottom)) !important; }
	.site-footer p { font-size: 1.0625rem !important; }
	.site-footer .wp-block-columns { gap: 1.75rem !important; }
	.site-footer .wp-block-column > p + p { margin-top: .35rem; }
	.site-footer p a { display: inline-block; padding: .45rem 0; }
	.site-footer p:has(> a + br) { line-height: 1.5 !important; }
	.site-footer .footer-muted { font-size: .9375rem !important; }
	.site-footer > .footer-muted { flex-direction: column; align-items: flex-start; gap: .5rem; }
	.site-footer > .footer-muted p { font-size: .9375rem !important; line-height: 1.5; margin: 0; }

	/* Pasek na dole ekranu */
	.mobile-bar { padding: .6rem .85rem calc(.6rem + env(safe-area-inset-bottom)); transition: transform .25s ease; }
	.mobile-bar a { min-height: 3.25rem; }
	.mobile-bar a.mb-call::before { content: ""; width: 1.15rem; height: 1.15rem; margin-right: .5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%232E2768'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E") center / contain no-repeat; }
	.mobile-bar.is-hidden { transform: translateY(110%); }
	body:has(input[type="tel"]:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus) .mobile-bar { transform: translateY(110%); }
}

@media (max-width: 380px) {
	.site-header .wp-block-site-title { font-size: 1.125rem; }
	.site-header .wp-block-navigation__responsive-container-open { padding: 0 .8rem 0 .65rem; }
	.text-size { padding: 0 .55rem; }
}

/* ==========================================================
   UPADLEX 3.0 – „Nowa droga”
   ========================================================== */
body { font-feature-settings: "ss01" 0; }
.wp-block-button__link { border-radius: 999px; }
.wp-block-button.is-style-outline .wp-block-button__link { border-color: var(--indigo); color: var(--indigo); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--indigo); color: #fff; }

/* Otwarcie strony */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; z-index: -1; top: -2rem; right: -6vw; width: min(52vw, 760px); height: 520px; background: radial-gradient(closest-side, rgba(185, 176, 245, .45), rgba(185, 176, 245, 0)); pointer-events: none; }
.hero-kicker { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1rem; color: var(--indigo); background: var(--cream); border-radius: 999px; padding: .4rem .95rem .4rem .7rem; margin-bottom: .25rem !important; }
.hero-kicker::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--sun); flex: none; }
.hero-title { max-width: 14em; }
.hero-buttons { margin-top: 1.75rem !important; gap: .75rem; }
.hero-points { margin-top: 1.5rem !important; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(1.5rem, 2.6vw, 2.25rem); box-shadow: 0 30px 60px -30px rgba(46, 39, 104, .35); position: relative; }
.hero-card::before { content: ""; position: absolute; top: -14px; right: 28px; width: 64px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M4 31C12 31 15 15 23 17C31 19 21 33 30 30C38 27 44 12 56 8' fill='none' stroke='%234B3F9E' stroke-width='5.5' stroke-linecap='round'/%3E%3Ccircle cx='55' cy='8' r='5.5' fill='%23F08A6C'/%3E%3C/svg%3E") center / contain no-repeat; }
.hero-card-title { font-size: clamp(1.5rem, 2.2vw, 1.875rem) !important; margin: 0 0 .5rem !important; }
.hero-card-text { color: var(--text); font-size: 1.0625rem; margin-top: 0 !important; }
.hero-card-alt { font-size: 1rem; color: var(--muted); margin-bottom: 0 !important; }
.hero-card-alt a { font-weight: 800; color: var(--ink); white-space: nowrap; }
.hero .ba { margin-top: var(--wp--preset--spacing--50); }

/* Pora telefonu w formularzu „Oddzwonimy” */
.cb-when { border: 0; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.cb-when legend { font-weight: 700; font-size: .9375rem; color: var(--ink); margin-bottom: .45rem; padding: 0; }
.cb-when label { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border: 2px solid var(--line); border-radius: 999px; font-size: .9375rem; font-weight: 700; cursor: pointer; color: var(--ink); background: #fff; }
.cb-when label:has(input:checked) { border-color: var(--indigo); background: var(--cream); }
.cb-when input { accent-color: var(--indigo); margin: 0; }

/* Pasy w tle sekcji */
.band--lavender .lead { margin-top: .75rem; }
.band--lavender ul.is-style-rows { border-top-color: var(--indigo); }

/* Lokalnie */
.local-box { overflow: hidden; position: relative; }
.local-box::after { content: ""; position: absolute; right: -40px; bottom: -30px; width: 340px; height: 220px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M4 31C12 31 15 15 23 17C31 19 21 33 30 30C38 27 44 12 56 8' fill='none' stroke='%234B3F9E' stroke-width='5.5' stroke-linecap='round'/%3E%3Ccircle cx='55' cy='8' r='5.5' fill='%23F08A6C'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .55; pointer-events: none; }
.local-box > * { position: relative; z-index: 1; }
.local-title { color: #fff !important; font-size: var(--wp--preset--font-size--large) !important; margin-top: 0 !important; }
.local-box p { color: #E7E4FA; font-size: 1.125rem; }
.local-number { font-size: clamp(3rem, 7vw, 5rem) !important; font-weight: 900; line-height: 1 !important; color: var(--sun) !important; margin: 0 !important; letter-spacing: -0.03em; }
.local-source { font-size: .875rem !important; color: #C9C3E8 !important; }
.local-box a:not(.wp-block-button__link) { color: #fff; }

/* Karty kontaktu z ikonami */
.card-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .card-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .card-grid--4 { grid-template-columns: 1fr; } }
.card--icon { position: relative; padding-top: 4.75rem !important; }
.card--icon::before { content: ""; position: absolute; top: 1.5rem; left: clamp(1.5rem, 2.4vw, 2rem); width: 2.5rem; height: 2.5rem; border-radius: 14px; background: var(--indigo) center / 55% no-repeat; }
.card--call::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25 11.4 11.4 0 0 0 3.6.57 1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1 11.4 11.4 0 0 0 .57 3.6 1 1 0 0 1-.25 1z'/%3E%3C/svg%3E"); }
.card--sms::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M4 3h16a2 2 0 0 1 2 2v11a2 2 0 0 1-2 2H9l-5 4v-4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3C/svg%3E"); }
.card--back::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); background-color: var(--sun); }
.card--test::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l4 4 10-10'/%3E%3C/svg%3E"); background-color: var(--leaf); }
.card a.tel-link, .card a.sms-link { font-weight: 800; font-size: 1.1875rem; color: var(--ink); }

/* Pole „W skrócie” i linki */
.entry-content > ul.is-style-rows:first-of-type { background: var(--cream); border-radius: var(--radius); border-top: 0; padding: .5rem clamp(1.25rem, 3vw, 2rem) !important; }
.entry-content > ul.is-style-rows:first-of-type > li:last-child { border-bottom: 0; }
a { text-decoration-color: var(--lavender); }
a:hover { text-decoration-color: var(--sun); }

/* Zgoda na cookies */
.cookie-bar { position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 90; max-width: 560px; margin-left: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 1.1rem 1.25rem; box-shadow: 0 20px 50px -20px rgba(46, 39, 104, .45); }
.cookie-bar p { margin: 0 0 .85rem; font-size: 1rem; color: var(--text); }
.cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-btn { flex: 1; min-height: 46px; border-radius: 999px; font: inherit; font-weight: 800; cursor: pointer; border: 2px solid var(--ink); background: #fff; color: var(--ink); }
.cookie-btn--yes { background: var(--sun); border-color: var(--sun); }
.cookie-settings-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
@media (max-width: 781px) { .cookie-bar { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* Telefony */
@media (max-width: 781px) {
	.hero::before { display: none; }
	.hero-kicker { font-size: .875rem; }
	.hero-buttons .wp-block-button { width: 100%; }
	.hero-buttons .wp-block-button__link { width: 100%; justify-content: center; min-height: 3.5rem; box-sizing: border-box; }
	.hero-card { border-radius: 22px; margin-top: 1rem; }
	.local-box { border-radius: 22px !important; padding: 1.75rem 1.25rem !important; }
	.local-box::after { width: 200px; height: 130px; }
	.card--icon { padding-top: 4.25rem !important; }
	.card--icon::before { top: 1.25rem; left: 1.25rem; }
}

/* Nagłówek – jedna linia na laptopach */
html, body { overflow-x: clip; }
.site-header .header-cta .wp-block-button__link { white-space: nowrap; }
.site-header .wp-block-navigation { --navigation-layout-gap: 1.25rem; gap: 1.25rem !important; }
.site-header .wp-block-navigation__container { gap: 1.25rem !important; flex-wrap: nowrap !important; }
.site-header .wp-block-navigation a { white-space: nowrap; }
@media (max-width: 1440px) { .site-header .wp-block-site-tagline { display: none; } }
@media (min-width: 1024px) and (max-width: 1240px) { .site-header .header-phone { display: none !important; } .site-header .wp-block-navigation__container { gap: 1rem !important; } }

/* Czas czytania i „Posłuchaj” */
.read-tools { max-width: var(--wp--style--global--content-size, 760px); margin: 0 auto 1.75rem; padding: 0 var(--wp--style--root--padding-right, 1.25rem) 0 var(--wp--style--root--padding-left, 1.25rem); display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; box-sizing: content-box; }
.read-time { color: var(--muted); font-weight: 700; font-size: .9375rem; }
.read-aloud { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.1rem 0 .9rem; border: 2px solid var(--indigo); border-radius: 999px; background: #fff; color: var(--indigo); font: inherit; font-size: .9375rem; font-weight: 800; cursor: pointer; }
.read-aloud::before { content: ""; width: 1.1rem; height: 1.1rem; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h4l5 4V6L7 10H3zm13.5 2A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10v4h4l5 4V6L7 10H3zm13.5 2A4.5 4.5 0 0 0 14 8v8a4.5 4.5 0 0 0 2.5-4zM14 3.2v2.1a7 7 0 0 1 0 13.4v2.1a9 9 0 0 0 0-17.6z'/%3E%3C/svg%3E") center / contain no-repeat; }
.read-aloud .read-aloud-stop, .read-aloud.is-on .read-aloud-play { display: none; }
.read-aloud.is-on .read-aloud-stop { display: inline; }
.read-aloud.is-on, .read-aloud:hover { background: var(--indigo); color: #fff; }

/* Pływający przycisk „Oddzwonimy” (tylko komputer) */
.float-cta { position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 80; display: inline-flex; align-items: center; gap: .6rem; padding: .85rem 1.25rem .85rem 1rem; border-radius: 999px; background: var(--ink); color: #fff !important; text-decoration: none; font-weight: 600; font-size: 1rem; box-shadow: 0 18px 40px -16px rgba(46, 39, 104, .6); transition: transform .2s ease, opacity .2s ease; }
.float-cta strong { color: var(--sun); font-weight: 900; }
.float-cta:hover { transform: translateY(-2px); }
.float-cta[hidden] { display: inline-flex; opacity: 0; pointer-events: none; transform: translateY(12px); }
.float-cta-dot { width: .65rem; height: .65rem; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(240, 138, 108, .6); animation: float-ping 2s ease-out infinite; }
@keyframes float-ping { 0% { box-shadow: 0 0 0 0 rgba(240, 138, 108, .6); } 100% { box-shadow: 0 0 0 12px rgba(240, 138, 108, 0); } }
body:has(.cookie-bar:not([hidden])) .float-cta { opacity: 0; pointer-events: none; }
@media (max-width: 781px) { .float-cta { display: none !important; } }
@media print { .float-cta, .read-tools { display: none !important; } }

/* „Co będzie dalej?” przy formularzu */
.next-title { font-size: 1.1875rem !important; margin-top: 1.75rem !important; }
ol.next-steps { list-style: none; counter-reset: ns; padding: 0 !important; margin: .75rem 0 1.5rem; }
ol.next-steps > li { counter-increment: ns; position: relative; padding: 0 0 .9rem 2.6rem; font-size: 1.0625rem; color: var(--text); }
ol.next-steps > li::before { content: counter(ns); position: absolute; left: 0; top: -.1rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #fff; border: 2px solid var(--indigo); color: var(--indigo); font-weight: 900; font-size: .9375rem; display: flex; align-items: center; justify-content: center; }

/* Mity – jaśniejsze, bardziej eleganckie karty */
.flip-front { background: #fff; border: 1px solid var(--line); box-shadow: 0 14px 30px -24px rgba(46, 39, 104, .45); }
.flip-front .flip-tag { background: var(--sun-soft); color: #9a3d22; }

/* Zakończenie strony */
.cta-end { position: relative; overflow: hidden; background: linear-gradient(135deg, #4B3F9E 0%, #2E2768 70%) !important; margin-bottom: 0 !important; }
.cta-end::before { content: ""; position: absolute; left: -60px; bottom: -40px; width: 420px; height: 260px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 38'%3E%3Cpath d='M4 31C12 31 15 15 23 17C31 19 21 33 30 30C38 27 44 12 56 8' fill='none' stroke='%234B3F9E' stroke-width='5.5' stroke-linecap='round'/%3E%3Ccircle cx='55' cy='8' r='5.5' fill='%23F08A6C'/%3E%3C/svg%3E") center / contain no-repeat; opacity: .5; }
.cta-end > * { position: relative; }
.cta-end-title { color: #fff !important; font-size: var(--wp--preset--font-size--x-large) !important; }
.cta-end-text, .entry-content .cta-end-text { color: #E7E4FA !important; font-size: 1.1875rem; }
.cta-end .wp-block-button.is-style-outline .wp-block-button__link { color: #fff; border-color: #fff; }
.cta-end .wp-block-button.is-style-outline .wp-block-button__link:hover { background: #fff; color: var(--ink); }
.page-main:has(> .entry-content > .cta-end:last-child) { padding-bottom: 0 !important; }
@media (max-width: 781px) { .cta-end-title { font-size: 1.875rem !important; } .cta-end .wp-block-button { width: 100%; } .cta-end .wp-block-button__link { width: 100%; justify-content: center; } }
