/* Asian Polyclinic, Option B: Bold Brand
   Large brand-colour fields (#6969B3 to #24337A), the trefoil mark as a
   low-opacity tessellated pattern on dark sections, big confident type,
   colour-blocked cards. Tokens: scale -> semantic -> components. */

@font-face { font-family: "Readex Pro"; src: url("../shared/fonts/readex-pro-latin-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Readex Pro"; src: url("../shared/fonts/readex-pro-arabic-wght-normal.woff2") format("woff2"); font-weight: 160 700; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC; }

:root {
  /* Indigo scale (500 = old --theme-three, 700 = --theme-four, 900 = --theme-six) */
  --ind-50: #F3F3FA; --ind-100: #E6E6F4; --ind-200: #CBCBE8; --ind-300: #A9A9D7; --ind-400: #8787C5;
  --ind-500: #6969B3; --ind-600: #5353A3; --ind-700: #3E4C94; --ind-800: #2F3C86; --ind-900: #24337A; --ind-950: #161F52;
  --peri-200: #D6DCF6; --peri-400: #96A6EB;
  --n-0: #FFFFFF; --n-50: #F7F7FB; --n-200: #E2E2EE; --n-400: #82829A; --n-500: #5E5E78; --n-700: #34344C; --n-900: #14142B;
  --red-700: #B3261E; --red-50: #FDECEA;
  --wa-500: #25D366; --wa-ink: #072E1F;

  --color-bg: var(--n-0);
  --color-bg-tint: var(--ind-50);
  --color-bg-brand: var(--ind-500);
  --color-bg-dark: var(--ind-900);
  --color-bg-darker: var(--ind-950);
  --color-text: var(--n-700);
  --color-text-strong: var(--n-900);
  --color-text-muted: var(--n-500);
  --color-text-brand: var(--ind-700);
  --color-text-on-dark: var(--n-0);
  --color-text-on-dark-muted: var(--ind-200);
  --color-accent-on-dark: var(--peri-400);
  --color-border: var(--n-200);
  --color-border-input: var(--n-400);
  --color-action: var(--ind-700);
  --color-action-hover: var(--ind-900);
  --color-action-text: var(--n-0);
  --color-action-inverse: var(--n-0);
  --color-action-inverse-text: var(--ind-900);
  --color-focus: var(--ind-700);
  --color-focus-on-dark: var(--n-0);
  --color-error: var(--red-700);
  --color-error-bg: var(--red-50);
  --color-wa: var(--wa-500);
  --color-wa-text: var(--wa-ink);
  --grad: linear-gradient(135deg, var(--ind-500) 0%, var(--ind-700) 45%, var(--ind-900) 100%);
  --pattern: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-15 -15 80 80'%3E%3Cpath fill='%23fff' fill-opacity='.07' d='M48.535,44.088c-0.185-0.646-1.147-3.982-1.912-6.094c-1.066-2.936-4.345-5.021-5.321-5.584 c-0.188-0.107-5.76-3.418-5.76-3.418l-0.016,0.002l-2.149-1.27l-1.273-0.748c0,0-0.107-10.486-0.107-10.789 c0-1.14-0.165-5.039-2.148-7.436c-1.589-1.895-4.281-4.706-4.301-4.733l-0.549-0.576l-0.554,0.576 c-0.027,0.02-2.751,2.843-4.334,4.74c-1.988,2.395-2.136,6.304-2.136,7.448l0.071,7.628l0.002,0.001l0.015,1.231l0.015,1.97v0.02 c-1.768,1.023-9.043,5.166-9.393,5.363c-0.979,0.572-4.242,2.664-5.321,5.596c-0.833,2.34-1.9,6.09-1.911,6.123l-0.208,0.766 l0.804,0.197c0.921,0.229,4.096,0.998,6.221,1.363c0.378,0.068,0.786,0.096,1.203,0.092c2.745-0.027,5.504-1.512,6.283-1.975 l4.544-2.635v0.006l0.403-0.238l0.994-0.578c0.042-0.025,0.076-0.055,0.12-0.082l1.96-1.16l0.378-0.217V39.67l0.843-0.494 c0.316,0.186,0.991,0.582,1.84,1.076c2.7,1.572,7.142,4.174,7.411,4.326c0.804,0.467,3.626,1.992,6.42,1.963 c0.354,0,0.709-0.037,1.06-0.088c2.434-0.422,6.228-1.375,6.264-1.385l0.765-0.195L48.535,44.088z M40.959,41.896 c-0.098,0.014-0.219,0.025-0.336,0.025c-1.28,0.014-2.986-0.713-4.065-1.342c-0.233-0.133-4.41-2.572-7.68-4.482 c-0.761-0.441-1.467-0.854-2.066-1.203v-0.004c-1.003-0.586-1.729-1.006-1.817-1.059c-0.047,0.021-0.462,0.26-0.829,0.484 l-10.731,6.279c-1.051,0.613-2.724,1.328-4.003,1.34c-0.147,0.004-0.27-0.004-0.389-0.025c-0.598-0.1-1.297-0.24-1.997-0.387 c0.222-0.691,0.44-1.363,0.651-1.939c0.371-1.023,1.978-2.4,3.297-3.18l0.147-0.068c0.86-0.494,5.432-3.104,9.655-5.563 c0.517-0.293,1.02-0.588,1.518-0.879l0.387-0.227l-0.002-0.021c0,0.002,0.002,0.002,0.002,0.002s-0.132-13.169-0.137-13.461 c0-1.54,0.375-3.629,1.077-4.466c0.391-0.468,0.863-1.005,1.34-1.535c0.482,0.532,0.955,1.067,1.342,1.535 c0.69,0.837,1.066,2.926,1.068,4.475l0.098,9.658l0.032,3.759l11.454,6.777c1.333,0.779,2.945,2.156,3.325,3.188 c0.201,0.574,0.426,1.248,0.649,1.93C42.24,41.65,41.55,41.791,40.959,41.896'/%3E%3C/svg%3E");

  --font: "Readex Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --k: 1; --lh: 1.6;
  --radius: 14px; --radius-lg: 24px; --pill: 999px;
  --wrap: 1240px; --gutter: 16px; --header-h: 68px;
}
[dir="rtl"] { --k: 1.08; --lh: 1.8; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font-family: var(--font); font-size: calc(1rem * var(--k)); line-height: var(--lh); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-text-brand); text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--color-text-strong); margin: 0; line-height: 1.15; font-weight: 700; }
[dir="ltr"] h1, [dir="ltr"] h2 { letter-spacing: -0.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
/* Prototype only: hold the page body until core.js has applied the language and lists (max 2.5 s), so nothing jumps. Phase 2 renders on the server. */
.js-pending main, .js-pending .site-footer { visibility: hidden; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.pattern :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .action-bar :focus-visible { outline-color: var(--color-focus-on-dark); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--n-0); color: var(--ind-900); padding: 12px 16px; border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: 8px; }
main:focus { outline: none; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --header-h: 80px; } }
.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
[dir="rtl"] .i--dir { transform: scaleX(-1); }
bdi[dir="ltr"] { unicode-bidi: isolate; direction: ltr; }
.pattern { background-color: var(--color-bg-dark); background-image: var(--pattern), var(--grad); background-size: 72px 72px, cover; color: var(--color-text-on-dark); }
.pattern h1, .pattern h2, .pattern h3 { color: var(--color-text-on-dark); }
/* Gradient fields start at #6969B3, where only white text passes AA: secondary text stays white there. */
.pattern { --color-text-on-dark-muted: var(--n-0); }
.site-footer.pattern { --color-text-on-dark-muted: var(--ind-200); }

