/* ============================================================
   KALENDARZ TERMINÓW (ładowany po effects.css)
   ============================================================ */
[hidden] { display: none !important; }

.kal {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(1.5rem, 4vw, 3rem);
  padding: clamp(1.2rem, 3vw, 2.2rem); border-radius: 26px;
}
.kal__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.2rem; }
.kal__month { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; margin: 0; color: var(--on-dark); }
.kal__nav { display: flex; gap: .5rem; }
.kal__nav button {
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; line-height: 1;
  background: rgba(255, 255, 255, .05); color: var(--gold-light); border: 1px solid rgba(226, 201, 139, .4);
  transition: background .3s, border-color .3s;
}
.kal__nav button:hover:not(:disabled) { background: rgba(226, 201, 139, .15); border-color: var(--gold-light); }
.kal__nav button:disabled { opacity: .3; cursor: default; }

.kal__wd, .kal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.kal__wd { margin-bottom: 6px; }
.kal__wd span { text-align: center; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); padding: .3rem 0; }

.kal__d {
  position: relative; aspect-ratio: 1; min-height: 40px; border-radius: 14px; cursor: pointer;
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--on-dark-muted);
  background: rgba(255, 255, 255, .03); border: 1px solid transparent;
  transition: background .25s, border-color .25s, color .25s, transform .25s var(--ease-apple);
}
.kal__d::after {
  content: ""; position: absolute; left: 50%; bottom: 14%; width: 5px; height: 5px; border-radius: 50%;
  transform: translateX(-50%); background: transparent;
}
.kal__d.is-free { color: var(--on-dark); background: rgba(226, 201, 139, .09); border-color: rgba(226, 201, 139, .35); }
.kal__d.is-free::after { background: var(--gold-light); }
.kal__d.is-free:hover { border-color: var(--gold-light); transform: translateY(-2px); }
.kal__d.is-full {
  color: var(--on-dark-muted);
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 6px, transparent 6px 12px);
  border-color: rgba(184, 194, 178, .2);
}
.kal__d.is-full::after { background: var(--on-dark-muted); }
.kal__d.is-off { opacity: .45; cursor: default; background: transparent; }
.kal__d.is-today { outline: 1px dashed var(--gold-light); outline-offset: -4px; }
.kal__d.is-selected { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--forest); border-color: transparent; font-weight: 500; }
.kal__d.is-selected::after { background: var(--forest); }

.kal__legend { display: flex; flex-wrap: wrap; gap: .6rem 1.4rem; margin: 1.2rem 0 0; padding: 0; list-style: none; font-size: .85rem; color: var(--on-dark-muted); }
.kal__legend li { display: flex; align-items: center; gap: .5rem; }
.kal__legend i { width: 16px; height: 16px; border-radius: 5px; display: inline-block; }
.kal__legend .lg-free { background: rgba(226, 201, 139, .25); border: 1px solid var(--gold-light); }
.kal__legend .lg-full { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .25) 0 3px, transparent 3px 6px); border: 1px solid rgba(184, 194, 178, .5); }
.kal__legend .lg-off { background: rgba(255, 255, 255, .06); }

/* panel z godzinami wybranego dnia */
.kal__day { border-left: 1px solid rgba(226, 201, 139, .22); padding-left: clamp(1.2rem, 3vw, 2.2rem); min-width: 0; }
.kal__day h3 { font-size: 1.6rem; color: var(--on-dark); margin: .3rem 0 1.2rem; }
.kal__empty { color: var(--on-dark-muted); margin: .3rem 0 0; }
.kal__slots { list-style: none; padding: 0; margin: 0; display: grid; gap: .6rem; }
.kal__slot {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .85rem 1rem; border-radius: 16px; border: 1px solid transparent;
}
.kal__slot > div { display: flex; flex-direction: column; line-height: 1.35; }
.kal__time { font-size: 1.05rem; font-weight: 400; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.kal__meta { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.kal__slot.is-free { background: rgba(226, 201, 139, .07); border-color: rgba(226, 201, 139, .3); }
.kal__slot.is-free .kal__meta { color: var(--gold-light); }
.kal__slot.is-busy { background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .035) 0 8px, transparent 8px 16px); border-color: rgba(184, 194, 178, .18); }
.kal__slot.is-busy .kal__time { color: var(--on-dark-muted); }
.kal__slot.is-busy .kal__meta { color: var(--on-dark-muted); }
.kal__slot.is-chosen { border-color: var(--gold-light); background: rgba(226, 201, 139, .16); }
.kal__slot .btn { flex: 0 0 auto; min-height: 44px; }
.kal__note { margin: 1.4rem 0 0; font-size: .9rem; color: var(--on-dark-muted); }

/* wybrany termin w formularzu kontaktowym */
.form__termin {
  display: flex; align-items: center; flex-wrap: wrap; gap: .4rem 1rem;
  padding: .9rem 1.1rem; border-radius: 14px;
  background: rgba(226, 201, 139, .12); border: 1px solid rgba(226, 201, 139, .5);
}
.form__termin span { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-light); }
.form__termin strong { font-weight: 500; color: var(--on-dark); flex: 1 1 auto; }
.form__termin button {
  font: inherit; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer;
  background: none; border: 0; color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; min-height: 44px;
}

@media (max-width: 960px) {
  .kal { grid-template-columns: 1fr; }
  .kal__day { border-left: 0; padding-left: 0; border-top: 1px solid rgba(226, 201, 139, .22); padding-top: 1.4rem; }
}
@media (max-width: 760px) {
  .kal { padding: 1rem .8rem 1.4rem; border-radius: 20px; }
  .kal__head { padding: 0 .3rem; }
  .kal__month { font-size: 1.5rem; }
  .kal__wd, .kal__grid { gap: 4px; }
  .kal__wd span { font-size: .7rem; letter-spacing: .06em; }
  .kal__d { border-radius: 10px; font-size: .95rem; }
  .kal__legend { padding: 0 .3rem; }
  .kal__day { padding-inline: .3rem; }
  .kal__slot { padding: .75rem .85rem; }
}
