/* LuCars Mazury: tokeny, reset, typografia, przyciski, sekcje. Jedyny właściciel zmiennych --lc-* na :root. */

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/figtree-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;
}

:root {
  --lc-night: #070b10;
  --lc-deep: #0d141c;
  --lc-steel: #1a2430;
  --lc-line: rgba(255, 255, 255, 0.14);
  --lc-paper: #f2f4f3;
  --lc-ink: #0a0f14;
  --lc-mute: #5b6770; /* na paper 5,25:1 (AA) */
  --lc-mute-dark: #9aa7b0; /* opis na nocy: 8:1 na night, 7,5:1 na deep */
  --lc-volt: #37e6c8; /* akcent na ciemnym: 12,5:1 na night */
  --lc-volt-ink: #08796a; /* akcent na jasnym: 4,81:1 na paper (AA) */
  --lc-tint: #e8ecea; /* jasna sekcja przełamująca papier */
  --lc-hair: rgba(10, 15, 20, 0.14); /* cienka linia na jasnym tle */
  --lc-radius: 2px;
  --lc-pad: clamp(16px, 4vw, 48px);
  --lc-gap: clamp(12px, 2vw, 24px);
  --lc-wrap: min(1240px, 100% - 2 * var(--lc-pad));
  --lc-font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --lc-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 88px;
  background: var(--lc-night);
}

body {
  margin: 0;
  position: relative;
  min-width: 320px;
  background: var(--lc-paper);
  color: var(--lc-ink);
  font-family: var(--lc-font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

html.lc-menu-open {
  overflow: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

img,
video {
  height: auto;
}

figure {
  margin: 0;
}

a {
  color: var(--lc-volt-ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  text-decoration-thickness: 2px;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(38px, 6vw, 72px);
}

h2 {
  font-size: clamp(30px, 4.2vw, 52px);
}

h3 {
  font-size: clamp(21px, 2.2vw, 28px);
  font-weight: 400;
}

h4 {
  font-size: 19px;
  font-weight: 500;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--lc-volt);
  color: var(--lc-night);
}

/* Dostępność */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.lc-skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 12px 18px;
  background: var(--lc-volt);
  color: var(--lc-night);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--lc-radius);
  transition: top 0.2s var(--lc-ease);
}

.lc-skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--lc-volt-ink);
  outline-offset: 3px;
}

.lc-dark :focus-visible,
.lc-section--dark :focus-visible,
.lc-bar :focus-visible,
.lc-menu :focus-visible {
  outline-color: var(--lc-volt);
}

.lc-main:focus {
  outline: none;
}

/* Ikony */
.lc-icon {
  flex: none;
  vertical-align: middle;
}

.lc-icon--flip {
  transform: scaleX(-1);
}

/* Układ */
.lc-wrap {
  width: var(--lc-wrap);
  margin-inline: auto;
}

.lc-section {
  padding-block: clamp(72px, 10vw, 144px);
}

.lc-section--dark,
.lc-dark {
  background: var(--lc-night);
  color: var(--lc-paper);
}

.lc-section--tint {
  background: var(--lc-tint);
}

.lc-dark a {
  color: var(--lc-volt);
}

/* Etykieta: drobne kapitaliki z odstępem */
.lc-eyebrow {
  margin: 0 0 1.1em;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--lc-volt-ink);
}

.lc-dark .lc-eyebrow,
.lc-section--dark .lc-eyebrow {
  color: var(--lc-volt);
}

/* Nagłówek sekcji (lc_section_heading) */
.lc-sechead {
  max-width: 720px;
  margin-bottom: clamp(32px, 5vw, 64px);
}

.lc-sechead__title {
  font-size: clamp(30px, 4.2vw, 52px);
}

.lc-sechead__lead {
  margin-top: 1.1em;
  max-width: 56ch;
  color: var(--lc-mute);
  font-size: 18px;
}

.lc-section--dark .lc-sechead__lead,
.lc-dark .lc-sechead__lead {
  color: var(--lc-mute-dark);
}

.lc-sechead__link {
  margin-top: 1.6em;
}

