/* JCI Kraków: tokeny wg JCI Brand Guidelines v1.4 + warstwa web (WCAG 2.2 AA) */
:root {
  /* Brand (guidelines) */
  --jci-blue: #0097D7;
  --jci-black: #130F2D;
  --jci-white: #FFFFFF;
  --jci-navy: #1F4789;
  --jci-teal: #57BCBC;
  --jci-yellow: #EFC40F;

  /* Rozszerzenie web */
  --blue-25: #BFE5F5;      /* JCI Blue 25% */
  --blue-10: #F2FAFD;      /* tło paneli z guidelines */
  --blue-hover: #0080B6;   /* JCI Blue przyciemniony (hover) */
  --black-75: #4E4B61;     /* JCI Black 75% */
  --black-25: #C4C3CB;     /* JCI Black 25% */
  --surface: #FFFFFF;
  --bg: var(--jci-white);
  --bg-soft: #F2FAFD;
  --border: #E2E1E7;
  --text: var(--jci-black);
  --text-muted: var(--black-75);
  --link: var(--jci-navy);

  /* Kolory obszarów (legenda w całej stronie) */
  --area-biz: var(--jci-blue);
  --area-dev: var(--jci-navy);
  --area-com: var(--jci-teal);
  --area-int: var(--jci-yellow);

  /* Typografia */
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-quote: "Arvo", Georgia, serif;
  --fs-display: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-lead: clamp(1.1875rem, 1.7vw, 1.5rem);
  --fs-h3: clamp(1.125rem, 1.4vw, 1.25rem);
  --fs-body: clamp(1rem, 1.1vw, 1.0625rem);
  --fs-small: .875rem;

  /* Layout */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-btn: 4px;       /* przyciski jak na jci.cc */
  --space-section: clamp(72px, 10vw, 128px);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--jci-blue); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--fs-display); font-weight: 500; line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: var(--fs-h2); font-weight: 400; line-height: 1.15; letter-spacing: -0.02em; }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
.lead { font-size: var(--fs-lead); font-weight: 400; line-height: 1.4; color: var(--text-muted); }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--space-section); position: relative; overflow: hidden; }
.section-soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--jci-navy); margin: 0 0 20px; }
.eyebrow::before { content: ""; width: 24px; height: 3px; border-radius: 2px; background: currentColor; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 5vw, 56px); position: relative; z-index: 1; }
.section-head .lead { margin: 20px 0 0; }

/* Buttons: wzór jci.cc (prostokąt, minimalne zaokrąglenie, JCI Blue + biały tekst, strzałka ↗).
   Biały na JCI Blue = 3.28:1 → tekst przycisku 19px/600 (duży tekst wg WCAG, próg 3:1). */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 13px 26px; border-radius: var(--radius-btn); font: 600 1.1875rem/1.2 var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.btn-primary { background: var(--jci-blue); color: var(--jci-white); }
.btn-primary:hover { background: var(--blue-hover); }
.btn-outline { border-color: var(--jci-navy); color: var(--jci-navy); background: transparent; }
.btn-outline:hover { background: var(--jci-navy); color: var(--jci-white); }
.btn-outline-light { border-color: var(--jci-white); color: var(--jci-white); background: transparent; }
.btn-outline-light:hover { background: var(--jci-white); color: var(--jci-black); }
.btn-white { background: var(--jci-white); color: var(--jci-black); }
.btn-white:hover { background: var(--jci-black); color: var(--jci-white); }
.btn svg, .btn .ico { width: 18px; height: 18px; flex: none; }
.link-arrow { font-weight: 600; color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; }
.link-arrow:hover { text-decoration: underline; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-header.scrolled { border-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; gap: 24px; }
.brand { padding: 18px 0; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--text); text-decoration: none; font-weight: 500; font-size: .9375rem; }
.nav a:not(.btn):hover { color: var(--jci-navy); text-decoration: underline; }
.nav .btn { min-height: 44px; padding: 10px 20px; font-size: 1rem; }
.nav .lang { font-weight: 600; font-size: .875rem; letter-spacing: .04em; border: 1px solid var(--black-25); border-radius: var(--radius-btn); padding: 6px 10px; }
.nav .lang:hover { border-color: var(--jci-blue); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 28px; height: 28px; }
@media (max-width: 1023px) {
  .nav-toggle { display: block; }
  .nav { position: fixed; inset: 88px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); padding: 8px var(--gutter) 24px; border-bottom: 1px solid var(--border); display: none; box-shadow: 0 20px 40px -24px rgba(19,15,45,.3); }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 1.0625rem; }
  .nav .lang { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; padding: 14px 0; }
  .nav .btn { margin-top: 16px; }
}

/* Ripple (pierścienie / 4 ćwiartki / obrót 15°) */
.ripple { position: absolute; pointer-events: none; aspect-ratio: 1; background: currentColor; -webkit-mask: url(assets/ripple.svg) center / contain no-repeat; mask: url(assets/ripple.svg) center / contain no-repeat; z-index: 0; }

/* 1 Hero: tekst po lewej, rotujące zdjęcia po prawej, ripple w tle */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 96px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 .accent { color: var(--jci-blue); }
.hero .lead { margin: 24px 0 32px; color: var(--text); max-width: 30ch; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.hero-media { position: relative; }
.hero-media .ripple { width: 150%; right: -55%; top: -30%; color: var(--blue-10); }
.hero-slides { position: relative; z-index: 1; aspect-ratio: 5 / 4.4; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); }
.hero-slides .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.hero-slides .slide.is-active { opacity: 1; }
.hero-dots { position: relative; z-index: 1; display: flex; gap: 8px; margin-top: 12px; }
.hero-dots .dot { width: 32px; height: 4px; padding: 10px 0; border: 0; background: var(--black-25); background-clip: content-box; cursor: pointer; box-sizing: content-box; }
.hero-dots .dot.is-active { background-color: var(--jci-blue); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-slides { aspect-ratio: 4 / 3; }
  .hero-media .ripple { width: 120%; right: -40%; top: -20%; }
}

/* 2 Liczby (jasne) */
.proof { padding-block: 0 clamp(48px, 6vw, 80px); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 4px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--border); }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 400; letter-spacing: -0.02em; line-height: 1; color: var(--text); }
.stat strong em { font-style: normal; color: var(--jci-blue); }
.stat strong .pre { font-size: .45em; vertical-align: .6em; margin-right: .15em; color: var(--jci-navy); font-weight: 600; letter-spacing: 0; }
.stat > span { display: block; margin-top: 10px; color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 8px; }
}

