/* Interactive layer: icons, motion, drawer, booking stepper, reviews, toasts.
   Loads after styles.css, so the rules here refine the base layout. */

/* ---------- icons ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic--sm { width: 0.95em; height: 0.95em; }
.ic--star { width: 16px; height: 16px; stroke: var(--accent); }
.ic--star.is-on { fill: var(--accent); }
.ico {
  width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; transition: transform .35s, background .35s, color .35s;
}
.ico .ic { width: 20px; height: 20px; }

/* ---------- buttons, chips, links ---------- */
.btn { position: relative; overflow: hidden; gap: 9px; }
.btn .ic { transition: transform .3s ease; }
.btn:hover .ic { transform: translateX(2px); }
.btn--sm { gap: 7px; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.42); transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.chip { position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 6px; }
.chip--lg { padding: 11px 17px; font-size: 15px; }
.slot { position: relative; overflow: hidden; }
.chip--day { font-weight: 700; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 0; color: var(--primary); font-weight: 700; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.icon-btn {
  width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--field-line); background: var(--paper); color: var(--ink);
  display: inline-grid; place-items: center; cursor: pointer; transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.icon-btn:hover:not(:disabled) { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.icon-btn:disabled { opacity: .35; cursor: default; }

/* ---------- progress, to top ---------- */
.page-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.page-progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: 0 50%; }
.to-top {
  position: fixed; right: 22px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--ink); color: #fff;
  display: grid; place-items: center; cursor: pointer; z-index: 40; opacity: 0; transform: translateY(14px); pointer-events: none;
  box-shadow: 0 14px 28px -14px rgba(27, 42, 74, 0.7); transition: opacity .3s, transform .3s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--primary); }

