:root {
  --paper: #f5ece6;
  --paper-2: #ecdfd6;
  --ink: #1f2a22;
  --ink-2: #566159;
  --line: #e3cdc3;
  --accent: #e89a94;
  --accent-deep: #d97a72;
  --accent-soft: #f1bdb8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.serif { font-family: "Instrument Serif", "Cormorant Garamond", "Times New Roman", serif; font-weight: 400; letter-spacing: -0.01em; }
.mono  { font-family: ui-monospace, "JetBrains Mono", Menlo, monospace; }

.wrap { width: min(1200px, 92vw); margin: 0 auto; }

/* ---------- NAV ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  background: color-mix(in oklab, var(--paper) 85%, transparent);
  border-bottom: 1px solid color-mix(in oklab, var(--line) 50%, transparent);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: block;
  flex: none;
}
.brand-mark img {
  height: 44px;
  width: auto;
  max-width: none;
  display: block;
}

.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14px; color: var(--ink-2); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 500;
  transition: transform .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: color-mix(in oklab, var(--accent) 85%, black); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }

.nav-burger { display: none; }

/* ---------- HERO ---------- */
.hero { padding: 80px 0 100px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  /* 11fr/9fr zamiast 1.1fr/0.9fr: przy ułamkach < 1 grid zostawia pusty pas i zdjęcie nie dochodzi do krawędzi kontenera (i przełącznika języka) */
  grid-template-columns: 11fr minmax(0, 9fr);
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--ink-2);
}
.hero h1 {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 22px 0 24px;
  text-wrap: balance;
}
.hero h1 em { font-style: italic; color: var(--accent); }
.hero h1 .h1-nowrap { white-space: nowrap; }
@media (max-width: 640px) { .hero h1 .h1-nowrap { white-space: normal; } }
.hero-lead {
  font-size: 18px; color: var(--ink-2); max-width: 52ch;
  margin: 0 0 36px;
  text-wrap: pretty;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--paper-2);
  border: 1px solid var(--line);
  position: relative;
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-ticker {
  display: flex; gap: 32px; flex-wrap: wrap;
  margin-top: 70px; padding-top: 28px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px;
}
.hero-ticker span { display: inline-flex; align-items: center; gap: 10px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- SECTION basics ---------- */
section { padding: 100px 0; }
.section-head { max-width: 720px; margin-bottom: 60px; }
.section-head h2 {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05; letter-spacing: -0.015em;
  margin: 14px 0 18px;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); font-size: 18px; margin: 0; text-wrap: pretty; }

/* ---------- Zdjęcia w sekcjach ---------- */
.media {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* zdjęcie w O centrum rozciąga się na wysokość kolumny tekstu */
.about-photo { min-height: 360px; }
.card-media { aspect-ratio: 16 / 9; margin-bottom: 8px; }

/* ---------- O nas ---------- */
.about { background: var(--paper-2); }
.about-grid {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px;
  align-items: stretch;
}
.about-lead {
  font-family: "Instrument Serif", "Cormorant Garamond", serif;
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.25;
  text-wrap: pretty;
}
.about-body p { color: var(--ink-2); margin: 0 0 20px; }
.about-body .about-lead { color: var(--ink); margin: 0 0 32px; }
.about-stats {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 24px; margin-top: 40px;
  border-top: 1px solid var(--line); padding-top: 32px;
}
.stat .n {
  font-family: "Instrument Serif", "Cormorant Garamond", serif;
  font-size: 48px; line-height: 1; color: var(--accent);
}
.stat .l { font-size: 13px; color: var(--ink-2); margin-top: 6px; }

/* ---------- Oferta cards ---------- */
.offer-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s, border-color .25s;
}
.card:hover { transform: translateY(-3px); border-color: var(--accent); }
.card-num {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-style: italic;
  color: var(--accent); font-size: 22px;
}
.card h3 {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400;
  font-size: 26px; margin: 0; line-height: 1.15;
}
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card ul { margin: 6px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.card ul li { padding: 8px 0; border-top: 1px dashed var(--line); }
.card ul li:first-child { border-top: 0; }

/* ---------- Galeria ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 14px;
}
.tile {
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--paper-2);
  cursor: zoom-in;
}
.tile picture, .hero-visual picture { display: block; width: 100%; height: 100%; }
.tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.tile:hover img { transform: scale(1.04); }
.tile .cap {
  position: absolute; left: 12px; bottom: 10px;
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--ink); background: color-mix(in oklab, var(--paper) 90%, transparent);
  padding: 4px 9px; border-radius: 3px;
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.tile:hover .cap { opacity: 1; }
.t1 { grid-column: span 2; grid-row: span 2; }
.t2 { grid-column: span 2; grid-row: span 1; }
.t3 { grid-column: span 1; grid-row: span 1; }
.t4 { grid-column: span 1; grid-row: span 1; }
.t5 { grid-column: span 2; grid-row: span 2; }
.t6 { grid-column: span 1; grid-row: span 1; }
.t7 { grid-column: span 1; grid-row: span 1; }
.t8 { grid-column: span 2; grid-row: span 1; }
.t9 { grid-column: span 1; grid-row: span 1; }
.t10 { grid-column: span 1; grid-row: span 1; }
.t11 { grid-column: span 2; grid-row: span 2; }
.t12 { grid-column: span 1; grid-row: span 1; }
.t13 { grid-column: span 1; grid-row: span 1; }
.t14 { grid-column: span 2; grid-row: span 1; }

/* ---------- Dla kogo ---------- */
.for-who { background: var(--accent); color: var(--paper); }
.for-who .section-head p { color: color-mix(in oklab, var(--paper) 80%, transparent); }
.for-who .eyebrow { color: color-mix(in oklab, var(--paper) 70%, transparent); }
.for-who .eyebrow::before { background: color-mix(in oklab, var(--paper) 70%, transparent); }
.chips {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.chip {
  padding: 22px 26px;
  border: 1px solid color-mix(in oklab, var(--paper) 25%, transparent);
  border-radius: 4px;
  display: flex; align-items: center; gap: 16px;
  font-size: 16px;
}
/* Dla kogo: zdjęcie po lewej na wysokość kolumny, tekst + lista po prawej */
.for-who-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px;
  align-items: stretch;
}
.for-who-photo {
  min-height: 360px;
  border-color: color-mix(in oklab, var(--paper) 25%, transparent);
}
.for-who-body .section-head { margin-bottom: 36px; }
.for-who-body .chips { grid-template-columns: 1fr; gap: 10px; }
.for-who-body .chip { padding: 16px 22px; }
.chip .serif { color: color-mix(in oklab, var(--paper) 70%, transparent); font-size: 22px; font-style: italic; min-width: 38px; }

/* ---------- Availability ---------- */
.avail { background: var(--paper-2); }
.avail-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px;
  padding: 36px;
}
.avail-top { display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 18px; align-items: end; }
.avail-top label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.avail-top select, .avail-top input {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--paper); font: inherit; color: inherit;
}
.avail-top select:focus, .avail-top input:focus { outline: 0; border-color: var(--accent); }
.avail-cta { padding: 13px 24px; border-radius: 999px; background: var(--accent); color: var(--paper); font-size: 14px; font-weight: 500; border: 0; cursor: pointer; white-space: nowrap; transition: background .2s; }
.avail-cta:hover { background: var(--accent-deep); }

