/*
 * Design language mirrors zawajy.org (the parent brand): Manrope for text,
 * Cormorant Garamond for display headings, a soft sage-green palette, very
 * rounded cards/pills, and the same soft geometric background motif. Action
 * buttons (`.btn`) use a grass-green CTA color -- same pill shape, same
 * shadow as before -- and the emerald accent is kept for secondary
 * accents/active states (tabs, focus rings, links) so the two greens read
 * as one cohesive, green-ish brand.
 */

:root {
  --font-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;

  --color-bg: #f5f8f2;
  --color-bg-2: #e9f1e3;
  --color-surface-1: #ffffff;
  --color-surface-2: rgba(28, 16, 24, 0.04);
  --color-surface-3: rgba(28, 16, 24, 0.07);
  --color-border: rgba(28, 16, 24, 0.1);
  --color-border-strong: rgba(28, 16, 24, 0.2);
  --color-ink: #1c1018;
  --color-ink-muted: rgba(28, 16, 24, 0.66);
  --color-ink-soft: rgba(28, 16, 24, 0.46);

  --color-pink: #1ea34f;
  --color-pink-hover: #23b85a;
  --color-gold: #9a7b1f;
  --color-emerald: #00876b;
  --color-emerald-hover: #046f58;

  --color-danger: #b3261e;
  --color-danger-bg: #fdecea;
  --color-warning: #8a5a00;
  --color-warning-bg: #fff4e5;

  --shadow-card: 0 24px 60px -24px rgba(28, 16, 24, 0.22);
  --radius-sm: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-2xl: 40px;
  --radius-pill: 999px;

  --hero-bg: radial-gradient(80% 60% at 50% 0%, #e3f5ea 0%, #f5f8f2 62%);
  --band-bg: linear-gradient(to bottom, #e8f2e2, #f5f8f2, #e8f2e2);

  --container-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font: 16px/1.6 var(--font-sans);
  color: var(--color-ink);
  background-color: var(--color-bg);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80' width='80' height='80'><g fill='none' stroke='%231c1018' stroke-opacity='0.05' stroke-width='0.7'><path d='M40 8 L56 24 L72 24 L72 40 L56 56 L40 72 L24 56 L8 40 L8 24 L24 24 Z'/><path d='M40 16 L52 28 L52 40 L40 52 L28 52 L28 40 L40 28 Z'/></g></svg>");
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Grows to fill leftover height so a short page still pins the footer to
   the viewport bottom instead of leaving it floating under sparse content. */
#content {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

ul,
ol {
  padding-left: 1.25em;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--color-emerald);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  z-index: 200;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* -- typography ------------------------------------------------------- */

h1,
h2,
h3,
.font-display {
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0 0 0.5em;
}

h1 {
  font-size: 2.1rem;
}

h2 {
  font-size: 1.5rem;
}

h3 {
  font-size: 1.15rem;
}

p {
  margin: 0 0 1em;
}

.lede {
  color: var(--color-ink-muted);
  font-size: 17px;
  max-width: 38rem;
}

.muted {
  color: var(--color-ink-soft);
  font-size: 13px;
}

/* -- layout ------------------------------------------------------------ */

main,
.site-header__inner,
.site-footer__inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

main {
  padding-block: 2.5rem 4rem;
}

/* -- site header --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-block: 14px;
  background: rgba(245, 248, 242, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.brand__logo {
  height: 22px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--color-ink);
}

.site-header__cta {
  font-size: 13px;
  padding: 0.6rem 1.25rem;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .site-nav {
    order: 3;
    width: 100%;
    justify-content: center;
    gap: 1.25rem;
  }
}

/* -- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-pink);
  color: #fff;
  font: 600 15px/1 var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(30, 163, 79, 0.6);
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn:hover {
  background: var(--color-pink-hover);
  box-shadow: 0 12px 28px -8px rgba(30, 163, 79, 0.8);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  background: transparent;
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
  box-shadow: none;
}

.btn--ghost:hover {
  background: var(--color-surface-2);
  box-shadow: none;
  transform: none;
}

.btn--tiny {
  padding: 0.3rem 0.65rem;
  font-size: 12px;
}

.btn--disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: default;
  box-shadow: none;
  transform: none;
  pointer-events: none;
}

/* -- form controls ---------------------------------------------------- */

input[type="text"],
input[type="date"],
input[type="time"],
input:not([type]),
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border-strong);
  border-radius: 14px;
  background: var(--color-surface-1);
  font: 15px/1.4 var(--font-sans);
  color: var(--color-ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--color-emerald);
  outline-offset: 1px;
}

.label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-muted);
  margin: 1rem 0 0.4rem;
}

