/* ============================================================
   MORDAS — styles.css (dark & tasty edition)
   Palette:
     Espresso  #150F0C   (tlo)
     Cocoa     #221812   (karty / sekcje)
     Cocoa-lite#2E211A   (obramowania)
     Caramel   #E29A4E   (akcent glowny)
     Toffee    #C9743A   (akcent wtorny)
     Cream     #F6ECDD   (tekst)
     Blush     #E9A7AC   (akcent cieply)
   Type: Fraunces (display) · Outfit (body)
   Zasada: zaden element nie nachodzi na tekst — patrz "SAFE ZONES".
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,600;0,9..144,900;1,9..144,600&family=Outfit:wght@400;500;700&display=swap');

:root {
  --espresso:   #150F0C;
  --cocoa:      #221812;
  --cocoa-lite: #2E211A;
  --caramel:    #E29A4E;
  --toffee:     #C9743A;
  --cream:      #F6ECDD;
  --cream-dim:  #CDBBA6;
  --blush:      #E9A7AC;
  --radius: 20px;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Outfit', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --shell: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--espresso);
  color: var(--cream);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
::selection { background: var(--caramel); color: var(--espresso); }
a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--caramel);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; padding: 14px clamp(16px, 4vw, 44px);
  position: sticky; top: 0; z-index: 60;
  background: rgba(21, 15, 12, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--cocoa-lite);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; font-family: var(--display);
  font-weight: 900; font-size: 1.35rem; letter-spacing: .01em;
  flex-shrink: 0;
}
.brand img {
  width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--caramel); object-fit: cover;
}

.desktop-nav { display: flex; gap: clamp(16px, 2.2vw, 30px); }
.desktop-nav a {
  text-decoration: none; font-weight: 700; font-size: .8rem;
  letter-spacing: .1em; text-transform: uppercase; color: var(--cream-dim);
  padding-bottom: 3px; border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.desktop-nav a:hover { color: var(--cream); border-color: var(--caramel); }

.mini-cta {
  text-decoration: none; font-weight: 700; font-size: .82rem;
  letter-spacing: .06em; flex-shrink: 0;
  background: var(--caramel); color: var(--espresso);
  padding: 12px 22px; border-radius: 999px; white-space: nowrap;
  transition: transform .15s ease, background .15s ease;
}
.mini-cta:hover { transform: translateY(-2px); background: var(--cream); }
.mini-cta span { color: var(--espresso); }

/* ============================================================
   HERO — tekst w lewej kolumnie, zdjecie w prawej.
   Tekst NIGDY nie lezy na zdjeciu; na mobile zdjecie idzie nad tekst.
   ============================================================ */
.hero {
  position: relative;
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(40px, 6vw, 84px) clamp(16px, 4vw, 44px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px); align-items: center;
}

.hero-media {
  position: relative;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--cocoa-lite);
  box-shadow: 0 24px 60px rgba(0,0,0,.55);
}
.hero-bg {
  width: 100%; display: block; aspect-ratio: 1; object-fit: cover;
  animation: dreamDrift 26s ease-in-out infinite alternate;
}
@keyframes dreamDrift { to { transform: scale(1.05); } }

.hero-veil {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(21,15,12,.7) 0%, rgba(21,15,12,.1) 45%, transparent 75%);
}

.hero-inner { position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .72rem; letter-spacing: .16em;
  background: var(--cocoa); color: var(--cream);
  border: 1px solid var(--cocoa-lite);
  border-radius: 999px; padding: 8px 18px; margin-bottom: 22px;
}
.status-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--caramel); animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: .25; } }

.hero h1 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(2.7rem, 6.4vw, 5rem);
  line-height: .95; letter-spacing: -.02em;
}
.hero h1 em { font-weight: 600; font-style: italic; color: var(--caramel); }

