@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@400;500;600;700;800&display=swap');

:root {
  --ink: #2e2f2d;
  --muted: #666b62;
  --muted-soft: #9a9d95;
  --paper: #ffffff;
  --paper-soft: #f6f8f1;
  --line: #e5e8de;
  --primary: #557625;
  --primary-dark: #3e5a19;
  --primary-soft: #eef6df;
  --accent: #8ec63f;
  --accent-soft: #f2fbdc;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(40, 45, 30, 0.07);
  --shadow: 0 12px 32px -12px rgba(40, 45, 30, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  background: var(--paper);
  color: var(--ink);
  direction: rtl;
  line-height: 1.85;
  font-size: 15.5px;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; line-height: 1.3; font-weight: 800; letter-spacing: -.01em; }
p { margin: 0; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 700; color: var(--primary);
  letter-spacing: .02em;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ---------- Top utility bar ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.75); font-size: 12.5px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; padding: 8px 24px; }
.topbar-info { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.topbar-info span { display: flex; align-items: center; gap: 6px; }
.topbar-info svg { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }
.topbar-social { display: flex; gap: 12px; }
.topbar-social a { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.topbar-social svg { width: 13px; height: 13px; }
.topbar-social a:hover { background: var(--accent); color: var(--ink); }

/* ---------- Header ---------- */
#site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease, padding .2s ease;
}
#site-header.shrink { box-shadow: var(--shadow-sm); }
#site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 19px 24px;
}
#site-header.shrink .bar { padding: 12px 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17.5px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  overflow: hidden; flex-shrink: 0; border: 1px solid var(--line); background: #fff;
  object-fit: cover;
}
.nav-links { display: flex; gap: 28px; align-items: center; font-weight: 500; font-size: 14px; }
.nav-link { color: var(--muted); padding: 6px 1px; border-bottom: 2px solid transparent; }
.nav-link.active, .nav-link:hover { color: var(--ink); border-color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; font-weight: 700; font-size: 14px;
  border: 1px solid transparent; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -6px rgba(85,118,37,.45); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -6px rgba(85,118,37,.55); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--ink); }