/* Przyciski: na jasnym tle ciemny, na nocy w kolorze akcentu */
.lc-btn {
  --btn-bg: var(--lc-ink);
  --btn-fg: var(--lc-paper);
  --btn-hover: var(--lc-volt-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 30px;
  border: 1px solid var(--btn-bg);
  border-radius: var(--lc-radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s var(--lc-ease), border-color 0.25s var(--lc-ease), color 0.25s var(--lc-ease);
}

.lc-btn:hover {
  background: var(--btn-hover);
  border-color: var(--btn-hover);
  color: var(--btn-fg);
  text-decoration: none;
}

.lc-dark .lc-btn,
.lc-section--dark .lc-btn {
  --btn-bg: var(--lc-volt);
  --btn-fg: var(--lc-night);
  --btn-hover: var(--lc-paper);
  color: var(--btn-fg);
}

.lc-dark .lc-btn:hover,
.lc-section--dark .lc-btn:hover {
  color: var(--btn-fg);
}

.lc-btn--ghost {
  background: transparent;
  color: var(--lc-ink);
  border-color: currentColor;
}

.lc-btn--ghost:hover {
  background: var(--lc-ink);
  border-color: var(--lc-ink);
  color: var(--lc-paper);
}

.lc-dark .lc-btn--ghost,
.lc-section--dark .lc-btn--ghost {
  background: transparent;
  color: var(--lc-paper);
  border-color: var(--lc-line);
}

.lc-dark .lc-btn--ghost:hover,
.lc-section--dark .lc-btn--ghost:hover {
  background: var(--lc-paper);
  border-color: var(--lc-paper);
  color: var(--lc-night);
}

/* Link tekstowy z cienką linią i strzałką */
.lc-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--lc-volt-ink);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: gap 0.25s var(--lc-ease), color 0.25s var(--lc-ease);
}

.lc-link:hover {
  gap: 16px;
  text-decoration: none;
}

.lc-dark .lc-link,
.lc-section--dark .lc-link {
  color: var(--lc-paper);
}

.lc-dark .lc-link:hover,
.lc-section--dark .lc-link:hover {
  color: var(--lc-volt);
}

/*
 * Elektron w podkreśleniu (tylko wskaźnik precyzyjny i bez ograniczenia ruchu): po najechaniu na link po cienkiej linii 1 px biegnie
 * mała jasna kropka z krótkim ogonem, a linia rozświetla się za nią (ok. 450 ms). Sama ozdoba: pseudoelement absolutny, układ się nie zmienia,
 * focus-visible pokazuje linię statycznie, bez JS. Dołącza się klasą .lc-zap albo przez ten sam zestaw selektorów co poniżej.
 * Kolor: --lc-zap (na jasnym ciemny turkus, na nocy jasny turkus).
 */
@property --lc-zp {
  syntax: "<percentage>";
  inherits: false;
  initial-value: 100%;
}

@property --lc-zd {
  syntax: "<number>";
  inherits: false;
  initial-value: 0;
}

:root {
  --lc-zap: var(--lc-volt-ink);
}

.lc-dark,
.lc-section--dark,
.lc-bar,
.lc-menu {
  --lc-zap: var(--lc-volt);
}

@keyframes lc-zap {
  0% {
    --lc-zp: 0%;
    --lc-zd: 1;
  }

  80% {
    --lc-zd: 1;
  }

  100% {
    --lc-zp: 100%;
    --lc-zd: 0;
  }
}

