/* Liquid glass (iPhone style) + new page layouts. Loaded after site.css. */

body:not(.auth-body)::before {
  content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(38vw 38vw at 8% 18%, rgba(45, 172, 201, .24), transparent 70%),
    radial-gradient(34vw 34vw at 92% 42%, rgba(96, 214, 228, .26), transparent 70%),
    radial-gradient(40vw 40vw at 28% 88%, rgba(14, 124, 153, .15), transparent 70%);
}

/* ---- The glass material ---- */
.glass, .glass-dark, .nav-in, .card, .kpi, .p-side, .p-user, .tabs, .stabs a, .mbar, .auth-top a.back, .lq-tile {
  --rim: rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(14px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(14px) saturate(190%) brightness(1.04);
}
.glass, .card, .kpi {
  position: relative; border: 0; border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34));
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(255, 255, 255, .45),
    inset 0 0 22px rgba(255, 255, 255, .28),
    0 22px 50px -28px rgba(8, 70, 95, .42);
}
.glass-dark, .lq-tile {
  position: relative; border: 0; border-radius: 30px; color: #fff;
  background: linear-gradient(150deg, rgba(255, 255, 255, .2), rgba(6, 62, 82, .24) 60%, rgba(255, 255, 255, .08));
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .75),
    inset 0 -1px 1px rgba(255, 255, 255, .25),
    inset 0 0 26px rgba(255, 255, 255, .12),
    0 30px 60px -30px rgba(3, 40, 56, .7);
}
.nav-in {
  position: relative; border: 0; border-radius: 999px; padding: 8px 10px 8px 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .78), rgba(255, 255, 255, .6));
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, .95),
    inset 0 -1px 1px rgba(255, 255, 255, .4),
    0 14px 40px -20px rgba(4, 50, 70, .55);
}
/* Bright rim, stronger on opposite corners, the way light catches curved glass */
.glass::before, .glass-dark::before, .nav-in::before, .card::before, .kpi::before, .lq-tile::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.3px; pointer-events: none; z-index: 1;
  background: linear-gradient(135deg, var(--rim), rgba(255, 255, 255, .2) 32%, rgba(255, 255, 255, .06) 58%, rgba(255, 255, 255, .72));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Specular highlight that follows the pointer */
.glass::after, .glass-dark::after, .card::after, .lq-tile::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--mx, 22%) var(--my, -6%), rgba(255, 255, 255, .34), transparent 62%);
}
.glass > *, .glass-dark > *, .card > *, .lq-tile > * { position: relative; z-index: 2; }
/* Patient search results must open above the fields and cards that follow it */
.card > .picker { z-index: 6; }
.card:has(.picker-list.show) { z-index: 10; }
.summary, .side-book { position: sticky; }
.glass.way-online { background: linear-gradient(150deg, #0e7c99, #2DACC9); }
.way { overflow: hidden; }
.lq-right .bookw { background: linear-gradient(150deg, rgba(255, 255, 255, .14), rgba(5, 58, 78, .46) 55%, rgba(5, 58, 78, .34)); }
.kpi.hl { background: var(--hero); }

/* Pill buttons */
.btn { border-radius: 999px; }
.btn-sm, .btn-lg, .btn-xs { border-radius: 999px; }
.btn-primary {
  background: linear-gradient(180deg, #33b8d4, #0e7c99);
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .55), inset 0 -2px 4px rgba(4, 60, 80, .25), 0 14px 26px -12px rgba(14, 124, 153, .8);
}
.btn-white { box-shadow: inset 0 -2px 4px rgba(8, 70, 95, .08), 0 14px 26px -14px rgba(3, 40, 56, .55); }
.btn-glass {
  border: 0; background: linear-gradient(145deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .12));
  box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .75), inset 0 -1px 1px rgba(255, 255, 255, .3);
  -webkit-backdrop-filter: blur(10px) saturate(180%); backdrop-filter: blur(10px) saturate(180%);
}
.pulse { background: rgba(255, 255, 255, .6); }
.chip {
  border: 0; background: linear-gradient(145deg, rgba(255, 255, 255, .3), rgba(255, 255, 255, .1));
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .7);
}

/* Mobile menu sits inside the glass bar (backdrop-filter makes it the containing block) */
@media (max-width: 860px) {
  .nav-in { border-radius: 24px; }
  .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 5; background: #fff; }
}

