html { background: #F7F0E8; display: none; justify-content: center; align-items: center; min-height: 100vh; }
body { margin: 0 auto; width: 100%; max-width: 1440px; background: #F7F0E8; color: #1F2D48; font-family: Montserrat; font-size: 16px; line-height: 150%; letter-spacing: 5%; }
body * { font-family: inherit; color: inherit; position: relative; box-sizing: border-box; }

/* #loader { position: fixed; inset: 0; display: flex; justify-content: center; align-items: center; width: 100vw; height: 100vh; background: #000; color: #fff; font-size: 2vw; text-align: center; }
#loader ~ * { visibility: hidden; opacity: 0; }
#loader[hidden] ~ * { visibility: visible; opacity: 1; } */

.plus { display: inline-block; width: 36px; height: 36px; }
.plus::before, .plus::after { content: ''; position: absolute; background-color: #1F2D48; } 
.plus::before { left: 30%; top: 50%; width: 40%; height: 2px; transform: translateY(-50%); }
.plus::after { left: 50%; top: 30%; width: 2px; height: 40%; transform: translateX(-50%); }

.minus { width: 36px; height: 36px; }
.minus::before { content: ''; position: absolute; left: 30%; top: 50%; width: 40%; height: 2px; background-color: #1F2D48; transform: translateY(-50%); }

body > header, body > footer { background: #1F2D48; color: #F7F0E8; padding: 2% 5%; }
body > footer { padding: 15px; }
body > header, #cele, #cele > div, #dalej { display: flex; justify-content: space-between; align-items: center; }
#cele > div { align-items: flex-start; }
body > header img { display: block; }
body > header img:first-child { margin-top: -1%; }

#temat { display: flex; align-items: center; aspect-ratio: 45 / 8; font-family: "Libre Baskerville"; background: #F7F0E8; }
#temat > div { width: 100%; text-align: center; font-weight: 400; font-size: 3.474vw; line-height: 130%; }
#temat > div > span { font-family: Lacquer; text-transform: uppercase; }

#kartka { z-index: 2; margin-bottom: -8%; }
#kartka > img { aspect-ratio: 144 / 11; width: 100%; display: block; }

#postep { display: flex; justify-content: space-between; padding: 0 10%; gap: 10%; }
#postep > a, #postep > div { flex: 1; aspect-ratio: 20/1; background: #CDB887; }
#postep div.now { background: #1F2D48; }
#postep .now ~ * { background: #CDB887B8; }

main { z-index: 1; display: flex; flex-direction: row-reverse; justify-content: flex-start; align-items: stretch; margin: 0 5%; }
main > div { padding: 11.812vw 0 3.5vw; width: 50%; }

#krok1, #krok3 { padding: 11.812vw 5vw 3.5vw; }
#krok3 + div { padding: 8vw 2vw 3.5vw; }
#zaproszenie { font-weight: 600; font-size: 18px; line-height: 130%; margin-bottom: 1em; }
#cele { flex-direction: column; gap: 1em; margin: 1em 0; }
#cele > div { gap: 1em; }
#cele img { width: 10%; }

input, button, #dalej > a { display: block; width: 100%; height: 36px; padding: 10px; margin: 0; }
:focus { outline: none; }
input { background: #CDB8874D; border: 1px solid #1F2D48; font-family: Montserrat; font-weight: bold; font-size: 16px; letter-spacing: 5%; }
input::placeholder { font-weight: normal; }
button, #dalej > a { background:#DADDE7; border: none; width: auto; height: 36px; padding: 10px 20px; font-size: 13px; font-weight: bold; line-height: 100%; letter-spacing: 15%; }
button:not(.disabled):hover, #dalej > a:hover { cursor: pointer; background: #C6D1E6; }

.dziecko + div { border-top: 1px solid #CDB887; }
.dziecko > div, .szkola > div { margin: 24px 0; }
.dziecko > div > div:first-child, .szkola > div > div:first-child { display: flex; }
div.error, span[class|="error"] { display: none; color: #DA2C38; height: 16px; line-height: 16px; margin-top: 8px; font-weight: 400; }
#uwz { margin: 0 0 8px; }
.dziecko > div > div > input, .szkola > div > div > input { flex: 0 0 calc(100% - 54px); }
.dziecko > div > div > button { margin-left: 18px; flex: 0 0 36px; height: 36px; padding: 0; }

#dodajdziecko { display: flex; padding: 0 20px 0 0; line-height: 36px; } 

div.kwadrat { display: inline-block; width: 17px; height: 17px; border: 1px solid #1F2D48; vertical-align: middle; margin-right: 6px; }
#krok1 input:checked + div, #popup input:checked + div, #krok2 input:checked + div .kwadrat { background: #1F2D48; }
#zgody { margin-left: 50px; }
#zgody label, #popup label { line-height: 200%; }
label.rozwin { display: inline-block; }
label.rozwin > div { font-size: 14px; line-height: 130%; }
label.rozwin input + b { display: inline-block; aspect-ratio: 1/1; width: 13px; border: solid #1F2D48; border-width: 3px 3px 0 0; transform: rotate(135deg); top: -2px; margin-left: 10px; }
label.rozwin input:checked + b { transform: rotate(-45deg); top: 5px; }
label.nie { margin-left: 2em; }
label.rozwin input:checked ~ div { display: block; }

#yt.play > #film { display: block; }
#yt, #film { border-radius: 15px; }
#yt > img { border-radius: inherit; width: 100%; display: block; }
#yt > div { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 12%; aspect-ratio: 4/3; background: #f00c; border-radius: inherit; display: inline-block; text-align: center; vertical-align: middle; color: #fff; padding-left: 1%; font-size: 2vw; line-height: 4vw; }

.dalej, #dalej > a { margin: 1em 0 0 auto; background: #CDB887; }
.dalej.disabled { opacity: 0.6; cursor: not-allowed; }
.dalej:not(.disabled):hover, #dalej > a:hover { background: #B9AC86; }

#msz { font-family: Montserrat; font-weight: 400; font-size: 14px; line-height: 130%; letter-spacing: 15%; text-align: right; }
#msz > div:first-child { font-family: Waterfall; font-size: 3.3vw; line-height: 100%; letter-spacing: 0%; margin: 1% 0; }

label, #yt, #yt div { cursor: pointer; }

input[type="checkbox"], input[type="radio"], label.rozwin > div, #film, #yt.play > #film ~ *, #zwin { display: none; }

body > footer { font-weight: 400; font-size: 14px; line-height: 130%; letter-spacing: 0%; z-index: 1; }
body > footer > p:first-child { text-align: center; margin: 0; }
body > footer > p:first-child > a { color: #CDB887; font-weight: 600; }
body > footer > p:first-child > a:hover { text-decoration: underline; cursor: pointer; }

#popup { position: fixed; top:0; left: 0; width: 100%; height: 100%; min-height: 100vh; background: #C6D1E6CC; z-index: 999; display: flex; justify-content: center; overflow-y: auto; padding: 5vw; }
#popup > div { display: inline-block; background: #F7F0E8; border-top: 12px solid #1F2D48; padding: 2em; text-align: center; margin: auto 0; max-width: calc(1440px - 20vw); }
#popup header { font-family: Libre Baskerville; font-weight: 400; font-size: 28px; line-height: 150%; letter-spacing: 0%; }

#dalej2 { margin: 2em auto 0; }

#krok2 { padding-left: 5%; padding-right: 3%; }
main.krok2 > div:first-child, main.krok3 > div:first-child { background: #C6D1E6; }
main.krok2 > div:first-child  { padding: 11.812vw 5% 3.5vw; }
main.krok2 > div:first-child > img { width: 100%; }
#krok2 #obszary { line-height: 60px; word-spacing: 20px; }
#krok2 #obszary > label > div { font-family: Montserrat; font-size: 14px; }
#krok2 #obszary div { display: inline-block; height: 36px; padding: 0 1em; background: #F7F0E8; border: 1px solid #CDB887; box-shadow: 0px 5px 10px #1F2D4880; font-size: 14px; line-height: 36px; word-spacing: initial; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
#krok2 #obszary input:checked + div { background: #CDB887CC; }
#krok2 #zpj { font-size: 12px; color: #7C6354; }
#krok2 #zpj.error, #krok2 span[class|="error"] { color: #DA2C38; font-weight: 400; font-size: 16px; }
#krok2 form > label > div { display: flex; gap: 1em; }
#krok2 input.error-1 ~ span.error-1, #krok2 input.error-2 ~ span.error-2 { display: inline-block; }
#krok2 #p1 { margin-top: 0; }

#dziekujemy { font-family: 'Libre Baskerville'; font-weight: 500; font-style: italic; letter-spacing: 0%; font-size: 2.1vw; line-height: 150%; }
#dziekujemy > img { width: 100%; margin-bottom: 1em; }
#kontakty { margin-top: 2em; }
#kontakty img { margin-right: 2vw; width: 6vw; }
#footer > * { flex: 1 1 0; }
#footer > a:first-child { text-align: left; }
#footer > p { text-align: center; font-size: 2.5vw; }
#footer > a:last-child { text-align: right; }
#footer > a:last-child > img { text-align: right; margin-left: auto; }
header > p { font-family: 'La Belle Aurore'; font-size: 36px; line-height: 150%; color: #CDB887; margin: 0; }

#slider { display: flex; flex-wrap: wrap; }
#karuzela .nav { display: none; }
#slider > p, #karuzela + p { font-family: Libre Baskerville; font-size: 2vw; line-height: 130%; letter-spacing: 0%; text-align: center; margin: 0.5em 0; }
#karuzela + p { display: none; }
#karuzela figure { width: 50%; margin: 0; display: flex; flex-direction: column; }
#karuzela img { width: 7vw; display: block; margin: 0 auto; }
#karuzela figure p { text-align: center; font-weight: 600; font-size: 1vw; line-height: 150%; letter-spacing: 5%; text-transform: uppercase; }

main.krok3 + footer { display: none; }
#d1 { margin: 0 5%; }
#d1 > img { display: block; width: 100%; }
#d2 { margin: 5%; }
#d3 > br { display: none; }

#dalej { margin-top: 3em; }
#dalej > * { text-align: center; }
#dalej > * > b { display: inline-block; aspect-ratio: 1/1; width: 10px; border: solid #1F2D48; border-width: 2px 2px 0 0; top: 1px; margin-left: 5px; }
#dalej > a { padding: 10px 0; margin: 0 auto 0 0; text-decoration: none; background: #F7F0E8; border: 1px solid #CDB887; font-weight: 400; }
#dalej > a > b { transform: rotate(225deg); }
#dalej > button { padding: 10px 0; flex: 0 0 265px; margin: 0 0 0 auto; }
#dalej > button > b { transform: rotate(45deg); }

@media screen and (min-width: 1440px) {
#temat > div { font-size: 50px; }
main > div { padding: 170px 0 50px; }
#krok1, #krok3 { padding: 170px 72px 50px; }
#dziekujemy { font-size: 30px; }
#cele > img { width: 72px; }
#yt > div { font-size: 30px; line-height: 58px; }
#msz  { font-size: 14px; }
#msz > div:first-child { font-size: 48px; }
#krok2 + div > img { margin-top: -174px; }
#krok3 + div { padding: 116px 30px 50px; }
#kontakty img { margin-right: 29px; width: 86px; }
#karuzela figure img { width: 110px; }
#slider > p { font-size: 30px; }
#karuzela figure p { font-size: 15px; }
#footer > p { font-size: 36px; }
main.krok2 > div:first-child { padding: 170px 3% 3.5vw; }
}

@media screen and (max-width: 744px) {
	main { flex-direction: column; }
	main.krok2, main.krok3 { margin: 0; }
	main > div { width: 100%; }
	#logo, #logo3 { width: 11vw; }
	#napis > img, #napis3 { width: 40vw; }
	#yt2 { display: flex; align-items: flex-end; }
	#yt2 > div { flex: 1; }
	#msz { font-size: 1.7vw; }
	#msz > div:first-child { font-size: 6.3vw; }
	#postep { padding: 0 5%; }
	#krok1 { padding: 5px 36px 25px; }
	#krok2 { padding: 1em 5vw 2em; }
	#krok3 { padding: 0 10vw 2em; }
	#temat > div { font-size: 5vw; }
	#karuzela { overflow: hidden; }
	#karuzela .nav { position: absolute; z-index: 1; display: block; aspect-ratio: 1/1; width: 13px; border: solid #1F2D48; border-width: 3px 3px 0 0; transform: rotate(225deg); top: 10vw; margin: 0 0.5vw; }
	#karuzela .nav:hover { cursor: pointer; }
	#karuzela .nav.prawo { right: 0; transform: rotate(45deg); }
	#karuzela figure { width: 25%; flex-shrink: 0; flex-direction: column-reverse; justify-content: flex-end; }
	#slider { display: flex; flex-wrap: nowrap; transition: transform 1s ease; }
	#slider > p { display: none; }
	#karuzela figure p { font-size: 1.6vw; }
	#karuzela img { width: 11vw; }
	#karuzela + p { display: block; font-size: 4vw; margin: 1em 0 0; padding: 0 2vw; }
	main.krok2 > div:first-child { padding: 11.812vw 3% 3.5vw; }
	#dziekujemy { background: none; padding: 0; }
	#d1 { background: #C6D1E6; margin: 0; padding: 11.812vw 10vw 0; }
	#footer > p { display: none; }
	#d2 { margin: 3%; display: flex; justify-content: space-between; background: none; }
	#d3 { font-size: 4vw; line-height: 150%; letter-spacing: 0%; }
	#d3 > br { display: initial; }
	#kontakty img { width: 11vw; margin-right: 4vw; }
}

@media screen and (max-width: 393px) {
	body > header { justify-content: center; }
	#logo, #logo3 { width: 15vw; }
	#napis, #napis3 { display: none; }
	#temat > div { font-size: 8vw; padding: 5vw 10vw; }
	#krok1 { padding: 5px 0 25px; }
	#krok3 { padding: 0 3vw 25px; }
	#cele img { display: none; }
	#cele > div { gap: 0.5em; }
	#cele > div:before { content: '•'; }
	#yt.play { text-align: right; }
	#yt.play + #msz { display: none; }
	#yt.play #zwin { display: inline-block; aspect-ratio: 1/1; width: 10px; border: solid #CDB887; border-width: 3px 3px 0 0; transform: rotate(-45deg); margin-top: 10px; }
	#yt > div { font-size: 4vw; line-height: 8vw; }
	#popup { padding: 5vw 0; }
	#karuzela .nav { top: 25vw; }
	#karuzela figure { width: 50%; }
	#karuzela figure p { font-size: 3.2vw; }
	#karuzela img { width: 22vw; }
	#karuzela + p { font-size: 6vw; }
	#d1 { padding: 12vw 1vw 0; }
	#d3 { font-size: 7vw; }
	#msz { display: none; }
	#kontakty img { width: 20%; margin-right: 5%; }
	#footer > * { flex: initial; }
}

#dalej > a { flex: 0 0 100px; }

@media screen and (max-width: 424px), screen and (min-width: 745px) and (max-width: 985px) {
	#dalej > a { flex: 0 0 50px; }
	#dalej > a > span { display: none; }
}
@media screen and (max-width: 370px), screen and (min-width: 745px) and (max-width: 850px) {
	#dalej > button > span { display: none; }
	#dalej > button { flex: 0 0 175px; }
}