/* Działalność charytatywna – strona statyczna (tylko main) */

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

body {
  margin: 0;
  font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #262626;
  background: #fff;
}

main.page {
  min-height: 100vh;
}

/* ----- Breadcrumbs ----- */
.breadcrumbs {
  background: #fff;
  color: #00479A;
}

.breadcrumbs-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 12px 12px;
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  min-width: max-content;
}

.breadcrumbs-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #00479A;
  text-decoration: none;
  white-space: nowrap;
}

.breadcrumbs-link:hover {
  opacity: 0.8;
}

.breadcrumbs-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.breadcrumbs-sep {
  color: #7D7D7D;
  margin: 0 4px;
}

.breadcrumbs-sep::before {
  content: ">";
}

.breadcrumbs-current {
  font-weight: 600;
  color: #00479A;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .breadcrumbs-inner {
    padding: 24px 16px;
    gap: 16px;
  }
}

/* ----- Hero ----- */
.charity-hero {
  background: #fff;
  padding: 40px 12px;
}

@media (min-width: 768px) {
  .charity-hero {
    padding: 40px 12px;
  }
}

.charity-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  text-align: left;
}

@media (min-width: 1024px) {
  .charity-hero-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 32px;
  }
}

.charity-hero-img-wrap {
  width: 100%;
  max-width: 351px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

@media (min-width: 1024px) {
  .charity-hero-img-wrap {
    order: 2;
    flex-shrink: 0;
    max-width: 576px;
    aspect-ratio: 480 / 360;
  }
}

.charity-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 351 / 303;
}

@media (min-width: 1024px) {
  .charity-hero-img {
    aspect-ratio: 480 / 360;
  }
}

.charity-hero-content {
  flex: 1;
  max-width: 351px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .charity-hero-content {
    order: 1;
    max-width: 672px;
    gap: 16px;
  }
}

.charity-hero-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: rgba(17, 82, 212, 0.8);
}

.charity-hero-label-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.charity-hero-title {
  margin: 0;
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  color: #1e293b;
}

@media (min-width: 768px) {
  .charity-hero-title {
    font-size: 60px;
    line-height: 60px;
  }
}

.charity-hero-title--blue {
  color: #1152d4;
}

.charity-hero-intro {
  margin: 0;
  max-width: 672px;
  font-size: 18px;
  line-height: 26px;
  color: #515151;
}

@media (min-width: 768px) {
  .charity-hero-intro {
    font-size: 20px;
    line-height: 30px;
  }
}

/* ----- Stats ----- */
.charity-stats {
  background: #fff;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .charity-stats {
    padding: 56px 0;
  }
}

.charity-stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .charity-stats-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
  }
}

.charity-stats-item {
  flex: 1;
  min-width: 0;
  border-left: 4px solid #1152d4;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.charity-stats-value {
  font-size: 40px;
  line-height: 50px;
  font-weight: 500;
  color: #1e293b;
}

.charity-stats-label {
  font-size: 16px;
  line-height: 26px;
  color: #515151;
}

/* ----- Partners ----- */
.charity-partners {
  border-bottom: 1px solid #e2e8f0;
  background: #F6F6F8;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .charity-partners {
    padding: 64px 0;
  }
}

.charity-partners-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 1024px) {
  .charity-partners-inner {
    grid-template-columns: 1fr 368px;
    grid-template-rows: auto;
    align-items: start;
  }
}

.charity-partners-list {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.charity-partners-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.charity-partners-line {
  position: absolute;
  left: 20px;
  top: 0;
  bottom: -40px;
  width: 2px;
  background: #8CACD2;
}

@media (min-width: 768px) {
  .charity-partners-line {
    left: 20px;
  }
}

.charity-partner-card {
  position: relative;
  padding-left: 48px;
}

@media (min-width: 768px) {
  .charity-partner-card {
    padding-left: 56px;
  }
}

.charity-partner-card--last {
  padding-left: 48px;
}

.charity-partner-year {
  position: absolute;
  left: 0;
  top: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgba(17, 82, 212, 0.3);
  background: #f0f4f9;
  font-size: 12px;
  font-weight: 700;
  line-height: 16px;
  color: #1152d4;
}

.charity-partner-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e7ebf3;
  background: #fff;
  box-shadow: 0 2px 10px rgba(17, 82, 212, 0.1);
}

@media (min-width: 640px) {
  .charity-partner-body {
    flex-direction: row;
    gap: 20px;
  }
}

/* Blok tekstowy (tytuł, badge, opis, wkład) – jeden flex-child obok zdjęcia */
.charity-partner-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.charity-partner-title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #0d121b;
}

.charity-partner-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #1e40af;
  background: #dbeafe;
}

.charity-partner-desc,
.charity-partner-contribution {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #515151;
}

.charity-partner-img-wrap {
  position: relative;
  width: 100%;
  height: 197px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
}

@media (min-width: 640px) {
  .charity-partner-img-wrap {
    width: 263px;
  }
}

.charity-partner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Criteria card */
.charity-criteria {
  width: 100%;
}

@media (min-width: 1024px) {
  .charity-criteria {
    position: sticky;
    top: 96px;
  }
}

