@font-face {
  font-family: "Manrope";
  src: url("../assets/fonts/Manrope-Variable.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #f4f6fa;
  --surface: #ffffff;
  --ink: #0a1324;
  --heading: #07101f;
  --muted: #334155;
  --placeholder: #5b6b82;
  --line: #d5deec;
  --blue: #155eef;
  --blue-deep: #0b4fd0;
  --magenta-deep: #9d174d;
  --magenta-soft: #fce7f3;
  --sky: #e8f0ff;
  --danger: #b42318;
  --ok: #0f7a5a;
  --ring: 0 0 0 3px rgba(21, 94, 239, 0.28);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --shadow: 0 8px 24px rgba(10, 19, 36, 0.07);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #151d2e;
    --ink: #e8eefc;
    --heading: #ffffff;
    --muted: #b6c2d8;
    --placeholder: #8b9bb5;
    --line: #2a364f;
    --blue: #5b8cff;
    --blue-deep: #82a7ff;
    --magenta-deep: #f9a8d4;
    --magenta-soft: #3a1d33;
    --sky: #1a2744;
    --danger: #fda4af;
    --ok: #34d399;
    --ring: 0 0 0 3px rgba(91, 140, 255, 0.4);
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { color-scheme: light dark; background-color: var(--bg); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.55;
  color: var(--ink);
  background-color: var(--bg);
  background-image: none;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blue-deep); text-underline-offset: 2px; }
a:hover { color: var(--blue); }
:focus-visible { outline: none; box-shadow: var(--ring); }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: #fff; padding: 0.6rem 0.9rem;
  z-index: 100; font-weight: 700; min-height: 44px;
}
.skip-link:focus { left: 0.75rem; top: 0.75rem; }

.wrap { width: min(920px, calc(100% - 1.25rem)); margin-inline: auto; }

.site-header {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.75rem; min-height: 56px; padding: 0.55rem 0;
}
.brand {
  display: flex; align-items: center; gap: 0.55rem;
  text-decoration: none; color: var(--heading); min-width: 0;
}
.brand-name {
  font-weight: 800; font-size: 1rem; letter-spacing: -0.02em;
  white-space: normal; line-height: 1.2;
}
.header-tel {
  display: inline-flex; align-items: center; gap: 0.35rem;
  min-height: 44px; padding: 0.45rem 0.8rem;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  background-color: var(--sky); color: var(--blue-deep);
  border: 1px solid var(--line); font-weight: 800; font-size: 0.95rem;
}
.header-tel .pico { width: 1.15rem; height: 1.15rem; color: var(--blue); }

.pico { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; }

.page { padding: 0.85rem 0 1.5rem; }

.layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1rem;
  align-items: start;
}

.intro h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.45rem, 3.5vw, 1.9rem);
  line-height: 1.2; letter-spacing: -0.02em;
  font-weight: 800; color: var(--heading);
}
.lede {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 550;
}

.contact-row {
  display: grid; gap: 0.55rem;
}
.contact {
  display: flex; align-items: center; gap: 0.7rem;
  min-height: 56px; padding: 0.7rem 0.85rem;
  border-radius: 14px; text-decoration: none;
  background-color: var(--surface); border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow);
}
.contact .pico { width: 1.3rem; height: 1.3rem; }
.contact small {
  display: block; font-size: 0.72rem; font-weight: 750;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted);
}
.contact strong {
  display: block; font-size: 1.05rem; font-weight: 800; color: var(--heading); line-height: 1.2;
}
.contact.tel .pico { color: var(--blue); }
.contact.mail .pico { color: var(--magenta-deep); }
.contact.mail strong { color: var(--magenta-deep); font-size: 0.98rem; }

.panel {
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1rem 0.95rem;
  box-shadow: var(--shadow);
}
.panel h2 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem; font-weight: 800; color: var(--heading);
}

.field { margin-bottom: 0.75rem; }
.row { display: flex; gap: 0.6rem; }
.grow { flex: 1; min-width: 0; }
.nr { width: 5.5rem; flex: 0 0 5.5rem; }

label {
  display: block; margin-bottom: 0.3rem;
  font-size: 0.9rem; font-weight: 700; color: var(--heading);
}
abbr[title="wymagane"] { color: var(--magenta-deep); text-decoration: none; font-weight: 800; }

