:root {
  --bg: #000;
  --fg: #fff;
  --red: #c8102e;
  --muted: #8a8a8a;
  --dim: #5c5c5c;
}
/* Josefin Sans 500 – trzymana na naszym serwerze (bez Google Fonts, RODO). Licencja: SIL OFL. */
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/josefin-sans-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Josefin Sans";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("fonts/josefin-sans-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat 400 – adres e-mail. Też lokalnie. Licencja: SIL OFL. */
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/montserrat-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scrollbar-gutter: stable; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  border-top: 4px solid var(--red);
}
main { min-height: 0; }
/* Bardzo niskie ekrany (np. telefon poziomo): zwykłe przewijanie. */
@media (max-height: 480px) {
  body { height: auto; min-height: 100vh; }
}

/* Układ: logo z kreską zawsze w tym samym miejscu (środkowy wiersz),
   treść pod spodem w dolnym wierszu – oba widoki w jednej komórce. */
main {
  flex: 1;
  display: grid;
  /* Na niskich ekranach górny wiersz się kurczy, a dolny zachowuje miejsce na treść. */
  /* Logo wyżej niż na środku: górny wiersz ok. 1/3 wolnego miejsca. */
  grid-template-rows: minmax(0, 1fr) auto minmax(max-content, 2fr);
  justify-items: center;
  padding: 32px 16px 0;
  text-align: center;
}
.brand { grid-row: 2; }
.below {
  grid-row: 3;
  display: grid;
  justify-items: center;
  align-items: start;
  padding-top: 44px;
  width: 100%;
}
.view {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
/* Widok niewidoczny: przezroczysty, nieklikalny, ale zajmuje miejsce,
   więc wysokość całości się nie zmienia. */
.view-contact,
.show-contact .view-home {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
}
.view-home,
.show-contact .view-contact {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s ease .1s, transform .35s ease .1s, visibility 0s;
}

.logo-link { display: block; }
.logo {
  width: min(440px, 80vw);
  height: auto;
  display: block;
}
.line {
  width: min(396px, 72vw); /* ok. 90% szerokości logo */
  height: 5px;
  border-radius: 999px;
  background: var(--red);
  margin: 20px auto 0;
}

/* Przyciski */
.btn, .label, .contact-list dt {
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 500;
}
/* Oba przyciski (Kontakt, Powrót) wyglądają tak samo i mają tę samą szerokość. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 196px;
  height: 52px;
  padding: 0 34px;
  color: var(--fg);
  text-decoration: none;
  font-size: 1rem;
  line-height: 1;
  text-transform: uppercase;
  border: 2px solid var(--red);
  border-radius: 999px;
  transition: background-color .2s, color .2s;
}
.btn span {
  letter-spacing: 0.3em;
  margin-right: -0.3em;          /* odstęp po ostatniej literze nie przesuwa napisu w bok */
  position: relative;
  top: var(--btn-nudge, 0.1em);  /* Josefin ma litery osadzone wysoko – wyrównanie w pionie */
}
.btn:hover, .btn:focus-visible {
  background: var(--red);
  outline: none;
}
/* „Powrót”: szary, podświetla się po najechaniu. */
.btn-ghost {
  margin-top: 40px;
  min-width: 0;
  height: 44px;
  padding: 0 28px;
  font-size: 0.85rem;
  color: var(--muted);
  border-color: #333;
  transition: color .2s, border-color .2s;
}
.btn-icon {
  width: 16px;
  height: 16px;
  margin-right: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.btn-ghost:hover, .btn-ghost:focus-visible {
  color: var(--fg);
  background: transparent;
  border-color: var(--red);
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Kontakt */
.label {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  padding-left: 0.4em;
  margin-bottom: 26px;
}
.contact-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.contact-list dt {
  color: #767676;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  padding-left: 0.3em;
  margin-bottom: 6px;
}
.contact-list dd {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}
.contact-list a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
  padding-bottom: 2px;
  transition: color .2s;
}
.contact-list a:hover, .contact-list a:focus-visible { color: var(--red); outline: none; }

footer {
  padding: 24px 16px 20px;
  text-align: center;
  color: #555;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* Przełącznik języka PL | EN – w prawym górnym rogu, nie wpływa na układ. */
.lang {
  position: absolute;
  top: 18px;
  right: 20px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: "Josefin Sans", system-ui, sans-serif;
  font-weight: 500;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: #444;
}
.lang button {
  background: none;
  border: 0;
  font: inherit;
  letter-spacing: inherit;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 4px 6px 8px;   /* większe pole do kliknięcia palcem */
  transition: color .2s;
}
.lang button:hover, .lang button:focus-visible { color: var(--fg); outline: none; }
.lang button.is-active { color: var(--fg); cursor: default; }
.lang button.is-active::after {
  content: "";
  display: block;
  height: 2px;
  margin: 3px 0.2em 0 0;
  border-radius: 999px;
  background: var(--red);
}

/* Animacja przy wejściu na stronę (tylko raz, tylko przesunięcia i przezroczystość –
   nic nie zmienia układu, więc logo kończy dokładnie tam, gdzie zawsze stoi). */
/* Najpierw rysuje się kreska, potem ostry napis NARYA „wynurza się” zza niej. */
@keyframes logo-rise {
  from { transform: translateY(105%); }
  to   { transform: none; }
}
@keyframes line-in {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.brand h1, .brand .logo-wrap { overflow: hidden; }   /* napis widać dopiero, gdy wjedzie w swoje pole */
.brand .logo { animation: logo-rise .9s cubic-bezier(.2,.8,.2,1) .55s both; }
.line   { animation: line-in .7s cubic-bezier(.6,0,.2,1) .1s both; }
.below  { animation: fade-in .7s ease 1.35s both; }
footer, .lang { animation: fade-in .7s ease 1.5s both; }

@media (prefers-reduced-motion: reduce) {
  .view { transition: none !important; }
  .brand .logo, .line, .below, footer, .lang { animation: none !important; }
}
