/* SmileCare Clinic — style.css (mobile-first, BEM, breakpoints 640 / 960 / 1280) */
:root {
  --blue: #1F5FA8; --blue-dark: #174A84; --blue-soft: #EAF2FB;
  --mint: #3BB39A; --mint-dark: #1E7C68; --mint-soft: #E7F6F2;
  --urgent: #C2410C; --urgent-soft: #FFF1EA;
  --navy: #13233A; --text: #1E2B3C; --muted: #52627A; --line: #DCE5EF;
  --bg: #FFFFFF; --bg-alt: #F5F8FC; --wa: #1E7C68; --star: #E3A008;
  --radius: 16px; --radius-sm: 10px; --shadow: 0 6px 24px rgba(19, 35, 58, .08); --shadow-lg: 0 16px 40px rgba(19, 35, 58, .14);
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'Inter', system-ui, sans-serif;
  --header-h: 64px; --gutter: 16px;
}
html[lang="ar"] { --font-head: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif; --font-body: 'IBM Plex Sans Arabic', 'Inter', system-ui, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; -webkit-text-size-adjust: 100%; }
html.no-scroll { overflow: hidden; }
body { margin: 0; font: 400 1rem/1.6 var(--font-body); color: var(--text); background: var(--bg); }
html[lang="ar"] body { line-height: 1.75; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 6vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); letter-spacing: -.01em; }
h3 { font-size: 1.125rem; }
html[lang="ar"] h1, html[lang="ar"] h2 { letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
[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; }
.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: middle; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.center { text-align: center; margin-top: 2rem; }
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 8px; }

