/* Strona WWW aplikacji Czułostki - kolory jak w grafikach do sklepu (design/sklep/). */
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url('fonts/Inter-Medium.ttf') format('truetype'); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url('fonts/Inter-Bold.ttf') format('truetype'); }
@font-face { font-family: Inter; font-weight: 800; font-display: swap; src: url('fonts/Inter-ExtraBold.ttf') format('truetype'); }

:root {
  --tlo: #FFF8EF;
  --tlo2: #FFE7CC;
  --granat: #1F2540;
  --tekst: #4A3F3B;
  --szary: #7A6D67;
  --akcent: #E8590C;
  --roz: #D6336C;
  --fiolet: #7C3AED;
  --zielony: #2E7D32;
  --karta: #FFFFFF;
  --linia: #F1E2D2;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-weight: 500; color: var(--tekst);
       background: var(--tlo); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
a { color: var(--akcent); }
h1, h2, h3 { color: var(--granat); line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-weight: 800; }
h2 { font-weight: 800; font-size: clamp(28px, 4vw, 42px); margin: 0 0 14px; }
h3 { font-weight: 700; font-size: 21px; margin: 0 0 8px; }
p { text-wrap: pretty; }
em { font-style: normal; color: var(--akcent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.waska { max-width: 780px; }
.brak { background: #FFE0E0; color: #B00020; padding: 0 4px; border-radius: 4px; }

/* nagłówek */
.gora { position: sticky; top: 0; z-index: 10; background: rgba(255,248,239,.88); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linia); }
.gora-in { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--granat); font-weight: 800; font-size: 20px; }
.logo img { border-radius: 23%; }
.menu { display: flex; align-items: center; gap: 22px; }
.menu a:not(.przycisk) { color: var(--granat); text-decoration: none; font-weight: 700; font-size: 15px; }
.menu a:not(.przycisk):hover { color: var(--akcent); }
@media (max-width: 640px) { .menu a:not(.przycisk) { display: none; } }

.przycisk { display: inline-flex; align-items: center; gap: 10px; background: var(--granat); color: #fff; text-decoration: none;
            font-weight: 700; font-size: 17px; padding: 15px 26px; border-radius: 999px; box-shadow: 0 10px 24px rgba(31,37,64,.22);
            transition: transform .15s, box-shadow .15s; }
.przycisk:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(31,37,64,.28); }
.przycisk svg { width: 22px; height: 22px; }
.przycisk.maly { font-size: 14px; padding: 9px 18px; box-shadow: none; }

/* bohater */
.hero { position: relative; overflow: hidden; background: linear-gradient(170deg, #FFF5E6 0%, #FFD9B3 100%); }
.hero::before { content: ""; position: absolute; width: 640px; height: 640px; right: -180px; top: -260px; border-radius: 50%; background: rgba(255,255,255,.5); }
.hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 64px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); margin: 0 0 20px; }
.hero .lead { font-size: 20px; max-width: 540px; margin: 0 0 30px; }
.hero .uwagi { margin-top: 16px; color: var(--szary); font-size: 15px; }
.etykieta { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--akcent); margin-bottom: 14px; }
.telefon { background: #16181F; border-radius: 46px; padding: 9px; box-shadow: 0 30px 70px rgba(80,40,10,.25); max-width: 330px; margin: 0 auto; }
.telefon img { display: block; border-radius: 38px; }
.hero .telefon { margin-bottom: -120px; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
}

/* sekcje */
.sekcja { padding: 110px 0 40px; }
.sekcja.biala { background: #fff; padding-bottom: 90px; }
.sekcja-naglowek { text-align: center; max-width: 680px; margin: 0 auto 50px; }
.sekcja-naglowek p { font-size: 18px; margin: 0; }
.kroki { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.krok { background: var(--karta); border-radius: 24px; padding: 28px; box-shadow: 0 6px 24px rgba(120,70,20,.07); }
.krok .nr { display: inline-flex; width: 42px; height: 42px; border-radius: 14px; align-items: center; justify-content: center;
            background: var(--tlo2); color: var(--akcent); font-weight: 800; font-size: 19px; margin-bottom: 14px; }
.krok p { margin: 0; }
@media (max-width: 860px) { .kroki { grid-template-columns: 1fr; } }

.funkcja { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 50px 0; }
.funkcja:nth-child(even) .opis { order: 2; }
.funkcja .opis p { font-size: 18px; }
.funkcja ul { padding: 0; margin: 18px 0 0; list-style: none; }
.funkcja li { position: relative; padding-left: 30px; margin: 8px 0; }
.funkcja li::before { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 14px; background: var(--akcent);
                      -webkit-mask: url("img/serce.svg") center / contain no-repeat; mask: url("img/serce.svg") center / contain no-repeat; }
.funkcja .telefon { max-width: 300px; }
@media (max-width: 860px) {
  .funkcja { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .funkcja:nth-child(even) .opis { order: 0; }
  .funkcja ul { display: inline-block; text-align: left; }
}

.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.galeria figure { margin: 0; text-align: center; }
.galeria .telefon { border-radius: 34px; padding: 7px; max-width: 240px; }
.galeria .telefon img { border-radius: 28px; }
.galeria figcaption { margin-top: 16px; font-weight: 700; color: var(--granat); }
.galeria figcaption span { display: block; font-weight: 500; color: var(--szary); font-size: 15px; }
@media (max-width: 960px) { .galeria { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .galeria { grid-template-columns: 1fr; } }

.kafle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.kafel { background: #fff; border-radius: 24px; padding: 28px; box-shadow: 0 6px 24px rgba(120,70,20,.07); }
.kafel p { margin: 0; }
@media (max-width: 860px) { .kafle { grid-template-columns: 1fr; } }

.pytania { max-width: 780px; margin: 0 auto; }
.pytania details { background: #fff; border-radius: 18px; padding: 20px 24px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(120,70,20,.06); }
.pytania summary { cursor: pointer; font-weight: 700; color: var(--granat); font-size: 18px; list-style: none; position: relative; padding-right: 30px; }
.pytania summary::-webkit-details-marker { display: none; }
.pytania summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 24px; color: var(--akcent); }
.pytania details[open] summary::after { content: "–"; }
.pytania details p { margin: 12px 0 0; }

.cta { text-align: center; padding: 90px 24px; background: linear-gradient(170deg, #FFF1F4 0%, #FBC8D6 100%); }
.cta h2 { margin-bottom: 12px; }
.cta p { font-size: 18px; margin: 0 0 28px; }

/* stopka */
.stopka { background: var(--granat); color: #D5D8E6; padding: 50px 0 30px; font-size: 15px; }
.stopka .logo { color: #fff; }
.stopka a { color: #fff; }
.stopka-in { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.stopka nav { display: flex; flex-direction: column; gap: 8px; }
.stopka nav a { text-decoration: none; }
.stopka nav a:hover { text-decoration: underline; }
.prawa { margin-top: 30px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.12); color: #9EA3BA; font-size: 13px; }

/* dokumenty */
.dokument { padding: 56px 0 90px; }
.dokument h1 { font-size: clamp(32px, 5vw, 46px); margin: 0 0 10px; }
.dokument .wstep { color: var(--szary); margin: 0 0 36px; }
.dokument h2 { font-size: 24px; margin: 40px 0 12px; }
.dokument h3 { font-size: 18px; margin: 24px 0 8px; }
.dokument p, .dokument li { font-size: 16.5px; }
.dokument ol, .dokument ul { padding-left: 24px; }
.dokument li { margin: 6px 0; }
.dokument table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; background: #fff; border-radius: 14px; overflow: hidden; }
.dokument th, .dokument td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--linia); }
.dokument th { background: #FFF1E2; color: var(--granat); }
.ramka { background: #fff; border-radius: 20px; padding: 22px 26px; box-shadow: 0 6px 24px rgba(120,70,20,.07); margin: 22px 0; }
.ramka ol { margin: 8px 0 0; }
.spis { columns: 2; font-size: 15px; }
@media (max-width: 640px) { .spis { columns: 1; } .dokument table { font-size: 14px; } }

/* druk (np. regulamin do PDF dla panelu) */
@media print {
  body { background: #fff; }
  .gora { position: static; background: #fff; border: 0; }
  .menu, .stopka { display: none; }
  .dokument { padding: 0; }
  .ramka, .dokument table { box-shadow: none; border: 1px solid var(--linia); }
  a { color: inherit; }
}

/* ===== strona główna: animacje ===== */
@keyframes wjazd { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes plywa { 0%, 100% { transform: translateY(0) rotate(2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }
@keyframes plywa-tyl { 0%, 100% { transform: translate(-46%, 10px) rotate(-9deg); } 50% { transform: translate(-46%, 22px) rotate(-8deg); } }
@keyframes dymek { 0% { opacity: 0; transform: translateY(14px) scale(.9); } 12%, 88% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(-8px); } }
@keyframes unos { 0% { transform: translateY(0) rotate(-45deg); opacity: 0; } 10% { opacity: .55; } 100% { transform: translateY(-110vh) rotate(-45deg); opacity: 0; } }

/* serduszka unoszące się w tle */
.serca { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.serca span { position: absolute; bottom: -40px; width: var(--s); height: var(--s); background: #F28B6E; opacity: 0;
              transform: rotate(-45deg); animation: unos var(--d) linear var(--o) infinite; }
.serca span::before, .serca span::after { content: ""; position: absolute; width: 100%; height: 100%; border-radius: 50%; background: inherit; }
.serca span::before { top: -50%; left: 0; }
.serca span::after { left: 50%; top: 0; }
.serca span:nth-child(3n) { background: #E5487A; }
.serca span:nth-child(4n) { background: #FFB25E; }

/* bohater */
.hero { min-height: 640px; }
.hero-in { padding-top: 70px; padding-bottom: 90px; z-index: 1; }
.hero .wjazd { animation: wjazd .8s cubic-bezier(.2,.7,.2,1) both; }
.hero .wjazd:nth-child(2) { animation-delay: .1s; }
.hero .wjazd:nth-child(3) { animation-delay: .2s; }
.hero .wjazd:nth-child(4) { animation-delay: .3s; }
.hero .wjazd:nth-child(5) { animation-delay: .4s; }
.hero .wjazd:nth-child(6) { animation-delay: .5s; }
.rotator { font-size: 19px; font-weight: 700; color: var(--granat); margin: -6px 0 18px; min-height: 2.6em; }
#pomysl { color: var(--roz); transition: opacity .35s, transform .35s; display: inline-block; }
#pomysl.znika { opacity: 0; transform: translateY(8px); }
.scena { position: relative; height: 620px; }
.scena .telefon { position: absolute; width: 290px; max-width: none; margin: 0; }
.scena .przod { top: 0; left: calc(50% - 90px); animation: plywa 6s ease-in-out infinite; z-index: 2; }
.scena .tyl { top: 40px; width: 250px; left: 50%; transform: translate(-46%, 10px) rotate(-9deg); animation: plywa-tyl 7s ease-in-out infinite; z-index: 1; }
.dymek { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 18px; padding: 10px 16px 10px 10px;
         box-shadow: 0 14px 34px rgba(80,40,10,.18); font-size: 14px; line-height: 1.3; max-width: 250px; opacity: 0; text-align: left;
         animation: dymek 9s ease-in-out infinite; }
.dymek b { display: block; color: var(--granat); }
.dymek .ikona { flex: none; width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
                font-style: normal; color: #fff; font-size: 18px; }
.ikona.roz { background: var(--roz); }
.ikona.ziel { background: #0E9F8E; }
.ikona.pom { background: var(--akcent); }
.d1 { top: 70px; left: -20px; animation-delay: .8s; }
.d2 { top: 300px; right: -10px; animation-delay: 3.8s; }
.d3 { bottom: 70px; left: 0; animation-delay: 6.8s; }
@media (max-width: 860px) {
  .scena { height: 560px; max-width: 420px; margin: 10px auto 0; width: 100%; }
  .d1 { left: 0; }
  .d2 { right: 0; }
  .d3 { left: 10px; }
}
@media (max-width: 420px) {
  .scena .przod { width: 250px; left: calc(50% - 80px); }
  .scena .tyl { width: 210px; }
  .dymek { max-width: 210px; font-size: 13px; }
}

/* przyciski sklepów */
.sklepy { display: flex; flex-wrap: wrap; gap: 14px; }
.sklepy.srodek { justify-content: center; }
.sklep { position: relative; display: inline-flex; align-items: center; gap: 10px; background: #111; color: #fff; text-decoration: none;
         border-radius: 14px; padding: 9px 20px 9px 14px; min-width: 186px; transition: transform .15s, box-shadow .15s; }
.sklep svg { width: 28px; height: 28px; flex: none; }
.sklep span { display: flex; flex-direction: column; font-weight: 700; font-size: 19px; line-height: 1.1; letter-spacing: -.01em; text-align: left; }
.sklep small { font-size: 11px; font-weight: 500; letter-spacing: .02em; opacity: .85; }
a.sklep:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,.25); }
.sklep.wkrotce { background: #9A9592; color: #F4F1EF; cursor: default; }
.sklep.wkrotce svg, .sklep.wkrotce span { opacity: .8; }
.sklep.wkrotce b { position: absolute; top: -9px; right: -8px; background: var(--akcent); color: #fff; font-size: 11px; font-weight: 800;
                   letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
@media (max-width: 860px) { .hero .sklepy { justify-content: center; } }

/* liczby */
.liczby { background: var(--granat); color: #D5D8E6; position: relative; z-index: 2; }
.liczby-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 34px; padding-bottom: 34px; text-align: center; }
.liczby b { display: inline-block; font-size: 46px; font-weight: 800; color: #fff; letter-spacing: -.03em; line-height: 1; }
.liczby-in > div:first-child b::after { content: "+"; color: #FFB25E; }
.liczby span { display: block; font-size: 14px; margin-top: 6px; }
@media (max-width: 560px) { .liczby-in { grid-template-columns: 1fr; } }

/* pojawianie się przy przewijaniu */
.ukryte { opacity: 0; transform: translateY(34px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.ukryte.widoczne { opacity: 1; transform: none; }
.kroki .ukryte:nth-child(2), .kafle .ukryte:nth-child(2), .galeria .ukryte:nth-child(2), .liczby-in .ukryte:nth-child(2) { transition-delay: .12s; }
.kroki .ukryte:nth-child(3), .kafle .ukryte:nth-child(3), .galeria .ukryte:nth-child(3), .liczby-in .ukryte:nth-child(3) { transition-delay: .24s; }
.galeria .ukryte:nth-child(4), .liczby-in .ukryte:nth-child(4) { transition-delay: .36s; }
.funkcja .telefon.ukryte { transform: translateY(40px) rotate(3deg); }
.funkcja .telefon.ukryte.widoczne { transform: none; }
.krok:hover, .kafel:hover { transform: translateY(-6px); box-shadow: 0 16px 36px rgba(120,70,20,.13); }
.krok, .kafel { transition: transform .25s, box-shadow .25s, opacity .8s; }
.galeria .telefon { transition: transform .25s; }
.galeria figure:hover .telefon { transform: translateY(-8px) rotate(-1.5deg); }

/* zakończenie */
.cta { position: relative; overflow: hidden; }
.cta-in { position: relative; z-index: 1; }
.cta-ikona { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 16px 36px rgba(200,60,90,.3); margin-bottom: 18px; }

/* pasek „Pobierz” na telefonie */
.pasek-pobierz { display: none; }
@media (max-width: 760px) {
  .pasek-pobierz { position: fixed; z-index: 20; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 12px;
                   background: var(--granat); color: #fff; text-decoration: none; padding: 10px 12px; border-radius: 20px;
                   box-shadow: 0 14px 34px rgba(0,0,0,.3); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.2,1); }
  .pasek-pobierz.widoczny { transform: none; }
  .pasek-pobierz img { border-radius: 10px; }
  .pasek-pobierz span { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; color: #C9CDE0; }
  .pasek-pobierz span b { color: #fff; font-size: 15px; }
  .pasek-pobierz em { margin-left: auto; background: var(--akcent); color: #fff; font-weight: 800; padding: 9px 16px; border-radius: 999px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .dymek { opacity: 1; }
  .serca { display: none; }
}
