/* ===== Tokeny marki ===== */
:root {
  --orange: #F26B30;
  --blue: #0D33C7;
  --yellow: #FFA300;
  --cream: #F3E9E0;
  --pink: #F2C4C4;
  --ink: #1E2235;
  --paper: #FBF6F1;

  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --nav-h: 72px;
  --nav-gap: 16px;
  --radius-pill: 999px;
  --shadow-soft: 0 8px 24px rgba(30, 34, 53, 0.10);
  --ease: 200ms ease;

  --z-nav: 50;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}

img { max-width: 100%; display: block; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ===== Pasek nawigacyjny ===== */
.site-nav {
  position: sticky;
  top: var(--nav-gap);
  z-index: var(--z-nav);
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  min-height: var(--nav-h);
  margin: var(--nav-gap) auto 0;
  margin-inline: max(var(--nav-gap), calc((100% - 1200px) / 2));
  padding: 8px 10px 8px 10px;
  background: var(--paper);
  border: 2px solid rgba(13, 51, 199, 0.12);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
}

.site-nav__logo {
  flex-shrink: 0;
  border-radius: 50%;
}
.site-nav__logo img {
  width: 56px;
  height: 56px;
}

.site-nav__menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  gap: 24px;
}

.site-nav__links {
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--blue);
  white-space: nowrap;
  text-decoration: underline wavy transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
  transition: text-decoration-color var(--ease), color var(--ease);
}
.site-nav__links a:hover,
.site-nav__links a:focus-visible {
  text-decoration-color: var(--blue);
}

.site-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-nav__ig {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--blue);
  transition: background-color var(--ease);
}
.site-nav__ig svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}
.site-nav__ig svg .fill { fill: currentColor; stroke: none; }
.site-nav__ig:hover { background: var(--pink); }

.site-nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--ink);
  text-decoration: none;
  background: var(--orange);
  border-radius: var(--radius-pill);
  transition: background-color var(--ease), color var(--ease);
}
.site-nav__cta:hover {
  background: var(--blue);
  color: #fff;
}

/* Przycisk menu — tylko na telefonie */
.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-left: auto;
  padding: 0 18px;
  font: 700 1rem var(--font-body);
  color: var(--paper);
  background: var(--blue);
  border: 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.nav-toggle__icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.nav-toggle__close { display: none; }
.site-nav[data-open="true"] .nav-toggle__open { display: none; }
.site-nav[data-open="true"] .nav-toggle__close { display: inline; }

@media (max-width: 860px) {
  .site-nav {
    gap: 12px;
    padding: 6px 8px;
  }
  .site-nav__logo img { width: 52px; height: 52px; }

  .nav-toggle { display: inline-flex; }

  .site-nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 16px;
    background: var(--paper);
    border: 2px solid rgba(13, 51, 199, 0.12);
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
    max-height: calc(100dvh - var(--nav-h) - var(--nav-gap) * 3);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    /* zamykanie: ukryj dopiero po wygaszeniu */
    transition: opacity var(--ease), transform var(--ease), visibility 0s linear 200ms;
  }
  .site-nav[data-open="true"] .site-nav__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    /* otwieranie: pokaż od razu */
    transition: opacity var(--ease), transform var(--ease), visibility 0s;
  }

  .site-nav__links { flex-direction: column; gap: 0; }
  .site-nav__links a {
    width: 100%;
    min-height: 52px;
    font-size: 1.25rem;
  }

  .site-nav__actions { justify-content: space-between; }
  .site-nav__cta { flex: 1; justify-content: center; }
}

/* ===== Podstawy układu ===== */
section[id] { scroll-margin-top: calc(var(--nav-h) + var(--nav-gap) * 2); }

.container {
  width: min(1200px, 100% - 48px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 12px 20px;
  font-weight: 700;
  color: #fff;
  background: var(--blue);
  border-radius: var(--radius-pill);
}
.skip-link:focus { top: 16px; }

h1, h2, h3 { margin: 0; }
p { margin: 0 0 1em; }

.section {
  position: relative;
  padding-block: clamp(72px, 10vw, 128px);
  overflow: hidden;
}

.eyebrow {
  margin: 0 0 12px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
}
.eyebrow--light { color: var(--cream); }

.section__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--blue);
  text-wrap: balance;
}
.section__title--light { color: var(--paper); }

