.articles-index {
  padding: 36px 0 64px;
  color: #263238;
}

.articles-index__breadcrumbs {
  margin-bottom: 20px;
}

.articles-index__hero {
  position: relative;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: clamp(30px, 5vw, 62px);
  border-radius: 20px;
  background-image: linear-gradient(90deg, rgba(238, 247, 239, .97) 0%, rgba(248, 251, 247, .9) 48%, rgba(232, 241, 228, .22) 100%), url('/img/hero-fundacja.jpg');
  background-position: center;
  background-size: cover;
  border: 1px solid #d8e7da;
  box-shadow: 0 12px 32px rgba(39, 90, 47, .08);
}

.articles-index__eyebrow {
  display: block;
  margin-bottom: 10px;
  color: #397342;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.articles-index__hero h1 {
  margin: 0;
  color: #234d2a;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.12;
}

.articles-index__hero p {
  max-width: 780px;
  margin: 15px 0 0;
  color: #47604a;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.articles-index__search {
  margin: 30px 0 14px;
  padding: 18px;
  border: 1px solid #e1e9e2;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(36, 70, 40, .05);
}

.articles-index__search h2,
.articles-index__groups h2 {
  margin: 0 0 10px;
  color: #314a35;
  font-size: 20px;
  font-weight: 700;
}

.articles-index__search-form > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.articles-index__search-form > div {
  display: flex;
  gap: 10px;
}

.articles-index__search-form input {
  display: block;
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border: 1px solid #b9cbbd;
  border-radius: 8px;
  color: #263238;
  background: #fff;
}

.articles-index__search-form input:focus,
.articles-index__card-link:focus-visible,
.articles-index__pagination a:focus-visible,
.articles-index__active-filter a:focus-visible {
  outline: 3px solid rgba(51, 153, 51, .34);
  outline-offset: 3px;
}

.articles-index__search-form .btn {
  min-width: 112px;
  min-height: 44px;
  border-color: #6e970b;
  background: #6e970b;
  color: #fff;
}

.articles-index__search-form .btn:hover,
.articles-index__search-form .btn:focus {
  border-color: #5d8209;
  background: #5d8209;
  color: #fff;
}

.articles-index__search-description {
  margin: 10px 0 0;
  color: #647565;
  font-size: 14px;
  line-height: 1.5;
}

.articles-index__groups {
  margin: 0 0 18px;
}

.articles-index__group-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.articles-index__group-button {
  display: inline-flex;
  min-height: 48px;
  padding: 10px 15px;
  align-items: center;
  gap: 7px;
  border: 1px solid #8cbe94;
  border-radius: 12px;
  color: #295f32;
  background: #f7fbf7;
  font: inherit;
  font-weight: 700;
  line-height: 1.3;
  text-align: left;
}

.articles-index__group-button:after {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  margin-left: 2px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: '';
  transform: rotate(45deg) translateY(-2px);
  transition: transform .18s ease;
}

.articles-index__group-button:hover {
  border-color: #4f9159;
  background: #edf7ee;
}

.articles-index__group-button--active {
  border-color: #6e970b;
  color: #fff;
  background: #6e970b;
}

.articles-index__group-button--active:after {
  transform: rotate(225deg) translate(-2px, -2px);
}