.tbc { display: inline-block; vertical-align: middle; font: 700 0.6875rem/1 var(--font); letter-spacing: 0.04em; padding: 4px 6px; border-radius: 4px; margin-inline-start: 4px; border: 1px dashed; }
.tbc--draft { background: #FFF4DB; color: #6B4100; border-color: #B7791F; }
.tbc--confirm { background: #FDECEF; color: #8A1C2E; border-color: #C2415A; }
.tbc-line { margin-block-start: 12px; font-size: 0.875rem; color: var(--color-text-muted); }

.eyebrow { display: inline-block; font-size: calc(0.8125rem * var(--k)); font-weight: 600; color: var(--color-text-brand); background: var(--ind-100); padding: 6px 12px; border-radius: var(--pill); margin-block-end: 16px; }
[dir="ltr"] .eyebrow { text-transform: uppercase; letter-spacing: 0.08em; }
.eyebrow--light { background: rgb(255 255 255 / .14); color: var(--color-text-on-dark); }

/* Buttons: pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 10px 24px; border-radius: var(--pill); border: 2px solid transparent; font: inherit; font-weight: 600; font-size: calc(1rem * var(--k)); line-height: 1.2; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out, transform .15s ease-out; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 8px 18px; font-size: calc(0.9375rem * var(--k)); }
.btn--lg { min-height: 58px; padding: 14px 30px; font-size: calc(1.0625rem * var(--k)); }
.btn--block { width: 100%; }
.btn--primary { background: var(--color-action); color: var(--color-action-text); }
.btn--primary:hover { background: var(--color-action-hover); }
.btn--secondary { background: transparent; color: var(--color-action); border-color: var(--color-action); }
.btn--secondary:hover { background: var(--ind-50); }
.btn--light { background: var(--color-action-inverse); color: var(--color-action-inverse-text); }
.btn--light:hover { background: var(--ind-100); }
.btn--outline-light { background: transparent; color: var(--color-text-on-dark); border-color: rgb(255 255 255 / .7); }
.btn--outline-light:hover { background: rgb(255 255 255 / .1); border-color: #fff; }
.btn--wa { background: var(--color-wa); color: var(--color-wa-text); }
.btn--wa:hover { background: #1FBE5B; }
.btn--ghost { background: none; color: var(--color-action); text-decoration: underline; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-block-start: 32px; }
.btn-row--center { justify-content: center; }

/* Header: dark bar */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--color-bg-dark); color: var(--color-text-on-dark); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--color-text-on-dark); flex: none; min-height: 44px; }
.brand__tile { width: 44px; height: 44px; border-radius: 12px; background: var(--ind-500); display: grid; place-items: center; }
.brand__mark { width: 30px; height: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font: 700 1.625rem/1 "Readex Pro", sans-serif; letter-spacing: -0.03em; }
.brand__sub { font-size: 0.625rem; font-weight: 500; color: var(--color-text-on-dark-muted); margin-block-start: 4px; }
[dir="ltr"] .brand__sub { text-transform: uppercase; letter-spacing: 0.32em; }
[dir="rtl"] .brand__sub { font-size: 0.75rem; }
.nav { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.nav__list { display: flex; gap: 2px; }
.nav__list a { display: flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--color-text-on-dark); text-decoration: none; font-weight: 500; font-size: calc(0.9375rem * var(--k)); border-radius: var(--pill); }
.nav__list a:hover { background: rgb(255 255 255 / .12); }
.nav__call { display: none; color: var(--color-text-on-dark); }
.site-header__actions { display: flex; align-items: center; gap: 8px; }
.lang { display: inline-flex; background: rgb(255 255 255 / .1); border-radius: var(--pill); padding: 3px; }
.lang__btn { min-width: 44px; min-height: 40px; padding-inline: 10px; border: 0; background: none; font: 600 0.875rem/1 "Readex Pro", sans-serif; color: var(--color-text-on-dark); border-radius: var(--pill); cursor: pointer; }
.lang__btn[aria-pressed="true"] { background: var(--n-0); color: var(--ind-900); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; border-radius: var(--pill); background: rgb(255 255 255 / .12); color: var(--color-text-on-dark); cursor: pointer; }
.nav-toggle .i--close, .nav-open .nav-toggle .i--open { display: none; }
.nav-open .nav-toggle .i--close { display: block; }
.show-sm { display: none; }
@media (max-width: 1079px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--color-bg-dark); padding: 8px var(--gutter) 24px; display: none; max-height: calc(100vh - var(--header-h)); overflow: auto; border-block-start: 1px solid rgb(255 255 255 / .12); }
  .nav-open .nav { display: flex; }
  .nav__list { flex-direction: column; }
  .nav__list a { min-height: 56px; border-radius: 0; border-block-end: 1px solid rgb(255 255 255 / .12); font-size: calc(1.125rem * var(--k)); }
  .nav__call { display: inline-flex; align-items: center; gap: 10px; min-height: 56px; font-weight: 600; text-decoration: none; }
  .site-header__actions { margin-inline-start: auto; }
}
@media (max-width: 479px) {
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .brand__sub { display: none; }
  .brand__tile { width: 40px; height: 40px; }
  .brand__name { font-size: 1.375rem; }
  .site-header__inner, .site-header__actions { gap: 6px; }
}