.section__head {
  max-width: 640px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.section__head--wide { max-width: 900px; }
.section__head--wide .section__title { font-size: clamp(1.75rem, 3.6vw, 2.75rem); line-height: 1.15; }

.section__intro,
.lead {
  font-size: 1.1875rem;
  line-height: 1.65;
}
.section__intro { margin-top: 20px; max-width: 60ch; }

/* ===== Przyciski ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.btn--primary { color: var(--ink); background: var(--orange); box-shadow: 0 4px 0 var(--ink); }
.btn--primary:hover { color: #fff; background: var(--blue); }
.btn--ghost { color: var(--blue); border-color: var(--blue); }
.btn--ghost:hover { color: #fff; background: var(--blue); }
.btn--blue { color: #fff; background: var(--blue); box-shadow: 0 4px 0 var(--ink); }
.btn--blue:hover { color: var(--ink); background: var(--paper); }

/* ===== Elementy dekoracyjne ===== */
.ribbons {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.ribbons path {
  fill: none;
  stroke: var(--orange);
  stroke-width: 120;
  stroke-linecap: round;
}

.squiggle path {
  fill: none;
  stroke: var(--blue);
  stroke-width: 3;
  stroke-linecap: round;
}

.petal path { fill: var(--yellow); }

/* organiczne kształty zdjęć */
.blob {
  margin: 0;
  overflow: hidden;
  background: var(--pink);
}
.blob img { width: 100%; height: 100%; object-fit: cover; }
.blob img.pos-top { object-position: 50% 15%; }
.blob--a { border-radius: 58% 42% 55% 45% / 48% 55% 45% 52%; }
.blob--b { border-radius: 45% 55% 40% 60% / 60% 45% 55% 40%; }
.blob--c { border-radius: 50% 50% 46% 54% / 42% 42% 58% 58%; }

.icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon .fill { fill: currentColor; stroke: none; }

/* ===== Hero ===== */
.hero {
  position: relative;
  margin-top: calc(-1 * (var(--nav-h) + var(--nav-gap) * 2));
  padding: calc(var(--nav-h) + var(--nav-gap) * 2 + clamp(40px, 7vw, 96px)) 0 clamp(64px, 9vw, 120px);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}

.hero__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 6.25rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--blue);
}
.hero__title-accent {
  position: relative;
  display: inline-block;
  color: var(--orange);
  -webkit-text-stroke: 0;
}
.hero__title .petal {
  position: absolute;
  top: -0.42em;
  right: -0.32em;
  width: 0.5em;
  height: 0.54em;
  transform: rotate(14deg);
}

.hero__lead {
  max-width: 34ch;
  margin: 28px 0 36px;
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.6;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__art {
  position: relative;
  aspect-ratio: 1 / 1;
}
.hero__photo-main {
  position: absolute;
  inset: 6% 0 10% 10%;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
}
.hero__photo-small {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 38%;
  aspect-ratio: 330 / 392;
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-soft);
}
.hero__sticker {
  position: absolute;
  top: -2%;
  right: -2%;
  width: 30%;
  height: auto;
  border-radius: 50%;
  box-shadow: var(--shadow-soft);
  transform: rotate(8deg);
}
.hero__squiggle {
  position: absolute;
  right: 4%;
  bottom: -4%;
  width: 42%;
}

/* ===== O mnie ===== */
.about { background: var(--paper); }

.about__grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  align-items: center;
  gap: clamp(40px, 7vw, 96px);
}

.about__photo {
  position: relative;
  margin: 0;
}
.about__photo .blob {
  aspect-ratio: 4 / 5;
  box-shadow: 18px 18px 0 var(--orange);
}
.about__petal {
  position: absolute;
  top: -28px;
  right: 6%;
  width: 72px;
  transform: rotate(-10deg);
}

.about__copy { max-width: 60ch; }
.about__copy .section__title { margin-bottom: 24px; }

.values {
  display: grid;
  gap: 12px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
}
.values li { display: flex; align-items: center; gap: 12px; }
.values__dot {
  width: 14px;
  height: 14px;
  border-radius: 50% 40% 55% 45%;
  flex-shrink: 0;
}
.values__dot--orange { background: var(--orange); }
.values__dot--yellow { background: var(--yellow); }
.values__dot--blue { background: var(--blue); }
.values__dot--pink { background: var(--pink); outline: 2px solid var(--orange); outline-offset: -2px; }

/* ===== Warsztaty ===== */
.workshops .container { position: relative; }
.ribbons--workshops { height: 400px; opacity: 0.9; }

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--paper);
  border: 2px solid rgba(13, 51, 199, 0.12);
  border-radius: 32px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.card:hover { border-color: var(--blue); box-shadow: 8px 8px 0 var(--blue); }
.card--yellow { background: var(--yellow); border-color: transparent; }
.card--yellow:hover { border-color: var(--ink); box-shadow: 8px 8px 0 var(--ink); }

.card__media {
  aspect-ratio: 5 / 4;
  margin-bottom: 24px;
}
.card__title {
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.875rem;
  line-height: 1.1;
  color: var(--blue);
}
.card__tag {
  margin: 4px 0 16px;
  font-weight: 600;
  font-style: italic;
  color: var(--ink);
}
.card__facts {
  display: grid;
  gap: 12px;
  margin: auto 0 0;
  padding-top: 16px;
  border-top: 2px dashed rgba(30, 34, 53, 0.2);
}
.card__facts dt {
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue);
}
.card--yellow .card__facts dt { color: var(--ink); }
.card__facts dd { margin: 2px 0 0; }