@media (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .lc-zap,
  .lc-link,
  .lc-svc__link,
  .lc-svc__all,
  .lc-news__all,
  .lc-statement__link,
  .lc-btn--ghost,
  .lc-footer__list a,
  .lc-footer__social a {
    position: relative;
  }

  .lc-zap::after,
  .lc-link::after,
  .lc-svc__link::after,
  .lc-svc__all::after,
  .lc-news__all::after,
  .lc-statement__link::after,
  .lc-btn--ghost::after,
  .lc-footer__list a::after,
  .lc-footer__social a::after,
  .lc-bar .lc-nav__link::after,
  .lc-footer .lc-nav__link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: var(--lc-zap-b, -6px);
    height: 11px;
    pointer-events: none;
    opacity: 0;
    transform: none;
    transition: opacity 0.25s ease;
    background:
      radial-gradient(circle 6px at var(--lc-zp) 50%, color-mix(in srgb, #fff calc(var(--lc-zd) * 100%), transparent) 0 1px, color-mix(in srgb, var(--lc-zap) calc(var(--lc-zd) * 90%), transparent) 2px, transparent 6px),
      linear-gradient(90deg, transparent calc(var(--lc-zp) - 34px), color-mix(in srgb, var(--lc-zap) calc(var(--lc-zd) * 95%), transparent) var(--lc-zp), transparent var(--lc-zp)) 50% 50% / 100% 1px no-repeat,
      linear-gradient(90deg, color-mix(in srgb, var(--lc-zap) 60%, transparent) var(--lc-zp), transparent var(--lc-zp)) 50% 50% / 100% 1px no-repeat;
  }

  .lc-zap:hover::after,
  .lc-link:hover::after,
  .lc-svc__link:hover::after,
  .lc-svc__all:hover::after,
  .lc-news__all:hover::after,
  .lc-statement__link:hover::after,
  .lc-btn--ghost:hover::after,
  .lc-footer__list a:hover::after,
  .lc-footer__social a:hover::after,
  .lc-bar .lc-nav__link:hover::after,
  .lc-footer .lc-nav__link:hover::after {
    opacity: 1;
    animation: lc-zap 450ms cubic-bezier(0.3, 0.55, 0.35, 1) both;
  }

  .lc-zap:focus-visible::after,
  .lc-link:focus-visible::after,
  .lc-svc__link:focus-visible::after,
  .lc-svc__all:focus-visible::after,
  .lc-news__all:focus-visible::after,
  .lc-statement__link:focus-visible::after,
  .lc-btn--ghost:focus-visible::after,
  .lc-footer__list a:focus-visible::after,
  .lc-footer__social a:focus-visible::after,
  .lc-bar .lc-nav__link:focus-visible::after,
  .lc-footer .lc-nav__link:focus-visible::after {
    opacity: 1;
  }
}

/* Elektron za myszką (site.js): pełnoekranowy canvas nad treścią, nie łapie zdarzeń */
.lc-electron {
  position: fixed;
  inset: 0;
  z-index: 60;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/*
 * Zwijanie na telefonie (jeden mechanizm, site.js): kontener [data-lc-fold] (.lc-fold, .is-open = rozwinięty),
 * nagłówek [data-lc-fold-head] (JS wkłada jego treść do przycisku), panel [data-lc-fold-panel] > .lc-fold__in.
 * Bez JS i na komputerze panel jest przezroczysty dla układu (display: contents), więc wszystko jest rozwinięte i bez zmian.
 */
.lc-fold__panel,
.lc-fold__in {
  display: contents;
}

.lc-fold__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  text-transform: inherit;
  cursor: pointer;
}

.lc-fold__ico {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.28s var(--lc-ease);
}

.lc-fold__ico::before,
.lc-fold__ico::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1.5px;
  margin-top: -0.75px;
  background: currentColor;
}

.lc-fold__ico::after {
  transform: rotate(90deg);
}

/* Plus obraca się w krzyżyk po rozwinięciu */
[aria-expanded="true"] > .lc-fold__ico {
  transform: rotate(45deg);
}

/* Przycisk "Czytaj dalej / Zwiń" pod obciętym tekstem */
.lc-fold__more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  margin: 8px 0 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
}

.lc-fold__more .lc-fold__ico {
  width: 12px;
  height: 12px;
}

/* Delikatne pojawianie się: ukryte tylko gdy działa JS (klasa lc-js z nagłówka strony) */
.lc-js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--lc-ease), transform 0.8s var(--lc-ease);
}

.lc-js .reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms;
    animation-iteration-count: 1;
    transition-duration: 0.001ms;
    scroll-behavior: auto;
  }

  .lc-js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 16px;
    line-height: 1.6;
  }

  html {
    scroll-padding-top: 76px;
    scroll-padding-bottom: 72px; /* fokus i kotwice nie chowają się za przyklejonym paskiem kontaktowym */
  }

  h2 {
    font-size: clamp(26px, 7vw, 30px);
  }

  .lc-section {
    padding-block: clamp(40px, 9vw, 56px);
  }

  .lc-sechead {
    margin-bottom: 24px;
  }

  .lc-sechead__title {
    font-size: clamp(26px, 7vw, 30px);
  }

  .lc-sechead__lead {
    margin-top: 0.8em;
    font-size: 16px;
  }

  .lc-btn {
    min-height: 48px;
    padding: 12px 24px;
  }

  /* Zwijanie aktywne tylko z JS (klasa lc-js z nagłówka): zwinięty panel ma wysokość 0 i jest niewidoczny dla czytnika */
  .lc-js .lc-fold__panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.32s var(--lc-ease), visibility 0s linear 0.32s;
  }

  .lc-js .lc-fold.is-open .lc-fold__panel {
    grid-template-rows: 1fr;
    visibility: visible;
    transition-delay: 0s;
  }

  .lc-js .lc-fold__in {
    display: block;
    min-height: 0;
    overflow: hidden;
    margin: -6px;
    padding: 6px;
  }
}
