:root{
  --text: #f4f4f4;
  --text-size: clamp(0.95rem, 0.35rem + 0.95vw, 1.5rem);
  --arrow-size: clamp(34px, 20px + 1.2vw, 45px);
  --text-arrow-gap: clamp(6px, 2px + 0.6vw, 15px);
}

*{ box-sizing: border-box; }

html, body{
  height: 100%;
  margin: 0;
}

body{
  overflow: hidden; /* blokujemy pionowy scroll – sterujemy slajdami w JS */
  font-family: "MedievalSharp", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background: #13141a;
}

.slider{
  height: 100vh;
  width: 100vw;
  display: flex;
  flex-direction: row;
  will-change: transform;
  transition: transform 520ms ease;
  touch-action: pan-y; /* pozwala na pionowe gesty systemowe, a poziome bierzemy my */
}

.slide{
  position: relative;
  flex: 0 0 100vw;
  height: 100vh;
  overflow: hidden;
}

.slide__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slide__title{
  margin: 0;
  font-size: clamp(5rem, 3.5rem + 4.2vw, 8.75rem);
  line-height: 1;
  text-align: center;
  color: var(--text);
  text-shadow: 0 6px 40px rgba(0,0,0,0.65);
}

.slide__subtitle{
  margin-top: 0.7rem;
  font-size: clamp(1.6rem, 1.2rem + 1vw, 2.4rem);
  text-align: center;
  color: var(--text);
  opacity: 0.9;
}

.slide__text{
  position: absolute;
  left: 50%;
  width: 62%;
  transform: translateX(-50%);

  /* ✅ tekst ma stały "baseline" nad strzałkami */
  bottom: calc(5% + var(--text-arrow-gap) + var(--arrow-size));

  text-align: center;
  font-size: var(--text-size);
  line-height: 1.35;
  color: var(--text);
  text-shadow: 0 2px 18px rgba(0,0,0,0.55);
  letter-spacing: 1px;
}


/* Nawigacja - strzałki */
.nav{
  position: absolute;
  left: 50%;
  bottom: 5%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 1.40rem;
  z-index: 5;
}

.nav__btn{
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  line-height: 0;
}

.nav__btn:focus-visible{
  outline: 2px solid rgba(244,244,244,0.7);
  outline-offset: 6px;
  border-radius: 10px;
}

.nav__icon{
  width: var(--arrow-size);
  height: auto;
  display: inline-block;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav__icon svg{
  width: var(--arrow-size);
  height: auto;
  display: block;
}


.cls-1{
  fill: var(--text);
}

/* Odbicie lustrzane dla strzałki w lewo */
.nav__icon--left{
  transform: scaleX(-1);
}


.slide__text--title{
  bottom: auto;
  top: 66%;
  transform: translate(-50%, -50%);
}


.fullscreen-hint{
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 10;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.4;
  color: #f4f4f4;

  opacity: 0.85;
  pointer-events: none;
}


.nav__btn--right:hover .nav__icon{
  transform: translateX(6px);
}

.nav__btn--left:hover .nav__icon{
  transform: translateX(-6px) scaleX(-1);
}



.slide__text--end{
  top: 56%;
  will-change: transform;
  line-height: 1.1;
}

.end-btn{
  margin-top: 1rem;
  padding: 0.7rem 2rem;

  font-family: inherit;
  font-size: 1rem;
  letter-spacing: 0.06em;

  color: var(--text);
  background: none;
  border: 2px #f4f4f4 solid; 
  cursor: pointer;

  transition: background 0.25s ease, transform 0.25s ease;

  line-height: 1;
  height: 44px;
  box-sizing: border-box;
}

.end-btn:hover{
  background: #f4f4f4;
  color: #13141a;
}


.end-credit{
  margin-top: 7.5rem;
  text-align: center;

  font-family: system-ui, -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, Arial, sans-serif;
  color: #f4f4f4;
  opacity: 0.9;
}

.end-credit__label{
  font-size: 16px;
  margin-bottom: 0.3rem;
}

.end-credit__name{
  font-size: 18px;
  font-weight: 500;
}

.end-credit__mail{
  font-size: 16px;
  color: #f4f4f4;
  text-decoration: none;
}