.hero-lead {
  margin: 20px 0 28px; font-size: clamp(1rem, 1.6vw, 1.12rem);
  color: var(--cream-dim); max-width: 52ch;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

/* ---------- buttons ---------- */
.button {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .85rem; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  padding: 16px 26px; border-radius: 999px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease;
  cursor: pointer;
}
.button:hover { transform: translateY(-3px); }
.button-dark  { background: var(--caramel); color: var(--espresso); }
.button-dark:hover { background: var(--cream); }
.button-light { background: transparent; color: var(--cream); border-color: var(--cream-dim); }
.button-light:hover { border-color: var(--caramel); color: var(--caramel); }
.button-cream { background: var(--blush); color: var(--espresso); }
.button-cream:hover { background: var(--cream); }

/* ---------- contract box ---------- */
.contract-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: 16px; padding: 16px 20px;
}
.contract-box > div { min-width: 0; flex: 1 1 220px; }
.contract-label {
  display: block; font-size: .66rem; font-weight: 700;
  letter-spacing: .18em; color: var(--cream-dim); margin-bottom: 4px;
}
.contract-box code {
  font-family: var(--mono); font-size: .9rem; color: var(--caramel);
  word-break: break-all; display: block;
}
.contract-box button {
  font-family: var(--body); font-weight: 700; font-size: .74rem;
  letter-spacing: .1em; cursor: pointer; flex-shrink: 0;
  background: var(--caramel); color: var(--espresso); border: none;
  border-radius: 999px; padding: 11px 20px;
}
.contract-box button:hover { background: var(--cream); }

/* ============================================================
   SAFE ZONES — dekoracje zyja TYLKO nad zdjeciem, nigdy nad tekstem
   ============================================================ */
.zzz {
  position: absolute; z-index: 3;
  right: 6%; top: 6%;
  font-family: var(--display); font-style: italic; font-weight: 600;
  color: var(--cream); text-shadow: 0 2px 14px rgba(0,0,0,.75);
  pointer-events: none;
}
.zzz span {
  display: block; line-height: 1; opacity: 0;
  animation: floatZ 5.5s ease-in-out infinite;
}
.zzz span:nth-child(1) { font-size: 1.4rem; animation-delay: 0s;   margin-left: 0; }
.zzz span:nth-child(2) { font-size: 2rem;   animation-delay: 1.2s; margin-left: 18px; }
.zzz span:nth-child(3) { font-size: 2.8rem; animation-delay: 2.4s; margin-left: 42px; }
@keyframes floatZ {
  0%   { opacity: 0; transform: translateY(14px) rotate(-4deg); }
  30%  { opacity: 1; }
  70%  { opacity: .75; }
  100% { opacity: 0; transform: translateY(-38px) rotate(8deg); }
}

/* plywajace przekaski — przypiete do rogow kadru ze zdjeciem */
.floaters { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.floater {
  position: absolute; pointer-events: auto; cursor: pointer;
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  background: rgba(34,24,18,.88); border: 1px solid var(--cocoa-lite);
  border-radius: 50%; width: 2.8em; height: 2.8em; line-height: 1;
  display: grid; place-items: center;
  animation: floatFood 9s ease-in-out infinite;
  transition: transform .15s ease, border-color .15s ease;
}
.floater:hover { transform: scale(1.15); border-color: var(--caramel); }
.f1 { top: 4%;    left: 4%;  animation-delay: 0s; }
.f2 { top: 24%;   right: 4%; animation-delay: 2.2s; }
.f3 { bottom: 6%; left: 6%;  animation-delay: 4.4s; }
.f4 { bottom: 24%; right: 6%; animation-delay: 6.1s; }
@keyframes floatFood {
  0%,100% { transform: translateY(0)     rotate(-6deg); }
  50%     { transform: translateY(-16px) rotate(8deg); }
}

/* dymek z sentencja */
.quote-bubble {
  position: fixed; z-index: 130; width: max-content; max-width: min(280px, 86vw);
  background: var(--cream); color: var(--espresso);
  border-radius: 14px 14px 14px 4px;
  padding: 12px 16px;
  font-family: var(--display); font-style: italic; font-weight: 600;
  font-size: .95rem; line-height: 1.35;
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(8px) scale(.94);
  transition: opacity .18s ease, transform .18s ease;
  pointer-events: none;
}
.quote-bubble.show { opacity: 1; transform: translateY(0) scale(1); }

/* ---------- ticker ---------- */
.ticker-strip {
  overflow: hidden; background: var(--caramel); color: var(--espresso);
  padding: 12px 0;
}
.ticker-track {
  display: inline-flex; gap: 32px; white-space: nowrap;
  font-family: var(--display); font-weight: 900;
  font-size: .95rem; letter-spacing: .16em;
  animation: ticker 26s linear infinite;
}
.ticker-track b { color: var(--cocoa); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(56px, 7vw, 100px) clamp(16px, 4vw, 44px);
}

.section-heading span, .kicker {
  display: inline-block; font-weight: 700; font-size: .7rem;
  letter-spacing: .2em; color: var(--caramel);
  border: 1px solid var(--toffee);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-heading h2, .token-copy h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.9rem, 4.4vw, 3.2rem); line-height: 1.04;
  letter-spacing: -.015em;
}
.section-heading h2 em, .token-copy h2 em {
  font-weight: 600; font-style: italic; color: var(--caramel);
}
.section-heading { margin-bottom: clamp(30px, 4vw, 48px); }
.section-heading p, .meme-intro { margin-top: 16px; max-width: 60ch; color: var(--cream-dim); }

