/* JoodCMS © JOOD Usługi Techniczne i Projektowe Sp. z o.o. Free to use under LICENSE.md. */
/* JoodCMS base styles. The site kit's theme CSS and each block's own CSS are added after this file. */
/* Everything here sits in a low-priority layer, so a site kit's own CSS (and each block's CSS) always wins. */
@layer jc-base {
:root {
  --jc-width: 1140px;
  --jc-font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --jc-text: #111111;
  --jc-bg: #ffffff;
  --jc-muted: #555555;
  --jc-line: #dddddd;
  --jc-accent: #111111;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--jc-font); color: var(--jc-text); background: var(--jc-bg); line-height: 1.6; }
.jc-page { container-type: inline-size; container-name: jcpage; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
/* Site-wide bars keep a solid background so they stay readable on any page background (a kit or the Design tab can change it). */
.jc-block.jc-header, .jc-block.jc-menu, .jc-block.jc-footer { background: var(--jc-bg); color: var(--jc-text); }
img, video { max-width: 100%; height: auto; }
a { color: var(--jc-accent); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 5.2cqi, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3.4cqi, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
blockquote { margin: 0 0 1em; padding-left: 1em; border-left: 3px solid currentColor; }

.jc-block { position: relative; }
.jc-inner { max-width: var(--jc-width); margin: 0 auto; padding-inline: 24px; }
.jc-grid { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.jc-full { grid-column: 1 / -1; }
.jc-cell > :first-child { margin-top: 0; }
.jc-cell > :last-child { margin-bottom: 0; }
.jc-cell img { display: block; }
.jc-cell::after { content: ""; display: table; clear: both; }
/* Hover colours set in the editor's Element tab (stored as CSS variables on the element) */
[style*="--jc-h-"] { transition: color .15s, background-color .15s, border-color .15s; }
[style*="--jc-h-color"]:hover { color: var(--jc-h-color) !important; }
[style*="--jc-h-bg"]:hover { background-color: var(--jc-h-bg) !important; }
[style*="--jc-h-border"]:hover { border-color: var(--jc-h-border) !important; }

/* Buttons written in content as <a class="jc-button"> */
.jc-button { display: inline-block; padding: .7em 1.2em; border: 2px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 600; color: inherit; }
.jc-button.jc-solid { background: var(--jc-text); color: var(--jc-bg); border-color: var(--jc-text); }

/* Menu block */
.jc-menu .jc-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.jc-menu .jc-grid:empty { display: none; }
.jc-menu-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 28px; }
.jc-menu-list a { display: block; padding: 8px 0; color: inherit; text-decoration: none; }
.jc-menu-list a:hover { text-decoration: underline; text-underline-offset: 6px; }
.jc-menu-list a[aria-current="page"] { font-weight: 700; }
.jc-has-sub { position: relative; }
.jc-has-sub > a::after { content: " ▾"; font-size: .8em; }
.jc-sub { display: none; position: absolute; top: 100%; left: 0; min-width: 220px; flex-direction: column; gap: 0; padding: 8px 16px; background: var(--jc-bg); border: 1px solid var(--jc-line); z-index: 30; }
.jc-has-sub:hover > .jc-sub, .jc-has-sub:focus-within > .jc-sub { display: flex; }
.jc-menu-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid currentColor; border-radius: 4px; background: none; color: inherit; font: inherit; cursor: pointer; }

/* Slider block */
.jc-slides { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; }
.jc-slides::-webkit-scrollbar { display: none; }
.jc-slide { scroll-snap-align: start; padding: 8px 4px; }
.jc-slides > .jc-full, .jc-slides > .jc-cell { grid-column: auto; grid-row: 1; }
.jc-slider-nav { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.jc-slider-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid currentColor; background: none; color: inherit; font-size: 22px; cursor: pointer; }

/* Breadcrumbs */
.jc-crumbs { font-size: 14px; color: var(--jc-muted); padding-block: 12px; }
.jc-crumbs a { color: inherit; }

/* Embeds load only after consent */
.jc-embed { position: relative; aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; padding: 16px; background: #eeeeee; color: #333333; text-align: center; font-size: 14px; }
.jc-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Cookie notice */
.jc-cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 900; max-width: 640px; margin: 0 auto; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; background: #111111; color: #ffffff; border-radius: 8px; font-size: 14px; }
.jc-cookie p { margin: 0; flex: 1 1 260px; }
.jc-cookie div { display: flex; gap: 8px; }
.jc-cookie button { min-height: 40px; padding: 0 14px; border-radius: 4px; border: 1px solid #ffffff; background: none; color: #ffffff; font: inherit; cursor: pointer; }
.jc-cookie button[data-consent="yes"] { background: #ffffff; color: #111111; }
.jc-cookie a { color: #ffffff; }
.jc-embed-load { min-height: 44px; padding: 0 16px; border: 1px solid currentColor; border-radius: 6px; background: none; color: inherit; font: inherit; cursor: pointer; }

.jc-notfound .jc-inner { padding-block: 96px; }

@container jcpage (max-width: 639px) {
  .jc-inner { padding-inline: 18px; }
  .jc-menu-toggle { display: inline-flex; }
  .jc-menu .jc-menu-list { display: none; width: 100%; flex-direction: column; gap: 0; }
  .jc-menu.jc-open .jc-menu-list { display: flex; }
  .jc-sub { position: static; display: flex; border: 0; padding: 0 0 0 16px; }
  .jc-has-sub > a::after { content: ""; }
  /* Wrapped pictures sit on their own line on phones */
  .jc-cell img[style*="float"] { float: none !important; width: 100% !important; margin: 0 0 1em !important; }
}

/* Imported sections that keep their original layout (WordPress kits): the site's CSS styles the block, JoodCMS adds no width or padding */
.jc-raw { display: block !important; }
.jc-raw > .jc-inner { max-width: none; padding-inline: 0; }
/* Theme layout: the imported site's CSS places these elements itself. */
.jc-theme-layout > .jc-inner > .jc-grid { display: block; }
.jc-theme-layout .jc-cell::after { content: none; }
.jc-page.jc-has-shell { display: block; }
.jc-theme-layout.jc-menu .jc-inner { display: block; }
.jc-theme-layout .jc-menu-list { display: block; gap: 0; }
.jc-theme-layout .jc-menu-list a { padding: 0; }
.jc-theme-layout .jc-menu-list a:hover { text-decoration: none; }
.jc-theme-layout .jc-has-sub > a::after { content: none; }
.jc-theme-layout .jc-menu-toggle { display: none; }
}

/* ===== Effects (JoodCMS 0.3.1) =====
   Small built-in set, applied with classes from the editor's Effects tab. Developers can add their own:
   any element with .jc-on-view gets .jc-in when it scrolls into view; .jc-on-click toggles .jc-active;
   elements with a jc-tap-* class get .jc-clicked for a moment when clicked. */
@layer jc-base {
:root { --jc-fx-dur: .7s; --jc-fx-delay: 0s; }
html.jc-smooth { scroll-behavior: smooth; }
:where([class*="jc-fx-"], [class*="jc-hv-"], [class*="jc-tap-"]) {
  transition: opacity var(--jc-fx-dur) ease var(--jc-fx-delay), transform var(--jc-fx-dur) cubic-bezier(.2,.7,.2,1) var(--jc-fx-delay), filter var(--jc-fx-dur) ease var(--jc-fx-delay),
    translate .25s ease, scale .25s ease, rotate .25s ease, box-shadow .25s ease, background-size .3s ease, opacity .25s ease;
}
/* Entrance: hidden until scrolled into view (or page load with .jc-on-load) */
.jc-fx-ready .jc-fx-fade:not(.jc-in) { opacity: 0; }
.jc-fx-ready .jc-fx-up:not(.jc-in) { opacity: 0; transform: translateY(40px); }
.jc-fx-ready .jc-fx-down:not(.jc-in) { opacity: 0; transform: translateY(-40px); }
.jc-fx-ready .jc-fx-left:not(.jc-in) { opacity: 0; transform: translateX(-60px); }
.jc-fx-ready .jc-fx-right:not(.jc-in) { opacity: 0; transform: translateX(60px); }
.jc-fx-ready .jc-fx-zoom:not(.jc-in) { opacity: 0; transform: scale(.85); }
.jc-fx-ready .jc-fx-flip:not(.jc-in) { opacity: 0; transform: perspective(900px) rotateX(40deg); }
.jc-fx-ready .jc-fx-blur:not(.jc-in) { opacity: 0; filter: blur(14px); }
/* If the script never runs, show everything after 3 seconds */
html.jc-fx-ready:not(.jc-fx-live) [class*="jc-fx-"] { animation: jc-failsafe 0s 3s forwards; }
@keyframes jc-failsafe { to { opacity: 1; transform: none; filter: none; } }
.jc-delay-1 { --jc-fx-delay: .15s; } .jc-delay-2 { --jc-fx-delay: .3s; } .jc-delay-3 { --jc-fx-delay: .45s; } .jc-delay-4 { --jc-fx-delay: .6s; }
.jc-speed-fast { --jc-fx-dur: .4s; } .jc-speed-slow { --jc-fx-dur: 1.2s; }
/* Hover */
.jc-hv-lift:hover { translate: 0 -6px; box-shadow: 0 16px 34px rgba(0,0,0,.16); }
.jc-hv-grow:hover { scale: 1.05; }
.jc-hv-shrink:hover { scale: .96; }
.jc-hv-tilt:hover { rotate: -2deg; }
.jc-hv-glow:hover { box-shadow: 0 0 0 4px rgba(255,255,255,.7), 0 0 28px rgba(0,0,0,.25); }
.jc-hv-dim:hover { opacity: .75; }
.jc-hv-wobble:hover { animation: jc-wiggle .6s ease; }
.jc-hv-shine { position: relative; overflow: hidden; }
.jc-hv-shine::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%); translate: -120% 0; transition: translate .7s ease; pointer-events: none; }
.jc-hv-shine:hover::after { translate: 120% 0; }
.jc-hv-underline { text-decoration: none; background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 2px; }
.jc-hv-underline:hover { background-size: 100% 2px; }
/* Click / tap */
.jc-tap-press:active { scale: .94; }
.jc-tap-pulse.jc-clicked { animation: jc-pulse .5s ease; }
.jc-tap-bounce.jc-clicked { animation: jc-bounce .6s ease; }
.jc-tap-spin.jc-clicked { animation: jc-spin .6s ease; }
/* Continuous */
.jc-loop-float { animation: jc-float 3.2s ease-in-out infinite; }
.jc-loop-pulse { animation: jc-pulse 2s ease-in-out infinite; }
.jc-loop-bounce { animation: jc-bounce 1.8s ease infinite; }
.jc-loop-spin { animation: jc-spin 8s linear infinite; }
.jc-loop-wiggle { animation: jc-wiggle 2.6s ease-in-out infinite; }
.jc-loop-swing { animation: jc-swing 3s ease-in-out infinite; transform-origin: 50% 0; }
.jc-pause-hover:hover { animation-play-state: paused; }
.jc-pause-hover:hover * { animation-play-state: paused; }
.jc-pause-view:not(.jc-in) { animation-play-state: paused; }
@keyframes jc-float { 50% { translate: 0 -10px; } }
@keyframes jc-pulse { 50% { scale: 1.07; } }
@keyframes jc-bounce { 0%, 100% { translate: 0 0; } 30% { translate: 0 -14px; } 50% { translate: 0 0; } 65% { translate: 0 -6px; } }
@keyframes jc-spin { to { rotate: 360deg; } }
@keyframes jc-wiggle { 0%, 100% { rotate: 0deg; } 20% { rotate: -6deg; } 40% { rotate: 5deg; } 60% { rotate: -3deg; } 80% { rotate: 2deg; } }
@keyframes jc-swing { 0%, 100% { rotate: -4deg; } 50% { rotate: 4deg; } }
/* Scroll-linked (browsers with scroll-driven animations; others simply show the element) */
@supports (animation-timeline: view()) {
  .jc-scroll-parallax { animation: jc-parallax linear both; animation-timeline: view(); }
  .jc-scroll-reveal { animation: jc-reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
  .jc-scroll-spin { animation: jc-spin linear both; animation-timeline: view(); }
  @keyframes jc-parallax { from { translate: 0 -40px; } to { translate: 0 40px; } }
  @keyframes jc-reveal { from { opacity: .2; scale: .9; } to { opacity: 1; scale: 1; } }
}
.jc-sticky-top, .jc-sticky-bottom { z-index: 40; }
/* While editing, everything stays visible (use Preview in the Effects tab) and nothing sticks */
body.jc-editing [class*="jc-fx-"]:not(.jc-fx-preview) { opacity: 1 !important; transform: none !important; filter: none !important; }
@media (prefers-reduced-motion: reduce) {
  [class*="jc-fx-"], [class*="jc-loop-"], [class*="jc-scroll-"], [class*="jc-tap-"], [class*="jc-hv-"] { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; translate: none !important; scale: none !important; rotate: none !important; }
}
}

/* 0.5.0: download links and pasted tables */
.jc-download { display: inline-flex; align-items: baseline; gap: .4em; padding: .55em .9em; border: 1px solid currentColor; border-radius: 4px; text-decoration: none; font-weight: 600; }
.jc-download::before { content: "\2193"; font-weight: 700; }
.jc-download small { font-weight: 400; opacity: .75; }
.jc-cell table.jc-table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.jc-cell table.jc-table th, .jc-cell table.jc-table td { border: 1px solid rgba(0, 0, 0, .25); padding: .45em .6em; text-align: left; vertical-align: top; }
.jc-cell table.jc-table th { font-weight: 700; }
/* Form block */
.jc-form-block { display: grid; gap: 14px; max-width: 640px; margin-top: 12px; }
.jc-form-block .jc-field { display: grid; gap: 6px; font-weight: 600; }
.jc-form-block .jc-field > span { font-size: .95em; }
.jc-form-block input:not([type=checkbox]), .jc-form-block select, .jc-form-block textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #b5b5b5; border-radius: 6px; background: #ffffff; color: #111111; }
.jc-form-block input:focus, .jc-form-block select:focus, .jc-form-block textarea:focus { outline: 2px solid currentColor; outline-offset: 1px; }
.jc-form-block .jc-check-field { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.jc-form-block .jc-check-field input { margin-top: .25em; width: 18px; height: 18px; flex: none; }
.jc-form-block .jc-req { color: #b00020; }
.jc-form-block .jc-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.jc-form-block .jc-form-actions { margin-top: 4px; }
.jc-form-block button[disabled] { opacity: .6; cursor: wait; }
.jc-form-result .jc-inner { padding-top: 48px; padding-bottom: 48px; }