/* ---- Page headers ---- */
.lq-hero { position: relative; margin-top: -92px; padding: 150px 0 0; background: var(--hero); color: #fff; overflow: hidden; border-radius: 0 0 48px 48px; }
.lq-orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; animation: lqFloat 16s ease-in-out infinite; }
.lq-orb.a { width: 520px; height: 520px; right: 8%; top: -120px; background: rgba(140, 236, 244, .55); }
.lq-orb.b { width: 420px; height: 420px; left: -120px; bottom: -160px; background: rgba(8, 72, 96, .7); animation-delay: -6s; }
.lq-orb.c { width: 300px; height: 300px; left: 42%; bottom: 40px; background: rgba(45, 172, 201, .7); animation-delay: -10s; }
@keyframes lqFloat { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, -24px) scale(1.08); } }
.lq-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; }
.lq-grid > * { min-width: 0; }
.lq-hero h1 { color: #fff; font-size: clamp(38px, 5.2vw, 66px); font-weight: 700; letter-spacing: -.028em; line-height: 1.05; margin: 22px 0 18px; }
.lq-hero .lead { font-size: 19px; font-weight: 300; max-width: 540px; color: rgba(255, 255, 255, .92); }
.lq-right { position: relative; padding: 30px 0 40px; }
.lq-steth { position: absolute; z-index: 0; width: 470px; right: -92px; top: -74px; pointer-events: none; filter: drop-shadow(0 26px 30px rgba(3, 40, 56, .35)); animation: lqSway 11s ease-in-out infinite; transform-origin: 50% 0; }
.lq-steth img { width: 100%; height: auto; }
@keyframes lqSway { 0%, 100% { transform: rotate(-1.4deg); } 50% { transform: rotate(1.4deg); } }
.lq-right .bookw { z-index: 3; max-width: 440px; padding: 26px; margin-right: auto; }
.lq-stats { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 44px 0 40px; }
.lq-stat { padding: 18px 22px; border-radius: 24px; color: #fff; }
.lq-stat b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.lq-stat span { font-size: 14px; color: rgba(255, 255, 255, .86); }
.feebox { background: rgba(255, 255, 255, .12); border: 0; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45); }
.seg { background: rgba(3, 50, 68, .28); border-radius: 999px; }
.seg button { border-radius: 999px; }
.dchip { border: 0; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .45); border-radius: 18px; }
.dchip.on { box-shadow: 0 8px 18px -8px rgba(3, 40, 56, .6); }

.phero { border-radius: 0 0 44px 44px; padding-bottom: 76px; background-size: cover; background-position: center; }
.phero::after { display: none; }
.phero.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(8, 62, 82, .9), rgba(14, 124, 153, .55)); }
.phero .lq-orb.a { width: 380px; height: 380px; top: -160px; }