.articles-index__group-count {
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.articles-index__group-button--active:hover {
  color: #fff;
  background: #5d8209;
}

.articles-index__group-button:focus-visible,
.articles-index__category-link:focus-visible {
  outline: 3px solid rgba(51, 153, 51, .34);
  outline-offset: 3px;
}

.articles-index__group-panels {
  margin-top: 12px;
}

.articles-index__group-panel {
  padding: 16px;
  border: 1px solid #dbe7dd;
  border-radius: 14px;
  background: #fbfdfb;
}

.articles-index__group-panel + .articles-index__group-panel {
  margin-top: 10px;
}

.articles-index--groups-enhanced .articles-index__group-panel {
  display: none;
}

.articles-index--groups-enhanced .articles-index__group-panel--active {
  display: block;
}

.articles-index__category-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.articles-index__category-link {
  display: inline-flex;
  min-width: 0;
  min-height: 36px;
  padding: 7px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid #ceddd0;
  border-radius: 999px;
  color: #315f38;
  background: #f8fbf8;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-decoration: none;
}

.articles-index__category-link:hover {
  border-color: #8cbe94;
  color: #244f2b;
  background: #edf7ee;
}

.articles-index__category-link--active,
.articles-index__category-link[aria-current="page"] {
  border-color: #6e970b;
  color: #fff;
  background: #6e970b;
}

.articles-index__category-count {
  flex: 0 0 auto;
  padding: 1px 6px;
  border-radius: 999px;
  color: #537258;
  background: #e5efe6;
  font-size: 12px;
}

.articles-index__category-link--active .articles-index__category-count,
.articles-index__category-link[aria-current="page"] .articles-index__category-count {
  color: #456409;
  background: #fff;
}

.articles-index__active-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.articles-index__active-filter {
  display: inline-flex;
  min-height: 34px;
  padding: 6px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid #d4e4d6;
  border-radius: 999px;
  color: #426246;
  background: #f4f9f4;
  font-size: 14px;
}

.articles-index__active-filter a {
  color: #286432;
  font-weight: 700;
}

.articles-index__results {
  margin: 0 0 20px;
  color: #536b57;
  font-weight: 700;
}

.articles-index__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.articles-index__card {
  min-width: 0;
}

.articles-index__card-link {
  display: flex;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #e1e9e2;
  border-radius: 14px;
  color: inherit;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 70, 40, .07);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.articles-index__card-link:hover {
  transform: translateY(-3px);
  border-color: #acd0b2;
  box-shadow: 0 14px 30px rgba(36, 70, 40, .13);
  color: inherit;
}

.articles-index__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9f0e9;
}

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

.articles-index__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5efe6, #f5f8f3);
  color: #5e7c62;
  font-size: 15px;
  font-weight: 700;
}

