/* Kodownia — pixel-art night sky, lime accents, purple clouds, grass and dirt (brand from the Facebook page). */
/* Press Start 2P (SIL Open Font License 1.1, see ../fonts/OFL.txt), served from this site, not from Google. */
@font-face { font-family: "Press Start 2P"; src: url("/assets/fonts/PressStart2P-Regular-ccb1dfce06ad3883f8e3b5ae011aa795.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
:root {
    color-scheme: dark;
    --bg: #07080b;
    --bg-alt: #10141d;
    --surface: #171e2b;
    --surface-hover: #1e2738;
    --line: #2b3546;
    --text: #f4f6ef;
    /* Secondary text is the same colour as all other text: one text colour on every page (only lime and orange
       highlights differ). */
    --muted: var(--text);
    --lime: #c0f801;
    --lime-bright: #d8ff4d;
    --lime-dark: #7fa600;
    --purple: #9b6fd6;
    --purple-light: #c590f2;
    --purple-dark: #2a1d47;
    --ember: #e0571a;
    --danger: #ff4d5e;
    --dirt: #5e200e;
    --font-display: "Press Start 2P", "Arial Black", "Segoe UI Black", system-ui, sans-serif;
    --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
    --px: 4px;
}

* { box-sizing: border-box; }
/* Hidden stays hidden, also on elements whose class sets a display (e.g. the age tag in the form). */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 17px; line-height: 1.6; font-synthesis: none; }
main { flex: 1; }
img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a:focus-visible, button:focus-visible, input[type="checkbox"]:focus-visible, input[type="radio"]:focus-visible { outline: 3px dashed var(--purple-light); outline-offset: 8px; }
/* Text fields show focus with their own lime frame (below), not with a second dashed outline. */
input:not([type="checkbox"]):not([type="radio"]):focus-visible, textarea:focus-visible, select:focus-visible { outline: none; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: 0; line-height: 1.35; margin: 0; }
.hl { color: var(--lime); }
.container { width: min(1160px, 100% - 64px); margin-inline: auto; }
.muted { color: var(--muted); }

/* Pixel "notched" shapes: four hard shadows extend the box and leave the corners empty. A shadow is never drawn under
   its own box, so on a transparent box (buttons, header menus, admin tabs) the same shadows form a frame
   --px thick with the corner pixels cut out. */
.button, .age-badge span, .card, .feature, .topic, .event, .event-date, .step-number, .contact-panel, .contact-location, .map-card, .photo, .modal,
.header-menu summary, .admin-nav a, .month-tabs a, .place-summary p, .announce, .free-tag, .hour-info, .event-facts > div, .fact, .terms li, .terms-icon {
    --notch-color: var(--surface);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--notch-color), 0 var(--px) 0 var(--notch-color),
                calc(var(--px) * -1) 0 0 var(--notch-color), var(--px) 0 0 var(--notch-color);
}

/* Buttons: empty inside with a lime pixel frame (the notch shadows), filled on hover. */
.button {
    --notch-color: var(--lime);
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    margin: var(--px); padding: 12px 22px; border: 0; border-radius: 0; cursor: pointer;
    background: transparent; color: var(--lime);
    font-family: var(--font-display); font-weight: 400; font-size: 16px; line-height: 1.5; letter-spacing: 0; text-transform: uppercase;
    transition: transform .12s ease, background-color .12s ease, color .12s ease;
}
.button:hover { --notch-color: var(--lime-bright); background: var(--lime-bright); color: var(--bg); transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button-small { padding: 9px 14px; white-space: nowrap; font-family: var(--font-body); font-weight: 800; letter-spacing: .12em; font-size: 13px; letter-spacing: .06em; }
/* In the hero the twinkling stars would show through an empty button. */
.hero .button { background: var(--bg); }
.hero .button:hover { background: var(--lime-bright); }
/* On the lime contact panel: a dark frame and text, filled dark on hover. */
.button-dark { --notch-color: var(--bg); color: var(--bg); }
.button-dark:hover { --notch-color: var(--bg); background: var(--bg); color: var(--lime); }
/* Something that cannot be undone (deleting): a red frame and text, filled red on hover. */
.button-danger { --notch-color: var(--danger); color: var(--danger); }
.button-danger:hover { --notch-color: var(--danger); background: var(--danger); color: var(--bg); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(7, 8, 11, .88); backdrop-filter: blur(8px); border-bottom: 2px solid var(--line); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; margin: 0; }
.brand-mark { display: block; width: 36px; height: 36px; image-rendering: pixelated; }
.brand-name { font-family: var(--font-display); font-size: 16px; line-height: 1; letter-spacing: .02em; text-transform: uppercase; color: var(--text); }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.site-nav form { margin: 0; }
.nav-link { color: var(--muted); font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: var(--lime); }
.nav-icon { display: inline-flex; align-items: center; gap: 12px; color: var(--lime); }
.nav-icon:hover { color: var(--lime-bright); transform: translateY(-2px); }
.nav-icon-label { display: none; }
/* The button with three pixel lines that opens the navigation below 1200px (nav.js); empty with a lime pixel frame
   like every button, an X while the navigation is open. */
.nav-toggle { display: none; }
@media (max-width: 1199px) {
    .nav-toggle { --px: 3px; --notch-color: var(--lime); position: relative; display: inline-block; width: 48px; height: 42px;
        margin: var(--px); padding: 0; border: 0; background: transparent; color: var(--lime); cursor: pointer;
        box-shadow: 0 calc(var(--px) * -1) 0 var(--notch-color), 0 var(--px) 0 var(--notch-color), calc(var(--px) * -1) 0 0 var(--notch-color), var(--px) 0 0 var(--notch-color); }
    /* Filled on hover only with a mouse: after a tap on a phone it would stay filled. */
    @media (hover: hover) { .nav-toggle:hover { --notch-color: var(--lime-bright); background: var(--lime); color: var(--bg); } }
    .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { position: absolute; left: 12px; width: 24px; height: 4px; background: currentColor; }
    .nav-toggle-bars { top: 19px; }
    .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; left: 0; }
    .nav-toggle-bars::before { top: -8px; }
    .nav-toggle-bars::after { top: 8px; }
    .nav-open .nav-toggle-bars { background: transparent; }
    .nav-open .nav-toggle-bars::before { top: 0; transform: rotate(45deg); }
    .nav-open .nav-toggle-bars::after { top: 0; transform: rotate(-45deg); }
    /* The navigation as a panel under the bar, the whole width of the screen: big links one under another, then
       Facebook and the sign-up button (or the account menus of a logged-in person). */
    .site-nav { display: none; }
    .nav-open .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: flex; flex-direction: column; align-items: stretch;
        gap: 0; padding: 6px max(16px, (100% - 1160px) / 2) 24px; background: var(--bg); border-bottom: 2px solid var(--line);
        font-size: 18px; box-shadow: 0 18px 30px rgba(0, 0, 0, .45); }
    .nav-open .site-nav .nav-link { padding: 14px 2px; border-bottom: 1px solid var(--line); color: var(--text); font-weight: 700; }
    .nav-open .site-nav .nav-link:hover { color: var(--lime); }
    .nav-open .site-nav .nav-icon { padding: 14px 2px; color: var(--text); font-weight: 700; }
    .nav-open .site-nav .nav-icon:hover { transform: none; color: var(--lime); }
    .nav-open .nav-icon-label { display: inline; }
    .nav-open .site-nav > .button { align-self: center; margin-top: 20px; padding: 14px 28px; font-size: 15px; }
    .nav-open .site-nav .header-menus { flex-wrap: wrap; justify-content: center; margin-top: 18px; }
}
.fb-icon { width: 30px; height: 30px; flex: none; }
.button .fb-icon, .button .btn-icon, .button .map-pin { width: 22px; height: 22px; flex: none; }
.button .btn-icon, .button .map-pin { image-rendering: pixelated; }
.footer-social { display: inline-flex; align-items: center; gap: 10px; }
.footer-social .fb-icon { color: var(--lime); }

/* Section labels: solid lime pixel tag, readable at a glance. */
.eyebrow { --notch-color: var(--lime); display: inline-flex; align-items: center; gap: 10px; margin: var(--px) var(--px) 22px; padding: 6px 14px 6px 10px;
    background: var(--lime); color: var(--bg); font-family: var(--font-body); font-weight: 800; letter-spacing: .14em; font-size: 15px; line-height: 1.5; text-transform: uppercase;
    box-shadow: 0 calc(var(--px) * -1) 0 var(--notch-color), 0 var(--px) 0 var(--notch-color), calc(var(--px) * -1) 0 0 var(--notch-color), var(--px) 0 0 var(--notch-color); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: var(--bg); }

/* Hero: night sky, clouds, stars and floating ground */
.hero { position: relative; overflow: hidden; padding: 72px 0 150px;
    background: radial-gradient(60% 70% at 85% 30%, rgba(155, 111, 214, .18), transparent 70%),
                radial-gradient(40% 50% at 10% 80%, rgba(192, 248, 1, .07), transparent 70%), var(--bg); }
/* Stars and clouds stay at the sides, never over the content, and no further than 300px from it on wide screens
   (the sky is at most 1760px wide). --m is the side margin next to the content inside the sky; every star and cloud
   sits at a fraction of it, so they keep to the sides at any width. */
.sky { --m: max(32px, 50% - 580px); position: absolute; inset: 0; max-width: 1760px; margin-inline: auto; pointer-events: none; }
.stars, .stars::before { position: absolute; inset: 0; }
.stars {
    --s: linear-gradient(var(--lime), var(--lime));
    background: var(--s) calc(var(--m) * .6) 12% / 6px 6px no-repeat, var(--s) calc(var(--m) * .3) 22% / 8px 8px no-repeat,
                var(--s) calc(var(--m) * .15) 44% / 6px 6px no-repeat, var(--s) calc(var(--m) * .25) 76% / 6px 6px no-repeat,
                var(--s) calc(100% - var(--m) * .4) 8% / 6px 6px no-repeat, var(--s) calc(100% - var(--m) * .2) 34% / 8px 8px no-repeat,
                var(--s) calc(100% - var(--m) * .3) 46% / 6px 6px no-repeat, var(--s) calc(100% - var(--m) * .5) 60% / 8px 8px no-repeat,
                var(--s) calc(100% - var(--m) * .7) 74% / 8px 8px no-repeat;
    animation: twinkle 3.2s steps(2, jump-none) infinite alternate;
}
.stars::before { content: "";
    background: var(--s) calc(var(--m) * .75) 29% / 6px 6px no-repeat, var(--s) calc(var(--m) * .45) 54% / 8px 8px no-repeat,
                var(--s) calc(var(--m) * .7) 84% / 6px 6px no-repeat, var(--s) calc(100% - var(--m) * .6) 26% / 6px 6px no-repeat,
                var(--s) calc(100% - var(--m) * .75) 42% / 6px 6px no-repeat, var(--s) calc(100% - var(--m) * .15) 68% / 6px 6px no-repeat;
    animation: twinkle 2.4s steps(2, jump-none) infinite alternate-reverse; }