/* Hero */
.hero { padding-block: 40px 0; overflow-x: clip; }
.hero__grid { display: grid; gap: 36px; align-items: center; }
.hero__title { font-size: calc(clamp(2.25rem, 1.4rem + 3vw, 4rem) * var(--k)); line-height: 1.04; max-width: 17ch; }
[dir="rtl"] .hero__title { line-height: 1.3; }
.hero__sub { margin-block-start: 20px; font-size: calc(clamp(1.0625rem, 1rem + .35vw, 1.25rem) * var(--k)); color: var(--color-text-on-dark-muted); max-width: 46ch; }
.hero .btn-row { margin-block-start: 28px; }
.hero__media { margin: 0; position: relative; }
.hero__media::before { content: ""; position: absolute; inset: 24px -24px -24px 24px; background: var(--peri-400); border-radius: var(--radius-lg); }
[dir="rtl"] .hero__media::before { inset: 24px 24px -24px -24px; }
.hero__media img { position: relative; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.hero__trust { order: 2; }
.hero__media { order: 3; }
.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.trust__item { display: flex; gap: 10px; align-items: flex-start; padding: 16px; border-radius: var(--radius); font-weight: 600; font-size: calc(0.9375rem * var(--k)); line-height: 1.35; background: var(--n-0); color: var(--color-text-strong); box-shadow: 0 10px 30px rgb(20 20 43 / .12); }
.trust__item:nth-child(5n+1) { background: var(--peri-200); }
.trust__item:nth-child(5n+2) { background: var(--n-0); }
.trust__item:nth-child(5n+3) { background: var(--ind-100); }
.trust__item:nth-child(5n+4) { background: var(--n-0); }
.trust__item:nth-child(5n+5) { background: var(--ind-200); grid-column: 1 / -1; }
.trust__item .i { color: var(--ind-700); }
@media (max-width: 1023px) {
  .hero { padding-block-end: 40px; }
  .hero + .section { padding-block-start: 72px; }
  .hero .btn-row .btn { flex: 1 1 200px; }
  .hero__media { margin-inline: 0 24px; }
  [dir="rtl"] .hero__media { margin-inline: 24px 0; }
}
@media (max-width: 599px) {
  .hero { padding-block-start: 28px; }
  .hero__grid { gap: 28px; }
  .hero .btn-row { gap: 10px; }
  .hero .btn--lg { min-height: 54px; padding-inline: 20px; }
  .hero__title { font-size: calc(2.125rem * var(--k)); }
  .hero__sub { margin-block-start: 14px; }
  .hero .btn-row { display: grid; grid-template-columns: 1fr 1fr; margin-block-start: 22px; }
  .hero .btn-row .btn:first-child { grid-column: 1 / -1; }
  .hero .btn-row .btn { padding-inline: 12px; }
  .trust { gap: 8px; }
  .trust__item { padding: 12px; font-size: calc(0.8125rem * var(--k)); }
  .hero__media { margin-block-end: 8px; }
}
@media (min-width: 1024px) {
  .hero { padding-block-start: 72px; }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; }
  .hero__trust { grid-column: 1 / -1; order: 3; margin-block-start: 24px; }
  .trust { grid-template-columns: repeat(5, 1fr); transform: translateY(32px); }
  .trust__item:nth-child(5n+5) { grid-column: auto; }
}

