:root {
  color-scheme: dark;
  --panel: 100%;
  --zloty: #e1bf83;
  --papier: #f6efe1;
  --opis: #c1b9ac;
  --linia: #463e30;
  --odstep: clamp(1.15rem, 5vw, 2rem);
  --stopka: calc(7.2rem + env(safe-area-inset-bottom, 0px));
  font: 100%/1.5 "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-padding-bottom: var(--stopka); background: #10100f; }
html.wejscie-czeka body::after,html.wejscie-start body::after { content: ""; position: fixed; z-index: 100; inset: 0; pointer-events: none; background: #1b1711; }
html.wejscie-start body::after { animation: odslon-strone .50s ease-in-out both; }
@keyframes odslon-strone { from { opacity: 1; } to { opacity: 0; } }
html.wlasny-scroll { scrollbar-width: none; }
html.wlasny-scroll::-webkit-scrollbar,html.wlasny-scroll body::-webkit-scrollbar { display: none; width: 0; height: 0; }
.pasek-przewijania { position: fixed; z-index: 9; top: 0; right: 0; width: 14px; height: 100%; height: 100dvh; cursor: pointer; touch-action: none; user-select: none; }
.pasek-przewijania::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 9px; background: #171612e8; border-left: 1px solid #433825; }
.pasek-suwak { position: absolute; right: 2px; width: 5px; min-height: 36px; border-radius: 9px; background: linear-gradient(90deg,#947347,#d9b778); box-shadow: 0 0 6px #cda96655; transition: background-color .2s ease; }
.pasek-przewijania:hover .pasek-suwak,.pasek-przewijania:focus-visible .pasek-suwak { background: #efcf91; }
.pasek-przewijania:focus-visible { outline: 2px solid #ffe2aa; outline-offset: -2px; }
@media (pointer: coarse) { .pasek-przewijania { width: 20px; } .pasek-przewijania::before { width: 6px; background: #171612ad; } .pasek-suwak { width: 4px; right: 1px; box-shadow: none; } }
body { margin: 0; color: var(--papier); }
a { color: inherit; }
a, summary { -webkit-tap-highlight-color: rgba(229,194,132,.18); touch-action: manipulation; }
:focus-visible { outline: 2px solid #ffe2aa; outline-offset: 3px; }
.symbole { position: absolute; pointer-events: none; }
.ikona { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pomin { position: fixed; top: 0; left: 0; z-index: 5; padding: .75rem; background: #151410; transform: translateY(-150%); }
.pomin:focus { transform: none; }
.instalacja { position: fixed; z-index: 10; top: max(.75rem, env(safe-area-inset-top)); left: 50%; width: min(calc(100% - 1.5rem), 30rem); transform: translateX(-50%); display: grid; grid-template-columns: 3rem 1fr; align-items: center; gap: .7rem; padding: .8rem; border: 1px solid #bb985c; border-radius: .6rem; background: #1b1a17; box-shadow: 0 .7rem 2rem #000b; animation: pokaz-instalacje .25s ease-out; }
.instalacja[hidden] { display: none; }
.instalacja img { width: 3rem; height: 3rem; border-radius: .6rem; }
.instalacja p { margin: 0; line-height: 1.35; }
.instalacja strong,.instalacja span { display: block; }
.instalacja span { color: var(--opis); font-size: .875rem; margin-top: .2rem; }
.instalacja-akcje { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: .5rem; }
.instalacja button { min-height: 2.75rem; padding: .5rem .85rem; border: 1px solid #877047; border-radius: .35rem; background: #27241e; color: var(--papier); font: inherit; cursor: pointer; }
.instalacja button:last-child { background: #d9b879; color: #18140d; font-weight: 700; }
@keyframes pokaz-instalacje { from { opacity: 0; transform: translate(-50%, -1rem); } to { opacity: 1; transform: translate(-50%, 0); } }
@media (prefers-reduced-motion: reduce) { .instalacja { animation: none; } }
.sceneria { display: none; }
.strona { width: var(--panel); margin: auto; position: relative; background: #151513; padding-bottom: calc(var(--stopka) + 1.25rem); }
.winieta { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; align-items: center; padding: 1.1rem var(--odstep) 1.75rem; background: #11110f url(../grafika/marmur.webp) center/cover; }
.miasto { min-height: 2.75rem; display: inline-flex; gap: .45rem; align-items: center; text-decoration: none; color: #f0d5a3; font-size: .75rem; letter-spacing: .23em; text-transform: uppercase; }
.miasto .ikona { width: .9rem; height: .9rem; }
.emblemat { position: relative; margin: .45rem 0 .3rem; width: min(68%, 32svh, 21rem); line-height: 0; mix-blend-mode: screen; }
.emblemat img { display: block; width: 100%; height: auto; filter: contrast(1.1) brightness(.96); }
.blask-pierscienia {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.zar-obreczy {
  transform-origin: 619px 601px;
  opacity: 0;
}
.ornament { position: absolute; bottom: 0; left: 0; width: 100%; display: flex; align-items: center; gap: .55rem; }
.ornament::before,.ornament::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, #493e2a, #b29764); }
.ornament::after { transform: rotate(180deg); }
.ornament i { border: 1px solid #c7a76e; width: 6px; height: 6px; transform: rotate(45deg); }
.sekcja { padding: 1.8rem var(--odstep) .6rem; scroll-margin-top: .5rem; }
.tytul { display: flex; align-items: center; gap: 1rem; justify-content: space-between; margin-bottom: 1.3rem; }
.tytul > .ikona { color: var(--zloty); width: 1.85rem; height: 1.85rem; stroke-width: 1; }
h2 { font: normal clamp(2rem, 7vw, 2.65rem)/1.1 Georgia, "Times New Roman", serif; letter-spacing: -.045em; margin: 0; }
h2 em { font-weight: normal; color: #e0c38c; }
.kategoria { border: 1px solid var(--linia); background: #1b1b18; border-radius: .35rem; margin: 0 0 .65rem; }
summary { padding: .85rem 1rem; min-height: 4rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: .65rem; }
summary::-webkit-details-marker { display: none; }
summary strong { font: 1.4rem/1.2 Georgia, "Times New Roman", serif; }
summary small, li small { display: block; font-size: .8rem; margin-top: .2rem; color: var(--opis); line-height: 1.35; }
.rozwin { width: .55rem; height: .55rem; border: solid var(--zloty); border-width: 0 1px 1px 0; transform: rotate(45deg); margin: 0 .35rem .25rem 0; flex: none; }
details[open] .rozwin { transform: rotate(225deg); margin-bottom: -.25rem; }
details[open] summary { background: linear-gradient(105deg,#29261e,#201f1b); border-radius: .35rem .35rem 0 0; }
ul { margin: 0; list-style: none; padding: 0 1rem; }
li { padding: .68rem 0; display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; border-top: 1px solid #3b382f; line-height: 1.35; }
li b { white-space: nowrap; font: 1.13rem Georgia, serif; color: #ead09e; }
.zrodlo,.wizyta,.wejscie { color: var(--opis); font-size: .9rem; margin: .9rem 0; }
.zrodlo a { color: var(--zloty); text-underline-offset: .18em; }
.dojazd,.kontakt { border-top: 1px solid var(--linia); margin-top: 1rem; }
.mapa { height: 13rem; background: #292822; border-radius: .35rem; }
iframe { display: block; width: 100%; height: 100%; border: 1px solid var(--linia); border-radius: .35rem; }
address,.wlasciciel { font: normal 1.45rem/1.45 Georgia, serif; margin: 1.1rem 0 .25rem; }
address span { font: 1rem/1.4 "Segoe UI", Arial, sans-serif; }
.zdjecie-salonu { aspect-ratio: 16 / 9; margin: .4rem 0 .8rem; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--linia); border-radius: .35rem; background: #211f1a; color: #cbb991; }
.zdjecie-salonu span { font: .8rem "Segoe UI", Arial, sans-serif; letter-spacing: .2em; text-transform: uppercase; }
.zdjecie-salonu img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wejscie { margin: 1rem 0 0; text-align: right; }
.akcja,.menu a { position: relative; overflow: hidden; isolation: isolate; display: flex; min-height: 2.8rem; align-items: center; justify-content: center; gap: .55rem; border: 1px solid #6c5a3e; border-radius: .3rem; text-decoration: none; color: #ead3a7; background: #20201c; transition: background-color .20s ease, border-color .20s ease, color .20s ease, box-shadow .20s ease, transform .20s ease; }
.telefon { margin-top: 1rem; font-size: 1.15rem; letter-spacing: .04em; }
.menu { position: fixed; z-index: 3; left: 50%; bottom: 0; transform: translateX(-50%); width: var(--panel); background: #141411; border-top: 1px solid #8b754d; padding: .55rem max(.8rem,env(safe-area-inset-right)) max(.65rem,env(safe-area-inset-bottom)) max(.8rem,env(safe-area-inset-left)); display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; box-shadow: 0 -5px 15px #0004; }
.menu a { min-width: 0; font-size: .86rem; font-weight: 600; text-transform: uppercase; letter-spacing: .065em; }
.menu .ikona { width: 1.12rem; height: 1.12rem; }
.menu .zlota,.akcja.zlota { background: linear-gradient(108deg,#be9453,#edd3a1 55%,#c49b60); color: #231b0f; border-color: #ead0a1; }
.polysk { position: relative; overflow: hidden; isolation: isolate; }
.polysk::after { content: ""; pointer-events: none; position: absolute; top: -40%; bottom: -40%; left: 0; width: 34%; background: linear-gradient(90deg,transparent,#fff7de95,transparent); animation: polysk 3s linear infinite; }
@keyframes polysk { 0% { transform: translateX(-175%) skewX(-22deg); } 33.3333%,100% { transform: translateX(420%) skewX(-22deg); } }
.iskry-z-lisci circle { opacity: 0; }
@media (hover:hover) { summary:hover,.akcja:hover,.menu a:hover { border-color: var(--zloty); background-color: #302b21; } .akcja:hover,.menu a:hover { transform: translateY(-2px); box-shadow: 0 5px 16px #d2ac6640; } .miasto:hover,.zrodlo a:hover { color: white; } }
@media (min-width: 700px) and (min-height: 560px) and (min-aspect-ratio: 1/1) {
  :root { --panel: min(100%, 56.25vh); --odstep: clamp(1.1rem,3.75vh,2.5rem); }
  .sceneria { display: block; position: fixed; inset: 0; background: linear-gradient(#08080745,#08080760),url(../grafika/atelier.webp) center/cover; }
  .sceneria::after { content: ""; position: absolute; inset: 0; background: #090805; animation: swiatlo 16s ease-in-out infinite; }
  .strona,.menu { border-inline: 1px solid #725b38; }
  .strona { box-shadow: 0 0 3rem #000a; }
}
@keyframes swiatlo { 0%,100% { opacity: .04; } 50% { opacity: .21; } }
@media (max-width: 350px), (min-width:700px) and (max-height:600px) {
  .menu a { font-size: .75rem; letter-spacing: .015em; gap: .25rem; }
  summary,ul { padding-inline: .75rem; }
}

.akcja::before,.menu a::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: #fff3c9; opacity: 0; }
.akcja.rozblysk-klik::before,.menu a.rozblysk-klik::before { animation: rozblysk-przycisku .45s ease-out both; }
@keyframes rozblysk-przycisku { 0% { clip-path: circle(0% at var(--klik-x) var(--klik-y)); opacity: .234; } 55% { clip-path: circle(200% at var(--klik-x) var(--klik-y)); opacity: .216; } 100% { clip-path: circle(200% at var(--klik-x) var(--klik-y)); opacity: 0; } }
