/* Górskie Studio — strony pomocnicze: /zaplac/ i /admin/ */
:root {
  --bg: #f6f1ea; --card: #fff; --ink: #161514; --muted: #6b645c; --line: #e9e1d6;
  --oak: #b07a42; --pine: #2d5b45; --pine-2: #234836; --night: #0f0b18; --dawn: #f2b45c; --err: #b3261e;
  --r: 16px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 'Manrope', system-ui, sans-serif; }
h1, h2, h3 { font-family: 'Young Serif', Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0; }
a { color: var(--pine); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
.mono { font-family: 'DM Mono', ui-monospace, monospace; }

.top { background: var(--night); color: #fff; }
.top .in { max-width: 980px; margin: 0 auto; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: 'Young Serif', Georgia, serif; font-size: 1.25rem; }
.brand img { width: 30px; height: 30px; }
.top .who { font-size: .8rem; color: #b9b2c7; }

.wrap { max-width: 980px; margin: 0 auto; padding: 24px 16px 64px; }
.narrow { max-width: 640px; }
.card { background: var(--card); border-radius: var(--r); padding: 22px; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 10px 30px -20px rgba(15,11,24,.25); }
.card + .card { margin-top: 16px; }
.pill { display: inline-block; border-radius: 999px; padding: 4px 11px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: #85561f; }
.pill.pine { background: var(--pine); } .pill.grey { background: #8a837a; } .pill.night { background: var(--night); } .pill.err { background: var(--err); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 12px; }

.btn { appearance: none; border: 0; border-radius: 999px; background: var(--ink); color: #fff; padding: 12px 22px; font-weight: 700; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; }
.btn.pine { background: var(--pine); } .btn.pine:hover { background: var(--pine-2); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.danger { background: transparent; color: var(--err); box-shadow: inset 0 0 0 1.5px var(--err); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; min-height: 36px; font-size: .875rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--dawn); outline-offset: 2px; }

.items { list-style: none; margin: 0; padding: 0; background: #f6f1ea; border-radius: 12px; }
.items li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.items li + li { border-top: 1px solid var(--line); }
.items .t { font-weight: 700; } .items .m { font-size: .85rem; color: var(--muted); }
.items .p { font-weight: 700; white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 12px 14px 0; }
.total b { font-family: 'Young Serif', Georgia, serif; font-weight: 400; font-size: 1.6rem; color: var(--oak); }

.preview { border-radius: 14px; overflow: hidden; background: #ece4d8; aspect-ratio: 4 / 3; display: grid; place-items: center; }
.preview img { width: 100%; height: 100%; object-fit: contain; }
.note { border-left: 4px solid var(--oak); background: #fbf6ee; border-radius: 0 10px 10px 0; padding: 10px 14px; white-space: pre-wrap; }
.err { color: var(--err); font-size: .9rem; min-height: 1.2em; margin: 8px 0 0; }
.ok-box { text-align: center; padding: 34px 22px; }
.ok-box .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--pine); color: #fff; display: grid; place-items: center; font-size: 2rem; margin: 0 auto 14px; }
.spin { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--pine); animation: sp 1s linear infinite; margin: 0 auto 12px; }
@keyframes sp { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
#payment-element { margin-top: 6px; min-height: 120px; }
.secure { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .8rem; color: var(--muted); margin-top: 10px; }

/* Panel */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.tabs button { border: 0; background: #fff; border-radius: 999px; padding: 7px 13px; cursor: pointer; font-size: .875rem; box-shadow: inset 0 0 0 1px var(--line); }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; box-shadow: none; }
.order-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; }
.order-h h2 { font-size: 1.35rem; }
.grid2 { display: grid; gap: 16px; grid-template-columns: 1fr; margin-top: 14px; }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 4px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .03em; }
.field input, .field select, .field textarea { border: 1.5px solid var(--line); border-radius: 10px; padding: 9px 11px; background: #fff; width: 100%; }
.field textarea { min-height: 70px; resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.paylink { display: flex; gap: 6px; align-items: center; margin-top: 8px; }
.paylink input { flex: 1; min-width: 0; font-size: .8rem; border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; background: #fbf8f3; }
.thumb { max-width: 220px; border-radius: 10px; margin-top: 8px; border: 1px solid var(--line); }
.empty { text-align: center; padding: 40px 10px; color: var(--muted); }
.meta { font-size: .85rem; color: var(--muted); }

/* Strony prawne */
.legal h1 { font-size: clamp(1.6rem, 4.5vw, 2.2rem); margin: 12px 0 16px; }
.legal h2 { font-size: 1.2rem; margin: 28px 0 8px; scroll-margin-top: 16px; }
.legal p, .legal li { line-height: 1.65; }
.legal ol, .legal ul { padding-left: 1.25rem; margin: 6px 0; }
.legal li + li { margin-top: 6px; }
.toc { background: var(--bg); border-radius: 12px; padding: 12px 16px; margin: 8px 0 6px; font-size: .9rem; }
.toc ol { columns: 2; column-gap: 24px; margin: 0; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.tbl { width: 100%; border-collapse: collapse; font-size: .9rem; margin: 8px 0; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl th { background: var(--bg); }
@media (max-width: 560px) { .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; } .tbl thead { display: none; } .tbl td:first-child { font-weight: 700; padding-bottom: 0; } }
.legal a { overflow-wrap: anywhere; }

/* Strona mapy w ramce */
body.map-page { background: #fff; }