/* Sections */
.section { padding-block: 72px; }
.hero + .section { padding-block-start: 104px; }
.section--tint { background: var(--color-bg-tint); }
.section--dark { color: var(--color-text-on-dark); }
@media (min-width: 960px) { .section { padding-block: 104px; } .hero + .section { padding-block-start: 136px; } }
.section__head { margin-block-end: 40px; max-width: 760px; }
.section__head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.section__title { font-size: calc(clamp(1.875rem, 1.3rem + 2.2vw, 3.25rem) * var(--k)); line-height: 1.1; }
[dir="rtl"] .section__title { line-height: 1.35; }
.section__title--sm { font-size: calc(1.5rem * var(--k)); margin-block-end: 20px; }
.section__intro { margin-block-start: 14px; color: var(--color-text-muted); font-size: calc(1.125rem * var(--k)); }
.section__note { color: var(--color-text-muted); max-width: 40ch; }

.about__grid { display: grid; gap: 24px 64px; align-items: start; }
.about__since { display: flex; flex-direction: column; gap: 4px; font-weight: 600; color: var(--color-text-brand); }
.about__year { font-size: calc(clamp(4rem, 3rem + 4vw, 7rem) * 1); line-height: .9; font-weight: 700; color: var(--ind-500); letter-spacing: -0.04em; }
.about__slogan { font-size: calc(clamp(1.75rem, 1.3rem + 1.6vw, 2.75rem) * var(--k)); line-height: 1.15; }
.about__text { margin-block-start: 16px; font-size: calc(1.125rem * var(--k)); max-width: 60ch; }
@media (min-width: 960px) { .about__grid { grid-template-columns: 280px 1fr; } }