.charity-criteria-inner {
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e7ebf3;
  background: #fff;
  box-shadow: 1px 0 13px -1px rgba(0, 71, 154, 0.25);
}

/* Nagłówek + intro w jednym bloku z tłem (jak w oryginale: jeden div z bg-[#1152d4]/5) */
.charity-criteria-header {
  padding: 24px;
  border-bottom: 1px solid rgba(17, 82, 212, 0.1);
  background: rgba(17, 82, 212, 0.05);
}

.charity-criteria-heading {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #262626;
}

.charity-criteria-intro {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 20px;
  font-weight: 400;
  color: #515151;
}

.charity-criteria-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.charity-criteria-item {
  display: flex;
  gap: 12px;
}

.charity-criteria-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8l4 4 8-8' stroke='%231152d4' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.charity-criteria-item-title {
  display: block;
  font-size: 16px;
  line-height: 26px;
  font-weight: 600;
  color: #262626;
}

.charity-criteria-item-desc {
  display: block;
  font-size: 14px;
  line-height: 20px;
  color: #515151;
}

/* ----- Logos ----- */
.charity-logos {
  background: #fff;
  padding: 48px 0;
}

.charity-logos-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

.charity-logos-heading {
  margin: 0 0 32px;
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: #515151;
}

.charity-logos-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-evenly;
  gap: 40px;
}

.charity-logo-wrap {
  position: relative;
  height: 109px;
  min-width: 200px;
  max-width: 265px;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.charity-logo-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* ----- Activities ----- */
.charity-activities {
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .charity-activities {
    padding: 96px 0;
  }
}

.charity-activities-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .charity-activities-inner {
    gap: 96px;
  }
}

.charity-activities-heading {
  margin: 0;
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  text-align: center;
  color: #0d121b;
}

.charity-activities-heading--blue {
  color: #1152d4;
}

@media (min-width: 768px) {
  .charity-activities-heading {
    font-size: 40px;
    line-height: 50px;
  }
}

.activity-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 1024px) {
  .activity-row {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }
}



@media (max-width: 1024px) {
    .activity-row--reverse .activity-row-text {
        order: 2;
    }
}
.activity-row--reverse .activity-row-img {
  order: 1;
}

.activity-row-text {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-row-title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #262626;
}

@media (min-width: 768px) {
  .activity-row-title {
    font-size: 22px;
    line-height: 34px;
  }
}

.activity-row-content {
  font-size: 16px;
  line-height: 26px;
  color: #515151;
}

.activity-row-content p {
  margin: 0;
}

.activity-row-content p + p {
  margin-top: 12px;
}

.activity-row-label {
  margin: 0;
  font-weight: 600;
  color: #262626;
}

.activity-row-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.activity-row-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 26px;
  color: #515151;
}

.activity-row-check {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 8l4 4 8-8' stroke='%231152d4' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
}

.activity-row-img {
  max-height: 400px;
  width: 100%;
}

.activity-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  display: block;
}

/* ----- Be part of ----- */
.charity-bepart {
  background: #f6f6f8;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .charity-bepart {
    padding: 96px 0;
  }
}

.charity-bepart-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

.charity-bepart-heading {
  margin: 0 0 32px;
  text-align: center;
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  color: #1e293b;
}

@media (min-width: 768px) {
  .charity-bepart-heading {
    margin-bottom: 40px;
    font-size: 40px;
    line-height: 50px;
  }
}

.charity-bepart-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .charity-bepart-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.charity-bepart-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
}

.charity-bepart-icon-wrap {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.charity-bepart-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.charity-bepart-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.charity-bepart-title {
  margin: 0;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #1e293b;
}

.charity-bepart-desc {
  margin: 0;
  font-size: 16px;
  line-height: 26px;
  color: #475569;
}

/* ----- Discover more (bg white) ----- */
.charity-discover {
  background: #fff;
  padding: 48px 0;
}

@media (min-width: 768px) {
  .charity-discover {
    padding: 96px 0;
  }
}

.charity-discover-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 12px;
}

.charity-discover-heading {
  margin: 0 0 16px;
  text-align: center;
  font-size: 26px;
  line-height: 34px;
  font-weight: 500;
  color: #0d121b;
}

@media (min-width: 768px) {
  .charity-discover-heading {
    margin-bottom: 24px;
    font-size: 40px;
    line-height: 50px;
  }
}

.charity-discover-line {
  width: 96px;
  height: 6px;
  margin: 0 auto 32px;
  border-radius: 9999px;
  background: #1152d4;
}

@media (min-width: 768px) {
  .charity-discover-line {
    margin-bottom: 48px;
  }
}

.charity-discover-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  max-width: max-content;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .charity-discover-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .charity-discover-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.discover-card {
  max-width: 302px;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
}

.discover-card:hover {
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.discover-card-img-wrap {
  height: 142px;
  width: 100%;
  overflow: hidden;
}

.discover-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px 32px 32px;
}

.discover-card-title {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 30px;
  font-weight: 600;
  color: #262626;
}

.discover-card-desc {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #515151;
}

.discover-card-link {
  margin-top: auto;
  padding-top: 24px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 700;
  color: #00479a;
}