.cloud { position: absolute; image-rendering: pixelated; opacity: .85; animation: drift 9s steps(6) infinite alternate; }
/* Two clouds in the band above the content, in the left and right corner. The other four need a wide margin; the
   clouds take turns left and right on the way down, and the stars sit in the gaps between them. */
/* Each cloud at its own distance from the edge: a fraction of the room left in the margin next to it. The lower
   clouds drift towards the edge, so the room is the margin minus the cloud; the top left one drifts towards the
   content above it, so its drift counts too. */
.cloud-1 { width: 168px; top: 2%; left: max(16px, (var(--m) - 204px) * .2); }
.cloud-2 { width: 108px; top: 34%; left: max(16px, (var(--m) - 108px) * .95); animation-duration: 11s; opacity: .6; }
.cloud-3 { width: 120px; top: 0; right: max(16px, (var(--m) - 120px) * .5); animation-duration: 7s; }
.cloud-4 { width: 156px; top: 50%; right: max(16px, (var(--m) - 156px) * .05); animation-duration: 12s; opacity: .7; }
.cloud-5 { width: 132px; top: 66%; left: max(16px, (var(--m) - 132px) * .55); animation-duration: 10s; opacity: .75; }
.cloud-2, .cloud-5 { animation-name: drift-out; }
.cloud-6 { width: 100px; top: 80%; right: max(16px, (var(--m) - 100px) * .9); animation-duration: 8s; opacity: .65; }
.cloud-2, .cloud-4, .cloud-5, .cloud-6 { display: none; }
@media (min-width: 1560px) {
    .cloud-2, .cloud-4, .cloud-5, .cloud-6 { display: block; }
    .cloud-3 { top: 16%; }
}
/* The outer parts of a wide screen, beyond the sky above, get their own stars and clouds, so the sides are never
   empty. --o is the width of such a part; everything sits at a fraction of it, and more clouds appear as it grows. */