/* Departments: colour-blocked bento */
.dept-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .dept-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .dept-grid { grid-template-columns: repeat(4, 1fr); } }
.dept-card__link { display: flex; flex-direction: column; gap: 8px; height: 100%; min-height: 168px; padding: 20px; border-radius: var(--radius-lg); text-decoration: none; background: var(--n-0); color: var(--color-text); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.dept-card__link:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgb(36 51 122 / .18); }
.dept-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--ind-100); color: var(--ind-700); margin-block-end: 8px; }
.dept-card__icon .i { width: 26px; height: 26px; }
.dept-card__name { font-weight: 700; color: var(--color-text-strong); font-size: calc(1.125rem * var(--k)); line-height: 1.25; }
.dept-card__short { font-size: calc(0.875rem * var(--k)); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.5; color: var(--color-text-muted); }
.dept-card__meta { display: flex; justify-content: space-between; align-items: center; margin-block-start: auto; padding-block-start: 8px; font-size: calc(0.8125rem * var(--k)); font-weight: 600; color: var(--color-text-brand); }
.dept-card__meta .i { margin-inline-start: auto; }
.dept-card:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.dept-card:nth-child(1) .dept-card__link { background: var(--grad); color: var(--color-text-on-dark); justify-content: flex-end; }
.dept-card:nth-child(1) .dept-card__name { color: var(--n-0); font-size: calc(clamp(1.5rem, 1.2rem + 1vw, 2rem) * var(--k)); }
.dept-card:nth-child(1) .dept-card__short { color: var(--n-0); font-size: calc(1rem * var(--k)); -webkit-line-clamp: 3; }
.dept-card:nth-child(1) .dept-card__meta { color: var(--n-0); }
.dept-card:nth-child(1) .dept-card__icon { background: rgb(255 255 255 / .16); color: var(--n-0); width: 64px; height: 64px; margin-block-end: auto; }
.dept-card:nth-child(1) .dept-card__icon .i { width: 34px; height: 34px; }
.dept-card:nth-child(6n+3) .dept-card__link, .dept-card:nth-child(6n+8) .dept-card__link { background: var(--ind-500); }
.dept-card:nth-child(6n+3) :is(.dept-card__name, .dept-card__short, .dept-card__meta), .dept-card:nth-child(6n+8) :is(.dept-card__name, .dept-card__short, .dept-card__meta) { color: var(--n-0); }
.dept-card:nth-child(6n+3) .dept-card__icon, .dept-card:nth-child(6n+8) .dept-card__icon { background: rgb(255 255 255 / .18); color: var(--n-0); }
.dept-card:nth-child(6n+5) .dept-card__link { background: var(--peri-200); }
.dept-card:nth-child(6n+5) .dept-card__short { color: var(--n-700); }
.dept-card:nth-child(6n+5) .dept-card__icon { background: var(--n-0); }
@media (max-width: 479px) { .dept-card__short { display: none; } .dept-card__link { min-height: 140px; padding: 16px; } .dept-card:nth-child(1) .dept-card__short { display: -webkit-box; } }

/* Steps on dark */
.steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step { padding: 28px; border-radius: var(--radius-lg); background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .14); }
.step__n { display: block; font-size: 5rem; line-height: .9; font-weight: 700; color: var(--color-accent-on-dark); margin-block-end: 20px; letter-spacing: -0.04em; }
.step__title { font-size: calc(1.375rem * var(--k)); margin-block-end: 8px; }
.step__text { color: var(--color-text-on-dark-muted); }
.section--dark .section__title { color: var(--n-0); }

/* Doctors */
.doc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
@media (min-width: 768px) { .doc-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 20px; } }
@media (min-width: 1100px) { .doc-grid { grid-template-columns: repeat(4, 1fr); } .doc-grid--3 { grid-template-columns: repeat(3, 1fr); } }
.doc-card { display: flex; flex-direction: column; background: var(--n-0); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); }
.doc-card__photo { position: relative; display: block; aspect-ratio: 3 / 4; background: var(--ind-100); }
.doc-card:nth-child(3n+2) .doc-card__photo { background: var(--peri-200); }
.doc-card:nth-child(3n+3) .doc-card__photo { background: var(--ind-200); }
.doc-card__photo img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.doc-card__mono { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ind-700); font: 700 3rem/1 var(--font); }
.doc-card__dept { position: absolute; inset-block-end: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); background: var(--ind-900); color: var(--n-0); font-size: calc(0.75rem * var(--k)); font-weight: 600; padding: 4px 10px; border-radius: var(--pill); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc-card__body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.doc-card__name { font-size: calc(1.0625rem * var(--k)); line-height: 1.25; }
.doc-card__title { font-size: calc(0.875rem * var(--k)); color: var(--color-text); margin-block-start: 4px; }
.doc-card__meta { display: flex; gap: 6px; align-items: center; font-size: calc(0.8125rem * var(--k)); color: var(--color-text-muted); margin-block: 8px 14px; flex: 1; align-items: flex-start; }
.doc-card__meta .i { width: 1em; height: 1em; margin-block-start: .2em; }

