/* Gramy w padla — strona główna. Programik turniejowy: papier, hairline'y,
   duże cyfry jak z tablicy wyników. Bez JS, bez cookies, bez obcych domen. */

:root {
  --paper: #f6f1ea;
  --paper-deep: #efe7dc;
  --gold: #c4963c;
}

body.home {
  background: var(--paper);
  position: relative;
}
/* Ziarno papieru — delikatna tekstura zamiast płaskiego tła */
body.home::before {
  content: "";
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'>\
<filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/>\
<feColorMatrix type='saturate' values='0'/></filter>\
<rect width='160' height='160' filter='url(%23n)' opacity='0.16'/></svg>");
}

main.home {
  position: relative; z-index: 1;
  max-width: 1080px; margin: 0 auto; padding: 0 24px 0;
}

/* ── Masthead ─────────────────────────────────────────────────────────── */
.masthead {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding: 22px 0 18px; border-bottom: 1px solid var(--ink);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand .mark { width: 34px; height: auto; display: block; }
.wordmark {
  font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500;
  font-size: 20px; letter-spacing: -0.3px; color: var(--ink);
}
.wordmark span { color: var(--burgundy); }
.masthead .kicker {
  font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted);
}

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero { padding: 64px 0 8px; text-align: center; position: relative; }
/* Znak wodny — paletki odbite na papierze za nagłówkiem */
.hero-mark {
  position: absolute; top: -26px; left: 50%; transform: translateX(-50%);
  width: min(330px, 62vw); height: auto; opacity: 0.055; pointer-events: none;
  z-index: 0;
}
.hero > *:not(.hero-mark) { position: relative; z-index: 1; }
.hero .over {
  font-size: 11px; font-weight: 600; letter-spacing: 2.2px; text-transform: uppercase;
  color: var(--burgundy); margin: 0 0 22px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.hero .over::before, .hero .over::after {
  content: ""; height: 1px; width: clamp(24px, 12vw, 120px); background: var(--hairline);
}
.hero h1 {
  font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500;
  font-size: clamp(40px, 7.2vw, 82px); line-height: 0.98; letter-spacing: -1.6px;
  margin: 0 0 20px; color: var(--ink);
}
.hero h1 em {
  font-style: normal; color: var(--burgundy);
  position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 2%; right: 2%; bottom: 0.1em;
  height: 0.09em; background: var(--gold); border-radius: 2px;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 19px); color: var(--muted);
  max-width: 620px; margin: 0 auto 32px; line-height: 1.65;
}
.cta { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--burgundy); color: var(--paper);
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 15px; letter-spacing: 0.2px;
  box-shadow: 0 8px 20px rgba(122, 31, 43, 0.22);
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
}
.cta .note { font-size: 13.5px; color: var(--muted); margin: 0; }

/* ── Sekcje ───────────────────────────────────────────────────────────── */
.home section { margin-top: 88px; }
.sec-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 28px; }
.sec-head h2 {
  font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500;
  font-size: clamp(24px, 3.4vw, 34px); margin: 0; letter-spacing: -0.6px; white-space: nowrap;
}
.sec-head .rule { flex: 1; height: 1px; background: var(--hairline); }
.sec-head .num {
  font-size: 11px; letter-spacing: 1.6px; color: var(--muted); text-transform: uppercase;
}
.sec-sub { color: var(--muted); margin: -14px 0 30px; max-width: 620px; }

/* ── Kroki ────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.step { padding: 26px 26px 30px; border-bottom: 1px solid var(--hairline); }
.step + .step { border-left: 1px solid var(--hairline); }
.step .n {
  font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500;
  font-size: 44px; line-height: 1; color: var(--burgundy);
  margin-bottom: 14px;
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ── Slider ze zrzutami ───────────────────────────────────────────────── */
.slider { position: relative; max-width: 700px; margin: 0 auto; }
.track {
  display: flex; gap: 26px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 2px 8px;
  scrollbar-width: none;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 calc((100% - 26px) / 2);
  scroll-snap-align: start; margin: 0; text-align: center;
}

