/* ==========================================================================
   springus.pl — fundament: tokeny, reset, typografia, komponenty bazowe
   ========================================================================== */

:root {
  /* Kolory */
  --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;

  /* Kształty */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  /* Cienie */
  --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 12px 32px rgba(28, 25, 23, 0.1);
  --shadow-lg: 0 4px 8px rgba(28, 25, 23, 0.06), 0 24px 60px rgba(28, 25, 23, 0.14);

  /* Typografia */
  --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;

  /* Układ */
  --maxw: 1120px;
  --gutter: clamp(20px, 4vw, 32px);
  --header-h: 72px;
}

/* Reset ------------------------------------------------------------------ */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

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;
}

/* 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.2rem, 5.2vw, 3.6rem);
}

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);
}

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

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

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

.section > .container > h2,
.section > .container > .section-head {
  margin-bottom: clamp(28px, 5vw, 44px);
}

.section-head {
  max-width: 720px;
}

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

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

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

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

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

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

.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;
}

/* Komponenty -------------------------------------------------------------- */

.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:active {
  transform: translateY(0);
}

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

.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--link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

/* Dostępność -------------------------------------------------------------- */

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

.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;
}

/* Nagłówek ---------------------------------------------------------------- */

.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%;
}

.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;
}

.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);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-soft);
  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 -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-top: clamp(48px, 8vw, 88px);
  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-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}

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

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

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

.hero-visual {
  position: relative;
}

.browser {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotate(1.5deg);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--tint);
  border-bottom: 1px solid var(--border);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d8cfc0;
}

.browser-dot:first-child {
  background: #e8b4a0;
}

.browser-url {
  margin-left: 10px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  background: var(--surface);
  font-size: 0.78rem;
  color: var(--muted);
}

.browser-body {
  padding: 26px;
}

.skeleton {
  border-radius: 8px;
  background: linear-gradient(90deg, #efe8db, #e6ddcc);
}

.skeleton--title {
  width: 62%;
  height: 26px;
  margin-bottom: 18px;
}

.skeleton--text {
  width: 92%;
  height: 11px;
  margin-bottom: 10px;
}

.skeleton--short {
  width: 70%;
}

.skeleton--button {
  width: 150px;
  height: 40px;
  margin: 22px 0 26px;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #e8b48f, #dd9868);
}

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

.skeleton--card {
  height: 86px;
  border-radius: 14px;
}

.hero-badge {
  position: absolute;
  right: -14px;
  bottom: -22px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transform: rotate(-1deg);
}

.hero-badge strong {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fb923c;
}

.hero-badge span {
  font-size: 0.78rem;
  line-height: 1.35;
  color: #d6d3d1;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin: clamp(44px, 7vw, 72px) 0 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--border);
  list-style: none;
}

.trust-strip li {
  display: flex;
  flex-direction: column;
  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;
}

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

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

.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 {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  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: repeat(3, 1fr);
  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);
}

/* Portfolio --------------------------------------------------------------- */

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

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

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

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

.portfolio-cover span {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

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

.portfolio-cover--laczynas {
  background: linear-gradient(135deg, #0f766e, #134e4a);
}

.portfolio-cover--ttarena {
  background: linear-gradient(135deg, #1d4ed8, #1e3a8a);
}

.portfolio-cover--sprawni {
  background: linear-gradient(135deg, #7c3aed, #4c1d95);
}

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

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

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

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

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

.external-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;
}

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

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

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

/* O mnie ------------------------------------------------------------------ */

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
}

.about-sign {
  font-weight: 600;
  color: var(--ink) !important;
}

.about-facts h3 {
  margin-bottom: 14px;
}

.about-facts ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.about-facts li {
  position: relative;
  padding-left: 26px;
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.about-facts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

/* 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 {
  margin: 0 0 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
  max-width: 64ch;
}

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

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

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

.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,
.contact-list span:not(.contact-label) {
  font-size: 1.02rem;
}

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

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

.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 {
  resize: vertical;
  min-height: 120px;
}

.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;
}

/* Strony dokumentów (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);
}

/* 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 {
  margin: 14px 0 0;
  max-width: 34ch;
  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 {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.92rem;
}

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

/* Czat -------------------------------------------------------------------- */

.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;
}

.chat {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 60;
  font-size: 0.95rem;
}

.chat-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.chat-toggle:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}

.chat-toggle svg {
  width: 26px;
  height: 26px;
}

.chat-icon-close {
  display: none;
}

.chat.is-open .chat-icon-chat {
  display: none;
}

.chat.is-open .chat-icon-close {
  display: block;
}

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: none;
  flex-direction: column;
  width: min(368px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 130px));
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat.is-open .chat-panel {
  display: flex;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--dark);
  color: #fff;
}

.chat-header strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
}

.chat-header span {
  font-size: 0.78rem;
  color: #a8a29e;
}

.chat-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.16);
}

.chat-close svg {
  width: 16px;
  height: 16px;
}

.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  padding: 16px;
  overflow-y: auto;
  background: var(--cream);
}

.chat-bubble {
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 0.92rem;
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

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

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

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

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

.chat-typing-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.chat-typing-dot:nth-child(3) {
  animation-delay: 0.4s;
}

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

  40% {
    opacity: 1;
  }
}

.chat-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 0;
}

.chat-quick button {
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--cream);
  font-size: 0.82rem;
  cursor: pointer;
}

.chat-quick button:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.chat-form {
  display: flex;
  gap: 8px;
  padding: 12px 16px 8px;
}

.chat-form input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--cream);
  font-size: 0.92rem;
}

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

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

.chat-send:hover {
  background: var(--accent-strong);
}

.chat-send svg {
  width: 18px;
  height: 18px;
}

.chat-note {
  margin: 0;
  padding: 0 16px 14px;
  font-size: 0.74rem;
  color: var(--muted);
}

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

/* 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;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 520px;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
  }

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

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

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

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

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

  .hero-badge {
    right: 8px;
    bottom: -18px;
  }
}

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

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

  .chat-typing-dot {
    animation: none;
    opacity: 0.6;
  }
}