/* Insurers */
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 768px) { .ins-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.ins-grid__item { background: var(--n-0); border-radius: var(--radius); padding: 10px; display: grid; place-items: center; }
.ins-grid__item img { width: 100%; max-width: 160px; }

/* Packages */
.pkg-grid { display: grid; gap: 20px; align-items: stretch; }
@media (min-width: 900px) { .pkg-grid { grid-template-columns: repeat(3, 1fr); } }
.pkg { display: flex; flex-direction: column; border-radius: var(--radius-lg); padding: 32px 28px; background: var(--ind-50); position: relative; }
.pkg.featured { background-color: var(--color-bg-dark); background-image: var(--pattern), var(--grad); background-size: 72px 72px, cover; color: var(--color-text-on-dark); }
.pkg.featured :is(.pkg__name, .pkg__amount) { color: var(--n-0); }
.pkg.featured :is(.pkg__note, .pkg__cur, .pkg__items li) { color: var(--n-0); }
.pkg.featured .pkg__items { border-color: rgb(255 255 255 / .2); }
.pkg.featured .pkg__items li::before { border-color: var(--peri-400); }
.pkg.featured .btn--primary { background: var(--n-0); color: var(--ind-900); }
.pkg__flag { align-self: flex-start; background: var(--peri-400); color: var(--ind-950); font-size: calc(0.75rem * var(--k)); font-weight: 700; padding: 5px 12px; border-radius: var(--pill); margin-block-end: 14px; }
.pkg__name { font-size: calc(1.375rem * var(--k)); line-height: 1.2; }
.pkg__note { color: var(--color-text-muted); font-size: calc(0.9375rem * var(--k)); margin-block-start: 8px; }
.pkg__price { margin-block: 24px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.pkg__amount { font-size: 4rem; line-height: .9; font-weight: 700; letter-spacing: -0.04em; color: var(--ind-900); }
.pkg__cur { font-weight: 600; color: var(--color-text-muted); font-size: calc(0.9375rem * var(--k)); }
.pkg__items { border-block-start: 1px solid var(--ind-200); padding-block-start: 18px; margin-block-end: 28px; flex: 1; display: grid; gap: 10px; }
.pkg__items li, .ticks li { position: relative; padding-inline-start: 28px; font-size: calc(0.9375rem * var(--k)); }
.pkg__items li::before, .ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .4em; width: 14px; height: 8px; border-left: 3px solid var(--ind-500); border-bottom: 3px solid var(--ind-500); transform: rotate(-45deg); } /* glyph: physical borders on purpose */

/* Branches */
.branch-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .branch-grid { grid-template-columns: 1fr 1fr; } }
.branch { border-radius: var(--radius-lg); overflow: hidden; background: var(--n-0); display: flex; flex-direction: column; }
.branch__top { padding: 28px; }
.branch__name { font-size: calc(1.75rem * var(--k)); margin-block-end: 12px; }
.branch__addr, .branch__count { display: flex; gap: 10px; align-items: flex-start; margin-block-start: 6px; color: var(--color-text-on-dark-muted); }
.branch__addr .i, .branch__count .i { color: var(--color-accent-on-dark); margin-block-start: 3px; }
.branch__body { padding: 8px 28px 28px; flex: 1; display: flex; flex-direction: column; }
.branch__h, .side-card__sub { font-size: calc(0.8125rem * var(--k)); font-weight: 700; color: var(--color-text-brand); margin-block: 20px 4px; }
[dir="ltr"] .branch__h, [dir="ltr"] .side-card__sub { text-transform: uppercase; letter-spacing: 0.08em; }
.hours { margin: 0; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding-block: 11px; border-block-end: 1px solid var(--color-border); font-size: calc(0.9375rem * var(--k)); }
.hours dd { margin: 0; font-weight: 700; color: var(--color-text-strong); text-align: end; }
.branch .btn-row { margin-block-start: auto; padding-block-start: 24px; }

/* FAQ */
.faq-wrap { display: grid; gap: 0 64px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.5fr; } }
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--ind-50); border-radius: var(--radius); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 16px 20px; cursor: pointer; font-weight: 700; color: var(--color-text-strong); list-style: none; font-size: calc(1.125rem * var(--k)); }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__pm { width: 36px; height: 36px; flex: none; border-radius: 50%; background: var(--ind-700); color: var(--n-0); display: grid; place-items: center; transition: transform .2s ease-out; }
.faq__item[open] .faq__pm { transform: rotate(45deg); }
.faq__item p { padding: 0 20px 20px; max-width: 64ch; }

/* CTA band */
.cta-band { padding-block: 80px; text-align: center; }
.cta-band__title { font-size: calc(clamp(2.25rem, 1.4rem + 3.4vw, 4.5rem) * var(--k)); line-height: 1.05; }
.cta-band__text { margin-block-start: 14px; font-size: calc(1.1875rem * var(--k)); color: var(--color-text-on-dark-muted); }

/* Footer */
.site-footer { --grad: linear-gradient(180deg, var(--ind-950), var(--ind-950)); padding-block: 64px 28px; font-size: calc(0.9375rem * var(--k)); }
.site-footer__grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__slogan { margin-block: 16px 20px; color: var(--color-text-on-dark-muted); font-size: calc(1.125rem * var(--k)); max-width: 28ch; }
.site-footer__h { font-size: calc(0.8125rem * var(--k)); font-weight: 700; color: var(--color-accent-on-dark); margin-block-end: 12px; }
[dir="ltr"] .site-footer__h { text-transform: uppercase; letter-spacing: 0.08em; }
.site-footer__links a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--n-0); text-decoration: none; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__links .i { color: var(--color-accent-on-dark); }
.site-footer__base { margin-block-start: 44px; padding-block-start: 20px; border-block-start: 1px solid rgb(255 255 255 / .14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; color: var(--color-text-on-dark-muted); font-size: calc(0.8125rem * var(--k)); }

/* Sticky action bar */
.action-bar { display: none; }
@media (max-width: 959px) {
  body { padding-block-end: calc(68px + env(safe-area-inset-bottom)); }
  .action-bar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; position: fixed; inset: auto 0 0 0; z-index: 50; background: var(--color-bg-dark); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); }
  .action-bar__item { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; border-radius: var(--pill); text-decoration: none; color: var(--n-0); font-weight: 600; font-size: calc(0.9375rem * var(--k)); background: rgb(255 255 255 / .1); }
  .action-bar__item--wa { background: var(--color-wa); color: var(--color-wa-text); }
  .action-bar__item--book { background: var(--n-0); color: var(--ind-900); }
}

