/* ASTONVISA – butikowa pracownia opakowań.
   Błękit nagłówka i granat z oryginału + mosiądz (złocenie hot stamping) jako jedyny akcent. */
:root {
  --cherry: #a50f2d;
  --navy: #0b1d36;
  --navy-2: #152b4a;
  --blue: #2d6aa8;
  --sky: #adcce9;
  --mist: #eef3f8;
  --paper: #fbfcfd;
  --ink: #1a2433;
  --muted: #566376;
  --line: #d3dce6;
  --line-soft: #e4eaf1;
  --brass: #a98550;
  --brass-d: #7d5f2f;
  --ok: #17703f;
  --err: #a8261d;
  --r: 6px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --serif: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: #8da6c2 var(--mist); }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; caret-color: var(--navy); }
::selection { background: var(--navy); color: #fff; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--brass); }
a:hover { color: var(--blue); }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; color: var(--navy); line-height: 1.08; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 5.2vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); letter-spacing: -.005em; }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 2px; }

/* ---------- nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--sky); border-bottom: 1px solid rgba(11, 29, 54, .14); }
.site-header { transition: box-shadow .4s var(--ease); }
.site-header.is-scrolled { box-shadow: 0 12px 28px -16px rgba(11, 29, 54, .45); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 72px; transition: min-height .4s var(--ease); }
.is-scrolled .header-row { min-height: 60px; }
.brand { text-decoration: none; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; letter-spacing: .24em; color: var(--navy); text-indent: .24em; }
.site-nav { display: flex; align-items: center; gap: 32px; }
.site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.site-nav li a { position: relative; display: block; padding: 10px 14px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: .88rem; letter-spacing: .02em; }
.site-nav li a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.site-nav li a:hover::after, .site-nav li a.is-active::after { transform: scaleX(1); }
.badge { display: inline-block; min-width: 1.45em; padding: 0 .45em; border-radius: 99px; background: var(--navy); color: #fff; font-size: .68rem; font-weight: 700; text-align: center; line-height: 1.7; vertical-align: 1px; }
.langs { display: flex; gap: 10px; padding-left: 26px; border-left: 1px solid rgba(11, 29, 54, .2); }
.langs a { display: block; line-height: 0; border-radius: 3px; opacity: .6; transition: opacity .2s; }
.langs a:hover, .langs a.is-active { opacity: 1; }
.langs a.is-active img { outline: 1px solid var(--navy); outline-offset: 2px; }
.langs img { border-radius: 2px; display: block; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--navy); margin: 6px 0; }

@media (max-width: 1240px) and (min-width: 961px) {
  .site-nav { gap: 14px; }
  .site-nav li a { padding: 10px 8px; font-size: .84rem; }
  .langs { padding-left: 14px; gap: 7px; }
}
.site-nav li a { white-space: nowrap; }
@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .site-nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--sky); flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 20px 20px; border-bottom: 1px solid rgba(11, 29, 54, .14); display: none; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav li a::after { display: none; }
  .langs { padding: 10px 14px 0; border-left: 0; }
}

/* ---------- przyciski / formularze ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 30px; border-radius: 2px; border: 1px solid var(--navy); background: var(--navy); color: #fff; font: 700 .8rem var(--font); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease); }
.btn::before { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-18deg); transition: left .7s var(--ease); z-index: -1; pointer-events: none; }
.btn:hover::before { left: 120%; }
.btn:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-ghost { background: transparent; color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-lg { padding: 17px 38px; }

label, .label { display: block; font-weight: 700; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 7px; color: var(--navy); }
input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password], select, textarea {
  width: 100%; padding: 12px 14px; border: 1px solid #bcc9d7; border-radius: 3px; font: inherit; background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
textarea { min-height: 140px; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: #8da6c2; }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(173, 204, 233, .7); }
input[type=file] { font: inherit; font-size: .9rem; }
.field { margin-bottom: 18px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; font-size: .9rem; text-transform: none; letter-spacing: 0; color: var(--ink); }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { padding: 14px 18px; border-radius: 3px; margin: 16px 0; font-weight: 600; font-size: .92rem; border: 1px solid transparent; }
.msg-ok { background: #e8f4ed; color: #11522f; border-color: #b5dcc4; }
.msg-err { background: #fbeceb; color: #7d1b14; border-color: #efc2be; }
.msg-info { background: var(--mist); color: var(--navy); border-color: var(--sky); }
.sum-note { font-size: .82rem; color: var(--muted); }

/* ---------- strona główna ---------- */
.hero { position: relative; background: linear-gradient(180deg, var(--paper) 0%, var(--mist) 100%); overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero-in { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); align-items: center; gap: 0; min-height: clamp(560px, 78vh, 840px); }
.hero-card { padding: 40px 0 56px; position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); letter-spacing: .14em; margin: 0; line-height: .95; font-weight: 600; }
.hero .bar { width: min(340px, 100%); margin: 14px 0 14px; display: block; opacity: .85; }
.hero h2 { font-family: var(--font); font-weight: 700; font-size: .85rem; letter-spacing: .32em; text-transform: uppercase; color: var(--brass-d); margin: 0 0 1em; }
.hero-lead { font-family: var(--serif); font-weight: 600; font-size: clamp(1.25rem, 1.9vw, 1.65rem); line-height: 1.15; color: var(--cherry); margin: 0 0 .3em; max-width: 20em; text-wrap: balance; }
.hero-sub { color: var(--navy); font-size: .92rem; font-weight: 500; max-width: 46ch; margin: 0 0 1.5em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-img { align-self: end; position: relative; z-index: 1; }
.hero-img img { display: block; width: 124%; max-width: none; margin-left: -16%; height: auto; object-fit: contain; -webkit-mask-image: linear-gradient(to right, transparent, #000 26%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 22%); -webkit-mask-composite: source-in; mask-image: linear-gradient(to right, transparent, #000 26%, #000 90%, transparent), linear-gradient(to bottom, transparent, #000 22%); mask-composite: intersect; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-card > * { animation: rise 1.1s var(--ease) both; }
.hero-card > :nth-child(2) { animation-delay: .08s; }
.hero-card > :nth-child(3) { animation-delay: .16s; }
.hero-card > :nth-child(4) { animation-delay: .22s; }
.hero-card > :nth-child(5) { animation-delay: .3s; }
.hero-card > :nth-child(6) { animation-delay: .38s; }
.hero-img img { animation: rise 1.4s var(--ease) .1s both; translate: 0 var(--py, 0px); will-change: translate; }
@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-card { padding: 44px 0 0; }
  .hero-img { order: 2; margin: 0 -20px; }
  .hero-img img { width: 100%; margin-left: 0; }
}

section.block { padding: clamp(64px, 9vw, 120px) 0; }
#torby { padding-top: clamp(48px, 6vw, 80px); scroll-margin-top: 70px; }
.scroll-cue { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--navy); text-decoration: none; font: 700 .72rem var(--font); letter-spacing: .18em; text-transform: uppercase; }
.scroll-cue:hover { color: var(--brass-d); }
.scroll-cue svg { color: var(--brass-d); animation: cue 1.8s var(--ease) infinite; }
@keyframes cue { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(4px); } }
@media (max-width: 860px) { .scroll-cue { display: none; } }
.block-title { text-align: center; margin-bottom: clamp(36px, 5vw, 64px); }
.block-title::after { content: ""; display: block; width: 56px; height: 1px; background: var(--brass); margin: 20px auto 0; }
.bg-sky { background: var(--mist); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.cat { display: flex; flex-direction: column; text-align: center; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); padding: 14px 14px 30px; transition: border-color .3s; }
.cat:hover { border-color: var(--brass); }
.cat-img { aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; border-radius: 3px; background: radial-gradient(circle at 50% 38%, #fff 0%, var(--mist) 80%); margin-bottom: 26px; }
.cat-img img { max-height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform .8s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.05) translateY(-4px); }
.cat h3 { padding: 0 14px; }
.cat p { color: var(--muted); font-size: .94rem; padding: 0 22px; flex: 1; }
.cat .btn { align-self: center; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 36px 36px 8px 0; }
.feature + .feature { padding-left: 36px; border-left: 1px solid var(--line); }
.feature h3 { font-size: 1.7rem; margin-bottom: .35em; }
.feature p { color: var(--muted); font-size: .96rem; max-width: 34ch; }
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .feature, .feature + .feature { padding: 28px 0 6px; border-left: 0; border-bottom: 1px solid var(--line); }
}

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; list-style: none; padding: 0; margin: 0; }
.steps li { counter-increment: s; font-size: 1.05rem; font-weight: 500; padding-top: 20px; border-top: 1px solid var(--navy); }
.steps li::before { content: counter(s); display: block; font-family: var(--serif); font-size: 3.4rem; font-weight: 500; line-height: 1; color: var(--brass); margin-bottom: 14px; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- strony wewnętrzne ---------- */
.page-head { padding: clamp(40px, 6vw, 76px) 0 28px; }
.page-head h1::after { content: ""; display: block; width: 56px; height: 1px; background: var(--brass); margin-top: 22px; }
.page-head p { color: var(--muted); max-width: 64ch; margin-top: 22px; }
.tinted { background: linear-gradient(rgba(5, 15, 32, .62), rgba(5, 15, 32, .62)), var(--navy) url('../../images/kw3.jpg') center/cover fixed; padding: clamp(40px, 6vw, 80px) 0; }
.panel { background: #fff; border-radius: var(--r); box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .55); padding: clamp(22px, 3vw, 40px); }
.advice { display: flex; gap: clamp(18px, 3vw, 32px); align-items: flex-start; background: var(--navy); color: #eaf1f8; border-radius: var(--r); border-top: 4px solid var(--brass); padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 24px 50px -26px rgba(11, 29, 54, .6); }
.advice-icon { flex: none; color: var(--brass); margin-top: 2px; }
.advice-body { flex: 1; min-width: 0; }
.advice h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin: 0 0 .5em; }
.advice-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px clamp(20px, 3vw, 44px); margin-bottom: 22px; }
.advice p { margin: 0; font-size: 1.02rem; line-height: 1.6; color: #eaf1f8; max-width: none; }
.advice a:not(.btn) { color: #fff; font-weight: 800; text-decoration-color: var(--brass); text-decoration-thickness: 2px; }
.advice a:not(.btn):hover { color: var(--brass); }
.btn-brass { background: var(--brass); border-color: var(--brass); color: var(--navy); }
.btn-brass:hover { background: #c19a62; border-color: #c19a62; color: var(--navy); }
.advice-icon circle:first-child { transform-origin: center; animation: ring 2.6s var(--ease) 1.2s 2; }
@keyframes ring { 0% { stroke-width: 2.4; opacity: 1; } 40% { stroke-width: 5; opacity: .55; } 100% { stroke-width: 2.4; opacity: 1; } }
@media (max-width: 760px) { .advice { flex-direction: column; } .advice-cols { grid-template-columns: 1fr; } }

/* kalkulator */
.calc { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.ptabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.ptab { display: flex; align-items: center; gap: 12px; padding: 8px 20px 8px 8px; border-radius: 3px; border: 1px solid var(--line); background: #fff; cursor: pointer; font: 700 .85rem var(--font); color: var(--navy); text-align: left; transition: border-color .2s, background .2s; }
.ptab:hover { border-color: var(--navy); }
.ptab img { width: 46px; height: 46px; object-fit: contain; mix-blend-mode: multiply; background: var(--mist); border-radius: 2px; }
.ptab[aria-pressed=true] { border-color: var(--navy); background: var(--mist); box-shadow: inset 0 -2px 0 var(--brass); }
fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 6px; padding: 18px 0 8px; min-width: 0; }
legend { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; color: var(--navy); padding: 0 14px 0 0; float: left; width: 100%; margin-bottom: 12px; }
legend + * { clear: both; }
.radios { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px; padding-bottom: 12px; }
.radio { display: flex; align-items: center; gap: 12px; font-weight: 500; font-size: .92rem; letter-spacing: 0; text-transform: none; color: var(--ink); padding: 12px 14px; border: 1px solid var(--line); border-radius: 3px; cursor: pointer; margin: 0; transition: border-color .2s, background .2s; }
.radio:hover { border-color: #8da6c2; }
.radio:has(input:checked) { border-color: var(--navy); background: var(--mist); box-shadow: inset 0 -2px 0 var(--brass); }
.radio input { width: 17px; height: 17px; accent-color: var(--navy); flex: none; }
.qty-row { display: grid; grid-template-columns: 1fr 120px; gap: 20px; align-items: center; padding-bottom: 14px; }
input[type=range] { width: 100%; accent-color: var(--navy); }
.summary { position: sticky; top: 96px; }
.summary h2 { font-size: 2rem; margin-bottom: .3em; }
.sum-table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-variant-numeric: tabular-nums; }
.sum-table td { padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: .93rem; color: var(--muted); }
.sum-table td:last-child { text-align: right; white-space: nowrap; font-weight: 700; color: var(--ink); }
.sum-table tr.total td { border-bottom: 0; border-top: 1px solid var(--navy); padding-top: 18px; font-family: var(--serif); font-size: 1.7rem; font-weight: 600; color: var(--navy); }
.sum-actions { display: grid; gap: 12px; }
.is-busy { opacity: .6; transition: opacity .2s; }

/* dane kontaktowe */
.contact-h { font-family: var(--font); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-d); margin: 18px 0 8px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.contact-list li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.contact-list .who { color: var(--muted); font-size: .9rem; }
.contact-list a.wa { display: inline-flex; line-height: 0; border-radius: 50%; transition: transform .25s var(--ease); }
.contact-list a.wa:hover { transform: scale(1.12); }

/* adres i telefon */
fieldset.addr { border: 0; border-top: 1px solid var(--line); margin: 6px 0 12px; padding: 14px 0 0; }
fieldset.addr legend { padding: 0 12px 0 0; font-size: 1.3rem; }
.hint { display: block; margin-top: 6px; color: var(--muted); font-size: .8rem; line-height: 1.4; }
address.addr-lines { font-style: normal; display: flex; flex-direction: column; gap: 2px; margin-bottom: 14px; line-height: 1.5; }

/* rozmiary: sekcje i rysunek wymiarów */
.size-group + .size-group { margin-top: 10px; }
.size-group-title { font-family: var(--font); font-size: .8rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-d); margin: 18px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-soft); }
.radio .rt { display: flex; flex-direction: column; line-height: 1.3; }
.radio .rd { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.dims-fig { display: flex; gap: 22px; align-items: center; margin: 0 0 6px; padding: 12px 16px; background: var(--mist); border-radius: 4px; }
.dims-fig svg { flex: none; color: var(--navy); max-width: 46%; height: auto; }
.dims-fig figcaption { font-size: .9rem; color: var(--ink); }
.dims-fig ol { margin: 8px 0 0; padding-left: 1.3em; color: var(--muted); }
@media (max-width: 560px) { .dims-fig { flex-direction: column; align-items: flex-start; } .dims-fig svg { max-width: 220px; } }
.sum-table tr.est td { font-size: .92rem; color: var(--muted); font-weight: 600; }
.sum-table tr.est td:last-child { font-family: var(--font); font-weight: 700; color: var(--ink); }

/* koszyk */
.cart-list { list-style: none; margin: 0 0 26px; padding: 0; border-top: 1px solid var(--navy); }
.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-item img { width: 76px; height: 76px; object-fit: contain; mix-blend-mode: multiply; background: var(--mist); border-radius: 3px; }
.cart-item h3 { font-size: 1.35rem; margin-bottom: 6px; }
.cart-item ul { margin: 4px 0 12px; padding: 0; list-style: none; font-size: .86rem; color: var(--muted); }
.cart-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: .86rem; font-weight: 600; }
.cart-meta input[type=number] { width: 110px; padding: 8px 10px; }
.cart-price { text-align: right; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; color: var(--navy); white-space: nowrap; font-variant-numeric: tabular-nums; }
.linkbtn { background: none; border: 0; color: var(--err); cursor: pointer; font: inherit; font-size: .84rem; text-decoration: underline; text-underline-offset: .2em; padding: 4px; }
.done { text-align: center; padding: clamp(40px, 7vw, 80px) 24px; max-width: 720px; margin-inline: auto; }
.done .num { display: inline-block; margin: 10px 0 24px; padding: 14px 34px; border: 1px solid var(--brass); border-radius: 2px; font: 600 2.2rem var(--serif); letter-spacing: .1em; color: var(--navy); }

/* realizacje */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.work { margin: 0; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r); overflow: hidden; transition: border-color .3s; }
.work:hover { border-color: var(--brass); }
.work button { all: unset; display: block; width: 100%; cursor: zoom-in; overflow: hidden; }
.work img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--mist); transition: transform .9s var(--ease); }
.work:hover img { transform: scale(1.04); }
.work figcaption { padding: 20px 22px 26px; }
.work h3 { font-size: 1.5rem; margin-bottom: 6px; }
.work p { margin: 0; color: var(--muted); font-size: .92rem; }
dialog.lightbox { border: 0; padding: 0; background: transparent; max-width: min(92vw, 1000px); }
dialog.lightbox::backdrop { background: rgba(5, 15, 32, .86); }
dialog.lightbox img { max-width: 100%; max-height: 82vh; display: block; margin: auto; border-radius: 3px; background: #fff; }
dialog.lightbox .btn { margin-top: 14px; background: #fff; color: var(--navy); }

/* kontakt / regulamin */
.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.prose { max-width: 74ch; }
.prose h2 { font-size: 1.8rem; margin-top: 1.8em; }
.draft-note { background: #fbf4e6; border: 1px solid #e8d4a2; padding: 12px 16px; border-radius: 3px; font-size: .86rem; max-width: 80ch; }

/* ---------- stopka ---------- */
.site-footer { background: var(--navy); color: #b8c6d8; margin-top: clamp(40px, 6vw, 80px); padding-top: 56px; border-top: 1px solid var(--brass); }
.site-footer a { color: #d4deea; text-decoration-color: rgba(169, 133, 80, .6); }
.site-footer a:hover { color: #fff; }
.footer-row { display: grid; grid-template-columns: 1.2fr 1.4fr 1fr; gap: 32px; padding-bottom: 36px; font-size: .92rem; }
.footer-brand { font-family: var(--serif); letter-spacing: .24em; font-size: 1.7rem; font-weight: 700; color: #fff; display: block; margin-bottom: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; align-content: start; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 18px 0 28px; font-size: .78rem; color: #8398b2; }
@media (max-width: 760px) { .footer-row { grid-template-columns: 1fr; } }

@media (max-width: 900px) { .tinted { background-attachment: scroll; } }

/* ---------- animacje ---------- */
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 100% { transform: scale(1); } }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* wejście elementów przy przewijaniu (klasa .reveal dodawana przez JS) */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
/* mosiężne linie „rysują się” */
.js .block-title::after, .js .page-head h1::after { transform-origin: left; }
.js .block-title.reveal::after { transform: scaleX(0); transform-origin: center; transition: transform 1.1s var(--ease) .35s; }
.js .block-title.reveal.in::after { transform: scaleX(1); }
.js .steps li.reveal { border-top-color: transparent; }
.js .steps li.reveal.in { border-top-color: var(--navy); transition: opacity 1s var(--ease), transform 1s var(--ease), border-color 1s ease .3s; transition-delay: var(--d, 0s); }
.js .features.reveal { border-top-color: transparent; }
.js .features.reveal.in { border-top-color: var(--line); }

/* strony wewnętrzne: nagłówek wjeżdża po kolei */
.page-head > * { animation: rise 1s var(--ease) both; }
.page-head > :nth-child(2) { animation-delay: .1s; }
.page-head > :nth-child(3) { animation-delay: .2s; }

/* kalkulator / koszyk */
.swap { animation: rise .55s var(--ease) both; }
.badge.bump { animation: bump .6s var(--ease); }
.cart-item.enter { animation: rise .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
#added-msg:not([hidden]), .done:not([hidden]) { animation: pop .6s var(--ease) both; }
.msg:not([hidden]) { animation: fadein .35s ease both; }
.sum-table td:last-child { transition: color .3s; }
.ptab img, .cat-img img { transition: transform .8s var(--ease); }
.ptab:hover img { transform: scale(1.08); }
.radio, .ptab { transition: border-color .25s, background .25s, box-shadow .35s var(--ease); }

/* lightbox */
dialog.lightbox[open] { animation: pop .4s var(--ease) both; }
dialog.lightbox[open]::backdrop { animation: fadein .4s ease both; }

/* menu mobilne */
@media (max-width: 960px) { .site-nav.is-open { animation: pop .35s var(--ease) both; } }
@media print { .js .reveal { opacity: 1 !important; transform: none !important; } }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .hero-img img { translate: none !important; }
}
