/* Survey modal — styl spójny z atelier vibe */
.sv-modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.sv-backdrop {
  position: absolute; inset: 0;
  background: rgba(26, 26, 26, 0.6);
  backdrop-filter: blur(2px);
}
.sv-sheet {
  position: relative; z-index: 2;
  background: #efe9df;
  width: 100%; max-width: 640px; max-height: 92vh;
  display: flex; flex-direction: column;
  border: 1px solid #1a1a1a;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
}
.sv-sheet-narrow { max-width: 480px; }

@media (max-width: 720px) {
  .sv-sheet { max-width: 100vw; max-height: 100vh; height: 100vh; }
}

.sv-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-bottom: 1px solid #1a1a1a; gap: 12px;
}
.sv-mono {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em;
}
.sv-badge {
  margin-left: 8px; padding: 2px 8px;
  background: #1a1a1a; color: #efe9df;
  font-family: 'JetBrains Mono', monospace; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.08em;
}
.sv-progress {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6b6357; letter-spacing: 0.08em; text-transform: uppercase;
}
.sv-close {
  background: transparent; border: 1px solid #1a1a1a; color: #1a1a1a;
  width: 32px; height: 32px; cursor: pointer;
  font-size: 16px; line-height: 1; padding: 0;
}
.sv-close:hover { background: #1a1a1a; color: #efe9df; }

.sv-body { padding: 32px 40px; overflow-y: auto; flex: 1; }
@media (max-width: 720px) { .sv-body { padding: 24px 20px; } }

/* ——— Intro ——— */
.sv-step-intro h2,
.sv-step-q h2,
.sv-done h2 {
  font-family: 'EB Garamond', Georgia, serif;
  font-weight: 400; font-size: 32px; line-height: 1.15; margin: 0 0 16px;
  letter-spacing: -0.01em;
}
.sv-step-intro h2 em, .sv-step-q h2 em { font-style: italic; }
.sv-lead { font-size: 16px; line-height: 1.6; color: #1a1a1a; margin: 0 0 16px; }
.sv-callout {
  background: #1a1a1a; color: #efe9df;
  padding: 16px 20px; margin: 24px 0;
  font-size: 13px; line-height: 1.5;
}
.sv-callout strong {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; display: block; margin-bottom: 4px;
}
.sv-callout-mini {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  background: #d8cfc0; padding: 8px 12px; margin: 12px 0;
  text-transform: uppercase; letter-spacing: 0.06em;
}

/* ——— Question ——— */
.sv-step-q {}
.sv-q-num {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  color: #6b6357; text-transform: uppercase; letter-spacing: 0.1em;
  margin-bottom: 8px;
}
.sv-hint { color: #6b6357; font-size: 14px; margin: -8px 0 24px; }

.sv-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.sv-options-compact {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px;
}
.sv-option {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  background: transparent; border: 1px solid #1a1a1a;
  cursor: pointer; transition: background 0.1s;
  font-size: 15px;
}
.sv-options-compact .sv-option {
  justify-content: center; padding: 14px 8px;
  font-family: 'JetBrains Mono', monospace; font-size: 14px;
  text-align: center;
}
.sv-option:hover { background: rgba(26,26,26,0.06); }
.sv-option.is-selected {
  background: #1a1a1a; color: #efe9df;
}
.sv-option input[type="radio"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; min-width: 18px;
  border: 1px solid currentColor; background: transparent;
  border-radius: 50%; margin: 0; cursor: pointer; position: relative;
}
.sv-option.is-selected input[type="radio"]::after {
  content: ""; position: absolute; inset: 4px;
  background: currentColor; border-radius: 50%;
}
.sv-options-compact .sv-option input[type="radio"] { display: none; }

.sv-other-input,
.sv-text-input {
  width: 100%; padding: 14px 18px;
  background: transparent; border: 1px solid #1a1a1a;
  font-family: inherit; font-size: 15px;
  margin-bottom: 24px;
}
.sv-other-input:focus,
.sv-text-input:focus { outline: 0; background: #fff; }
.sv-text-input { font-size: 18px; }

/* ——— Form ——— */
.sv-form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px;
  margin-bottom: 20px;
}
@media (max-width: 540px) { .sv-form-grid { grid-template-columns: 1fr; } }
.sv-field { display: flex; flex-direction: column; gap: 4px; }
.sv-field.is-full { grid-column: 1 / -1; }
.sv-field span {
  font-family: 'JetBrains Mono', monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.08em; color: #6b6357;
}
.sv-field span em { color: #1a1a1a; font-style: normal; margin-left: 2px; }
.sv-field input, .sv-field textarea {
  padding: 12px 14px; background: transparent; border: 1px solid #1a1a1a;
  font-family: inherit; font-size: 15px; color: #1a1a1a;
}
.sv-field input:focus, .sv-field textarea:focus { outline: 0; background: #fff; }
.sv-field textarea { resize: vertical; min-height: 70px; }

.sv-consent-block {
  margin: 16px 0 8px;
  padding: 14px 16px;
  background: rgba(26, 26, 26, 0.04);
  border-radius: 8px;
}
.sv-consent-info {
  font-size: 12px; line-height: 1.55; color: #555;
  margin: 0 0 12px;
}
.sv-consent-info a { color: #1a1a1a; text-decoration: underline; }
.sv-rodo {
  display: flex; gap: 10px; margin: 10px 0;
  font-size: 12px; line-height: 1.5; color: #1a1a1a; cursor: pointer;
}
.sv-rodo input { margin-top: 2px; min-width: 16px; }
.sv-rodo strong { color: #1a1a1a; }
.sv-rodo em { color: #666; font-style: normal; }

.sv-error {
  background: #f0d4c0; color: #6b3a1a; border-left: 3px solid #c0633a;
  padding: 10px 14px; font-size: 13px; margin: 12px 0;
}

/* ——— Actions ——— */
.sv-actions {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; margin-top: 24px;
}
.sv-btn-primary, .sv-btn-secondary {
  font-family: inherit; font-size: 13px; font-weight: 500;
  padding: 14px 24px; cursor: pointer; border: 1px solid #1a1a1a;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.sv-btn-primary { background: #1a1a1a; color: #efe9df; }
.sv-btn-primary:hover:not(:disabled) { background: #333; }
.sv-btn-primary:disabled { opacity: 0.4; cursor: not-allowed; }
.sv-btn-secondary { background: transparent; color: #1a1a1a; }
.sv-btn-secondary:hover:not(:disabled) { background: rgba(26,26,26,0.06); }

/* ——— Done ——— */
.sv-done { text-align: center; padding: 24px 0; }
.sv-done-icon {
  width: 64px; height: 64px; line-height: 64px;
  border: 1px solid #1a1a1a; border-radius: 50%;
  font-size: 28px; margin: 0 auto 24px; color: #1a1a1a;
}
.sv-done p { font-size: 15px; line-height: 1.6; margin: 0 0 12px; }
.sv-done .sv-btn-primary { margin-top: 16px; }
.sv-mut { color: #6b6357; }

/* ——— Centralny CTA — pierwsza rzecz jaką widzi klient ——— */
.lg-cta-hero {
  background: #1a1a1a;
  color: #efe9df;
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 100px); /* near-fullscreen, minus nav+banner */
  display: flex;
  align-items: center;
}
.lg-cta-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(201, 184, 148, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(107, 74, 58, 0.06) 0%, transparent 50%);
  pointer-events: none;
}
.lg-cta-hero .container { position: relative; z-index: 1; max-width: 960px; }

.lg-cta-eyebrow {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: #c9b894; margin-bottom: 32px;
}

.lg-cta-headline {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(56px, 9vw, 120px);
  line-height: 0.95; letter-spacing: -0.02em;
  margin: 0 0 40px; color: #efe9df;
}
.lg-cta-headline em {
  font-style: italic; color: #c9b894; display: inline-block;
}

.lg-cta-lead {
  font-size: 18px; line-height: 1.6; max-width: 600px;
  color: #cfc7b8; margin: 0 0 40px;
}

.lg-cta-perks {
  list-style: none; padding: 0; margin: 0 0 48px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-top: 32px; padding-bottom: 32px;
}
.lg-cta-perks li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 14px; line-height: 1.5; color: #cfc7b8;
}
.lg-cta-perks li > span:first-child {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.08em; color: #c9b894;
  border: 1px solid #c9b894; padding: 4px 8px;
  flex-shrink: 0;
  align-self: flex-start;
}
.lg-cta-perks li > span:nth-child(2) {
  flex: 1; min-width: 0; padding-top: 2px;
}

.lg-cta-actions {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  margin-bottom: 24px;
}
.lg-cta-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 22px 36px;
  background: #efe9df; color: #1a1a1a;
  font-family: inherit; font-size: 15px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid #efe9df;
  transition: background 0.15s, transform 0.1s;
}
.lg-cta-primary:hover { background: #c9b894; border-color: #c9b894; transform: translateY(-1px); }
.lg-cta-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 22px 28px;
  background: transparent; color: #efe9df;
  font-family: inherit; font-size: 14px; letter-spacing: 0.04em;
  text-decoration: none; border: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.15s, color 0.15s;
}
.lg-cta-secondary:hover { border-color: #c9b894; color: #c9b894; }

.lg-cta-meta {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #6b6357;
  display: block;
}

.lg-cta-scroll {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 48px;
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #6b6357; text-decoration: none;
  padding: 8px 0;
  transition: color 0.2s, gap 0.2s;
}
.lg-cta-scroll:hover { color: #c9b894; gap: 14px; }
.lg-cta-scroll svg { animation: lg-bounce 2s infinite ease-in-out; }
@keyframes lg-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

@media (max-width: 720px) {
  .lg-cta-hero { padding: 64px 0 80px; min-height: 0; }
  .lg-cta-scroll { margin-top: 32px; }
  .lg-cta-actions { flex-direction: column; align-items: stretch; }
  .lg-cta-primary, .lg-cta-secondary { justify-content: center; }
}

/* ——— Mini CTA na dole ——— */
.lg-cta-mini {
  background: #e8e1d4;
  padding: 56px 0;
  border-top: 1px solid #d8cfc0;
  border-bottom: 1px solid #d8cfc0;
}
.lg-cta-mini .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; flex-wrap: wrap;
}
.lg-cta-mini-text h3 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400; font-size: 32px; line-height: 1.15;
  margin: 0 0 6px; letter-spacing: -0.01em;
}
.lg-cta-mini-text p {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.08em; text-transform: uppercase; color: #6b6357;
  margin: 0;
}
.lg-cta-mini .lg-cta-primary {
  background: #1a1a1a; color: #efe9df; border-color: #1a1a1a;
}
.lg-cta-mini .lg-cta-primary:hover { background: #333; border-color: #333; }

/* ——— Footer lean (lead-gen, bez fikcyjnych danych firmy) ——— */
.footer.footer-lean { padding: 80px 0 60px; }
.footer-lean-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 80px;
  max-width: 960px;
}
@media (max-width: 720px) {
  .footer-lean-grid { grid-template-columns: 1fr; gap: 48px; }
}
.footer-brand .footer-logo { width: 100px; height: 36px; margin-bottom: 20px; }
.footer-tag { font-size: 14px; line-height: 1.6; color: #6b6357; max-width: 420px; margin: 0; }
.footer-contact h5 {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.1em; color: #6b6357;
  margin: 0 0 16px; font-weight: 500;
}
.footer-email {
  display: inline-block; font-size: 18px; color: #1a1a1a;
  text-decoration: none; border-bottom: 1px solid #1a1a1a;
  padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
  font-family: "EB Garamond", Georgia, serif;
}
.footer-email:hover { color: #c9b894; border-color: #c9b894; }
.footer-mut { font-size: 12px; line-height: 1.6; color: #8a847a; margin: 24px 0 0; }

/* ——— Apple-style scroll animations ——— */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
  }
  [data-reveal].is-revealed {
    opacity: 1;
    transform: translateY(0);
  }
  /* Stagger children */
  [data-reveal-stagger] > * {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  [data-reveal-stagger].is-revealed > * { opacity: 1; transform: translateY(0); }
  [data-reveal-stagger].is-revealed > *:nth-child(1) { transition-delay: 0.04s; }
  [data-reveal-stagger].is-revealed > *:nth-child(2) { transition-delay: 0.12s; }
  [data-reveal-stagger].is-revealed > *:nth-child(3) { transition-delay: 0.20s; }
  [data-reveal-stagger].is-revealed > *:nth-child(4) { transition-delay: 0.28s; }
  [data-reveal-stagger].is-revealed > *:nth-child(5) { transition-delay: 0.36s; }
  [data-reveal-stagger].is-revealed > *:nth-child(6) { transition-delay: 0.44s; }

  /* Subtelne podniesienie przy hover na CTA — Apple-vibe */
  .lg-cta-primary, .lg-cta-secondary,
  .atelier-konfig-cta, .atelier-cta-primary {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.3s, border-color 0.3s, color 0.3s !important;
  }
  .lg-cta-primary:hover, .atelier-konfig-cta:hover, .atelier-cta-primary:hover {
    transform: translateY(-2px);
  }

  /* Parallax-friendly: obrazki minimalnie skalowane, parallax JS dodaje translate */
  .atelier-fullbleed-img img {
    transform: scale(1.05);
    transition: transform 0.6s ease-out;
  }
}

html { scroll-behavior: smooth; }

/* ——— Sekcja 360° (Three.js viewer) ——— */
.atelier-360 {
  padding: 120px 0;
  background: #1a1a1a;
  color: #efe9df;
  overflow: hidden;
}
.atelier-360-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .atelier-360 { padding: 80px 0; }
  .atelier-360-grid { grid-template-columns: 1fr; gap: 32px; }
}
.atelier-360-text { max-width: 480px; }
.atelier-360-eyebrow {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #c9b894; margin-bottom: 24px;
}
.atelier-360-text h2 {
  font-family: "EB Garamond", Georgia, serif;
  font-weight: 400; font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.atelier-360-text h2 em { font-style: italic; color: #c9b894; }
.atelier-360-text p {
  font-size: 17px; line-height: 1.6; color: #cfc7b8; margin: 0 0 32px;
}
.atelier-360-tips {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.atelier-360-tips li {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.04em; color: #8a847a;
}

.atelier-360-frame {
  position: relative; aspect-ratio: 4 / 3;
  background: radial-gradient(ellipse at center, rgba(201,184,148,0.06) 0%, rgba(0,0,0,0) 70%),
              linear-gradient(135deg, #1f1f1f 0%, #0e0e0e 100%);
  border: 1px solid #2c2c2c; overflow: hidden;
}
.atelier-360-badge {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  font-family: "JetBrains Mono", monospace; font-size: 10px;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(0,0,0,0.6); color: #c9b894;
  padding: 6px 12px; border: 1px solid rgba(201,184,148,0.3);
  backdrop-filter: blur(4px);
}
.atelier-360-caption {
  position: absolute; bottom: 16px; left: 16px; right: 16px; z-index: 2;
  font-size: 11px; color: rgba(207,199,184,0.6);
  font-family: "JetBrains Mono", monospace;
  letter-spacing: 0.03em; line-height: 1.5;
  text-align: center; pointer-events: none;
}
.viewer360 {
  position: absolute; inset: 0; z-index: 1;
  cursor: grab; touch-action: none;
}
.viewer360:active { cursor: grabbing; }
.viewer360 canvas { display: block; width: 100% !important; height: 100% !important; }
.viewer360-loader {
  position: absolute; inset: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  color: #8a847a; letter-spacing: 0.08em; text-transform: uppercase;
  pointer-events: none;
}

/* ——— Banner: faza testów rynku ——— */
.lg-banner {
  background: #1a1a1a; color: #efe9df;
  padding: 11px 22px; text-align: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-bottom: 1px solid #d8cfc0;
}
.lg-banner strong { color: #c9b894; margin-right: 9px; }
