/* ===== DarSki Studio – baza (strona, login, panel): zmienne, reset, przyciski, przełącznik-pigułka ===== */
:root {
  --navy: #0b1b3f;
  --blue: #0a6cff;
  --blue-2: #1e90ff;
  --cyan: #14b8ff;
  --muted: #5b6b85;
  --line: #dce7f7;
  --bg: #f5f9ff;
  --bg-2: #ffffff;
  --tint: #eaf2ff;
  --pill-bg: #eef4fd;
  --nav-off: #7a869c;
  --ok: #11a36a;
  --err: #d6334a;

  --font-serif: "DM Serif Display", "Libre Caslon Display", Georgia, "Times New Roman", serif;
  --font-sans: "Jost", "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;

  --sp-1: .25rem;
  --sp-2: .5rem;
  --sp-3: .75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4.5rem;
  --sp-9: 6.5rem;

  --shadow-sm: 0 4px 14px -6px rgba(20, 60, 140, .18);
  --shadow-md: 0 14px 34px -14px rgba(20, 60, 140, .28);
  --shadow-lg: 0 28px 60px -24px rgba(20, 60, 140, .36);
  --btn-grad: linear-gradient(90deg, #0a6cff 0%, #1e90ff 100%);
  --container: 1240px;
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
em { font-style: normal; color: var(--blue); }
.icon { flex: none; display: inline-block; vertical-align: middle; }
.container { width: min(100% - 2rem, var(--container)); margin-inline: auto; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ===== Przyciski ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .8rem 1.6rem; border-radius: var(--r-pill); border: 1.5px solid transparent;
  font-family: var(--font-sans); font-weight: 500; font-size: 1.02rem; line-height: 1.2; text-decoration: none;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--btn-grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(10, 108, 255, .65); }
.btn-primary:hover { box-shadow: 0 18px 30px -10px rgba(10, 108, 255, .7); }
.btn-outline { background: rgba(255, 255, 255, .75); color: var(--blue); border-color: rgba(10, 108, 255, .35); box-shadow: 0 6px 16px -10px rgba(10, 108, 255, .35); }
.btn-outline:hover { border-color: var(--blue); box-shadow: 0 14px 24px -12px rgba(10, 108, 255, .4); }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line); }
.btn-danger { background: #fff; color: var(--err); border-color: rgba(214, 51, 74, .35); }
.btn-danger:hover { background: #fff5f6; border-color: var(--err); }
.btn-sm { padding: .55rem 1.15rem; font-size: .97rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.1rem; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.icon-box {
  display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; flex: none;
  color: var(--blue); background: linear-gradient(145deg, #f3f8ff, #e1edff);
  box-shadow: 0 8px 18px -10px rgba(10, 108, 255, .5), inset 0 1px 0 #fff;
}
.icon-box--sm { width: 42px; height: 42px; border-radius: 13px; }

/* ===== Przełącznik-pigułka (menu, zakładki panelu, filtry) ===== */
.pill-nav {
  --pill-x: 0px; --pill-w: 0px;
  position: relative; display: inline-flex; align-items: center; gap: 2px; padding: 6px;
  background: var(--pill-bg); border-radius: var(--r-pill);
  box-shadow:
    inset 0 2px 3px rgba(255, 255, 255, .95),
    inset 0 -2px 5px rgba(110, 140, 195, .2),
    0 12px 22px -12px rgba(30, 70, 140, .45);
  max-width: 100%;
}
.pill-nav__thumb {
  position: absolute; left: 0; top: 6px; bottom: 6px; width: var(--pill-w); border-radius: var(--r-pill);
  transform: translateX(var(--pill-x));
  background: linear-gradient(180deg, #ffffff 0%, #f1f6ff 100%);
  border: 1px solid rgba(255, 255, 255, .95);
  box-shadow: 0 8px 14px -4px rgba(30, 70, 140, .38), 0 1px 0 #fff inset, 0 -1px 2px rgba(120, 150, 205, .25) inset;
  opacity: 0; pointer-events: none;
  transition: transform .45s cubic-bezier(.34, 1.45, .5, 1), width .45s cubic-bezier(.34, 1.45, .5, 1), opacity .2s;
}
.pill-nav.is-ready .pill-nav__thumb { opacity: 1; }
.pill-nav.no-anim .pill-nav__thumb { transition: none; }
.pill-nav__item {
  position: relative; z-index: 1; display: inline-flex; flex-direction: column; align-items: center;
  padding: .55rem 1.15rem; border: 0; background: transparent; border-radius: var(--r-pill);
  color: var(--nav-off); font-weight: 500; font-size: 1rem; line-height: 1.25; text-decoration: none; white-space: nowrap;
  transition: color .25s ease;
}
/* ukryty pogrubiony duplikat – zapobiega zmianie szerokości po zmianie wagi fontu */
.pill-nav__item::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; user-select: none; }
.pill-nav__item.is-lit { color: var(--navy); font-weight: 600; }
.pill-nav:not(.is-ready) .pill-nav__item[aria-current] { color: var(--navy); font-weight: 600; background: #fff; box-shadow: var(--shadow-sm); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill-nav__thumb { transition: none; }
  .btn, .btn:hover { transition: none; transform: none; }
}
