/* ============================================================
   Sebastian Biernat — Fotograf z Bochni
   Design 2026 · dark editorial · Fraunces + Inter
   ============================================================ */

:root {
  --bg: #0b0b0c;
  --bg-soft: #101012;
  --surface: #161619;
  --surface-2: #1d1d21;
  --line: rgba(245, 242, 234, 0.10);
  --line-strong: rgba(245, 242, 234, 0.20);
  --text: #f5f2ea;
  --muted: #9a958b;
  --muted-2: #6f6b63;
  --accent: #e8b44a;
  --accent-2: #d98a4a;
  --accent-ink: #17130a;
  --danger: #e0654f;
  --ok: #7fc78b;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --maxw: 1200px;
  --radius: 18px;
  --radius-sm: 12px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }

/* Krytyczne: reguły typu `.modal-backdrop { display: grid }` nadpisują
   atrybut [hidden] (display z CSS > UA display:none). Bez tego modal i gate
   są widoczne zawsze — stąd „pusty popup" blokujący cały panel admina. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* film grain overlay */
.grain {
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: transparent; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: 8px; z-index: 100;
  font-weight: 600; transition: top .2s;
}
.skip-link:focus { top: 16px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 24px; border-radius: 100px;
  font-weight: 600; font-size: 15px; line-height: 1;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, border-color .25s, color .25s;
  white-space: nowrap;
}
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #f2c35e; transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); background: rgba(245,242,234,0.05); transform: translateY(-2px); }
.btn-lg { padding: 17px 32px; font-size: 16px; }
.btn-small { padding: 9px 16px; font-size: 13.5px; }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(224,101,79,0.4); }
.btn-danger:hover { background: rgba(224,101,79,0.12); border-color: var(--danger); }
.btn-block { width: 100%; justify-content: center; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11,11,12,0.72);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(11,11,12,0.88); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h); gap: 24px;
}
.logo { display: flex; flex-direction: column; line-height: 1.05; }
.logo-name {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  letter-spacing: -0.02em;
}
.logo-sub {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  color: var(--muted); margin-top: 3px;
}
.main-nav { display: flex; align-items: center; gap: 34px; }
.main-nav > a {
  font-size: 15px; font-weight: 500; color: var(--muted);
  position: relative; padding: 6px 0; transition: color .2s;
}
.main-nav > a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: right; transition: transform .3s var(--ease);
}
.main-nav > a:hover, .main-nav > a.active { color: var(--text); }
.main-nav > a:hover::after, .main-nav > a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-cta {
  color: var(--text) !important; font-weight: 600 !important;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  padding: 10px 20px; border-radius: 100px;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--accent); color: var(--accent-ink) !important; border-color: var(--accent); }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
.nav-burger span { width: 24px; height: 2px; background: var(--text); transition: .3s var(--ease); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: calc(var(--header-h) * 0.4) 0 60px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-bg {
  position: absolute; inset: -10%;
  background:
    radial-gradient(60% 55% at 75% 18%, rgba(232,180,74,0.16), transparent 60%),
    radial-gradient(50% 50% at 12% 80%, rgba(217,138,74,0.14), transparent 60%),
    linear-gradient(180deg, #0e0e10 0%, var(--bg) 100%);
  animation: heroDrift 18s ease-in-out infinite alternate;
}
@keyframes heroDrift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-2%, -2%, 0) scale(1.06); } }
.hero-inner { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 30px; }
.hero-eyebrow {
  font-size: 13px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 26px;
}
.hero-title {
  font-size: clamp(46px, 8.5vw, 104px);
  font-weight: 380; line-height: 0.98; letter-spacing: -0.025em;
  margin-bottom: 30px; max-width: 14ch;
}
.hero-title em { font-style: italic; color: var(--accent); font-weight: 340; }
.hero-lead {
  font-size: clamp(17px, 2vw, 21px); color: var(--muted);
  max-width: 52ch; margin: 0 0 40px; line-height: 1.6;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.hero-meta { display: flex; gap: 48px; flex-wrap: wrap; }
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: var(--serif); font-size: 30px; font-weight: 400; color: var(--text); }
.hero-meta span { font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }

.line-mask { display: block; overflow: hidden; }
.line-mask > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease); }
.loaded .line-mask > span { transform: translateY(0); }
.loaded .hero-title .line-mask:nth-child(2) > span { transition-delay: 0.08s; }

.scroll-hint {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  z-index: 2; width: 24px; height: 38px; border: 1.5px solid var(--line-strong);
  border-radius: 14px; transition: opacity .4s var(--ease), visibility .4s;
}
.scroll-hint.hidden { opacity: 0; visibility: hidden; }
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 8px; background: var(--accent); border-radius: 2px;
  animation: scrollDot 1.8s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translate(-50%, 0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, 12px); } }

/* ---------------- Marquee ---------------- */
.marquee-strip {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 20px 0; overflow: hidden; background: var(--bg-soft);
}
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; white-space: nowrap; animation: marquee 30s linear infinite; }
.marquee-track span {
  font-family: var(--serif); font-size: clamp(20px, 3vw, 30px); font-style: italic;
  color: var(--muted); padding-right: 8px;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */
.section { padding: 100px 0; position: relative; z-index: 2; }
.section-alt { background: var(--bg-soft); }
.section-head { margin-bottom: 52px; }
.section-head.split { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.kicker {
  font-size: 12.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); font-weight: 600; margin: 0 0 16px;
}
.section-title { font-size: clamp(32px, 5vw, 56px); font-weight: 380; letter-spacing: -0.02em; }
.section-title em { font-style: italic; color: var(--accent); }
.section-sub { color: var(--muted); font-size: 17px; max-width: 60ch; margin: 18px 0 0; }

/* ---------------- Bento (O mnie) ---------------- */
.about-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.bento { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 8px; }
.bento-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.bento-card:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface-2); }
.bento-lg { grid-column: span 2; }
.bento-wide { grid-column: span 2; }
.bento-num { font-family: var(--serif); font-size: 15px; color: var(--accent); letter-spacing: 0.1em; }
.bento-card h3 { font-size: 24px; margin: 14px 0 10px; font-weight: 400; }
.bento-card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------------- Features ---------------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.feature:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--surface); }
.feature-ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232,180,74,0.1); color: var(--accent); font-size: 22px; margin-bottom: 18px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; font-weight: 400; }
.feature p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------------- Trust ---------------- */
.trust { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 44px; }
.trust-line { font-family: var(--serif); font-size: clamp(22px, 3vw, 30px); font-style: italic; line-height: 1.35; margin: 0 0 22px; font-weight: 340; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px 18px; color: var(--muted); font-size: 15px; }

