/* Practice demo: "modern clinic with a Chinese-medicine soul".
   Deep jade-ink hero, white editorial sections, gold details, cinnabar only for booking.
   Fonts: Playfair Display (headings) + Manrope (text); both cover Czech and Cyrillic.
   NOTE: loaded from Google Fonts for the demo; self-host before any real launch (GDPR). */
:root {
  --ink: #10201b; --ink-2: #0b2a21;
  --jade: #0f8a5f; --jade-deep: #0a5a3f; --jade-soft: #eaf5ef;
  --gold: #c5a24a; --gold-soft: #f6efdc;
  --cinnabar: #c8321f; --cinnabar-dark: #a82716;
  --paper: #ffffff; --paper-2: #f8f7f3;
  --text: #1c2622; --muted: #5f6a65; --line: #e7e4dd;
  --ok: #1f7a4d; --err: #b3261e;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Manrope", -apple-system, "Segoe UI", sans-serif;
  --radius: 18px;
  --btn-radius: 6px;               /* Jean-Luc 2026-11-19: pill buttons looked cheap */
  --shadow: 0 1px 2px rgba(16, 32, 27, .05), 0 12px 32px rgba(16, 32, 27, .08);
  font-size: 17px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font-family: var(--sans); line-height: 1.6; }
a { color: var(--jade); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.1; color: var(--ink); }
.eyebrow { font-family: var(--sans); font-size: .74rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }

