/* Reset, typografia bazowa i elementy wspolne (przyciski, pola, etykiety). */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--color-paper);
  color: var(--color-text);
  font-family: var(--font-ui);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; }

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.02;
  color: var(--color-ink);
  letter-spacing: .002em;
  text-wrap: balance;
}
h1 { font-size: var(--step-h1); line-height: .98; }
h2 { font-size: var(--step-h2); }
h3 { font-size: var(--step-h3); }
p { margin: 0; }

a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-ink :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.four-moments :focus-visible,
.service-area :focus-visible { outline-color: var(--color-sand); }

::selection { background: var(--color-ink); color: #fff; }

/* --- pomocnicze ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%);
  overflow: hidden; white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--gutter); top: -100px;
  z-index: 100;
  background: var(--color-white);
  color: var(--color-ink);
  padding: 12px 18px;
  border-radius: var(--radius-control);
  font-size: var(--step-small);
  font-weight: 600;
  text-decoration: none;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus-visible { top: 12px; }

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow {
  margin: 0;
  font-size: var(--step-label);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-muted);
}
.eyebrow--on-ink { color: var(--color-on-ink-muted); }

.lede { font-size: var(--step-lede); line-height: 1.35; }
.prose { color: var(--color-muted); max-width: 42ch; }

.rule-sand {
  width: 56px; height: 1px;
  border: 0;
  background: var(--color-sand);
  margin: var(--space-5) 0;
}

.icon { flex: none; }

/* --- przyciski ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 14px 26px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-pill);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}
.btn .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

/* Jasny, piaskowo-kremowy przycisk z granatowym tekstem — Hero i header. */
.btn--sand {
  background: #F2E7D8;
  color: var(--color-ink);
  border-color: #F2E7D8;
}
.btn--sand:hover { background: #FBF5EC; border-color: #FBF5EC; }

.btn--ghost-light {
  background: rgba(255, 255, 255, .06);
  color: var(--color-white);
  border-color: rgba(255, 255, 255, .55);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, .16); border-color: #fff; }

/* Granatowy przycisk — wysylka formularza. */
.btn--navy {
  background: var(--color-ink);
  color: var(--color-white);
  border-radius: var(--radius-control);
  border-color: var(--color-ink);
}
.btn--navy:hover { background: #10314c; border-color: #10314c; }

.btn--outline {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-line);
  border-radius: var(--radius-control);
  font-weight: 500;
}
.btn--outline:hover { border-color: var(--color-ink); }

.btn[disabled], .btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
}

.link-underline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid currentColor;
  padding-bottom: 3px;
  background: none;
  border-inline: 0; border-top: 0;
  cursor: pointer;
}
.link-underline .arrow { transition: transform var(--dur-fast) var(--ease-out); }
.link-underline:hover .arrow { transform: translateX(3px); }

/* --- pola formularza ----------------------------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label,
.fieldset__legend {
  font-size: .875rem;
  font-weight: 500;
  color: var(--color-text);
}
.field input,
.field select,
.field textarea {
  font: inherit;
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-control);
  transition: border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 92px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%230B2439' stroke-width='1.6'%3E%3Cpath d='M3 6l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input::placeholder,
.field textarea::placeholder { color: #6B7885; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--color-ink);
  box-shadow: 0 0 0 2px rgba(11, 36, 57, .25);
}
.field[data-invalid="true"] input,
.field[data-invalid="true"] select,
.field[data-invalid="true"] textarea { border-color: var(--color-error); }

.field__error {
  font-size: .8125rem;
  color: var(--color-error);
}
.field__error[hidden] { display: none; }

.field__hint { font-size: .8125rem; color: var(--color-muted); }
