:root {
  --brand: #042c31;
  --brand-2: #07383d;
  --brand-3: #0c4a50;
  --brand-soft: #dfe9e7;
  --paper: #ffffff;
  --canvas: #f5f7f4;
  --canvas-2: #edf2ef;
  --ink: #111817;
  --muted: #66716e;
  --line: #d9e1de;
  --line-dark: rgba(255,255,255,.18);
  --danger: #9e3838;
  --danger-soft: #f8e8e6;
  --warning: #8a5c12;
  --warning-soft: #fff2d9;
  --success: #25664f;
  --blue: #2d6d9f;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 22px 60px rgba(4,44,49,.10);
  --shadow-sm: 0 10px 30px rgba(4,44,49,.07);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: var(--sans); line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.lightbox-open { overflow: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

h1, h2, h3 { margin: 0 0 .55em; line-height: 1.06; color: var(--brand); }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -.025em; }
h1 { font-size: clamp(42px, 6vw, 78px); }
h2 { font-size: clamp(31px, 4vw, 48px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }
.meta { color: var(--muted); font-size: 14px; }
.eyebrow { margin-bottom: 11px; color: var(--brand-3); font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow.light { color: rgba(255,255,255,.70); }
.prose { color: #34413f; font-size: 17px; }
.prose p:last-child { margin-bottom: 0; }

.site-header { position: sticky; z-index: 80; top: 0; background: rgba(4,44,49,.97); border-bottom: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(15px); }
.nav-shell { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand-mark { display: none; width: 46px; height: 46px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 24px; color: rgba(255,255,255,.86); font-size: 14px; font-weight: 650; }
.nav-links a { transition: opacity .2s, color .2s; }
.nav-links a:hover { color: #fff; }
.nav-pill { padding: 9px 15px; color: var(--brand) !important; background: white; border-radius: 999px; }
.nav-toggle { display: none; border: 0; background: transparent; padding: 8px; cursor: pointer; }
.nav-toggle > span:not(.sr-only) { display: block; width: 25px; height: 2px; margin: 5px 0; background: #fff; }

.messages { position: relative; z-index: 70; padding-top: 12px; }
.message { padding: 12px 15px; margin-bottom: 8px; border: 1px solid #c9ddd5; border-radius: 12px; background: #e8f3ef; color: #194d3d; box-shadow: var(--shadow-sm); }
.message.error { border-color: #edc9c6; background: var(--danger-soft); color: #7c2929; }
.message.warning { border-color: #ead39d; background: var(--warning-soft); color: #73500d; }

.btn { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border: 1px solid var(--brand); border-radius: 11px; background: var(--brand); color: #fff; font-weight: 750; cursor: pointer; transition: transform .16s, background .16s, box-shadow .16s; }
.btn:hover { transform: translateY(-1px); background: var(--brand-3); box-shadow: 0 9px 20px rgba(4,44,49,.14); }
.btn-small { min-height: 36px; padding: 8px 13px; border-radius: 9px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--brand); border-color: #9eb3ae; }
.btn-ghost:hover { background: var(--brand-soft); box-shadow: none; }
.btn-light { background: white; border-color: white; color: var(--brand); }
.btn-light:hover { background: #f0f5f3; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: white; }
.btn-danger:hover { background: #832e2e; }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: #d8a9a5; }
.btn-block { width: 100%; }
.text-link { color: var(--brand-3); font-weight: 800; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.back-link { display: inline-block; margin-top: 20px; }
.text-button { border: 0; background: none; padding: 0; font-weight: 700; cursor: pointer; }
.danger-text { color: var(--danger); }

.hero { position: relative; overflow: hidden; padding: 74px 0 84px; background: var(--brand); color: white; }
.hero::before { content: ""; position: absolute; inset: auto -16% -55% 43%; height: 620px; border: 1px solid rgba(255,255,255,.12); transform: rotate(45deg); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 72px; }
.hero-copy h1 { color: white; }
.hero-logo { width: min(470px, 88%); margin: -22px 0 8px -20px; mix-blend-mode: screen; }
.hero-lead { max-width: 660px; color: rgba(255,255,255,.84); font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero .btn { border-color: white; background: white; color: var(--brand); }
.hero .btn-ghost { background: transparent; color: white; border-color: rgba(255,255,255,.45); }
.hero-facts { display: flex; gap: 26px; padding-top: 25px; border-top: 1px solid rgba(255,255,255,.18); }
.hero-facts div { display: grid; gap: 2px; }
.hero-facts strong { color: white; font-family: var(--serif); font-size: 25px; font-weight: 500; }
.hero-facts span { color: rgba(255,255,255,.62); font-size: 12px; }
.hero-photo-wrap { position: relative; min-height: 570px; }
.hero-photo { width: 100%; height: 570px; object-fit: cover; object-position: center 28%; border: 1px solid rgba(255,255,255,.35); border-radius: 3px 80px 3px 80px; box-shadow: 0 30px 80px rgba(0,0,0,.24); }
.hero-photo-card { position: absolute; right: -18px; bottom: 28px; display: grid; gap: 4px; width: min(300px, 78%); padding: 18px 22px; border: 1px solid rgba(255,255,255,.3); background: rgba(4,44,49,.90); backdrop-filter: blur(12px); }
.hero-photo-card span { color: rgba(255,255,255,.65); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.hero-photo-card strong { color: white; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.photo-placeholder { display: grid; width: 100%; height: 100%; min-height: 260px; place-items: center; background: var(--brand-soft); color: var(--brand); font-family: var(--serif); font-size: 32px; }

.section { padding: 82px 0; }
.section-soft { background: var(--canvas-2); }
.section-calendar { padding-top: 76px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 30px; }
.section-heading > p { max-width: 610px; color: var(--muted); }
.subsection-heading { margin-top: 62px; }
.cards { display: grid; gap: 18px; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.empty-state { padding: 25px; border: 1px dashed #b8c9c5; border-radius: var(--radius); background: rgba(255,255,255,.52); color: var(--muted); }
.large-empty { text-align: center; padding: 62px 30px; }

.calendar-shell { padding: 20px; border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.calendar-shell-large { padding: 24px; }
.calendar-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.field-inline { min-width: 270px; display: grid; gap: 6px; color: var(--brand); font-size: 13px; font-weight: 800; }
.calendar-hint { max-width: 570px; color: var(--muted); font-size: 13px; }
.calendar-legend { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 13px; color: var(--muted); font-size: 12px; }
.calendar-legend span { display: inline-flex; align-items: center; gap: 6px; }
.calendar-legend i { width: 11px; height: 11px; border-radius: 50%; background: var(--legend-color); }
.calendar-legend .busy-dot { background: #8a9291; }
.calendar-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 14px; color: var(--muted); font-size: 13px; }
.calendar-footer a { color: var(--brand); font-weight: 800; }
.policy-note { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--brand); background: var(--canvas); color: #42504d; font-size: 13px; }

.fc { font-family: var(--sans); font-size: 13px; }
.fizjoka-calendar-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.fizjoka-calendar-toolbar-section { display: flex; align-items: center; gap: 6px; }
.fizjoka-calendar-toolbar-section:nth-child(2) { flex: 1; justify-content: center; text-align: center; }
.fizjoka-calendar-title { margin: 0; color: var(--brand); font-family: var(--serif); font-size: 24px; font-weight: 500; text-transform: capitalize; }
.fizjoka-calendar-button { border-color: var(--brand) !important; background: var(--brand) !important; color: white !important; box-shadow: none !important; font-weight: 700 !important; }
.fizjoka-calendar-button:hover { background: var(--brand-3) !important; }
.fizjoka-calendar-button:disabled { opacity: .45; }
.fizjoka-calendar-day-header { color: var(--brand); font-weight: 800; }
.fizjoka-calendar-list-day { background: var(--canvas-2); color: var(--brand); font-weight: 800; }
.fizjoka-calendar-event { border-radius: 7px !important; padding: 2px 4px !important; font-weight: 750; box-shadow: 0 2px 8px rgba(0,0,0,.08); cursor: pointer; }
.fizjoka-calendar-event.calendar-busy { opacity: .82; cursor: default; box-shadow: none; }
.fizjoka-calendar-event.calendar-booked-private { border-style: solid !important; }

.physio-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(340px, 48%); gap: 20px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.physio-carousel.single { grid-auto-columns: minmax(0, 760px); }
.physio-card { display: grid; grid-template-columns: 42% 58%; min-height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); scroll-snap-align: start; }
.physio-card-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.physio-card-body { display: flex; flex-direction: column; padding: 28px; }
.physio-card-body p { color: var(--muted); }
.physio-card-body .card-actions { margin-top: auto; }
.card-actions, .inline-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.chip { display: inline-flex; align-items: center; padding: 5px 9px; border: 1px solid #c8d7d3; border-radius: 999px; background: #f7faf8; color: #49615b; font-size: 11px; font-weight: 750; }
.warning-chip { border-color: #e9cd96; background: #fff5e1; color: #7b5612; }
.offline-chip { border-color: #c8cbd0; background: #f0f1f2; color: #585d63; }
.chip-row-light .chip { border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.08); color: white; }

.tab-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tab-button { padding: 9px 15px; border: 1px solid #b9cbc6; border-radius: 999px; background: transparent; color: var(--brand); font-weight: 750; cursor: pointer; }
.tab-button.active { border-color: var(--brand); background: var(--brand); color: white; }
.service-card { padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.service-card h3 { margin-top: 14px; }
.service-card p { min-height: 48px; color: var(--muted); }
.service-icon { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-family: var(--serif); }
.service-meta { color: var(--brand); font-size: 13px; font-weight: 800; }

.location-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.location-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: white; box-shadow: var(--shadow-sm); }
.location-image { position: relative; display: block; height: 310px; overflow: hidden; background: var(--brand-soft); }
.location-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.location-card:hover .location-image img { transform: scale(1.025); }
.location-color { position: absolute; inset: auto 0 0; height: 7px; background: var(--location-color); }
.location-card-body { padding: 25px; }
.location-card-body > p:first-of-type { font-weight: 700; }

.page-hero { background: var(--brand); color: white; }
.compact-hero { padding: 58px 0 62px; border-bottom: 5px solid var(--accent, var(--brand-3)); }
.compact-hero h1 { color: white; }
.compact-hero p { max-width: 720px; margin-bottom: 0; color: rgba(255,255,255,.75); font-size: 17px; }
.profile-hero { padding: 70px 0; background: var(--brand); color: white; }
.profile-hero-grid { display: grid; grid-template-columns: 390px 1fr; align-items: center; gap: 64px; }
.profile-photo { height: 480px; overflow: hidden; border: 1px solid rgba(255,255,255,.28); border-radius: 3px 58px 3px 58px; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-copy h1 { color: white; }
.profile-lead { max-width: 700px; color: rgba(255,255,255,.82); font-size: 19px; }
.profile-content-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(300px, .5fr); gap: 28px; align-items: start; }
.prose-card, .profile-side-card, .panel-card, .form-card, .table-card, .policy-card { border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.prose-card { padding: 32px; }
.profile-side-card { padding: 24px; }
.profile-location { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.profile-location i { width: 10px; height: 38px; flex: 0 0 auto; border-radius: 7px; background: var(--location-color); }
.profile-location span { display: grid; }
.profile-location small { color: var(--muted); }
.profile-side-card .btn { margin-top: 18px; }

.certificate-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.certificate-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.certificate-image { width: 100%; height: 260px; border: 0; padding: 0; background: #edf1ef; cursor: zoom-in; }
.certificate-image img { width: 100%; height: 100%; object-fit: contain; }
.certificate-placeholder { display: flex; height: 260px; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 25px; background: var(--brand); color: white; text-align: center; }
.certificate-placeholder span { font-family: var(--serif); font-size: 28px; }
.certificate-placeholder strong { max-width: 250px; font-size: 17px; }
.certificate-body { padding: 18px; }
.certificate-body h3 { font-size: 17px; }
.certificate-body p { margin-top: 9px; color: var(--muted); font-size: 13px; }
.cert-show-more { margin-top: 22px; }

.lightbox { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 28px; background: rgba(2,18,20,.94); }
.lightbox[hidden] { display: none; }
.lightbox figure { width: min(1100px, 88vw); height: min(83vh, 900px); margin: 0; display: grid; grid-template-rows: 1fr auto; }
.lightbox figure img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.lightbox figcaption { padding-top: 12px; color: rgba(255,255,255,.78); text-align: center; }
.lightbox-close, .lightbox-nav { position: absolute; border: 0; background: transparent; color: white; cursor: pointer; }
.lightbox-close { top: 14px; right: 20px; font-size: 44px; line-height: 1; }
.lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 66px; }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.location-detail-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(320px, .65fr); gap: 28px; align-items: start; }
.location-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 22px; }
.location-gallery-item { height: 160px; overflow: hidden; border: 0; border-radius: 11px; padding: 0; background: var(--brand-soft); cursor: zoom-in; }
.location-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.location-gallery-main { grid-column: span 3; height: 440px; }
.location-description { margin-top: 20px; }
.map-card { overflow: hidden; height: 360px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: var(--shadow-sm); }
.map-card iframe { width: 100%; height: 100%; border: 0; }

.auth-page { min-height: calc(100vh - 74px); padding: 74px 0; background: var(--brand); }
.auth-grid { display: grid; grid-template-columns: 1fr 520px; align-items: center; gap: 90px; }
.auth-copy { color: white; }
.auth-copy h1 { color: white; }
.auth-copy p { max-width: 560px; color: rgba(255,255,255,.75); font-size: 18px; }
.form-card { padding: 30px; }
.form-card h1 { font-size: clamp(34px, 5vw, 52px); }
.form-card h2 { font-size: 34px; }
.form-row { margin-bottom: 16px; }
.form-row > label, .form-row > span { display: block; margin-bottom: 6px; color: var(--brand); font-size: 13px; font-weight: 800; }
.form-control { width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid #bdcbc7; border-radius: 9px; background: white; color: var(--ink); }
textarea.form-control { min-height: 100px; resize: vertical; }
.form-control:focus { outline: 3px solid rgba(4,44,49,.10); border-color: var(--brand-3); }
.form-check { width: 18px; height: 18px; accent-color: var(--brand); }
.checkbox-list { display: grid; gap: 7px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.checkbox-list div label { display: flex; align-items: center; gap: 8px; }
ul.errorlist { margin: 5px 0 0; padding-left: 18px; color: var(--danger); font-size: 12px; }
.helptext { display: block; margin: 5px 0; color: var(--muted); font-size: 11px; }
.form-separator { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.form-separator::before, .form-separator::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.form-note { margin: 18px 0 0; text-align: center; }
.form-page-wide { width: min(760px, calc(100% - 40px)); margin-inline: auto; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; }
.form-grid-3 .form-row { margin-bottom: 0; }
.form-submit-row { padding-bottom: 1px; }

.booking-confirm-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .65fr); gap: 28px; align-items: start; }
.booking-summary { padding: 34px; }
.summary-list { margin: 20px 0 24px; }
.summary-list > div { display: grid; grid-template-columns: 160px 1fr; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.summary-list span { color: var(--muted); }
.summary-price strong { color: var(--brand); font-size: 24px; }
.policy-card { padding: 28px; }
.policy-icon { display: grid; width: 64px; height: 64px; margin-bottom: 18px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-family: var(--serif); font-size: 21px; }
.warning-box { margin: 18px 0; padding: 16px; border: 1px solid #e5c887; border-radius: 12px; background: var(--warning-soft); color: #6e4c0e; }
.info-box { padding: 18px; border: 1px solid #bed2cc; border-radius: 12px; background: #eaf2ef; color: #2d5147; }

.appointment-cards { display: grid; gap: 10px; }
.appointment-card { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 6px 22px rgba(4,44,49,.04); }
.appointment-card:hover { border-color: #a8bdb8; }
.appointment-date { display: grid; place-items: center; padding: 8px; border-radius: 10px; background: var(--brand); color: white; }
.appointment-date strong { font-family: var(--serif); font-size: 24px; line-height: 1; }
.appointment-date span { font-size: 10px; text-transform: uppercase; }
.appointment-info { display: grid; min-width: 0; gap: 2px; }
.appointment-info span, .appointment-info small { color: var(--muted); }
.status-pill { display: inline-flex; width: fit-content; align-items: center; padding: 5px 9px; border-radius: 999px; background: #e5efeb; color: #285c49; font-size: 11px; font-weight: 800; white-space: nowrap; }
.status-pill.completed { background: #dff0e8; color: #1e684c; }
.status-pill.no_show, .status-pill.no-show { background: #f4e2df; color: #8a342e; }
.status-pill.pending { background: #fff0d4; color: #78530f; }
.status-pill.cancelled { background: #eceeee; color: #69706e; }
.status-pill.booked, .status-pill.confirmed { background: #e1ece9; color: var(--brand); }
.table-card, .panel-card { padding: 22px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 12px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.needs-status-row { background: #fffaf0; }

.dashboard-page { min-height: 70vh; padding: 48px 0 90px; }
.dashboard-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dashboard-header h1 { font-size: clamp(38px, 5vw, 62px); }
.dashboard-header p { max-width: 700px; color: var(--muted); }
.dashboard-nav-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.dashboard-nav-card { display: grid; min-height: 155px; align-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow-sm); }
.dashboard-nav-card.primary { background: var(--brand); color: white; border-color: var(--brand); }
.dashboard-nav-card span { color: #83918e; font-family: var(--serif); font-size: 25px; }
.dashboard-nav-card.primary span { color: rgba(255,255,255,.55); }
.dashboard-nav-card strong { color: var(--brand); font-size: 17px; }
.dashboard-nav-card.primary strong { color: white; }
.dashboard-nav-card small { color: var(--muted); }
.dashboard-nav-card.primary small { color: rgba(255,255,255,.65); }
.warning-card { border-color: #e1c37f; background: #fffaf0; }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 13px; margin-bottom: 24px; }
.stat-card { display: grid; gap: 4px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fdfefd; }
.stat-card > span { color: var(--muted); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.stat-card strong { color: var(--brand); font-family: var(--serif); font-size: 34px; font-weight: 500; }
.stat-card small { color: var(--muted); }
.panel-card { margin-bottom: 20px; }
.panel-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.panel-heading h2 { margin-bottom: 0; font-size: 31px; }
.attention-panel { border-color: #e5c787; }
.attention-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; padding: 15px 18px; border: 1px solid #e5c787; border-radius: 12px; background: #fff6e4; color: #6c4b0e; }
.request-box { margin-bottom: 20px; }
.service-admin-list { display: grid; }
.service-admin-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.service-admin-row > div { display: grid; }
.service-admin-row small { color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(310px, .65fr); gap: 24px; align-items: start; }
.quick-status { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.quick-status > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; }
.quick-status form { display: flex; flex-wrap: wrap; gap: 7px; }
.status-action { padding: 7px 10px; border: 1px solid #bdcbc7; border-radius: 9px; background: white; font-size: 12px; font-weight: 800; cursor: pointer; }
.status-action.completed { color: var(--success); }
.status-action.no-show { color: var(--danger); }
.contact-card p:last-child { margin-bottom: 0; }
.danger-zone { margin-top: 24px; padding-top: 20px; border-top: 1px solid #eccdca; }
.danger-zone form + form { margin-top: 8px; }

.scheduler-layout { display: grid; grid-template-columns: 275px minmax(0, 1fr); gap: 18px; align-items: start; }
.scheduler-sidebar { min-width: 0; }
.scheduler-sticky { position: sticky; top: 92px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.scheduler-instruction { margin: 10px 0 14px; color: var(--muted); font-size: 12px; }
.service-palette { display: grid; gap: 8px; margin-bottom: 15px; }
.draggable-service { display: grid; gap: 2px; padding: 12px; border: 1px solid #b8cbc6; border-radius: 10px; background: #f7faf8; text-align: left; cursor: grab; }
.draggable-service:hover, .draggable-service.selected { border-color: var(--brand); background: var(--brand-soft); }
.draggable-service strong { color: var(--brand); }
.draggable-service span { color: var(--muted); font-size: 11px; }
.scheduler-calendar-shell { min-width: 0; }
.scheduler-feedback { min-height: 20px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.scheduler-feedback.error { color: var(--danger); }
.scheduler-feedback.success { color: var(--success); }
.manual-slot-panel { margin-top: 20px; }

.patient-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.patient-card { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.patient-card:hover { border-color: #a8bdb8; }
.patient-avatar { display: grid; width: 58px; height: 58px; place-items: center; border-radius: 50%; background: var(--brand); color: white; font-family: var(--serif); font-size: 20px; }
.patient-main { min-width: 0; display: grid; }
.patient-main > span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.certificate-admin-list { display: grid; gap: 8px; }
.certificate-admin-row { display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.certificate-admin-row img, .mini-placeholder { width: 56px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--brand); color: white; }
.mini-placeholder { display: grid; place-items: center; font-family: var(--serif); }
.certificate-admin-row > div { display: grid; min-width: 0; }
.certificate-admin-row small { color: var(--muted); }

.admin-nav-grid { grid-template-columns: repeat(3, 1fr); }
.physio-admin-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.physio-admin-card { display: grid; grid-template-columns: 170px 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: var(--shadow-sm); }
.physio-admin-card > img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; }
.physio-admin-card > div { padding: 22px; }
.admin-location-card .location-image { height: 250px; }
.location-photo-admin { display: grid; gap: 9px; }
.location-photo-admin-item { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 10px; }
.location-photo-admin-item img { width: 90px; height: 70px; object-fit: cover; border-radius: 7px; }

.site-footer { margin-top: 20px; padding: 54px 0 18px; background: var(--brand); color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 1.5fr .5fr .5fr; gap: 50px; }
.footer-grid > div:not(.footer-brand) { display: grid; align-content: start; gap: 8px; }
.footer-grid strong { color: white; }
.footer-grid a:hover { color: white; }
.footer-brand img { width: 220px; height: 68px; object-fit: cover; margin-bottom: 10px; }
.footer-brand p { max-width: 440px; }
.footer-bottom { margin-top: 36px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.14); font-size: 11px; }

@media (max-width: 1050px) {
  .hero-grid { gap: 38px; }
  .hero-photo-wrap, .hero-photo { min-height: 500px; height: 500px; }
  .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-nav-grid, .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .scheduler-layout { grid-template-columns: 240px minmax(0, 1fr); }
  .profile-hero-grid { grid-template-columns: 320px 1fr; gap: 42px; }
  .profile-photo { height: 410px; }
}

@media (max-width: 860px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav-shell { min-height: 64px; }
  .brand-mark { display: block; }
  .nav-toggle { display: block; }
  .nav-links { position: absolute; top: 64px; right: 14px; left: 14px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 10px; border: 1px solid rgba(255,255,255,.18); border-radius: 13px; background: var(--brand); box-shadow: 0 20px 40px rgba(0,0,0,.22); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 11px 12px; }
  .nav-pill { margin-top: 4px; text-align: center; }
  .hero { padding: 45px 0 55px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { order: 1; }
  .hero-photo-wrap { order: 2; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-logo { width: 380px; max-width: 94%; }
  .section { padding: 62px 0; }
  .section-heading { align-items: start; flex-direction: column; gap: 8px; }
  .physio-carousel { grid-auto-columns: minmax(330px, 78%); }
  .location-cards { grid-template-columns: 1fr; }
  .profile-hero-grid, .profile-content-grid, .location-detail-grid, .auth-grid, .booking-confirm-grid, .detail-grid { grid-template-columns: 1fr; }
  .profile-photo { width: min(420px, 100%); }
  .auth-grid { gap: 35px; }
  .auth-page { padding: 48px 0; }
  .scheduler-layout { grid-template-columns: 1fr; }
  .scheduler-sticky { position: static; }
  .service-palette { grid-template-columns: repeat(2, 1fr); }
  .form-grid-3 { grid-template-columns: 1fr 1fr; }
  .patient-grid, .physio-admin-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 20px, 1180px); }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .hero { padding-top: 30px; }
  .hero-logo { margin-left: -12px; }
  .hero-lead { font-size: 17px; }
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-facts strong { font-size: 20px; }
  .hero-photo-wrap, .hero-photo { min-height: 400px; height: 400px; }
  .hero-photo-card { right: 0; bottom: 14px; }
  .section { padding: 50px 0; }
  .calendar-shell, .calendar-shell-large { padding: 10px; border-radius: 15px; }
  .calendar-toolbar { align-items: stretch; flex-direction: column; }
  .field-inline { min-width: 0; }
  .calendar-legend { justify-content: flex-start; }
  .calendar-footer { flex-direction: column; gap: 5px; }
  .fizjoka-calendar-toolbar { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 5px; }
  .fizjoka-calendar-toolbar-section:nth-child(2) { min-width: 0; }
  .fizjoka-calendar-title { font-size: 18px; }
  .fizjoka-calendar-button { padding: .35em .55em !important; font-size: 12px !important; }
  .physio-carousel { grid-auto-columns: 92%; }
  .physio-card { grid-template-columns: 1fr; min-height: 0; }
  .physio-card-photo { height: 310px; }
  .cards-3 { grid-template-columns: 1fr; }
  .location-image { height: 250px; }
  .profile-hero { padding: 42px 0; }
  .profile-photo { height: 390px; }
  .certificate-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .certificate-image, .certificate-placeholder { height: 190px; }
  .certificate-body { padding: 12px; }
  .certificate-body h3 { font-size: 14px; }
  .location-gallery { grid-template-columns: repeat(2, 1fr); }
  .location-gallery-main { grid-column: span 2; height: 320px; }
  .location-gallery-item { height: 130px; }
  .lightbox { padding: 12px; }
  .lightbox figure { width: 96vw; height: 84vh; }
  .lightbox-nav { display: none; }
  .form-card, .panel-card, .prose-card, .policy-card { padding: 20px; }
  .summary-list > div { grid-template-columns: 1fr; gap: 2px; }
  .appointment-card { grid-template-columns: 54px 1fr; gap: 12px; padding: 12px; }
  .appointment-card > .status-pill { grid-column: 2; }
  .dashboard-page { padding-top: 32px; }
  .dashboard-header { align-items: start; flex-direction: column; }
  .dashboard-nav-grid, .stat-grid, .admin-nav-grid { grid-template-columns: 1fr 1fr; }
  .dashboard-nav-card { min-height: 135px; }
  .attention-banner { align-items: start; flex-direction: column; }
  .service-admin-row { grid-template-columns: 1fr auto; }
  .service-admin-row .status-pill { grid-row: 1; grid-column: 2; }
  .service-admin-row .text-link { grid-column: 1 / -1; }
  .service-palette { grid-template-columns: 1fr; }
  .form-grid-3 { grid-template-columns: 1fr; }
  .patient-card { grid-template-columns: 48px 1fr; }
  .patient-avatar { width: 48px; height: 48px; }
  .physio-admin-card { grid-template-columns: 110px 1fr; }
  .physio-admin-card > img { min-height: 210px; }
  .location-photo-admin-item { grid-template-columns: 72px 1fr auto; }
  .location-photo-admin-item img { width: 72px; height: 58px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-brand { grid-column: auto; }
}

@media (max-width: 400px) {
  .hero-facts { grid-template-columns: 1fr; }
  .certificate-grid { grid-template-columns: 1fr; }
  .dashboard-nav-grid, .stat-grid, .admin-nav-grid { grid-template-columns: 1fr; }
  .physio-carousel { grid-auto-columns: 96%; }
}

/* Fizjoka app refresh */
:root {
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --external: #7a3db8;
}
body.modal-open { overflow: hidden; }
.brand { gap: 10px; color: #fff; }
.brand-mark { display: block !important; width: 48px; height: 48px; flex: 0 0 48px; object-fit: cover; image-rendering: auto; border-radius: 5px; }
.brand-name { color: #fff; font-family: var(--serif); font-size: 29px; font-weight: 400; letter-spacing: -.045em; line-height: 1; }
.footer-logo { display: inline-flex; margin-bottom: 12px; }
.footer-brand img { width: 44px; height: 44px; margin: 0; object-fit: cover; }
.footer-logo .brand-name { font-size: 27px; }

.home-intro { padding: 64px 0 42px; background: linear-gradient(180deg, #fff 0%, #f4f7f5 100%); }
.home-intro-grid { display: grid; grid-template-columns: minmax(300px,.72fr) minmax(520px,1.28fr); gap: 54px; align-items: center; }
.home-intro-copy h1 { margin-bottom: 18px; font-size: clamp(54px,7vw,86px); }
.home-intro-copy p { max-width: 520px; color: #40504d; font-size: 18px; }
.compact-calendar-card { position: relative; padding: 20px 46px 13px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.compact-calendar-topline { display: flex; justify-content: flex-end; margin-bottom: 11px; }
.compact-calendar-topline label { display: grid; gap: 4px; width: min(280px,100%); color: var(--muted); font-size: 11px; font-weight: 800; }
.compact-calendar-wrap { position: relative; min-height: 270px; }
.compact-days { display: grid; grid-template-columns: repeat(var(--compact-cols),minmax(0,1fr)); gap: 10px; }
.compact-day { min-width: 0; text-align: center; }
.compact-day header { display: grid; gap: 1px; min-height: 49px; padding: 3px 1px 7px; color: #343d3b; }
.compact-day header strong { font-size: 14px; font-weight: 600; }
.compact-day header small { color: #7b8582; font-size: 10px; }
.compact-slots { display: grid; gap: 8px; justify-items: center; min-height: 185px; padding: 4px 0; }
.compact-time-pill { position: relative; width: min(72px,100%); min-height: 39px; padding: 7px 5px; border: 1px solid var(--slot-color); border-radius: 999px; background: color-mix(in srgb, var(--slot-color) 16%, white); color: color-mix(in srgb, var(--slot-color) 72%, #111); font-weight: 750; cursor: pointer; transition: transform .15s,box-shadow .15s; }
.compact-time-pill:hover { transform: translateY(-1px); box-shadow: 0 7px 18px rgba(4,44,49,.11); }
.compact-time-pill.external { border: 3px solid var(--external); outline: 2px solid color-mix(in srgb,var(--slot-color) 70%, white); outline-offset: -5px; }
.compact-time-pill.own { box-shadow: inset 0 0 0 2px #042c31; }
.compact-empty { padding-top: 12px; color: #8e9694; }
.compact-more { display: block; width: 100%; margin-top: 8px; padding: 12px; border: 0; border-top: 1px solid var(--line); background: transparent; color: #006f57; font-weight: 750; cursor: pointer; }
.compact-calendar-loading { display: grid; min-height: 240px; place-items: center; color: var(--muted); font-size: 13px; }
.calendar-edge-arrow { z-index: 5; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; background: #e2f4ef; color: #007c65; font-size: 28px; line-height: 1; cursor: pointer; box-shadow: 0 5px 14px rgba(4,44,49,.08); }
.calendar-edge-arrow:hover { background: #cfece4; }
.calendar-edge-arrow:disabled { opacity: .25; cursor: default; }
.compact-calendar-wrap > .calendar-edge-prev { position: absolute; left: -38px; top: 25px; }
.compact-calendar-wrap > .calendar-edge-next { position: absolute; right: -38px; top: 25px; }

.section-heading.slim { margin-bottom: 22px; }
.simple-toolbar { padding-inline: 6px; }
.calendar-with-edge-nav { position: relative; padding-inline: 28px; }
.calendar-with-edge-nav > .calendar-edge-prev { position: absolute; left: -10px; top: 39px; }
.calendar-with-edge-nav > .calendar-edge-next { position: absolute; right: -10px; top: 39px; }
.calendar-day-label { display: grid; gap: 1px; padding: 4px 0 7px; text-align: center; }
.calendar-day-label strong { color: #333c3a; font-size: 14px; font-weight: 650; }
.calendar-day-label small { color: #77807e; font-size: 10px; font-weight: 500; }
.calendar-legend .external-ring { border: 2px solid var(--external); background: transparent; }

/* Hide the time-axis labels to give day columns more room. */
.fc .fc-timegrid-axis, .fc .fc-timegrid-slot-label { display: none !important; }
.fc .fc-timegrid-slots table col:first-child, .fc .fc-timegrid-cols table col:first-child { width: 0 !important; }
.fc .fc-timegrid-col-events { margin: 0 3px !important; }
.fc .fizjoka-calendar-event, .fc .fc-event { border-radius: 11px !important; cursor: pointer; }
.fc .calendar-external-event, .fc .calendar-external { border-width: 3px !important; border-color: var(--external) !important; }
.fc .calendar-my-appointment { box-shadow: inset 0 0 0 2px #042c31, 0 2px 8px rgba(0,0,0,.08); }
.fc .fc-event[data-tooltip] { position: relative; }

.physio-carousel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(330px,calc((100% - 36px)/3)); gap: 18px; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x proximity; padding: 3px 2px 14px; }
.physio-carousel.single { grid-auto-flow: row; grid-template-columns: minmax(0,760px); justify-content: center; overflow: visible; }
.physio-card { scroll-snap-align: start; }
.service-list-public { display: grid; border-top: 1px solid var(--line); }
.service-row-public { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; padding: 21px 6px; border-bottom: 1px solid var(--line); }
.service-row-public h3 { margin-bottom: 5px; }
.service-row-public p { max-width: 800px; margin: 0; color: var(--muted); }
.service-row-public > strong { white-space: nowrap; color: var(--brand); }
.location-map-preview { height: 280px; background: #e6ece9; }
.location-map-preview iframe, .map-embed iframe { width: 100%; height: 100%; border: 0; }
.map-card { overflow: hidden; }

.generic-scheduler .scheduler-sticky { display: grid; gap: 14px; }
.scheduler-calendar-shell { position: relative; }
.scheduler-edge-nav { position: absolute; z-index: 6; top: 31px; right: 10px; left: 10px; display: flex; justify-content: space-between; pointer-events: none; }
.scheduler-edge-nav button { display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #e2f4ef; color: #007c65; font-size: 25px; cursor: pointer; pointer-events: auto; }

.booking-service-options { display: grid; gap: 10px; margin: 20px 0; }
.booking-service-option { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 15px; border: 1px solid var(--line); border-radius: 13px; cursor: pointer; }
.booking-service-option:has(input:checked) { border-color: var(--brand); background: #f0f6f3; box-shadow: inset 0 0 0 1px var(--brand); }
.booking-service-option input { width: 18px; height: 18px; accent-color: var(--brand); }
.booking-service-option span { display: grid; gap: 3px; }
.booking-service-option small { color: var(--muted); }
.booking-service-meta { min-width: 75px; text-align: right; color: var(--muted); font-size: 12px; }
.booking-service-meta b { color: var(--brand); font-size: 16px; }

.external-booking-modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(2,20,23,.66); backdrop-filter: blur(5px); }
.external-booking-modal[hidden] { display: none; }
.external-booking-dialog { position: relative; width: min(480px,100%); padding: 30px; border-radius: 20px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
.external-booking-dialog h2 { font-size: 30px; }
.modal-close { position: absolute; top: 12px; right: 15px; border: 0; background: transparent; color: var(--muted); font-size: 28px; cursor: pointer; }

.help-tooltip { position: relative; display: inline-grid; width: 19px; height: 19px; place-items: center; margin-left: 5px; border: 1px solid #86a29a; border-radius: 50%; color: var(--brand); font-size: 11px; font-weight: 800; cursor: help; }
.help-tooltip .help-tooltip-text { visibility: hidden; position: absolute; z-index: 30; bottom: calc(100% + 9px); left: 50%; width: 310px; padding: 11px 13px; border-radius: 9px; background: #082f33; color: white; font-size: 11px; font-weight: 500; line-height: 1.45; opacity: 0; transform: translateX(-50%) translateY(4px); transition: .15s; }
.help-tooltip:hover .help-tooltip-text, .help-tooltip:focus .help-tooltip-text { visibility: visible; opacity: 1; transform: translateX(-50%) translateY(0); }

@media (max-width: 900px) {
  .home-intro-grid { grid-template-columns: 1fr; gap: 28px; }
  .home-intro-copy { text-align: center; }
  .home-intro-copy p { margin-inline: auto; }
  .compact-calendar-card { width: min(720px,100%); margin-inline: auto; }
  .physio-carousel { grid-auto-columns: minmax(320px,76%); }
}

@media (max-width: 720px) {
  .site-header .brand-mark { width: 40px; height: 40px; flex-basis: 40px; }
  .brand-name { font-size: 24px; }
  .home-intro { padding: 34px 0 26px; }
  .home-intro-copy h1 { font-size: 50px; }
  .home-intro-copy p { font-size: 16px; }
  .compact-calendar-card { padding: 14px 34px 10px; border-radius: 16px; }
  .compact-calendar-topline { justify-content: stretch; }
  .compact-calendar-topline label { width: 100%; }
  .compact-days { gap: 4px; }
  .compact-calendar-wrap > .calendar-edge-prev { left: -31px; }
  .compact-calendar-wrap > .calendar-edge-next { right: -31px; }
  .calendar-edge-arrow { width: 32px; height: 32px; font-size: 23px; }
  .compact-time-pill { min-height: 36px; font-size: 12px; }
  .calendar-with-edge-nav { padding-inline: 20px; }
  .calendar-with-edge-nav > .calendar-edge-prev { left: -8px; }
  .calendar-with-edge-nav > .calendar-edge-next { right: -8px; }
  .calendar-legend { display: none; }
  .physio-carousel, .physio-carousel.single { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 92%; justify-content: normal; overflow-x: auto; }
  .service-row-public { grid-template-columns: 1fr; gap: 5px; }
  .service-row-public > strong { justify-self: start; }
  .location-map-preview { height: 240px; }
  .external-booking-dialog { padding: 25px 20px; }
  .help-tooltip .help-tooltip-text { left: auto; right: -8px; transform: translateY(4px); width: min(290px,75vw); }
  .help-tooltip:hover .help-tooltip-text, .help-tooltip:focus .help-tooltip-text { transform: translateY(0); }
}

@media (max-width: 430px) {
  .compact-calendar-card { padding-inline: 30px; }
  .compact-day header strong { font-size: 13px; }
  .compact-time-pill { width: 66px; }
  .physio-carousel { grid-auto-columns: 96%; }
}

/* Readable hover hints for available times on pointer devices. */
@media (hover: hover) and (pointer: fine) {
  .compact-time-pill[data-tooltip]::after,
  .fc .fc-event[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    z-index: 80;
    left: 50%;
    bottom: calc(100% + 8px);
    width: max-content;
    max-width: 230px;
    padding: 7px 9px;
    border-radius: 8px;
    background: #082f33;
    color: #fff;
    font: 600 11px/1.35 var(--sans);
    white-space: normal;
    text-align: center;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .12s ease, transform .12s ease;
    box-shadow: 0 8px 22px rgba(0,0,0,.18);
  }
  .compact-time-pill[data-tooltip]:hover::after,
  .compact-time-pill[data-tooltip]:focus-visible::after,
  .fc .fc-event[data-tooltip]:hover::after {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Slot details */
.slot-compatible-services { margin: 6px 0 18px; padding: 12px 14px; border-radius: 12px; background: #f4f6f5; color: var(--muted); }
.slot-compatible-title { margin-bottom: 6px; font-size: 12px; font-weight: 700; color: #65736f; }
.slot-compatible-list { display: flex; flex-wrap: wrap; gap: 5px 12px; font-size: 12px; line-height: 1.45; }
.slot-compatible-list span { color: #7a8582; }
@media (max-width: 720px) {
  .slot-compatible-list { display: grid; gap: 4px; }
}

/* Physiotherapist scheduler controls */
.scheduler-calendar-shell .fc .fc-timegrid-axis,
.scheduler-calendar-shell .fc .fc-timegrid-slot-label { display: table-cell !important; width: 58px !important; }
.scheduler-calendar-shell .fc .fc-timegrid-slots table col:first-child,
.scheduler-calendar-shell .fc .fc-timegrid-cols table col:first-child { width: 58px !important; }
.scheduler-calendar-shell .fc .fc-timegrid-slot { height: 18px; }
.scheduler-calendar-shell .fc .fc-timegrid-slot-minor { border-top-style: dotted; border-top-color: #e5ece9; }
.scheduler-hour-label { color: #65716e; font-size: 11px; font-weight: 700; white-space: nowrap; }

.slot-mode-control { gap: 8px; }
.slot-duration-options { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 7px; }
.slot-duration-options button { min-height: 38px; padding: 7px 8px; border: 1px solid #b9cbc6; border-radius: 10px; background: #fff; color: var(--brand); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; transition: .15s; }
.slot-duration-options button:hover { background: #f0f6f3; }
.slot-duration-options button.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 5px 14px rgba(4,44,49,.16); }
.scheduler-mode-status { padding: 9px 11px; border: 1px solid #d6e1dd; border-radius: 10px; background: #f5f8f7; color: #6e7976; font-size: 12px; font-weight: 700; }
.scheduler-mode-status.active { border-color: #8fb8ab; background: #e7f3ef; color: var(--brand); }

.scheduler-calendar-shell .fc-event { overflow: visible; }
.physio-event-main { display: grid; gap: 1px; min-width: 0; }
.physio-event-time { font-size: 11px; font-weight: 850; line-height: 1.15; }
.physio-event-title { overflow: hidden; font-size: 11px; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; }
.physio-event-services { margin-top: 3px; color: rgba(240,243,242,.82); font-size: 9px; font-weight: 600; line-height: 1.2; }
.physio-event-conflict { margin-top: 4px; padding-top: 3px; border-top: 1px solid rgba(255,255,255,.38); color: #fff4c9; font-size: 8px; font-weight: 850; line-height: 1.15; }
.fc .calendar-conflict { box-shadow: inset 0 0 0 2px #e7a824, 0 0 0 1px rgba(122,61,184,.25) !important; }
.fc .calendar-external.calendar-conflict { border-color: var(--external) !important; border-style: solid !important; }


@media (max-width: 720px) {
  .scheduler-calendar-shell .fc .fc-timegrid-axis,
  .scheduler-calendar-shell .fc .fc-timegrid-slot-label { width: 48px !important; }
  .scheduler-calendar-shell .fc .fc-timegrid-slots table col:first-child,
  .scheduler-calendar-shell .fc .fc-timegrid-cols table col:first-child { width: 48px !important; }
  .slot-duration-options { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .physio-event-services { font-size: 8px; }
}
.public-event-content { display: grid; gap: 1px; }
.public-event-time { font-size: 11px; font-weight: 850; line-height: 1.1; }
.public-event-title { overflow: hidden; font-size: 11px; font-weight: 750; line-height: 1.2; text-overflow: ellipsis; }

/* v5 scheduler usability */
.scheduler-compatible-preview { margin-top: 12px; padding-top: 11px; border-top: 1px solid #dbe5e1; }
.scheduler-compatible-heading { margin-bottom: 7px; color: #53615d; font-size: 11px; font-weight: 800; }
.scheduler-compatible-list { max-height: 190px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; }
.scheduler-compatible-item { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 2px; border-bottom: 1px solid #edf1ef; color: #7a8582; font-size: 11px; line-height: 1.25; }
.scheduler-compatible-item:last-child { border-bottom: 0; }
.scheduler-compatible-item span { min-width: 0; overflow-wrap: anywhere; }
.scheduler-compatible-item small { flex: 0 0 auto; color: #9aa39f; font-size: 10px; }
.scheduler-compatible-empty { color: #8d9794; font-size: 11px; line-height: 1.35; }

.scheduler-calendar-shell .fc .fc-timegrid-slot.scheduler-hour-tint { background: #f3f8f5; }
.scheduler-calendar-shell .fc .fc-timegrid-slot.scheduler-hour-white { background: #fff; }
/* Fallback for FullCalendar builds that do not attach slotLaneClassNames to every row. */
.scheduler-calendar-shell .fc .fc-timegrid-slots tbody tr:nth-child(8n+5) td,
.scheduler-calendar-shell .fc .fc-timegrid-slots tbody tr:nth-child(8n+6) td,
.scheduler-calendar-shell .fc .fc-timegrid-slots tbody tr:nth-child(8n+7) td,
.scheduler-calendar-shell .fc .fc-timegrid-slots tbody tr:nth-child(8n+8) td { background-color: #f3f8f5; }
.scheduler-calendar-shell .fc .calendar-stale-location { box-shadow: inset 0 0 0 2px #b85b4a !important; }
.slot-compatible-list { max-height: 220px; overflow-y: auto; padding-right: 4px; }


/* Manual ZnanyLekarz slots */
.scheduler-znany-toggle { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0; padding: 12px; border: 1px solid #d9d1e7; border-radius: 12px; background: #faf8fd; cursor: pointer; }
.scheduler-znany-toggle .form-check { width: 18px; height: 18px; margin-top: 2px; flex: 0 0 auto; }
.scheduler-znany-toggle span { display: grid; gap: 3px; }
.scheduler-znany-toggle strong { color: #4e2776; font-size: 12px; }
.scheduler-znany-toggle small, .scheduler-znany-hint { color: #7a7183; font-size: 11px; line-height: 1.4; }
.scheduler-znany-hint { margin: 12px 0; padding: 10px 12px; border-radius: 10px; background: #f5f7f6; }
.copy-week-control { display: grid; gap: 9px; }
.copy-week-znany { display: flex; align-items: center; gap: 8px; color: #695876; font-size: 11px; font-weight: 700; }
.copy-week-znany .form-check { width: 16px; height: 16px; }
.znany-cta-switcher { margin-top: 14px; }
.znany-cta { display: flex; align-items: center; justify-content: space-between; gap: 18px; width: 100%; padding: 16px 18px; border: 1px solid #d8cae8; border-left: 4px solid var(--external); border-radius: 14px; background: linear-gradient(135deg,#fff 0%,#faf7fd 100%); color: var(--brand); text-decoration: none; box-shadow: 0 8px 24px rgba(65,38,91,.07); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.znany-cta:hover { transform: translateY(-1px); border-color: #bca4d4; box-shadow: 0 12px 30px rgba(65,38,91,.11); }
.znany-cta[hidden], .znany-cta-switcher[hidden] { display: none !important; }
.znany-cta > span:first-child { display: grid; gap: 2px; }
.znany-cta strong { font-size: 14px; }
.znany-cta small { color: var(--muted); font-size: 11px; }
.znany-cta > span:last-child { color: var(--external); font-size: 22px; font-weight: 800; }
.profile-znany-cta { margin-top: 12px; max-width: 460px; background: rgba(255,255,255,.96); }
.profile-znany-link { display: inline-block; margin-top: 10px; }
.fc .calendar-external { border-width: 3px !important; border-color: var(--external) !important; }

/* Homepage contact and social sections */
.contact-switcher { display: grid; gap: 18px; }
.contact-card { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(320px,.95fr); gap: 28px; padding: 26px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow-sm); }
.contact-person { display: grid; grid-template-columns: 112px 1fr; gap: 20px; align-items: center; }
.contact-person img { width: 112px; height: 112px; object-fit: cover; border-radius: 18px; }
.contact-person h3 { margin-bottom: 7px; }
.contact-person p { margin: 0; color: var(--muted); }
.contact-methods { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.contact-method { display: grid; align-content: center; gap: 4px; min-height: 88px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--canvas); transition: border-color .15s, background .15s, transform .15s; }
a.contact-method:hover { transform: translateY(-1px); border-color: #9eb3ae; background: #eef5f2; }
.contact-method small { color: var(--muted); font-size: 11px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; }
.contact-method strong { color: var(--brand); overflow-wrap: anywhere; }
.contact-method.muted strong { color: #87908e; font-weight: 650; }
.contact-method.social { background: #f4f7f5; }

.social-section { overflow: hidden; }
.instagram-profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 22px; padding: 28px 30px; border: 1px solid #dbcfdc; border-radius: 24px; background: linear-gradient(135deg,#fff 0%,#faf6fa 60%,#f1f6f3 100%); box-shadow: var(--shadow-sm); transition: transform .16s, box-shadow .16s; }
.instagram-profile-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.instagram-profile-mark { display: grid; width: 64px; height: 64px; place-items: center; border-radius: 18px; background: #fff; color: #7c3b78; font-size: 38px; box-shadow: inset 0 0 0 1px #e7dbe7; }
.instagram-profile-card > div:nth-child(2) { display: grid; gap: 2px; }
.instagram-profile-card small { color: #7c657a; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.instagram-profile-card strong { color: var(--brand); font-family: var(--serif); font-size: clamp(26px,3vw,38px); font-weight: 500; }
.instagram-profile-card span:not(.social-arrow) { color: var(--muted); }
.social-arrow { color: var(--brand); font-size: 28px; }
.facebook-embed-shell { width: min(520px,100%); min-height: 600px; margin-inline: auto; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow-sm); }
.facebook-embed-shell iframe { display: block; width: 100%; height: 600px; border: 0; }
.social-fallback { display: flex; justify-content: center; margin-top: 16px; }

@media (max-width: 900px) {
  .contact-card { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .contact-card { padding: 18px; }
  .contact-person { grid-template-columns: 76px 1fr; gap: 14px; align-items: start; }
  .contact-person img { width: 76px; height: 76px; border-radius: 14px; }
  .contact-methods { grid-template-columns: 1fr; }
  .contact-method { min-height: 74px; }
  .instagram-profile-card { grid-template-columns: auto 1fr; gap: 14px; padding: 20px; }
  .instagram-profile-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 30px; }
  .instagram-profile-card .social-arrow { display: none; }
  .facebook-embed-shell { min-height: 520px; border-radius: 15px; }
  .facebook-embed-shell iframe { height: 520px; }
}

/* Booking widgets: Docplanner first, Fizjoka compact calendar second. */
.home-intro-copy-wide { max-width: 760px; margin-bottom: 28px; }
.home-intro-copy-wide h1 { margin-bottom: 10px; }
.home-booking-grid { display: grid; grid-template-columns: minmax(320px,.92fr) minmax(520px,1.08fr); gap: 24px; align-items: stretch; }
.home-booking-grid.single-booking { grid-template-columns: minmax(0,760px); justify-content: end; }
.home-booking-grid > * { min-width: 0; }
.compact-all-appointments { margin-top: 10px; }
.znanylekarz-widget-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: var(--shadow); }
.booking-widget-heading { margin-bottom: 12px; }
.booking-widget-heading h2 { margin: 2px 0 0; font-size: clamp(23px,2.5vw,30px); }
.znanylekarz-widget-shell { width: 100%; min-height: 290px; overflow: hidden; border-radius: 14px; background: #f7f9f8; }
.znanylekarz-widget-shell iframe, .znanylekarz-widget-shell > div { max-width: 100% !important; }
.calendar-page-stack { display: grid; gap: 24px; }
.calendar-page-stack > .znanylekarz-widget-card { width: min(760px,100%); margin-inline: auto; }

@media (max-width: 1050px) {
  .home-booking-grid { grid-template-columns: 1fr; }
  .home-booking-grid > .znanylekarz-widget-card,
  .home-booking-grid > .compact-calendar-card { width: min(760px,100%); margin-inline: auto; }
}

@media (max-width: 720px) {
  .home-intro-copy-wide { margin-bottom: 22px; text-align: center; }
  .znanylekarz-widget-card { padding: 14px; border-radius: 16px; }
  .znanylekarz-widget-shell { min-height: 260px; }
}

/* v9 public availability states and compact social integrations */
.single-line-heading { margin-bottom: 22px; }
.single-line-heading h2 { margin-bottom: 0; }

/* Public calendars become visually quiet when the visible range has no bookable slot. */
.compact-calendar-card.calendar-no-availability .compact-days {
  background: #f1f3f2;
  border-color: #dfe4e1;
}
.compact-calendar-card.calendar-no-availability .compact-day {
  opacity: .62;
  filter: grayscale(.82);
}
.compact-calendar-card.calendar-no-availability .compact-time-pill.own {
  opacity: 1;
  filter: none;
}
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-scrollgrid,
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-timegrid-slots td,
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-timegrid-cols td,
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-col-header-cell {
  background-color: #f2f4f3;
}
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-timegrid-slot-label,
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-col-header-cell-cushion {
  color: #8b9491;
}
.calendar-shell.calendar-no-availability [data-public-calendar] .fc-timegrid-slot-lane {
  border-color: #e3e7e5;
}

/* Load the Docplanner widget only on desktop. Mobile uses a direct booking link to avoid third-party iframe errors. */
.znanylekarz-mobile-link { display: none; }
.booking-widget-heading h2 { margin: 0; }

.facebook-social-row {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(240px, .65fr);
  gap: 18px;
  align-items: stretch;
}
.facebook-embed-shell.facebook-embed-compact {
  width: 100%;
  min-height: 250px;
  margin: 0;
}
.facebook-embed-shell.facebook-embed-compact iframe {
  width: 100%;
  height: 250px;
}
.facebook-profile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  color: var(--brand);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .16s ease, box-shadow .16s ease;
}
.facebook-profile-link:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.facebook-profile-link > span:first-child { display: grid; gap: 4px; }
.facebook-profile-link small { color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.facebook-profile-link strong { font-family: var(--serif); font-size: clamp(24px,3vw,34px); font-weight: 500; }
.facebook-profile-link span span { color: var(--muted); font-size: 13px; line-height: 1.45; }

@media (max-width: 720px) {
  .znanylekarz-widget-shell { display: none; }
  .znanylekarz-mobile-link { display: flex; }
  .znanylekarz-widget-card { padding: 16px; }
  .booking-widget-heading { margin-bottom: 12px; }
  .booking-widget-heading h2 { font-size: 22px; }
  .facebook-social-row { grid-template-columns: 1fr; }
  .facebook-embed-shell.facebook-embed-compact { min-height: 240px; }
  .facebook-embed-shell.facebook-embed-compact iframe { height: 240px; }
  .facebook-profile-link { padding: 20px; }
}

/* v10: high quality brand mark, complete empty-calendar state and profile photo management */
.brand-mark,
.site-header .brand-mark,
.footer-brand img {
  object-fit: contain !important;
  image-rendering: auto;
  border-radius: 0 !important;
}
.site-header .brand-mark { width: 50px; height: 50px; flex-basis: 50px; }

.compact-calendar-card,
.calendar-shell { position: relative; isolation: isolate; }
.calendar-empty-overlay {
  display: none;
  position: absolute;
  z-index: 40;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border-radius: inherit;
  background: rgba(238,242,240,.88);
  color: #65716d;
  text-align: center;
  cursor: default;
}
.calendar-empty-overlay strong {
  max-width: 480px;
  color: #59645f;
  font-family: var(--serif);
  font-size: clamp(20px,2.4vw,28px);
  font-weight: 500;
  line-height: 1.25;
}
.calendar-empty-overlay span { max-width: 520px; color: #7a8581; font-size: 13px; line-height: 1.5; }
.compact-calendar-card.calendar-no-availability,
.calendar-shell.calendar-no-availability {
  border-color: #d7ddda;
  background: #eef2f0;
  box-shadow: none;
}
.compact-calendar-card.calendar-no-availability > :not(.calendar-empty-overlay),
.calendar-shell.calendar-no-availability > :not(.calendar-empty-overlay) {
  opacity: .28;
  filter: grayscale(1);
  pointer-events: none !important;
  user-select: none;
}
.compact-calendar-card.calendar-no-availability .calendar-empty-overlay,
.calendar-shell.calendar-no-availability .calendar-empty-overlay { display: flex; }

/* Use the official Docplanner widget at every viewport size. */
.znanylekarz-widget-shell { display: block !important; min-height: 290px; overflow-x: hidden; }
.znanylekarz-widget-shell iframe,
.znanylekarz-widget-shell > div { width: 100% !important; max-width: 100% !important; }
.znanylekarz-mobile-link { display: none !important; }

.btn-znany {
  margin-top: 10px;
  border-color: #7a3db8;
  background: #fff;
  color: #5f2b91;
}
.btn-znany:hover { border-color: #6a309f; background: #f7f1fc; color: #54247f; box-shadow: none; }

.profile-settings-card { margin-bottom: 24px; }
.profile-assets-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px; align-items: start; }
.panel-help { margin-top: -4px; color: var(--muted); font-size: 13px; }
.profile-photo-admin-list { display: grid; gap: 10px; margin-top: 16px; }
.profile-photo-admin-row {
  display: grid;
  grid-template-columns: 86px minmax(0,1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.profile-photo-admin-row.is-primary { border-color: #8fb8ab; background: #f2f8f5; box-shadow: inset 4px 0 0 var(--brand-3); }
.profile-photo-admin-row img { width: 86px; height: 86px; object-fit: cover; border-radius: 11px; background: #edf1ef; }
.profile-photo-admin-meta { display: grid; gap: 4px; min-width: 0; }
.profile-photo-admin-meta strong { color: var(--brand); overflow-wrap: anywhere; }
.profile-photo-admin-meta small { color: var(--muted); }
.readonly-check { display: inline-flex; align-items: center; gap: 6px; color: #63716c; font-size: 12px; }
.readonly-check input { width: 15px; height: 15px; accent-color: var(--brand); }
.profile-photo-admin-actions { display: grid; justify-items: end; gap: 8px; }
.profile-photo-edit-preview { width: min(520px,100%); max-height: 440px; margin-bottom: 20px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #eef2f0; }
.profile-photo-edit-preview img { display: block; width: 100%; max-height: 440px; object-fit: contain; }

@media (max-width: 900px) {
  .profile-assets-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-header .brand-mark { width: 44px; height: 44px; flex-basis: 44px; }
  .znanylekarz-widget-shell { display: block !important; min-height: 280px; }
  .calendar-empty-overlay { padding: 18px; }
  .calendar-empty-overlay span { font-size: 12px; }
  .profile-photo-admin-row { grid-template-columns: 72px 1fr; }
  .profile-photo-admin-row img { width: 72px; height: 72px; }
  .profile-photo-admin-actions { grid-column: 1 / -1; grid-auto-flow: column; justify-content: end; }
}

/* v11: public copy, empty-calendar CTA and review widgets */
.calendar-empty-overlay .calendar-empty-contact {
  position: relative;
  z-index: 2;
  margin-top: 8px;
  border-color: #7f918b;
  background: #fff;
  color: var(--brand);
  pointer-events: auto !important;
}
.calendar-empty-overlay .calendar-empty-contact:hover { background: #f7faf8; box-shadow: none; }
.contact-method.email strong { font-size: 15px; letter-spacing: -.015em; }

.reviews-section { background: linear-gradient(180deg,#fff 0%,#f4f7f5 100%); }
.review-widgets-grid { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(300px,.85fr); gap: 22px; align-items: stretch; }
.review-widget-card { min-width: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.review-widget-heading { display: grid; gap: 5px; padding: 18px 20px 0; }
.review-widget-heading strong { color: var(--brand); font-family: var(--serif); font-size: 18px; font-weight: 500; }
.review-provider { display: inline-flex; width: max-content; align-items: center; gap: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.review-provider-znany { color: #643296; }
.review-provider-google { color: #4e5b57; }
.znanylekarz-review-shell { min-height: 245px; padding: 14px 18px 18px; overflow: hidden; }
.znanylekarz-review-shell iframe,
.znanylekarz-review-shell > div { width: 100% !important; max-width: 100% !important; }
.google-review-card { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 26px; background: linear-gradient(145deg,#fff 0%,#f5f8f6 100%); }
.google-review-copy { display: grid; gap: 12px; }
.google-review-copy h3 { margin: 0; font-size: clamp(25px,3vw,36px); }
.google-review-copy p { margin: 0; color: var(--muted); line-height: 1.65; }
.google-review-button { align-self: flex-start; }

@media (max-width: 820px) {
  .review-widgets-grid { grid-template-columns: 1fr; }
  .znanylekarz-review-shell { min-height: 230px; }
}
@media (max-width: 520px) {
  .contact-method.email strong { font-size: 14px; }
  .review-widget-heading { padding: 16px 16px 0; }
  .znanylekarz-review-shell { padding: 12px 14px 16px; }
  .google-review-card { padding: 20px; }
  .google-review-button { width: 100%; }
}

/* v12: official ZnanyLekarz widgets generated from the current embed snippets. */
.calendar-empty-actions {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.calendar-empty-actions .calendar-empty-contact,
.calendar-empty-actions .calendar-empty-znany { margin-top: 0; pointer-events: auto !important; }
.calendar-empty-znany {
  border-color: #7a3db8;
  background: #fff;
  color: #5f2b91;
}
.calendar-empty-znany:hover { border-color: #6a309f; background: #f7f1fc; color: #54247f; box-shadow: none; }

.znanylekarz-widget-shell {
  min-height: 300px;
  overflow: visible;
}
.znanylekarz-widget-shell iframe,
.znanylekarz-review-shell iframe,
.znanylekarz-certificate-shell iframe {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}

.profile-znany-certificate {
  display: flex;
  justify-content: center;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.znanylekarz-certificate-shell {
  width: min(100%, 520px);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  overflow: hidden;
}
.znany-certificate-card .znanylekarz-certificate-shell {
  width: 100%;
  min-height: 150px;
  padding: 16px 18px 20px;
}
.review-widgets-grid-three {
  grid-template-columns: minmax(230px,.7fr) minmax(320px,1.15fr) minmax(280px,.85fr);
  align-items: stretch;
}
.znany-review-card .znanylekarz-review-shell { min-height: 245px; }

@media (max-width: 1050px) {
  .review-widgets-grid-three { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .review-widgets-grid-three .google-review-card { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
  .review-widgets-grid-three { grid-template-columns: 1fr; }
  .review-widgets-grid-three .google-review-card { grid-column: auto; }
}
@media (max-width: 720px) {
  .znanylekarz-widget-card { overflow: visible; }
  .znanylekarz-widget-shell { display: block !important; min-height: 300px; overflow: visible; }
  .znanylekarz-widget-shell iframe { min-width: 0 !important; }
  .calendar-empty-actions { flex-direction: column; width: min(280px,100%); }
  .calendar-empty-actions .btn { width: 100%; }
  .profile-znany-certificate { margin-top: 22px; padding-top: 20px; }
}
.physio-panel-zl-certificate {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.physio-panel-zl-certificate > small { color: var(--muted); font-weight: 700; }
.physio-panel-zl-certificate .znanylekarz-certificate-shell { justify-content: flex-start; padding-inline: 0; }

/* Public contact form */
.contact-message-panel { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 18px; }
.contact-message-panel > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 18px; border: 1px solid #9eb3ae; border-radius: 999px; background: #f7faf8; color: var(--brand); font-weight: 750; cursor: pointer; user-select: none; }
.contact-message-panel > summary::-webkit-details-marker { display: none; }
.contact-message-panel[open] > summary { background: var(--brand); border-color: var(--brand); color: white; }
.contact-message-form { position: relative; display: grid; gap: 14px; margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--canvas); }
.contact-form-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 12px; }
.contact-message-form label { display: grid; gap: 6px; color: var(--brand); font-weight: 700; }
.contact-message-form label > span { font-size: 13px; }
.contact-message-form label small { color: var(--muted); font-weight: 500; }
.contact-message-field textarea { resize: vertical; min-height: 126px; }
.contact-form-footer { display: flex; gap: 18px; align-items: center; justify-content: space-between; }
.contact-form-footer > small { color: var(--muted); max-width: 620px; line-height: 1.45; }
.contact-honeypot { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
@media (max-width: 760px) {
  .contact-form-grid { grid-template-columns: 1fr; }
  .contact-message-form { padding: 16px; }
  .contact-form-footer { align-items: stretch; flex-direction: column; }
  .contact-form-footer .btn { width: 100%; }
}

/* Contact form result shown next to the form after redirect. */
.contact-form-status {
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid #c9ddd5;
  border-radius: 14px;
  background: #e8f3ef;
  color: #194d3d;
  font-weight: 650;
  line-height: 1.45;
}
.contact-form-status.error {
  border-color: #edc9c6;
  background: var(--danger-soft);
  color: #7c2929;
}
