:root {
  color-scheme: light;
  --paper: #f9f8f6;
  --ink: #2d2926;
  --muted: #756d67;
  --line: rgba(61, 55, 49, .36);
}
* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Georgia, 'Times New Roman', serif; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #62584e; outline-offset: 5px; }
.page { position: relative; min-height: 100vh; min-height: 100svh; background: var(--paper); }
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 1; display: flex; justify-content: flex-end; padding: clamp(30px, 4.7vw, 72px) clamp(30px, 5.7vw, 92px); }
.contact-link { padding: 7px 2px; border: 0; background: transparent; color: #3b342d; font-size: 10px; letter-spacing: .27em; font-weight: 400; transition: opacity .2s ease; }
.contact-link:hover { opacity: .52; }
.main { height: 100vh; height: 100svh; min-height: 0; display: grid; grid-template-rows: minmax(0, 63fr) minmax(0, 37fr); place-items: center; padding: 0 1rem; }
.identity { grid-row: 1; display: flex; flex-direction: column; align-items: center; width: min(92vw, 495px); transform: translateY(-.5rem); animation: appear 1.05s both ease-out; }
.monogram { width: 168px; height: 168px; object-fit: contain; opacity: .83; margin-bottom: 6px; }
.rule { width: min(100%, 326px); height: 1px; background: var(--line); margin-top: 7px; margin-bottom: 18px; }
h1 { font-size: clamp(16px, 1.65vw, 20px); line-height: 1.45; font-weight: 400; letter-spacing: .265em; text-align: center; margin: 0 0 7px .265em; white-space: nowrap; }
.identity p { font-size: clamp(9px, .9vw, 11px); line-height: 1.55; letter-spacing: .245em; text-align: center; margin: 0 0 0 .245em; white-space: nowrap; }
/* Dyskretne motto, niezależne od podpisu zawodowego. */
.motto { grid-row: 2; margin: 0; padding: 0 12px; color: #a6a19b; font-size: 12px; font-weight: 400; font-style: italic; letter-spacing: .035em; line-height: 1.6; text-align: center; animation: motto-appear 1.25s .18s both ease-out; }
@keyframes motto-appear { from { opacity: 0; } to { opacity: 1; } }
.mobile-contact { display: none; }
@keyframes appear { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(-.5rem); } }
[hidden] { display: none !important; }
.dialog-shell { position: fixed; inset: 0; z-index: 10; display: grid; place-items: center; padding: 18px; }
.dialog-shade { position: absolute; inset: 0; background: rgba(33, 30, 28, .42); backdrop-filter: blur(5px); }
.dialog { position: relative; width: min(100%, 470px); max-height: min(90svh, 760px); overflow-y: auto; padding: 44px clamp(24px, 4vw, 46px) 32px; background: var(--paper); box-shadow: 0 28px 80px rgba(0, 0, 0, .12); }
.dialog-close { position: absolute; right: 23px; top: 11px; padding: 8px; color: var(--ink); background: transparent; border: 0; font-size: 27px; font-weight: 300; line-height: 1; }
.dialog h2 { margin: 0 0 19px; font-size: 23px; letter-spacing: .12em; font-weight: 400; }
.dialog .intro { font-size: 13px; line-height: 1.7; color: var(--muted); margin: 0 0 28px; }
.dialog label { display: block; font-size: 11px; letter-spacing: .12em; margin: 0 0 8px; }
.dialog input, .dialog textarea { width: 100%; border: 1px solid #bbb3aa; border-radius: 0; padding: 12px 13px; background: #fff; color: #231f1d; font-size: 15px; }
.dialog input { margin-bottom: 23px; }
.dialog textarea { resize: vertical; min-height: 125px; }
.dialog .submit { width: 100%; margin-top: 23px; padding: 15px; color: var(--paper); background: #332f2c; border: 1px solid #332f2c; font-family: Georgia, serif; font-size: 11px; letter-spacing: .16em; transition: background .2s; }
.dialog .submit:hover { background: #57504a; }
.dialog .submit:disabled { opacity: .48; cursor: default; }
.status { min-height: 0; color: #5c423c; font-size: 12px; line-height: 1.6; margin: 13px 0 0; }
.privacy-link, .back-link { border: none; border-bottom: 1px solid #a79e93; padding: 0 0 2px; background: none; color: #665f58; font-size: 11px; line-height: 1.5; }
.privacy-link { margin-top: 20px; }
.back-link { margin-bottom: 24px; }
.legal-panel p { font-size: 12px; line-height: 1.8; color: #514a45; }
.legal-panel strong { color: #37312c; }
.hp { position: absolute; top: -10000px; left: -10000px; height: 0; width: 0; overflow: hidden; }
body.dialog-open { overflow: hidden; }
@media (max-width: 680px) {
  .topbar { display: none; }
  .main { padding: 24px 1rem; }
  .identity { width: min(100%, 360px); transform: translateY(-.4rem); }
  .monogram { width: 138px; height: 138px; margin-bottom: 1px; }
  .rule { width: min(100%, 246px); margin-top: 4px; margin-bottom: 16px; }
  h1 { font-size: clamp(14px, 4.1vw, 17px); letter-spacing: .23em; margin-left: .23em; margin-bottom: 6px; }
  .identity p { font-size: clamp(8px, 2.35vw, 9.5px); letter-spacing: .18em; margin-left: .18em; }
  .motto { font-size: 11px; letter-spacing: .025em; }
  .mobile-contact { display: grid; place-items: center; position: fixed; right: max(21px, env(safe-area-inset-right) + 16px); bottom: max(23px, env(safe-area-inset-bottom) + 18px); width: 47px; height: 47px; padding: 0; border: 1px solid #6f665d; background: var(--paper); color: #494038; border-radius: 50%; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,.035); }
  .mobile-contact span { display: block; font-family: Georgia,serif; font-size: 31px; font-weight: normal; line-height: 1; transform: translateY(-1px); }
  .dialog-shell { padding: 12px; }
  .dialog { padding: 48px 23px 26px; max-height: calc(100svh - 24px); }
}
/* Na niskich ekranach poziomych kompaktowy układ bez wymuszania przewijania. */
@media (max-height: 490px) and (orientation: landscape) {
  .main { grid-template-rows: minmax(0, 63fr) minmax(0, 37fr); padding: 0 1rem; }
  .monogram { width: clamp(70px, 26svh, 106px); height: clamp(70px, 26svh, 106px); margin-bottom: 0; }
  .rule { width: min(100%, 245px); margin-top: 2px; margin-bottom: 8px; }
  h1 { font-size: clamp(13px, 1.8vw, 16px); line-height: 1.25; margin-bottom: 3px; }
  .identity p { font-size: 9px; line-height: 1.25; }
  .motto { font-size: 10px; line-height: 1.35; }
  .topbar { padding: 14px 30px; }
}
@media (max-height: 600px) and (orientation: portrait) {
  .monogram { width: 112px; height: 112px; }
  .rule { margin-bottom: 10px; }
  .motto { font-size: 10px; letter-spacing: .01em; max-width: calc(100% - 75px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *:before, *:after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Czytelne informacje prawne w istniejącym oknie dialogowym. */
.legal-panel h3 { margin: 22px 0 8px; font-size: 13px; font-weight: 400; letter-spacing: .085em; }
.legal-panel a { color: #514a45; text-decoration: underline; text-underline-offset: 2px; }
.legal-panel a:focus-visible { outline: 2px solid #62584e; outline-offset: 3px; }
