/* =========================================================
   Accessibility menu — modelled on the UserWay widget of asan.gov.az.
   Sized in px so the page's text-size setting does not enlarge the menu.
   Brand colour: the navy of the doctor's logo.
   ========================================================= */

:root {
  --uwa-main: #1A5188;
  --uwa-main-rgb: 26, 81, 136;
  --uwa-main-dark: #123C66;
  --uwa-body: #EFF1F5;
}

/* ---------- launcher ---------- */
.uwa-launch {
  position: fixed;
  left: 13px;
  bottom: 13px;
  z-index: 110;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--uwa-main);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(var(--uwa-main-rgb), .35);
  transition: transform .1s, background-color .1s;
}
.uwa-launch svg { width: 30px; height: 30px; }
.uwa-launch:hover { background: var(--uwa-main-dark); transform: scale(1.06); }
.uwa-launch:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 6px var(--uwa-main); }

/* ---------- overlay + panel ---------- */
html.uwa-open { overflow: hidden; }

.uwa {
  position: fixed;
  inset: 0;
  z-index: 190;
  font-family: "Fira Sans", "Segoe UI", system-ui, sans-serif;
  font-size: 13px;
  line-height: 1.2;
  letter-spacing: normal;
  word-spacing: normal;
  text-align: left;
}
.uwa[hidden] { display: none !important; }
.uwa__scrim { position: absolute; inset: 0; background: rgba(15, 33, 53, .18); }

.uwa__panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 360px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--uwa-main);
  box-shadow: 0 0 48px rgba(0, 0, 0, .22);
  animation: uwaIn .2s ease-out;
}
@keyframes uwaIn { from { transform: translateX(-18px); opacity: .4; } to { transform: none; opacity: 1; } }
.uwa.is-xl .uwa__panel { width: 520px; }

.uwa__header {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 20px;
}
.uwa__title {
  margin: 0;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: normal;
  color: #fff;
}
.uwa.is-xl .uwa__title { font-size: 16px; }

.uwa__close {
  position: relative;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .36);
  color: #fff;
  cursor: pointer;
}
.uwa__close:focus { outline: none; }
.uwa__close:focus-visible::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  outline: 3px solid rgba(255, 255, 255, .3);
}

.uwa__body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  background: var(--uwa-body);
  border-radius: 16px 16px 0 0;
  -webkit-overflow-scrolling: touch;
}
.uwa__content { padding: 20px; }

/* ---------- "Böyük ölçülü vidjet" switch row ---------- */
.uwa-switchrow {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 8px;
}
.uwa-switchrow__icon { display: flex; width: 30px; height: 30px; align-items: center; justify-content: center; color: #000; }
.uwa-switchrow__icon svg { width: 24px; height: 24px; }
.uwa-switchrow__label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  color: #000;
  cursor: pointer;
}
.uwa.is-xl .uwa-switchrow__label { font-size: 17px; }

.uwa-switch { position: relative; flex: 0 0 auto; width: 45px; height: 24px; }
.uwa.is-xl .uwa-switch { width: 47px; height: 28px; }
.uwa-switch__input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.uwa-switch__track {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 22px;
  background: #313D5C;
}
.uwa-switch__track::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--uwa-main);
  transform: translateX(-100%);
  transition: transform .15s ease;
}
.uwa-switch__knob {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #fff;
  color: #313D5C;
  transition: transform .15s ease;
}
.uwa.is-xl .uwa-switch__knob { width: 24px; }
.uwa-switch__knob svg { width: 10px; height: 10px; }
.uwa-switch__on { display: none; }
.uwa-switch__input:checked + .uwa-switch__track::before { transform: none; }
.uwa-switch__input:checked + .uwa-switch__track .uwa-switch__knob { transform: translateX(19px); color: var(--uwa-main); }
.uwa-switch__input:checked + .uwa-switch__track .uwa-switch__on { display: block; }
.uwa-switch__input:checked + .uwa-switch__track .uwa-switch__off { display: none; }
.uwa-switch__input:focus-visible + .uwa-switch__track { outline: 2px solid var(--uwa-main); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(var(--uwa-main-rgb), .22); }

/* ---------- tiles ---------- */
.uwa-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  margin: 0;
  padding: 0 0 15px;
  list-style: none;
}
.uwa-grid > li { min-width: 0; }

.uwa-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 114px;
  padding: 5px 10px 12px;
  border: 2px solid #fff;
  border-radius: 12px;
  background: #fff;
  color: #000;
  font: inherit;
  text-align: center;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.uwa-tile:hover { border-color: var(--uwa-main); }
.uwa-tile:focus { outline: none; }
.uwa-tile:focus-visible::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--uwa-main);
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(var(--uwa-main-rgb), .22);
}