/* ---------- lore ---------- */
.lore-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lore-card {
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: var(--radius); padding: 30px 26px;
  transition: transform .18s ease, border-color .18s ease;
}
.lore-card:hover { transform: translateY(-5px); border-color: var(--toffee); }
.lore-card h3 {
  font-family: var(--display); font-weight: 900; font-size: 1.15rem;
  margin-bottom: 14px; color: var(--caramel);
}
.lore-card h3::after {
  content: ""; display: block; width: 42px; height: 3px;
  background: var(--toffee); border-radius: 2px; margin-top: 10px;
}
.lore-card p { color: var(--cream-dim); }

/* ---------- journal teaser ---------- */
.journal-teaser .teaser-card {
  display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr);
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: transform .18s ease, border-color .18s ease;
}
.journal-teaser .teaser-card:hover { transform: translateY(-5px); border-color: var(--toffee); }
.teaser-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser-copy {
  padding: clamp(26px, 3.4vw, 44px);
  display: grid; gap: 14px; justify-items: start; align-content: center;
}
.teaser-copy h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.05;
}
.teaser-copy h2 em { font-weight: 600; font-style: italic; color: var(--caramel); }
.teaser-copy p { color: var(--cream-dim); }

/* ---------- token ---------- */
.token-section {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 4vw, 60px); align-items: start;
}
.token-copy p { margin-top: 18px; max-width: 46ch; color: var(--cream-dim); }
.token-panel {
  background: var(--cocoa); border: 1px solid var(--toffee);
  border-radius: var(--radius); padding: 30px;
}
.token-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 20px; padding: 14px 2px;
  border-bottom: 1px solid var(--cocoa-lite);
}
.token-row span {
  font-size: .68rem; font-weight: 700; letter-spacing: .18em;
  color: var(--cream-dim); flex-shrink: 0;
}
.token-row strong {
  font-family: var(--display); font-weight: 900; font-size: 1rem;
  color: var(--caramel); text-align: right; min-width: 0;
}
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60%; }
.token-panel .button { margin-top: 24px; width: 100%; justify-content: center; }

/* ---------- steps ---------- */
.steps { list-style: none; display: grid; gap: 14px; }
.steps li {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: var(--radius); padding: 24px 26px;
}
.steps li > span {
  font-family: var(--display); font-weight: 900; font-size: 1.1rem;
  color: var(--espresso); background: var(--caramel);
  border-radius: 10px; padding: 6px 13px; flex-shrink: 0;
}
.steps h3 { font-family: var(--display); font-weight: 900; font-size: 1rem; margin-bottom: 6px; }
.steps p { color: var(--cream-dim); }