.error {
  color: var(--color-danger);
  background: var(--color-danger-bg);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 14px;
}

.notice {
  background: rgba(0, 135, 107, 0.1);
  color: var(--color-emerald);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 14px;
}

.hidden {
  display: none;
}

/* -- hero (landing) ----------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 1.5rem;
  margin: 0 0 3rem;
  border-radius: var(--radius-2xl);
  background: var(--hero-bg);
}

.hero__inner {
  max-width: 40rem;
  margin: 0 auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 6vw, 3.75rem);
}

.hero h1 em {
  font-style: italic;
  color: var(--color-pink);
  text-shadow: 0 0 40px rgba(30, 163, 79, 0.25);
}

.hero .lede {
  margin: 1.25rem auto 0;
}

.hero__actions {
  margin-top: 1.75rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__trust {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--color-ink-soft);
}

/* -- login modal (ZawajyFamily.Web.LoginModal) ----------------------------- */

.text-link {
  color: var(--color-emerald);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.text-link:hover {
  text-decoration: underline;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal.hidden {
  display: none;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 16, 24, 0.55);
  backdrop-filter: blur(2px);
}

.modal__panel {
  position: relative;
  width: 100%;
  max-width: 22rem;
  background: var(--color-surface-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 2rem 1.75rem;
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.modal__close:hover {
  background: var(--color-surface-2);
  color: var(--color-ink);
}

.modal__title {
  margin: 0 0 1.5rem;
}

.modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* .modal__actions comes after the generic .hidden in source order, so at
   equal specificity it would otherwise win and the RU-hidden Google/Apple
   group would render open -- same fix as .modal.hidden above. */
.modal__actions.hidden {
  display: none;
}

.btn--social {
  width: 100%;
  box-shadow: none;
}

.btn--google {
  background: var(--color-surface-1);
  color: var(--color-ink);
  border: 1px solid var(--color-border-strong);
}

.btn--google:hover {
  background: var(--color-surface-2);
  transform: none;
}

.btn--apple {
  background: var(--color-ink);
  color: #fff;
}

.btn--apple:hover {
  background: #000;
  transform: none;
}

.btn--vk {
  background: #0077ff;
  color: #fff;
}

.btn--vk:hover {
  background: #0066dd;
  transform: none;
}

.btn--yandex {
  background: #fc3f1d;
  color: #fff;
}

.btn--yandex:hover {
  background: #e0350f;
  transform: none;
}

.modal__hint {
  margin: 1rem 0 0;
  font-size: 14px;
}

.modal__error {
  margin: 1rem 0 0;
  color: var(--color-danger);
  font-size: 14px;
}

/* -- steps / features (landing) ------------------------------------------ */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0;
}

.step {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
}

.step__num {
  display: block;
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-emerald);
  font-weight: 600;
}

.step h3 {
  margin: 0.4rem 0 0.5rem;
}

.step p {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.feature {
  background: var(--color-bg-2);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-ink-muted);
}

/* Radio-driven tabs, no JS: inputs are visually hidden but stay focusable,
   and `~` sibling selectors show the matching panel/highlight the matching
   tab. Keeps the hero segment switcher working with JavaScript off, same as
   every other link on this SSR page. */
.segments {
  max-width: 30rem;
  margin: 1.75rem auto 0;
}

.segments__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.segments__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.segments__tab {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-1);
  color: var(--color-ink-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.segments__panel {
  display: none;
  margin-top: 1.1rem;
  text-align: center;
}

.segments__panel p {
  margin: 0.35rem 0 0;
}

#segment-pair:checked ~ .segments__tabs label[for="segment-pair"],
#segment-parent:checked ~ .segments__tabs label[for="segment-parent"],
#segment-solo:checked ~ .segments__tabs label[for="segment-solo"] {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #fff;
}

#segment-pair:checked ~ .segments__panel[data-for="pair"],
#segment-parent:checked ~ .segments__panel[data-for="parent"],
#segment-solo:checked ~ .segments__panel[data-for="solo"] {
  display: block;
}

/* Marks content the product team still needs to fill in with real facts --
   deliberately conspicuous so a placeholder can never read as a real claim. */
.todo {
  display: inline-block;
  margin-top: 0.4rem;
  padding: 0.15rem 0.6rem;
  border-radius: var(--radius-pill);
  border: 1px dashed var(--color-border-strong);
  color: var(--color-ink-soft);
  font-size: 11.5px;
}

.value--todo {
  border-style: dashed;
}