/* ---------- buttons & chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.4em; border-radius: 999px; border: 2px solid transparent; font: 600 1rem/1.2 var(--font-body); text-decoration: none; transition: background .2s, color .2s, border-color .2s, transform .2s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); }
.btn--whatsapp { background: var(--wa); color: #fff; }
.btn--whatsapp:hover { background: #17604F; }
.btn--outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn--outline:hover { background: var(--blue-soft); }
.btn--ghost { color: var(--muted); background: transparent; text-decoration: underline; }
.btn--urgent { background: var(--urgent); color: #fff; }
.btn--urgent:hover { background: #A3360A; }
.btn--sm { min-height: 44px; padding: .5em 1em; font-size: .925rem; }
.btn--block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: .4em; min-height: 44px; padding: .45em 1em; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--text); font-size: .925rem; font-weight: 500; }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip--radio:has(input:checked) { background: var(--blue); border-color: var(--blue); color: #fff; }
.chip--static { min-height: 0; padding: .2em .7em; font-size: .8rem; background: var(--mint-soft); border-color: transparent; color: var(--mint-dark); font-weight: 600; }
.chip--es { margin-inline-start: .4em; vertical-align: middle; }
.chip--radio { cursor: pointer; position: relative; }
.chip--radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip--radio:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.chip--urgent:has(input:checked) { background: var(--urgent); border-color: var(--urgent); }
.eyebrow { font: 600 .85rem/1.3 var(--font-body); text-transform: uppercase; letter-spacing: .08em; color: var(--mint-dark); margin-bottom: .75rem; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.note { display: flex; gap: .6em; align-items: flex-start; padding: .8em 1em; border-radius: var(--radius-sm); background: var(--blue-soft); color: var(--navy); font-size: .925rem; }
.note .icon { color: var(--blue); margin-top: .1em; }
.note--small { font-size: .85rem; display: block; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 18px; height: 18px; fill: currentColor; }

/* ---------- urgent bar & header ---------- */
.urgent-bar { background: var(--navy); color: #fff; font-size: .875rem; }
.urgent-bar__inner { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding-block: 6px; }
.urgent-bar p { margin: 0; text-align: center; }
.urgent-bar a { color: #fff; font-weight: 600; }
.urgent-bar__long { display: none; }
.urgent-bar__close { background: none; border: 0; color: #fff; min-width: 40px; min-height: 40px; display: grid; place-items: center; border-radius: 50%; }
.header { position: sticky; top: 0; z-index: 50; }
.header::before { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; z-index: -1; }
.header--scrolled::before { border-color: var(--line); box-shadow: 0 2px 12px rgba(19, 35, 58, .06); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy); margin: 0; }
.logo__icon { width: 34px; height: 34px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; font-family: 'Plus Jakarta Sans', system-ui, sans-serif; }
.logo__name { font-weight: 700; font-size: 1.2rem; }
.logo__name span { color: var(--blue); }
.logo__sub { font-size: .62rem; letter-spacing: .3em; color: var(--muted); margin-top: 3px; }
.header__actions { display: flex; align-items: center; gap: 8px; }
.header__cta, .lang-switch.header__langs { display: none; }
.lang-switch { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 2px; background: #fff; }
.lang-switch button { min-width: 40px; min-height: 40px; border: 0; border-radius: 999px; background: none; font-weight: 600; font-size: .85rem; color: var(--muted); }
.lang-switch button[aria-pressed="true"] { background: var(--blue); color: #fff; }
.city-select { position: relative; }
.city-select__btn { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 10px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; font-weight: 600; font-size: .875rem; color: var(--navy); }
.city-select__btn .icon { width: 1.05em; height: 1.05em; color: var(--blue); }
.city-select__caret { transition: transform .2s; }
.city-select__btn[aria-expanded="true"] .city-select__caret { transform: rotate(180deg); }
.city-select__list { position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 180px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.city-select__list:focus { outline: none; }
.city-select__list [role="option"] { padding: 10px 12px; border-radius: 8px; cursor: pointer; font-weight: 500; }
.city-select__list [role="option"].is-active, .city-select__list [role="option"]:hover { background: var(--blue-soft); }
.city-select__list [aria-selected="true"]::after { content: ' ✓'; color: var(--blue); }
.burger { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { position: fixed; top: 0; inset-inline-end: 0; height: 100dvh; width: min(86vw, 340px); background: #fff; padding: calc(var(--header-h) + 16px) 20px 24px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; transform: translateX(100%); transition: transform .3s ease; z-index: 45; box-shadow: var(--shadow-lg); visibility: hidden; }
[dir="rtl"] .nav { transform: translateX(-100%); }
.nav--open { transform: none !important; visibility: visible; }
.nav__list a { display: block; padding: 12px 4px; font-weight: 600; color: var(--navy); text-decoration: none; border-bottom: 1px solid var(--line); }
.nav__list a[aria-current="true"] { color: var(--blue); }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(19, 35, 58, .45); z-index: 40; }

/* ---------- status ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); font-weight: 500; margin: 0; }
.status__dot { width: 10px; height: 10px; border-radius: 50%; background: #94A3B8; }
.status--open .status__dot { background: var(--mint); box-shadow: 0 0 0 4px rgba(59, 179, 154, .2); }
.status--open { color: var(--mint-dark); }

/* ---------- hero ---------- */
.hero { padding: 32px 0 48px; background: linear-gradient(180deg, var(--blue-soft), #fff 70%); }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 20px; }
.hero__points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 16px; font-weight: 500; }
.hero__points li { display: inline-flex; align-items: center; gap: 6px; }
.hero__points .icon { color: var(--mint-dark); }
.hero__media { position: relative; }
.hero__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.hero__card { position: absolute; display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 14px; padding: 10px 14px; box-shadow: var(--shadow-lg); font-size: .85rem; color: var(--navy); }
.hero__card--rating { bottom: -18px; inset-inline-start: 12px; flex-direction: column; align-items: flex-start; gap: 2px; }
.hero__card--tech { top: 14px; inset-inline-end: 12px; font-weight: 600; max-width: 70%; }
.hero__card--tech .icon { color: var(--blue); }

/* ---------- trust ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust__list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 12px; padding-block: 28px; text-align: center; }
.trust__list li { display: flex; flex-direction: column; gap: 2px; color: var(--muted); font-size: .875rem; }
.trust__num { font: 700 1.6rem/1.2 var(--font-head); color: var(--blue); }
.trust__num--text { font-size: 1.2rem; padding-top: .3em; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: 28px; }
.section__lead { color: var(--muted); font-size: 1.05rem; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s, transform .6s; }
.no-js .reveal, html:not(.js) .reveal, .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- treatments ---------- */
.filters { margin: 20px 0 24px; }
.treatments { display: grid; gap: 16px; margin-top: 20px; }
.treat { padding: 22px; display: flex; flex-direction: column; }
.treat__icon { width: 36px; height: 36px; color: var(--blue); background: var(--blue-soft); padding: 7px; border-radius: 10px; margin-bottom: 12px; }
.treat__desc { color: var(--muted); font-size: .95rem; flex: 1; }
.treat__price { font: 700 1.05rem/1.35 var(--font-head); color: var(--navy); margin-bottom: 4px; }
.treat__visits { font-size: .875rem; color: var(--mint-dark); font-weight: 600; }
.treat__links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.treat__links a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- estimator ---------- */
.est { display: grid; gap: 20px; align-items: start; }
.est__steps { padding: 20px; display: grid; gap: 24px; }
.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step__title { display: flex; align-items: center; gap: 10px; font: 700 1.05rem/1.3 var(--font-head); color: var(--navy); margin-bottom: 12px; padding: 0; }
.step__num { width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: .875rem; flex: none; }
.est__picks { display: grid; gap: 8px; }
.pick { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .2s, background .2s; }
.pick input { width: 20px; height: 20px; accent-color: var(--blue); grid-row: span 2; }
.pick__name { font-weight: 600; color: var(--navy); }
.pick__price { font-size: .825rem; color: var(--muted); }
.pick:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.pick:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 2px; }
.est__options { display: grid; gap: 14px; }
.opt-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.opt-group legend { font-weight: 700; color: var(--navy); padding: 0 6px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.opt__label { font-size: .925rem; color: var(--muted); }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; }
.stepper__btn { width: 44px; height: 44px; border: 0; background: none; display: grid; place-items: center; color: var(--blue); border-radius: 50%; }
.stepper__value { min-width: 2ch; text-align: center; font-weight: 700; }
.segmented { display: flex; flex-wrap: wrap; gap: 6px; }
.segmented label { position: relative; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; }
.segmented span { display: inline-flex; align-items: center; min-height: 44px; padding: .4em .95em; border: 1.5px solid var(--line); border-radius: 999px; font-size: .9rem; font-weight: 500; background: #fff; }
.segmented input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.segmented input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.input { width: 100%; min-height: 48px; padding: .6em .85em; border: 1.5px solid #B7C5D6; border-radius: var(--radius-sm); background: #fff; }
.input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(31, 95, 168, .2); }
.input[aria-invalid="true"], [aria-invalid="true"] .chip { border-color: var(--urgent); }
textarea.input { resize: vertical; }
.est__result { position: sticky; bottom: 0; z-index: 5; }
.est__card { padding: 18px; border-color: var(--blue); box-shadow: var(--shadow-lg); }
.est__total { font-size: 1.05rem; color: var(--navy); margin-bottom: 8px; }
.est__total strong { display: block; font: 700 1.5rem/1.25 var(--font-head); color: var(--blue); }
.est__toggle { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--blue); font-weight: 600; min-height: 40px; padding: 0; }
.est__toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.est__details { display: none; }
.est__result--open .est__details { display: block; }
.est__lines { display: grid; gap: 8px; margin: 8px 0 12px; font-size: .925rem; }
.est__lines li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.est__lines strong { white-space: nowrap; }
.est__graft { color: var(--muted); font-size: .85rem; }
.est__visits, .est__monthly { font-size: .925rem; }
.est__monthly strong { color: var(--mint-dark); }
.est__legal { font-size: .8rem; color: var(--muted); }
.est__actions { display: grid; gap: 6px; justify-items: center; margin-top: 10px; }
@media (max-width: 959px) {
  .est__card { padding: 12px 14px; border-radius: 14px 14px 0 0; }
  .est__total { font-size: .9rem; margin-bottom: 2px; }
  .est__total strong { font-size: 1.15rem; display: inline; }
  .est__result:not(.est__result--open) [data-est-reset] { display: none; }
  .est__actions { margin-top: 6px; }
}

/* ---------- method ---------- */
.steps { display: grid; gap: 16px; margin-bottom: 32px; counter-reset: s; }
.steps__item { padding: 20px; background: var(--mint-soft); border-radius: var(--radius); }
.steps__num { width: 36px; height: 36px; border-radius: 50%; background: var(--mint-dark); color: #fff; display: grid; place-items: center; font-weight: 700; margin-bottom: 12px; }
.steps__item p { margin: 0; color: var(--text); }
.method__img { width: 100%; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 24px; }

/* ---------- carousels ---------- */
.carousel { display: grid; grid-auto-flow: column; grid-auto-columns: 85%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { scroll-snap-align: start; }
.dots { display: flex; justify-content: center; gap: 4px; margin-top: 12px; }
.dots__dot { width: 32px; height: 32px; border: 0; background: none; display: grid; place-items: center; padding: 0; }
.dots__dot::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: #B7C5D6; transition: background .2s, width .2s; }
.dots__dot[aria-current="true"]::before { background: var(--blue); width: 22px; border-radius: 6px; }

/* ---------- doctors ---------- */
.doctor { position: relative; overflow: hidden; display: flex; flex-direction: column; }
.doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; }
.doctor__badge { display: none; position: absolute; top: 12px; inset-inline-start: 12px; background: var(--mint-dark); color: #fff; font-size: .8rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.doctor--yours { border-color: var(--mint); box-shadow: 0 0 0 2px var(--mint), var(--shadow); }
.doctor--yours .doctor__badge { display: block; }
.doctor__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.doctor__body h3 { margin-bottom: 4px; }
.doctor__title { color: var(--blue); font-weight: 600; margin-bottom: 8px; }
.doctor__city { margin-bottom: 8px; }
.doctor__meta { font-size: .875rem; color: var(--muted); margin-bottom: 4px; }
.doctor__body .btn { margin-top: auto; }
.doctor__body > p:last-of-type { margin-bottom: 16px; }

/* ---------- tour ---------- */
.tour__track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--radius); }
.tour__track::-webkit-scrollbar { display: none; }
.tour__slide { scroll-snap-align: start; }
.tour__slide a { display: block; border-radius: var(--radius); overflow: hidden; }
.tour__slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.tour__slide a:hover img { transform: scale(1.03); }
.tour__cap { margin: 10px 0 0; color: var(--muted); font-size: .925rem; }
.tour__nav { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; }
.tour__nav .dots { margin: 0; }
.tour__arrow { width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--blue); }
.tour__arrow--prev .icon, [dir="rtl"] .tour__arrow--next .icon, .lightbox__prev .icon, [dir="rtl"] .lightbox__next .icon { transform: scaleX(-1); }
[dir="rtl"] .tour__arrow--prev .icon, [dir="rtl"] .lightbox__prev .icon { transform: none; }

/* ---------- insurance ---------- */
.ins { display: grid; gap: 16px; }
.ins__card { padding: 22px; }
.ins__icon { width: 40px; height: 40px; color: var(--mint-dark); background: var(--mint-soft); padding: 8px; border-radius: 12px; margin-bottom: 12px; }
.ins__card p { color: var(--muted); }
.ins__card p:last-child { margin-bottom: 0; }

/* ---------- reviews ---------- */
.review { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.review blockquote { margin: 0; font-size: 1.02rem; flex: 1; }
.review__who { margin: 0; color: var(--muted); }
.reviews__note { font-size: .825rem; color: var(--muted); text-align: center; margin-top: 16px; }
.reviews__sum { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin: 0; }
.reviews__sum a { font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- MRE ---------- */
.mre { background: linear-gradient(135deg, var(--blue-soft), var(--mint-soft)); }
.mre__grid { display: grid; gap: 28px; align-items: center; }
.mre__steps { display: grid; gap: 12px; margin: 20px 0; }
.mre__steps li { display: flex; gap: 12px; align-items: flex-start; }
.mre__steps li > span:first-child { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; font-size: .875rem; }
.mre__summer { display: flex; gap: 8px; align-items: center; font-weight: 600; color: var(--navy); margin: 16px 0; }
.mre__summer .icon { color: var(--mint-dark); }
.mre__form { margin-top: 16px; padding: 18px; display: grid; gap: 14px; }
.mre__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }

/* ---------- form ---------- */
.booking { display: grid; gap: 20px; align-items: start; }
.booking__form { padding: 20px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field__label { font-weight: 600; color: var(--navy); font-size: .95rem; padding: 0; margin-bottom: 2px; }
.field__opt { font-weight: 400; color: var(--muted); font-size: .85rem; }
.field__error { margin: 0; color: var(--urgent); font-size: .85rem; font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.field__hint { margin: 0; color: var(--muted); font-size: .85rem; }
.field__counter { text-align: end; }
.row { display: grid; gap: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: .95rem; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--blue); flex: none; }
.urgent-box { background: var(--urgent-soft); border: 1.5px solid var(--urgent); border-radius: var(--radius-sm); padding: 14px 16px; display: grid; gap: 10px; justify-items: start; }
.urgent-box p { margin: 0; color: #7C2D12; font-weight: 500; }
.estimate-chip { display: flex; align-items: center; gap: 8px; justify-content: space-between; margin: 0; background: var(--blue-soft); border-radius: var(--radius-sm); padding: 8px 8px 8px 14px; font-size: .9rem; color: var(--navy); }
.estimate-chip button { width: 40px; height: 40px; flex: none; border: 0; background: #fff; border-radius: 50%; display: grid; place-items: center; color: var(--muted); }
.booking__submit { display: grid; gap: 8px; }
.btn--submit { width: 100%; }
.form__micro { font-size: .825rem; color: var(--muted); margin: 0; }
.form__success { margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--mint-soft); color: var(--mint-dark); font-weight: 600; }
.booking__nojs { padding: 20px; }
.clinic-card { overflow: hidden; }
.clinic-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.clinic-card__body { padding: 20px; display: grid; gap: 14px; }
.clinic-card__body h3 { margin: 0; }
.info { display: grid; gap: 10px; font-size: .95rem; }
.info li { display: flex; gap: 10px; align-items: flex-start; }
.info .icon { color: var(--blue); margin-top: .15em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; font-weight: 600; color: var(--navy); list-style: none; min-height: 56px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--blue); transition: transform .25s; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details p { padding: 0 18px 18px; margin: 0; color: var(--muted); }

/* ---------- clinics ---------- */
.tabs { margin-bottom: 20px; }
.clinics { display: grid; gap: 20px; }
.clinic { padding: 22px; display: grid; gap: 12px; }
.clinic h3 { margin: 0; }
.clinic__line { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: .95rem; }
.clinic__line .icon { color: var(--blue); margin-top: .15em; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours th, .hours td { padding: 8px 6px; text-align: start; border-bottom: 1px solid var(--line); }
.hours th { font-weight: 500; color: var(--muted); }
.hours td { font-weight: 600; text-align: end; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--blue); background: var(--blue-soft); }
.clinic__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.map { min-height: 320px; border-radius: var(--radius); overflow: hidden; background: linear-gradient(135deg, #DCE8F5, #E7F6F2); position: relative; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__facade { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; padding: 24px; gap: 4px; }
.map__facade p { margin: 0 0 6px; color: var(--muted); font-size: .9rem; }
.map__facade strong { color: var(--navy); font-size: 1.1rem; }
.map__pin { width: 56px; height: 56px; background: #fff; padding: 10px; border-radius: 50%; box-shadow: var(--shadow); margin-bottom: 8px; }

/* ---------- footer ---------- */
.footer { background: var(--navy); color: #C9D5E3; padding-top: 48px; font-size: .925rem; }
.footer a { color: #fff; }
.footer .logo { color: #fff; }
.footer .logo__name span { color: #7FB3EA; }
.footer .logo__sub { color: #A8B8CC; }
.footer__grid { display: grid; gap: 32px; padding-bottom: 32px; }
.footer__brand p { margin-top: 12px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); }
.footer__clinics { display: grid; gap: 16px; }
.footer__clinics li { display: grid; gap: 2px; }
.footer__clinics strong { color: #fff; }
.footer__clinics small { color: #A8B8CC; font-size: .825rem; }
.footer__col { display: grid; gap: 16px; align-content: start; justify-items: start; }
.footer__links { display: grid; gap: 4px; }
.footer__links a { text-decoration: none; display: inline-flex; min-height: 40px; align-items: center; }
.footer .lang-switch { background: transparent; border-color: rgba(255, 255, 255, .25); }
.footer .lang-switch button { color: #C9D5E3; }
.footer .lang-switch button[aria-pressed="true"] { background: #fff; color: var(--navy); }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 96px; font-size: .825rem; color: #A8B8CC; }
.footer__bottom p { margin: 0 0 6px; }
.footer__legal { color: #C9D5E3; }

/* ---------- FAB & lightbox ---------- */
.fab { position: fixed; bottom: 18px; inset-inline-end: 18px; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: var(--shadow-lg); z-index: 30; transition: opacity .25s, transform .25s; }
.fab svg { width: 30px; height: 30px; }
.fab--hidden { opacity: 0; transform: scale(.8); pointer-events: none; }
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10, 18, 30, .94); color: #fff; }
.lightbox::backdrop { background: rgba(10, 18, 30, .8); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox__figure { margin: 0; display: grid; place-items: center; gap: 12px; width: 100%; height: 100%; padding: 64px 16px; }
.lightbox__img { max-width: 100%; max-height: 80vh; border-radius: 12px; object-fit: contain; }
.lightbox__caption { text-align: center; font-size: .925rem; color: #DCE5EF; }
.lightbox__btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; display: grid; place-items: center; z-index: 2; }
.lightbox__close { top: 14px; inset-inline-end: 14px; }
.lightbox__prev, .lightbox__next { top: 50%; transform: translateY(-50%); }
.lightbox__prev { inset-inline-start: 10px; }
.lightbox__next { inset-inline-end: 10px; }

/* ================= ≥ 640px ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .urgent-bar__long { display: inline; }
  .urgent-bar__short { display: none; }
  .hero__ctas { flex-direction: row; flex-wrap: wrap; }
  .trust__list { grid-template-columns: repeat(4, 1fr); }
  .treatments, .ins { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .carousel { grid-auto-columns: calc((100% - 16px) / 2); }
  .row { grid-template-columns: 1fr 1fr; }
  .est__picks { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ================= ≥ 960px ================= */
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .header__cta, .lang-switch.header__langs { display: inline-flex; }
  .hero { padding: 56px 0 80px; }   .hero__grid { grid-template-columns: 1.05fr .95fr; gap: 56px; }
  .section { padding: 96px 0; }
  .treatments { grid-template-columns: repeat(3, 1fr); }
  .ins, .steps { grid-template-columns: repeat(4, 1fr); }
  .est { grid-template-columns: 1.4fr 1fr; gap: 28px; }
  .est__result { position: sticky; top: calc(var(--header-h) + 16px); bottom: auto; }
  .est__toggle { display: none; }
  .est__details { display: block; }
  .carousel { grid-auto-columns: calc((100% - 32px) / 3); overflow: visible; }
  .carousel + .dots { display: none; }
  .tour__track { grid-auto-columns: calc((100% - 12px) / 1.6); }
  .mre__grid { grid-template-columns: 1.1fr .9fr; gap: 56px; }
  .booking { grid-template-columns: 1.5fr 1fr; gap: 28px; }
  .clinic-card { position: sticky; top: calc(var(--header-h) + 16px); }
  .clinics { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .footer__grid { grid-template-columns: 1.2fr 1.3fr 1fr; }
  .footer__bottom { padding-bottom: 28px; }
}

/* ================= ≥ 1280px ================= */
@media (min-width: 1280px) {
  .burger { display: none; }
  .nav { position: static; transform: none; visibility: visible; height: auto; width: auto; padding: 0; background: none; box-shadow: none; flex-direction: row; overflow: visible; }
  .nav__cities, .nav__langs, .nav__cta, .nav__extra { display: none; }
  .nav__list { display: flex; gap: 2px; }
  .nav__list a { border: 0; padding: 8px 12px; font-size: .95rem; border-radius: 8px; white-space: nowrap; }
  .nav__list a:hover { background: var(--blue-soft); }
  .drawer-backdrop { display: none !important; }
  .header__cta { white-space: nowrap; }
  .hero__card--rating { inset-inline-start: -24px; }
  .est__picks { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .urgent-bar, .header, .fab, .map, .lightbox { display: none !important; }
  .reveal { opacity: 1; transform: none; }
}