/* Inner pages */
.page-head { padding-block: 28px 56px; }
.page-head--compact { padding-block-end: 44px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; font-size: calc(0.875rem * var(--k)); color: var(--color-text-on-dark-muted); margin-block-end: 20px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 4px; opacity: .6; }
.crumbs a { color: var(--n-0); display: inline-block; padding-block: 10px; }
.page-head__row { display: flex; gap: 20px; align-items: center; }
.page-head__icon { width: 72px; height: 72px; padding: 16px; border-radius: 20px; background: rgb(255 255 255 / .14); color: var(--n-0); flex: none; }
.page-head__title { font-size: calc(clamp(2.25rem, 1.5rem + 3vw, 4rem) * var(--k)); line-height: 1.05; }
[dir="rtl"] .page-head__title { line-height: 1.3; }
.page-head__lead { margin-block-start: 12px; font-size: calc(1.1875rem * var(--k)); color: var(--color-text-on-dark-muted); max-width: 60ch; }
.page-head .btn-row { margin-block-start: 28px; }

.detail { display: grid; gap: 40px; padding-block: 56px 80px; }
@media (min-width: 1024px) { .detail { grid-template-columns: 1fr 360px; gap: 56px; } .detail__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.detail__block + .detail__block { margin-block-start: 56px; }
.detail__h { font-size: calc(1.625rem * var(--k)); margin-block-end: 18px; }
.prose p + p { margin-block-start: 14px; }
.prose p { max-width: 66ch; font-size: calc(1.0625rem * var(--k)); }
.ticks { display: grid; gap: 10px; background: var(--ind-50); border-radius: var(--radius-lg); padding: 24px; }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; gap: 12px 32px; } }
.empty-line { color: var(--color-text-muted); }
.side-card { border-radius: var(--radius-lg); padding: 28px; display: grid; gap: 12px; background: var(--ind-50); }
.side-card + .side-card { margin-block-start: 16px; }
.side-card__h { font-size: calc(1.375rem * var(--k)); }
.side-card__sub { margin-block: 12px 0; }
.chip-links { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-link { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px; border-radius: var(--pill); background: var(--n-0); color: var(--color-text-strong); text-decoration: none; font-weight: 600; font-size: calc(0.9375rem * var(--k)); }
.chip-link .i { color: var(--ind-500); }
.chip-link:hover { background: var(--ind-700); color: var(--n-0); }
.chip-link:hover .i { color: var(--n-0); }

.filters { padding-block: 32px 8px; display: grid; gap: 16px; }
.filters__row { display: flex; flex-wrap: wrap; gap: 12px; }
.search { position: relative; flex: 1 1 280px; display: block; }
.search .i { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--color-text-muted); }
.search input { width: 100%; min-height: 52px; padding-inline: 50px 18px; border: 2px solid var(--color-border-input); border-radius: var(--pill); font: inherit; color: var(--color-text-strong); background: var(--n-0); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border: 0; border-radius: var(--pill); background: var(--ind-50); color: var(--color-text-strong); font: inherit; font-size: calc(0.875rem * var(--k)); font-weight: 600; cursor: pointer; }
.chip:hover { background: var(--ind-100); }
.chip__n { font-size: 0.75rem; min-width: 22px; height: 22px; padding-inline: 6px; border-radius: var(--pill); background: var(--n-0); display: inline-grid; place-items: center; color: var(--ind-700); }
.chip[aria-pressed="true"] { background: var(--ind-700); color: var(--n-0); }
.seg--filter { display: inline-flex; background: var(--ind-50); border-radius: var(--pill); padding: 4px; gap: 2px; }
.seg__btn { min-height: 44px; padding-inline: 16px; border: 0; border-radius: var(--pill); background: none; font: inherit; font-size: calc(0.875rem * var(--k)); font-weight: 600; color: var(--color-text); cursor: pointer; }
.seg__btn[aria-pressed="true"] { background: var(--ind-900); color: var(--n-0); }
.filters__count { font: inherit; font-weight: 600; color: var(--color-text-muted); font-size: calc(0.875rem * var(--k)); padding-block: 12px 24px; }
.page-doctors .doc-grid { padding-block-end: 80px; }
.empty { text-align: center; padding: 48px 16px 64px; background: var(--ind-50); border-radius: var(--radius-lg); margin-block-end: 80px; }
.empty__title { font-size: calc(1.5rem * var(--k)); margin-block-end: 8px; }

