:root {
  --navy: #0f2342;
  --navy-2: #1b3560;
  --ink: #1b1f27;
  --silver: #c5ccd6;
  --ice: #dcebf7;
  --mist: #f3f5f8;
  --white: #ffffff;
  --muted: #5b6677;
  --line: #e1e6ed;
  --radius: 14px;
  --font: "Vazirmatn", "Vazir", "IRANSans", Tahoma, system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--white);
  line-height: 1.9; font-size: 16px;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--navy-2); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* هدر */
header.site { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { font-weight: 800; font-size: 22px; color: var(--navy); letter-spacing: -.3px; display: flex; align-items: center; gap: 10px; }
.logo svg { width: 28px; height: 28px; }
nav.main { display: flex; gap: 26px; font-size: 15px; color: var(--muted); }
nav.main a:hover { color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 700; padding: 11px 22px; border-radius: 999px; background: var(--navy); color: var(--white); transition: background .2s; }
.btn:hover { background: var(--navy-2); }
.btn.ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--silver); }
.btn.ghost:hover { border-color: var(--navy); }
.menu-btn { display: none; }

/* Hero */
.hero { background: linear-gradient(180deg, var(--ice) 0%, var(--white) 100%); padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(30px, 4.6vw, 50px); line-height: 1.45; margin: 0 0 18px; color: var(--navy); font-weight: 800; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 52ch; margin: 0 0 28px; }
.search { display: flex; gap: 10px; background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 8px 8px 8px 8px; box-shadow: 0 8px 30px rgba(15,35,66,.07); max-width: 560px; }
.search input { flex: 1; border: 0; font: inherit; padding: 8px 18px; background: transparent; min-width: 0; }
.search input:focus { outline: none; }
.search:focus-within { border-color: var(--navy); }

/* کارت ساعات مطب: عنصر شاخص */
.ticket { background: var(--navy); color: var(--white); border-radius: 22px; padding: 28px; position: relative; }
.ticket::before, .ticket::after { content: ""; position: absolute; width: 26px; height: 26px; background: var(--ice); border-radius: 50%; top: 58%; }
.ticket::before { right: -13px; } .ticket::after { left: -13px; }
.ticket h2 { font-size: 20px; margin: 0 0 4px; }
.ticket .sub { color: var(--silver); font-size: 14px; margin: 0 0 22px; }
.days { display: flex; gap: 8px; margin-bottom: 22px; }
.days span { flex: 1; text-align: center; padding: 10px 0; border-radius: 10px; background: rgba(255,255,255,.1); font-weight: 700; font-size: 15px; }
.days span.off { opacity: .35; font-weight: 400; }
.ticket .time { font-size: 34px; font-weight: 800; border-top: 1.5px dashed rgba(255,255,255,.3); padding-top: 22px; }
.ticket .time small { display: block; font-size: 14px; font-weight: 400; color: var(--silver); }
.ticket .addr { margin-top: 14px; font-size: 14px; color: var(--silver); }

/* بخش‌ها */
section.block { padding: 64px 0; }
section.block.alt { background: var(--mist); }
h2.title { font-size: 28px; margin: 0 0 8px; color: var(--navy); }
p.sub { color: var(--muted); margin: 0 0 32px; max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 9px 18px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 15px; }
.chip.draft { border-style: dashed; color: var(--muted); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 6px; font-size: 18px; color: var(--navy); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); }
.steps li::before { content: counter(s, persian); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ice); color: var(--navy); font-weight: 800; margin-bottom: 10px; }
.steps b { display: block; color: var(--navy); }
.steps span { color: var(--muted); font-size: 14px; }
details { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); }
details p { color: var(--muted); margin: 10px 0 0; }
.notice { background: var(--ice); border-radius: 12px; padding: 14px 18px; font-size: 14px; color: var(--navy); margin-bottom: 24px; }

/* صفحه پزشک */
.doc-hero { padding: 48px 0; background: linear-gradient(180deg, var(--ice), var(--white)); }
.doc-hero .wrap { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; }
.portrait { aspect-ratio: 4/5; border-radius: 22px; background: repeating-linear-gradient(135deg, var(--mist) 0 14px, var(--ice) 14px 28px); display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 12px; border: 1px solid var(--line); }
.doc-hero h1 { margin: 0 0 4px; font-size: 34px; color: var(--navy); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin-top: 20px; font-size: 15px; }
.facts dt { color: var(--muted); font-size: 13px; }
.facts dd { margin: 0 0 6px; font-weight: 600; }
.ph { color: var(--muted); font-weight: 400; border-bottom: 1px dashed var(--silver); }
.layout { display: grid; grid-template-columns: 1fr 360px; gap: 36px; align-items: start; }
form.consult { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; position: sticky; top: 88px; box-shadow: 0 8px 30px rgba(15,35,66,.07); }
form.consult h3 { margin: 0 0 14px; color: var(--navy); }
label { display: block; font-size: 14px; font-weight: 600; margin: 0 0 6px; }
input, select { width: 100%; font: inherit; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: var(--white); }
input:focus, select:focus { border-color: var(--navy); outline: none; }
.err { color: #a12b2b; font-size: 13px; margin: -8px 0 12px; min-height: 0; }
.ok { background: #e7f5ec; color: #1d5a35; padding: 12px 14px; border-radius: 10px; font-size: 14px; }
.hint { font-size: 12px; color: var(--muted); margin: 10px 0 0; }

footer.site { background: var(--navy); color: var(--silver); padding: 40px 0; font-size: 14px; }
footer.site .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
footer.site a:hover { color: var(--white); }

@media (max-width: 900px) {
  nav.main { display: none; }
  nav.main.open { display: flex; flex-direction: column; position: absolute; top: 68px; inset-inline: 0; background: var(--white); padding: 18px 20px; border-bottom: 1px solid var(--line); gap: 14px; }
  .menu-btn { display: inline-flex; }
  .hero { padding: 40px 0; }
  .hero .wrap, .doc-hero .wrap, .layout { grid-template-columns: 1fr; gap: 28px; }
  .grid3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .doc-hero .wrap { justify-items: start; }
  .portrait { width: 180px; }
  form.consult { position: static; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } .search { border-radius: 18px; flex-direction: column; } }
@counter-style persian { system: numeric; symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹"; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ضدربات: فیلد پنهان برای کاربر واقعی */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Consent control for the public consultation form */
.consent-row{display:flex;align-items:flex-start;gap:9px;margin:14px 0 4px;color:var(--muted);font-size:12px;line-height:1.8}
.consent-row input{width:auto;min-width:16px;margin-top:5px;accent-color:var(--navy)}
