:root {
    --bg: #f4f7f3;
    --surface: #ffffff;
    --tint: #eaf0eb;
    --ink: #14241e;
    --ink-2: #506159;
    --ink-3: #7b8b83;
    --line: #dce6df;
    --accent: #176b55;
    --accent-ink: #0f4f3e;
    --accent-soft: #e0f1e9;
    --ok: #16794f;
    --ok-soft: #e3f4ec;
    --warn: #a15c07;
    --warn-soft: #fbf0dc;
    --bad: #b3382c;
    --bad-soft: #fbe8e5;
    --shadow: 0 1px 2px rgba(20, 48, 38, .05), 0 18px 46px -28px rgba(20, 70, 52, .28);
    --r-sm: 12px; --r-md: 12px; --r-lg: 12px;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: "Vazirmatn", Tahoma, sans-serif; font-size: 15px; line-height: 1.85;
    -webkit-font-smoothing: antialiased; text-wrap: pretty;
}
body::before { content:""; position:fixed; inset:0; pointer-events:none; z-index:-1; opacity:.35; background-image:none; background-size:28px 28px; }
h1, h2, h3 { line-height: 1.35; margin: 0; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h2 { font-size: 1.3rem; font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, white); outline-offset: 2px; border-radius: 12px; }
.num, .tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 10px; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(245, 248, 250, .88); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar__in { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 1.25rem; }
.brand__mark { width: 28px; height: 28px; border-radius: 12px; background: var(--accent); position: relative; }
.brand__mark::before, .brand__mark::after { content: ""; position: absolute; background: #fff; border-radius: 2px; inset: 50% auto auto 50%; transform: translate(-50%, -50%); }
.brand__mark::before { width: 14px; height: 3.5px; }
.brand__mark::after { width: 3.5px; height: 14px; }
.nav { display: flex; gap: 4px; }
.nav a { color: var(--ink-2); padding: 6px 14px; border-radius: 12px; font-weight: 500; transition: background .2s, color .2s; }
.nav a:hover { background: var(--tint); color: var(--ink); }
.nav a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.topbar__end { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.topbar__end form { margin: 0; }
.who { display: grid; text-align: end; line-height: 1.35; margin-inline-end: 6px; }
.who small { color: var(--ink-3); font-size: .75rem; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
    font: inherit; font-weight: 600; padding: 9px 18px; border-radius: 12px; border: 1px solid transparent;
    transition: transform .15s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn--solid { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -8px var(--accent); }
.btn--solid:hover { background: var(--accent-ink); color: #fff; }
.btn--quiet { background: transparent; color: var(--ink-2); }
.btn--quiet:hover { background: var(--tint); color: var(--ink); }
.btn--line { background: var(--surface); border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn--danger { background: var(--bad-soft); color: var(--bad); }
.btn--sm { padding: 4px 13px; font-size: .85rem; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* Hero */
.hero { position: relative; padding: 76px 0 56px; overflow: hidden; }
.hero::before {
    content: ""; position: absolute; inset: -20% -10% auto; height: 560px; z-index: -1;
    background: none;
}
.hero__grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: end; }
.eyebrow { color: var(--accent-ink); font-weight: 600; font-size: .9rem; margin-bottom: 14px; display: flex; gap: 8px; align-items: center; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.hero h1 { max-width: 16ch; }
.hero__lead { color: var(--ink-2); margin-top: 16px; max-width: 46ch; font-size: 1.05rem; }

.ask { margin-top: 30px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 10px; box-shadow: var(--shadow); transition: border-color .2s, box-shadow .2s; }
.ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), var(--shadow); }
.ask__row { display: flex; gap: 10px; align-items: flex-end; }
.ask textarea { flex: 1; resize: none; border: 0; outline: 0; font: inherit; padding: 10px 14px; min-height: 56px; background: transparent; color: var(--ink); }
.ask__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 6px 8px 2px; }
.chip { font: inherit; font-size: .82rem; background: var(--tint); color: var(--ink-2); border: 0; padding: 3px 12px; border-radius: 12px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { background: var(--accent-soft); color: var(--accent-ink); }
.ask__hint { font-size: .8rem; color: var(--ink-3); margin-inline-end: auto; }

.hero__side { display: grid; gap: 14px; }
.stat { background: var(--surface); border-radius: 12px; padding: 16px 20px; display: flex; align-items: baseline; gap: 14px; border: 1px solid var(--line); }
.stat b { font-size: 1.9rem; font-weight: 800; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); }
.stat:nth-child(2) { margin-inline-start: 28px; }

/* Bento shortcuts */
.bento { display: grid; grid-template-columns: 1.4fr 1fr; grid-auto-rows: minmax(150px, auto); gap: 18px; padding: 8px 0 72px; }
.tile { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 26px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .2s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); color: var(--ink); }
.tile p { color: var(--ink-2); max-width: 34ch; }
.tile__go { margin-top: auto; color: var(--accent); font-weight: 600; }
.tile--wide { grid-row: span 2; background: var(--accent); color: #fff; border-color: transparent; }
.tile--wide:hover { color: #fff; }
.tile--wide p, .tile--wide .tile__go { color: rgba(255, 255, 255, .86); }
.tile--wide::after { content: ""; position: absolute; inset: auto -60px -60px auto; width: 240px; height: 240px; border-radius: 50%; border: 36px solid rgba(255, 255, 255, .08); }
.tile__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); display: grid; place-items: center; margin-bottom: 8px; }
.tile__ico svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile--wide .tile__ico { background: rgba(255, 255, 255, .16); }
.tile--wide .tile__ico svg { stroke: #fff; }

/* Sections */
.section { padding: 40px 0 64px; }
.section__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.section__head p { color: var(--ink-2); margin-top: 4px; }

/* Cards & lists */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.card--flat { border: 0; background: var(--surface); box-shadow: var(--shadow); }
.card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.doc { display: flex; gap: 14px; align-items: flex-start; }
.doc .presence { margin-inline-start:auto; color:var(--ok); background:var(--ok-soft); padding:1px 8px; border-radius: 12px; font-size:.72rem; white-space:nowrap; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.avatar--photo { display:block; object-fit:cover; object-position:center 28%; border:1px solid rgba(15, 107, 138, .13); box-shadow:0 5px 16px rgba(29, 61, 52, .11); }
.avatar--sm { width:38px; height:38px; border-radius: 12px; }
.person-inline { display:flex; align-items:center; gap:10px; min-width:0; }
.doc__meta { color: var(--ink-2); font-size: .9rem; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: .76rem; padding: 1px 9px; border-radius: 12px; background: var(--tint); color: var(--ink-2); font-weight: 500; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--warn { background: var(--warn-soft); color: var(--warn); }
.badge--bad { background: var(--bad-soft); color: var(--bad); }
.badge--accent { background: var(--accent-soft); color: var(--accent-ink); }
.rating { color: var(--warn); font-weight: 700; }
.fee { font-weight: 700; }
.fee small { font-weight: 400; color: var(--ink-3); }

/* AI answer */
.answer { margin-top: 48px; }
.answer__head { display: flex; gap: 14px; align-items: flex-start; background: var(--accent-soft); border-radius: 12px; padding: 18px 22px; }
.answer__head--alert { background: var(--bad-soft); color: var(--bad); }
.spark { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.spark svg { width: 18px; height: 18px; fill: #fff; }
.answer .grid { margin-top: 18px; }
.reason { font-size: .85rem; }

/* Forms */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; }
.input, select.input, textarea.input {
    font: inherit; width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px;
    background: var(--surface); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-error, .form-error { color: var(--bad); font-size: .85rem; }
.form-error { background: var(--bad-soft); padding: 10px 14px; border-radius: 12px; }
.ltr { direction: ltr; text-align: end; }
.filters { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; margin-bottom: 26px; align-items: end; }

/* Auth */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100dvh - 64px - 74px); }
.auth__panel { padding: 56px 8% ; display: flex; flex-direction: column; justify-content: center; gap: 24px; max-width: 560px; }
.auth__art { background: #0f6b8a; color: #fff; padding: 56px 8%; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; position: relative; overflow: hidden; }
.auth__art::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgba(255, 255, 255, .06); top: -120px; inset-inline-end: -120px; }
.auth__art p { color: rgba(255, 255, 255, .8); max-width: 34ch; }
.demo { font-size: .82rem; color: var(--ink-3); background: var(--tint); padding: 10px 14px; border-radius: 12px; }
.demo-login { display:grid; gap:12px; padding-top:4px; border-top:1px solid var(--line); }
.demo-login p { margin:3px 0 0; }
.demo-login__grid { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.demo-account { cursor:pointer; text-align:right; font:inherit; color:var(--ink); background:#fff; border:1px solid var(--line); border-radius: 12px; padding:13px 14px; transition:border-color .2s, transform .2s, box-shadow .2s; }
.demo-account:hover { border-color:var(--accent); transform:translateY(-1px); box-shadow:0 8px 22px rgba(29,61,52,.08); }
.demo-account span,.demo-account small { display:block; }
.demo-account span { color:var(--accent); font-weight:800; }
.demo-account small { margin-top:3px; color:var(--ink-3); }

/* Panel */
.panel { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 28px 0 72px; align-items: start; }
.side { position: sticky; top: 82px; z-index:20; display:flex; align-items:center; gap:4px; overflow-x:auto; padding:7px; background:rgba(255,255,255,.88); border:1px solid var(--line); border-radius: 12px; box-shadow:var(--shadow); backdrop-filter:blur(14px); }
.side a { display: flex; padding: 9px 14px; border-radius: 12px; color: var(--ink-2); font-weight: 500; }
.side a:hover { background: var(--tint); }
.side a.is-active { background: var(--accent-soft); color: var(--accent-ink); }
.side__label { padding:0 10px; color:var(--ink-3); font-size:.78rem; white-space:nowrap; border-inline-end:1px solid var(--line); }
.count { background: var(--accent); color: #fff; border-radius: 12px; font-size: .72rem; padding: 0 8px; align-self: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { position:relative; overflow:hidden; background: var(--surface); border-radius: 12px; padding: 18px 20px; border: 1px solid var(--line); }
.kpi::after { content:""; position:absolute; inset:auto 0 0; height:3px; background:var(--accent); opacity:.22; }
.kpi b { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--accent-ink); line-height: 1.4; }
.kpi span { color: var(--ink-2); font-size: .88rem; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.table th { text-align: start; font-weight: 600; font-size: .82rem; color: var(--ink-3); background: var(--tint); padding: 10px 16px; }
.table td { padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
.inline { display: inline; margin: 0; }
.empty { text-align: center; padding: 48px 20px; background: var(--surface); border: 1.5px dashed var(--line); border-radius: 12px; color: var(--ink-2); display: grid; gap: 10px; justify-items: center; }

/* Slots */
.days { display: grid; gap: 18px; }
.day__title { font-weight: 600; margin-bottom: 8px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot input { position: absolute; opacity: 0; }
.slot span { display: block; padding: 5px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-variant-numeric: tabular-nums; transition: all .15s; }
.slot input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--accent-soft); }
.slot input:disabled + span { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.slot:hover input:not(:disabled) + span { border-color: var(--accent); }
.split { display: grid; grid-template-columns: 1fr 1.2fr; gap: 28px; align-items: start; }

/* Chat */
.chat { display: grid; grid-template-columns: 260px 1fr; gap: 18px; }
.contacts { display: grid; gap: 4px; align-content: start; }
.contacts a { padding: 10px 14px; border-radius: 12px; color: var(--ink); display: flex; justify-content: space-between; }
.contacts a:hover { background: var(--tint); }
.contacts a.is-active { background: var(--accent-soft); }
.thread { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; height: 380px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 72%; padding: 8px 14px; border-radius: 12px; background: var(--tint); }
.msg--me { align-self: flex-start; background: var(--accent); color: #fff; border-radius: 12px; }
.msg small { display: block; opacity: .7; font-size: .72rem; }
.composer { display: flex; gap: 10px; margin-top: 12px; }

.portal-head { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px 24px; margin-bottom:22px; background:rgba(224,241,233,.84); border:1px solid var(--line); border-radius: 12px; }
.portal-head h1 { font-size:1.55rem; }
.portal-head--patient { background:#e5f2ec; }
.portal-person { display:flex; align-items:center; gap:16px; }
.dp-head { margin-bottom:18px; }

/* Doctor profile, booking and verified reviews */
.overline { display:block; color:var(--accent); font-size:.74rem; font-weight:700; letter-spacing:.035em; margin-bottom:4px; }
.page-alert { margin-bottom:18px; }
.doctor-page { padding-top:30px; }
.crumbs { display:flex; gap:9px; align-items:center; }
.doctor-hero { position:relative; overflow:hidden; display:flex; justify-content:space-between; align-items:center; gap:28px; padding:30px 34px; border-radius: 12px; background:var(--ink); color:#fff; box-shadow:0 30px 70px -44px rgba(10,55,40,.65); }
.doctor-hero::after { content:"+"; position:absolute; inset:-66px auto auto -18px; font-size:15rem; line-height:1; font-weight:300; color:rgba(255,255,255,.045); }
.doctor-identity { display:flex; align-items:center; gap:18px; position:relative; z-index:1; }
.avatar--xl { width:76px; height:76px; border-radius: 12px; font-size:1.65rem; background:#d9f0e5; }
.doctor-hero .overline { color:#8fd2bd; }
.doctor-hero h1 { font-size:clamp(1.8rem,3vw,2.7rem); }
.doctor-hero__meta { color:rgba(255,255,255,.68); }
.doctor-score { display:grid; min-width:140px; text-align:center; padding-inline-start:28px; border-inline-start:1px solid rgba(255,255,255,.16); position:relative; z-index:1; }
.doctor-score b { font-size:2.5rem; line-height:1.1; font-variant-numeric:tabular-nums; }
.doctor-score small { color:rgba(255,255,255,.62); }
.stars { color:#d59636; letter-spacing:.08em; white-space:nowrap; }
.doctor-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(340px,.72fr); gap:24px; align-items:start; margin-top:24px; }
.doctor-main { display:grid; gap:24px; }
.care-block { padding:30px; background:rgba(255,255,255,.84); border:1px solid var(--line); border-radius: 12px; box-shadow:var(--shadow); }
.lead-copy { max-width:62ch; font-size:1.02rem; color:var(--ink-2); margin-top:12px; }
.facts { margin:28px 0 0; display:grid; }
.facts>div { display:grid; grid-template-columns:130px 1fr; gap:20px; padding:16px 0; border-top:1px solid var(--line); }
.facts dt { color:var(--ink-3); }
.facts dd { margin:0; font-weight:600; }
.facts small { color:var(--ink-3); font-weight:400; }
.booking-card { position:sticky; top:166px; padding:26px; border-radius: 12px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.booking-card__head { display:flex; align-items:start; justify-content:space-between; gap:18px; padding-bottom:18px; border-bottom:1px solid var(--line); margin-bottom:18px; }
.live-dot { color:var(--ok); background:var(--ok-soft); padding:2px 9px; border-radius: 12px; font-size:.72rem; }
.live-dot::before { content:""; display:inline-block; width:6px; height:6px; background:currentColor; border-radius:50%; margin-inline-end:6px; }
.day-row { padding-bottom:14px; border-bottom:1px solid var(--line); }
.days { max-height:360px; overflow-y:auto; padding-inline-end:4px; }
.btn--wide { width:100%; }
.booking-note { text-align:center; color:var(--ink-3); font-size:.78rem; }
.secure-contact { margin-top:22px; padding-top:20px; border-top:1px solid var(--line); }
.secure-contact>p { margin-top:5px; }
.review-form { display:grid; gap:14px; background:var(--accent-soft); padding:20px; border-radius: 12px; margin-bottom:22px; }
.review-form .btn { justify-self:start; }
.rating-input { border:0; padding:0; margin:0; display:flex; flex-direction:row-reverse; justify-content:flex-end; width:max-content; }
.rating-input legend { font-size:.86rem; font-weight:600; margin-bottom:4px; }
.rating-input input { position:absolute; opacity:0; }
.rating-input label { color:#bcc7c0; font-size:1.8rem; cursor:pointer; transition:color .2s, transform .2s; }
.rating-input label:hover, .rating-input label:hover~label, .rating-input input:checked~label { color:#d59636; }
.rating-input label:hover { transform:translateY(-2px); }
.reviews { display:grid; gap:0; }
.review { padding:19px 0; border-top:1px solid var(--line); }
.review__head { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:7px; }
.review-total { background:var(--tint); padding:6px 12px; border-radius: 12px; }
.review-total b { font-size:1.2rem; color:var(--accent-ink); }
.empty--compact { padding:25px 16px; }

/* Search directories */
.directory-page { padding-top:34px; }
.directory-head { display:flex; justify-content:space-between; align-items:end; gap:30px; padding:34px; margin-bottom:20px; border-radius: 12px; background:var(--ink); color:#fff; }
.directory-head p { color:rgba(255,255,255,.7); max-width:58ch; }
.directory-head .overline { color:#8fd2bd; }
.directory-head--centers { background:var(--accent-ink); }
.result-count { display:grid; place-items:center; min-width:100px; min-height:86px; border:1px solid rgba(255,255,255,.16); border-radius: 12px; color:rgba(255,255,255,.72); }
.result-count b { color:#fff; font-size:1.9rem; line-height:1.1; }
.doctor-search, .center-filters { padding:18px; margin-bottom:22px; border-radius: 12px; background:var(--surface); border:1px solid var(--line); box-shadow:var(--shadow); }
.search-primary, .center-filters { display:flex; align-items:end; gap:12px; }
.field--grow { flex:1.5; }
.search-primary>.field:not(.field--grow), .center-filters>.field:not(.field--grow) { min-width:170px; }
.advanced-filters { margin-top:14px; border-top:1px solid var(--line); padding-top:10px; }
.advanced-filters summary { cursor:pointer; color:var(--accent-ink); font-weight:600; width:max-content; }
.advanced-filters__grid { display:grid; grid-template-columns:repeat(4,1fr); align-items:end; gap:12px; padding-top:12px; }
.check-filter { min-height:46px; display:flex; align-items:center; gap:8px; color:var(--ink-2); cursor:pointer; }
.check-filter input { accent-color:var(--accent); width:17px; height:17px; }
.results-bar { display:flex; align-items:center; justify-content:space-between; gap:18px; margin:12px 0 18px; }
.sort-form { display:flex; align-items:center; gap:9px; }
.sort-form .input { width:auto; padding-block:6px; }
.doctor-results { grid-template-columns:repeat(2,minmax(0,1fr)); }
.service-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; }
.service-list span { padding:5px 10px; background:var(--tint); border-radius: 12px; color:var(--ink-2); }
.visit-types { display:grid; grid-template-columns:repeat(2,1fr); gap:8px; }
.visit-types input { position:absolute; opacity:0; }
.visit-types span { display:grid; padding:10px 12px; border:1px solid var(--line); border-radius: 12px; cursor:pointer; font-weight:600; }
.visit-types small { color:var(--ink-3); font-weight:400; }
.visit-types input:checked+span { border-color:var(--accent); background:var(--accent-soft); color:var(--accent-ink); }
.center-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.center-card { display:grid; gap:16px; padding:22px; border-radius: 12px; background:var(--surface); border:1px solid var(--line); transition:transform .25s var(--ease), box-shadow .25s; }
.center-card:hover { transform:translateY(-3px); box-shadow:var(--shadow); }
.center-card__top { display:flex; align-items:flex-start; gap:13px; }
.center-card__top>.stars { margin-inline-start:auto; }
.center-symbol { flex:none; width:42px; height:42px; display:grid; place-items:center; border-radius: 12px; background:var(--accent-soft); color:var(--accent); font-size:1.5rem; }
.center-card__meta { display:flex; gap:24px; padding:10px 0; border-block:1px solid var(--line); color:var(--ink-3); }
.center-card__meta span { display:grid; }
.center-card__meta b { color:var(--ink); }
.phone-link { color:var(--ink-2); }
.center-profile { display:flex; align-items:end; justify-content:space-between; gap:24px; padding:32px; border-radius: 12px; background:var(--accent-soft); border:1px solid var(--line); }
.center-profile p { color:var(--ink-2); }
.center-profile__score { display:grid; text-align:end; }
.center-profile__score b { color:var(--bad); }
.center-detail-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:20px; margin-top:20px; align-items:start; }
.center-info { position:sticky; top:100px; }

.notice { background: var(--ok-soft); color: var(--ok); padding: 10px 16px; border-radius: 12px; margin-bottom: 18px; font-weight: 500; }
.crumbs { color: var(--ink-3); font-size: .88rem; margin-bottom: 14px; }
.notfound { text-align: center; padding: 96px 0; display: grid; gap: 14px; justify-items: center; }
.notfound b { font-size: 5rem; color: var(--accent); line-height: 1; font-variant-numeric: tabular-nums; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 12px; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 22px 0; color: var(--ink-3); font-size: .85rem; }
.foot__in { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.foot__links { display: flex; gap: 16px; }

@media (max-width: 900px) {
    .hero__grid, .bento, .auth, .panel, .split, .chat { grid-template-columns: 1fr; }
    .tile--wide { grid-row: auto; min-height: 220px; }
    .hero { padding-top: 40px; }
    .stat:nth-child(2) { margin-inline-start: 0; }
    .filters { grid-template-columns: 1fr; }
    .auth__art { display: none; }
    .auth__panel { max-width: none; padding: 40px 16px; }
    .side { position: static; grid-auto-flow: column; overflow-x: auto; }
    .nav { overflow-x: auto; }
    .nav a { padding: 6px 10px; white-space: nowrap; }
    .topbar__in { gap: 12px; }
    .who { display: none; }
}
@media (max-width: 900px) {
    .doctor-layout { grid-template-columns:1fr; }
    .booking-card { position:static; order:-1; }
    .doctor-hero { align-items:flex-start; }
    .search-primary, .center-filters { display:grid; grid-template-columns:1fr 1fr; }
    .advanced-filters__grid { grid-template-columns:1fr 1fr; }
    .doctor-results, .center-grid, .center-detail-grid { grid-template-columns:1fr; }
    .center-info { position:static; }
}
@media (max-width: 620px) {
    .doctor-hero { padding:24px 20px; display:grid; }
    .doctor-score { text-align:start; grid-template-columns:auto auto; justify-content:start; gap:0 10px; padding:14px 0 0; border:0; border-top:1px solid rgba(255,255,255,.16); }
    .doctor-score small { grid-column:1/-1; }
    .avatar--xl { width:58px; height:58px; border-radius: 12px; }
    .care-block, .booking-card { padding:20px; }
    .facts>div { grid-template-columns:1fr; gap:3px; }
    .composer { align-items:stretch; flex-direction:column; }
    .portal-head { align-items:flex-start; flex-direction:column; }
    .directory-head { align-items:flex-start; padding:24px 20px; }
    .result-count { min-width:74px; min-height:68px; }
    .search-primary, .center-filters, .advanced-filters__grid { grid-template-columns:1fr; }
    .results-bar { align-items:flex-start; flex-direction:column; }
    .center-profile { align-items:flex-start; flex-direction:column; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
