@import "./fonts.css";
@import "./tokens.css";
@import "./komponenty.css";
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Sticky header + pasek mobilny nie mogą przykrywać celu kotwicy. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

/* Powierzchnie, których nie rysujemy sami, też należą do systemu. */
::selection { background: var(--red); color: #fff; }
:root { accent-color: var(--red); caret-color: var(--red); scrollbar-color: var(--line-strong) var(--surface); }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--line-strong); border: 3px solid var(--surface); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin: 0;
}
h1 { font-size: var(--step-5); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--step-2); font-weight: 700; }
h4 { font-size: var(--step-1); font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0; max-width: 68ch; text-wrap: pretty; }
/* height:auto jest konieczne: atrybuty width/height z HTML są podpowiedzią
   prezentacyjną i bez tego wygrywają z CSS-owym aspect-ratio, rozciągając obraz. */
img { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: from-font; }
a:hover { text-decoration-color: var(--red); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s3); }
@media (max-width: 640px) { .container { padding-inline: var(--s2); } }

.numeric { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }

.skip {
  position: absolute; left: var(--s2); top: -100px; z-index: 200;
  background: var(--red); color: #fff; padding: 14px 20px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip:focus { top: var(--s2); }

/* Kreska nad nagłówkiem sekcji — powtarzalny znak marki. */
.rule { display: block; width: 56px; height: 4px; background: var(--red); margin-bottom: var(--s3); border-radius: 2px; }

/* Nagłówek dostaje więcej powietrza nad sobą niż pod sobą. */
.section { padding-block: var(--s7) var(--s6); }
.section--tight { padding-block: var(--s6) var(--s5); }
.section--surface { background: var(--surface); }
.section__head { margin-bottom: var(--s5); }
.section__head p { margin-top: var(--s2); color: var(--muted); font-size: var(--step-1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 26px;
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em;
  border-radius: var(--radius); border: 2px solid transparent; cursor: pointer;
  text-decoration: none; transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--onphoto { background: transparent; color: #fff; border-color: rgba(255,255,255,.65); }
.btn--onphoto:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn[aria-disabled="true"], .btn:disabled { background: var(--surface-2); color: var(--muted); border-color: var(--line); cursor: not-allowed; }

/* Etykieta w duchu listwy cenowej z regału: biały pasek, hairline, wersaliki. */
.tag {
  display: inline-block; padding: 5px 11px; background: #fff; border: 1px solid var(--line-strong);
  border-radius: 3px; font-size: .875rem; font-weight: 600; color: var(--ink-2); line-height: 1.35;
}
.tag--red { border-color: var(--red); color: var(--red-dark); background: var(--red-tint); }
.tag--onphoto { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; backdrop-filter: blur(4px); }

.label {
  font-family: var(--display); font-size: .8125rem; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted);
}

/* Miejsce na dane, których klient jeszcze nie przekazał. Ma wyglądać
   na świadomy placeholder, nie na zepsutą stronę. */
.todo {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px dashed var(--line-strong); background: repeating-linear-gradient(
    -45deg, var(--surface), var(--surface) 8px, var(--surface-2) 8px, var(--surface-2) 16px);
  color: var(--muted); padding: 3px 10px; border-radius: 3px;
  font-size: .9375rem; font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
