/* Poligrafiajl — sitepackage styles.
   Palette drawn from the homepage heritage banner (a print-workshop painting):
   warm cream paper, ochre/mustard, deep terracotta, warm charcoal ink. */

:root {
  --color-bg: #faf6ee;
  --color-bg-card: #ffffff;
  --color-bg-soft: #f2ead9;
  --color-ink: #2b241d;
  --color-ink-soft: #5c5245;
  --color-muted: #83786a;
  --color-accent: #b8862a;
  --color-accent-deep: #8f6a1f;
  --color-terracotta: #a8442e;
  --color-border: #e6dac2;
  --font-serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1600px;
  --radius: 12px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.6;
}

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

a { color: var(--color-accent-deep); text-decoration: underline; text-decoration-color: var(--color-accent); text-decoration-thickness: 1.5px; }
a:hover { color: var(--color-terracotta); }

.wrap { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

h1, h2, h3 { font-family: var(--font-serif); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); }
p { margin: 0 0 1em; }

/* ---- Header ---- */
.site { position: relative; }
/* .full-bleed uses 100vw, which includes the vertical scrollbar — without this the page is a few px
   wider than the window and shows a horizontal scrollbar. `clip` (unlike `hidden`) doesn't create a
   scroll container, so the sticky header keeps working. */
.site { overflow-x: clip; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--color-bg); border-bottom: 1px solid var(--color-border); transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease; }
/* Scrolled: translucent, blurred, compact (logo + padding shrink). Toggled by nav.js with
   hysteresis — see the comment there for why the thresholds differ. */
.site-header.is-scrolled { background: rgba(250, 246, 238, .82); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); box-shadow: 0 6px 20px -12px rgba(43, 36, 29, .35); }

/* Homepage banner (hero-*.webp, made from _materialy/Baner-hero_poligrafiajl.psd): 3840 × 1698 px, where
   the top 154 px are the menu zone — transparent except the hands and the cap that reach into the menu.
   The image therefore starts 154/3840 of its width (4.0104vw) above the menu's bottom rule, and its own
   alpha channel is the cut-out: no traced clip path, nothing to misalign.
   While the page rests at the top (.hero--at-top, set by nav.js), the image is lifted above the sticky
   menu so those parts show over it; the instant the page scrolls the menu is on top again. The image
   never takes clicks — its transparent top covers the menu. */
.hero__image--cap-peek { margin-top: -4.0104vw; }
.hero--at-top .hero__image--cap-peek { z-index: 55; }
.hero__image--cap-peek, .hero__image--cap-peek img { pointer-events: none; }
/* Parallax: the wall/window layer (3920 × 1544 = 40 px spare on each side) sits under the figures from
   the menu rule down, and drifts ±0.6% left/right (≈ ±12 px at 1920; the spare margin allows ±1%); the figures (and the cap) stay put, so the cap in
   the menu and the logo's overhang stay pixel-exact. */
.hero__fg { position: relative; z-index: 1; }
.hero__bg { position: absolute; left: 0; right: 0; top: 9.0695%; bottom: 0; overflow: hidden; }
.hero__image .hero__bg img { position: absolute; top: 0; left: -1.0417%; width: 102.0833%; height: 100%; max-width: none;
  animation: hero-drift 10s ease-in-out infinite alternate; will-change: transform; }
@keyframes hero-drift { from { transform: translateX(-0.6%); } to { transform: translateX(0.6%); } }
@media (prefers-reduced-motion: reduce) { .hero__image .hero__bg img { animation: none; } }

.site-header__inner { max-width: var(--max-width); margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: padding .25s ease; }
/* Logo = two absolutely placed vectors inside a box that reserves the layout space.
   Geometry measured off the approved mockup (at 1920 px: emblem 1.4x the lettering's scale,
   top aligned with the menu's padding, 8.7 px hanging below the menu rule, 25.6 px left of the
   content edge) and, for the compact state, off the previous logo at 34 px. */
.site-logo { position: relative; z-index: 57; flex: 0 0 auto; display: block; width: 149.1px; height: 48px; text-decoration: none;
  transition: width .3s ease, height .3s ease, margin .3s ease; }
.site-logo img { position: absolute; display: block; max-width: none; transition: left .3s ease, top .3s ease, width .3s ease, height .3s ease; }
/* Default (phones/tablets, and the base for the compact state): the previous 48 px logo. */
.site-logo__znak { left: 0.64px; top: 6.4px; width: 38.64px; height: 37.12px; }
.site-logo__napis { left: 44.16px; top: 12.83px; width: 104.96px; height: 24.27px; }
@media (min-width: 900px) {
  /* Top of the page: the large version from the mockup. */
  .site-header:not(.is-scrolled) .site-logo { width: 216.1px; margin-left: clamp(0px, calc(11.6px - (100vw - 1600px) / 2), 11.6px); }
  .site-header:not(.is-scrolled) .site-logo__znak { left: -25.6px; top: 0; width: 74.6px; height: 71.7px; filter: drop-shadow(0 3px 6px rgba(43, 36, 29, .22)); }
  .site-header:not(.is-scrolled) .site-logo__napis { left: 56.5px; top: 15.4px; width: 159.6px; height: 36.9px; }
}
/* Scrolled: the compact logo, as before (34 px). */
.site-header.is-scrolled .site-logo { width: 105.63px; height: 34px; }
.site-header.is-scrolled .site-logo__znak { left: 0.45px; top: 4.53px; width: 27.37px; height: 26.29px; }
.site-header.is-scrolled .site-logo__napis { left: 31.28px; top: 8.09px; width: 74.35px; height: 17.19px; }
/* Homepage at rest: the photo is lifted above the (sticky, so always self-stacking) menu for the cap
   peek, which would hide the part of the emblem hanging below the menu rule. nav.js lays an exact copy
   of the emblem over the photo, clipped to that hanging part (+3 px overlap, so there is no seam and
   no doubled shadow), only while the page rests at the top. */
.site-logo__overhang { position: absolute; z-index: 56; pointer-events: none; max-width: none; display: none; filter: drop-shadow(0 3px 6px rgba(43, 36, 29, .22)); }
.hero--at-top .site-logo__overhang.is-placed { display: block; }
.site-header.is-scrolled .site-header__inner { padding-top: 6px; padding-bottom: 6px; }
.main-nav a { transition: padding .25s ease, background-color .15s ease, color .15s ease; }
.site-header.is-scrolled .main-nav a { padding-top: 6px; padding-bottom: 6px; }
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header__inner, .site-logo, .site-logo img, .main-nav a { transition: none; }
}

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 36px; border: 1px solid var(--color-border); border-radius: 6px; background: var(--color-bg); cursor: pointer; padding: 0; }
.nav-toggle span { display: block; height: 2px; background: var(--color-ink); margin: 0 8px; }

.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 14px; border-radius: 999px; text-decoration: none; font-weight: 600; color: var(--color-ink-soft); }
.main-nav a:hover, .main-nav li.is-active a { background: var(--color-accent); color: #fff; }

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .main-nav { position: absolute; top: 100%; left: 0; right: 0; background: var(--color-bg); border-bottom: 1px solid var(--color-border); max-height: 0; overflow: hidden; transition: max-height .2s ease; }
  .main-nav.is-open { max-height: 70vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; padding: 10px 20px 16px; gap: 2px; }
  .main-nav a { padding: 12px 10px; }
  .site-header.is-scrolled .main-nav a { padding-top: 12px; padding-bottom: 12px; }
}

/* ---- Full-bleed helper: break out of any contained/max-width parent ---- */
.full-bleed { width: 100vw; margin-left: 50%; transform: translateX(-50%); max-width: 100vw; }

/* ---- Hero (home page only) ---- */
.hero { position: relative; padding: 0 0 32px; }
.hero__image.full-bleed { margin-bottom: 32px; position: relative; }
.hero__image img { width: 100%; display: block; }
.hero__body { max-width: 720px; margin: 0 auto; text-align: center; }
.hero__body p { color: var(--color-ink-soft); font-size: 1.1rem; }
.hero__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }

