/* =============================================
   figurki-3d — Light studio theme
   Custom 3D Figurine from Selfies
   ============================================= */

/* --- RESET & VARIABLES --- */
:root {
  --bg-primary: #FAFAF8;
  --bg-secondary: #F3F1EC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F8F7F4;
  --bg-dropzone: rgba(30, 58, 95, 0.04);
  --bg-hover: #EDEAE4;
  --accent: #1E3A5F;
  --accent-hover: #152A45;
  --viewer-model: #9BB4D4;
  --accent-glow: rgba(30, 58, 95, 0.12);
  --accent-subtle: rgba(30, 58, 95, 0.08);
  --text-primary: #1A1A1A;
  --text-secondary: #5C5C5C;
  --text-muted: #626262;
  --success: #2D6A4F;
  --success-bg: rgba(45, 106, 79, 0.08);
  --error: #B42318;
  --error-bg: rgba(180, 35, 24, 0.08);
  --warning: #B45309;
  --warning-bg: rgba(180, 83, 9, 0.08);
  --info: #1E3A5F;
  --info-bg: rgba(30, 58, 95, 0.08);
  --border: #E8E6E1;
  --border-light: #D4D0C8;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(26, 26, 26, 0.06), 0 4px 16px rgba(26, 26, 26, 0.04);
  --shadow-lg: 0 4px 24px rgba(26, 26, 26, 0.08);
  --shadow-glow: 0 4px 20px var(--accent-glow);
  --font-sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1120px;
  --header-height: 72px;
}

/* --- RESET --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

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

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

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

/* --- UTILITY --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 4rem 1rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 3rem;
}

.hidden {
  display: none !important;
}

[x-cloak] {
  display: none !important;
}

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

/* --- NAVBAR --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 1rem;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
}

.navbar.scrolled {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.navbar-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  letter-spacing: -0.02em;
}

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

.navbar-links {
  display: none;
  gap: 2rem;
  align-items: center;
}

.navbar-links a {
  display: flex;
  align-items: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.navbar-links a:hover {
  color: var(--text-primary);
}

.navbar-cta {
  display: none;
  padding: 0.6rem 1.2rem;
  background: var(--accent);
  color: #fff !important;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: pulse-cta 3s ease-in-out infinite;
}

.navbar-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  color: #fff !important;
}

.navbar-hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.navbar-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.navbar-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.navbar-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 250, 248, 0.98);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 99;
  animation: fadeIn 0.2s ease;
}

.mobile-menu a {
  font-size: 1.5rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--accent);
}

.mobile-menu .navbar-cta {
  display: inline-block;
  font-size: 1.2rem;
  color: #fff !important;
  padding: 0.75rem 2rem;
}

/* --- HERO --- */
.hero {
  min-height: auto;
  padding: calc(var(--header-height) + 2.5rem) 1rem 4rem;
  position: relative;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-content {
  text-align: left;
  max-width: 560px;
}

.hero-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.65;
  max-width: 34rem;
}

.hero-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.75rem;
}

