/* ==========================================================================
   springus.pl — arkusz główny (przepisany od zera)
   Sekcje: tokeny · baza · typografia · układ · przyciski · pasek (home)
   · scena z czatem · pasek zaufania · usługi · proces · cennik · FAQ
   · kontakt · stopka · podstrony · dokumenty · responsywność
   ========================================================================== */

/* Tokeny ------------------------------------------------------------------ */

:root {
  --cream: #faf6ef;
  --tint: #f4ecdf;
  --surface: #ffffff;
  --ink: #1c1917;
  --ink-soft: #44403c;
  --muted: #79716b;
  --accent: #c2410c;
  --accent-strong: #9a3412;
  --accent-soft: #ffedd5;
  --border: #e8e1d4;
  --dark: #1c1917;
  --dark-soft: #292524;
  --success: #15803d;
  --danger: #b91c1c;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06), 0 4px 12px rgba(28, 25, 23, 0.05);
  --shadow-md: 0 2px 4px rgba(28, 25, 23, 0.06), 0 14px 34px rgba(28, 25, 23, 0.1);

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
  --bar-h: 72px;
}

/* Baza -------------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

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

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

/* Typografia -------------------------------------------------------------- */

h1,
h2,
h3,
h4 {
  margin: 0 0 0.5em;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--ink-soft);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.text-muted {
  color: var(--muted);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

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

/* Układ ------------------------------------------------------------------- */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

.section--dark {
  background: var(--dark);
  color: #f5f5f4;
}

.section--dark h2 {
  color: #fff;
}

.section--dark .lead,
.section--dark .text-muted {
  color: #d6d3d1;
}

.section--dark .eyebrow {
  color: #fb923c;
}

.section--dark .eyebrow::before {
  background: #fb923c;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(28px, 5vw, 44px);
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.section-cta p {
  margin: 0;
  color: #d6d3d1;
}

/* Przyciski --------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--lg {
  padding: 16px 30px;
  font-size: 1.05rem;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
  background: var(--accent-strong);
}

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

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

.btn--light {
  background: #fff;
  color: var(--ink);
}

.btn:disabled {
  opacity: 0.6;
  cursor: progress;
  transform: none;
  pointer-events: none;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 30px);
  box-shadow: var(--shadow-sm);
}

/* Pasek górny (strona główna) --------------------------------------------- */

.bar {
  position: relative;
  z-index: 2;
  height: var(--bar-h);
}

.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  white-space: nowrap;
}

.logo span {
  color: var(--accent);
}

.logo--light {
  color: #fff;
}

.bar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.bar-nav {
  display: flex;
  gap: 4px;
}

.bar-nav a {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.bar-nav a:hover {
  background: rgba(28, 25, 23, 0.06);
  color: var(--ink);
}

.btn-new {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.btn-new:hover {
  border-color: var(--accent);
}

.btn-new[hidden] {
  display: none;
}

/* Scena główna z czatem ---------------------------------------------------- */

.screen {
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - var(--bar-h));
}

.stage {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(24px, 4vw, 48px) 0 clamp(16px, 2.5vw, 28px);
  overflow: hidden;
}

.stage::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.09), transparent 65%);
  pointer-events: none;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(28, 25, 23, 0.055) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 78%);
  pointer-events: none;
}

.stage-wrap {
  position: relative;
  z-index: 1;
  max-width: min(1040px, 100%);
  text-align: center;
}

.stage-intro h1 {
  margin-top: 22px;
}

.stage-intro h1 em {
  font-style: normal;
  color: var(--accent);
}

.stage-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: var(--dark);
  color: var(--cream);
  font-family: var(--font-display);
  font-size: 2.3rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
}

.stage-mark span {
  color: var(--accent);
}

.stage-lead {
  max-width: 52ch;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.8vw, 1.12rem);
}

.stage-chat {
  margin-top: clamp(26px, 4vw, 38px);
  text-align: left;
}

/* Kompozytor */

.composer {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 7px 7px 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.composer:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(194, 65, 12, 0.12), var(--shadow-md);
}

.composer input {
  flex: 1;
  min-width: 0;
  padding: 14px 0;
  border: 0;
  background: none;
  font-size: 1.06rem;
  outline: none;
}

.composer input::placeholder {
  color: var(--muted);
}