.uwa-tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  margin: 10px 0 7px;
  color: #000;
}
.uwa-tile__icon svg { width: 28px; height: 28px; }
.uwa-tile__name {
  display: block;
  max-width: 100%;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -.15px;
  color: #000;
  overflow-wrap: anywhere;
}

.uwa-tile__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: none;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(var(--uwa-main-rgb), .88);
  color: #fff;
}
.uwa-tile__badge svg { width: 10px; height: 10px; }

.uwa-tile__steps {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  display: flex;
  gap: 5px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .15s ease, visibility .15s ease;
}
.uwa-tile__steps i {
  flex: 1 1 0;
  height: 3px;
  border-radius: 10px;
  background: rgba(var(--uwa-main-rgb), .3);
}
.uwa-tile__steps i.is-on { background: var(--uwa-main); }

.uwa-tile.is-active { border-color: var(--uwa-main); box-shadow: 0 0 0 5px rgba(var(--uwa-main-rgb), .1); }
.uwa-tile.is-active .uwa-tile__name,
.uwa-tile.is-active .uwa-tile__icon { color: var(--uwa-main); }
.uwa-tile.is-active .uwa-tile__badge { display: flex; }
.uwa-tile.is-active .uwa-tile__steps { opacity: 1; visibility: visible; }

.uwa.is-xl .uwa-tile { height: 154px; }
.uwa.is-xl .uwa-tile__icon { transform: scale(1.3); margin-bottom: 20px; }
.uwa.is-xl .uwa-tile__name { font-size: 22px; }
.uwa.is-xl .uwa-tile__badge { width: 24px; height: 24px; }
.uwa.is-xl .uwa-tile__badge svg { width: 14px; height: 14px; }

/* ---------- reset ---------- */
.uwa-reset {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  border: 0;
  border-radius: 10px;
  background: var(--uwa-main);
  color: #fff;
  font: inherit;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -.2px;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s ease;
}
.uwa-reset svg { flex: 0 0 auto; width: 20px; height: 20px; }
.uwa-reset:hover { background: var(--uwa-main-dark); }
.uwa-reset:focus { outline: none; }
.uwa-reset:focus-visible { outline: 2px solid var(--uwa-main); outline-offset: 4px; box-shadow: 0 0 0 7px rgba(var(--uwa-main-rgb), .22); }
.uwa.is-xl .uwa-reset { font-size: 17px; }

/* ---------- phones ---------- */
@media (max-width: 600px) {
  .uwa__panel, .uwa.is-xl .uwa__panel { width: 100%; }
}
@media (max-width: 767.98px) {
  .uwa-launch { bottom: calc(86px + env(safe-area-inset-bottom)); }
}

/* =========================================================
   Page effects. `.uwa-x` marks the widget's own elements.
   ========================================================= */

/* Contrast + : invert (root filter keeps fixed elements in place) */
html[data-uwa-contrast="invert"] { filter: invert(1) hue-rotate(180deg); }
html[data-uwa-contrast="invert"] :is(img, video, iframe, .uwa-x) { filter: invert(1) hue-rotate(180deg); }

/* Saturation, alone and combined with invert */
html[data-uwa-sat="low"] { filter: saturate(.5); }
html[data-uwa-sat="high"] { filter: saturate(2); }
html[data-uwa-sat="mono"] { filter: grayscale(1); }
html[data-uwa-contrast="invert"][data-uwa-sat="low"] { filter: invert(1) hue-rotate(180deg) saturate(.5); }
html[data-uwa-contrast="invert"][data-uwa-sat="high"] { filter: invert(1) hue-rotate(180deg) saturate(2); }
html[data-uwa-contrast="invert"][data-uwa-sat="mono"] { filter: invert(1) hue-rotate(180deg) grayscale(1); }

/* Contrast + : dark and light. Every surface turns transparent over one solid
   page colour; only floating layers that must cover the page stay opaque. */
