.proves-inline-icon {
  width: 21px;
  height: 21px;
  flex: 0 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e1262f;
}
.proves-inline-icon svg { width: 100%; height: 100%; }

.proves-prepay-note {
  display: inline-flex !important;
  align-items: flex-start;
  gap: 6px;
  max-width: 100%;
}
.proves-prepay-note > span:last-child {
  color: #e1262f !important;
  font-size: 11px !important;
  line-height: 1.3;
  font-weight: 700;
}
.proves-alert-circle {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  margin-top: -1px;
  border: 1.7px solid #e1262f;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #e1262f !important;
  font-size: 11px !important;
  line-height: 1;
  font-weight: 800;
}

.proves-payment-status {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #b51f28 !important;
  background: rgba(225,38,47,.09) !important;
  border: 1px solid rgba(225,38,47,.14) !important;
  border-radius: 999px !important;
  padding: 5px 9px !important;
}
.proves-status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: #e1262f;
}

.proves-cancel-button {
  color: #bd242d !important;
  border-color: rgba(225,38,47,.20) !important;
  background: rgba(225,38,47,.065) !important;
}
.proves-cancel-button:active { background: rgba(225,38,47,.11) !important; }

.proves-cost-entry {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 3px 0;
}
.proves-cost-entry > span:last-child { flex: 1; min-width: 0; }
.proves-tax-note {
  display: block;
  margin-top: 3px;
  padding: 11px 12px;
  border: 1px solid rgba(39,174,96,.18);
  border-radius: 12px;
  background: rgba(39,174,96,.08);
  color: #3f6f51;
  font-size: 12px;
  line-height: 1.48;
}
.proves-tax-note i { color: inherit !important; }

.proves-about-feature {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 4px 0;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fafafa;
  border: 1px solid #f0f0f0;
}
.proves-about-feature > span:last-child { flex: 1; min-width: 0; }

.proves-prep-success {
  display: block;
  margin-top: 4px;
  padding: 12px 13px;
  border: 1px solid rgba(39,174,96,.18);
  border-radius: 13px;
  background: rgba(39,174,96,.08);
  color: #33704b;
}

.proves-telegram-button {
  color: #1688d4 !important;
  border: 1px solid rgba(36,161,222,.20) !important;
  background: rgba(36,161,222,.09) !important;
}
.proves-telegram-button:active { background: rgba(36,161,222,.14) !important; }


.proves-doctor-telegram-cta {
  width: 100% !important;
  margin-top: 12px !important;
  border: 0 !important;
  background: #24a1de !important;
  color: #ffffff !important;
  box-shadow: 0 5px 16px rgba(36,161,222,.18) !important;
}
.proves-doctor-telegram-cta:active {
  background: #1f93cc !important;
}
.proves-doctor-telegram-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #ffffff !important;
}
.proves-doctor-telegram-label svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  color: #ffffff !important;
}

/* =========================================================
   INTERNAL MINI APP OVERLAYS
   ========================================================= */

.proves-overlay-open {
  overflow: hidden !important;
}

.proves-internal-overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  background: #ffffff;
  color: #111111;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.proves-overlay-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  background: #ffffff;
}

.proves-overlay-header {
  position: sticky;
  z-index: 3;
  top: 0;
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  min-height: 58px;
  padding: calc(6px + env(safe-area-inset-top)) 8px 6px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid #eeeeee;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.proves-overlay-header strong {
  text-align: center;
  font-size: 16px;
  line-height: 1.2;
}

.proves-overlay-back {
  appearance: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f3f3f4;
  color: #222222;
  font-size: 31px;
  line-height: 1;
  cursor: pointer;
}

.proves-overlay-spacer {
  width: 42px;
}

.proves-overlay-content {
  padding: 18px 14px 24px;
}

.proves-call-card,
.proves-admin-block-form,
.proves-success-card {
  padding: 20px 18px;
  border: 1px solid #e7e7e7;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 5px 20px rgba(0,0,0,.045);
}

.proves-call-card {
  text-align: center;
}

.proves-call-logo {
  display: block;
  width: min(72%, 280px);
  max-height: 105px;
  object-fit: contain;
  margin: 2px auto 18px;
}