/* ---------- CRM table (Harmonogram) ---------- */
.crm-table {
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.crm-table table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.crm-table th, .crm-table td {
  padding: 14px 12px;
  text-align: left;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: middle;
}
.crm-table th:last-child, .crm-table td:last-child { border-right: 0; }
.crm-table tr:last-child td { border-bottom: 0; }
.crm-table thead th {
  background: var(--paper-2);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 16px 12px;
}
.crm-table thead th .gtype {
  display: block;
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: none;
  font-weight: 600;
  color: #6a6f6a;
  background: color-mix(in oklab, var(--ink) 7%, var(--paper));
  padding: 3px 8px;
  border-radius: 999px;
}
.crm-table thead th .gtype.gtype-l {
  color: #3f4540;
  background: color-mix(in oklab, var(--ink) 18%, var(--paper));
}
.crm-table thead th .gtype.gtype-b {
  color: #7d827d;
  background: color-mix(in oklab, var(--ink) 3%, var(--paper));
}
.crm-table .col-day {
  width: 130px;
  font-family: "Instrument Serif", "Cormorant Garamond", serif;
  font-size: 22px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  background: color-mix(in oklab, var(--paper-2) 60%, var(--paper));
  border-right: 1px solid var(--line);
}
.crm-table .col-pora {
  width: 140px;
  color: var(--ink);
}
.crm-table .pora-label { font-weight: 600; font-size: 13px; }
.crm-table .pora-hours { display: block; font-size: 11px; color: var(--ink-2); margin-top: 2px; font-weight: 400; }
.crm-table td.col-slot { padding: 10px 8px; }

/* Zwijany weekend */
.crm-table .wk-toggle td { padding: 0; background: color-mix(in oklab, var(--paper-2) 60%, var(--paper)); }
.crm-table .wk-toggle button {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 14px 12px;
  font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  background: none; border: 0; cursor: pointer;
  transition: color .2s, background .2s;
}
.crm-table .wk-toggle button:hover { color: var(--accent-deep); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.crm-table .wk-chev { display: inline-block; transition: transform .2s; }
.crm-table .wk-toggle button[aria-expanded="true"] .wk-chev { transform: rotate(180deg); }

/* Pill cells */
.pill {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  transition: background .2s, color .2s, transform .15s;
}
.pill.free {
  background: color-mix(in oklab, var(--ink) 5%, var(--paper));
  color: color-mix(in oklab, var(--ink-2) 70%, transparent);
  cursor: pointer;
}
.pill.free:hover {
  background: color-mix(in oklab, var(--accent) 25%, var(--paper));
  color: var(--accent-deep);
  transform: translateY(-1px);
}
.pill.busy {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.pill.weekend {
  background: color-mix(in oklab, var(--ink) 3%, var(--paper));
  color: color-mix(in oklab, var(--ink-2) 60%, transparent);
}
.pill.loading {
  background: color-mix(in oklab, var(--ink) 4%, var(--paper));
  color: color-mix(in oklab, var(--ink-2) 35%, transparent);
  cursor: default;
  letter-spacing: 0.18em;
  animation: pillPulse 1.2s ease-in-out infinite;
}
@keyframes pillPulse {
  0%, 100% { opacity: .5; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .pill.loading { animation: none; }
}

/* Calendar header */
.crm-head {
  display: flex; align-items: center; gap: 14px;
  padding-bottom: 22px;
}
.crm-head .icon {
  width: 40px; height: 40px; border-radius: 8px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--accent) 22%, var(--paper));
  color: var(--accent-deep);
  flex: none;
}
.crm-head h3 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
}
.crm-head .week-nav {
  margin-left: auto;
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-2);
}
.crm-head .week-nav button {
  width: 32px; height: 32px; border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--paper);
  display: grid; place-items: center;
  font-size: 14px;
  transition: background .15s;
}
.crm-head .week-nav button:hover { background: var(--paper-2); }
.crm-head .week-nav .week-label { font-weight: 500; min-width: 130px; text-align: center; }

