/* Strona produktu Talerz (/talerz/ i /pl/talerz/). Nagłówek i stopka z /assets/style.css, reszta tutaj.
   Kolory marki z aplikacji: zieleń #1E4D38, szałwia #D6F0E2, krem #FFF6E8, morela #F4B97A, pomidor #D9543B.
   Ruch tylko z JS i tylko bez „ogranicz ruch”: bez skryptu wszystko jest widoczne i stoi w miejscu. */
.tz {
  --z1: #0f2219; --z2: #13291f; --z3: #1E4D38; --z4: #2B634B; --sz: #D6F0E2; --krem: #FFF6E8; --krem2: #E6D9BF;
  --mor: #F4B97A; --pom: #D9543B; --braz: #8F4F0F; --t2: #b9cfc2; --lin: rgba(214, 240, 226, .14);
  background: var(--z1); color: var(--krem); overflow-x: clip;
}
.tz a { color: var(--krem); text-decoration-color: var(--mor); }
.tz a:focus-visible, .tz button:focus-visible, .tz summary:focus-visible { outline: 2px solid var(--mor); outline-offset: 3px; border-radius: 8px; }
.tz h1, .tz h2, .tz h3 { text-wrap: balance; letter-spacing: -.015em; }
.tz h2 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.08; margin: 0 0 14px; font-weight: 800; }
.tz .wstep { color: var(--t2); font-size: 18px; max-width: 60ch; margin: 0 0 36px; }
.tz .naglowek { text-align: center; } .tz .naglowek .wstep { margin-inline: auto; }
.tz .etykieta { color: var(--mor); }
.tz section { padding-block: clamp(64px, 9vw, 112px); position: relative; }
.tz .pas2 { background: var(--z2); border-block: 1px solid var(--lin); }

/* przyciski */
.tz .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-top: 28px; }
.tz .play { display: inline-flex; align-items: center; gap: 10px; background: var(--mor); color: #2a1606; font-weight: 800;
  text-decoration: none; padding: 14px 24px; border-radius: 999px; font-size: 17px; box-shadow: 0 10px 30px rgba(244, 185, 122, .25);
  transition: transform .2s ease, box-shadow .2s ease; }
