/* kafelek kontaktowy stron prawnych */
.legal-contact-tile{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);padding:var(--space-5);margin-top:var(--space-4)}
.legal-contact-tile p{margin:0 0 var(--space-4);font-size:var(--text-sm);color:var(--color-text-muted)}
.lct-duo{display:block;width:40px;height:3px;border-radius:var(--radius-full);background:var(--gradient-duo);margin-bottom:var(--space-3)}
/* ===== KONIEC KOMPONENTOW DUO ===== */
/* NAGŁÓWKI SEKCJI ZWIĘKSZONE - clamp(2.2→3.8rem) */
.section-title{font-family:var(--font-display);font-size:var(--naglowek-2-glowna);font-weight:var(--waga-tekstu);color:var(--color-text);line-height:1.15;max-width:20ch;margin-bottom:1rem}
.hero{max-width:var(--content-wide);margin-inline:auto;padding:clamp(4rem,8vw,6rem) 1.5rem;display:grid;grid-template-columns:minmax(0,1fr) 420px;align-items:center;gap:4rem;min-height:min(85vh,700px)}
.hero-content{position:relative;z-index:1;max-width:42rem}
.hero-title{font-family:var(--font-display);font-size:clamp(1.65rem,1rem + 3vw,3rem);font-weight:var(--waga-tekstu);line-height:1.08;color:var(--color-text);margin-bottom:1.5rem}
.hero-title em{color:var(--color-teal);font-style:italic;display:block}
.hero-desc{font-size:clamp(1rem,.9rem + .5vw,1.2rem);color:var(--color-text-muted);max-width:100%;line-height:1.75;margin-bottom:2.5rem}
.btn-primary{background:var(--color-btn-bg);color:var(--color-btn-text);font-size:var(--text-base);font-weight:var(--waga-wyrozniona);padding:.875rem 1.75rem;border-radius:var(--radius-full);display:inline-flex;align-items:center;gap:.5rem;box-shadow:0 2px 12px rgba(201,107,26,.3);min-height:48px}
.btn-primary:hover{background:var(--color-btn-alt-hover);box-shadow:0 4px 20px rgba(27,58,87,.25)}
.hero-visual{position:relative;aspect-ratio:827/1200;height:min(60vh,520px);width:auto;margin-inline:auto}
.hero-visual img{width:100%;height:100%;object-fit:contain}
@media(max-width:1023px){.hero{grid-template-columns:1fr;gap:2.5rem;min-height:auto}.hero-visual{aspect-ratio:827/1200;height:min(48vh,400px);width:auto;margin-inline:auto}}
@media(min-width:1024px) and (max-width:1199px){.hero{grid-template-columns:minmax(0,1fr) 340px;gap:2.5rem}}
@media(max-width:540px){.hero-visual{aspect-ratio:827/1200;height:min(40vh,300px);width:auto;margin-inline:auto}.hero-visual-badge{display:none}}
@media(max-width:500px){.hero-label{font-size:var(--text-2xs);letter-spacing:.06em;padding:.25rem .75rem;text-align:center;justify-content:center;align-items:flex-start}}
/* BADANIE CTA BAR */
.badanie-cta-bar{background:var(--color-bg);border-block:1px solid var(--color-divider)}
.badanie-cta-inner{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;flex-wrap:wrap;padding-block:1.25rem}
.badanie-cta-text{margin:0;color:var(--color-text);font-size:var(--text-sm);font-weight:var(--waga-srednia);flex:1 1 320px;max-width:70ch}
.badanie-cta-btn{flex-shrink:0;box-shadow:none}
@media(max-width:600px){.badanie-cta-inner{flex-direction:column;align-items:flex-start}.badanie-cta-text{flex:0 1 auto}.badanie-cta-btn{width:100%;justify-content:center}}
.segment-card-illu{height:210px;display:flex;align-items:flex-end;justify-content:center;margin-bottom:.75rem}
.segment-card-illu img{height:100%;width:auto;display:block}
.segment-card-illu.is-seated img{height:75%}
.res-illu-wrap{flex-direction:column;justify-content:center;align-items:stretch;gap:0;padding-bottom:2rem}
.res-illu{width:100%;max-width:520px;height:auto;display:block;margin-left:auto}
/* Strona glowna: tekst po lewej, grafika po prawej w kazdej sekcji,
   naglowki na jednej linii z kartami ponizej. */