.avail-footer {
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 14px;
  font-size: 13px; color: var(--ink-2);
}
.live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #44c47d;
  display: inline-block; margin-right: 8px; vertical-align: middle;
  position: relative;
}
/* pulsowanie przez transform/opacity (GPU), nie box-shadow: bez przerysowań co klatkę */
.live-dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(68,196,125,0.5);
  animation: ringPulse 1.8s ease-out infinite;
}
@keyframes ringPulse {
  0%   { transform: scale(1);   opacity: 1; }
  70%  { transform: scale(3.5); opacity: 0; }
  100% { transform: scale(3.5); opacity: 0; }
}

@media (max-width: 1100px) {
  .crm-table { overflow-x: auto; }
  .crm-table table { min-width: 880px; }
  .crm-table .wk-toggle button { justify-content: flex-start; padding-left: 20px; }
}
@media (max-width: 900px) {
  .avail-wrap { padding: 22px; }
  .crm-head h3 { font-size: 18px; }
}

/* ---------- Cennik ---------- */
.price-table {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
}
.price-head {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr;
  background: var(--paper-2);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-2);
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
}
.price-head span { text-align: right; }
.price-head span:first-child { text-align: left; }
.price-row {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.7fr;
  padding: 26px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
  gap: 16px;
}
.price-row:last-child { border-bottom: 0; }
.price-row .block { display: flex; align-items: baseline; gap: 12px; }
.price-row .num { font-family: "Instrument Serif", "Cormorant Garamond", serif; color: var(--accent); font-size: 22px; font-style: italic; }
.price-row .label { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 26px; line-height: 1.15; }
.price-row .hours { display: block; font-family: "Inter", sans-serif; font-size: 13px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0; }
.price-row .amt { text-align: right; font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 28px; line-height: 1.1; }
.price-row .amt small { display: block; font-size: 11px; color: var(--ink-2); text-transform: uppercase; letter-spacing: 0.14em; font-family: "Inter", sans-serif; margin-top: 2px; }
.price-row .cta { text-align: right; }
.price-row .cta a { font-size: 13px; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.price-row .cta a:hover { color: var(--ink); border-bottom-color: var(--ink); }
.price-row.is-custom .amt { font-size: 15px; font-family: "Inter", sans-serif; color: var(--ink-2); line-height: 1.4; }

.contact-card .contact-row .v a { color: var(--accent-deep); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }

@media (max-width: 860px) {
  .price-head { display: none; }
  .price-row { grid-template-columns: 1fr; gap: 10px; padding: 24px; }
  .price-row .amt { text-align: left; }
  .price-row .cta { text-align: left; }
}

/* ---------- Kontakt ---------- */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: start;
}
.contact-card {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
}
.contact-row {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 18px 0; border-top: 1px solid var(--line);
}
.contact-row:first-of-type { border-top: 0; }
.contact-row .k { font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--ink-2); min-width: 110px; padding-top: 4px; }
.contact-row .v { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 22px; line-height: 1.25; }
.contact-grid > * { min-width: 0; }  /* długi e-mail nie rozpycha strony na telefonie */
.contact-row .v { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 540px) { .contact-row { flex-direction: column; gap: 4px; } .contact-row .k { min-width: 0; padding-top: 0; } }

.form { display: grid; gap: 16px; }
.form label { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-2); display: block; margin-bottom: 8px; }
.form input, .form textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  font: inherit; color: inherit;
  transition: border-color .2s;
}
.form input:focus, .form textarea:focus { outline: 0; border-color: var(--accent); }
.form textarea { min-height: 130px; resize: vertical; }