.sky-far { --o: max(0px, 50% - 880px); max-width: none; display: none; }
.sky-far .stars {
    background: var(--s) calc(var(--o) * .4) 8% / 6px 6px no-repeat, var(--s) calc(var(--o) * .75) 30% / 8px 8px no-repeat,
                var(--s) calc(var(--o) * .2) 42% / 6px 6px no-repeat, var(--s) calc(var(--o) * .55) 62% / 8px 8px no-repeat,
                var(--s) calc(100% - var(--o) * .25) 4% / 6px 6px no-repeat, var(--s) calc(100% - var(--o) * .6) 20% / 8px 8px no-repeat,
                var(--s) calc(100% - var(--o) * .2) 42% / 6px 6px no-repeat;
}
.sky-far .stars::before {
    background: var(--s) calc(var(--o) * .85) 72% / 6px 6px no-repeat, var(--s) calc(var(--o) * .3) 86% / 6px 6px no-repeat,
                var(--s) calc(100% - var(--o) * .7) 56% / 6px 6px no-repeat, var(--s) calc(100% - var(--o) * .4) 78% / 8px 8px no-repeat,
                var(--s) calc(100% - var(--o) * .8) 86% / 6px 6px no-repeat;
}
.sky-far .cloud { display: none; }
.cloud-7 { width: 112px; top: 18%; left: max(16px, (var(--o) - 112px) * .6); animation-duration: 10s; opacity: .7; }
.cloud-8 { width: 144px; top: 30%; right: max(16px, (var(--o) - 144px) * .3); animation-duration: 13s; opacity: .6; }
.cloud-9 { width: 150px; top: 50%; left: max(16px, (var(--o) - 150px) * .2); animation-duration: 9s; opacity: .75; }
.cloud-10 { width: 104px; top: 66%; right: max(16px, (var(--o) - 104px) * .75); animation-duration: 11s; opacity: .65; }
.cloud-11 { width: 96px; top: 78%; left: max(16px, (var(--o) - 96px) * .8); animation-duration: 12s; opacity: .6; }
.cloud-12 { width: 132px; top: 8%; right: max(16px, (var(--o) - 132px) * .85); animation-duration: 8s; opacity: .7; }
.cloud-7, .cloud-9, .cloud-11 { animation-name: drift-out; }
@media (min-width: 1900px) { .sky-far { display: block; } }
@media (min-width: 2100px) { .sky-far .cloud-7, .sky-far .cloud-8, .sky-far .cloud-9, .sky-far .cloud-10 { display: block; } }
@media (min-width: 2600px) { .sky-far .cloud-11, .sky-far .cloud-12 { display: block; } }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 0 48px; }
/* The section label on the left and the banner from the admin panel on the right, in one row above the heading. */
.hero-top { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; margin-bottom: 22px; }
.hero-top .eyebrow { margin: var(--px); }
.hero h1 { font-size: 32px; }
@media (min-width: 1200px) { .hero h1 { font-size: 40px; } }
.hero h1 .hl { display: block; }
.age-badge { margin: 26px 0 0; }
.age-badge span { --notch-color: var(--lime); display: inline-block; margin: var(--px); padding: 8px 18px; background: var(--lime); color: var(--bg); font-family: var(--font-display); font-weight: 400; font-size: 16px; text-transform: uppercase; transform: rotate(-4deg); }
.lead { max-width: 34em; margin: 26px 0 32px; color: var(--muted); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
/* "Zapisz dziecko", the main call to action: bigger, a thicker pixel frame and a soft lime glow that pulses
   (it stays empty inside like every button and fills on hover). */
.hero-actions .button { --px: 5px; padding: 18px 34px; font-size: 20px; animation: cta-glow 1.4s ease-in-out infinite alternate; }
@keyframes cta-glow { from { filter: drop-shadow(0 0 3px rgba(192, 248, 1, .2)); } to { filter: drop-shadow(0 0 16px rgba(192, 248, 1, .65)); } }
.hero-art { display: grid; place-items: center; }
.hero-mark { width: min(100%, 380px); height: auto; filter: drop-shadow(0 0 56px rgba(192, 248, 1, .2)); animation: float 4s ease-in-out infinite; }
.ground { height: 90px; background: url("/assets/img/ground-e5f47b0ed2f9fcf80cc73db3b67900c1.svg") repeat-x left top / 288px 90px; image-rendering: pixelated; }
.hero .ground { position: absolute; left: 0; right: 0; bottom: 0; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { position: relative; background-color: var(--bg-alt);
    background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
    background-size: 24px 24px; }
/* Pixel edge on top and bottom of highlighted sections. */
.section-alt::before, .section-alt::after { content: ""; position: absolute; left: 0; right: 0; height: 8px;
    background: repeating-linear-gradient(90deg, var(--line) 0 16px, transparent 16px 24px, var(--purple-dark) 24px 40px, transparent 40px 48px); }
.section-alt::before { top: 0; }
.section-alt::after { bottom: 0; }
.section h2 { font-size: 32px; margin-bottom: 48px; }
/* Three-colour pixel bar under every section heading. */
.section h2::after { content: ""; display: block; width: 96px; height: 8px; margin-top: 18px;
    background: linear-gradient(90deg, var(--lime) 0 32px, var(--purple-light) 32px 64px, var(--ember) 64px 96px); }
.contact-panel h2::after { display: none; }
.section h3 { font-size: 16px; line-height: 1.5; margin: 18px 0 12px; }
.section p { margin: 0; }
.section .eyebrow { margin: var(--px) var(--px) 30px; }

.announce-row { display: flex; align-items: center; gap: 16px; margin-left: auto; }
/* Pixel hand poking at the event banner (left), a small attention grabber. */
.pointer-hand { flex: none; width: 72px; height: 44px; image-rendering: pixelated; animation: poke .7s steps(2, jump-none) infinite alternate; }
@keyframes poke { from { transform: translateX(0); } to { transform: translateX(-10px); } }
/* A lime pixel frame with cut corners around the banner (the notch shadows, see the top of this file). */
.announce { --px: 3px; --notch-color: var(--lime); position: relative; display: inline-flex; align-items: center; gap: 12px; margin: var(--px); padding: 12px 16px; background: var(--surface); font-weight: 700; font-size: 15px; }
.announce:hover { background: var(--surface-hover); }
/* "Bezpłatnie" as a purple pixel tag on the top right corner, over the frame: on the banner and on event cards. */
.free-tag { --px: 2px; --notch-color: var(--purple-light); position: absolute; top: -12px; right: 14px; padding: 4px 8px;
    background: var(--purple-light); color: var(--bg); font-family: var(--font-display); font-size: 11px; line-height: 1.3; }
/* "Bezpłatne" on a free event card and "Stały rabat 50 zł" on the price card: the same tag, larger and in capitals, so
   it catches the eye from afar. */
.event-free, .price-card .free-tag { --px: 3px; top: -18px; right: 30px; padding: 8px 14px 7px; font-size: 16px; line-height: 1.2; text-transform: uppercase; }
.events { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
/* The date column is wide enough for the longest weekday in capitals ("PONIEDZIAŁEK"). */
.event { --notch-color: var(--surface); position: relative; display: grid; grid-template-columns: 168px 1fr; gap: 40px; align-items: start; margin: var(--px); padding: 34px; background: var(--surface); }
/* The date column sits in the middle of the card's height. */
.event-when { align-self: center; }
.event-date { --notch-color: var(--lime); display: grid; justify-items: center; gap: 10px; margin: var(--px); padding: 22px 6px 18px; background: var(--lime); color: var(--bg); text-align: center; }
/* The weekday in large capitals under the date tile, so it is clear at a glance (e.g. "SOBOTA"). */
.event .event-weekday { margin: 14px 0 0; font-family: var(--font-display); font-size: 14px; line-height: 1; text-align: center;
    text-transform: uppercase; color: var(--lime); }
.event-day { font-family: var(--font-display); font-size: 40px; line-height: 1; }
.event-month { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; }
/* Event cards look the same on the home page and in the dialog on other pages (e.g. the sign-up form). */
.event p { margin: 0; }
.event h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; font-size: 24px; margin: 0 0 20px; }
/* The longer description of the chosen hour, right under its short one (line breaks kept), set apart from it by a
   dashed pixel line. */
.hour-details { white-space: pre-line; }
.hour-description + .hour-details { padding-top: 16px;
    background: repeating-linear-gradient(90deg, rgba(192, 248, 1, .35) 0 8px, transparent 8px 16px) top left / 100% 3px no-repeat; }
/* The date, start, end, duration and place of an event, each with its label above. */
.event-facts { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 24px; }
.fact-tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.event-facts > div, .fact { --px: 2px; --notch-color: var(--line); display: block; margin: var(--px); padding: 10px 16px; background: var(--bg); }
.event-facts dt, .fact-label { display: block; color: var(--text); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.event-facts dd, .fact-value { display: block; margin: 4px 0 0; color: var(--lime); font-weight: 800; font-size: 19px; }
/* On a dark panel (the chosen hour on a card, the form's choice) the tiles are lighter. */
.hour-info .fact, .choice .fact { background: var(--surface); }
/* The hours of one day: a button each, leading to the form with that hour chosen.
   Nearly full hours are orange, full ones grey (the request goes to the reserve list). */
/* "Wybierz godzinę, żeby się zapisać": a call to action in the pixel font, with a lime arrow nudging towards the hours
   (people should not miss that the hours are the buttons). */
.event .slots-label { display: flex; align-items: center; gap: 12px; margin: 6px 0 18px; color: var(--text);
    font-family: var(--font-display); font-size: 14px; line-height: 1.5; text-transform: uppercase; }
.event .slots-label::before { content: ""; flex: none; width: 18px; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges' fill='%23c0f801'%3E%3Crect width='12' height='2'/%3E%3Crect x='2' y='2' width='8' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='5' y='6' width='2' height='2'/%3E%3C/svg%3E") no-repeat center / 18px 12px;
    animation: nudge .7s steps(2, jump-none) infinite alternate; }
@keyframes nudge { from { transform: translateY(0); } to { transform: translateY(5px); } }
/* The hours of a day in one select; the chosen hour's subject, age group and descriptions below it in a notched frame
   (hour-pick.js), "Zapisz się →" on the bottom right. Nearly full hours are orange, full ones grey. */
.hour-pick { display: grid; gap: 18px; }
.hour-pick-field { display: grid; gap: 14px; }
.event .hour-pick .slots-label { margin: 0; }
.hour-info { --px: 2px; --notch-color: var(--line); position: relative; display: grid; gap: 12px; margin: var(--px); padding: 18px;
    background: var(--bg); }
.hour-info.is-last { --notch-color: #ff9e7a; }
.hour-state { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hour-info.is-last .hour-state { color: #ff9e7a; }
.hour-info.is-full .hour-state { color: var(--muted); }
.hour-actions { display: flex; justify-content: flex-end; }
/* "Wydarzenie" in the sign-up form as a small event card: the lime date tile, the title and the day, then the hours
   of the nearest day to pick from, or once one is chosen that hour on lime; the button to change it on the right. */
.choice-event { align-items: center; flex-wrap: wrap; }
.choice-event > span { flex: 1 1 180px; }
/* The select of all hours, then the chosen hour; hidden while none is chosen. */
.choice-event .event-select { margin-top: 10px; }
.choice-event:has(#event-choice[value=""]) .chosen { display: none; }
/* "Mamy bezpłatne wydarzenia – kliknij, by wybrać" under "Wydarzenie": a purple pixel frame like "Bezpłatne" on the
   event cards, in the pixel font, with a dark arrow nudging towards the list below (as on the cards); a click opens
   the list (event-pick.js). Gone once an hour is chosen (the radio gets its id). */
.free-hint { --px: 3px; justify-self: start; margin: 8px var(--px) 2px; padding: 10px 16px 9px; background: var(--purple-light);
    color: var(--bg); font-family: var(--font-display); font-size: 13px; line-height: 1.6; text-transform: uppercase;
    box-shadow: 0 calc(var(--px) * -1) 0 var(--purple-light), 0 var(--px) 0 var(--purple-light),
                calc(var(--px) * -1) 0 0 var(--purple-light), var(--px) 0 0 var(--purple-light); }
.free-hint::before { content: ""; display: inline-block; width: 15px; height: 10px; margin-right: 12px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges' fill='%2307080b'%3E%3Crect width='12' height='2'/%3E%3Crect x='2' y='2' width='8' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='5' y='6' width='2' height='2'/%3E%3C/svg%3E") no-repeat center / 15px 10px;
    animation: nudge .7s steps(2, jump-none) infinite alternate; }
.choice-event:not(:has(#event-choice[value=""])) .free-hint { display: none; }
.chosen { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px; margin-top: 12px; }
.chosen .event-date { gap: 8px; min-width: 78px; padding: 14px 10px 12px; }
.chosen .event-day { font-size: 28px; }
.chosen .event-month { font-size: 12px; }
.chosen-text { display: grid; gap: 10px; justify-items: start; }
.chosen-title { font-family: var(--font-display); font-size: 16px; line-height: 1.35; text-transform: uppercase; }
.chosen-description { max-width: 40em; }
/* The chosen hour is for another age group than a child: an orange note with the box to sign up anyway. */
.age-warning { display: grid; gap: 12px; padding: 16px 18px; background: rgba(255, 158, 122, .1); box-shadow: inset 4px 0 0 #ff9e7a; }
.age-warning p { margin: 0; }
.age-warning strong { color: #ff9e7a; }
/* A full chosen hour, in the same orange box right above "Wyślij zgłoszenie", only while that hour is the choice (not
   once regular classes are picked); in the chosen hour's card the same news in orange. */
.signup-form:not(:has(#event-choice:checked)) .reserve-warning { display: none; }
.chosen .hour-state { color: #ff9e7a; }
/* "Szczegóły" of the chosen hour, on the bottom right of the card. */
.chosen-more { justify-self: end; }
/* On phones the date tile goes above the title. */
@media (max-width: 560px) {
    .chosen { grid-template-columns: 1fr; gap: 14px; }
    .chosen .event-date { padding: 8px 14px; }
    .chosen .event-day { font-size: 22px; }
}
/* "Regularne zajęcia" in the sign-up form: the name, with "Szczegóły" (their terms in a dialog) on the right. */
.choice-regular { align-items: center; flex-wrap: wrap; }
.choice-regular > span { flex: 1 1 180px; }
.choice-regular .button { align-self: center; margin-left: auto; }
.choice-event > span > small, .choice-regular > span > small { display: flex; align-items: flex-start; gap: 10px; }
.choice-event > span > small::before, .choice-regular > span > small::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 7px; background: var(--lime); }
/* "Skontaktujemy się z Tobą, żeby dobrać grupę, dzień i godzinę" under the description of regular classes, the key
   words in lime. */
.choice-contact strong { color: var(--lime); }
/* Hours of the classes in a sentence ("15:00–16:30"): never broken inside. */
.hour-range { white-space: nowrap; }
/* The terms of regular classes in their dialog: tiles with a pixel icon (as on the home page), a lime heading and
   the text. */
.terms { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.terms li { --notch-color: var(--bg); display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; margin: var(--px);
    padding: 18px; background: var(--bg); line-height: 1.5; }
.terms-icon { --notch-color: var(--purple-dark); width: 56px; height: 56px; display: grid; place-items: center; margin: var(--px);
    background: var(--purple-dark); color: var(--lime); }
.terms-icon svg { width: 32px; height: auto; }
.terms h3 { margin: 4px 0 8px; font-size: 13px; line-height: 1.5; color: var(--lime); }
.terms p { margin: 0; }
/* A tile with a title only (the home page's terms, "Raz w tygodniu" in the dialog): the title in the middle beside
   its icon. */
.terms li:has(h3:only-child) { align-items: center; }
.terms h3:only-child { margin: 0; }
.events-more { margin-top: 32px; }

.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 1100px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feature { padding: 26px; background: var(--surface); transition: transform .15s ease, background-color .15s ease; }
.feature:hover { --notch-color: var(--surface-hover); background: var(--surface-hover); transform: translateY(-4px); }
.feature p { color: var(--muted); font-size: 16px; }
.feature-icon { width: 64px; height: 64px; display: grid; place-items: center; background: var(--purple-dark); color: var(--lime); }
.pixel-icon { width: 40px; height: auto; }
.pixel-icon .a { fill: var(--purple-light); }

.section .section-lead { max-width: 46em; margin: -20px 0 40px; color: var(--muted); font-size: 18px; }
.topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 900px) { .topics { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr; } }
.topic { position: relative; padding: 30px 24px 24px; background: var(--surface); }
.topic::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--lime); }
.section .topic-tag { color: var(--lime); font-weight: 800; letter-spacing: .12em; font-size: 12px; line-height: 1.6; text-transform: uppercase; }
.section .topic h3 { margin: 10px 0 10px; }
.topic p:not(.topic-tag) { color: var(--muted); font-size: 15px; }

/* When the classes are held: two notched tiles (weekdays, Saturday), each class from–to in the lime pixel font, one
   per line and never broken inside, a note under them. One tile per row on phones. */
.hours { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 960px; margin: 0 var(--px); padding: 0; }
.hours > li { display: grid; gap: 16px; align-content: start; padding: 28px 30px; background: var(--surface);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--surface), 0 var(--px) 0 var(--surface), calc(var(--px) * -1) 0 0 var(--surface), var(--px) 0 0 var(--surface); }
.hours-days { font-size: 16px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.hours-slots { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; }
.hours-slots li { font-family: var(--font-display); font-size: clamp(20px, 2.6vw, 30px); line-height: 1.15; color: var(--lime); white-space: nowrap; }
.section .hours-note { max-width: 46em; margin: 32px var(--px) 0; color: var(--muted); font-size: 18px; }
@media (max-width: 720px) {
    .hours { grid-template-columns: 1fr; gap: 12px; }
    .hours > li { padding: 20px 22px; }
}

/* Pricing */
/* The school year in three big numbers above the price (about 38 classes, about 57 hours, about 80 zł a class), so
   the monthly price reads as what it buys: lime pixel-font numbers on notched tiles, "ok." smaller. On phones one
   tile per row, the number beside its label. */
.price-stats { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: -16px var(--px) 44px; padding: 0; }
.price-stats li { display: grid; gap: 10px; align-content: start; padding: 22px 24px; background: var(--surface);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--surface), 0 var(--px) 0 var(--surface), calc(var(--px) * -1) 0 0 var(--surface), var(--px) 0 0 var(--surface); }
.price-stat { font-family: var(--font-display); font-size: 26px; line-height: 1.15; color: var(--lime); white-space: nowrap; }
.price-stat small { margin-right: .15em; font-size: .55em; }
.price-stat-label { font-size: 16px; font-weight: 800; line-height: 1.4; }
@media (max-width: 1100px) { .price-stats li { padding: 18px 20px; } .price-stat { font-size: 20px; } }
@media (max-width: 720px) {
    .price-stats { grid-template-columns: 1fr; gap: 12px; }
    .price-stats li { grid-template-columns: 8em 1fr; align-items: center; gap: 14px; padding: 14px 18px; }
    .price-stat { font-size: 16px; }
    .price-stat-label { font-size: 15px; }
}
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: center; }
.price-card { --notch-color: var(--lime); position: relative; display: grid; gap: 14px; justify-items: start; margin: var(--px); padding: 34px 32px; background: var(--surface);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--notch-color), 0 var(--px) 0 var(--notch-color), calc(var(--px) * -1) 0 0 var(--notch-color), var(--px) 0 0 var(--notch-color); }
.section .price-label { color: var(--lime); font-weight: 800; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
/* Two rows as in a price list: "Normalna cena" and "Twoja cena", label on the left, amount on the right, a line
   between them. The normal price is plainly readable; the price with the discount is large and lime. */
.price-rows { justify-self: stretch; display: grid; }
.section .price-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px;
    padding: 12px 0; }
.section .price-row + .price-row { border-top: 2px solid var(--line); }
.price-row-label { font-size: 15px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.is-yours .price-row-label { color: var(--lime); }
/* On a narrow phone the amount may drop under its label: margin-left keeps it on the right like the other one. */
.price-row-value { margin-left: auto; font-size: 28px; font-weight: 800; line-height: 1.2; color: var(--text); white-space: nowrap; }
.price-amount { margin-left: auto; font-family: var(--font-display); font-size: 48px; line-height: 1.1; color: var(--lime); white-space: nowrap; }
.section .price-for { margin: -4px 0 0; color: var(--lime); font-size: 17px; font-weight: 800; }
/* The asterisk at "Twoja cena", small and raised, and what it means right under the price. */
.price-star { margin-left: .05em; font-size: .5em; vertical-align: .75em; }
.section .price-footnote { margin: -8px 0 0; font-size: 15px; }
/* The saving, an orange pixel tag in front of its condition: the parent sees at once what they save and when. In
   capitals, because the lowercase "ę" of the pixel font is hard to read. */
.price-cut { --px: 2px; display: inline-block; margin: var(--px) 8px var(--px) var(--px); padding: 6px 10px 5px;
    background: var(--ember); color: var(--bg); font-family: var(--font-display); font-size: 13px; font-weight: 400;
    line-height: 1.2; text-transform: uppercase; white-space: nowrap; vertical-align: 1px;
    box-shadow: 0 calc(var(--px) * -1) 0 var(--ember), 0 var(--px) 0 var(--ember), calc(var(--px) * -1) 0 0 var(--ember), var(--px) 0 0 var(--ember); }
.section .price-condition { margin: 2px 0 0; font-size: 16px; line-height: 1.6; }
/* The key words of the price card's conditions in lime ("Stały rabat co miesiąc", "Zrezygnować możesz w każdej
   chwili"), also the discount in the terms of regular classes on /zapisy. */
.price-condition strong, .terms p strong { color: var(--lime); }
.section .price-note { color: var(--muted); }
.price-card .button { margin-top: 8px; }
/* The terms next to the price card: the tiles of the terms of regular classes (.terms, with a pixel icon), on the
   colour of the price card; one under another beside the card, two side by side once they go under it. */
.price-terms { grid-template-columns: 1fr; }
.price-terms li { --notch-color: var(--surface); background: var(--surface); }
@media (min-width: 901px) {
    .price-terms li { grid-template-columns: 48px 1fr; padding: 14px 18px; }
    .price-terms .terms-icon { width: 48px; height: 48px; }
    .price-terms .terms-icon svg { width: 28px; }
}
@media (max-width: 900px) { .price-terms { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); } }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; position: relative; }
.steps::before { content: ""; position: absolute; top: 28px; left: 64px; right: calc((100% - 72px) / 3); height: 6px;
    background: repeating-linear-gradient(90deg, var(--line) 0 12px, transparent 12px 24px); }
.step { position: relative; }
.step-number { --notch-color: var(--lime); position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin: var(--px); background: var(--lime); color: var(--bg); font-family: var(--font-display); font-weight: 400; font-size: 24px; }
.step p { color: var(--muted); }
.steps-cta { margin-top: 40px; }

.contact-panel { --px: 8px; --notch-color: var(--lime); position: relative; display: grid; grid-template-columns: 1.4fr 1fr; align-items: center; gap: 32px; margin: var(--px); padding: 48px; background: var(--lime); color: var(--bg); }
.contact-panel::after { content: ""; position: absolute; top: -40px; right: 36px; width: 44px; height: 30px;
    background: linear-gradient(var(--lime), var(--lime)) 0 100% / 12px 12px no-repeat, linear-gradient(var(--lime), var(--lime)) 18px 40% / 12px 12px no-repeat,
                linear-gradient(var(--lime), var(--lime)) 100% 0 / 12px 12px no-repeat; }
.contact-panel h2 { margin-bottom: 14px; }
.contact-panel p { font-size: 18px; }
.contact-location { --notch-color: var(--bg); display: inline-flex; align-items: center; gap: 18px; margin: 28px var(--px) 0; padding: 16px 22px; background: var(--bg); color: var(--text); }
.contact-location .map-pin { flex: none; width: 40px; height: 40px; color: var(--lime); }
.section .location-label { color: var(--lime); font-weight: 800; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.section .location-street { margin: 6px 0 2px; font-family: var(--font-display); font-size: 24px; line-height: 1.35; text-transform: uppercase; }
.section .location-city { font-size: 18px; font-weight: 700; color: var(--muted); }
.map-card { --notch-color: var(--surface); position: relative; display: grid; place-items: center; margin: 36px var(--px) 0; aspect-ratio: 16 / 7; overflow: hidden;
    background-color: var(--surface);
    background-image: linear-gradient(rgba(255, 255, 255, .04) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 255, 255, .04) 2px, transparent 2px);
    background-size: 32px 32px; }
.map-card iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-placeholder { display: grid; justify-items: center; gap: 14px; padding: 24px; text-align: center; }
.map-placeholder .map-pin { width: 56px; height: 56px; color: var(--lime); }
.section .map-address { font-family: var(--font-display); font-size: 16px; line-height: 1.5; text-transform: uppercase; }
.section .map-note { color: var(--muted); font-size: 14px; }
.contact-actions { display: grid; gap: 14px; }
/* Directions are a separate kind of action: set apart from the sign-up and message buttons by a dashed line of its
   own, which stays put when the button lifts on hover. */
.contact-divider { height: 4px; margin-block: 6px; background: repeating-linear-gradient(90deg, var(--bg) 0 8px, transparent 8px 16px); opacity: .35; }
.contact-actions .button { width: calc(100% - 8px); font-family: var(--font-body); font-weight: 800; font-size: 16px; letter-spacing: 0; text-transform: none; overflow-wrap: anywhere; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.photo { --notch-color: var(--surface); position: relative; display: block; margin: var(--px); aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
a.photo:hover { --notch-color: var(--lime); }
a.photo:hover img { transform: scale(1.04); }
.photo-placeholder { display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--purple-light);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--surface), 0 var(--px) 0 var(--surface), calc(var(--px) * -1) 0 0 var(--surface), var(--px) 0 0 var(--surface),
                inset 0 0 0 3px rgba(197, 144, 242, .35);
    background-image: linear-gradient(rgba(197, 144, 242, .06) 2px, transparent 2px), linear-gradient(90deg, rgba(197, 144, 242, .06) 2px, transparent 2px);
    background-size: 24px 24px; }
.camera-icon { width: 88px; height: auto; }
.photo-soon { font-family: var(--font-display); font-size: 16px; text-transform: uppercase; color: var(--text); }

/* Gallery lightbox (gallery.js): the enlarged photo in a pixel frame on a dark background */
html.lightbox-open { overflow: hidden; }
.lightbox { --px: 6px; width: min(1100px, calc(100vw - 48px)); max-width: none; max-height: calc(100vh - 48px); margin: auto; padding: 0;
    border: 0; background: var(--bg); color: var(--text); overflow: visible;
    box-shadow: 0 calc(var(--px) * -1) 0 var(--lime), 0 var(--px) 0 var(--lime), calc(var(--px) * -1) 0 0 var(--lime), var(--px) 0 0 var(--lime); }
.lightbox::backdrop { background: rgba(7, 8, 11, .94); }
.lightbox-figure { display: grid; margin: 0; }
.lightbox-image { display: block; width: 100%; max-height: calc(100vh - 140px); object-fit: contain; background: #000; image-rendering: auto; }
.lightbox-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.lightbox-bar .button { --px: 3px; margin: var(--px); min-width: 46px; }
.lightbox-counter { order: 2; padding: 0 6px; font-family: var(--font-display); font-size: 16px; color: var(--lime); }
.lightbox-prev { order: 0; }
.lightbox-next { order: 1; }
.lightbox-close { order: 3; margin-left: auto !important; }
.lightbox-bar [hidden] { display: none; }
/* Calm entrance and exit of dialogs (lightbox, modal): the box fades in while growing slightly, the background
   darkens gradually. gallery.js and modal.js wait for "dialog-out" before really closing. */
.lightbox[open], .modal[open] { animation: dialog-in .32s cubic-bezier(.2, .8, .2, 1); }
.lightbox[open]::backdrop, .modal[open]::backdrop { animation: backdrop-in .32s ease-out; }
.lightbox.is-closing, .modal.is-closing { animation: dialog-out .22s ease-in forwards; }
.lightbox.is-closing::backdrop, .modal.is-closing::backdrop { animation: backdrop-out .22s ease-in forwards; }
.lightbox-image { transition: opacity .25s ease; }
.lightbox-image.is-loading { opacity: 0; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes dialog-out { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.97); } }
@keyframes backdrop-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes backdrop-out { from { opacity: 1; } to { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
    .lightbox[open], .lightbox[open]::backdrop, .lightbox.is-closing, .lightbox.is-closing::backdrop,
    .modal[open], .modal[open]::backdrop, .modal.is-closing, .modal.is-closing::backdrop { animation: none; }
    .lightbox-image { transition: none; }
}
@media (max-width: 560px) {
    .lightbox { width: calc(100vw - 24px); }
    .lightbox-image { max-height: calc(100vh - 120px); }
}

/* Modal dialog (modal.js), e.g. adding an event: a pixel card above the dimmed page */
html.modal-open { overflow: hidden; }
.modal { width: min(760px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 24px); margin: auto; padding: 0;
    border: 0; overflow: auto; background: var(--surface); color: var(--text); }
.modal::backdrop { background: rgba(7, 8, 11, .85); }
.modal .modal-form { max-width: none; gap: 18px; padding: 28px 32px; }
.modal .modal-form textarea { min-height: 84px; }
/* In modals "Anuluj" sits on the left edge and "Zapisz" on the right. */
.modal .form-actions { justify-content: space-between; }
.modal .modal-form h2 { margin: 0; font-size: 18px; }
.modal-subtitle { margin: 8px 0 0; }
.modal-small { width: min(520px, calc(100vw - 32px)); }
.modal-wide { width: min(1080px, calc(100vw - 32px)); max-height: 92vh; }
/* A dialog whose content changes (the event filters) is pinned at the same distance from the top, so only its bottom
   moves instead of the whole dialog jumping to stay centred. Other dialogs stay in the middle of the screen. */
.modal-top { margin-block: 4vh auto; }
/* A dialog with content instead of a form, e.g. all events on the home page; its cards stand out on the darker
   background and "Zamknij" sits on the left, like "Anuluj" in forms. */
.modal-body { display: grid; gap: 20px; padding: 28px 32px; }
/* Everything about the chosen hour (sign-up form): more room between the tiles, the descriptions and the button. */
#event-details .modal-body { gap: 30px; padding: 36px 44px 40px; }
#event-details .fact-tiles { gap: 16px; }
#event-details .hour-description + .hour-details { padding-top: 28px; }
.modal-body h2 { margin: 0; font-size: 18px; }
.modal-body p { margin: 0; }
.modal-body h2::after { display: none; }
/* Month and day tabs above all events, styled like the tabs of the admin header; days a little smaller. */
.event-filters { display: grid; gap: 8px; }
.month-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.day-tabs a { padding: 6px 12px; font-size: 14px; }
/* Room between the cards and above the first one for the "Bezpłatnie" tags sticking out over their top edge. */
.modal .events { gap: 32px; margin-top: 8px; }
.modal .event { --notch-color: var(--bg); gap: 32px; padding: 28px; background: var(--bg); }
/* The × closing a dialog: a small square pixel button in the top right corner, level with the title (which leaves
   room for it). */
.modal-x { --px: 3px; position: absolute; top: 17px; right: 24px; z-index: 1; width: 40px; height: 40px; padding: 0; }
.modal-x svg { width: 14px; height: 14px; }
.modal .modal-form h2, .modal-body h2 { padding-right: 56px; }
@media (max-width: 560px) { .modal .modal-form, .modal-body { padding: 22px; } .modal-x { top: 14px; right: 16px; } }

/* Footer: grass on top, dirt below */
.site-footer { margin-top: 64px; }
.footer-body { background: var(--dirt); color: #f6dccd; padding: 8px 0 36px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.footer-brand .brand-mark { width: 30px; height: 30px; }
.footer-brand .brand-name { color: #f6dccd; }
.footer-address { margin: 12px 0 0; font-weight: 600; }
.footer-address a:hover { color: var(--lime); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; font-weight: 600; }
.footer-links a:hover { color: var(--lime); }
.footer-copy { grid-column: 1 / -1; margin: 0; font-size: 13px; opacity: .75; }

/* Sign-up form */
.page-title { font-size: 32px; margin: 0 0 14px; }
/* "← Wróć" and the page label in one row above the page title. */
.page-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 22px; }
.page-top .eyebrow { margin: var(--px); }
.page-lead { max-width: 44em; margin: 0 0 36px; color: var(--muted); font-size: 18px; }
/* How sign-ups work (that we confirm the place once we get in touch): a notched frame with a lime square before the
   point and the key word in lime, so it is not missed. */
.signup-info { --px: 3px; display: grid; gap: 12px; max-width: 860px; margin: -14px var(--px) 36px; padding: 22px 26px;
    list-style: none; background: var(--surface); font-size: 16px; line-height: 1.55;
    box-shadow: 0 calc(var(--px) * -1) 0 var(--line), 0 var(--px) 0 var(--line), calc(var(--px) * -1) 0 0 var(--line), var(--px) 0 0 var(--line); }
.signup-info li { display: flex; gap: 14px; align-items: flex-start; }
.signup-info li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; background: var(--lime); }
.signup-info strong { color: var(--lime); }
/* On the home page at the bottom under the event cards, and in the dialog of all events (its gap does the spacing). */
.section .signup-info { margin: 44px var(--px) var(--px); }
.modal-body .signup-info { margin: var(--px); }
.signup-form { display: grid; gap: 30px; max-width: 860px; padding: 36px; }
.form-group { margin: 0; padding: 0; border: 0; min-width: 0; }
.form-group legend { margin-bottom: 16px; padding: 0; font-family: var(--font-display); font-size: 16px; text-transform: uppercase; color: var(--lime); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 22px; }
.field { display: grid; gap: 8px; align-content: start; }
.field label, .field-label { font-size: 15px; font-weight: 700; margin: 0; }
.field-label { margin: 22px 0 12px !important; }
.optional { color: var(--muted); font-weight: 400; }
.signup-form input[type="text"], .signup-form input[type="email"], .signup-form input[type="tel"], .signup-form input[type="number"], .signup-form input[type="date"], .signup-form input[type="time"], .signup-form input[type="password"], .signup-form textarea, .signup-form select, .hour-pick select {
    width: 100%; min-height: 48px; padding: 11px 13px; border: 0; border-radius: 0; background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); font-size: 16px; }
.signup-form textarea { resize: vertical; min-height: 110px; }
/* Select: the browser's arrow replaced by a pixel arrow in lime. */
.signup-form select, .hour-pick select { appearance: none; padding-right: 44px; font: inherit; font-size: 16px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges' fill='%23c0f801'%3E%3Crect width='12' height='2'/%3E%3Crect x='2' y='2' width='8' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='5' y='6' width='2' height='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 16px center; background-size: 12px 8px; }
.signup-form select option, .hour-pick select option { background: var(--surface); color: var(--text); }
.signup-form select:focus, .hour-pick select:focus { outline: none; background-color: #0b0f16; box-shadow: inset 0 0 0 3px var(--lime); }
/* The selects of hours (home page cards, /zapisy) styled where the browser allows it (Chrome and Edge, also on
   Android): the list opens in a lime pixel frame and each hour shows its parts (hourOption.html): the hour in lime,
   age group and subject, "BEZPŁATNIE" as the purple tag of the cards and the places with a pixel square in the colour
   of their state. Other browsers keep their own list with the same text in one line. */
@supports (appearance: base-select) {
    .hour-pick select, .signup-form .event-select, .hour-pick select::picker(select), .signup-form .event-select::picker(select) { appearance: base-select; }
    .hour-pick select::picker-icon, .signup-form .event-select::picker-icon { display: none; }
    .hour-pick select::picker(select), .signup-form .event-select::picker(select) { --px: 3px; margin-top: 8px; padding: 6px; border: 0;
        background: var(--surface); color: var(--text); max-height: min(70vh, 580px);
        box-shadow: 0 calc(var(--px) * -1) 0 var(--lime), 0 var(--px) 0 var(--lime), calc(var(--px) * -1) 0 0 var(--lime), var(--px) 0 0 var(--lime); }
    .hour-pick select option, .signup-form .event-select option { display: flex; flex-wrap: wrap; align-items: center; row-gap: 10px; padding: 18px 20px;
        background: var(--surface); color: var(--text); font-family: var(--font-body); font-size: 17px; font-weight: 400;
        border-bottom: 1px solid var(--line); cursor: pointer; }
    .hour-pick select option:last-child, .signup-form .event-select option:last-child { border-bottom: 0; }
    .hour-pick select option::checkmark, .signup-form .event-select option::checkmark { display: none; }
    .hour-pick select option:hover, .hour-pick select option:focus-visible, .signup-form .event-select option:hover, .signup-form .event-select option:focus-visible {
        outline: none; background: var(--bg); box-shadow: inset 4px 0 0 var(--lime); }
    /* The chosen hour is marked; the hint ("Wybierz godzinę…"), chosen while nothing is, is not. */
    .hour-pick select option:checked:not([value=""]), .signup-form .event-select option:checked:not([value=""]) { background: #0b0f16; box-shadow: inset 4px 0 0 var(--lime); }
    .hour-pick select option[value=""], .signup-form .event-select option[value=""] { color: var(--muted); font-size: 16px; }
    .opt-sep { font-size: 0; }
    .opt-time { margin-right: 22px; color: var(--lime); font-weight: 800; font-size: 19px; }
    .opt-ages, .opt-topic { margin-right: 22px; font-weight: 700; font-size: 19px; }
    .opt-free { --px: 2px; margin: var(--px) 22px var(--px) var(--px); padding: 6px 10px 5px; background: var(--purple-light); color: var(--bg);
        font-family: var(--font-display); font-size: 11px; line-height: 1.3;
        box-shadow: 0 calc(var(--px) * -1) 0 var(--purple-light), 0 var(--px) 0 var(--purple-light), calc(var(--px) * -1) 0 0 var(--purple-light), var(--px) 0 0 var(--purple-light); }
    /* The places at the end of the row, on the right, so the hour stands alone at the start. */
    .opt-places { margin-left: auto; color: var(--lime); font-size: 17px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
    .opt-places::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; background: currentColor; vertical-align: 1px; }
    .opt-places.is-last { color: #ff9e7a; }
    .opt-places.is-full { color: var(--muted); opacity: .75; }
    /* Wider screens: the parts in columns of fixed width, so they line up from row to row. Hours: hour, age
       group, subject, tag, and the places on the right. Days: date, name, tag. */
    @media (min-width: 561px) {
        .hour-pick select option:not([value=""]), .signup-form [data-event-select] option:not([value=""]) {
            display: grid; grid-template-columns: 145px 120px 150px auto 1fr; align-items: center; }
        .signup-form [data-day-select] option:not([value=""]) { display: grid; grid-template-columns: 320px 1fr auto; align-items: center; }
        .opt-sep { display: none; }
        .opt-time, .opt-ages, .opt-topic, .opt-free { margin-right: 0; }
        .opt-time { grid-column: 1; }
        .opt-ages { grid-column: 2; }
        .opt-topic { grid-column: 3; }
        .opt-free { grid-column: 4; justify-self: start; margin: var(--px); }
        .opt-places { grid-column: 5; justify-self: end; margin-left: 24px; }
        .signup-form [data-day-select] .opt-topic { grid-column: 2; }
        .signup-form [data-day-select] .opt-free { grid-column: 3; margin-left: 24px; }
    }
    /* On a phone: the list as wide as the screen less its margins (it would otherwise start under the select and go
       past the right edge); the hour, age group and subject on the first line, the tag and places on the second. */
    @media (max-width: 560px) {
        .hour-pick select::picker(select), .signup-form .event-select::picker(select) {
            position-area: block-end span-all; justify-self: stretch; width: auto; margin-inline: 16px; }
        .hour-pick select option, .signup-form .event-select option { padding: 14px 12px; font-size: 14px; row-gap: 8px; }
        .opt-time { margin-right: 12px; font-size: 15px; }
        .opt-ages, .opt-topic { margin-right: 12px; font-size: 15px; }
        .opt-free { margin-right: 12px; padding: 4px 8px 3px; font-size: 9px; }
        .opt-places { font-size: 14px; }
    }
}
.signup-form input:focus, .signup-form textarea:focus { outline: none; background: #0b0f16; box-shadow: inset 0 0 0 3px var(--lime); }
.signup-form input[aria-invalid="true"], .signup-form .field:has(.field-error) input { box-shadow: inset 0 0 0 2px var(--ember); }
.choices { display: grid; gap: 12px; }
.choices-inline { grid-template-columns: repeat(3, 1fr); }
.choice { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; background: var(--bg); box-shadow: inset 0 0 0 2px var(--line); cursor: pointer; }
.choice:hover { box-shadow: inset 0 0 0 2px var(--purple-light); }
.choice:has(input:checked) { background: rgba(192, 248, 1, .08); box-shadow: inset 0 0 0 2px var(--lime); }
.choice input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--lime); flex: none; }
.choice > span { display: grid; gap: 4px; }
/* The details under a choice (the chosen hour, the terms of regular classes) in the same light text. */
.choice small { color: var(--text); font-size: 15px; line-height: 1.5; }
.consent { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; }
.consent input { margin: 3px 0 0; width: 20px; height: 20px; accent-color: var(--lime); flex: none; }
.field-error { margin: 0 !important; color: #ff9e7a; font-size: 14px; font-weight: 700; }
.signup-form .notice { margin: 0; }
.signup-form > .button { justify-self: start; }
/* The sign-up page: a centred column (as wide as the form) with the home page's night sky at its sides. The margin
   (--m) is measured from this narrower column, so more clouds fit beside it than beside the hero. Below 1300px the
   margins are too narrow for clouds: only the stars stay. */
.sky-page { position: relative; overflow: hidden; }
.sky-page > main { position: relative; z-index: 1; }
.signup-page.container { width: min(860px, 100% - 64px); }
.sky-page .sky { --m: max(32px, 50% - 430px); }
.sky-page .sky:not(.sky-far) .cloud { display: none; }
@media (min-width: 1300px) {
    .sky-page .sky:not(.sky-far) .cloud { display: block; }
    .sky-page .cloud-3 { top: 16%; }
}
/* The sign-up form at /zapisy sends from the right, where the eye ends after the last field. */
.signup-page .signup-form > .button { justify-self: end; }
/* A heading at the top of a form card in the admin panel, sized like the headings of other cards. */
.card.signup-form > h2 { margin: 0; font-size: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.child-block { padding: 22px; box-shadow: inset 0 0 0 2px var(--line); }
/* The phone number: the country code with a pixel flag (white and red for Poland, blue and yellow for Ukraine,
   picked by the chosen code), then three short fields of three digits. */
.phone { display: flex; gap: 8px; }
.flag { flex: none; width: 18px; height: 12px; box-shadow: 0 0 0 1px var(--line); }
.flag-pl { background: linear-gradient(#f4f6ef 50%, #dc143c 50%); }
.flag-ua { background: linear-gradient(#0057b7 50%, #ffd700 50%); }
/* The country code: looks like the other fields (with the pixel arrow of selects) and opens a list with flags. */
.phone-prefix { position: relative; flex: none; }
.phone-prefix summary { display: flex; align-items: center; width: 118px; min-height: 48px; padding: 0 36px 0 13px;
    list-style: none; cursor: pointer; font-size: 16px; box-shadow: inset 0 0 0 2px var(--line);
    background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' shape-rendering='crispEdges' fill='%23c0f801'%3E%3Crect width='12' height='2'/%3E%3Crect x='2' y='2' width='8' height='2'/%3E%3Crect x='4' y='4' width='4' height='2'/%3E%3Crect x='5' y='6' width='2' height='2'/%3E%3C/svg%3E") no-repeat right 14px center / 12px 8px; }
.phone-prefix summary::-webkit-details-marker { display: none; }
.phone-prefix summary:focus-visible, .phone-prefix[open] summary { outline: none; box-shadow: inset 0 0 0 3px var(--lime); }
.prefix-choice { display: none; align-items: center; gap: 10px; }
.phone-prefix:has(input[value="+48"]:checked) .prefix-pl, .phone-prefix:has(input[value="+380"]:checked) .prefix-ua { display: flex; }
.prefix-list { position: absolute; top: calc(100% + 4px); left: 0; z-index: 5; display: grid; min-width: 190px; padding: 6px;
    background: var(--surface); box-shadow: inset 0 0 0 2px var(--line); }
.prefix-list label { display: flex; align-items: center; gap: 10px; padding: 10px 12px; cursor: pointer; white-space: nowrap; }
.prefix-list label:hover, .prefix-list label:has(input:checked) { background: var(--surface-hover); color: var(--lime); }
.prefix-list label:has(input:focus-visible) { outline: 2px solid var(--lime); outline-offset: -2px; }
.prefix-list input { position: absolute; opacity: 0; pointer-events: none; }
/* On narrow screens the digit fields get narrower, so the whole number stays in one row. */
.signup-form .phone input { flex: 0 1 76px; min-width: 0; padding-inline: 4px; text-align: center; letter-spacing: .12em; }
/* "Ile dzieci zapisujesz?": a short select (1 to 3). */
.child-count select { max-width: 140px; }
.child-count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
#children { display: grid; gap: 30px; }
.form-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.request-children { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.request-children li { display: grid; gap: 2px; }
.request-children li.is-cancelled { opacity: .5; text-decoration: line-through; }
/* Whether the children's photos may be published: lime when yes, orange when not (worth remembering at photos). */
.image-consent { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.image-consent.is-yes { color: var(--lime); }
.image-consent.is-no { color: #ff9e7a; }
.request-children .age-off { justify-self: start; color: #ff9e7a; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
/* The thanks after sending the form, as wide as the form: what was sent (classes, children, parent) in rows like the
   confirmation mail (grey label, white value, a line under each), then "Wróć na stronę główną" at the bottom right,
   where "Wyślij zgłoszenie" was. Only the headings and the hour are lime. */
.thanks-card { display: grid; gap: 30px; padding: 36px; }
.thanks-part h2 { margin: 0 0 6px; font-size: 16px; color: var(--lime); }
.summary-rows { margin: 0; }
.summary-rows > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-rows dt { color: #b9c0cc; }
.summary-rows dd { margin: 0; color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.summary-rows dd.is-time { color: var(--lime); }
.summary-note { display: block; color: #b9c0cc; font-size: 15px; font-weight: 400; }
.thanks-card > .button { justify-self: end; }
/* The privacy policy (/polityka-prywatnosci): one card as wide as the form, a lime heading per part, white
   text, lime links. */
.legal-card { display: grid; gap: 30px; max-width: 860px; padding: 36px; }
/* The same text in its dialog (from the footer and the form's consent). The dialog sits in the footer, which centres
   its text on phones; the policy stays left-aligned. */
.modal-body.legal { gap: 26px; }
.legal { text-align: left; }
.legal h3 { margin: 0 0 12px; font-size: 16px; color: var(--lime); }
.legal p, .legal ul { margin: 0 0 10px; }
.legal section > :last-child { margin-bottom: 0; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 8px; }
.legal a, .consent-link, .footer-copy a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.legal-date { color: #b9c0cc; font-size: 15px; }
/* /zapisy with nothing open, and the home page's events with none planned: a calendar tile next to the text, then
   the ways to ask or follow in the meantime. */
.closed-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; margin-top: 32px; }
/* Sending requests switched off in the panel: an orange bar at the top of the home page. */
.paused-bar { margin: 0; padding: 12px 16px; background: var(--ember); color: var(--bg); font-weight: 800; text-align: center; }
/* The switches in the "Strona" tab: the name and what it does, its state, the button that turns it. */
.access-card { display: grid; gap: 0; margin-bottom: 36px; }
.access-card h2 { margin: 0 0 6px; font-size: 16px; }
.access-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px 20px; align-items: center; padding: 18px 0;
    border-top: 1px solid var(--line); }
.access-row h3 { margin: 0 0 6px; font-size: 15px; }
.access-row p { margin: 0; font-size: 14px; }
@media (max-width: 640px) { .access-row { grid-template-columns: auto auto; justify-content: start; } .access-row > div { grid-column: 1 / -1; } }
.closed-card :is(h2, h3) { margin: 6px 0 14px; font-size: 20px; color: var(--lime); }
.closed-card p { margin: 0; }
.closed-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.closed-actions .button { font-family: var(--font-body); font-weight: 800; font-size: 16px; text-transform: none; }
@media (max-width: 560px) { .closed-card { grid-template-columns: 1fr; } }

/* Login and admin */
.page-main { padding: 64px 0; }
.login-main { display: grid; place-items: center; padding-inline: 16px; }
.card { padding: 32px; background: var(--surface); }
.login-card { width: min(100%, 440px); }
.login-card h1 { font-size: 24px; margin: 0 0 12px; }
.login-form { display: grid; gap: 8px; margin-top: 26px; }
.login-form label { font-size: 14px; font-weight: 700; }
.login-form input { width: 100%; min-height: 48px; margin-bottom: 10px; padding: 10px 12px; border: 0; border-radius: 0; background: var(--bg); color: var(--text); box-shadow: inset 0 0 0 2px var(--line); }
.login-form input:focus { outline: none; background: #0b0f16; box-shadow: inset 0 0 0 3px var(--lime); }
.login-form .button { margin-top: 10px; }
.back-link { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--muted); }
.back-link:hover { color: var(--lime); }
.notice { margin: 16px 0 0; padding: 12px 14px; font-size: 14px; background: rgba(192, 248, 1, .08); box-shadow: inset 4px 0 0 var(--lime); }
.notice-error { color: #ffd0bd; background: rgba(224, 87, 26, .12); box-shadow: inset 4px 0 0 var(--ember); }
.admin-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 36px; }
.admin-heading h1 { font-size: 24px; margin-bottom: 12px; }
.table-card h2 { font-size: 16px; margin-bottom: 18px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: 15px; }
th, td { padding: 14px 12px; border-bottom: 2px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
.table-card + .table-card { margin-top: 36px; }
/* Admin panel: section tabs, status badges, row actions, place summary */
/* Admin pages (body.admin-page): wider content for tables, half the empty space at the sides */
.admin-page .container { width: min(100% - 32px, (100% + 1160px) / 2); }
/* Admin top navigation (fragments/nav/top/admin): sections on the left, place and account menus on the right */
.admin-header .header-inner { flex-wrap: wrap; }
/* Sub-navigation under it (fragments/nav/sub/admin): a back button and the open tab of the page next to it. */
.sub-nav { background: var(--surface); border-bottom: 2px solid var(--line); }
.sub-nav-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; min-height: 64px; padding: 10px 0; }
.sub-nav .sub-nav-tabs { margin: 0; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-right: auto; margin-left: 24px; }
/* In the header the tabs fill the space up to the menus, so a tab marked admin-nav-end ("Strona") sits on the
   right, next to the place switcher. */
.admin-header .admin-nav { flex: 1 1 auto; margin-right: 0; }
.admin-nav .admin-nav-end { margin-left: auto; }
/* Admin tabs and header menus have a thin pixel frame (notch shadows, --px 2px); the open tab is filled. */
.admin-nav a, .month-tabs a { --px: 2px; --notch-color: var(--line); margin: var(--px); padding: 8px 16px; color: var(--muted); font-weight: 800; text-decoration: none; }
.admin-nav a:hover, .month-tabs a:hover { --notch-color: var(--purple-light); color: var(--text); }
.admin-nav a.is-active, .month-tabs a.is-active { --notch-color: var(--lime); color: var(--bg); background: var(--lime); }
.header-menus { display: flex; align-items: center; gap: 10px; }
.header-menu { position: relative; }
.header-menu summary { --px: 2px; --notch-color: var(--line); display: inline-flex; align-items: center; gap: 10px; margin: var(--px); padding: 8px 14px; list-style: none; cursor: pointer; color: var(--text); font-weight: 700; white-space: nowrap; }
.place-name-short { display: none; }
/* Phones: in the admin header the mark alone instead of the name, a short place name and a shortened login, so both
   menus fit (in the website header they are in the folded navigation). */
@media (max-width: 720px) {
    .admin-header .brand-name { display: none; }
    /* The admin header wraps into two rows on phones: some air above and below them. */
    .admin-header .header-inner { padding: 10px 0; }
    .header-menu summary { gap: 8px; padding: 8px 10px; }
    .header-menus > .header-menu:not(:last-of-type) .header-menu-list { left: 0; right: auto; }
    .place-name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .place-name-short { display: inline; }
    .account-name { display: inline-block; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
}
.header-menu summary::-webkit-details-marker { display: none; }
.header-menu summary:hover, .header-menu[open] summary { --notch-color: var(--lime); color: var(--lime); }
.header-menu-caret { font-size: 12px; transition: transform .15s ease; }
.header-menu[open] .header-menu-caret { transform: rotate(180deg); }
.header-menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; display: grid; min-width: 210px; padding: 6px; background: var(--surface);
    box-shadow: 0 0 0 2px var(--line), 0 14px 32px rgba(0, 0, 0, .45); }
.header-menu-list a, .header-menu-list button { display: block; width: 100%; padding: 10px 12px; border: 0; background: none; color: var(--text); font: inherit; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.header-menu-list a:hover, .header-menu-list button:hover, .header-menu-list a.is-active { background: var(--surface-hover); color: var(--lime); }
.header-menu-list form { margin: 4px 0 0; padding-top: 4px; border-top: 2px solid var(--line); }
.profile-list { display: grid; grid-template-columns: max-content 1fr; gap: 12px 28px; margin: 0; }
.profile-list dt { color: var(--muted); font-weight: 700; }
.profile-list dd { margin: 0; }
.profile-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 36px 0; }
.profile-forms .signup-form { max-width: none; gap: 18px; align-content: start; }
.profile-forms .profile-data { grid-column: 1 / -1; gap: 24px; }
.profile-forms h2 { font-size: 16px; margin: 0; }
.profile-notice { margin: 0 0 24px; }
@media (max-width: 860px) { .profile-forms { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .admin-nav { order: 3; width: 100%; margin: 0 0 12px; } }
.table-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.table-card-heading h2 { margin: 0; }
/* Tabs on top of a card (active events / archive). They start at the card's outer edge (its pixel border sticks out
   by --px). Other tabs are a frame --tab-line thick with a pixel cut out of each corner, ending one frame width above
   the card's border. The open tab has the card's colour, cut top corners like the card, and reaches down over the
   card's border, covering its cut top-left corner, so tab and card make one shape. */
.card-tabs { --tab-line: 2px; display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px; margin-left: calc(var(--px) * -1); }
.card-tabs a {
    --cut: var(--tab-line);
    margin-bottom: calc(var(--px) + var(--tab-line)); padding: 12px 22px; color: var(--muted); font-weight: 800; text-decoration: none;
    box-shadow: inset 0 0 0 var(--tab-line) var(--tab-line-color, var(--line));
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, calc(100% - var(--cut)) var(--cut), 100% var(--cut),
                       100% calc(100% - var(--cut)), calc(100% - var(--cut)) calc(100% - var(--cut)), calc(100% - var(--cut)) 100%,
                       var(--cut) 100%, var(--cut) calc(100% - var(--cut)), 0 calc(100% - var(--cut)), 0 var(--cut), var(--cut) var(--cut));
}
.card-tabs a:hover { --tab-line-color: var(--purple-light); color: var(--text); }
.card-tabs a:focus-visible { outline-offset: -8px; }
.card-tabs a.is-active {
    --cut: var(--px);
    margin-bottom: 0; padding-bottom: calc(12px + var(--px) + var(--tab-line)); background: var(--surface); color: var(--lime); box-shadow: none;
    clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, calc(100% - var(--cut)) var(--cut), 100% var(--cut), 100% 100%,
                       0 100%, 0 var(--cut), var(--cut) var(--cut));
}
/* How many items a tab has, e.g. the requests on each list of an event. */
.card-tabs .tab-count { margin-left: 6px; color: var(--muted); font-weight: 700; }
.card-tabs a.is-active .tab-count { color: var(--text); }
.status-badge { display: inline-block; padding: 3px 9px; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--bg); background: var(--muted); }
/* A badge that opens the status modal on the events list. */
a.status-change { text-decoration: none; cursor: pointer; }
a.status-change:hover { box-shadow: 0 0 0 2px var(--text); }
.status-new, .status-draft { background: var(--purple-light); }
.status-confirmed, .status-published { background: var(--lime); }
/* Under a confirmed request's badge: when its mail goes out, or when it went out. */
.status-note { display: block; margin-top: 6px; font-size: 13px; white-space: nowrap; }
.status-queued { background: #f0c050; }
.status-cancelled { background: #f0a080; }
.status-archived { background: var(--line); color: var(--text); }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* The column with "Usuń" before "Termin" on the events list: only as wide as the button. */
.signups-table .col-delete { width: 1%; padding-right: 0; }
.signups-table .col-delete .button { --px: 3px; margin: var(--px); }
/* The heading of each day on the events list, e.g. "SOBOTA, 28 LISTOPADA 2026": lime pixel letters on a lime-tinted
   band with a bar on the left, so the days stand apart. */
.signups-table .day-row th { padding: 14px 16px 12px; background: rgba(192, 248, 1, .07); box-shadow: inset 4px 0 0 var(--lime);
    color: var(--lime); font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.signups-table tbody .day-row:not(:first-child) th { border-top: 24px solid var(--surface); }
/* Above the first new request beyond the free places: the same band in the colour of "W kolejce". */
.signups-table .queue-row th { padding: 14px 16px 12px; background: rgba(240, 192, 80, .08); box-shadow: inset 4px 0 0 #f0c050;
    color: #f0c050; font-family: var(--font-display); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.row-actions .button { --px: 3px; margin: var(--px); }
.inline-form { display: inline; margin: 0; }
.link-button { padding: 0; border: 0; background: none; color: var(--lime); font: inherit; font-size: 14px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.link-button:hover { color: var(--lime-bright); }
.request-children .inline-form { margin-top: 2px; }
/* How many children of a request will come, next to the parent. */
.signups-table .col-count { font-weight: 800; font-size: 18px; color: var(--lime); }
/* An event's hours in the admin list, under the heading row of its day. */
.signups-table .col-hours strong { font-size: 18px; white-space: nowrap; }
.request-children .link-button { font-size: 13px; color: var(--muted); }
.place-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin: 0 0 36px; }
.place-summary p { display: grid; align-content: start; gap: 4px; margin: 0; padding: 18px; background: var(--surface); }
.place-summary strong { font-family: var(--font-display); font-weight: 400; font-size: 24px; color: var(--lime); }
.place-summary p > span { color: var(--muted); font-size: 14px; }
/* Cards with the event's name, status and date: text values instead of numbers. */
.place-summary.event-info { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 16px; }
.event-info strong { font-family: var(--font-body); font-weight: 800; font-size: 18px; color: var(--text); }
.event-info small { font-size: 14px; }
/* "Bezpłatne" in the top right corner of the name card; the name keeps clear of it. */
.event-info p { position: relative; }
.event-info p:has(.free-badge) { padding-right: 130px; }
.event-info .free-badge { position: absolute; top: 18px; right: 18px; background: var(--ember); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* An ongoing event has no date, time, duration or places: hide those fields while "Ciągłe" is chosen. */
.signup-form:has(.event-type option[value="true"]:checked) .schedule-fields { display: none; }
.event-type .form-note { margin: 0; }
@media (max-width: 760px) { .place-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); } .place-summary.event-info { grid-template-columns: 1fr; } }
.signups-table td { vertical-align: top; }
/* Rows that open a page (row-links.js): highlighted under the mouse and when reached with Tab. */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td, tr[data-href]:focus-visible td { background: var(--surface-hover); }
tr[data-href]:focus-visible { outline: 3px dashed var(--purple-light); outline-offset: -3px; }
/* Plain links in tables are lime; buttons and status badges keep their own colours. */
.signups-table a:not(.button, .status-badge) { color: var(--lime); }
.signup-message { max-width: 280px; white-space: pre-line; color: var(--muted); }
tr.is-handled td { opacity: .55; }

@keyframes twinkle { from { opacity: 1; } to { opacity: .35; } }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(36px); } }
@keyframes drift-out { from { transform: translateX(0); } to { transform: translateX(-36px); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .stars, .stars::before, .cloud, .hero-mark, .pointer-hand, .event .slots-label::before, .hero-actions .button, .free-hint::before { animation: none; }
}

@media (max-width: 900px) {
    .pricing { grid-template-columns: 1fr; gap: 36px; }
    .hero { padding: 48px 0 120px; }
    .hero-inner { grid-template-columns: 1fr; gap: 22px; }
    .hero-art { order: -1; margin-bottom: 14px; }
    .hero-top { flex-direction: column-reverse; align-items: flex-start; margin-bottom: 0; }
    .announce-row { margin-left: 0; }
    /* The logo alone in the middle: the "K" tile takes the left 3/4 of the picture (the sparkles are on the right),
       so the picture moves right by half of the rest to put the tile itself in the middle. */
    .hero-mark { width: min(60%, 260px); translate: 12.5% 0; }
    .steps { grid-template-columns: 1fr; gap: 28px; }
    .steps::before { display: none; }
    .contact-panel { grid-template-columns: 1fr; padding: 36px 28px; }
}
@media (max-width: 720px) {
    body { font-size: 16px; }
    .container, .signup-page.container { width: calc(100% - 32px); }
    .sky-page .sky { --m: 12px; }
    .header-inner { min-height: 64px; gap: 12px; }
    .brand-mark { width: 28px; height: 28px; } .brand { gap: 10px; }
    .site-nav { gap: 12px; }
    .sky { --m: 12px; }
    .cloud-1 { width: 108px; top: 2%; left: 6%; right: auto; } .cloud-3 { width: 80px; top: 16%; right: 4%; } .cloud-2, .cloud-4 { display: none; }
    .hero h1 { font-size: 24px; }
    .hero-actions .button { --px: 4px; padding: 15px 22px; font-size: 16px; }
    .terms li { grid-template-columns: 44px 1fr; gap: 12px; padding: 14px; }
    .terms-icon { width: 44px; height: 44px; }
    .terms-icon svg { width: 26px; }
    .terms h3 { font-size: 12px; }
    .section h2 { font-size: 24px; }
    .hero-mark { width: min(55%, 200px); }
    .age-badge span { font-size: 16px; }
    .lead { font-size: 17px; }
    .ground { height: 60px; background-size: 192px 60px; }
    .map-card { aspect-ratio: 4 / 5; }
    .price-card { padding: 26px 22px; }
    .price-amount { font-size: 30px; }
    .section .price-row { column-gap: 10px; }
    .price-row-value { font-size: 24px; }
    .price-row-label { font-size: 13px; letter-spacing: .08em; }
    .price-cut { font-size: 12px; }
    .price-card .button { padding-inline: 14px; }
    .price-card .button span[aria-hidden] { display: none; }
    .form-grid, .choices-inline { grid-template-columns: 1fr; }
    .signup-form, .thanks-card, .legal-card { padding: 24px 20px; }
    .summary-rows > div { grid-template-columns: 1fr; gap: 0; padding: 10px 0; }
    .summary-rows dt { font-size: 15px; }
    .page-title { font-size: 24px; }
    .event { grid-template-columns: 1fr; gap: 20px; padding: 22px; }
    .event .free-tag { right: 22px; }
    .event .event-free, .price-card .free-tag { top: -14px; right: 18px; padding: 6px 10px 5px; font-size: 12px; }
    .free-hint { padding: 8px 12px 7px; font-size: 11px; }
    .free-hint::before { width: 12px; height: 8px; margin-right: 8px; background-size: 12px 8px; }
    .modal .event { grid-template-columns: 1fr; gap: 16px; padding: 18px; }
    .event-date { justify-self: start; grid-auto-flow: column; align-items: center; padding: 14px 18px; }
    .event-when { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
    .event-when .event-date { padding: 10px 14px; }
    .event-when .event-day { font-size: 32px; }
    .event .event-weekday { margin: 0; font-size: 12px; }
    .event h3 { font-size: 16px; }
    .announce { font-size: 14px; }
    .pointer-hand { width: 54px; height: 33px; }
    .section .location-street { font-size: 16px; }
    .contact-location { padding: 14px 16px; gap: 14px; }
    .hero { padding-bottom: 96px; }
    .section { padding: 64px 0; }
    .section h2 { margin-bottom: 32px; }
    .footer-inner { grid-template-columns: 1fr; }
    .card { padding: 24px; }
    .admin-heading { flex-direction: column; align-items: flex-start; }
}

/* Phones: the top of the page, the section headings (label, heading, intro) and lone buttons in the middle; longer
   texts, lists, the form and the cards stay on the left, as centred lines of a paragraph are harder to read. */
@media (max-width: 720px) {
    /* Labels smaller and tighter, so "Zajęcia stacjonarne · Turek" stays in one line next to its square. */
    .eyebrow { font-size: 12px; letter-spacing: .08em; }
    .hero-inner { text-align: center; }
    .hero-top { align-items: center; }
    /* The banner, the label and the heading evenly apart (about 28px), the logo a little further (about 40px; its
       picture has an empty pixel row under the tile). The banner in the middle; the hand above it on the left,
       beside the logo and not under it, turned to point down at the banner (it pokes downwards). */
    .hero-art { margin-bottom: 6px; }
    .announce-row { position: relative; display: block; }
    .pointer-hand { position: absolute; top: -50px; left: 18px; rotate: -90deg; }
    .hero .lead { margin-inline: auto; }
    .hero-actions { justify-content: center; }
    .section > .container > .eyebrow { display: flex; width: fit-content; margin-inline: auto; }
    .section > .container > h2, .section > .container > .section-lead { text-align: center; }
    .section > .container > h2::after { margin-inline: auto; }
    .events-more, .steps-cta { text-align: center; }
    /* "Trzy kroki do startu": short texts, so each step (its number, heading and line) in the middle. */
    .step { text-align: center; }
    .step-number { margin: var(--px) auto; }
    .closed-actions { justify-content: center; }
    .price-card .button { justify-self: center; }
    /* The green panel at the bottom (its heading and short text) and the page headings of the inner pages. */
    .contact-panel > div:first-child > h2, .contact-panel > div:first-child > p:not([class]) { text-align: center; }
    .page-top { justify-content: center; }
    .page-title, .page-lead { text-align: center; }
    .page-lead { margin-inline: auto; }
    /* The main button of the form in one line, in the middle. */
    .signup-page .signup-form > .button { justify-self: center; padding: 16px 20px; font-size: 14px; }
    .signup-page .signup-form > .button span[aria-hidden] { display: none; }
    /* The footer's short lines in the middle. */
    .footer-inner { justify-items: center; text-align: center; }
    .footer-brand .brand { justify-content: center; }
    .footer-links { justify-content: center; }
}

/* Full-size Polish capitals for Press Start 2P (see assets/js/pixel-letters.js); 1 font pixel = .125em. */
.pl { position: relative; -webkit-text-fill-color: transparent; }
.pl::before { content: attr(data-b); position: absolute; left: 0; top: 0; line-height: 1; -webkit-text-fill-color: currentColor; }
.pl::after { content: ""; position: absolute; width: .125em; height: .125em; background: currentColor; }
.pl-dot::after { left: .375em; top: -.25em; width: .25em; }
.pl-acute::after { left: .5em; top: -.375em; box-shadow: -.125em .125em 0 currentColor; }
.pl-ogonek-a::after { left: .625em; top: .875em; box-shadow: -.125em .125em 0 currentColor, 0 .25em 0 currentColor, .125em .25em 0 currentColor; }
.pl-ogonek-e::after { left: .375em; top: .875em; box-shadow: -.125em .125em 0 currentColor, 0 .25em 0 currentColor, .125em .25em 0 currentColor; }

/* Back to top: pixel button, fixed in the corner. Hidden until scrolled (to-top.js); always shown without JS.
   Like other buttons it is a frame filled on hover, with a dark inside so it stays visible over photos. */
.to-top { --notch-color: var(--lime); position: fixed; right: 24px; bottom: 24px; z-index: 30; display: grid; place-items: center; width: 52px; height: 52px;
    background: var(--bg); color: var(--lime);
    box-shadow: 0 calc(var(--px) * -1) 0 var(--notch-color), 0 var(--px) 0 var(--notch-color), calc(var(--px) * -1) 0 0 var(--notch-color), var(--px) 0 0 var(--notch-color);
    transition: opacity .2s ease, transform .2s ease, background-color .15s ease, color .15s ease; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { --notch-color: var(--lime-bright); background: var(--lime-bright); color: var(--bg); transform: translateY(-3px); }
.to-top:focus-visible { outline-offset: 8px; }
.js .to-top:not(.is-visible) { opacity: 0; pointer-events: none; transform: translateY(14px); }
/* No "back to top" button on phones: it would cover buttons and lists in the corner, and the bar with the menu stays
   at the top anyway. */
@media (max-width: 720px) { .to-top { display: none; } }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }

/* Pixel scrollbar: square lime thumb with grip lines, pixel arrows (Chrome, Edge, Safari). */
::-webkit-scrollbar { width: 16px; height: 16px; background: var(--bg); }
::-webkit-scrollbar-track { background-color: var(--bg); background-image: repeating-linear-gradient(0deg, rgba(255, 255, 255, .03) 0 4px, transparent 4px 8px); box-shadow: inset 2px 0 0 var(--line); }
::-webkit-scrollbar-thumb { border: 3px solid var(--bg); border-radius: 0; background-color: var(--lime);
    background-image: linear-gradient(var(--lime-dark), var(--lime-dark)), linear-gradient(var(--lime-dark), var(--lime-dark)), linear-gradient(var(--lime-dark), var(--lime-dark));
    background-size: 6px 2px; background-repeat: no-repeat; background-position: center calc(50% - 4px), center, center calc(50% + 4px); }
::-webkit-scrollbar-thumb:hover { background-color: var(--lime-bright); }
::-webkit-scrollbar-thumb:active { background-color: var(--purple-light); }
::-webkit-scrollbar-corner { background: var(--bg); }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-button:vertical:start:decrement, ::-webkit-scrollbar-button:vertical:end:increment {
    display: block; height: 16px; background-color: var(--bg); background-repeat: no-repeat; background-position: center; background-size: 8px 4px; box-shadow: inset 2px 0 0 var(--line); }
::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' shape-rendering='crispEdges' fill='%23c0f801'%3E%3Crect x='3' width='2' height='1'/%3E%3Crect x='2' y='1' width='4' height='1'/%3E%3Crect x='1' y='2' width='6' height='1'/%3E%3Crect y='3' width='8' height='1'/%3E%3C/svg%3E"); }
::-webkit-scrollbar-button:vertical:end:increment {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 4' shape-rendering='crispEdges' fill='%23c0f801'%3E%3Crect width='8' height='1'/%3E%3Crect x='1' y='1' width='6' height='1'/%3E%3Crect x='2' y='2' width='4' height='1'/%3E%3Crect x='3' y='3' width='2' height='1'/%3E%3C/svg%3E"); }
/* Firefox has no scrollbar pseudo-elements: colours only. */
@supports not selector(::-webkit-scrollbar) {
    html { scrollbar-color: var(--lime) var(--bg); }
}
