:root{--ink:#fff;--muted:rgba(255,255,255,.82);--glass:rgba(18,25,23,.48);--line:rgba(255,255,255,.28)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--ink);background:#1d2825;min-height:100vh}
body:before{content:"";position:fixed;inset:0;background:linear-gradient(90deg,rgba(9,16,14,.68),rgba(9,16,14,.24)),url('images/tlo.jpg') center/cover no-repeat;z-index:-2}
body:after{content:"";position:fixed;inset:0;background:rgba(9,16,14,.12);z-index:-1}
header{width:min(1120px,calc(100% - 48px));margin:auto;padding:28px 0;display:flex;align-items:center;justify-content:space-between;gap:24px}
.brand{font-size:1.15rem;letter-spacing:.24em;font-weight:750;text-decoration:none;color:#fff}
nav{display:flex;gap:clamp(16px,3vw,36px);flex-wrap:wrap}nav a{color:var(--muted);text-decoration:none;font-size:.94rem;transition:color .2s}nav a:hover,nav a[aria-current=page]{color:#fff}
main{width:min(1120px,calc(100% - 48px));margin:auto}.hero{min-height:calc(100vh - 100px);display:flex;align-items:center;padding:70px 0 110px}.panel{max-width:680px;padding:clamp(28px,5vw,56px);background:var(--glass);border:1px solid var(--line);border-radius:8px;backdrop-filter:blur(7px);box-shadow:0 18px 60px rgba(0,0,0,.14)}
.eyebrow{text-transform:uppercase;letter-spacing:.22em;font-size:.76rem;color:#e8d7b8}.panel h1{font-size:clamp(2.7rem,8vw,6rem);line-height:.98;letter-spacing:.035em;margin:16px 0 22px}.panel h2{font-size:clamp(2rem,5vw,3.4rem);margin:12px 0 18px}.panel p{font-size:clamp(1rem,2vw,1.13rem);line-height:1.8;color:var(--muted);max-width:58ch}.button{display:inline-block;margin-top:18px;padding:13px 21px;border:1px solid rgba(255,255,255,.7);border-radius:3px;color:white;text-decoration:none;letter-spacing:.06em;transition:background .2s}.button:hover{background:rgba(255,255,255,.16)}
.content{padding:24px 0 100px}.content .panel{max-width:820px}.gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:28px}.gallery img{width:100%;height:250px;object-fit:cover;border-radius:4px;border:1px solid var(--line)}.gallery img:first-child{grid-column:1/-1;height:360px}
form{display:grid;gap:14px;margin-top:24px}label{display:grid;gap:7px;color:var(--muted);font-size:.92rem}input,textarea{width:100%;padding:13px 14px;border:1px solid var(--line);border-radius:3px;background:rgba(255,255,255,.1);color:white;font:inherit}textarea{min-height:130px;resize:vertical}input::placeholder,textarea::placeholder{color:rgba(255,255,255,.58)}button{justify-self:start;padding:13px 22px;background:transparent;border:1px solid white;color:white;border-radius:3px;font:inherit;cursor:pointer}button:hover{background:rgba(255,255,255,.16)}.note{font-size:.85rem!important;color:rgba(255,255,255,.65)!important}
footer{width:min(1120px,calc(100% - 48px));margin:0 auto;padding:20px 0 28px;color:rgba(255,255,255,.62);font-size:.82rem;border-top:1px solid rgba(255,255,255,.18)}
@media(max-width:640px){header{width:calc(100% - 32px);padding:22px 0;align-items:flex-start;flex-direction:column;gap:17px}nav{gap:17px}nav a{font-size:.9rem}main,footer{width:calc(100% - 32px)}.hero{min-height:calc(100svh - 120px);padding:35px 0 65px}.panel{padding:26px 22px}.gallery{grid-template-columns:1fr}.gallery img,.gallery img:first-child{height:230px;grid-column:auto}}


/* Strona główna: wyłącznie zdjęcie w tle i menu na górze */
.home-page:before { background: url('images/tlo.jpg') center center / cover no-repeat; }
.home-page:after { display: none; }
.home-page .home-header {
  width: 100%; margin: 0; padding: 28px clamp(16px, 5vw, 64px);
  justify-content: flex-end; background: rgba(12, 18, 16, .18);
}
.home-page nav a {
  color: #fff; text-shadow: 0 1px 5px rgba(0,0,0,.65); font-weight: 500;
}
.home-page nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 640px) {
  .home-page .home-header { align-items: center; padding: 20px 16px; }
  .home-page nav { width: 100%; justify-content: center; gap: clamp(14px, 5vw, 24px); }
  .home-page nav a { font-size: .88rem; }
}


/* Wspólna, wyśrodkowana stopka na wszystkich stronach */
.site-footer {
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 26px;
  border-top: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.78);
  font-size: .84rem;
  text-align: center;
}
.home-page .site-footer {
  position: fixed;
  left: 0;
  bottom: 0;
  border-top: 0;
  color: rgba(255,255,255,.9);
  text-shadow: 0 1px 5px rgba(0,0,0,.7);
}


/* Stopka przy dolnej krawędzi ekranu na wszystkich podstronach */
body:not(.home-page) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body:not(.home-page) main {
  flex: 1 0 auto;
}
body:not(.home-page) .site-footer {
  flex-shrink: 0;
  margin-top: auto;
}

/* Logowanie i panel administratora */
.auth-wrap { min-height: 100vh; display:flex; align-items:center; justify-content:center; padding:24px; }
.auth-card { width:min(560px, 100%); padding:30px; background:rgba(255,255,255,.94); border-radius:16px; box-shadow:0 12px 40px rgba(0,0,0,.18); color:#263238; }
.auth-card h1 { margin-top:0; }
.auth-card p { line-height:1.6; }
.btn { display:inline-block; border:0; border-radius:8px; padding:12px 18px; background:#1877f2; color:#fff; text-decoration:none; font-weight:600; cursor:pointer; }
.btn.secondary { background:#455a64; }
.btn.danger { background:#a32626; }
.notice { padding:12px 14px; border-radius:8px; background:#eef5ff; margin:14px 0; }
.notice.error { background:#fff0f0; }
.form-row { margin:14px 0; }
.form-row label { display:block; font-weight:600; margin-bottom:6px; }
.form-row input { width:100%; box-sizing:border-box; padding:11px; border:1px solid #b7c4cc; border-radius:7px; }
.admin-table { width:100%; border-collapse:collapse; margin-top:18px; background:#fff; color:#263238; }
.admin-table th,.admin-table td { padding:10px; border-bottom:1px solid #ddd; text-align:left; }
.admin-table form { display:inline-block; margin:2px; }
.small { font-size:.9rem; color:#52636b; }

/* Logo na stronie logowania MISIADLA */
.auth-card { text-align: left; }
.auth-card .login-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
}
.auth-card .login-logo img {
  display: block;
  width: min(230px, 72%);
  height: auto;
  max-height: 230px;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 480px) {
  .auth-wrap { padding: 16px; }
  .auth-card { padding: 24px 20px; }
  .auth-card .login-logo img { width: min(190px, 70%); }
}