.map-embed {
  height: 100%;
  min-height: 340px;
  align-self: stretch;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 0;
  background: var(--paper-2);
  position: relative;
  z-index: 0; /* własny kontekst stackingu — trzyma wysokie z-index Leaflet (panes/kontrolki do 1000) w obrębie mapy, żeby nie nachodziły na nav i modal */
}
.map-embed .leaflet-container {
  width: 100%; height: 100%;
  background: var(--paper-2);
  font-family: "Inter", sans-serif;
}
.map-embed .leaflet-popup-content-wrapper {
  background: var(--paper); color: var(--ink);
  border-radius: 6px;
  box-shadow: 0 6px 22px -8px rgba(0,0,0,0.25);
}
.map-embed .leaflet-popup-content {
  margin: 12px 16px; font-size: 13px;
}
.map-embed .leaflet-popup-content b {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 18px; color: var(--accent-deep);
  display: block; margin-bottom: 2px;
}
.map-embed .leaflet-popup-tip { background: var(--paper); }
.map-embed .leaflet-tile-pane {
  filter: hue-rotate(310deg) saturate(1.4) brightness(1.08) contrast(0.95);
}
.map-embed .leaflet-control-attribution {
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  font-size: 9px;
}
.map-embed .leaflet-control-attribution a {
  color: var(--accent-deep);
}
.pin-pulse {
  background: var(--accent);
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 3px solid var(--paper);
}
.pin-pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: rgba(232,154,148,0.7);
  animation: ringPulse 1.8s ease-out infinite;
  pointer-events: none;
}

/* ---------- Footer ---------- */
/* ciemna zieleń marki (--ink), jasny tekst */
footer { background: var(--ink); color: var(--paper); padding: 60px 0 30px; }
.foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 15%, transparent);
}
footer h4 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 20px; margin: 0 0 18px; }
footer ul { list-style: none; padding: 0; margin: 0; font-size: 14px; color: color-mix(in oklab, var(--paper) 78%, transparent); }
footer ul li { padding: 6px 0; }
footer a { transition: color .2s; }
footer ul a:hover, .foot-bottom a:hover { color: var(--accent-soft); }
.foot-about { color: color-mix(in oklab, var(--paper) 72%, transparent); max-width: 38ch; font-size: 14px; }
.foot-bottom { display: flex; justify-content: space-between; padding-top: 24px; font-size: 12px; color: color-mix(in oklab, var(--paper) 62%, transparent); flex-wrap: wrap; gap: 12px; }
footer :focus-visible { outline-color: var(--accent-soft); }

/* Pas CTA nad stopką — pudrowy róż, odcina się od mocniejszego różu stopki */
.cta-band { background: color-mix(in oklab, var(--accent) 22%, var(--paper)); padding: 64px 0; }
.foot-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.foot-cta h3 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: clamp(30px, 3.6vw, 46px); line-height: 1.05; margin: 0 0 10px; }
.foot-cta p { margin: 0; max-width: 52ch; color: var(--ink); font-size: 16px; }
.foot-cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: color-mix(in oklab, var(--ink) 85%, white); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
.cta-band .btn-outline:hover { background: var(--ink); color: var(--paper); }

/* ---------- W cenie ---------- */
.perks { background: var(--paper-2); }
.perks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.perk {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px 24px 24px;
  transition: transform .3s var(--ease-out, ease), border-color .25s, box-shadow .3s;
}
.perk:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 34px -24px color-mix(in oklab, var(--accent-deep) 70%, transparent); }
.perk-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent) 18%, var(--paper));
  color: var(--accent-deep);
  margin-bottom: 18px;
  transition: background .25s, color .25s, transform .4s var(--ease-out, ease);
}
.perk:hover .perk-ic { background: var(--accent); color: var(--paper); transform: rotate(-8deg) scale(1.06); }
.perk h3 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 23px; line-height: 1.15; margin: 0 0 8px; }
.perk p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

/* CTA pod galerią */
.gallery-cta { margin: 36px 0 0; text-align: center; color: var(--ink-2); }
.link-btn {
  font: inherit; font-weight: 600; color: var(--accent-deep);
  border-bottom: 1px solid var(--accent); padding: 0 0 1px; margin-left: 6px;
  transition: color .2s, border-color .2s;
}
.link-btn:hover { color: var(--ink); border-color: var(--ink); }

/* Kontakt: przyciski */
.contact-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }

/* Menu mobilne: CTA */
.mobile-sheet .sheet-cta {
  margin-top: 18px; text-align: left;
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 26px; color: var(--accent-deep);
}

/* ---------- LIGHTBOX ---------- */
#lb {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20, 18, 16, 0.92);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
#lb.on { display: flex; }
#lb .lb-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
#lb .lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 54px; height: 54px; border-radius: 50%;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  color: var(--ink);
  display: grid; place-items: center;
  font-size: 22px; font-family: "Instrument Serif", "Cormorant Garamond", serif;
  transition: background .2s, transform .2s;
}
#lb .lb-btn:hover { background: var(--accent); color: var(--paper); }
#lb .lb-prev { left: 24px; }
#lb .lb-next { right: 24px; }
#lb .lb-close {
  position: absolute; top: 22px; right: 26px;
  width: 44px; height: 44px; border-radius: 50%;
  background: color-mix(in oklab, var(--paper) 90%, transparent);
  color: var(--ink); display: grid; place-items: center; font-size: 18px;
}
#lb .lb-close:hover { background: var(--accent); color: var(--paper); }
#lb .lb-counter {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  font-family: ui-monospace, Menlo, monospace; font-size: 12px;
  color: color-mix(in oklab, var(--paper) 80%, transparent);
  letter-spacing: 0.1em;
}
@media (max-width: 640px) {
  #lb { padding: 10px; }
  #lb .lb-btn { width: 42px; height: 42px; }
  #lb .lb-prev { left: 10px; }
  #lb .lb-next { right: 10px; }
}

