/*
Theme Name: Ścieg
Description: Biało-czerwony, minimalistyczny motyw WooCommerce marki Ścieg. Haft, nie nadruk.
Version: 1.0.0
Author: Ścieg
Text Domain: scieg
*/

:root {
  --white: #ffffff;
  --paper: #f8f6f4;
  --ink: #161314;
  --muted: #6e6668;
  --rule: #e6e1de;
  --red: #c8102e;
  --red-deep: #9b0d24;
  --font-display: "Bitter", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --wrap: 1180px;
  --r: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.eyebrow { font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--red-deep); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border-radius: var(--r); border: 1px solid transparent;
  background: var(--red); color: #fff; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: var(--red-deep); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--red-deep); }
.btn--white:hover { background: var(--paper); color: var(--red-deep); }

/* Ścieg: kreskowana linia jak przeszycie. Jedyny ornament motywu. */
.stitch { border: 0; height: 0; border-top: 2px dashed var(--red); opacity: .55; margin: 0; }
.stitch--ink { border-top-color: var(--rule); opacity: 1; }

/* ---------- Nagłówek ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 66px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: .08em; }
.brand__mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--red); border-radius: var(--r); }
.brand__mark img { width: 26px; }
.nav { display: none; gap: 26px; font-size: 15px; }
.nav a { position: relative; padding: 4px 0; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.nav a:hover::after, .nav a[aria-current]::after { transform: scaleX(1); }
.tools { display: flex; align-items: center; gap: 6px; }
.tools a, .tools summary { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: var(--r); font-size: 15px; cursor: pointer; list-style: none; }
.tools a:hover, .tools summary:hover { background: var(--paper); color: var(--ink); }
.tools svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.cart-count:empty, .cart-count[data-n="0"] { display: none; }
.menu-toggle summary::-webkit-details-marker { display: none; }
.menu-toggle { position: relative; }
.menu-toggle nav { position: absolute; right: 0; top: 46px; width: 260px; background: #fff; border: 1px solid var(--rule); border-radius: var(--r); box-shadow: 0 16px 40px rgba(0,0,0,.08); padding: 8px; display: flex; flex-direction: column; }
.menu-toggle nav a { padding: 10px 12px; border-radius: var(--r); }
.menu-toggle nav a:hover { background: var(--paper); }
@media (min-width: 1024px) { .nav { display: flex; } .menu-toggle { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 32px; padding-top: 48px; padding-bottom: 40px; }
.hero__text h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); letter-spacing: -.01em; }
.hero__text h1 em { font-style: normal; color: var(--red); }
.hero__lead { margin-top: 20px; font-size: 1.15rem; color: var(--muted); max-width: 46ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__note { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.hero__img { position: relative; aspect-ratio: 4/3; background: var(--paper); border-radius: var(--r); overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 5fr 6fr; align-items: center; padding-top: 64px; padding-bottom: 64px; gap: 56px; }
  .hero__img { aspect-ratio: 5/4; }
}
/* Pas flagi: biel przechodzi w czerwień, jak na fladze, z przeszyciem w połowie. */
.flag-band { height: 88px; display: grid; grid-template-rows: 1fr 1fr; }
.flag-band > span:first-child { background: #fff; border-bottom: 2px dashed var(--red); }
.flag-band > span:last-child { background: var(--red); }

/* ---------- Sekcje ---------- */
.section { padding: 72px 0; }
.section__head { max-width: 62ch; margin-bottom: 36px; }
.section__head h2 { margin-top: 10px; font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section__head p { margin-top: 12px; color: var(--muted); font-size: 1.05rem; }
.section--paper { background: var(--paper); }
.section--red { background: var(--red); color: #fff; }
.section--red .eyebrow { color: rgba(255,255,255,.75); }

.patterns { display: grid; gap: 28px; }
@media (min-width: 720px) { .patterns { grid-template-columns: repeat(3, 1fr); } }
.pattern__img { aspect-ratio: 4/5; overflow: hidden; background: var(--paper); border-radius: var(--r); }
.pattern__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.pattern:hover .pattern__img img { transform: scale(1.04); }
.pattern h3 { margin-top: 16px; font-size: 1.4rem; }
.pattern p { margin-top: 6px; color: var(--muted); }

.proofs { display: grid; gap: 32px; }
@media (min-width: 720px) { .proofs { grid-template-columns: repeat(3, 1fr); } }
.proof__n { font-family: var(--font-display); font-weight: 700; font-size: 3.2rem; color: var(--red); line-height: 1; }
.proof h3 { margin-top: 10px; font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }
.proof p { margin-top: 8px; color: var(--muted); }

.band { display: grid; gap: 24px; }
@media (min-width: 800px) { .band { grid-template-columns: 1fr auto; align-items: end; } }
.band h2 { margin-top: 8px; font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.band p { margin-top: 12px; color: rgba(255,255,255,.85); font-size: 1.1rem; max-width: 60ch; }

.duo { display: grid; gap: 20px; }
@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; } }
.tile { position: relative; min-height: 320px; display: grid; align-items: end; overflow: hidden; border-radius: var(--r); background: var(--paper); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s; }
.tile:hover img { transform: scale(1.03); }
.tile__body { position: relative; padding: 28px; background: linear-gradient(to top, rgba(0,0,0,.72), transparent); }
.tile__body .eyebrow { color: rgba(255,255,255,.75); }
.tile__body h2 { margin-top: 4px; font-size: 1.5rem; }
.tile__body p { margin-top: 8px; max-width: 44ch; color: rgba(255,255,255,.88); }
.tile__body .btn { margin-top: 16px; height: 44px; }

/* ---------- Karty produktów ---------- */
.products, ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px 20px; }
@media (min-width: 900px) { .products, ul.products { grid-template-columns: repeat(4, 1fr); } }
.products.columns-3 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .products.columns-3 { grid-template-columns: repeat(3, 1fr); } }
li.card { position: relative; }
.card__img { position: relative; aspect-ratio: 4/5; overflow: hidden; border-radius: var(--r); background: var(--paper); display: block; }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .45s; }
.card__img img.is-on { opacity: 1; }
.card__tag { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.95); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border-radius: var(--r); }
.card__variant { position: absolute; right: 12px; bottom: 12px; background: rgba(22,19,20,.82); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 8px; border-radius: var(--r); }
.card__meta { margin-top: 12px; display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.card h2, .card h3 { font-size: 1.15rem; font-weight: 600; }
.card__line { font-size: .9rem; color: var(--muted); margin-top: 2px; }
.card__price { font-weight: 600; white-space: nowrap; }
.card__price del { color: var(--muted); font-weight: 400; margin-right: 6px; }
.card__price ins { text-decoration: none; }
.dots { margin-top: 10px; display: flex; gap: 6px; }
.dots button { width: 10px; height: 10px; padding: 0; border-radius: 50%; border: 1px solid rgba(22,19,20,.4); background: transparent; cursor: pointer; }
.dots button[aria-selected="true"] { background: var(--red); border-color: var(--red); }

/* ---------- Archiwum sklepu ---------- */
.shop-head { padding: 44px 0 28px; }
.shop-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.shop-head p { margin-top: 10px; color: var(--muted); max-width: 60ch; }
.shop-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 16px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: 36px; }
.cats { display: flex; flex-wrap: wrap; gap: 6px; }
.cats a { padding: 6px 12px; border: 1px solid var(--rule); border-radius: 999px; font-size: .92rem; }
.cats a:hover, .cats a[aria-current] { border-color: var(--red); color: var(--red-deep); }
.woocommerce-result-count { display: none; }
.woocommerce-ordering select { height: 38px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul { list-style: none; display: flex; gap: 6px; padding: 0; margin: 0; }
.woocommerce-pagination a, .woocommerce-pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; border: 1px solid var(--rule); border-radius: var(--r); }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }
.shop-body { padding-bottom: 80px; }