input, select, textarea {
  width: 100%; appearance: none;
  border: 1px solid var(--line); border-radius: 11px;
  background-color: var(--surface); color: var(--ink);
  padding: 0.75rem 0.85rem; min-height: 46px;
  font: inherit; font-size: 16px; font-weight: 600;
}
input::placeholder { color: var(--placeholder); font-weight: 500; }
select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 16px) calc(50% - 2px), calc(100% - 10px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--blue); box-shadow: var(--ring); outline: none;
}
input.is-invalid, select.is-invalid { border-color: var(--danger); }
.err {
  margin: 0.28rem 0 0; color: var(--danger);
  font-size: 0.84rem; font-weight: 700;
}

.check-label {
  display: flex; gap: 0.6rem; align-items: flex-start;
  font-size: 0.9rem; font-weight: 600; color: var(--ink);
}
.check-label input {
  width: 1.15rem; height: 1.15rem; margin-top: 0.15rem;
  accent-color: var(--blue); flex: 0 0 auto; min-height: 0; padding: 0;
}

.btn-submit {
  width: 100%; min-height: 48px; margin-top: 0.15rem;
  border: 0; border-radius: 999px; cursor: pointer;
  background-color: var(--blue); color: #fff;
  font: inherit; font-weight: 800; font-size: 1rem;
}
.btn-submit:hover { background-color: var(--blue-deep); }
.btn-secondary {
  min-height: 44px; padding: 0.55rem 0.9rem; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background-color: var(--surface); color: var(--heading);
  font: inherit; font-weight: 750;
}
.submit-note {
  margin: 0.5rem 0 0; text-align: center;
  color: var(--muted); font-size: 0.86rem; font-weight: 600;
}

.mail-fallback {
  margin-top: 0.85rem; padding: 0.85rem;
  border-radius: 12px; background-color: var(--bg); border: 1px dashed var(--line);
}
.mail-fallback h3 { margin: 0 0 0.3rem; font-size: 0.95rem; font-weight: 800; color: var(--heading); }
.mail-fallback p { margin: 0 0 0.45rem; color: var(--muted); font-size: 0.88rem; font-weight: 600; }
.mail-fallback textarea {
  margin: 0.4rem 0; min-height: 8rem; resize: vertical;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem; font-weight: 500;
}
.copy-status { min-height: 1.1em; margin: 0.35rem 0 0; color: var(--ok); font-size: 0.85rem; font-weight: 700; }

.site-footer {
  border-top: 1px solid var(--line);
  background-color: var(--surface);
}
.footer-inner { padding: 0.85rem 0 1.1rem; }
.footer-inner p {
  margin: 0; color: var(--muted); font-size: 0.86rem; font-weight: 600; text-align: center;
}
.footer-inner a { font-weight: 750; }

@media (max-width: 800px) {
  .layout { grid-template-columns: 1fr; gap: 0.85rem; }
}
@media (max-width: 520px) {
  .row { flex-direction: column; }
  .nr { width: 100%; flex: 1; }
  .header-tel span { letter-spacing: -0.01em; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status {
  margin: 0.65rem 0 0;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
}
.form-status.is-ok {
  background-color: #e8f7f0;
  color: var(--ok);
  border: 1px solid #9ed9c0;
}
.form-status.is-err {
  background-color: #fdecec;
  color: var(--danger);
  border: 1px solid #f2b4b4;
}
@media (prefers-color-scheme: dark) {
  .form-status.is-ok { background-color: #14352c; border-color: #2f6b56; }
  .form-status.is-err { background-color: #3a1d22; border-color: #7a3038; }
}
.btn-submit[disabled] { opacity: 0.6; cursor: wait; }

.page-simple { padding: 1.1rem 0 2rem; }
.page-simple article h1 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  line-height: 1.25; letter-spacing: -0.02em;
  font-weight: 800; color: var(--heading);
}
.page-simple article h2 {
  margin: 1.35rem 0 0.45rem;
  font-size: 1.08rem; font-weight: 800; color: var(--heading);
}
.page-simple article p,
.page-simple article li {
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 550;
}
.page-simple article ul { padding-left: 1.2rem; }
.page-simple article p { margin: 0 0 0.7rem; }
.header-back {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0.4rem 0.85rem;
  border-radius: 999px; text-decoration: none; white-space: nowrap;
  background-color: var(--sky); color: var(--blue-deep);
  border: 1px solid var(--line); font-weight: 750; font-size: 0.9rem;
}
.header-back:hover { color: var(--blue); }
