/* czcionki z własnego serwera (bez łączenia z Google) */
@font-face { font-family: "Crimson Text"; font-weight: 400; font-display: swap; src: url(fonts/crimson-400-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Text"; font-weight: 400; font-display: swap; src: url(fonts/crimson-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-display: swap; src: url(fonts/crimson-600-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Crimson Text"; font-weight: 600; font-display: swap; src: url(fonts/crimson-600-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Mulish"; font-weight: 400 700; font-display: swap; src: url(fonts/mulish-latin-ext.woff2) format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Mulish"; font-weight: 400 700; font-display: swap; src: url(fonts/mulish-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Układ i proporcje wzorowane na urbanstems.com, kolory w różu i bieli */
:root {
  --bg: #fcf9f8;
  --white: #ffffff;
  --blush: #f8e8ea;
  --blush-strong: #f1d3d8;
  --ink: #2b2026;
  --ink-soft: #6b5a61;
  --line: #ead9dc;

  --serif: "Crimson Text", Georgia, serif;
  --sans: "Mulish", system-ui, sans-serif;

  --page: min(1360px, 100% - 2 * var(--pad));
  --pad: clamp(16px, 2.6vw, 40px);
  --radius: 4px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.005em; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- pasek informacyjny ---------- */
.announce {
  background: var(--blush-strong);
  text-align: center;
  font-size: 13px;
  padding: 9px var(--pad);
}
.announce p { margin: 0; }
.announce a { font-weight: 700; }

/* ---------- nawigacja ---------- */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 64px; padding: 0 var(--pad);
  background: rgba(252, 249, 248, 0.94);
  border-bottom: 1px solid var(--line);
}
.nav__links { display: flex; gap: 22px; }
.nav__links a, .nav__text {
  font-family: var(--serif); font-size: 17px; text-decoration: none;
  transition: color 160ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__links a:hover, .nav__text:hover { color: var(--ink-soft); }
}
.logo {
  font-family: var(--serif); font-weight: 600; font-size: 21px;
  text-transform: uppercase; letter-spacing: 0.28em; text-decoration: none;
  white-space: nowrap; margin-right: -0.28em;
}
.nav__side { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.nav__icon { display: grid; place-items: center; width: 44px; height: 44px; margin: -6px; border-radius: 50%; transition: background-color 160ms var(--ease-out); }
.nav__icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.nav__icon .fill { fill: currentColor; stroke: none; }
@media (hover: hover) and (pointer: fine) { .nav__icon:hover { background: var(--blush); } }

/* ---------- przyciski ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: var(--radius); border: 1px solid transparent;
  font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) {
  .btn--dark:hover { background: #46353d; }
  .btn--light:hover { border-color: var(--ink); }
}
.link-caps {
  font: 700 12px/1 var(--sans); text-transform: uppercase; letter-spacing: 0.14em;
  text-decoration: none; padding-bottom: 4px; border-bottom: 1.5px solid currentColor;
  white-space: nowrap;
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  width: var(--page); margin: 24px auto 0;
  background: var(--blush);
  border-radius: var(--radius);
  overflow: hidden;
  --hero-h: clamp(340px, calc(100svh - 140px), 720px);
  grid-template-columns: minmax(0, 1fr) calc(var(--hero-h) * 0.75);
  height: var(--hero-h);
}
.hero__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(32px, 5vw, 80px);
}
.hero h1 { font-size: clamp(36px, 3.6vw, 52px); line-height: 1.1; max-width: 17ch; }
.hero__text > p { margin: 18px 0 0; font-size: 17px; color: var(--ink-soft); max-width: 44ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__photo { position: relative; min-height: 0; }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }

/* ---------- okazje ---------- */
.occasions { width: var(--page); margin: 80px auto 0; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 2.4vw, 32px); line-height: 1.2; }

.scroller { position: relative; }
.occasions__row {
  list-style: none; margin: 0; padding: 0 0 4px;
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15.5vw, 212px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.occasions__row::-webkit-scrollbar { display: none; }
.occasions__row li { scroll-snap-align: start; }
.occasions__row a { display: block; text-decoration: none; }
.occasions__row img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); background: var(--blush);
  transition: transform 400ms var(--ease-out);
}
.occasions__row span { display: block; margin-top: 12px; text-align: center; font-family: var(--serif); font-size: 18px; }
.occasions__row a:active img { transform: scale(0.98); transition-duration: 120ms; }
@media (hover: hover) and (pointer: fine) {
  .occasions__row a:hover img { transform: translateY(-4px); }
}
.scroller__track { width: min(386px, 60%); height: 3px; margin: 28px auto 0; background: var(--line); border-radius: 3px; overflow: hidden; }
.scroller__thumb { display: block; height: 100%; width: 40%; background: var(--ink); border-radius: 3px; transform-origin: left; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.section-head--center { justify-content: center; flex-direction: column; align-items: center; gap: 10px; }
.btn--white { background: var(--white); color: var(--ink); }

/* ---------- konfigurator (jak karta produktu) ---------- */
.builder {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  width: var(--page); margin: 120px auto 0;
  padding-top: 64px; border-top: 1px solid var(--line);
  scroll-margin-top: 64px;
}
.builder__sticky { position: sticky; top: 88px; }
.builder__photo {
  position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius);
  background: radial-gradient(120% 90% at 50% 40%, #fdf8f6 0%, #f6e7e8 55%, #eed9dc 100%);
}
.builder__drawing { position: absolute; inset: 0; width: 100%; height: 100%; }
.bq-flower { transition: color 280ms var(--ease-out); }
.bq-pop { animation: bq-pop 380ms var(--ease-out) both; transform-box: fill-box; transform-origin: center; }
.bq-fade { animation: bq-fade 320ms var(--ease-out) both; }
.bq-late { animation-delay: 120ms; }
@keyframes bq-pop { from { opacity: 0; transform: scale(0.7); } }
@keyframes bq-fade { from { opacity: 0; } }
/* zdjęcie z pracowni: mała miniatura, nigdy większa niż jej rozmiar */
.builder__thumb {
  position: absolute; right: 14px; bottom: 14px; margin: 0; width: clamp(72px, 18%, 110px);
  padding: 4px 4px 0; background: var(--white); border-radius: var(--radius);
  box-shadow: 0 6px 18px rgba(43, 32, 38, 0.14);
}
.builder__thumb img {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 2px;
  transition: opacity 240ms var(--ease-out), transform 500ms var(--ease-out);
}
.builder__thumb img.is-swapping { opacity: 0; transform: scale(0.98); }
.builder__thumb figcaption { padding: 4px 0 5px; font-size: 11px; font-weight: 600; text-align: center; color: var(--ink-soft); }
.field__hint { font-size: 13px; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .bq-pop, .bq-fade { animation: none; } .bq-flower { transition: none; } }
.builder__photo-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }

.builder__form h2 { font-size: clamp(32px, 3vw, 42px); line-height: 1.1; }
.builder__price { margin: 10px 0 0; font-family: var(--serif); font-size: 26px; }
.builder__price small { font-family: var(--sans); font-size: 14px; color: var(--ink-soft); margin-left: 6px; }
.builder__lead { margin: 14px 0 0; color: var(--ink-soft); max-width: 52ch; }

.opt { border: 0; margin: 0; padding: 26px 0 0; min-width: 0; }
.opt + .opt { margin-top: 26px; border-top: 1px solid var(--line); }
.opt legend { float: left; width: 100%; padding: 0; margin-bottom: 14px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; }
.opt legend + * { clear: both; }
.opt__value { font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-size: 15px; margin-left: 8px; }
.opt__hint { margin: 12px 0 0; font-size: 14px; color: var(--ink-soft); }
.opt__grid { display: grid; gap: 8px; }
.opt__grid--2 { grid-template-columns: repeat(2, 1fr); }
.opt__grid--3 { grid-template-columns: repeat(3, 1fr); }
.opt__grid--5 { grid-template-columns: repeat(5, 1fr); }
.opt__grid--6 { grid-template-columns: repeat(6, 1fr); }

.tile { position: relative; cursor: pointer; }
.tile input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tile > span {
  display: flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 15px; font-weight: 600;
  transition: border-color 160ms var(--ease-out), background-color 160ms var(--ease-out), transform 140ms var(--ease-out);
}
.tile--stack > span { flex-direction: column; gap: 2px; min-height: 60px; }
.tile small { font-size: 13px; font-weight: 400; color: var(--ink-soft); }
.tile:active > span { transform: scale(0.97); }
.tile input:checked + span { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--blush); }
.tile input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .tile:hover input:not(:checked) + span { border-color: #c9b2b7; } }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; }
.swatch { position: relative; cursor: pointer; padding: 2px; }
.swatch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.swatch i {
  display: block; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c); border: 1px solid rgba(43, 32, 38, 0.15);
  outline: 1.5px solid transparent; outline-offset: 3px;
  transition: outline-color 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.swatch:active i { transform: scale(0.92); }
.swatch input:checked + i { outline-color: var(--ink); }
.swatch input:focus-visible + i { outline: 2px solid var(--ink); }
.swatch input:disabled + i { opacity: 0.35; cursor: not-allowed; }
@media (hover: hover) and (pointer: fine) { .swatch:hover input:not(:checked):not(:disabled) + i { outline-color: #c9b2b7; } }

.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.extras .tile > span { justify-content: space-between; text-align: left; padding: 8px 14px; font-weight: 500; }
.extras .tile small { white-space: nowrap; margin-left: 8px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field--wide { grid-column: 1 / -1; }
.field--short { max-width: 220px; margin-top: 12px; }
.field > span { font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  font: 400 16px/1.4 var(--sans); color: var(--ink);
  transition: border-color 160ms var(--ease-out);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }

.summary { margin-top: 36px; padding: 28px; background: var(--blush); border-radius: var(--radius); scroll-margin-top: 80px; }
.summary h3 { font-size: 24px; margin-bottom: 14px; }
.summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; font-size: 15px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-weight: 600; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--blush-strong); font-weight: 700; }
.summary__total strong { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.summary__actions { display: grid; gap: 8px; margin-top: 20px; }
.summary__preview { margin-top: 16px; font-size: 14px; }
.summary__preview summary { cursor: pointer; font-weight: 600; width: fit-content; padding-block: 12px; }
.summary__preview pre { white-space: pre-wrap; font: 400 14px/1.5 var(--sans); background: var(--white); padding: 14px 16px; border-radius: var(--radius); margin: 10px 0 0; }

/* ---------- cennik ---------- */
.prices { width: var(--page); margin: 120px auto 0; scroll-margin-top: 80px; }
.tabs { display: flex; gap: 24px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.tabs button {
  background: none; border: 0; padding: 12px 2px 12px; margin-bottom: -1px; cursor: pointer; min-height: 44px;
  font: 600 15px/1 var(--sans); color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--ink); }
.price-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.price-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 28px 16px 20px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color 200ms var(--ease-out), transform 300ms var(--ease-out);
}
.price-card__count { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price-card__name { margin-top: 4px; font-family: var(--serif); font-size: 19px; }
.price-card__price { margin: 14px 0 18px; font-size: 18px; font-weight: 700; }
.price-card .btn { width: 100%; min-height: 42px; padding: 0 12px; }
@media (hover: hover) and (pointer: fine) { .price-card:hover { border-color: #c9b2b7; transform: translateY(-3px); } }
.prices__note { margin: 20px 0 0; font-size: 14px; color: var(--ink-soft); }

/* ---------- dwa kafle ---------- */
.promos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; width: var(--page); margin: 120px auto 0; }
.promo { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 4.4; max-height: 760px; text-decoration: none; color: var(--white); }
.promo img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-out); }
.promo::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(to top, rgba(30, 18, 24, 0.78), rgba(30, 18, 24, 0.35) 55%, rgba(30, 18, 24, 0)); }
.promo__text { position: absolute; z-index: 1; right: 32px; bottom: 32px; left: 32px; display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.promo__title { font-family: var(--serif); font-size: clamp(28px, 2.6vw, 36px); line-height: 1.1; }
.promo__lead { margin: 8px 0 18px; font-size: 15px; max-width: 34ch; }
@media (hover: hover) and (pointer: fine) { .promo:hover img { transform: scale(1.03); } }

/* ---------- pracownia ---------- */
.story { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(32px, 6vw, 96px); width: var(--page); margin: 120px auto 0; }
.story__photo { justify-self: end; width: min(100%, 560px); }
.story__photo img { width: 100%; border-radius: var(--radius); }
.story__text { position: relative; max-width: 480px; }
.story__text h2 { font-size: clamp(30px, 2.8vw, 40px); line-height: 1.15; }
.story__text p { margin: 18px 0 0; color: var(--ink-soft); }
.story__text .btn { margin-top: 28px; }
.stamp { position: absolute; right: 24px; bottom: -88px; width: 120px; height: 120px; }
/* obraca się tylko napis po okręgu, środek stoi */
.stamp__ring { transform-box: view-box; transform-origin: 50% 50%; animation: spin 40s linear infinite; }
.stamp circle { fill: none; stroke: var(--ink); stroke-width: 1; }
.stamp text { font: 600 9.4px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; fill: var(--ink); }
.stamp .stamp__mid { font: 400 15px var(--serif); letter-spacing: 0; text-transform: none; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .stamp__ring { animation: none; } }

/* ---------- cechy ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; width: min(980px, 100% - 2 * var(--pad)); margin: 120px auto 0; text-align: center; }
.features img { width: min(100%, 260px); aspect-ratio: 4 / 5; object-fit: cover; margin: 0 auto; border-radius: var(--radius); }
/* grafika „Dostępne kolory” jest kwadratowa: cała, tło dopasowane do jej tła */
.features .palette { display: block; width: min(100%, 260px); aspect-ratio: 4 / 5; margin: 0 auto; border-radius: var(--radius); }
.features h3 { margin-top: 18px; font-size: 22px; }
.features p { margin: 8px auto 16px; font-size: 15px; color: var(--ink-soft); max-width: 30ch; }

/* ---------- galeria ---------- */
.gallery { margin-top: 120px; padding: 80px 0; background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.gallery .section-head { width: var(--page); margin: 0 auto 32px; }
.gallery__row {
  list-style: none; margin: 0; padding: 0 var(--pad);
  display: flex; align-items: center; gap: 14px;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--pad); scrollbar-width: none;
}
.gallery__row::-webkit-scrollbar { display: none; }
.gallery__row li { flex: none; scroll-snap-align: start; }
.gallery__row img { border-radius: var(--radius); object-fit: cover; }
.g-tall img { width: 280px; height: 360px; }
.g-pair { display: grid; gap: 14px; }
.g-pair img { width: 200px; height: 220px; }

/* ---------- pytania ---------- */
.faq { width: min(820px, 100% - 2 * var(--pad)); margin: 120px auto 0; scroll-margin-top: 80px; }
.faq h2 { font-size: clamp(28px, 2.4vw, 34px); text-align: center; margin-bottom: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-family: var(--serif); font-size: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px); transition: transform 220ms var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq details p { margin: 0 0 20px; color: var(--ink-soft); max-width: 62ch; }

/* ---------- stopka ---------- */
.footer { margin-top: 120px; background: #f4ebe8; }
.footer__inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
  width: var(--page); margin: 0 auto; padding: 64px 0 56px;
}
.logo--footer { margin: 0; font-size: 20px; }
.footer__pitch { margin: 22px 0 22px; font-family: var(--serif); font-size: 22px; line-height: 1.3; max-width: 26ch; }
.footer__col { display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer__col a { text-decoration: none; width: fit-content; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { text-decoration: underline; } }
.footer__col p { margin: 0; color: var(--ink-soft); }
.footer__head { font-size: 12px !important; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink) !important; margin-bottom: 6px !important; }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; width: var(--page); margin: 0 auto; padding: 18px 0 22px; border-top: 1px solid #e6d6d3; font-size: 13px; color: var(--ink-soft); }
.footer__bottom p { margin: 0; }

/* ---------- komunikat ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 20;
  padding: 12px 20px; border-radius: var(--radius);
  background: var(--ink); color: var(--white); font-size: 14px; font-weight: 600;
  white-space: pre-line; text-align: center;
  box-shadow: 0 8px 24px rgba(43, 32, 38, 0.2);
  opacity: 0; transform: translate(-50%, 10px); pointer-events: none;
  transition: opacity 200ms var(--ease-out), transform 260ms var(--ease-out);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- ruch jak na ubezpieczenia-bogatynia.pl ----------
   wejście hero przy załadowaniu (640 ms, lekkie rozmycie), sekcje raz przy przewinięciu (14 px / 560 ms, co 60 ms),
   płynne FAQ. Bez skryptu wszystko widać od razu. */
:root { interpolate-size: allow-keywords; }
.js .hero__text > *, .js .hero__photo { animation: enter 640ms var(--ease-out) both; }
.js .hero h1 { animation-delay: 0ms; }
.js .hero__text > p { animation-delay: 70ms; }
.js .hero__actions { animation-delay: 140ms; }
.js .hero__photo { animation-delay: 120ms; }
@keyframes enter { from { opacity: 0; transform: translateY(12px); filter: blur(4px); } }

.js .rv { opacity: 0; transform: translateY(14px); transition: opacity 560ms var(--ease-out), transform 560ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js .rv.on { opacity: 1; transform: none; }

.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size 260ms var(--ease-out), content-visibility 260ms allow-discrete; }
.faq details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: reduce) {
  .js .hero__text > *, .js .hero__photo { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .faq details::details-content { transition: none; }
}

/* ---------- tablet i telefon ---------- */
@media (max-width: 960px) {
  /* menu na telefonie: drugi rząd z linkami pod logo, przewijany w poziomie */
  .nav { grid-template-columns: auto 1fr; grid-template-rows: 60px 44px; height: auto; }
  .nav__links {
    grid-column: 1 / -1; grid-row: 2; align-items: center; gap: 24px;
    margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad);
    border-top: 1px solid var(--line);
    overflow-x: auto; scrollbar-width: none; white-space: nowrap;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { font-size: 16px; line-height: 44px; }
  #okazje, #galeria, #pytania, .builder, .prices, .faq, .summary { scroll-margin-top: 116px; }
  .logo { font-size: 17px; letter-spacing: 0.2em; }
  .hero { grid-template-columns: 1fr; height: auto; }
  .hero__photo { order: -1; min-height: 0; aspect-ratio: 1; }
  .hero__photo img { position: static; height: 100%; }
}
@media (max-width: 760px) {
  .nav__text { display: none; }
  .hero { grid-template-columns: 1fr; height: auto; margin-top: 16px; }
  .hero__photo { order: -1; min-height: 0; aspect-ratio: 4 / 5; }
  .hero__photo img { position: static; height: 100%; }
  .hero__text { padding: 28px 22px 32px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .occasions { margin-top: 56px; width: 100%; }
  .section-head { padding: 0 var(--pad); }
  .occasions__row { grid-auto-columns: 44vw; gap: 12px; padding: 0 var(--pad) 4px; scroll-padding-inline: var(--pad); }

  .builder, .prices, .promos, .story { margin-top: 80px; }
  .builder { grid-template-columns: 1fr; padding-top: 40px; }
  .builder__sticky { position: static; }
  .builder__photo { aspect-ratio: 4 / 3; }
  .opt__grid--6 { grid-template-columns: repeat(3, 1fr); }
  .opt__grid--5 { grid-template-columns: repeat(3, 1fr); }
  .extras, .fields { grid-template-columns: 1fr; }
  .summary { padding: 22px 18px; }

  .price-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding: 0 var(--pad); scroll-padding-inline: var(--pad); gap: 10px; }
  .price-card { flex: 0 0 40vw; scroll-snap-align: start; }

  .promos { grid-template-columns: 1fr; }
  .promo { aspect-ratio: 4 / 4.6; }
  .promo__text { left: 20px; right: 20px; bottom: 22px; }

  .story { grid-template-columns: 1fr; }
  .story__photo { justify-self: stretch; width: 100%; }
  .stamp { display: none; }

  .features { grid-template-columns: 1fr; gap: 48px; margin-top: 96px; }

  .gallery { margin-top: 96px; padding: 56px 0; }
  .g-tall img { width: 220px; height: 290px; }
  .g-pair img { width: 160px; height: 138px; }

  .faq { margin-top: 96px; }
  .faq summary { font-size: 18px; }

  .footer { margin-top: 96px; }
  .footer__inner { grid-template-columns: 1fr 1fr; padding: 48px 0 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 4px; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .opt__grid--6 { grid-template-columns: repeat(3, 1fr); }
  .opt__grid--5 { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: 1fr; }
  .price-row { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

/* ---------- strony prawne i 404 ---------- */
.legal { width: min(760px, 100% - 2 * var(--pad)); margin: 56px auto 96px; }
.legal h1 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; }
.legal h2 { font-size: 22px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); max-width: 68ch; }
.legal ul { padding-left: 20px; }
.legal__date { margin-top: 10px; font-size: 14px; }
.legal__back { display: inline-block; margin-top: 40px; }
.notfound { width: min(640px, 100% - 2 * var(--pad)); margin: 96px auto 120px; text-align: center; }
.notfound h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.1; }
.notfound p { color: var(--ink-soft); margin: 16px 0 28px; }
.nav--simple { display: flex; justify-content: center; }
body:has(> .legal), body:has(> .notfound) { display: flex; flex-direction: column; min-height: 100svh; }
body:has(> .legal) > main, body:has(> .notfound) > main { flex: 1 0 auto; }

/* link „przejdź do treści”: widoczny tylko przy nawigacji klawiaturą */
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--ink); color: var(--white); border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
main:focus { outline: none; }
.gallery__row:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ustawienia dodatków (cyferki, serduszka, mini kokardki) */
.extra-opts > div { margin-top: 14px; display: grid; gap: 10px; }
.extra-opts > div[hidden] { display: none; }
.field__label { margin: 0; font-size: 14px; font-weight: 600; }