.articles-index__video-badge {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  color: #fff;
  background: rgba(24, 43, 28, .86);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.articles-index__card-body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.articles-index__category-badge {
  align-self: flex-start;
  margin-bottom: 10px;
  padding: 4px 8px;
  border-radius: 999px;
  color: #2e6737;
  background: #e9f4ea;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.articles-index__card h2 {
  margin: 0;
  color: #254a2b;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.articles-index__card p {
  margin: 12px 0 0;
  color: #5a6a5c;
  font-size: 15px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.articles-index__card time {
  margin-top: 15px;
  color: #68756a;
  font-size: 13px;
}

.articles-index__read-more {
  margin-top: auto;
  padding-top: 17px;
  color: #286432;
  font-size: 14px;
  font-weight: 700;
}

.articles-index__empty {
  padding: 36px;
  border: 1px solid #e1e9e2;
  border-radius: 14px;
  background: #fff;
  text-align: center;
}

.articles-index__empty h2 {
  margin: 0 0 18px;
  color: #314a35;
  font-size: 20px;
}

.articles-index__pagination {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.articles-index__pagination a,
.articles-index__pagination span {
  display: inline-flex;
  min-width: 40px;
  min-height: 40px;
  padding: 8px 11px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d6e3d7;
  border-radius: 8px;
  color: #285f31;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.articles-index__pagination a:hover {
  border-color: #8cbe94;
  background: #f2f8f2;
}

.articles-index__pagination span[aria-current="page"] {
  border-color: #6e970b;
  color: #fff;
  background: #6e970b;
}

.articles-index__pagination span[aria-hidden="true"] {
  min-width: auto;
  border-color: transparent;
  background: transparent;
}

@media (max-width: 900px) {
  .articles-index__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .articles-index { padding-top: 22px; }
  .articles-index__hero { min-height: 0; }
  .articles-index__search { padding: 15px; }
  .articles-index__search-form > div { flex-direction: column; }
  .articles-index__search-form .btn { width: 100%; }
  .articles-index__group-buttons { display: grid; grid-template-columns: 1fr; }
  .articles-index__group-button { width: 100%; min-height: 50px; }
  .articles-index__group-panel { padding: 14px; }
  .articles-index__category-link { max-width: 100%; }
  .articles-index__grid { grid-template-columns: 1fr; }
}

.article-detail { padding: 34px 0 68px; color: #293a2d; }
.article-detail__breadcrumbs { margin-bottom: 22px; }
.article-detail__article { min-width: 0; }
.article-detail__header { margin-bottom: 28px; }
.article-detail__category { display: inline-block; margin-bottom: 13px; padding: 5px 10px; border-radius: 999px; color: #2e6737; background: #e9f4ea; font-size: 13px; font-weight: 700; }
.article-detail__header h1 { margin: 0; color: #254a2b; font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; line-height: 1.13; overflow-wrap: anywhere; }
.article-detail__meta { display: flex; gap: 10px; margin-top: 16px; color: #6a786c; font-size: 14px; flex-wrap: wrap; }
.article-detail__meta span:before { margin-right: 10px; color: #97a99a; content: '•'; }
.article-detail__lead { margin-top: 22px; color: #405c45; font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; line-height: 1.55; }
.article-detail__media, .article-detail__video { margin: 0 0 32px; overflow: hidden; border: 1px solid #e0eae1; border-radius: 16px; background: #edf4ed; }
.article-detail__media img { display: block; width: 100%; max-height: 560px; object-fit: cover; }
.article-detail__media--placeholder { display: flex; min-height: 280px; align-items: center; justify-content: center; color: #5f7c64; background: linear-gradient(135deg, #e5efe6, #f6f9f5); font-size: 16px; font-weight: 700; }
.article-detail__video { position: relative; padding-top: 56.25%; }
.article-detail__video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.article-detail__content { color: #354639; font-size: 18px; line-height: 1.78; overflow-wrap: anywhere; }
.article-detail__content:after { display: block; clear: both; content: ''; }
.article-detail__content h2, .article-detail__content h3 { margin: 1.7em 0 .65em; color: #254a2b; font-weight: 700; line-height: 1.25; }
.article-detail__content h2 { font-size: clamp(24px, 3vw, 30px); }
.article-detail__content h3 { font-size: clamp(20px, 2.5vw, 24px); }
.article-detail__content p, .article-detail__content ul, .article-detail__content ol { margin: 0 0 1.25em; }
.article-detail__content img { max-width: 100%; height: auto; }
.article-detail__content a { color: #286432; font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: .15em; }
.article-detail__content a:focus-visible, .article-detail__related-card a:focus-visible { outline: 3px solid rgba(51,153,51,.34); outline-offset: 3px; }
.article-detail__home { margin-top: 36px; padding: 24px; border: 1px solid #d9e7db; border-radius: 16px; background: #f8fbf8; box-shadow: 0 8px 22px rgba(36,70,40,.05); }
.article-detail__home > span { display: block; color: #397342; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.article-detail__home h2 { margin: 7px 0 8px; color: #254a2b; font-size: 23px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.article-detail__home p { margin: 0 0 16px; color: #4b654f; line-height: 1.55; overflow-wrap: anywhere; }
.article-detail__related { margin-top: 48px; padding-top: 34px; border-top: 1px solid #dce8de; }
.article-detail__related h2 { margin: 0 0 18px; color: #254a2b; font-size: 26px; font-weight: 700; }
.article-detail__related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.article-detail__related-card { min-width: 0; }
.article-detail__related-card a { display: block; height: 100%; overflow: hidden; border: 1px solid #e1e9e2; border-radius: 12px; color: inherit; background: #fff; box-shadow: 0 6px 18px rgba(36,70,40,.06); text-decoration: none; }
.article-detail__related-card img, .article-detail__related-placeholder { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-detail__related-placeholder { display: flex; align-items: center; justify-content: center; color: #5f7c64; background: #edf4ed; font-size: 13px; font-weight: 700; }
.article-detail__related-body { display: flex; min-height: 148px; flex-direction: column; padding: 14px; }
.article-detail__related-body > span { margin-bottom: 8px; color: #397342; font-size: 12px; font-weight: 700; }
.article-detail__related-body strong { color: #254a2b; line-height: 1.35; overflow-wrap: anywhere; }
.article-detail__related-body time { margin-top: auto; padding-top: 12px; color: #68756a; font-size: 12px; }
.article-detail__cta { margin-top: 42px; padding: clamp(24px, 4vw, 36px); border: 1px solid #d3e4d5; border-radius: 16px; background: linear-gradient(135deg, #edf7ee, #fff); }
.article-detail__cta > span { color: #397342; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; }
.article-detail__cta h2 { margin: 8px 0 10px; color: #254a2b; font-size: clamp(24px, 3.5vw, 32px); font-weight: 700; line-height: 1.2; }
.article-detail__cta p { margin: 0 0 18px; color: #4b654f; font-size: 17px; line-height: 1.55; }
.article-detail__cta div { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 680px) { .article-detail { padding-top: 22px; } .article-detail__container { width: min(100% - 24px, 900px); } .article-detail__content { font-size: 17px; line-height: 1.7; } .article-detail__related-grid { grid-template-columns: 1fr; } .article-detail__cta div .btn { width: 100%; } }
