
/* Banner display face. Bundled (OFL) so the live preview, the cart thumbnail and the production
   PDF all use the exact same glyphs — never a system "Impact" that would diverge from the PDF. */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/Anton-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #f7f0e6;
  --bg-warm: #fffaf1;
  --panel: #fffdf8;
  --panel-strong: #fff7e8;
  --ink: #17130f;
  --muted: #655d52;
  --line: #ddd0bf;
  --brand: #c2412f;
  --brand-dark: #742415;
  --accent: #094052;
  --cyan: #0099c8;
  --magenta: #d83a7c;
  --yellow: #f4c431;
  --key: #17130f;
  --success: #236846;
  --focus: #006d8f;
  --shadow: 0 22px 70px rgba(23, 19, 15, 0.10);
  --shadow-soft: 0 10px 30px rgba(23, 19, 15, 0.07);
  --radius-xl: 30px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font-sans: "Poppins", "Aptos", "Segoe UI Variable", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Poppins", "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-family: var(--font-sans);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(0, 153, 200, 0.13), transparent 24rem),
    radial-gradient(circle at 88% 4%, rgba(244, 196, 49, 0.16), transparent 22rem),
    linear-gradient(180deg, var(--bg-warm), var(--bg) 42%, #efe2d1);
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 18px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffdf8;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-140%);
  transition: transform 0.16s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

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

a {
  color: inherit;
}

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

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

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffefa;
  color: var(--ink);
}

.site-header,
.flow-nav,
.site-footer,
main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.flow-nav {
  display: flex;
  gap: 18px;
  padding: 0 0 8px;
}

.flow-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 0 10px;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 30px;
  display: inline-grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  transform: skewX(-9deg);
}

.brand-stroke {
  display: block;
  border-radius: 999px;
}

.brand-stroke:nth-child(1),
.brand-stroke:nth-child(4) {
  transform: translateY(2px);
}

.brand-stroke:nth-child(2),
.brand-stroke:nth-child(3) {
  transform: translateY(-2px);
}

.brand-stroke.cyan { background: var(--cyan); }
.brand-stroke.magenta { background: var(--magenta); }
.brand-stroke.yellow { background: var(--yellow); }
.brand-stroke.key { background: var(--key); }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: flex-end;
  align-items: center;
}

.site-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.site-nav a:hover,
.flow-nav a:hover,
.site-footer a:hover {
  color: var(--brand-dark);
}

.site-nav .nav-cta {
  padding: 10px 15px;
  border: 1px solid rgba(194, 65, 47, 0.28);
  border-radius: 999px;
  background: #fffefa;
  color: var(--brand-dark);
  font-weight: 700;
}

.site-nav .nav-cta-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
}

.site-nav .nav-cta-cart .cart-icon {
  display: block;
  flex: none;
}

.mobile-header-actions {
  display: none;
  align-items: center;
  gap: 10px;
}

.mobile-cart-button,
.mobile-menu-button,
.mobile-menu-close {
  min-width: 46px;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(9, 64, 82, 0.14);
  border-radius: 14px;
  background: #fffefa;
  color: var(--accent);
  box-shadow: 0 8px 20px rgba(20, 31, 45, 0.08);
}

.mobile-cart-button {
  position: relative;
  display: inline-flex;
  text-decoration: none;
}

.mobile-menu-button,
.mobile-menu-close {
  display: inline-grid;
  cursor: pointer;
}

.mobile-menu-button span {
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: currentColor;
}

.cart-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border: 2px solid #fffefa;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
}

.cart-badge[hidden] {
  display: none;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483190;
  background: rgba(14, 18, 24, 0.48);
  backdrop-filter: blur(3px);
}

.mobile-menu-overlay[hidden],
.mobile-menu-drawer[hidden] {
  display: none;
}

.mobile-menu-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 2147483200;
  width: min(92vw, 420px);
  height: 100dvh;
  overflow-y: auto;
  padding: 18px;
  border-left: 1px solid rgba(9, 64, 82, 0.14);
  background:
    linear-gradient(160deg, rgba(255, 253, 249, 0.98), rgba(255, 247, 232, 0.98)),
    #fffefa;
  box-shadow: -24px 0 70px rgba(20, 31, 45, 0.24);
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.mobile-menu-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.mobile-menu-close {
  font-size: 2rem;
  line-height: 1;
}

.mobile-menu-nav {
  display: grid;
  gap: 18px;
}

.mobile-menu-nav section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(9, 64, 82, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.mobile-menu-nav h2 {
  margin: 0 0 2px;
  color: var(--brand);
  font-size: 0.78rem;
  line-height: 1.2;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.mobile-menu-nav a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu-nav a + a {
  border-top: 1px solid rgba(9, 64, 82, 0.08);
}

.mobile-menu-open {
  overflow: hidden;
}


.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(150px, 0.7fr));
  gap: 20px;
  margin-top: 48px;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin-bottom: 8px;
}

.site-footer address {
  font-style: normal;
  line-height: 1.6;
}

.site-footer a {
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.footer-brand { border-left: 3px solid rgba(181, 72, 47, 0.25); padding-left: 18px; }
.footer-slogan { font-size: 1.1rem; font-weight: 800; color: #b5482f; margin: 12px 0 10px; letter-spacing: -0.01em; }
.footer-brand-copy { font-size: 0.92em; line-height: 1.55; }
.footer-legal-note { grid-column: 1 / -1; }
@media (max-width: 760px) {
  .site-footer { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

.hero,
.product-hero,
.product-layout,
.utility-hero {
  display: grid;
  gap: 24px;
  margin: 32px auto;
}

.hero,
.product-hero {
  grid-template-columns: minmax(0, 1.4fr) minmax(300px, 0.8fr);
  align-items: start;
}

.hero {
  min-height: 520px;
  align-items: stretch;
}

.hero-copy,
.hero-panel,
.gallery-card,
.configurator-card,
.pricing-panel,
.content-card,
.faq-item,
.product-card {
  background: var(--panel);
  border: 1px solid rgba(177, 77, 34, 0.12);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  position: relative;
  transition: transform .15s ease, box-shadow .18s ease, border-color .15s ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(20, 31, 45, 0.14);
  border-color: rgba(177, 77, 34, 0.4);
}

.product-card h2 a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.product-card h2 a:focus-visible::after {
  outline: 2px solid var(--brand-dark);
  outline-offset: 3px;
}

.product-card .eyebrow a,
.product-card .text-cta {
  position: relative;
  z-index: 2;
}

@media (prefers-reduced-motion: reduce) {
  .product-card { transition: none; }
  .product-card:hover { transform: none; }
}

.hero-copy {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 232, 0.96)),
    radial-gradient(circle at 92% 18%, rgba(0, 153, 200, 0.10), transparent 18rem);
}

.hero-visual-panel {
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(9, 64, 82, 0.96), rgba(23, 19, 15, 0.95)),
    var(--accent);
  color: #fff8e8;
}

.hero-visual-panel .eyebrow,
.hero-visual-panel p {
  color: rgba(255, 248, 232, 0.78);
}

.hero-visual-panel h2 {
  color: #fffdf8;
}

.hero-copy,
.hero-panel,
.gallery-card,
.configurator-card,
.pricing-panel,
.content-card,
.faq-item {
  padding: 28px;
}

.hero-panel ul,
.hero-badges,
.tag-list,
.quote-grid {
  margin: 0;
  padding-left: 18px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  color: var(--brand);
  margin: 0 0 12px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.hero h1 {
  max-width: 13.5ch;
}

.product-hero h1,
.utility-hero h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.7rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.25rem, 2.1vw, 1.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

/* Strona zamówienia: powiązane bloki (Numer/Status/Suma/Dalsze kroki) niższe i nierozciągane. */
.order-page .content-section {
  align-items: start;
  gap: 16px;
}

.order-page .content-card {
  padding: 18px 20px;
}

.order-page .content-card h2 {
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  line-height: 1.12;
  margin-bottom: 8px;
}

.order-page .content-card .eyebrow {
  margin-bottom: 6px;
}

.order-page .content-card p {
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.order-page .order-primary-section {
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.75fr);
}

.order-summary-card {
  border-color: rgba(177, 77, 34, 0.24);
}

.order-summary-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.order-summary-list div {
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 248, 232, 0.72);
  border: 1px solid rgba(177, 77, 34, 0.12);
}

.order-summary-list dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 4px;
}

.order-summary-list dd {
  margin: 0;
  font-weight: 800;
  color: var(--ink);
}

.order-primary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 8px;
}
/* Equal-size pills (don't let one button stretch taller than the other). */
.order-primary-actions > .button-cta,
.order-primary-actions > a.button-cta {
  min-height: 48px;
  padding: 12px 22px;
  flex: 0 0 auto;
}

/* Upload button is dimmed (not removed) while we prepare the ordered project, so the hover
   title still explains why. Pointer events stay on for the tooltip; the click is blocked in JS. */
.button-cta.is-working {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}
/* display:flex would otherwise override the [hidden] attribute (author rule beats the UA
   [hidden]{display:none}), making the banner show on every order — keep it hidden when hidden. */