.proves-call-subtitle {
  margin: 0 0 10px;
  color: #555555;
  font-size: 14px;
  font-weight: 650;
}

.proves-clinic-link {
  appearance: none;
  display: inline-block;
  margin: 0 auto 20px;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: #e1262f;
  font-size: 17px;
  font-weight: 750;
  cursor: pointer;
}

.proves-call-button {
  width: 100%;
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none !important;
}

.proves-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.proves-phone-icon,
.proves-phone-icon svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}

.proves-overlay-lead {
  margin: 0 0 18px;
  color: #777777;
  font-size: 13px;
  line-height: 1.45;
}

.proves-field {
  display: block;
  margin: 0 0 16px;
}

.proves-field > span,
.proves-field-label {
  display: block;
  margin: 0 0 7px 2px;
  color: #6f6f6f;
  font-size: 12px;
  font-weight: 650;
}

.proves-field input {
  width: 100%;
  height: 51px;
  padding: 0 14px;
  border: 1px solid #e7e7e7;
  border-radius: 13px;
  background: #ffffff;
  color: #111111;
  font: inherit;
}

.proves-time-wrap {
  margin-bottom: 16px;
}

.proves-time-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 9px;
}

.proves-time-button {
  appearance: none;
  min-height: 48px;
  border: 1px solid #e7e7e7;
  border-radius: 12px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
}

.proves-time-button.selected {
  border-color: #e1262f;
  background: #e1262f;
  color: #ffffff;
}

.proves-muted {
  grid-column: 1 / -1;
  padding: 15px;
  border-radius: 12px;
  background: #f5f5f5;
  color: #777777;
  text-align: center;
  font-size: 12px;
}

.proves-day-note {
  margin: 0 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(225,38,47,.12);
  border-radius: 14px;
  background: rgba(225,38,47,.045);
  color: #595959;
  font-size: 12px;
  line-height: 1.45;
}

.proves-day-note strong {
  color: #e1262f;
}

.proves-day-note p {
  margin: 4px 0 0;
}

.proves-overlay-error {
  margin: 0 0 14px;
  padding: 12px 13px;
  border: 1px solid rgba(225,38,47,.18);
  border-radius: 12px;
  background: rgba(225,38,47,.065);
  color: #a91d26;
  font-size: 12px;
  line-height: 1.4;
}

.proves-block-submit {
  width: 100%;
}

.proves-success-card strong {
  display: block;
  color: #278a4b;
  font-size: 17px;
}

.proves-success-card p {
  margin: 9px 0 16px;
  color: #666666;
  font-size: 13px;
  line-height: 1.45;
}

.proves-return-admin {
  width: 100%;
}

/* =========================================================
   ADMIN MANUAL BLOCKS
   ========================================================= */

.proves-admin-block-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 0 0 16px;
}