/* Booking */
.book { display: grid; gap: 32px; padding-block: 40px 80px; }
@media (min-width: 1024px) { .book { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; } .book__side { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; } }
.form__lead { display: flex; gap: 12px; align-items: flex-start; background: var(--ind-900); color: var(--n-0); border-radius: var(--radius); padding: 16px 18px; font-weight: 500; margin-block-end: 28px; }
.form__lead .i { color: var(--peri-400); margin-block-start: 2px; }
.form__package { font-weight: 700; color: var(--color-text-brand); margin-block-end: 16px; }
.form__summary { background: var(--color-error-bg); color: var(--color-error); border-radius: var(--radius); padding: 12px 16px; font-weight: 600; margin-block-end: 20px; }
.form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__grid { display: grid; gap: 22px 16px; grid-template-columns: 1fr; margin-block-end: 28px; }
@media (min-width: 640px) { .form__grid { grid-template-columns: 1fr 1fr; } .field--full { grid-column: 1 / -1; } }
.field { border: 0; padding: 0; margin: 0; min-width: 0; }
.field > label, .field legend { display: block; font-weight: 700; color: var(--color-text-strong); margin-block-end: 8px; font-size: calc(0.9375rem * var(--k)); padding: 0; }
.field input[type="text"], .field input[type="tel"], .field input[type="date"], .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 12px 16px; border: 2px solid var(--color-border-input); border-radius: var(--radius); background: var(--n-0); font: inherit; color: var(--color-text-strong); }
.field textarea { min-height: 100px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ind-700) 50%), linear-gradient(135deg, var(--ind-700) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-inline-end: 44px; }
[dir="rtl"] .field select { background-position: 16px 50%, 22px 50%; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus { outline: 3px solid var(--ind-300); outline-offset: 0; border-color: var(--ind-700); }
.field__phone { display: flex; direction: ltr; }
.field__prefix { display: flex; align-items: center; padding-inline: 16px; border: 2px solid var(--color-border-input); border-inline-end: 0; border-radius: var(--radius) 0 0 var(--radius); background: var(--ind-50); color: var(--ind-900); font-weight: 700; }
.field__phone input { border-radius: 0 var(--radius) var(--radius) 0 !important; text-align: left; }
.field__hint { font-size: calc(0.8125rem * var(--k)); color: var(--color-text-muted); margin-block-start: 6px; }
.field__hint--warn { color: var(--color-text-strong); font-weight: 700; }
.field__err { color: var(--color-error); font-size: calc(0.875rem * var(--k)); font-weight: 600; margin-block-start: 6px; }
.is-invalid input, .is-invalid select { border-color: var(--color-error) !important; }
.seg { display: flex; gap: 8px; }
.seg__opt { flex: 1; position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg__opt span { display: flex; align-items: center; justify-content: center; min-height: 54px; padding-inline: 12px; border: 2px solid var(--color-border-input); border-radius: var(--pill); font-weight: 600; color: var(--color-text); text-align: center; line-height: 1.3; }
.seg__opt input:checked + span { background: var(--ind-700); border-color: var(--ind-700); color: var(--n-0); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--ind-300); outline-offset: 2px; }
.is-invalid .seg__opt span { border-color: var(--color-error); }
.form__addnote { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; border: 0; background: none; color: var(--color-action); font: inherit; font-weight: 700; cursor: pointer; }
.check, .field > label.check { display: flex; gap: 12px; align-items: flex-start; font-size: calc(0.9375rem * var(--k)); font-weight: 400; color: var(--color-text); cursor: pointer; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ind-700); flex: none; }
.form-ok { background: var(--ind-50); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.form-ok:focus { outline: none; }
.form-ok__icon { width: 72px; height: 72px; border-radius: 50%; background: var(--ind-700); color: var(--n-0); display: grid; place-items: center; }
.form-ok__icon .i { width: 36px; height: 36px; stroke-width: 2.5; }
.form-ok h2 { font-size: calc(2rem * var(--k)); }
.form-ok .btn-row { justify-content: center; margin-block-start: 12px; }
.form-ok__proto { font-size: calc(0.8125rem * var(--k)); color: var(--color-text-muted); }
.mini-steps { counter-reset: m; display: grid; gap: 16px; }
.mini-steps li { counter-increment: m; position: relative; padding-inline-start: 46px; display: grid; gap: 2px; font-size: calc(0.9375rem * var(--k)); }
.mini-steps li::before { content: counter(m); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--ind-700); color: var(--n-0); display: grid; place-items: center; font-weight: 700; font-size: 0.9375rem; }
.mini-steps strong { color: var(--color-text-strong); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .dept-card__link:hover { transform: none; }
}