.hero-step {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.hero-step-num {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35rem;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: pulse-cta 3s ease-in-out infinite;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
  color: white;
}

.hero-social-proof {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.hero-social-proof strong {
  color: var(--text-primary);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-viewer-wrap {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  aspect-ratio: 4 / 5;
  min-height: 320px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-secondary);
  position: relative;
}

.hero-poster {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-viewer {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
}

.hero-viewer canvas {
  width: 100% !important;
  height: 100% !important;
  border-radius: 0;
}

.v3d-loading {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10;
  border-radius: var(--radius-lg);
  background: rgba(243, 241, 236, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.v3d-loading--dark {
  background: rgba(10, 10, 26, 0.88);
}

.v3d-loading-inner {
  text-align: center;
  padding: 1rem;
}

.v3d-loading-orbit {
  position: relative;
  width: 52px;
  height: 52px;
  margin: 0 auto 0.85rem;
}

.v3d-loading-orbit-ring {
  position: absolute;
  inset: 0;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.85s cubic-bezier(0.45, 0, 0.55, 1) infinite;
}

.v3d-loading-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-glow);
  animation: v3d-loading-pulse 1.6s ease-in-out infinite;
}

.v3d-loading-label {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
}

.v3d-loading--dark .v3d-loading-label {
  color: #a8a8c0;
}

.v3d-loading--dark .v3d-loading-orbit-ring {
  border-color: #2a2a4a;
  border-top-color: #8b85ff;
}

.v3d-loading--dark .v3d-loading-orbit-core {
  background: #8b85ff;
  box-shadow: 0 0 12px rgba(139, 133, 255, 0.35);
}

@keyframes v3d-loading-pulse {
  0%, 100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-secondary);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* --- HOW IT WORKS --- */
.how-it-works {
  background: var(--bg-secondary);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.step-card .icon {
  display: none;
}

.step-number {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.step-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* --- PRICING --- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.pricing-card.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.pricing-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.pricing-price small {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.pricing-features {
  margin-bottom: 1.5rem;
}

.pricing-features li {
  padding: 0.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  margin-top: auto;
  background: var(--border);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  transition: background var(--transition), transform var(--transition);
}

.pricing-btn:hover {
  background: var(--border-light);
  transform: translateY(-1px);
}

.pricing-card.popular .pricing-btn {
  background: var(--accent);
  color: white;
}

.pricing-card.popular .pricing-btn:hover {
  background: var(--accent-hover);
}

/* --- UPLOAD --- */
.upload-section {
  background: var(--bg-secondary);
}

.upload-zone {
  border: 2px dashed var(--accent);
  border-radius: var(--radius-lg);
  padding: 3rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  max-width: 500px;
  margin: 0 auto;
  position: relative;
  background: var(--bg-dropzone);
  box-shadow: var(--shadow);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent-hover);
  background: var(--bg-dropzone);
  box-shadow: var(--shadow-lg);
}

.upload-zone.dragover {
  border-color: var(--success);
  background: var(--success-bg);
}

.upload-zone-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.upload-zone-text {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.upload-zone-hint {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.upload-zone-input {
  display: none;
}

.upload-zone.validating {
  border-color: var(--info);
  pointer-events: none;
}

.upload-zone.error {
  border-color: var(--error);
  background: var(--error-bg);
}

.upload-zone.preview,
.upload-zone.warning {
  border-style: solid;
  border-color: var(--success);
  cursor: default;
  padding: 1.5rem;
}

.upload-zone.warning {
  border-color: var(--warning);
}

/* Upload preview */
.upload-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-preview img {
  max-width: 250px;
  max-height: 250px;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  object-fit: cover;
}

.upload-preview-info {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.upload-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.upload-quality-badge.good {
  background: var(--success-bg);
  color: var(--success);
}

.upload-quality-badge.fair {
  background: var(--warning-bg);
  color: var(--warning);
}

.upload-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* --- GENERATING --- */
.generating-section {
  text-align: center;
  padding: 4rem 1rem;
}

.generating-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.generating-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.generating-subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.generating-progress {
  max-width: 400px;
  margin: 0 auto 2rem;
}

.generating-progress-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.generating-progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  transition: width 1s ease;
  background-size: 200% 100%;
  animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.8; }
}

.generating-progress-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.generating-time {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.generating-tips {
  max-width: 400px;
  margin: 0 auto;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.generating-tip {
  font-size: 0.9rem;
  color: var(--text-secondary);
  animation: fadeIn 0.5s ease;
}

.preview-bust-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.875rem 1rem;
  margin: 0 auto 1.25rem;
  max-width: 640px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-secondary);
  background: rgba(108, 92, 231, 0.08);
  border: 1px solid rgba(108, 92, 231, 0.22);
  border-radius: var(--radius-md);
}

.preview-bust-note-icon {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1.4;
}

.preview-bust-note p {
  margin: 0;
}

.order-completed-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 1rem 1.125rem;
  margin: 0 auto 1.25rem;
  max-width: 720px;
  background: var(--success-bg);
  border: 1px solid rgba(74, 222, 128, 0.25);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.45;
}

.order-completed-banner-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.order-completed-banner strong {
  display: block;
  color: var(--success);
  margin-bottom: 0.15rem;
}

.order-completed-banner p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.order-completed-banner .btn-sm {
  margin-left: auto;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
}

.generating-retry {
  margin-top: 1rem;
}

/* --- PREVIEW / CHECKOUT --- */
.preview-section {
  background: var(--bg-secondary);
}

.preview-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;
}

.preview-model {
  text-align: center;
}

.preview-model img {
  max-width: 300px;
  border-radius: var(--radius);
  margin: 0 auto 1rem;
  border: 2px solid var(--border);
}

.preview-model-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--accent-subtle);
  color: var(--accent);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: background var(--transition);
}

.preview-model-btn:hover {
  background: var(--accent);
  color: white;
}

/* Upgrade CTA (po opłaconym preview) */
.upgrade-cta {
  padding: 1.25rem;
  background: linear-gradient(135deg, var(--accent-subtle), rgba(30, 58, 95, 0.06));
  border: 1px solid var(--accent);
  border-radius: var(--radius);
}

.upgrade-cta .badge-paid {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: var(--success-bg);
  color: var(--success);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.upgrade-cta .discount-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  background: rgba(245, 158, 11, 0.15);
  color: var(--warning);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Size selector */
.size-selector {
  gap: 1rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.size-option {
  flex: 1;
  max-width: 200px;
  padding: 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}

.size-option:hover {
  border-color: var(--accent-subtle);
}

.size-option.selected {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.size-option h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.size-option .price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
}

.size-option .desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* Checkout form */
.checkout-form {
  max-width: 500px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input.error {
  border-color: var(--error);
}

.form-error {
  font-size: 0.85rem;
  color: var(--error);
  margin-top: 0.35rem;
}

.checkout-summary {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.checkout-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.checkout-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 1rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.btn-primary {
  display: block;
  width: 100%;
  padding: 1rem;
  background: var(--accent);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn-primary .spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: background var(--transition), border-color var(--transition);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-card-hover);
  border-color: var(--border-light);
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.trust-badges {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.trust-badges span {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* --- STATUS TRACKING --- */
.status-timeline {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

.timeline-step {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  position: relative;
}

.timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 23px;
  top: 52px;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-step.completed:not(:last-child)::after {
  background: var(--success);
}

.timeline-step.current:not(:last-child)::after {
  background: var(--accent);
}

.timeline-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 2px solid var(--border);
}

.timeline-step.completed .timeline-icon {
  background: var(--success-bg);
  border-color: var(--success);
}

.timeline-step.current .timeline-icon {
  background: var(--accent-subtle);
  border-color: var(--accent);
  animation: pulse-glow 2s ease-in-out infinite;
}

.timeline-content {
  flex: 1;
  padding-top: 0.5rem;
}

.timeline-content h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.timeline-content .date {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.timeline-step.completed .timeline-content h4 {
  color: var(--success);
}

.timeline-step.current .timeline-content h4 {
  color: var(--accent);
}

/* --- SUCCESS --- */
.success-section {
  text-align: center;
  padding: 6rem 1rem;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  animation: bounce-in 0.6s ease;
}

.success-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.success-text {
  color: var(--text-secondary);
  max-width: 450px;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.success-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- OPINIONS --- */
.opinions-section {
  background: var(--bg-secondary);
}

.opinions-carousel {
  max-width: 700px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.opinion-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
}

.opinion-stars {
  color: var(--warning);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.opinion-text {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.opinion-author {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- FOOTER --- */
.footer {
  border-top: 1px solid var(--border);
  padding: 3rem 1rem;
  text-align: center;
}

.footer-logo {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

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

.footer-powered {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.footer-links a {
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--accent);
}

/* --- TOASTS --- */
.toast-container {
  position: fixed;
  top: calc(var(--header-height) + 1rem);
  right: 1rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
  width: calc(100% - 2rem);
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  pointer-events: all;
}

.toast.error {
  background: var(--error-bg);
  border: 1px solid var(--error);
  color: var(--error);
}

.toast.success {
  background: var(--success-bg);
  border: 1px solid var(--success);
  color: var(--success);
}

.toast.warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: var(--warning);
}

.toast.info {
  background: var(--info-bg);
  border: 1px solid var(--info);
  color: var(--info);
}

.toast-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1;
}

.toast-message {
  flex: 1;
}

.toast-close {
  flex-shrink: 0;
  font-size: 1.1rem;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition);
  background: none;
  border: none;
  color: inherit;
  padding: 0;
  line-height: 1;
}

.toast-close:hover {
  opacity: 1;
}

/* --- 3D VIEWER MODAL --- */
.viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(26, 26, 26, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeIn 0.3s ease;
}

.viewer-modal-content {
  width: min(92vw, 520px);
  aspect-ratio: 4 / 5;
  max-height: min(85vh, 650px);
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  background: var(--bg-secondary);
}

.viewer-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10;
  width: 40px;
  height: 40px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  box-shadow: var(--shadow);
}

.viewer-modal-close:hover {
  background: var(--bg-hover);
  border-color: var(--border-light);
}

#model-viewer-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

/* --- SKELETON LOADING --- */
.skeleton {
  background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

.skeleton-text {
  height: 1rem;
  margin-bottom: 0.5rem;
  width: 80%;
}

.skeleton-title {
  height: 1.5rem;
  margin-bottom: 1rem;
  width: 60%;
}

.skeleton-card {
  height: 200px;
  margin-bottom: 1rem;
}

.skeleton-image {
  aspect-ratio: 1;
  border-radius: var(--radius);
}

/* --- OFFLINE BANNER --- */
.offline-banner {
  background: var(--warning-bg);
  border: 1px solid var(--warning);
  color: var(--warning);
  text-align: center;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  z-index: 99;
}

/* --- ANIMATIONS --- */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 10px transparent; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px transparent; }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce-in {
  0% { transform: scale(0); }
  50% { transform: scale(1.2); }
  70% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* --- RESPONSIVE --- */

/* Mobile (default) — zdefiniowane powyżej */

/* Mobile — 1 kolumna na wąskich ekranach */
@media (max-width: 640px) {
  .preview-layout {
    grid-template-columns: 1fr;
  }
}

/* Tablet (≥768px) */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  .section {
    padding: 6rem 2rem;
  }

  .section-title {
    font-size: 2.5rem;
  }

  .navbar {
    padding: 0 2rem;
  }

  .navbar-links {
    display: flex;
  }

  .navbar-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
  }

  .navbar-hamburger {
    display: none;
  }

  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-lead {
    font-size: 1.1rem;
  }

  .hero-viewer-wrap {
    min-height: 400px;
  }

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

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-layout {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .opinions-carousel {
    grid-template-columns: repeat(3, 1fr);
  }

  .toast-container {
    right: 2rem;
  }
}

/* Desktop (≥1024px) */
@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }

  .hero-content {
    max-width: 540px;
  }

  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 900px;
  }
}

/* --- ACCESSIBILITY --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* Focus styles */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Touch targets */
button, a, input, select {
  min-height: 44px;
}

/* Selection */
::selection {
  background: var(--accent-subtle);
  color: var(--text-primary);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-light);
}

/* --- PAYMENT SECTION --- */
.payment-section {
  background: var(--bg-secondary);
}

.payment-card {
  max-width: 450px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: box-shadow var(--transition);
}

.payment-card:hover {
  box-shadow: var(--shadow);
}

.payment-card-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.payment-card-icon {
  font-size: 2rem;
}

.payment-card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.payment-card-price {
  margin-bottom: 1.5rem;
}

.payment-card-price .price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  display: block;
  line-height: 1;
}

.payment-card-price .price-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
  display: block;
}

.payment-card-features {
  text-align: left;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

.payment-card-features li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.payment-card-features li:last-child {
  border-bottom: none;
}

.payment-btn {
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
}

.payment-card .trust-badges {
  margin-top: 1rem;
  flex-wrap: wrap;
}

.payment-card-note {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* --- GEMINI PHOTOS --- */
.gemini-photos {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.gemini-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 0.75rem;
}

@media (min-width: 640px) {
  .gemini-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.gemini-photo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.gemini-photo-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.gemini-photo-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}

.gemini-photo-label {
  padding: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.gemini-loading {
  text-align: center;
  padding: 1.5rem;
}

/* --- BEFORE/AFTER GALLERY --- */
.ba-gallery {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
}

.ba-container {
  position: relative;
  width: 100%;
  max-width: 512px;
  margin: 0 auto;
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--bg-secondary);
  user-select: none;
  -webkit-user-select: none;
}

.ba-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  pointer-events: none;
}

.ba-after {
  z-index: 2;
}

.ba-before {
  z-index: 1;
}

.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 3px;
  z-index: 3;
  transform: translateX(-50%);
  pointer-events: none;
}

.ba-handle-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
}

.ba-handle-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--bg-card);
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  pointer-events: auto;
  cursor: ew-resize;
}

.ba-slider-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.ba-label {
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.ba-label-after {
  color: var(--accent);
}

.ba-slider-input {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.ba-slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
  transition: transform 0.15s ease;
}

.ba-slider-input::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.ba-slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  border: 2px solid var(--bg-primary);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  cursor: ew-resize;
}

/* --- PRINT --- */
@media print {
  .navbar,
  .toast-container,
  .viewer-modal,
  .offline-banner,
  .hero-viewer,
  .hero-cta,
  .pricing-btn {
    display: none !important;
  }

  .section {
    padding: 2rem 1rem;
    page-break-inside: avoid;
  }

  body {
    background: white;
    color: black;
  }

  .section-title {
    -webkit-text-fill-color: initial;
    color: black;
  }
}

/* Upgrade buttons in checkout form */
.upgrade-buttons {
  display: flex;
  flex-direction: column;
}
.upgrade-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem 1rem;
  width: 100%;
  text-align: center;
}
.upgrade-size { font-weight: 700; font-size: 1rem; }
.upgrade-price { font-weight: 700; font-size: 1.3rem; margin: 0.25rem 0; }
.upgrade-detail { font-weight: 400; font-size: 0.75rem; opacity: 0.8; }

