/* Версия для слабовидящих — общая панель для всех страниц. */
.fenix-a11y-panel {
  position: fixed;
  z-index: 3000;
  top: clamp(110px, 18vh, 190px);
  left: 0;
  display: flex;
  align-items: flex-start;
  transform: translateX(calc(-100% + 58px));
  transition: transform .25s ease;
}
.fenix-a11y-panel.open { transform: translateX(0); }
body.fenix-footer-zone .floating-call { opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(12px) !important; }
.btn--primary,
a.btn--primary,
button.btn--primary,
.doctor-book-btn,
.floating-call { color: #fff !important; text-decoration: none !important; }
.btn--primary *,
.doctor-book-btn * { color: inherit !important; }
.fenix-a11y-dialog {
  position: relative;
  width: min(330px, calc(100vw - 70px));
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 24px 20px 20px 26px;
  color: #123047;
  border: 2px solid #197da6;
  border-left: 0;
  border-radius: 0 0 10px 0;
  background: #fff;
  box-shadow: 5px 5px 0 rgba(32,181,200,.24), 0 22px 65px rgba(18,63,102,.2);
}
.fenix-a11y-dialog h2 {
  max-width: 210px;
  margin: 0 38px 18px 0;
  color: #123f66;
  font-size: 21px;
  line-height: 1.15;
}
.fenix-a11y-dialog > p {
  margin: 0 0 15px;
  color: #617586;
  font-size: 12px;
  line-height: 1.45;
}
.fenix-a11y-close {
  position: absolute;
  top: 11px;
  right: 11px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  padding: 0;
  color: #123f66;
  border: 1px solid #dfecef;
  border-radius: 50%;
  background: #f4f9fb;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.fenix-a11y-actions { display: grid; gap: 2px; }
.fenix-a11y-actions button {
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  color: #123047;
  border: 0;
  border-radius: 6px;
  background: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}
.fenix-a11y-actions button span {
  display: inline-grid;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  place-items: center;
  color: #0b93aa;
  border-radius: 5px;
  background: transparent;
  font-weight: 900;
}
.fenix-a11y-actions button:hover { background: #eef8fa; }
.fenix-a11y-actions button[aria-pressed="true"] {
  color: #fff;
  background: linear-gradient(135deg, #197da6, #123f66);
}
.fenix-a11y-actions button[aria-pressed="true"] span {
  color: #123f66;
  background: #fff;
}
.fenix-a11y-more { display: inline-block; margin-top: 17px; color: #197da6; font-size: 13px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.fenix-a11y-tab {
  position: relative;
  display: grid;
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  border-left: 0;
  margin-top: 4px;
  border-radius: 0 14px 14px 0;
  background: linear-gradient(145deg, #28c4d1 0%, #1599b5 52%, #145078 100%);
  box-shadow: 0 12px 30px rgba(18,63,102,.25), inset 0 1px 0 rgba(255,255,255,.22);
  cursor: pointer;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.fenix-a11y-tab::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 28% 20%, rgba(255,255,255,.2), transparent 42%); pointer-events: none; }
.fenix-a11y-tab svg { position: relative; z-index: 1; filter: drop-shadow(0 1px 1px rgba(7,39,61,.22)); }
.fenix-a11y-tab:hover { background: linear-gradient(145deg, #20b5c8, #197da6 55%, #123f66); box-shadow: 0 15px 34px rgba(18,63,102,.32), inset 0 1px 0 rgba(255,255,255,.28); transform: translateX(2px); }
.fenix-a11y-tab:active { transform: translateX(1px) scale(.97); }
.fenix-a11y-tab:focus-visible,
.fenix-a11y-close:focus-visible,
.fenix-a11y-actions button:focus-visible {
  outline: 4px solid #20b5c8;
  outline-offset: 3px;
}

html.fenix-a11y-large body { font-size: 20px; line-height: 1.78; }
html.fenix-a11y-large p,
html.fenix-a11y-large li,
html.fenix-a11y-large label,
html.fenix-a11y-large input,
html.fenix-a11y-large select,
html.fenix-a11y-large textarea,
html.fenix-a11y-large .nav,
html.fenix-a11y-large .mobile-nav,
html.fenix-a11y-large .footer,
html.fenix-a11y-large .topline { font-size: 18px !important; line-height: 1.72 !important; }
html.fenix-a11y-large .btn,
html.fenix-a11y-large button { font-size: 17px; }

html.fenix-a11y-small body { font-size: 14px; line-height: 1.55; }
html.fenix-a11y-small p,
html.fenix-a11y-small li,
html.fenix-a11y-small label,
html.fenix-a11y-small input,
html.fenix-a11y-small select,
html.fenix-a11y-small textarea { font-size: 13px !important; }

html.fenix-a11y-contrast {
  --ink: #000;
  --muted: #151515;
  --navy: #000;
  --blue: #003e67;
  --cyan: #006779;
  --cyan-deep: #004f60;
  --plum: #000;
  --mint: #fff;
  --ice: #fff;
  --line: #000;
  --white: #fff;
}
html.fenix-a11y-contrast body,
html.fenix-a11y-contrast .hero,
html.fenix-a11y-contrast .page-hero,
html.fenix-a11y-contrast .section,
html.fenix-a11y-contrast .section--ice,
html.fenix-a11y-contrast .promise,
html.fenix-a11y-contrast .directions,
html.fenix-a11y-contrast .clinic-info,
html.fenix-a11y-contrast .header,
html.fenix-a11y-contrast .quick-panel,
html.fenix-a11y-contrast .direction,
html.fenix-a11y-contrast .doctor-card,
html.fenix-a11y-contrast .info-card,
html.fenix-a11y-contrast .doc-card,
html.fenix-a11y-contrast .price-group,
html.fenix-a11y-contrast .modal__card {
  color: #000 !important;
  background: #fff !important;
  background-image: none !important;
  box-shadow: none !important;
}
html.fenix-a11y-contrast .topline,
html.fenix-a11y-contrast .footer,
html.fenix-a11y-contrast .medical-warning,
html.fenix-a11y-contrast .contact-panel { color: #fff !important; background: #000 !important; }
html.fenix-a11y-contrast .topline *,
html.fenix-a11y-contrast .footer *,
html.fenix-a11y-contrast .medical-warning *,
html.fenix-a11y-contrast .contact-panel * { color: #fff !important; }
html.fenix-a11y-contrast .direction,
html.fenix-a11y-contrast .doctor-card,
html.fenix-a11y-contrast .info-card,
html.fenix-a11y-contrast .doc-card,
html.fenix-a11y-contrast .price-group,
html.fenix-a11y-contrast .quick-panel,
html.fenix-a11y-contrast .btn,
html.fenix-a11y-contrast input,
html.fenix-a11y-contrast select { border: 2px solid #000 !important; box-shadow: none !important; }
html.fenix-a11y-contrast .btn--primary,
html.fenix-a11y-contrast .direction--feature { color: #fff !important; background: #000 !important; }
html.fenix-a11y-contrast :focus-visible { outline: 4px solid #005fcc !important; outline-offset: 4px; }

html.fenix-a11y-grayscale body { filter: grayscale(1); }
html.fenix-a11y-links a:not(.btn) {
  text-decoration: underline !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 4px !important;
}
html.fenix-a11y-no-images img,
html.fenix-a11y-no-images picture,
html.fenix-a11y-no-images video { display: none !important; }

@media (max-width: 760px) {
  .fenix-a11y-panel { top: 86px; }
  .fenix-a11y-dialog { width: min(315px, calc(100vw - 62px)); padding: 20px 16px 18px; }
  .fenix-a11y-actions button { min-height: 45px; }
}
@media (prefers-reduced-motion: reduce) {
  .fenix-a11y-panel { transition: none; }
}