.design-working-note[hidden] { display: none; }
.design-working-note {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 10px;
  padding: 11px 14px;
  border: 1px solid rgba(11, 109, 180, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(11,109,180,0.07), rgba(11,109,180,0.03));
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}
.design-working-spinner {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid rgba(11, 109, 180, 0.25);
  border-top-color: #0b6db4;
  animation: design-working-spin 0.85s linear infinite;
}
@keyframes design-working-spin {
  to { transform: rotate(360deg); }
}
/* Awaiting payment: same banner, amber tone, static indicator (we are NOT working yet). */
.design-working-note.is-awaiting-payment {
  border-color: rgba(194, 131, 47, 0.38);
  background: linear-gradient(180deg, rgba(194,131,47,0.10), rgba(194,131,47,0.03));
}
.design-working-note.is-awaiting-payment .design-working-spinner {
  border-color: rgba(194, 131, 47, 0.3);
  border-top-color: #c2832f;
  animation: none;
}
/* Project ready for the customer to accept: positive green, static indicator. */
.design-working-note.is-ready {
  border-color: rgba(31, 157, 87, 0.42);
  background: linear-gradient(180deg, rgba(31,157,87,0.10), rgba(31,157,87,0.03));
}
.design-working-note.is-ready .design-working-spinner {
  border-color: rgba(31, 157, 87, 0.3);
  border-top-color: #1f9d57;
  animation: none;
}
@media (prefers-reduced-motion: reduce) {
  .design-working-spinner { animation-duration: 2.4s; }
}
.acc-order-row {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.acc-order-row:last-child { border-bottom: 0; }
.acc-order-head { margin: 0 0 2px; font-weight: 600; }
.acc-order-contents { margin: 0; font-size: 0.9rem; color: var(--muted); }

/* Customer decision panel under a proof (accept / reject-with-notes). */
.proof-decision { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.proof-decision-title { margin: 0 0 8px; font-size: 1rem; }
.proof-decision-actions, .proof-reject-box-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
/* Equal-size pills: don't let a wrapping label stretch its row-mates (that made "reklamacja"
   look taller), and keep every button the same height/padding/radius. */
.proof-decision-actions button, .proof-reject-box-actions button {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 999px;
  white-space: nowrap;
  flex: 0 0 auto;
  font-size: 0.95rem;
}
.proof-decision-actions .proof-reject { border-color: rgba(194,65,47,0.5); color: #b5482f; }
.proof-decision-actions .proof-reject-claim { border-color: rgba(194,65,47,0.75); }
.proof-reject-box[hidden] { display: none; }
.proof-reject-box { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.proof-reject-label { font-size: 0.9rem; font-weight: 600; }
.proof-reject-textarea { width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; resize: vertical; }
.proof-reject-counter { align-self: flex-end; font-size: 0.8rem; color: var(--muted); }
.proof-reject-box-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proof-decision-status { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }
.proof-decision-status.is-ok { color: #1f9d57; font-weight: 600; }

.order-secondary-section details.content-card {
  padding: 0;
  overflow: hidden;
}

.order-secondary-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.order-secondary-section summary::-webkit-details-marker {
  display: none;
}

.order-secondary-section summary::after {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(177, 77, 34, 0.1);
  color: var(--brand);
  font-weight: 900;
}

.order-secondary-section details[open] summary::after {
  content: "−";
}

.order-secondary-section details > p,
.order-secondary-section details > ul,
.order-secondary-section details > form,
.order-secondary-section details > div {
  margin-inline: 20px;
}

.order-secondary-section details > :last-child {
  margin-bottom: 20px;
}

@media (max-width: 760px) {
  .order-page .utility-hero {
    gap: 10px;
    margin: 18px 0 12px;
  }

  .order-page .utility-hero .eyebrow {
    margin-bottom: 4px;
  }

  .order-page .utility-hero h1 {
    margin-bottom: 8px;
  }

  .order-page .utility-hero .hero-text {
    font-size: 0.94rem;
    line-height: 1.42;
    margin-bottom: 0;
  }

  .order-page .content-section {
    margin-block: 14px;
  }

  .order-page .content-card {
    padding: 16px 18px;
  }

  .order-page .order-primary-section,
  .order-summary-list {
    grid-template-columns: 1fr;
  }

  .order-summary-list {
    gap: 7px;
    margin: 12px 0;
  }

  .order-summary-list div {
    padding: 9px 11px;
  }

  .order-summary-list dt {
    margin-bottom: 2px;
  }

  .order-primary-actions {
    margin-top: 10px;
  }

  .order-primary-actions {
    display: grid;
  }
}

.hero-text,
.card-description,
.pricing-note,
.microcopy,
.faq-item p,
.content-card p {
  color: var(--muted);
  line-height: 1.6;
}

.faq-visual {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 16px;
  border-radius: 16px;
  background: rgba(181, 72, 47, 0.1);
  color: #b5482f;
}

.faq-visual::before,
.faq-visual::after {
  content: none;
}

.faq-visual::before {
  left: 24px;
  top: 18px;
  width: 116px;
  height: 52px;
  border: 2px solid rgba(0, 153, 200, 0.22);
}

.faq-visual::after {
  right: 30px;
  top: 24px;
  width: 72px;
  height: 40px;
  border-top: 7px solid var(--magenta);
}

.faq-visual-2::before {
  border-color: rgba(244, 196, 49, 0.55);
  transform: rotate(-4deg);
}

.faq-visual-2::after {
  border-top-color: var(--yellow);
  transform: rotate(5deg);
}

.faq-visual-3::before {
  border-color: rgba(17, 24, 39, 0.22);
}

.faq-visual-3::after {
  border-top-color: var(--key);
}

.hero-proofline {
  max-width: 720px;
  margin: 18px auto 0;
  color: var(--accent);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.hero-actions,
.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-actions {
  margin: 24px 0 20px;
}

.primary-cta,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.primary-cta {
  padding: 12px 18px;
  background: var(--ink);
  color: #fffaf1;
  box-shadow: var(--shadow-soft);
}

.secondary-button {
  padding: 11px 16px;
  background: #fffefa;
  color: var(--accent);
  border-color: rgba(9, 64, 82, 0.18);
}

.inline-button {
  width: fit-content;
}

.trust-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.trust-chip-list li {
  padding: 9px 12px;
  border: 1px solid rgba(9, 64, 82, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
}

.trust-story-section {
  margin-top: 16px;
}

.trust-story-card {
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 18%, rgba(244, 196, 49, 0.16), transparent 18rem),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 232, 0.96));
}

.hero-proof-visual {
  position: relative;
  min-height: 310px;
  margin-bottom: 22px;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 250, 241, 0.08);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.30);
}

.hero-proof-visual picture,
.hero-proof-visual img {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-proof-visual img {
  min-height: 310px;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.02) contrast(1.02);
}

.hero-proof-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 42%, rgba(23, 19, 15, 0.70)),
    radial-gradient(circle at 14% 10%, rgba(0, 153, 200, 0.16), transparent 24rem);
  pointer-events: none;
}

.hero-proof-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 16px;
  border: 1px solid rgba(255, 253, 248, 0.18);
  border-radius: 20px;
  background: rgba(23, 19, 15, 0.72);
  backdrop-filter: blur(10px);
}

.hero-proof-card strong {
  max-width: 18ch;
  color: #fffdf8;
  font-size: clamp(1.18rem, 2.4vw, 1.65rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero-proof-card small {
  max-width: 34ch;
  color: rgba(255, 248, 232, 0.76);
  line-height: 1.45;
}

.card-kicker {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.12);
  color: rgba(255, 248, 232, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.process-grid,
.support-grid-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.how-it-works-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  align-items: stretch;
}

.how-it-works-section .section-heading {
  grid-column: 1 / -1;
  max-width: none;
}

.how-it-works-section .process-grid {
  grid-column: 1 / -1;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.news-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.news-placeholder-card {
  position: relative;
  min-height: 230px;
  overflow: hidden;
}

.news-placeholder-card h3,
.news-placeholder-card p {
  position: relative;
  z-index: 1;
}

.news-visual {
  display: block;
  width: 100%;
  height: 94px;
  margin-bottom: 18px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(0, 153, 200, 0.18), rgba(236, 0, 140, 0.16)),
    radial-gradient(circle at 78% 25%, rgba(244, 196, 49, 0.8), transparent 28%),
    linear-gradient(160deg, rgba(255, 253, 248, 0.94), rgba(255, 245, 222, 0.9));
}

.support-grid-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.design-example-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.design-example-links a {
  display: grid;
  gap: 3px;
  padding: 12px 14px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.design-example-links a:hover,
.design-example-links a:focus-visible {
  border-color: rgba(177, 77, 34, 0.42);
  box-shadow: 0 12px 28px rgba(23, 19, 15, 0.08);
  transform: translateY(-1px);
}

.design-example-links strong {
  font-size: 0.98rem;
}

.design-example-links span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.process-card {
  display: grid;
  align-content: space-between;
  min-height: clamp(220px, 19vw, 280px);
  padding: 22px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--shadow-soft);
}

.process-card span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf1;
  font-weight: 700;
}

.process-card p {
  color: var(--muted);
  line-height: 1.55;
}

.feature-card {
  background:
    linear-gradient(135deg, rgba(0, 153, 200, 0.08), rgba(244, 196, 49, 0.10)),
    var(--panel);
}

.product-grid-section {
  position: relative;
  overflow: visible;
  margin: 36px auto;
}

.catalog-page .product-grid-section:first-of-type {
  padding: 24px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.88), rgba(255, 247, 232, 0.94)),
    image-set(
      url("/assets/sections/product-category-print-bg.webp") type("image/webp"),
      url("/assets/sections/product-category-print-bg.jpg") type("image/jpeg")
    );
  background-position: center;
  background-size: cover;
}

.catalog-page .product-grid-section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 92% 8%, rgba(255, 253, 248, 0.58), transparent 22rem),
    linear-gradient(90deg, rgba(255, 253, 248, 0.96), rgba(255, 253, 248, 0.72));
  pointer-events: none;
}

.catalog-page .product-grid-section:first-of-type > * {
  position: relative;
  z-index: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px 22px;
}

.product-grid > .product-card {
  box-shadow:
    0 18px 58px rgba(23, 19, 15, 0.075),
    0 5px 20px rgba(23, 19, 15, 0.045);
}

.product-grid > .product-card:hover {
  box-shadow:
    0 22px 62px rgba(23, 19, 15, 0.095),
    0 8px 24px rgba(23, 19, 15, 0.055);
}

@media (min-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.quote-grid {
  display: grid;
  gap: 12px;
  padding-left: 0;
}

.quote-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.legacy-source-list {
  display: grid;
  gap: 12px;
}

.legacy-source-row {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(64px, 0.3fr) minmax(160px, 0.7fr);
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.legacy-source-row code {
  overflow-wrap: anywhere;
}

.prose-content p,
.prose-content li,
.prose-content h2,
.prose-content h3,
.prose-content h4 {
  line-height: 1.7;
}

.prose-content ul,
.prose-content ol {
  padding-left: 20px;
}

.contact-page-content {
  width: 100%;
}

.contact-help-wide {
  width: 100%;
  margin: 24px 0;
  padding: 20px;
  border: 1px solid rgba(0, 146, 209, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.82), rgba(255, 247, 232, 0.72)),
    radial-gradient(circle at 92% 12%, rgba(0, 146, 209, 0.12), transparent 18rem);
}

.contact-help-wide h4 {
  margin-bottom: 14px;
}

.contact-help-wide ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  margin: 0;
  padding-left: 20px;
}

.product-card {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  padding: 24px;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.product-card h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
  padding-right: 54px;
}

.product-card a {
  text-decoration: none;
}

.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), var(--magenta), var(--yellow), var(--key));
  opacity: 0.86;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: rgba(9, 64, 82, 0.22);
  box-shadow: 0 18px 48px rgba(23, 19, 15, 0.11);
}

.product-card-mark {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.74), transparent 30%),
    linear-gradient(135deg, rgba(0, 153, 200, 0.22), rgba(216, 58, 124, 0.16), rgba(244, 196, 49, 0.24));
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(9, 64, 82, 0.10);
}

.bestseller-section {
  margin: 36px auto;
}

.bestseller-section .section-heading {
  margin-bottom: 18px;
}

.bestseller-section .section-heading p:last-child {
  color: var(--muted);
  line-height: 1.6;
  max-width: none;
}

.bestseller-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.variant-offer-card { border: 1px dashed rgba(181, 72, 47, 0.45); }
.variant-express { color: #2e7d32; font-weight: 600; margin: 6px 0 0; }
.variant-offer-card .eyebrow { color: #b5482f; }
.variant-offer-cta { margin-top: 14px; align-self: flex-start; }
.family-product-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.bestseller-tile {
  position: relative;
  display: grid;
  gap: 12px;
  min-height: 100%;
  padding: 22px;
  border: 1px solid rgba(9, 64, 82, 0.14);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 232, 0.94)),
    radial-gradient(circle at 92% 8%, rgba(0, 153, 200, 0.12), transparent 11rem);
  box-shadow: var(--shadow-soft);
}

.bestseller-tile.is-popular {
  border-color: rgba(177, 77, 34, 0.42);
  background:
    linear-gradient(145deg, rgba(255, 247, 232, 0.98), rgba(255, 255, 255, 0.94)),
    radial-gradient(circle at 88% 12%, rgba(231, 65, 112, 0.16), transparent 10rem);
}

.bestseller-art {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(9, 64, 82, 0.08), rgba(244, 196, 49, 0.12)),
    #fffdf8;
}

.bestseller-art.has-product-visual {
  min-height: 168px;
  background: #f8efe2;
}

.bestseller-art.has-banner-visual {
  position: relative;
  display: grid;
  grid-template-rows: 62% 38%;
  min-height: 168px;
  border: 2px solid #111;
  background: #ffe500;
}

.bestseller-art.has-banner-visual strong,
.bestseller-art.has-banner-visual small {
  display: grid;
  place-items: center;
  padding: 10px 16px;
  text-align: center;
  text-transform: uppercase;
}

.bestseller-art.has-banner-visual strong {
  background: #ffe500;
  color: #111;
  font-family: "Anton", "Impact", var(--font-display);
  font-size: clamp(1.78rem, 4.2vw, 3.05rem);
  line-height: 0.95;
  letter-spacing: 0.095em;
}