/* ---------- Tweaks panel ---------- */
#tweaks {
  position: fixed; right: 20px; bottom: 20px; z-index: 100;
  width: 320px; max-height: 70vh; overflow: auto;
  background: var(--paper); border: 1px solid var(--ink);
  border-radius: 10px; padding: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
  display: none;
  font-size: 13px;
}
#tweaks.on { display: block; }
#tweaks h5 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 20px; margin: 0 0 4px; }
#tweaks .hint { color: var(--ink-2); font-size: 11px; margin-bottom: 12px; }
#tweaks label { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2); margin: 10px 0 4px; }
#tweaks input, #tweaks textarea {
  width: 100%; padding: 7px 9px; border: 1px solid var(--line);
  border-radius: 4px; font: inherit; font-size: 12px; background: var(--paper);
}
#tweaks .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .hero { padding: 60px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { aspect-ratio: 4/3; order: -1; }
  section { padding: 70px 0; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .for-who-grid { grid-template-columns: 1fr; gap: 40px; }
  .for-who-photo { min-height: 0; aspect-ratio: 4 / 3; }
  .offer-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .price { border-right: 0; border-bottom: 1px solid var(--line); }
  .price:last-child { border-bottom: 0; }
  .chips { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 160px;
  }
  .tile[class*="t"] { grid-column: span 1; grid-row: span 1; }
  .t1, .t5, .t11 { grid-column: span 2; grid-row: span 1; }
  .about-stats { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .contact-card { padding: 26px; }
  .card { padding: 24px; }
}

/* mobile nav sheet */
.mobile-sheet {
  position: fixed; inset: 0; background: var(--paper);
  z-index: 50; padding: 80px 8vw; display: none; flex-direction: column; gap: 8px;
}
.mobile-sheet.on { display: flex; }
.mobile-sheet a { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 34px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mobile-sheet .close { position: absolute; top: 22px; right: 22px; font-size: 22px; }

/* ---------- Formularz zapytania rezerwacyjnego (popup) ---------- */
#bk {
  position: fixed; inset: 0; z-index: 210;
  display: none;
  /* przezroczyste tło bez backdrop-blur — dużo lżejsze przy scrollu (brak laga) */
  background: color-mix(in oklab, var(--ink) 62%, transparent);
}
#bk.on { display: block; }
/* 5% góra/dół, 20% lewo/prawo */
#bk .bk-panel {
  position: absolute; inset: 5% 20%;
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  overflow: hidden;
  display: flex; flex-direction: column;
  /* izolacja malowania — scroll wnętrza nie przemalowuje reszty strony */
  contain: layout paint;
}
#bk .bk-scroll { will-change: scroll-position; }
#bk .bk-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, var(--paper));
  color: var(--ink); display: grid; place-items: center; font-size: 16px;
  transition: background .2s, color .2s;
}
#bk .bk-close:hover { background: var(--accent); color: var(--paper); }
#bk .bk-scroll { overflow: auto; padding: 38px 42px; }

/* ---------- Popup promocyjny (z CRM) ---------- */
#promo {
  position: fixed; inset: 0; z-index: 220;
  display: none;
  background: color-mix(in oklab, var(--ink) 62%, transparent);
}
#promo.on { display: grid; place-items: center; }
#promo .promo-card {
  position: relative;
  width: clamp(300px, 50vw, 540px);
  min-height: clamp(220px, 50vh, 380px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  padding: 40px 42px;
  display: flex; flex-direction: column; align-items: flex-start;
  justify-content: center; gap: 4px;
  text-align: left;
}
#promo .promo-close {
  position: absolute; top: 14px; right: 16px;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, var(--paper));
  color: var(--ink); display: grid; place-items: center; font-size: 16px;
  transition: background .2s, color .2s;
}
#promo .promo-close:hover { background: var(--accent); color: var(--paper); }
#promo .promo-header {
  font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400;
  font-size: clamp(28px, 4vw, 40px); line-height: 1.08;
  color: var(--accent-deep); margin: 6px 0 10px;
  text-transform: uppercase;
}
#promo .promo-text {
  color: var(--ink-2); font-size: 16px; line-height: 1.55;
  white-space: pre-line; margin: 0 0 24px;
}
#promo .promo-ok { margin-top: auto; align-self: flex-start; }
@media (max-width: 640px) {
  #promo .promo-card { width: 88vw; min-height: 0; padding: 32px 24px; }
}

.bk-head { margin-bottom: 18px; max-width: 60ch; }
.bk-head h3 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 30px; margin: 6px 0 8px; }
.bk-head p { color: var(--ink-2); font-size: 15px; margin: 0; }