.tz .play:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(244, 185, 122, .35); }
.tz .play svg { width: 22px; height: 22px; }
.tz .drugi { color: var(--krem); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--mor); padding-bottom: 2px; }
.tz .qr { display: flex; align-items: center; gap: 10px; color: var(--t2); font-size: 13px; line-height: 1.3; }
.tz .qr img { width: 76px; border-radius: 10px; background: #fff; padding: 4px; }
@media (max-width: 760px) { .tz .qr { display: none; } }
.tz .play, .tz .drugi { white-space: nowrap; }
/* w hero sam kod QR (podpis jest w tekście alternatywnym), żeby przycisk, link i kod mieściły się w jednym rzędzie */
.tz .hero-tz .qr { font-size: 0; gap: 0; }

/* hero */
.tz .hero-tz { padding-block: clamp(48px, 7vw, 96px) clamp(56px, 8vw, 104px);
  background: radial-gradient(1200px 600px at 85% 20%, rgba(43, 99, 75, .55), transparent 60%),
              radial-gradient(800px 500px at 0% 100%, rgba(244, 185, 122, .10), transparent 60%), var(--z1); }
.tz .hero-siatka { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 6vw, 72px); align-items: center; }
@media (max-width: 900px) { .tz .hero-siatka { grid-template-columns: 1fr; } }
.tz .marka { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.tz .marka img { width: 56px; border-radius: 14px; }
.tz .marka b { font-size: 20px; } .tz .marka span { display: block; color: var(--t2); font-size: 14px; }
.tz h1 { font-size: clamp(36px, 6vw, 64px); line-height: 1.02; margin: 0 0 20px; font-weight: 850; }
.tz h1 em { font-style: normal; color: var(--mor); }
.tz .hero-tz p.pod { font-size: clamp(17px, 2vw, 20px); color: var(--t2); max-width: 52ch; margin: 0; }
.tz .znaczki { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tz .znaczki li { border: 1px solid var(--lin); background: rgba(214, 240, 226, .06); border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; }
.tz .znaczki li::before { content: "✓"; color: var(--mor); margin-right: 8px; font-weight: 800; }

/* telefon w CSS */
.tz .telefon { position: relative; width: min(320px, 78vw); margin-inline: auto; border-radius: 44px; padding: 40px 12px 22px;
  background: linear-gradient(145deg, #2a3a31, #0b1510); box-shadow: 0 40px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px rgba(255, 255, 255, .06); }
/* głośnik i aparat w ramce nad ekranem (nie zasłaniają zrzutu, który nie ma paska stanu) */
.tz .telefon::before { content: ""; position: absolute; top: 15px; left: 50%; width: 64px; height: 10px; transform: translateX(-50%); border-radius: 999px; background: #060b08; }
.tz .telefon::after { content: ""; position: absolute; top: 14px; left: calc(50% + 46px); width: 12px; height: 12px; border-radius: 50%; background: #060b08; box-shadow: inset 0 0 0 3px #13221a; }
.tz .ekran-ramka { position: relative; width: 100%; aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden; background: #f7f8f5; }
.tz .ekran { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .6s ease, transform .6s ease; transform: scale(1.02); }
.tz .ekran.aktywny, .tz .ekran:first-child { opacity: 1; transform: none; }
.js .tz [data-pokaz] .ekran:first-child:not(.aktywny) { opacity: 0; }

/* skan w hero: zdjęcie talerza, celownik, pasek skanu, karta wyniku */
.tz .skan { position: relative; width: 100%; height: 100%; background: #000; }
.tz .skan > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tz .celownik { position: absolute; inset: 22% 10% 34%; }
.tz .celownik i { position: absolute; width: 34px; height: 34px; border: 4px solid var(--sz); }
.tz .celownik i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 14px; }
.tz .celownik i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 14px; }
.tz .celownik i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 14px; }
.tz .celownik i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 14px; }
.tz .wiazka { position: absolute; left: 10%; right: 10%; top: 22%; height: 3px; border-radius: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, var(--sz), transparent); box-shadow: 0 0 18px 4px rgba(214, 240, 226, .6); }
.tz .wynik { position: absolute; left: 8%; right: 8%; bottom: 6%; background: var(--krem); color: #1b2a22; border-radius: 20px; padding: 14px 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .35); }
.tz .wynik small { display: block; color: #4d6357; font-size: 12px; font-weight: 600; }
.tz .wynik b { display: block; font-size: 18px; line-height: 1.2; margin: 2px 0 8px; }
.tz .wynik .kcal { font-size: 28px; font-weight: 850; color: var(--z3); }
.tz .makro { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.tz .makro span { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--sz); color: var(--z3); }
.tz .makro span:nth-child(2) { background: #fde6cf; color: var(--braz); } .tz .makro span:nth-child(3) { background: #f8d9d2; color: #8f2c1b; }
.tz .wynik .uwaga { margin-top: 8px; font-size: 11px; color: #4d6357; }
/* na telefonie mniejsza karta, żeby było widać danie */
@media (max-width: 760px) { .tz .wynik { padding: 10px 12px; border-radius: 16px; } .tz .wynik b { font-size: 15px; margin-bottom: 4px; } .tz .wynik .kcal { font-size: 22px; } .tz .wynik .uwaga { display: none; } .tz .makro span { font-size: 10px; } }
@media (prefers-reduced-motion: no-preference) {
  /* dwa przebiegi skanu i stop na wyniku (WCAG 2.2.2: ruch dłuższy niż 5 s nie może trwać bez końca) */
  .js .tz .skan.gra .wiazka { animation: wiazka 6s ease-in-out 2 both; }
  .js .tz .skan.gra .celownik { animation: celownik 6s ease-in-out 2 both; }
  .js .tz .skan.gra .wynik { animation: wynik 6s ease-in-out 2 both; }
  .js .tz .skan.gra .makro span { animation: makro 6s ease-in-out 2 both; }
  .js .tz .skan.gra .makro span:nth-child(2) { animation-delay: .12s; } .js .tz .skan.gra .makro span:nth-child(3) { animation-delay: .24s; }
}
@keyframes wiazka { 0%, 6% { opacity: 0; top: 22%; } 10% { opacity: 1; } 38% { opacity: 1; top: 64%; } 44%, 100% { opacity: 0; top: 64%; } }
@keyframes celownik { 0%, 4% { transform: scale(1.08); opacity: .4; } 12%, 40% { transform: none; opacity: 1; } 50%, 100% { opacity: .55; } }
@keyframes wynik { 0%, 44% { opacity: 0; transform: translateY(24px) scale(.96); } 52%, 100% { opacity: 1; transform: none; } }
@keyframes makro { 0%, 50% { opacity: 0; transform: translateY(6px); } 58%, 100% { opacity: 1; transform: none; } }

/* liczby */
.tz .liczby { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 760px) { .tz .liczby { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tz .liczba { border: 1px solid var(--lin); border-radius: 22px; padding: 22px; background: rgba(214, 240, 226, .04); }
.tz .liczba b { display: block; font-size: clamp(30px, 4vw, 44px); line-height: 1; font-weight: 850; color: var(--mor); font-variant-numeric: tabular-nums; }
.tz .liczba span { display: block; margin-top: 8px; color: var(--t2); font-size: 15px; }

/* jak to działa */
.tz .kroki { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: k; }
@media (max-width: 860px) { .tz .kroki { grid-template-columns: 1fr; } }
.tz .kroki li { counter-increment: k; background: var(--z2); border: 1px solid var(--lin); border-radius: 26px; padding: 26px; position: relative; }
.tz .kroki li::before { content: counter(k); position: absolute; top: 20px; right: 22px; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--mor); color: #2a1606; font-weight: 850; }
.tz .kroki img { width: 140px; height: 140px; margin-bottom: 14px; }
.tz .kroki h3 { margin: 0 0 6px; font-size: 21px; } .tz .kroki p { margin: 0; color: var(--t2); }

/* funkcje z telefonem */
.tz .funkcje { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.tz .funkcje .telefon { position: sticky; top: 24px; }
@media (max-width: 900px) { .tz .funkcje { grid-template-columns: 1fr; } .tz .funkcje .telefon { position: relative; top: 0; order: -1; width: min(280px, 72vw); } }
.tz .lista-f { display: grid; gap: 10px; }
.tz .lista-f button { all: unset; box-sizing: border-box; cursor: pointer; display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 20px; border: 1px solid var(--lin); background: rgba(214, 240, 226, .03); transition: background .25s, border-color .25s, transform .25s; }
.tz .lista-f button:hover { background: rgba(214, 240, 226, .07); }
.tz .lista-f button[aria-pressed="true"] { background: var(--krem); color: #1b2a22; border-color: var(--krem); transform: translateX(6px); }
.tz .lista-f button[aria-pressed="true"] small { color: #3f5649; }
.tz .lista-f img { width: 52px; height: 52px; }
.tz .lista-f b { display: block; font-size: 17px; } .tz .lista-f small { display: block; color: var(--t2); font-size: 14px; line-height: 1.45; margin-top: 2px; }

/* prywatność: schemat */
.tz .prywatnosc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .tz .prywatnosc { grid-template-columns: 1fr; } }
.tz .schemat { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 10px; text-align: center; }
.tz .schemat .wezel { background: var(--z2); border: 1px solid var(--lin); border-radius: 22px; padding: 18px 10px; }
.tz .schemat .wezel svg { width: 44px; height: 44px; display: block; margin: 0 auto; } .tz .schemat .wezel b { display: block; font-size: 14px; margin-top: 6px; }
.tz .schemat .strzalka { color: var(--mor); font-size: 26px; font-weight: 800; }
.tz .schemat .chmura { grid-column: 1 / -1; margin-top: 14px; display: flex; justify-content: center; align-items: center; gap: 10px; color: var(--t2); font-size: 14px; }
.tz .schemat .chmura svg { width: 40px; height: 40px; }
.tz .punkty { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.tz .punkty li { padding-left: 34px; position: relative; color: var(--t2); }
.tz .punkty li b { color: var(--krem); }
.tz .punkty li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--z4);
  box-shadow: inset 0 0 0 5px var(--z4), inset 0 0 0 20px var(--sz); }

/* polska kuchnia: chmurka dań */
.tz .dania { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 900px; margin: 0 auto; }
.tz .dania span { padding: 10px 18px; border-radius: 999px; background: var(--z2); border: 1px solid var(--lin); font-weight: 650; }
.tz .dania span:nth-child(3n+1) { background: rgba(244, 185, 122, .14); border-color: rgba(244, 185, 122, .35); }
.tz .dania span:nth-child(4n+2) { background: rgba(214, 240, 226, .10); }
.tz .dania span.inne { background: transparent; border-style: dashed; color: var(--mor); }

/* siatka wszystkich funkcji */
.tz .karty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 980px) { .tz .karty { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .tz .karty { grid-template-columns: 1fr; } }
.tz .karta { background: var(--z2); border: 1px solid var(--lin); border-radius: 24px; padding: 24px; transition: transform .3s ease, border-color .3s; }
.tz .karta:hover { transform: translateY(-4px); border-color: rgba(244, 185, 122, .45); }
.tz .karta img { width: 72px; height: 72px; margin-bottom: 10px; }
.tz .karta h3 { margin: 0 0 6px; font-size: 19px; } .tz .karta p { margin: 0; color: var(--t2); font-size: 15px; }

/* tryb bez liczb */
.tz .spokoj { max-width: 820px; margin: 0 auto; text-align: center; background: linear-gradient(180deg, rgba(214, 240, 226, .08), rgba(214, 240, 226, .02));
  border: 1px solid var(--lin); border-radius: 32px; padding: clamp(28px, 5vw, 56px); }
.tz .spokoj img { width: 120px; margin: 0 auto 12px; }

/* cennik */
.tz .ceny { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 860px; margin: 0 auto; }
@media (max-width: 700px) { .tz .ceny { grid-template-columns: 1fr; } }
.tz .cena { border: 1px solid var(--lin); border-radius: 28px; padding: 30px; background: var(--z2); }
.tz .cena.glowna { background: var(--krem); color: #1b2a22; border-color: var(--krem); }
.tz .cena.glowna p, .tz .cena.glowna li { color: #3f5649; }
.tz .cena h3 { margin: 0; font-size: 20px; } .tz .cena p.kwota { font-size: 44px; font-weight: 850; margin: 8px 0 2px; line-height: 1; color: var(--krem); }
.tz .cena.glowna p.kwota { color: var(--z3); }
.tz .cena .play { margin-top: 18px; font-size: 16px; padding: 12px 20px; }
.tz .cena .kwota small { font-size: 16px; font-weight: 600; } .tz .cena p { color: var(--t2); margin: 0 0 14px; }
.tz .cena ul { margin: 0; padding-left: 20px; color: var(--t2); } .tz .cena li { margin: 4px 0; }

/* FAQ */
.tz .faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.tz details { border: 1px solid var(--lin); border-radius: 18px; background: var(--z2); padding: 0 20px; }
.tz summary { cursor: pointer; list-style: none; padding: 18px 30px 18px 0; font-weight: 700; font-size: 17px; position: relative; }
.tz summary::-webkit-details-marker { display: none; }
.tz summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); color: var(--mor); font-size: 24px; transition: transform .25s; }
.tz details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tz details p { margin: 0 0 18px; color: var(--t2); }

/* końcowe CTA */
.tz .final { text-align: center; }
.tz .final .cta { justify-content: center; }
.tz .final img.ikona { width: 96px; border-radius: 24px; margin: 0 auto 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .4); }
.tz .zastrzezenie { color: var(--t2); font-size: 13px; max-width: 70ch; margin: 28px auto 0; }

/* przyklejone CTA na telefonie */
.tz .lepkie { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 20; display: none; }
.tz .lepkie[hidden] { display: none !important; }
@media (max-width: 760px) { .tz .lepkie { display: block; } }
.tz .lepkie a { display: flex; justify-content: center; align-items: center; gap: 10px; background: var(--mor); color: #2a1606; font-weight: 850; text-decoration: none;
  padding: 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.js .tz .lepkie { transform: translateY(140%); transition: transform .35s ease; }
.js .tz .lepkie.jest { transform: none; }

/* pojawianie przy przewijaniu (tylko z JS i bez „ogranicz ruch”) */
@media (prefers-reduced-motion: no-preference) {
  .js .tz .pojaw { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
  .js .tz .pojaw.widac { opacity: 1; transform: none; }
  .js .tz .kroki li.pojaw:nth-child(2), .js .tz .karty .pojaw:nth-child(3n+2) { transition-delay: .12s; }
  .js .tz .kroki li.pojaw:nth-child(3), .js .tz .karty .pojaw:nth-child(3n) { transition-delay: .24s; }
  .js .tz .hero-tz .telefon { animation: unies 3.5s ease-in-out 2; }
  .js .tz .dania.widac span { animation: danie .5s both; animation-delay: calc(var(--i, 0) * 45ms); }
}
@keyframes unies { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes danie { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
.cichy .tz * { animation: none !important; transition: none !important; }