/* ---------------- CTA banner ---------------- */
.cta-banner {
  text-align: center; border: 1px solid var(--line-strong); border-radius: 24px;
  padding: 72px 32px; position: relative; overflow: hidden;
  background: radial-gradient(80% 120% at 50% 0%, rgba(232,180,74,0.12), transparent 60%), var(--surface);
}
.cta-banner h2 { font-size: clamp(30px, 5vw, 50px); margin-bottom: 14px; }
.cta-banner p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 32px; }

/* ---------------- Work grid (portfolio) ---------------- */
.work-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.work-card {
  border-radius: var(--radius); overflow: hidden; position: relative;
  background: var(--surface); border: 1px solid var(--line); display: block;
  transition: transform .4s var(--ease), border-color .4s;
}
.work-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.work-media { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.work-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(11,11,12,0.55));
}
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.work-card:hover .work-media img { transform: scale(1.06); }
.work-meta { padding: 20px 22px; position: relative; }
.work-cat { font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.work-meta h3 { font-size: 20px; margin-top: 8px; font-weight: 400; }

/* gallery (JS-rendered portfolio) */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery-item {
  border-radius: var(--radius-sm); overflow: hidden; position: relative; cursor: pointer;
  border: 1px solid var(--line); aspect-ratio: 1;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap {
  position: absolute; inset: auto 0 0 0; padding: 16px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(11,11,12,0.8));
  font-size: 14px; font-weight: 500; opacity: 0; transform: translateY(8px); transition: .4s var(--ease);
}
.gallery-item:hover .cap { opacity: 1; transform: translateY(0); }

/* lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(6,6,7,0.92);
  backdrop-filter: blur(8px); display: grid; place-items: center; padding: 40px;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 90vw; max-height: 82vh; border-radius: 12px; box-shadow: 0 40px 120px rgba(0,0,0,0.6); }
.lightbox .lb-cap { position: absolute; bottom: 28px; left: 0; right: 0; text-align: center; color: var(--muted); font-size: 15px; }
.lightbox .lb-close { position: absolute; top: 16px; right: 16px; background: none; border: 0; color: var(--text); font-size: 30px; min-width: 44px; min-height: 44px; }

/* ---------------- Posts ---------------- */
.posts-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  background: var(--surface); display: flex; flex-direction: column;
  transition: transform .35s var(--ease), border-color .35s, background .35s;
}
.post-card:hover { transform: translateY(-5px); border-color: var(--line-strong); background: var(--surface-2); }
.post-card time { font-size: 13px; color: var(--accent); letter-spacing: 0.06em; }
.post-card h3 { font-size: 21px; margin: 14px 0 12px; font-weight: 400; line-height: 1.2; }
.post-card-excerpt { color: var(--muted); font-size: 15px; margin: 0; }