/* 3 Co zyskujesz */
.areas-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; position: relative; z-index: 1; }
.area { --c: var(--area-biz); background: var(--surface); border-radius: var(--radius); overflow: hidden; display: grid; grid-template-columns: 220px 1fr; border: 1px solid var(--border); }
.area img { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.area-body { padding: 28px; border-top: 6px solid var(--c); }
.area h3 { margin-bottom: 8px; }
.area .benefit { color: var(--text); font-weight: 500; margin-bottom: 14px; }
.area ul { margin: 0; padding-left: 18px; color: var(--text-muted); font-size: .9375rem; }
.area li { margin-bottom: 6px; }
.area li::marker { color: var(--c); }
.area[data-area="dev"] { --c: var(--area-dev); }
.area[data-area="com"] { --c: var(--area-com); }
.area[data-area="int"] { --c: var(--area-int); }
@media (max-width: 1060px) { .areas-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .area { grid-template-columns: 1fr; } .area img { min-height: 0; aspect-ratio: 16/9; } }

/* Tag obszaru */
.tag { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; font-weight: 600; color: var(--text); }
.tag::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--area-biz)); }
.tag[data-area="dev"] { --c: var(--area-dev); }
.tag[data-area="com"] { --c: var(--area-com); }
.tag[data-area="int"] { --c: var(--area-int); }

/* 4 Jak dołączyć: JCI Blue */
.join { background: var(--jci-blue); color: var(--jci-black); }
.join .eyebrow { color: var(--jci-black); }
.join .lead { color: var(--jci-black); }
.join .ripple { width: 820px; right: -320px; top: -260px; color: rgba(255,255,255,.14); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; z-index: 1; }
.step { background: var(--surface); border-radius: var(--radius); padding: 28px; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); display: block; font-size: 2.5rem; font-weight: 300; color: var(--jci-blue); line-height: 1; margin-bottom: 18px; }
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--text-muted); }
.join-bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); position: relative; z-index: 1; align-items: start; }
.join-bottom h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; margin-bottom: 20px; }
.join-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.faq { display: grid; gap: 10px; }
.faq details { background: rgba(255,255,255,.92); border-radius: var(--radius-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; min-height: 48px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--jci-black); border-bottom: 2px solid var(--jci-black); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .join-bottom { grid-template-columns: 1fr; } }

/* 5 Wydarzenia */
.events-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 20px 24px; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--border); margin-bottom: 24px; }
.events-bar p { margin: 0; font-weight: 600; }
.events-bar .social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.events-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.event { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.event img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.event-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; }
.event h3 { font-size: 1.125rem; }
.event p { margin: 0; color: var(--text-muted); font-size: .9375rem; }
@media (max-width: 1060px) { .events-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .events-grid { grid-template-columns: 1fr; } .event { display: grid; grid-template-columns: 112px 1fr; } .event img { aspect-ratio: auto; height: 100%; } .event-body { padding: 16px; gap: 6px; } }