/* Paczkomat suggestions dropdown */
.paczkomat-suggestions {
  margin-top: 0.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  max-height: 200px;
  overflow-y: auto;
}
.paczkomat-suggestion {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}
.paczkomat-suggestion:last-child { border-bottom: none; }
.paczkomat-suggestion:hover { background: var(--bg-hover); }
.paczkomat-suggestion-name { font-size: 0.9rem; font-weight: 500; }
.paczkomat-suggestion-address { font-size: 0.75rem; color: var(--text-muted); }

/* ─── Hero Showcase ─── */
.showcase-section {
  background: var(--bg-card);
}
.showcase-stages {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin: 2rem 0;
}
.showcase-stage-panel {
  flex: 1;
  max-width: 280px;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
  position: relative;
}
.showcase-stage-panel.active {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(108,99,255,0.3);
}
.showcase-label {
  position: absolute;
  top: 6px;
  left: 6px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 6px;
  z-index: 2;
}
.showcase-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  background: var(--bg-card);
}
.showcase-print {
  object-fit: contain;
  background: var(--bg-card);
}
.showcase-arrow {
  font-size: 1.5rem;
  color: var(--text-muted);
  flex-shrink: 0;
  opacity: 0.6;
}
.showcase-thumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  justify-content: center;
}
.showcase-thumbs-scroll {
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
  max-width: 600px;
  scroll-behavior: smooth;
}
.showcase-thumbs-scroll::-webkit-scrollbar { display: none; }
.showcase-thumbs-track {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  padding: 0.25rem;
}
.showcase-thumb {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid var(--border);
  flex-shrink: 0;
  transition: border-color 0.3s, transform 0.3s;
}
.showcase-thumb.active {
  border-color: var(--accent);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(108,99,255,0.4);
}
.showcase-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.showcase-nav {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 0;
  transition: background 0.2s;
}
.showcase-nav:hover { background: var(--bg-hover); }
.showcase-name {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.75rem;
  font-weight: 500;
}