/* Strzalki — poza tasma, na wysokosci telefonow */
.arrow {
  position: absolute; top: 42%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--hairline); background: #fffdfa; color: var(--burgundy);
  font-size: 26px; line-height: 1; cursor: pointer; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 14px rgba(43, 29, 24, 0.12);
  transition: border-color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.arrow:hover:not(:disabled) { border-color: var(--burgundy); transform: translateY(-50%) scale(1.06); }
.arrow:disabled { opacity: 0.28; cursor: default; }
.arrow.prev { left: -60px; padding-right: 3px; }
.arrow.next { right: -60px; padding-left: 3px; }
.slide .phone {
  position: relative; border-radius: 30px; padding: 7px;
  background: linear-gradient(160deg, #3a2b25, #211713);
  box-shadow: 0 18px 40px rgba(43, 29, 24, 0.22);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.slide:hover .phone { transform: translateY(-6px); box-shadow: 0 26px 52px rgba(43, 29, 24, 0.26); }
.slide img { width: 100%; height: auto; display: block; border-radius: 24px; }
.slide figcaption { margin-top: 16px; }
.slide .cap-t { font-weight: 600; font-size: 15px; display: block; }
.slide .cap-s { font-size: 13.5px; color: var(--muted); }

/* ── Formaty ──────────────────────────────────────────────────────────── */
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.format {
  border: 1px solid var(--hairline); border-top: 3px solid var(--burgundy);
  background: #fffdfa; padding: 28px 28px 30px;
}
.format h3 {
  font-family: "Bricolage Grotesque", Georgia, serif; font-weight: 500; font-size: 26px;
  margin: 0 0 4px; letter-spacing: -0.4px;
}
.format .tag { font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.format p { margin: 0; color: var(--ink); font-size: 15.5px; line-height: 1.65; }

/* ── Lista funkcji ────────────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; list-style: none; padding: 0; margin: 0; }
.features li {
  margin: 0; padding: 14px 0 14px 26px; position: relative;
  font-size: 15.5px; border-bottom: 1px solid var(--hairline);
}
.features li::before { content: "→"; position: absolute; left: 0; color: var(--burgundy); }

/* ── Kontakt ──────────────────────────────────────────────────────────── */
.contact { text-align: center; padding: 12px 0 0; }
.contact p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }
.contact .mail {
  font-family: "Bricolage Grotesque", Georgia, serif; font-size: 26px;
  display: inline-block; border-bottom: 2px solid var(--gold); text-decoration: none;
}

/* ── Stopka ───────────────────────────────────────────────────────────── */
.home-footer {
  margin-top: 96px; background: var(--burgundy); color: rgba(246, 241, 234, 0.78);
  position: relative; z-index: 1;
}
.home-footer .inner {
  max-width: 1080px; margin: 0 auto; padding: 34px 24px 40px;
  display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between;
  font-size: 14px;
}
.home-footer a { color: var(--paper); text-decoration: none; border-bottom: 1px solid rgba(246, 241, 234, 0.35); }
.home-footer a:hover { border-color: var(--paper); }
.home-footer .links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ── Wejście strony ───────────────────────────────────────────────────── */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.7s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
.d1 { animation-delay: 0.05s; } .d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.23s; } .d4 { animation-delay: 0.32s; }
@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
  .track { scroll-behavior: auto; }
  .slide:hover .phone { transform: none; }
}

/* ── Mobile ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  /* Strzalki nie miesza sie juz obok tasmy — wjezdzaja na jej krawedzie */
  .arrow.prev { left: 2px; }
  .arrow.next { right: 2px; }
  .arrow { width: 42px; height: 42px; background: rgba(255, 253, 250, 0.94); }
}
@media (max-width: 860px) {
  .home section { margin-top: 64px; }
  .slide { flex: 0 0 min(72%, 260px); }
  .hero { padding-top: 44px; }
  .steps, .formats, .features { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; }
  .features li { padding-left: 24px; }
  .sec-head .num { display: none; }
}
@media (max-width: 620px) {
  .masthead .kicker { display: none; }
}
@media (max-width: 560px) {
  .sec-head h2 { white-space: normal; }
}
