/* HelpTana / Polish Fundacja landing page only / reference image, 2026-11-07 */
body.htf-fundacja-pl-view { margin:0; background:#fffaf0; }
body.htf-fundacja-pl-view > .ht-topbar,
body.htf-fundacja-pl-view > .ht-footer { display:none !important; }
body.htf-fundacja-pl-view .ht-root { display:contents; }
.htf-root, .htf-root * { box-sizing:border-box; }
.htf-root { --htfgreen:#183e23; --htforange:#ed830b; --htfcream:#fff7e9; --htfink:#232321; --htfborder:#e7d7c2; color:var(--htfink); background:linear-gradient(180deg,#fff9ee 25%,#fff7e8 64%,#fdf7ec); font:400 15px/1.48 system-ui,-apple-system,Segoe UI,sans-serif; }
.htf-root img {max-width:100%;height:auto;}
.htf-root a {color:inherit;}
.htf-root a:focus-visible,.htf-root summary:focus-visible {outline:3px solid #f47a22;outline-offset:4px;}
.htf-wrap { width:min(100% - 84px,1150px);margin-inline:auto; }
.htf-root h1,.htf-root h2,.htf-root h3 { font-family:Georgia,'Times New Roman',serif;letter-spacing:-.035em;line-height:1.12; }
.htf-root h2 { font-weight:750; }

/* The legacy theme header and footer are retained in DOM for WP hooks, but visually hidden. */
.htf-topbar {background:#fffdf7; position:relative;z-index:50; border-bottom:2px solid transparent;border-image:linear-gradient(90deg,#1d4d26,#e5ad49,#f28e32) 1;box-shadow:0 1px 3px #53391d19;}
.htf-topbar-inner {min-height:84px;display:flex;justify-content:space-between;align-items:center;gap:20px;}
.htf-brand {display:inline-flex;align-items:center;text-decoration:none;gap:5px;flex:0 0 auto;min-width:0;}
.htf-brand img {width:85px;height:75px;object-fit:contain;display:block;mix-blend-mode:multiply;}
.htf-brand-text {display:flex;flex-direction:column;line-height:1.05;color:var(--htfgreen);white-space:nowrap;}
.htf-brand-text strong {font:700 27px/.99 Georgia,'Times New Roman',serif;letter-spacing:-.05em;}
.htf-brand-text small {font-weight:700;font-size:12px;text-align:right;letter-spacing:.08em;color:#5e3822;margin-top:4px;}
.htf-nav {margin:auto; display:flex;align-items:center;justify-content:center;gap:clamp(12px,2.2vw,30px);min-width:0;}
.htf-nav a {display:flex;align-items:center;justify-content:center;flex-direction:column;gap:3px;color:#193c21;text-decoration:none;font-size:13px;font-weight:750;white-space:nowrap;line-height:1.15;transition:color .2s;}
.htf-nav a:hover,.htf-nav a.is-current:hover {color:#df7310;}
.htf-nav a svg {stroke-width:1.8;}
.htf-nav a.is-current {color:#315a36;}
.htf-header-tools {display:flex;align-items:center;gap:6px;flex:0 0 auto;}
.htf-header-tools .ht-language-menu {margin:0;}
.htf-header-tools .ht-language-toggle {width:72px;height:57px;min-height:0;display:flex;align-items:center;justify-content:center;border-radius:25px;box-shadow:none;}
.htf-header-tools .ht-language-gif {width:47px;height:47px;object-fit:contain;}
.htf-header-tools .ht-menu-hamburger {display:none;}
.htf-header-tools .ht-language-dropdown {z-index:1000;}
.htf-mobile-menu {display:none;position:relative;}
.htf-mobile-menu summary {cursor:pointer;list-style:none;display:flex;align-items:center;gap:6px;border:1px solid #decdb4;border-radius:10px;padding:8px;color:var(--htfgreen);font-weight:800;}
.htf-mobile-menu summary::-webkit-details-marker {display:none;}
.htf-mobile-menu nav {position:absolute;z-index:101;right:0;top:calc(100% + 8px);display:grid;gap:0;width:190px;padding:6px;background:#fffdf7;border:1px solid var(--htfborder);box-shadow:0 13px 24px #1c341c22;border-radius:11px;}
.htf-mobile-menu nav a {text-decoration:none;font-weight:700;padding:10px 12px;border-radius:7px;}
.htf-mobile-menu nav a:hover {background:#f8ead1;}

/* Reference hero: text is selectable, photography is a separate optimized image. */
.htf-hero {position:relative;min-height:340px;display:flex;align-items:center;overflow:hidden;background:linear-gradient(95deg,#fdf1db 0%,#fff2db 40%,#ded8ae 100%);isolation:isolate;}
.htf-hero-img {position:absolute;right:0;top:0;bottom:0;width:64%;background-repeat:no-repeat;background-position:52% 39%;background-size:cover;z-index:0;}
.htf-hero:before {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;background:linear-gradient(90deg,#fff1d9 0%,rgba(255,245,227,.98) 20%,rgba(255,243,223,.93) 30%,rgba(255,240,219,.36) 52%,rgba(255,241,213,0) 72%);}
.htf-hero:after {content:"";position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.18;background-image:radial-gradient(#8e6d3f .5px,transparent .5px);background-size:6px 6px;}
.htf-illustration-note {position:absolute;right:16px;bottom:6px;color:#fff;font-size:10px;z-index:3;text-shadow:0 1px 3px #1123;font-weight:700;letter-spacing:.02em;}
.htf-hero-content {position:relative;z-index:2;padding-top:33px;padding-bottom:34px;}
.htf-hero h1 {margin:0;color:#1c4523;font-size:clamp(38px,4.6vw,59px);font-weight:750;line-height:1.1;letter-spacing:-.043em;max-width:710px;text-shadow:0 2px 3px #fff4e9aa;}
.htf-title-paint {color:#fff;display:table;width:max-content;max-width:100%;margin-top:9px;margin-left:-7px;padding:5px 15px 10px;background:#e8830e;box-shadow:6px 1px 0 #e8830e,-4px -1px 0 #e8830e;transform:rotate(-.4deg);font-size:.89em;text-shadow:none;line-height:1.05;}
.htf-hero p {margin:23px 0 19px;color:#20221e;font-weight:650;font-size:clamp(16px,1.8vw,20px);}
.htf-cta {display:inline-flex;align-items:center;gap:13px;min-height:54px;padding:13px 25px;border-radius:15px;color:#fff !important;background:linear-gradient(110deg,#d8490a,#e96b0a);font-weight:850;font-size:18px;text-decoration:none;box-shadow:0 6px 15px #9d3d1828;}
.htf-cta:hover {background:#c84b0a;transform:translateY(-1px);}

/* About */
.htf-intro {padding-top:36px;padding-bottom:37px;}
.htf-eyebrow {margin:0;font-size:11px;font-weight:850;letter-spacing:.1em;color:#69492c;}
.htf-intro h2 {font-size:clamp(35px,4.1vw,48px);margin:7px 0 11px;}
.htf-intro-copy {font-size:15px;line-height:1.55;margin:0 0 19px;max-width:900px;}
.htf-values {display:grid;grid-template-columns:repeat(3,1fr);gap:0;margin-top:19px;}
.htf-value {position:relative;text-align:center;padding:0 24px;min-height:158px;}
.htf-value:not(:last-child):after {content:"";position:absolute;right:0;top:19px;bottom:15px;width:1px;background:#e3cdb3;}
.htf-round-icon {width:65px;height:65px;border-radius:50%;margin:0 auto 8px;background:radial-gradient(circle at 40% 35%,#ffe8bd,#f4c994);display:grid;place-items:center;color:#1b5326;}
.htf-value h3 {font-size:21px;margin:0 0 5px;}
.htf-value p {font-size:14px;line-height:1.42;margin:0 auto;max-width:300px;}

/* Program cards */
.htf-programs {padding-top:4px;padding-bottom:32px;}
.htf-section-title {font-size:clamp(25px,2.8vw,33px);margin:0 0 19px;padding-left:17px;position:relative;}
.htf-section-title:before {content:"";display:block;position:absolute;top:2px;bottom:1px;left:0;width:4px;border-radius:3px;background:#ed8519;}
.htf-program-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:19px;}
.htf-program {display:flex;position:relative;flex-direction:column;align-items:stretch;text-align:left;min-width:0;min-height:232px;text-decoration:none;color:#232523 !important;background:#fffaf4;border:1px solid #e2d0b9;border-radius:11px;overflow:hidden;transition:border-color .18s,transform .18s,box-shadow .18s;box-shadow:0 5px 14px #70491f08;}
.htf-program:hover {transform:translateY(-4px);border-color:#e38b1a;box-shadow:0 12px 23px #70491f24;}
.htf-program-heading {display:flex;align-items:center;gap:8px;padding:12px 12px 0;min-height:63px;}
.htf-program-icon {width:42px;height:42px;border-radius:50%;flex:none;background:#edf0dc;color:#275829;display:grid;place-items:center;}
.htf-program:nth-child(4) .htf-program-icon {background:#ffedda;color:#eb6e0a;}
.htf-program h3 {font-size:20px;margin:0;font-weight:700;letter-spacing:-.04em;}
.htf-program p {font-size:13px;line-height:1.42;margin:8px 12px auto;min-height:48px;}
.htf-program-photo {display:block;width:100%;height:100px !important;object-fit:cover;object-position:center 45%;margin-top:7px;}
.htf-program-more {position:absolute;right:6px;bottom:5px;display:inline-flex;align-items:center;gap:0;background:rgba(255,250,240,.94);border-radius:99px;padding:4px 6px;color:#804609;font-size:10px;font-weight:800;opacity:0;transform:translateY(3px);transition:opacity .2s,transform .2s;}
.htf-program:hover .htf-program-more,.htf-program:focus-visible .htf-program-more {opacity:1;transform:translateY(0);}

/* Reasons + return to main homepage */
.htf-benefits {padding-top:8px;padding-bottom:39px;}
.htf-benefit-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:10px 0 26px;}
.htf-benefit {position:relative;text-align:center;min-height:106px;padding:0 12px;}
.htf-benefit:not(:last-child):after {content:"";position:absolute;right:0;top:3px;bottom:5px;background:#e6cfb7;width:1px;}
.htf-benefit-icon {display:grid;place-items:center;color:#c77b19;height:53px;margin-bottom:4px;}
.htf-benefit:first-child .htf-benefit-icon,.htf-benefit:last-child .htf-benefit-icon {color:#28592e;}
.htf-benefit p {font-size:14px;line-height:1.36;margin:3px 0 0;}
.htf-return {position:relative;padding:28px 0 0;text-align:center;border-top:1px solid #e3d1b7;}
.htf-return-link {display:inline-flex;align-items:center;justify-content:center;gap:14px;background:#215028;color:#fff !important;border-radius:25px;font:700 clamp(17px,2vw,22px)/1.2 Georgia,'Times New Roman',serif;text-decoration:none;padding:14px 25px;min-height:58px;box-shadow:0 5px 10px #17471d1a;}
.htf-return-link:hover {background:#103b1a;transform:translateY(-1px);}

/* Footer + preserved legal links */
.htf-footer {position:relative;background:#1e491f url('sawanna-stopka.webp') center bottom / 100% 96px no-repeat;color:#fff;overflow:hidden;padding:25px 0 90px;}
.htf-footer-inner {display:grid;grid-template-columns:1.03fr 1fr 1.05fr;gap:0;align-items:start;padding-bottom:18px;}
.htf-footer-inner > div {padding:0 29px;min-height:130px;}
.htf-footer-inner > div:first-child {padding-left:0;}
.htf-footer-inner > div:not(:last-child) {border-right:1px solid #eee6bc6b;}
.htf-footer-brand {display:block;width:max-content;font:700 37px/1.1 Georgia,serif;color:white !important;text-decoration:none;letter-spacing:-.04em;}
.htf-footer-mission em {display:block;font:italic 18px Georgia,serif;white-space:nowrap;margin-top:9px;}
.htf-footer-swoosh {display:block;width:190px;height:3px;margin-top:11px;border-radius:100%;background:#db8f26;transform:rotate(-2deg);}
.htf-footer h2 {margin:0 0 10px;font:700 19px Georgia,serif;color:#fff;}
.htf-footer-reg p {margin:4px 0;font-size:13px;line-height:1.3;}
.htf-footer-social {text-align:center;}
.htf-social-row {display:flex;gap:12px;flex-wrap:wrap;justify-content:center;margin-top:26px;}
.htf-social {color:#fff !important;width:44px;height:44px;border-radius:13px;display:grid;place-items:center;transition:transform .2s;text-decoration:none;}
.htf-social:hover {transform:translateY(-3px);}
.htf-social-facebook {background:#1877f2;}
.htf-social-instagram {background:linear-gradient(45deg,#fbb03b,#e23a53,#a322bc,#5a52d5);}
.htf-social-tiktok {background:#050505;}
.htf-social-youtube {background:#ec1b24;}
.htf-social svg {width:26px;height:26px;}
.htf-footer-legal {display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;border-top:1px solid #ffffff2b;padding-top:12px;font-size:11px;color:#fff9e9;}
.htf-footer-legal nav {display:flex;gap:15px;flex-wrap:wrap;}
.htf-footer-legal nav a {color:#fff9e9;text-decoration:none;}
.htf-footer-legal nav a:hover {text-decoration:underline;}

@media(max-width:1200px) {
  .htf-topbar-inner {gap:12px;}
  .htf-brand img {width:70px;height:64px;}
  .htf-brand-text strong {font-size:23px;}
  .htf-nav {gap:14px;}
  .htf-nav a {font-size:12px;}
  .htf-nav a svg {width:23px;height:23px;}
  .htf-wrap {width:min(100% - 72px,1150px);}
  .htf-footer-inner > div {padding-inline:24px;}
}
@media(max-width:940px) {
  .htf-topbar-inner {min-height:72px;}
  .htf-brand-text strong {font-size:24px;}
  .htf-nav {display:none;}
  .htf-mobile-menu {display:block;}
  .htf-hero {min-height:340px;}
  .htf-hero-img {width:70%;}
  .htf-hero h1 {max-width:600px;}
  .htf-program-grid {gap:11px;}
  .htf-program-heading {flex-direction:column;gap:3px;min-height:100px;text-align:center;padding:10px 9px 0;}
  .htf-program h3 {font-size:18px;}
  .htf-program p {font-size:12px;}
}
@media(max-width:700px) {
  .htf-wrap {width:min(100% - 34px,1150px);}
  .htf-topbar-inner {min-height:70px;gap:5px;}
  .htf-brand img {width:57px;height:53px;}
  .htf-brand-text strong {font-size:21px;}
  .htf-brand-text small {font-size:10px;}
  .htf-header-tools .ht-language-toggle {width:55px;height:47px;padding:3px;}
  .htf-header-tools .ht-language-gif {width:42px;height:42px;}
  .htf-mobile-menu summary {font-size:12px;padding:7px;}
  .htf-mobile-menu summary svg {width:19px;height:19px;}
  .htf-hero {min-height:460px;align-items:flex-start;}
  .htf-hero-img {width:100%;height:58%;top:auto;bottom:0;background-position:60% center;}
  .htf-hero:before {background:linear-gradient(180deg,#fff2db 0%,#fff2db 31%,rgba(255,242,220,.83) 47%,rgba(255,244,220,.05) 67%);}
  .htf-hero-content {padding:19px 0 210px;}
  .htf-hero h1 {font-size:clamp(32px,7.5vw,46px);max-width:650px;}
  .htf-title-paint {font-size:.80em;margin-top:6px;padding:7px 8px;}
  .htf-hero p {font-size:15px;margin:13px 0;}
  .htf-cta {font-size:16px;min-height:48px;padding:10px 16px;}
  .htf-intro {padding-top:29px;padding-bottom:15px;}
  .htf-intro h2 {font-size:36px;}
  .htf-intro-copy {font-size:14px;}
  .htf-desktop-only {display:none;}
  .htf-values {grid-template-columns:1fr;gap:14px;}
  .htf-value {min-height:0;padding:0 5px 14px;border-bottom:1px solid #ead8c1;}
  .htf-value:not(:last-child):after {display:none;}
  .htf-round-icon {width:59px;height:59px;}
  .htf-value h3 {font-size:21px;}
  .htf-value p {font-size:13px;max-width:340px;}
  .htf-programs {padding:15px 0 18px;}
  .htf-program-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;}
  .htf-program {min-height:236px;}
  .htf-program-heading {min-height:86px;}
  .htf-program-photo {height:85px !important;}
  .htf-program p {font-size:12px;min-height:42px;}
  .htf-program h3 {font-size:18px;}
  .htf-benefit-grid {grid-template-columns:repeat(2,minmax(0,1fr));row-gap:14px;}
  .htf-benefit:nth-child(2):after {display:none;}
  .htf-benefit-icon {height:43px;}
  .htf-benefit-icon svg {height:33px;width:33px;}
  .htf-benefit p {font-size:13px;}
  .htf-return-link {font-size:17px;gap:8px;padding:13px 17px;}
  .htf-return-link svg:first-child {width:25px;}
  .htf-footer {padding-top:26px;padding-bottom:80px;background-size:cover 80px;}
  .htf-footer-inner {grid-template-columns:1fr;gap:21px;}
  .htf-footer-inner > div,.htf-footer-inner > div:first-child {padding:0 0 16px;border-right:0 !important;border-bottom:1px solid #ffffff50;min-height:0;text-align:center;}
  .htf-footer-brand {margin:auto;}
  .htf-footer-mission em {white-space:normal;}
  .htf-footer-swoosh {margin:10px auto;}
  .htf-social-row {margin-top:12px;}
  .htf-footer-legal {justify-content:center;text-align:center;}
  .htf-footer-legal nav {justify-content:center;}
}
@media(max-width:390px) {
  .htf-brand-text strong {font-size:18px;}
  .htf-brand img {width:48px;height:49px;}
  .htf-mobile-menu summary span {display:none;}
  .htf-hero {min-height:475px;}
  .htf-hero h1 {font-size:32px;}
  .htf-program h3 {font-size:16px;}
  .htf-program-photo {height:76px !important;}
}
@media(prefers-reduced-motion:reduce) {
  .htf-root *, .htf-root *:before, .htf-root *:after {scroll-behavior:auto !important;animation:none !important;transition:none !important;}
}
