:root {
  --ink: #1b2a30;
  --muted: #5d6c72;
  --spruce: #143f49;
  --teal: #1f6f73;
  --mint: #e7f3f1;
  --cream: #f4efe6;
  --paper: #fffdf9;
  --line: #e3d8c8;
  --gold: #a67856;
  --red: #c62828;
  --rose: #ad1457;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 380px at 100% -8%, #dceee9 0%, transparent 55%),
    var(--cream);
  font-family: "Segoe UI", Candara, sans-serif;
  line-height: 1.6;
}
a { color: inherit; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 7vw 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #f4efe6;
  background: var(--spruce);
  font-family: Palatino, Georgia, serif;
  font-size: 22px;
}
.nav-links { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav-links a { text-decoration: none; color: var(--spruce); font-size: 15px; }
.nav-links a[aria-current="page"] { font-weight: 700; border-bottom: 2px solid var(--gold); }
.enter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px 11px 14px;
  border-radius: 999px;
  text-decoration: none;
  color: #f7f1e6 !important;
  background: linear-gradient(135deg, #102f36 0%, #1f6f73 100%);
  border: 1px solid rgba(226, 194, 164, 0.75);
  box-shadow: 0 10px 22px rgba(16, 47, 54, 0.28);
  letter-spacing: 0.03em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.enter::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e2c2a4;
  box-shadow: 0 0 0 4px rgba(226, 194, 164, 0.28);
  flex: none;
}
.nav-links a.enter:hover {
  border-bottom-color: rgba(226, 194, 164, 0.75);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(16, 47, 54, 0.34);
}
.nav-links a.enter[aria-current="page"] {
  background: #f7f1e6;
  color: #143f49 !important;
  border-color: #143f49;
}
.nav-links a.enter[aria-current="page"]::before {
  background: #143f49;
  box-shadow: 0 0 0 4px rgba(20, 63, 73, 0.12);
}

.stage {
  margin: 18px 7vw 0;
  padding: 64px 56px 56px;
  border-radius: 36px;
  color: #f7f1e6;
  background:
    radial-gradient(420px 280px at 88% 20%, rgba(255,255,255,0.12), transparent 70%),
    linear-gradient(145deg, #102f36 0%, #1a5960 58%, #247f78 100%);
  position: relative;
  overflow: hidden;
  min-height: 420px;
}
.stage::before,
.stage::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(247, 241, 230, 0.18);
}
.stage::before { width: 460px; height: 460px; right: -140px; top: -180px; }
.stage::after { width: 220px; height: 220px; right: 80px; bottom: -90px; }
.stage-inner { position: relative; z-index: 1; max-width: 680px; }
.kicker {
  margin: 0 0 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
  color: #e2c2a4;
}
h1, h2, h3 { font-family: Palatino, Georgia, serif; font-weight: 600; line-height: 1.12; }
h1 { font-size: clamp(42px, 6vw, 76px); margin: 0 0 16px; }
.lede { font-size: 19px; max-width: 38rem; color: rgba(247, 241, 230, 0.88); }
.stage .lede { color: rgba(247, 241, 230, 0.88); }
.page-intro .lede, .page-intro h1 { color: var(--spruce); }
.page-intro .lede { color: var(--muted); }
.actions { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 18px;
  background: #f4efe6;
  color: var(--spruce);
  font: inherit;
}
.btn.line { background: transparent; color: #f4efe6; border: 1px solid rgba(244, 239, 230, 0.45); }
.btn.solid { background: var(--spruce); color: #f4efe6; }
.btn.ghost { background: transparent; color: var(--spruce); border: 1px solid var(--line); }
.btn.warn { background: #8d2f2f; color: white; }
.btn.small { padding: 8px 12px; font-size: 14px; }

.band { padding: 28px 7vw 72px; }
.photo-banner {
  position: relative;
  margin: 22px 7vw 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(20, 63, 73, 0.12);
}
.photo-banner img {
  width: 100%;
  height: min(70vh, 640px);
  object-fit: cover;
  display: block;
  animation: drift-photo 1.6s ease both;
}
.photo-banner figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 72px 36px 28px;
  color: #f7f1e6;
  background: linear-gradient(transparent, rgba(16, 47, 54, 0.78));
}
.band .photo-banner { margin-left: 0; margin-right: 0; }
.photo-banner h2 { margin: 0; font-size: clamp(32px, 4vw, 54px); color: #f7f1e6; }
.photo-banner .kicker { color: #e2c2a4; }
@keyframes drift-photo {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}
.overlap { margin-top: -42px; position: relative; z-index: 2; }
.grid-3, .grid-2 { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.15fr 0.85fr; }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(20, 63, 73, 0.06);
}
.card h3 { margin: 8px 0; color: var(--spruce); }
.num {
  font-family: Palatino, Georgia, serif;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
}
.muted { color: var(--muted); }
.signature {
  font-family: Palatino, Georgia, serif;
  font-size: clamp(36px, 5vw, 58px);
  margin: 0;
  color: var(--spruce);
}
.contact-card {
  max-width: 520px;
  margin-top: 28px;
  padding: 36px 32px;
}
.phone {
  display: inline-block;
  margin-top: 10px;
  color: var(--teal);
  font-size: 28px;
  letter-spacing: 0.04em;
  text-decoration: none;
}
.password-row { display: flex; gap: 8px; align-items: center; }
.secret { -webkit-text-security: disc; }
.password-row input { flex: 1; }
.eye {
  flex: none;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--spruce);
  border-radius: 999px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}
.portrait {
  width: 132px;
  height: 132px;
  border-radius: 36px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #143f49, #1f6f73);
  color: #f4efe6;
  font-family: Palatino, Georgia, serif;
  font-size: 42px;
  flex: none;
}
.split { display: flex; gap: 22px; align-items: center; }
footer {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 7vw 36px;
  color: var(--muted);
}
footer a, .footer-cookie {
  color: var(--spruce);
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
  text-decoration: none;
}
.cookie-banner {
  position: fixed;
  z-index: 40;
  right: 22px;
  bottom: 22px;
  width: min(440px, calc(100vw - 28px));
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: 0 18px 50px rgba(20, 63, 73, 0.16);
  animation: rise 0.55s ease both;
}
.cookie-banner h2 {
  margin: 0 0 8px;
  color: var(--spruce);
  font-size: 30px;
}
.cookie-banner p { margin: 0; color: var(--muted); }
.cookie-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  align-items: center;
  margin-top: 12px;
  color: var(--spruce);
}
.cookie-row input { width: auto; }
.cookie-row span { grid-column: 2; color: var(--muted); font-size: 13px; }
.cookie-banner .actions a { color: var(--teal); text-decoration: none; }
.cookie-reopen {
  position: fixed;
  left: 18px;
  bottom: 18px;
  z-index: 35;
  border: 0;
  cursor: pointer;
  font: inherit;
  color: #f4efe6;
  background: var(--spruce);
  border-radius: 999px;
  padding: 8px 14px;
}
@keyframes cookie-out {
  to { opacity: 0; transform: translateY(28px) scale(0.96); }
}
.cookie-banner.cookie-leave,
.cookie-reopen.cookie-leave,
.footer-cookie.cookie-leave {
  animation: cookie-out 0.48s ease forwards;
  pointer-events: none;
}

.form { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: 14px; color: var(--spruce); }
input, select, textarea {
  width: 100%;
  border: 1px solid #d9cdb8;
  background: white;
  color: var(--ink);
  border-radius: 14px;
  padding: 12px 14px;
  font: inherit;
}
textarea { min-height: 140px; resize: vertical; }
.note { min-height: 1.2em; color: var(--teal); }
.note.error { color: var(--red); }

.program-body { background: #eef3f6; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  background: linear-gradient(90deg, #1b4f72, #0f6e7a);
  color: white;
}
.topbar h1 { color: white; font-size: 22px; margin: 0; }
.topbar select, .topbar input { background: white; }
.tabs { display: flex; gap: 8px; padding: 14px 22px 0; flex-wrap: wrap; }
.tabs button {
  border: 1px solid #d5e1ea;
  background: white;
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
  font: inherit;
}
.tabs button.active { background: #0f6e7a; color: white; border-color: #0f6e7a; }
.panel { display: none; padding: 16px 22px 40px; }
.panel.active { display: block; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; background: white; border-radius: 14px; overflow: hidden; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e6eef2; vertical-align: top; }
th { background: #f4f8fa; font-size: 13px; }
tr.selected { outline: 2px solid #0f6e7a; }
.dialog-back {
  position: fixed; inset: 0; background: rgba(22, 50, 79, 0.35);
  display: none; place-items: center; padding: 20px; z-index: 30;
}
.dialog-back.open { display: grid; }
.dialog {
  width: min(860px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: white;
  border-radius: 18px;
  padding: 18px;
}
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fields .wide { grid-column: 1 / -1; }
.days { display: flex; gap: 8px; flex-wrap: wrap; }
.days label { display: flex; gap: 6px; align-items: center; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day-col { background: white; border-radius: 12px; padding: 8px; min-height: 180px; }
.visit { border-left: 3px solid #0f6e7a; padding: 6px 8px; margin-top: 8px; background: #f7fbfc; font-size: 13px; }

@media (max-width: 900px) {
  .grid-3, .grid-2, .fields, .week { grid-template-columns: 1fr; }
  .nav, .band, .stage, .photo-banner { margin-left: 16px; margin-right: 16px; }
  .photo-banner img { height: 320px; }
  .nav { margin: 0; padding: 16px; }
  .stage { padding: 36px 22px; }
  .band { padding-left: 16px; padding-right: 16px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
@keyframes drift {
  from { transform: rotate(0deg); }
  to { transform: rotate(8deg); }
}

body:not(.program-body) .nav {
  animation: rise 0.6s ease both;
}
body:not(.program-body) .stage,
body:not(.program-body) .page-intro > .kicker,
body:not(.program-body) .page-intro > h1,
body:not(.program-body) .page-intro > .lede,
body:not(.program-body) .page-intro > section,
body:not(.program-body) footer {
  animation: rise 0.75s ease both;
}
body:not(.program-body) .stage { animation-delay: 0.08s; }
body:not(.program-body) .page-intro > h1 { animation-delay: 0.08s; }
body:not(.program-body) .page-intro > .lede { animation-delay: 0.14s; }
body:not(.program-body) .page-intro > section { animation-delay: 0.2s; }
body:not(.program-body) .card {
  animation: rise 0.7s ease both;
}
body:not(.program-body) .grid-3 .card:nth-child(1),
body:not(.program-body) .grid-2 .card:nth-child(1) { animation-delay: 0.18s; }
body:not(.program-body) .grid-3 .card:nth-child(2),
body:not(.program-body) .grid-2 .card:nth-child(2) { animation-delay: 0.28s; }
body:not(.program-body) .grid-3 .card:nth-child(3) { animation-delay: 0.38s; }
body:not(.program-body) .grid-3 .card:nth-child(4) { animation-delay: 0.48s; }
body:not(.program-body) .grid-3 .card:nth-child(5) { animation-delay: 0.58s; }
body:not(.program-body) .grid-3 .card:nth-child(6) { animation-delay: 0.68s; }
body:not(.program-body) .stage::before,
body:not(.program-body) .stage::after {
  animation: drift 1.4s ease both;
}
body:not(.program-body) footer { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  body:not(.program-body) .nav,
  body:not(.program-body) .stage,
  body:not(.program-body) .page-intro > .kicker,
  body:not(.program-body) .page-intro > h1,
  body:not(.program-body) .page-intro > .lede,
  body:not(.program-body) .page-intro > section,
  body:not(.program-body) .card,
  body:not(.program-body) footer,
  body:not(.program-body) .stage::before,
  body:not(.program-body) .stage::after,
  .photo-banner img {
    animation: none;
  }
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 239, 230, 0.92);
  backdrop-filter: blur(12px);
}
.nav-links a { padding-bottom: 2px; }
.nav-links a.enter {
  padding: 0 18px 0 14px;
  height: 42px;
  line-height: 1;
  align-items: center;
  justify-content: center;
}
.nav-links a:hover { border-bottom: 2px solid var(--gold); }
.stage-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  padding: 42px;
}
.stage-side {
  width: 100%;
  height: 460px;
  object-fit: cover;
  border-radius: 28px;
  position: relative;
  z-index: 1;
}
.pills { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.pills span {
  background: white;
  border: 1px solid var(--line);
  color: var(--spruce);
  border-radius: 999px;
  padding: 8px 14px;
}
body:not(.program-body) .card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
body:not(.program-body) .card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(20, 63, 73, 0.12);
}
.page-intro h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
  background: var(--gold);
}
.story {
  margin: 28px 7vw 0;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: white;
  border: 1px solid var(--line);
  border-radius: 32px;
  overflow: hidden;
}
.story img { width: 100%; height: 100%; min-height: 380px; object-fit: cover; display: block; }
.story div { padding: 40px 36px; }
.story h2 { color: var(--spruce); font-size: clamp(32px, 4vw, 48px); margin: 0 0 12px; }
.story p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.step {
  background: white;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
}
.step b { display: block; color: var(--gold); font-family: Palatino, Georgia, serif; margin-bottom: 6px; }
.step strong { color: var(--spruce); }
.side-photo {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 24px;
  margin-top: 18px;
  display: block;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: stretch;
  margin-top: 28px;
}
.contact-layout img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  border-radius: 28px;
}
@media (max-width: 900px) {
  .stage-split, .story, .steps, .contact-layout { grid-template-columns: 1fr; }
  .stage-side, .story img { height: 260px; min-height: 260px; }
  .story, .stage-split { margin-left: 16px; margin-right: 16px; }
}

.login-shell {
  margin: 8px 7vw 28px;
  min-height: 680px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  border-radius: 36px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(20, 63, 73, 0.12);
  background: var(--paper);
}
.login-visual { position: relative; min-height: 680px; }
.login-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.login-visual-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 40px 32px;
  color: #f7f1e6;
  background: none;
}
.program-body td { color: #f6f1e7; }
.login-visual h1 { color: #f7f1e6; font-size: clamp(40px, 4vw, 64px); margin: 0 0 10px; }
.login-visual h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  border-radius: 99px;
  background: #e2c2a4;
}
.login-visual p { max-width: 28rem; color: rgba(247, 241, 230, 0.9); }
.login-panel {
  display: grid;
  place-items: center;
  padding: 36px 28px;
  background:
    radial-gradient(280px 180px at 100% 0%, #e7f3f1, transparent 70%),
    var(--paper);
}
.login-card { width: min(420px, 100%); display: grid; gap: 14px; }
.login-card .kicker { color: var(--gold); }
.login-card h2 { margin: 0; color: var(--spruce); font-size: 40px; }
.login-card .btn { width: 100%; text-align: center; }
.login-page input:focus {
  outline: 2px solid #1f6f73;
  border-color: #1f6f73;
}
@media (max-width: 900px) {
  .login-shell { grid-template-columns: 1fr; margin-left: 16px; margin-right: 16px; min-height: 0; }
  .login-visual { min-height: 320px; }
}

@keyframes aurora {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 2%, 0) scale(1.06); }
}
@keyframes float-orb {
  0% { transform: translate3d(0, 0, 0) rotate(0deg); }
  50% { transform: translate3d(-18px, 16px, 0) rotate(8deg); }
  100% { transform: translate3d(10px, -12px, 0) rotate(-6deg); }
}
@keyframes photo-live {
  from { transform: scale(1.04); }
  to { transform: scale(1.1); }
}
@keyframes sheen {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}
@keyframes glow-mark {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 63, 73, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(20, 63, 73, 0); }
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(14px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

body:not(.program-body)::before {
  content: "";
  position: fixed;
  inset: -18%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 12%, rgba(31, 111, 115, 0.22), transparent 36%),
    radial-gradient(circle at 86% 8%, rgba(166, 120, 86, 0.2), transparent 32%),
    radial-gradient(circle at 70% 80%, rgba(31, 111, 115, 0.12), transparent 34%);
  animation: aurora 16s ease-in-out infinite alternate;
}
body:not(.program-body) .mark { animation: glow-mark 3.6s ease-in-out infinite; }
body:not(.program-body) .stage::before,
body:not(.program-body) .stage::after { animation: float-orb 12s ease-in-out infinite; }
body:not(.program-body) .stage::after { animation-duration: 16s; animation-direction: alternate; }
.photo-banner img,
.login-visual img,
.stage-side,
.story img {
  animation: photo-live 14s ease-in-out infinite alternate;
}
body:not(.program-body) .btn,
.program-body .btn {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body:not(.program-body) .btn::after,
.program-body .btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.45), transparent 70%);
  transform: translateX(-120%);
  pointer-events: none;
}
body:not(.program-body) .btn:hover,
.program-body .btn:hover { transform: translateY(-2px); }
body:not(.program-body) .btn:hover::after,
.program-body .btn:hover::after { animation: sheen 0.7s ease; }
.pills span,
.step {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pills span:hover,
.step:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(20, 63, 73, 0.1);
}

.program-body {
  background:
    radial-gradient(800px 320px at 0% 0%, rgba(31, 111, 115, 0.16), transparent 55%),
    radial-gradient(600px 280px at 100% 0%, rgba(166, 120, 86, 0.12), transparent 50%),
    #e7eef2;
}
.topbar {
  background: linear-gradient(100deg, #102f36 0%, #1a5960 48%, #247f78 100%);
  box-shadow: 0 10px 30px rgba(16, 47, 54, 0.18);
}
.tabs button {
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.tabs button:hover { transform: translateY(-2px); }
.tabs button.active { box-shadow: 0 8px 18px rgba(15, 110, 122, 0.28); }
.panel.active { animation: pop-in 0.4s ease; }
.program-body table {
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(20, 63, 73, 0.06);
}
.program-body tbody tr { transition: background 0.2s ease; }
.program-body tbody tr:hover { background: #f3fbfb; }
.program-body tr.selected { background: #e7f4f5; box-shadow: inset 3px 0 0 #0f6e7a; }
.dialog-back.open { backdrop-filter: blur(3px); }
.dialog-back.open .dialog { animation: pop-in 0.35s ease; }
.day-col, .visit { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.day-col:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(20, 63, 73, 0.08); }
.visit:hover { transform: translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  body:not(.program-body)::before,
  body:not(.program-body) .mark,
  body:not(.program-body) .stage::before,
  body:not(.program-body) .stage::after,
  .photo-banner img,
  .login-visual img,
  .stage-side,
  .story img,
  .panel.active,
  .dialog-back.open .dialog {
    animation: none;
  }
}

body:not(.program-body) {
  background: #071418;
  color: #f6f1e7;
}
body:not(.program-body) .nav {
  background: rgba(7, 20, 24, 0.78);
  border-bottom: 1px solid rgba(226, 194, 164, 0.18);
}
body:not(.program-body) .brand,
body:not(.program-body) .nav-links a { color: #f6f1e7; }
body:not(.program-body) .stage.stage-split {
  display: block;
  position: relative;
  margin: 18px 4vw 0;
  min-height: 88vh;
  padding: 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}
body:not(.program-body) .stage-side {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
}
body:not(.program-body) .stage-inner {
  position: relative;
  z-index: 2;
  min-height: 88vh;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 72px 56px;
  background: linear-gradient(90deg, rgba(7, 20, 24, 0.88) 0%, rgba(7, 20, 24, 0.45) 46%, rgba(7, 20, 24, 0.05) 100%);
}
body:not(.program-body) .stage h1 { font-size: clamp(52px, 7vw, 92px); max-width: 11ch; }
body:not(.program-body) .card,
body:not(.program-body) .step,
body:not(.program-body) .story {
  background: rgba(246, 241, 231, 0.05);
  border-color: rgba(226, 194, 164, 0.28);
  color: #f6f1e7;
}
body:not(.program-body) .card h3,
body:not(.program-body) .step strong,
body:not(.program-body) .page-intro h1,
body:not(.program-body) .story h2,
body:not(.program-body) .signature,
body:not(.program-body) .login-card h2 { color: #f6f1e7; }
body:not(.program-body) .muted,
body:not(.program-body) .page-intro .lede,
body:not(.program-body) .story p,
body:not(.program-body) footer,
body:not(.program-body) footer a,
body:not(.program-body) .footer-cookie { color: rgba(246, 241, 231, 0.74); }
body:not(.program-body) .pills span {
  background: transparent;
  color: #f6f1e7;
  border-color: rgba(226, 194, 164, 0.45);
}
body:not(.program-body) .photo-banner,
body:not(.program-body) .story,
body:not(.program-body) .login-shell {
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  border-color: rgba(226, 194, 164, 0.28);
}
body:not(.program-body) .phone { color: #e2c2a4; }
body:not(.program-body) .login-shell { background: #0e3d4a; }
body:not(.program-body) .login-visual {
  grid-column: 1 / -1;
  grid-row: 1;
}
body:not(.program-body) .login-visual img {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 78%);
  mask-image: linear-gradient(90deg, #000 0%, #000 22%, transparent 78%);
}
body:not(.program-body) .login-visual-copy {
  background: none;
  max-width: 58%;
  z-index: 1;
  text-shadow: 0 10px 28px rgba(7, 20, 24, 0.75);
}
body:not(.program-body) .login-panel {
  grid-column: 2;
  grid-row: 1;
  z-index: 2;
  background: transparent;
}
@media (max-width: 900px) {
  body:not(.program-body) .login-visual { grid-column: 1; grid-row: auto; min-height: 320px; }
  body:not(.program-body) .login-panel { grid-column: 1; grid-row: auto; background: #0e3d4a; }
  body:not(.program-body) .login-visual img {
    -webkit-mask-image: linear-gradient(#000 40%, transparent 100%);
    mask-image: linear-gradient(#000 40%, transparent 100%);
  }
  body:not(.program-body) .login-visual-copy { max-width: none; }
}
body:not(.program-body) .login-card .kicker { color: #e2c2a4; }
body:not(.program-body) label { color: #e2c2a4; }
body:not(.program-body) input,
body:not(.program-body) select,
body:not(.program-body) textarea {
  background: #071418;
  color: #f6f1e7;
  border-color: rgba(226, 194, 164, 0.35);
}

.program-body {
  background:
    radial-gradient(900px 360px at 0% -10%, rgba(31, 111, 115, 0.35), transparent 55%),
    #071418;
  color: #f6f1e7;
}
.program-body .topbar {
  background: linear-gradient(100deg, #071418 0%, #143f49 55%, #1f6f73 100%);
  border-bottom: 1px solid rgba(226, 194, 164, 0.25);
}
.program-body .tabs button {
  background: rgba(246, 241, 231, 0.06);
  color: #f6f1e7;
  border-color: rgba(226, 194, 164, 0.28);
}
.program-body .tabs button.active {
  background: linear-gradient(135deg, #143f49, #1f6f73);
  color: #f6f1e7;
  border-color: #e2c2a4;
}
.program-body .muted { color: rgba(246, 241, 231, 0.7); }
.program-body label { color: #e2c2a4; }
.program-body input,
.program-body select,
.program-body textarea {
  background: #0c1e24;
  color: #f6f1e7;
  border-color: rgba(226, 194, 164, 0.35);
}
.program-body table {
  background: #10262c;
  color: #f6f1e7;
  border: 1px solid rgba(226, 194, 164, 0.18);
}
.program-body th {
  background: #16343c;
  color: #e2c2a4;
}
.program-body td { border-bottom-color: rgba(246, 241, 231, 0.08); }
.program-body tbody tr:hover { background: #173840; }
.program-body tr.selected { background: #1c4650; box-shadow: inset 3px 0 0 #e2c2a4; }
.program-body .dialog {
  background: #10262c;
  color: #f6f1e7;
  border: 1px solid rgba(226, 194, 164, 0.28);
}
.program-body .day-col { background: #10262c; color: #f6f1e7; }
.program-body .visit { background: #16343c; }

@media (max-width: 900px) {
  body:not(.program-body) .stage-inner { padding: 36px 22px; min-height: 78vh; }
  body:not(.program-body) .stage.stage-split { min-height: 78vh; margin-left: 12px; margin-right: 12px; }
}

body:not(.program-body) .story {
  display: block;
  position: relative;
  min-height: 520px;
  overflow: hidden;
  background: #071418;
}
body:not(.program-body) .story img {
  position: absolute;
  inset: 0 auto 0 0;
  width: 72%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: 30% center;
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 58%, transparent 100%);
}
body:not(.program-body) .story div {
  position: relative;
  z-index: 1;
  margin-left: 48%;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(90deg, transparent, #071418 28%);
}
@media (max-width: 900px) {
  body:not(.program-body) .story { min-height: 0; }
  body:not(.program-body) .story img {
    position: relative;
    width: 100%;
    height: 300px;
    -webkit-mask-image: linear-gradient(#000 50%, transparent 100%);
    mask-image: linear-gradient(#000 50%, transparent 100%);
  }
  body:not(.program-body) .story div {
    margin-left: 0;
    min-height: 0;
    background: none;
  }
}

@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes spin-ring { to { --spin: 360deg; } }
@keyframes light-sweep {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(420%); }
}
@keyframes title-glow {
  0%, 100% { text-shadow: 0 0 18px rgba(226, 194, 164, 0.15); }
  50% { text-shadow: 0 0 42px rgba(226, 194, 164, 0.55); }
}
@keyframes select-pop {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(226, 194, 164, 0.65); }
  35% { transform: scale(0.92); }
  100% { transform: scale(1); box-shadow: 0 0 0 16px rgba(226, 194, 164, 0); }
}
@keyframes select-hold {
  0%, 100% { transform: scale(0.94); box-shadow: 0 0 0 0 rgba(226, 194, 164, 0.75); }
  50% { transform: scale(0.98); box-shadow: 0 0 0 12px rgba(226, 194, 164, 0); }
}
button.is-held,
a.is-held,
button.is-selected,
a.is-selected {
  overflow: visible;
  position: relative;
  z-index: 3;
}
button.is-held,
a.is-held {
  animation: select-hold 0.7s ease-in-out infinite;
}
button.is-selected,
a.is-selected {
  animation: select-pop 0.42s ease;
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 520px;
  height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(circle, rgba(226, 194, 164, 0.2), rgba(31, 111, 115, 0.08) 42%, transparent 68%);
  mix-blend-mode: screen;
}

body:not(.program-body) .stage.stage-split::before,
body:not(.program-body) .stage.stage-split::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 0;
  width: auto;
  height: auto;
}
body:not(.program-body) .stage.stage-split::before {
  inset: 0;
  z-index: 4;
  padding: 2px;
  background: conic-gradient(from var(--spin), transparent 0 62%, #e2c2a4 78%, #f6f1e7 84%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: spin-ring 9s linear infinite;
}
body:not(.program-body) .stage.stage-split::after {
  top: 0;
  bottom: 0;
  left: 0;
  width: 28%;
  z-index: 3;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  animation: light-sweep 6.5s ease-in-out infinite;
}
body:not(.program-body) .stage h1 { animation: title-glow 4.5s ease-in-out infinite; }
body:not(.program-body) .photo-banner { outline: 1px solid rgba(226, 194, 164, 0.45); outline-offset: -8px; }
.program-body .topbar { position: relative; overflow: hidden; }
.program-body .topbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 28%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e2c2a4, transparent);
  animation: light-sweep 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-glow,
  body:not(.program-body) .stage.stage-split::before,
  body:not(.program-body) .stage.stage-split::after,
  body:not(.program-body) .stage h1,
  .program-body .topbar::after,
  button.is-selected,
  a.is-selected,
  button.is-held,
  a.is-held { animation: none; }
}

.program-body #staff-body tr { cursor: pointer; }
.program-body .staff-week {
  width: min(1480px, 98vw);
  max-height: 92vh;
  background: #f4f7fb;
  color: #10262c;
  border: 1px solid #8eadd4;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.program-body .staff-week h2 {
  margin: 0;
  color: #0e4f5a;
  font-size: 22px;
}
.staff-week-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.staff-week-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.staff-week-scroll { overflow: auto; }
.program-body .staff-week .btn {
  background: #0e4f5a;
  color: #fff;
  border-color: #0e4f5a;
}
.program-body .staff-week .btn.ghost {
  background: transparent;
  color: #0e4f5a;
}
.program-body .staff-grid {
  background: #fff;
  color: #111;
  border: 2px solid #6f95cc;
  min-width: 980px;
}
.program-body .staff-grid th {
  background: #1d4e89;
  color: #fff;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
}
.program-body .staff-grid td {
  color: #000;
  text-align: center;
  font-weight: 600;
  border: 1px solid #c5d0dc;
  background: #fff;
}
.program-body .staff-grid td.hour {
  width: 72px;
  background: #fff;
  color: #111;
}
.program-body .staff-grid td.busy { background: #ff0000; color: #000; }
.program-body .staff-grid td.free { background: #00ff00; color: #000; }
.program-body .staff-grid tbody tr:hover { background: transparent; }

.option-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}
.option-grid ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.option-grid li {
  position: relative;
  padding-left: 16px;
  color: rgba(246, 241, 231, 0.86);
  line-height: 1.45;
}
.option-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e2c2a4;
}
#in-program { scroll-margin-top: 140px; }
body:not(.program-body) #in-program h2 {
  margin: 0 0 8px;
  color: #f6f1e7;
  font-size: clamp(32px, 4vw, 52px);
}
body:not(.program-body) #in-program .lede {
  max-width: 42rem;
  color: rgba(246, 241, 231, 0.78);
}
@media (max-width: 900px) {
  .option-grid { grid-template-columns: 1fr; }
}

.ctx-menu {
  position: fixed;
  z-index: 9999;
  display: none;
  min-width: 320px;
  margin: 0;
  padding: 6px 0;
  background: #2c3e50;
  border: 2px solid #3498db;
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
.ctx-menu.is-open { display: block; }
.ctx-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  color: #ffd700;
  border: 0;
  padding: 9px 18px;
  cursor: pointer;
  font: inherit;
}
.ctx-menu button:hover { background: #3498db; color: #ffd700; }
.program-body #patients-body tr,
.program-body #alerts-body tr,
.program-body #inactive-body tr { cursor: pointer; }
.program-body .dialog.sheet {
  width: min(980px, 96vw);
}
.program-body .dialog.sheet h3 {
  margin: 16px 0 8px;
  color: #e2c2a4;
}

/* Alertare pacienți activi, firme, căutare, setări */
#pacienti:not(.alert-mode) .alert-only { display: none; }
.program-body .alert-check { width: 18px; height: 18px; }
.program-body .alert-days { min-width: 120px; padding: 6px 8px; color: #ffff00; font-weight: 700; }
.banner {
  margin: 14px 22px 0;
  padding: 12px 16px;
  border-radius: 12px;
  background: #16343c;
  border: 1px solid rgba(226, 194, 164, 0.4);
  color: #f6f1e7;
}
.banner p { margin: 0 0 8px; }
.field-group { margin-top: 12px; }
.field-group summary {
  cursor: pointer;
  font-weight: 700;
  color: #e2c2a4;
  padding: 8px 0;
}
.field-group table { margin-top: 6px; }
.program-body input[type="color"] { height: 42px; padding: 4px; cursor: pointer; }
.program-body #companies-body tr,
.program-body #global-body tr,
.program-body #existing-body tr { cursor: pointer; }
.program-body .dialog:not(.staff-week) .btn.ghost {
  color: #f6f1e7;
  border-color: rgba(246, 241, 231, 0.45);
}
.dialog-x {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: -6px -6px 0 8px;
  border-radius: 50%;
  border: 1px solid rgba(226, 194, 164, 0.5);
  background: #16343c;
  color: #f6f1e7;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.dialog-x:hover { background: #8d2f2f; }
.form > .dialog-x { justify-self: end; margin-bottom: -48px; }
/* Managerul zonal și personalul nu văd butoanele de administrare. */
.role-staff .admin-only { display: none !important; }
.program-body #home-companies-body tr,
.program-body #home-results-body tr { cursor: pointer; }
#home-search { min-width: min(320px, 100%); }
/* Programul kinetoterapeutului pe 2 săptămâni: linie groasă între săptămâni. */
.program-body .staff-grid .week-split { border-left: 3px solid #143f49; }

/* Pagina „Despre noi”: imaginea și textul, aliniat pe o coloană ușor de citit. */
.about-text {
  max-width: 820px;
  margin: 36px auto 0;
  font-size: 18px;
  line-height: 1.75;
  color: rgba(247, 241, 230, 0.9);
}
.about-text h1 { color: #f7f1e6; margin: 0 0 8px; text-align: center; }
.about-text strong { color: #f7f1e6; }
.about-text p { margin: 0 0 18px; text-align: justify; hyphens: auto; }
.about-text .about-lead { text-align: center; font-size: 21px; }
.about-text .about-lead strong { color: #e2c2a4; }
.about-text .about-quote {
  text-align: center;
  border-left: 3px solid var(--gold);
  border-right: 3px solid var(--gold);
  padding: 8px 20px;
}
@media (max-width: 600px) {
  .about-text { font-size: 16px; }
  .about-text p { text-align: left; }
}

/* Politica de confidențialitate */
.policy { max-width: 980px; margin: 0 auto; }
.policy-intro { font-size: 18px; line-height: 1.7; text-align: justify; }
.policy-toc {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px 18px;
  margin: 22px 0 8px;
  padding: 18px 22px;
  border: 1px solid rgba(226, 194, 164, 0.35);
  border-radius: 14px;
}
.policy-toc a { text-decoration: none; }
.policy-toc a:hover { text-decoration: underline; }
.policy-section { margin-top: 16px; scroll-margin-top: 90px; line-height: 1.7; }
.policy-section h2 { margin-top: 0; }
.policy-section h3 { margin: 16px 0 4px; font-size: 17px; }
.policy-section ul { margin: 6px 0 10px; padding-left: 22px; }
.policy-section li { margin-bottom: 4px; }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 12px;
  font-size: 15px;
  background: transparent;
  border: 1px solid rgba(226, 194, 164, 0.25);
  border-radius: 12px;
}
.policy-table th, .policy-table td {
  text-align: left;
  padding: 10px 12px;
  vertical-align: top;
  color: #f6f1e7;
  border-bottom: 1px solid rgba(246, 241, 231, 0.1);
}
.policy-table th { background: #16343c; color: #e2c2a4; }
.policy-toc a { color: #e2c2a4; }
.policy-section a { color: #e2c2a4; }
@media (max-width: 700px) {
  .policy-table, .policy-table tbody, .policy-table tr, .policy-table td { display: block; width: 100%; }
  .policy-table thead { display: none; }
  .policy-table tr { margin-bottom: 10px; }
  .policy-intro { text-align: left; }
}
/* Lumina care urmărește mouse-ul nu lărgește pagina (fără derulare orizontală pe telefon). */
html { overflow-x: clip; }

/* Pagina Contact: sediu cu hartă, managerii zonali, formular. */
.contact-page { max-width: 1100px; margin: 0 auto; }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 18px;
  margin-top: 26px;
  align-items: start;
}
.contact-office h2, .contact-form-card h2 { margin-top: 0; }
.contact-address { font-size: 19px; line-height: 1.5; margin: 0 0 14px; }
.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(226, 194, 164, 0.3);
  aspect-ratio: 4 / 3;
}
.contact-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.contact-map-links { display: flex; gap: 18px; flex-wrap: wrap; margin: 12px 0 0; }
.contact-map-links a, .contact-consent a { color: #e2c2a4; }
.contact-people { display: grid; gap: 12px; }
.contact-person { padding: 18px 22px; }
.contact-role { margin: 0 0 6px; color: #e2c2a4; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.contact-phone { font-size: 26px; font-weight: 700; text-decoration: none; color: #f7f1e6; }
.contact-phone:hover { text-decoration: underline; }
.contact-form-card { margin-top: 18px; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.contact-consent input { width: auto; margin-top: 3px; }
@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .contact-phone { font-size: 22px; }
}
.contact-page h1 { font-size: clamp(32px, 8vw, 64px); overflow-wrap: break-word; }
.contact-name { margin: 0 0 4px; font-size: 19px; font-weight: 600; color: #f7f1e6; }

/* Pagina Servicii */
.services { max-width: 1100px; margin: 36px auto 0; }
.services h1 { text-align: center; margin: 0 0 10px; font-size: clamp(32px, 6vw, 56px); }
.services-lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 28px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(247, 241, 230, 0.88);
}
.services-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.service { margin: 0; line-height: 1.65; }
.service h2 { font-size: 21px; margin: 6px 0 10px; color: #f7f1e6; }
.service p:last-child { margin: 0; color: rgba(247, 241, 230, 0.82); }
.services-cta { text-align: center; margin: 30px 0 0; font-size: 18px; }
.services-cta a { color: #e2c2a4; font-weight: 700; }
@media (max-width: 960px) { .services-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .services-list { grid-template-columns: 1fr; } }
.services h1::after, .about-text h1::after { margin-left: auto; margin-right: auto; }

/* Pagina Acasă */
.home-section { max-width: 1180px; margin: 0 auto; }
.home-title { text-align: center; font-size: clamp(28px, 5vw, 44px); margin: 10px 0 24px; color: #f7f1e6; }
.home-section .service h3 { font-size: 19px; margin: 6px 0 8px; color: #f7f1e6; }
.home-link { color: #e2c2a4; font-weight: 700; }
.home-contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
a.contact-person { display: grid; gap: 2px; text-decoration: none; transition: transform 0.2s ease; }
a.contact-person:hover { transform: translateY(-3px); }
a.contact-person .contact-phone { font-size: 22px; }
@media (max-width: 1000px) { .home-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .home-contacts { grid-template-columns: 1fr; } }
body:not(.program-body) .stage h1 { font-size: clamp(30px, 5.6vw, 76px); max-width: 16ch; }
.contact-map-consent {
  height: 100%;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
  background: #16343c;
  color: rgba(247, 241, 230, 0.85);
  font-size: 15px;
}
.contact-map-consent p { margin: 0; max-width: 34ch; }
.contact-map-consent .btn { justify-self: center; }

/* Adresa site-ului peste pozele de prezentare */
.stage-photo, .story-photo { position: relative; min-width: 0; }
.story-photo { height: 100%; }
.photo-domain {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(16, 47, 54, 0.72);
  border: 1px solid rgba(226, 194, 164, 0.55);
  color: #f7f1e6;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.6vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  pointer-events: none;
}
.photo-banner .photo-domain { top: 24px; left: 24px; font-size: clamp(16px, 2vw, 26px); padding: 10px 20px; }
@media (max-width: 600px) {
  .photo-domain, .photo-banner .photo-domain { top: 12px; left: 12px; padding: 6px 12px; font-size: 14px; }
}
body:not(.program-body) .stage-photo { position: absolute; inset: 0; }
.stage-photo .photo-domain { left: auto; right: 18px; }
@media (max-width: 600px) { .stage-photo .photo-domain { left: auto; right: 12px; } }
@media (max-width: 900px) { body:not(.program-body) .stage-inner { padding-top: 78px; } }

/* Poze: <picture> nu schimbă așezarea; înălțimea vine din reguli, nu din atributele width/height */
picture { display: contents; }
img { height: auto; }

/* Meniu pe telefon */
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; padding: 12px 16px; gap: 0; }
  .nav-toggle {
    display: inline-grid;
    gap: 5px;
    align-content: center;
    justify-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 12px;
    border: 1px solid rgba(226, 194, 164, 0.4);
    background: rgba(246, 241, 231, 0.06);
    cursor: pointer;
  }
  .nav-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: #f6f1e7; transition: transform 0.2s ease, opacity 0.2s ease; }
  .nav.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0 6px;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav .nav-links a { padding: 13px 4px; font-size: 17px; border-bottom: 1px solid rgba(246, 241, 231, 0.08); }
  .nav .nav-links a[aria-current="page"] { border-bottom-color: var(--gold); }
  .nav .nav-links a.enter { margin-top: 10px; justify-content: center; height: 48px; border-bottom: 0; }
}

/* Rama pozei din secțiunea „Despre noi” de pe Acasă nu e coloana de text:
   pe calculator acoperă secțiunea (poza e în stânga, textul în dreapta), pe telefon stă deasupra textului. */
body:not(.program-body) .story .story-photo {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  min-height: 0;
  display: block;
  background: none;
  z-index: 0;
}
@media (max-width: 900px) {
  body:not(.program-body) .story .story-photo { position: relative; inset: auto; height: auto; }
}

/* Fără dâra de lumină peste poza mare de sus: marginile ei se vedeau ca linii verticale. */
body:not(.program-body) .stage.stage-split::after { display: none; }
/* Textul de pe pozele mari se citește pe orice fundal. */
body:not(.program-body) .photo-banner figcaption {
  background: linear-gradient(transparent, rgba(7, 20, 24, 0.55) 35%, rgba(7, 20, 24, 0.88));
  padding-top: 110px;
}
body:not(.program-body) .photo-banner figcaption .kicker { color: #e2c2a4; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6); }
.contact-form .note { margin: 0; }
.contact-form .actions { margin-top: 0; }

/* Subsolul paginilor publice */
body:not(.program-body) footer {
  margin-top: 56px;
  padding: 26px 7vw 34px;
  border-top: 1px solid rgba(226, 194, 164, 0.18);
  color: rgba(246, 241, 231, 0.7);
  font-size: 15px;
}
body:not(.program-body) footer > span:first-child::after { content: " · ingrijire-medicala-domiciliu.ro"; color: rgba(246, 241, 231, 0.5); }
footer .footer-staff { opacity: 0.6; font-size: 13px; }
footer .footer-staff:hover { opacity: 1; }
.banner .btn.ghost { color: #f6f1e7; border-color: rgba(246, 241, 231, 0.45); }

/* Documente în fișa pacientului */
.sheet-docs-head { display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
.sheet-docs-head h3 { margin: 0; }
.doc-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }

/* Fișa pacientului: rezumatul curei și istoricul */
.cure-summary { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(226, 194, 164, 0.08); color: #f6f1e7; }
.cure-summary.warn { background: rgba(198, 40, 40, 0.18); color: #ffd6d6; }
#sheet-cures tr[data-cure] { cursor: pointer; }

/* Buget */
.budget-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 16px; }
.budget-card h3 { margin: 0 0 12px; color: #e2c2a4; }
.budget-card .fields { margin-bottom: 10px; }
.budget-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin: 14px 0; }
.budget-figures div { background: rgba(246, 241, 231, 0.05); border-radius: 10px; padding: 8px 12px; }
.budget-figures dt { font-size: 12px; color: rgba(246, 241, 231, 0.65); }
.budget-figures dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.budget-verdict { font-size: 18px; margin: 8px 0 4px; }
.budget-verdict strong { font-size: 28px; color: #e2c2a4; }
.budget-card .bad, .budget-verdict.bad { color: #ff8a80; }
.budget-card details { margin-top: 8px; }
.budget-card summary { cursor: pointer; color: #e2c2a4; }
.budget-card ul { margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
@media (max-width: 600px) { .budget-grid { grid-template-columns: 1fr; } }
.program-body .budget-card {
  background: #10262c;
  border: 1px solid rgba(226, 194, 164, 0.25);
  color: #f6f1e7;
  border-radius: 18px;
  padding: 18px 20px;
}
.program-body .budget-card .muted { color: rgba(246, 241, 231, 0.7); }
.budget-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.budget-card ol.budget-list { margin: 6px 0 0; padding-left: 28px; font-size: 14px; }
.budget-card ol.budget-list li { padding: 3px 0; border-bottom: 1px solid rgba(246, 241, 231, 0.06); }
.budget-card ol.budget-list li::marker { color: #e2c2a4; font-weight: 700; }
.budget-date { display: inline-block; min-width: 86px; color: #e2c2a4; font-variant-numeric: tabular-nums; }
.login-card .remember-row { display: flex; gap: 10px; align-items: center; font-size: 15px; cursor: pointer; }
.login-card .remember-row input { width: 18px; height: 18px; margin: 0; }
.login-card .remember-hint { margin: -6px 0 0; font-size: 13px; color: rgba(246, 241, 231, 0.6); }

/* Notificări pentru personal */
.role-admin .staff-only { display: none !important; }
.notif-bell { position: relative; }
.notif-bell span {
  display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px;
  border-radius: 999px; background: #c62828; color: #fff; font-size: 12px; font-weight: 700; line-height: 20px;
}
.notif-panel {
  position: absolute; right: 16px; top: 96px; z-index: 40;
  width: min(420px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
  background: #10262c; color: #f6f1e7; border: 1px solid rgba(226, 194, 164, 0.35);
  border-radius: 16px; padding: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.notif-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.notif-panel ul { list-style: none; margin: 0; padding: 0; }
.notif-panel li { display: grid; gap: 3px; padding: 10px 8px; border-bottom: 1px solid rgba(246, 241, 231, 0.08); cursor: pointer; }
.notif-panel li.unread { background: rgba(226, 194, 164, 0.08); border-left: 3px solid #e2c2a4; }
.notif-panel li.empty { cursor: default; color: rgba(246, 241, 231, 0.6); }
.notif-panel li small { color: rgba(246, 241, 231, 0.55); }
.notif-panel .btn.ghost { color: #f6f1e7; border-color: rgba(246, 241, 231, 0.45); }
@media (max-width: 700px) {
  .notif-panel { position: fixed; top: 12px; left: 12px; right: 12px; width: auto; max-height: 80vh; }
}
/* Pe telefon, tabelele late se derulează în ele însele; pagina programului rămâne cât ecranul. */
@media (max-width: 760px) {
  .program-body .panel table,
  .program-body .dialog table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .program-body .panel, .program-body .dialog { max-width: 100%; }
}

/* Câmpurile de dată și oră: iconița de calendar/ceas vizibilă pe fundal închis, calendarul pe tema închisă. */
.program-body input[type="date"],
.program-body input[type="time"],
.program-body input[type="month"] { color-scheme: dark; }
.program-body input::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 1;
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 6px;
  cursor: pointer;
}
.program-body input::-webkit-calendar-picker-indicator:hover { background: rgba(226, 194, 164, 0.18); opacity: 1; }