.composer__send {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.composer__send:disabled {
  background: #e6ddcc;
  color: #9c9285;
  cursor: default;
}

.composer__send:not(:disabled):hover {
  background: var(--accent-strong);
}

.composer__send svg {
  width: 20px;
  height: 20px;
}

/* Chipsy z pytaniami */

.suggests {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.chip {
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  transform: translateY(-1px);
}

.chip--primary {
  background: var(--dark);
  border-color: var(--dark);
  color: #fff;
  font-weight: 600;
}

.chip--primary:hover {
  background: var(--dark-soft);
  border-color: var(--dark-soft);
  color: #fff;
}

.stage-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.78rem;
  color: var(--muted);
}

.stage-note a {
  color: var(--accent);
}

/* Rozmowa */

.chat-log {
  display: none;
  flex-direction: column;
  gap: 12px;
  max-height: min(58vh, 560px);
  margin-bottom: 18px;
  padding-right: 2px;
  overflow-y: auto;
}

.bubble {
  max-width: min(680px, 86%);
  padding: 13px 18px;
  border-radius: 16px;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.bubble--bot {
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-bottom-left-radius: 6px;
  box-shadow: var(--shadow-sm);
}

.bubble--bot p {
  margin: 0 0 8px;
}

.bubble--bot p:last-child {
  margin-bottom: 0;
}

.bubble--bot ul {
  margin: 0 0 8px;
  padding-left: 20px;
}

.bubble--bot ul:last-child {
  margin-bottom: 0;
}

.bubble--bot li {
  margin-bottom: 3px;
}

.bubble--bot li:last-child {
  margin-bottom: 0;
}

.bubble--bot code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--tint);
  font-size: 0.88em;
}

.bubble--bot a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bubble--user {
  align-self: flex-end;
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}

.typing {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
}

.typing__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted);
  animation: blink 1.2s infinite;
}

.typing__dot:nth-child(2) {
  animation-delay: 0.2s;
}

.typing__dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.25;
  }

  40% {
    opacity: 1;
  }
}

/* Tryb rozmowy */

body.chatting .stage {
  justify-content: center;
  padding-top: clamp(12px, 2vw, 20px);
  padding-bottom: clamp(10px, 2vw, 18px);
}

body.chatting .stage-wrap {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  max-width: min(1200px, 100%);
}

body.chatting .stage-intro,
body.chatting .suggests {
  display: none;
}

body.chatting .stage-chat {
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  margin-top: 0;
}

body.chatting .chat-log {
  display: flex;
  flex: 0 0 auto;
  min-height: 0;
  max-height: min(62vh, 560px);
  margin-bottom: 16px;
}

body.chatting .stage-note {
  text-align: left;
  padding-left: 4px;
}

/* Pasek zaufania ----------------------------------------------------------- */