/* ---- Marquee ---- */
.marquee { overflow: hidden; padding: 30px 0 34px; -webkit-mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee-in { display: flex; gap: 10px; padding-right: 10px; width: max-content; animation: lqMarquee 46s linear infinite; }
.marquee:hover .marquee-in { animation-play-state: paused; }
.marquee span { padding: 9px 18px; border-radius: 999px; font-weight: 500; font-size: 15px; color: var(--blue2); white-space: nowrap; background: rgba(255, 255, 255, .78); box-shadow: inset 0 1px 1px #fff, 0 6px 14px -8px rgba(8, 70, 95, .35); }
@keyframes lqMarquee { to { transform: translateX(-25%); } }

/* ---- Bento services ---- */
.lq-band { position: relative; overflow: hidden; border-radius: 44px; padding: 26px; background: linear-gradient(140deg, #0b5a75, #137e9c 55%, #2DACC9); }
.lq-band .lq-orb.a { background: rgba(150, 240, 246, .5); }
.bento { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.bento > * { min-width: 0; }
.bento-intro { grid-column: span 2; grid-row: span 2; padding: 34px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bento-intro h2 { color: #fff; font-size: clamp(28px, 3.1vw, 42px); letter-spacing: -.02em; margin: 12px 0; }
.bento-intro p { color: rgba(255, 255, 255, .88); font-size: 17px; }
.bento-intro .kicker { background: rgba(255, 255, 255, .16); color: #fff; margin: 0; }
.lq-tile { padding: 24px; color: #fff; display: flex; flex-direction: column; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.lq-tile:hover { transform: translateY(-4px) scale(1.012); }
.lq-tile .ic { width: 46px; height: 46px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6); margin-bottom: 14px; }
.lq-tile .ic .i { width: 24px; height: 24px; }
.lq-tile h3 { color: #fff; font-size: 18px; margin-bottom: 6px; }
.lq-tile p { color: rgba(255, 255, 255, .85); font-size: 14.5px; margin: 0; }
.bento-wide { grid-column: span 2; }

/* ---- Doctor statement ---- */
.statement { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: center; }
.statement > * { min-width: 0; }
.doc-card { border-radius: 36px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--grad); position: relative; box-shadow: 0 30px 60px -30px rgba(8, 70, 95, .6); }
.doc-card img { width: 100%; height: 100%; object-fit: cover; }
.doc-mono { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); font-size: 92px; font-weight: 600; letter-spacing: -.04em; }
.doc-name { position: absolute; z-index: 2; left: 14px; right: 14px; bottom: 14px; padding: 14px 18px; border-radius: 24px; }
.doc-name b { display: block; color: var(--ink); font-size: 18px; }
.doc-name small { color: var(--text); font-size: 13.5px; }
.statement blockquote { margin: 0 0 20px; font-size: clamp(25px, 2.9vw, 38px); line-height: 1.22; font-weight: 500; letter-spacing: -.018em; color: var(--ink); }

/* ---- Timeline steps ---- */
.tl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.tl::before { content: ''; position: absolute; left: 6%; right: 6%; top: 26px; height: 2px; background: linear-gradient(90deg, rgba(45, 172, 201, .15), #2DACC9, rgba(45, 172, 201, .15)); }
.tl > div { position: relative; }
.tl .n { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 18px; color: #fff; background: linear-gradient(180deg, #33b8d4, #0e7c99); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .55), 0 10px 20px -8px rgba(14, 124, 153, .8); margin-bottom: 16px; }
.tl h4 { font-size: 18px; margin-bottom: 6px; }
.tl p { font-size: 15px; color: var(--muted); margin: 0; }

/* ---- Text blocks ---- */
.lq-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lq-list.two { grid-template-columns: repeat(2, 1fr); }
.lq-item { padding: 26px; }
.lq-item h4 { font-size: 18px; margin-bottom: 8px; }
.lq-item p { font-size: 15.5px; color: var(--text); margin: 0; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0 28px; }
.facts div { padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .6); box-shadow: inset 0 1px 1px #fff; }
.facts small { display: block; color: var(--muted); font-size: 13px; }
.facts b { color: var(--ink); font-weight: 600; }
.lq-prose p { font-size: 17px; line-height: 1.7; color: var(--text); }
.urgent { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 38px; align-items: center; }
.urgent ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.urgent li { display: flex; gap: 10px; color: var(--ink); font-weight: 500; }
.urgent li .i { color: #d9534f; }
.career { display: grid; gap: 12px; }
.career > div { display: grid; grid-template-columns: 90px 1fr; gap: 16px; padding: 18px 22px; }
.career b { color: var(--ink); display: block; }
.career .y { color: var(--blue); font-weight: 700; }
.reviews { columns: 3; column-gap: 18px; }
.reviews .glass { break-inside: avoid; padding: 24px; margin-bottom: 18px; }
.reviews p { margin: 0 0 10px; color: var(--ink); }
.reviews b { color: var(--blue2); font-size: 14px; }
.intro-2 { display: grid; grid-template-columns: .8fr 1.2fr; gap: 44px; }
.svc-photo { border-radius: 28px; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin-bottom: 24px; }
.svc-body h2 { margin-top: 30px; }
.side-img { border-radius: 28px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }

/* Website content editor */
.ce-sec { padding: 0; }
.ce-sec summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; }
.ce-sec summary::-webkit-details-marker { display: none; }
.ce-sec summary h3 { margin: 0; font-size: 17px; }
.ce-sec[open] summary .i { transform: rotate(180deg); }
.ce-body { padding: 0 24px 16px; }
.ce-row { display: flex; gap: 10px; align-items: flex-start; padding: 12px; margin-bottom: 8px; border-radius: 16px; background: rgba(255, 255, 255, .7); }
.ce-cell { min-width: 0; }
.ce-cell small { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.ce-cell input, .ce-cell textarea { width: 100%; padding: 9px 11px; font: 400 14px var(--font); border-radius: 10px; border: 1px solid rgba(14, 29, 61, .14); background: #fff; color: var(--ink); }
.ce-narrow { flex: 1; }
.ce-wide { flex: 2.4; }
.ce-save { position: sticky; bottom: 14px; z-index: 5; margin-bottom: 12px; }
.p-side { background: linear-gradient(170deg, rgba(255, 255, 255, .62), rgba(255, 255, 255, .34)); border: 0; box-shadow: inset -1px 0 0 rgba(255, 255, 255, .9); }

@media (max-width: 1080px) {
  .lq-grid, .statement, .intro-2, .urgent { grid-template-columns: 1fr; }
  .lq-steth { width: 340px; right: -50px; top: -60px; opacity: .85; }
  .lq-right .bookw { max-width: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .lq-list { grid-template-columns: 1fr 1fr; }
  .tl { grid-template-columns: 1fr 1fr; }
  .tl::before { display: none; }
  .reviews { columns: 2; }
  .doc-card { max-width: 380px; }
}
@media (max-width: 640px) {
  .lq-hero { padding-top: 124px; border-radius: 0 0 32px 32px; }
  .lq-hero .lead { font-size: 17px; }
  .lq-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .lq-stat { padding: 14px 16px; }
  .lq-stat b { font-size: 26px; }
  .lq-steth { width: 250px; right: -62px; top: -52px; }
  .bento, .lq-list, .lq-list.two, .tl, .facts, .row-2 { grid-template-columns: 1fr; }
  .bento-intro, .bento-wide { grid-column: auto; grid-row: auto; }
  .lq-band { border-radius: 30px; padding: 14px; }
  .urgent { padding: 24px; }
  .reviews { columns: 1; }
  .ce-row { flex-wrap: wrap; }
  .ce-narrow, .ce-wide { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .lq-orb, .lq-steth, .marquee-in { animation: none; }
}

/* ---- Premium round: editorial type, deep sections, photography, footer ---- */
:root { --deep: #052a36; --deep2: #07404f; --gold: #d9bd86; --serif: 'Fraunces', Georgia, 'Times New Roman', serif; }
h1, h2, .h2, .lq-hero h1, .phero h1, .statement blockquote, .ft-cta h2, .pm-fee, .lq-stat b, .doc-cred .name {
  font-family: var(--serif); font-weight: 500; letter-spacing: -.018em;
}
.lq-hero h1 { font-weight: 500; font-size: clamp(40px, 5.4vw, 72px); line-height: 1.04; }
.sec-head { margin-bottom: 60px; }
.sec-head h2, .h2 { font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.sec-head p { font-size: 18px; }
.section { padding: 120px 0; }
.kicker { display: block; padding: 0; background: none; font-size: 12.5px; letter-spacing: .2em; text-transform: uppercase; font-weight: 600; color: var(--blue); margin-bottom: 18px; }
.kicker.on-dark { color: var(--gold); background: none; }
.pm-lead { font-size: 18px; line-height: 1.7; color: var(--text); }

/* Deep full width bands */
.deep { position: relative; overflow: hidden; padding: 120px 0; background: linear-gradient(160deg, var(--deep), var(--deep2) 60%, #0a5a70); color: #fff; }
.deep .wrap { position: relative; z-index: 2; }
.deep h2 { color: #fff; font-size: clamp(32px, 4vw, 54px); line-height: 1.08; }
.deep .sec-head p, .deep-head p { color: rgba(255, 255, 255, .78); }
.deep .lq-orb.a { background: rgba(45, 172, 201, .4); top: -160px; right: -100px; width: 560px; height: 560px; }
.deep .lq-orb.b { background: rgba(45, 172, 201, .22); bottom: -200px; left: -120px; }
.deep .lq-orb.c { background: rgba(45, 172, 201, .3); left: 30%; bottom: -160px; width: 620px; height: 420px; }
.deep-head { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: end; margin-bottom: 60px; }
.deep-head h2 { margin: 0; }
.deep-head p { font-size: 18px; line-height: 1.7; }

/* Intro with photos */
.pm-intro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.pm-intro-grid > * { min-width: 0; }
.pm-photos { position: relative; padding: 0 40px 70px 0; }
.pm-photos .big { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: 34px; box-shadow: 0 40px 70px -40px rgba(5, 42, 54, .8); }
.pm-photos .small { position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 26px; border: 6px solid #fff; box-shadow: 0 30px 50px -28px rgba(5, 42, 54, .8); }
.pm-badge { position: absolute; left: 18px; top: 18px; padding: 11px 18px; border-radius: 999px; display: flex; gap: 8px; align-items: center; font-weight: 500; font-size: 14px; color: var(--ink); background: rgba(255, 255, 255, .78); }
.pm-badge .i { color: var(--blue); width: 18px; height: 18px; }
.pm-pillars { list-style: none; margin: 30px 0 0; padding: 0; }
.pm-pillars li { display: flex; gap: 22px; padding: 20px 0; border-top: 1px solid rgba(10, 42, 56, .12); }
.pm-pillars .num { font-family: var(--serif); font-size: 22px; color: var(--blue); line-height: 1.2; }
.pm-pillars h4 { font-size: 18px; margin-bottom: 4px; }
.pm-pillars p { margin: 0; color: var(--muted); }

/* Services */
.pm-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pm-svc { padding: 30px; min-height: 290px; }
.pm-svc .num { position: absolute; right: 26px; top: 24px; font-family: var(--serif); font-size: 18px; color: var(--gold); }
.pm-svc h3 { font-size: 21px; margin-top: 6px; }
.pm-svc p { flex: 1; }
.pm-svc .go { display: inline-flex; gap: 6px; align-items: center; margin-top: 18px; font-weight: 600; font-size: 14px; color: #fff; }
.pm-svc .go .i { width: 16px; height: 16px; transition: transform .25s; }
.pm-svc:hover .go .i { transform: translateX(4px); }

/* Explore tabs */
.pm-tabbar { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.pm-tabbar button { border: 0; cursor: pointer; font: 500 15px var(--font); color: var(--text); padding: 12px 22px; border-radius: 999px; background: rgba(255, 255, 255, .7); box-shadow: inset 0 1px 1px #fff; transition: .2s; }
.pm-tabbar button.on { background: var(--deep); color: #fff; box-shadow: none; }
.pm-panel { display: grid; grid-template-columns: 1.05fr .95fr; gap: 0; border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -50px rgba(5, 42, 54, .7); }
.pm-panel[hidden] { display: none; }
.pm-panel > * { min-width: 0; }
.pm-panel-img img { width: 100%; height: 100%; min-height: 440px; object-fit: cover; display: block; }
.pm-panel-text { padding: 48px; }
.pm-panel-text h3 { font-family: var(--serif); font-weight: 500; font-size: 36px; }
.pm-panel-text p { font-size: 17px; line-height: 1.7; }
.pm-panel-acts { display: flex; gap: 10px; flex-wrap: wrap; }

/* Consult options */
.pm-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.pm-way { padding: 38px; }
.pm-way-top { display: flex; align-items: center; gap: 14px; }
.pm-way-top .ic { margin: 0; }
.pm-way-top h3 { font-size: 22px; margin: 0; }
.pm-fee { font-size: 54px; color: #fff; margin: 22px 0 18px; line-height: 1; }
.pm-fee small { display: block; font-family: var(--font); font-size: 14px; letter-spacing: 0; color: var(--gold); margin-top: 10px; }
.pm-way .ticks li { color: rgba(255, 255, 255, .9); }
.pm-way .ticks .i { color: var(--gold); }
.pm-way .btn { align-self: flex-start; }

/* Doctor credential card (shown until a photo is uploaded) */
.doc-cred { position: relative; overflow: hidden; border-radius: 34px; padding: 44px 38px; color: #fff; background: linear-gradient(160deg, var(--deep), #0b5f76); box-shadow: 0 40px 70px -40px rgba(5, 42, 54, .9); }
.doc-cred > *:not(.lq-orb) { position: relative; z-index: 2; }
.doc-cred .lq-orb.a { background: rgba(45, 172, 201, .28); right: -160px; top: -200px; }
.doc-cred small { letter-spacing: .18em; text-transform: uppercase; font-size: 11.5px; color: var(--gold); }
.doc-cred .name { font-size: 54px; line-height: 1.05; margin: 90px 0 18px; }
.doc-cred .rule { width: 56px; height: 1px; background: var(--gold); margin-bottom: 18px; }
.doc-cred .t { font-size: 18px; margin: 0 0 6px; }
.doc-cred .d { margin: 0 0 4px; color: rgba(255, 255, 255, .75); }
.doc-cred .addr { display: flex; gap: 8px; align-items: center; margin: 26px 0 0; color: rgba(255, 255, 255, .85); font-size: 14.5px; }
.doc-cred .addr .i { width: 17px; height: 17px; color: var(--gold); }
.statement blockquote { line-height: 1.16; font-size: clamp(30px, 3.6vw, 48px); }

/* Tests */
.pm-tests-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-bottom: 40px; }
.pm-tests-head > * { min-width: 0; }
.pm-tests-head img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 30px; }
.pm-tests { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pm-test { padding: 26px; }
.pm-test small { display: block; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; font-weight: 600; color: var(--blue); margin-bottom: 8px; }
.pm-test h4 { font-size: 19px; margin-bottom: 8px; }
.pm-test p { margin: 0; font-size: 15.5px; }

/* Articles */
.pm-row-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.pm-articles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pm-article { color: var(--text); overflow: hidden; transition: transform .3s; }
.pm-article:hover { transform: translateY(-4px); }
.pm-article img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 28px 28px 0 0; }
.pm-article > div { padding: 22px 24px 26px; }
.pm-article small { color: var(--blue); font-weight: 600; font-size: 13px; }
.pm-article h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; margin: 8px 0; }
.pm-article p { margin: 0; color: var(--muted); font-size: 15px; }
.pm-read { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; align-items: start; }
.pm-read h2 { font-size: 28px; margin-top: 30px; }
.pm-meta { color: var(--muted); font-size: 14px; }
.pm-credits { padding-left: 18px; font-size: 14px; color: var(--muted); }
.pm-credits li { margin-bottom: 6px; }

/* Fee panel beside the schedule */
.pm-side { padding: 34px; }
.pm-side small { display: block; letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; font-weight: 600; color: var(--blue); margin-bottom: 10px; }
.pm-side-row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid rgba(10, 42, 56, .1); }
.pm-side-row b { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); }
.pm-side-tel { font-family: var(--serif); font-size: 28px; color: var(--ink); }

/* Footer */
.ft { position: relative; overflow: hidden; margin-top: 60px; padding: 70px 0 28px; background: linear-gradient(170deg, var(--deep), #03202a); color: rgba(255, 255, 255, .72); }
.ft .wrap { position: relative; z-index: 2; }
.ft .lq-orb.a { background: rgba(45, 172, 201, .28); top: -180px; right: -80px; width: 620px; height: 520px; }
.ft-cta { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding: 44px 48px; margin-bottom: 72px; background: linear-gradient(120deg, rgba(45, 172, 201, .55), rgba(255, 255, 255, .06)); }
.ft-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 46px); margin: 0 0 6px; }
.ft-cta p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.ft-cta-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.ft-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.05fr 1.05fr; gap: 48px; margin-bottom: 60px; }
.ft-grid > * { min-width: 0; }
.ft-brand > p { margin: 20px 0 22px; font-size: 15.5px; line-height: 1.65; }
.ft-contact { display: flex; gap: 12px; align-items: center; color: #fff; margin-bottom: 14px; font-weight: 500; word-break: break-word; }
.ft-contact > span:first-child { width: 42px; height: 42px; border-radius: 14px; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, .08); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .25); color: var(--gold); }
.ft-contact small { display: block; font-size: 12px; font-weight: 400; color: rgba(255, 255, 255, .55); }
.ft .socials { margin-top: 18px; }
.ft-col h4 { color: var(--gold); font-family: var(--font); font-size: 12.5px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.ft-col > a { display: block; padding: 6px 0; color: rgba(255, 255, 255, .78); font-size: 15px; transition: color .2s, transform .2s; }
.ft-col > a:hover { color: #fff; transform: translateX(3px); }
.ft-hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 14px; }
.ft-hours em { display: block; font-style: normal; text-align: right; color: rgba(255, 255, 255, .85); }
.ft-hours em.off { color: rgba(255, 255, 255, .4); }
.ft-hours .today, .ft-hours .today em { color: var(--gold); font-weight: 600; }
.ft-map { position: relative; height: 340px; border-radius: 30px; overflow: hidden; }
.ft-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.ft-map-card { position: absolute; right: 20px; top: 20px; width: min(320px, calc(100% - 40px)); padding: 26px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; background: rgba(255, 255, 255, .86); color: var(--text); }
.ft-map-card small { letter-spacing: .16em; text-transform: uppercase; font-size: 11.5px; font-weight: 600; color: var(--blue); }
.ft-map-card b { font-family: var(--serif); font-weight: 500; font-size: 24px; color: var(--ink); margin: 8px 0; line-height: 1.15; }
.ft-map-card p { margin: 0 0 16px; }
.ft-credit { color: var(--gold); }
.ft-bottom { display: flex; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.ft-legal { display: flex; gap: 18px; }
.ft-legal a { color: rgba(255, 255, 255, .8); }

@media (max-width: 1080px) {
  .section, .deep { padding: 84px 0; }
  .pm-intro-grid, .deep-head, .pm-tests-head, .pm-read, .pm-panel { grid-template-columns: 1fr; gap: 36px; }
  .pm-panel { gap: 0; }
  .pm-panel-img img { min-height: 300px; max-height: 380px; }
  .pm-services, .pm-articles, .pm-tests { grid-template-columns: 1fr 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section, .deep { padding: 66px 0; }
  .pm-services, .pm-articles, .pm-tests, .pm-ways, .ft-grid { grid-template-columns: 1fr; }
  .pm-photos { padding: 0 0 56px; }
  .pm-panel-text { padding: 26px; }
  .pm-way { padding: 26px; }
  .pm-fee { font-size: 42px; }
  .doc-cred { padding: 32px 26px; }
  .doc-cred .name { font-size: 42px; margin-top: 50px; }
  .ft-cta { padding: 28px 24px; margin-bottom: 48px; }
  .ft-map { height: auto; }
  .ft-map iframe { height: 260px; }
  .ft-map-card { position: static; width: 100%; }
  .ft { padding-bottom: 90px; }
}

/* ---- Phone app menu: floating tab bar + bottom sheet ---- */
.appbar, .sheet, .sheet-scrim, .nav-call { display: none; }
@media (max-width: 980px) {
  body:not(.auth-body) { padding-bottom: 0; }
  .nav-links, .hide-sm, .nav-hotline, .nav-actions .btn-primary, .p-burger { display: none; }
  .nav-actions { margin-left: auto; }
  .nav-in { border-radius: 999px; padding: 8px 10px 8px 14px; }
  .nav-call { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: linear-gradient(180deg, #33b8d4, #0e7c99); box-shadow: inset 0 1.5px 1px rgba(255, 255, 255, .55), 0 8px 16px -8px rgba(14, 124, 153, .8); }
  .ft { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .p-content { padding-bottom: calc(116px + env(safe-area-inset-bottom)); }

  .appbar {
    position: fixed; z-index: 60; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom));
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; height: 68px; padding: 0 4px 8px; border-radius: 28px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .66));
    -webkit-backdrop-filter: blur(18px) saturate(190%); backdrop-filter: blur(18px) saturate(190%);
    box-shadow: inset 0 1.5px 1px #fff, inset 0 -1px 1px rgba(255, 255, 255, .5), 0 18px 40px -14px rgba(4, 44, 60, .55);
    transition: transform .3s cubic-bezier(.2, .9, .25, 1);
  }
  .appbar > a, .appbar > button {
    display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 0; padding: 0; border: 0; background: none; cursor: pointer;
    font: 500 11px/1.25 var(--font); color: var(--muted); white-space: nowrap; -webkit-tap-highlight-color: transparent;
  }
  .appbar .ai { display: grid; place-items: center; width: 46px; height: 30px; border-radius: 999px; transition: background .2s, color .2s; }
  .appbar .ai .i { width: 22px; height: 22px; }
  .appbar .on, .sheet-open .appbar > button { color: var(--blue2); font-weight: 600; }
  .appbar .on .ai, .sheet-open .appbar > button .ai { background: rgba(45, 172, 201, .18); }
  .appbar > a:active .ai, .appbar > button:active .ai { transform: scale(.9); }
  .appbar-main { color: var(--blue2); font-weight: 600; }
  .appbar-main .ai {
    width: 56px; height: 56px; margin-top: -30px; margin-bottom: 3px; border-radius: 50%; color: #fff;
    background: linear-gradient(180deg, #33b8d4, #0e7c99);
    box-shadow: 0 0 0 5px rgba(255, 255, 255, .9), inset 0 1.5px 1px rgba(255, 255, 255, .55), 0 14px 22px -8px rgba(14, 124, 153, .9);
  }
  .appbar-main .ai .i { width: 25px; height: 25px; }
  /* Keep the form field visible while typing, and clear the way for open menus */
  body:has(input:focus, textarea:focus) .appbar, .side-open .appbar { transform: translateY(150%); }

  .sheet-scrim { display: block; position: fixed; inset: 0; z-index: 65; background: rgba(3, 32, 42, .45); opacity: 0; pointer-events: none; transition: opacity .3s; }
  .sheet-open .sheet-scrim { opacity: 1; pointer-events: auto; }
  .sheet-open { overflow: hidden; }
  .sheet {
    display: block; position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; overscroll-behavior: contain;
    padding: 6px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 32px 32px 0 0;
    background: linear-gradient(170deg, rgba(255, 255, 255, .97), rgba(240, 250, 252, .94));
    -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
    box-shadow: inset 0 1.5px 1px #fff, 0 -24px 60px -20px rgba(3, 32, 42, .5);
    transform: translateY(105%); visibility: hidden; transition: transform .38s cubic-bezier(.2, .9, .25, 1), visibility .38s; outline: none;
  }
  .sheet-open .sheet { transform: none; visibility: visible; }
  .sheet-grab { display: grid; place-items: center; padding: 8px 0 14px; cursor: grab; touch-action: none; }
  .sheet-grab span { width: 42px; height: 5px; border-radius: 99px; background: rgba(10, 42, 56, .2); }
  .sheet-account { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 22px; color: var(--ink); background: var(--sky); }
  .sheet-account .tx { flex: 1; min-width: 0; line-height: 1.25; }
  .sheet-account b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .sheet-account small { color: var(--muted); font-size: 13px; }
  .sheet-account > .i { color: var(--blue); width: 18px; height: 18px; }
  .sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
  .sheet-grid a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 4px 12px; border-radius: 20px; text-align: center; font-weight: 500; font-size: 13px; color: var(--ink); background: #fff; box-shadow: 0 8px 18px -14px rgba(8, 70, 95, .6); }
  .sheet-grid a:active { transform: scale(.96); }
  .sheet-grid span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 15px; color: #fff; background: linear-gradient(180deg, #33b8d4, #0e7c99); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .5); }
  .sheet-acts { display: flex; gap: 10px; }
  .sheet-acts .btn-primary { flex: 1; }
  .sheet-addr { display: flex; gap: 8px; align-items: flex-start; margin: 14px 2px 0; font-size: 13.5px; color: var(--muted); }
  .sheet-addr .i { width: 16px; height: 16px; margin-top: 2px; color: var(--blue); }
  .sheet-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; padding: 10px; border: 0; border-radius: 14px; background: none; font: 500 14px var(--font); color: var(--muted); cursor: pointer; }
}
@media (min-width: 981px) { .sheet-open { overflow: visible; } }
@media (max-width: 360px) {
  .appbar > a, .appbar > button { font-size: 10px; }
  .appbar .ai { width: 40px; }
}
@media (prefers-reduced-motion: reduce) { .sheet, .appbar, .sheet-scrim { transition: none; } }

@media (max-width: 400px) { .nav .logo img { height: 36px; } }

/* Dashboard drawer on phones: must sit above its scrim, so the shell can't be a stacking context */
@media (max-width: 980px) {
  body.panel .p-shell { z-index: auto; }
  body.panel .p-burger { display: none; }
  body.panel .p-side { z-index: 70; background: rgba(255, 255, 255, .97); }
  body.panel .p-scrim { z-index: 65; }
  .p-side-foot .p-help { padding: 0; background: none; }
  .p-side-foot .p-help b, .p-side-foot .p-help span { display: none; }
  .p-side-foot .p-help .btn { margin-top: 0 !important; background: var(--sky); color: var(--blue2); box-shadow: none; }
}