.bestseller-art.has-banner-visual small {
  background: #050505;
  color: #fff;
  font-size: clamp(1.28rem, 2.35vw, 1.7rem);
  font-weight: 900;
  letter-spacing: 0.045em;
  white-space: pre-line;
}

.bestseller-art.has-banner-visual small.has-icon,
.product-card-banner-thumb small.has-icon,
.banner-tile-preview small.has-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.24em;
}

.bestseller-art.has-banner-visual small em,
.product-card-banner-thumb small em,
.banner-tile-preview small em {
  display: inline-flex;
  width: 0.86em;
  height: 0.86em;
  flex: none;
}

.bestseller-art.has-banner-visual small svg,
.product-card-banner-thumb small svg,
.banner-tile-preview small svg {
  width: 100%;
  height: 100%;
}

.bestseller-art.has-banner-visual.is-twoj_tekst strong {
  background: #ffffff;
}

.bestseller-art.has-banner-visual.is-twoj_tekst small {
  background: #0b2433;
}

.bestseller-art.has-banner-visual.is-sprzedam_dzialke strong,
.bestseller-art.has-banner-visual.is-custom_xxl strong {
  background: #f7f0e6;
  color: #123c2c;
  font-size: clamp(1.32rem, 3.15vw, 2.18rem);
  letter-spacing: 0.055em;
}

.bestseller-art.has-banner-visual.is-sprzedam_dzialke small,
.bestseller-art.has-banner-visual.is-custom_xxl small {
  background: #123c2c;
  color: #fff;
}

.bestseller-art.has-banner-visual.is-custom_xxl small {
  font-size: 0.9rem;
  line-height: 1.02;
}

.bestseller-art.has-banner-visual.is-wynajme strong {
  background: #ffffff;
  color: #d71920;
}

.bestseller-art.has-banner-visual.is-wynajme small {
  background: #0b2433;
}

.banner-thumb-grommets,
.banner-tile-grommets {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.banner-thumb-grommets i,
.banner-tile-grommets i {
  position: absolute;
  width: 7px;
  height: 7px;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(17, 17, 17, 0.78);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.08);
}

.bestseller-art picture,
.bestseller-art img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 168px;
}

.bestseller-art img {
  object-fit: cover;
  transform: scale(1.01);
}

.bestseller-art.has-product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 45%, rgba(23, 19, 15, 0.28)),
    radial-gradient(circle at 12% 14%, rgba(255, 253, 248, 0.2), transparent 9rem);
  pointer-events: none;
}

.bestseller-sheet {
  position: absolute;
  left: 34px;
  top: 28px;
  width: 132px;
  height: 72px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(23, 19, 15, 0.16);
}

.bestseller-sheet.sheet-1 {
  border-top: 8px solid var(--cyan);
  transform: rotate(-8deg);
}

.bestseller-sheet.sheet-2 {
  border-top: 8px solid var(--magenta);
  transform: translate(26px, 4px) rotate(2deg);
}

.bestseller-sheet.sheet-3 {
  border-top: 8px solid var(--yellow);
  transform: translate(52px, 8px) rotate(8deg);
}

.bestseller-quantity {
  position: absolute;
  right: 18px;
  bottom: 14px;
  z-index: 1;
  display: inline-grid;
  min-width: 62px;
  height: 44px;
  place-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fffaf1;
  font-weight: 800;
}

.bestseller-tile h3 {
  margin-bottom: 0;
  font-size: 1.45rem;
}

.bestseller-price {
  margin: 0;
  color: var(--brand-dark);
  font-size: clamp(1.8rem, 4vw, 2.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.handoff-badge {
  width: fit-content;
  margin: 0;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
}

.handoff-badge.is-supported {
  background: rgba(0, 153, 153, 0.12);
  color: var(--accent);
}

.handoff-badge.is-manual {
  background: rgba(244, 196, 49, 0.22);
  color: #6d4a00;
}

.bestseller-param-list {
  display: grid;
  gap: 8px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}

.bestseller-param-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.bestseller-param-list strong {
  color: var(--ink);
  text-align: right;
}

.bestseller-add {
  width: 100%;
  margin: 10px 0 0;
}

.bestseller-status {
  min-height: 42px;
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.text-cta {
  width: fit-content;
  color: var(--brand-dark);
  font-weight: 850;
  text-decoration: none;
}

.text-cta::after {
  content: " ->";
}

.offer-card-facts {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
}

.offer-card-facts div {
  display: grid;
  gap: 2px;
}

.offer-card-facts dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.offer-card-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.35;
}

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

.benefit-tile-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.benefit-tile-list li {
  display: grid;
  min-height: 92px;
  align-content: center;
  justify-items: start;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 232, 0.88)),
    radial-gradient(circle at 88% 16%, rgba(0, 153, 200, 0.10), transparent 4.4rem);
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.18;
}

.benefit-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tag-list li {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

.chroma-dictionary-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dictionary-overview {
  grid-column: 1 / -1;
  border-color: rgba(0, 146, 209, 0.32);
  background:
    linear-gradient(145deg, rgba(0, 146, 209, 0.12), rgba(255, 237, 0, 0.08)),
    var(--panel);
}

.dictionary-group h3 {
  margin-bottom: 6px;
}

.dictionary-values li {
  max-width: 100%;
}

.design-service-section .quote-form,
.design-service-grid {
  display: grid;
}

.design-service-section .quote-form {
  gap: 0;
}

.design-service-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.design-service-section .quote-actions,
.design-service-section .design-service-result {
  grid-column: 1 / -1;
}

.design-service-column {
  display: grid;
  gap: 14px;
  align-content: start;
}

.design-section-heading {
  display: grid;
  gap: 4px;
  min-height: 58px;
  margin: 0 0 8px;
}

.design-section-heading h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  line-height: 1.1;
}

.design-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.35;
}

.design-service-section .config-group > label:not(.colour-swatch-option):not(.radio-row):not(.checkbox-row),
.design-service-section .form-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.design-service-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.design-service-actions .microcopy {
  margin: 0;
}

.design-submit-button {
  min-height: 52px;
  padding: 15px 24px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 850;
}

.design-service-result {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 146, 209, 0.18);
  border-radius: 14px;
  background: rgba(0, 146, 209, 0.08);
  color: var(--accent);
  font-weight: 750;
}

.design-service-result[data-state="error"] {
  border-color: rgba(177, 77, 34, 0.30);
  background: rgba(177, 77, 34, 0.08);
  color: var(--brand-dark);
}

.design-colour-picker {
  display: grid;
  grid-template-columns: repeat(6, 42px);
  justify-content: start;
  align-items: start;
  gap: 8px;
  margin: 12px 0 16px;
}

.design-colour-picker > span {
  grid-column: 1 / -1;
  color: var(--ink);
  font-weight: 800;
}

.design-colour-picker .colour-swatch-option {
  position: relative;
  display: grid;
  min-height: 36px;
  align-items: stretch;
  margin: 0;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
}