.btn { display: inline-block; padding: 12px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.btn-primary { background: var(--color-terracotta); color: #fff; }
.btn-primary:hover { background: var(--color-accent-deep); color: #fff; }
.btn-ghost { border: 1.5px solid var(--color-ink); color: var(--color-ink); text-decoration: none; }
.btn-ghost:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); }

/* ---- Standalone Header content element ---- */
.ce-headline-left { text-align: left; }
.ce-headline-center { text-align: center; }
.ce-headline-right { text-align: right; }

.frame-type-header.has-bg { position: relative; overflow: hidden; width: 100vw; margin-left: 50%; transform: translateX(-50%); }
.frame-type-header.has-bg .wrap { position: relative; z-index: 1; padding: 30px 20px; }

/* Header bands: palette gradients that drift slowly, a soft glow, and a "podcień" (text shadow)
   under white headings. Five automatic variants (picked per element) + the explicit colours. */
.frame-type-header.has-bg-auto,
.frame-type-header.has-bg-accent,
.frame-type-header.has-bg-terracotta,
.frame-type-header.has-bg-ink {
  background-size: 220% 220%;
  animation: band-drift 22s ease-in-out infinite alternate;
}
.frame-type-header.has-grad-0, .frame-type-header.has-bg-terracotta { background-image: linear-gradient(120deg, #7c2d1d 0%, #a8442e 45%, #c9663f 100%); }
.frame-type-header.has-grad-1, .frame-type-header.has-bg-accent { background-image: linear-gradient(120deg, #7f5c17 0%, #b8862a 50%, #d6a84f 100%); }
.frame-type-header.has-grad-2, .frame-type-header.has-bg-ink { background-image: linear-gradient(120deg, #17120e 0%, #2b241d 45%, #54402c 100%); }
.frame-type-header.has-grad-3 { background-image: linear-gradient(120deg, #93391f 0%, #a8442e 30%, #b8862a 100%); }
.frame-type-header.has-grad-4 { background-image: linear-gradient(120deg, #221c17 0%, #5a2a1c 50%, #a8442e 100%); }
.frame-type-header.has-bg-cream { background-image: linear-gradient(120deg, #efe3cc 0%, #f7efe0 55%, #fbf6ec 100%); }
.frame-type-header.has-bg::before {
  content: ""; position: absolute; inset: -40% -10%; pointer-events: none;
  background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .22), transparent 55%),
              radial-gradient(ellipse at 85% 110%, rgba(0, 0, 0, .22), transparent 60%);
}
.frame-type-header.has-bg-cream::before { background: radial-gradient(ellipse at 20% 0%, rgba(255, 255, 255, .6), transparent 55%); }
.frame-type-header.has-bg:not(.has-bg-cream) :is(h1, h2, h3) {
  color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .3), 0 1px 2px rgba(0, 0, 0, .28);
}
/* A short accent rule grows under the heading when the band scrolls into view. */
.frame-type-header.has-bg :is(h1, h2, h3)::after {
  content: ""; display: block; width: 0; height: 3px; margin-top: 12px; border-radius: 3px;
  background: linear-gradient(90deg, #f0d49a, rgba(240, 212, 154, .2));
  transition: width .9s cubic-bezier(.16, .84, .44, 1) .25s;
}
.frame-type-header.has-bg .ce-headline-center::after { margin-left: auto; margin-right: auto; }
.frame-type-header.has-bg .ce-headline-right::after { margin-left: auto; }
.frame-type-header.has-bg-cream :is(h1, h2, h3)::after { background: linear-gradient(90deg, var(--color-terracotta), rgba(168, 68, 46, .15)); }
.frame-type-header.has-bg.is-inview :is(h1, h2, h3)::after { width: 64px; }
.has-js .frame-type-header.has-bg .wrap { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s cubic-bezier(.16, .84, .44, 1); }
.has-js .frame-type-header.has-bg.is-inview .wrap { opacity: 1; transform: none; }
@keyframes band-drift {
  from { background-position: 0% 40%; }
  to { background-position: 100% 60%; }
}
@media (prefers-reduced-motion: reduce) {
  .frame-type-header.has-bg { animation: none; }
  .has-js .frame-type-header.has-bg .wrap { opacity: 1; transform: none; transition: none; }
  .frame-type-header.has-bg :is(h1, h2, h3)::after { width: 64px; transition: none; }
}

/* ---- Breadcrumbs ---- */
.breadcrumbs { position: relative; }
.breadcrumbs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(230, 218, 194, .7) 20%, rgba(230, 218, 194, .7) 80%, transparent); }
.breadcrumbs .wrap { max-width: var(--max-width); margin: 0 auto; padding: 7px 20px; font-size: .78rem; letter-spacing: .01em; color: #a89b86; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; }
.breadcrumbs a { color: #a89b86; text-decoration: none; background-image: linear-gradient(currentColor, currentColor); background-repeat: no-repeat; background-position: 0 100%; background-size: 0% 1px; transition: color .2s ease, background-size .3s ease; }
.breadcrumbs a:hover { color: var(--color-terracotta); background-size: 100% 1px; }
.breadcrumbs [aria-current] { color: var(--color-ink-soft); font-weight: 500; }
.breadcrumbs__sep { font-size: 0; color: #cdbf9f; display: inline-flex; align-items: center; align-self: stretch; }
.breadcrumbs__sep::before { content: "›"; font-size: .95rem; line-height: 1; position: relative; top: -1px; }

/* ---- Offer subpage prev/next ---- */
.offer-pagination { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--color-border); }

/* ---- Main content ---- */
.site-main { min-height: 40vh; }
.page-content { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px 60px; }
.page-content > .frame-type-header.has-bg:first-child { margin-top: -40px; }

.frame { margin: 0 0 36px; }
.frame:last-child { margin-bottom: 0; }

/* Oferta subpage: header + description, large photo as content below */
.frame-type-textmedia .ce-bodytext { margin-bottom: 24px; }
.frame-type-textmedia .ce-gallery { margin-top: 8px; }
.frame-type-textmedia img { max-width: 100%; border-radius: var(--radius); border: 1px solid var(--color-border); box-shadow: 0 14px 32px -18px rgba(43, 36, 29, .45); }

/* Testimonial quote cards (layout=1) */
.frame-layout-1 { background: var(--color-bg-card); border-left: 4px solid var(--color-accent); border-radius: 0 var(--radius) var(--radius) 0; padding: 24px 28px; box-shadow: 0 4px 16px -12px rgba(43, 36, 29, .3); }
.frame-layout-1 h2 { font-size: 1.05rem; color: var(--color-terracotta); margin-bottom: .3em; }
.frame-layout-1 p { color: var(--color-ink-soft); font-style: italic; margin: 0; }

/* Oferta icon-card grid */
.offer-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 620px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .offer-grid { grid-template-columns: repeat(4, 1fr); } }
.offer-card a { display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 22px 12px; text-align: center; color: var(--color-ink); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.offer-card a:hover { transform: translateY(-3px); box-shadow: 0 10px 24px -14px rgba(43, 36, 29, .4); border-color: var(--color-accent); color: var(--color-ink); }
.offer-card__icon { width: 32px; height: 32px; color: var(--color-accent); }
.offer-card span { font-weight: 600; font-size: .92rem; }
.offer-card--preview a { padding: 0 0 18px; overflow: hidden; justify-content: flex-start; }
.offer-card__preview { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #f1ebe0; transition: transform .25s ease; }
.offer-card--preview a:hover .offer-card__preview { transform: scale(1.03); }
.offer-card--preview span { padding: 0 12px; }

/* ---- Contact form (EXT:form, prototype "standard") ---- */
.frame-type-form_formframework form { max-width: 560px; }
.form-element.mb-3 { margin-bottom: 20px; }
.form-label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--color-ink); }
.form-label .required { color: var(--color-terracotta); margin-left: 2px; }
.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-bg-card);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: 1rem;
}
.form-control:focus { outline: none; border-color: var(--color-accent); }
.form-control.is-invalid { border-color: var(--color-terracotta); }
textarea.form-control { min-height: 140px; resize: vertical; }
.invalid-feedback { display: block; margin-top: 6px; color: var(--color-terracotta); font-size: .88rem; }
.form-navigation.actions,
.actions { margin-top: 8px; }
.form-navigation button.btn-primary,
.form-navigation .btn-primary {
  background: var(--color-terracotta);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}
.form-navigation button.btn-primary:hover,
.form-navigation .btn-primary:hover { background: var(--color-accent-deep); }

/* ---- Container Items (b13/container): editor-placed layout containers ---- */
.container-cols { display: grid; grid-template-columns: 1fr; gap: 28px; margin-bottom: 36px; }
@media (min-width: 700px) {
  .container-cols-2 { grid-template-columns: 1fr 1fr; }
  .container-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.container-cols__col { min-width: 0; }
.container-cols__col > .frame:last-child { margin-bottom: 0; }

/* ---- Two-column page layout (Backend Layout "Dwie kolumny") ---- */
.two-col { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
@media (min-width: 800px) {
  .two-col { grid-template-columns: 1.3fr 1fr; }
}
.two-col__main, .two-col__side { min-width: 0; }
.two-col__side .frame:first-child { margin-top: 0; }

/* ---- Map embed (Kontakt page) ---- */
.map-embed {
  max-width: 600px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  overflow: hidden;
  box-shadow: 0 14px 32px -18px rgba(43, 36, 29, .45);
}
.map-embed iframe { display: block; }

/* ---- Order configurator (katalog zamówień, Faza 1) ---- */
.order-configurator { margin-top: 8px; }
@media (min-width: 700px) {
  .order-configurator__grid.container-cols-3 { grid-template-columns: 1fr 1fr 1fr; }
}

/* Compact single-line parameter rows: label + control side by side, not stacked. */
.order-picker__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--color-border); }
.order-picker__row[hidden] { display: none; }
.order-picker__custom-format { padding: 8px 0 10px; border-bottom: 1px solid var(--color-border); }
.order-picker__custom-format[hidden] { display: none; }
.order-picker__custom-inputs { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.order-picker__custom-inputs .form-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.order-picker__custom-inputs .form-control { width: 84px; padding: 7px 10px; text-align: center; }
.order-picker__custom-inputs span { color: var(--color-ink-soft); font-size: .88rem; }
.order-picker__custom-info { margin: 8px 0 0; font-size: .82rem; line-height: 1.45; color: var(--color-ink-soft); text-align: right; }
.order-picker__custom-info.is-error { color: var(--color-terracotta); font-weight: 600; }
.order-picker__row:last-child { border-bottom: none; }
.order-picker__row .form-label { flex: 0 0 auto; margin: 0; font-size: .88rem; color: var(--color-ink-soft); font-weight: 600; }
.order-picker__row .form-control { flex: 0 1 60%; max-width: 60%; padding: 6px 10px; font-size: .88rem; }
.order-picker__switcher .form-control { font-weight: 700; border-color: var(--color-accent); flex: 0 1 70%; max-width: 70%; }
.order-picker__switcher .form-control.is-auto-switched { animation: order-switch-flash 1.2s ease; }
@keyframes order-switch-flash { 0%, 40% { background: #f6e6c2; box-shadow: 0 0 0 3px rgba(184, 134, 42, .35); } 100% { background: var(--color-bg-card); box-shadow: none; } }
.order-picker__notice { margin: 6px 0 4px; padding: 8px 12px; border-radius: 8px; background: var(--color-bg-soft); color: var(--color-ink-soft); font-size: .84rem; line-height: 1.4; }
.order-picker__notice strong { color: var(--color-ink); }

.order-quantity .form-element.mb-3 { margin-bottom: 12px; }

.order-price-toggle { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.order-price-toggle button { border: 1.5px solid var(--color-border); background: var(--color-bg-card); border-radius: 999px; padding: 5px 14px; font-size: .82rem; font-weight: 600; color: var(--color-ink-soft); cursor: pointer; }
.order-price-toggle button.is-active { border-color: var(--color-accent); color: var(--color-ink); background: var(--color-bg-soft); }

.order-price-table-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.order-price-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.order-price-table th, .order-price-table td { padding: 7px 10px; text-align: center; border-bottom: 1px solid var(--color-border); white-space: nowrap; }
.order-price-table th { background: var(--color-bg-soft); font-weight: 700; color: var(--color-ink); }
.order-price-table th small { display: block; font-weight: 500; color: var(--color-muted); font-size: .72rem; }
.order-price-table td:first-child, .order-price-table th:first-child { text-align: left; font-weight: 600; }
.order-price-table__inactive { color: var(--color-muted); }
.order-price-table tr[data-role="price-table-row"].is-active td { background: var(--color-bg-soft); }
.order-price-table tr[data-role="price-table-row"].is-active td:nth-child(3) { background: var(--color-accent); color: #fff; font-weight: 700; border-radius: 6px; }

.order-price__unavailable { margin: 12px 0 0; color: var(--color-terracotta); background: var(--color-bg-card); border: 1px solid var(--color-terracotta); border-radius: var(--radius); padding: 14px 16px; font-weight: 600; text-align: center; }

.order-summary__card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px 20px; }
.order-summary__card h3 { margin-bottom: 14px; text-align: center; }
.order-summary__details { margin: 0 0 18px; }
.order-summary__details > div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--color-border); font-size: .9rem; }
.order-summary__details > div:last-child { border-bottom: none; }
/* The total a customer pays attention to: gross for private customers, net for companies. */
.order-summary__details > div.is-main { padding-top: 10px; font-size: 1.05rem; }
.order-summary__details dt { color: var(--color-muted); font-weight: 500; margin: 0; }
.order-summary__details dd { margin: 0; font-weight: 700; text-align: right; }
.order-summary__details > div.is-main dt { color: var(--color-ink); font-weight: 700; }
.order-summary__details > div.is-main dd { font-family: var(--font-serif); color: var(--color-terracotta); font-size: 1.2rem; }
.order-price-basis { margin: 0 0 8px; font-size: .85rem; color: var(--color-muted); }
.order-summary__card .btn { display: block; text-align: center; }

.order-empty-state { display: none; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px; color: var(--color-ink-soft); }
.order-form { max-width: 640px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--color-border); }
.order-form .form-element.mb-3 { margin-bottom: 12px; }
.order-form__title { font-size: 1.25rem; margin: 0 0 14px; }
.order-form textarea.form-control { min-height: 0; resize: vertical; }
/* Two columns on desktop / landscape tablets, like the registration form. */
@media (min-width: 900px) {
  .order-form { max-width: 980px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; align-items: start; }
  .order-form > input[type="hidden"] { display: none; }
  .order-form__title, .order-form__wide { grid-column: 1 / -1; }
}

[data-has-variants="0"] .order-configurator__grid,
[data-has-variants="0"] [data-role="order-form"] { display: none; }
[data-has-variants="0"] .order-empty-state { display: block; }

.order-login-required { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 24px; max-width: 640px; margin-top: 28px; text-align: center; }
.order-login-required__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.order-summary .order-login-required { max-width: none; margin-top: 16px; padding: 20px; font-size: .92rem; }

/* Business cards: "Mam gotowy plik" / "Zaprojektuję online" (BusinessCardEditor.js). In design mode the
   configurator keeps subtype, format, print sides, quantity and price; paper, grammage and finishing hide. */
.order-mode { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.order-mode__option { font: inherit; text-align: left; cursor: pointer; display: grid; gap: 2px; padding: 12px 16px; border-radius: var(--radius);
  border: 1.5px solid var(--color-border); background: var(--color-bg-card); color: var(--color-ink); }
.order-mode__option span { font-size: .88rem; color: var(--color-muted); }
.order-mode__option[aria-checked="true"] { border-color: var(--color-terracotta); box-shadow: 0 0 0 1px var(--color-terracotta) inset; }
.order-mode__option:hover { border-color: var(--color-accent); }
.order-mode__option:disabled { opacity: .5; cursor: not-allowed; }
@media (max-width: 560px) { .order-mode { grid-template-columns: 1fr; } }
.order-picker__label-design, .order-picker__custom-design, .order-form__design, .card-editor { display: none; }
.is-design-mode .order-picker__label-file { display: none; }
.is-design-mode .order-picker__label-design { display: inline; }
.is-design-mode .order-picker__custom-design { display: block; margin: 6px 0 0; font-size: .85rem; color: var(--color-ink-soft); }
.is-design-mode .order-picker__row[data-attr-group]:not([data-attr-group="format"]):not([data-attr-group="print"]),
.is-design-mode [data-role="print-file"] { display: none; }
.is-design-mode .order-form__design { display: block; }
.is-design-mode .card-editor { display: grid; }
.order-form__accept { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; line-height: 1.45; cursor: pointer; }
.order-form__accept input { margin-top: 4px; }
.order-form__design-error { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: #f8e1dc; color: #8f2f1d; }
.is-card-correction .order-configurator__grid, .is-card-correction #orderForm, .is-card-correction .order-empty-state,
.is-card-correction .order-login-required { display: none; }

.business-card-preview {
  position: relative;
  aspect-ratio: 85 / 55;
  max-width: 420px;
  background: linear-gradient(135deg, var(--color-ink) 0%, #3a3024 100%);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(43, 36, 29, .25);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-serif);
}
.business-card-preview__name { font-size: 1.3rem; font-weight: 700; }
.business-card-preview__jobtitle { display: block; margin-top: 2px; font-size: .82rem; font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .06em; color: var(--color-accent); }
.business-card-preview__company { display: block; font-size: .95rem; color: #e9e1d3; }
.business-card-preview__contact { display: flex; flex-direction: column; gap: 2px; font-family: var(--font-sans); font-size: .8rem; color: #cfc4b0; }
.business-card-preview__logo { position: absolute; top: 18px; right: 20px; font-family: var(--font-sans); font-size: .68rem; font-weight: 700; letter-spacing: .08em; color: var(--color-accent); border: 1px solid var(--color-accent); border-radius: 4px; padding: 2px 8px; }


/* ---- Konto klienta (rejestracja / logowanie / moje zamówienia) ---- */
.main-nav__account { margin-left: 6px; }
.main-nav__account a, .main-nav__outlined a { border: 1.5px solid var(--color-border); }
.main-nav__account { display: flex; align-items: center; gap: 4px; }
.main-nav__logout { margin: 0; }
.main-nav__logout-btn { display: block; padding: 8px 14px; border: 0; border-radius: 999px; background: none; font: inherit; font-weight: 600; color: var(--color-ink-soft); cursor: pointer; transition: padding .25s ease, background-color .15s ease, color .15s ease; }
.main-nav__logout-btn:hover { background: var(--color-bg-soft); color: var(--color-ink); }
.site-header.is-scrolled .main-nav__logout-btn { padding-top: 6px; padding-bottom: 6px; }
@media (max-width: 760px) {
  .main-nav__account { flex-direction: column; align-items: stretch; }
  .main-nav__logout-btn { width: 100%; text-align: left; padding: 12px 10px; }
}

.account-form { max-width: 480px; }
.account-form__footer { margin-top: 20px; }
.account-form__checkbox { display: flex; align-items: center; gap: 8px; }
.account-form__checkbox label { margin: 0; }
.account-form small { color: var(--color-muted); font-weight: 400; }
/* Registration: two columns on desktop and landscape tablets. */
.account-form--register [hidden] { display: none; }
@media (min-width: 900px) {
  .account-form--register { max-width: 760px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .account-form--register .account-form__wide { grid-column: 1 / -1; }
}

.account-orders { width: 100%; border-collapse: collapse; margin-top: 20px; }
.account-orders th, .account-orders td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--color-border); }
.account-orders th { color: var(--color-muted); font-weight: 600; font-size: .88rem; text-transform: uppercase; letter-spacing: .02em; }

/* ---- Footer ---- */
.site-footer { background: var(--color-ink); color: #e9e1d3; margin-top: 40px; }
.footer-columns { max-width: var(--max-width); margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 700px) { .footer-columns { grid-template-columns: repeat(3, 1fr); } }
.footer-column h2, .footer-column h3 { font-size: 1.05rem; color: #fff; }
.footer-column-left { text-align: left; }
.footer-column-middle { text-align: center; }
.footer-column-right { text-align: right; }
.footer-nav-list, .footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-nav-list li, .footer-column li { margin-bottom: 6px; }
.site-footer a { color: #e9e1d3; text-decoration-color: var(--color-accent); }
.site-footer a:hover { color: var(--color-accent); }
.footer-meta { max-width: var(--max-width); margin: 0 auto; padding: 16px 20px; border-top: 1px solid rgba(233, 225, 211, .15); color: #a89b86; font-size: .9rem; text-align: center; }
.footer-meta p { margin: 0; }

/* ---- Scroll to top (same behaviour as bootstrap_package's .scroll-top: fixed corner button,
   fades in past 300 px — toggled by nav.js; hover lifts it with an accent glow) ---- */
.scroll-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 48px; height: 48px; border-radius: 4px; overflow: hidden; background: var(--color-ink); color: #fff; box-shadow: 0 0 0 1px rgba(233, 225, 211, .22), 0 4px 12px -4px rgba(43, 36, 29, .4); opacity: 0; visibility: hidden; transition: opacity .3s ease-in-out, visibility .3s ease-in-out, background-color .3s ease-in-out, color .3s ease-in-out, transform .25s ease, box-shadow .25s ease; }
.scroll-top.is-visible { opacity: 1; visibility: visible; }
.scroll-top:hover, .scroll-top:focus-visible { background: var(--color-accent); color: var(--color-ink); transform: scale(1.08); box-shadow: 0 6px 18px rgba(184, 134, 42, .55); }
.scroll-top-icon { position: absolute; inset: 0; transform: rotate(45deg); transition: transform .25s ease; }
.scroll-top-icon::before { content: ''; position: absolute; top: 55%; left: 55%; width: 30%; height: 30%; border-top: 1.5px solid; border-left: 1.5px solid; transform: translate(-50%, -50%); }
/* rotate(45deg) is what shapes the arrow — keep it in the same transform when nudging it up. */
.scroll-top:hover .scroll-top-icon, .scroll-top:focus-visible .scroll-top-icon { transform: rotate(45deg) translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .scroll-top, .scroll-top-icon { transition: opacity .3s ease-in-out, visibility .3s ease-in-out; }
  .scroll-top:hover, .scroll-top:focus-visible { transform: none; }
}

/* ---- Print file upload + automatic check (product page, "Moje konto") ---- */
.print-file { margin-bottom: 18px; }
.print-file__drop { position: relative; border: 2px dashed var(--color-border); border-radius: var(--radius); background: var(--color-bg-card); padding: 22px 18px; text-align: center; transition: border-color .15s ease, background-color .15s ease; cursor: pointer; }
.print-file__drop:hover, .print-file__drop.is-over { border-color: var(--color-accent); background: #fdf8ee; }
.print-file__drop[hidden] { display: none; }
.print-file__input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.print-file__hint { margin: 0; font-size: .88rem; line-height: 1.6; color: var(--color-ink-soft); }
.print-file__hint strong { color: var(--color-ink); }
.print-file__browse { color: var(--color-accent-deep); text-decoration: underline; }
.print-file__busy { margin: 10px 0 0; font-size: .9rem; color: var(--color-ink-soft); }
.print-file__busy::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border: 2px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; vertical-align: -1px; animation: print-file-spin .8s linear infinite; }
@keyframes print-file-spin { to { transform: rotate(360deg); } }
.print-file__result { display: grid; grid-template-columns: 1fr; gap: 16px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-card); padding: 16px; }
.print-file__result[hidden] { display: none; }
@media (min-width: 620px) { .print-file__result { grid-template-columns: 180px 1fr; } }
.print-file__preview { align-self: start; background: repeating-conic-gradient(#f1ebe0 0% 25%, #faf6ee 0% 50%) 50% / 16px 16px; border: 1px solid var(--color-border); border-radius: 6px; padding: 8px; text-align: center; }
.print-file__preview[hidden] { display: none; }
.print-file__preview img { display: block; max-width: 100%; max-height: 220px; margin: 0 auto; box-shadow: 0 4px 12px -6px rgba(43, 36, 29, .35); }
.print-file__name { margin: 0 0 6px; font-weight: 700; word-break: break-all; }
.print-file__change { margin-left: 8px; border: 0; background: none; padding: 0; color: var(--color-accent-deep); text-decoration: underline; font: inherit; font-weight: 400; font-size: .85rem; cursor: pointer; }
.print-file__verdict { margin: 0 0 10px; padding: 8px 12px; border-radius: 6px; font-size: .9rem; font-weight: 600; }
.print-file__verdict.is-ok { background: #e8f2e3; color: #2f5a34; }
.print-file__verdict.is-warnings { background: #fbf0d9; color: #7a5a14; }
.print-file__verdict.is-errors { background: #f8e3dd; color: var(--color-terracotta); }
.print-file__verdict.is-manual { background: var(--color-bg-soft); color: var(--color-ink-soft); }
.print-file__lines { list-style: none; margin: 0; padding: 0; font-size: .86rem; line-height: 1.45; }
.print-file__lines li { padding: 4px 0; border-bottom: 1px dashed var(--color-border); }
.print-file__lines li:last-child { border-bottom: 0; }
.print-file__lines .is-error { color: var(--color-terracotta); font-weight: 600; }
.print-file__lines .is-warning { color: #7a5a14; }
.print-file__lines .is-ok { color: #2f5a34; }
.print-file__lines .is-info { color: var(--color-ink-soft); }
.print-file__review { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; padding: 10px 12px; background: var(--color-bg-soft); border-radius: 6px; font-size: .88rem; cursor: pointer; }
.print-file__review[hidden] { display: none; }
.print-file__review input { margin-top: 3px; }
.print-file__error { margin: 8px 0 0; color: var(--color-terracotta); font-weight: 600; font-size: .9rem; }
.order-form .btn[disabled] { opacity: .45; cursor: not-allowed; }
.file-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; }
.file-badge.is-pending { background: #fbf0d9; color: #7a5a14; }
.file-badge.is-accepted { background: #e8f2e3; color: #2f5a34; }
.file-badge.is-fix { background: #f8e3dd; color: var(--color-terracotta); }
.file-badge.is-proof { background: #e2ebf2; color: #2c4c66; }

/* Customer proof of a design order (Moje konto) */
.account-proof { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
@media (min-width: 720px) { .account-proof { grid-template-columns: minmax(0, 260px) minmax(0, 1fr); } }
.account-proof__image { display: block; max-width: 260px; }
.account-proof__image img { display: block; width: 100%; height: auto; border: 1px solid var(--color-border); border-radius: 4px; box-shadow: 0 6px 18px rgba(43, 36, 29, .16); }
.account-proof__side > :first-child { margin-top: 0; }
.account-proof__title { margin: 0 0 8px; font-family: var(--font-sans); font-size: 1.05rem; }
.account-proof.is-waiting .account-proof__title { color: #2c4c66; }
.account-proof__checks { margin: 0 0 10px; padding-left: 20px; }
.account-proof__accept { display: grid; gap: 12px; justify-items: start; margin: 14px 0; padding: 14px 16px; background: var(--color-bg-soft); border-radius: 8px; }
.account-proof__confirm { display: flex; gap: 8px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.account-proof__confirm input { margin-top: 4px; flex: none; }
.account-proof__changes { margin: 0 0 12px; }
.account-proof__changes summary { cursor: pointer; font-weight: 600; color: var(--color-accent-deep); }
.account-proof__changes[open] summary { margin-bottom: 10px; }
.account-proof__remarks { display: grid; gap: 10px; justify-items: start; }
.account-proof__field { display: grid; gap: 6px; width: 100%; font-size: .92rem; }
.account-proof__download { margin: 10px 0 0; font-size: .92rem; }
.account-proof__check { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--color-border); }
.account-proof__check p { margin: 0 0 6px; }
.account-proof__check .panel-muted { font-size: .88rem; }
.account-orders__file td { border-bottom: 1px solid var(--color-border); background: var(--color-bg-card); }
.account-file { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 620px) { .account-file { grid-template-columns: 120px 1fr; } }
.account-file__preview { max-width: 120px; max-height: 120px; border: 1px solid var(--color-border); border-radius: 4px; }
.account-file__name { margin: 0 0 6px; }
.account-file__date { color: var(--color-muted); font-size: .85rem; font-weight: 400; }
.account-file__note { margin: 0 0 10px; padding: 10px 12px; background: #f8e3dd; border-radius: 6px; font-size: .9rem; }
.account-file__upload { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.account-file__upload .btn { cursor: pointer; }
.account-file__status { font-size: .9rem; color: var(--color-ink-soft); }

/* ---- Moje konto: nav, profile form ---- */
.account-nav { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 22px; border-bottom: 1px solid var(--color-border); }
.account-nav__link { padding: 10px 16px; margin-bottom: -1px; border: 1px solid transparent; border-bottom: 0; border-radius: 8px 8px 0 0; text-decoration: none; font-weight: 600; color: var(--color-ink-soft); }
.account-nav__link:hover { color: var(--color-ink); background: var(--color-bg-soft); }
.account-nav__link.is-active { background: var(--color-bg-card); border-color: var(--color-border); color: var(--color-ink); }
.account-reminder { padding: 10px 14px; background: #fbf0d9; border-radius: 8px; color: #7a5a14; }
.account-errors { max-width: 640px; margin-bottom: 18px; padding: 12px 16px; background: #f8e3dd; border-radius: 8px; color: var(--color-terracotta); }
.account-errors ul { margin: 6px 0 0; padding-left: 18px; }
.account-profile { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
@media (min-width: 980px) { .account-profile { grid-template-columns: minmax(0, 560px) minmax(0, 380px); } }
.account-profile .account-form { max-width: none; }
.account-profile fieldset { margin: 0 0 18px; padding: 18px 18px 4px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-card); }
.account-profile legend { padding: 0 6px; font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; }
.account-profile [hidden] { display: none; }
.account-profile small { color: var(--color-muted); font-weight: 400; }
.account-profile__row { display: grid; grid-template-columns: 140px 1fr; gap: 12px; }

/* Panel zamówień (obsługa drukarni) */
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.panel-head h2 { margin-bottom: 0; }
.panel-muted { color: var(--color-muted); font-size: .88rem; }
.panel-nowrap { white-space: nowrap; }
.panel-filters { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.panel-filters__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.panel-filter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-card); color: var(--color-ink); font-size: .9rem; text-decoration: none; }
.panel-filter:hover { border-color: var(--color-terracotta); color: var(--color-terracotta); }
.panel-filter.is-active { background: var(--color-ink); border-color: var(--color-ink); color: #fff; }
.panel-filter__count { font-size: .78rem; font-weight: 700; opacity: .7; }
.panel-orders td { vertical-align: top; }
.order-badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--color-bg-soft); color: var(--color-ink-soft); }
.order-badge.is-new { background: #fbf0d9; color: #7a5a14; }
.order-badge.is-processing { background: #e3ecf4; color: #2d4a66; }
.order-badge.is-shipped { background: #ece6f3; color: #4d3a66; }
.order-badge.is-done { background: #e8f2e3; color: #2f5a34; }
.panel-grid { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 20px; }
@media (min-width: 900px) { .panel-grid { grid-template-columns: 1fr 1fr; } .panel-card--wide { grid-column: 1 / -1; } }
.panel-card { background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: var(--radius); padding: 20px 24px; min-width: 0; }
.panel-card h3 { margin-top: 0; }
.panel-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
.panel-dl dt { color: var(--color-muted); font-size: .88rem; }
.panel-dl dd { margin: 0; overflow-wrap: anywhere; }
.panel-form { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .panel-form { grid-template-columns: 1fr 1fr; } .panel-form__wide { grid-column: 1 / -1; } }
.panel-form .btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }
.panel-file { padding: 16px 0; border-top: 1px solid var(--color-border); }
.panel-file:first-of-type { border-top: 0; padding-top: 0; }
.panel-file:not(.is-latest) { opacity: .75; }
.panel-file .account-file__name a { overflow-wrap: anywhere; }
.panel-history { list-style: none; margin: 0; padding: 0; }
.panel-history li { padding: 6px 0; border-bottom: 1px dashed var(--color-border); }
.panel-history li:last-child { border-bottom: 0; }
.panel-history__time { display: inline-block; min-width: 9.5em; color: var(--color-muted); font-variant-numeric: tabular-nums; }
.panel-imposition__info { margin-top: 0; }
.panel-imposition__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.panel-imposition__rebuild { margin: 0; }
.panel-imposition__rebuild .btn { background: transparent; cursor: pointer; font: inherit; font-weight: 700; padding: 10px 20px; }

/* Karuzela referencji (stopka) */
.references-carousel__viewport { overflow: hidden; }
.references-carousel__track { display: flex; align-items: flex-start; transition: transform .6s ease; }
.references-carousel__slide { flex: 0 0 100%; min-width: 0; margin: 0; padding: 0 4px; }
.references-carousel__slide blockquote { margin: 0; }
.references-carousel__slide blockquote p { margin: 0 0 6px; }
.references-carousel__slide figcaption { color: #a89b86; font-size: .92rem; }
.references-carousel__nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.references-carousel__arrow { background: none; border: 1px solid rgba(233, 225, 211, .3); color: #e9e1d3; width: 28px; height: 28px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1; padding: 0; }
.references-carousel__arrow:hover, .references-carousel__arrow:focus-visible { border-color: var(--color-accent); color: var(--color-accent); }
.references-carousel__dots { display: inline-flex; gap: 6px; }
.references-carousel__dot { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; background: rgba(233, 225, 211, .3); cursor: pointer; }
.references-carousel__dot[aria-current="true"] { background: var(--color-accent); }
.references-carousel__more { margin-top: 10px; }
.references-carousel:not(.is-ready) .references-carousel__slide:not(:first-child) { display: none; }
@media (prefers-reduced-motion: reduce) { .references-carousel__track { transition: none; } }


/* ============================================================
   ODŚWIEŻENIE WYGLĄDU (2026-09-24) — "wodotryski": gradienty stopki
   i paska menu, animowane formularze i przyciski, wjazd treści przy
   przewijaniu, baner o ciasteczkach. Wszystko gaśnie przy
   prefers-reduced-motion (blok na końcu sekcji).
   ============================================================ */

/* --- Pasek menu: ciepły gradient + przesuwająca się kreska akcentu u dołu --- */
.site-header { background-image: linear-gradient(180deg, #fcf9f3 0%, #f7f0e3 100%); border-bottom-color: transparent; }
.site-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: linear-gradient(90deg, var(--color-accent), var(--color-terracotta), #d6a84f, var(--color-accent));
  background-size: 300% 100%;
  animation: rule-flow 14s linear infinite;
  opacity: .85;
}
.site-header.is-scrolled { background-image: none; }
@keyframes rule-flow { from { background-position: 0% 0; } to { background-position: 300% 0; } }

/* --- Stopka: głęboki gradient atramentu z ciepłą poświatą i tą samą kreską u góry --- */
.site-footer {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 12% -10%, rgba(184, 134, 42, .22), transparent 50%),
              radial-gradient(ellipse at 95% 120%, rgba(168, 68, 46, .28), transparent 55%),
              linear-gradient(160deg, #2f271f 0%, #221c16 55%, #18130f 100%);
}
.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-terracotta), #d6a84f, var(--color-accent));
  background-size: 300% 100%;
  animation: rule-flow 14s linear infinite;
}
.site-footer h2 { position: relative; display: inline-block; padding-bottom: 8px; }
.site-footer h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 28px; height: 2px; background: var(--color-accent); transition: width .4s ease; }
.footer-column-middle h2::after { left: 50%; transform: translateX(-50%); }
.footer-column-right h2::after { left: auto; right: 0; }
.footer-column:hover h2::after { width: 56px; }

/* --- Przyciski: gradient, uniesienie i błysk przy najechaniu --- */
.btn-primary, .form-navigation .btn-primary, .cookie-notice__btn {
  position: relative; overflow: hidden; isolation: isolate;
  background-image: linear-gradient(135deg, #b9502f 0%, var(--color-terracotta) 55%, #8e3522 100%);
  box-shadow: 0 6px 16px -8px rgba(168, 68, 46, .7);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-primary::after, .form-navigation .btn-primary::after, .cookie-notice__btn::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover, .form-navigation .btn-primary:hover, .cookie-notice__btn:hover {
  background-image: linear-gradient(135deg, #c1673b 0%, #a8442e 50%, #7c2d1d 100%);
  transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(168, 68, 46, .85);
}
.btn-primary:hover::after, .form-navigation .btn-primary:hover::after, .cookie-notice__btn:hover::after { left: 125%; }
.btn-primary:active, .cookie-notice__btn:active { transform: translateY(0); }
.btn-primary[disabled], .btn-primary[disabled]:hover { transform: none; box-shadow: none; filter: grayscale(.4); }
.btn-ghost { transition: border-color .2s ease, color .2s ease, background-color .2s ease, transform .2s ease; }
.btn-ghost:hover { background-color: rgba(168, 68, 46, .06); transform: translateY(-2px); }

/* --- Formularze: wysuwana kreska pod polem, poświata fokusu, etykieta reaguje, checkbox "pyka" --- */
.form-control {
  background-image: linear-gradient(90deg, var(--color-accent), var(--color-terracotta));
  background-repeat: no-repeat; background-position: left bottom; background-size: 0% 2px;
  transition: border-color .2s ease, box-shadow .2s ease, background-size .35s ease;
}
.form-control:hover:not(:focus) { border-color: #d8c7a4; }
.form-control:focus { border-color: var(--color-accent); background-size: 100% 2px; box-shadow: 0 0 0 4px rgba(184, 134, 42, .16); }
.form-control:-webkit-autofill, .form-control:-webkit-autofill:hover, .form-control:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--color-ink); -webkit-box-shadow: 0 0 0 1000px #fff inset; box-shadow: 0 0 0 1000px #fff inset;
  transition: background-color 5000s ease-in-out 0s, border-color .2s ease;
}
.form-label { transition: color .2s ease, transform .2s ease; transform-origin: left center; }
.form-element:focus-within > .form-label, .form-element:focus-within > label { color: var(--color-terracotta); transform: translateX(2px); }
.frame-type-felogin_login div:focus-within > label { color: var(--color-terracotta); transition: color .2s ease; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--color-terracotta); }
input[type="checkbox"]:checked, input[type="radio"]:checked { animation: tick-pop .3s ease; }
@keyframes tick-pop { 0% { transform: scale(1); } 40% { transform: scale(1.3); } 100% { transform: scale(1); } }
.form-control.is-invalid, .form-control:user-invalid { animation: field-shake .35s ease; }
@keyframes field-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* --- Wjazd treści przy przewijaniu (effects.js dokłada .reveal / .is-inview) --- */
.has-js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16, .84, .44, 1), transform .7s cubic-bezier(.16, .84, .44, 1); }
.has-js .reveal.is-inview { opacity: 1; transform: none; }

/* --- Kafelki oferty: ciepła poświata pod kursorem --- */
.offer-card a { position: relative; overflow: hidden; }
.offer-card a::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(184, 134, 42, .16), transparent 60%);
}
.offer-card a:hover::before { opacity: 1; }

/* --- Baner o ciasteczkach --- */
.cookie-notice {
  position: fixed; left: 16px; bottom: 16px; z-index: 90; max-width: 420px; width: calc(100% - 32px);
  padding: 20px 22px 18px; border-radius: 16px; color: #f5ecdc; overflow: hidden;
  background: linear-gradient(135deg, #2b241d 0%, #5a2a1c 55%, #a8442e 100%);
  background-size: 220% 220%;
  box-shadow: 0 18px 40px -16px rgba(20, 14, 10, .7), 0 0 0 1px rgba(255, 255, 255, .06) inset;
  animation: band-drift 16s ease-in-out infinite alternate, notice-in .7s cubic-bezier(.16, .84, .44, 1) both;
}
.cookie-notice[hidden] { display: none; }
.cookie-notice.is-leaving { animation: notice-out .45s ease forwards; }
.cookie-notice::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, .14), transparent);
  animation: notice-shine 7s ease-in-out infinite 1.2s;
}
.cookie-notice__title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; font-family: var(--font-serif); font-size: 1.1rem; color: #fff; }
.cookie-notice__icon { font-size: 1.5rem; display: inline-block; animation: cookie-wobble 4s ease-in-out infinite 1s; transform-origin: 50% 60%; }
.cookie-notice p { margin: 0 0 14px; font-size: .92rem; line-height: 1.5; color: #eadfcb; }
.cookie-notice__actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.cookie-notice__btn { border: 0; color: #fff; font: inherit; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer; }
.cookie-notice__btn:focus-visible { outline: 2px solid #f0d49a; outline-offset: 2px; }
@keyframes notice-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes notice-out { to { opacity: 0; transform: translateY(24px) scale(.97); } }
@keyframes notice-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }
@keyframes cookie-wobble { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-14deg); } 86% { transform: rotate(10deg); } 94% { transform: rotate(-4deg); } }
@media (max-width: 480px) { .cookie-notice { left: 8px; right: 8px; bottom: 8px; width: auto; max-width: none; } }

/* --- Pasek postępu czytania (u góry, pod menu) --- */
.read-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60; pointer-events: none; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--color-accent), var(--color-terracotta)); }

@media (prefers-reduced-motion: reduce) {
  .site-header::after, .site-footer::before, .cookie-notice, .cookie-notice::after, .cookie-notice__icon { animation: none; }
  .btn-primary, .btn-primary::after, .btn-ghost, .form-control, .form-label { transition: none; }
  .btn-primary:hover, .btn-ghost:hover { transform: none; }
  input[type="checkbox"]:checked, input[type="radio"]:checked, .form-control.is-invalid, .form-control:user-invalid { animation: none; }
  .has-js .reveal { opacity: 1; transform: none; transition: none; }
  .read-progress { display: none; }
}
/* On the terracotta-tinted notice the button goes gold, so it stands out from the background. */
.cookie-notice__btn { background-image: linear-gradient(135deg, #f0d49a 0%, #d6a84f 55%, #b8862a 100%); color: #2b241d; box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .6); }
.cookie-notice__btn:hover { background-image: linear-gradient(135deg, #f7e2b4 0%, #e0b65e 55%, #c2912f 100%); color: #2b241d; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .7); }

/* ============================================================
   WODOTRYSKI, CZĘŚĆ 2 (2026-09-24): faktura papieru na pasach,
   powolne przybliżanie zdjęcia na stronie głównej, liczniki,
   wizytówka 3D z rewersem, "prasa" przy kontroli pliku,
   pieczątka po zamówieniu, przejścia między stronami, mapa
   ładowana dopiero po kliknięciu.
   ============================================================ */

/* 7. Paper grain on the header bands (SVG noise, blended so it reads as texture, not dirt). */
.frame-type-header.has-bg::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .38; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .45 0 0 0 0 .38 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.frame-type-header.has-bg-cream::after { opacity: .5; mix-blend-mode: multiply; }

/* 2. Homepage photo: a very slow zoom anchored at the cap's peak (52% × 0), so the cap that
   peeks into the menu bar stays exactly in place while the rest of the scene breathes. */

/* 1. Counters band */
.frame-type-poligrafiajl_counters { position: relative; width: 100vw; margin-left: 50%; transform: translateX(-50%); padding: 44px 20px; overflow: hidden;
  background: radial-gradient(ellipse at 15% 0%, rgba(255, 255, 255, .7), transparent 55%), linear-gradient(120deg, #efe3cc 0%, #f7efe0 55%, #fbf6ec 100%); }
.counters { max-width: var(--max-width); margin: 0 auto; padding: 0; list-style: none; display: grid; gap: 28px 20px; grid-template-columns: repeat(2, 1fr); text-align: center; }
@media (min-width: 800px) { .counters { grid-template-columns: repeat(4, 1fr); } }
.counters__value { display: block; font-family: var(--font-serif); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1;
  background: linear-gradient(120deg, var(--color-terracotta), var(--color-accent)); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; }
.counters__label { display: block; margin-top: 8px; color: var(--color-ink-soft); font-size: .95rem; }
.counters__item { position: relative; }
.counters__item + .counters__item::before { content: ""; position: absolute; left: -10px; top: 15%; bottom: 15%; width: 1px; background: linear-gradient(transparent, rgba(184, 134, 42, .45), transparent); }
@media (max-width: 799px) { .counters__item:nth-child(odd)::before { display: none; } }

/* 3. Business card mockup in 3D: tilts toward the cursor, flips to show the back. */
.card-3d { perspective: 1100px; max-width: 420px; }
.card-3d__inner { position: relative; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  transform: rotateX(var(--tilt-x, 0deg)) rotateY(calc(var(--tilt-y, 0deg) + var(--flip, 0deg))); }
.card-3d.is-tilting .card-3d__inner { transition: transform .12s ease-out; }
.card-3d.is-flipped { --flip: 180deg; }
.card-3d .business-card-preview { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.card-3d .business-card-preview::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .16) 48%, transparent 62%); background-size: 250% 100%;
  background-position: var(--glare, 100%) 0; transition: background-position .2s ease; }
.business-card-preview--back { position: absolute; inset: 0; transform: rotateY(180deg); align-items: center; justify-content: center; gap: 10px; text-align: center;
  background: linear-gradient(135deg, #3a3024 0%, var(--color-ink) 100%); }
.business-card-preview--back .business-card-preview__logo { position: static; font-size: .9rem; padding: 6px 16px; }
.card-3d__flip { margin-top: 12px; background: none; border: 1.5px solid var(--color-border); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: .88rem; font-weight: 600; color: var(--color-ink-soft); cursor: pointer; transition: border-color .2s ease, color .2s ease; }
.card-3d__flip:hover, .card-3d__flip:focus-visible { border-color: var(--color-accent); color: var(--color-ink); }
.card-3d__flip-icon { display: inline-block; transition: transform .6s ease; }
.card-3d.is-flipped + .card-3d__flip .card-3d__flip-icon { transform: rotate(180deg); }

/* Catalog tiles: the preview tilts slightly toward the cursor (effects.js sets --rx/--ry). */
.offer-card--preview .offer-card__preview { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--s, 1)); transition: transform .35s ease; }
.offer-card--preview a:hover .offer-card__preview { --s: 1.03; transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(1.03); }

/* 4. "Printing press" while the file is being checked: the platen presses, a sheet comes out. */
.print-file__busy { display: flex; align-items: center; gap: 14px; }
.print-file__busy::before { display: none; }
.press { position: relative; flex: 0 0 auto; width: 46px; height: 38px; }
.press__frame { position: absolute; left: 4px; right: 4px; top: 0; height: 30px; border: 3px solid var(--color-ink); border-bottom: 0; border-radius: 4px 4px 0 0; }
.press__plate { position: absolute; left: 11px; right: 11px; top: 4px; height: 7px; border-radius: 2px; background: linear-gradient(var(--color-terracotta), #7c2d1d); animation: press-down 1.4s ease-in-out infinite; }
.press__plate::before { content: ""; position: absolute; left: 50%; top: -5px; width: 3px; height: 5px; margin-left: -1.5px; background: var(--color-ink); }
.press__bed { position: absolute; left: 0; right: 0; bottom: 5px; height: 4px; border-radius: 2px; background: var(--color-ink); }
.press__sheet { position: absolute; left: 12px; bottom: 9px; width: 22px; height: 4px; border-radius: 1px; background: #fff; box-shadow: 0 0 0 1px var(--color-border); animation: press-sheet 1.4s ease-in-out infinite; }
@keyframes press-down { 0%, 20% { transform: translateY(0); } 45%, 55% { transform: translateY(13px); } 80%, 100% { transform: translateY(0); } }
@keyframes press-sheet { 0%, 55% { transform: translateX(0); opacity: 1; background: #fff; } 56% { background: linear-gradient(90deg, var(--color-terracotta) 30%, var(--color-accent) 30% 60%, var(--color-ink) 60%); } 85% { transform: translateX(34px); opacity: 0; } 86%, 100% { transform: translateX(-20px); opacity: 0; } }
.print-file__busy-text { transition: opacity .25s ease; }
.print-file__busy-text.is-swapping { opacity: 0; }

/* 5. Stamp on the thank-you page */
.catalog-thanks { position: relative; text-align: center; padding: 18px 0 30px; }
.catalog-thanks p { max-width: 44rem; margin-left: auto; margin-right: auto; }
.order-stamp { display: inline-grid; place-items: center; width: 190px; height: 190px; margin: 6px 0 22px; border-radius: 50%;
  border: 5px double var(--color-terracotta); color: var(--color-terracotta); text-align: center; transform: rotate(-12deg);
  font-family: var(--font-serif); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; position: relative;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.4' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 2.1'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: stamp-in .55s cubic-bezier(.3, 1.6, .5, 1) .35s both; }
.order-stamp::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; border: 2px solid currentColor; }
.order-stamp__top { font-size: .78rem; }
.order-stamp__main { font-size: 1.55rem; line-height: 1; margin: 4px 0; }
.order-stamp__date { font-size: .78rem; font-family: var(--font-sans); letter-spacing: .04em; }
@keyframes stamp-in { 0% { opacity: 0; transform: rotate(-12deg) scale(2.6); } 60% { opacity: 1; transform: rotate(-12deg) scale(.94); } 100% { opacity: 1; transform: rotate(-12deg) scale(1); } }

/* 6. Page transitions (browsers with cross-document View Transitions; others just navigate). */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .25s ease both; }
::view-transition-new(root) { animation: vt-in .35s ease both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* Map on the contact page loads only when asked (no Google cookies before that). */
.map-consent { display: grid; place-items: center; gap: 10px; aspect-ratio: 600 / 450; width: 100%; padding: 20px; text-align: center; border-radius: var(--radius);
  border: 1px solid var(--color-border); background: linear-gradient(135deg, #efe3cc, #f7efe0 60%, #fbf6ec); color: var(--color-ink-soft); font-size: .9rem; }
.map-consent__pin { font-size: 2rem; }

@media (prefers-reduced-motion: reduce) {
  .press__plate, .press__sheet, .order-stamp { animation: none; }
  .card-3d__inner { transition: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
/* A counters band closing the page runs straight into the footer. */
.page-content > .frame-type-poligrafiajl_counters:last-child { margin-bottom: -60px; }

/* Counters laid over the bottom of the homepage photo: a translucent cream strip, blurred behind. */
.hero { position: relative; }
.hero__overlay .frame { margin: 0; }
.hero__overlay .frame-type-poligrafiajl_counters { width: auto; margin: 0; transform: none; padding: 22px 20px; background: none; }
.hero__overlay .counters__label { color: var(--color-ink); font-weight: 600; }
@media (min-width: 800px) {
  .hero__image.full-bleed { margin-bottom: 0; }
  .hero { padding-bottom: 0; margin-bottom: 2px; }
  .hero__overlay { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; }
  /* Cream + blur that fade out towards the top, so the strip melts into the photo instead of
     sitting on it as a block (mask on a pseudo-element, so the numbers themselves stay crisp). */
  .hero__overlay::before {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; top: -36px; z-index: -1; pointer-events: none;
    background: linear-gradient(0deg, rgba(247, 240, 227, .96) 0%, rgba(247, 240, 227, .84) 45%, rgba(250, 245, 236, 0) 100%);
    -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    -webkit-mask-image: linear-gradient(0deg, #000 55%, transparent 100%); mask-image: linear-gradient(0deg, #000 55%, transparent 100%);
  }
  .hero__overlay .counters__value { font-size: clamp(2rem, 3.6vw, 3rem); }
  .hero__overlay .counters__item + .counters__item::before { background: linear-gradient(transparent, rgba(143, 106, 31, .55), transparent); }
}
@media (max-width: 799px) {
  .hero__overlay { background: linear-gradient(120deg, #efe3cc 0%, #f7efe0 55%, #fbf6ec 100%); margin-top: -32px; }
  .hero:has(.hero__overlay) { padding-bottom: 2px; }
}
/* While the page rests at the top the photo is lifted above the menu (cap peek, z-index 55); the strip
   must sit above the photo then — and drop back below the sticky menu as soon as the page scrolls. */
.hero--at-top .hero__overlay { z-index: 56; }

/* Catalog bands (category / product heading) sit flush under the breadcrumbs like a page's own
   first header element — the catalog plugin wraps them in its own frame, hence the longer path. */
.page-content > .frame:first-child > .frame-type-catalog > .catalog-band:first-child { margin-top: -40px; }
.catalog-band { margin-bottom: 28px; }

/* All header bands: text centred (whatever the element's alignment setting says). */
.frame-type-header :is(h1, h2, h3) { text-align: center; }
.frame-type-header.has-bg :is(h1, h2, h3)::after { margin-left: auto; margin-right: auto; }

/* Top menu — the page you are on: an ink brush stroke that draws itself under the label. */
.main-nav a.is-current { position: relative; color: var(--color-terracotta); }
.main-nav a.is-current::after {
  /* Dry-brush ink: a few bristle tracks that break up and thin out towards the end, edges roughened by a noise filter. */
  content: ""; position: absolute; left: 7px; right: 7px; bottom: -1px; height: 12px; pointer-events: none;
  background: no-repeat center / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 16' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1'%3E%3Cstop offset='0' stop-color='%23b8862a'/%3E%3Cstop offset='1' stop-color='%23a8442e'/%3E%3C/linearGradient%3E%3Cfilter id='r' x='-5%25' y='-40%25' width='110%25' height='180%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9 .35' numOctaves='2' seed='7'/%3E%3CfeDisplacementMap in='SourceGraphic' scale='2.2'/%3E%3C/filter%3E%3C/defs%3E%3Cg fill='none' stroke='url(%23g)' stroke-linecap='round' filter='url(%23r)'%3E%3Cpath d='M3 7.2C20 3.8 36 8.2 55 6S90 3.4 104 5.4 115 7.6 118 6.2' stroke-width='3.4'/%3E%3Cpath d='M4 9.4C22 6.4 38 10 57 8.2S91 5.8 105 7.6 114 9.3 116 8.4' stroke-width='2.6' stroke-dasharray='70 3 18 4 9 6' opacity='.9'/%3E%3Cpath d='M5 5.2C21 2 37 6.2 56 4.1S89 1.6 102 3.4' stroke-width='1.6' stroke-dasharray='55 2 20 5 6 8' opacity='.75'/%3E%3Cpath d='M7 11.2C25 8.6 41 11.8 60 10.2S88 8.3 99 9.6' stroke-width='1.4' stroke-dasharray='40 3 22 4 5 7 3 9' opacity='.7'/%3E%3Cpath d='M9 3.6C28 1 44 4.4 62 2.8' stroke-width='1' stroke-dasharray='30 4 12 6' opacity='.5'/%3E%3Cpath d='M10 12.8C30 10.8 50 13 70 11.8' stroke-width='.9' stroke-dasharray='25 5 10 7' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  clip-path: inset(0 100% 0 0);
  animation: ink-draw .9s cubic-bezier(.6, 0, .2, 1) .3s forwards;
}
/* The brush stroke is the marker for the current page — the pill outline would compete with it. */
.main-nav__outlined a.is-current, .main-nav__account a.is-current { border-color: transparent; }
.main-nav a.is-current:hover { color: #fff; }
.main-nav a.is-current:hover::after { opacity: 0; transition: opacity .15s ease; }
@keyframes ink-draw { to { clip-path: inset(0 0 0 0); } }
@media (prefers-reduced-motion: reduce) { .main-nav a.is-current::after { animation: none; clip-path: none; } }

/* Login page: heading as a band (flush under the breadcrumbs), form and texts centred. */
.page-content > .frame:first-child > .frame-type-account > .account-band:first-child { margin-top: -40px; }
.account-band { margin-bottom: 32px; }
.account-centered { text-align: center; }
.account-centered .account-form { margin-left: auto; margin-right: auto; text-align: left; }
.account-centered .account-form .btn, .account-centered .account-form button[type="submit"] { display: block; margin: 8px auto 0; }
/* "Moje konto": same band heading; tabs centred, the profile forms centred as a block. */
.account-page .account-nav { justify-content: center; }
.account-page .account-profile { justify-content: center; }
.account-centered .account-form--register { margin-left: auto; margin-right: auto; }
.account-centered .account-form__checkbox, .account-centered .account-form__checkbox label { text-align: left; }

/* Buttons: one look for all filled buttons — a lit edge (light on top/left, shade on bottom/right,
   as if lit from above; this is the bevel the login button had from the browser default, now
   deliberate and on links styled as buttons too) — and the hand cursor on everything clickable. */
.btn-primary, .form-navigation .btn-primary, .form-navigation button.btn-primary, .cookie-notice__btn, .map-consent .btn, .panel-form .btn {
  border: 2px solid; border-color: #d8c6ae #b39c83 #6f5646 #a38c74;
}
.cookie-notice__btn { border-color: #fbecc8 #e6cf9c #8f6a1f #d2b06a; }
.btn, button, [type="submit"], [type="button"], [type="reset"], .cookie-notice__btn, .card-3d__flip, .references-carousel__arrow, .references-carousel__dot, label.btn { cursor: pointer; }
.btn[disabled], button[disabled], [type="submit"][disabled] { cursor: not-allowed; }

/* Secondary buttons: the same button (lit edge, lift, shine) in a light palette colour — cream with
   ink lettering — instead of a thin outline. */
.btn-ghost, a.btn-ghost, button.btn-ghost {
  position: relative; overflow: hidden; isolation: isolate;
  color: var(--color-ink);
  background-image: linear-gradient(135deg, #fbf6ec 0%, #f2e6cf 55%, #e8d7b6 100%);
  border: 2px solid; border-color: #fffaf1 #eadbbf #b49a72 #e4d2b1;
  box-shadow: 0 6px 16px -9px rgba(143, 106, 31, .55);
  transition: transform .2s ease, box-shadow .2s ease, color .2s ease;
}
.btn-ghost::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1;
  background: linear-gradient(110deg, transparent, rgba(255, 255, 255, .7), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-ghost:hover {
  color: var(--color-terracotta);
  border-color: #fffaf1 #eadbbf #b49a72 #e4d2b1; /* keep the lit edge (an older rule outlined it in terracotta) */
  background-image: linear-gradient(135deg, #fdf9f1 0%, #f5e9d2 55%, #ecd9b3 100%);
  transform: translateY(-2px); box-shadow: 0 10px 22px -10px rgba(143, 106, 31, .7);
}
.btn-ghost:hover::after { left: 125%; }
.btn-ghost:active { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .btn-ghost, .btn-ghost::after { transition: none; } .btn-ghost:hover { transform: none; } }

/* ---- Panel zamówień in the site's look ---- */
.page-content > .frame:first-child > .frame-type-panel > .panel-band:first-child { margin-top: -40px; }
.panel-band { margin-bottom: 26px; }
.panel-band__sub { margin: 10px 0 0; text-align: center; color: #eadfcb; font-size: .92rem; }
.panel-band__sub .order-badge, .panel-band__sub .file-badge { box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.panel-back { margin: 0 0 22px; }
.panel-back .btn { padding: 9px 18px; font-size: .92rem; }
.panel-denied { text-align: center; }
.panel-topbar { display: flex; align-items: center; gap: 14px; }
.panel-topbar__label { font-family: var(--font-serif); font-weight: 700; font-size: 1.05rem; color: var(--color-ink); position: relative; padding-bottom: 6px; }
.panel-topbar__label::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-terracotta)); }
.panel-topbar__backend { padding: 8px 16px; font-size: .88rem; }
.site-header.is-scrolled .panel-topbar__backend { padding-top: 5px; padding-bottom: 5px; }
span.site-logo { cursor: default; }
.panel-filter { transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.panel-filter:hover { transform: translateY(-1px); }
.panel-filter.is-active { background-image: linear-gradient(135deg, #3a3024, var(--color-ink)); border-color: #1a1510; box-shadow: 0 4px 12px -6px rgba(43, 36, 29, .6); }
.panel-card { position: relative; overflow: hidden; box-shadow: 0 10px 26px -20px rgba(43, 36, 29, .45); }
.panel-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--color-accent), var(--color-terracotta)); }
/* Extbase puts its hidden fields in a wrapper div — keep it out of the two-column grid. */
.panel-form > div:not(.form-element):not(.panel-form__wide) { display: none; }
.panel-card h3 { font-size: 1.15rem; position: relative; padding-bottom: 8px; margin-bottom: 14px; }
.panel-card h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--color-accent); }
.panel-orders tbody tr { transition: background-color .15s ease; }
.panel-orders tbody tr:hover td { background: #fdf9f1; }
.panel-orders td:first-child a { text-decoration: none; }
.panel-orders td:first-child a strong { font-family: var(--font-serif); font-size: 1.05rem; color: var(--color-terracotta); }

/* Automatic check results: coloured round icons (panel + "Moje konto"). */
.check-line { display: flex; align-items: flex-start; gap: 9px; }
.check-icon { flex: 0 0 auto; display: inline-grid; place-items: center; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  color: #fff; font: 700 12px/1 var(--font-sans); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 1px 2px rgba(43, 36, 29, .25); }
.check-line.is-ok .check-icon { background: linear-gradient(135deg, #4c9a56, #2f7a3a); }
.check-line.is-ok .check-icon::before { content: "✓"; }
.check-line.is-error .check-icon { background: linear-gradient(135deg, #d0513a, #a8331f); }
.check-line.is-error .check-icon::before { content: "✕"; }
.check-line.is-warning .check-icon { background: linear-gradient(135deg, #f2c94c, #d9a21b); color: #3a2c05; }
.check-line.is-warning .check-icon::before { content: "!"; font-size: 13px; }
.check-line.is-info .check-icon { background: linear-gradient(135deg, #4f8fd0, #2d68a8); }
.check-line.is-info .check-icon::before { content: "i"; font-family: var(--font-serif); font-style: italic; font-size: 13px; }
.check-line.is-error { color: #8c2a18; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* A button standing on its own under a block of content (e.g. "← Wszystkie kategorie" under the
   tiles, "Wróć do katalogu") keeps clear of it — one rule for the whole site. */
p:has(> .btn:only-child), .catalog-back { margin-top: 32px; }

.terms-list { margin: 6px 0 4px; }

/* System messages (flash messages: "link sent", "password saved", panel/registration notices). */
.typo3-messages { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.account-centered .typo3-messages { max-width: 560px; margin-left: auto; margin-right: auto; text-align: left; }
.typo3-messages .alert { position: relative; display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px 14px 16px; border-radius: var(--radius);
  background: var(--color-bg-card); border: 1px solid var(--color-border); border-left: 4px solid #2d68a8; box-shadow: 0 10px 24px -20px rgba(43, 36, 29, .5);
  animation: notice-in .5s cubic-bezier(.16, .84, .44, 1) both; }
.typo3-messages .alert::before { flex: 0 0 auto; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; color: #fff;
  font: 700 13px/1 var(--font-sans); content: "i"; font-family: var(--font-serif); font-style: italic; background: linear-gradient(135deg, #4f8fd0, #2d68a8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.typo3-messages .alert-title { margin: 0 0 2px; font-size: 1rem; }
.typo3-messages .alert-message { margin: 0; line-height: 1.5; }
.typo3-messages .alert-success { border-left-color: #2f7a3a; }
.typo3-messages .alert-success::before { content: "✓"; font-family: var(--font-sans); font-style: normal; background: linear-gradient(135deg, #4c9a56, #2f7a3a); }
.typo3-messages .alert-warning { border-left-color: #d9a21b; }
.typo3-messages .alert-warning::before { content: "!"; font-family: var(--font-sans); font-style: normal; color: #3a2c05; background: linear-gradient(135deg, #f2c94c, #d9a21b); }
.typo3-messages .alert-danger { border-left-color: #a8331f; }
.typo3-messages .alert-danger::before { content: "✕"; font-family: var(--font-sans); font-style: normal; background: linear-gradient(135deg, #d0513a, #a8331f); }
@media (prefers-reduced-motion: reduce) { .typo3-messages .alert { animation: none; } }

/* 404 page: button row */
.frame-type-text:has(.error-actions) { text-align: center; }
.error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 22px 0 26px; }
.error-actions .btn { margin: 0; }

/* Orders panel: project from the online editor */
.panel-design__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.panel-design h4 { font-family: var(--font-sans); font-size: 1rem; margin: 0 0 8px; }
.panel-design__box { border-left: 3px solid var(--color-border); padding: 2px 0 2px 10px; margin-bottom: 10px; }
.panel-design__text { margin: 0 0 2px; font-weight: 600; }
.panel-design__box .panel-muted { margin: 0; font-size: .85rem; }

.panel-design__files { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin: 6px 0 16px; }
.panel-design__files > p { flex-basis: 100%; margin: 0; }
.panel-design__file { flex-basis: 100%; }
.panel-design__file p { margin: 0 0 8px; }
@media (min-width: 620px) { .panel-design__file { grid-template-columns: 260px 1fr; } }
.panel-design__preview { display: block; width: 100%; max-width: 260px; height: auto; border: 1px solid var(--color-border); border-radius: 4px; background: #fff; }
.panel-design__group { margin: 12px 0 2px !important; font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--color-muted); }
.panel-proof { display: grid; grid-template-columns: 1fr; gap: 6px 18px; margin: 0 0 18px; padding: 14px 0 0; border-top: 1px solid var(--color-border); }
@media (min-width: 720px) { .panel-proof { grid-template-columns: minmax(0, 220px) minmax(0, 1fr); } .panel-proof h4, .panel-proof > p { grid-column: 1 / -1; } }
.panel-proof__image img { display: block; width: 100%; max-width: 220px; height: auto; border: 1px solid var(--color-border); border-radius: 4px; }
.panel-proof__side p { margin: 0 0 10px; }
.panel-proof__send { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.panel-proof__send .panel-muted { font-size: .85rem; }
