:root {
  --bg: #fbf7ef;
  --paper: #ffffff;
  --text: #202b41;
  --muted: #4d4f57;
  --accent: #ff7f2a;
  --accent-soft: #ffece2;
  --blue: #346ee6;
  --blue-soft: #6e97ee;
  --line: #e9e2d8;
  --shadow: 0 22px 60px rgba(32, 43, 65, 0.10);
  --radius-xl: 28px;
  --radius-lg: 18px;
  --max-width: 1140px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.navbar {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.logo {
  width: 178px;
  height: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(32, 43, 65, 0.72);
  padding: 10px 12px;
  border-radius: 999px;
  transition: 160ms ease;
}

.nav-link:hover,
.nav-link:focus-visible {
  color: var(--text);
  background: rgba(32, 43, 65, 0.06);
}

.nav-link.active {
  color: var(--text);
  background: var(--accent-soft);
}

main {
  overflow: hidden;
}

.hero {
  position: relative;
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: 64px 0 40px;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(520px, 1.18fr);
  align-items: center;
  gap: clamp(46px, 5vw, 70px);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -155px;
  top: 0;
  background: var(--accent);
  border-radius: 52% 48% 45% 55% / 44% 43% 57% 56%;
  z-index: -2;
}

.hero::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 420px;
  right: -230px;
  top: 78px;
  background: var(--blue-soft);
  border-radius: 50%;
  z-index: -3;
}

.kicker {
  display: inline-flex;
  align-items: center;
  margin-bottom: 26px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #e85a34;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero-title {
  max-width: 560px;
  margin: 0;
  font-size: clamp(2.65rem, 5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
  color: var(--text);
}

.hero-copy {
  max-width: 580px;
  margin: 28px 0 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.hero-image-wrap {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.hero-image {
  width: 100%;
  aspect-ratio: 14 / 10;
  object-fit: cover;
  object-position: 56% 58%;
  transform: scale(1.08);
  transform-origin: 56% 58%;
}

.section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.card {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(233, 226, 216, 0.88);
  border-radius: var(--radius-xl);
  padding: clamp(26px, 5vw, 54px);
  box-shadow: 0 20px 70px rgba(32, 43, 65, 0.06);
}

.page-intro {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 50px;
  align-items: center;
}

.page-title {
  margin: 0;
  font-size: clamp(2.25rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

.page-copy {
  margin: 22px 0 0;
  font-size: 1.12rem;
  color: var(--muted);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 38px;
}

.info-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px;
}

.info-item::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -48px;
  top: -48px;
  background: var(--accent-soft);
  border-radius: 50%;
}

.info-label {
  position: relative;
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.info-value {
  position: relative;
  display: block;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
  line-height: 1.15;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--text);
}

.about-logo-panel {
  position: relative;
  min-height: 300px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(255, 127, 42, 0.16), rgba(52, 110, 230, 0.16));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  overflow: hidden;
}

.about-logo-panel::before {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -70px;
  top: -80px;
  background: var(--accent);
  border-radius: 48%;
}

.about-logo-panel::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  left: -70px;
  bottom: -70px;
  background: var(--blue-soft);
  border-radius: 50%;
}

.about-logo {
  position: relative;
  z-index: 1;
  width: min(260px, 85%);
  padding: 26px;
  border-radius: 22px;
  background: transparent;
  box-shadow: 0 20px 60px rgba(32, 43, 65, 0.10);
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 0;
  color: rgba(32, 43, 65, 0.68);
}

.footer-inner {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo {
  width: 150px;
  height: auto;
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .hero::before {
    width: 420px;
    height: 420px;
    right: -180px;
    top: auto;
    bottom: 110px;
  }

  .hero::after {
    width: 280px;
    height: 340px;
    right: -190px;
    top: auto;
    bottom: 48px;
  }

  .hero-image {
    aspect-ratio: 16 / 11;
  }

  .page-intro {
    grid-template-columns: 1fr;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .navbar {
    width: min(var(--max-width), calc(100% - 28px));
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .logo {
    width: 148px;
  }

  .nav-links {
    justify-content: flex-start;
    width: 100%;
  }
.hero,
  .section,
  .footer-inner {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .hero {
    padding: 42px 0 34px;
    gap: 34px;
  }

  .hero::before {
    width: 340px;
    height: 340px;
    right: -148px;
    bottom: -20px;
  }

  .hero::after {
    width: 220px;
    height: 270px;
    right: -158px;
    bottom: -40px;
  }

  .hero-title,
  .page-title {
    letter-spacing: -0.045em;
  }

  .hero-copy,
  .page-copy {
    font-size: 1.03rem;
  }

  .card {
    border-radius: 22px;
  }

  .about-logo-panel {
    min-height: 220px;
  }
}


/* Sekcje strony głównej odwzorowane na podstawie prototype.png */
.home-section-title {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 3.15rem);
  line-height: 1.14;
  letter-spacing: -0.04em;
  color: var(--text);
}

.home-section-copy {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.03em;
}

.mission-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 56px 0 48px;
}

.mission-intro {
  display: grid;
  grid-template-columns: minmax(270px, 0.8fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 8vw, 104px);
  max-width: 980px;
  margin: 0 auto;
}

.mission-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.mission-illustration {
  width: min(310px, 88%);
  height: auto;
  filter: drop-shadow(0 18px 36px rgba(32, 43, 65, 0.08));
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 64px;
}

.principle-card,
.program-card,
.value-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(233, 226, 216, 0.92);
  box-shadow: 0 18px 42px rgba(32, 43, 65, 0.07);
}

.principle-card {
  min-height: 205px;
  padding: 28px;
  border-radius: 20px;
}

.home-icon {
  width: 68px;
  height: 68px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}

.home-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.home-icon--wide {
  width: 76px;
  height: 52px;
  justify-content: flex-start;
}

.home-icon--tile {
  width: 68px;
  height: 68px;
}

.home-card-title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.home-card-copy {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.55;
}

.experience-photo-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 38px 0 92px;
}

.experience-photo {
  width: 100%;
  aspect-ratio: 1.8 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.programs-section {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 0 0 54px;
}

.programs-section .home-section-title,
.values-section .home-section-title {
  max-width: 680px;
  margin-inline: auto;
  text-align: center;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  margin-top: 56px;
}

.program-card {
  min-height: 270px;
  padding: 38px;
  border-radius: 22px;
}

.values-section {
  position: relative;
  overflow: hidden;
  padding: 104px 20px 116px;
}

.values-inner {
  position: relative;
  z-index: 2;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 58px;
}

.value-card {
  position: relative;
  min-height: 270px;
  padding: 28px 24px;
  border-radius: 18px;
}

.value-number {
  display: block;
  margin-bottom: 8px;
  color: #ee3d4d;
  font-size: clamp(2.6rem, 4vw, 3.75rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.05em;
}

.value-card .home-card-title {
  font-size: 1.06rem;
}

.value-card .home-card-copy {
  font-size: 0.86rem;
}

.value-bubble {
  position: absolute;
  border-radius: 50%;
  opacity: 0.62;
  pointer-events: none;
}

.value-bubble--one {
  width: 96px;
  height: 96px;
  left: calc(50% - 520px);
  top: 210px;
  background: #ffd45d;
}

.value-bubble--two {
  width: 74px;
  height: 74px;
  left: calc(50% - 185px);
  top: 192px;
  background: #75a0ef;
}

.value-bubble--three {
  width: 114px;
  height: 114px;
  right: calc(50% - 530px);
  top: 176px;
  background: #ffb078;
}

.value-bubble--four {
  width: 138px;
  height: 138px;
  left: calc(50% - 385px);
  bottom: 45px;
  background: #ef7582;
}

.value-bubble--five {
  width: 150px;
  height: 96px;
  right: calc(50% - 340px);
  bottom: 34px;
  border-radius: 60% 40% 52% 48%;
  background: linear-gradient(90deg, #6f98ed 0 55%, #ffcf54 55%);
}

.founder-section {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
  padding: 54px 0 112px;
}

.founder-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(42px, 6vw, 78px);
}

.founder-image {
  width: 100%;
  aspect-ratio: 0.86 / 1;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.founder-copy .home-section-title {
  margin-bottom: 30px;
}

.founder-copy p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 1rem;
  font-style: italic;
}

.founder-signature {
  margin-top: 34px;
}

.founder-name {
  display: block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.08rem;
}

.founder-role {
  display: block;
  margin-top: 2px;
  color: var(--blue);
  font-size: 0.82rem;
}

.join-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: max(420px, 52.64vw);
  padding: 116px 20px 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  background: #b11b2a url("../assets/illustrations/join-jar.png") center / contain no-repeat;
}

.join-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.join-title {
  margin: 0;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 4.05rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.join-copy {
  max-width: 620px;
  margin: 20px auto 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.94);
}

@media (max-width: 980px) {
  .mission-intro,
  .founder-grid {
    grid-template-columns: 1fr;
  }

  .mission-intro {
    text-align: center;
  }

  .mission-illustration {
    width: min(260px, 72%);
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .founder-image {
    max-width: 620px;
    aspect-ratio: 1.15 / 1;
    margin: 0 auto;
  }
}

@media (max-width: 720px) {
  .mission-section,
  .experience-photo-section,
  .programs-section,
  .founder-section {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .mission-section {
    padding-top: 42px;
  }

  .principles-grid,
  .programs-grid,
  .values-grid {
    grid-template-columns: 1fr;
  }

  .experience-photo {
    aspect-ratio: 4 / 3;
  }

  .program-card,
  .value-card {
    min-height: auto;
  }

  .values-section {
    padding: 78px 14px 90px;
  }

  .value-bubble--one,
  .value-bubble--two,
  .value-bubble--three,
  .value-bubble--four,
  .value-bubble--five {
    opacity: 0.22;
  }

  .founder-section {
    padding: 56px 0 82px;
  }

  .founder-image {
    aspect-ratio: 0.9 / 1;
  }

  .join-section {
    min-height: 380px;
    padding: 88px 20px;
    background-size: cover;
    background-position: right center;
  }
}

.info-value a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.info-value--small {
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  letter-spacing: -0.015em;
  overflow-wrap: anywhere;
}

.info-note {
  position: relative;
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0;
}

.page-intro--single {
  grid-template-columns: 1fr;
}