.design-colour-picker .colour-swatch-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.design-colour-picker .colour-swatch {
  display: block;
  height: 28px;
  min-height: 28px;
  border: 1px solid rgba(20, 31, 45, 0.16);
  border-radius: 11px;
  background: var(--swatch-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.design-colour-picker .colour-swatch-option:has(input:checked) {
  border-color: #101827;
  box-shadow:
    0 0 0 3px rgba(0, 146, 209, 0.18),
    0 10px 22px rgba(16, 24, 39, 0.12);
}

.design-colour-picker .colour-swatch-option:has(input:checked)::after {
  content: "✓";
  position: absolute;
  top: -7px;
  right: -7px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 999px;
  background: #101827;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(16, 24, 39, 0.22);
}

.design-colour-picker .colour-swatch-option.is-limit-hit {
  border-color: #d91f2d;
  animation: swatchLimitShake 0.34s ease;
}

@keyframes swatchLimitShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}

.field-group,
.design-logo-choice {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.radio-list,
.checkbox-list {
  display: grid;
  gap: 8px;
}

.radio-list--inline {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.radio-row,
.checkbox-row {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  min-height: 36px;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.radio-row input,
.checkbox-row input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--brand-dark);
}

.radio-row:has(input:checked),
.checkbox-row:has(input:checked),
.radio-row.is-selected,
.checkbox-row.is-selected {
  font-weight: 700;
}

.design-logo-choice legend,
.design-logo-panel legend {
  margin-bottom: 10px;
  color: var(--ink);
  font-weight: 800;
}

.conditional-panel,
.design-logo-panel {
  margin: 4px 0 12px;
  padding: 14px;
  border: 1px solid rgba(0, 146, 209, 0.18);
  border-radius: 14px;
  background: rgba(247, 243, 235, 0.72);
}

.design-logo-panel[hidden],
.design-logo-panel [hidden] {
  display: none !important;
}

.configurator-card .option-list .option-pill {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  line-height: 1.2;
  font-weight: 600;
  text-align: center;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

.configurator-card .option-list .option-pill:hover {
  border-color: var(--brand);
}

.configurator-card .option-list .option-pill:has(input:focus-visible) {
  outline: 2px solid var(--brand-dark);
  outline-offset: 2px;
}

.configurator-card .option-list .option-pill input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.configurator-card .option-list .option-pill.is-active,
.configurator-card .option-list .option-pill:has(input:checked) {
  border-color: var(--brand);
  background: #fff1eb;
}

.cad-hero {
  align-items: stretch;
}

.cad-pricing-panel,
.cad-analysis-panel {
  align-self: start;
}

.simple-step-list {
  display: grid;
  gap: 10px;
  margin: 18px 0;
  padding-left: 20px;
  color: var(--ink);
}

.simple-step-list li::marker {
  color: var(--brand);
  font-weight: 900;
}

.cad-visual-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cad-visual-card {
  overflow: hidden;
}

.cad-blueprint-visual,
.cad-rolls-visual {
  display: block;
  min-height: 240px;
  margin-bottom: 20px;
  border: 1px solid rgba(32, 75, 87, 0.12);
  border-radius: 20px;
  background-color: #f7f2e8;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.cad-blueprint-visual {
  background-image: url('/assets/sections/cad-blueprint.webp');
  background-size: cover;
  background-position: center;
}

.cad-rolls-visual {
  position: relative;
  background-image: url('/assets/sections/cad-rolls.webp');
  background-size: cover;
  background-position: center;
}

.cad-file-first {
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
}

.cad-options-grid {
  margin-top: 18px;
  gap: 20px;
}

.cad-binder-row.is-disabled { opacity: 0.45; }
.cad-binder-row input:disabled { cursor: not-allowed; }
.cart-link { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 10px auto 0; font-weight: 600; color: #b5482f; text-decoration: none; }
.quote-result .cart-link:hover { text-decoration: underline; }
.cart-link .cart-icon { flex: none; }

.auth-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
.auth-welcome-card { display: flex; flex-direction: column; }
.auth-welcome-img { width: 100%; height: 280px; object-fit: cover; border-radius: 18px; margin-bottom: 18px; }
.auth-benefits { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 10px; }
.auth-benefits li { position: relative; padding-left: 32px; font-weight: 600; }
.auth-benefits li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; line-height: 22px; text-align: center; border-radius: 50%; background: rgba(181, 72, 47, 0.12); color: #b5482f; font-size: 13px; }
@media (max-width: 720px) { .auth-grid { grid-template-columns: 1fr; } }
.cart-line-desc { color: #5a5550; font-size: 0.95em; line-height: 1.4; }
.order-item-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cart-item-row .cart-line-desc { display: block; margin-bottom: 6px; }

.order-item-addon {
  padding-left: 16px;
  border-left: 2px solid var(--brand, #b5482f);
  background: rgba(181, 72, 47, 0.04);
}

.order-item-addon strong { font-weight: 600; }
.order-item-addon .cart-line-desc { color: var(--muted); }

.banner-preview-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 44px);
}
.banner-preview-info {
  display: grid;
  align-content: start;
  gap: 12px;
}
.banner-preview-info h2 {
  margin-bottom: 0;
}
.banner-preview-stage {
  display: grid;
  min-width: 0;
  place-items: center;
}
.banner-preview {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  max-width: 980px;
  aspect-ratio: 2 / 1;
  margin: 0;
  border: 2px solid #111;
  border-radius: 10px;
  background: #fff;
  text-align: center;
  box-shadow: 0 16px 36px rgba(23, 19, 15, 0.12), inset 0 0 0 1px rgba(255,255,255,0.18);
  overflow: hidden;
  transition: aspect-ratio .16s ease, box-shadow .16s ease;
}
/* The artwork SVG (single source of truth) fills the framed canvas; its viewBox carries the band
   colours, text and grommet guides, so the canvas itself is just a bordered frame. */
.banner-preview-svg {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
}
.banner-preview-svg svg {
  display: block;
  width: 100%;
  height: 100%;
}
.banner-preview-artwork {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.banner-preview-top,
.banner-preview-bottom {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 0;
  place-items: center;
  padding: clamp(8px, 2vw, 18px);
  transition: opacity .16s ease;
}
.banner-preview.has-uploaded-artwork .banner-preview-top,
.banner-preview.has-uploaded-artwork .banner-preview-bottom {
  opacity: 0;
}
.banner-preview-top { background: var(--banner-top-color); }
.banner-preview-bottom { background: var(--banner-bottom-color); }
.banner-preview-text {
  display: inline-block;
  max-width: 92%;
  white-space: pre-line;
  font-family: "Anton", "Impact", var(--font-display);
  font-weight: 900;
  font-size: clamp(2.1rem, 7.6vw, 5.2rem);
  line-height: 0.95;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  text-wrap: balance;
  transform-origin: center;
}
.banner-preview-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.9vw, 9px);
  max-width: 92%;
  font-family: "Anton", "Impact", var(--font-display);
  font-weight: 900;
  font-size: calc(clamp(1.85rem, 7vw, 4.8rem) * var(--banner-phone-scale, 1));
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
  overflow-wrap: anywhere;
  transform-origin: center;
}
.banner-preview-phone [data-banner-phone-num] {
  min-width: 0;
  overflow-wrap: anywhere;
}
.banner-preview-phone-icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: calc(0.92em * var(--banner-phone-icon-scale, 0.8));
  margin-top: -0.03em;
}
.banner-preview-phone-icon svg {
  width: 100%;
  height: auto;
  max-height: calc(0.92em * var(--banner-phone-icon-scale, 0.8));
}
.banner-preview-grommets {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.banner-preview-grommets span {
  position: absolute;
  width: clamp(4px, 0.62vw, 7px);
  height: clamp(4px, 0.62vw, 7px);
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(17, 17, 17, 0.72);
  border-radius: 999px;
  background: #fffdf8;
  box-shadow: 0 1px 3px rgba(23, 19, 15, 0.24), inset 0 0 0 1px rgba(255,255,255,0.6);
}
.banner-preview.is-grommets-none .banner-preview-grommets {
  display: none;
}
.banner-preview-spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}
.banner-preview-spec div {
  padding: 9px 10px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.72);
}
.banner-preview-spec dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.banner-preview-spec dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 750;
}
.banner-preview-info .banner-preview-spec {
  grid-template-columns: 1fr;
  margin: 0;
}
.banner-product-layout {
  grid-template-columns: minmax(0, 1fr);
}
.banner-product-layout .configurator-card,
.banner-product-layout .gallery-card {
  width: 100%;
}
.banner-product-layout .configurator-card {
  padding: clamp(16px, 2vw, 22px);
}
.banner-product-layout .configurator-card h2 {
  margin-bottom: 12px;
}
.banner-product-layout .config-group {
  margin-bottom: 10px;
}
.banner-product-layout .group-header {
  margin-bottom: 5px;
}
.banner-product-layout .group-header h3 {
  font-size: 0.98rem;
}
.banner-product-layout .group-header span {
  font-size: 0.72rem;
}
.banner-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
}
.banner-mode-tab,
.banner-pattern-button {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 32px;
  padding: 5px 8px;
  border: 1px solid rgba(9, 64, 82, 0.16);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 680;
  line-height: 1.12;
  text-align: center;
  cursor: pointer;
}
.banner-mode-tab input,
.banner-pattern-button input,
.banner-color-swatch input,
.banner-icon-button input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}
.banner-mode-tab:has(input:checked),
.banner-mode-tab.is-selected,
.banner-pattern-button:has(input:checked),
.banner-pattern-button.is-selected {
  border-color: var(--brand-red);
  background: rgba(181, 72, 47, 0.08);
  box-shadow: 0 0 0 2px rgba(181, 72, 47, 0.14);
}
.banner-mode-panel {
  border: 0;
  margin: 0;
  padding: 0;
}
.banner-pattern-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.banner-pattern-button {
  min-height: 30px;
  padding: 4px 5px;
  font-size: 0.7rem;
}
.banner-custom-text-field {
  display: grid;
  grid-template-columns: minmax(120px, 0.18fr) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.banner-custom-text-field[hidden] {
  /* Beat the high-specificity generic quote-form label rule so the field is truly hidden
     for every template except Twoj tekst. */
  display: none !important;
}
.banner-product-layout .banner-custom-text-field textarea {
  min-height: 34px;
  padding: 6px 9px;
  font-size: 0.85rem;
}
.banner-compact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.banner-compact-grid--custom {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
.banner-compact-field {
  display: grid;
  gap: 3px;
}
.banner-compact-field > span {
  color: var(--muted);
  font-size: 0.63rem;
  font-weight: 850;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.banner-compact-field select,
.banner-compact-field input {
  min-height: 30px;
  padding: 4px 8px;
  font-size: 0.82rem;
}
.banner-band-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.banner-band-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}
.banner-band-card h4 {
  margin: 0;
  font-size: 0.9rem;
}
.banner-band-row {
  display: grid;
  grid-template-columns: minmax(48px, 0.18fr) minmax(0, 1fr);
  align-items: center;
  gap: 7px;
}
.banner-band-color-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 8px;
}
.banner-band-color-rows {
  display: grid;
  gap: 6px;
}
.banner-phone-icon-panel {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 56px;
}
.banner-phone-icon-panel > span {
  color: var(--muted);
  font-size: 0.58rem;
  font-weight: 850;
  line-height: 1;
  text-transform: uppercase;
}
.banner-phone-icon-panel .banner-icon-grid {
  display: grid;
  grid-template-columns: repeat(2, 22px);
  gap: 4px;
}
.banner-phone-icon-controls {
  display: grid;
  grid-template-columns: auto 24px;
  align-items: center;
  gap: 5px;
}
.banner-icon-size-control {
  display: grid;
  justify-items: center;
  gap: 2px;
}
.banner-icon-size-control input[type="range"] {
  width: 46px;
  height: 16px;
  accent-color: var(--brand-red);
  transform: rotate(-90deg);
}
.banner-icon-size-control output {
  color: var(--muted);
  font-size: 0.54rem;
  font-weight: 850;
  line-height: 1;
}
.banner-band-row > span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 850;
}
.banner-color-grid,
.banner-icon-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.banner-color-swatch,
.banner-icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}
.banner-color-swatch > span {
  display: block;
  width: 26px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.banner-color-swatch b {
  position: absolute;
  inset: auto 3px 2px auto;
  display: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 8px;
  line-height: 12px;
  text-align: center;
}
.banner-color-swatch:has(input:checked) > span,
.banner-color-swatch.is-selected > span {
  outline: 2px solid var(--brand-red);
  outline-offset: 2px;
}
.banner-color-swatch:has(input:checked) b,
.banner-color-swatch.is-selected b {
  display: block;
}
.banner-icon-button {
  width: 24px;
  height: 24px;
  border: 1px solid rgba(9, 64, 82, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}
.banner-icon-button span {
  display: inline-flex;
  width: 15px;
  height: 15px;
}
.banner-icon-button span:empty::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border: 1px dashed rgba(9, 64, 82, 0.34);
  border-radius: 4px;
}
.banner-icon-button svg {
  width: 15px;
  height: 15px;
}
.banner-icon-button:has(input:checked),
.banner-icon-button.is-selected {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 2px rgba(181, 72, 47, 0.14);
}
.banner-ratio-control--compact {
  margin-top: 6px;
}
.banner-range-control--compact {
  display: grid;
  grid-template-columns: minmax(86px, max-content) minmax(110px, 1fr) 34px;
  align-items: center;
  justify-content: start;
  width: 100%;
  max-width: 100%;
  min-height: 20px;
  padding: 1px 6px;
  gap: 6px;
  border-radius: 8px;
}
.banner-range-control--compact > span {
  display: contents;
}
.banner-range-control--compact > span strong {
  grid-column: 1;
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}
.banner-range-control--compact output {
  grid-column: 3;
  font-size: 0.62rem;
  line-height: 1;
  text-align: right;
}
.banner-range-control--compact input[type="range"] {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 12px;
  min-height: 12px;
}
.banner-bg-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}
.banner-artwork-upload {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px dashed rgba(9, 64, 82, 0.28);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.72);
  color: var(--ink);
  font-weight: 750;
  cursor: pointer;
}
.banner-artwork-upload input {
  max-width: 100%;
}
.banner-ratio-control,
.banner-range-control {
  display: grid;
  gap: 4px;
  padding: 2px 6px;
  border: 1px solid rgba(9, 64, 82, 0.12);
  border-radius: 9px;
  background: rgba(255, 253, 248, 0.72);
}
.banner-ratio-labels,
.banner-ratio-scale,
.banner-range-control > span,
.banner-range-control small {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.banner-ratio-control--compact {
  grid-template-columns: minmax(86px, max-content) minmax(120px, 1fr) 38px;
  align-items: center;
  justify-content: start;
  width: 100%;
  max-width: 100%;
  gap: 6px;
  min-height: 20px;
  padding: 1px 6px;
  border-radius: 8px;
}
.banner-ratio-control--compact .banner-ratio-labels {
  display: contents;
}
.banner-ratio-control--compact .banner-ratio-labels strong {
  grid-column: 1;
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}
.banner-ratio-control--compact .banner-ratio-labels output {
  grid-column: 3;
  font-size: 0.62rem;
  line-height: 1;
  text-align: right;
}
.banner-ratio-control--compact input[type="range"] {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 12px;
  min-height: 12px;
}
.banner-ratio-labels span,
.banner-ratio-scale span,
.banner-range-control small {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 750;
}
.banner-ratio-labels strong,
.banner-range-control output {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 850;
  text-align: center;
}
.banner-range-control > span strong {
  color: var(--ink);
  font-size: 0.86rem;
}
.banner-ratio-control input[type="range"],
.banner-range-control input[type="range"] {
  width: 100%;
  accent-color: var(--brand-red);
  cursor: pointer;
}
.banner-ratio-scale {
  padding: 0 2px;
  margin-top: 4px;
}
.banner-submit-row {
  display: grid;
  grid-template-columns: minmax(138px, 0.16fr) auto minmax(240px, 1fr);
  align-items: center;
  gap: 10px;
  padding-top: 6px;
  border-top: 1px solid rgba(9, 64, 82, 0.10);
}
.banner-submit-row .banner-submit-quantity {
  display: grid;
  grid-template-columns: auto minmax(62px, 1fr);
  align-items: center;
  gap: 7px;
}
.banner-submit-row .banner-submit-quantity > span {
  font-size: 0.58rem;
  line-height: 1;
}
.banner-submit-row .quote-actions {
  align-items: center;
  flex-wrap: nowrap;
  gap: 7px;
  margin: 0;
}
.banner-submit-row .primary-cta,
.banner-submit-row .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  /* Reset the base .primary-cta asymmetric margin (20px/12px) that pushed the CTA ~4px low. */
  margin: 0;
  padding: 5px 12px;
  font-size: 0.78rem;
  line-height: 1;
  white-space: nowrap;
}
.banner-submit-row .primary-cta {
  transform: none;
}
.banner-submit-row .quote-result {
  align-self: center;
  min-height: 0;
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.22;
}
.banner-submit-quantity select {
  min-height: 30px;
}
.banner-range-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.banner-bg-swatch {
  position: relative;
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 650;
  border: 1px solid var(--line, #e7e0d5);
  border-radius: 10px;
  padding: 6px 10px;
  background: #fff;
}
.banner-bg-swatch > span {
  display: inline-block;
  width: 22px;
  height: 14px;
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 5px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18);
}
.banner-bg-swatch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.banner-bg-swatch:has(input:checked),
.banner-bg-swatch.is-selected {
  border-color: #b5482f;
  box-shadow: 0 0 0 2px rgba(181, 72, 47, 0.16);
}
.banner-icon-swatch .banner-icon-preview {
  display: inline-flex;
  width: 20px;
  height: 20px;
  color: #4a4a4a;
}
.banner-icon-swatch .banner-icon-preview svg {
  width: 20px;
  height: 20px;
}
.banner-tiles-grid { display: grid; grid-column: 1 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.banner-tiles-section .section-heading {
  grid-column: 1 / -1;
  width: 100%;
}
.banner-tiles-section .section-heading h2 {
  max-width: none;
}
.banner-tile { display: flex; flex-direction: column; }
.banner-tile-preview {
  position: relative;
  display: grid;
  height: 150px;
  grid-template-rows: 58% 42%;
  margin-bottom: 12px;
  border: 2px solid #111;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(23, 19, 15, 0.10);
}
.banner-tile-preview strong,
.banner-tile-preview small {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  font-family: "Anton", "Impact", var(--font-display);
  font-weight: 900;
  line-height: .98;
  text-transform: uppercase;
}
.banner-tile-preview strong {
  background: #ffe500;
  color: #050505;
  font-size: clamp(1.45rem, 3vw, 2.3rem);
  letter-spacing: .12em;
}
.banner-tile-preview small {
  background: #050505;
  color: #fff;
  font-size: clamp(1.16rem, 2.2vw, 1.62rem);
  letter-spacing: .04em;
  white-space: pre-line;
}
.banner-tile.is-custom-project .banner-tile-preview small { font-size: clamp(.9rem, 1.5vw, 1.15rem); line-height: 1.02; }
.banner-tile.is-local-ad .banner-tile-preview strong { background: #123c2c; color: #fff; letter-spacing: .06em; }
.banner-tile.is-local-ad .banner-tile-preview small { background: #f7f0e6; color: #123c2c; }
.banner-tile.is-custom-project .banner-tile-preview strong { background: #f7f0e6; color: #123c2c; letter-spacing: .06em; }
.banner-tile.is-custom-project .banner-tile-preview small { background: #123c2c; color: #fff; }
.banner-tile h3 { margin: 0 0 4px; font-size: 1.05rem; }
.banner-tile p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
.product-card h2 a[href="/szybkie-banery/"] {
  white-space: nowrap;
}
.product-card-thumb { display: block; width: 100%; height: 156px; border-radius: 14px; background-size: cover; background-position: center; margin-bottom: 6px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.product-card-banner-thumb {
  position: relative;
  display: grid;
  grid-template-rows: 62% 38%;
  align-items: stretch;
  overflow: hidden;
  border: 2px solid #111;
  background: #ffe500;
  box-shadow:
    0 14px 34px rgba(23, 19, 15, 0.10),
    inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.product-card-banner-thumb strong,
.product-card-banner-thumb small {
  display: grid;
  place-items: center;
  padding: 8px;
  text-align: center;
  text-transform: uppercase;
}
.product-card-banner-thumb strong {
  background: #ffe500;
  color: #111;
  font-family: "Anton", "Impact", var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 2.25rem);
  line-height: 0.94;
  letter-spacing: 0.10em;
}
.product-card-banner-thumb small {
  background: #050505;
  color: #fff;
  font-size: clamp(1.12rem, 1.9vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  white-space: pre-line;
}
.product-card-banner-thumb.is-twoj_tekst strong {
  background: #ffffff;
}
.product-card-banner-thumb.is-twoj_tekst small {
  background: #0b2433;
}
.product-card-banner-thumb.is-custom_xxl strong,
.product-card-banner-thumb.is-sprzedam_dzialke strong { background: #f7f0e6; color: #123c2c; letter-spacing: 0.06em; }
.product-card-banner-thumb.is-custom_xxl small,
.product-card-banner-thumb.is-sprzedam_dzialke small { background: #123c2c; color: #fff; }
.product-card-banner-thumb.is-custom_xxl small {
  font-size: clamp(.82rem, 1.15vw, 1rem);
  line-height: 1.02;
  letter-spacing: 0.055em;
}
@media (max-width: 860px) { .banner-tiles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .banner-preview-card {
    grid-template-columns: 1fr;
  }
  .banner-submit-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .banner-submit-row .quote-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .banner-preview-spec { grid-template-columns: 1fr; }
  .banner-range-grid { grid-template-columns: 1fr; }
  .banner-mode-tabs,
  .banner-band-grid,
  .banner-compact-grid,
  .banner-compact-grid--custom {
    grid-template-columns: 1fr;
  }
  .banner-pattern-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .banner-band-row {
    grid-template-columns: 1fr;
  }
  .banner-custom-text-field {
    grid-template-columns: 1fr;
  }
  .product-card h2 a[href="/szybkie-banery/"] { white-space: normal; }
}
@media (max-width: 480px) { .banner-tiles-grid { grid-template-columns: 1fr; } }
.hero-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; max-width: none; }
.hero-photo-grid--banners { grid-template-columns: 1fr; gap: 18px; margin-top: 24px; }
.hero-photo { position: relative; display: block; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); transition: transform 0.18s ease, box-shadow 0.18s ease; }
.hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14); }
.hero-photo:focus-visible { outline: 2px solid #111; outline-offset: 2px; }
/* Quick-banner heroes carry their text baked into the image (deterministic, gpt-image-2
   mounted scenes) — no CSS overlay. Stack full-width at each image's natural aspect so the
   banner text is never cropped. */
.hero-photo-grid--banners .hero-photo { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12); }
.hero-photo-grid--banners .hero-photo img { aspect-ratio: auto; height: auto; }
@media (max-width: 980px) {
  .hero-photo-grid--banners { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .hero-photo { transition: none; } }
.family-hero-panel { display: flex; flex-direction: column; align-self: start; }
.family-hero-cta { margin-top: 18px; padding-top: 0; }
.family-hero-price { font-size: 1.4rem; font-weight: 700; margin: 0 0 12px; }
.family-hero-cta .button-cta { align-self: flex-start; }
.price-panel-cta { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-top: 18px; }
.price-panel-cta .primary-cta { min-width: 240px; }
.makieta-preview { display: block; position: relative; margin-top: 22px; border-radius: 12px; overflow: hidden; cursor: zoom-in; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08); border: 1px solid rgba(0, 0, 0, 0.06); }
.makieta-preview img { display: block; width: 100%; height: auto; }
.makieta-zoom-hint { position: absolute; bottom: 10px; right: 10px; background: rgba(20, 20, 20, 0.72); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: 0.82rem; }
.makieta-spec { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 22px; margin: 22px 0; }
.makieta-spec div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(0, 0, 0, 0.07); padding: 4px 0; }
.makieta-spec dt { color: var(--muted); font-size: 0.86rem; }
.makieta-spec dd { margin: 0; font-weight: 600; font-size: 0.86rem; }
.makieta-download { display: inline-flex; }
.makieta-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; }
.makieta-lightbox:target { display: flex; }
.makieta-lightbox-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.82); cursor: zoom-out; }
.makieta-lightbox-inner { position: relative; max-width: 1000px; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.makieta-lightbox-inner img { max-width: 100%; max-height: 78vh; border-radius: 8px; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
@media (max-width: 560px) { .makieta-spec { grid-template-columns: 1fr; } }
.configurator-card .option-list { display: flex; flex-wrap: wrap; gap: 10px; }
.configurator-card .option-list .option-pill { flex: 1 1 120px; transition: border-color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease; }
.configurator-card .option-list .option-pill:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1); }
.configurator-card .option-list .option-pill.is-active { box-shadow: 0 4px 14px rgba(177, 77, 34, 0.2); }
@media (prefers-reduced-motion: reduce) { .configurator-card .option-list .option-pill { transition: none; } .configurator-card .option-list .option-pill:hover { transform: none; } }

.auth-form-card { display: flex; flex-direction: column; }
.auth-google { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.auth-facebook { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; margin-top: 10px; }
.facebook-f { flex: none; }
.checkout-login { margin-top: 12px; }
.checkout-login-hint { color: var(--muted); font-size: 0.92rem; line-height: 1.45; margin: 0; }
.link-button { background: none; border: 0; padding: 0; color: #b5482f; font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.checkout-login-panel { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fffefa; }
.checkout-login-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 0.85rem; }
.checkout-login-or::before, .checkout-login-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.checkout-item-lines { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.checkout-item-lines li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.checkout-item-lines li:last-child { border-bottom: 0; padding-bottom: 0; }
.cil-name { font-weight: 600; }
.cil-desc { color: var(--muted); font-size: 0.9em; line-height: 1.4; }
.cil-price { color: var(--ink); font-weight: 600; font-size: 0.95em; }
.acc-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.acc-cards { display: grid; gap: 12px; margin: 14px 0; }
.acc-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fffefa; }
.acc-card.is-default { border-color: rgba(194, 65, 47, 0.4); }
.acc-card-title { font-weight: 700; margin-bottom: 6px; }
.acc-badge { display: inline-block; font-size: 0.72em; font-weight: 700; color: #fff; background: #b5482f; border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 6px; }
.acc-card-body { color: var(--muted); font-size: 0.92em; line-height: 1.5; }
.acc-card-actions { display: flex; gap: 14px; margin-top: 10px; flex-wrap: wrap; }
.acc-card-actions .link-button.danger { color: #b00020; }
.acc-form { display: grid; gap: 12px; margin-top: 12px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; background: #fff; }
.acc-form label { display: grid; gap: 6px; color: var(--muted); font-size: 0.92em; }
.acc-form input:not([type="checkbox"]):not([type="radio"]) { min-height: 42px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; }
.acc-form input[type="checkbox"], .acc-form input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; flex: 0 0 auto; }
.acc-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.acc-form-row { display: flex; gap: 16px; flex-wrap: wrap; }
.acc-form label.radio-inline, .acc-form label.checkbox-inline { display: flex; flex-direction: row; align-items: flex-start; justify-content: flex-start; gap: 9px; text-align: left; cursor: pointer; }
.acc-form label.radio-inline input, .acc-form label.checkbox-inline input { order: -1; margin-top: 2px; }
/* Operator forms: sensowna szerokość zamiast rozjechanych pól na całą szerokość karty. */
.operator-page .acc-form, .operator-page .quote-form { max-width: 720px; }
.acc-form-actions { display: flex; gap: 12px; margin-top: 4px; }
.acc-form-errors { color: #b00020; font-size: 0.9em; margin: 0; }
@media (max-width: 560px) { .acc-form-grid { grid-template-columns: 1fr; } }
.google-g { flex: none; background: #fff; border-radius: 50%; padding: 1px; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: #8a8278; font-size: 0.9rem; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line, #e7e0d5); }
.auth-form label { display: grid; gap: 6px; margin-bottom: 15px; font-weight: 600; }
.auth-form label input { width: 100%; padding: 12px 14px; border: 1px solid var(--line, #e7e0d5); border-radius: 12px; background: #fff; font-size: 1rem; font-weight: 400; color: inherit; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-form label input:focus { outline: none; border-color: #b5482f; box-shadow: 0 0 0 3px rgba(181, 72, 47, 0.13); }
.auth-form .primary-cta { width: 100%; margin-top: 8px; }
.auth-form .microcopy { margin: 4px 0 0; }
.auth-switch { margin-top: 18px; }

.cad-analysis-panel [data-cad-price] {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.cad-analysis-panel .pricing-summary dd {
  text-align: right;
}

@media (max-width: 900px) {
  .cad-visual-section,
  .cad-file-first {
    grid-template-columns: 1fr;
  }

  .cad-analysis-panel {
    position: static;
  }
}

.pricing-panel {
  position: sticky;
  top: 20px;
}

.decision-quantity-grid {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.decision-quantity-row {
  display: grid;
  grid-template-columns: minmax(64px, 0.5fr) minmax(92px, 0.7fr) minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
}

.decision-quantity-row.is-popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(32, 75, 87, 0.08), rgba(0, 153, 153, 0.04));
}

.decision-quantity-row.is-active {
  border-color: rgba(32, 75, 87, 0.72);
  background: linear-gradient(135deg, rgba(32, 75, 87, 0.12), rgba(244, 196, 49, 0.10));
  box-shadow: 0 0 0 2px rgba(32, 75, 87, 0.12);
}

.decision-quantity-row small {
  color: var(--muted);
}

.decision-row-config {
  grid-column: 1 / -1;
  font-size: 0.78rem;
}

.mobile-product-bar {
  display: none;
}

.pricing-summary {
  display: grid;
  gap: 14px;
}

.pricing-summary div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.pricing-summary dt {
  color: var(--muted);
}

.pricing-summary dd {
  margin: 0;
  font-weight: 700;
}

.order-items {
  display: grid;
  gap: 12px;
}

.order-item-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* Cart line items: compact qty field (number not glued to the edge) + tidy Usuń. */
.cart-item-row { align-items: flex-start; }
.cart-item-row.has-banner-preview {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr) auto;
  align-items: center;
}
.cart-item-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.cart-banner-preview {
  --cart-banner-top-color: #ffe500;
  --cart-banner-bottom-color: #050505;
  --cart-banner-top-ratio: 60%;
  --cart-banner-bottom-ratio: 40%;
  position: relative;
  display: grid;
  grid-template-rows: var(--cart-banner-top-ratio) var(--cart-banner-bottom-ratio);
  width: 138px;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  border: 1.5px solid #111;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(23, 19, 15, 0.10);
}
.cart-banner-preview-top,
.cart-banner-preview-bottom {
  display: grid;
  min-height: 0;
  place-items: center;
  padding: 4px;
  text-align: center;
}
.cart-banner-preview-top { background: var(--cart-banner-top-color); }
.cart-banner-preview-bottom { background: var(--cart-banner-bottom-color); }
.cart-banner-preview-text,
.cart-banner-preview-phone {
  max-width: 94%;
  font-family: "Anton", "Impact", var(--font-display);
  font-weight: 900;
  line-height: .95;
  text-transform: uppercase;
}
.cart-banner-preview-text {
  font-size: 1.35rem;
  letter-spacing: .10em;
  white-space: pre-line;
}
.cart-banner-preview-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 1.05rem;
  letter-spacing: .03em;
  white-space: nowrap;
}
.cart-banner-preview-phone-icon {
  display: inline-flex;
  width: .8em;
}
.cart-banner-preview-phone-icon svg {
  width: 100%;
  height: auto;
}
.cart-banner-preview i {
  position: absolute;
  width: 4px;
  height: 4px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(17, 17, 17, 0.72);
  border-radius: 999px;
  background: #fffdf8;
}
.cart-item-controls {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.cart-item-controls input[type="number"] {
  width: 104px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  text-align: center;
  -moz-appearance: textfield;
}
.cart-item-controls input[type="number"]:focus {
  outline: none;
  border-color: #b5482f;
  box-shadow: 0 0 0 3px rgba(181, 72, 47, 0.13);
}
.cart-qty-row { display: flex; align-items: center; gap: 10px; }
.cart-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #c2412f;
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.cart-remove-btn:hover { border-color: #c2412f; background: #fff1ec; }
.cart-remove-btn:focus-visible { outline: none; border-color: #c2412f; box-shadow: 0 0 0 3px rgba(194, 65, 47, 0.16); }
.cart-item-amount {
  font-weight: 700;
  white-space: nowrap;
  padding-top: 2px;
}

@media (max-width: 640px) {
  .cart-item-row.has-banner-preview {
    grid-template-columns: 112px minmax(0, 1fr);
  }
  .cart-item-row.has-banner-preview .cart-item-amount {
    grid-column: 2;
  }
  .cart-banner-preview {
    width: 112px;
  }
}

/* Chroma-style upload progress overlay: centered circular % ring over a faded page. */
.upload-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 19, 15, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.upload-overlay-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 36px 44px;
  background: #fffefa;
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(23, 19, 15, 0.25);
}
.upload-ring-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  display: grid;
  place-items: center;
}
.upload-ring { transform: rotate(-90deg); }
.upload-ring-bg { fill: none; stroke: var(--line, #e7e0d5); stroke-width: 10; }
.upload-ring-fg { fill: none; stroke: #c2412f; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset .2s ease; }
.upload-ring-pct { position: absolute; font-size: 1.7rem; font-weight: 700; color: var(--ink, #17130f); }
.upload-overlay-label { margin: 0; font-weight: 600; color: var(--ink, #17130f); }
.upload-overlay.is-indeterminate .upload-ring { animation: upload-ring-spin 0.9s linear infinite; }
.upload-overlay.is-indeterminate .upload-ring-fg { stroke-dasharray: 90 250; transition: none; }
@keyframes upload-ring-spin { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
body.upload-overlay-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .upload-overlay.is-indeterminate .upload-ring { animation-duration: 2s; }
  .upload-ring-fg { transition: none; }
}

.operator-table-wrap {
  overflow-x: auto;
  margin-top: 16px;
}

.operator-banner-pdf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin: 10px 0 14px;
}
.operator-banner-pdf .microcopy { margin: 0; }

.operator-orders-toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.operator-orders-search {
  flex: 1 1 240px;
  min-width: 180px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.95rem;
}

.operator-orders-pager {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 14px;
}

.operator-orders-pageinfo {
  color: var(--muted);
  font-size: 0.85rem;
}

.design-queue-counts {
  font-size: 0.88rem;
  margin: 8px 0 6px;
}

.design-stage {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: #ece7dc;
  color: #4a463d;
  white-space: nowrap;
}

.design-stage.stage-do_zaprojektowania { background: #faeccf; color: #8a5a12; font-weight: 700; }
.design-stage.stage-poprawki { background: #f6dcdc; color: #9c1f25; }
.design-stage.stage-czeka_na_akceptacje_klienta { background: #e7eef6; color: #1f4f7a; }
.design-stage.stage-zaakceptowany { background: #d8f0df; color: #1f7a3d; }

.design-paid-yes { color: #1f7a3d; font-weight: 600; }
.design-paid-no { color: #9c1f25; font-weight: 600; }

.design-brief-panel {
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fffdf8;
  display: grid;
  gap: 8px;
}

.design-brief-head { margin: 0 0 4px; font-size: 0.92rem; }

.design-brief-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  font-size: 0.88rem;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}

.design-brief-row > span {
  color: var(--muted);
  text-transform: capitalize;
}

.design-notif {
  margin-top: 8px;
  padding: 12px 14px;
  border: 1px solid #cfe0ef;
  border-radius: 12px;
  background: #f2f8fc;
}

.design-notif-head { margin: 0 0 6px; font-size: 0.86rem; }
.design-notif-subject { margin: 0 0 6px; font-size: 0.84rem; color: var(--muted); }
.design-notif-text {
  white-space: pre-wrap;
  font-size: 0.84rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  margin: 0 0 8px;
  max-height: 220px;
  overflow: auto;
}

.field-hint {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.operator-upload-files {
  margin: 16px 0;
  display: grid;
  gap: 14px;
}

.upfiles-readiness {
  margin: 0;
  font-size: 0.9rem;
}

.upfiles-readiness.is-ready strong { color: #1f7a3d; }
.upfiles-readiness.is-blocked strong { color: #b4232a; }

.upfiles-empty,
.upfiles-nopreview {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.upfiles-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 16px;
  background: #fffdf8;
}

.upfiles-card[open] {
  padding-bottom: 14px;
}

summary.upfiles-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
  padding: 12px 0;
}

summary.upfiles-card-head::-webkit-details-marker { display: none; }
summary.upfiles-card-head::before {
  content: '▸';
  color: var(--muted);
  font-size: 0.8rem;
  margin-right: 2px;
}
.upfiles-card[open] summary.upfiles-card-head::before { content: '▾'; }

.upfiles-card-title {
  flex: 1;
  font-weight: 600;
}

.upfiles-card-body {
  padding-top: 4px;
}

.upfiles-regen-btn,
.upfiles-show-more {
  font-size: 0.82rem;
  padding: 6px 12px;
}

.upfiles-show-more {
  margin-top: 4px;
}

.upfiles-more {
  display: grid;
  gap: 14px;
}

.upfiles-status {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 999px;
  background: #ece7dc;
  color: #4a463d;
  white-space: nowrap;
}

.upfiles-status.status-preflight_failed,
.upfiles-status.status-rejected_by_operator,
.upfiles-status.status-rejected_by_chroma { background: #f6dcdc; color: #9c1f25; }
.upfiles-status.status-preflight_passed,
.upfiles-status.status-accepted_by_customer,
.upfiles-status.status-operator_review_accepted,
.upfiles-status.status-accepted_in_chroma { background: #d8f0df; color: #1f7a3d; }
.upfiles-status.status-preflight_warning,
.upfiles-status.status-operator_review_required { background: #faeccf; color: #8a5a12; }

.upfiles-name {
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.upfiles-dims {
  margin: 8px 0 0;
  font-size: 0.86rem;
  padding: 6px 10px;
  border-radius: 8px;
  background: #f1ede4;
}

.upfiles-dims.is-mismatch {
  background: #faeccf;
}

.upfiles-dims-flag {
  color: #9c1f25;
  font-weight: 600;
}

.upfiles-dims-ok {
  color: #1f7a3d;
  font-weight: 600;
}

.upfiles-sev {
  font-size: 0.68rem;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
}
.upfiles-sev.sev-error { color: #9c1f25; border-color: #e5b5b5; }
.upfiles-sev.sev-warning { color: #8a5a12; border-color: #e8cf9a; }
.upfiles-sev.sev-info { color: #4a463d; }

.upfiles-thumbs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.upfiles-thumbs img {
  width: 120px;
  height: 160px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.upfiles-issues {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: #8a5a12;
}

.upfiles-issues li { margin-bottom: 4px; }

.upfiles-link {
  margin: 10px 0 0;
  font-size: 0.86rem;
  word-break: break-all;
}

.upfiles-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.upfiles-actions .secondary-button {
  font-size: 0.85rem;
  padding: 8px 14px;
}

.upfiles-override-btn {
  border-color: #e0b15a;
  color: #8a5a12;
}

.upfiles-scale-btn {
  border-color: #5a8ac0;
  color: #1f4f7a;
}

.upfiles-transform {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px dashed #b9c6d6;
  border-radius: 12px;
  background: #f6f9fc;
}

.upfiles-transform-title {
  margin: 0 0 8px;
  font-size: 0.84rem;
  line-height: 1.45;
}

.upfiles-transform label.checkbox-inline {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 9px;
  font-size: 0.88rem;
  margin: 8px 0;
  text-align: left;
  cursor: pointer;
}

.upfiles-transform label.checkbox-inline input[type="checkbox"] {
  order: -1;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.upfiles-proposal {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.upfiles-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: #1f4f7a;
}

.upfiles-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #c4d4e6;
  border-top-color: #1f4f7a;
  border-radius: 50%;
  display: inline-block;
  animation: upfiles-spin 0.8s linear infinite;
}

@keyframes upfiles-spin { to { transform: rotate(360deg); } }

.upfiles-proposal-head {
  margin: 0 0 10px;
  font-size: 0.86rem;
}

.upfiles-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.upfiles-compare-label {
  margin: 0 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.upfiles-proposal-pf {
  margin: 12px 0 4px;
  font-size: 0.86rem;
}

.upfiles-proposal-ok {
  margin: 4px 0 0;
  font-size: 0.84rem;
  color: #1f7a3d;
}

.upfiles-preview-caption {
  margin: 0 0 6px;
  font-size: 0.82rem;
  color: var(--muted);
}

.upfiles-actions-hint {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}

.news-layout {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
  gap: clamp(18px, 3vw, 28px);
  align-items: start;
  width: 100%;
  max-width: none;
}

.news-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  width: 100%;
  max-width: none;
}

.news-sidebar {
  position: sticky;
  top: 96px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(18px, 2.3vw, 24px);
  background: #fffdf8;
  box-shadow: var(--shadow-soft);
}

.news-sidebar h2 {
  margin: 0 0 14px;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.news-archive-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.news-archive-list a {
  display: grid;
  gap: 4px;
  padding: 12px 0;
  border-top: 1px solid rgba(22, 18, 14, 0.08);
  color: var(--ink);
  text-decoration: none;
}

.news-archive-list a:hover span {
  color: var(--brand-dark);
}

.news-archive-list span {
  font-weight: 750;
  line-height: 1.25;
}

.news-archive-list time {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.news-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(22px, 3vw, 34px);
  background: #fffdf8;
}

.news-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.news-tag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
}

.news-date {
  color: var(--muted);
  font-size: 0.82rem;
}

.news-title {
  margin: 0 0 8px;
  font-size: 1.3rem;
}

.news-figure {
  margin: 14px 0 16px;
}

.news-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.news-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.news-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 16px);
  margin: 18px 0 16px;
}

.news-gallery-item {
  margin: 0;
}

.news-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.news-gallery-item figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

@media (max-width: 760px) {
  .news-gallery {
    grid-template-columns: 1fr;
  }
}

.news-excerpt {
  font-weight: 600;
  margin: 0 0 10px;
}

.news-body p {
  margin: 0 0 10px;
}

.news-body a {
  color: var(--brand-dark);
  font-weight: 650;
}

.news-social {
  margin: 12px 0 0;
}

.news-empty {
  color: var(--muted);
}

.operator-orders-table {
  width: 100%;
  min-width: 860px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.operator-orders-table th,
.operator-orders-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.operator-orders-table th {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.operator-orders-table small {
  color: var(--muted);
}

.operator-json-preview {
  max-height: 520px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #211f1c;
  color: #fff7e8;
  white-space: pre-wrap;
}

.primary-cta {
  display: inline-block;
  margin: 20px 0 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  text-decoration: none;
}

.secondary-link {
  display: inline-block;
  color: var(--brand-dark);
  font-weight: 700;
  text-decoration: none;
}

.product-layout:not(.banner-product-layout) {
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
}

.product-layout.banner-product-layout {
  grid-template-columns: minmax(0, 1fr);
}

.upload-intake-page .utility-hero {
  max-width: none;
}

/* ===== /pliki-do-druku/ — 3-zone upload workflow (architect redesign) ===== */
.upload-intake-hero { max-width: none; }

.upload-workflow { display: grid; gap: 18px; }

/* Zone 1 — order strip (full width, always visible) */
.upload-order-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: end;
  gap: 10px 16px;
  padding: 18px 20px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.upload-order-field { display: grid; gap: 6px; font-weight: 600; margin: 0; }
.upload-order-load { white-space: nowrap; }
.upload-order-status { grid-column: 1 / -1; margin-top: 4px; }

/* Zone 2 — two-column top grid (upload | readiness), appears after status load */
.upload-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: start;
}
.upload-top-grid[hidden] { display: none; }

.upload-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.upload-card-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; margin-bottom: 16px;
}
.upload-card-head > div { min-width: 0; }
.upload-card-head h2 { margin: 4px 0 6px; font-size: 1.45rem; line-height: 1.1; }
.upload-card-head .microcopy { margin: 0; }
.upload-step {
  flex: none; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.02em;
  color: #fff; background: var(--ink); border-radius: 999px; padding: 6px 11px; white-space: nowrap;
}

/* compact active slot / part picker (JS-injected into data-upload-contract-picker) */
.upload-contract-picker { margin-bottom: 14px; }
.upload-contract-picker > .microcopy { margin: 0; }

/* dropzone wraps the file input: whole area clickable + drag-drop target */
.upload-dropzone {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 18px;
  margin: 0 0 14px;
  border: 1.5px dashed #d9c7b6;
  border-radius: var(--radius-md);
  background: linear-gradient(180deg, #fff, var(--bg-warm));
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.upload-dropzone:hover, .upload-dropzone:focus-within {
  border-color: var(--brand);
  background: linear-gradient(180deg, #fff, var(--panel-strong));
}
.upload-dropzone input[type="file"] {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; padding: 0; min-height: 0; border: 0; opacity: 0; cursor: pointer;
}
.upload-dropzone-icon {
  width: 52px; height: 52px; border-radius: var(--radius-md);
  display: grid; place-items: center; font-size: 1.5rem; font-weight: 700;
  background: var(--panel-strong); color: var(--brand-dark);
}
.upload-dropzone-text strong { display: block; font-size: 1.05rem; }
.upload-dropzone-text .microcopy { margin: 2px 0 0; }

.upload-action-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }

/* rarely-used options tucked into an accordion so they don't compete with the main action */
.upload-secondary-options { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.upload-secondary-options > summary {
  cursor: pointer; font-weight: 700; color: var(--brand-dark); list-style: none;
}
.upload-secondary-options > summary::-webkit-details-marker { display: none; }
.upload-secondary-options > summary::after { content: "Rozwiń"; float: right; color: var(--muted); font-weight: 600; font-size: 0.85rem; }
.upload-secondary-options[open] > summary::after { content: "Zwiń"; }
.upload-secondary-body { display: grid; gap: 12px; margin-top: 14px; }
.upload-secondary-body label { display: grid; gap: 6px; font-weight: 600; }

/* right status card — sticky readiness panel */
.upload-status-card { position: sticky; top: 16px; }
.upload-status-card h2 { margin: 4px 0 0; font-size: 1.45rem; line-height: 1.1; }
.upload-status-badge {
  flex: none; align-self: flex-start;
  background: var(--panel-strong); color: var(--brand-dark);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; font-size: 0.78rem; font-weight: 700; white-space: nowrap;
}
.upload-readiness-list { margin: 4px 0 12px; }
.upload-status-hint { margin: 0; }

/* Zone 3 — full-width preview + acceptance, below the columns */
.upload-proof-stage {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: 22px;
}
.upload-proof-stage[hidden] { display: none; }
.upload-proof-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px; flex-wrap: wrap;
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 16px;
}
.upload-proof-head > div { min-width: 0; }
.upload-proof-head h2 { margin: 4px 0 6px; font-size: 1.55rem; line-height: 1.08; }
.upload-proof-head .microcopy { margin: 0; }
.upload-proof-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.upload-proof-body { margin: 0; }
/* the proof viewer now spans the page width — widen its asset grid */
.upload-proof-body .preview-asset-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

@media (max-width: 900px) {
  .upload-order-strip { grid-template-columns: 1fr; }
  .upload-order-load { width: 100%; }
  .upload-top-grid { grid-template-columns: 1fr; }
  .upload-status-card { position: static; order: -1; }
  .upload-proof-head { flex-direction: column; }
  .upload-proof-head-actions { width: 100%; }
  .upload-proof-head-actions .button-cta { width: 100%; }
}

.config-group {
  border: 0;
  margin: 0 0 22px;
  padding: 0;
}

.config-group legend {
  font-weight: 700;
  margin-bottom: 12px;
}

.group-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.group-header span,
.breadcrumbs {
  color: var(--muted);
}

.option-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.quote-form select,
.quote-form input:not([type="radio"]):not([type="checkbox"]),
.quote-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.banner-product-layout .quote-form select,
.banner-product-layout .quote-form input:not([type="radio"]):not([type="checkbox"]):not([type="range"]):not([type="file"]) {
  min-height: 22px !important;
  height: 22px !important;
  padding: 1px 7px !important;
  border-radius: 7px;
  font-size: 0.68rem !important;
  line-height: 1.05 !important;
}

.banner-product-layout .quote-form .banner-custom-text-field textarea {
  min-height: 26px !important;
  padding: 3px 8px !important;
  border-radius: 7px;
  font-size: 0.72rem !important;
  line-height: 1.15 !important;
}

.banner-product-layout .quote-form input[type="range"] {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.banner-product-layout .banner-compact-field > span {
  font-size: 0.58rem;
  line-height: 1;
}

.banner-product-layout .banner-range-control--compact,
.banner-product-layout .banner-ratio-control--compact {
  min-height: 20px;
  padding-block: 1px;
  width: 100%;
  max-width: 100%;
}

.banner-product-layout .banner-range-control--compact > span strong,
.banner-product-layout .banner-ratio-control--compact .banner-ratio-labels strong,
.banner-product-layout .banner-range-control--compact output,
.banner-product-layout .banner-ratio-control--compact .banner-ratio-labels output {
  font-size: 0.62rem;
  line-height: 1;
  white-space: nowrap;
}

.banner-product-layout .banner-range-control--compact input[type="range"] {
  width: 100%;
  height: 12px;
  min-height: 12px;
}

.banner-product-layout .banner-ratio-control--compact input[type="range"] {
  width: 100%;
  height: 12px;
  min-height: 12px;
}

.quote-form label:not(.radio-row):not(.checkbox-row):not(.colour-swatch-option):not(.banner-mode-tab):not(.banner-pattern-button):not(.banner-color-swatch):not(.banner-icon-button):not(.banner-compact-field):not(.banner-range-control):not(.banner-ratio-control):not(.banner-icon-size-control) {
  display: grid;
  gap: 8px;
  color: var(--muted);
  line-height: 1.4;
}

.quote-form label:not(.radio-row):not(.checkbox-row):not(.colour-swatch-option):not(.banner-mode-tab):not(.banner-pattern-button):not(.banner-color-swatch):not(.banner-icon-button):not(.banner-compact-field):not(.banner-range-control):not(.banner-ratio-control):not(.banner-icon-size-control) + label:not(.radio-row):not(.checkbox-row):not(.colour-swatch-option):not(.banner-mode-tab):not(.banner-pattern-button):not(.banner-color-swatch):not(.banner-icon-button):not(.banner-compact-field):not(.banner-range-control):not(.banner-ratio-control):not(.banner-icon-size-control),
.quote-form label + select,
.quote-form select + label {
  margin-top: 14px;
}

.quote-form textarea {
  resize: vertical;
}

.quote-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.button-cta,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.button-cta:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.secondary-button {
  display: inline-flex;
  padding: 11px 16px;
  border-radius: 999px;
  background: #fffefa;
  color: var(--accent);
  border: 1px solid rgba(9, 64, 82, 0.18);
  text-decoration: none;
}

.quote-result {
  min-height: 28px;
  margin-top: 12px;
  color: var(--muted);
}

.quote-result[data-state="ready"] {
  color: var(--accent);
  font-weight: 700;
}

.quote-result[data-state="error"] {
  color: var(--brand-dark);
  font-weight: 700;
}

.preview-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.preview-viewer {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.78);
}

.preview-viewer h3,
.preview-viewer p {
  margin-bottom: 0;
}

.preview-viewer-main {
  display: grid;
  justify-items: center;
  padding: 14px;
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(0, 146, 209, 0.08), rgba(255, 237, 0, 0.05)),
    #fff;
}

.preview-viewer-page-label {
  color: var(--accent);
  font-weight: 700;
}

.preview-mode-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.preview-mode-button {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.preview-mode-button.is-active {
  border-color: transparent;
  background: var(--brand-dark);
  color: #fff;
}

.preview-asset-card {
  display: grid;
  justify-items: center;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--muted);
  font-weight: 500;
}

.preview-asset-frame {
  position: relative;
  display: grid;
  overflow: hidden;
  margin-bottom: 10px;
  border: 1px solid rgba(32, 75, 87, 0.12);
  border-radius: 0;
  background: #f8f4ef;
}

.preview-asset-card .preview-asset-frame {
  width: min(100%, 220px);
  cursor: pointer;
}

.preview-asset-frame-technical {
  align-items: stretch;
  justify-items: stretch;
}

.preview-asset-frame-trimmed img {
  position: absolute;
  max-width: none;
  max-height: none;
  object-fit: fill;
}

.preview-trimmed-image {
  display: block;
}

.preview-asset-card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}

.preview-asset-frame-technical .preview-technical-image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: fill;
}

.preview-asset-frame-main {
  width: min(100%, 680px, calc(72vh * var(--preview-aspect, 1)));
  cursor: default;
}

.preview-asset-frame-main .preview-trimmed-image,
.preview-asset-frame-main img:not(.preview-technical-image) {
  max-height: none;
}

.preview-overlay {
  position: absolute;
  pointer-events: none;
  box-sizing: border-box;
}

.preview-overlay-bleed {
  border: 2px dashed rgba(0, 146, 209, 0.88);
}

.preview-overlay-trim {
  border: 2px solid rgba(230, 0, 18, 0.88);
}

.preview-asset-card figcaption {
  display: grid;
  gap: 4px;
}

.preview-asset-card figcaption span {
  font-size: 0.78rem;
  color: var(--muted);
}

.preview-page-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.upload-contract-picker {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.62);
}

.upload-contract-picker .config-group {
  padding: 0;
  border: 0;
  background: transparent;
}

.upload-slot-summary {
  display: grid;
  gap: 8px;
}

.upload-slot-summary p {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.upload-slot-summary p strong {
  font-weight: 800;
}

.upload-slot-summary p span {
  color: var(--muted);
  font-size: 0.82rem;
}

.upload-slot-summary p.is-active {
  border-color: transparent;
  background: rgba(255, 237, 0, 0.26);
  color: var(--brand-dark);
  font-weight: 800;
}

/* Preflight result: readable issue list for the customer (replaces the run-on string). */
.pf-head { margin: 0 0 8px; font-weight: 600; line-height: 1.45; }
.preflight-issues { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.pf-issue { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line, #e7e0d5); border-radius: 12px; background: #fffefa; }
.pf-title { font-weight: 700; color: var(--ink, #17130f); }
.pf-instr { color: #5a5550; font-size: 0.95em; line-height: 1.45; }
.pf-mode { justify-self: start; font-size: 0.78em; font-weight: 600; color: #8a5a12; background: #fff3df; border: 1px solid #f0d9b0; border-radius: 999px; padding: 2px 10px; margin-top: 2px; }

.upload-proof-collection {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.upload-proof-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

.upload-proof-card .preview-viewer {
  margin-top: 0;
}

.inpost-point-selector[data-required="false"],
.pickup-confirmation[data-required="false"],
.microcopy[data-visible="false"] {
  display: none;
}

.inpost-point-results {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}

.inpost-geowidget-shell {
  display: grid;
  gap: 0.7rem;
  padding: 0.9rem;
  border: 1px solid rgba(10, 31, 68, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.inpost-geowidget-frame {
  min-height: 520px;
  overflow: hidden;
  border: 1px solid rgba(10, 31, 68, 0.12);
  border-radius: 16px;
  background: #f7f9fc;
}

.inpost-geowidget-frame[hidden] {
  display: none;
}

.inpost-geowidget-frame inpost-geowidget {
  display: block;
  min-height: 520px;
}

.inpost-point-option {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.inpost-point-option:hover,
.inpost-point-option:focus {
  border-color: var(--accent);
  outline: none;
}

.inpost-point-option span,
.inpost-point-option small {
  color: var(--muted);
}

.inpost-map-placeholder {
  display: grid;
  gap: 6px;
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px dashed var(--accent);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(32, 75, 87, 0.08), rgba(177, 77, 34, 0.05)),
    #fff;
  color: var(--muted);
}

.inpost-map-placeholder strong,
.inpost-map-placeholder a {
  color: var(--accent);
}

.field-shell {
  padding: 14px 16px;
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.content-section,
.faq-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

/* FAQ / Poradnik: intro na pełną szerokość u góry, kafle 4-w-rzędzie pod spodem */
.faq-teaser-section {
  grid-template-columns: 1fr;
}
.faq-teaser-section .section-heading {
  max-width: none;
}
.faq-teaser-section .faq-list {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1040px) {
  .faq-teaser-section .faq-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .faq-teaser-section .faq-list { grid-template-columns: 1fr; }
}

/* --- Operator panel: smaller headings + tidy horizontal cards --- */
.operator-page .utility-hero {
  margin: 24px 0 8px;
  gap: 10px;
}

.operator-page .utility-hero h1 {
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.operator-page .utility-hero .hero-text {
  font-size: 0.85rem;
  max-width: 78ch;
}

/* Sekcje operatora: jedna pod drugą, pełna szerokość (nie kolumny). */
.operator-page .content-section {
  grid-template-columns: 1fr;
  gap: 14px;
  margin: 16px 0;
  align-items: stretch;
}

.operator-page .content-card {
  padding: 16px 20px;
  border-color: rgba(177, 77, 34, 0.22);
}

.operator-page .content-card h2 {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  line-height: 1.2;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.operator-page .content-card > p,
.operator-page .content-card .microcopy {
  font-size: 0.85rem;
}

.operator-page .content-card .eyebrow {
  font-size: 0.62rem;
  margin-bottom: 6px;
}

/* Zwijane sekcje operatora (<details>). */
.operator-page details.content-card > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  cursor: pointer;
  list-style: none;
  padding: 4px 0;
}
.operator-page details.content-card > summary::-webkit-details-marker { display: none; }
.operator-page details.content-card > summary::before {
  content: '▸';
  color: var(--muted);
  font-size: 0.8rem;
}
.operator-page details.content-card[open] > summary::before { content: '▾'; }
.operator-page details.content-card > summary .eyebrow { margin: 0; }
.operator-page details.content-card > summary h2 { margin: 0; }
.operator-page details.content-card[open] > summary { margin-bottom: 12px; }

.utility-hero {
  margin: 40px 0 24px;
  max-width: none;
}

.breadcrumbs {
  margin-top: 28px;
  display: flex;
  gap: 10px;
  font-size: 0.95rem;
}

@media (max-width: 900px) {
  .hero,
  .product-hero,
  .product-layout,
  .site-footer,
  .process-grid,
  .support-grid-section,
  .bestseller-grid {
    grid-template-columns: 1fr;
  }

  /* The desktop rule .product-layout:not(.banner-product-layout) (specificity 0,2,0) outranks the
     bare .product-layout above, so it kept its two-column track on mobile and squeezed the cart
     items into a ~150px column (text wrapped one letter per line). Match specificity to collapse. */
  .product-layout:not(.banner-product-layout) {
    grid-template-columns: 1fr;
  }

  .news-placeholder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-layout {
    grid-template-columns: 1fr;
  }

  .news-sidebar {
    position: static;
  }

  .hero {
    min-height: 0;
  }

  .hero-copy,
  .hero-panel,
  .gallery-card,
  .configurator-card,
  .pricing-panel,
  .content-card,
  .faq-item {
    padding: 22px;
  }

  .hero-proof-visual {
    min-height: 230px;
  }

  .hero-proof-visual img {
    min-height: 230px;
  }

  .hero-proof-card {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 13px;
  }

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

  .pricing-panel {
    position: static;
  }

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

  .bestseller-param-list li {
    align-items: flex-start;
    flex-direction: column;
  }

  .design-service-grid {
    grid-template-columns: 1fr;
  }

  .design-section-heading {
    min-height: auto;
  }

  .chroma-dictionary-section {
    grid-template-columns: 1fr;
  }

  .product-page {
    padding-bottom: 86px;
  }

  .mobile-product-bar {
    position: fixed;
    z-index: 20;
    left: 12px;
    right: 12px;
    bottom: 12px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid rgba(177, 77, 34, 0.18);
    border-radius: 999px;
    background: rgba(255, 253, 249, 0.96);
    box-shadow: var(--shadow);
  }

  .mobile-product-bar span {
    min-width: 0;
    overflow: hidden;
    color: var(--accent);
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-product-bar a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-product-bar a[aria-disabled="true"] {
    opacity: 0.72;
    pointer-events: none;
  }

  /* External MastaChat injects inline fixed positioning. Keep it above the mobile quote bar. */
  .product-page > button[aria-label="Otwórz czat"],
  .product-page > button[aria-label="Open chat"] {
    bottom: 86px !important;
  }

  .product-page > iframe[title="Masta Chat"] {
    bottom: 146px !important;
    max-height: calc(100dvh - 174px) !important;
  }

  .design-example-links {
    grid-template-columns: 1fr;
  }

  .how-it-works-section .process-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    line-height: 1.02;
  }
}

@media (max-width: 767px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(9, 64, 82, 0.1);
    background: rgba(255, 253, 249, 0.94);
    backdrop-filter: blur(12px);
  }

  .brand {
    min-height: 46px;
    font-size: 1.14rem;
  }

  .brand-mark {
    width: 30px;
    height: 25px;
  }

  .site-nav {
    display: none;
  }

  .mobile-header-actions {
    display: inline-flex;
  }

  .flow-nav {
    display: none;
  }

  .breadcrumbs {
    margin-top: 16px;
  }

  .hero {
    margin-top: 18px;
  }

  .hero-copy {
    order: 1;
  }

  .hero-visual-panel {
    order: 2;
  }

  .hero-actions {
    display: grid;
    gap: 10px;
    margin: 20px 0 18px;
  }

  .hero-actions .primary-cta,
  .hero-actions .secondary-button {
    width: 100%;
    min-height: 50px;
  }

  .trust-chip-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .trust-chip-list li {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 9px 10px;
    text-align: center;
    line-height: 1.2;
  }
}

@media (max-width: 620px) {
  .benefit-tile-list {
    grid-template-columns: 1fr;
  }

  .design-colour-picker {
    grid-template-columns: repeat(6, 32px);
    gap: 7px;
  }

  .design-colour-picker .colour-swatch-option {
    min-height: 30px;
    padding: 2px;
    border-radius: 11px;
  }

  .design-colour-picker .colour-swatch {
    height: 24px;
    min-height: 24px;
    border-radius: 8px;
  }

  .design-colour-picker .colour-swatch-option:has(input:checked)::after {
    top: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    font-size: 12px;
  }

  .news-placeholder-grid {
    grid-template-columns: 1fr;
  }

  .faq-list {
    grid-template-columns: 1fr;
  }

  .contact-help-wide ul {
    grid-template-columns: 1fr;
  }

  .design-service-actions {
    display: grid;
    justify-content: stretch;
  }

  .design-submit-button {
    width: 100%;
  }
}
