/* Strona dla Spółdzielni: style strony sprzedażowej (makieta: mockups/home-6). */

:root {
	--bg: #FFFFFF;
	--soft: #F5F6F7;
	--ink: #0E1116;
	--ink-2: #3F4550;
	--ink-3: #6A707A;
	--line: #E3E5E8;
	--green: #1D6B55;
	--green-soft: #E7F1EC;
	--max: 1200px;
	--pad: 32px;
}
html { overscroll-behavior-y: none; font-synthesis: none; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { -webkit-font-smoothing: antialiased; }
.wp-site-blocks > * + * { margin-block-start: 0; }
img, svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -10rem; z-index: 60; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.o-home, .foot, .nav, .sheet { font-size: 1.1875rem; line-height: 1.6; color: var(--ink); }
.o-home a, .nav a, .foot a, .sheet a { color: inherit; }
.o-home h1, .o-home h2, .o-home h3 { margin: 0; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; color: inherit; }
.o-home h2 { font-size: 2.875rem; line-height: 1.1; }
.o-home h3 { font-size: 1.3125rem; line-height: 1.3; letter-spacing: -.015em; }
.o-home p { margin: 0; }
.o-home *, .o-home *::before, .nav *, .foot *, .sheet * { box-sizing: border-box; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }
.sec { padding: 120px 0; }
.sec.soft { background: var(--soft); }
.head { max-width: 760px; margin-bottom: 56px; }
.head.center { margin-left: auto; margin-right: auto; text-align: center; }
.head p { margin-top: 18px; font-size: 1.25rem; color: var(--ink-2); }

/* Przyciski */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-sizing: border-box; height: 3.5rem; padding: 0 28px; border-radius: 12px; font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer; border: 1.5px solid var(--ink); transition: background-color .15s, border-color .15s, color .15s, transform .1s ease-out; }
.o-home .btn-dark, .nav .btn-dark, .sheet .btn-dark, .btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2A2F37; border-color: #2A2F37; }
.o-home .btn-light { background: #fff; color: var(--ink); border-color: #C9CDD2; }
.btn-light:hover { border-color: var(--ink); }
.o-home .btn-white { background: #fff; color: var(--ink); border-color: #fff; }
.btn-white:hover { background: #E9F5EF; border-color: #E9F5EF; }
.o-home .btn-ghost { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-sm { height: 2.75rem; padding: 0 18px; font-size: 1rem; border-radius: 10px; }
/* Reakcja od razu przy wciśnięciu, także na telefonie (bez hover). */
.btn:active, .menu-btn:active, .close-btn:active { transform: scale(.97); }

/* Nagłówek */
.o-header-wrap { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 30; }
.nav { background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { height: 72px; display: flex; align-items: center; gap: 40px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; white-space: nowrap; }
.brand svg { flex: none; width: 32px; height: 32px; color: var(--ink); }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 34px; margin: 0; padding: 0; list-style: none; }
.nav-links a { font-size: 1rem; font-weight: 500; color: var(--ink-2); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.menu-btn, .close-btn { height: 2.75rem; padding: 0 16px; border: 1px solid #C9CDD2; border-radius: 10px; background: #fff; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); cursor: pointer; transition: transform .1s ease-out; }
.menu-btn { display: none; align-items: center; gap: 8px; margin-left: auto; }
.menu-btn svg { width: 18px; height: 18px; }
.sheet { position: fixed; inset: 0; z-index: 70; display: flex; flex-direction: column; padding: 10px 20px 28px; background: #fff; overflow-y: auto; opacity: 1; translate: 0; transition: opacity .2s ease-out, translate .2s ease-out, display .2s; transition-behavior: allow-discrete; }
/* Menu wysuwa się spod przycisku „Menu” i chowa tą samą drogą. */
@starting-style { .sheet { opacity: 0; translate: 0 -8px; } }
.sheet[hidden] { display: none; opacity: 0; translate: 0 -8px; }
.sheet-top { height: 52px; display: flex; align-items: center; justify-content: space-between; }
.sheet ul { margin: 20px 0 32px; padding: 0; list-style: none; }
.sheet li a { display: flex; align-items: center; min-height: 60px; border-bottom: 1px solid var(--line); font-size: 1.375rem; font-weight: 600; text-decoration: none; }
.sheet .btn { width: 100%; margin-top: auto; }

/* Hero */
.hv { margin: 8px 16px 0; border-radius: 28px; overflow: hidden; position: relative; isolation: isolate; color: #fff; background: #20352C url(../img/hero-osiedle.webp) center 55% / cover; }
.hv::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8,20,15,.90) 0%, rgba(8,20,15,.74) 38%, rgba(8,20,15,.30) 72%, rgba(8,20,15,.18) 100%), linear-gradient(0deg, rgba(8,20,15,.75) 0%, rgba(8,20,15,0) 30%); }
.hv-in { max-width: 1232px; margin: 0 auto; padding: 72px 32px 0; }
.hv-grid { display: grid; grid-template-columns: 1fr 660px; gap: 40px; align-items: center; }
.hv-pill { display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 15px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); font-size: 0.9375rem; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hv-pill i { width: 7px; height: 7px; border-radius: 50%; background: #8FE0BC; }
.o-home .hv h1 { margin-top: 24px; font-size: 3.5rem; line-height: 1.07; letter-spacing: -.035em; color: #fff; }
.hv h1 span { display: block; color: #9BE3C3; }
.o-home .hv-lead { margin-top: 22px; max-width: 30em; font-size: 1.25rem; line-height: 1.55; color: rgba(255,255,255,.86); }
.hv-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hv-ctas .btn { padding: 0 24px; }
.hv-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 56px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(255,255,255,.22); }
.hv-stats li { padding: 26px 28px 30px; border-left: 1px solid rgba(255,255,255,.22); }
.hv-stats li:first-child { border-left: 0; padding-left: 0; }
.hv-stats b { display: block; font-size: 1.625rem; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.hv-stats span { display: block; margin-top: 4px; font-size: 1rem; line-height: 1.4; color: rgba(255,255,255,.78); }

/* Kompozycja: komputer + telefon */
.hv-visual-wrap { position: relative; width: 660px; height: 500px; }
.hv-visual { position: absolute; left: 0; top: 0; width: 660px; height: 500px; color: #1B2027; text-align: left; font-size: 15px; line-height: 1.45; }
.hv-browser { position: absolute; left: 76px; top: 0; width: 584px; height: 410px; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 40px 80px -24px rgba(0,0,0,.6); }
.hv-bar { height: 32px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #F4F5F6; border-bottom: 1px solid var(--line); }
.hv-bar i { width: 9px; height: 9px; border-radius: 50%; background: #D5D8DC; }
.hv-bar span { margin: 0 auto; transform: translateX(-18px); height: 20px; display: flex; align-items: center; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; font-size: 10.5px; color: var(--ink-3); }
.hv-head { display: flex; align-items: center; gap: 16px; padding: 12px 20px; white-space: nowrap; }
.hv-logo { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 600; line-height: 1.2; white-space: nowrap; }
.hv-logo svg { flex: none; width: 26px; height: 26px; color: var(--green); }
.hv-nav { display: flex; gap: 14px; margin-left: auto; font-size: 11px; color: #4A515B; }
.hv-login { height: 26px; display: flex; align-items: center; padding: 0 10px; border-radius: 6px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 600; }
.hv-photo { position: relative; height: 200px; margin: 0 20px; border-radius: 10px; overflow: hidden; }
.hv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 55%; }
.hv-photo .box { position: absolute; right: 16px; bottom: 16px; width: 250px; padding: 14px 16px; background: #fff; border-radius: 9px; }
.hv-photo .box b { display: block; font-size: 16px; line-height: 1.2; letter-spacing: -.015em; font-weight: 600; }
.hv-photo .box span { display: block; margin-top: 5px; font-size: 10.5px; line-height: 1.45; color: #5F6770; }
.hv-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px 20px; }
.hv-tile { padding: 12px; border: 1px solid var(--line); border-radius: 9px; }
.hv-tile .ic { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; background: var(--green-soft); color: var(--green); margin-bottom: 9px; }
.hv-tile .ic svg { width: 15px; height: 15px; }
.hv-tile b { display: block; font-size: 11.5px; font-weight: 600; }
.hv-tile span { display: block; font-size: 9.5px; line-height: 1.35; color: #6A717B; }
.hv-phone { position: absolute; left: 0; top: 96px; }
.hv-chip { position: absolute; left: 250px; top: 398px; display: flex; align-items: center; gap: 12px; width: 290px; padding: 13px 15px; background: #fff; border-radius: 14px; box-shadow: 0 24px 48px -14px rgba(0,0,0,.55); }
.hv-chip .ic { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: var(--green-soft); color: var(--green); }
.hv-chip .ic svg { width: 19px; height: 19px; }
.hv-chip small { display: block; font-size: 11.5px; font-weight: 600; color: var(--green); }
.hv-chip b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.hv-chip span { display: block; font-size: 12px; color: var(--ink-3); }

/* Telefon (ilustracja): rozmiary w em, skala przez font-size kontenera */
.ph { box-sizing: border-box; width: 17.2em; padding: .6em; background: #0F1318; border-radius: 2.85em; box-shadow: 0 30px 60px -18px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.08); color: #1B2027; line-height: 1.4; text-align: left; }
.ph.hv-phone { font-size: 12px; }
.ph.ph-big { font-size: 19px; box-shadow: 0 40px 80px -30px rgba(14,17,22,.45); }
.ph .scr { border-radius: 2.25em; background: #fff; overflow: hidden; }
.ph .top { height: 2.2em; display: flex; justify-content: space-between; align-items: center; padding: 0 1.5em; font-size: .8em; font-weight: 600; }
.ph .top i { width: 1.1em; height: .6em; border-radius: .2em; border: 1.2px solid #1B2027; }
.ph .hd { display: flex; justify-content: space-between; align-items: center; gap: .6em; padding: .5em 1em .75em; border-bottom: 1px solid var(--line); }
.ph .hd .hv-logo { font-size: .85em; gap: .6em; }
.ph .hd .hv-logo svg { width: 2em; height: 2em; }
.ph .mn { height: 1.85em; display: flex; align-items: center; gap: .35em; padding: 0 .7em; border: 1px solid #CDD1D6; border-radius: .5em; font-size: .8em; font-weight: 600; white-space: nowrap; }
.ph .mn svg { width: 1.1em; height: 1.1em; }
.ph .bd { padding: 1.1em 1em 1.2em; }
.ph .t { display: block; margin-bottom: .85em; font-size: 1.35em; line-height: 1.15; letter-spacing: -.015em; font-weight: 600; }
.ph .it { display: flex; align-items: center; gap: .65em; height: 3.2em; padding: 0 .85em; margin-bottom: .5em; border: 1px solid var(--line); border-radius: .75em; font-weight: 600; white-space: nowrap; }
.ph .it svg { flex: none; width: 1.25em; height: 1.25em; color: var(--green); }
.ph .it .chev { margin-left: auto; width: .9em; height: .9em; color: #9AA0A8; }
.ph .call { display: flex; align-items: center; justify-content: center; gap: .6em; height: 3.2em; margin-top: .75em; border-radius: .75em; background: var(--green); color: #fff; font-size: .95em; font-weight: 600; white-space: nowrap; }
.ph .call svg { width: 1.15em; height: 1.15em; }

/* Moduły */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.card .ic { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 12px; background: var(--green-soft); color: var(--green); margin-bottom: 22px; }
.card .ic svg { width: 24px; height: 24px; }
.o-home .card p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-2); }
.tag { display: inline-block; margin-top: 16px; padding: 3px 10px; border-radius: 6px; background: var(--soft); font-size: 0.875rem; font-weight: 500; color: var(--ink-2); }
.o-home .more { margin-top: 36px; text-align: center; font-size: 1.0625rem; color: var(--ink-2); }

/* Czytelność */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split h2 { max-width: 11em; }
.o-home .split .lead { margin-top: 20px; font-size: 1.25rem; color: var(--ink-2); max-width: 27em; }
.checks { margin: 32px 0 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid #DDE0E4; font-size: 1.125rem; font-weight: 500; }
.checks li:last-child { border-bottom: 1px solid #DDE0E4; }
.checks svg { flex: none; width: 24px; height: 24px; color: var(--green); }
.phone-wrap { display: flex; justify-content: center; }

/* Wersje */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.o-home .demo { display: block; text-decoration: none; }
.demo .shot { aspect-ratio: 16 / 10; border: 1px solid #D9DCE0; border-radius: 14px; overflow: hidden; background: var(--soft); transition: box-shadow .2s, transform .2s; }
.demo .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* Baner zgody (statystyki i reklama) */
.zgoda { position: fixed; left: 24px; bottom: 24px; z-index: 80; box-sizing: border-box; width: min(440px, calc(100vw - 48px)); max-height: calc(100vh - 48px); overflow-y: auto; padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); font-size: 1rem; line-height: 1.55; box-shadow: 0 12px 40px rgba(14,17,22,.16); }
.zgoda[hidden] { display: none; }
.zgoda *, .zgoda *::before { box-sizing: border-box; }
.zgoda h2 { margin: 0 0 8px; font-size: 1.125rem; font-weight: 600; letter-spacing: -.015em; }
.zgoda p { margin: 0; color: var(--ink-2); }
.zgoda a { color: var(--ink); }
.zgoda-opcje { display: grid; gap: 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.zgoda-opcje[hidden] { display: none; }
.zgoda-opcje label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.zgoda-opcje input { width: 20px; height: 20px; margin: 0; accent-color: var(--green); }
.zgoda-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.zgoda-btns .btn { flex: 1 1 0; }
.zgoda-btns [hidden] { display: none; }
.zgoda-btns .btn-line { flex-basis: 100%; background: #fff; color: var(--ink); }
.zgoda-btns .btn-line:hover { background: var(--soft); }
.zgoda-link { flex-basis: 100%; padding: 6px 0 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; text-align: center; }
.zgoda-link:hover { color: var(--ink); }
.foot-link { padding: 0; border: 0; background: none; font: inherit; color: #C8CDD4; cursor: pointer; }
.foot-link:hover { color: #fff; }

@media (hover: hover) {
	.demo:hover .shot { box-shadow: 0 24px 50px -24px rgba(14,17,22,.3); transform: translateY(-2px); }
}
.demo:active .shot { transform: scale(.985); transition-duration: .1s; }
.demo .row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-top: 20px; }
.o-home .demo h3 { display: flex; align-items: center; gap: 10px; }
.demo h3 i { width: 12px; height: 12px; border-radius: 50%; }
.demo .open { display: inline-flex; align-items: center; gap: 6px; font-size: 1rem; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.demo .open svg { width: 16px; height: 16px; }
.o-home .demo p { margin-top: 6px; font-size: 1.0625rem; color: var(--ink-2); }
.o-home .note { margin-top: 40px; text-align: center; font-size: 1rem; color: var(--ink-3); }

/* Proces */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { padding: 32px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.step .n { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font-size: 1.125rem; font-weight: 600; margin-bottom: 24px; }
.o-home .step p { margin-top: 10px; font-size: 1.0625rem; color: var(--ink-2); }
.head.next { margin-top: 120px; }

/* Cennik */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { position: relative; padding: 36px 32px 34px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.plan.pick { border: 2px solid var(--ink); padding: 35px 31px 33px; }
.plan .badge { position: absolute; top: 34px; right: 30px; padding: 4px 11px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.8438rem; font-weight: 600; }
.o-home .plan .for { margin-top: 8px; font-size: 1rem; line-height: 1.5; color: var(--ink-2); min-height: 48px; }
.price { margin-top: 26px; display: flex; align-items: baseline; gap: 8px; }
.price b { font-size: 2.875rem; line-height: 1; font-weight: 600; letter-spacing: -.04em; white-space: nowrap; }
.price span { font-size: 1rem; color: var(--ink-3); }
.o-home .care { margin-top: 10px; font-size: 1rem; color: var(--ink-2); }
.care b { color: var(--ink); font-weight: 600; }
.plan .btn { width: 100%; margin-top: 26px; }
.plan ul { margin: 28px 0 0; padding: 26px 0 0; border-top: 1px solid var(--line); list-style: none; }
.plan li { display: flex; gap: 12px; padding: 6px 0; font-size: 1.0312rem; line-height: 1.45; }
.plan li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; color: var(--green); }
.plan li.plus { font-weight: 600; }
.o-home .below { margin-top: 36px; text-align: center; font-size: 1.0625rem; color: var(--ink-2); }
.o-home .below + .below { margin-top: 12px; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; padding: 18px 0; font-size: 1.25rem; font-weight: 600; letter-spacing: -.015em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; width: 22px; height: 22px; transition: transform .25s ease-out; }
.faq details[open] summary svg { transform: rotate(45deg); }
/* Odpowiedź rozwija się razem z obrotem ikony (Chrome/Edge; w pozostałych przeglądarkach bez animacji). */
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: clip; opacity: 0; transition: block-size .25s ease-out, opacity .25s ease-out, content-visibility .25s; transition-behavior: allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }
.o-home .faq details p { padding: 0 60px 26px 0; font-size: 1.125rem; color: var(--ink-2); }
.faq a { text-underline-offset: 3px; }

/* Przepisy */
.laws-sec.sec { padding: 88px 0; }
.laws-sec .head { margin-bottom: 32px; }
.o-home .laws-sec h2 { font-size: 2.125rem; }
.o-home .laws-sec .head p { font-size: 1.125rem; }
.laws { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.o-home .law { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; padding: 18px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; transition: border-color .15s, transform .1s ease-out; box-sizing: border-box; }
.law:hover { border-color: var(--ink); }
.o-home .law:active { transform: scale(.985); }
.law b { display: block; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; }
.law div span { display: block; margin-top: 2px; font-size: 0.9375rem; color: var(--ink-3); }
.law svg { flex: none; width: 20px; height: 20px; color: var(--ink-3); }
.o-home .law-note { margin-top: 24px; font-size: 0.9375rem; color: var(--ink-3); }

/* Kontakt */
.contact { background: var(--ink); color: #fff; }
.contact .split { align-items: start; gap: 72px; }
.contact h2 { max-width: 10em; }
.o-home .contact .lead { margin-top: 20px; font-size: 1.25rem; color: #C8CDD4; max-width: 27em; }
.cinfo { margin-top: 40px; display: grid; gap: 18px; }
.cinfo div { padding-top: 18px; border-top: 1px solid #2C323B; }
.cinfo small { display: block; font-size: 0.9375rem; color: #9AA1AB; }
.cinfo a, .cinfo span { font-size: 1.1875rem; font-weight: 500; color: #fff; }
.form { padding: 36px; border-radius: 18px; background: #fff; color: var(--ink); }
.form h3 { font-size: 1.5rem; }
.form-ok p { margin-top: 12px; color: var(--ink-2); }
.form-err { margin-bottom: 18px !important; padding: 14px 16px; border-radius: 10px; background: #FDECEA; color: #8A1C12; font-size: 1rem; }
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; font-size: 1rem; font-weight: 600; }
.field label small { font-weight: 400; color: var(--ink-3); font-size: 0.9375rem; }
.field input, .field textarea { box-sizing: border-box; width: 100%; height: 3.375rem; padding: 0 16px; border: 1px solid #C4C9CF; border-radius: 10px; font: inherit; font-size: 1.0625rem; color: var(--ink); background: #fff; }
.field textarea { height: 110px; padding: 14px 16px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: 0; border-color: var(--ink); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.consent { display: flex; gap: 12px; margin: 4px 0 24px; font-size: 0.9062rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.consent input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.consent a { color: var(--ink); text-underline-offset: 3px; }
.form .btn { width: 100%; }
/* Błędy przy polu dopiero po wyjściu z niego albo po próbie wysłania. */
.field .err { display: none; margin: 6px 0 0; font-size: 0.9375rem; font-weight: 500; color: #B42318; }
.field input:user-invalid { border-color: #B42318; box-shadow: inset 0 0 0 1px #B42318; }
.field input:user-invalid + .err { display: block; }
.consent-err { display: none; margin: -0.25rem 0 0.75rem; font-size: 0.9375rem; font-weight: 500; color: #B42318; }
.consent:has(input:user-invalid) + .consent-err, .consent:has(input[aria-invalid="true"]) + .consent-err { display: block; }
.consent:has(input:user-invalid) { color: #B42318; }
.form .btn[aria-disabled="true"] { opacity: .7; cursor: progress; }
.o-home .form .after { margin-top: 14px; text-align: center; font-size: 0.9375rem; color: var(--ink-3); }
.hp { position: absolute; left: -9999px; }

/* Stopka */
.foot { padding: 56px 0 48px; background: var(--ink); color: #9AA1AB; border-top: 1px solid #22272F; font-size: 0.9375rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.foot .brand { color: #fff; }
.foot .brand svg { color: #fff; --logo-fg: var(--ink); }
.foot nav { display: flex; flex-wrap: wrap; gap: 26px; }
.foot nav a, .foot .legal a { color: #C8CDD4; text-decoration: none; }
.foot nav a:hover, .foot .legal a:hover { color: #fff; }
.nowrap { white-space: nowrap; }
.foot .legal { flex-basis: 100%; margin: 0; padding-top: 24px; border-top: 1px solid #22272F; }

/* Podstrony (polityka prywatności, 404) */
.o-main--page { padding-top: 72px; padding-bottom: 112px; }
.o-main--page h1 { margin: 0 0 32px; font-size: clamp(2.25rem, 5vw, 3.25rem); line-height: 1.1; letter-spacing: -.035em; }
.o-main--page h2 { margin-top: 2.2em; font-size: 1.6rem; letter-spacing: -.02em; }
.o-main--page p, .o-main--page li { color: var(--ink-2); overflow-wrap: anywhere; }
.o-main--page a { text-underline-offset: 3px; }

/* ---------- Tablet ---------- */
@media (max-width: 1180px) and (min-width: 761px) {
	.hv-grid { grid-template-columns: 1fr; }
	.hv-copy { max-width: 640px; }
	.hv-visual-wrap { margin: 0 auto; }
	.hv-stats { grid-template-columns: 1fr 1fr; }
	.hv-stats li:nth-child(3) { border-left: 0; padding-left: 0; }
	.hv-stats li:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.22); }
}
@media (max-width: 1100px) {
	.nav-links { gap: 22px; }
	.grid3, .steps { grid-template-columns: 1fr 1fr; }
	.plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
	.o-home .plan .for { min-height: 0; }
}
@media (max-width: 900px) {
	.nav nav, .nav-cta { display: none; }
	.menu-btn { display: inline-flex; }
}

/* ---------- Telefon ---------- */
@media (max-width: 760px) {
	:root { --pad: 20px; }
	html { scroll-padding-top: 72px; }
	.o-home, .foot, .nav, .sheet { font-size: 1.0625rem; }
	.sec { padding: 72px 0; }
	.o-home h2 { font-size: min(2rem, 10vw); line-height: 1.15; }
	.o-home h3 { font-size: 1.1875rem; }
	.head { margin-bottom: 32px; }
	.head.next { margin-top: 72px; }
	.head p { font-size: 1.125rem; margin-top: 14px; }
	.nav .wrap { height: 62px; gap: 12px; }
	.brand { font-size: 1.0312rem; }
	.brand svg { width: 30px; height: 30px; }

	.hv { margin: 6px 8px 0; border-radius: 22px; background-image: url(../img/hero-osiedle-m.webp); background-position: 30% 50%; }
	.hv::before { background: linear-gradient(180deg, rgba(8,20,15,.88) 0%, rgba(8,20,15,.72) 45%, rgba(8,20,15,.55) 70%, rgba(8,20,15,.85) 100%); }
	.hv-in { padding: 32px 20px 0; }
	.hv-grid { grid-template-columns: 1fr; gap: 28px; }
	.hv-pill { height: auto; min-height: 32px; padding: 7px 14px; border-radius: 18px; font-size: 0.8438rem; line-height: 1.35; }
	.o-home .hv h1 { margin-top: 18px; font-size: min(2.25rem, 11vw); line-height: 1.1; }
	.o-home .hv-lead { margin-top: 16px; font-size: 1.0938rem; }
	.hv-ctas { flex-direction: column; margin-top: 24px; gap: 10px; }
	.hv-ctas .btn { width: 100%; }
	.hv-visual-wrap { width: auto; height: 440px; margin: 4px -20px 0 0; }
	.hv-visual { width: 100%; height: 100%; overflow: hidden; }
	.hv-browser { left: 92px; top: 0; transform: scale(.68); transform-origin: top left; }
	.hv-photo .box, .hv-chip { display: none; }
	.hv-phone { left: 0; top: 44px; }
	.ph.hv-phone { font-size: 12.5px; }
	.hv-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
	.hv-stats li { padding: 18px 0 20px 16px; border-left: 1px solid rgba(255,255,255,.22); border-top: 1px solid rgba(255,255,255,.22); }
	.hv-stats li:nth-child(-n+2) { border-top: 0; }
	.hv-stats li:nth-child(odd) { border-left: 0; padding-left: 0; }
	.hv-stats b { font-size: 1.25rem; }
	.hv-stats span { font-size: 0.9062rem; }

	.grid3, .steps, .grid2, .split, .laws, .two { grid-template-columns: 1fr; }
	.grid3 { gap: 12px; }
	.card { padding: 24px; display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 16px; }
	.card .ic { width: 44px; height: 44px; margin: 0; grid-row: span 3; }
	.o-home .card p { font-size: 1rem; margin-top: 6px; }
	.tag { justify-self: start; margin-top: 12px; }
	.split { gap: 48px; }
	.o-home .split .lead { font-size: 1.125rem; }
	.checks li { font-size: 1.0625rem; }
	.phone-wrap { display: none; }
	.grid2 { gap: 40px; }
	.demo .row { flex-direction: column; gap: 4px; margin-top: 16px; }
	.step { padding: 24px; }
	.step .n { margin-bottom: 16px; }
	.plan { padding: 28px 22px; }
	.plan.pick { padding: 27px 21px; }
	.plan .badge { top: 28px; right: 22px; }
	.price b { font-size: 2.5rem; }
	.faq summary { font-size: 1.125rem; min-height: 68px; }
	.o-home .faq details p { padding-right: 0; font-size: 1.0625rem; }
	.o-home .law { min-height: 76px; padding: 16px 18px; }
	.law b { font-size: 1.0625rem; }
	.laws-sec.sec { padding: 72px 0; }
	.o-home .laws-sec h2 { font-size: 1.75rem; }
	.contact .split { gap: 40px; }
	.form { padding: 24px 20px; }
	.foot .wrap { flex-direction: column; align-items: flex-start; }
	.foot { padding: 44px 0 36px; font-size: 0.9062rem; }
	.foot nav { gap: 12px 22px; }
	.foot .legal { padding-top: 20px; font-size: 0.8438rem; }
	.o-main--page { padding-top: 40px; padding-bottom: 72px; }
}
/* Telefon z większą czcionką w przeglądarce: długie napisy się zawijają, zamiast poszerzać stronę. */
@media (max-width: 760px) {
	.hv-grid, .split, .contact .split { grid-template-columns: minmax(0, 1fr); }
	.hv-ctas .btn, .plan .btn, .form .btn, .sheet .btn { height: auto; min-height: 3.5rem; padding-block: 12px; white-space: normal; text-align: center; line-height: 1.25; }
	.price { flex-wrap: wrap; }
	.cinfo a, .cinfo span { overflow-wrap: anywhere; }
	.brand { flex: 1 1 auto; min-width: 0; white-space: normal; line-height: 1.2; }
	.hv-stats b { white-space: normal; }
	.o-home h2, .o-home h3 { overflow-wrap: break-word; }
}
/* Wąski telefon (320 px): nazwa obok „Menu”, cennik w szerokości ekranu. */
@media (max-width: 760px) {
	.zgoda { left: 12px; right: 12px; bottom: 12px; width: auto; max-height: calc(100vh - 24px); padding: 20px; }
	/* Dymek czatu zasłaniałby przyciski banera: na telefonie wraca po wyborze. */
	.zgoda-otwarta elevenlabs-convai { display: none; }
}
@media (max-width: 399px) {
	:root { --pad: 16px; }
	.nav .wrap { gap: 4px; }
	.brand { gap: 7px; font-size: 0.9688rem; }
	.brand svg { width: 28px; height: 28px; }
	.menu-btn { gap: 6px; padding: 0 12px; }
	.hv-ctas .btn { padding-inline: 16px; }
	.plans { grid-template-columns: minmax(0, 1fr); }
	.plan { padding: 24px 18px; }
	.plan.pick { padding: 23px 17px; }
	.plan .badge { top: 24px; right: 18px; }
}
@media (prefers-reduced-motion: reduce) {
	/* Bez przesunięć, obrotów i zmian wysokości: zostają krótkie przenikania i zmiany koloru. */
	*, *::before, *::after, .faq details::details-content { transition-property: opacity, color, background-color, border-color, display, content-visibility !important; transition-duration: .15s !important; }
	.sheet, .sheet[hidden] { translate: none; }
	@starting-style { .sheet { translate: none; } }
	html { scroll-behavior: auto; }
}
/* Mniej przezroczystości: pełne tła zamiast rozmycia. */
@media (prefers-reduced-transparency: reduce) {
	.nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.hv-pill { background: #1B2B24; backdrop-filter: none; -webkit-backdrop-filter: none; }
	.o-home .btn-ghost, .o-home .btn-ghost:hover { background: #1B2B24; }
}
/* Większy kontrast: ciemniejsze linie i szary tekst, wyraźne obramowania. */
@media (prefers-contrast: more) {
	:root { --line: #8A9099; --ink-2: #252A31; --ink-3: #3F4550; }
	.nav { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; border-bottom-color: var(--line); }
	.o-home .btn-light, .menu-btn, .close-btn, .field input, .field textarea { border-color: var(--ink); }
	.o-home .btn-ghost { background: #0B1511; border-color: #fff; }
	.hv-pill { background: #0B1511; border-color: #fff; }
	.o-home .hv-lead, .hv-stats span { color: #fff; }
	.o-home .contact .lead, .cinfo small, .foot { color: #E3E6EA; }
}

/* Telefon w sekcji „Czytelna…”: węższy nagłówek, żeby zmieścił się przycisk „Większy tekst” */
.ph.ph-big .hd .hv-logo { font-size: .72em; }
.ph.ph-big .mn { font-size: .66em; padding: 0 .6em; }