/* 6 Kim jesteśmy */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.about-text h2 { margin-bottom: 24px; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.about-photos img { border-radius: var(--radius); aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.about-photos img:nth-child(2) { margin-top: 48px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(32px, 6vw, 96px); margin-top: clamp(56px, 7vw, 96px); }
.mv-item { border-left: 4px solid var(--jci-blue); padding-left: 24px; }
.mv-item + .mv-item { border-color: var(--jci-navy); }
.mv-item h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 12px; }
.mv-item p { margin: 0; font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 300; line-height: 1.3; }
.creed { margin-top: clamp(40px, 5vw, 56px); background: var(--bg-soft); border-radius: var(--radius); padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.creed h3 { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jci-navy); margin-bottom: 24px; position: relative; z-index: 1; }
.creed ol { margin: 0; padding: 0; list-style: none; counter-reset: c; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 48px; position: relative; z-index: 1; }
.creed li { counter-increment: c; font-family: var(--font-quote); font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.45; display: grid; grid-template-columns: 32px 1fr; }
.creed li::before { content: counter(c); font-family: var(--font); font-size: .875rem; font-weight: 600; color: var(--jci-navy); padding-top: .25em; }
.creed .ripple { width: 520px; right: -200px; bottom: -260px; color: rgba(0,151,215,.07); }
@media (max-width: 860px) { .about-grid, .mv, .creed ol { grid-template-columns: 1fr; } }

/* 7 Partnerzy */
.partners-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.partner { border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 28px; display: flex; align-items: center; gap: 24px; text-decoration: none; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.partner:hover { border-color: var(--jci-blue); box-shadow: 0 12px 32px -18px rgba(0,151,215,.6); }
.partner-logo { flex: 0 0 120px; height: 72px; display: grid; place-items: center; }
.partner-logo img { max-height: 72px; max-width: 120px; width: auto; height: auto; opacity: .8; }
.partner-text { display: flex; flex-direction: column; gap: 4px; }
.partner-text strong { font-size: 1.0625rem; }
.partner-text span { color: var(--text-muted); font-size: .9375rem; }
.members-biz { margin-top: 48px; }
.members-biz h3 { margin-bottom: 16px; }
.logo-wall { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.logo-tile { height: 112px; display: grid; place-items: center; padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.logo-tile img { max-width: 100%; max-height: 64px; width: auto; height: auto; opacity: .72; transition: opacity .15s; }
a.logo-tile:hover { border-color: var(--jci-blue); box-shadow: 0 12px 32px -18px rgba(0,151,215,.6); }
a.logo-tile:hover img { opacity: 1; }
.logo-text { font-weight: 700; font-size: 1.5rem; letter-spacing: .12em; color: var(--text); text-decoration: none; }
.partner-cta { margin-top: 40px; padding: 24px 28px; border-radius: var(--radius); background: var(--blue-10); display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.partner-cta p { margin: 0; font-weight: 600; }
@media (max-width: 960px) { .logo-wall { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .partners-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .logo-wall { grid-template-columns: 1fr 1fr; } .logo-tile { height: 96px; padding: 12px; } .partner { padding: 20px; gap: 16px; } .partner-logo { flex-basis: 84px; } }

/* 8 Kontakt */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; }
.contact-main { background: var(--jci-black); color: var(--jci-white); border-radius: var(--radius); padding: clamp(28px, 4vw, 40px); }
.contact-main h3 { margin-bottom: 8px; }
.contact-main .big { display: inline-block; font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; color: var(--jci-white); margin: 4px 0 20px; word-break: break-word; }
.contact-main p { color: #C9C7D3; }
.registry { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.registry summary { cursor: pointer; list-style: none; padding: 22px 28px; font-weight: 600; position: relative; }
.registry summary::-webkit-details-marker { display: none; }
.registry summary::after { content: ""; position: absolute; right: 28px; top: 50%; width: 10px; height: 10px; margin-top: -7px; border-right: 2px solid var(--jci-black); border-bottom: 2px solid var(--jci-black); transform: rotate(45deg); }
.registry[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.registry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 28px 28px; }
.registry h4 { font-size: 1rem; margin-bottom: 10px; }
.registry h4 small { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.registry dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; font-size: var(--fs-small); }
.registry dt { color: var(--text-muted); }
.registry dd { margin: 0; font-variant-numeric: tabular-nums; word-break: break-word; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .registry-grid { grid-template-columns: 1fr; } }

/* Social icons */
.social-icons { display: flex; gap: 10px; }
.social-icons a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text); transition: background-color .15s, color .15s, border-color .15s; }
.social-icons a:hover { background: var(--jci-blue); border-color: var(--jci-blue); color: var(--jci-black); }
.social-icons .ico { width: 20px; height: 20px; }
.social-icons.on-dark a { border-color: rgba(255,255,255,.25); color: var(--jci-white); }
.social-icons.on-dark a:hover { background: var(--jci-blue); border-color: var(--jci-blue); color: var(--jci-black); }

/* Footer */
.site-footer { background: var(--jci-black); color: #C9C7D3; padding-block: 64px 32px; font-size: .9375rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; }
.site-footer .footer-logo { height: 64px; width: auto; margin-bottom: 20px; }
.site-footer .social-icons { margin-top: 20px; }
.site-footer h4 { color: var(--jci-white); font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #E4E3EA; text-decoration: none; }
.site-footer a:hover { color: var(--jci-white); text-decoration: underline; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .8125rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } .site-footer { padding-bottom: 96px; } }

/* Mobile sticky CTA */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--border); transform: translateY(110%); transition: transform .25s ease; }
  .sticky-cta.show { transform: none; }
  .sticky-cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

/* Arvo nie ma polskich znaków: w PL Credo w kroju podstawowym (guidelines: Plus Jakarta Sans) */
:lang(pl) .creed li { font-family: var(--font); font-weight: 300; font-size: clamp(1.125rem, 1.6vw, 1.3125rem); }

/* Karta wydarzenia bez zdjęcia: grafika marki (ripple + ikona) */
.event-art { position: relative; aspect-ratio: 4 / 3; background: var(--jci-navy); color: var(--jci-white); display: grid; place-items: center; overflow: hidden; }
.event-art .ripple { width: 160%; color: rgba(255,255,255,.16); }
.event-art svg { position: relative; width: 64px; height: 64px; }
@media (max-width: 560px) { .event-art { aspect-ratio: auto; height: 100%; min-height: 112px; } .event-art svg { width: 40px; height: 40px; } }

/* Podstrona Członkowie */
.nav a[aria-current="page"] { color: var(--jci-navy); text-decoration: underline; text-decoration-thickness: 2px; }
.page-head { position: relative; overflow: hidden; padding-block: clamp(48px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.page-head .container { position: relative; z-index: 1; }
.page-head .lead { margin-top: 20px; max-width: 40ch; }
.page-head .ripple { width: 720px; right: -240px; top: -260px; color: var(--blue-10); }
.people-section { padding-top: clamp(32px, 4vw, 56px); }
.people-section + .people-section { padding-top: 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.person { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; scroll-margin-top: 100px; }
.person-photo { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--bg-soft); }
.person-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.person-role { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--jci-navy); }
.person-role[data-role="senator"] { color: var(--text); }
.person-role[data-role="senator"]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--jci-yellow); margin-right: 8px; }
.person h3 { font-size: 1.25rem; }
.person-companies { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.person-companies a, .person-companies span { font-weight: 600; font-size: .9375rem; color: var(--jci-navy); }
.person-companies img { height: 28px; width: auto; opacity: .8; }
.person-bio { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.person-social { margin-top: auto; padding-top: 6px; }
.person-social a { width: 40px; height: 40px; }
.people-empty { padding: 32px; border: 1px dashed var(--black-25); border-radius: var(--radius); color: var(--text-muted); text-align: center; }
.people-cta { padding-block: clamp(48px, 6vw, 72px); }
.people-cta .partner-cta { margin-top: 0; }
.person-headline { margin: -4px 0 0; font-weight: 500; color: var(--text); font-size: .9375rem; }

/* ===== Poprawki mobile (iOS Safari) ===== */
.site-header { background: var(--bg); }
.site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
.stat strong { white-space: nowrap; }
@media (max-width: 760px) {
  .btn { font-size: 1.0625rem; padding: 12px 20px; min-height: 50px; }
  .hero-cta .btn { width: 100%; }
  .stat strong { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .stat { padding-right: 12px; }
  .stat + .stat { padding-left: 16px; }
  .sticky-cta { padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); }
  .sticky-cta .btn { min-height: 46px; padding: 10px 16px; font-size: 1rem; }
  .sticky-cta:not(.show) { visibility: hidden; transition: transform .25s ease, visibility 0s .25s; }
  .events-bar { flex-direction: column; align-items: stretch; }
  .events-bar .social-row .btn { flex: 1; }
  .join-cta .btn { width: 100%; }
}
@media (max-width: 480px) {
  .event { display: flex; flex-direction: column; }
  .event img, .event-art { width: 100%; aspect-ratio: 16 / 9; height: auto; min-height: 0; }
  .partner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partner-logo { flex-basis: auto; height: 56px; place-items: center start; }
  .partner-cta .btn { width: 100%; }
  .area-body { padding: 22px 20px; }
  .step { padding: 22px 20px; }
  .faq summary { padding: 16px 48px 16px 18px; }
  .registry summary { padding: 18px 48px 18px 20px; }
}
@media (max-width: 360px) {
  h1 { font-size: 2.5rem; }
  .btn { font-size: .9375rem; padding: 12px 14px; }
  .brand img { height: 46px; }
  .header-inner { height: 80px; }
  .nav { inset: 80px 0 auto 0; }
}
/* Starsze Safari (iOS < 15) bez aspect-ratio: rezerwuj wysokość ramki zdjęć */
@supports not (aspect-ratio: 1 / 1) {
  .hero-slides { height: 0; padding-top: 88%; }
  .person-photo, .event img, .about-photos img { height: auto; }
}
@media (max-width: 860px) { @supports not (aspect-ratio: 1 / 1) { .hero-slides { padding-top: 75%; } } }
@media (max-width: 760px) { .proof-grid .stat:nth-child(odd) { padding-left: 0; border-left: 0; } }

/* Co zyskujesz – karty na telefonie: zwykła kolumna, zdjęcie 16:9 bez height:100% (Safari liczył je za wysokie) */
@media (max-width: 560px) {
  .area { display: flex; flex-direction: column; }
  .area img { height: auto; min-height: 0; aspect-ratio: 16 / 9; flex: none; }
  .area-body { flex: 1; }
}
@supports not (aspect-ratio: 1 / 1) {
  @media (max-width: 560px) { .area img { height: 56vw; } }
}

/* Formularz kontaktowy */
.contact-grid { grid-template-columns: 1.4fr 1fr; }
.contact-side { display: grid; gap: 24px; align-content: start; }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
.contact-form h3 { font-size: 1.375rem; margin-bottom: 20px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9375rem; margin-bottom: 6px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--text); padding: 12px 14px; border: 1px solid var(--black-25); border-radius: var(--radius-btn); background: var(--surface); -webkit-appearance: none; appearance: none; }
.field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23130F2D' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--jci-blue); outline-offset: 0; border-color: var(--jci-blue); }
.contact-form .req { color: #B42318; }
.contact-form .consent { display: flex; gap: 12px; align-items: flex-start; margin: 18px 0 22px; font-size: .875rem; color: var(--text-muted); }
.contact-form .consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--jci-blue); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form-status.ok { background: var(--bg-soft); border: 1px solid var(--jci-blue); }
.form-status.bad { background: #FEF3F2; border: 1px solid #FDA29B; color: #7A271A; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .fgrid { grid-template-columns: 1fr; } .contact-form .btn { width: 100%; } }

/* Strefa członka (link do JCI Virtual Community) */
.nav .portal { font-weight: 600; color: var(--jci-navy); white-space: nowrap; }
.nav .portal span { font-size: .85em; }
.portal-band .partner-cta { margin-top: 0; }


.nav a { white-space: nowrap; }

/* Strefa członka – wyróżniony przycisk; przełącznik języka z flagami */
.btn-sm { min-height: 44px; padding: 9px 16px; font-size: .9375rem; gap: 8px; }
.nav .btn-outline.portal { border-color: var(--jci-navy); color: var(--jci-navy); font-weight: 600; }
.nav .btn-outline.portal:hover { background: var(--jci-navy); color: var(--jci-white); text-decoration: none; }
.nav .btn-outline.portal .ico { width: 18px; height: 18px; }
.lang-switch { display: inline-flex; border: 1px solid var(--black-25); border-radius: var(--radius-btn); overflow: hidden; }
.lang-switch a { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 44px; font-size: .8125rem; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); text-decoration: none; }
.lang-switch a + a { border-left: 1px solid var(--black-25); }
.lang-switch a img { width: 20px; height: 13px; border-radius: 2px; flex: none; }
.lang-switch a[aria-current="true"] { background: var(--bg-soft); color: var(--text); }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
@media (max-width: 1023px) {
  .nav .btn-outline.portal { margin-top: 16px; justify-content: center; border-bottom: 2px solid var(--jci-navy); padding: 12px 16px; }
  .lang-switch { margin-top: 16px; align-self: flex-start; }
  .nav .lang-switch a { padding: 10px 14px; border-bottom: 0; font-size: .9375rem; }
}

.brand, .nav-toggle, .lang-switch, .nav .btn, .nav .portal { flex: none; }
.nav .lang-switch a { font-size: .8125rem; padding: 8px 10px; }
@media (max-width: 1023px) { .nav .lang-switch a { font-size: .9375rem; padding: 10px 14px; } }
@media (min-width: 1281px) { .nav { gap: 22px; } }
/* Kompaktowe pełne menu na mniejszych laptopach (bez hamburgera) */
@media (min-width: 1024px) and (max-width: 1280px) {
  .container.header-inner { width: calc(100% - 48px); }
  .header-inner { gap: 16px; }
  .brand img { height: 46px; }
  .nav { gap: 14px; }
  .nav a:not(.btn) { font-size: .875rem; }
  .nav .btn, .nav .btn-sm { min-height: 40px; padding: 8px 12px; font-size: .875rem; }
  .nav .btn-outline.portal .ico { width: 16px; height: 16px; }
  .nav .lang-switch a { padding: 6px 8px; min-height: 40px; }
}
@media (min-width: 1024px) and (max-width: 1180px) { .nav .lang-switch a span.code { display: none; } }
@media (min-width: 1024px) and (max-width: 1120px) {
  .nav { gap: 11px; }
  .nav a:not(.btn) { font-size: .8125rem; }
}

/* Zasoby marki */
.brand-section { padding-block: clamp(56px, 7vw, 96px); }
.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.asset-grid.two { grid-template-columns: repeat(2, 1fr); }
.asset-grid.three { grid-template-columns: repeat(3, 1fr); }
.asset, .font-card, .doc-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.asset-preview { height: 180px; display: grid; place-items: center; padding: 28px; }
.asset-preview img { max-width: 100%; max-height: 110px; width: auto; height: auto; }
.bg-light { background: var(--bg-soft); }
.bg-dark { background: var(--jci-black); }
.bg-blue { background: var(--jci-blue); }
.bg-grid { background: repeating-conic-gradient(#E2E1E7 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.asset-body, .font-card, .doc-card { padding: 20px 22px 22px; }
.asset-body { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.asset-body h3, .doc-card h3, .font-card h3 { font-size: 1.0625rem; }
.asset-body p, .doc-card p, .font-card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.asset-dl { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; }
.asset-dl .btn, .doc-card .btn, .font-card .btn { align-self: flex-start; }
.btn small { font-weight: 400; font-size: .8125rem; opacity: .75; margin-left: 2px; }
.doc-card, .font-card { gap: 8px; }
.doc-card .btn, .font-card .btn { margin-top: auto; }
.font-card .font-sample { font-size: 2.75rem; line-height: 1.1; color: var(--jci-black) !important; margin: 0 0 8px !important; }
.group-h { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--jci-navy); margin: 0 0 14px; }
.swatch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 36px; }
.swatch { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.swatch-chip { height: 120px; display: flex; align-items: flex-end; padding: 16px 18px; font-weight: 600; border-bottom: 1px solid var(--border); }
.swatch dl { margin: 0; padding: 14px 18px 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .875rem; }
.swatch dt { color: var(--text-muted); }
.swatch dd { margin: 0; font-variant-numeric: tabular-nums; }
.copy { font: inherit; font-weight: 600; color: var(--jci-navy); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.copy.done { color: #067647; text-decoration: none; }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.rule { border-radius: var(--radius); padding: 24px 26px; }
.rule h3 { font-size: 1.0625rem; margin-bottom: 10px; }
.rule ul { margin: 0; padding-left: 18px; }
.rule li { margin-bottom: 6px; }
.rule.do { background: #ECFDF3; border: 1px solid #ABEFC6; }
.rule.dont { background: #FEF3F2; border: 1px solid #FECDCA; }
.brand-note { margin-top: 28px; font-size: .875rem; color: var(--text-muted); }
@media (max-width: 1060px) { .asset-grid { grid-template-columns: repeat(2, 1fr); } .asset-grid.three { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) { .swatch-grid { grid-template-columns: 1fr 1fr; } .rules { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .asset-grid, .asset-grid.two, .asset-grid.three, .swatch-grid { grid-template-columns: 1fr; } }

/* Przyciski do zasobów marki */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-outline .ico { width: 18px; height: 18px; }
.footer-brand { margin: 24px 0 0; }
.site-footer .footer-brand .btn { color: var(--jci-white); text-decoration: none; }
.site-footer .footer-brand .btn:hover { color: var(--jci-black); }
@media (max-width: 480px) { .cta-row { width: 100%; } .cta-row .btn { width: 100%; } }
.person-role[data-title] { color: var(--jci-navy); }
.person-role[data-title]::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--jci-blue); margin-right: 8px; }

/* Rekrutacja: 5 kroków, formularz zgłoszeniowy */
.steps.steps-5 { grid-template-columns: repeat(5, 1fr); }
.steps-5 .step { padding: 22px 20px; }
.steps-5 .step::before { font-size: 2rem; margin-bottom: 12px; }
@media (max-width: 1100px) { .steps.steps-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .steps.steps-5 { grid-template-columns: 1fr; } }
.apply-steps h2 { margin-bottom: 28px; }
.apply-steps .step { border: 1px solid var(--border); }
.apply-wrap { max-width: 860px; }
.apply-form h3 { margin: 28px 0 14px; font-size: 1.25rem; }
.apply-form h3:first-of-type { margin-top: 0; }
.field .hint { margin: 6px 0 0; font-size: .8125rem; color: var(--text-muted); }
.radios { border: 0; padding: 0; margin: 0 0 16px; }
.radios legend { font-weight: 600; font-size: .9375rem; margin-bottom: 10px; }
.radios .radio { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-weight: 400; }
.radios .radio input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--jci-blue); }
.radios .other { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--black-25); border-radius: 4px; margin-top: 4px; }
.join-cta .link-arrow { color: var(--jci-black); }
.radios .radio input[type=radio] { -webkit-appearance: radio; appearance: auto; padding: 0; border: 0; width: 20px; height: 20px; }


/* ===================== Tryb ciemny (html.theme-dark, ustawiane skryptem w <head>) ===================== */
.brand .logo-dark { display: none; }
.theme-toggle { width: 44px; height: 44px; flex: none; display: inline-grid; place-items: center; border: 1px solid var(--black-25); border-radius: var(--radius-btn); background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--jci-blue); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
@media (max-width: 1023px) { .nav .theme-toggle { margin-top: 16px; align-self: flex-start; } }
@media (min-width: 1024px) and (max-width: 1280px) { .theme-toggle { width: 40px; height: 40px; } }

html.theme-dark {
  color-scheme: dark;
  --bg: #130F2D;          /* JCI Black */
  --bg-soft: #1A1538;
  --surface: #1E1942;
  --border: #332E58;
  --text: #F2F1F7;
  --text-muted: #B8B5CC;
  --link: #5CC3EE;        /* jaśniejszy JCI Blue – czytelny na ciemnym tle */
  --black-25: #4A4570;
  --blue-10: #1B2A4A;
}
html.theme-dark .theme-toggle .sun { display: block; }
html.theme-dark .theme-toggle .moon { display: none; }
html.theme-dark .brand .logo-light { display: none; }
html.theme-dark .brand .logo-dark { display: block; }
html.theme-dark .site-header.scrolled { border-color: var(--border); }
html.theme-dark .eyebrow, html.theme-dark .group-h, html.theme-dark .creed h3, html.theme-dark .person-role,
html.theme-dark .person-companies a, html.theme-dark .person-companies span, html.theme-dark .creed li::before,
html.theme-dark .stat strong .pre, html.theme-dark .nav a:not(.btn):hover, html.theme-dark .nav a[aria-current="page"] { color: var(--link); }
html.theme-dark .join .eyebrow { color: var(--jci-black); }
html.theme-dark .person-role[data-role="senator"] { color: var(--text); }
html.theme-dark .btn-outline, html.theme-dark .nav .btn-outline.portal { border-color: #8FC9EA; color: #E6F4FB; }
html.theme-dark .btn-outline:hover, html.theme-dark .nav .btn-outline.portal:hover { background: #E6F4FB; color: #130F2D; }
html.theme-dark .mv-item + .mv-item { border-color: #8FC9EA; }
html.theme-dark .facts li { color: var(--link); }
html.theme-dark .logo-tile img, html.theme-dark .partner-logo img, html.theme-dark .person-companies img { filter: invert(1) brightness(1.15); }
html.theme-dark .faq details { background: var(--surface); }
html.theme-dark .faq summary::after, html.theme-dark .registry summary::after { border-color: var(--text); }
html.theme-dark .field select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2F1F7' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); }
html.theme-dark .contact-main { background: var(--surface); border: 1px solid var(--border); }
html.theme-dark .site-footer { background: #0D0A20; border-top: 1px solid var(--border); }
html.theme-dark .sticky-cta { background: rgba(19,15,45,.96); }
html.theme-dark .rule.do { background: #0F2A1E; border-color: #1F5C3D; }
html.theme-dark .rule.dont { background: #2A1416; border-color: #6B2A2E; }
html.theme-dark .form-status.bad { background: #2A1416; border-color: #6B2A2E; color: #FECDCA; }
html.theme-dark .copy.done { color: #6CE9A6; }
html.theme-dark .bg-light { background: #F2FAFD; }      /* podglądy logo zostają na jasnym tle */
html.theme-dark .font-card .font-sample { color: var(--text) !important; }
html.theme-dark .people-empty { border-color: var(--border); }
html.theme-dark .hero-slides { background: var(--bg-soft); }
html.theme-dark .event-art { background: #1F4789; }
html.theme-dark .person-photo, html.theme-dark .hero-slides .slide, html.theme-dark .area img, html.theme-dark .event img, html.theme-dark .about-photos img { filter: brightness(.94); }
html.theme-dark .join .step, html.theme-dark .join .faq details { color: var(--text); }

/* Obwódka i miękki cień wokół zdjęć – zdjęcie odcina się od tła */
.hero-slides, .about-photos img {
  border: 1px solid rgba(19,15,45,.10);
  box-shadow: 0 1px 2px rgba(19,15,45,.06), 0 18px 40px -18px rgba(19,15,45,.38);
}
.area img, .event img, .person-photo { outline: 1px solid rgba(19,15,45,.06); outline-offset: -1px; }
.area, .event, .person, .step, .logo-tile, .partner { box-shadow: 0 1px 2px rgba(19,15,45,.04); }
html.theme-dark .hero-slides, html.theme-dark .about-photos img {
  border-color: rgba(255,255,255,.16);
  box-shadow: 0 0 0 1px rgba(0,151,215,.10), 0 18px 48px -16px rgba(0,151,215,.30), 0 24px 40px -24px rgba(0,0,0,.6);
}
html.theme-dark .area img, html.theme-dark .event img, html.theme-dark .person-photo { outline-color: rgba(255,255,255,.10); }
html.theme-dark .area, html.theme-dark .event, html.theme-dark .person, html.theme-dark .logo-tile, html.theme-dark .partner { border-color: #3A3463; box-shadow: 0 10px 28px -18px rgba(0,0,0,.7); }

/* Jasny tryb: wyraźniejsza obwódka i cień zdjęć */
html:not(.theme-dark) .hero-slides, html:not(.theme-dark) .about-photos img {
  border: 1px solid rgba(19,15,45,.18);
  box-shadow: 0 0 0 5px #fff, 0 0 0 6px rgba(0,151,215,.22), 0 4px 10px rgba(19,15,45,.10), 0 30px 56px -22px rgba(19,15,45,.55);
}
html:not(.theme-dark) .area img, html:not(.theme-dark) .event img, html:not(.theme-dark) .person-photo { outline: 1px solid rgba(19,15,45,.14); }
html:not(.theme-dark) .area, html:not(.theme-dark) .event, html:not(.theme-dark) .person { box-shadow: 0 2px 4px rgba(19,15,45,.05), 0 14px 30px -20px rgba(19,15,45,.35); }

/* Ciemny tryb: wyraźna oprawa zdjęć (ciemne passe-partout + linia JCI Blue + poświata) */
html.theme-dark .hero-slides, html.theme-dark .about-photos img {
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 0 0 5px #1E1942, 0 0 0 6px rgba(92,195,238,.55), 0 0 44px -6px rgba(0,151,215,.40), 0 30px 56px -22px rgba(0,0,0,.85);
}
html.theme-dark .area img, html.theme-dark .event img, html.theme-dark .person-photo { outline: 1px solid rgba(255,255,255,.18); }
html.theme-dark .area, html.theme-dark .event, html.theme-dark .person { border-color: #463F75; box-shadow: 0 0 0 1px rgba(92,195,238,.06), 0 16px 34px -18px rgba(0,0,0,.85); }
.person-companies { gap: 10px 18px; }
.person-companies img { height: auto; width: auto; max-height: 34px; max-width: 120px; object-fit: contain; }

/* Członkowie: karty poziome w siatce 2-kolumnowej (zdjęcie | treść) */
.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.person { display: grid; grid-template-columns: 220px minmax(0, 1fr); align-items: stretch; }
.person-photo { width: 100%; height: 100%; min-height: 300px; aspect-ratio: auto; object-fit: cover; object-position: center 20%; }
.person-body { padding: 24px 26px 24px; gap: 10px; }
.person h3 { font-size: 1.375rem; }
.person-bio { font-size: .9375rem; line-height: 1.6; }
.person-companies { padding: 2px 0; }
@media (max-width: 1100px) { .person { grid-template-columns: 180px minmax(0, 1fr); } }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } .person { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 600px) {
  .person { grid-template-columns: 1fr; }
  .person-photo { height: auto; min-height: 0; aspect-ratio: 4 / 5; max-height: 460px; }
}
.person-companies img { max-height: 40px; max-width: 130px; }

/* Członkowie: stałe miejsce na podpis (2 linie) i loga – karty wyrównane niezależnie od długości */
.person h3 { min-height: 1.3em; }
.person-headline { margin: 0; line-height: 1.45; min-height: 2.9em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-companies { height: 44px; display: flex; flex-wrap: nowrap; align-items: center; overflow: hidden; padding: 0; }
.person-companies img { max-height: 40px; }

/* Członkowie: jedna kolumna, szerokie karty poziome */
.people-grid { grid-template-columns: 1fr; gap: 20px; max-width: 1040px; }
.person { grid-template-columns: 260px minmax(0, 1fr); }
.person-photo { min-height: 320px; }
.person-body { padding: 28px 32px; }
@media (max-width: 900px) { .person { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } }

/* Jednakowa wielkość logo: stałe pole, logo dopasowane proporcjonalnie */
.logo-tile img { width: 150px; height: 64px; max-width: 100%; max-height: none; object-fit: contain; }
.logo-tile.logo-text { width: auto; height: 112px; }
.partner-logo img { width: 110px; height: 64px; max-width: none; max-height: none; object-fit: contain; }
.person-companies img { width: 110px; height: 36px; max-width: none; max-height: none; object-fit: contain; object-position: left center; }
@media (max-width: 480px) { .logo-tile img { width: 120px; height: 52px; } .logo-tile.logo-text { height: 96px; } }

/* Członkowie: kompaktowe karty, 2 kolumny */
.people-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: none; }
.person { grid-template-columns: 170px minmax(0, 1fr); }
.person-photo { min-height: 260px; }
.person-body { padding: 18px 20px 18px; gap: 8px; }
.person-role { font-size: .75rem; }
.person h3 { font-size: 1.125rem; }
.person-headline { font-size: .875rem; }
.person-companies { height: 38px; }
.person-companies img { width: 96px; height: 32px; }
.person-bio { font-size: .875rem; line-height: 1.55; }
.person-social a { width: 36px; height: 36px; }
.person-social .ico { width: 17px; height: 17px; }
@media (max-width: 1100px) { .person { grid-template-columns: 150px minmax(0, 1fr); } }
@media (max-width: 900px) { .people-grid { grid-template-columns: 1fr; } .person { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; } }

/* ===== Karty członków – dopracowanie odstępów i podziałów ===== */
.people-section .section-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--border); max-width: none; }
.people-section .section-head h2 { display: flex; align-items: center; gap: 14px; }
.people-count { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 10px; border-radius: 999px; background: var(--bg-soft); border: 1px solid var(--border); font-size: .9375rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.people-section .section-head .lead { margin-top: 10px; font-size: 1.0625rem; }
.people-section + .people-section { padding-top: 24px; }

.person { border-radius: var(--radius); transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.person:hover { border-color: var(--black-25); transform: translateY(-2px); }
.person-body { padding: 20px 22px 18px; gap: 0; }
.person-role { margin: 0 0 6px; letter-spacing: .08em; }
.person h3 { margin: 0 0 4px; line-height: 1.25; }
.person-headline { margin: 0 0 14px; color: var(--text-muted); font-weight: 500; }
.person-companies { height: 48px; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); gap: 0 16px; }
.person-companies:empty { border-color: transparent; }
.person-companies a, .person-companies span { display: inline-flex; align-items: center; height: 100%; }
.person-companies a + a, .person-companies span + a, .person-companies a + span { padding-left: 16px; border-left: 1px solid var(--border); }
.person-bio { flex: 1; margin: 0 0 14px; color: var(--text-muted); }
.person-social { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); gap: 8px; }
.person-role[data-role="senator"]::before, .person-role[data-title]::before { width: 8px; height: 8px; vertical-align: 1px; }
html.theme-dark .people-count { background: var(--surface); }
html.theme-dark .person:hover { border-color: #5A5390; }
@media (max-width: 600px) {
  .person-body { padding: 18px 18px 16px; }
  .people-section .section-head h2 { font-size: 1.75rem; }
}
@media (prefers-reduced-motion: reduce) { .person:hover { transform: none; } }
/* Loga na kartach: stała wysokość, szerokość wg proporcji (bez pustych pól przy emblematach) */
.person-companies img { width: auto; height: 32px; max-width: 120px; object-fit: contain; }
html.theme-dark .person-companies img[src*="bartlomiej-dlugosz-logo"], html.theme-dark .logo-tile img[src*="bartlomiej-dlugosz-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.person-companies span, .person-companies a:not(:has(img)) { font-size: .8125rem; font-weight: 600; color: var(--text-muted); letter-spacing: .01em; }
/* Karty bez pustych przerw: brak loga/opisu = brak pustego miejsca; każda karta ma własną wysokość */
.people-grid { align-items: start; }
.person h3, .person-headline { min-height: 0; }
.person-headline { margin: 0 0 12px; }
.person-companies { height: auto; min-height: 0; padding: 8px 0; margin: 0 0 12px; }
.person-companies a, .person-companies span { height: auto; }
.person-bio { flex: none; margin: 0 0 12px; }
.person-body > :last-child { margin-bottom: 0; }
.person-social { margin-top: 0; }
.person-body > h3:last-child, .person-body > .person-headline:last-child { margin-bottom: 0; }
/* Siatka 2 kolumny: równe wysokości w rzędzie, stały szablon karty, stopka (social) zawsze na dole */
.people-grid { align-items: stretch; }
.person { height: 100%; grid-template-columns: 190px minmax(0, 1fr); }
.person-photo { height: 100%; min-height: 0; object-position: center 22%; }
.person-body { display: flex; flex-direction: column; }
.person-headline { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.person-bio { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; margin: 0 0 6px; }
.person.open .person-bio { display: block; -webkit-line-clamp: unset; overflow: visible; }
.person-more { align-self: flex-start; margin: 0 0 12px; padding: 2px 0; background: none; border: 0; font: inherit; font-size: .8125rem; font-weight: 600; color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.person-more:hover { text-decoration-thickness: 2px; }
.person-more:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 2px; }
.person-more[hidden] { display: none; }
.person-social { margin-top: auto; }
.person-body > .person-bio:last-child, .person-body > .person-more:last-child { margin-bottom: 0; }
@media (max-width: 1100px) { .person { grid-template-columns: 160px minmax(0, 1fr); } }
@media (max-width: 900px) { .person { grid-template-columns: 200px minmax(0, 1fr); } }
@media (max-width: 600px) { .person { grid-template-columns: 1fr; height: auto; } .person-photo { height: auto; aspect-ratio: 4 / 5; max-height: 460px; } }
@media (min-width: 901px) { .person-headline { min-height: calc(2 * 1.45em); } }
/* Statut */
.st-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 22px 0 0; }
.st-meta div { display: flex; flex-direction: column; gap: 2px; }
.st-meta dt { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.st-meta dd { margin: 0; font-weight: 600; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.st-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.st-toc { position: sticky; top: 96px; max-height: calc(100vh - 120px); overflow: auto; }
.st-toc summary { font-weight: 700; font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); cursor: pointer; list-style: none; padding: 4px 0 10px; }
.st-toc summary::-webkit-details-marker { display: none; }
.st-toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.st-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--text-muted); text-decoration: none; font-size: .875rem; line-height: 1.35; }
.st-toc a span { font-weight: 700; color: var(--text); margin-right: 4px; }
.st-toc a:hover { color: var(--text); border-left-color: var(--jci-blue, #0097D7); }
.st-body { max-width: 760px; }
.st-note { padding: 14px 18px; border-radius: var(--radius); background: var(--blue-10); border: 1px solid var(--blue-25); margin: 0 0 32px; font-size: .9375rem; }
html.theme-dark .st-note { background: rgba(92,195,238,.08); border-color: rgba(92,195,238,.25); }
.st-par { scroll-margin-top: 96px; padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--border); }
.st-par:last-of-type { border-bottom: 0; }
.st-par h2 { font-size: 1.375rem; line-height: 1.3; margin: 0 0 16px; }
.st-num { display: inline-block; min-width: 2.6em; color: var(--jci-blue, #0097D7); }
.st-units, .st-points { list-style: none; margin: 0; padding: 0; }
.st-units > li { display: grid; grid-template-columns: 2em minmax(0, 1fr); gap: 0 6px; margin: 0 0 12px; line-height: 1.65; scroll-margin-top: 96px; }
.st-units > li.st-plain { grid-template-columns: minmax(0, 1fr); }
.st-points { margin: 8px 0 0; }
.st-points li { display: grid; grid-template-columns: 1.8em minmax(0, 1fr); gap: 0 4px; margin: 0 0 6px; color: var(--text-muted); }
.st-mk { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.st-closing { margin-top: 8px; font-style: italic; color: var(--text-muted); }
.st-join h2 { margin: 0 0 16px; }
@media (max-width: 900px) {
  .st-layout { grid-template-columns: 1fr; gap: 24px; }
  .st-toc { position: static; max-height: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
  .st-toc summary { padding: 4px 0; }
  .st-toc summary::after { content: " ▾"; }
  .st-toc details[open] summary { padding-bottom: 10px; }
}
@media print {
  .site-header, .site-footer, .st-toc, .st-actions, .st-join, .ripple { display: none !important; }
  .st-layout { display: block; } .page-head { padding: 0 !important; background: none !important; }
  .st-par { break-inside: auto; } .st-par h2 { break-after: avoid; }
  body { background: #fff !important; color: #000 !important; }
}
.st-section { overflow: visible; padding-top: 56px; }
.about-docs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.registry-doc { margin: 12px 0 0; font-size: .875rem; font-weight: 600; }
.registry-doc a { display: inline-flex; align-items: center; gap: 4px; }
.registry-doc svg { width: 14px; height: 14px; }
.registry-doc a { display: inline; }
.registry-doc svg { display: inline-block; vertical-align: -2px; margin-left: 2px; }
/* Karty odnośników do dokumentów (O nas, statut, fundacja) */
.doc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.doc-link { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface, #fff); color: var(--text); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; min-height: 64px; }
.doc-link:hover { border-color: var(--jci-blue); box-shadow: 0 10px 24px -18px rgba(19,15,45,.45); transform: translateY(-1px); }
.doc-link:focus-visible { outline: 2px solid var(--jci-blue); outline-offset: 2px; }
.doc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue-10); color: var(--jci-blue); }
.doc-ico svg { width: 22px; height: 22px; }
.doc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; line-height: 1.3; }
.doc-txt strong { font-size: .9375rem; font-weight: 700; }
.doc-txt small { font-size: .8125rem; color: var(--text-muted); }
.doc-go { flex: none; color: var(--text-muted); transition: transform .2s ease, color .2s ease; }
.doc-go svg, .registry-doc .chev { width: 18px; height: 18px; display: block; }
.doc-link:hover .doc-go { color: var(--jci-blue); transform: translateX(3px); }
html.theme-dark .doc-link { background: rgba(255,255,255,.03); border-color: #463F75; }
html.theme-dark .doc-link:hover { border-color: var(--jci-blue); }
html.theme-dark .doc-ico { background: rgba(92,195,238,.12); color: #5CC3EE; }
.about-docs { display: none; }
@media (max-width: 560px) { .doc-links { grid-template-columns: 1fr; } }
/* Akcje na stronach dokumentów */
.st-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.doc-link-sm { min-width: min(100%, 340px); }
.doc-link-sm .doc-txt small { order: -1; text-transform: uppercase; letter-spacing: .08em; font-size: .6875rem; font-weight: 700; }
.st-print { display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px; background: none; border: 0; font: inherit; font-size: .875rem; font-weight: 600; color: var(--text-muted); cursor: pointer; }
.st-print svg { width: 18px; height: 18px; }
.st-print:hover { color: var(--text); }
.st-print:hover span { text-decoration: underline; text-underline-offset: 3px; }
.st-print:focus-visible { outline: 2px solid var(--jci-blue); outline-offset: 2px; border-radius: 4px; }
.registry-doc a { display: inline-flex; align-items: center; gap: 6px; }
.registry-doc .chev { width: 16px; height: 16px; }
@media print { .st-print, .doc-link-sm { display: none !important; } }

/* Newsletter (strona główna) */
.newsletter { border-top: 1px solid var(--border); }
.newsletter-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.newsletter-copy .lead { margin: 20px 0 0; }
.newsletter-form .consent { margin-bottom: 18px; }
@media (max-width: 900px) { .newsletter-grid { grid-template-columns: 1fr; } }
/* drugi checkbox (newsletter) tuż pod zgodą RODO w /aplikuj/ */
.contact-form .consent + .consent-nl { margin-top: -8px; }

/* Wydarzenia: nadchodzące i oś czasu roku (rok2026.py) */
.events-sub { font-size: 1.375rem; margin: 40px 0 16px; }
.events-sub:first-of-type { margin-top: 0; }
.events-sub-lead { margin: -8px 0 20px; color: var(--text-muted); max-width: 62ch; }
.upcoming-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 24px; }
.upcoming-card { display: flex; gap: 20px; border: 1px solid var(--jci-blue); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.upcoming-date { flex: none; width: 76px; align-self: flex-start; text-align: center; border-radius: var(--radius-sm); background: var(--jci-blue); color: #fff; padding: 10px 0 8px; line-height: 1.1; }
.upcoming-date strong { display: block; font-size: 2rem; font-weight: 700; }
.upcoming-date span { font-size: .875rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.upcoming-body { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.upcoming-body h4 { font-size: 1.25rem; margin: 0; }
.upcoming-body p { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.upcoming-body .upcoming-place { color: var(--text); font-weight: 600; }
.upcoming-body .btn { margin-top: 6px; }
.carousel { position: relative; }
.carousel-track { list-style: none; margin: 0; padding: 4px 2px 12px; display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 2px; scrollbar-width: thin; }
.carousel-track:focus-visible { outline: 3px solid var(--jci-blue); outline-offset: 2px; border-radius: var(--radius); }
.slide-card { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; border: 1px solid var(--border); border-top: 4px solid var(--c, var(--area-biz)); border-radius: var(--radius); background: var(--surface); padding: 20px 22px 24px; }
.slide-card[data-area="dev"] { --c: var(--area-dev); }
.slide-card[data-area="com"] { --c: var(--area-com); }
.slide-card[data-area="int"] { --c: var(--area-int); }
.slide-card time { font-weight: 700; font-size: 1.0625rem; color: var(--text); }
.slide-card h4 { font-size: 1.125rem; margin: 0; }
.slide-card p { margin: 0; color: var(--text-muted); font-size: .9375rem; }
.carousel-ctl { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 8px; }
.carousel-count { min-width: 8ch; text-align: center; font-weight: 600; font-size: .9375rem; color: var(--text-muted); }
.carousel-btn { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--jci-blue); background: var(--surface); color: var(--jci-blue); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn:hover:not(:disabled) { background: var(--jci-blue); color: #fff; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
@media (max-width: 1060px) { .slide-card { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 560px) { .slide-card { flex-basis: 85%; } }
@media (max-width: 760px) { .upcoming-grid { grid-template-columns: 1fr; } .upcoming-card { flex-direction: column; gap: 14px; } .upcoming-date { width: 72px; } }
.slide-card img { width: calc(100% + 44px); max-width: none; margin: -20px -22px 8px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
/* mniej pustej przestrzeni między Wydarzeniami a sekcją „Kim jesteśmy” */
#wydarzenia { padding-bottom: clamp(16px, 2.5vw, 32px); }
#wydarzenia + #o-nas { padding-top: clamp(40px, 5vw, 64px); }