/* demo bar */
.demo-bar { background: #111; color: #ddd; font-size: .75rem; padding: 6px 0; }
.demo-bar .wrap { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.demo-bar a { color: #f3d48c; text-decoration: none; }
.demo-bar .tag { background: var(--cinnabar); color: #fff; padding: 1px 9px; border-radius: 99px; font-weight: 700; }

/* header */
header.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 16px; height: 74px; }
header.top .btn.cta { white-space: nowrap; flex: none; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand b { display: block; font-family: var(--serif); font-size: 1.25rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.brand small { display: block; font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 5px; font-weight: 700; }
.nav { display: flex; gap: 16px; }
.nav a { color: var(--text); text-decoration: none; font-size: .88rem; font-weight: 600; white-space: nowrap; }
.nav a:hover { color: var(--jade); }
.lang { position: relative; }
.lang summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: .85rem; font-weight: 700; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--btn-radius); background: #fff; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); margin-left: 3px; }
.lang img { width: 22px; height: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; min-width: 190px; z-index: 30; }
.lang-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .9rem; }
.lang-menu a:hover, .lang-menu a.on { background: var(--jade-soft); color: var(--jade-deep); font-weight: 700; }

.hdr-phone { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: .92rem; white-space: nowrap; }
.hdr-phone svg { width: 17px; height: 17px; color: var(--jade); }
.hdr-phone:hover { color: var(--jade); }
.hero-contact { display: flex; gap: 22px; flex-wrap: wrap; margin: 22px 0 0; font-size: 1rem; }
.hero-contact a { color: #e9f1ed; text-decoration: none; font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.hero-contact a:hover { color: var(--gold); border-color: var(--gold); }
/* mid-size screens: phone as a round icon so the menu stays on one line (Jean-Luc 2026-11-22) */
@media (max-width: 1100px) { .nav { display: none; } }
@media (max-width: 1240px) { .hdr-phone span { display: none; } .hdr-phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; flex: none; } }
@media (max-width: 760px) { .hdr-phone span { display: none; } .hdr-phone { width: 40px; height: 40px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; } }
/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--sans); font-size: .95rem; font-weight: 700; padding: 13px 24px; min-height: 48px; border-radius: var(--btn-radius); border: 1.5px solid transparent; background: var(--jade); color: #fff; text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s; }
.btn:hover { background: var(--jade-deep); transform: translateY(-1px); }
.btn.cta { background: var(--cinnabar); box-shadow: 0 8px 22px rgba(200, 50, 31, .28); }
.btn.cta:hover { background: var(--cinnabar-dark); }
.btn.light { background: var(--jade-soft); color: var(--jade-deep); }
.btn.light:hover { background: #dbeee4; }
.btn.ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn.gold { background: var(--gold); color: var(--ink); }
.btn.gold:hover { background: #d4b25c; }
.btn.outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--jade); color: var(--jade); }
.btn.small { padding: 7px 14px; min-height: 36px; font-size: .82rem; }
.btn.big { font-size: 1.05rem; padding: 17px 32px; }
.btn.danger { background: var(--err); }
.btn:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; transform: none; }
.arrow::after { content: " →"; }

/* hero */
.hero-band { position: relative; overflow: hidden; color: #eef4f1;
  background: radial-gradient(900px 500px at 78% 30%, rgba(15, 138, 95, .45), transparent 60%), radial-gradient(600px 400px at 10% 110%, rgba(197, 162, 74, .18), transparent 60%), linear-gradient(160deg, #0d3328 0%, var(--ink-2) 55%, #08201a 100%); }
.hero-band::before { content: "气"; position: absolute; right: -2%; bottom: -22%; font-size: 520px; line-height: 1; color: rgba(255, 255, 255, .035); font-family: "Songti SC", "STSong", "Noto Serif SC", serif; pointer-events: none; }
.hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; padding: 80px 0 150px; position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 4.8vw, 4rem); margin: 0 0 22px; white-space: pre-line; }
.hero .lead { font-size: 1.12rem; color: #c9d8d1; max-width: 540px; margin: 0 0 32px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .facts { display: flex; gap: 40px; margin-top: 46px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); flex-wrap: wrap; }
.hero .facts div { display: flex; flex-direction: column; }
.hero .facts b { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); line-height: 1; font-weight: 600; }
.hero .facts span { font-size: .82rem; color: #a9bdb4; margin-top: 6px; }
.enso { width: 100%; max-width: 440px; justify-self: center; }
.enso .stroke { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s cubic-bezier(.6, .1, .2, 1) .2s forwards; }
.enso .stroke2 { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.8s cubic-bezier(.6, .1, .2, 1) .5s forwards; }
.enso .pt { opacity: 0; animation: fadein .6s ease forwards; }
.enso .spin { transform-origin: 220px 220px; animation: spin 120s linear infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
.reveal { opacity: 0; transform: translateY(14px); animation: rise .8s ease forwards; }
.d1 { animation-delay: .1s; } .d2 { animation-delay: .25s; } .d3 { animation-delay: .4s; } .d4 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* cards overlapping the hero */
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -96px; position: relative; z-index: 2; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.quick .card { display: flex; flex-direction: column; }
.quick .card h3 { font-size: 1.4rem; margin: 0 0 4px; }
.quick .place { color: var(--muted); font-size: .88rem; margin: 0 0 14px; }
.quick .card .row { margin-top: auto; padding-top: 18px; }
.pin { display: inline-flex; width: 38px; height: 38px; border-radius: 50%; align-items: center; justify-content: center; background: var(--jade-soft); color: var(--jade); margin-bottom: 14px; }
.pin svg { width: 18px; height: 18px; }
.pin.gold { background: var(--gold-soft); color: #9a7a22; }
.pin.red { background: #fbe9e6; color: var(--cinnabar); }
.hours { list-style: none; padding: 0; margin: 0; }
.hours li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.hours li:last-child { border-bottom: 0; }
.hours li b { font-weight: 700; display: inline-block; }
.hours li b::first-letter { text-transform: uppercase; }
.big-phone { font-family: var(--serif); font-size: 2rem; font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.1; }
.note { color: var(--muted); font-size: .85rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* assistant card in the hero area */
.assist { background: linear-gradient(160deg, #10392d, var(--ink-2)); color: #dfeae5; border: 0; }
.assist h3 { color: #fff; }
.assist .note { color: #a9bdb4; }
.orb { width: 54px; height: 54px; border-radius: 50%; margin-bottom: 14px; background: radial-gradient(circle at 35% 30%, #fff6, transparent 40%), conic-gradient(from 0deg, var(--jade), var(--gold), var(--jade)); box-shadow: 0 0 0 6px rgba(197, 162, 74, .15); }

/* sections */
section.block { padding: 96px 0 10px; }
.block-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 40px; flex-wrap: wrap; }
.block-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin: 0; max-width: 640px; }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease, border-color .2s; overflow: hidden; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--jade), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .3s ease; }
.svc:hover::after { transform: scaleX(1); }
.svc .n { font-family: var(--serif); font-size: 1.15rem; color: var(--gold); font-weight: 700; }
.svc h3 { font-size: 1.5rem; margin: 0; }
.svc p { margin: 0; color: var(--muted); flex: 1; }
.svc .foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-weight: 700; color: var(--jade); font-size: .9rem; }
.mins { display: inline-block; background: var(--gold-soft); color: #7a5f17; border-radius: 99px; padding: 2px 11px; font-size: .78rem; font-weight: 700; width: max-content; }
.svc.feature { background: linear-gradient(160deg, #0d3328, var(--ink-2)); color: #e7efeb; border: 0; }
.svc.ask { background: var(--paper-2); border-style: dashed; }
.svc.ask:hover { transform: none; box-shadow: none; }
.svc.ask::after { display: none; }
.svc.feature h3 { color: #fff; } .svc.feature p { color: #b9cbc3; } .svc.feature .foot { color: var(--gold); }
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.about .lead { font-size: 1.12rem; line-height: 1.75; color: var(--text); margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 26px 26px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); }
.timeline .y { display: block; font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--gold); }
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.place-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; }
.place-card .art { height: 150px; position: relative; background: radial-gradient(circle at 20% 30%, rgba(197, 162, 74, .35), transparent 40%), linear-gradient(135deg, var(--jade-deep), var(--ink-2)); }
.place-card.alt .art { background: radial-gradient(circle at 80% 30%, rgba(15, 138, 95, .5), transparent 45%), linear-gradient(135deg, #3b3114, var(--ink-2)); }
.place-card .art span { position: absolute; left: 26px; bottom: 16px; font-family: var(--serif); font-size: 1.8rem; color: #fff; font-weight: 600; }
.place-card .body { padding: 22px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.place-card .body .row { margin-top: auto; padding-top: 18px; }
.cta-band { margin: 96px 0 0; border-radius: 28px; padding: 56px; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; background: radial-gradient(600px 300px at 90% 0%, rgba(197, 162, 74, .3), transparent 60%), linear-gradient(135deg, #0d3328, var(--ink-2)); }
.cta-band h2 { color: #fff; font-size: clamp(2rem, 3.4vw, 2.8rem); margin: 0 0 8px; }
.cta-band p { margin: 0; color: #b9cbc3; }
.cta-band .or { color: #b9cbc3; font-size: .9rem; }
.cta-band .or a { color: #fff; font-weight: 700; }
footer { margin-top: 96px; background: #0a1c17; color: #9fb2aa; padding: 46px 0 56px; font-size: .88rem; }
footer b { color: #fff; font-family: var(--serif); font-size: 1.3rem; }
footer a { color: #d9e6e0; }

/* voice assistant panel */
.va { position: fixed; inset: 0; z-index: 100; display: none; align-items: flex-end; justify-content: center; background: rgba(8, 28, 22, .55); backdrop-filter: blur(4px); }
.va.open { display: flex; }
.va-box { width: min(560px, 100%); background: #fff; border-radius: 26px 26px 0 0; padding: 30px 28px 34px; box-shadow: 0 -10px 40px rgba(0, 0, 0, .2); animation: up .3s ease; max-height: 88vh; display: flex; flex-direction: column; }
@media (min-width: 700px) { .va { align-items: center; } .va-box { border-radius: 26px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.va-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.va-head h3 { margin: 0; font-size: 1.7rem; }
.va-close { background: var(--paper-2); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 1.2rem; cursor: pointer; }
.va-orb { width: 140px; height: 140px; margin: 26px auto 14px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffffff70, transparent 40%), conic-gradient(from 0deg, var(--jade), var(--gold), var(--jade-deep), var(--jade)); box-shadow: 0 0 0 10px rgba(15, 138, 95, .08), 0 20px 40px rgba(15, 138, 95, .25); transition: transform .3s; }
.va[data-mode="listening"] .va-orb { animation: breathe 2.4s ease-in-out infinite; }
.va[data-mode="speaking"] .va-orb { animation: talk .5s ease-in-out infinite alternate, spin 6s linear infinite; }
.va[data-mode="connecting"] .va-orb { animation: spin 1.4s linear infinite; opacity: .7; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 0 18px rgba(15, 138, 95, .06), 0 20px 40px rgba(15, 138, 95, .25); } }
@keyframes talk { to { transform: scale(1.1); } }
.va-status { text-align: center; font-weight: 800; color: var(--jade-deep); min-height: 1.5em; }
.va-log { margin: 16px 0; padding: 0; list-style: none; overflow-y: auto; flex: 1; min-height: 40px; max-height: 32vh; display: flex; flex-direction: column; gap: 8px; }
.va-log li { padding: 9px 13px; border-radius: 14px; font-size: .92rem; max-width: 86%; }
.va-log li.ai { background: var(--jade-soft); align-self: flex-start; }
.va-log li.me { background: var(--gold-soft); align-self: flex-end; }
.va-msg { text-align: center; color: var(--err); font-size: .9rem; }
.va-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.va-chat { display: none; gap: 8px; margin: 0 0 14px; }
.va[data-kind="chat"] .va-chat { display: flex; }
.va-chat input { flex: 1; }
.va[data-kind="chat"] .va-orb { width: 64px; height: 64px; margin: 14px auto 8px; }
.va[data-kind="chat"] .va-log { max-height: 46vh; min-height: 160px; }
.va-log li.typing { color: var(--muted); letter-spacing: 3px; animation: blink 1s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .35; } }
.assist .btn.ghost { color: #fff; }

/* booking onboarding */
.wiz { max-width: 820px; margin: 34px auto 60px; }
.wiz-top { display: flex; align-items: center; gap: 14px; }
.wiz-progress { flex: 1; height: 6px; background: var(--paper-2); border-radius: 99px; overflow: hidden; }
.wiz-progress > div { height: 100%; width: 0; background: linear-gradient(90deg, var(--jade), var(--gold)); border-radius: 99px; transition: width .35s ease; }
.wiz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; min-height: 10px; }
.wiz-chips .chip { background: var(--jade-soft); color: var(--jade-deep); border-radius: 99px; padding: 4px 13px; font-size: .82rem; font-weight: 700; }
.wiz-step { display: none; }
.wiz-step.current { display: block; animation: rise .35s ease; }
.wiz-step h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); margin: 22px 0 26px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.opt { display: block; cursor: pointer; margin: 0; font-weight: 400; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .card { display: block; height: 100%; box-shadow: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.opt:hover .card { border-color: var(--jade); box-shadow: var(--shadow); transform: translateY(-2px); }
.opt .card b { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }
.opt .card .place { color: var(--muted); font-size: .9rem; display: block; margin-bottom: 10px; }
.opt input:checked + .card { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15, 138, 95, .2); }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.days > button, .days > a { font: inherit; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; border-radius: 16px; border: 1px solid var(--line); background: #fff; color: var(--text); text-decoration: none; transition: all .15s; }
.days > button:hover, .days > a:hover { border-color: var(--jade); box-shadow: var(--shadow); transform: translateY(-2px); }
.days .dname { font-size: .95rem; font-weight: 700; color: var(--text); }
.days .dname::first-letter { text-transform: uppercase; }
.days .dname { display: block; }
.days .dmonth { font-size: .95rem; font-weight: 600; color: var(--text); margin-bottom: 4px; }
.days .dnum { font-family: var(--serif); font-size: 2rem; font-weight: 700; line-height: 1.1; color: var(--ink); }
.days .dinfo { font-size: .78rem; color: var(--ok); font-weight: 700; }
.days .sel { background: var(--jade); border-color: var(--jade); }
.days .sel .dname, .days .sel .dnum, .days .sel .dmonth, .days .sel .dinfo { color: #fff; }
.days > span.closed { display: none; }
.pager { display: flex; justify-content: space-between; margin: 0 0 14px; }
.times { display: flex; flex-wrap: wrap; gap: 12px; }
.times .btn { background: #fff; color: var(--ink); border: 1px solid var(--line); min-width: 120px; min-height: 60px; font-size: 1.3rem; font-family: var(--serif); font-weight: 700; }
.times .btn:hover, .times .btn.sel { border-color: var(--jade); background: var(--jade); color: #fff; }
.summary { background: var(--paper-2); border-radius: 14px; padding: 14px 18px; border-left: 4px solid var(--gold); }
.stack-fields { display: grid; gap: 16px; max-width: 620px; }
form.stack { display: grid; gap: 14px; max-width: 560px; align-content: start; }
label { font-weight: 700; display: block; margin-bottom: 6px; font-size: .9rem; }
input[type=text], input[type=password], input[type=tel], input[type=url], input[type=email], input[type=datetime-local], input[type=date], select, textarea { width: 100%; font: inherit; padding: 13px 15px; border: 1px solid #d8d4cb; border-radius: 12px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { border-color: var(--jade); box-shadow: 0 0 0 3px rgba(15, 138, 95, .15); outline: none; }
textarea { min-height: 96px; }
.hint { font-weight: 400; color: var(--muted); font-size: .84rem; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--jade); }
.flash { padding: 12px 16px; border-radius: 12px; margin: 16px 0; }
.flash.error { background: #fbe9e7; color: var(--err); }
.flash.ok { background: #e6f4ea; color: var(--ok); }
.done-box { text-align: center; padding: 34px 22px; }
.done-box .tick { width: 64px; height: 64px; margin: 0 auto 8px; border-radius: 50%; background: var(--jade); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 2rem; }

/* demo login */
.gate { max-width: 440px; margin: 9vh auto; }
.gate .card { padding: 34px; }
.gate input { font-size: 1.3rem; letter-spacing: 2px; text-align: center; }
body.gate-page { background: radial-gradient(800px 500px at 80% 0%, rgba(15, 138, 95, .3), transparent 60%), linear-gradient(160deg, #0d3328, #08201a); min-height: 100vh; }

/* back office */
body.admin { background: var(--paper-2); font-size: 15px; }
.admin header.top { background: var(--ink-2); border-bottom: 0; }
.admin header.top .wrap { height: 64px; }
.admin .brand b, .admin .brand small { color: #fff; }
.admin nav.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.admin nav.tabs a { color: #cfdcd6; text-decoration: none; padding: 7px 12px; border-radius: 10px; font-size: .86rem; font-weight: 600; }
.admin nav.tabs a.on, .admin nav.tabs a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.admin h1 { font-family: var(--sans); font-weight: 800; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 18px 0; }
.toolbar .grow { flex: 1; }
.week { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 8px; overflow-x: auto; padding-bottom: 8px; }
.wday { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; min-height: 170px; }
.wday.today { border-color: var(--gold); box-shadow: inset 0 3px 0 var(--gold); }
.wday h4 { margin: 0 0 6px; font-size: .8rem; color: var(--muted); font-family: var(--sans); }
.appt { display: block; text-decoration: none; color: var(--text); border-left: 4px solid var(--jade); background: var(--jade-soft); border-radius: 6px; padding: 4px 6px; margin-bottom: 5px; font-size: .76rem; line-height: 1.3; }
.appt.loc-trnova { border-left-color: var(--gold); background: var(--gold-soft); }
.appt.st-cancelled { opacity: .45; text-decoration: line-through; }
.appt.st-noshow { border-left-color: var(--err); }
.blk { font-size: .74rem; background: repeating-linear-gradient(45deg, #eee, #eee 6px, #f7f7f7 6px, #f7f7f7 12px); border-radius: 6px; padding: 4px 6px; margin-bottom: 5px; color: var(--muted); }
.legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); flex-wrap: wrap; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; vertical-align: -1px; margin-right: 4px; }
table.list { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; font-size: .88rem; }
table.list th, table.list td { text-align: left; padding: 9px 11px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.list th { background: var(--jade-soft); font-weight: 700; }
.pill { display: inline-block; padding: 1px 9px; border-radius: 99px; font-size: .74rem; background: #eee; font-family: var(--sans); }
.pill.booked { background: #e6f4ea; color: var(--ok); } .pill.cancelled { background: #eee; color: #777; }
.pill.noshow { background: #fbe9e7; color: var(--err); } .pill.done { background: #e3ecf8; color: #1f4e8c; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.admin .card { box-shadow: none; padding: 20px; }

/* responsive */
@media (max-width: 960px) {
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding: 50px 0 130px; }
  .enso { max-width: 240px; order: -1; }
  .quick, .services, .places, .about { grid-template-columns: 1fr; }
  .about { gap: 30px; }
  .cta-band { padding: 36px 26px; }
}
@media (max-width: 560px) {
  header.top .wrap { gap: 10px; height: 66px; }
  .brand small { display: none; }
  .brand b { font-size: 1.1rem; }
  header.top .btn.cta { padding: 9px 14px; min-height: 40px; font-size: .82rem; }
  .hero .facts { gap: 22px; }
  .days { grid-template-columns: repeat(2, 1fr); }   /* full names need the width (2026-11-24) */
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .enso .stroke, .enso .stroke2 { stroke-dashoffset: 0; } .enso .pt, .reveal { opacity: 1; transform: none; } }

/* ---------- phone fixes (2026-11-19) ---------- */
html, body { overflow-x: hidden; }
.quick > *, .services > *, .places > *, .about > *, .hero > *, .grid2 > *, .opts > * { min-width: 0; }
.hero-contact a, .quick .card a, footer a { overflow-wrap: anywhere; }
.hours li { gap: 12px; }
@media (max-width: 560px) {
  header.top .btn { width: auto; }
  header.top .wrap { gap: 8px; height: 62px; }
  .brand { gap: 8px; }
  .brand svg { width: 30px; height: 30px; }
  .brand b { font-size: 1.05rem; }
  .lang summary { padding: 6px 8px; gap: 4px; font-size: 0; }
  .lang summary::after { margin-left: 0; }
  header.top .btn.cta { white-space: nowrap; padding: 8px 12px; min-height: 38px; font-size: .8rem; box-shadow: none; }
  .hdr-phone { width: 38px; height: 38px; }
  .demo-bar .wrap { gap: 10px; }
  .hero { padding: 36px 0 120px; }
  .hero .lead { font-size: 1rem; }
  .quick .card, .svc, .place-card .body { padding: 20px; }
  section.block { padding-top: 64px; }
  .cta-band { margin-top: 64px; }
  .va-box { padding: 22px 18px 26px; }
}
@media (max-width: 760px) {
  .admin header.top .wrap { height: auto; flex-wrap: wrap; padding: 10px 16px; gap: 6px; }
  .admin .brand b { font-size: 1rem; }
  .admin nav.tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .admin nav.tabs a { white-space: nowrap; flex: none; }
  .toolbar b { width: 100%; }
}

/* File picker in the page language (book.html): the real input is hidden, its label is the button. 2026-11-19 */
.filepick { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filepick input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.filepick label.btn { margin: 0; cursor: pointer; }
.filepick input[type=file]:focus-visible + label { outline: 2px solid var(--jade); outline-offset: 2px; }
.filepick-names { color: var(--muted); font-size: .92rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* Error pages (error.html) */
.errpage { padding: 70px 0 90px; max-width: 640px; }
.errpage h1 { margin-bottom: 10px; }

/* Notice bar under the header: time off announced from the back office (base.html). 2026-11-22 */
.notice-bar { background: color-mix(in srgb, var(--jade) 9%, #fff); border-bottom: 1px solid color-mix(in srgb, var(--jade) 22%, #fff); color: var(--jade-deep); font-size: .92rem; }
.notice-bar .wrap { display: grid; gap: 4px; padding-top: 10px; padding-bottom: 10px; }
.notice-bar p { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; text-align: center; line-height: 1.45; }
.notice-bar .ni { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.notice-bar .sub { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
.notice-bar .dot { opacity: .5; margin-right: 2px; }
.notice-bar a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.notice-bar a svg { width: 14px; height: 14px; }
.notice-bar .note-txt { opacity: .8; }
@media (max-width: 760px) {
  .notice-bar { font-size: .88rem; }
  .notice-bar p { justify-content: flex-start; text-align: left; }
  .notice-bar p > span:not(.sub) { flex: 1 1 0; min-width: 0; }
  .notice-bar .sub .dot { display: none; }
  .notice-bar .sub { flex-basis: 100%; padding-left: 26px; }
}

/* Back office: time-off form, notice fields shown only when the box is ticked; "Web" tab sections */
fieldset.notice-fields { border: 1px solid var(--line); border-radius: 10px; padding: 14px; margin: 0; display: grid; gap: 12px; background: #fafbfc; }
form.stack:has(.notice-toggle input:not(:checked)) .notice-fields { display: none; }
.grid2.tight { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.web-section { margin: 22px 0 30px; }
.web-section h2 { font-size: 1.1rem; margin: 0 0 6px; }
.np-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 12px; }
.np-opt { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-weight: 600; }
.np-opt input { width: 18px; height: 18px; accent-color: var(--jade); margin: 0; }
.np-opt:has(input:checked) { border-color: var(--jade); box-shadow: 0 0 0 3px color-mix(in srgb, var(--jade) 18%, transparent); }
.np-note { margin-top: 14px; }

/* "Before you book" tiles on the home (_minfo.html): new patients, next free time, cancel from the SMS. 2026-11-22 */
.minfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin: 46px 0 6px; }
.minfo-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px; }
.minfo-item .mi { width: 30px; height: 30px; flex: none; color: var(--jade); }
.minfo-item h3 { font-size: 1.02rem; margin: 2px 0 6px; }
.minfo-item p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.minfo-item.yes .mi { color: #1f8a5b; }
.minfo-item.no .mi { color: #b26b00; }
.minfo-big { display: inline-block; font-size: 1.15rem; font-weight: 700; color: var(--jade); text-decoration: none; margin: 0 0 4px; }
.minfo-big:hover { text-decoration: underline; text-underline-offset: 3px; }
.minfo-link { display: inline-block; margin-top: 8px; font-weight: 600; font-size: .9rem; color: var(--jade); text-decoration: none; }
.minfo-link:hover { text-decoration: underline; }
.minfo-item .mi { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 760px) { .minfo { margin-top: 28px; gap: 12px; } .minfo-item { padding: 18px; } }

/* "My appointments" (my.html): phone number + one-time code. 2026-11-23 */
.my { max-width: 640px; margin: 28px auto 56px; }
.my h1 { margin: 0 0 10px; }
.my .lead { margin: 0 0 20px; color: var(--muted); }
.my-demo { text-align: center; padding: 14px; margin: 0; }
.my-demo b { display: block; font-size: 2rem; letter-spacing: 4px; }
.my-item { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.my-item > div { display: grid; gap: 4px; }
.my-item .btn { flex: none; white-space: nowrap; }
.my-when { font-size: 1.1rem; }
.my form.stack { max-width: none; }
.my-foot { display: flex; flex-wrap: wrap; align-items: stretch; gap: 10px; margin-top: 22px; }
.my-foot form { display: flex; }
.my-foot .btn { min-height: 48px; padding-top: 0; padding-bottom: 0; }
@media (max-width: 600px) { .my-foot { display: grid; grid-template-columns: 1fr 1fr; } .my-foot .btn { width: 100%; } }
.my-hero { display: none; margin: 14px 0 0; font-size: .95rem; }
@media (max-width: 1100px) { .my-hero { display: block; } }   /* the menu is hidden there */
.hero-band .my-hero, .hero-band .my-hero a { color: #fff; }
.my-hint { text-align: center; margin-top: 26px; }
@media (max-width: 600px) { .my-item { flex-direction: column; align-items: stretch; } .my-item .btn { text-align: center; } }

/* Phone header: the booking button is never cut (Jean-Luc 2026-11-24). Short label, the practice name may take two
   lines, the logo goes first, then (very narrow phones) the call icon: the number is also under the hero buttons. */
.lbl-short { display: none; }
@media (max-width: 760px) {
  header.top .lbl-long { display: none; }
  header.top .lbl-short { display: inline; }
  header.top .brand { min-width: 0; }
  header.top .brand b { white-space: normal; line-height: 1.1; }
  header.top .wrap > :not(.brand) { flex: none; }
}
@media (max-width: 430px) {
  header.top .wrap { padding-left: 14px; padding-right: 14px; gap: 7px; }
  header.top .btn.cta { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 400px) { header.top .brand svg { display: none; } }
@media (max-width: 350px) { header.top .hdr-phone { display: none; } }
/* hours inside a booking card: same size as elsewhere (2026-11-24) */
.opt .card .hours li { align-items: baseline; }
.opt .card .hours li b { font-family: var(--sans); font-size: 1em; font-weight: 700; display: inline-block; margin: 0; }

/* Articles (articles.py, 2026-11-24) */
.art-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.art-card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.art-card h3 { margin: 6px 0 8px; font-size: 1.35rem; }
.art-card p { margin: 0 0 16px; color: var(--muted); }
.art-card .arrow { margin-top: auto; color: var(--jade-deep); font-weight: 700; }
.art-date { font-size: .85rem; color: var(--muted); font-weight: 600; }
.art-page { max-width: 1000px; margin: 34px auto 70px; }
.art-page > h1 { font-size: clamp(2rem, 4.4vw, 3rem); margin: 10px 0 16px; overflow-wrap: anywhere; }
.art-page.art-one, .art-page.decide { max-width: 720px; }
.art-one h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); margin: 6px 0 14px; line-height: 1.15; }
.art-one .art-h { margin: 4px 0 12px; font-size: 1.7rem; line-height: 1.2; }
.art-body { font-size: 1.08rem; line-height: 1.75; }
.art-body h2 { font-size: 1.35rem; margin: 28px 0 8px; }
.art-body li { margin-bottom: 6px; }
.art-source { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.decide-bar { display: grid; gap: 10px; padding: 18px 0; margin-top: 8px; }
.decide-bar .btn { width: 100%; }
.decide-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.decide-change summary { list-style: none; }
.decide-change summary::-webkit-details-marker { display: none; }
.decide-change form { display: grid; gap: 10px; margin-top: 10px; }
.decide-change textarea { min-height: 90px; width: 100%; font-size: 1rem; }
.art-table { margin-bottom: 20px; }
table.list .art-acts { text-align: right; }
.art-acts form { display: inline-block; }
@media (max-width: 700px) { .art-table tr, .art-table td { display: block; } table.list.art-table td { border: 0; padding: 6px 11px; text-align: left; } .art-table tr { border-bottom: 1px solid var(--line); padding: 6px 0; } .art-acts .btn { margin: 2px 0; } }
/* back office header: the tabs may take two lines (Articles tab added) */
@media (min-width: 761px) { .admin header.top .wrap { height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; } }

/* Light / dark switch for visitors (sites with the "paper" and "ink" looks; 2026-12-01) */
.mode-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex: none; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); background: transparent; }
.mode-btn:hover { border-color: var(--jade); color: var(--jade); }
.mode-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-btn svg path:only-child { fill: currentColor; stroke: none; }
@media (max-width: 380px) { header.top .mode-btn { display: none; } }   /* very narrow phones: footer link only */

/* Back office "Web" tab: look cards (moved from medical.css 2026-12-01, so the TCM back office has them too) */
.looks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; margin: 18px 0; }
.look-card { display: flex; flex-direction: column; gap: 8px; background: #fff; border: 2px solid var(--line); border-radius: 10px; padding: 16px; cursor: pointer; }
.look-card.on, .look-card:has(input:checked) { border-color: var(--jade); }
.look-card input { position: absolute; opacity: 0; pointer-events: none; }
.look-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.look-card .swatch { display: flex; height: 46px; border-radius: 6px; overflow: hidden; }
.look-card .swatch i { flex: 1; }
.look-card b em { font-style: normal; font-weight: 600; color: var(--jade); font-size: .85rem; }
.look-card .txt { color: var(--muted); font-size: .88rem; flex: 1; }
.look-card .btn { align-self: flex-start; }
.look-save { display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap; max-width: 520px; padding: 18px; box-shadow: none; }
.look-save > div { flex: 1; min-width: 160px; }

/* Gentle chat reminder (base.html "nudge", practice.json assistant.nudge; 2026-12-01). Small, in the corner, no overlay. */
.nudge { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: min(340px, calc(100vw - 32px)); display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 40px 16px 16px; box-shadow: 0 12px 34px rgba(16, 32, 27, .16); opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.nudge.in { opacity: 1; transform: none; }
.nudge-orb { width: 38px; height: 38px; flex: none; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), conic-gradient(from 0deg, var(--jade), var(--gold), var(--jade)); animation: nudge-breathe 4s ease-in-out infinite; }
@keyframes nudge-breathe { 50% { transform: scale(1.07); } }
.nudge-body b { display: block; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); margin: 1px 0 4px; }
.nudge-body p { margin: 0 0 6px; font-size: .88rem; color: var(--muted); line-height: 1.45; }
.nudge-body .nudge-langs { font-size: .72rem; letter-spacing: .08em; font-weight: 700; color: var(--jade); margin-bottom: 10px; }
.nudge-x { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border: 0; background: transparent; color: var(--muted); font-size: 1.3rem; line-height: 1; border-radius: 50%; cursor: pointer; }
.nudge-x:hover { background: var(--paper-2); color: var(--ink); }
/* phones: one slim line at the bottom (orb, short question, button), so it never hides the booking button for long */
@media (max-width: 600px) { .nudge { right: 10px; left: 10px; bottom: 10px; width: auto; align-items: center; gap: 10px; padding: 8px 40px 8px 10px; border-radius: 99px; }
  .nudge-orb { width: 30px; height: 30px; } .nudge-body { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
  .nudge-body p { display: none; } .nudge-body b { font-size: .95rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .nudge-body .btn { margin-left: auto; flex: none; } .nudge-x { top: 50%; transform: translateY(-50%); right: 4px; } }
@media (max-width: 380px) { .nudge-body b { display: none; } }
.look-paper .nudge { background: var(--raised); box-shadow: 0 10px 28px rgba(58, 54, 42, .14); }
.look-paper .nudge-orb { background: radial-gradient(circle at 35% 30%, #fff8, transparent 45%), conic-gradient(from 0deg, var(--jade), #b9a46a, var(--jade)); }