.stage-trust {
  position: relative;
  z-index: 1;
  flex: none;
  padding-bottom: clamp(16px, 3vw, 28px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px 64px;
  width: 100%;
  max-width: 880px;
  margin: clamp(8px, 2vw, 18px) auto 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
  text-align: center;
}

.trust-strip li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.trust-strip strong {
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.trust-strip span {
  font-size: 0.9rem;
  color: var(--muted);
}

/* Usługi ------------------------------------------------------------------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.service-card h3 {
  margin-bottom: 2px;
}

.service-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.service-icon svg {
  width: 24px;
  height: 24px;
}

/* Szablony ---------------------------------------------------------------- */

.templates-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.tpl-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.tpl-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.tpl-cover {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 24px;
}

.tpl-cover span {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
}

.tpl-cover--landing {
  background: linear-gradient(135deg, #1e3a8a, #172554);
}

.tpl-cover--wizytowka {
  background: linear-gradient(135deg, #b45309, #78350f);
}

.tpl-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: clamp(20px, 3vw, 28px);
}

.tpl-body h3 {
  margin-bottom: 4px;
}

.tpl-body p {
  margin: 0 0 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.tpl-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--accent);
  text-decoration: none;
}

.tpl-link svg {
  width: 17px;
  height: 17px;
  transition: transform 0.15s ease;
}

.tpl-link:hover {
  color: var(--accent-strong);
}

.tpl-link:hover svg {
  transform: translate(2px, -2px);
}

/* Proces ------------------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid rgba(255, 255, 255, 0.16);
}

.step-number {
  position: absolute;
  top: -19px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}

.step h3 {
  margin: 14px 0 6px;
  font-size: 1.1rem;
  color: #fff;
}

.step p {
  margin: 0;
  font-size: 0.92rem;
  color: #d6d3d1;
}

/* Cennik ------------------------------------------------------------------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.price-card h3 {
  margin-bottom: 0;
}

.price {
  margin: 0;
  font-size: 1.05rem;
  color: var(--muted);
}

.price strong {
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
}

.price-desc {
  margin: 0 0 14px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  font-size: 0.94rem;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  color: var(--ink-soft);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  margin-top: 3px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.72rem;
  font-weight: 700;
}

.price-card .btn {
  margin-top: auto;
}

.price-card--featured {
  position: relative;
  background: var(--dark);
  border-color: var(--dark);
  color: #f5f5f4;
  box-shadow: var(--shadow-md);
}

.price-card--featured .price strong,
.price-card--featured h3 {
  color: #fff;
}

.price-card--featured .price,
.price-card--featured .price-desc,
.price-card--featured .check-list li {
  color: #d6d3d1;
}

.price-card--featured .check-list li::before {
  background: rgba(251, 146, 60, 0.18);
  color: #fb923c;
}

.price-tag {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: var(--accent);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-extras {
  display: grid;
  grid-template-columns: minmax(0, 480px);
  gap: 20px;
  margin-top: 20px;
}

.extra {
  padding: 18px 22px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.55);
}

.extra h3 {
  margin: 0 0 2px;
  font-size: 0.98rem;
}

.extra p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.extra strong {
  color: var(--ink);
}

.pricing-note {
  margin: 26px 0 0;
  font-size: 0.92rem;
  color: var(--muted);
}

/* FAQ ---------------------------------------------------------------------- */

.faq {
  max-width: 780px;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  max-width: 64ch;
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}

/* Kontakt ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 48px);
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 3px;
}

.contact-label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-list a {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--accent);
}

.contact-list span:not(.contact-label) {
  font-size: 1.02rem;
}

.contact-form {
  display: grid;
  gap: 16px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 6px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.14);
}

.form-field textarea {
  min-height: 120px;
  resize: vertical;
}

.form-field--check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}

.form-field--check input {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: var(--accent);
}

.form-field--check label {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--muted);
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
}

.form-status.is-success {
  color: var(--success);
}

.form-status.is-error {
  color: var(--danger);
}

.map-wrap {
  margin-top: clamp(36px, 6vw, 56px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}

/* Stopka -------------------------------------------------------------------- */

.site-footer {
  padding: 56px 0 30px;
  background: var(--dark);
  color: #d6d3d1;
  font-size: 0.95rem;
}

.site-footer a {
  color: #f5f5f4;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
}

.footer-brand p {
  max-width: 34ch;
  margin: 14px 0 0;
  font-size: 0.9rem;
  color: #a8a29e;
}

.footer-areas {
  max-width: none;
}

.footer-areas a {
  color: #d6d3d1;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a8a29e;
}

.footer-col ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}

.site-footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  justify-content: space-between;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.86rem;
  color: #a8a29e;
}

/* Podstrony: nagłówek i hero ------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(250, 246, 239, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 100%;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-list a:hover {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-phone {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-phone:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero podstron */

.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(44px, 7vw, 80px) 0;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 60vw;
  height: 60vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(194, 65, 12, 0.09), transparent 65%);
  pointer-events: none;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 26px 0 16px;
}

.hero-note {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--tint);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-soft);
}

/* Dokumenty (polityka prywatności) ------------------------------------------- */

.legal {
  max-width: 760px;
}

.legal h2 {
  margin-top: 1.8em;
  font-size: 1.35rem;
}

.legal ul {
  margin: 0 0 1em;
  padding-left: 1.3em;
  color: var(--ink-soft);
}

.legal .updated {
  margin-bottom: 2em;
  font-size: 0.9rem;
  color: var(--muted);
}

/* Responsywność -------------------------------------------------------------- */

@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 36px 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 18px var(--gutter) 24px;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }

  .site-header.nav-open .site-nav {
    display: flex;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
  }

  .site-header.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-list a {
    display: block;
    padding: 12px 14px;
    font-size: 1.02rem;
  }

  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 8px;
  }

  .nav-phone {
    text-align: center;
  }

  .pricing-grid,
  .pricing-extras {
    grid-template-columns: 1fr;
  }

  .about,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .bar-nav {
    display: none;
  }

  .stage-mark {
    width: 64px;
    height: 64px;
    border-radius: 17px;
    font-size: 1.9rem;
  }

  .bubble {
    max-width: 92%;
  }

  .composer {
    padding: 5px 5px 5px 16px;
  }

  .composer__send {
    width: 44px;
    height: 44px;
  }

  .chip {
    font-size: 0.84rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .templates-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

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

  .btn:hover,
  .service-card:hover,
  .chip:hover,
  .tpl-card:hover {
    transform: none;
  }

  .typing__dot {
    animation: none;
    opacity: 0.6;
  }
}