.proves-admin-block-action {
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.proves-admin-block-action .proves-inline-icon {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.proves-admin-block-card {
  border-color: rgba(225,38,47,.18) !important;
  background: rgba(225,38,47,.025) !important;
}

.proves-admin-block-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  color: #b51f28;
  background: rgba(225,38,47,.09);
  font-size: 10px;
  line-height: 1.2;
  font-weight: 750;
}

.proves-release-button {
  color: #b51f28 !important;
  background: rgba(225,38,47,.07) !important;
}

@media (max-width: 380px) {
  .proves-admin-block-actions {
    grid-template-columns: 1fr;
  }
  .proves-time-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
}

/* =========================================================
   INTERNAL EMBEDDED BROWSER
   ========================================================= */

.proves-browser-open {
  overflow: hidden !important;
}

.proves-internal-browser-overlay {
  position: fixed;
  z-index: 11000;
  inset: 0;
  background: #ffffff;
  color: #111111;
}

.proves-browser-shell {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  height: 100dvh;
  margin: 0 auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.proves-browser-header {
  flex: 0 0 auto;
}

.proves-browser-loading {
  padding: 16px;
  color: #777777;
  font-size: 13px;
  text-align: center;
}

.proves-browser-loading[hidden] {
  display: none;
}

.proves-browser-frame {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  border: 0;
  background: #ffffff;
}

/* =========================================================
   ADMIN WHOLE-DAY SLOT STATES — v2.1
   ========================================================= */

.proves-day-state-grid {
  grid-template-columns: repeat(3,minmax(0,1fr));
}

.proves-time-button {
  min-width: 0;
}

.proves-time-button > .proves-slot-time {
  display: block;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.1;
}

.proves-time-button > small {
  display: block;
  margin-top: 4px;
  max-width: 100%;
  font-size: 8.5px;
  line-height: 1.15;
  font-weight: 650;
  color: #7c7c7c;
  overflow-wrap: anywhere;
}

.proves-time-button.proves-slot-free:not(.selected) {
  border-color: rgba(39,174,96,.22);
  background: rgba(39,174,96,.055);
  color: #245f3d;
}

.proves-time-button.proves-slot-free:not(.selected) small {
  color: #378159;
}

.proves-time-button.proves-slot-occupied,
.proves-time-button.proves-slot-occupied:disabled {
  opacity: 1;
  border-color: rgba(50,132,255,.20);
  background: rgba(50,132,255,.075);
  color: #245f9f;
}

.proves-time-button.proves-slot-occupied small {
  color: #4e7398;
}

.proves-time-button.proves-slot-blocked,
.proves-time-button.proves-slot-blocked_day,
.proves-time-button.proves-slot-blocked:disabled,
.proves-time-button.proves-slot-blocked_day:disabled {
  opacity: 1;
  border-color: rgba(225,38,47,.19);
  background: rgba(225,38,47,.07);
  color: #b51f28;
}

.proves-time-button.proves-slot-blocked small,
.proves-time-button.proves-slot-blocked_day small {
  color: #a84a50;
}

.proves-time-button.proves-slot-past,
.proves-time-button.proves-slot-past:disabled {
  opacity: .62;
  border-color: #e4e4e4;
  background: #f4f4f4;
  color: #858585;
}

.proves-day-overview-card {
  margin-top: 12px;
  margin-bottom: 14px;
}

.proves-manual-admin-block-card {
  border-color: rgba(225,38,47,.18) !important;
  background: rgba(225,38,47,.025) !important;
}

.proves-release-manual-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.proves-release-manual-block .proves-inline-icon {
  color: currentColor;
}

@media (max-width:380px) {
  .proves-day-state-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
}


/* =========================================================
   ADMIN v2.7 SAFE VISUAL FIXES
   ========================================================= */
/* Hide the legacy empty-state copy without removing React nodes. */
.screen .admin-placeholder {
  display: none !important;
}

/* Service reservation label must be black and have no legacy ellipsis icon. */
.admin-block-card .admin-block-label {
  color: #111111 !important;
}
.admin-block-card .admin-block-label > span[aria-hidden="true"] {
  display: none !important;
}
.admin-block-card .admin-block-label {
  gap: 0 !important;
}

/* The deployed legacy bundle renders unknown lock icon as three dots. Hide only
   that icon in the service-block release button; keep the button text intact. */
.admin-block-card .admin-actions .button-icon-label > svg {
  display: none !important;
}
.admin-block-card .admin-actions .button-icon-label {
  gap: 0 !important;
}

/* =========================================================
   ADMIN v2.9 DEPLOYMENT ICONS + PATIENT CARD LABELS
   ========================================================= */
.proves-admin-block-button-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.proves-admin-block-action-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.proves-admin-block-button-label > span {
  min-width: 0;
  line-height: 1.15;
}

.admin-payment-paid {
  color: #278a4b !important;
  font-weight: 700;
}

/* v2.11.5: internal legal terms + rejected payment retry */
.proves-legal-loading {
  padding: 22px 4px;
  color: #777;
  text-align: center;
}

.proves-legal-document {
  color: #111;
}

.proves-legal-document .lead {
  margin: 0 0 24px;
  color: #5f5f64;
  font-size: 15px;
  line-height: 1.55;
}

.proves-legal-document section {
  margin: 0 0 22px;
  padding: 0 0 22px;
  border-bottom: 1px solid #ededed;
}

.proves-legal-document section:last-child {
  margin-bottom: 0;
  border-bottom: 0;
}

.proves-legal-document h2 {
  margin: 0 0 12px;
  font-size: 17px;
  line-height: 1.35;
}

.proves-legal-document p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.62;
}

.proves-legal-document .dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.proves-legal-document .dash-list li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.proves-legal-document .dash-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
}