/* ---------- community banner ---------- */
.community-banner {
  max-width: var(--shell); margin: 0 clamp(16px, 4vw, 44px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 26px; background: var(--cocoa);
  border: 1px solid var(--toffee); border-radius: var(--radius);
  padding: clamp(30px, 4vw, 52px);
}
.community-banner > div { min-width: 0; }
.community-banner span {
  font-size: .7rem; font-weight: 700; letter-spacing: .18em; color: var(--caramel);
}
.community-banner h2 {
  font-family: var(--display); font-weight: 900;
  font-size: clamp(1.4rem, 3vw, 2.3rem); margin-top: 8px; line-height: 1.1;
}
.community-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (min-width: 1268px) { .community-banner, .risk-note { margin-left: auto; margin-right: auto; } }

/* ---------- faq ---------- */
.faq-list { display: grid; gap: 12px; max-width: 840px; }
.faq-list details {
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: 16px; overflow: hidden;
}
.faq-list details[open] { border-color: var(--toffee); }
.faq-list summary {
  cursor: pointer; list-style: none;
  font-family: var(--display); font-weight: 900; font-size: .98rem;
  padding: 19px 22px; gap: 16px;
  display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::after { content: '+'; font-size: 1.4rem; color: var(--caramel); flex-shrink: 0; }
.faq-list details[open] summary::after { content: '\2013'; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details p { padding: 0 22px 20px; color: var(--cream-dim); }

/* ---------- risk note ---------- */
.risk-note {
  max-width: var(--shell);
  margin: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 44px) 0;
  background: var(--cocoa); border: 1px dashed var(--toffee);
  border-radius: var(--radius); padding: 22px 24px;
  font-size: .88rem; color: var(--cream-dim);
}
.risk-note strong { color: var(--caramel); }

/* ---------- footer ---------- */
footer {
  margin-top: clamp(56px, 7vw, 90px);
  background: var(--cocoa); border-top: 1px solid var(--cocoa-lite);
  text-align: center; padding: 52px 20px 34px;
}
.footer-logo { font-family: var(--display); font-weight: 900; font-size: 1.9rem; text-decoration: none; }
.footer-logo span { color: var(--caramel); }
footer p { margin: 10px 0 24px; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--cream-dim); }
.footer-links { display: flex; justify-content: center; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a {
  text-decoration: none; font-weight: 700; font-size: .82rem;
  letter-spacing: .08em; color: var(--caramel);
}
.footer-links a:hover { color: var(--cream); }
footer small { color: var(--cream-dim); opacity: .7; }

/* ---------- toast ---------- */
#toast {
  position: fixed; bottom: 22px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--cream); color: var(--espresso);
  font-weight: 700; font-size: .82rem; letter-spacing: .04em;
  padding: 13px 22px; border-radius: 999px; max-width: 88vw;
  opacity: 0; pointer-events: none; transition: all .25s ease; z-index: 120;
}
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- sound toggle ---------- */
.sound-toggle {
  position: fixed; right: 16px; bottom: 16px; z-index: 115;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  font-size: 1.05rem; line-height: 1;
  background: var(--cocoa); color: var(--cream);
  border: 1px solid var(--toffee);
  transition: transform .15s ease, background .15s ease;
}
.sound-toggle:hover { transform: translateY(-2px); background: var(--cocoa-lite); }
.sound-toggle[aria-pressed="false"] { opacity: .55; }

/* ============================================================
   PODSTRONA MEMOW — luk usmiechu.
   row-gap (110px) > maksymalne przesuniecie kafelka (56px),
   wiec rzedy nie moga sie zetknac.
   ============================================================ */
.journal-hero { padding-bottom: 0 !important; }

.smile-wall {
  max-width: var(--shell); margin: 0 auto;
  padding: 8px clamp(16px, 4vw, 44px) clamp(48px, 7vw, 90px);
  display: grid; grid-template-columns: repeat(5, 1fr);
  column-gap: 18px; row-gap: 110px;
}
.smile-wall figure {
  border: 1px solid var(--cocoa-lite); border-radius: 14px;
  overflow: hidden; background: var(--cocoa); cursor: pointer;
  transition: transform .2s ease, border-color .2s ease;
}
.smile-wall img { width: 100%; display: block; }
.smile-wall .s1  { transform: translateY(0)    rotate(-4deg); }
.smile-wall .s2  { transform: translateY(30px) rotate(-2deg); }
.smile-wall .s3  { transform: translateY(48px); }
.smile-wall .s4  { transform: translateY(30px) rotate(2deg); }
.smile-wall .s5  { transform: translateY(0)    rotate(4deg); }
.smile-wall .s6  { transform: translateY(8px)  rotate(-4deg); }
.smile-wall .s7  { transform: translateY(38px) rotate(-2deg); }
.smile-wall .s8  { transform: translateY(56px); }
.smile-wall .s9  { transform: translateY(38px) rotate(2deg); }
.smile-wall .s10 { transform: translateY(8px)  rotate(4deg); }
.smile-wall figure:hover {
  transform: translateY(-4px) rotate(0) scale(1.04);
  z-index: 3; border-color: var(--caramel);
}

/* ---------- dreamworld gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.gallery-grid figure {
  background: var(--cocoa); border: 1px solid var(--cocoa-lite);
  border-radius: var(--radius); overflow: hidden;
}
.gallery-grid img {
  width: 100%; aspect-ratio: 1; object-fit: cover; display: block;
  transition: transform .5s ease;
}
.gallery-grid figure:hover img { transform: scale(1.03); }
.gallery-grid figcaption { padding: 20px 22px; }
.gallery-grid figcaption strong {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: .98rem; color: var(--caramel); margin-bottom: 6px;
}
.gallery-grid figcaption span { font-size: .9rem; color: var(--cream-dim); }

.back-home { text-align: center; margin: clamp(34px, 5vw, 58px) 0 0; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
/* kafelki usmiechu maja wlasny transform — reveal go nie nadpisuje */
.smile-wall .reveal, .smile-wall .reveal.visible { transform: none; }

