:root {
  --navy: #12284a;
  --navy-2: #1c3a66;
  --ink: #18212f;
  --muted: #5b6575;
  --line: #e3e6ec;
  --bg: #ffffff;
  --tint: #f5f3ee;
  --accent: #d4892a;
  --accent-2: #b8701a;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(18, 40, 74, .08);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font: 400 17px/1.65 var(--sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-2); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; color: var(--navy); }
h1, h2 { font-family: var(--serif); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-2); margin-bottom: .9em;
}
.eyebrow--light { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid var(--accent);
  transition: background .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--accent-2); border-color: var(--accent-2); transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--sm { padding: .5em 1.1em; font-size: .92rem; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: #fff; font: 700 .9rem var(--sans); letter-spacing: .04em;
}
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.2rem; }
.nav__menu { display: flex; align-items: center; gap: 26px; }
.nav__menu a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav__menu a:not(.btn):hover { color: var(--accent-2); }
.nav__menu .btn { color: #fff; }
.nav__toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .25s, opacity .25s; }

@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 18px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }
  .nav__menu a:not(.btn) { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav__menu .btn { margin-top: 14px; justify-content: center; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* PHOTO placeholders */
.photo {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 60%, #2c5a8f 100%);
}
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.photo__ph {
  position: absolute; inset: 0; display: grid; place-items: center;
  color: rgba(255,255,255,.18); font: 700 clamp(2rem, 8vw, 5.5rem) var(--serif); letter-spacing: .02em;
}
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--wide { aspect-ratio: 4 / 3; }

/* HERO */
.hero { padding: clamp(40px, 7vw, 90px) 0 clamp(50px, 7vw, 90px); background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero h1 { font-size: clamp(2.8rem, 7vw, 5rem); margin-bottom: .3em; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 36em; }
.hero__roles { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 10px; }
.hero__roles li {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 10px;
}
.hero__roles strong { color: var(--navy); }
.hero__roles span { color: var(--muted); font-size: .93rem; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__photo { margin: 0; position: relative; }
.hero__photo .photo { box-shadow: 0 30px 60px rgba(18,40,74,.22); }
.hero__badge {
  position: absolute; left: -22px; bottom: 28px; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.25; color: var(--muted);
}
.hero__badge-num { font: 700 2.2rem/1 var(--serif); color: var(--accent); }
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__photo { max-width: 300px; width: 100%; margin-inline: auto; order: -1; }
  .hero__photo .photo--portrait { aspect-ratio: 1 / 1; }
  .hero__badge { left: 12px; bottom: 12px; }
}

/* STATS */
.stats { background: var(--navy); color: #fff; padding: 46px 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stat { display: flex; flex-direction: column; gap: 6px; padding-left: 18px; border-left: 2px solid rgba(255,255,255,.15); }
.stat__num { font: 700 clamp(1.9rem, 3.4vw, 2.6rem)/1.05 var(--serif); color: var(--accent); }
.stat__lbl { font-size: .93rem; color: rgba(255,255,255,.8); line-height: 1.45; }
@media (max-width: 860px) { .stats__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .stats__grid { grid-template-columns: 1fr; } }

/* SECTIONS */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--tint { background: var(--tint); }
.section--dark { background: var(--navy); color: rgba(255,255,255,.85); }
.section--dark h2 { color: #fff; }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__lead { color: var(--muted); font-size: 1.08rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev .split__media { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--rev .split__media { order: 0; }
}
.tags { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 6px 14px; border-radius: 999px; background: var(--tint); color: var(--navy); font-size: .88rem; font-weight: 600; }

/* TIMELINE */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: #d9d3c6; }
.timeline li { position: relative; padding: 0 0 38px 46px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 4px solid var(--accent);
}
.timeline li:first-child::before { background: var(--accent); }
.timeline__date { display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .06em; color: var(--accent-2); margin-bottom: 4px; }
.timeline p { color: var(--muted); margin: 0; }

/* TABS & CARDS */
.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--tint); border-radius: 999px; margin-bottom: 32px; flex-wrap: wrap; }
.tabs__btn {
  border: 0; background: transparent; font: 600 .98rem var(--sans); color: var(--navy);
  padding: .7em 1.4em; border-radius: 999px; cursor: pointer; transition: background .2s, color .2s;
}
.tabs__btn.is-active { background: var(--navy); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card p { color: var(--muted); font-size: .97rem; }
.card--feature { grid-column: span 2; background: var(--navy); border-color: var(--navy); }
.card--feature h3 { color: #fff; font-size: 1.4rem; }
.card--feature p { color: rgba(255,255,255,.82); font-size: 1.02rem; }
.card--feature .card__meta { color: var(--accent); }
.card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px;
  background: rgba(212,137,42,.12);
}
.card__icon svg { width: 24px; height: 24px; fill: none; stroke: var(--accent-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card--feature .card__icon { background: rgba(255,255,255,.1); }
.card--feature .card__icon svg { stroke: var(--accent); }
.card__meta { font-size: .8rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2) !important; margin: 0; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card--feature { grid-column: auto; } }

/* QUOTE */
.quote { background: var(--accent); color: #fff; padding: clamp(56px, 8vw, 90px) 0; }
.quote blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
.quote p { font: 500 clamp(1.35rem, 2.8vw, 2rem)/1.4 var(--serif); }
.quote p::before { content: "„"; }
.quote p::after { content: "”"; }
.quote footer { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .85rem; opacity: .9; }

/* TALKS */
.talks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 48px; }
.talk { padding: 26px 28px; border-radius: var(--radius); background: var(--tint); border-top: 4px solid var(--navy); }
.talk__date { display: block; font-size: .82rem; font-weight: 700; color: var(--accent-2); letter-spacing: .04em; margin-bottom: 8px; }
.talk p { color: var(--muted); margin: 0; font-size: .97rem; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle { padding: 26px 0 0; border-top: 2px solid var(--accent); }
.principle p { color: var(--muted); font-size: .97rem; }
@media (max-width: 860px) { .talks, .principles { grid-template-columns: 1fr; } }

/* PHOTO GRID */
.photo-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 200px 200px; gap: 12px; }
.photo-grid .photo:first-child { grid-row: span 2; }
.photo-grid .photo__ph { font-size: 1.8rem; }
.section--dark .photo { background: linear-gradient(140deg, #1f3e6b, #2c5a8f); }

/* NEWS */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.news__item { background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); }
.news__item time { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 10px; }
.news__item h3 { font-size: 1.05rem; }
.news__item p { color: var(--muted); font-size: .94rem; margin: 0; }
.news__more { margin-top: 28px; color: var(--muted); }
@media (max-width: 960px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

/* CONTACT */
.contact__in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact__in p { color: var(--muted); font-size: 1.08rem; }
.contact__links { display: grid; gap: 12px; }
.contact__link {
  display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--ink);
  padding: 18px 22px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.contact__link:hover { border-color: var(--accent); transform: translateX(4px); box-shadow: var(--shadow); }
.contact__link svg { width: 30px; height: 30px; fill: var(--navy); flex: none; }
.contact__link span { display: flex; flex-direction: column; color: var(--muted); font-size: .93rem; overflow-wrap: anywhere; }
.contact__link strong { color: var(--navy); font-size: 1.05rem; }
@media (max-width: 860px) { .contact__in { grid-template-columns: 1fr; } }

/* FOOTER */
.footer { background: var(--ink); color: rgba(255,255,255,.65); padding: 28px 0; font-size: .9rem; }
.footer__in { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }
.footer strong { color: #fff; }

/* REVEAL */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ZDJĘCIA W KARTACH */
.photo--portrait img { object-position: center 30%; }
.card--img, .card--video { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card__img, .card__video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; background: var(--tint); }
.card__body { padding: 24px 26px 26px; }
@media (min-width: 1000px) {
  .card--feature.card--img, .card--feature.card--video { flex-direction: row; }
  .card--feature .card__img { width: 52%; aspect-ratio: auto; min-height: 340px; }
  .card--feature .card__video { width: 40%; aspect-ratio: 9 / 16; max-height: 520px; }
  .card--feature .card__body { align-self: center; padding: 32px; }
}
.card--feature .card__video { background: #000; max-height: 480px; aspect-ratio: auto; }

/* KONFERENCJE ZE ZDJĘCIAMI */
.talk--img { display: grid; grid-template-columns: 130px 1fr; gap: 20px; align-items: start; }
.talk--img img { width: 130px; height: 160px; object-fit: cover; border-radius: 10px; }
@media (max-width: 460px) {
  .talk--img { grid-template-columns: 1fr; }
  .talk--img img { width: 100%; height: 200px; }
}

/* GALERIA */
.gallery { columns: 4 240px; column-gap: 14px; }
.gallery figure { margin: 0 0 14px; break-inside: avoid; position: relative; border-radius: 12px; overflow: hidden; background: var(--tint); }
.gallery img { width: 100%; height: auto; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 14px 12px;
  background: linear-gradient(transparent, rgba(10,22,42,.82)); color: #fff; font-size: .88rem; font-weight: 600;
}

@media (max-width: 560px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: 14px; }
  .tabs__btn { padding: .7em .6em; font-size: .88rem; border-radius: 10px; }
}

/* ===== WordPress i Elementor ===== */

/* Elementor nadpisuje wysokość zdjęć; przywracamy wygląd z projektu. */
body .photo img { height: 100%; }
body .talk--img img { height: 160px; }
@media (max-width: 460px) { body .talk--img img { height: 200px; } }
body .gallery img, body .card__img { height: auto; }
body .card--feature .card__img { min-height: 0; }
@media (min-width: 1000px) { body .card--feature .card__img { height: auto; min-height: 340px; } }
.elementor-widget-container > section { margin: 0; }

/* W edytorze Elementora wszystko widać od razu (bez animacji wejścia). */
.elementor-editor-active .reveal { opacity: 1 !important; transform: none !important; }

/* Logo z biblioteki mediów zamiast inicjałów. */
.brand__logo { width: 38px; height: 38px; border-radius: 10px; object-fit: cover; }

/* Aktualności: linki, lista, wpis. */
.news__link { color: inherit; text-decoration: none; }
.news__link:hover { color: var(--accent-2); }
.news--list { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .news--list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news--list { grid-template-columns: 1fr; } }
.news__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-bottom: 14px; }
.page-head { padding: clamp(48px, 7vw, 80px) 0 clamp(36px, 5vw, 56px); }
.page-head .section__head { margin-bottom: 0; }
.page-title { font-family: var(--serif); font-size: clamp(2rem, 4.4vw, 3.2rem); margin: 0; }
.entry__narrow { max-width: 780px; }
.entry__body { padding-top: clamp(40px, 6vw, 70px); }
.entry__img { margin: 0 0 32px; }
.entry__img img { border-radius: var(--radius); width: 100%; height: auto; }
.entry__content { font-size: 1.08rem; }
.entry__content img { height: auto; border-radius: 10px; }
.entry__content h2 { font-size: 1.8rem; margin-top: 1.4em; }
.entry__back { margin-top: 40px; }
.pager { margin-top: 40px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); }
.pager .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }
.alignwide, .alignfull { max-width: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }

/* Odznaka z funkcjami przy portrecie */
.hero__badge--text { flex-direction: column; align-items: flex-start; gap: 2px; max-width: calc(100% - 24px); padding: 14px 20px; }
.hero__badge--text strong { color: var(--navy); font-size: 1rem; line-height: 1.25; }
.hero__badge--text span { color: var(--muted); font-size: .9rem; }
@media (max-width: 860px) {
  .hero__badge--text { position: relative; left: auto; bottom: auto; margin: -26px auto 0; width: 88%; max-width: none; align-items: center; text-align: center; }
}

/* Stopka: administrator i polityka prywatności */
.footer__legal { display: flex; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; padding: 14px 0 0; margin-top: 14px; border-top: 1px solid rgba(255,255,255,.12); font-size: .84rem; }
.footer__legal p { margin: 0; }
.footer a { color: rgba(255,255,255,.85); }
.footer a:hover { color: #fff; }
.entry__content h3 { margin-top: 1.4em; }
.entry__content ul { padding-left: 1.2em; margin: 0 0 1em; }
.entry__content li { margin-bottom: .3em; }