/* blog list */
.blog-list { display: flex; flex-direction: column; }
.blog-row { border-bottom: 1px solid var(--line); }
.blog-row:first-child { border-top: 1px solid var(--line); }
.blog-row-main { display: block; padding: 34px 0; transition: padding .3s var(--ease); }
.blog-row-main:hover { padding-left: 12px; }
.blog-row-meta { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.blog-row-meta time { font-size: 13.5px; color: var(--accent); letter-spacing: 0.06em; }
.blog-row h2 { font-size: clamp(24px, 3.4vw, 38px); font-weight: 380; margin-bottom: 12px; transition: color .25s; }
.blog-row-main:hover h2 { color: var(--accent); }
.blog-row p { color: var(--muted); margin: 0 0 12px; font-size: 16px; }
.read-more { font-size: 14.5px; font-weight: 600; color: var(--text); }
.read-more .arrow { display: inline-block; transition: transform .25s var(--ease); }
.blog-row-main:hover .read-more .arrow { transform: translateX(5px); }

/* post */
.post-header { padding: 60px 0 30px; border-bottom: 1px solid var(--line); }
.crumbs { font-size: 14px; color: var(--muted); display: flex; gap: 10px; margin-bottom: 24px; }
.crumbs a:hover { color: var(--accent); }
.post-title { font-size: clamp(34px, 5.5vw, 62px); font-weight: 380; letter-spacing: -0.02em; max-width: 20ch; }
.post-meta { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; margin-top: 22px; }
.post-body { padding: 44px 0; font-size: 17px; line-height: 1.75; color: #ded9cf; max-width: 760px; }
.post-body h2 { font-size: 28px; margin: 40px 0 16px; font-weight: 400; color: var(--text); }
.post-body p { margin: 0 0 20px; }
.post-body strong { color: var(--text); }
.post-body em { color: var(--accent); }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body .cta a { display: inline-block; margin-top: 10px; font-weight: 600; }
.post-cta { text-align: center; border-top: 1px solid var(--line); padding: 72px 0 90px; }
.post-cta h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 12px; }
.post-cta p { color: var(--muted); margin: 0 0 28px; font-size: 17px; }

/* ---------------- Page hero ---------------- */
.page-hero { padding: 80px 0 50px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.page-title { font-size: clamp(40px, 7vw, 78px); font-weight: 380; letter-spacing: -0.025em; margin: 18px 0 20px; }
.page-title em { font-style: italic; color: var(--accent); }

/* ---------------- Pricing ---------------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px;
  background: var(--surface); display: flex; flex-direction: column; position: relative;
  transition: transform .35s var(--ease), border-color .35s;
}
.price-card:hover { transform: translateY(-5px); border-color: var(--line-strong); }
.price-card.featured { border-color: var(--accent); background: linear-gradient(180deg, rgba(232,180,74,0.08), var(--surface)); }
.badge {
  position: absolute; top: -13px; left: 30px; background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 100px; letter-spacing: 0.04em;
}
.price-card h3 { font-size: 22px; font-weight: 400; margin-bottom: 12px; }
.price { font-family: var(--serif); font-size: 40px; color: var(--accent); margin: 0 0 22px; font-weight: 380; }
.price-card ul { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-card li { padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.price-card li:last-child { border-bottom: 0; }
.note { color: var(--muted); margin-top: 34px; font-size: 16px; }
.note a { color: var(--accent); }

/* ---------------- Booking ---------------- */
.booking-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.calendar-card, .booking-form {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
}
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.cal-month { font-family: var(--serif); font-size: 22px; font-weight: 400; margin: 0; text-transform: capitalize; }
.cal-nav {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-strong);
  background: none; color: var(--text); font-size: 18px; transition: .25s;
}
.cal-nav:hover { background: var(--surface-2); border-color: var(--text); }
.cal-nav:disabled { opacity: 0.3; cursor: not-allowed; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; padding: 6px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 10px;
  /* NAPRAWA czytelności: bez jawnego tła <button> dostawał jasnoszare tło
     natywne UA (#efefef), a kremowy tekst motywu był na nim niewidoczny. */
  background: transparent; color: var(--muted);
  font-size: 15px; border: 1px solid transparent; transition: .2s; position: relative;
}
.cal-day.empty { visibility: hidden; }
.cal-day.past { color: var(--muted-2); opacity: .5; }
.cal-day.available {
  cursor: pointer; color: var(--text); font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line-strong);
}
.cal-day.available:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.cal-day.available::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.cal-day.available:hover::after { background: var(--accent-ink); }
.cal-day.selected { background: var(--accent); color: var(--accent-ink); font-weight: 700; border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.cal-day.selected::after { background: var(--accent-ink); }
.cal-day.min { color: var(--muted); border-color: var(--line-strong); border-style: dashed; }
.cal-note { color: var(--muted); font-size: 13px; margin: 18px 0 0; }
.booking-form h3 { font-size: 22px; margin-bottom: 20px; font-weight: 400; }
.booking-form label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.booking-form .req { color: var(--accent); }
.booking-form input, .booking-form select, .booking-form textarea {
  display: block; width: 100%; margin-top: 7px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font-family: inherit;
  /* 16px = próg iOS: poniżej Safari przy focusie przybliża całą stronę */
  font-size: 16px; transition: border-color .2s;
}
.booking-form input:focus, .booking-form select:focus, .booking-form textarea:focus { outline: none; border-color: var(--accent); }
.booking-form input[type="time"] { color-scheme: dark; }
/* telefon: kierunkowy z selecta + numer obok (mobile-friendly, tel klawiatura) */
.booking-form .form-field { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.phone-row { display: flex; gap: 8px; margin-top: 7px; }
.phone-row select { width: 108px; flex: 0 0 auto; margin-top: 0; appearance: auto; }
.phone-row input { flex: 1; min-width: 0; margin-top: 0; }

/* ---------------- Contact ---------------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface);
  transition: transform .35s var(--ease), border-color .35s;
}
.contact-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.contact-card h3 { font-size: 19px; margin-bottom: 14px; font-weight: 400; }
.contact-mail { font-size: 17px; margin: 0 0 8px; word-break: break-word; }
.contact-mail a { color: var(--accent); }
.contact-sub { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------------- Alert ---------------- */
.alert { margin-top: 24px; padding: 18px 22px; border-radius: var(--radius-sm); font-size: 15.5px; }
.alert-ok { background: rgba(127,199,139,0.12); border: 1px solid rgba(127,199,139,0.4); color: var(--ok); }
.alert-err { background: rgba(224,101,79,0.12); border: 1px solid rgba(224,101,79,0.4); color: var(--danger); }

/* ---------------- 404 ---------------- */
.notfound { padding: 120px 0; text-align: center; }
.nf-code { font-family: var(--serif); font-size: clamp(90px, 20vw, 220px); color: var(--surface-2); -webkit-text-stroke: 1px var(--line-strong); margin: 0; line-height: 0.9; }
.notfound h1 { font-size: clamp(28px, 5vw, 44px); margin: 30px 0 14px; }
.notfound p { color: var(--muted); margin: 0 0 34px; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 0 30px; position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 50px; }
.footer-logo { font-family: var(--serif); font-size: 26px; margin: 0 0 12px; }
.footer-tag { color: var(--muted); margin: 0; font-size: 15px; max-width: 34ch; }
.footer-col h4 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted-2); margin: 0 0 18px; font-family: var(--sans); font-weight: 600; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 15px; padding: 6px 0; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 26px; color: var(--muted-2); font-size: 14px;
}
.footer-bottom p { margin: 0; }
.footer-admin { font-size: 13.5px; color: var(--muted-2); border-bottom: 1px solid transparent; transition: .2s; }
.footer-admin:hover { color: var(--accent); border-color: var(--accent); }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text);
  padding: 14px 24px; border-radius: 100px; font-size: 15px; font-weight: 500; z-index: 300;
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s var(--ease);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-err { border-color: rgba(224,101,79,0.5); color: var(--danger); }

/* ============================================================
   ADMIN PANEL
   ============================================================ */
.admin-app { max-width: 1240px; margin: 0 auto; padding: 30px 24px 80px; }
.admin-top {
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px; margin-bottom: 28px; border-bottom: 1px solid var(--line);
}
.admin-brand { display: flex; align-items: center; gap: 16px; }
.admin-logo {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(232,180,74,0.12); color: var(--accent); font-size: 26px;
}
.admin-top h1 { font-size: 28px; font-weight: 400; }
.admin-top p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.admin-top-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 6px;
}
.stat-num { font-family: var(--serif); font-size: 40px; font-weight: 380; line-height: 1; }
.stat-label { color: var(--muted); font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.08em; }
.stat-warn .stat-num { color: var(--accent); }