.leader {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  max-width: 42rem;
  margin: 2.5rem auto;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.leader__quote {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.leader__name {
  margin: 0;
  font-weight: 700;
}

.leader__title {
  margin: 0;
  color: var(--color-ink-soft);
  font-size: 13px;
}

@media (max-width: 560px) {
  .leader {
    flex-direction: column;
    text-align: center;
  }
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin: 2.5rem 0;
}

.value {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-card);
}

.value h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.value p {
  margin: 0;
  font-size: 13.5px;
  color: var(--color-ink-muted);
}

.mission {
  max-width: 42rem;
  margin: 3rem auto;
  padding-inline: 1rem;
  text-align: center;
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--color-ink);
}

.faq {
  max-width: 42rem;
  margin: 2rem auto 0;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}

.faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--color-ink);
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--color-emerald);
}

.faq__item[open] summary::after {
  content: "\2212";
}

.faq__item p {
  margin: 0.75rem 0 0;
  color: var(--color-ink-muted);
  font-size: 14.5px;
}

.cta-band {
  text-align: center;
  background: var(--band-bg);
  border-radius: var(--radius-2xl);
  padding: 3rem 1.5rem;
  margin-top: 3rem;
}

.cta-band .lede {
  margin-inline: auto;
}

/* -- catalog -------------------------------------------------------------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 2rem;
}

.chip {
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  color: var(--color-ink-muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: var(--color-surface-1);
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.chip:hover {
  border-color: var(--color-emerald);
  color: var(--color-ink);
}

.chip--on {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #fff;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 30px 70px -24px rgba(28, 16, 24, 0.28);
}

.card__link {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  align-items: flex-start;
}

.card__body {
  flex: 1;
  min-width: 0;
}

.card__name {
  margin: 0 0 0.15rem;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 600;
}

.card__title {
  margin: 0 0 0.4rem;
  color: var(--color-emerald);
  font-size: 14px;
  font-weight: 600;
}

.card__meta {
  margin: 0 0 0.3rem;
  color: var(--color-ink-soft);
  font-size: 13px;
}

.card__tags {
  margin: 0;
  color: var(--color-ink-muted);
  font-size: 13px;
}

.avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.avatar--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-bg-2);
  color: var(--color-emerald);
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
}

.avatar--lg {
  width: 120px;
  height: 120px;
}

.avatar--lg.avatar--empty {
  font-size: 2.5rem;
}

.empty {
  color: var(--color-ink-soft);
  padding: 2rem 0;
}

.pagination {
  display: flex;
  gap: 0.4rem;
  margin-top: 2rem;
}

.page {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  color: var(--color-ink-muted);
  font-size: 14px;
}

.page--on {
  background: var(--color-emerald);
  color: #fff;
}

.page:not(.page--on):hover {
  background: var(--color-surface-2);
}

/* -- doctor profile --------------------------------------------------- */

.doctor__head {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}

.doctor__head h1 {
  margin: 0;
}

.doctor__title {
  margin: 0.25rem 0 0;
  color: var(--color-emerald);
  font-weight: 600;
}

.doctor__meta {
  margin: 0.35rem 0 0;
  color: var(--color-ink-soft);
  font-size: 14px;
}

.doctor section {
  margin: 1.75rem 0;
}

.tags {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tags li {
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-2);
  font-size: 13px;
  color: var(--color-ink-muted);
}

.booking {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

.calendar-mount,
.mount {
  color: var(--color-ink-soft);
  padding: 2rem 0;
}

@media (max-width: 560px) {
  .doctor__head {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }
}

/* -- calendar ------------------------------------------------------------- */

.calendar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.calendar--empty {
  color: var(--color-ink-soft);
  padding: 1.5rem 0;
}

.calendar__tz {
  font-size: 13px;
  color: var(--color-ink-soft);
}

.calendar__days {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}

.day {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1rem;
}

.day__label {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 0.6rem;
  color: var(--color-ink);
}

.day__slots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.slot {
  padding: 0.4rem 0.7rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-1);
  font: 13px/1 var(--font-sans);
  cursor: pointer;
  color: var(--color-ink);
}

.slot:hover {
  border-color: var(--color-emerald);
  background: rgba(0, 135, 107, 0.08);
  color: var(--color-emerald);
}

.calendar__nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

/* -- booking confirm ---------------------------------------------------- */

.confirm {
  max-width: 32rem;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-card);
}

.confirm__title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.confirm__line {
  margin: 0.3rem 0;
  color: var(--color-ink-muted);
}

.confirm__error {
  color: var(--color-danger);
  background: var(--color-danger-bg);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  margin: 0.6rem 0;
  font-size: 14px;
}

.confirm__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* -- bookings lists (client + cabinet) ----------------------------------- */

.bookings,
.cabinet__list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 1.5rem;
}

.bookings--empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-ink-soft);
}

.bookings--empty .btn {
  margin-top: 1rem;
}

.booking {
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
}