html[data-uwa-contrast="dark"],
html[data-uwa-contrast="dark"] body { background: #000 !important; }
html[data-uwa-contrast="dark"] body *:not(.uwa-x, .uwa-x *) {
  background-color: transparent !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-uwa-contrast="dark"] body *:not(.uwa-x, .uwa-x *, img) { background-image: none !important; }
html[data-uwa-contrast="dark"] body :is(.site-header, .submenu, .drawer__panel, .finder__panel, .cta):not(.uwa-x *) { background-color: #000 !important; }
html[data-uwa-contrast="dark"] body a[href]:not(.uwa-x *) { color: #FFF200 !important; }
html[data-uwa-contrast="dark"] body :is(.btn, .cicon, .iconbtn, input, textarea, select):not(.uwa-x *) { border: 1px solid #fff !important; }
html[data-uwa-contrast="dark"] body :is(.ecg path, .hero__ecg path, .footer__pulse path) { stroke: #fff !important; }

html[data-uwa-contrast="light"],
html[data-uwa-contrast="light"] body { background: #fff !important; }
html[data-uwa-contrast="light"] body *:not(.uwa-x, .uwa-x *) {
  background-color: transparent !important;
  color: #000 !important;
  border-color: #000 !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html[data-uwa-contrast="light"] body *:not(.uwa-x, .uwa-x *, img) { background-image: none !important; }
html[data-uwa-contrast="light"] body :is(.site-header, .submenu, .drawer__panel, .finder__panel, .cta):not(.uwa-x *) { background-color: #fff !important; }
html[data-uwa-contrast="light"] body a[href]:not(.uwa-x *) { color: #0000C8 !important; }
html[data-uwa-contrast="light"] body :is(.btn, .cicon, .iconbtn, input, textarea, select):not(.uwa-x *) { border: 1px solid #000 !important; }
html[data-uwa-contrast="light"] body :is(.ecg path, .hero__ecg path, .footer__pulse path) { stroke: #000 !important; }
html:is([data-uwa-contrast="dark"], [data-uwa-contrast="light"]) body::before { display: none !important; }
html:is([data-uwa-contrast="dark"], [data-uwa-contrast="light"]) body :not(.uwa-x, .uwa-x *)::before,
html:is([data-uwa-contrast="dark"], [data-uwa-contrast="light"]) body :not(.uwa-x, .uwa-x *)::after { background-image: none !important; box-shadow: none !important; }

/* Link seçin */
html.uwa-links body a[href]:not(.uwa-x *) {
  background-color: #FFF200 !important;
  color: #000 !important;
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 3px !important;
  outline: 2px solid #000 !important;
  outline-offset: 1px !important;
}
html.uwa-links body a[href]:not(.uwa-x *) * { color: #000 !important; }

/* Daha böyük mətn — sizes are rem-based, so the root scales everything */
html[data-uwa-text="1"] { font-size: 112.5%; }
html[data-uwa-text="2"] { font-size: 125%; }
html[data-uwa-text="3"] { font-size: 137.5%; }
html[data-uwa-text="4"] { font-size: 150%; }

/* Mətn boşluğu */
html[data-uwa-spacing="1"] body *:not(.uwa-x, .uwa-x *) { letter-spacing: .06em !important; word-spacing: .12em !important; }
html[data-uwa-spacing="2"] body *:not(.uwa-x, .uwa-x *) { letter-spacing: .1em !important; word-spacing: .24em !important; }
html[data-uwa-spacing="3"] body *:not(.uwa-x, .uwa-x *) { letter-spacing: .16em !important; word-spacing: .36em !important; }

/* Xətt hündürlüyü — 1.5×, 1.75×, 2× of the site's own values (text 1.65, headings 1.15) */
html[data-uwa-lh="1"] body, html[data-uwa-lh="1"] body *:not(.uwa-x, .uwa-x *) { line-height: 2.48 !important; }
html[data-uwa-lh="2"] body, html[data-uwa-lh="2"] body *:not(.uwa-x, .uwa-x *) { line-height: 2.89 !important; }
html[data-uwa-lh="3"] body, html[data-uwa-lh="3"] body *:not(.uwa-x, .uwa-x *) { line-height: 3.3 !important; }
html[data-uwa-lh="1"] body :is(h1, h2, h3, h4):not(.uwa-x *) { line-height: 1.73 !important; }
html[data-uwa-lh="2"] body :is(h1, h2, h3, h4):not(.uwa-x *) { line-height: 2.01 !important; }
html[data-uwa-lh="3"] body :is(h1, h2, h3, h4):not(.uwa-x *) { line-height: 2.3 !important; }

/* Mətnin düzülməsi */
html[data-uwa-align="left"] body *:not(.uwa-x, .uwa-x *) { text-align: left !important; }
html[data-uwa-align="right"] body *:not(.uwa-x, .uwa-x *) { text-align: right !important; }
html[data-uwa-align="center"] body *:not(.uwa-x, .uwa-x *) { text-align: center !important; }
html[data-uwa-align="justify"] body *:not(.uwa-x, .uwa-x *) { text-align: justify !important; }

/* Disleksiya rejimi / Oxunabilən */
html[data-uwa-font="dyslexia"] body *:not(.uwa-x, .uwa-x *) {
  font-family: "Lexend", Verdana, Tahoma, sans-serif !important;
  font-style: normal !important;
}
html[data-uwa-font="legible"] body *:not(.uwa-x, .uwa-x *) {
  font-family: Verdana, Tahoma, Arial, sans-serif !important;
  font-style: normal !important;
}

/* Animasiyalara fasilə ver */
html.uwa-pause { scroll-behavior: auto !important; }
html.uwa-pause body *:not(.uwa-x, .uwa-x *),
html.uwa-pause body *:not(.uwa-x, .uwa-x *)::before,
html.uwa-pause body *:not(.uwa-x, .uwa-x *)::after {
  animation: none !important;
  transition: none !important;
}

/* Şəkilləri gizlədin — the image's alt text takes its place */
html.uwa-hideimg body img:not(.uwa-x *) { visibility: hidden !important; }
.uwa-alt { display: none; }
html.uwa-hideimg .uwa-alt-host { position: relative; }
html.uwa-hideimg .uwa-alt {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border: 2px dashed #8A8A8A;
  border-radius: inherit;
  background: #F4F4F4;
  color: #111;
  font: 600 14px/1.4 "Fira Sans", "Segoe UI", sans-serif;
  text-align: center;
  overflow: hidden;
}

/* Kursor: böyük kursor */
html[data-uwa-cursor="big"],
html[data-uwa-cursor="big"] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M6 3v36l9.5-8.8 6.2 14.3 6-2.6-6.1-14.1 13.4-.4Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important; }
html[data-uwa-cursor="big"] :is(a, button, summary, label, [role="button"], input[type="checkbox"]),
html[data-uwa-cursor="big"] :is(a, button, summary, label, [role="button"]) * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M17 4.5a3.5 3.5 0 0 1 7 0v14.2l1.8-.3a3.4 3.4 0 0 1 3.9 2.4l.2.6 1.6-.2a3.4 3.4 0 0 1 3.8 2.6l2.2-.1a3.4 3.4 0 0 1 3.5 3.4V36c0 5.2-4.2 9.5-9.5 9.5h-6.1a9.5 9.5 0 0 1-7.5-3.7L6.6 32.3a3.4 3.4 0 0 1 5-4.6l5.4 4.6Z' fill='%23000' stroke='%23fff' stroke-width='2.5' stroke-linejoin='round'/%3E%3C/svg%3E") 19 3, pointer !important; }

/* Kursor: oxu maskası və oxu təlimatı */
.uwa-mask {
  position: fixed;
  left: 0;
  right: 0;
  z-index: 170;
  display: none;
  background: rgba(0, 0, 0, .62);
  pointer-events: none;
}
.uwa-mask--top { top: 0; height: 40vh; }
.uwa-mask--bottom { top: 60vh; bottom: 0; }
html[data-uwa-cursor="mask"] .uwa-mask { display: block; }

.uwa-guide {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 170;
  display: none;
  width: 440px;
  max-width: 90vw;
  height: 12px;
  border: 3px solid #FFF200;
  border-radius: 6px;
  background: #000;
  pointer-events: none;
}
.uwa-guide::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 50%;
  margin-left: -9px;
  border: 9px solid transparent;
  border-top: 0;
  border-bottom-color: #FFF200;
}
html[data-uwa-cursor="guide"] .uwa-guide { display: block; }

/* Köməkçi mətnlər */
.uwa-tip {
  position: fixed;
  z-index: 195;
  max-width: 280px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #0A0F18;
  color: #fff;
  font: 600 14px/1.35 "Fira Sans", "Segoe UI", sans-serif;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
  box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.uwa-tip[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .uwa__panel { animation: none; }
  .uwa-launch, .uwa-tile, .uwa-switch__knob, .uwa-switch__track::before { transition: none; }
}

@media print {
  .uwa-launch, .uwa, .uwa-mask, .uwa-guide, .uwa-tip { display: none !important; }
}

/* Enlarged text never fits the one-line desktop nav: use the drawer instead. */
html[data-uwa-text] .nav { display: none !important; }
html[data-uwa-text] .iconbtn--menu { display: inline-grid !important; }
html[data-uwa-text] .header__actions { margin-left: auto; }

/* Enlarged text and spacing: long words wrap instead of spilling past a 320px screen. */
html:is([data-uwa-text], [data-uwa-spacing]) :is(.linkarrow, .cta, .chip, .btn) { white-space: normal !important; }
html:is([data-uwa-text], [data-uwa-spacing]) body :is(h1, h2, h3, h4, p, li, a, span, dd, dt, label, summary, figcaption, button, blockquote, td, th):not(.uwa-x, .uwa-x *) { overflow-wrap: anywhere; }
html:is([data-uwa-text], [data-uwa-spacing]) :is(.hero__title, .pagehead__title) { font-size: min(var(--h1-size, 2.6rem), 11vw); }