.proves-legal-document .confirmation {
  padding: 17px;
  border: 1px solid #e7e7e7;
  border-radius: 16px;
  background: #f7f7f8;
}

.reported.proves-hidden-reported {
  display: none !important;
}

.proves-payment-not-found {
  margin-top: 12px;
}

.proves-payment-not-found-card {
  margin-bottom: 10px;
  padding: 15px 16px;
  border: 1px solid #efd9a8;
  border-radius: 16px;
  background: #fff8e8;
  color: #5a4615;
}

.proves-payment-not-found-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 15px;
}

.proves-payment-not-found-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.proves-payment-retry-button {
  width: 100%;
}


/* v2.11.6: clearer legal-terms action */
.legal-terms-link {
  background: var(--green-soft, #eaf8ef) !important;
  color: #1f6f45 !important;
  border: 1px solid #d3ecdc !important;
}

.legal-terms-link:active {
  background: #def2e6 !important;
}


/* v2.11.8: Zoom instructions in confirmed online appointment */
.proves-zoom-confirmed-info {
  margin: 14px 0 0;
  padding: 14px 15px;
  border-radius: var(--radius-md, 16px);
  background: #f4f5f6;
  color: #616161;
  font-size: 12px;
  line-height: 1.5;
}
.proves-zoom-confirmed-info p { margin: 0; }
.proves-zoom-confirmed-info p + p { margin-top: 9px; }
.proves-zoom-confirmed-info strong { color: #333; font-weight: 700; }

/* =========================================================
   ГЛАВНАЯ — HERO-КАРУСЕЛЬ v2.11.25
   Визуальная ширина hero выровнена по наружным краям карточек
   первого ряда, которые нарисованы внутри home-reference.png.

   Важно: hotspot-координаты 0.6% → 99.3% шире/иначе визуальной
   геометрии самих карточек и не используются как эталон ширины.
   Hero viewport занимает полную ширину reference-wrap, а один
   общий горизонтальный коэффициент 1.019 компенсирует более
   широкие внутренние белые поля всех трех banner-assets.
   Индивидуальных поправок по слайдам нет.
   ========================================================= */

.hero-carousel {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 0;
  width: 100%;
  height: 34.689%; /* 580 / 1672 */
  overflow: hidden;
  background: #fff;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
  overscroll-behavior-x: contain;
}

.hero-carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transform: translate3d(-100%, 0, 0);
  transition: transform 350ms cubic-bezier(.22,.61,.36,1);
  will-change: transform;
}

.hero-carousel-track.no-transition {
  transition: none !important;
}

.hero-carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  overflow: hidden;
  background: #fff;
}

.hero-carousel-picture,
.hero-carousel-image {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel-image {
  object-fit: contain;
  object-position: center;
  /* Единая для всех слайдов компенсация внутренних боковых полей.
     По reference-геометрии: cards ≈ x 9…930, hero cards ≈ x 17…922. */
  transform: scaleX(1.019);
  transform-origin: center center;
  background: #fff;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

/* Индикаторы расположены прямо под hero с визуальным зазором около 6 px, без наложения. */
.hero-carousel-dots {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: calc(34.689% + 2px);
  transform: translate(-50%, -3.2mm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  height: 11px;
  padding: 0;
  margin: 0;
  background: transparent;
  pointer-events: auto;
}

.hero-carousel-dot {
  appearance: none;
  width: 17px;
  height: 18px;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.hero-carousel-dot-mark {
  display: block;
  flex: 0 0 auto;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: rgba(104, 114, 132, 0.36);
  transform: none;
  transition: none;
}

.hero-carousel-dot.is-active .hero-carousel-dot-mark {
  width: 12px;
  height: 4px;
  background: #D22B28;
}

/* Анимацию включаем только после первого отрисованного кадра.
   Это устраняет артефакт начального рендера микроскопических псевдоэлементов в Telegram iOS WebView. */
.hero-carousel-dots.is-ready .hero-carousel-dot-mark {
  transition: width 160ms ease, background-color 160ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track,
  .hero-carousel-dot-mark {
    transition: none !important;
  }
}
