.family-zone { padding: 28px 0 56px; color: #405058; }
.family-zone__breadcrumbs { margin-bottom: 18px; }
.family-zone__hero { position: relative; display: flex; min-height: 390px; align-items: center; overflow: hidden; padding: 54px 58px; border: 1px solid #dcebd8; border-radius: 20px; background: linear-gradient(90deg,rgba(239,247,235,.98) 0%,rgba(239,247,235,.94) 50%,rgba(239,247,235,.58) 72%,rgba(239,247,235,.18) 100%),url('/img/hero-fundacja.jpg') center/cover no-repeat; box-shadow: 0 12px 30px rgba(34,55,75,.09); }
.family-zone__hero-content { position: relative; z-index: 1; max-width: 760px; }
.family-zone__eyebrow { display: inline-flex; align-items: center; gap: 8px; color: #5d850c; font-size: 13px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.family-zone__hero h1 { margin: 13px 0 16px; color: #24452b; font-size: clamp(36px,4.5vw,56px); font-weight: 700; line-height: 1.08; }
.family-zone__hero p { max-width: 720px; margin: 0; color: #4d6252; font-size: clamp(17px,2vw,19px); line-height: 1.65; }
.family-zone__hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 27px; }
.family-zone .btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 11px 19px; border-radius: 9px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.family-zone .btn-success { border-color: #6e970b; background: #6e970b; color: #fff; }
.family-zone .btn-success:hover,.family-zone .btn-success:focus { border-color: #5d8209; background: #5d8209; color: #fff; }
.family-zone__button-light { border: 1px solid #91b584; background: #fff; color: #315b32; }
.family-zone__button-light:hover,.family-zone__button-light:focus { border-color: #6e970b; background: #f0f7e5; color: #315b32; }
.family-zone__button-outline { border: 1px solid #6e970b; background: #fff; color: #496f09; }
.family-zone__button-outline:hover,.family-zone__button-outline:focus { background: #f1f7e8; color: #365608; }
.family-zone__hero-link { display: inline-block; margin-top: 19px; color: #466a12; font-size: 14px; font-weight: 700; text-decoration: none; }
.family-zone__hero-link:hover,.family-zone__hero-link:focus { color: #315b32; text-decoration: underline; text-underline-offset: 3px; }
.family-zone a:focus-visible,.family-zone summary:focus-visible { outline: 3px solid rgba(110,151,11,.42); outline-offset: 3px; }
.family-zone__section { margin-top: 58px; }
.family-zone__section--soft { padding: 40px; border: 1px solid #e1eadf; border-radius: 20px; background: #f5f9f2; }
.family-zone__section-heading { max-width: 790px; margin-bottom: 25px; }
.family-zone__section-heading h2 { margin: 9px 0 0; color: #2e4633; font-size: clamp(27px,3vw,39px); font-weight: 700; line-height: 1.2; }
.family-zone__benefits { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 17px; }
.family-zone__card { min-width: 0; height: 100%; padding: 24px 22px; border: 1px solid #dde8df; border-radius: 16px; background: #fff; box-shadow: 0 6px 18px rgba(34,55,75,.05); transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.family-zone__card:hover { border-color: #b7d08e; box-shadow: 0 10px 22px rgba(34,55,75,.10); transform: translateY(-2px); }
.family-zone__icon { display: inline-flex; width: 45px; height: 45px; align-items: center; justify-content: center; border-radius: 13px; background: #eaf5ee; color: #557e08; font-size: 21px; }
.family-zone__card h3,.family-zone__path-card h3,.family-zone__access-grid h3 { margin: 17px 0 9px; color: #315b32; font-size: 20px; font-weight: 700; line-height: 1.3; }
.family-zone__card p,.family-zone__path-card p,.family-zone__access-grid p { margin: 0; color: #59666b; line-height: 1.65; }
.family-zone__steps { position: relative; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; padding: 0; margin: 0; list-style: none; }
.family-zone__steps:before { position: absolute; top: 25px; right: 10%; left: 10%; height: 2px; background: #cee0c6; content: ''; }
.family-zone__steps li { position: relative; min-width: 0; text-align: center; }
.family-zone__step-number { position: relative; z-index: 1; display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border: 5px solid #f5f9f2; border-radius: 50%; background: #6e970b; color: #fff; font-weight: 700; }
.family-zone__steps h3 { margin: 14px 0 7px; color: #315b32; font-size: 18px; font-weight: 700; line-height: 1.35; }
.family-zone__steps p { margin: 0; color: #59666b; font-size: 14px; line-height: 1.6; }
.family-zone__search-paths { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
.family-zone__path-card { display: flex; min-width: 0; min-height: 285px; align-items: flex-start; flex-direction: column; padding: 30px; border: 1px solid #dce8dc; border-radius: 18px; background: #fff; box-shadow: 0 8px 24px rgba(34,55,75,.06); }
.family-zone__path-card--advice { background: #f7fbf5; }
.family-zone__path-card p { margin-bottom: 24px; }
.family-zone__path-card .btn { margin-top: auto; }
.family-zone__access { padding: 36px 38px; border: 1px solid #dce8d8; border-radius: 20px; background: #f4f8f1; }
.family-zone__access-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.family-zone__access-grid article { display: flex; min-width: 0; flex-direction: column; padding: 24px; border: 1px solid #dce7dd; border-radius: 14px; background: #fff; }
.family-zone__access-grid h3 { margin-top: 0; }
.family-zone__access-grid p { margin-bottom: 21px; }
.family-zone__access-grid .btn { align-self: flex-start; margin-top: auto; }
.family-zone__faq { max-width: 940px; }
.family-zone__faq-list { border-top: 1px solid #dce5de; }
.family-zone__faq details { border-bottom: 1px solid #dce5de; }
.family-zone__faq summary { position: relative; padding: 18px 34px 18px 0; color: #315b32; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.family-zone__faq summary::-webkit-details-marker { display: none; }
.family-zone__faq summary:after { position: absolute; top: 50%; right: 5px; color: #6e970b; content: '+'; font-size: 25px; font-weight: 400; transform: translateY(-50%); }
.family-zone__faq details[open] summary:after { content: '−'; }
.family-zone__faq details p { max-width: 800px; margin: 0; padding: 0 34px 19px 0; color: #59666b; line-height: 1.65; }
.family-zone__faq details a { color: #557d0a; font-weight: 700; }
.family-zone__final-cta { display: flex; align-items: center; justify-content: space-between; gap: 30px; margin-top: 58px; padding: 38px 40px; border-radius: 20px; background: #2f4f35; color: #fff; }
.family-zone__final-cta h2 { margin: 0 0 10px; color: #fff; font-size: clamp(26px,3vw,37px); font-weight: 700; line-height: 1.2; }
.family-zone__final-cta p { max-width: 700px; margin: 0; color: #e8f0e7; font-size: 16px; line-height: 1.6; }
.family-zone__final-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 10px; }
.family-zone__button-on-dark { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; }
.family-zone__button-on-dark:hover,.family-zone__button-on-dark:focus { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
@media(max-width:991px) {
  .family-zone__benefits { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .family-zone__steps { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px 20px; }
  .family-zone__steps:before { display: none; }
  .family-zone__final-cta { align-items: flex-start; flex-direction: column; }
}
@media(max-width:767px) {
  .family-zone { padding: 20px 0 42px; }
  .family-zone__breadcrumbs { margin-bottom: 14px; }
  .family-zone__hero { min-height: 0; padding: 30px 22px; border-radius: 15px; background: linear-gradient(90deg,rgba(239,247,235,.97),rgba(239,247,235,.79)),url('/img/hero-fundacja.jpg') center/cover no-repeat; }
  .family-zone__hero h1 { font-size: 34px; }
  .family-zone__hero p { font-size: 16px; }
  .family-zone__hero-actions { align-items: stretch; flex-direction: column; }
  .family-zone__hero-actions .btn { width: 100%; }
  .family-zone__hero-link { line-height: 1.5; }
  .family-zone__section { margin-top: 43px; }
  .family-zone__section--soft { padding: 25px 18px; border-radius: 15px; }
  .family-zone__benefits,.family-zone__search-paths,.family-zone__access-grid { grid-template-columns: 1fr; }
  .family-zone__card { padding: 21px 19px; }
  .family-zone__card:hover { transform: none; }
  .family-zone__steps { grid-template-columns: 1fr; gap: 23px; }
  .family-zone__steps li { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 13px; text-align: left; }
  .family-zone__steps h3 { margin-top: 1px; }
  .family-zone__path-card { min-height: 0; padding: 24px 20px; }
  .family-zone__path-card .btn { width: 100%; }
  .family-zone__access { padding: 25px 18px; border-radius: 15px; }
  .family-zone__access-grid article { padding: 21px 18px; }
  .family-zone__access-grid .btn { width: 100%; }
  .family-zone__faq summary { padding: 16px 30px 16px 0; font-size: 16px; }
  .family-zone__final-cta { gap: 23px; margin-top: 43px; padding: 29px 21px; border-radius: 15px; }
  .family-zone__final-actions { width: 100%; flex-direction: column; }
  .family-zone__final-actions .btn { width: 100%; }
}
@media(max-width:359px) {
  .family-zone__hero { padding: 26px 17px; }
  .family-zone__hero h1 { font-size: 31px; }
  .family-zone__card,.family-zone__path-card,.family-zone__access-grid article { padding-right: 16px; padding-left: 16px; }
}