/* ============================================================
   RESPONSIVE — wszystko schodzi do jednej kolumny,
   dekoracje znikaja, zeby nic nie weszlo na tekst.
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; }
  .lore-grid { grid-template-columns: 1fr; }
  .token-section { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .journal-teaser .teaser-card { grid-template-columns: 1fr; }
  .teaser-card img { max-height: 300px; }
  .desktop-nav { display: none; }
  .smile-wall { grid-template-columns: repeat(2, 1fr); row-gap: 18px; }
  .smile-wall figure { transform: none !important; }
  .smile-wall figure:hover { transform: scale(1.03) !important; }
}

@media (max-width: 620px) {
  .floaters, .zzz { display: none; }
  .contract-box { flex-direction: column; align-items: stretch; }
  .contract-box button { width: 100%; }
  .community-banner { flex-direction: column; align-items: flex-start; }
  .community-actions { width: 100%; }
  .community-actions .button { flex: 1 1 auto; justify-content: center; }
  .token-row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .token-row strong { text-align: left; }
  .truncate { max-width: 100%; }
  .sound-toggle { width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .smile-wall { grid-template-columns: 1fr; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .ticker-track, .status-dot, .zzz span, .floater { animation: none; }
  .zzz span { opacity: .85; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   MOBILE-FIRST POPRAWKI + CZYTELNOSC MEMOW
   ============================================================ */

/* teaser: caly mem widoczny, napisy nieprzyciete */
.teaser-card img {
  object-fit: contain !important;
  background: var(--espresso);
  height: auto !important;
  aspect-ratio: 1;
}

/* dotykowe cele min. 44px */
.desktop-nav a, .footer-links a { padding-block: 6px; }

/* ---------- lightbox: mem na caly ekran ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10, 7, 5, .94);
  display: grid; place-items: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  gap: 14px; grid-template-rows: 1fr auto;
  opacity: 0; transition: opacity .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox.show { opacity: 1; }
.lightbox img {
  max-width: min(100%, 720px); max-height: 78vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 12px; border: 1px solid var(--cocoa-lite);
  align-self: center; justify-self: center;
}
.lightbox-hint {
  font-size: .8rem; color: var(--cream-dim); text-align: center;
  align-self: end;
}
.lightbox-close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px;
  width: 46px; height: 46px; border-radius: 50%; cursor: pointer;
  background: var(--cocoa); color: var(--cream);
  border: 1px solid var(--toffee); font-size: 1.1rem; line-height: 1;
  z-index: 2;
}

/* ---------- responsywnosc: czytelnosc przed dekoracja ---------- */
@media (max-width: 1000px) {
  .smile-wall { grid-template-columns: repeat(2, 1fr); column-gap: 14px; row-gap: 14px; }
}

/* ponizej 760px memy ida na pelna szerokosc — napisy zawsze czytelne */
@media (max-width: 760px) {
  .smile-wall { grid-template-columns: 1fr; row-gap: 16px; }
  .smile-wall figure { transform: none !important; }
  .site-header { gap: 10px; padding: 12px 14px; }
  .brand span { font-size: 1.15rem; }
  .brand img { width: 38px; height: 38px; }
  .mini-cta { padding: 11px 16px; font-size: .76rem; }
  .hero { padding-top: 26px; }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.2rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { flex: 1 1 100%; justify-content: center; }
  .section { padding-left: 16px; padding-right: 16px; }
  .steps li { flex-direction: column; gap: 12px; }
  .lightbox img { max-height: 72vh; }
}

/* bardzo waskie ekrany */
@media (max-width: 380px) {
  .brand span { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .contract-box code { font-size: .82rem; }
}

/* wysokie zageszczenie tekstu na landscape telefonu */
@media (max-height: 480px) and (orientation: landscape) {
  .lightbox img { max-height: 68vh; }
  .zzz, .floaters { display: none; }
}

/* zero poziomego scrolla na telefonie */
html, body { max-width: 100%; }
main, section, footer, header { max-width: 100vw; }