.booking__when {
  font-weight: 600;
}

.booking__who {
  color: var(--color-ink-muted);
}

.booking__note {
  flex-basis: 100%;
  font-size: 13px;
  color: var(--color-ink-soft);
  font-style: italic;
}

.booking__actions {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

.cabinet__status {
  color: var(--color-ink-muted);
  margin-bottom: 1rem;
}

.cabinet__warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  padding: 0.7rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  font-size: 14px;
}

.cabinet__empty {
  color: var(--color-ink-soft);
  padding: 2rem 0;
}

/* -- cabinet tabs --------------------------------------------------------- */

.tabs {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid var(--color-border);
}

.tab {
  padding: 0.7rem 0;
  margin-right: 1.5rem;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-ink-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.tab:hover {
  color: var(--color-ink);
}

.tab--on {
  color: var(--color-ink);
  border-bottom-color: var(--color-emerald);
}

.gate {
  padding: 3rem 1rem;
  text-align: center;
  color: var(--color-ink-muted);
}

/* -- doctor application (cabinet) ------------------------------------------ */

.doctor-apply-intro {
  max-width: 28rem;
  margin: 2rem auto;
  text-align: center;
}

.doctor-apply-intro .label {
  margin: 0 0 1.25rem;
  font: 15px/1.5 var(--font-sans);
  font-weight: 400;
  color: var(--color-ink);
}

.doctor-apply {
  max-width: 28rem;
  margin: 0 auto;
}

.doctor-apply .btn {
  margin-top: 1.5rem;
}

/* -- schedule editor ------------------------------------------------------ */

.settings {
  display: grid;
  gap: 0.25rem;
  max-width: 28rem;
  margin-bottom: 2rem;
}

.field {
  display: flex;
  flex-direction: column;
}

.week {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.week__day {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.week__name {
  width: 9rem;
  flex-shrink: 0;
  font-weight: 600;
  font-size: 14px;
}

.week__shifts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  flex: 1;
}

.shift {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-pill);
  background: var(--color-bg-2);
  font-size: 13px;
}

.add-shift,
.timeoff__add {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: flex-end;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  margin-bottom: 1.5rem;
}

.add-shift .label,
.timeoff__add .label {
  width: 100%;
  margin: 0 0 0.2rem;
}

.add-shift select,
.add-shift input,
.timeoff__add select,
.timeoff__add input {
  width: auto;
  min-width: 8rem;
  flex: 1 1 8rem;
}

.tz-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  background: var(--color-bg-2);
  font-size: 15px;
}

.muted-link {
  font-size: 13px;
  color: var(--color-emerald);
  text-decoration: none;
}

.muted-link:hover {
  text-decoration: underline;
}

/* -- city picker (doctor onboarding) --------------------------------------- */

.city-picker {
  max-width: 28rem;
}

.city-picker__results {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.city-picker__row {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.7rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface-1);
  color: var(--color-ink);
  font: 15px/1.4 var(--font-sans);
  cursor: pointer;
}

.city-picker__row:hover {
  border-color: var(--color-emerald);
  background: rgba(0, 135, 107, 0.08);
}

.city-picker__empty {
  color: var(--color-ink-soft);
  padding: 1rem 0;
  font-size: 14px;
}

/* -- time off ------------------------------------------------------------- */

.timeoff__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.timeoff__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1rem;
  background: var(--color-surface-1);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.timeoff__empty {
  color: var(--color-ink-soft);
  padding: 1.5rem 0;
}

.conflicts {
  background: var(--color-warning-bg);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  margin-bottom: 1.5rem;
}

.conflict {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.4rem 0;
  font-size: 14px;
}

/* -- consultation room ---------------------------------------------------- */

.room {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 60rem;
  margin-inline: auto;
}

.room--blocked {
  text-align: center;
  padding: 4rem 1rem;
  gap: 1.5rem;
  align-items: center;
}

.room__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.room__status {
  font-size: 13px;
  color: var(--color-ink-soft);
}

.room__video {
  position: relative;
  background: #0a0612;
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 9;
}

.video--remote {
  width: 100%;
  height: 100%;
}

.video--remote video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video--local {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 22%;
  min-width: 110px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.video--local video {
  width: 100%;
  display: block;
}

.room__controls {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -- site footer ---------------------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--color-border);
  margin-top: 4rem;
  padding-block: 2rem;
  color: var(--color-ink-soft);
  font-size: 13px;
}

.site-footer__inner {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: center;
}

.site-footer a {
  color: var(--color-ink-muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--color-ink);
}

/* -- diagnostic spike page (never routed in production) ------------------- */

.spike > div {
  padding: 0.15rem 0;
  color: var(--color-ink-muted);
}
