/* ===== MOON Flowers — inner pages: shop, product, content, legal, forms ===== */

.page { background: var(--bg); min-height: 50vh; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 896px; }

/* ---------- page hero (Figma Sklep → HeroCatalogTitle) ---------- */
.phero { text-align: center; padding: 40px var(--gutter) 24px; }
.phero__eyebrow { font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: 3px; text-transform: uppercase; color: var(--slate); }
.phero__title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 56px; line-height: 60px; letter-spacing: -.5px; color: var(--ink); }
.phero__sub { max-width: 576px; margin: 8px auto 0; padding-top: 4px; font-size: 16px; line-height: 24px; font-weight: 300; color: var(--muted); }

.crumbs { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; font-size: 12px; letter-spacing: .3px; color: var(--muted); }
.crumbs a:hover { color: var(--navy); }
.crumbs span[aria-hidden] { opacity: .5; }
.crumbs--left { justify-content: flex-start; }

/* ---------- shop: categories ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; padding: 8px 0; }
.chip {
  height: 42px; padding: 0 20px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-sky);
  font-size: 14px; font-weight: 500; letter-spacing: .3px; color: var(--ink);
  transition: background-color .2s, border-color .2s;
}
.chip:not(.is-active):hover { border-color: var(--sky); }
.chip.is-active { background: var(--sky); border-color: var(--sky); }
.cat-desc { min-height: 20px; margin-top: 8px; text-align: center; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 20px; color: var(--muted); }

/* ---------- shop: filter panel ---------- */
.filters {
  margin-top: 32px; padding: 25px; border-radius: 16px; background: #fff; border: 1px solid var(--line-sky);
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.05));
  display: flex; flex-direction: column; gap: 16px;
}
.filters__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.filters__label { margin-bottom: 8px; font-size: 11px; line-height: 16.5px; font-weight: 600; letter-spacing: .55px; text-transform: uppercase; color: var(--slate); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; }
.preset {
  padding: 7px 15px; border-radius: 8px; background: #fff; border: 1px solid var(--line-sky);
  font-size: 12px; line-height: 16px; font-weight: 500; color: #334155; transition: .2s;
}
.preset:not(.is-active):hover { border-color: var(--sky); }
.preset.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.range { display: flex; align-items: center; gap: 12px; }
.range__box {
  display: flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 8px;
  background: #fff; border: 1px solid var(--line-sky); font-size: 12px; line-height: 16px; color: #94a3b8;
}
.range__box:focus-within { border-color: var(--sky); }
.range__box input { width: 56px; border: 0; outline: 0; text-align: center; font: 500 12px/16px var(--sans); color: #1f2a44; background: none; -moz-appearance: textfield; }
.range__box input::-webkit-outer-spin-button, .range__box input::-webkit-inner-spin-button { -webkit-appearance: none; }
.range__dash { font-size: 16px; color: var(--ink); }
.range__apply { padding: 6px 12px; border-radius: 8px; background: var(--sky); font-size: 12px; line-height: 16px; font-weight: 500; color: var(--ink); transition: .2s; }
.range__apply:hover { background: #8aa9c9; }
.sort { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #64748b; }
.select {
  appearance: none; -webkit-appearance: none; min-width: 150px; padding: 7px 33px 7px 13px; border-radius: 8px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%232e3a4b' stroke-width='1.4'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 9px center;
  border: 1px solid var(--line-sky); font: 500 12px/16px var(--sans); color: #1f2a44; cursor: pointer;
}
.filters__info { display: flex; justify-content: space-between; align-items: center; padding-top: 13px; border-top: 1px solid var(--line-sky); font-size: 12px; line-height: 16px; font-weight: 500; color: #1f2a44; }
.filters__info b { font-weight: 600; }
.filters__reset { font-size: 11px; color: var(--muted); text-decoration: underline; }
.filters__reset:hover { color: var(--navy); }

/* ---------- shop: grid + card (Figma Sklep → Article) ---------- */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-top: 40px; }
.pgrid__empty { grid-column: 1 / -1; padding: 64px 0; text-align: center; color: var(--muted); font-size: 15px; line-height: 24px; }
.pcard {
  position: relative; display: flex; flex-direction: column; min-height: 483.75px; padding: 16px;
  background: #fff; border: 1px solid var(--line-sky); border-radius: 16px; transition: box-shadow .3s, transform .3s;
}
.pcard { container-type: inline-size; }
.pcard:hover { box-shadow: 0 10px 30px -12px rgba(24,36,53,.18); transform: translateY(-2px); }
.pcard__media { position: relative; display: block; height: 311.25px; border-radius: 8px; overflow: hidden; background: #edf4ff; margin-bottom: 14px; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__add { top: 28px; right: 28px; }
.pbadge {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 4px;
  font-size: 10px; line-height: 15px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase;
}
.pbadge { max-width: calc(100% - 64px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* narrow cards (e.g. 4 in a narrow column): stack price above the button */
@container (max-width: 225px) {
  .pcard .pcard__foot { flex-direction: column; align-items: stretch; gap: 10px; }
  .pcard .pcard__btn { width: 100%; text-align: center; padding: 10px 8px; }
  .pcard .pcard__title { font-size: 19px; line-height: 25px; }
}
.pbadge--bestseller { background: rgba(220,230,242,.9); color: #1f2a44; backdrop-filter: blur(2px); }
.pbadge--sezonowe { background: #fef3c7; color: #78350f; }
.pcard__info { display: flex; flex-direction: column; gap: 4px; padding-bottom: 12px; flex: 1; }
.pcard__label { font-size: 10px; line-height: 15px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__title { font-family: var(--serif); font-weight: 500; font-size: 20px; line-height: 28px; color: var(--ink); }
.pcard__title a:hover { color: var(--slate); }
.pcard__desc { font-size: 12px; line-height: 16px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 9px; border-top: 1px solid #f1f5f9; }
.pcard__price small { display: block; font-size: 10px; line-height: 12.5px; color: #94a3b8; text-transform: uppercase; }
.pcard__price b { font-size: 16px; line-height: 24px; font-weight: 600; color: #1f2a44; white-space: nowrap; }
.pcard__btn { flex-shrink: 0; white-space: nowrap; padding: 8px 16px; border-radius: 2px; background: var(--navy); color: #fff; font-size: 12px; line-height: 16px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; transition: background-color .2s; }
.pcard__btn:hover { background: #26364d; }

/* ---------- pagination ---------- */
.pager { display: flex; justify-content: center; gap: 8px; padding: 40px 0 8px; }
.pager button {
  width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line-sky);
  font-size: 14px; font-weight: 500; color: var(--ink); display: grid; place-items: center; transition: .2s;
}
.pager button:hover:not(:disabled):not(.is-active) { border-color: var(--sky); }
.pager button.is-active { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.pager button:disabled { opacity: .45; cursor: default; }

/* ---------- florist CTA (Figma Sklep) ---------- */
.cta {
  margin: 32px 0 64px; padding: 48px; text-align: center;
  background: #fff; border: 1px solid var(--line-sky); border-radius: 16px;
}
.cta__title { max-width: 576px; margin: 8px auto 0; font-family: var(--serif); font-weight: 400; font-size: 40px; line-height: 40px; color: var(--ink); }
.cta__text { max-width: 600px; margin: 16px auto 24px; font-size: 14px; line-height: 20px; font-weight: 300; color: var(--muted); }
.btn-wa { display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 32px; border-radius: 2px; background: var(--navy); color: #fff; font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; transition: background-color .2s; }
.btn-wa:hover { background: #26364d; }
.btn-wa svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-wa__num { white-space: nowrap; }

/* ---------- product page ---------- */
.pp { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; padding: 24px 0 64px; }
.pp__gallery { position: sticky; top: 150px; align-self: start; }
.pp__main { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #edf4ff; }
.pp__main img { width: 100%; height: 100%; object-fit: cover; }
.pp__thumbs { display: flex; gap: 12px; margin-top: 12px; }
.pp__thumbs button { width: 84px; height: 100px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; opacity: .7; transition: .2s; }
.pp__thumbs button.is-active, .pp__thumbs button:hover { border-color: var(--sky); opacity: 1; }
.pp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pp__label { font-size: 11px; line-height: 15px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.pp__title { margin-top: 8px; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 52px; letter-spacing: -.5px; color: var(--ink); }
.pp__rating { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.pp__rating .stars { margin: 0; }
.pp__price { margin-top: 20px; font-size: 28px; line-height: 32px; font-weight: 600; color: var(--navy); }
.pp__price small { font-size: 12px; font-weight: 400; color: var(--muted); margin-left: 8px; }
.pp__desc { margin-top: 16px; font-size: 15px; line-height: 25px; font-weight: 300; color: var(--muted); }
.pp__block { margin-top: 28px; }
.pp__block-title { margin-bottom: 12px; font-size: 11px; line-height: 16px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--slate); }
.sizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.size {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px 16px; border-radius: 12px;
  background: #fff; border: 1px solid var(--line-sky); text-align: left; transition: .2s;
}
.size b { font-family: var(--serif); font-size: 22px; line-height: 26px; font-weight: 500; color: var(--ink); }
.size span { font-size: 12px; color: var(--muted); }
.size em { font-style: normal; font-size: 13px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.size:not(.is-active):hover { border-color: var(--sky); }
.size.is-active { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.pp__buy { display: flex; gap: 12px; margin-top: 28px; }
.qty--lg { margin: 0; height: 52px; border-radius: 2px; }
.qty--lg button { width: 44px; height: 50px; font-size: 18px; }
.qty--lg span { min-width: 28px; font-size: 15px; }
.pp__buy .btn-dark { flex: 1; height: 52px; font-size: 12px; }
.pp__buy .btn-outline { height: 52px; padding: 0 24px; border-radius: 2px; }
.pp__perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.perk { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: var(--bg-box); font-size: 12px; line-height: 16px; color: var(--ink); }
.perk img { width: 18px; height: 18px; object-fit: contain; }
.pp__acc { margin-top: 28px; border-top: 1px solid var(--line-soft); }
.pp__acc details { border-bottom: 1px solid var(--line-soft); }
.pp__acc summary { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.pp__acc summary::-webkit-details-marker { display: none; }
.pp__acc summary img { width: 10px; transition: transform .25s; }
.pp__acc details[open]:not(.is-closing) summary img { transform: rotate(180deg); }
.pp__acc .acc-body { padding: 0 0 18px; font-size: 14px; line-height: 23px; font-weight: 300; color: var(--muted); }
.pp__acc ul { margin: 0; padding-left: 18px; list-style: disc; }
.related { padding: 0 0 72px; }
.related .section-head { margin-bottom: 24px; }
.related__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.related__grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------- content pages ---------- */
.content { padding-top: 8px; padding-bottom: 80px; }
.card {
  background: #fff; border: 1px solid var(--line-sky); border-radius: 16px; padding: 40px;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.05));
}
.card + .card { margin-top: 24px; }
.card__title { font-family: var(--serif); font-weight: 400; font-size: 32px; line-height: 38px; color: var(--ink); margin-bottom: 16px; }
.card__eyebrow { margin-bottom: 6px; }

.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tabs a { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line-sky); font-size: 12px; font-weight: 500; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink); transition: .2s; }
.tabs a:hover { border-color: var(--sky); background: var(--sky); }

.prose { font-size: 15px; line-height: 26px; font-weight: 300; color: #44505f; }
.prose h2 { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 36px; color: var(--ink); margin: 40px 0 12px; }
.prose h3 { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 14px; padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose a { color: var(--navy); text-decoration: underline; text-underline-offset: 2px; }
.prose strong { font-weight: 600; color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.prose th { font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate); background: var(--bg-soft); }
.note { padding: 16px 20px; border-radius: 12px; background: rgba(200,227,254,.35); font-size: 14px; line-height: 22px; color: var(--ink); }
.note--warn { background: #fef3c7; color: #78350f; }

.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 40px; }
.toc { position: sticky; top: 150px; align-self: start; display: flex; flex-direction: column; gap: 2px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line-sky); }
.toc p { margin-bottom: 8px; }
.toc a { padding: 6px 8px; border-radius: 6px; font-size: 13px; line-height: 18px; color: var(--muted); }
.toc a:hover { background: var(--bg); color: var(--navy); }
.legal__meta { margin-bottom: 24px; font-size: 12px; color: var(--muted); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature { padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line-sky); }
.feature .pillar__icon { margin-bottom: 16px; }
.feature h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; line-height: 28px; color: var(--ink); margin-bottom: 8px; }
.feature p { font-size: 14px; line-height: 22px; font-weight: 300; color: var(--muted); }

.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 20px; }
.slot { padding: 14px 16px; border-radius: 12px; background: var(--bg-box); }
.slot b { display: block; font-size: 15px; color: var(--ink); }
.slot span { font-size: 12px; color: var(--muted); }
.slot--extra { background: #fef3c7; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split__img { border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; }
.split__img img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; text-align: center; }
.stat b { display: block; font-family: var(--serif); font-weight: 400; font-size: 48px; line-height: 52px; color: var(--ink); }
.stat span { font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label, .flabel { font-size: 11px; line-height: 14px; font-weight: 500; letter-spacing: .6px; text-transform: uppercase; color: var(--slate); }
.input {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 8px;
  background: #f2f4f8; border: 1px solid #c3cad4; outline: 0;
  font: 400 15px/22px var(--sans); color: var(--navy); transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea.input { height: auto; min-height: 120px; padding: 12px 16px; resize: vertical; }
.input:focus { border-color: var(--navy); background: #fff; box-shadow: 0 0 0 3px rgba(156,183,211,.3); }
.input::placeholder { color: #94a3b8; }
.is-invalid .input, .is-invalid .phone { border-color: #dc2626; background: #fff5f5; }
.field__err { display: none; font-size: 11px; color: #dc2626; }
.is-invalid .field__err { display: block; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 20px; color: var(--muted); cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 20px; height: 20px; margin: 0; border-radius: 4px; border: 1.5px solid #94a3b8; background: #fff; cursor: pointer; display: grid; place-items: center; transition: .15s; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: translateY(-1px) rotate(-45deg); }
.check.is-invalid input { border-color: #dc2626; }
.check a { color: var(--navy); text-decoration: underline; }
.form-success { grid-column: 1 / -1; padding: 16px 20px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: 14px; line-height: 22px; }

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.cinfo { display: flex; flex-direction: column; gap: 20px; }
.cinfo__row { display: flex; gap: 14px; }
.cinfo__ic { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; background: var(--bg-box); display: grid; place-items: center; }
.cinfo__ic svg { width: 18px; height: 18px; color: var(--ink); }
.cinfo__row p { font-size: 14px; line-height: 22px; color: var(--muted); }
.cinfo__row b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.cinfo__row a:hover { color: var(--navy); text-decoration: underline; }
.map { margin-top: 24px; height: 340px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-sky); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- blog ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-sky); border-radius: 16px; overflow: hidden; transition: box-shadow .3s, transform .3s; }
.post:hover { box-shadow: 0 10px 30px -12px rgba(24,36,53,.18); transform: translateY(-2px); }
.post__img { aspect-ratio: 4 / 3; overflow: hidden; }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.post:hover .post__img img { transform: scale(1.04); }
.post__body { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post__meta { font-size: 11px; letter-spacing: 1.2px; text-transform: uppercase; color: var(--muted); }
.post__title { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 30px; color: var(--ink); }
.post__lead { font-size: 14px; line-height: 22px; font-weight: 300; color: var(--muted); }
.post__more { margin-top: auto; padding-top: 8px; font-size: 12px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); }
.article__hero { aspect-ratio: 16 / 7; border-radius: 16px; overflow: hidden; margin-bottom: 40px; }
.article__hero img { width: 100%; height: 100%; object-fit: cover; }
.article__lead { font-size: 18px; line-height: 30px; font-weight: 300; color: var(--ink); margin-bottom: 24px; }

/* ---------- confirmation / 404 ---------- */
.done { max-width: 640px; margin: 0 auto; padding: 72px 0 96px; text-align: center; }
.done__ic { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 50%; background: var(--sky); display: grid; place-items: center; }
.done__ic svg { width: 30px; height: 30px; color: var(--navy); }
.done__num { display: inline-block; margin: 16px 0 8px; padding: 8px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line-sky); font-weight: 600; letter-spacing: 1px; color: var(--navy); }
.done__actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.done .card { text-align: left; margin-top: 32px; padding: 28px; }
.done__row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.done__row:last-child { border: 0; }
.done__row b { color: var(--ink); font-weight: 500; text-align: right; }
.big404 { font-family: var(--serif); font-size: 160px; line-height: 1; color: var(--sky); }

/* ---------- cookie banner ---------- */
.cookie {
  position: fixed; left: 24px; bottom: 24px; z-index: 110; width: min(440px, calc(100% - 32px));
  padding: 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line-sky);
  box-shadow: 0 20px 40px -12px rgba(16,28,44,.25);
  opacity: 0; transform: translateY(16px); transition: opacity .3s, transform .3s;
}
.cookie.is-visible { opacity: 1; transform: none; }
.cookie__title { font-family: var(--serif); font-size: 22px; line-height: 28px; font-weight: 500; color: var(--ink); }
.cookie__text { margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--muted); }
.cookie__text a { color: var(--navy); text-decoration: underline; }
.cookie__prefs { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; padding: 14px; border-radius: 12px; background: var(--bg); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.cookie__actions .btn-dark { flex: 1; }
.btn-outline--sm { padding: 0 14px; height: 40px; border-radius: 2px; font-size: 11px; letter-spacing: 1.2px; box-shadow: none; }
.switch { position: relative; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink); cursor: pointer; }
.switch small { color: var(--muted); font-size: 11px; }
.switch input { position: absolute; opacity: 0; }
.switch span { width: 34px; height: 20px; border-radius: 999px; background: #cbd5e1; position: relative; transition: .2s; flex-shrink: 0; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--navy); }
.switch input:checked + span::after { transform: translateX(14px); }
.switch input:disabled + span { opacity: .6; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .pgrid, .related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters__row { flex-wrap: wrap; justify-content: flex-start; gap: 20px 28px; }
}
/* grid children must be allowed to shrink (otherwise wide content stretches the page) */
.legal > *, .pp > *, .contact > *, .split > * { min-width: 0; }
.prose td, .prose th { overflow-wrap: anywhere; }
@media (max-width: 1024px) {
  .pp { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .pp__gallery { position: static; }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  .contact, .split { grid-template-columns: minmax(0, 1fr); }
  .features, .posts { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .prose table { font-size: 13px; }
  .prose th, .prose td { padding: 10px 8px; }
  .pp__buy { flex-wrap: wrap; }
  .pp__buy .btn-dark { flex: 1 1 0; min-width: 0; }
  .pp__buy .btn-outline { flex: 1 1 100%; justify-content: center; }
  .phero__title { font-size: 38px; line-height: 44px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 8px var(--gutter); }
  .chip { flex-shrink: 0; }
  .filters { padding: 18px; }
  .filters__row { flex-direction: column; align-items: stretch; gap: 16px; }
  .range { flex-wrap: wrap; }
  .sort .select { flex: 1; }
  .pgrid, .related__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard { padding: 10px; min-height: 0; }
  .pcard__media { height: 220px; }
  .pcard__add { top: 18px; right: 18px; }
  .pcard__title { font-size: 18px; line-height: 24px; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .pcard__btn { padding: 8px 6px; font-size: 11px; }
  .cta { padding: 32px 20px; }
  .cta__title { font-size: 30px; line-height: 34px; }
  .btn-wa { height: auto; padding: 14px 22px; font-size: 11px; text-align: center; line-height: 18px; justify-content: center; }
  .btn-wa svg { width: 24px; height: 24px; }
  .btn-wa__num { display: block; margin-top: 2px; opacity: .85; letter-spacing: 1.5px; }
  .pp__title { font-size: 36px; line-height: 40px; }
  .sizes { gap: 8px; }
  .size { padding: 12px; }
  .pp__perks { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; }
  .form { grid-template-columns: 1fr; }
  .features, .posts { grid-template-columns: 1fr; }
  .slots { grid-template-columns: 1fr 1fr; }
  .cookie { left: 16px; bottom: 16px; padding: 20px; }
  .big404 { font-size: 110px; }
}