.bk-banner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px;
  background: color-mix(in oklab, var(--accent) 14%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--accent) 35%, var(--paper));
  border-radius: 10px; padding: 12px 16px; margin-bottom: 24px;
  font-size: 14px;
}
.bk-banner-t { font-weight: 600; color: var(--accent-deep); }
.bk-banner-row { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.bk-banner-row a { color: var(--ink); border-bottom: 1px solid var(--accent); padding-bottom: 1px; }
.bk-banner-row a:hover { color: var(--accent-deep); }
.bk-banner-addr { color: var(--ink-2); width: 100%; font-size: 13px; }

.bk-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 26px; }
.bk-field-full { grid-column: 1 / -1; }
.bk-field label { display: block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 6px; }
.bk-field label small { text-transform: none; letter-spacing: 0; opacity: .7; }
.bk-form input, .bk-form textarea {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; color: inherit;
}
.bk-form input:focus, .bk-form textarea:focus { outline: 0; border-color: var(--accent); }
.bk-form textarea { resize: vertical; }

.bk-cal { margin-bottom: 24px; }
.bk-cal-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bk-cal-head h4 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 21px; margin: 0; }
.bk-legend { font-size: 12px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.bk-legend .lg { width: 12px; height: 12px; border-radius: 4px; display: inline-block; margin-left: 10px; vertical-align: -2px; }
.bk-legend .lg-free { background: color-mix(in oklab, var(--accent) 26%, var(--paper)); border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--paper)); }
.bk-legend .lg-sel { background: color-mix(in oklab, var(--accent-deep) 85%, black); }
.bk-legend .lg-busy { background: #5a4842; }

.bk-cal-wrap { overflow-x: auto; }
.bk-grid { width: 90%; margin: 0 auto; border-collapse: collapse; font-size: 12px; table-layout: fixed; }
.bk-grid th, .bk-grid td { border: 1px solid var(--line); text-align: center; padding: 3px; }
.bk-grid thead th {
  background: color-mix(in oklab, var(--paper-2) 60%, var(--paper));
  font-weight: 600; font-size: 11px; white-space: nowrap; padding: 6px 6px;
}
/* lewe kolumny stałe, 7 kolumn gabinetów dzieli resztę równo */
.bk-grid thead th:nth-child(1) { width: 96px; }
.bk-grid thead th:nth-child(2) { width: 60px; }
.bk-grid thead th span { display: block; font-weight: 400; font-size: 10px; color: var(--ink-2); }
.bk-grid .bk-gc { background: var(--paper); }
.bk-gday { font-weight: 600; white-space: nowrap; background: color-mix(in oklab, var(--paper-2) 40%, var(--paper)); padding: 3px 8px; }
.bk-gpora { color: var(--ink-2); white-space: nowrap; padding: 3px 8px; }
.bk-cell {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 24px;
  border-radius: 5px; line-height: 1; font-size: 11px;
}
/* Wolne — jasnoróżowe */
.bk-cell.free {
  background: color-mix(in oklab, var(--accent) 26%, var(--paper));
  border: 1px solid color-mix(in oklab, var(--accent) 45%, var(--paper));
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.bk-cell.free:hover { background: color-mix(in oklab, var(--accent) 42%, var(--paper)); border-color: var(--accent); }
/* Wybrane — ciemnoróżowe */
.bk-cell.free.sel {
  background: color-mix(in oklab, var(--accent-deep) 85%, black);
  border-color: color-mix(in oklab, var(--accent-deep) 70%, black);
  position: relative;
}
.bk-cell.free.sel::after { content: "✓"; color: var(--paper); font-weight: 700; }
/* Zajęte — ciemnozielone */
.bk-cell.busy {
  background: #5a4842;
  color: color-mix(in oklab, var(--paper) 88%, transparent);
  cursor: not-allowed;
}

.bk-quote {
  background: var(--paper-2); border-radius: 10px; padding: 16px 18px; margin-bottom: 22px;
}
.bk-quote h4 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 20px; margin: 0 0 10px; }
.bk-quote-empty { color: var(--ink-2); font-size: 14px; }
.bk-quote-list { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.bk-quote-list li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.bk-quote-list .bk-price { font-weight: 600; white-space: nowrap; }
.bk-quote-total { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; font-size: 17px; font-weight: 600; }
.bk-quote-total span:last-child { color: var(--accent-deep); }
.bk-quote-note { font-size: 12px; color: var(--ink-2); margin: 10px 0 0; }

.bk-error { color: var(--accent-deep); font-size: 14px; margin: 0 0 14px; font-weight: 500; }
.bk-submit { width: 100%; justify-content: center; font-size: 15px; letter-spacing: 0.04em; text-transform: uppercase; }
.bk-submit:disabled { opacity: .6; cursor: default; transform: none; }

.bk-success { padding: 60px 42px; text-align: center; margin: auto; max-width: 46ch; }
.bk-success-mark {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: var(--accent); color: var(--paper);
  display: grid; place-items: center; font-size: 32px;
}
.bk-success h3 { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-weight: 400; font-size: 28px; margin: 0 0 10px; }
.bk-success p { color: var(--ink-2); font-size: 15px; margin: 0 0 22px; }

@media (max-width: 1024px) {
  #bk .bk-panel { inset: 5% 6%; }
}
@media (max-width: 640px) {
  #bk .bk-panel { inset: 0; border-radius: 0; }
  #bk .bk-scroll { padding: 26px 18px; }
  .bk-fields { grid-template-columns: 1fr; }
  .bk-head h3 { font-size: 25px; }
}

/* ---------- MOTION & POLISH ---------- */
:root { --ease-out: cubic-bezier(.22, 1, .36, 1); }

/* Fokus z klawiatury widoczny w kolorze marki */
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; border-radius: 4px; }

/* Nawigacja: delikatny cień po przewinięciu */
.nav { transition: box-shadow .3s var(--ease-out), background .3s; }
.nav.is-scrolled { box-shadow: 0 8px 24px -18px color-mix(in oklab, var(--ink) 45%, transparent); }

/* Przyciski: miękka różowa poświata + „wciśnięcie" */
.btn { transition: transform .25s var(--ease-out), background .2s, color .2s, box-shadow .25s; }
.btn-primary:hover { box-shadow: 0 12px 26px -12px color-mix(in oklab, var(--accent-deep) 80%, transparent); }
.btn:active { transform: translateY(0) scale(.98); }

/* Zdjęcia w sekcjach: powolny zoom na hover (jak w galerii) */
.media img { transition: transform .9s var(--ease-out); }
.media:hover img { transform: scale(1.04); }

/* Listy i tabele: subtelna reakcja na hover */
.chip { transition: background .25s, transform .3s var(--ease-out), border-color .25s; }
.chip:hover { background: color-mix(in oklab, var(--paper) 12%, transparent); border-color: color-mix(in oklab, var(--paper) 45%, transparent); transform: translateX(4px); }
.price-row { transition: background .25s; }
.price-row:hover { background: color-mix(in oklab, var(--accent) 7%, transparent); }
.price-row .cta a { transition: color .2s, border-color .2s, padding .25s var(--ease-out); }
.price-row .cta a:hover { padding-right: 4px; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: 90px; }

  /* Hero: wejście tekstu kaskadą + odsłonięcie zdjęcia */
  .hero .eyebrow, .hero h1, .hero-lead, .hero-cta, .hero-ticker {
    animation: riseIn .9s var(--ease-out) both;
  }
  .hero h1       { animation-delay: .12s; }
  .hero-lead     { animation-delay: .26s; }
  .hero-cta      { animation-delay: .38s; }
  .hero-ticker   { animation-delay: .5s; }
  .hero .eyebrow::before { animation: lineGrow .8s var(--ease-out) .2s both; }
  .hero-visual { animation: photoIn 1.2s var(--ease-out) .1s both; }
  .hero-visual img { animation: settle 1.8s var(--ease-out) .1s both; }

  /* Pulsująca kropka przy tickerze */
  .hero-ticker .dot { position: relative; }
  .hero-ticker .dot::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: color-mix(in oklab, var(--accent) 55%, transparent);
    animation: dotPulse 2.4s ease-in-out infinite;
  }
  .hero-ticker span:nth-child(2) .dot::after { animation-delay: .8s; }
  .hero-ticker span:nth-child(3) .dot::after { animation-delay: 1.6s; }

  /* Reveal przy scrollu (klasa js-motion dodawana przez motion.js) */
  .js-motion [data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    filter: blur(8px);
    transition: opacity .7s var(--ease-out), transform .8s var(--ease-out), filter .7s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }
  .js-motion [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
  .js-motion .section-head > .eyebrow[data-reveal]::before { width: 0; transition: width .8s var(--ease-out) .25s; }
  .js-motion .section-head > .eyebrow.is-in::before { width: 26px; }
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}
@keyframes lineGrow { from { width: 0; } to { width: 26px; } }
@keyframes photoIn {
  from { opacity: 0; clip-path: inset(10% 10% 10% 10% round 6px); }
  to   { opacity: 1; clip-path: inset(0 0 0 0 round 6px); }
}
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(3); opacity: 0; }
}