@media (max-width: 640px) {
  .showcase-stage-panel { max-width: 140px; }
  .showcase-img { height: 140px; }
  .showcase-arrow { font-size: 1rem; }
  .showcase-thumb { width: 48px; height: 48px; }
  .showcase-thumbs-scroll { max-width: 260px; }
  .showcase-nav { width: 32px; height: 32px; font-size: 1.1rem; }
}
.paczkomat-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.btn-map {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  font-size: 1.3rem;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}
.btn-map:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.map-widget-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0,0,0,0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.map-widget-modal {
  position: relative;
  width: min(95vw, 900px);
  height: min(85vh, 700px);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.map-widget-modal inpost-geowidget {
  width: 100%;
  height: 100%;
  display: block;
}

.map-widget-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 10001;
  width: 2.25rem;
  height: 2.25rem;
  border: none;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.map-widget-close:hover {
  background: rgba(0,0,0,0.8);
}

/* Mobile */
@media (max-width: 640px) {
  .map-widget-overlay {
    padding: 0;
  }
  .map-widget-modal {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
  }
}

/* Legal consent checkboxes */
.consent-group {
  margin: 1rem 0;
  text-align: left;
}

.consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.consent-label input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  accent-color: var(--accent);
}

.consent-label a {
  color: var(--accent);
  text-decoration: underline;
}