/* ---------- Strona produktu ---------- */
.woocommerce-breadcrumb { font-size: .9rem; color: var(--muted); padding: 20px 0 0; }
.woocommerce-breadcrumb a { color: var(--muted); }
.single-product div.product { display: grid; gap: 36px; padding: 24px 0 40px; }
.single-product div.product > .woocommerce-tabs, .single-product div.product > .related { grid-column: 1 / -1; }
@media (min-width: 900px) { .single-product div.product { grid-template-columns: 7fr 5fr; column-gap: 64px; align-items: start; } .summary { position: sticky; top: 90px; } }
.woocommerce-product-gallery { position: relative; }
.woocommerce-product-gallery__wrapper { margin: 0; padding: 0; }
.woocommerce-product-gallery__image { border-radius: var(--r); overflow: hidden; background: var(--paper); }
.woocommerce-product-gallery__image img { width: 100%; }
.woocommerce-product-gallery .flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 10px 0 0; padding: 0; }
.woocommerce-product-gallery .flex-control-thumbs img { cursor: pointer; opacity: .55; border-radius: var(--r); transition: opacity .2s; aspect-ratio: 1; object-fit: cover; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { position: absolute; right: 12px; top: 12px; z-index: 5; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; font-size: 0; }
.woocommerce-product-gallery__trigger::before { content: "⌕"; font-size: 20px; color: var(--ink); }
.woocommerce-product-gallery__trigger img, .woocommerce-product-gallery__trigger span { display: none; }
.summary .eyebrow { margin-bottom: 8px; }
.summary .product_title { font-size: clamp(1.9rem, 3.4vw, 2.5rem); }
.summary .price { margin-top: 12px; font-size: 1.35rem; font-weight: 600; }
.summary .price del { color: var(--muted); font-weight: 400; }
.summary .price ins { text-decoration: none; }
.summary .woocommerce-product-details__short-description { margin-top: 16px; color: var(--muted); font-size: 1.05rem; }
.summary form.cart { margin-top: 24px; }
.summary table.variations { border-collapse: collapse; width: 100%; }
.summary table.variations td, .summary table.variations th { padding: 0; display: block; text-align: left; }
.summary table.variations tr { display: block; margin-bottom: 18px; }
.summary table.variations label { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; margin-bottom: 8px; }
.summary table.variations select { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.summary .reset_variations { display: none !important; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { min-width: 48px; height: 42px; padding: 0 14px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; cursor: pointer; transition: border-color .15s, background .15s; }
.chips button:hover { border-color: var(--ink); }
.chips button[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: #fff; }
.chips button:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.chips + select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.woocommerce-variation-price { margin-bottom: 12px; font-weight: 600; }
.woocommerce-variation-availability { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.woocommerce-variation-add-to-cart, .summary form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: stretch; }
.summary .quantity { display: flex; }
.summary .quantity input { width: 72px; height: 48px; text-align: center; border: 1px solid var(--rule); border-radius: var(--r); }
.woocommerce .summary .single_add_to_cart_button, .summary .single_add_to_cart_button { flex: 1; height: 48px; border: 0; border-radius: var(--r); background: var(--red); color: #fff; font-weight: 600; cursor: pointer; transition: background .2s; }
.woocommerce .summary .single_add_to_cart_button:hover, .summary .single_add_to_cart_button:hover { background: var(--red-deep); }
.summary .single_add_to_cart_button.disabled, .summary .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.summary .product_meta { margin-top: 24px; font-size: .9rem; color: var(--muted); }
.summary .product_meta > span { display: block; }
.promise { margin-top: 24px; padding: 16px 0 0; border-top: 2px dashed rgba(200,16,46,.55); display: grid; gap: 8px; font-size: .95rem; color: var(--muted); }
.promise strong { color: var(--ink); font-weight: 600; }
.woocommerce-tabs { padding-bottom: 72px; }
.woocommerce-tabs .tabs { list-style: none; display: flex; gap: 24px; margin: 0; padding: 0; border-bottom: 1px solid var(--rule); }
.woocommerce-tabs .tabs a { display: block; padding: 12px 0; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs .tabs .active a { color: var(--ink); border-bottom-color: var(--red); }
.woocommerce-tabs .panel { padding-top: 24px; max-width: 70ch; }
.woocommerce-tabs .panel h2 { font-size: 1.3rem; margin-bottom: 12px; }
.woocommerce-tabs .panel ul { padding-left: 1.2em; }
.woocommerce-tabs .panel li::marker { color: var(--red); }
.woocommerce-tabs table { border-collapse: collapse; width: 100%; }
.woocommerce-tabs th, .woocommerce-tabs td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.woocommerce-tabs td p { margin: 0; }
.related.products, .upsells.products { padding-bottom: 80px; }
.related > h2, .upsells > h2 { font-size: 1.7rem; margin-bottom: 28px; }

/* ---------- Komunikaty ---------- */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 20px 0; padding: 14px 18px; border-left: 3px solid var(--red); background: var(--paper); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.woocommerce-message .button, .woocommerce-info .button { order: 2; padding: 8px 14px; border: 1px solid var(--ink); border-radius: var(--r); font-weight: 600; }
.woocommerce-error { border-left-color: var(--red-deep); }

/* ---------- Bloki koszyka / zamówienia / konto ---------- */
.page-plain { padding: 40px 0 80px; }
.page-plain > h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 28px; }
.entry-content { max-width: 70ch; }
.entry-content p { margin: .9em 0; }
.entry-content h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.entry-content h3 { font-size: 1.15rem; margin: 1.6em 0 .5em; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li::marker { color: var(--red); }
.page-plain.is-wide .entry-content { max-width: none; }
.wc-block-components-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
  background: var(--red) !important; color: #fff !important; border-radius: var(--r) !important; font-weight: 600 !important; border: 0 !important;
}
.wc-block-components-button:hover { background: var(--red-deep) !important; }
.wc-block-components-product-name { font-family: var(--font-display); font-weight: 600; }
.wc-block-components-totals-item, .wc-block-components-order-summary { font-variant-numeric: tabular-nums; }
.wc-block-components-text-input input, .wc-block-components-select select, .wc-block-components-textarea textarea { border-radius: var(--r) !important; border-color: var(--rule) !important; }
.wc-block-components-text-input input:focus, .wc-block-components-select select:focus { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red) !important; }
.wc-block-components-checkout-step__heading, .wc-block-components-title { font-family: var(--font-display); }
.wc-block-components-radio-control__option--checked .wc-block-components-radio-control__input, .wc-block-components-checkbox__input:checked { border-color: var(--red) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--red) !important; }
.wc-block-components-checkbox__input:checked { background: var(--red) !important; }
a.wc-block-components-product-name, .wc-block-components-order-summary-item__description a { color: var(--ink); }
.wc-block-components-sidebar-layout .wc-block-components-sidebar { border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.wc-block-cart__empty-cart__title { font-family: var(--font-display); }
.wp-block-button__link { background: var(--red); border-radius: var(--r); font-weight: 600; }
.woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 6px; }
.woocommerce-MyAccount-navigation a { display: block; padding: 8px 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: .95rem; }
.woocommerce-MyAccount-navigation .is-active a { border-color: var(--red); color: var(--red-deep); }
.woocommerce-account .woocommerce-form-login, .woocommerce-account .woocommerce-form-register { max-width: 440px; }
.woocommerce form .form-row { margin-bottom: 14px; }
.woocommerce form .form-row label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 6px; }
.woocommerce form .form-row input:not([type="checkbox"]), .woocommerce form .form-row select, .woocommerce form .form-row textarea { width: 100%; height: 46px; padding: 0 12px; border: 1px solid var(--rule); border-radius: var(--r); background: #fff; }
.woocommerce form .form-row textarea { height: auto; padding: 10px 12px; }
.woocommerce .button, .woocommerce button.button { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border: 0; border-radius: var(--r); background: var(--ink); color: #fff; font-weight: 600; cursor: pointer; }
.woocommerce .button:hover { background: var(--red); color: #fff; }
.woocommerce table.shop_table { border-collapse: collapse; width: 100%; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { text-align: left; padding: 12px 8px; border-bottom: 1px solid var(--rule); }

/* ---------- Newsletter / zaufanie ---------- */
.trust { display: grid; gap: 16px; padding: 28px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) { .trust { grid-template-columns: repeat(4, 1fr); } }
.trust div { font-size: .95rem; color: var(--muted); }
.trust strong { display: block; color: var(--ink); font-weight: 600; }

/* ---------- Stopka ---------- */
.site-footer { border-top: 1px solid var(--rule); background: var(--paper); margin-top: auto; }
.site-footer .wrap { padding: 56px 20px 32px; display: grid; gap: 32px; }
@media (min-width: 800px) { .site-footer .wrap { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h3 { font-family: var(--font-body); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .95rem; }
.site-footer p { color: var(--muted); max-width: 40ch; font-size: .95rem; }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .legal { grid-column: 1 / -1; padding-top: 24px; border-top: 2px dashed rgba(200,16,46,.45); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .85rem; color: var(--muted); }
body { min-height: 100vh; display: flex; flex-direction: column; }
.site-main { flex: 1; }

/* Ruch: odsłanianie przy przewijaniu; bez JS wszystko widoczne. */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s, transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .card__img img, .pattern__img img, .tile img { transition: none; }
}
