/* Szyję sobie: strona główna (całoroczna). Kolory, przyciski i pola są w zapisy.css. */

html { scroll-behavior: smooth; }
.sklep section[id], #tresc { scroll-margin-top: 72px; }
#tresc:focus { outline: none; }
.pomin { position: absolute; left: -9999px; }
.pomin:focus { left: 12px; top: 12px; z-index: 50; background: #FFFFFF; color: #8E2A4E; padding: 12px 16px; border-radius: 12px; }

/* Nagłówek */
.sklep .pasek { border-bottom: 1px solid var(--obwodka); }
.naglowek.gora { display: flex; flex-wrap: wrap; justify-content: space-between; column-gap: 12px; min-height: 64px; max-width: 1120px; }
.gora .narzedzia { margin-left: auto; align-items: center; }
.hamburger { width: 48px; height: 48px; display: grid; place-items: center; background: none; border: 0; border-radius: 12px; }
.menu { order: 3; width: 100%; display: flex; flex-direction: column; padding-bottom: 12px; }
.menu a { display: flex; align-items: center; min-height: 48px; color: var(--tekst); font-weight: 700; text-decoration: none; }
.menu a:hover { text-decoration: underline; text-underline-offset: 4px; }
.menu a.btn { justify-content: center; color: var(--btn-tekst); min-height: 52px; margin-top: 8px; }
.menu a.btn:hover { text-decoration: none; }
.js .menu:not(.otwarte) { display: none; }
@media (min-width: 880px) {
  .naglowek.gora { flex-wrap: nowrap; column-gap: 32px; min-height: 76px; }
  .menu, .js .menu:not(.otwarte) { display: flex; flex-direction: row; align-items: center; justify-content: flex-end; gap: 28px; order: 0; width: auto; margin-left: auto; padding: 0; }
  .menu a.btn { width: auto; min-width: 0; min-height: 48px; margin: 0; font-size: 16px; }
  .gora .narzedzia { margin-left: 0; }
  .hamburger { display: none; }
}

/* Pasek sezonowy (znika sam po terminie) */
.sezon { margin: 0; background: #FBE4DE; text-align: center; font-size: 16px; }
.sezon a { display: block; padding: 12px 20px; min-height: 48px; color: #2F1B28; }

/* Początek */
.start { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 20px; max-width: 1120px; }
.etykieta { margin: 0 0 8px; font-size: 14px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--link); }
.start h1 { margin-bottom: 12px; }
.podkreslone { position: relative; display: inline-block; white-space: nowrap; }
.podkreslone svg { position: absolute; left: 0; bottom: -.22em; width: 100%; height: .34em; overflow: visible; fill: none; stroke: #B0762C; stroke-width: 2.5; stroke-linecap: round; }
.podkreslone path { vector-effect: non-scaling-stroke; }
.podtytul { max-width: 34ch; margin: 0 auto 20px; }
.start-obraz { width: 100%; max-width: 340px; margin-top: 16px; }
.ilustracja { display: block; width: 100%; height: auto; overflow: visible; }
.start-link { margin: 0; }
.nitka { stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .ilustracja .nitka { animation: szyj 2.5s ease-in-out both; }
/* podkreślenie rysuje się, gdy nitka dociera do hasła */
.js .podkreslone path { stroke-dasharray: none; animation: pokaz .7s 1.9s ease-out both; }
@keyframes szyj { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes pokaz { from { clip-path: inset(-50% 100% -50% 0); } to { clip-path: inset(-50% 0 -50% 0); } }
.zdjecie-ramka { margin: 0; padding: 10px; border: 1.5px dashed #D9964A; border-radius: 32px; transform: rotate(-1.5deg); }
.zdjecie-ramka img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 24px; }
@media (min-width: 880px) {
  .start { display: grid; grid-template-columns: 45fr 55fr; grid-template-rows: 1fr auto auto 1fr; grid-template-areas: ". obraz" "tekst obraz" "link obraz" ". obraz"; column-gap: 48px; align-items: start; text-align: left; padding-top: 40px; }
  .start-tekst { grid-area: tekst; }
  .start-obraz { grid-area: obraz; max-width: 560px; margin: 0; justify-self: end; align-self: center; }
  .start-link { grid-area: link; }
  .podtytul { margin-inline: 0; font-size: 20px; }
  .start .btn { width: auto; }
}

/* Pasek pięciu ikon */
.pasek-ikon { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-top: 32px; margin-bottom: 0; padding-block: 24px; border-block: 2px dashed var(--akcent); max-width: 1080px; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pasek-ikon li { display: flex; align-items: center; gap: 10px; }
.pasek-ikon li:last-child { grid-column: 1 / -1; justify-content: center; }
.pasek-ikon .ikona { width: 28px; height: 28px; color: #8E2A4E; }
@media (min-width: 880px) { .pasek-ikon { display: flex; justify-content: space-between; } }

/* Sekcje */
.sekcja { padding-block: 40px 0; max-width: 1080px; }
.sekcja.tresc { max-width: 760px; }
.sekcja + .sekcja::before { content: ""; display: block; max-width: 720px; margin: 0 auto 40px; border-top: 2px dashed var(--akcent); }
.kroki3 { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 16px; }
.kroki3 li { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-content: start; padding: 20px; }
.kroki3 h3 { grid-column: 2; margin-bottom: 4px; }
.kroki3 p { grid-column: 2; margin: 0; }
.numer { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #8E2A4E; color: #FFFFFF; font-weight: 700; }
@media (min-width: 760px) {
  .kroki3 { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .kroki3 li { display: block; padding: 24px; }
  .numer { margin-bottom: 12px; }
}

/* Pudełka */
.dwa { display: grid; gap: 16px; margin: 24px 0; }
.pudelko { display: flex; flex-direction: column; padding: 24px; }
.pudelko .cena { margin-top: auto; padding-block: 8px 16px; }
.cena p { margin: 0 0 4px; }
.cena .cena-duza small { display: inline; }
.pudelko .btn { width: 100%; }
@media (min-width: 760px) { .dwa { grid-template-columns: 1fr 1fr; gap: 24px; } .pudelko { padding: 32px; } }
.zasady { font-weight: 600; margin-bottom: 4px; }
#pudelka .tresc { padding-inline: 0; }
.zajrzyj { margin: 48px 0 16px; font-size: 26px; }
/* na telefonie zdjęcia przesuwa się palcem w bok */
.kadry { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; }
.kadr { flex: 0 0 78%; margin: 0; overflow: hidden; scroll-snap-align: start; }
.kadr svg, .kadr img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.kadr figcaption { padding: 14px 20px; font-weight: 700; font-size: 16px; }
@media (min-width: 760px) { .kadry { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; overflow: visible; padding: 0; } }

/* Pytania */
.pytania { display: grid; gap: 12px; }
.pytania details { padding: 0 20px; }
.pytania summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 8px 0; font-weight: 700; cursor: pointer; list-style: none; }
.pytania summary::-webkit-details-marker { display: none; }
.pytania summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid #8E2A4E; border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.pytania details[open] summary::after { transform: rotate(225deg); }
.pytania details p:last-child { padding-bottom: 8px; }

/* Stopka i powrót na górę */
.sklep .stopka { margin-top: 56px; padding-bottom: 80px; }
.sklep .stopka .szerokie { max-width: 1120px; }
.sklep .stopka-logo { margin: 0 0 8px; min-height: 0; color: inherit; }
.na-gore { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 15; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 2px solid #FFF3EE; background: #3A1C32; color: #FFF3EE; box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }

/* Pojawianie się przy przewijaniu */
.js .pojaw { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.js .pojaw.widoczne { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .pojaw { opacity: 1; transform: none; }
}
@media print { .na-gore, .sezon { display: none !important; } .js .pojaw { opacity: 1; transform: none; } }