/* ---------- Terminarz: dziś + licznik wolnych bloków ---------- */
.today-wrap { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.today-free { font-size: 14px; color: var(--ink); }
.today-free strong { color: var(--accent-deep); font-size: 16px; }
.pill.free:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

/* ---------- Okno „Umów oglądanie" ---------- */
#vw {
  position: fixed; inset: 0; z-index: 210;
  display: none;
  background: color-mix(in oklab, var(--ink) 62%, transparent);
}
#vw.on { display: grid; place-items: center; padding: 16px; }
#vw .bk-panel {
  position: relative;
  width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 30px 90px rgba(0,0,0,.40);
  overflow: hidden;
  display: flex; flex-direction: column;
}
#vw .bk-close {
  position: absolute; top: 14px; right: 16px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%;
  background: color-mix(in oklab, var(--ink) 6%, var(--paper));
  color: var(--ink); display: grid; place-items: center; font-size: 16px;
  transition: background .2s, color .2s;
}
#vw .bk-close:hover { background: var(--accent); color: var(--paper); }
#vw .bk-scroll { overflow: auto; padding: 38px 40px 32px; }
.bk-form select {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--paper);
  font: inherit; color: inherit;
}
.bk-form select:focus { outline: 0; border-color: var(--accent); }
.vw-note {
  display: flex; gap: 10px; align-items: flex-start;
  margin: 0 0 16px; padding: 12px 14px; border-radius: 10px;
  background: var(--paper-2); color: var(--ink-2); font-size: 14px;
}
.vw-note svg { flex: none; margin-top: 2px; color: var(--accent-deep); }
.vw-note strong { color: var(--ink); font-weight: 600; }
@media (max-width: 640px) {
  #vw.on { padding: 0; }
  #vw .bk-panel { width: 100%; height: 100%; max-height: none; border-radius: 0; }
  #vw .bk-scroll { padding: 26px 18px; }
}