/* ---------- header and drawer ---------- */
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--ink); cursor: pointer; place-items: center; }
.menu-btn .ic { width: 24px; height: 24px; }
.drawer { position: fixed; inset: 0; z-index: 70; background: rgba(27, 42, 74, 0.35); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .3s, visibility .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 86%); background: var(--paper); padding: 84px 26px 32px;
  display: flex; flex-direction: column; gap: 4px; transform: translateX(100%); transition: transform .45s cubic-bezier(.2, .7, .1, 1);
  box-shadow: -20px 0 40px -24px rgba(27, 42, 74, 0.45);
}
.drawer__panel > a { display: flex; align-items: center; gap: 14px; padding: 15px 8px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 1.08rem; color: var(--ink); }
.drawer__panel > a .ic { color: var(--primary); }
.drawer__panel > a[data-smart-cta] { margin-top: 18px; justify-content: center; border: 0; background: var(--primary); color: #fff; border-radius: 999px; }
.drawer__panel > a[data-smart-cta] .ic { color: #fff; }
.drawer__close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--tint); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.drawer-open .drawer { opacity: 1; visibility: visible; pointer-events: auto; }
.drawer-open .drawer__panel { transform: none; }
.drawer-open { overflow: hidden; }

/* ---------- hero motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes underline { from { background-size: 0% 0.26em; } to { background-size: 100% 0.26em; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(30, 142, 78, 0.45); } 70% { box-shadow: 0 0 0 10px rgba(30, 142, 78, 0); } 100% { box-shadow: 0 0 0 0 rgba(30, 142, 78, 0); } }
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(-40px, 30px); } }
.hero__copy > * { animation: rise .8s cubic-bezier(.2, .7, .1, 1) both; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.hero__copy > :nth-child(5) { animation-delay: .32s; }
.hero__copy > :nth-child(6) { animation-delay: .4s; }
.booking { animation: rise .9s .2s both; }
.hero__title em { animation: underline 1s .7s both; }
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -180px; top: -160px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(56, 88, 152, 0.10), transparent 65%); animation: drift 22s ease-in-out infinite alternate;
}
.hero > .wrap { position: relative; }
.status.is-open .status__dot { animation: pulse 2s infinite; }
.badges { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; color: var(--ink); }
.badges .ic { color: var(--primary); width: 16px; height: 16px; }
.status-bar__hours { display: flex; align-items: center; gap: 8px; }
.status-bar__hours .ic { color: var(--primary); }
.rating-chip {
  display: inline-flex; align-items: center; gap: 7px; width: fit-content; padding: 8px 14px; border-radius: 999px;
  background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--ink);
}
.rating-chip:hover { text-decoration: none; box-shadow: inset 0 0 0 1px var(--primary); }
.rating-chip b { font-weight: 800; }
.rating-chip span { color: var(--muted); }

/* ---------- booking stepper and summary ---------- */
.stepper { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--muted); }
.stepper__dot {
  width: 26px; height: 26px; border-radius: 50%; background: var(--tint); color: var(--muted); display: grid; place-items: center;
  font-size: 12px; font-weight: 800; flex: none; transition: background .35s, color .35s, box-shadow .35s;
}
.stepper li.is-current { color: var(--ink); }
.stepper li.is-current .stepper__dot { background: var(--primary); color: #fff; box-shadow: 0 0 0 4px rgba(56, 88, 152, 0.16); }
.stepper li.is-done .stepper__dot { background: var(--open); color: #fff; }
.progress--booking { height: 4px; margin-top: -4px; }
.booking__summary {
  display: flex; align-items: center; gap: 10px; padding: 13px 15px; border-radius: 14px; background: var(--tint);
  font-size: 14px; color: var(--ink); min-height: 48px;
}
.booking__summary .ic { color: var(--primary); }
.booking__summary b { font-weight: 800; }
.booking__actions .btn { min-width: 0; }
.booking .btn--ghost .ic { color: #25D366; }
.field input { transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:not(:placeholder-shown) { background: #FBFCFE; }

/* ---------- doctor: copy left, photo right ---------- */
.doctor { grid-template-columns: 1.1fr 0.9fr; }
.doctor__photo { justify-self: end; width: 100%; max-width: 380px; aspect-ratio: 4 / 5; }
.doctor__photo img { object-position: 66% 35%; transform: scale(1.12); }
.creds li { display: flex; align-items: flex-start; gap: 12px; }
.creds .ic { color: var(--open); margin-top: 3px; width: 17px; height: 17px; }

/* ---------- approach, methods, diet ticks ---------- */
.grid3 li, .methods li, .service, .rcard { transition: transform .35s cubic-bezier(.2, .7, .1, 1), box-shadow .35s; }
.grid3 li:hover, .methods li:hover, .service:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(27, 42, 74, 0.5); }
.grid3 li:hover .ico, .methods li:hover .ico { background: var(--primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.methods h3::before { display: none; }
.methods li { display: flex; flex-direction: column; }
.methods li .ico { margin-bottom: 14px; }
.ticks li { display: flex; align-items: flex-start; gap: 12px; padding-left: 0; }
.ticks li::before { display: none; }
.ticks .ic { color: var(--open); width: 18px; height: 18px; margin-top: 2px; }

/* ---------- finder, quiz and filters ---------- */
.result, .fit-hint, .fit-result > *, .quiz__step, .quiz__out > * { animation: rise .45s cubic-bezier(.2, .7, .1, 1) both; }
.result { position: relative; }
.result__title { display: flex; align-items: center; gap: 10px; }
.result__title .ic { color: var(--primary); }
.result__actions .btn { margin-top: 2px; }
.quiz__title { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.quiz__count { font-size: 13px; color: var(--muted); font-weight: 700; }
.quiz__bar { height: 4px; border-radius: 99px; background: var(--tint); overflow: hidden; margin: 12px 0 18px; }
.quiz__bar span { display: block; height: 100%; background: var(--primary); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s ease; }
.quiz__q { margin: 0 0 14px; font-weight: 700; font-size: 1.02rem; }
.quiz__nav { margin-top: 14px; min-height: 28px; }
.quiz__nav[hidden] { display: none; }

/* ---------- reviews ---------- */
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-bottom: 22px; }
.rating__score b { display: block; font-size: clamp(2.4rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.stars { display: flex; gap: 3px; margin-top: 8px; }
.rating__meta { margin: 0; color: var(--muted); font-size: 15px; }
.carousel__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 6px 2px 14px; scrollbar-width: none; outline: none; }
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { box-shadow: 0 0 0 3px rgba(56, 88, 152, 0.25); border-radius: var(--radius); }
.rcard {
  flex: 0 0 86%; scroll-snap-align: start; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.rcard:hover { transform: translateY(-4px); box-shadow: 0 20px 36px -26px rgba(27, 42, 74, 0.5); }
.rcard__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rcard__top .stars { margin-top: 0; }
.rcard__when { font-size: 13px; color: var(--muted); }
.rcard__text { margin: 0; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.rcard.is-open .rcard__text { display: block; overflow: visible; }
.rcard__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.rcard__who small { display: block; color: var(--muted); font-size: 13px; }
.rcard__who b { font-weight: 700; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; flex: none; }
.carousel__controls { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.dots { flex: 1; display: flex; justify-content: center; gap: 8px; }
.dot { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: var(--field-line); cursor: pointer; transition: width .35s, background .3s; }
.dot.is-active { width: 28px; background: var(--primary); }

/* ---------- visit info list ---------- */
.info { list-style: none; margin: 28px 0 0; padding: 0; }
.info li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); align-items: start; }
.info li:last-child { border-bottom: 1px solid var(--line); }
.info .ic { color: var(--primary); margin-top: 3px; }
.info b { display: block; font-weight: 700; }
.info small { display: block; color: var(--muted); }
.info .link-btn { margin-top: 6px; }
.info a { font-weight: 700; }

/* ---------- footer, mobile bar ---------- */
.footer__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-weight: 700; }
.footer__muted .ic { color: var(--primary); margin-right: 6px; width: 16px; height: 16px; vertical-align: -3px; }

/* ---------- doctor: expertise, actions, photo frame ---------- */
.lead:empty { display: none; }
.expertise { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.expertise li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--tint); font-size: 14px; font-weight: 600; transition: box-shadow .25s; }
.expertise li:hover { box-shadow: inset 0 0 0 1px var(--primary); }
.expertise .ic { color: var(--primary); width: 16px; height: 16px; }
.doctor__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.doctor__photo { position: relative; isolation: isolate; }
.doctor__photo::before { content: ""; position: absolute; inset: 22px -20px -20px 22px; border-radius: var(--radius); background: rgba(232, 136, 56, 0.18); z-index: -1; }
.doctor__photo img { border-radius: var(--radius); box-shadow: 0 30px 50px -36px rgba(27, 42, 74, 0.6); }

/* ---------- certificates gallery ---------- */
.cert-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cert { appearance: none; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 10px; display: flex; flex-direction: column; gap: 10px; text-align: left; cursor: pointer; font: inherit; color: var(--ink); animation: rise .6s cubic-bezier(.2, .7, .1, 1) both; animation-delay: calc(var(--i, 0) * 40ms); transition: transform .35s cubic-bezier(.2, .7, .1, 1), box-shadow .35s; }
.cert:hover { transform: translateY(-4px); box-shadow: 0 22px 38px -26px rgba(27, 42, 74, 0.5); }
.cert:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.cert__frame { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #F4F6FA; display: grid; place-items: center; }
.cert__frame img { width: 100%; height: 100%; object-fit: contain; transition: transform .45s ease; }
.cert:hover .cert__frame img { transform: scale(1.03); }
.cert__zoom { position: absolute; right: 10px; bottom: 10px; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.cert__zoom .ic { width: 17px; height: 17px; }
.cert:hover .cert__zoom, .cert:focus-visible .cert__zoom { opacity: 1; transform: none; }
.cert__meta { display: block; padding: 0 4px 4px; }
.cert__meta b { display: block; font-size: 14px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.cert__meta small { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; margin: auto; width: min(1100px, 94vw); height: min(92vh, 900px); max-width: none; max-height: none; border: 0; padding: 18px; background: transparent; color: #fff; }
.lightbox::backdrop { background: rgba(12, 18, 32, 0.88); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 4px 12px; font-weight: 700; font-size: 14px; color: rgba(255, 255, 255, 0.8); }
.lightbox__btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, 0.12); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__figure { margin: 0; flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
.lightbox__figure img { max-width: 100%; max-height: calc(92vh - 150px); object-fit: contain; border-radius: 10px; background: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); animation: rise .45s both; }
.lightbox__figure figcaption { text-align: center; font-size: 15px; color: rgba(255, 255, 255, 0.85); }
.lightbox__figure figcaption:empty { display: none; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.14); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .25s, color .25s; }
.lightbox__nav:hover:not(:disabled) { background: var(--accent); color: var(--ink); }
.lightbox__nav:disabled { opacity: 0.3; cursor: default; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }
@media (max-width: 760px) {
  .lightbox__nav { width: 42px; height: 42px; top: auto; bottom: 14px; transform: none; }
  .lightbox__nav--prev { left: 14px; }
  .lightbox__nav--next { right: 14px; }
  .lightbox__figure img { max-height: calc(92vh - 190px); }
}

/* ---------- our approach: scroll-linked principles ---------- */
.ap-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.ap-intro { position: sticky; top: 104px; }
.ap-intro .lead { margin-bottom: 26px; }
.ap-rail { position: relative; list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 8px; }
.ap-rail::before, .ap-rail::after { content: ""; position: absolute; left: 21px; top: 24px; width: 2px; border-radius: 2px; z-index: 0; }
.ap-rail::before { bottom: 24px; background: var(--line); }
.ap-rail::after { height: calc(var(--p, 0) * (100% - 48px)); background: linear-gradient(var(--primary), var(--accent)); transition: height .6s cubic-bezier(.2, .7, .1, 1); }
.ap-rail__btn { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; width: 100%; padding: 8px 0; border: 0; border-radius: 12px; background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: color .3s; }
.ap-rail__btn:hover { color: var(--ink); }
.ap-rail__btn:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.ap-rail__no { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--paper); box-shadow: inset 0 0 0 1px var(--field-line); font-size: 13px; font-weight: 800; transition: background .35s, color .35s, box-shadow .35s; }
.ap-rail__label { font-size: 1.05rem; font-weight: 700; }
.ap-rail__btn[aria-current="true"] { color: var(--ink); }
.ap-rail__btn[aria-current="true"] .ap-rail__no { background: var(--primary); color: #fff; box-shadow: 0 12px 22px -12px rgba(56, 88, 152, 0.8); }
.ap-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ap-card {
  position: relative; display: grid; gap: 10px; padding: 26px 30px; background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
  opacity: 0.45; transform: scale(0.985); transition: opacity .45s, transform .45s, box-shadow .45s, border-color .45s;
  animation: rise .6s cubic-bezier(.2, .7, .1, 1) backwards; animation-delay: calc(var(--i, 0) * 90ms);
}
.ap-card.is-active { opacity: 1; transform: none; border-color: rgba(56, 88, 152, 0.3); box-shadow: 0 24px 44px -30px rgba(27, 42, 74, 0.55); }
.ap-card__top { display: flex; justify-content: space-between; align-items: center; }
.ap-card__icon { width: 52px; height: 52px; border-radius: 16px; background: var(--tint); color: var(--primary); display: grid; place-items: center; transition: background .4s, color .4s, transform .4s; }
.ap-card__icon .ic { width: 24px; height: 24px; }
.ap-card.is-active .ap-card__icon { background: var(--primary); color: #fff; transform: rotate(-6deg); }
.ap-card__no { font-size: 46px; font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 1px var(--field-line); transition: -webkit-text-stroke-color .4s; }
.ap-card.is-active .ap-card__no { -webkit-text-stroke-color: var(--accent); }
.ap-card__title { margin: 2px 0 0; font-size: 1.35rem; font-weight: 800; letter-spacing: -0.015em; }
.ap-card__text { margin: 0; color: var(--muted); }
.ap-card__points { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 8px; }
.ap-card__points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; font-size: 15px; }
.ap-card__points .ic { width: 17px; height: 17px; margin-top: 3px; color: var(--open); }
@media (max-width: 959px) {
  .ap-wrap { grid-template-columns: 1fr; }
  .ap-intro { position: static; }
  .ap-rail { display: none; }
  .ap-card { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ap-card, .ap-card__icon { animation: none; transition: none; } }

/* ---------- layout density ---------- */
.slot { font-size: 13px; padding: 10px 2px; white-space: nowrap; }
.fit-hint { margin: 0; padding: 20px 22px; border-radius: 16px; background: var(--tint); color: var(--muted); font-size: 15px; }
.finder__result { display: flex; flex-direction: column; justify-content: center; }
.cert { flex: 0 0 calc((100% - 70px) / 6); }
@media (max-width: 1100px) { .cert { flex-basis: calc((100% - 42px) / 4); } }
@media (max-width: 600px) { .cert { flex-basis: calc((100% - 14px) / 2); } }

/* ---------- visit us: live timeline, day picker, travel modes ---------- */
.vx { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(20px, 3vw, 32px); align-items: stretch; }
.vx__side { display: flex; flex-direction: column; gap: 16px; }
.vx__card { padding: 22px 24px; }
.js .vx__card { transition: opacity .7s ease, transform .7s ease, translate .35s ease, box-shadow .35s ease; }
.vx__card:hover { translate: 0 -2px; box-shadow: 0 22px 40px -28px rgba(27, 42, 74, 0.45); }
.vx__label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.vx__row { display: flex; gap: 16px; align-items: flex-start; }
.vx__icon { width: 46px; height: 46px; flex: none; border-radius: 14px; background: var(--tint); color: var(--primary); display: grid; place-items: center; }
.vx__addr { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.vx__chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 6px 12px; border-radius: 999px; background: var(--tint); font-size: 13px; font-weight: 600; }
.vx__chip .ic { width: 14px; height: 14px; color: var(--primary); }
.vx__copy { margin-top: 14px; }
.vx__chip[hidden] { display: none; }
.vx__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.vx__now { margin: 0; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--primary); }
.vx__now::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.vx__now.is-open::before { background: var(--open); animation: pulse 2s infinite; }
.vx__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 14px; }
.vx__day { display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border-radius: 14px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; transition: background .3s, color .3s, border-color .3s, transform .3s, box-shadow .3s; }
.vx__day:hover { border-color: var(--field-line); transform: translateY(-2px); }
.vx__day[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 12px 22px -14px rgba(56, 88, 152, 0.8); }
.vx__day.is-closed .vx__day-name { text-decoration: line-through; opacity: 0.55; }
.vx__day-name { font-size: 12px; font-weight: 800; white-space: nowrap; }
.vx__day-date { font-size: 11px; opacity: 0.7; white-space: nowrap; }
.vx__summary { margin: 14px 0 0; font-size: 15px; font-weight: 600; min-height: 1.5em; }
.vx__timeline { position: relative; margin-top: 16px; padding-bottom: 4px; }
.vx__track { position: relative; height: 42px; border-radius: 12px; overflow: hidden; background-color: var(--tint);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(100% / 24 - 1px), rgba(27, 42, 74, 0.09) calc(100% / 24 - 1px) calc(100% / 24)); }
.vx__seg { position: absolute; top: 6px; bottom: 6px; border-radius: 9px; background: linear-gradient(90deg, var(--primary), #5b7fc4);
  box-shadow: 0 8px 16px -10px rgba(56, 88, 152, 0.9); transform-origin: 0 50%; cursor: default;
  animation: vxGrow 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) backwards; animation-delay: var(--d, 0ms); transition: filter .3s, box-shadow .3s; }
.vx__seg--1 { background: linear-gradient(90deg, var(--accent), #f3a764); box-shadow: 0 8px 16px -10px rgba(232, 136, 56, 0.9); }
.vx__seg--2 { background: linear-gradient(90deg, #2a8f6a, #5fbf96); box-shadow: 0 8px 16px -10px rgba(42, 143, 106, 0.9); }
.vx__seg:hover, .vx__seg:focus-visible, .vx__seg.is-hot { filter: brightness(1.1); box-shadow: 0 0 0 3px rgba(232, 136, 56, 0.45); outline: none; }
@keyframes vxGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.vx__now-line { position: absolute; top: -6px; height: 54px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--ink); transition: left .8s cubic-bezier(0.2, 0.7, 0.1, 1); }
.vx__now-line::before { content: ""; position: absolute; top: -4px; left: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.vx__ticks { position: relative; height: 18px; margin-top: 8px; font-size: 11px; font-weight: 600; color: var(--muted); }
.vx__ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.vx__ticks span:first-child { transform: none; }
.vx__ticks span:last-child { transform: translateX(-100%); }
.vx__timeline.is-closed .vx__track { background-color: #eef1f6; }
.vx__timeline.is-closed::after { content: "Closed this day"; position: absolute; top: 0; left: 0; right: 0; height: 42px; line-height: 42px; text-align: center; font-weight: 700; color: var(--muted); border-radius: 12px; }
.vx__windows { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.vx__windows li { display: flex; align-items: center; gap: 10px; font-size: 14px; padding: 6px 8px; margin: 0 -8px; border-radius: 10px; transition: background .25s; }
.vx__windows li.is-hot { background: var(--tint); }
.vx__t { margin-left: auto; color: var(--muted); font-variant-numeric: tabular-nums; }
.vx__dot { width: 10px; height: 10px; flex: none; border-radius: 3px; background: var(--primary); }
.vx__dot--1 { background: var(--accent); }
.vx__dot--2 { background: #2a8f6a; }
.vx__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vx__map { position: relative; min-height: 460px; padding: 0; overflow: hidden; border-radius: 22px; }
.vx__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.vx__shimmer { position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, #eef1f6 30%, #f8fafc 50%, #eef1f6 70%); background-size: 200% 100%; animation: vxShimmer 1.4s linear infinite; transition: opacity .6s; }
.vx__shimmer.is-done { opacity: 0; pointer-events: none; }
@keyframes vxShimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.vx__overlay { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, 0.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 18px 36px -20px rgba(27, 42, 74, 0.55); }
.vx__modes { display: flex; flex-wrap: wrap; gap: 6px; }
.vx__mode { padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.vx__mode:hover { border-color: var(--primary); }
.vx__mode[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.vx__go { white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .js .vx__card { transition: none; } .vx__seg, .vx__shimmer, .vx__now.is-open::before { animation: none; } .vx__now-line { transition: none; } }
@media (max-width: 960px) { .vx { grid-template-columns: 1fr; } .vx__map { min-height: 340px; } }
@media (max-width: 520px) { .vx__day-date { display: none; } .vx__overlay .vx__go { width: 100%; } }

/* ---------- site footer ---------- */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.8); }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #A9D4FF; text-decoration: none; }
.site-footer .btn:not(.btn--ghost) { background: var(--accent); color: var(--ink); }
.site-footer .btn:not(.btn--ghost):hover { background: #F09A52; color: var(--ink); }
.site-footer .btn--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35); }
.site-footer .btn--ghost:hover { background: #fff; color: var(--ink); box-shadow: none; }
.foot__cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; padding: 30px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.foot__cta-title { margin: 0; font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.foot__cta-sub { margin: 6px 0 0; color: rgba(255, 255, 255, 0.68); }
.foot__cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.foot__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 0.9fr; gap: 32px; padding: 34px 0; }
.foot__brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.1rem; color: #fff; }
.foot__brand img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: #fff; }
.foot__brand:hover { color: #fff; text-decoration: none; }
.foot__tag { margin: 14px 0 0; font-size: 14px; color: rgba(255, 255, 255, 0.62); max-width: 30ch; }
.foot__head { margin: 0 0 16px; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.5); }
.foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: 15px; }
.foot__list li { display: flex; gap: 12px; align-items: flex-start; }
.foot__list .ic { color: #A9D4FF; width: 17px; height: 17px; margin-top: 3px; }
.foot__list small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 13px; }
.foot__links li a { color: rgba(255, 255, 255, 0.85); }
.foot__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; }
.socials { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.socials a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 15px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-weight: 600; font-size: 14px; transition: background .25s, color .25s, transform .25s; }
.socials a:hover { background: var(--accent); color: var(--ink); transform: translateY(-2px); }
.socials .ic { width: 17px; height: 17px; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 16px 0 22px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 14px; color: rgba(255, 255, 255, 0.55); }
.foot__bottom p { margin: 0; }
.foot__top { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.foot__top .ic { transition: transform .3s; }
.foot__top:hover .ic { transform: translateY(-3px); }
@media (max-width: 960px) { .foot__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .foot__grid { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  .foot__cta { padding: 36px 0; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); width: min(420px, 92vw); z-index: 80; display: grid; gap: 10px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-radius: 14px; background: var(--ink); color: #fff;
  font-weight: 600; font-size: 15px; box-shadow: 0 16px 36px -18px rgba(27, 42, 74, 0.7); animation: toastIn .35s cubic-bezier(.2, .7, .1, 1) both;
  transition: opacity .4s, transform .4s;
}
.toast .ic { color: #9FE3B8; }
.toast--error { background: var(--error); }
.toast--error .ic { color: #fff; }
.toast.is-out { opacity: 0; transform: translateY(8px); }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.toasts:empty { display: none; }

/* ---------- responsive ---------- */
@media (min-width: 761px) {
  .rcard { flex: 0 0 calc((100% - 36px) / 2.3); }
}
@media (max-width: 960px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { order: -1; justify-self: start; max-width: 360px; }
  .top__nav { display: none; }
  .menu-btn { display: grid; }
  .top .btn { display: none; }
}
@media (max-width: 760px) {
  .mobile-bar { grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; padding-left: 10px; padding-right: 10px; }
  .mobile-bar a { gap: 5px; font-size: 13.5px; padding: 12px 6px; }
  .mobile-bar a:nth-child(2) { background: #E9F8EF; color: #13663A; }
  .mobile-bar a .ic { width: 17px; height: 17px; }
  .to-top { bottom: 100px; right: 16px; }
  .stepper li span:last-child { display: none; }
  .stepper li.is-current span:last-child { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .hero::before { animation: none; }
}

/* Zero-height anchor at the top of the page, used by "Back to top" links (a sticky header cannot be scrolled to). */
.top-anchor { position: absolute; top: 0; left: 0; width: 1px; height: 1px; pointer-events: none; }