.admin-tabs { display: flex; gap: 8px; margin-bottom: 24px; flex-wrap: wrap; }
.tab-btn {
  padding: 11px 22px; border-radius: 100px; border: 1px solid var(--line);
  background: none; color: var(--muted); font-size: 14.5px; font-weight: 600; transition: .2s;
}
.tab-btn:hover { color: var(--text); border-color: var(--line-strong); }
.tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.admin-pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.pane-head h3 { font-size: 20px; font-weight: 400; margin: 0; }
.pane-note { margin: 0; color: var(--muted); font-size: 13.5px; text-align: right; max-width: 46ch; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.data-table th { text-align: left; padding: 14px 18px; color: var(--muted-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; border-bottom: 1px solid var(--line); }
.data-table td { padding: 16px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover td { background: rgba(245,242,234,0.02); }
.data-table .cell-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.row-title { font-weight: 600; }
.row-sub { color: var(--muted); font-size: 13px; }
.status-pill { display: inline-block; padding: 5px 12px; border-radius: 100px; font-size: 12.5px; font-weight: 600; }
.status-pill.pending { background: rgba(232,180,74,0.14); color: var(--accent); }
.status-pill.confirmed { background: rgba(127,199,139,0.14); color: var(--ok); }
.status-pill.rejected { background: rgba(224,101,79,0.14); color: var(--danger); }
.btn-mini { padding: 7px 13px; font-size: 13px; border-radius: 100px; border: 1px solid var(--line-strong); background: none; color: var(--text); transition: .2s; font-weight: 500; }
.btn-mini:hover { border-color: var(--text); background: rgba(245,242,234,0.05); }
.btn-mini.ok:hover { border-color: var(--ok); color: var(--ok); }
.btn-mini.warn:hover { border-color: var(--accent); color: var(--accent); }
.btn-mini.danger:hover { border-color: var(--danger); color: var(--danger); }
.pane-actions { padding: 18px 24px; display: flex; justify-content: flex-end; align-items: center; gap: 16px; }
.pane-hint { color: var(--muted); font-size: 13.5px; }
.pane-hint strong { color: var(--text); }
.empty-state { padding: 60px 24px; text-align: center; color: var(--muted); }
.empty-state h4 { font-family: var(--serif); font-size: 22px; color: var(--text); margin-bottom: 8px; font-weight: 400; }

/* modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(6,6,7,0.8); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 24px; }
.modal {
  width: 100%; max-width: 620px; max-height: 88vh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); padding: 30px;
}
.modal h3 { font-size: 24px; font-weight: 400; margin-bottom: 22px; }
.modal label { display: block; font-size: 13.5px; color: var(--muted); margin-bottom: 16px; font-weight: 500; }
.modal input, .modal textarea {
  display: block; width: 100%; margin-top: 7px; background: var(--bg); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 14px; font-family: inherit; font-size: 16px; /* iOS: brak zoomu przy focusie */
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 26px; }

/* admin gate (login screen) */
.admin-gate { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 40px 24px; }
.gate-card { text-align: center; max-width: 440px; }
.gate-ico { font-size: 46px; color: var(--accent); }
.gate-card h1 { font-size: 34px; margin: 18px 0 14px; font-weight: 380; }
.gate-card p { color: var(--muted); margin: 0 0 28px; }
.gate-note { font-size: 13px; color: var(--muted-2); margin-top: 20px; }
.gate-note code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: 12.5px; }

/* ============================================================
   REVEAL / MOTION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .main-nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; background: var(--bg-soft); border-bottom: 1px solid var(--line);
    padding: 20px 24px 28px; gap: 6px; }
  .main-nav.open { display: flex; }
  .main-nav > a { padding: 12px 0; font-size: 18px; width: 100%; }
  .main-nav > a::after { display: none; }
  .nav-burger { display: flex; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
  .bento, .features, .pricing, .contact-grid, .posts-row, .work-grid, .gallery, .booking-grid, .admin-stats { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .section { padding: 64px 0; }
  .hero-meta { gap: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  /* tap-targety WCAG 2.1.1/2.5.5: palcom trzeba >= 44px */
  .cal-day { min-height: 44px; aspect-ratio: auto; }
  .booking-grid > * { min-width: 0; }
  /* karty rezerwacji cieńsze marginesy, żeby dni kalendarza miały >= 40px */
  .calendar-card, .booking-form { padding: 16px; }
  .cal-grid { gap: 4px; }
  .footer-admin { min-height: 40px; display: inline-flex; align-items: center; }
  .tab-btn { min-height: 44px; }
  .btn-mini { min-height: 40px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .main-nav > a { min-height: 44px; display: flex; align-items: center; }
  .footer-col a { min-height: 40px; display: flex; align-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   STYLE 2 — "sstr" (inspired by sstr.tech)
   dark graphite · orange #fe5b2a · grotesque · tight headings
   Sygnatura: prefix "//" przy kickerach, grotesk zamiast serif,
   ostre karty (radius 10px), mocne, wielkie, tight nagłówki.
   ============================================================ */
html[data-style="sstr"] {
  --bg: #18191b;
  --bg-soft: #1d1e20;
  --surface: #232426;
  --surface-2: #2f3032;
  --line: rgba(239, 240, 241, 0.10);
  --line-strong: rgba(239, 240, 241, 0.24);
  --text: #eff0f1;
  --muted: #9b9ca1;
  --muted-2: #6f7075;
  --accent: #fe5b2a;
  --accent-2: #ff8a5c;
  --accent-ink: #ffffff;
  --danger: #ff6b5e;
  --ok: #5fc98e;
  --serif: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 10px;
  --radius-sm: 8px;
  --header-h: 68px;
  /* sygnaturowy prefix — sstr.tech używa "//" przy kickerach */
  --kicker-prefix: "// ";
}
/* grotesk w nagłówkach, mocny, tight */
html[data-style="sstr"] h1,
html[data-style="sstr"] h2,
html[data-style="sstr"] h3,
html[data-style="sstr"] h4 {
  font-family: var(--serif);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
}
/* body: czysty grotesk, większe wiersze, ostre */
html[data-style="sstr"] body {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 1.6;
  font-weight: 450;
}
/* film grain — wyłączamy (sstr jest płaski/czysty) */
html[data-style="sstr"] .grain { display: none; }

/* prefix "//" przy kickerach i eyebrowach — sygnatura sstr */
html[data-style="sstr"] .kicker::before,
html[data-style="sstr"] .hero-eyebrow::before {
  content: var(--kicker-prefix);
  font-weight: 700;
}
html[data-style="sstr"] .kicker,
html[data-style="sstr"] .hero-eyebrow {
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 600;
}
html[data-style="sstr"] .hero-eyebrow { font-size: 15px; margin-bottom: 20px; }

/* hero — wielkie, tight, agresywne */
html[data-style="sstr"] .hero-title {
  font-size: clamp(52px, 9vw, 118px);
  font-weight: 750;
  line-height: 0.92;
  letter-spacing: -0.045em;
  max-width: 16ch;
}
html[data-style="sstr"] .hero-title em {
  font-style: normal;
  font-weight: 750;
  color: var(--accent);
  -webkit-text-stroke: 0;
}
html[data-style="sstr"] .hero-lead { font-size: clamp(17px, 2.1vw, 22px); line-height: 1.55; color: var(--muted); }
html[data-style="sstr"] .hero-meta strong { font-family: var(--serif); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; }
html[data-style="sstr"] .hero-meta span { letter-spacing: 0.01em; text-transform: none; }
/* hero bg — pomarańczowe świetlenie */
html[data-style="sstr"] .hero-bg {
  background:
    radial-gradient(55% 50% at 78% 12%, rgba(254, 91, 42, 0.14), transparent 62%),
    radial-gradient(45% 45% at 8% 85%, rgba(254, 91, 42, 0.07), transparent 60%),
    linear-gradient(180deg, #1c1d1f 0%, var(--bg) 100%);
}

/* sekcje — większy spacing, tight title */
html[data-style="sstr"] .section { padding: 110px 0; }
html[data-style="sstr"] .section-title {
  font-size: clamp(36px, 5.6vw, 64px);
  font-weight: 750;
  letter-spacing: -0.04em;
}
html[data-style="sstr"] .section-title em { font-style: normal; font-weight: 750; color: var(--accent); }
html[data-style="sstr"] .section-sub { font-size: 18px; }

/* marquee — grotesk, nie italic, ostre */
html[data-style="sstr"] .marquee-track span { font-family: var(--serif); font-style: normal; font-weight: 700; letter-spacing: -0.02em; color: var(--muted); }

/* logo */
html[data-style="sstr"] .logo-name { font-family: var(--serif); font-weight: 750; font-size: 21px; letter-spacing: -0.03em; }
html[data-style="sstr"] .logo-sub { letter-spacing: 0.14em; }

/* bento / feature karty — ostre */
html[data-style="sstr"] .bento-card,
html[data-style="sstr"] .feature-card,
html[data-style="sstr"] .contact-card,
html[data-style="sstr"] .price-card { border-radius: var(--radius); }
html[data-style="sstr"] .bento-card h3,
html[data-style="sstr"] .feature-card h3,
html[data-style="sstr"] .contact-card h3 { font-weight: 700; letter-spacing: -0.02em; }
html[data-style="sstr"] .bento-num { font-family: var(--serif); font-weight: 700; letter-spacing: 0; }

/* work / portfolio karty — ostre */
html[data-style="sstr"] .work-card,
html[data-style="sstr"] .post-card,
html[data-style="sstr"] .blog-row { border-radius: var(--radius); }

/* price card featured — pomarańcz */
html[data-style="sstr"] .price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(254, 91, 42, 0.10), var(--surface));
}
html[data-style="sstr"] .price-ico { background: rgba(254, 91, 42, 0.12); color: var(--accent); }

/* calendar / booking */
html[data-style="sstr"] .cal-day.selected { background: var(--accent); color: #17130a; }
html[data-style="sstr"] .cal-day.selected::after { background: #17130a; }
html[data-style="sstr"] .cal-day.available:hover { color: #17130a; }
html[data-style="sstr"] .cal-day.available:hover::after { background: #17130a; }
html[data-style="sstr"] .cal-day.available::after { background: var(--accent); }
html[data-style="sstr"] .booking-form input[type="time"] { color-scheme: dark; }

/* toast */
html[data-style="sstr"] .toast { border-radius: var(--radius); }

/* ---------------- Admin panel — motyw sstr ---------------- */
html[data-style="sstr"] .stat-card,
html[data-style="sstr"] .admin-pane,
html[data-style="sstr"] .modal { border-radius: var(--radius); }
html[data-style="sstr"] .stat-num { font-family: var(--serif); font-weight: 700; letter-spacing: -0.03em; }
html[data-style="sstr"] .stat-warn .stat-num { color: var(--accent); }
html[data-style="sstr"] .tab-btn { border-radius: 8px; font-weight: 600; }
html[data-style="sstr"] .tab-btn.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
html[data-style="sstr"] .btn-mini { border-radius: 8px; }
html[data-style="sstr"] .status-pill.pending { background: rgba(254, 91, 42, 0.16); color: var(--accent); }
html[data-style="sstr"] .status-pill.confirmed { background: rgba(95, 201, 142, 0.16); color: var(--ok); }
html[data-style="sstr"] .status-pill.rejected { background: rgba(255, 107, 94, 0.16); color: var(--danger); }
html[data-style="sstr"] .admin-logo { background: rgba(254, 91, 42, 0.14); color: var(--accent); border-radius: 10px; }
html[data-style="sstr"] .data-table tr:hover td { background: rgba(239, 240, 241, 0.03); }
html[data-style="sstr"] .btn-primary { background: var(--accent); color: var(--accent-ink); }
html[data-style="sstr"] .btn-primary:hover { background: var(--accent-2); transform: translateY(-2px); }

/* style picker cards (tabka Styl strony) */
.style-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px; }
.style-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface); transition: border-color .25s, transform .25s var(--ease);
  display: flex; flex-direction: column; cursor: pointer;
}
.style-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.style-card.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.style-card .sw {
  height: 150px; display: grid; place-items: center; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.style-card .sw .badge {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; background: rgba(0,0,0,0.35); color: #fff;
  backdrop-filter: blur(4px);
}
.style-card .sw .demo-title { font-weight: 750; letter-spacing: -0.04em; font-size: 30px; line-height: 1; }
.style-card .sw .demo-kicker { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; margin-top: 10px; }
/* podgląd klasyczny */
.style-card[data-style="classic"] .sw { background: #0b0b0c; }
.style-card[data-style="classic"] .demo-title { font-family: var(--serif); font-weight: 400; font-style: italic; color: #f5f2ea; letter-spacing: -0.01em; }
.style-card[data-style="classic"] .demo-kicker { color: #e8b44a; letter-spacing: 0.24em; text-transform: uppercase; }
/* podgląd sstr */
.style-card[data-style="sstr"] .sw { background: #18191b; }
.style-card[data-style="sstr"] .demo-title { font-family: var(--sans); font-weight: 750; color: #eff0f1; letter-spacing: -0.045em; }
.style-card[data-style="sstr"] .demo-kicker { color: #fe5b2a; font-weight: 700; }
.style-card .meta { padding: 16px 20px 20px; }
.style-card .meta h4 { font-size: 18px; font-weight: 700; margin: 0 0 4px; letter-spacing: -0.02em; }
.style-card .meta p { margin: 0; color: var(--muted); font-size: 14px; }
.style-card .cur {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; background: var(--accent); color: var(--accent-ink);
}
@media (max-width: 700px) { .style-cards { grid-template-columns: 1fr; } }

/* ============================================================
   PORTAL KLIENTA (/portal)
   ============================================================ */
.nav-login { border: 1px solid var(--line-strong); border-radius: 100px; padding: 8px 16px; font-size: 14px; }
.nav-login:hover { border-color: var(--accent); color: var(--accent); }
.nav-login.logged { border-color: var(--accent); color: var(--accent); }
html[data-style="sstr"] .nav-login { border-radius: 8px; }

.portal-inner { padding: calc(var(--header-h) * 0.5) 24px 80px; max-width: 1080px; }
.portal-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.portal-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 6px 0 4px; font-weight: 400; }
.portal-sub { color: var(--muted); margin: 0; }
.portal-actions { display: flex; gap: 10px; }
.portal-stats { margin-bottom: 34px; }
.portal-sessions { display: grid; gap: 18px; }
.portal-note { color: var(--muted); font-size: 13.5px; margin-top: 30px; }

.session-card { border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; background: rgba(245,242,234,0.02); }
html[data-style="sstr"] .session-card { border-radius: 10px; }
.session-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.session-head h3 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.session-when { color: var(--muted); margin: 0; font-size: 14px; }
.session-photos-line { margin-top: 14px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.portal-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-top: 16px; }
.portal-gallery .gallery-item { aspect-ratio: 4/3; border-radius: 10px; cursor: zoom-in; overflow: hidden; }
html[data-style="sstr"] .portal-gallery .gallery-item { border-radius: 6px; }

/* modal zdjęć w panelu admina */
.photos-list { max-height: 320px; overflow-y: auto; display: grid; gap: 8px; margin-bottom: 14px; }
.photo-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.photo-thumb { width: 64px; height: 48px; object-fit: cover; border-radius: 6px; flex: none; }
.photo-meta { flex: 1; min-width: 0; }
.photo-meta .row-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-upload-label { display: block; border: 1.5px dashed var(--line-strong); border-radius: 12px; padding: 16px; text-align: center; color: var(--muted); cursor: pointer; transition: .2s; }
.photo-upload-label:hover { border-color: var(--accent); color: var(--text); }
.photo-upload-label input { margin-top: 8px; }
.btn-ok { background: transparent; color: var(--ok); border-color: rgba(127,199,139,0.4); }
.btn-ok:hover { background: rgba(127,199,139,0.12); border-color: var(--ok); }
.status-pill.completed { background: rgba(95,155,255,0.14); color: #7ea2ff; }

/* banner trybu podgladu — administrator oglada strone jako klient */
.preview-banner {
  position: sticky; top: 0; z-index: 90;
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 10px 20px;
  background: linear-gradient(90deg, rgba(254,176,32,0.16), rgba(254,176,32,0.06));
  border-bottom: 1px solid rgba(254,176,32,0.45);
  font-size: 14px;
}
.preview-banner[hidden] { display: none; }
.preview-banner .pv-ico { font-size: 18px; }
.preview-banner .pv-text { flex: 1 1 240px; }
.preview-banner strong { color: #ffb020; }


/* --- portal: cena / płatność / podgląd przed płatnością --- */
.price-box {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 14px 16px; margin: 10px 0;
  border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(245, 242, 234, 0.03);
}
.price-box.proposed { border-color: rgba(255, 176, 32, 0.45); }
.price-box.unpaid { border-color: rgba(224, 101, 79, 0.45); }
.price-box .row-sub { margin-top: 4px; }
.portal-gallery.wm { position: relative; }
.portal-gallery.wm::after {
  content: "PODGLĄD — płatność odblokowuje pełną jakość";
  position: absolute; top: 8px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  padding: 6px 14px; border-radius: 999px; pointer-events: none;
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(11,11,12,0.78); color: #ffb020;
  border: 1px solid rgba(255,176,32,0.4); z-index: 3;
}

/* ============ rozszerzenia obiegu rezerwacji (2026-09) ============ */
/* kalendarz: dni zajęte/zablokowane */
.cal-day.blocked {
  color: var(--muted-2); background: repeating-linear-gradient(45deg,
    transparent, transparent 4px, rgba(255,255,255,.04) 4px, rgba(255,255,255,.04) 8px);
  border: 1px dashed var(--line-strong); cursor: not-allowed; text-decoration: line-through;
}
/* lightbox: nawigacja */
.lightbox .lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.45); color: #fff; font-size: 26px; line-height: 1;
  display: grid; place-items: center; cursor: pointer; transition: .2s; z-index: 5;
}
.lightbox .lb-nav:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.lightbox .lb-prev { left: 18px; }
.lightbox .lb-next { right: 18px; }
.lightbox .lb-count {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  color: var(--muted); font-size: 14px; letter-spacing: .08em;
}
/* cena poprzednia przekreślona */
.price-prev { opacity: .55; font-weight: 400; margin-right: 6px; }
/* sesja anulowana */
.session-card.cancelled { opacity: .6; }
.session-manage { margin-top: 12px; align-items: center; gap: 10px; }
/* profil klienta */
.profile-box {
  border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2);
  padding: 14px 18px; margin: 0 0 22px;
}
.profile-box summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.profile-form { margin-top: 14px; display: grid; gap: 14px; max-width: 520px; }
.profile-form label { display: block; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.profile-form input { width: 100%; margin-top: 6px; }
/* usługi dodatkowe */
.extras-box { border: 1px dashed var(--line-strong); border-radius: 12px; padding: 10px 16px; margin-top: 14px; }
.extras-box summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.extras-body { margin-top: 12px; display: grid; gap: 10px; }
.extra-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; cursor: pointer; }
.extra-row.bought { cursor: default; }
.extra-row input[type="checkbox"] { margin-top: 4px; accent-color: var(--accent); }
/* panel admina: formularz blokady + katalog */
.blocked-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; margin-bottom: 22px; }
.blocked-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.blocked-form input { min-width: 170px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 12px; }
.session-edit { margin: 10px 0; }

/* ============ Rezerwacja klienta: wybór godziny (sloty) ============ */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 8px; margin-top: 8px; }
.slot-btn { padding: 10px 8px; font-size: 14px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 10px; background: none; color: var(--text); transition: .15s; }
.slot-btn:hover { border-color: var(--accent); color: var(--accent); }
.slot-btn.selected { background: var(--accent); color: #fff; border-color: var(--accent); }
#bk-time-wrap .row-sub { margin: 4px 0 0; }

/* ============ Admin: pasek narzędzi rezerwacji ============ */
.bk-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 16px 24px; }
.bk-toolbar input[type=search] { flex: 1 1 260px; min-width: 220px; }
.bk-toolbar select { min-width: 170px; }
.bk-view-toggle { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 100px; overflow: hidden; }
.bk-view-toggle .btn-mini { border: 0; border-radius: 0; }
.btn-mini.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.data-table th.sorted { color: var(--accent); }
.data-table th[role=button] { cursor: pointer; user-select: none; }

/* kalendarz rezerwacji (admin) */
.bk-cal-head { display: flex; align-items: center; gap: 12px; padding: 18px 24px 6px; }
.bk-cal-head h3 { font-family: var(--serif); font-size: 18px; font-weight: 400; margin: 0; flex: 1; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; padding: 12px 24px 24px; }
.bk-cal-dow { text-align: center; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: 6px 0; }
.bk-cal-day { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 8px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; cursor: pointer; }
.bk-cal-day.empty { border: 0; cursor: default; }
.bk-cal-day.has { border-color: var(--accent); }
.bk-cal-num { font-size: 13px; color: var(--muted); }
.bk-cal-count { margin-top: auto; background: var(--accent); color: #fff; border-radius: 100px; font-size: 11px; font-weight: 700; padding: 2px 8px; }
.bk-cal-day:hover:not(.empty) { border-color: var(--accent); }

/* ============ Admin: grafik pracy ============ */
.sched-box { display: flex; flex-direction: column; gap: 8px; padding: 6px 24px; max-width: 560px; }
.sched-row { display: flex; align-items: center; gap: 10px; }
.sched-day { flex: 0 0 110px; font-size: 14px; }
.sched-row input[type=time] { width: 120px; }
.modal .check, label.check { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }

/* ============ Admin: edytor WYSIWYG podstron ============ */
.wysiwyg-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 14px 0 0; }
.wysiwyg-tabs .wtab { padding: 10px 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: 13.5px; cursor: pointer; }
.wysiwyg-tabs .wtab.active { color: var(--accent); border-bottom-color: var(--accent); }
.wysiwyg-toolbar { display: flex; flex-wrap: wrap; gap: 4px; padding: 8px; border: 1px solid var(--line); border-bottom: 0; border-radius: 10px 10px 0 0; }
.wysiwyg-toolbar button { min-width: 34px; height: 32px; padding: 0 10px; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--text); font-size: 13px; cursor: pointer; }
.wysiwyg-toolbar button:hover { background: rgba(245,242,234,0.08); }
.wysiwyg-editor { min-height: 240px; max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 0 0 10px 10px; padding: 18px; color: var(--text); font-size: 15px; line-height: 1.6; }
.wysiwyg-editor:focus { outline: none; border-color: var(--accent); }
.wysiwyg-editor:empty:before { content: attr(data-placeholder); color: var(--muted); }
.wysiwyg-pane { margin-bottom: 6px; }
.wysiwyg-preview { border: 1px solid var(--line); border-radius: 10px; padding: 22px; min-height: 240px; overflow: auto; color: var(--text); }
.wysiwyg-preview h1, .wysiwyg-preview h2, .wysiwyg-preview h3 { font-family: var(--serif); }
.wysiwyg-preview a { color: var(--accent); }
.wysiwyg-preview blockquote { border-left: 3px solid var(--accent); margin: 12px 0; padding-left: 16px; color: var(--muted); }
.wysiwyg-preview img { max-width: 100%; border-radius: 8px; }
.wysiwyg-preview p { margin: 0 0 12px; }
.wysiwyg-pane textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, monospace; font-size: 13px; }

/* ============ Responsywność: brak poziomego przewijania strony ============ */
html, body { max-width: 100%; overflow-x: hidden; }
img, svg, video, iframe { max-width: 100%; height: auto; }
/* tabele danych: dopasowują się do szerokości; gdy wąskie — przewijają
   się w SWOIM kontenerze, nie na całej stronie */
.table-scroll, .data-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.data-table { table-layout: auto; }
.data-table th, .data-table td { overflow-wrap: anywhere; word-break: break-word; }
@media (max-width: 900px) {
  .admin-pane, .container { padding-left: 14px; padding-right: 14px; }
  .data-table th, .data-table td { padding: 10px 10px; font-size: 13.5px; }
  .bk-cal-day { min-height: 52px; }
}
/* hover wyboru godziny: jednoznacznie podświetlony element pod kursorem */
.slot-btn:hover { background: rgba(245,242,234,0.10); border-color: var(--accent); color: var(--accent); }
.slot-btn.selected, .slot-btn.selected:hover { background: var(--accent); border-color: var(--accent); color: #fff; }


/* ============================================================
   Cookie consent (RODO/ePrivacy) — pasek + panel kategorii
   ============================================================ */
.cc-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(12, 12, 14, 0.97); border-top: 1px solid var(--line-strong);
  backdrop-filter: blur(6px);
}
[data-style="sstr"] .cc-banner { background: rgba(16, 16, 18, 0.97); }
.cc-inner {
  display: flex; gap: 18px; align-items: center; justify-content: space-between;
  padding: 16px 20px; flex-wrap: wrap;
}
.cc-text { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text); max-width: 720px; }
.cc-text a { color: var(--accent); text-decoration: underline; }
.cc-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cc-preferences {
  position: fixed; inset: 0; z-index: 61; display: flex; align-items: center;
  justify-content: center; background: rgba(0, 0, 0, 0.72); padding: 20px;
}
.cc-panel {
  background: var(--bg-soft); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 24px; width: min(560px, 100%); max-height: 90vh; overflow: auto;
}
.cc-panel h3 { margin: 0 0 16px; font-size: 20px; }
.cc-row {
  display: flex; gap: 14px; align-items: flex-start; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.cc-row em { display: block; font-style: normal; margin-top: 4px; }
.cc-row input[type="checkbox"] { margin-top: 4px; width: 20px; height: 20px; accent-color: var(--accent); }
.footer-legal { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.footer-legal a { color: var(--text-dim, rgba(245,242,234,0.72)); font-size: 13px; }
.footer-linkbtn {
  background: none; border: 0; padding: 0; cursor: pointer; font: inherit;
  font-size: 13px; color: var(--text-dim, rgba(245,242,234,0.72)); text-decoration: underline;
}
.footer-admin { font-size: 13px; }

/* podstrona portalu „Dane konta" */
.portal-account .account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.account-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.account-card {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
}
.account-card h3 { margin: 0 0 4px; font-size: 18px; }
.account-card label { display: block; font-size: 13px; color: var(--text-dim, rgba(245,242,234,0.72)); }
.account-card input { width: 100%; margin-top: 5px; }
.account-card .cell-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.account-card.danger-zone { border-color: rgba(220, 90, 90, 0.45); }

/* teksty prawne (polityka prywatności / cookies) */
.legal-text { max-width: 820px; margin: 0 auto; line-height: 1.75; }
.legal-text h2 { margin: 32px 0 10px; font-size: 19px; }
.legal-text ul { margin: 0 0 16px; padding-left: 22px; }
.legal-text li { margin-bottom: 8px; }

/* ============================================================
   Panel admina — kalendarz: grafik godzinowy (dzień) + tydzień
   ============================================================ */
.cal-day-wrap, .cal-week-wrap { display: flex; gap: 0; margin-top: 10px; }
.cal-hours-col { width: 62px; flex: 0 0 62px; }
.cal-hours-head { height: 30px; }
.cal-hour-row {
  border-top: 1px solid var(--line); position: relative; box-sizing: border-box;
}
.cal-hour-row > span {
  position: absolute; top: -8px; left: 0; font-size: 11px;
  color: var(--text-dim, rgba(245,242,234,0.6));
}
.cal-day-col { flex: 1; min-width: 0; }
.cal-day-col.wide { border-left: 1px solid var(--line); }
.cal-all-day { min-height: 30px; display: flex; flex-wrap: wrap; gap: 4px; padding: 3px 4px; }
.cal-ad-chip {
  font: inherit; font-size: 11px; padding: 3px 7px; border-radius: 999px; cursor: pointer;
  background: var(--surface-2, #17171a); color: var(--text);
  border: 1px solid var(--line-strong);
}
.cal-ad-chip:hover { border-color: var(--accent); }
.cal-timeline {
  position: relative; border-top: 1px solid var(--line);
  background-image: repeating-linear-gradient(
    to bottom, transparent 0, transparent calc(var(--cal-row, 46px) - 1px),
    var(--line) calc(var(--cal-row, 46px) - 1px), var(--line) var(--cal-row, 46px));
}
.cal-panel {
  position: absolute; left: 4px; right: 4px; overflow: hidden; cursor: pointer;
  text-align: left; font: inherit; font-size: 12px; line-height: 1.35;
  padding: 5px 8px; border-radius: 8px; color: var(--text);
  background: rgba(232, 180, 74, 0.14); border: 1px solid rgba(232, 180, 74, 0.55);
  display: flex; flex-direction: column; gap: 1px;
}
.cal-panel:hover { background: rgba(232, 180, 74, 0.24); }
.cal-panel.st-confirmed { background: rgba(90, 200, 130, 0.14); border-color: rgba(90, 200, 130, 0.55); }
.cal-panel.st-pending { background: rgba(232, 180, 74, 0.16); border-color: rgba(232, 180, 74, 0.6); }
.cal-panel.st-completed { background: rgba(120, 150, 230, 0.14); border-color: rgba(120, 150, 230, 0.5); }
.cal-panel.st-cancelled, .cal-panel.st-rejected { opacity: .5; border-style: dashed; }
.cal-panel.paid { box-shadow: inset 3px 0 0 var(--accent); }
.cal-panel .cp-line { font-weight: 600; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.cal-panel .cp-sub { font-size: 11px; opacity: .75; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; }
.day-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.bk-cal-day.sel { outline: 2px solid var(--accent); }
.cal-week-grid { flex: 1; min-width: 0; }
.cal-week-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-dow-cell { border-left: 1px solid var(--line); }
.cal-dow-cell.today .cal-dow-btn { color: var(--accent); }
.cal-dow-btn {
  width: 100%; background: none; border: 0; cursor: pointer; font: inherit; font-size: 12px;
  color: var(--text); padding: 6px 4px; display: flex; align-items: center; gap: 6px; justify-content: center;
}
.cal-dow-btn:hover { background: rgba(245,242,234,0.06); }
.cal-dow-count {
  background: var(--accent); color: var(--accent-ink); border-radius: 999px;
  font-size: 10px; padding: 0 6px; font-weight: 700;
}
.cal-week-cols { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-all-day-list { margin-top: 14px; }
.cal-all-day-list h4 { margin: 0 0 6px; font-size: 14px; }

/* portal: uwagi klienta + notatka fotografa + dopłata */
.session-notes { margin: 6px 0 2px; display: flex; flex-direction: column; gap: 3px; }
.session-notes .note-admin { color: var(--accent); }
.price-paid-line strong { color: var(--text); }
.price-box.topup { border-color: rgba(232, 180, 74, 0.6); }


/* ---- kropki dostępności w kalendarzu rezerwacji -------------------------
   Zielona  — nic nie zajęte w tym dniu
   Pomarańczowa — część godzin zajęta, są jeszcze wolne terminy
   Czerwona — brak wolnych godzin startu (dzień pełny)
   Dzień zamknięty w grafiku nie pokazuje kropki. */
.cal-day.available.free::after { background: var(--ok); }
.cal-day.available.partial::after { background: var(--accent-2); }
.cal-day.available.full::after { background: var(--danger); }
.cal-day.available.full { opacity: .62; }
.cal-day.closed { color: var(--muted-2); opacity: .38; cursor: not-allowed; border-color: transparent; }
.cal-day.closed::after { display: none; }
