/* ===== Tokens ===== */
:root {
  --primary: #0f9b9b;
  --primary-dark: #0b7676;
  --primary-soft: #e7f6f6;
  --text: #16323a;
  --muted: #56707a;
  --border: #e1ecee;
  --bg: #ffffff;
  --bg-soft: #f4f9f9;
  --danger: #c0392b;
  --danger-soft: #fdecea;
  --ok: #12804c;
  --wa: #25d366;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 30px rgba(16, 70, 80, .08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-ar: "Tajawal", "Segoe UI", "Noto Sans Arabic", Tahoma, sans-serif;
  --header-h: 64px;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
html[lang="ar"] body { font-family: var(--font-ar); font-size: 17px; line-height: 1.75; }
img, svg { display: block; max-width: 100%; }
a { color: var(--primary-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { line-height: 1.35; }
p { margin: 0 0 1em; }
address { font-style: normal; }
button, input, textarea { font: inherit; color: inherit; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 560px) { .container { padding-inline: 24px; } }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--primary-dark); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }

/* ===== Icons inside text ===== */
.btn svg, .card__title svg, .pill svg, .footer__line svg, .lang-switch svg, .checklist svg, .service__dur svg,
.seo-demo__label svg, .seo-demo__files svg, .status svg { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* ===== Demo banner ===== */
.demo-banner { background: #fff6d6; color: #6b4e00; font-size: .85rem; text-align: center; padding: 7px 16px; border-bottom: 1px solid #f3e2a6; }
.demo-banner span { opacity: .85; }
@media (max-width: 559px) { .demo-banner span { display: none; } }

/* ===== Header ===== */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(10px); -webkit-backdrop-filter: saturate(180%) blur(10px); border-bottom: 1px solid var(--border); }
.topbar__inner { display: flex; align-items: center; gap: 10px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; margin-inline-end: auto; }
.brand__logo { width: 38px; height: 38px; padding: 7px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.brand__logo--xl { width: 72px; height: 72px; padding: 14px; border-radius: 20px; margin: 0 auto 16px; }
.brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand__name { font-weight: 800; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__short { display: none; }
@media (max-width: 479px) { .brand__full { display: none; } .brand__short { display: inline; } }
.brand__city { font-size: .78rem; color: var(--muted); }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.lang-switch[lang="ar"] { font-family: var(--font-ar); font-size: 1rem; }
.lang-switch[lang="fr"] { font-family: var(--font); }
.lang-switch:hover { background: #d4eeee; }
.lang-switch__short { display: none; font-family: var(--font); }
/* Small phones: give the clinic name room so it is never cut off */
@media (max-width: 399px) {
  .topbar__inner { gap: 8px; }
  .brand { gap: 8px; }
  .brand__logo { width: 34px; height: 34px; padding: 6px; }
  .lang-switch { padding: 6px 10px; }
  .lang-switch svg { display: none; }
}
@media (max-width: 359px) {
  .lang-switch__long { display: none; }
  .lang-switch__short { display: inline; }
  .brand__name { font-size: .95rem; }
}
.menu-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 12px; background: #fff; cursor: pointer; padding: 0; }
.menu-toggle svg { width: 22px; height: 22px; grid-area: 1 / 1; }
.menu-toggle svg:last-child, .menu-toggle[aria-expanded="true"] svg:first-child { display: none; }
.menu-toggle[aria-expanded="true"] svg:last-child { display: block; }

.nav { display: none; }
.nav.is-open { display: block; position: absolute; inset-inline: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--border); box-shadow: 0 18px 30px rgba(16, 70, 80, .1); padding: 8px 16px 18px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li a { display: block; padding: 13px 4px; font-weight: 600; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); }
.nav__cta { margin-top: 14px; width: 100%; }

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .nav, .nav.is-open { display: flex; align-items: center; gap: 22px; position: static; padding: 0; border: 0; box-shadow: none; background: none; }
  .nav ul { display: flex; gap: 22px; }
  .nav li a { padding: 6px 0; border: 0; color: var(--muted); font-weight: 500; font-size: .95rem; }
  .nav li a:hover { color: var(--primary-dark); }
  .nav__cta { margin: 0; width: auto; }
  .brand__name { font-size: 1.05rem; }
}

/* ===== Buttons ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 20px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .1s; text-align: center; }
.btn:active { transform: scale(.98); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: .92rem; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 1.05rem; }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(15, 155, 155, .28); }
.btn--primary:hover { background: var(--primary-dark); }
.btn--ghost { background: #fff; color: var(--primary-dark); border-color: var(--border); }
.btn--ghost:hover, .btn--outline:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn--outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #1eb457; }
.btn--link { background: none; border: 0; color: var(--primary-dark); padding: 6px 4px; min-height: 40px; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ===== Hero ===== */
.hero { background: radial-gradient(900px 380px at 100% 0%, var(--primary-soft), transparent 65%), linear-gradient(180deg, #f3fafa 0%, #fff 100%); padding: 32px 0 44px; overflow: hidden; }
html[dir="rtl"] .hero { background: radial-gradient(900px 380px at 0% 0%, var(--primary-soft), transparent 65%), linear-gradient(180deg, #f3fafa 0%, #fff 100%); }
.hero__inner { display: grid; gap: 28px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--primary-dark); font-size: .86rem; font-weight: 700; }
.hero__title { font-size: clamp(1.9rem, 7vw, 3.1rem); font-weight: 800; letter-spacing: -.02em; }
html[lang="ar"] .hero__title { letter-spacing: 0; }
.hero__sub { display: block; margin-top: .25em; font-size: .55em; font-weight: 700; color: var(--primary); letter-spacing: 0; }
.hero__tagline { font-size: 1.08rem; color: var(--muted); max-width: 34em; }
.hero__cta { display: grid; gap: 12px; margin: 22px 0 16px; }
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .92rem; font-weight: 600; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #c2cfd1; }
.status.is-open { color: var(--ok); }
.status.is-open::before { background: #1fb36b; box-shadow: 0 0 0 4px rgba(31, 179, 107, .18); }

.hero__art { position: relative; max-width: 420px; width: 100%; margin-inline: auto; }
.hero__svg { width: 100%; height: auto; }
.art-soft { fill: var(--primary-soft); }
.art-ring { fill: var(--primary); opacity: .1; }
.art-tooth { fill: #fff; stroke: var(--primary); stroke-width: .45; stroke-linejoin: round; }
.art-smile { fill: none; stroke: var(--primary); stroke-width: .5; stroke-linecap: round; }
.art-fill { fill: var(--primary); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-radius: 16px; box-shadow: 0 12px 30px rgba(16, 70, 80, .14); font-size: .85rem; line-height: 1.3; }
.float-card strong { display: block; font-size: .9rem; }
.float-card small { color: var(--muted); }
.float-card__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #e3f7ec; color: var(--ok); flex-shrink: 0; }
.float-card__icon svg { width: 20px; height: 20px; }
.float-card__icon--pin { background: var(--primary-soft); color: var(--primary); }
.float-card--a { top: 8%; inset-inline-start: -2%; }
.float-card--b { bottom: 6%; inset-inline-end: -2%; }

@media (min-width: 560px) { .hero__cta { display: flex; flex-wrap: wrap; } }
@media (min-width: 900px) {
  .hero { padding: 64px 0 80px; }
  .hero__inner { grid-template-columns: 1.15fr .85fr; gap: 48px; }
}

/* ===== Sections ===== */
.section { padding: 56px 0; }
.section--soft { background: var(--bg-soft); }
@media (min-width: 900px) { .section { padding: 84px 0; } }
.eyebrow { margin: 0 0 8px; color: var(--primary); font-weight: 800; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: .95rem; }
.section__title { font-size: clamp(1.55rem, 5vw, 2.25rem); font-weight: 800; margin-bottom: 24px; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 40em; }
.note, .fineprint { color: var(--muted); font-size: .9rem; }
.fineprint { margin: 20px 0 0; }
.note { margin-top: -12px; margin-bottom: 24px; }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; margin-bottom: 14px; }
.card__title svg { color: var(--primary); }
.card__title--sm { font-size: 1rem; margin: 18px 0 6px; }
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--services, .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid--services, .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* Services */
.service { display: flex; flex-direction: column; }
.service__icon { width: 54px; height: 54px; padding: 13px; border-radius: 16px; background: var(--primary-soft); color: var(--primary); }
.service__icon svg { width: 100%; height: 100%; }
.service h3 { font-size: 1.15rem; margin: 16px 0 6px; }
.service p { color: var(--muted); font-size: .97rem; }
.service__foot { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.service__price { margin: 0; display: flex; flex-direction: column; font-weight: 800; font-size: 1.1rem; color: var(--primary-dark); line-height: 1.3; }
.service__dur { display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: .82rem; color: var(--muted); }
.service__link { display: inline-flex; align-items: center; gap: 6px; min-height: 42px; padding: 8px 16px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-weight: 700; text-decoration: none; }
.service__link:hover { background: var(--primary); color: #fff; }
html[dir="rtl"] .arrow { transform: scaleX(-1); display: inline-block; }

/* About */
.about { display: grid; gap: 32px; align-items: center; }
.about__card { position: relative; overflow: hidden; text-align: center; padding: 40px 24px; border-radius: 28px; color: #fff; background: linear-gradient(140deg, var(--primary) 0%, var(--primary-dark) 100%); box-shadow: 0 20px 50px rgba(15, 155, 155, .25); max-width: 420px; width: 100%; margin-inline: auto; }
.about__monogram { width: 104px; height: 104px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 2px solid rgba(255, 255, 255, .4); font-size: 2.3rem; font-weight: 800; letter-spacing: .04em; font-family: var(--font); }
.about__doctor { font-size: 1.35rem; font-weight: 800; margin: 0 0 4px; }
.about__role { margin: 0; opacity: .9; }
.about__deco { position: absolute; width: 180px; height: 180px; inset-inline-end: -40px; bottom: -50px; opacity: .12; }
.about__deco svg { width: 100%; height: 100%; }
.about__text > p { color: #34525a; }
.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.checklist svg { color: #fff; background: var(--primary); border-radius: 50%; padding: 3px; width: 1.35em; height: 1.35em; }
@media (min-width: 640px) { .checklist { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .about { grid-template-columns: .8fr 1.2fr; gap: 64px; } }

/* Testimonials */
.testimonial { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.testimonial__top { display: flex; align-items: center; justify-content: space-between; }
.testimonial__quote { width: 30px; height: 30px; color: var(--primary); opacity: .5; }
html[dir="rtl"] .testimonial__quote { transform: scaleX(-1); }
.testimonial blockquote { margin: 0; font-size: 1.02rem; }
.testimonial figcaption { margin-top: auto; font-weight: 700; color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge--example { background: #fff6d6; color: #6b4e00; border: 1px solid #f3e2a6; }
.badge--today { background: var(--primary); color: #fff; margin-inline-start: 6px; font-size: .7rem; padding: 2px 8px; vertical-align: middle; }

/* Contact */
.contact { display: grid; gap: 16px; }
.contact__info { display: grid; gap: 16px; align-content: start; }
.contact__address { color: var(--muted); margin-bottom: 8px; }
.contact__address small { display: inline-block; margin-top: 4px; font-size: .88rem; }
.contact__phone { font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 10px; border-bottom: 1px solid var(--border); }
.hours li:last-child { border-bottom: 0; }
.hours li.is-today { background: var(--primary-soft); border-radius: 10px; font-weight: 700; border-bottom-color: transparent; }
.hours--compact li { padding: 7px 8px; font-size: .93rem; }
.hours__closed { color: var(--danger); font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #e9f1f2; min-height: 320px; box-shadow: var(--shadow); }
.map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; display: block; }
@media (min-width: 900px) { .contact { grid-template-columns: .95fr 1.05fr; gap: 24px; } .map, .map iframe { min-height: 100%; } }

/* Inclus / SEO demo */
.inclus { display: grid; gap: 28px; margin-top: 8px; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.features li { display: flex; gap: 14px; align-items: flex-start; }
.features h3 { font-size: 1.05rem; margin: 0 0 4px; }
.features p { margin: 0; color: var(--muted); font-size: .95rem; }
.feature__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.feature__icon svg { width: 20px; height: 20px; }
.seo-demo { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; min-width: 0; }
.seo-demo__label, .seo-demo__files { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); font-size: .9rem; margin: 0 0 12px; }
.seo-demo__files { font-weight: 500; margin: 14px 0 0; }
.serp { background: #fff; border-radius: 14px; padding: 16px; border: 1px solid var(--border); font-family: arial, sans-serif; }
html[lang="ar"] .serp { font-family: var(--font-ar); }
.serp p { margin: 0; }
.serp__site { display: flex; align-items: center; gap: 10px; margin-bottom: 6px !important; font-size: .85rem; line-height: 1.3; }
.serp__fav { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.serp__name { display: block; color: #202124; }
.serp__url { display: block; color: #4d5156; font-size: .8rem; }
.serp__title { color: #1a0dab; font-size: 1.15rem; line-height: 1.35; margin-bottom: 4px !important; }
.serp__desc { color: #4d5156; font-size: .9rem; line-height: 1.55; }
.jsonld { margin-top: 14px; }
.jsonld summary { cursor: pointer; font-weight: 700; color: var(--primary-dark); padding: 8px 0; }
.jsonld pre { margin: 8px 0 0; max-height: 300px; overflow: auto; background: #0f2d33; color: #d7f0f0; padding: 14px; border-radius: 12px; font-size: .75rem; line-height: 1.5; text-align: left; }
@media (min-width: 900px) { .inclus { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; } }

/* ===== Footer ===== */
/* Bottom padding keeps the last lines clear of the floating WhatsApp button (58px + 16px offset) */
.footer { background: #0f2d33; color: #cfe1e3; padding: 48px 0 calc(100px + env(safe-area-inset-bottom)); font-size: .95rem; }
.page-booking .footer { padding-bottom: calc(48px + env(safe-area-inset-bottom)); }
.footer a { color: #fff; }
.footer__grid { display: grid; gap: 28px; }
.footer__name { color: #fff; font-weight: 800; font-size: 1.1rem; }
.footer__heading { color: #fff; font-weight: 700; margin-bottom: 10px; }
.footer__line { display: flex; gap: 10px; align-items: flex-start; }
.footer__line svg { color: #5fd0d0; margin-top: .2em; }
.footer__hours { list-style: none; margin: 0; padding: 0; max-width: 300px; }
.footer__hours li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.footer__hours li.is-today { color: #fff; font-weight: 700; }
.footer .hours__closed { color: #ff9a8f; }
.footer__copy { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #8fb0b4; }
.footer__copy p { margin: 0 0 6px; }
.footer__copy a { color: #8fb0b4; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; } }

/* ===== Floating WhatsApp ===== */
.fab { position: fixed; z-index: 60; bottom: calc(16px + env(safe-area-inset-bottom)); inset-inline-end: 16px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 10px 28px rgba(37, 211, 102, .45); }
.fab svg { width: 30px; height: 30px; }

/* ===== Booking ===== */
.booking-page { background: var(--bg-soft); padding: 28px 0 64px; min-height: 70vh; }
.booking-wrap { display: grid; gap: 20px; }
.booking-head .section__title { margin-bottom: 8px; }
.booking-head .lead { margin: 0; }
.booking { padding: 0; overflow: hidden; }
.booking-aside { display: grid; gap: 16px; align-content: start; }
@media (min-width: 960px) {
  .booking-wrap { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
  .booking-head { grid-column: 1 / -1; }
  .booking-aside { position: sticky; top: calc(var(--header-h) + 16px); }
}
.booking__noscript { padding: 22px; margin: 0; }

.stepper { display: flex; list-style: none; margin: 0; padding: 16px 16px 0; gap: 6px; }
.stepper li { flex: 1; min-width: 0; }
.stepper__btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 6px; background: none; border: 0; padding: 0 0 12px; cursor: default; color: var(--muted); font-size: .78rem; font-weight: 600; }
.stepper__btn:not([disabled]) { cursor: pointer; }
.stepper__bar { width: 100%; height: 5px; border-radius: 999px; background: var(--border); }
.stepper li.is-done .stepper__bar, .stepper li.is-current .stepper__bar { background: var(--primary); }
.stepper li.is-current .stepper__btn { color: var(--primary-dark); font-weight: 800; }
.stepper li.is-done .stepper__btn { color: var(--text); }
.stepper__label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }

.booking__body { padding: 8px 16px 20px; }
@media (min-width: 560px) { .booking__body { padding: 8px 24px 24px; } .stepper { padding: 20px 24px 0; } }
.booking__stepinfo { color: var(--muted); font-size: .85rem; margin: 6px 0 2px; }
.booking__title { font-size: 1.35rem; margin: 0 0 16px; outline: none; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 6px 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .88rem; font-weight: 700; border: 0; cursor: pointer; min-height: 38px; }
html[dir="rtl"] .chip { padding: 6px 12px 6px 6px; }
.chip__edit { font-size: .75rem; font-weight: 600; background: #fff; border-radius: 999px; padding: 3px 9px; color: var(--muted); }
.chip svg { width: 16px; height: 16px; }

.svc-list { display: grid; gap: 10px; }
@media (min-width: 640px) { .svc-list { grid-template-columns: 1fr 1fr; } }
.svc { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px; text-align: start; background: #fff; border: 2px solid var(--border); border-radius: 16px; cursor: pointer; transition: border-color .15s, background .15s; min-height: 72px; }
.svc:hover { border-color: var(--primary); }
.svc[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.svc__icon { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); flex-shrink: 0; }
.svc[aria-pressed="true"] .svc__icon { background: #fff; }
.svc__icon svg { width: 100%; height: 100%; }
.svc__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.svc__title { font-weight: 800; }
.svc__meta { font-size: .85rem; color: var(--muted); }
.svc__price { font-weight: 800; color: var(--primary-dark); white-space: nowrap; font-size: .95rem; }

.cal { max-width: 420px; }
.cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal__month { font-weight: 800; font-size: 1.05rem; text-transform: capitalize; margin: 0; }
.cal__nav { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--border); background: #fff; cursor: pointer; }
.cal__nav svg { width: 20px; height: 20px; }
html[dir="rtl"] .cal__nav svg { transform: scaleX(-1); }
.cal__nav[disabled] { opacity: .35; cursor: not-allowed; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal__dow { text-align: center; font-size: .74rem; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: capitalize; }
.cal__day { aspect-ratio: 1; min-height: 40px; border: 0; border-radius: 12px; background: #fff; font-weight: 700; cursor: pointer; display: grid; place-items: center; font-size: .95rem; position: relative; border: 1px solid var(--border); font-family: var(--font); }
.cal__day:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-soft); }
.cal__day[disabled] { background: transparent; border-color: transparent; color: #b5c4c7; cursor: not-allowed; font-weight: 500; text-decoration: line-through; text-decoration-color: #d5dfe1; }
.cal__day.is-today::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--primary); }
.cal__day[aria-pressed="true"] { background: var(--primary); color: #fff; border-color: var(--primary); }
.cal__day[aria-pressed="true"]::after { background: #fff; }
.cal__legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cal__legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal__legend i { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--border); background: #fff; }
.cal__legend i.off { background: #eef3f4; border-color: transparent; }

.slots__group { margin-bottom: 18px; }
.slots__label { font-weight: 700; font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border-radius: 12px; border: 2px solid var(--border); background: #fff; font-weight: 700; cursor: pointer; font-family: var(--font); font-size: .98rem; }
.slot:hover:not([disabled]) { border-color: var(--primary); background: var(--primary-soft); }
.slot[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot[disabled] { background: repeating-linear-gradient(135deg, #f3f6f7, #f3f6f7 6px, #eaeff0 6px, #eaeff0 12px); color: #9fb1b5; border-color: transparent; text-decoration: line-through; cursor: not-allowed; }
.empty { padding: 16px; border-radius: 12px; background: #fff6d6; color: #6b4e00; }

.form { display: grid; gap: 16px; max-width: 520px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid var(--border); border-radius: 12px; background: #fff; font-size: 16px; }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(15, 155, 155, .15); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); background: #fffafa; }
.field input[type="tel"] { direction: ltr; text-align: start; }
html[dir="rtl"] .field input[type="tel"] { text-align: right; }
.field__error { display: flex; gap: 6px; align-items: flex-start; color: var(--danger); font-size: .88rem; font-weight: 600; margin: 6px 0 0; }
.field__count { font-size: .8rem; color: var(--muted); text-align: end; margin: 4px 0 0; }
.form-alert { padding: 12px 14px; border-radius: 12px; background: var(--danger-soft); color: var(--danger); font-weight: 700; margin: 0; }

.booking__actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--border); }
.booking__actions .btn--primary { margin-inline-start: auto; }
@media (max-width: 559px) {
  .booking__actions { position: sticky; bottom: 0; background: #fff; margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 20px rgba(16, 70, 80, .06); }
  .booking__actions .btn--primary { flex: 1; }
}

.confirm { text-align: center; padding: 12px 0 4px; }
.confirm__icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: #e3f7ec; color: var(--ok); }
.confirm__icon svg { width: 38px; height: 38px; }
.confirm h2 { font-size: 1.5rem; }
.summary { text-align: start; margin: 20px 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; }
.summary div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.summary div:last-child { border-bottom: 0; }
.summary div:nth-child(odd) { background: var(--bg-soft); }
.summary dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.summary dd { margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.confirm__actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .confirm__actions { grid-template-columns: 1fr 1fr; } }
.confirm__more { display: flex; justify-content: center; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; }
.demo-notice { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #fff6d6; color: #6b4e00; font-size: .88rem; text-align: start; }

/* 404 */
.notfound { text-align: center; padding: 80px 16px; max-width: 560px; }
.notfound [dir="rtl"] { margin-top: 40px; font-family: var(--font-ar); }

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