@media(min-width:901px){
  #zasoby .split-header-left{justify-content:center}
  #zasoby .res-illu{max-width:100%}
}
/* Trzy karty narzedzi w dwoch kolumnach zostawialy trzecia sama w drugim
   rzedzie z pustym miejscem obok. Ostatnia karta przy nieparzystej liczbie
   zajmuje caly rzad. Tylko blok na stronie glownej. */
@media(min-width:521px) and (max-width:900px){
  #zasoby .resources-grid>:last-child:nth-child(odd){grid-column:1/-1}
}
@media(max-width:900px){.segment-card-illu{height:190px}}
@media(max-width:900px){.res-illu{margin-inline:auto;max-width:460px}.res-illu-wrap{padding-bottom:0}}
@media(max-width:520px){.segment-card-illu{height:170px}.res-illu{max-width:100%}}
.pillars-head-row{display:grid;grid-template-columns:1fr 400px;column-gap:3rem;align-items:stretch;margin-bottom:3rem}
.pillars-head-text{display:flex;flex-direction:column;justify-content:flex-start}
.pillars-head-desc{margin-top:1rem;margin-inline:0}
.pillars-head-illu{position:relative}
.pillars-head-illu img{position:absolute;top:0;right:0;height:100%;width:auto;max-width:100%;object-fit:contain;display:block}
.pillar-card::after{content:'';position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--gradient-duo);transition:width 320ms cubic-bezier(.16,1,.3,1)}
.pillar-card:hover::after{width:100%}
.yt-status{font-size:var(--text-2xs);font-weight:var(--waga-wyrozniona);letter-spacing:.05em;text-transform:uppercase;padding:.2rem .6rem;border-radius:var(--radius-full);width:fit-content;display:inline-flex;align-items:center;gap:.35em}
/* ARTYKUŁY */
.articles-section{background:var(--color-bg)}
.articles-layout{display:grid;grid-template-columns:0.8fr 1.2fr;gap:1.5rem;align-items:stretch}
.article-card-featured{border-radius:var(--radius-xl);overflow:hidden;border:1px solid var(--color-border);min-height:340px;display:flex;align-items:center;justify-content:center}
.article-featured-img{width:100%;aspect-ratio:1/1;max-height:452px;object-fit:contain;object-position:50% 50%;display:block;margin-inline:auto}
.article-title{font-family:var(--font-display);font-size:clamp(1.1rem,.9rem + .75vw,1.5rem);font-weight:var(--waga-tekstu);color:var(--color-text);line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.3em)}
.article-excerpt{font-size:var(--text-sm);color:var(--color-text-muted);line-height:1.75;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:calc(2 * 1.75em)}
.article-card-small:focus-within{box-shadow:var(--shadow-sm);border-color:rgba(1,105,111,.25)}
.article-card-small:focus-within::after{width:100%}
.article-small-img{width:72px;height:72px;border-radius:var(--radius-lg);object-fit:contain;background:var(--color-surface-off);flex-shrink:0}
@media(max-width:1024px){
  .articles-layout{grid-template-columns:1fr}
  .article-card-featured{min-height:0;height:auto}
  .article-featured-img{height:auto;aspect-ratio:1/1;width:100%;max-width:440px;margin-inline:auto;object-fit:contain;object-position:50% 50%;display:block}
}
.innovation-item{display:flex;gap:1.25rem;padding:1.25rem;background:var(--color-surface);border-radius:var(--radius-xl);border:1px solid var(--color-border);transition:all var(--transition);position:relative;overflow:hidden}
.innovation-item::after{content:'';position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--gradient-duo);transition:width 320ms cubic-bezier(.16,1,.3,1)}
.innovation-item:hover::after{width:100%}
.innovation-item:hover .innovation-item-title{color:var(--color-teal)}
.resource-card{color:inherit;text-decoration:none;background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);padding:1.5rem;display:flex;flex-direction:column;gap:.75rem;transition:all var(--transition);position:relative;overflow:hidden}.resource-card::after{content:'';position:absolute;left:0;bottom:0;height:3px;width:0;background:var(--gradient-duo);transition:width 320ms cubic-bezier(.16,1,.3,1)}.resource-card:hover::after,.resource-card:focus-visible::after{width:100%}
.resource-card-cta{min-height:24px;font-size:var(--text-sm);color:var(--color-text-faint);font-weight:var(--waga-wyrozniona);display:flex;align-items:center;gap:.375rem;margin-top:auto}
.newsletter-inner{max-width:var(--content-narrow);margin-inline:auto;padding-inline:1.5rem;text-align:center}
.newsletter-inner .section-title{max-width:none;margin-inline:auto;font-size:clamp(1.375rem,2.22vw,2rem);line-height:1.2}
.about-intro{margin-bottom:2.5rem;max-width:720px}
.about-quote-block{margin-top:2.5rem;text-align:center;max-width:920px;margin-inline:auto}
.about-quote-block blockquote{text-wrap:balance}
.about-pillar{display:flex;gap:1rem;padding:1.25rem;background:var(--color-bg);border-radius:var(--radius-xl);border:1px solid var(--color-border);position:relative}
.about-pillar::before{position:absolute;top:.6rem;right:.85rem;font-family:var(--font-display);font-size:var(--text-sm);font-weight:var(--waga-wyrozniona);color:var(--color-text-faint);letter-spacing:.05em}
.about-pillar:nth-of-type(1)::before{content:"I"}
.about-pillar:nth-of-type(2)::before{content:"II"}
.about-pillar:nth-of-type(3)::before{content:"III"}
.founder-quote{background:var(--color-surface-off);border-radius:var(--radius-xl);padding:1.75rem 2rem;border-left:3px solid var(--color-orange)}
.founder-quote blockquote{font-family:var(--font-display);font-size:var(--text-md);font-weight:var(--waga-tekstu);font-style:italic;color:var(--color-text);line-height:1.6}
.founder-quote cite{display:block;margin-top:.75rem;font-size:var(--text-sm);font-style:normal;color:var(--color-text-muted);font-weight:var(--waga-srednia)}
/* FOOTER - navy, BionicWorld.io USUNIĘTE, logo 56px */
/* COOKIE BANNER */
/* ================================================
   WIDGET DOSTĘPNOŚCI - WCAG 2.2 AA
   Ikona: ISO 7001 PI PF 007 (wheelchair user)
   Kolor teal #01696F (kontrast 5.1:1 na białym)
================================================ */
/* przesuń gdy cookie banner widoczny */
/* ANIMATIONS */
.fade-in{opacity:0;transform:translateY(24px);transition:opacity .6s ease,transform .6s ease}
.resources-section .inline-disclaimer{background:var(--color-surface)}
/* Founder photo jako obraz */
/* ===== FOUNDER PHOTO ===== */
.founder-photo-wrap{display:flex;flex-direction:column;align-items:center;width:100%;max-width:280px;gap:.625rem}
.founder-photo{
  border-radius:var(--radius-xl);overflow:hidden;
  border:1px solid var(--color-border);background:var(--color-surface-off);
  width:100%;
  aspect-ratio:559/708;
}
.founder-photo-img{
  display:block;width:100%;height:100%;
  object-fit:cover;
  object-position:50% 0%;
}
.founder-photo-caption{
  width:100%;
  border-radius:var(--radius-md);
  border:1px solid var(--color-border);
  background:var(--color-surface);
  padding:.5rem .75rem .625rem;
  text-align:center;
  line-height:1.45;
}
.founder-photo-name{
  display:block;font-size:var(--text-sm);font-weight:var(--waga-wyrozniona);
  color:var(--color-navy);letter-spacing:.01em;
}
.founder-photo-role{
  display:block;font-size:var(--text-sm);font-weight:var(--waga-tekstu);
  color:var(--color-text-muted);margin-top:.1rem;
}
[data-theme="dark"] .founder-photo-caption{background:var(--color-surface);border-color:var(--color-border)}
[data-theme="dark"] .founder-photo-name{color:var(--color-primary)}
[data-theme="dark"] .founder-photo-role{color:var(--color-text-muted)}
/* UTILITY */
.mt-8{margin-top:2rem}
/* ===== SPLIT LAYOUT - wspólny dla Innovation i About ===== */
.split-layout{display:grid;grid-template-columns:1fr 1fr;column-gap:3rem;align-items:stretch}
.split-header-left{padding-bottom:2rem;display:flex;flex-direction:column;justify-content:flex-start}
.split-header-right{padding-bottom:2rem;display:flex;align-items:center}
/* Tytuł w split-header: skala kolumny, nie strony - globalnie dla wszystkich sekcji */
.split-header-left .section-title{max-width:none}
@media(max-width:900px){
  .split-layout{grid-template-columns:1fr;column-gap:0;row-gap:1.5rem}
  .split-header-left,.split-header-right{padding-bottom:1rem}
  .split-header-left .section-title{font-size:var(--naglowek-2-glowna)}
  .inn-img-full{min-height:240px;height:auto}
  .inn-img-full img{height:auto;aspect-ratio:4/3}
}
/* ===== SEKCJA "DLACZEGO ŚWIAT BIONIKI?" - 4-komórkowa siatka ===== */
/*
  ROW 1: [tytuł        | opis + eyebrow "3 filary"]
  ROW 2: [foto 278px   | 3 kafelki               ]  ← top i bottom wyrównane automatycznie
  ROW 3: [cytat full-width                        ]
*/
.about-2col{
  display:grid;
  grid-template-columns:1fr 1fr;
  column-gap:3rem;
  row-gap:1.5rem;
  align-items:stretch;
}
.about-content-left{display:flex;flex-direction:column;justify-content:flex-start;gap:0}
.about-cta-block{grid-column:1/-1}
.about-quote-inline{text-align:center;width:100%;padding-top:.25rem}
.about-quote-inline blockquote{font-family:var(--font-display);font-size:var(--text-lg);font-weight:var(--waga-tekstu);font-style:italic;color:var(--color-text);line-height:1.6;text-wrap:balance}
.about-quote-inline cite{display:block;margin-top:.625rem;font-size:var(--text-sm);font-style:normal;color:var(--color-text-muted);font-weight:var(--waga-srednia)}
.about-section-title{max-width:none!important;margin-bottom:0!important}
#pillars-title,#articles-title{max-width:none}
/* Foto: naturalne proporcje, max-width 360px */
#o-fundacji .founder-photo-wrap{
  width:100%;max-width:380px;min-width:0;margin:0;
  flex:1 1 0;min-height:0;display:flex;flex-direction:column;gap:.625rem;
}
#o-fundacji .founder-photo{
  position:relative;flex:1 1 0;min-height:0;border-radius:var(--radius-xl);
  overflow:hidden;border:1px solid var(--color-border);background:transparent;
}
#o-fundacji .founder-photo-img{
  position:absolute;inset:0;display:block;width:100%;height:100%;
  object-fit:cover;object-position:50% 20%;
}
@media(max-width:900px){
  .about-2col{grid-template-columns:1fr;column-gap:0;row-gap:1rem}
  .about-content-left{display:contents}
  .about-left-spacer{display:none}
  #o-fundacji .founder-photo-wrap{max-width:260px;min-width:0;margin:0 auto!important;order:1;flex:none}
  #o-fundacji .founder-photo{flex:none;aspect-ratio:559/588;height:auto}
  .about-content-right{order:2}
  .about-intro-row{order:0}
  .about-quote-inline{order:3;margin-top:.5rem;text-align:center}
  .about-cta-block{order:4}
}
/* ===== STRONA ZAŁOŻYCIELA (inline, identyczna z legal-page) ===== */
.founder-page .legal-content { max-width: var(--content-wide); }
.founder-layout {
  display: grid; grid-template-columns: minmax(0,300px) 1fr;
  gap: clamp(2rem,4vw,3.5rem); align-items: start; margin-top: 2.5rem;
}
.founder-photo-col-inner { position: sticky; top: calc(80px + 2rem); }
.founder-photo-sub {
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--color-border); background: var(--color-surface-off);
  width: 100%; aspect-ratio: 559/708;
}
.founder-photo-sub img { display:block; width:100%; height:100%; object-fit:cover; object-position:50% 0%; }
.founder-caption {
  margin-top: .625rem; border-radius: var(--radius-md);
  border: 1px solid var(--color-border); background: var(--color-surface);
  padding: .625rem .875rem .75rem; text-align: center; line-height: 1.45;
}
.founder-caption-name { display:block; font-size:var(--text-base); font-weight:var(--waga-wyrozniona); color:var(--color-navy); }
.founder-caption-role { display:block; font-size:var(--text-sm); color:var(--color-text-muted); margin-top:.1rem; }
[data-theme="dark"] .founder-caption { background:var(--color-surface); border-color:var(--color-border); }
[data-theme="dark"] .founder-caption-name { color:var(--color-primary); }
.founder-chips-row { display:flex; flex-wrap:wrap; gap:.5rem; margin-top:.625rem; }
.founder-chip { display:inline-flex; align-items:center; gap:.375rem; font-size:var(--text-sm); color:var(--color-text-muted); background:var(--color-surface); border:1px solid var(--color-border); padding:.3rem .75rem; border-radius:var(--radius-full); }
.founder-chip svg { width:13px; height:13px; color:var(--color-teal); flex-shrink:0; }
.founder-story { display:flex; flex-direction:column; gap:2rem; }
.story-label-sub { font-size:var(--text-sm); font-weight:var(--waga-wyrozniona); letter-spacing:.08em; text-transform:uppercase; color:var(--color-teal); padding-bottom:.75rem; border-bottom:1px solid var(--color-border); margin-bottom:.25rem; }
.founder-milestones { display:flex; flex-direction:column; gap:.75rem; }
.f-milestone {
  display:grid; grid-template-columns:6.5rem 1fr; gap:1.25rem; align-items:start;
  background:var(--color-surface); border:1px solid var(--color-border);
  border-radius:var(--radius-xl); padding:1.125rem 1.375rem;
  transition:box-shadow var(--transition),border-color var(--transition);
}
.f-milestone:hover { box-shadow:var(--shadow-md); border-color:rgba(27,58,87,.28); }
[data-theme="dark"] .f-milestone:hover { border-color:rgba(74,156,200,.3); }
.f-ms-loc { font-family:var(--font-display); font-size:var(--text-md); font-weight:var(--waga-tekstu); color:var(--color-primary); line-height:1.2; }
.f-ms-period { font-size:var(--text-sm); color:var(--color-text-faint); margin-top:.2rem; }
.f-ms-title { font-size:var(--text-base); font-weight:var(--waga-wyrozniona); color:var(--color-text); margin-bottom:.3rem; }
.f-ms-desc { font-size:var(--text-sm); color:var(--color-text-muted); line-height:1.65; }
.founder-contact-card {
  background:var(--tlo-wyroznione); border-radius:var(--radius-2xl);
  padding:clamp(1.75rem,3vw,2.5rem); display:flex; flex-direction:column; gap:1.25rem;
}
/* Wyższa specyficzność niż .legal-content p - chroni kolory tekstu w karcie */
.founder-contact-card p { color:rgba(244,242,236,.72); margin-bottom:0; }
.founder-contact-card .fcc-label { font-size:var(--text-sm); font-weight:var(--waga-wyrozniona); letter-spacing:.1em; text-transform:uppercase; color:rgba(244,242,236,.7); }
.founder-contact-card .fcc-title { font-family:var(--font-display); font-size:clamp(1.35rem,1rem + 1.5vw,2rem); font-weight:var(--waga-tekstu); color:var(--color-cream); line-height:1.25; }
.founder-contact-card .fcc-desc { font-size:var(--text-base); color:rgba(244,242,236,.72); line-height:1.7; }
.fcc-email { background:var(--color-btn-bg); color:var(--color-btn-text); font-size:var(--text-base); font-weight:var(--waga-wyrozniona); padding:.875rem 1.75rem; border-radius:var(--radius-full); display:inline-flex; align-items:center; gap:.5rem; box-shadow:0 2px 12px rgba(201,107,26,.3); min-height:48px; width:fit-content; }
.fcc-email:hover { background:var(--color-btn-alt-hover); box-shadow:0 4px 20px rgba(27,58,87,.25); }
.founder-contact-card .fcc-note { font-size:var(--text-sm); color:rgba(244,242,236,.7); }
@media(max-width:900px){
  .founder-layout { grid-template-columns:1fr; }
  .founder-photo-col-inner { position:static; max-width:300px; margin-inline:auto; width:100%; }
  .f-milestone { grid-template-columns:1fr; gap:.625rem; }
}
@media(max-width:900px){
  .pillars-head-row{grid-template-columns:1fr;row-gap:1.5rem;margin-bottom:2.5rem}
  .pillars-head-illu{position:static}
  .pillars-head-illu img{position:static;height:auto;width:100%;max-width:420px;margin-inline:auto}
}
/* O fundacji na ekranach od 1600 px: zdjęcie w lewej kolumnie na dwa
   rzędy, obok wstęp i trzy filary w jednym rzędzie. Poniżej tej szerokości
   układ bez zmian. */
