/* =====================================================================
   BestMed Tower — v2
   Visual language taken directly from the BestMed brand book:
   cover composition, interior wall ribbons, indoor name plates, outdoor
   directory plates, the doctor door-plaque, billboards and the reels frame.
   ===================================================================== */

@font-face { font-family: 'Gellix'; src: url('../fonts/Gellix-Light.woff2') format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: 'Gellix'; src: url('../fonts/Gellix-Regular.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Gellix'; src: url('../fonts/Gellix-Medium.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Gellix'; src: url('../fonts/Gellix-SemiBold.woff2') format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Gellix'; src: url('../fonts/Gellix-Bold.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'BM Kufi'; src: url('../fonts/NotoKufiArabic-VF.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #1B6A77;
  --teal-2: #166977;
  --ink: #0A343B;
  --ice: #A9E7F5;
  --sky: #82D4ED;
  --mist: #E6E6E6;
  --mist-2: #F1F1F1;
  --white: #FFFFFF;
  --grad: linear-gradient(90deg, #3A9DB5 0%, #2B85A0 35%, #166977 100%);
  --muted: #5A7378;
  --line: rgba(10, 52, 59, .14);
  --font: 'Gellix', 'BM Kufi', system-ui, sans-serif;
  --latin: 'Gellix', system-ui, sans-serif;
  --wrap: 1280px;
  --gut: clamp(20px, 4.2vw, 64px);
  --ease: cubic-bezier(.22, .8, .2, 1);
  --plate-r: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
[dir=rtl] body { font-size: 16.5px; line-height: 1.95; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ice); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.ico { width: 1.2em; height: 1.2em; flex: none; }
[dir=rtl] .ico[data-flip] { transform: scaleX(-1); }
.sep { display: inline-block; width: 5px; height: 5px; margin: 0 .7em; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.tel, .latin { font-family: var(--latin); direction: ltr; unicode-bidi: isolate; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: -80px; inset-inline-start: 16px; z-index: 300; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 6px; }
.skip:focus { top: 12px; }

/* ------------------------------------------------------------------ type */
.t-display { font-weight: 500; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -.02em; }
[dir=rtl] .t-display { letter-spacing: 0; line-height: 1.35; font-size: clamp(36px, 4.6vw, 66px); }
.t-title { font-weight: 500; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.15; letter-spacing: -.015em; }
[dir=rtl] .t-title { letter-spacing: 0; line-height: 1.5; font-size: clamp(27px, 3vw, 42px); }
.t-caps { font-family: var(--latin); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; }
.t-lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }

/* ===================================================== signage elements */
/* Name plate — indoor signage option 5: ink plate, ice brackets at both ends */
.plate {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 10px 34px; background: var(--ink); color: #fff; border-radius: 4px; text-align: center;
}
.plate::before, .plate::after {
  content: ''; position: absolute; top: 9px; bottom: 9px; width: 11px; border: 3px solid var(--ice);
}
.plate::before { inset-inline-start: 10px; border-inline-end: 0; border-start-start-radius: 12px; border-end-start-radius: 12px; }
.plate::after { inset-inline-end: 10px; border-inline-start: 0; border-start-end-radius: 12px; border-end-end-radius: 12px; }

/* Signage button: a small plate */
.sb {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 54px; padding: 0 30px; border-radius: 4px; background: var(--ink); color: #fff; font-weight: 500; font-size: 16px; line-height: 1;
  transition: background .3s, color .3s;
}
.sb::before, .sb::after { content: ''; position: absolute; top: 12px; bottom: 12px; width: 8px; border: 2px solid var(--ice); transition: inset .35s var(--ease), border-color .3s; }
.sb::before { inset-inline-start: 9px; border-inline-end: 0; border-start-start-radius: 9px; border-end-start-radius: 9px; }
.sb::after { inset-inline-end: 9px; border-inline-start: 0; border-start-end-radius: 9px; border-end-end-radius: 9px; }
.sb:hover::before { inset-inline-start: 5px; } .sb:hover::after { inset-inline-end: 5px; }
.sb--ice { background: var(--ice); color: var(--ink); }
.sb--ice::before, .sb--ice::after { border-color: var(--teal); }
.sb--teal { background: var(--teal); }
.sb--line { background: transparent; color: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.sb--line::before, .sb--line::after { border-color: currentColor; opacity: .55; }
.sb .ico { width: 18px; height: 18px; }

/* Bracket panel — billboard "MEDICAL PERFECTION": ice arcs framing a mist panel */
.brk { position: relative; padding: 26px 46px; background: var(--mist); text-align: center; }
.brk::before, .brk::after { content: ''; position: absolute; top: 14px; bottom: 14px; width: 18px; border: 6px solid var(--ice); }
.brk::before { inset-inline-start: 12px; border-inline-end: 0; border-start-start-radius: 26px; border-end-start-radius: 26px; }
.brk::after { inset-inline-end: 12px; border-inline-start: 0; border-start-end-radius: 26px; border-end-end-radius: 26px; }

/* Door plaque — outer title signage: mist / ice / ink / mist bands */
.plaque { display: grid; text-align: center; box-shadow: 0 40px 70px -40px rgba(10,52,59,.45); }
.plaque > * { padding: 14px 26px; }
.plaque__head { background: #ECECEC; padding: 26px 26px 22px; }
.plaque__head small { display: block; font-size: 16px; font-weight: 600; color: var(--ink); }
.plaque__head b { display: block; font-size: clamp(26px, 2.6vw, 38px); font-weight: 700; line-height: 1.35; color: var(--ink); }
.plaque__ice { background: var(--ice); color: var(--ink); font-weight: 600; font-size: 17px; }
.plaque__ink { background: var(--ink); color: #fff; font-weight: 500; font-size: 16px; }
.plaque__foot { background: #ECECEC; font-family: var(--latin); font-weight: 600; font-size: 14px; letter-spacing: .04em; direction: ltr; }

/* Directory plate — outdoor floor directory */
.dirplate {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 14px; min-height: 74px; padding: 10px 18px 10px 14px;
  background: var(--teal); color: #fff; border-radius: 3px; transition: background .3s, color .3s, transform .35s var(--ease);
}
[dir=rtl] .dirplate { padding: 10px 14px 10px 18px; }
.dirplate__no { font-family: var(--font); font-weight: 400; font-size: 34px; line-height: 1; color: #fff; text-align: center; }
.dirplate__name { font-weight: 500; font-size: 17px; line-height: 1.35; }
.dirplate__n { font-size: 13px; color: var(--ice); white-space: nowrap; }
.dirplate::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; opacity: .7; grid-column: 3; grid-row: 1; justify-self: end; align-self: start; margin-top: 4px; }
.dirplate:hover { background: var(--ice); color: var(--ink); }
.dirplate:hover .dirplate__no { color: var(--teal); }
.dirplate:hover .dirplate__n { color: var(--teal); }

/* ================================================================ header */
.hd { position: fixed; inset: 0 0 auto 0; z-index: 60; transition: background .35s, box-shadow .35s, transform .35s var(--ease); }
.hd__in { display: flex; align-items: center; gap: 26px; height: 88px; }
.hd.is-solid { background: #fff; box-shadow: 0 1px 0 var(--line); }
.hd.is-solid .hd__in { height: 74px; }
.hd.is-hidden { transform: translateY(-100%); }
.hd__logo { flex: none; display: block; }
.hd__logo img, .hd__logo .wordmark { height: 46px; width: auto; display: block; }
.hd.is-solid .hd__logo img, .hd.is-solid .hd__logo .wordmark { height: 40px; }
.hd__logo .on-dark-only { display: none; }
.hd.on-teal .hd__logo .on-light-only { display: none; }
.hd.on-teal .hd__logo .on-dark-only { display: block; }
.wordmark .wm-txt { fill: var(--wm-txt, var(--ink)); }
.wordmark .wm-top { fill: var(--wm-top, var(--sky)); }
.wordmark .wm-leg { fill: var(--wm-leg, var(--teal-2)); }
.wordmark .wm-sub { fill: var(--wm-sub, var(--sky)); }
.wm-white { --wm-txt: #fff; --wm-leg: #fff; --wm-top: var(--ice); --wm-sub: var(--ice); }

.hd__nav { display: flex; gap: 2px; margin-inline-start: auto; }
.hd__nav a { position: relative; padding: 8px 14px 12px; font-size: 15.5px; font-weight: 500; color: var(--ink); transition: color .25s; }
.hd__nav a::after { /* small ice bend under the active link */
  content: ''; position: absolute; inset-inline-start: 14px; bottom: 2px; width: 18px; height: 9px;
  border: 3px solid var(--sky); border-bottom: 0; border-inline-end: 0; border-start-start-radius: 9px; opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .3s var(--ease);
}
.hd__nav a:hover::after, .hd__nav a.is-active::after { opacity: 1; transform: none; }
.hd.on-teal .hd__nav a { color: #fff; }
.hd.on-teal .hd__nav a::after { border-color: var(--ice); }

.hd__end { display: flex; align-items: center; gap: 10px; }
.langs { display: flex; height: 40px; border-radius: 4px; background: var(--ink); padding: 3px; }
.langs button { min-width: 44px; padding: 0 10px; border-radius: 3px; color: rgba(255,255,255,.75); font-size: 13.5px; font-weight: 600; transition: background .25s, color .25s; }
.langs button[lang=ckb], .langs button[lang=ar] { font-family: 'BM Kufi', sans-serif; font-weight: 500; }
.langs button[aria-pressed=true] { background: var(--ice); color: var(--ink); }
.hd.on-teal .langs { background: rgba(10,52,59,.55); }
.hd__tel { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 4px; background: var(--teal); color: #fff; font-size: 14px; font-weight: 600; }
.hd.on-teal .hd__tel { background: var(--ice); color: var(--ink); }
.hd__tel .ico { width: 16px; height: 16px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 4px; background: var(--ink); color: #fff; place-items: center; }
.hd.on-teal .burger { background: var(--ice); color: var(--ink); }

.drawer { position: fixed; inset: 0; z-index: 70; background: var(--teal); color: #fff; display: flex; flex-direction: column; padding: 22px var(--gut) 34px; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; overflow: auto; }
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__top { display: flex; justify-content: space-between; align-items: center; }
.drawer__top img, .drawer__top .wordmark { height: 40px; width: auto; }
.drawer__x { width: 44px; height: 44px; border-radius: 4px; background: var(--ice); color: var(--ink); display: grid; place-items: center; }
.drawer nav { display: grid; gap: 8px; margin: 36px 0 28px; }
.drawer nav a { display: grid; grid-template-columns: 44px 1fr; align-items: center; min-height: 62px; padding: 0 16px; background: rgba(10,52,59,.45); border-radius: 3px; font-size: 21px; font-weight: 500; }
.drawer nav a span { font-family: var(--latin); color: var(--ice); font-size: 18px; }
.drawer .langs { align-self: flex-start; height: 46px; }
.drawer .langs button { min-width: 64px; font-size: 15px; }
.drawer__foot { margin-top: auto; display: grid; gap: 10px; padding-top: 28px; }

/* ================================================================== hero */
/* BestMed cover: teal field, the big ice arch, the inner arch window and the logo block */
.hero { position: relative; background: var(--teal); color: #fff; overflow: hidden; isolation: isolate; }
.hero__in { display: grid; grid-template-columns: 1.02fr .98fr; min-height: max(720px, 100vh); }
.hero__copy { display: flex; flex-direction: column; justify-content: center; padding: 140px 0 70px; padding-inline-end: clamp(20px, 4vw, 70px); }
.hero__copy h1 { color: #fff; }
.hero__sub { margin-top: 18px; font-size: clamp(18px, 1.6vw, 23px); color: var(--ice); font-weight: 400; max-width: 32ch; }
.circles { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }
.circle { width: 148px; height: 148px; border-radius: 50%; display: grid; place-content: center; text-align: center; background: var(--ice); color: var(--ink); line-height: 1.25; }
.circle b { font-family: var(--latin); font-weight: 600; font-size: 34px; line-height: 1.05; }
[dir=rtl] .circle b { font-family: 'BM Kufi', sans-serif; font-weight: 700; font-size: 32px; }
.circle span { font-size: 16px; font-weight: 500; }
.circle--ink { background: var(--ink); color: #fff; }
.circle--ink b { color: var(--ice); }
.circle--list span { font-size: 14px; line-height: 1.5; }
.hero__info { margin-top: 34px; display: grid; gap: 10px; font-size: 15.5px; color: rgba(255,255,255,.88); }
.hero__info p { display: flex; gap: 12px; align-items: flex-start; }
.hero__info .ico { color: var(--ice); margin-top: 5px; width: 20px; height: 20px; }
.hero__info .tel { font-size: 17px; letter-spacing: .03em; }
.hero__btns { display: flex; gap: 10px; margin-top: 34px; flex-wrap: wrap; }
.hero__btns .sb--line { color: #fff; }

.hero__art { position: relative; margin-inline-end: calc(var(--gut) * -1); min-height: 560px; }
.cv-ice { position: absolute; inset: 230px 0 0 0; background: var(--ice); border-start-start-radius: 44% 34%; }
.cv-photo { position: absolute; inset-inline-end: 0; top: 104px; width: 64%; height: calc(58% - 60px); overflow: hidden; border-start-start-radius: 62% 46%; background: #6aa3ae; }
.cv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 36% 40%; }
.cv-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,106,119,0) 40%, rgba(27,106,119,.55) 100%); }
.cv-block { position: absolute; inset-inline-end: 0; bottom: 0; width: 64%; height: calc(42% - 44px); background: var(--teal); display: grid; place-items: center; }
.cv-block img, .cv-block .wordmark { width: min(64%, 300px); height: auto; }
.cv-leg { position: absolute; bottom: 0; inset-inline-start: 13%; width: 20%; height: 62%; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.75) 100%); border-start-start-radius: 100% 30%; mix-blend-mode: soft-light; }

/* ============================================================ sections */
.sec { position: relative; padding: clamp(80px, 9vw, 140px) 0; }
.sec--mist { background: var(--mist); }
.sec--teal { background: var(--teal); color: #fff; }
.sec--ink { background: var(--ink); color: #fff; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: clamp(36px, 4vw, 56px); flex-wrap: wrap; }
.sec-head p { margin-top: 10px; }

/* interior-wall ribbon (decorative) */
.wallrib { position: absolute; z-index: 0; pointer-events: none; }
.wallrib svg { display: block; width: 100%; height: 100%; }
.sec > .wrap { position: relative; z-index: 1; }

/* ============================================================ directory */
.dir { display: grid; grid-template-columns: 330px 1fr; gap: 10px; align-items: start; }
.dir__head { position: sticky; top: 96px; background: var(--teal); color: #fff; padding: 36px 30px 30px; border-radius: 3px; overflow: hidden; isolation: isolate; }
.dir__head img { width: 190px; height: auto; }
.dir__head h2 { margin-top: 30px; font-size: 26px; font-weight: 500; line-height: 1.45; }
.dir__head .t-caps { color: var(--ice); margin-top: 6px; display: block; }
.dir__head p { margin-top: 18px; font-size: 15px; color: rgba(255,255,255,.82); }
.dir__head .sb { margin-top: 26px; }
.dir__head::after { /* ribbon leg inside the sign head */
  content: ''; position: absolute; z-index: -1; inset-inline-end: -40px; bottom: -40px; width: 150px; height: 200px;
  border: 34px solid var(--ice); border-bottom: 0; border-inline-end: 0; border-start-start-radius: 120px; opacity: .25;
}
.dir__plates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }

/* ============================================================ doctors */
.dgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 46px 24px; }
.doc { display: block; color: var(--ink); }
.doc__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mist) url('../img/brand/arches.svg') 50% 0 / 100% auto no-repeat; border-radius: 3px; }
.doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: transform .7s var(--ease); }
.doc__photo .silhouette { position: absolute; inset: 8% 0 0; width: 100%; height: 92%; }
.doc .plate { margin: -36px 12px 0; position: relative; z-index: 2; min-height: 62px; transition: background .3s; }
.doc .plate b { font-weight: 600; font-size: 16px; line-height: 1.45; }
.doc .plate small { display: block; font-weight: 500; font-size: 12px; color: var(--ice); line-height: 1.3; }
.doc__spec { margin: 14px 14px 0; text-align: center; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
[dir=rtl] .doc__spec { line-height: 1.85; font-size: 14px; }
.doc:hover .doc__photo img { transform: scale(1.035); }
.doc:hover .plate { background: var(--teal); }

.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { height: 42px; padding: 0 16px; border-radius: 3px; background: var(--mist); color: var(--ink); font-weight: 500; font-size: 14.5px; transition: background .25s, color .25s; }
.chip:hover { background: var(--ice); }
.chip[aria-pressed=true] { background: var(--teal); color: #fff; }
.search { position: relative; display: block; max-width: 520px; margin-bottom: 26px; }
.search input { width: 100%; height: 58px; border: 0; border-radius: 3px; background: var(--mist-2); box-shadow: inset 0 -3px 0 var(--ice); padding: 0 52px 0 20px; font: inherit; font-size: 16px; color: var(--ink); }
[dir=rtl] .search input { padding: 0 20px 0 52px; }
.search input:focus { outline: none; box-shadow: inset 0 -3px 0 var(--teal); background: #fff; }
.search .ico { position: absolute; inset-inline-end: 18px; top: 50%; transform: translateY(-50%); color: var(--teal); }
.empty { padding: 50px 0; text-align: center; color: var(--muted); }

/* ======================================================== billboard */
.bill { position: relative; background: var(--teal); color: #fff; overflow: hidden; isolation: isolate; }
.bill__in { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 420px; }
.bill h2 { font-weight: 300; font-size: clamp(38px, 5vw, 78px); line-height: 1.15; text-transform: uppercase; letter-spacing: .01em; max-width: 13ch; }
[dir=rtl] .bill h2 { font-weight: 400; text-transform: none; line-height: 1.45; letter-spacing: 0; font-size: clamp(34px, 4.4vw, 66px); }
.bill__rib { position: absolute; z-index: -1; top: 0; bottom: 0; inset-inline-end: 0; width: min(44vw, 560px); }
.rib { display: block; width: 100%; height: 100%; }
[dir=rtl] .rib { transform: scaleX(-1); }

.svc { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.svc .brk { display: grid; gap: 6px; align-content: center; min-height: 150px; }
.svc .brk .ico { width: 30px; height: 30px; color: var(--teal); margin: 0 auto 4px; }
.svc .brk h3 { font-size: 19px; font-weight: 600; line-height: 1.45; }
.svc .brk p { font-size: 14.5px; color: var(--muted); }

/* ================================================================ news */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.news a { display: grid; grid-template-columns: 112px 1fr; gap: 18px; align-items: stretch; background: #fff; border-radius: 3px; padding: 12px; transition: box-shadow .3s; }
.news a:hover { box-shadow: 0 20px 40px -26px rgba(10,52,59,.5); }
.news img { width: 112px; aspect-ratio: 9 / 13; object-fit: cover; border-radius: 2px; }
.news time { font-family: var(--latin); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
[dir=rtl] .news time { font-family: inherit; letter-spacing: 0; font-size: 13px; }
.news h3 { font-size: 18px; font-weight: 600; line-height: 1.45; margin: 6px 0 6px; }
.news p { font-size: 14px; color: var(--muted); line-height: 1.7; }

/* ================================================================ reels */
.reelband { position: relative; background: var(--grad); color: #fff; overflow: hidden; }
[dir=rtl] .reelband { background: linear-gradient(270deg, #3A9DB5 0%, #2B85A0 35%, #166977 100%); }
.reelband__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 200px; padding-inline-end: 230px; }
.reelband h1, .reelband h2 { font-family: var(--latin); font-weight: 500; font-size: clamp(34px, 4vw, 58px); line-height: 1; letter-spacing: -.01em; }
.reelband p { margin-top: 10px; font-size: 18px; color: rgba(255,255,255,.9); }
.reelband__arch { position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: auto; }
[dir=rtl] .reelband__arch { transform: scaleX(-1); }
.lb__corner { position: absolute; top: 0; inset-inline-end: 0; height: 100%; width: auto; }
[dir=rtl] .lb__corner { transform: scaleX(-1); }

.rgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 20px; }
.reel { display: flex; flex-direction: column; gap: 12px; text-align: start; width: 100%; color: var(--ink); }
.reel__img { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; border-radius: 3px; background: var(--ink); }
.reel__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.reel__img::after { content: ''; position: absolute; inset: 0; background: rgba(10,52,59,0); transition: background .4s; }
.reel__play { position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: var(--ice); color: var(--ink); display: grid; place-items: center; transition: transform .4s var(--ease); }
.reel__play .ico { width: 24px; height: 24px; margin-left: 3px; }
.reel__date { position: absolute; z-index: 2; top: 0; inset-inline-start: 0; padding: 6px 12px; white-space: nowrap; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 500; border-end-end-radius: 3px; }
[dir=rtl] .reel__date { border-end-end-radius: 0; border-end-start-radius: 3px; }
.reel__views { position: absolute; z-index: 2; bottom: 0; inset-inline-end: 0; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; background: var(--ice); color: var(--ink); font-size: 12.5px; font-weight: 600; }
.reel__views .ico { width: 15px; height: 15px; }
.reel h3 { font-size: 16px; font-weight: 600; line-height: 1.45; }
[dir=rtl] .reel h3 { font-size: 15.5px; line-height: 1.75; }
.reel__doc { font-size: 13.5px; color: var(--muted); }
.reel:hover .reel__img img { transform: scale(1.05); }
.reel:hover .reel__img::after { background: rgba(10,52,59,.25); }
.reel:hover .reel__play { transform: scale(1.1); }
.month { display: flex; align-items: center; gap: 16px; margin: 70px 0 26px; font-size: 22px; font-weight: 500; }
.month::after { content: ''; flex: 1; height: 2px; background: var(--ice); }
.month:first-child { margin-top: 0; }

/* lightbox — styled like the BestMed reels frame */
.lb { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; background: rgba(10, 52, 59, .9); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.lb.is-open { opacity: 1; visibility: visible; }
.lb__box { width: min(420px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 4px; transform: translateY(16px); transition: transform .4s var(--ease); }
.lb.is-open .lb__box { transform: none; }
.lb__top { position: relative; background: var(--grad); color: #fff; padding: 18px 22px; min-height: 76px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.lb__top b { font-family: var(--latin); font-weight: 500; font-size: 20px; }
.lb__top span { font-size: 13px; opacity: .9; }
.lb__media { position: relative; aspect-ratio: 9 / 16; background: var(--ink); }
.lb__media img, .lb__media iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.lb__media iframe { background: transparent; }
.lb__body { padding: 18px 22px 22px; display: grid; gap: 12px; }
.lb__body h3 { font-size: 18px; font-weight: 600; line-height: 1.6; }
.lb__doc { display: flex; align-items: center; gap: 12px; padding: 8px; background: var(--mist-2); border-radius: 3px; }
.lb__doc img { width: 48px; height: 48px; object-fit: cover; object-position: 50% 8%; background: var(--mist); border-radius: 2px; }
.lb__doc b { display: block; font-size: 15px; } .lb__doc span { font-size: 13px; color: var(--muted); }
.lb__x { position: fixed; top: 18px; inset-inline-end: 18px; width: 46px; height: 46px; border-radius: 4px; background: var(--ice); color: var(--ink); display: grid; place-items: center; }

/* ============================================================== visit */
.visit { display: grid; grid-template-columns: 1.1fr .9fr; gap: 10px; align-items: stretch; }
.map { position: relative; min-height: 520px; overflow: hidden; background: #cfe9ef; border-start-start-radius: 44% 30%; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.map__pin { position: absolute; inset: 0; display: grid; place-items: center; color: var(--teal); }
.map__pin .ico { width: 54px; height: 54px; }
.visit .plaque { align-self: center; }
.plaque a { display: block; }
.plaque .tel { font-size: 21px; letter-spacing: .03em; }
.plaque__ink .socials { justify-content: center; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; }
.socials a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 3px; background: rgba(255,255,255,.1); color: #fff; transition: background .25s, color .25s; }
.socials a:hover { background: var(--ice); color: var(--ink); }
.socials .ico { width: 19px; height: 19px; }

/* ================================================================ page head (reels-frame band) */
.ph { position: relative; background: var(--teal); color: #fff; overflow: hidden; padding: 150px 0 64px; isolation: isolate; }
.ph__in { position: relative; z-index: 1; }
.ph .crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.ph .crumbs .ico { width: 14px; height: 14px; }
[dir=rtl] .ph .crumbs .ico { transform: scaleX(-1); }
.ph p { margin-top: 14px; color: rgba(255,255,255,.85); max-width: 58ch; font-size: 18px; }
.ph__no { display: inline-grid; place-items: center; vertical-align: .32em; min-width: 1.6em; height: 1.25em; padding: 0 .3em; margin-inline-end: .35em; background: var(--ice); color: var(--ink); border-radius: var(--plate-r); font-family: var(--font); font-weight: 600; font-size: .42em; line-height: 1; }
.ph__in > h1, .ph__in > p { max-width: min(58ch, calc(100% - min(30vw, 380px))); }
.ph__rib { position: absolute; z-index: 0; top: 0; bottom: 0; inset-inline-end: 0; width: min(36vw, 460px); opacity: .9; }

.ph--ink { background: var(--ink); }

/* ============================================================ profile */
.prof { background: var(--mist); padding: 130px 0 90px; position: relative; overflow: hidden; }
.prof__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 70px); align-items: center; position: relative; z-index: 1; }
.prof__photo { position: relative; aspect-ratio: 4 / 5; background: #fff url('../img/brand/arches.svg') 50% 0 / 100% auto no-repeat; overflow: hidden; border-start-start-radius: 46% 34%; }
.prof__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.prof__photo .silhouette { position: absolute; inset: 8% 0 0; width: 100%; height: 92%; }
.prof__photo .plate { position: absolute; inset-inline: 14px; bottom: 14px; }
.prof__crumbs { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.prof__crumbs .ico { width: 14px; height: 14px; }
[dir=rtl] .prof__crumbs .ico { transform: scaleX(-1); }
.prof__dept { display: inline-flex; gap: 10px; align-items: center; margin-top: 18px; font-weight: 500; color: var(--teal); }
.prof__dept .ico { width: 20px; height: 20px; }
.blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.block { background: #fff; padding: 26px 28px; border-radius: 3px; }
.block h2 { font-size: 15px; font-weight: 600; color: var(--teal); margin-bottom: 14px; }
.focus li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-weight: 500; }
.focus li:last-child { border-bottom: 0; }
.focus .ico { color: var(--teal); width: 18px; height: 18px; margin-top: 6px; }
.calls { display: grid; gap: 8px; }
.calls a.plate { justify-content: space-between; padding: 8px 40px; min-height: 64px; }
.calls a.plate span { font-size: 12.5px; color: var(--ice); }
.calls a.plate b { font-family: var(--latin); font-size: 20px; font-weight: 600; letter-spacing: .03em; direction: ltr; }
.calls a.plate .ico { color: var(--ice); }
.note { margin-top: 12px; font-size: 14px; color: var(--muted); line-height: 1.8; }

/* ============================================================== about */
.ab { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ab__photo { position: relative; min-height: 520px; overflow: hidden; border-start-end-radius: 44% 30%; }
.ab__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ab__txt { background: var(--mist); padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.ab__txt p { font-size: clamp(18px, 1.5vw, 21px); line-height: 2; }
[dir=ltr] .ab__txt p { line-height: 1.7; }
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.words .brk { min-height: 150px; display: grid; place-items: center; font-size: clamp(18px, 1.6vw, 22px); font-weight: 500; line-height: 1.5; }
[dir=ltr] .words .brk { text-transform: uppercase; font-weight: 400; letter-spacing: .04em; }
.team { margin-top: 10px; position: relative; overflow: hidden; background: #8fd3e4; }
.team img { width: 100%; height: auto; }

/* ============================================================== footer */
.ft { position: relative; background: var(--teal); color: rgba(255,255,255,.85); overflow: hidden; isolation: isolate; }
.ft__rib { position: absolute; z-index: -1; top: 0; bottom: 0; inset-inline-end: 0; width: min(34vw, 420px); opacity: .95; }

.ft__main { display: grid; grid-template-columns: 1.3fr 1fr 1.3fr; gap: 40px; padding: 90px 0 60px; padding-inline-end: min(30vw, 380px); }
.ft__brand img, .ft__brand .wordmark { height: 56px; width: auto; }
.ft__brand p { margin-top: 20px; font-size: 15px; max-width: 30ch; }
.ft h4 { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--ice); margin-bottom: 18px; font-weight: 600; font-family: var(--latin); }
[dir=rtl] .ft h4 { font-family: inherit; letter-spacing: 0; font-size: 15px; }
.ft li + li { margin-top: 9px; }
.ft a:hover { color: #fff; }
.ft__addr { font-size: 15px; line-height: 1.9; }
.ft__tels { margin-top: 14px; display: grid; gap: 4px; font-size: 17px; }
.ft__bar { background: var(--ink); color: rgba(255,255,255,.7); font-size: 14px; }
.ft__bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; min-height: 64px; }
.devby { display: inline-flex; align-items: center; gap: 10px; color: #fff; }
.devby b { font-family: var(--latin); font-weight: 600; letter-spacing: .02em; padding: 4px 10px; border-radius: 3px; background: var(--ice); color: var(--ink); }
.devby:hover b { background: #fff; }

/* ============================================================== reveal */
[data-rv] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
[data-rv].in { opacity: 1; transform: none; }
.hero .cv-ice { transform: translateY(40px); opacity: 0; transition: transform 1.2s var(--ease) .1s, opacity .9s .1s; }
.hero .cv-photo { clip-path: inset(0 0 100% 0); transition: clip-path 1.2s var(--ease) .35s; }
.hero .cv-block { opacity: 0; transition: opacity .9s .6s; }
.is-ready .hero .cv-ice { transform: none; opacity: 1; }
.is-ready .hero .cv-photo { clip-path: inset(0 0 0 0); }
.is-ready .hero .cv-block { opacity: 1; }
.page-in { animation: pin .6s var(--ease) both; }
@keyframes pin { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  [data-rv], .hero .cv-ice, .hero .cv-photo, .hero .cv-block { opacity: 1; transform: none; clip-path: none; }
}

/* ========================================================= responsive */
@media (max-width: 1180px) {
  .hd__nav { display: none; }
  .burger { display: grid; }
  .hd__tel span { display: none; }
  .hd__tel { width: 44px; padding: 0; justify-content: center; }
  .dgrid { grid-template-columns: repeat(3, 1fr); }
  .rgrid { grid-template-columns: repeat(3, 1fr); }
  .dir__plates { grid-template-columns: repeat(2, 1fr); }
  .ft__main { grid-template-columns: 1fr 1fr; padding-inline-end: 0; }
}
@media (max-width: 920px) {
  .hero__in { grid-template-columns: 1fr; }
  .hero__copy { padding: 120px 0 30px; padding-inline-end: 0; }
  .hero__art { min-height: 460px; margin-inline: calc(var(--gut) * -1); }
  .cv-ice { inset: 70px 0 0 0; }
  .cv-photo { top: 0; height: 58%; }
  .cv-block { height: 42%; }
  .dir { grid-template-columns: 1fr; }
  .dir__head { position: static; }
  .svc, .news, .words { grid-template-columns: 1fr 1fr; }
  .visit, .prof__grid, .ab, .blocks { grid-template-columns: 1fr; }
  .bill__in { grid-template-columns: 1fr; min-height: 340px; padding: 70px 0; }
  .bill__rib { opacity: .45; }
  .prof__photo { max-width: 460px; }
  .ft__rib { opacity: .35; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hd__in { height: 72px; gap: 10px; }
  .hd__logo img, .hd__logo .wordmark { height: 36px; }
  .hd__end { margin-inline-start: auto; gap: 6px; }
  .langs { height: 40px; }
  .langs button { min-width: 0; padding: 0 8px; font-size: 12.5px; }
  .hd__tel { display: none; }
  .circle { width: 112px; height: 112px; }
  .circle b { font-size: 26px; } [dir=rtl] .circle b { font-size: 25px; }
  .circle span { font-size: 13px; } .circle--list span { font-size: 11.5px; }
  .circles { gap: 8px; }
  .hero__art { min-height: 360px; }
  .cv-photo, .cv-block { width: 74%; }
  .hd .langs { display: none; }
  .dir__plates { grid-template-columns: 1fr 1fr; gap: 8px; }
  .dirplate, [dir=rtl] .dirplate { grid-template-columns: 1fr; align-content: start; gap: 6px; min-height: 112px; padding: 12px 12px 14px; }
  .dirplate__no { font-size: 24px; text-align: start; grid-row: 1; grid-column: 1; }
  .dirplate::after { grid-column: 1; grid-row: 1; margin-top: 2px; }
  .dirplate__name { font-size: 14.5px; }
  .dirplate__n { font-size: 12px; }
  .dgrid { grid-template-columns: 1fr 1fr; gap: 30px 12px; }
  .doc .plate { margin: -30px 6px 0; padding: 8px 22px; min-height: 54px; }
  .doc .plate::before, .doc .plate::after { width: 8px; border-width: 2px; }
  .doc .plate::before { inset-inline-start: 6px; } .doc .plate::after { inset-inline-end: 6px; }
  .doc .plate b { font-size: 13.5px; }
  .doc__spec { font-size: 12.5px; margin: 10px 4px 0; }
  .rgrid { grid-template-columns: 1fr 1fr; gap: 26px 12px; }
  .reel h3 { font-size: 14px; } [dir=rtl] .reel h3 { font-size: 13.5px; }
  .reel__play { width: 50px; height: 50px; margin: -25px 0 0 -25px; }
  .svc, .news, .words { grid-template-columns: 1fr; }
  .news a { grid-template-columns: 90px 1fr; }
  .news img { width: 90px; }
  .reelband__in { padding-inline-end: 0; min-height: 170px; flex-direction: column; align-items: flex-start; justify-content: center; padding-block: 34px; }
  .reelband__arch { height: 92px; opacity: 1; }
  .reelband__in { padding-top: 104px; }
  .reel__date { font-size: 10.5px; padding: 5px 8px; }
  .ft__rib { display: none; }
  .map { min-height: 360px; }
  .ft__main { grid-template-columns: 1fr; padding: 70px 0 40px; }
  .ph { padding: 120px 0 50px; }
  .ph__rib { width: 46vw; opacity: .6; }
  .ph__in > h1, .ph__in > p { max-width: none; }
}
