/*!
 * Medica – Medical & Dental Clinic HTML Template
 * Copyright (c) 2026 DesignVersa. All rights reserved. https://designversa.com
 */
:root {
    --teal: #0b7a75;
    --teal-dark: #085e5a;
    --navy: #0a2a3b;
    --navy-2: #0f3a50;
    --mint: #e2f5ee;
    --mint-2: #bfe8d8;
    --mint-ink: #1f9c7b;
    --coral: #ff6b57;
    --coral-dark: #e9523e;
    --coral-soft: #ffe8e3;
    --sky: #3b82c4;
    --amber: #e59a2f;
    --violet: #7c6ad6;
    --ink: #0b2230;
    --text: #3e5663;
    --muted: #6b8390;
    --line: #e1ebee;
    --bg: #ffffff;
    --bg-soft: #f3f8f7;
    --panel: #ffffff;
    --shadow: 0 20px 50px rgba(10, 42, 59, .09);
    --shadow-sm: 0 6px 18px rgba(10, 42, 59, .06);
    --radius: 20px;
    --head: "Outfit", system-ui, sans-serif;
    --sans: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
    --ink: #eaf4f5;
    --text: #c1d2d7;
    --muted: #8ba3ac;
    --line: #1d3542;
    --bg: #07161f;
    --bg-soft: #0b1f2a;
    --panel: #0e2531;
    --mint: #0f3934;
    --mint-2: #155246;
    --mint-ink: #4fd1ab;
    --teal: #19a39b;
    --coral-soft: #3a211d;
    --shadow: 0 20px 50px rgba(0, 0, 0, .4);
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.65; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); line-height: 1.12; margin: 0 0 12px; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0 0 16px; }
h1, h2 { text-wrap: balance; }
.container { width: min(1220px, 100% - 40px); margin-inline: auto; }
.section { padding: 110px 0; }
.section.tight { padding: 70px 0; }
.soft { background: var(--bg-soft); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; color: var(--teal); background: var(--mint); padding: 6px 14px 6px 10px; border-radius: 999px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint-ink) 22%, transparent); }
.head { max-width: 680px; margin-bottom: 54px; }
.head.center { margin-inline: auto; text-align: center; }
.head h2 { font-size: clamp(32px, 4vw, 50px); margin-top: 16px; }
.head p { font-size: 18px; color: var(--muted); margin: 0; }
.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 50px; flex-wrap: wrap; }
.head-row .head { margin-bottom: 0; }
.hl { color: var(--teal); position: relative; z-index: 0; white-space: nowrap; }
.hl::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; background: var(--mint-2); z-index: -1; border-radius: 4px; }
.coral { color: var(--coral); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border-radius: 14px; font: inherit; font-weight: 700; font-size: 15px; border: 1.5px solid transparent; cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s, border-color .2s, color .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral); color: #fff; box-shadow: 0 12px 26px rgba(255, 107, 87, .3); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-teal { background: var(--teal); color: #fff; box-shadow: 0 12px 26px rgba(11, 122, 117, .25); }
.btn-teal:hover { background: var(--teal-dark); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-light { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { padding: 10px 16px; font-size: 14px; border-radius: 12px; }
.btn-lg { padding: 17px 30px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.link { color: var(--teal); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.link svg { transition: transform .2s; }
.link:hover svg { transform: translateX(3px); }
.icon-btn { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); display: grid; place-items: center; cursor: pointer; position: relative; flex: none; }
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn svg { width: 18px; height: 18px; }

/* Utility bar + header */
.utility { background: var(--navy); color: #b9d3d9; font-size: 13px; }
.utility-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 40px; }
.utility svg { display: inline-block; vertical-align: -3px; margin-right: 6px; }
.u-emerg { color: #fff; font-weight: 600; }
.u-emerg svg { color: var(--coral); }
.u-emerg a { color: #ffb4a8; margin-left: 4px; }
.u-info { display: flex; gap: 22px; }
.header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 80px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--head); font-size: 25px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.logo small { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mint-ink); align-self: flex-end; margin: 0 0 5px -4px; }
.logo i { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(135deg, var(--teal), var(--mint-ink)); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(11, 122, 117, .28); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; font-weight: 600; font-size: 15px; }
.nav-links a { color: var(--text); transition: color .2s; position: relative; padding: 6px 0; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); transform: translateX(-50%); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); cursor: pointer; place-items: center; }
.mobile-menu { display: none; }

/* Hero */
.hero { position: relative; padding: 60px 0 150px; background: linear-gradient(180deg, var(--mint) 0%, color-mix(in srgb, var(--mint) 40%, var(--bg)) 70%, var(--bg) 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--teal) 16%, transparent) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: linear-gradient(90deg, #000, transparent 55%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 55%); opacity: .7; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 50px; align-items: center; }
.hero h1 { font-size: clamp(44px, 5.8vw, 76px); margin: 22px 0 22px; line-height: 1.02; letter-spacing: -.035em; }
.hero .lead { font-size: 19px; color: var(--text); max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 38px; }
.trust { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.trust b { color: var(--ink); }
.avatars { display: flex; }
.avatars span { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -10px; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(135deg, hsl(var(--h) 50% 58%), hsl(calc(var(--h) + 30) 45% 42%)); }
.avatars span:first-child { margin-left: 0; }
.stars { color: #f5a623; display: inline-flex; gap: 2px; }
.stars svg { width: 15px; height: 15px; }
.hero-visual { position: relative; height: 560px; }
.arch { position: absolute; inset: 0 40px 0 60px; border-radius: 260px 260px 32px 32px; background: linear-gradient(165deg, var(--teal) 0%, var(--navy) 100%); overflow: hidden; box-shadow: var(--shadow); }
.arch::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; left: 50%; top: 42%; transform: translate(-50%, -50%); border: 1.5px dashed rgba(255, 255, 255, .18); }
.arch::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; left: 50%; top: 45%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(191, 232, 216, .35), transparent 70%); }
.arch .crosses { position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cpath d='M28 22h4v6h6v4h-6v6h-4v-6h-6v-4h6z' fill='white' fill-opacity='.07'/%3E%3C/svg%3E"); }
.arch svg.person { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 96%; z-index: 1; }
.float { position: absolute; z-index: 3; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 14px 16px; font-size: 13px; display: flex; gap: 12px; align-items: center; color: var(--muted); }
.float b { display: block; color: var(--ink); font-size: 15px; font-family: var(--head); font-weight: 600; }
.float .fi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float .fi svg { width: 20px; height: 20px; }
.float.f1 { left: 0; top: 90px; }
.float.f2 { right: 0; top: 230px; }
.float.f3 { left: 20px; bottom: 60px; flex-direction: column; align-items: flex-start; gap: 6px; }
.pulse-line { width: 150px; height: 34px; color: var(--coral); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint-ink); box-shadow: 0 0 0 4px color-mix(in srgb, var(--mint-ink) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }

/* Quick book bar */
.quickbook { position: relative; z-index: 5; margin-top: -90px; }
.qb-card { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 26px; }
.qb-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.qb-tabs button { border: 0; background: var(--bg-soft); font: inherit; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 10px; color: var(--muted); cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.qb-tabs button svg { width: 16px; height: 16px; }
.qb-tabs button.active { background: var(--mint); color: var(--teal); }
.qb-form { display: grid; grid-template-columns: 1.1fr 1.1fr .9fr auto; gap: 14px; align-items: end; }
.qb-field { height: 68px; display: flex; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; background: var(--bg-soft); }
.qb-field > svg { width: 22px; height: 22px; color: var(--teal); flex: none; }
.qb-field div { flex: 1; min-width: 0; }
.qb-field label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.qb-field select, .qb-field input { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 2px 0; outline: none; }
.qb-form .btn { height: 68px; }

/* Feature ticks row */
.ticks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 60px; }
.tick { display: flex; gap: 14px; align-items: flex-start; }
.tick .ti { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; flex: none; }
.tick .ti svg { width: 22px; height: 22px; }
.tick b { display: block; color: var(--ink); font-family: var(--head); font-weight: 600; font-size: 17px; }
.tick span { font-size: 14px; color: var(--muted); }

/* Specialty cards */
.specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.spec { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; transition: transform .25s, box-shadow .25s, background .25s, border-color .25s; overflow: hidden; display: flex; flex-direction: column; }
.spec::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; background: var(--mint); opacity: .6; transition: transform .35s; }
.spec:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.spec:hover::after { transform: scale(1.4); }
.spec .si { position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 16px; background: var(--teal); color: #fff; display: grid; place-items: center; margin-bottom: 22px; box-shadow: 0 10px 22px rgba(11, 122, 117, .25); }
.spec .si svg { width: 26px; height: 26px; }
.spec h3 { font-size: 21px; margin-bottom: 8px; position: relative; z-index: 1; }
.spec p { color: var(--muted); font-size: 15px; margin-bottom: 18px; flex: 1; position: relative; z-index: 1; }
.spec .meta { display: flex; justify-content: space-between; align-items: center; font-size: 14px; border-top: 1px dashed var(--line); padding-top: 14px; position: relative; z-index: 1; }
.spec .meta span { color: var(--muted); }
.spec .go { width: 34px; height: 34px; border-radius: 50%; background: var(--bg-soft); color: var(--teal); display: grid; place-items: center; transition: background .2s, color .2s; }
.spec:hover .go { background: var(--coral); color: #fff; }
.spec .go svg { width: 16px; height: 16px; }
.spec ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; font-size: 14px; position: relative; z-index: 1; }
.spec ul li { display: flex; gap: 8px; align-items: center; }
.spec ul li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--mint-ink); flex: none; }
.spec.c-coral .si { background: var(--coral); box-shadow: 0 10px 22px rgba(255, 107, 87, .28); }
.spec.c-navy .si { background: var(--navy-2); box-shadow: 0 10px 22px rgba(10, 42, 59, .25); }
.spec.c-mint .si { background: var(--mint-ink); box-shadow: 0 10px 22px rgba(31, 156, 123, .25); }
[data-theme="dark"] .spec.c-navy .si { background: #2b6a8a; }

/* Split about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split h2 { font-size: clamp(32px, 3.8vw, 48px); margin-top: 16px; }
.split .lead { font-size: 18px; color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 24px 0 30px; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 24px; height: 24px; border-radius: 8px; margin-top: 1px; background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9c7b' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4L18 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.checks.two { grid-template-columns: 1fr 1fr; }
.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tile-art { border-radius: 24px; position: relative; overflow: hidden; background: linear-gradient(150deg, var(--mint-2), var(--mint)); min-height: 220px; }
.tile-art.tall { grid-row: span 2; min-height: 460px; background: linear-gradient(165deg, var(--teal), var(--navy)); }
.tile-art.coralbg { background: linear-gradient(150deg, #ffb8aa, var(--coral)); }
.tile-art svg.ill { position: absolute; inset: auto 0 0 0; width: 100%; height: auto; }
.tile-art .cap { position: absolute; left: 18px; top: 16px; z-index: 2; color: #fff; font-weight: 700; font-size: 13px; background: rgba(10, 42, 59, .35); backdrop-filter: blur(6px); padding: 6px 12px; border-radius: 999px; }
.tile-art.light .cap { color: var(--navy); background: rgba(255, 255, 255, .6); }
.badge-exp { position: absolute; right: -14px; bottom: 30px; z-index: 3; background: var(--coral); color: #fff; border-radius: 22px; padding: 18px 22px; box-shadow: 0 16px 34px rgba(255, 107, 87, .35); text-align: center; }
.badge-exp b { display: block; font-family: var(--head); font-size: 40px; line-height: 1; }
.badge-exp span { font-size: 13px; font-weight: 600; }

/* Stats band */
.stats-band { background: var(--navy); border-radius: 30px; padding: 56px 50px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; position: relative; overflow: hidden; }
.stats-band::after { content: ""; position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%; border: 50px solid rgba(191, 232, 216, .06); }
.stat { position: relative; z-index: 1; padding-left: 22px; border-left: 2px solid rgba(191, 232, 216, .2); }
.stat b { display: block; font-family: var(--head); font-size: clamp(38px, 4vw, 54px); color: #fff; font-weight: 600; line-height: 1.05; }
.stat b em { font-style: normal; color: var(--mint-2); }
.stat > span { color: #a9c6cd; font-size: 15px; }

/* Doctor cards */
.docs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.doc { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 12px 12px 20px; transition: transform .25s, box-shadow .25s; display: flex; flex-direction: column; }
.doc:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.portrait { position: relative; aspect-ratio: 1 / 1.02; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, hsl(var(--h, 165) 52% 90%), hsl(var(--h, 165) 42% 76%)); }
.portrait::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; left: 11%; top: 8%; border: 2px solid rgba(255, 255, 255, .55); }
.portrait::after { content: ""; position: absolute; width: 40%; aspect-ratio: 1; border-radius: 50%; right: -10%; bottom: 30%; background: rgba(255, 255, 255, .25); }
.portrait > svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 92%; height: auto; z-index: 1; }
[data-theme="dark"] .portrait { background: linear-gradient(160deg, hsl(var(--h, 165) 35% 30%), hsl(var(--h, 165) 38% 18%)); }
.portrait .avail { position: absolute; top: 12px; left: 12px; z-index: 2; background: rgba(255, 255, 255, .9); color: #0b2230; font-size: 12px; font-weight: 700; padding: 5px 10px 5px 8px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.portrait .avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--mint-ink); }
.portrait .avail.busy::before { background: var(--amber); }
.portrait .rate { position: absolute; top: 12px; right: 12px; z-index: 2; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 999px; display: inline-flex; gap: 4px; align-items: center; }
.portrait .rate svg { width: 12px; height: 12px; color: #f5a623; }
.doc-body { padding: 16px 8px 0; flex: 1; display: flex; flex-direction: column; }
.doc-body h3 { font-size: 20px; margin: 0 0 2px; }
.doc-body .role { color: var(--teal); font-weight: 600; font-size: 14px; }
.doc-body .info { display: flex; gap: 14px; font-size: 13px; color: var(--muted); margin: 10px 0 16px; flex-wrap: wrap; }
.doc-body .info span { display: inline-flex; gap: 5px; align-items: center; }
.doc-body .info svg { width: 14px; height: 14px; }
.doc-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin-top: auto; }
.doc-actions .btn { padding: 11px 14px; font-size: 14px; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step { position: relative; padding: 34px 30px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; right: 26px; top: 22px; font-family: var(--head); font-size: 54px; font-weight: 700; color: var(--mint); line-height: 1; }
.step .si { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 22px; }
.step .si svg { width: 24px; height: 24px; }
.step h3 { font-size: 21px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* Testimonials */
.quotes { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 22px; }
.quote { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; }
.quote.big { background: var(--teal); border-color: transparent; color: #d9f1ec; }
.quote.big p { color: #fff; font-size: 22px; }
.quote.big .who b { color: #fff; }
.quote.big .who small { color: #bfe8d8; }
.quote .qm { font-family: var(--head); font-size: 64px; line-height: .6; color: var(--coral); height: 28px; }
.quote p { font-size: 17px; color: var(--ink); line-height: 1.6; flex: 1; margin: 12px 0 24px; }
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.who b { display: block; color: var(--ink); }
.who small { color: var(--muted); }
.ava { width: 46px; height: 46px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; background: linear-gradient(135deg, hsl(var(--h, 170) 50% 55%), hsl(calc(var(--h, 170) + 35) 45% 40%)); }
.ava.sm { width: 34px; height: 34px; font-size: 12px; }
.ava.lg { width: 60px; height: 60px; font-size: 20px; }

/* Insurance logos */
.insurers { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.insurer { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 16px; padding: 20px 12px; background: var(--panel); color: var(--muted); font-family: var(--head); font-weight: 700; font-size: 17px; letter-spacing: -.01em; transition: color .2s, border-color .2s; }
.insurer:hover { color: var(--ink); border-color: var(--mint-2); }
.insurer svg { width: 24px; height: 24px; flex: none; }

/* CTA */
.cta { border-radius: 32px; padding: 64px; background: linear-gradient(120deg, var(--navy), var(--teal-dark)); color: #cfe6ea; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 300px; height: 300px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12 5h8v7h7v8h-7v7h-8v-7H5v-8h7z' fill='white' fill-opacity='.06'/%3E%3C/svg%3E") center / contain no-repeat; transform: rotate(12deg); }
.cta h2 { color: #fff; font-size: clamp(30px, 3.8vw, 46px); }
.cta p { color: #b8d4da; margin: 0; font-size: 17px; }
.cta .actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; position: relative; z-index: 1; }
.cta .phone-box { display: flex; gap: 12px; align-items: center; margin-top: 24px; color: #fff; }
.cta .phone-box i { width: 46px; height: 46px; border-radius: 14px; background: rgba(255, 107, 87, .2); color: #ffb0a4; display: grid; place-items: center; }
.cta .phone-box b { font-family: var(--head); font-size: 22px; display: block; line-height: 1.1; }
.cta .phone-box small { color: #9fc0c7; }

/* Blog preview cards */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post { display: flex; flex-direction: column; gap: 12px; }
.post h3 { font-size: 21px; margin: 4px 0 0; line-height: 1.3; }
.post p { color: var(--muted); margin: 0; font-size: 15px; }
.post .meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; align-items: center; }

/* Page hero */
.page-hero { position: relative; padding: 76px 0 60px; text-align: center; background: linear-gradient(180deg, var(--mint), var(--bg)); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(color-mix(in srgb, var(--teal) 14%, transparent) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at top, #000, transparent 70%); -webkit-mask-image: radial-gradient(ellipse at top, #000, transparent 70%); }
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(38px, 5vw, 62px); margin: 18px 0 14px; letter-spacing: -.03em; }
.page-hero .x-lead { font-size: 19px; margin-inline: auto; }
.crumbs { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.crumbs a:hover { color: var(--teal); }
.crumbs svg { width: 14px; height: 14px; }

/* Filters */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips button, .chips a { border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: 14px; background: var(--panel); color: var(--text); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; transition: border-color .2s, background .2s, color .2s; }
.chips button svg { width: 17px; height: 17px; }
.chips button:hover { border-color: var(--teal); color: var(--teal); }
.chips button.active { background: var(--navy); border-color: var(--navy); color: #fff; }
[data-theme="dark"] .chips button.active { background: var(--teal); border-color: var(--teal); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 34px; }
.searchbox { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 14px; color: var(--muted); min-width: 260px; }
.searchbox input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.count-note { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.empty-note { display: none; text-align: center; padding: 50px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }

/* Service detail */
.svc-hero { padding: 64px 0 70px; background: linear-gradient(180deg, var(--mint), var(--bg)); position: relative; overflow: hidden; }
.svc-hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.svc-hero h1 { font-size: clamp(40px, 5vw, 64px); margin: 14px 0; letter-spacing: -.03em; }
.svc-hero .lead { font-size: 18px; max-width: 560px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; max-width: 560px; }
.facts div { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.facts b { display: block; font-family: var(--head); font-size: 22px; color: var(--ink); font-weight: 600; }
.facts span { font-size: 13px; color: var(--muted); }
.svc-art { position: relative; aspect-ratio: 1 / .9; border-radius: 32px; background: linear-gradient(160deg, var(--teal), var(--navy)); overflow: hidden; box-shadow: var(--shadow); }
.svc-art svg.big { position: absolute; inset: 0; margin: auto; width: 62%; height: 62%; color: rgba(255, 255, 255, .92); }
.svc-art .ecg { position: absolute; left: 0; right: 0; bottom: 18%; width: 100%; height: 80px; color: #ff9c8e; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 50px; align-items: start; }
.aside { position: sticky; top: 110px; display: grid; gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card h3 { font-size: 20px; }
.card.dark { background: var(--navy); border-color: transparent; color: #b9d3d9; }
.card.dark h3 { color: #fff; }
.prose h2 { font-size: 32px; margin: 0 0 16px; }
.prose > * + h2, .prose > div + div { margin-top: 60px; }
.prose p { font-size: 17px; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag { font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 12px; background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.price-table th, .price-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table thead th { background: var(--bg-soft); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.price-table td b { color: var(--ink); display: block; }
.price-table td small { color: var(--muted); }
.price-table td.pr { font-family: var(--head); font-weight: 600; font-size: 19px; color: var(--ink); white-space: nowrap; text-align: right; }
.price-table th:last-child { text-align: right; }
.price-table tr:last-child td { border-bottom: 0; }
.expect { display: grid; gap: 14px; counter-reset: ex; }
.expect > div { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.expect > div::before { counter-increment: ex; content: counter(ex); width: 44px; height: 44px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; font-family: var(--head); font-weight: 700; font-size: 18px; }
.expect b { color: var(--ink); display: block; font-family: var(--head); font-size: 18px; font-weight: 600; }
.expect p { margin: 2px 0 0; color: var(--muted); font-size: 15px; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.side-list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; transition: background .2s; }
.side-list a:hover, .side-list a.on { background: var(--mint); color: var(--teal); }
.side-list svg { width: 19px; height: 19px; color: var(--teal); }
.side-list a span { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 13px; }
.hours { display: grid; gap: 9px; font-size: 15px; }
.hours div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 9px; border-bottom: 1px dashed var(--line); }
.hours div:last-child { border: 0; padding: 0; }
.hours b { color: var(--ink); font-weight: 600; }
.hours .today { color: var(--teal); }
.hours .today b { color: var(--teal); }
.card.dark .hours div { border-color: rgba(255, 255, 255, .12); }
.card.dark .hours b { color: #fff; }
.card.dark .hours .today, .card.dark .hours .today b { color: var(--mint-2); }

/* Doctor profile */
.profile { display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 50px; align-items: start; }
.profile-card { position: sticky; top: 110px; }
.profile-card .portrait { aspect-ratio: 1 / 1.05; border-radius: 22px; }
.profile-card .card { padding: 14px; }
.pc-body { padding: 20px 10px 8px; }
.pc-body h1 { font-size: 30px; margin: 0 0 4px; }
.pc-body .role { color: var(--teal); font-weight: 700; }
.info-list { display: grid; gap: 12px; font-size: 14px; margin: 20px 0; }
.info-list div { display: flex; gap: 10px; align-items: center; }
.info-list svg { width: 18px; height: 18px; color: var(--teal); flex: none; }
.mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 30px 0; }
.mini-stats div { background: var(--bg-soft); border-radius: 16px; padding: 18px; text-align: center; }
.mini-stats b { display: block; font-family: var(--head); font-size: 28px; color: var(--ink); font-weight: 600; line-height: 1.1; }
.mini-stats span { font-size: 13px; color: var(--muted); }
.sched { width: 100%; border-collapse: separate; border-spacing: 6px; font-size: 14px; }
.sched th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 4px; }
.sched td { text-align: center; padding: 12px 6px; border-radius: 12px; background: var(--bg-soft); color: var(--muted); font-weight: 600; }
.sched td.on { background: var(--mint); color: var(--teal); }
.sched td.first { text-align: left; background: none; color: var(--ink); padding-left: 0; }
.booker { border: 2px solid var(--mint-2); }
.days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; margin: 16px 0; }
.days button, .slots button { border: 1.5px solid var(--line); background: var(--panel); border-radius: 12px; padding: 10px 4px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; transition: border-color .2s, background .2s; }
.days button small { display: block; color: var(--muted); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; }
.days button:hover, .slots button:hover:not(:disabled) { border-color: var(--teal); }
.days button.sel, .slots button.sel { background: var(--teal); border-color: var(--teal); color: #fff; }
.days button.sel small { color: #cdeee6; }
.days button:disabled { opacity: .4; cursor: not-allowed; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slots button { font-size: 14px; }
.slots button:disabled { opacity: .38; text-decoration: line-through; cursor: not-allowed; }
.slot-label { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin: 16px 0 8px; display: flex; gap: 8px; align-items: center; }
.reviews { display: grid; gap: 16px; }
.review { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--panel); }
.review-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 10px; flex-wrap: wrap; }
.review p { margin: 0; }
.rating-sum { display: grid; grid-template-columns: auto 1fr; gap: 30px; align-items: center; margin-bottom: 22px; }
.rating-sum .big { font-family: var(--head); font-size: 60px; color: var(--ink); line-height: 1; font-weight: 600; text-align: center; }
.rbars { display: grid; gap: 7px; font-size: 13px; }
.rbars div { display: grid; grid-template-columns: 36px 1fr 36px; gap: 10px; align-items: center; color: var(--muted); }
.rbars i { height: 8px; border-radius: 99px; background: var(--bg-soft); overflow: hidden; display: block; }
.rbars i::before { content: ""; display: block; height: 100%; width: var(--w); background: #f5a623; border-radius: 99px; }

/* Appointment wizard */
.wizard { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 30px; align-items: start; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 30px; counter-reset: st; }
.stepper span { position: relative; padding: 12px 12px 12px 48px; border-radius: 14px; background: var(--bg-soft); font-size: 13px; font-weight: 700; color: var(--muted); counter-increment: st; line-height: 1.3; }
.stepper span::before { content: counter(st); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--panel); border: 1.5px solid var(--line); font-size: 12px; }
.stepper span.on { background: var(--navy); color: #fff; }
.stepper span.on::before { background: var(--coral); border-color: var(--coral); color: #fff; }
.stepper span.done { background: var(--mint); color: var(--teal); }
.stepper span.done::before { content: "✓"; background: var(--mint-ink); border-color: var(--mint-ink); color: #fff; }
[data-theme="dark"] .stepper span.on { background: var(--teal); }
.wstep { display: none; }
.wstep.on { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.wstep h2 { font-size: 28px; margin-bottom: 6px; }
.wstep > p { color: var(--muted); margin-bottom: 24px; }
.choices { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.choice { border: 1.5px solid var(--line); border-radius: 18px; padding: 16px 18px; background: var(--panel); cursor: pointer; display: flex; align-items: center; gap: 14px; text-align: left; font: inherit; color: var(--text); transition: border-color .2s, background .2s, box-shadow .2s; }
.choice:hover { border-color: var(--teal); }
.choice.sel { border-color: var(--teal); background: var(--mint); box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 15%, transparent); }
.choice .ci { width: 46px; height: 46px; border-radius: 14px; background: var(--mint); color: var(--teal); display: grid; place-items: center; flex: none; }
.choice.sel .ci { background: var(--teal); color: #fff; }
.choice .ci svg { width: 22px; height: 22px; }
.choice b { color: var(--ink); display: block; font-size: 16px; }
.choice small { color: var(--muted); font-size: 13px; }
.choice .end { margin-left: auto; text-align: right; font-size: 13px; color: var(--muted); }
.choice .mini { width: 56px; height: 56px; border-radius: 16px; flex: none; overflow: hidden; position: relative; background: linear-gradient(160deg, hsl(var(--h, 165) 52% 88%), hsl(var(--h, 165) 42% 74%)); }
.choice .mini svg { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; height: auto; }
.bnav { display: flex; justify-content: space-between; margin-top: 30px; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line); }
.summary { position: sticky; top: 110px; }
.summary .card { padding: 0; overflow: hidden; }
.sum-head { background: var(--navy); color: #b9d3d9; padding: 22px 24px; }
.sum-head h3 { color: #fff; margin: 0 0 2px; font-size: 20px; }
.sum-head small { font-size: 13px; }
.sum-body { padding: 20px 24px 24px; }
.sum-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.sum-row:last-of-type { border-bottom: 0; }
.sum-row i { width: 38px; height: 38px; border-radius: 12px; background: var(--bg-soft); color: var(--teal); display: grid; place-items: center; flex: none; }
.sum-row i svg { width: 18px; height: 18px; }
.sum-row small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.sum-row b { color: var(--ink); font-size: 15px; }
.sum-row b.empty { color: var(--muted); font-weight: 500; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; padding: 16px; border-radius: 14px; background: var(--mint); color: var(--teal); font-weight: 600; }
.sum-total b { font-family: var(--head); font-size: 24px; color: var(--ink); }
.done-box { text-align: center; padding: 20px 0 10px; }
.done-box .ok { width: 84px; height: 84px; border-radius: 50%; background: var(--mint); color: var(--mint-ink); display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--mint) 50%, transparent); }
.done-box .ok svg { width: 40px; height: 40px; }
.ticket { max-width: 520px; margin: 26px auto; border: 1.5px dashed var(--mint-2); border-radius: 20px; padding: 22px; text-align: left; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; background: var(--bg-soft); }
.ticket small { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.ticket b { color: var(--ink); }
.ticket .ref { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px dashed var(--mint-2); }
.ticket .ref b { font-family: var(--head); font-size: 22px; letter-spacing: .06em; color: var(--teal); }
.radio-row { display: flex; gap: 10px; flex-wrap: wrap; }
.radio-row label { flex: 1; min-width: 140px; display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: pointer; font-weight: 600; color: var(--ink); font-size: 15px; }
.radio-row label:has(input:checked) { border-color: var(--teal); background: var(--mint); }
.radio-row input { accent-color: var(--teal); }
.notice { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--coral-soft); color: var(--ink); font-size: 14px; align-items: flex-start; }
.notice svg { width: 20px; height: 20px; color: var(--coral); flex: none; margin-top: 1px; }
.notice.mint { background: var(--mint); }
.notice.mint svg { color: var(--teal); }

/* Forms */
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 7px; }
.field input, .field select, .field textarea { width: 100%; border: 1.5px solid var(--line); border-radius: 12px; padding: 13px 15px; font: inherit; background: var(--bg-soft); color: var(--ink); transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--panel); }
.field .error { display: none; color: #d6453a; font-size: 13px; margin-top: 5px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #d6453a; }
.field.invalid .error { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-success { display: none; background: var(--mint); color: var(--teal); padding: 14px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 16px; }

/* Pricing */
.billing { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 44px; font-weight: 600; color: var(--ink); }
.switch { width: 58px; height: 32px; border-radius: 999px; background: var(--line); border: 0; position: relative; cursor: pointer; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .25s; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
.switch.on { background: var(--teal); }
.switch.on::after { transform: translateX(26px); }
.save { font-size: 12px; background: var(--coral-soft); color: var(--coral-dark); padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: 26px; padding: 34px; display: flex; flex-direction: column; position: relative; }
.plan.pop { background: var(--navy); border-color: transparent; color: #b9d3d9; box-shadow: var(--shadow); }
.plan.pop h3, .plan.pop .price { color: #fff; }
.plan.pop .price small, .plan.pop .desc { color: #9fc0c7; }
.plan.pop .checks li::before { background-color: rgba(191, 232, 216, .15); }
.plan .flag { position: absolute; top: 24px; right: 24px; background: var(--coral); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; }
.plan .pi { width: 52px; height: 52px; border-radius: 16px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 20px; }
.plan.pop .pi { background: rgba(191, 232, 216, .12); color: var(--mint-2); }
.plan .pi svg { width: 24px; height: 24px; }
.plan h3 { font-size: 24px; margin: 0 0 4px; }
.plan .desc { color: var(--muted); font-size: 15px; margin: 0; }
.plan .price { font-family: var(--head); font-size: 52px; font-weight: 600; color: var(--ink); margin: 20px 0 4px; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-family: var(--sans); font-size: 15px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.plan .checks { flex: 1; margin-bottom: 28px; }
.pkgs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pkg { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; display: flex; flex-direction: column; }
.pkg .top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
.pkg .pi { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-soft); color: var(--coral); }
.pkg .pi svg { width: 22px; height: 22px; }
.pkg .tm { font-size: 13px; color: var(--muted); display: flex; gap: 5px; align-items: center; }
.pkg .tm svg { width: 14px; height: 14px; }
.pkg h3 { font-size: 20px; margin-bottom: 6px; }
.pkg .amt { font-family: var(--head); font-size: 34px; font-weight: 600; color: var(--ink); margin: 6px 0 12px; }
.pkg .amt s { font-size: 17px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.pkg ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 7px; font-size: 14px; flex: 1; }
.pkg ul li { display: flex; gap: 8px; }
.pkg ul li::before { content: "+"; color: var(--mint-ink); font-weight: 800; }
.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 640px; }
.compare th, .compare td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-family: var(--head); font-size: 18px; color: var(--ink); background: var(--bg-soft); font-weight: 600; }
.compare tr:last-child td { border-bottom: 0; }
.compare .y { color: var(--mint-ink); font-weight: 800; }
.compare .n { color: var(--muted); }

/* About */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.value { padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.value .vi { width: 52px; height: 52px; border-radius: 50%; background: var(--coral-soft); color: var(--coral); display: grid; place-items: center; margin-bottom: 18px; }
.value .vi svg { width: 24px; height: 24px; }
.value h3 { font-size: 20px; }
.value p { color: var(--muted); font-size: 15px; margin: 0; }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.accred { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.accred div { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); }
.accred i { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--mint-2); color: var(--teal); display: grid; place-items: center; flex: none; }
.accred i svg { width: 22px; height: 22px; }
.accred b { display: block; color: var(--ink); font-size: 15px; line-height: 1.3; }
.accred small { color: var(--muted); font-size: 13px; }
.facility { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fac { border-radius: 22px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); }
.fac .tile-art { border-radius: 0; min-height: 0; aspect-ratio: 300 / 190; }
.fac div.fb { padding: 20px 22px; }
.fac h3 { font-size: 19px; margin-bottom: 4px; }
.fac p { margin: 0; color: var(--muted); font-size: 14px; }

/* Contact */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: -30px; position: relative; z-index: 2; }
.ccard { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-sm); }
.ccard .cci { width: 50px; height: 50px; border-radius: 15px; background: var(--mint); color: var(--teal); display: grid; place-items: center; margin-bottom: 16px; }
.ccard .cci svg { width: 23px; height: 23px; }
.ccard h3 { font-size: 19px; margin-bottom: 4px; }
.ccard p { color: var(--muted); font-size: 15px; margin: 0 0 12px; }
.ccard a.big { font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--ink); }
.ccard.emerg { background: var(--coral); border-color: transparent; color: #fff; }
.ccard.emerg .cci { background: rgba(255, 255, 255, .2); color: #fff; }
.ccard.emerg h3, .ccard.emerg a.big { color: #fff; }
.ccard.emerg p { color: #ffe3dd; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 30px; align-items: start; }
.map { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #e8f1ee; border: 1px solid var(--line); }
[data-theme="dark"] .map { background: #0c2530; }
.map svg { width: 100%; height: 100%; }
.map .pinbox { position: absolute; left: 52%; top: 44%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; }
.map .pinbox span { background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; white-space: nowrap; margin-bottom: 6px; box-shadow: var(--shadow-sm); }
.map .pinbox i { width: 44px; height: 44px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--coral); display: grid; place-items: center; box-shadow: 0 10px 20px rgba(255, 107, 87, .4); }
.map .pinbox i svg { transform: rotate(45deg); width: 20px; height: 20px; color: #fff; }
.emerg-band { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; border-radius: 24px; background: var(--coral-soft); border: 1px solid color-mix(in srgb, var(--coral) 30%, transparent); }
.emerg-band .ei { width: 60px; height: 60px; border-radius: 18px; background: var(--coral); color: #fff; display: grid; place-items: center; }
.emerg-band .ei svg { width: 28px; height: 28px; }
.emerg-band h3 { margin: 0 0 4px; font-size: 22px; }
.emerg-band p { margin: 0; color: var(--text); }

/* Footer */
.footer { background: var(--navy); color: #9fbcc4; padding: 0 0 30px; margin-top: 40px; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 44px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); flex-wrap: wrap; }
.footer-top h3 { color: #fff; font-size: 28px; margin: 0 0 4px; }
.footer-top p { margin: 0; }
.footer-top-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; padding: 56px 0 10px; }
.footer .logo { color: #fff; }
.f-about { margin: 18px 0 22px; max-width: 330px; font-size: 15px; }
.f-social { display: flex; gap: 8px; }
.f-social a { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: #d6e8ec; transition: background .2s; }
.f-social a:hover { background: var(--coral); color: #fff; }
.footer h4 { font-family: var(--head); font-size: 17px; color: #fff; margin-bottom: 18px; letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; font-size: 15px; }
.footer ul a:hover { color: #fff; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { flex: none; margin-top: 4px; color: var(--mint-2); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 14px; }
.footer-bottom a { color: #fff; }
.footer-bottom a:hover { color: var(--mint-2); }

/* ---------- Patient portal (app) ---------- */
.app-body { background: var(--bg-soft); }
.app-shell { display: grid; grid-template-columns: 262px 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #9fbcc4; padding: 24px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 4px; z-index: 60; }
.sidebar .logo { padding: 0 8px 22px; color: #fff; }
.side-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #6d8f98; padding: 16px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-weight: 600; font-size: 15px; color: #b4cdd3; transition: background .2s, color .2s; }
.side-link svg { width: 19px; height: 19px; flex: none; }
.side-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.side-link.active { background: var(--teal); color: #fff; }
.side-link .count { margin-left: auto; font-size: 12px; background: var(--coral); color: #fff; border-radius: 999px; padding: 1px 8px; }
.side-card { margin-top: auto; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px; font-size: 14px; }
.side-card b { display: block; color: #fff; font-family: var(--head); font-size: 17px; margin-bottom: 4px; }
.side-card a { display: inline-flex; gap: 6px; align-items: center; margin-top: 12px; background: var(--coral); color: #fff; padding: 8px 14px; border-radius: 10px; font-weight: 700; }
.app-main { min-width: 0; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; padding: 14px 32px; background: color-mix(in srgb, var(--bg-soft) 88%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; color: var(--muted); }
.topbar .search input { border: 0; outline: 0; background: transparent; font: inherit; color: var(--ink); width: 100%; }
.icon-btn .pip { position: absolute; top: 9px; right: 10px; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); border: 2px solid var(--panel); }
.me { display: flex; align-items: center; gap: 10px; font-size: 14px; margin-left: auto; }
.me b { display: block; color: var(--ink); line-height: 1.2; }
.me small { color: var(--muted); }
.side-toggle { display: none; }
.content { padding: 30px 32px 50px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.content > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .grid-main > * { min-width: 0; }
.welcome { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 30px 32px; border-radius: 24px; background: linear-gradient(120deg, var(--teal), var(--navy)); color: #cfe6ea; position: relative; overflow: hidden; }
.welcome::after { content: ""; position: absolute; right: 200px; top: -80px; width: 240px; height: 240px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .05); }
.welcome h1 { color: #fff; font-size: 30px; margin: 0 0 6px; }
.welcome p { margin: 0; }
.welcome .actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.panel-head h2 { font-size: 20px; margin: 0; }
.panel-head a { color: var(--teal); font-weight: 700; font-size: 14px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.kpi { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 16px; align-items: center; }
.kpi .k-ico { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; flex: none; }
.kpi .k-ico svg { width: 22px; height: 22px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.kpi b { display: block; font-family: var(--head); font-size: 24px; color: var(--ink); font-weight: 600; line-height: 1.2; }
.kpi small { color: var(--muted); font-size: 13px; }
.tint-teal { background: var(--mint); color: var(--teal); }
.tint-coral { background: var(--coral-soft); color: var(--coral); }
.tint-sky { background: color-mix(in srgb, var(--sky) 15%, transparent); color: var(--sky); }
.tint-violet { background: color-mix(in srgb, var(--violet) 15%, transparent); color: var(--violet); }
.tint-amber { background: color-mix(in srgb, var(--amber) 16%, transparent); color: var(--amber); }
.appt-list { display: grid; gap: 12px; }
.appt { display: grid; grid-template-columns: 64px 1fr; gap: 12px 16px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 16px; transition: opacity .3s; }
.appt .date { grid-row: span 2; align-self: start; text-align: center; background: var(--bg-soft); border-radius: 14px; padding: 8px 4px; }
.appt .date small { display: block; font-size: 11px; text-transform: uppercase; font-weight: 700; color: var(--coral); letter-spacing: .06em; }
.appt .date b { font-family: var(--head); font-size: 24px; color: var(--ink); line-height: 1.1; }
.appt h4 { font-family: var(--sans); font-size: 16px; margin: 0 0 2px; font-weight: 700; }
.appt p { margin: 0; font-size: 14px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.appt p span { display: inline-flex; gap: 5px; align-items: center; }
.appt p svg { width: 14px; height: 14px; }
.appt .acts { grid-column: 2; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.appt .acts .badge { margin-right: auto; }
.appt.cancelled { opacity: .55; }
.appt.cancelled h4 { text-decoration: line-through; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.b-ok { background: color-mix(in srgb, var(--mint-ink) 15%, transparent); color: var(--mint-ink); }
.b-warn { background: color-mix(in srgb, var(--amber) 17%, transparent); color: #b87512; }
.b-bad { background: color-mix(in srgb, var(--coral) 15%, transparent); color: var(--coral-dark); }
.b-info { background: color-mix(in srgb, var(--sky) 15%, transparent); color: var(--sky); }
[data-theme="dark"] .b-warn { color: var(--amber); }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 0 14px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.table td b { color: var(--ink); }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--bg-soft); }
.range-bar { display: block; position: relative; width: 120px; height: 6px; border-radius: 99px; background: linear-gradient(90deg, #f5b8ae 0 20%, var(--mint-2) 20% 80%, #f5b8ae 80%); }
.range-bar i { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); border: 2px solid var(--panel); transform: translate(-50%, -50%); }
[data-theme="dark"] .range-bar i { background: #fff; }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 12px; }
.tabs button { border: 0; background: transparent; font: inherit; font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 9px; color: var(--muted); cursor: pointer; }
.tabs button.active { background: var(--panel); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .06); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); }
.chart .axis { fill: var(--muted); font-size: 11px; font-family: var(--sans); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; }
.vitals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.vitals div { background: var(--bg-soft); border-radius: 14px; padding: 12px 14px; }
.vitals small { color: var(--muted); font-size: 12px; font-weight: 600; }
.vitals b { display: block; font-family: var(--head); color: var(--ink); font-size: 19px; font-weight: 600; }
.rx { display: grid; gap: 12px; }
.rx-item { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; background: var(--bg-soft); }
.rx-item i { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; }
.rx-item i svg { width: 20px; height: 20px; }
.rx-item b { color: var(--ink); display: block; font-size: 15px; }
.rx-item small { color: var(--muted); font-size: 13px; }
.rx-item .meter { height: 5px; border-radius: 99px; background: var(--line); margin-top: 7px; overflow: hidden; max-width: 200px; }
.rx-item .meter span { display: block; height: 100%; background: var(--teal); border-radius: 99px; }
.msgs { display: grid; gap: 4px; }
.msg { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; padding: 12px; border-radius: 14px; align-items: start; cursor: pointer; transition: background .2s; }
.msg:hover { background: var(--bg-soft); }
.msg b { color: var(--ink); font-size: 14px; display: block; }
.msg p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.msg time { font-size: 12px; color: var(--muted); }
.msg.unread b::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); margin-left: 7px; vertical-align: middle; }
.chat { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; padding: 4px 2px 10px; }
.bubble { max-width: 82%; padding: 11px 14px; border-radius: 16px; font-size: 14px; line-height: 1.45; }
.bubble.them { background: var(--bg-soft); color: var(--ink); border-bottom-left-radius: 4px; }
.bubble.me { background: var(--teal); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-top: 4px; }
.composer { display: flex; gap: 8px; margin-top: 10px; }
.composer input { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; background: var(--bg-soft); color: var(--ink); min-width: 0; }
.composer input:focus { outline: none; border-color: var(--teal); }
.care-team { display: grid; gap: 12px; }
.care-team div { display: flex; gap: 12px; align-items: center; }
.care-team .mini { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; position: relative; flex: none; background: linear-gradient(160deg, hsl(var(--h, 165) 52% 88%), hsl(var(--h, 165) 42% 74%)); }
.care-team .mini svg { position: absolute; bottom: 0; left: 0; width: 100%; height: auto; }
.care-team b { display: block; color: var(--ink); font-size: 14px; }
.care-team small { color: var(--muted); font-size: 13px; }
.care-team a { margin-left: auto; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 120px); background: var(--navy); color: #fff; padding: 13px 20px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: var(--shadow); z-index: 100; transition: transform .35s; display: flex; gap: 10px; align-items: center; }
.toast.show { transform: translate(-50%, 0); }
.toast svg { width: 18px; height: 18px; color: var(--mint-2); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 1180px) {
    .nav-links { display: none; }
    .menu-toggle { display: grid; }
    .nav-portal { display: none; }
    .mobile-menu { display: none; flex-direction: column; padding: 10px 20px 22px; border-top: 1px solid var(--line); background: var(--bg); }
    .mobile-menu.open { display: flex; }
    .mobile-menu a { padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--line); }
    .mobile-menu a.btn { margin-top: 14px; border: 0; padding: 14px; }
}
@media (max-width: 1100px) {
    .hero-grid, .split, .cta, .grid-main, .layout, .wizard, .profile, .svc-hero-grid, .story, .contact-grid { grid-template-columns: 1fr; }
    .specs, .docs, .grid-4, .values, .pkgs, .accred { grid-template-columns: repeat(2, 1fr); }
    .quotes, .plans, .posts, .facility, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .quote.big { grid-column: 1 / -1; }
    .insurers { grid-template-columns: repeat(3, 1fr); }
    .qb-form { grid-template-columns: 1fr 1fr; }
    .ticks { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cta .actions { justify-content: flex-start; }
    .aside, .summary, .profile-card { position: static; }
    .profile-card { max-width: 460px; }
    .hero-visual { max-width: 560px; margin: 0 auto; width: 100%; }
    .app-shell { grid-template-columns: 1fr; }
    .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-100%); transition: transform .3s; box-shadow: var(--shadow); }
    .sidebar.open { transform: none; }
    .side-toggle { display: grid; }
    .stepper { grid-template-columns: repeat(5, 1fr); }
    .stepper span { padding: 44px 8px 10px; text-align: center; font-size: 12px; }
    .stepper span::before { left: 50%; top: 10px; transform: translateX(-50%); }
}
@media (max-width: 680px) {
    .section { padding: 72px 0; }
    .container { width: min(1220px, 100% - 32px); }
    .utility .u-info { display: none; }
    .nav { height: 70px; }
    .nav-right .btn-primary { display: none; }
    .hero { padding: 40px 0 120px; }
    .hero-visual { height: 440px; }
    .arch { inset: 0 10px; }
    .float.f1 { left: -4px; top: 40px; }
    .float.f2 { right: -4px; top: 190px; }
    .float.f3 { display: none; }
    .specs, .docs, .grid-4, .grid-3, .grid-2, .values, .pkgs, .accred, .quotes, .plans, .posts, .facility, .choices, .form-row, .steps, .contact-cards, .ticks, .checks.two { grid-template-columns: 1fr; }
    .qb-form { grid-template-columns: 1fr; }
    .insurers { grid-template-columns: repeat(2, 1fr); }
    .stats-band { grid-template-columns: 1fr 1fr; padding: 36px 24px; gap: 24px; }
    .stat { padding-left: 14px; }
    .footer-grid { grid-template-columns: 1fr; }
    .cta { padding: 40px 24px; }
    .collage { grid-template-columns: 1fr 1fr; }
    .tile-art.tall { min-height: 340px; }
    .badge-exp { right: 8px; }
    .facts { grid-template-columns: 1fr 1fr 1fr; }
    .facts b { font-size: 18px; }
    .slots { grid-template-columns: repeat(3, 1fr); }
    .days { grid-template-columns: repeat(4, 1fr); }
    .stepper { gap: 4px; }
    .stepper span { font-size: 0; padding: 40px 0 6px; }
    .stepper span::before { font-size: 12px; }
    .ticket { grid-template-columns: 1fr; }
    .emerg-band { grid-template-columns: 1fr; }
    .rating-sum { grid-template-columns: 1fr; }
    .content { padding: 20px 16px 40px; }
    .topbar { padding: 12px 16px; }
    .topbar .search, .me div { display: none; }
    .welcome { grid-template-columns: 1fr; padding: 24px; }
    .appt { grid-template-columns: 56px 1fr; }
    .appt .acts { grid-column: 1 / -1; }
    .appt .date { grid-row: auto; }
    .vitals { grid-template-columns: 1fr 1fr; }
    .head-row { margin-bottom: 36px; }
    .price-table th, .price-table td { padding: 14px; }
    .toolbar .searchbox { min-width: 0; width: 100%; }
}

/* ------------------------------------------------------------------
   Shared page components (blog, auth, FAQ, team, gallery, legal, 404…)
   Colours come from the --x-* variables mapped above for this template.
   Copyright (c) 2026 DesignVersa. All rights reserved.
------------------------------------------------------------------- */
.x-center { text-align: center; }
.x-narrow { max-width: 760px; margin-inline: auto; }
.x-mt { margin-top: 40px; }
.x-muted { color: var(--x-muted); }
.x-grid-2, .x-grid-3, .x-grid-4 { display: grid; gap: 24px; }
.x-grid-2 { grid-template-columns: repeat(2, 1fr); }
.x-grid-3 { grid-template-columns: repeat(3, 1fr); }
.x-grid-4 { grid-template-columns: repeat(4, 1fr); }
.x-card { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 28px; }
.x-card h3 { font-size: 22px; margin-bottom: 8px; }
.x-card p:last-child { margin-bottom: 0; }
.x-icon { width: 52px; height: 52px; border-radius: calc(var(--x-radius) * .7); display: grid; place-items: center; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); margin-bottom: 18px; font-size: 22px; font-weight: 800; }
.x-title { font-size: clamp(30px, 4vw, 48px); margin: 10px 0 14px; }
.x-lead { font-size: 18px; color: var(--x-muted); max-width: 640px; }
.x-center .x-lead { margin-inline: auto; }
.x-head { margin-bottom: 44px; }

/* Placeholder artwork (swap for your own images) */
.x-art { position: relative; border-radius: var(--x-radius); overflow: hidden; aspect-ratio: 16 / 10; background: linear-gradient(135deg, hsl(var(--h, 240) 80% 62%), hsl(calc(var(--h, 240) + 45) 75% 48%)); }
.x-art::before { content: ""; position: absolute; width: 60%; aspect-ratio: 1; border-radius: 50%; right: -12%; top: -20%; border: 28px solid rgba(255, 255, 255, .18); }
.x-art::after { content: ""; position: absolute; width: 34%; aspect-ratio: 1; border-radius: 24%; left: 8%; bottom: -12%; background: rgba(255, 255, 255, .16); transform: rotate(14deg); }
.x-art.tall { aspect-ratio: 3 / 4; }
.x-art.wide { aspect-ratio: 21 / 9; }
.x-art.square { aspect-ratio: 1; }
.x-art span { position: absolute; left: 18px; bottom: 14px; z-index: 1; color: #fff; font-weight: 800; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }

/* Blog */
.x-posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.x-post { display: flex; flex-direction: column; gap: 12px; }
.x-post .x-meta { font-size: 13px; color: var(--x-muted); display: flex; gap: 10px; flex-wrap: wrap; }
.x-post h3 { font-size: 22px; line-height: 1.25; margin: 0; }
.x-post p { color: var(--x-muted); margin: 0; }
.x-post .x-more { color: var(--x-accent); font-weight: 700; }
.x-pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-accent); }
.x-featured { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; margin-bottom: 60px; }
.x-featured h2 { font-size: clamp(28px, 3.4vw, 42px); }
.x-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.x-cats a, .x-cats button { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font: inherit; font-weight: 600; background: transparent; color: var(--x-text); cursor: pointer; }
.x-cats .active { background: var(--x-accent); border-color: var(--x-accent); color: var(--x-on-accent); }

/* Article / prose */
.x-article { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.8; }
.x-article h2 { font-size: 30px; margin: 44px 0 14px; }
.x-article h3 { font-size: 23px; margin: 32px 0 10px; }
.x-article p { margin: 0 0 1.2em; }
.x-article ul, .x-article ol { padding-left: 22px; margin: 0 0 1.2em; }
.x-article li { margin-bottom: 8px; }
.x-article blockquote { margin: 32px 0; padding: 20px 26px; border-left: 4px solid var(--x-accent); background: var(--x-soft); border-radius: 0 var(--x-radius) var(--x-radius) 0; font-size: 21px; color: var(--x-ink); }
.x-article .x-art { margin: 30px 0; }
.x-author { display: flex; gap: 14px; align-items: center; margin: 22px 0 34px; }
.x-avatar { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; flex: none; background: linear-gradient(135deg, hsl(var(--h, 240) 75% 55%), hsl(calc(var(--h, 240) + 50) 70% 42%)); }
.x-avatar.lg { width: 110px; height: 110px; font-size: 34px; }
.x-share { display: flex; gap: 10px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--x-line); align-items: center; flex-wrap: wrap; }
.x-share a { border: 1px solid var(--x-line); border-radius: 999px; padding: 8px 16px; font-weight: 600; }

/* FAQ (no JavaScript needed) */
.x-faq { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.x-faq details { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 20px 24px; }
.x-faq summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 17px; color: var(--x-ink); display: flex; justify-content: space-between; gap: 16px; }
.x-faq summary::-webkit-details-marker { display: none; }
.x-faq summary::after { content: "+"; color: var(--x-accent); font-size: 24px; line-height: 1; }
.x-faq details[open] summary::after { content: "–"; }
.x-faq details p { margin: 12px 0 0; color: var(--x-muted); }
.x-faq-group { margin-bottom: 44px; }
.x-faq-group h2 { font-size: 26px; margin-bottom: 16px; max-width: 860px; margin-inline: auto; }

/* Auth pages */
.x-auth { min-height: 72vh; display: grid; place-items: center; padding: 60px 20px; }
.x-auth-card { width: min(460px, 100%); background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 40px; box-shadow: 0 20px 50px rgba(0, 0, 0, .08); }
.x-auth-card h1 { font-size: 32px; margin: 0 0 6px; }
.x-auth-card form { display: grid; gap: 16px; margin-top: 26px; }
.x-field label { display: block; font-size: 14px; font-weight: 600; color: var(--x-ink); margin-bottom: 7px; }
.x-field input, .x-field select, .x-field textarea { width: 100%; border: 1px solid var(--x-line); background: var(--x-soft); color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 13px 15px; font: inherit; }
.x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: none; border-color: var(--x-accent); }
.x-field .error { display: none; color: #dc2626; font-size: 13px; margin-top: 5px; }
.x-field.invalid input { border-color: #dc2626; }
.x-field.invalid .error { display: block; }
.x-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; flex-wrap: wrap; }
.x-row a, .x-link { color: var(--x-accent); font-weight: 600; }
.x-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.x-divider { display: flex; align-items: center; gap: 12px; color: var(--x-muted); font-size: 13px; margin: 6px 0; }
.x-divider::before, .x-divider::after { content: ""; flex: 1; height: 1px; background: var(--x-line); }
.x-social { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.x-social button { border: 1px solid var(--x-line); background: transparent; color: var(--x-ink); border-radius: calc(var(--x-radius) * .6); padding: 12px; font: inherit; font-weight: 600; cursor: pointer; }
.x-full { width: 100%; }
.form-success.x-success, .x-success { display: none; background: color-mix(in srgb, var(--x-accent) 16%, transparent); color: var(--x-ink); padding: 12px 14px; border-radius: calc(var(--x-radius) * .6); font-weight: 600; }

/* 404 */
.x-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.x-404 .code { font-size: clamp(110px, 22vw, 240px); font-weight: 800; line-height: .9; color: var(--x-accent); letter-spacing: -.05em; font-family: var(--x-heading); }
.x-404 h1 { font-size: clamp(28px, 4vw, 42px); margin: 16px 0 10px; }
.x-404 .x-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Team / people */
.x-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.x-member { text-align: center; }
.x-member .x-art { aspect-ratio: 4 / 5; margin-bottom: 16px; }
.x-member h3 { font-size: 20px; margin: 0 0 2px; }
.x-member p { color: var(--x-muted); margin: 0; font-size: 14px; }
.x-profile { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: start; }
.x-profile .x-art { aspect-ratio: 4 / 5; }
.x-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 26px 0; }
.x-stats div { background: var(--x-soft); border-radius: calc(var(--x-radius) * .8); padding: 18px; text-align: center; }
.x-stats b { display: block; font-size: 28px; color: var(--x-ink); font-family: var(--x-heading); }
.x-stats span { font-size: 13px; color: var(--x-muted); }

/* Lists, timeline, values */
.x-list { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.x-list li { display: flex; gap: 12px; align-items: flex-start; }
.x-list li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 12px; font-weight: 900; background: color-mix(in srgb, var(--x-accent) 18%, transparent); color: var(--x-accent); }
.x-timeline { position: relative; display: grid; gap: 28px; padding-left: 34px; max-width: 760px; }
.x-timeline::before { content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--x-line); }
.x-timeline div { position: relative; }
.x-timeline div::before { content: ""; position: absolute; left: -32px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--x-accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--x-accent) 20%, transparent); }
.x-timeline b { display: block; color: var(--x-accent); font-family: var(--x-heading); font-size: 20px; }
.x-timeline h3 { font-size: 20px; margin: 2px 0 4px; }
.x-timeline p { margin: 0; color: var(--x-muted); }
.x-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.x-kpi { text-align: center; padding: 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); }
.x-kpi b { display: block; font-size: 40px; color: var(--x-ink); font-family: var(--x-heading); line-height: 1.1; }
.x-kpi span { color: var(--x-muted); font-size: 14px; }

/* Gallery */
.x-gallery { columns: 3; column-gap: 20px; }
.x-gallery .x-art { break-inside: avoid; margin-bottom: 20px; }

/* Jobs / list rows */
.x-rows { display: grid; gap: 12px; }
.x-rowcard { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 22px 26px; border: 1px solid var(--x-line); border-radius: var(--x-radius); background: var(--x-card); transition: border-color .2s; }
.x-rowcard:hover { border-color: var(--x-accent); }
.x-rowcard h3 { font-size: 20px; margin: 0 0 2px; }
.x-rowcard small { color: var(--x-muted); }

/* Pricing packages */
.x-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.x-plan { background: var(--x-card); border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 32px; display: flex; flex-direction: column; }
.x-plan.hot { border: 2px solid var(--x-accent); }
.x-plan .x-price { font-size: 44px; font-weight: 800; color: var(--x-ink); font-family: var(--x-heading); margin: 12px 0; }
.x-plan .x-price small { font-size: 15px; color: var(--x-muted); font-weight: 500; }
.x-plan .x-list { flex: 1; }

/* Calculator */
.x-calc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.x-calc-out { background: var(--x-soft); border-radius: var(--x-radius); padding: 30px; text-align: center; }
.x-calc-out b { display: block; font-size: 52px; color: var(--x-accent); font-family: var(--x-heading); line-height: 1.1; margin: 8px 0; }
.x-range { width: 100%; accent-color: var(--x-accent); }

/* Legal */
.x-legal { display: grid; grid-template-columns: 240px 1fr; gap: 50px; align-items: start; }
.x-toc { position: sticky; top: 110px; display: grid; gap: 8px; font-size: 14px; }
.x-toc a { color: var(--x-muted); }
.x-toc a:hover { color: var(--x-accent); }
.x-legal .x-article { margin: 0; font-size: 16px; }

/* Logo / partner row */
.x-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.x-logos div { border: 1px solid var(--x-line); border-radius: var(--x-radius); padding: 18px 26px; font-weight: 800; font-size: 18px; color: var(--x-ink); background: var(--x-card); min-width: 150px; text-align: center; }

/* Call to action band */
.x-cta { border-radius: var(--x-radius); padding: 56px; text-align: center; background: var(--x-soft); border: 1px solid var(--x-line); }
.x-cta h2 { font-size: clamp(28px, 3.6vw, 42px); }

@media (max-width: 1024px) {
    .x-grid-4, .x-team, .x-kpis { grid-template-columns: repeat(2, 1fr); }
    .x-grid-3, .x-posts, .x-plans { grid-template-columns: repeat(2, 1fr); }
    .x-featured, .x-profile, .x-calc, .x-legal { grid-template-columns: 1fr; }
    .x-toc { position: static; }
    .x-gallery { columns: 2; }
}
@media (max-width: 640px) {
    .x-grid-2, .x-grid-3, .x-grid-4, .x-posts, .x-team, .x-plans, .x-kpis { grid-template-columns: 1fr; }
    .x-gallery { columns: 1; }
    .x-rowcard { grid-template-columns: 1fr; }
    .x-auth-card, .x-cta { padding: 28px 22px; }
    .x-stats { grid-template-columns: 1fr 1fr; }
}
.page-hero .x-lead { margin-inline: auto; }
.x-center .x-author { justify-content: center; }
.x-center .x-author > div { text-align: left; }

/* Shared component colours for Medica */
:root { --x-accent: var(--teal); --x-on-accent: #fff; --x-ink: var(--ink); --x-text: var(--text); --x-muted: var(--muted); --x-line: var(--line); --x-card: var(--panel); --x-soft: var(--bg-soft); --x-radius: 20px; --x-heading: var(--head); }
.x-auth { background: linear-gradient(180deg, var(--mint), var(--bg)); }
.x-auth-card { box-shadow: var(--shadow); border-radius: 26px; }
.x-auth-card h1 { letter-spacing: -.03em; }
.x-art { background: linear-gradient(140deg, hsl(var(--h, 175) 45% 52%), hsl(calc(var(--h, 175) + 25) 55% 24%)); }
.x-art::before { border-color: rgba(255, 255, 255, .14); }
.x-art::after { background: rgba(255, 255, 255, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M12 5h8v7h7v8h-7v7h-8v-7H5v-8h7z' fill='white' fill-opacity='.5'/%3E%3C/svg%3E") center / 40% no-repeat; }
.x-faq details { border-radius: 16px; }
.x-faq details[open] { border-color: var(--mint-2); }
.x-faq summary { font-family: var(--head); font-weight: 600; }
.x-faq summary::after { color: var(--coral); }
.x-cta { background: var(--mint); border-color: var(--mint-2); }
.x-cats .active { background: var(--navy); border-color: var(--navy); }
.x-pill { background: var(--mint); color: var(--teal); }
.x-404 .code { color: var(--teal); }
.x-404 .code::after { content: "+"; color: var(--coral); }
.x-toc a { padding: 4px 0; }
.x-article blockquote { background: var(--mint); color: var(--ink); border-left-color: var(--coral); font-family: var(--head); }
.x-field input, .x-field select, .x-field textarea { border-width: 1.5px; }