.more__title {
  margin: clamp(56px, 7vw, 80px) 0 20px;
  font-weight: 700;
  font-size: 0.875rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--blue);
}
.more {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.more__item {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: var(--paper);
  border-radius: 24px;
}
.more__item .icon {
  width: 44px;
  height: 44px;
  padding: 10px;
  color: var(--paper);
  background: var(--blue);
  border-radius: 50%;
  stroke-width: 2;
}
.more__item:nth-child(2) .icon { background: var(--orange); color: var(--ink); }
.more__item:nth-child(3) .icon { background: var(--yellow); color: var(--ink); }
.more__item:nth-child(4) .icon { background: var(--pink); color: var(--ink); }
.more__item:nth-child(5) .icon { background: var(--blue); color: var(--paper); }
.more__item--highlight { background: var(--orange); }
.more__item--highlight .icon { background: var(--paper) !important; color: var(--blue) !important; }
.more__item--highlight strong { color: var(--ink) !important; }

.recent {
  padding: 20px 28px;
  border: 2px dashed var(--ink);
  border-radius: 28px;
}
.recent__label {
  margin: 0 0 4px;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.recent p:last-child { margin: 0; }

.more__item strong { display: block; color: var(--blue); font-size: 1.0625rem; }
.more__item span { display: block; font-size: 0.9375rem; line-height: 1.5; }

.kids {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  margin-top: clamp(72px, 9vw, 112px);
  padding: clamp(28px, 5vw, 56px);
  background: var(--pink);
  border-radius: 40px;
}
.kids__photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.kids__photos .blob { aspect-ratio: 3 / 4; border: 5px solid var(--paper); }
.kids__photos .blob:nth-child(2) { margin-top: 48px; }
.kids__title {
  margin-bottom: 16px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: clamp(1.875rem, 3.4vw, 2.625rem);
  line-height: 1.1;
  color: var(--blue);
}
.kids__copy p:not(.eyebrow) { margin-bottom: 28px; font-size: 1.0625rem; }

/* ===== Dla instytucji ===== */
.institutions { background: var(--yellow); }
.institutions__squiggle {
  position: absolute;
  top: 24px;
  left: 0;
  width: 100%;
  height: 80px;
}
.institutions .section__title { color: var(--ink); }
.institutions .eyebrow { color: var(--ink); }

.inst__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
  align-items: start;
}

.formats {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.format {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 20px;
  padding: 24px 28px;
  background: var(--paper);
  border-radius: 28px;
}
.format__num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: var(--paper);
  background: var(--blue);
  border-radius: 50% 45% 55% 50%;
}
.format h3 { font-size: 1.25rem; line-height: 1.3; color: var(--blue); }
.format p { margin: 6px 0 0; }

.together {
  padding: 32px;
  color: var(--ink);
  background: var(--orange);
  border-radius: 32px;
}
.together__title {
  margin-bottom: 20px;
  font-family: var(--font-display);
  font-variation-settings: "SOFT" 100, "WONK" 1;
  font-weight: 800;
  font-size: 1.875rem;
}
.together ul {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
  font-weight: 600;
  font-size: 1.0625rem;
}
.together li { display: flex; gap: 12px; }
.together .icon { stroke-width: 3; }

/* ===== Kontakt ===== */
.contact {
  color: var(--paper);
  background: var(--blue);
}
.contact .ribbons path { stroke-width: 110; }
.contact__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.contact .section__title { font-size: clamp(2.75rem, 6vw, 4.5rem); margin-bottom: 20px; }
.contact__lead { max-width: 40ch; font-size: 1.1875rem; }

.contact__list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--ink);
  text-decoration: none;
  background: var(--paper);
  border-radius: 24px;
  overflow-wrap: anywhere;
  transition: background-color var(--ease), box-shadow var(--ease);
}
a.contact__item:hover { background: var(--yellow); box-shadow: 6px 6px 0 var(--ink); }
.contact__item--static { background: var(--cream); }
.contact__item--static .icon { background: var(--yellow); color: var(--ink); }
.contact__item:focus-visible { outline-color: var(--yellow); }
.contact__item .icon {
  width: 48px;
  height: 48px;
  padding: 12px;
  color: var(--paper);
  background: var(--orange);
  border-radius: 50%;
}
.contact__item small {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ===== Stopka ===== */
.site-footer {
  padding: 32px 0;
  background: var(--paper);
  font-size: 0.9375rem;
}
.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-weight: 600;
}
.site-footer__brand img { width: 44px; height: 44px; }
.site-footer__top {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 700;
  color: var(--blue);
}

/* ===== Responsywność ===== */
@media (max-width: 1024px) {
  .cards { grid-template-columns: 1fr 1fr; }
  .cards .card:last-child { grid-column: span 2; }
  .inst__grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .hero__inner,
  .about__grid,
  .kids,
  .contact__grid { grid-template-columns: 1fr; }

  .more { grid-template-columns: 1fr 1fr; }
  .hero__art { width: min(520px, 100%); margin-inline: auto; }
  .about__photo { width: min(420px, 90%); margin-inline: auto; }
  .ribbons path { stroke-width: 90; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 32px); }
  .cards { grid-template-columns: 1fr; }
  .cards .card:last-child { grid-column: auto; }
  .more { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .format { padding: 20px; column-gap: 16px; }
  .format__num { width: 44px; height: 44px; font-size: 1.25rem; }
  .together { padding: 26px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .kids { border-radius: 28px; }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

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