.menu-btn {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 40px; font-size: 17px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 76px;
  background:
    radial-gradient(680px 320px at 88% -10%, var(--primary-soft), transparent 65%),
    var(--paper);
  border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.hero .container { max-width: 760px; position: relative; }
.hero h1 { font-size: 44px; margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--primary); position: relative; }
.hero p.lead { color: var(--muted); font-size: 17px; max-width: 54ch; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 22px; margin-top: 44px; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero-badge svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

/* ---------- Brand banner ---------- */
.brand-banner {
  border-radius: var(--radius-lg); overflow: hidden; margin-top: -30px; position: relative; z-index: 4;
  box-shadow: var(--shadow); border: 1px solid var(--line); max-height: 220px;
}
.brand-banner img { width: 100%; height: 220px; object-fit: cover; object-position: center; }

/* ---------- Quick access grid ---------- */
.quick-access { padding: 0 0 8px; margin-top: 28px; position: relative; z-index: 5; }
.quick-grid {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
}
.quick-item {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 22px 10px; text-align: center; border-left: 1px solid var(--line);
  transition: background .15s ease;
}
.quick-item:last-child { border-left: none; }
.quick-item:hover { background: var(--paper-soft); }
.quick-item .qi-icon {
  width: 42px; height: 42px; border-radius: 12px; background: var(--primary-soft); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.quick-item .qi-icon svg { width: 20px; height: 20px; }
.quick-item span { font-size: 12.5px; font-weight: 700; color: var(--ink); }

/* ---------- Departments ---------- */
.dept-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.dept-card {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s ease, box-shadow .15s ease;
}
.dept-card:hover { border-color: var(--primary); box-shadow: var(--shadow-sm); }
.dept-card .dc-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.dept-card .dc-icon svg { width: 18px; height: 18px; }
.dept-card span { font-size: 13.5px; font-weight: 600; }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s ease, transform .2s ease; }
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.news-thumb { height: 130px; background: linear-gradient(135deg, var(--primary-soft), var(--paper-soft)); display: flex; align-items: center; justify-content: center; color: var(--primary); }
.news-thumb svg { width: 32px; height: 32px; opacity: .6; }
.news-body { padding: 20px; }
.news-date { font-size: 12px; color: var(--muted-soft); font-weight: 600; }
.news-card h3 { font-size: 15px; margin: 8px 0 8px; font-weight: 700; }
.news-card p { font-size: 13.5px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.contact-info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.contact-row { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-child { border-bottom: none; }
.contact-row .cr-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-row .cr-icon svg { width: 18px; height: 18px; }
.contact-row b { display: block; font-size: 13.5px; margin-bottom: 3px; }
.contact-row span { font-size: 13.5px; color: var(--muted); }
.map-box {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: repeating-linear-gradient(45deg, var(--paper-soft), var(--paper-soft) 10px, #fff 10px, #fff 20px);
  display: flex; align-items: center; justify-content: center; min-height: 260px; color: var(--muted);
}
.map-box .map-pin { width: 44px; height: 44px; color: var(--primary); margin-bottom: 10px; }
.map-box-inner { text-align: center; }
.map-box-inner span { font-size: 13px; }

/* ---------- Stats ---------- */
.stats { background: var(--ink); color: #fff; padding: 40px 0; }
.stats .container { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; }
.stat { padding: 0 18px; position: relative; }
.stat::before { content: ''; position: absolute; right: 0; top: 6px; bottom: 6px; width: 1px; background: rgba(255,255,255,.14); }
.stat:first-child::before { display: none; }
.stat b { display: block; font-size: 30px; font-weight: 800; color: #fff; }
.stat span { font-size: 13px; color: rgba(255,255,255,.6); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-head { max-width: 620px; margin: 0 0 42px; }
.section-head h2 { font-size: 29px; margin-top: 12px; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 15px; }

/* Services */
.services-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; max-width: 760px; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: box-shadow .2s ease, transform .2s ease;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.service-icon {
  width: 46px; height: 46px; border-radius: 12px; background: var(--primary-soft);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px; color: var(--primary);
}
.service-icon svg { width: 22px; height: 22px; }
.service-card h3 { font-size: 16.5px; margin-bottom: 9px; font-weight: 700; }
.service-card p { color: var(--muted); font-size: 14px; }

/* Doctors */
.filter-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 30px; }
.filter-tab {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s ease;
}
.filter-tab.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.doctors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doctor-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: box-shadow .2s ease, transform .2s ease;
}
.doctor-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.doctor-card.hidden { display: none; }
.doctor-avatar {
  width: 50px; height: 50px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 16px;
}
.doctor-card h3 { font-size: 16px; font-weight: 700; }
.doctor-specialty {
  display: inline-block; color: var(--primary); font-size: 12px; font-weight: 700;
  background: var(--primary-soft); padding: 3px 10px; border-radius: 999px; margin: 8px 0 12px;
}
.doctor-card p.bio { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; min-height: 42px; }
.doctor-hours { font-size: 12px; color: var(--muted-soft); border-top: 1px dashed var(--line); padding-top: 11px; margin-top: 11px; display: flex; align-items: center; gap: 6px; }
.doctor-hours svg { width: 14px; height: 14px; flex-shrink: 0; }
.doctor-card .btn { width: 100%; margin-top: 15px; padding: 10px; }

/* Testimonials */
.testi-slider { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--paper-soft); border: 1px solid var(--line); }
.testi-track { display: flex; transition: transform .5s ease; }
.testi-slide { min-width: 100%; padding: 56px 48px; text-align: center; }
.testi-quote { color: var(--primary); opacity: .35; margin: 0 auto 14px; width: 34px; height: 34px; }
.testi-slide p { font-size: 18.5px; max-width: 60ch; margin: 0 auto 20px; color: var(--ink); font-weight: 500; }
.testi-slide b { display: block; margin-top: 4px; font-size: 14.5px; }
.testi-slide span { color: var(--muted); font-size: 13px; }
.testi-nav { display: flex; justify-content: center; gap: 16px; padding: 18px 0; }
.testi-arrow { background: #fff; border: 1px solid var(--line); border-radius: 50%; width: 38px; height: 38px; transition: border-color .15s ease; }
.testi-arrow:hover { border-color: var(--primary); color: var(--primary); }
.testi-dots { display: flex; gap: 8px; align-items: center; }
.testi-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--line); border: none; padding: 0; }
.testi-dot.active { background: var(--primary); width: 22px; border-radius: 999px; }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 21px 0; font-weight: 700; font-size: 15px; }
.faq-q .plus { transition: transform .25s ease; color: var(--primary); font-size: 20px; font-weight: 400; flex-shrink: 0; margin-right: 16px; }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14.5px; }
.faq-a div { padding-bottom: 21px; max-width: 68ch; }

/* Forms (shared: booking, auth, consultation) */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 34px; box-shadow: var(--shadow); max-width: 560px;
}
.form-row { margin-bottom: 18px; }
.logged-as-box {
  background: var(--primary-soft); border: 1px solid var(--accent-soft);
  color: var(--ink); padding: 12px 14px; border-radius: 10px; font-size: 14px;
}
.form-row label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-family: inherit; font-size: 14.5px; background: var(--paper-soft); transition: border-color .15s ease, background .15s ease;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: 2px solid var(--primary); outline-offset: 1px; background: #fff; border-color: var(--primary);
}
.form-row.err input, .form-row.err select { border-color: #c0392b; }
.field-error { color: #c0392b; font-size: 12.5px; margin-top: 5px; display: none; }
.form-row.err .field-error { display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-success {
  display: none; background: var(--primary-soft); border: 1px solid var(--primary); color: var(--primary-dark);
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px; font-weight: 600;
}
.form-success.show { display: block; }
.form-error-box {
  display: none; background: #fbe9e7; border: 1px solid #f3c2ba; color: #a3311f;
  padding: 14px 16px; border-radius: var(--radius-sm); margin-bottom: 18px; font-size: 14px;
}
.form-error-box.show { display: block; }

/* ---------- Jalali calendar widget ---------- */
.date-field { position: relative; }
.date-display-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper-soft); font-family: inherit; font-size: 14.5px; color: var(--ink);
  text-align: right;
}
.date-display-btn svg { width: 17px; height: 17px; color: var(--muted); flex-shrink: 0; }
.date-display-btn.placeholder { color: var(--muted-soft); }
.jalali-cal {
  display: none; position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; left: 0;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 14px; min-width: 280px;
}
.jalali-cal.open { display: block; }
.jc-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; font-weight: 700; font-size: 14px; }
.jc-nav { background: var(--paper-soft); border: 1px solid var(--line); border-radius: 8px; width: 30px; height: 30px; font-size: 15px; }
.jc-nav:disabled { opacity: .35; }
.jc-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.jc-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.jc-day {
  aspect-ratio: 1; border: none; border-radius: 8px; background: none; font-size: 13px; color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.jc-day:hover:not(:disabled):not(.jc-empty) { background: var(--paper-soft); }
.jc-day:disabled { color: var(--muted-soft); opacity: .4; cursor: not-allowed; }
.jc-day.jc-empty { visibility: hidden; }
.jc-day.jc-today { font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--accent); }
.jc-day.jc-selected { background: var(--primary); color: #fff; font-weight: 700; }
.jc-legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.jc-dot { width: 8px; height: 8px; border-radius: 50%; }
.jc-dot-ok { background: var(--primary); }

/* Auth pages */
.auth-wrap { min-height: 72vh; display: flex; align-items: center; justify-content: center; padding: 64px 0;
  background: radial-gradient(680px 320px at 50% -10%, var(--primary-soft), transparent 65%); }
.auth-links { text-align: center; margin-top: 18px; font-size: 13.5px; color: var(--muted); }

/* Dashboard / admin */
.dash-header { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 40px 0; }
.dash-header h1 { font-size: 25px; }
.dash-header p { color: rgba(255,255,255,.78); margin-top: 6px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 30px; flex-wrap: wrap; }
.tab-btn {
  background: none; border: none; padding: 13px 4px; margin-left: 26px; font-weight: 700; font-size: 14px;
  color: var(--muted); border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--ink); border-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.data-table th, .data-table td { padding: 14px 16px; text-align: right; font-size: 14px; border-bottom: 1px solid var(--line); }
.data-table th { background: var(--paper-soft); color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: .02em; }
.data-table tr:last-child td { border-bottom: none; }
.status-pill { padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.status-pending { background: var(--accent-soft); color: #8a5a17; }
.status-confirmed { background: var(--primary-soft); color: var(--primary-dark); }
.status-cancelled { background: #fbe0dc; color: #a3311f; }
.status-done { background: var(--paper-soft); color: var(--muted); }
.empty-state { text-align: center; color: var(--muted); padding: 48px 20px; }
.record-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 19px 21px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.record-card h4 { font-size: 15.5px; margin-bottom: 4px; font-weight: 700; }
.record-card .meta { color: var(--muted); font-size: 13px; }
.inline-form { display: flex; gap: 10px; margin-top: 10px; }
.inline-form input, .inline-form select { flex: 1; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-family: inherit; }

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, var(--primary-dark), var(--primary));
  color: #fff; padding: 60px 0; text-align: center; border-radius: var(--radius-lg); margin: 0 24px;
}
.cta-band h2 { font-size: 27px; margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.82); }
.cta-band .btn-primary { background: #fff; color: var(--primary-dark); box-shadow: none; margin-top: 20px; }
.cta-band .btn-primary:hover { opacity: .92; }

/* Footer */
footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 52px 0 28px; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
footer h4 { color: #fff; font-size: 14.5px; margin-bottom: 15px; font-weight: 700; }
footer li { margin-bottom: 9px; font-size: 13.5px; }
footer li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 36px; padding-top: 22px; font-size: 12.5px; color: rgba(255,255,255,.45); text-align: center; }

/* To top */
#to-top {
  position: fixed; bottom: 24px; left: 24px; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; border: none; font-size: 18px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; z-index: 60;
}
#to-top.show { opacity: 1; pointer-events: auto; }
#to-top:hover { transform: translateY(-2px); }

/* Utility */
.text-center { text-align: center; }
.muted { color: var(--muted); }
.mt-24 { margin-top: 24px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-btn { display: block; }
  .services-grid, .doctors-grid { grid-template-columns: 1fr; }
  .stats .container { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 48px; }
  .hero h1 { font-size: 30px; }
  .testi-slide { padding: 40px 24px; }
  .cta-band { margin: 0 16px; padding: 44px 24px; }
  .topbar .container { flex-direction: column; gap: 6px; padding: 8px 24px; }
  .quick-access { margin-top: 0; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); border-radius: var(--radius); }
  .quick-item { border-left: none; border-bottom: 1px solid var(--line); }
  .dept-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* لینک‌های تماس: شماره تلفن (tel:) و ایمیل (mailto:) */
.topbar a { color: inherit; text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.contact-link { color: var(--primary); font-weight: 600; text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.ltr-link { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* ویرایشگر برنامهٔ کاری پزشک در پنل مدیر */
.days-grid { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 6px 0 12px; }
.days-grid label { display: flex; align-items: center; gap: 6px; font-weight: 500; cursor: pointer; }
.time-pair { display: flex; gap: 16px; flex-wrap: wrap; }
.time-pair .form-row { min-width: 140px; margin-bottom: 8px; }
.sch-editor { background: var(--primary-soft); border-radius: 10px; padding: 14px 16px; }
