/* R04 — visual identity follows actual editorial-r16.css from barczuk.com.pl.
   No remote fonts: the site's original font stacks and values are reused. */
:root {
  --navy: #14243a;
  --ivory: #f7f5f0;
  --gold: #b6a27a;
  --muted: #4f5b67;
  --line: #d5d9dc;
  --editorial-serif: "Iowan Old Style", "Baskerville", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --editorial-sans: "Avenir Next", "Segoe UI", Arial, Helvetica, sans-serif;
  --max: 1440px;
}
*,*::before,*::after {box-sizing:border-box;}
html {min-height:100%;}
body {margin:0;min-height:100vh;background:var(--ivory);color:var(--navy);
  font-family:var(--editorial-sans);font-size:16px;line-height:1.5;
  -webkit-font-smoothing:antialiased;}
a,button {-webkit-tap-highlight-color:transparent;}
a {color:inherit;}
button {font:inherit;}
button:disabled {cursor:wait;}
[hidden] {display:none!important;}
:focus-visible {outline:2px solid #9b7c42;outline-offset:4px;}
.skip {position:absolute;top:10px;left:-9999px;background:#fff;padding:12px;z-index:99;}
.skip:focus {left:10px;}
.shell {width:min(var(--max),calc(100% - 112px));margin-inline:auto;}
.header {position:relative;z-index:5;background:rgba(255,255,255,.97);border-bottom:1px solid #d8dde1;}
.nav {min-height:90px;display:flex;align-items:center;justify-content:space-between;gap:30px;}
.brand {display:inline-flex;align-items:center;white-space:nowrap;color:var(--navy);
  font-family:var(--editorial-serif);font-size:30px;font-weight:400;
  letter-spacing:.17em;line-height:1;text-decoration:none;text-transform:uppercase;}
.brand-square {display:inline-block;flex:0 0 auto;width:.18em;height:.18em;
  margin-left:.18em;background:var(--gold);}
.nav-links {display:flex;align-items:center;gap:clamp(18px,2.3vw,39px);}
.nav-links a {color:var(--navy);text-decoration:none;font-size:13px;
  font-weight:500;letter-spacing:.035em;}
.nav-links a:hover {color:#7e6844;}
.hero {position:relative;isolation:isolate;overflow:hidden;background:var(--ivory);
  min-height:max(720px,calc(100svh - 91px));display:flex;align-items:center;}
.hero-photo {position:absolute;z-index:-1;inset:0 0 0 34%;
  background-image:linear-gradient(120deg,rgba(247,245,240,.12),rgba(20,36,58,.07)),
    url('/assets/skarbiec-r04.webp');
  background-repeat:no-repeat;background-size:cover;background-position:left center;
  -webkit-mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.12) 15%,rgba(0,0,0,.65) 35%,#000 61%);
  mask-image:linear-gradient(to right,transparent 0%,rgba(0,0,0,.12) 15%,rgba(0,0,0,.65) 35%,#000 61%);
}
.hero-inner {position:relative;z-index:1;padding-block:95px 112px;}
.hero-copy {width:min(740px,62%);min-width:0;}
.gold-rule {display:block;background:var(--gold);height:5px;width:65px;margin-bottom:44px;}
h1 {margin:0;font-family:var(--editorial-serif);font-weight:400;
  font-size:clamp(54px,5.1vw,80px);line-height:1.08;letter-spacing:-.046em;
  text-wrap:balance;}
.lead {margin:33px 0 45px;color:#465365;max-width:650px;
  font-size:19px;line-height:1.75;}
.hero-actions {display:flex;align-items:start;flex-wrap:wrap;gap:18px 26px;}
.button {display:inline-flex;align-items:center;justify-content:center;
  min-height:57px;padding:16px 28px;border:1px solid transparent;border-radius:0;
  color:inherit;text-align:center;max-width:100%;font-size:13px;font-weight:600;
  letter-spacing:.025em;line-height:1.5;cursor:pointer;transition:background .2s,color .2s;}
.button.black {background:var(--navy);color:#fff;}
.button.black:hover:not(:disabled) {background:#314866;}
.button.secondary {background:transparent;color:var(--navy);border-color:var(--navy);}
.button.secondary:hover:not(:disabled) {background:rgba(233,237,240,.65);}
.session {width:100%;}
.session-user {margin:0 0 14px;color:#465365;font-size:13px;overflow-wrap:anywhere;}
.session-actions {display:flex;flex-wrap:wrap;gap:12px;}
.status {max-width:620px;margin:20px 0 0;padding:9px 0;
  color:var(--muted);font-size:13px;overflow-wrap:anywhere;}
@media (max-width:1100px) {
  .shell {width:calc(100% - 80px);}
  .hero-copy {width:min(620px,66%);}
  .hero-photo {left:28%;}
  h1 {font-size:clamp(49px,5.5vw,72px);}
}
@media (max-width:760px) {
  .shell {width:calc(100% - 44px);}
  .nav {min-height:74px;}
  .brand {font-size:26px;letter-spacing:.15em;}
  .nav-links {display:none;}
  .hero {min-height:calc(100svh - 75px);align-items:start;}
  .hero-inner {padding-top:80px;padding-bottom:280px;}
  .hero-copy {width:100%;max-width:650px;}
  .hero-photo {inset:300px 0 0 0;background-position:center bottom;
    -webkit-mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.05) 26%,#000 88%);
    mask-image:linear-gradient(to bottom,transparent 0%,rgba(0,0,0,.05) 26%,#000 88%);}
  .gold-rule {margin-bottom:31px;width:57px;height:4px;}
  h1 {font-size:clamp(44px,10.1vw,64px);line-height:1.08;}
  .lead {font-size:16px;line-height:1.8;margin:24px 0 28px;}
}
@media (max-width:440px) {
  .shell {width:calc(100% - 40px);}
  .hero-inner {padding-top:65px;padding-bottom:250px;}
  .hero-photo {top:290px;}
  h1 {font-size:clamp(42px,10.8vw,49px);}
  .button {padding:15px 18px;}
  .session-actions {flex-direction:column;align-items:start;}
}
@media (prefers-reduced-motion:reduce) {
  .button {transition:none;}
}

/* R05: language switcher matches public R16 (same typography, gold underline). */
.header .shell.nav { gap:clamp(9px,1.3vw,22px); }
.language-switcher {display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;gap:7px;margin:0 0 0 7px;padding:4px 0 4px 15px;border-left:1px solid rgba(20,36,58,.19);align-self:center;font-family:var(--editorial-sans);font-size:11px;font-weight:600;letter-spacing:.09em;line-height:1.6;white-space:nowrap;color:#697587;}
.language-switcher a {display:inline-block;text-decoration:none;color:#697587;font-size:inherit;font-weight:inherit;padding:0;min-width:21px;text-align:center;line-height:25px;border-bottom:2px solid transparent;transition:color .15s,border-color .15s;}
.language-switcher a:hover,.language-switcher a:focus-visible {color:var(--navy);}
.language-switcher a[aria-current="page"] {color:var(--navy);border-bottom-color:var(--gold);}
.language-divider {font-weight:300;color:#b7bfc6;}
@media (max-width:1000px) {.language-switcher {padding-left:11px;margin-left:0;gap:5px;font-size:10px;} .nav-links{gap:clamp(11px,1.4vw,20px);}}
@media (max-width:760px) {.header .shell.nav {gap:9px;justify-content:space-between;} .brand{order:0;} .language-switcher{order:1;margin-left:auto;} .nav-links{order:2;}}
@media (max-width:400px) {.brand{font-size:clamp(22px,6.4vw,27px);letter-spacing:.12em;} .language-switcher{padding-left:7px;gap:2px;font-size:10px;} .language-switcher a{min-width:18px;}}

/* R06: identical R05 login, Microsoft four-color squares on existing button. */
.microsoft-login{display:inline-flex;align-items:center;justify-content:center;gap:12px;}
.microsoft-mark{display:block;flex:0 0 19px;}
.microsoft-separator{display:block;flex:0 0 1px;width:1px;height:21px;background:rgba(255,255,255,.55);margin-inline:2px;}
.microsoft-login span:last-child{display:inline-block;}