/* ---------- Pasek akcji na telefonie ---------- */
.mbar { display: none; }
@media (max-width: 640px) {
  .mbar {
    position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 45;
    display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 6px;
    padding: 6px;
    background: color-mix(in oklab, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: saturate(1.2) blur(10px);
    backdrop-filter: saturate(1.2) blur(10px);
    border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 14px 34px -14px rgba(31, 42, 34, .35);
    transform: translateY(calc(100% + 20px));
    transition: transform .35s var(--ease-out, ease);
  }
  .mbar.on { transform: none; }
  .mbar-btn {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 46px; border-radius: 11px;
    font-size: 13px; font-weight: 600; color: var(--ink);
    background: var(--paper-2);
  }
  .mbar-btn.primary { background: var(--accent-deep); color: #fff; }
  .mbar-btn svg { color: var(--accent-deep); }
  footer { padding-bottom: 96px; }
}


@media (max-width: 1100px) { .perks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px)  {
  .perks-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 0; }
  .foot-cta-actions .btn { flex: 1; justify-content: center; }
}

/* ---------- Mobile: iOS Safari / Android Chrome ---------- */
/* przewijanie wewnątrz okien nie „przecieka" na stronę pod spodem */
#bk .bk-scroll, #vw .bk-scroll { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.crm-table, .bk-cal-wrap { -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
/* pole daty na iOS: bez tego bywa zwinięte do zera / wyrównane do środka */
.bk-form input[type="date"] {
  -webkit-appearance: none; appearance: none;
  display: block; min-height: 44px; text-align: left;
}
.bk-form input[type="date"]::-webkit-date-and-time-value { text-align: left; }
/* pola formularzy ≥ 16px — iOS nie przybliża strony przy wpisywaniu */
.bk-form input, .bk-form select, .bk-form textarea { font-size: max(16px, 1em); }
/* pasek akcji nad paskiem gestów iPhone'a */
@media (max-width: 640px) {
  .mbar { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
}
/* na dotyku „hover" potrafi się zawiesić po tapnięciu — wyłączamy efekty przesunięcia */
@media (hover: none) {
  .card:hover, .perk:hover, .chip:hover, .btn:hover { transform: none; }
  .media:hover img, .tile:hover img { transform: none; }
  .perk:hover .perk-ic { transform: none; }
}

/* ---------- Terminarz na telefonie: wybór gabinetu zamiast szerokiej tabeli ---------- */
.crm-mobile { display: none; }
@media (max-width: 640px) {
  .crm-table { display: none; }
  .crm-mobile { display: block; margin-top: 8px; }
}
.rm-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.rm-tab {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  min-height: 64px; padding: 9px 10px;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--paper); color: var(--ink);
  text-align: left; line-height: 1.2;
  transition: background .2s, border-color .2s, color .2s;
}
.rm-label { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.rm-tab .rm-num { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 26px; line-height: 1; }
.rm-tab .rm-type { font-size: 11px; color: var(--ink-2); }
.rm-tab .rm-free { font-size: 11px; font-weight: 600; color: var(--accent-deep); margin-top: auto; white-space: nowrap; }
.rm-tab.on { background: var(--accent-deep); border-color: var(--accent-deep); color: #fff; }
.rm-tab.on .rm-type, .rm-tab.on .rm-free { color: #fff; }
.rm-tab:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }

.rm-week {
  margin-top: 14px;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--paper); overflow: hidden;
}
.rm-row {
  display: grid; grid-template-columns: minmax(84px, 1fr) 1fr 1fr; gap: 8px;
  align-items: center; padding: 8px 10px;
  border-bottom: 1px solid var(--line);
}
.rm-row[hidden] { display: none; }
.rm-head { background: var(--paper-2); font-size: 11px; font-weight: 600; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.rm-head small { display: block; font-size: 10px; font-weight: 400; text-transform: none; letter-spacing: 0; }
.rm-day { font-family: "Instrument Serif", "Cormorant Garamond", serif; font-size: 18px; line-height: 1.1; }
.rm-row .pill { min-height: 40px; }
.rm-weekend {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; min-height: 46px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  background: color-mix(in oklab, var(--paper-2) 60%, var(--paper));
}
.rm-weekend[aria-expanded="true"] .wk-chev { transform: rotate(180deg); }
@media (max-width: 360px) {
  .rm-tabs { gap: 6px; }
  .rm-tab { padding: 8px 7px; }
}