/* Real prints marketing gallery */
.prints-gallery-section {
  background: var(--bg-secondary);
}

.prints-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.prints-gallery-card {
  margin: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.prints-gallery-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  background: var(--bg-primary);
  cursor: zoom-in;
  transition: opacity 0.2s ease;
}

.prints-gallery-card:hover .prints-gallery-img {
  opacity: 0.9;
}

.prints-gallery-caption {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: center;
}

/* Legal / static pages (regulamin, polityka, zwroty, kontakt) */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 5rem 1.5rem 4rem;
}

.legal-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  text-align: center;
  color: var(--text-primary);
}

.legal-page .legal-updated {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text-primary);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--border);
}

.legal-page h2:first-of-type {
  margin-top: 0;
}

.legal-page h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--accent);
}

.legal-page p,
.legal-page li {
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.legal-page ul,
.legal-page ol {
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
}

.legal-page ol li {
  margin-bottom: 0.75rem;
}

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.25rem;
  font-size: 0.95rem;
}

.legal-page th,
.legal-page td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.legal-page th {
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-weight: 600;
}

.legal-page td {
  color: var(--text-secondary);
}

.legal-highlight {
  background: var(--accent-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  margin: 1rem 0 1.5rem;
}

.legal-highlight p {
  margin: 0;
}

.legal-page .btn-back {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.65rem 1.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background var(--transition);
}

.legal-page .btn-back:hover {
  background: var(--accent-hover);
  color: #fff;
}

.legal-page .legal-footer-links {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-page .legal-footer-links a {
  margin-right: 1rem;
}