@media(min-width:1600px){
  #o-fundacji .about-2col{grid-template-columns:380px minmax(0,1fr);column-gap:3.5rem}
  #o-fundacji .about-intro-row{grid-column:2!important;grid-row:1}
  #o-fundacji .about-content-left{grid-column:1;grid-row:1/span 2}
  #o-fundacji .about-content-right{grid-column:2;grid-row:2}
  #o-fundacji .about-left-spacer{display:none}
  #o-fundacji .founder-photo-wrap{margin-top:0!important}
  #o-fundacji .about-pillars{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
  #o-fundacji .about-pillar{flex-direction:column}
}
/* Społeczność na wspólnym układzie dwóch kolumn (jak Programy wideo).
   Tło sekcji to stały akcent, więc tekst w kremowym. */
.community-section .section-eyebrow,.community-section .section-title,.community-section .section-desc,.community-section .uklad-dwa-lista li,.community-section .uklad-dwa-lista svg{color:var(--color-cream)}
.community-section .uklad-dwa-ilustracja img{max-width:560px}
/* Programy wideo stoją między Innowacjami a O fundacji, więc tło musi
   odróżniać się od obu sąsiadów. */
.youtube-section{background:var(--color-bg)}
.uklad-dwa-lista .yt-status.yt-status.soon{display:inline;margin-left:.5em;white-space:nowrap;color:inherit}
@media(max-width:767px){.community-section .uklad-dwa-ilustracja img{max-width:340px}}
