/* Wszystko o sercu, artykul (P9, wizualizacja 2026-10-22-serce-P9-wizualizacja.png):
   bez lewej kolumny menu dzialu, tresc szeroka + boczna kolumna "Na tej stronie".
   Menu portalu (k-rail) nie jedzie za przewijaniem, jak na stronie glownej.
   Wlasna klasa .se-grid zamiast zmiany .ti-grid (uzywaja jej strony "Informacje"). */
.se-grid{grid-template-columns:minmax(0,1fr) 300px}
.se-shell .k-rail{position:static}
.se-shell .k-rail-in{position:static}
.se-shell .se-wroc{display:inline-flex;align-items:center;gap:8px;margin:2px 0 4px;padding:8px 18px 8px 12px;border:1.5px solid var(--pink);border-radius:999px;background:#fff;color:var(--pink);font-size:14px;font-weight:800;transition:background-color .2s,color .2s}
.se-wroc svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.se-shell .se-wroc:hover,.se-shell .se-wroc:focus-visible{background:var(--pink);color:#fff}
@media(min-width:1101px){.se-shell .se-wroc{display:flex;width:max-content;position:relative;z-index:2;margin-top:-50px}.se-shell .ti-head{margin-top:10px}}
@media(max-width:1380px) and (min-width:1101px){.se-grid{grid-template-columns:minmax(0,1fr) 260px}}
@media(max-width:1100px){.se-grid{grid-template-columns:minmax(0,1fr)}.se-shell .se-wroc{margin:4px 0 0;font-size:13px}}

/* Suwak porownania: wada pod spodem, zdrowe serce na wierzchu przyciete do --poz */
.ti-prose .se-por{max-width:720px;margin:18px auto 22px}
.se-por-okno{position:relative;overflow:hidden;border-radius:18px;border:1px solid var(--edge);background:#fff;touch-action:pan-y;user-select:none}
.ti-prose .se-por img{display:block;width:100%;max-width:none;height:auto;margin:0;border-radius:0}
.se-por-zdrowe{position:absolute;inset:0;clip-path:inset(0 calc(100% - var(--poz)) 0 0)}
.se-por-zdrowe img{height:100%!important;object-fit:cover}
.se-por-etyk{position:absolute;top:14px;z-index:2;max-width:44%;padding:7px 14px;border-radius:999px;font-size:14px;font-weight:800;line-height:1.25;box-shadow:0 4px 14px rgba(20,55,78,.12);pointer-events:none}
.se-por-etyk-l{left:14px;background:#fff;color:var(--ink)}
.se-por-etyk-p{right:14px;background:#ffe8f0;color:var(--pink);text-align:right}
.se-por-uchwyt{position:absolute;top:0;bottom:0;left:var(--poz);z-index:2;width:3px;margin-left:-1.5px;background:#fff;box-shadow:0 0 8px rgba(20,55,78,.25);pointer-events:none}
.se-por-uchwyt:after{content:"";position:absolute;top:50%;left:50%;width:46px;height:46px;margin:-23px 0 0 -23px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314374e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 7-5 5 5 5M15 7l5 5-5 5'/%3E%3C/svg%3E") center/24px no-repeat;box-shadow:0 4px 16px rgba(20,55,78,.28)}
.se-por input[type=range]{position:absolute;inset:0;z-index:3;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none;background:none}
.se-por input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:46px;height:2000px}
.se-por input[type=range]::-moz-range-thumb{width:46px;height:2000px;border:0}
.se-por-okno:has(input:focus-visible) .se-por-uchwyt:after{outline:3px solid var(--pink);outline-offset:2px}
.se-por-hint{display:none;margin-top:8px;text-align:center;font-size:13px;color:var(--soft)}
.se-por.is-on .se-por-hint{display:block}
@media(max-width:700px){.se-por-etyk{top:8px;padding:5px 10px;font-size:12px}.se-por-etyk-l{left:8px}.se-por-etyk-p{right:8px}.se-por-uchwyt:after{width:40px;height:40px;margin:-20px 0 0 -20px}}

/* Lista wad na stronie Wrodzone wady serca: siatka kart zamiast sciany linkow */
.ti-prose .se-wady{list-style:none;margin:18px 0 24px;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.ti-prose .se-wady li{margin:0;padding:0}
.ti-prose .se-wady li:before{content:none}
.ti-prose a.se-wada{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:8px;height:100%;padding:16px 40px 16px 64px;border:1px solid var(--edge);border-radius:16px;background:#fff;color:var(--ink);text-decoration:none;transition:border-color .2s,box-shadow .2s}
.ti-prose a.se-wada:before{content:"";position:absolute;left:14px;top:14px;width:38px;height:38px;border-radius:50%;background:#ffe8f0 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff2a75' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 8.6c0 5.6-8.8 10.9-8.8 10.9S3.2 14.2 3.2 8.6A4.6 4.6 0 0 1 12 6.5a4.6 4.6 0 0 1 8.8 2.1z'/%3E%3Cpath d='M6.5 11.5h3l1.3-2.3 2.2 4.6 1.4-2.3h3.1'/%3E%3C/svg%3E") center/22px no-repeat}
.ti-prose a.se-wada:after{content:"";position:absolute;right:16px;top:50%;width:9px;height:9px;margin-top:-5px;border:solid var(--pink);border-width:2.4px 2.4px 0 0;transform:rotate(45deg)}
.ti-prose a.se-wada:hover,.ti-prose a.se-wada:focus-visible{border-color:var(--pink);box-shadow:0 6px 18px rgba(255,42,117,.12)}
.se-wada-n{font-size:15px;font-weight:800;line-height:1.3;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.se-wada-s{padding:3px 10px;border-radius:8px;background:#eef3f6;color:var(--soft);font-size:12.5px;font-weight:700}
@media(max-width:1380px){.ti-prose .se-wady{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.ti-prose .se-wady{grid-template-columns:minmax(0,1fr);gap:8px}.ti-prose a.se-wada{padding:12px 36px 12px 60px}}
@media(prefers-reduced-motion:reduce){.se-shell .se-wroc,.ti-prose a.se-wada{transition:none}}

/* Strona glowna dzialu /wszystko-o-sercu/ (hub, wizualizacja P2): karta naglowka z ilustracja
   i siatka kafli stron glownych 4 x 2. Prefiks sh- = serce hub. */
.sh-main{padding-bottom:30px}
@media(min-width:1101px){.sh-main .k-top{position:relative;z-index:2}}
.sh-hero{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,400px);align-items:center;gap:24px;min-height:210px;margin:-36px 0 16px;padding:10px 34px 10px 40px;overflow:hidden}
.sh-hero h1{margin:0;font:700 86px/1 Caveat,cursive;color:var(--ink);letter-spacing:.2px;white-space:nowrap}
.sh-hero .sh-doodle{width:64px;height:56px;margin-left:6px;vertical-align:28px;fill:none;stroke:var(--pink);stroke-width:4;stroke-linecap:round;stroke-linejoin:round}
.sh-hero p{margin:12px 0 0;font-size:22px;line-height:1.35;color:var(--soft)}
.sh-ilustracja{display:block;width:100%;height:auto;max-height:220px;object-fit:contain;mix-blend-mode:multiply}
.sh-kafle{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.sh-kafle>li{display:flex}
.sh-kafel{flex:1;display:flex;flex-direction:column;align-items:flex-start;min-height:240px;padding:24px 26px 22px;background:#fff;border-radius:var(--r);box-shadow:var(--sh);color:var(--ink);transition:transform .2s,box-shadow .2s}
.sh-ikona{display:grid;place-items:center;width:84px;height:80px;border-radius:20px;background:#ffe8f0}
.sh-ikona svg{width:50px;height:50px;fill:none;stroke:var(--pink);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sh-kafel h2{margin:20px 0 0;font-size:22px;line-height:1.2;font-weight:800;color:var(--ink)}
.sh-kafel p{margin:8px 0 16px;font-size:16px;line-height:1.45;color:var(--soft)}
.sh-strzalka{display:grid;place-items:center;width:48px;height:48px;margin-top:auto;border-radius:50%;background:#ffe8f0;transition:background-color .2s}
.sh-kafel>*:last-child{margin-top:auto}
.sh-strzalka svg{width:20px;height:20px;fill:none;stroke:var(--pink);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.sh-kafel:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(28,70,96,.14)}
.sh-kafel:hover .sh-strzalka{background:var(--pink)}
.sh-kafel:hover .sh-strzalka svg{stroke:#fff}
.sh-kafel:focus-visible{outline:3px solid var(--pink);outline-offset:3px}

@media(max-width:1380px) and (min-width:1101px){.sh-hero{grid-template-columns:minmax(0,1fr) 300px;padding-right:80px}.sh-hero h1{font-size:64px}.sh-hero p{font-size:19px}.sh-kafel{padding:22px 20px}.sh-kafel h2{font-size:20px}.sh-kafel p{font-size:15px}}
@media(max-width:1100px){.sh-kafle{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sh-hero{margin-top:0;padding:18px 24px}.sh-kafel p{margin-bottom:14px}.sh-hero h1{font-size:58px}.sh-hero p{font-size:18px}}
@media(max-width:700px){
  .sh-hero{grid-template-columns:minmax(0,1fr);gap:4px;padding:20px 20px 10px;text-align:left}
  .sh-hero h1{font-size:44px;white-space:nowrap}.sh-hero .sh-doodle{width:34px;height:30px;margin-left:2px;vertical-align:14px}
  .sh-hero p{font-size:17px;margin-top:8px}
  .sh-ilustracja{max-height:170px;margin:4px auto 0}
  .sh-kafle{grid-template-columns:minmax(0,1fr);gap:12px}
  .sh-kafel{display:grid;grid-template-columns:62px minmax(0,1fr) 40px;grid-template-rows:auto auto;column-gap:14px;align-items:center;min-height:0;padding:16px}
  .sh-ikona{grid-row:1/3;width:62px;height:60px;border-radius:16px}.sh-ikona svg{width:34px;height:34px}
  .sh-kafel h2{margin:0;font-size:18px;align-self:end}
  .sh-kafel p{margin:3px 0 0;font-size:14.5px;align-self:start;grid-column:2}
  .sh-strzalka{grid-column:3;grid-row:1/3;width:40px;height:40px;margin:0}
  .sh-kafel>*:last-child{margin-top:0}}
@media(max-width:359px){.sh-hero{padding:18px 16px 10px}.sh-hero h1{font-size:36px}.sh-hero .sh-doodle{width:28px;height:25px}}
@media(prefers-reduced-motion:reduce){.sh-kafel,.sh-strzalka{transition:none}.sh-kafel:hover{transform:none}}
/* Obrazy z importu maja width="1200", a filmy YouTube width="500": bez limitu wychodzily poza kolumne tresci (obraz pod model 3D, film poza ekran telefonu). */
.ti-prose img{max-width:100%;height:auto}
.ti-prose iframe{max-width:100%;height:auto;aspect-ratio:16/9}
/* Budowa serca: model 3D i tresc to dwie karty w srodkowej kolumnie (wizualizacja P6), legenda "Czesci serca" w prawej. */
.se-srodek{display:grid;gap:16px;min-width:0}
